Block Editor: Bug fixes targeted for WordPress 5.3.1.
The list of included fixes: - Edge scrolling issues https://github.com/WordPress/gutenberg/pull/17707 - Intermittent JavaScript issues https://github.com/WordPress/gutenberg/pull/18559 - Remove embed CollegeHumor https://github.com/WordPress/gutenberg/pull/18591 Updated packages: - @wordpress/block-directory@1.0.6 - @wordpress/block-editor@3.2.5 - @wordpress/block-library@2.9.6 - @wordpress/core-data@2.7.5 - @wordpress/edit-post@3.8.6 - @wordpress/editor@9.7.6 - @wordpress/format-library@1.9.5 Props youknowriad, ellatrix, epiqueras, audrasjb, gziolo, mcsf, kyliesabra. Fixes #48884. Built from https://develop.svn.wordpress.org/trunk@46860 git-svn-id: http://core.svn.wordpress.org/trunk@46660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d4ef90b236
commit
a227c231a2
|
@ -4928,7 +4928,7 @@ var external_this_wp_hooks_ = __webpack_require__(27);
|
|||
var external_this_wp_data_ = __webpack_require__(4);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js
|
||||
var tinycolor = __webpack_require__(48);
|
||||
var tinycolor = __webpack_require__(49);
|
||||
var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/utils.js
|
||||
|
@ -19749,7 +19749,7 @@ function (_Component) {
|
|||
return;
|
||||
}
|
||||
|
||||
var diff = currentCaretRect.y - this.caretRect.y;
|
||||
var diff = currentCaretRect.top - this.caretRect.top;
|
||||
|
||||
if (diff === 0) {
|
||||
return;
|
||||
|
@ -19763,8 +19763,8 @@ function (_Component) {
|
|||
|
||||
var windowScroll = scrollContainer === document.body;
|
||||
var scrollY = windowScroll ? window.scrollY : scrollContainer.scrollTop;
|
||||
var scrollContainerY = windowScroll ? 0 : scrollContainer.getBoundingClientRect().y;
|
||||
var relativeScrollPosition = windowScroll ? this.caretRect.y / window.innerHeight : (this.caretRect.y - scrollContainerY) / (window.innerHeight - scrollContainerY); // If the scroll position is at the start, the active editable element
|
||||
var scrollContainerY = windowScroll ? 0 : scrollContainer.getBoundingClientRect().top;
|
||||
var relativeScrollPosition = windowScroll ? this.caretRect.top / window.innerHeight : (this.caretRect.top - scrollContainerY) / (window.innerHeight - scrollContainerY); // If the scroll position is at the start, the active editable element
|
||||
// is the last one, and the caret is positioned within the initial
|
||||
// trigger percentage of the page, do not scroll the page.
|
||||
// The typewriter effect should not kick in until an empty page has been
|
||||
|
@ -19781,8 +19781,8 @@ function (_Component) {
|
|||
// view.
|
||||
|
||||
if ( // The caret is under the lower fold.
|
||||
this.caretRect.y + this.caretRect.height > scrollContainerY + scrollContainerHeight || // The caret is above the upper fold.
|
||||
this.caretRect.y < scrollContainerY) {
|
||||
this.caretRect.top + this.caretRect.height > scrollContainerY + scrollContainerHeight || // The caret is above the upper fold.
|
||||
this.caretRect.top < scrollContainerY) {
|
||||
// Reset the caret position to maintain.
|
||||
this.caretRect = currentCaretRect;
|
||||
return;
|
||||
|
@ -23627,7 +23627,7 @@ try {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 48:
|
||||
/***/ 49:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -3027,13 +3027,17 @@ var others = [{
|
|||
},
|
||||
patterns: [/^https?:\/\/cloudup\.com\/.+/i]
|
||||
}, {
|
||||
// Deprecated since CollegeHumor content is now powered by YouTube
|
||||
name: 'core-embed/collegehumor',
|
||||
settings: {
|
||||
title: 'CollegeHumor',
|
||||
icon: embedVideoIcon,
|
||||
description: Object(external_this_wp_i18n_["__"])('Embed CollegeHumor content.')
|
||||
description: Object(external_this_wp_i18n_["__"])('Embed CollegeHumor content.'),
|
||||
supports: {
|
||||
inserter: false
|
||||
}
|
||||
},
|
||||
patterns: [/^https?:\/\/(www\.)?collegehumor\.com\/.+/i]
|
||||
patterns: []
|
||||
}, {
|
||||
name: 'core-embed/crowdsignal',
|
||||
settings: {
|
||||
|
@ -10353,7 +10357,7 @@ var dist = __webpack_require__(221);
|
|||
var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js
|
||||
var tinycolor = __webpack_require__(48);
|
||||
var tinycolor = __webpack_require__(49);
|
||||
var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/icon.js
|
||||
|
@ -20601,7 +20605,7 @@ module.exports = function memize( fn, options ) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 48:
|
||||
/***/ 49:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -6090,7 +6090,7 @@ var v4_default = /*#__PURE__*/__webpack_require__.n(v4);
|
|||
var external_this_wp_hooks_ = __webpack_require__(27);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js
|
||||
var tinycolor = __webpack_require__(48);
|
||||
var tinycolor = __webpack_require__(49);
|
||||
var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor);
|
||||
|
||||
// EXTERNAL MODULE: external {"this":["wp","element"]}
|
||||
|
@ -11974,7 +11974,7 @@ function _nonIterableRest() {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 48:
|
||||
/***/ 49:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1443,7 +1443,8 @@ try {
|
|||
|
||||
|
||||
/***/ }),
|
||||
/* 48 */
|
||||
/* 48 */,
|
||||
/* 49 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1
|
||||
|
@ -2643,7 +2644,7 @@ else {}
|
|||
|
||||
|
||||
/***/ }),
|
||||
/* 49 */
|
||||
/* 50 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -2667,7 +2668,7 @@ module.exports = polyfill;
|
|||
|
||||
|
||||
/***/ }),
|
||||
/* 50 */
|
||||
/* 51 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -2886,7 +2887,6 @@ var CalendarDayPhrases = exports.CalendarDayPhrases = {
|
|||
};
|
||||
|
||||
/***/ }),
|
||||
/* 51 */,
|
||||
/* 52 */,
|
||||
/* 53 */,
|
||||
/* 54 */
|
||||
|
@ -2900,7 +2900,7 @@ Object.defineProperty(exports, "__esModule", {
|
|||
});
|
||||
exports['default'] = getPhrasePropTypes;
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -3001,7 +3001,7 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|||
|
||||
exports.withStyles = withStyles;
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -7925,7 +7925,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -7953,7 +7953,7 @@ var _moment = __webpack_require__(29);
|
|||
|
||||
var _moment2 = _interopRequireDefault(_moment);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _getPhrasePropTypes = __webpack_require__(54);
|
||||
|
||||
|
@ -8788,7 +8788,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -8824,7 +8824,7 @@ var _reactOutsideClickHandler = __webpack_require__(134);
|
|||
|
||||
var _reactOutsideClickHandler2 = _interopRequireDefault(_reactOutsideClickHandler);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _getPhrasePropTypes = __webpack_require__(54);
|
||||
|
||||
|
@ -11378,7 +11378,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -11406,7 +11406,7 @@ var _moment = __webpack_require__(29);
|
|||
|
||||
var _moment2 = _interopRequireDefault(_moment);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _getPhrasePropTypes = __webpack_require__(54);
|
||||
|
||||
|
@ -11827,7 +11827,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -11857,7 +11857,7 @@ var _moment2 = _interopRequireDefault(_moment);
|
|||
|
||||
var _consolidatedEvents = __webpack_require__(105);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _getPhrasePropTypes = __webpack_require__(54);
|
||||
|
||||
|
@ -12644,7 +12644,7 @@ var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes);
|
|||
|
||||
var _airbnbPropTypes = __webpack_require__(46);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _getPhrasePropTypes = __webpack_require__(54);
|
||||
|
||||
|
@ -13027,7 +13027,7 @@ var _OpenDirectionShape = __webpack_require__(81);
|
|||
|
||||
var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _getPhrasePropTypes = __webpack_require__(54);
|
||||
|
||||
|
@ -13490,7 +13490,7 @@ Object.defineProperty(exports, "__esModule", {
|
|||
|
||||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -13506,7 +13506,7 @@ var _airbnbPropTypes = __webpack_require__(46);
|
|||
|
||||
var _reactWithStyles = __webpack_require__(56);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _getPhrasePropTypes = __webpack_require__(54);
|
||||
|
||||
|
@ -13948,7 +13948,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -14638,7 +14638,7 @@ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = [
|
|||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -14668,7 +14668,7 @@ var _isTouchDevice = __webpack_require__(80);
|
|||
|
||||
var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _getPhrasePropTypes = __webpack_require__(54);
|
||||
|
||||
|
@ -16246,7 +16246,7 @@ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = [
|
|||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -16276,7 +16276,7 @@ var _isTouchDevice = __webpack_require__(80);
|
|||
|
||||
var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _getPhrasePropTypes = __webpack_require__(54);
|
||||
|
||||
|
@ -17300,7 +17300,7 @@ var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes);
|
|||
|
||||
var _airbnbPropTypes = __webpack_require__(46);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _getPhrasePropTypes = __webpack_require__(54);
|
||||
|
||||
|
@ -17421,7 +17421,7 @@ Object.defineProperty(exports, "__esModule", {
|
|||
|
||||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -17437,7 +17437,7 @@ var _airbnbPropTypes = __webpack_require__(46);
|
|||
|
||||
var _reactWithStyles = __webpack_require__(56);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _getPhrasePropTypes = __webpack_require__(54);
|
||||
|
||||
|
@ -25096,7 +25096,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -25124,7 +25124,7 @@ var _moment = __webpack_require__(29);
|
|||
|
||||
var _moment2 = _interopRequireDefault(_moment);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _getPhrasePropTypes = __webpack_require__(54);
|
||||
|
||||
|
@ -25759,7 +25759,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -25795,7 +25795,7 @@ var _DateRangePickerShape = __webpack_require__(188);
|
|||
|
||||
var _DateRangePickerShape2 = _interopRequireDefault(_DateRangePickerShape);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _getResponsiveContainerStyles = __webpack_require__(192);
|
||||
|
||||
|
@ -28506,7 +28506,7 @@ Object.defineProperty(exports, "__esModule", {
|
|||
|
||||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -28522,7 +28522,7 @@ var _airbnbPropTypes = __webpack_require__(46);
|
|||
|
||||
var _reactWithStyles = __webpack_require__(56);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _getPhrasePropTypes = __webpack_require__(54);
|
||||
|
||||
|
@ -28890,7 +28890,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -28906,7 +28906,7 @@ var _airbnbPropTypes = __webpack_require__(46);
|
|||
|
||||
var _reactWithStyles = __webpack_require__(56);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _getPhrasePropTypes = __webpack_require__(54);
|
||||
|
||||
|
@ -29396,7 +29396,7 @@ Object.defineProperty(exports, "__esModule", {
|
|||
|
||||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -29560,7 +29560,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _object = __webpack_require__(49);
|
||||
var _object = __webpack_require__(50);
|
||||
|
||||
var _object2 = _interopRequireDefault(_object);
|
||||
|
||||
|
@ -29592,7 +29592,7 @@ var _SingleDatePickerShape = __webpack_require__(208);
|
|||
|
||||
var _SingleDatePickerShape2 = _interopRequireDefault(_SingleDatePickerShape);
|
||||
|
||||
var _defaultPhrases = __webpack_require__(50);
|
||||
var _defaultPhrases = __webpack_require__(51);
|
||||
|
||||
var _toMomentObject = __webpack_require__(78);
|
||||
|
||||
|
@ -35435,7 +35435,7 @@ function (_Component) {
|
|||
/* harmony default export */ var dropdown = (dropdown_Dropdown);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js
|
||||
var tinycolor = __webpack_require__(48);
|
||||
var tinycolor = __webpack_require__(49);
|
||||
var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/utils.js
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -976,10 +976,10 @@ function receiveEmbedPreview(url, preview) {
|
|||
|
||||
function editEntityRecord(kind, name, recordId, edits) {
|
||||
var options,
|
||||
_ref,
|
||||
_ref$transientEdits,
|
||||
entity,
|
||||
_entity$transientEdit,
|
||||
transientEdits,
|
||||
_ref$mergedEdits,
|
||||
_entity$mergedEdits,
|
||||
mergedEdits,
|
||||
record,
|
||||
editedRecord,
|
||||
|
@ -995,20 +995,26 @@ function editEntityRecord(kind, name, recordId, edits) {
|
|||
return controls_select('getEntity', kind, name);
|
||||
|
||||
case 3:
|
||||
_ref = _context.sent;
|
||||
_ref$transientEdits = _ref.transientEdits;
|
||||
transientEdits = _ref$transientEdits === void 0 ? {} : _ref$transientEdits;
|
||||
_ref$mergedEdits = _ref.mergedEdits;
|
||||
mergedEdits = _ref$mergedEdits === void 0 ? {} : _ref$mergedEdits;
|
||||
_context.next = 10;
|
||||
entity = _context.sent;
|
||||
|
||||
if (entity) {
|
||||
_context.next = 6;
|
||||
break;
|
||||
}
|
||||
|
||||
throw new Error("The entity being edited (".concat(kind, ", ").concat(name, ") does not have a loaded config."));
|
||||
|
||||
case 6:
|
||||
_entity$transientEdit = entity.transientEdits, transientEdits = _entity$transientEdit === void 0 ? {} : _entity$transientEdit, _entity$mergedEdits = entity.mergedEdits, mergedEdits = _entity$mergedEdits === void 0 ? {} : _entity$mergedEdits;
|
||||
_context.next = 9;
|
||||
return controls_select('getRawEntityRecord', kind, name, recordId);
|
||||
|
||||
case 10:
|
||||
case 9:
|
||||
record = _context.sent;
|
||||
_context.next = 13;
|
||||
_context.next = 12;
|
||||
return controls_select('getEditedEntityRecord', kind, name, recordId);
|
||||
|
||||
case 13:
|
||||
case 12:
|
||||
editedRecord = _context.sent;
|
||||
edit = {
|
||||
kind: kind,
|
||||
|
@ -1039,7 +1045,7 @@ function editEntityRecord(kind, name, recordId, edits) {
|
|||
}
|
||||
}));
|
||||
|
||||
case 16:
|
||||
case 15:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
|
@ -1149,8 +1155,8 @@ function __unstableCreateUndoLevel() {
|
|||
*/
|
||||
|
||||
function saveEntityRecord(kind, name, record) {
|
||||
var _ref2,
|
||||
_ref2$isAutosave,
|
||||
var _ref,
|
||||
_ref$isAutosave,
|
||||
isAutosave,
|
||||
entities,
|
||||
entity,
|
||||
|
@ -1174,9 +1180,9 @@ function saveEntityRecord(kind, name, record) {
|
|||
while (1) {
|
||||
switch (_context4.prev = _context4.next) {
|
||||
case 0:
|
||||
_ref2 = _args4.length > 3 && _args4[3] !== undefined ? _args4[3] : {
|
||||
_ref = _args4.length > 3 && _args4[3] !== undefined ? _args4[3] : {
|
||||
isAutosave: false
|
||||
}, _ref2$isAutosave = _ref2.isAutosave, isAutosave = _ref2$isAutosave === void 0 ? false : _ref2$isAutosave;
|
||||
}, _ref$isAutosave = _ref.isAutosave, isAutosave = _ref$isAutosave === void 0 ? false : _ref$isAutosave;
|
||||
_context4.next = 3;
|
||||
return getKindEntities(kind);
|
||||
|
||||
|
@ -2532,11 +2538,15 @@ function getEntityRecordEdits(state, kind, name, recordId) {
|
|||
*/
|
||||
|
||||
var getEntityRecordNonTransientEdits = Object(rememo["a" /* default */])(function (state, kind, name, recordId) {
|
||||
var _getEntity = getEntity(state, kind, name),
|
||||
_getEntity$transientE = _getEntity.transientEdits,
|
||||
transientEdits = _getEntity$transientE === void 0 ? {} : _getEntity$transientE;
|
||||
var _ref = getEntity(state, kind, name) || {},
|
||||
transientEdits = _ref.transientEdits;
|
||||
|
||||
var edits = getEntityRecordEdits(state, kind, name, recordId) || {};
|
||||
|
||||
if (!transientEdits) {
|
||||
return edits;
|
||||
}
|
||||
|
||||
var edits = getEntityRecordEdits(state, kind, name, recordId) || [];
|
||||
return Object.keys(edits).reduce(function (acc, key) {
|
||||
if (!transientEdits[key]) {
|
||||
acc[key] = edits[key];
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -783,7 +783,7 @@ Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/edit-post
|
|||
|
||||
|
||||
// EXTERNAL MODULE: external {"this":["wp","plugins"]}
|
||||
var external_this_wp_plugins_ = __webpack_require__(51);
|
||||
var external_this_wp_plugins_ = __webpack_require__(48);
|
||||
|
||||
// EXTERNAL MODULE: external {"this":["wp","url"]}
|
||||
var external_this_wp_url_ = __webpack_require__(26);
|
||||
|
@ -7289,6 +7289,13 @@ module.exports = function memize( fn, options ) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 48:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = this["wp"]["plugins"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
@ -7304,13 +7311,6 @@ function _assertThisInitialized(self) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 51:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = this["wp"]["plugins"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13620,6 +13620,9 @@ var store_storeConfig = {
|
|||
var build_module_store_store = Object(external_this_wp_data_["registerStore"])(MODULE_KEY, store_storeConfig);
|
||||
/* harmony default export */ var block_directory_build_module_store = (build_module_store_store);
|
||||
|
||||
// EXTERNAL MODULE: external {"this":["wp","plugins"]}
|
||||
var external_this_wp_plugins_ = __webpack_require__(48);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/block-ratings/stars.js
|
||||
|
||||
|
||||
|
@ -14049,14 +14052,7 @@ function DownloadableBlocksPanel(_ref) {
|
|||
};
|
||||
})])(DownloadableBlocksPanel));
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/index.js
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/inserter-menu-downloadable-blocks-panel/index.js
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/inserter-menu-downloadable-blocks-panel/index.js
|
||||
|
||||
|
||||
|
||||
|
@ -14070,6 +14066,10 @@ function DownloadableBlocksPanel(_ref) {
|
|||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
function InserterMenuDownloadableBlocksPanel() {
|
||||
|
@ -14104,6 +14104,79 @@ function InserterMenuDownloadableBlocksPanel() {
|
|||
|
||||
/* harmony default export */ var inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/index.js
|
||||
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
|
||||
Object(external_this_wp_plugins_["registerPlugin"])('block-directory', {
|
||||
render: function render() {
|
||||
return Object(external_this_wp_element_["createElement"])(inserter_menu_downloadable_blocks_panel, null);
|
||||
}
|
||||
});
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/index.js
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/inserter-menu-downloadable-blocks-panel/index.js
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function inserter_menu_downloadable_blocks_panel_InserterMenuDownloadableBlocksPanel() {
|
||||
var _useState = Object(external_this_wp_element_["useState"])(''),
|
||||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||||
debouncedFilterValue = _useState2[0],
|
||||
setFilterValue = _useState2[1];
|
||||
|
||||
var debouncedSetFilterValue = Object(external_lodash_["debounce"])(setFilterValue, 400);
|
||||
return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalInserterMenuExtension"], null, function (_ref) {
|
||||
var onSelect = _ref.onSelect,
|
||||
onHover = _ref.onHover,
|
||||
filterValue = _ref.filterValue,
|
||||
hasItems = _ref.hasItems;
|
||||
|
||||
if (hasItems || !filterValue) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (debouncedFilterValue !== filterValue) {
|
||||
debouncedSetFilterValue(filterValue);
|
||||
}
|
||||
|
||||
return Object(external_this_wp_element_["createElement"])(/* Cannot get final name for export "DownloadableBlocksPanel" in "./node_modules/@wordpress/block-directory/build-module/index.js" (known exports: , known reexports: ) */ undefined, {
|
||||
onSelect: onSelect,
|
||||
onHover: onHover,
|
||||
filterValue: debouncedFilterValue,
|
||||
isWaiting: filterValue !== debouncedFilterValue
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/* harmony default export */ var components_inserter_menu_downloadable_blocks_panel = (inserter_menu_downloadable_blocks_panel_InserterMenuDownloadableBlocksPanel);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/provider/index.js
|
||||
|
||||
|
||||
|
@ -14305,7 +14378,7 @@ function (_Component) {
|
|||
onChange: resetEditorBlocks,
|
||||
settings: editorSettings,
|
||||
useSubRegistry: false
|
||||
}, children, Object(external_this_wp_element_["createElement"])(reusable_blocks_buttons, null), Object(external_this_wp_element_["createElement"])(convert_to_group_buttons, null), editorSettings.__experimentalBlockDirectory && Object(external_this_wp_element_["createElement"])(inserter_menu_downloadable_blocks_panel, null));
|
||||
}, children, Object(external_this_wp_element_["createElement"])(reusable_blocks_buttons, null), Object(external_this_wp_element_["createElement"])(convert_to_group_buttons, null), editorSettings.__experimentalBlockDirectory && Object(external_this_wp_element_["createElement"])(components_inserter_menu_downloadable_blocks_panel, null));
|
||||
}
|
||||
}]);
|
||||
|
||||
|
@ -15934,6 +16007,13 @@ try {
|
|||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 48:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = this["wp"]["plugins"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5:
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -229,24 +229,24 @@ function wp_default_packages_scripts( &$scripts ) {
|
|||
'api-fetch' => '3.6.4',
|
||||
'autop' => '2.5.1',
|
||||
'blob' => '2.5.1',
|
||||
'block-editor' => '3.2.4',
|
||||
'block-library' => '2.9.5',
|
||||
'block-editor' => '3.2.5',
|
||||
'block-library' => '2.9.6',
|
||||
'block-serialization-default-parser' => '3.4.1',
|
||||
'blocks' => '6.7.2',
|
||||
'components' => '8.3.2',
|
||||
'compose' => '3.7.2',
|
||||
'core-data' => '2.7.4',
|
||||
'core-data' => '2.7.5',
|
||||
'data-controls' => '1.3.4',
|
||||
'data' => '4.9.2',
|
||||
'date' => '3.5.0',
|
||||
'deprecated' => '2.6.1',
|
||||
'dom-ready' => '2.5.1',
|
||||
'dom' => '2.5.2',
|
||||
'edit-post' => '3.8.5',
|
||||
'editor' => '9.7.5',
|
||||
'edit-post' => '3.8.6',
|
||||
'editor' => '9.7.6',
|
||||
'element' => '2.8.2',
|
||||
'escape-html' => '1.5.1',
|
||||
'format-library' => '1.9.4',
|
||||
'format-library' => '1.9.5',
|
||||
'hooks' => '2.6.0',
|
||||
'html-entities' => '2.5.0',
|
||||
'i18n' => '3.6.1',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.4-alpha-46858';
|
||||
$wp_version = '5.4-alpha-46860';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue