Grouped merges for 5.7.3.
- Update `lodash` to the latest version `4.17.21`. - Disable some attributes for rich text. Merges [51426,50941] to the 5.7 branch. Props ellatrix, peterwilsoncc, get_dave, mcsf, talldanwp, youknowriad, desrosj, nerrad. Built from https://develop.svn.wordpress.org/branches/5.7@51750 git-svn-id: http://core.svn.wordpress.org/branches/5.7@51358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e3554a9aa7
commit
709e3315f3
|
@ -69,6 +69,33 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||
<div class="about__section changelog">
|
||||
<div class="column has-border has-subtle-background-color">
|
||||
<h2 class="is-smaller-heading"><?php _e( 'Maintenance and Security Releases' ); ?></h2>
|
||||
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: WordPress version number, 2: Plural number of bugs. More than one security issue. */
|
||||
_n(
|
||||
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
|
||||
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
|
||||
5
|
||||
),
|
||||
'5.7.3',
|
||||
number_format_i18n( 5 )
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: HelpHub URL. */
|
||||
__( 'For more information, see <a href="%s">the release notes</a>.' ),
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version. */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '5.7.3' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2508,6 +2508,14 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|||
padding-left: 12px;
|
||||
}
|
||||
|
||||
[data-rich-text-script] {
|
||||
display: inline;
|
||||
}
|
||||
[data-rich-text-script]::before {
|
||||
content: "</>";
|
||||
background: yellow;
|
||||
}
|
||||
|
||||
.block-editor-skip-to-selected-block {
|
||||
position: absolute;
|
||||
top: -9999em;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2512,6 +2512,14 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|||
padding-right: 12px;
|
||||
}
|
||||
|
||||
[data-rich-text-script] {
|
||||
display: inline;
|
||||
}
|
||||
[data-rich-text-script]::before {
|
||||
content: "</>";
|
||||
background: yellow;
|
||||
}
|
||||
|
||||
.block-editor-skip-to-selected-block {
|
||||
position: absolute;
|
||||
top: -9999em;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -120,7 +120,7 @@ __webpack_require__.d(actions_namespaceObject, "__experimentalRemoveAnnotation",
|
|||
__webpack_require__.d(actions_namespaceObject, "__experimentalUpdateAnnotationRange", function() { return __experimentalUpdateAnnotationRange; });
|
||||
__webpack_require__.d(actions_namespaceObject, "__experimentalRemoveAnnotationsBySource", function() { return __experimentalRemoveAnnotationsBySource; });
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
||||
var objectWithoutProperties = __webpack_require__("Ff2n");
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","richText"]
|
||||
|
@ -865,12 +865,30 @@ function _unsupportedIterableToArray(o, minLen) {
|
|||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("zLVn");
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _objectWithoutProperties; });
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
||||
var target = _objectWithoutPropertiesLoose(source, excluded);
|
||||
var key, i;
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
|
@ -1273,28 +1291,6 @@ function _defineProperty(obj, key, value) {
|
|||
return obj;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "zLVn":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
File diff suppressed because one or more lines are too long
|
@ -91,12 +91,30 @@ this["wp"] = this["wp"] || {}; this["wp"]["apiFetch"] =
|
|||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("zLVn");
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _objectWithoutProperties; });
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
||||
var target = _objectWithoutPropertiesLoose(source, excluded);
|
||||
var key, i;
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
|
@ -182,7 +200,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__("rePB");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
||||
var objectWithoutProperties = __webpack_require__("Ff2n");
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","i18n"]
|
||||
|
@ -956,28 +974,6 @@ function _defineProperty(obj, key, value) {
|
|||
return obj;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "zLVn":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ })["default"];
|
File diff suppressed because one or more lines are too long
|
@ -1862,7 +1862,7 @@ function InstalledBlocksPrePublishPanel() {
|
|||
}));
|
||||
}
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
||||
var objectWithoutProperties = __webpack_require__("Ff2n");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
|
@ -2102,12 +2102,30 @@ function _arrayWithHoles(arr) {
|
|||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("zLVn");
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _objectWithoutProperties; });
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
||||
var target = _objectWithoutPropertiesLoose(source, excluded);
|
||||
var key, i;
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
|
@ -2539,28 +2557,6 @@ function _extends() {
|
|||
|
||||
(function() { module.exports = window["wp"]["apiFetch"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "zLVn":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
File diff suppressed because one or more lines are too long
|
@ -948,12 +948,30 @@ function _arrayWithHoles(arr) {
|
|||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("zLVn");
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _objectWithoutProperties; });
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
||||
var target = _objectWithoutPropertiesLoose(source, excluded);
|
||||
var key, i;
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
|
@ -983,7 +1001,7 @@ function _objectWithoutProperties(source, excluded) {
|
|||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
||||
autosize 4.0.2
|
||||
autosize 4.0.4
|
||||
license: MIT
|
||||
http://www.jacklmoore.com/autosize
|
||||
*/
|
||||
|
@ -9102,7 +9120,7 @@ function __experimentalUseGradient() {
|
|||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||||
var slicedToArray = __webpack_require__("ODXe");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
||||
var objectWithoutProperties = __webpack_require__("Ff2n");
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors-gradients/control.js
|
||||
|
@ -20045,7 +20063,8 @@ var diff_character = __webpack_require__("iA5R");
|
|||
*/
|
||||
|
||||
|
||||
var block_view_BlockView = function BlockView(_ref) {
|
||||
|
||||
function BlockView(_ref) {
|
||||
var title = _ref.title,
|
||||
rawContent = _ref.rawContent,
|
||||
renderedContent = _ref.renderedContent,
|
||||
|
@ -20062,16 +20081,14 @@ var block_view_BlockView = function BlockView(_ref) {
|
|||
className: "block-editor-block-compare__html"
|
||||
}, rawContent), Object(external_wp_element_["createElement"])("div", {
|
||||
className: "block-editor-block-compare__preview edit-post-visual-editor"
|
||||
}, renderedContent)), Object(external_wp_element_["createElement"])("div", {
|
||||
}, Object(external_wp_element_["createElement"])(external_wp_element_["RawHTML"], null, Object(external_wp_dom_["safeHTML"])(renderedContent)))), Object(external_wp_element_["createElement"])("div", {
|
||||
className: "block-editor-block-compare__action"
|
||||
}, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
|
||||
isSecondary: true,
|
||||
tabIndex: "0",
|
||||
onClick: action
|
||||
}, actionText)));
|
||||
};
|
||||
|
||||
/* harmony default export */ var block_view = (block_view_BlockView);
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-compare/index.js
|
||||
|
||||
|
@ -20124,37 +20141,27 @@ function BlockCompare(_ref) {
|
|||
var newContent = newBlocks.map(function (item) {
|
||||
return Object(external_wp_blocks_["getSaveContent"])(item.name, item.attributes, item.innerBlocks);
|
||||
});
|
||||
var renderedContent = newBlocks.map(function (item) {
|
||||
return Object(external_wp_blocks_["getSaveElement"])(item.name, item.attributes, item.innerBlocks);
|
||||
});
|
||||
return {
|
||||
rawContent: newContent.join(''),
|
||||
renderedContent: renderedContent
|
||||
};
|
||||
return newContent.join('');
|
||||
}
|
||||
|
||||
var original = {
|
||||
rawContent: block.originalContent,
|
||||
renderedContent: Object(external_wp_blocks_["getSaveElement"])(block.name, block.attributes)
|
||||
};
|
||||
var converted = getConvertedContent(convertor(block));
|
||||
var difference = getDifference(original.rawContent, converted.rawContent);
|
||||
var difference = getDifference(block.originalContent, converted);
|
||||
return Object(external_wp_element_["createElement"])("div", {
|
||||
className: "block-editor-block-compare__wrapper"
|
||||
}, Object(external_wp_element_["createElement"])(block_view, {
|
||||
}, Object(external_wp_element_["createElement"])(BlockView, {
|
||||
title: Object(external_wp_i18n_["__"])('Current'),
|
||||
className: "block-editor-block-compare__current",
|
||||
action: onKeep,
|
||||
actionText: Object(external_wp_i18n_["__"])('Convert to HTML'),
|
||||
rawContent: original.rawContent,
|
||||
renderedContent: original.renderedContent
|
||||
}), Object(external_wp_element_["createElement"])(block_view, {
|
||||
rawContent: block.originalContent,
|
||||
renderedContent: block.originalContent
|
||||
}), Object(external_wp_element_["createElement"])(BlockView, {
|
||||
title: Object(external_wp_i18n_["__"])('After Conversion'),
|
||||
className: "block-editor-block-compare__converted",
|
||||
action: onConvert,
|
||||
actionText: convertButtonText,
|
||||
rawContent: difference,
|
||||
renderedContent: converted.renderedContent
|
||||
renderedContent: converted
|
||||
}));
|
||||
}
|
||||
|
||||
|
@ -28324,6 +28331,7 @@ function block_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
@ -28509,9 +28517,10 @@ function block_BlockListBlock(_ref2) {
|
|||
var block;
|
||||
|
||||
if (!isValid) {
|
||||
var saveContent = Object(external_wp_blocks_["getSaveContent"])(blockType, attributes);
|
||||
block = Object(external_wp_element_["createElement"])(Block, null, Object(external_wp_element_["createElement"])(block_invalid_warning, {
|
||||
clientId: clientId
|
||||
}), Object(external_wp_element_["createElement"])("div", null, Object(external_wp_blocks_["getSaveElement"])(blockType, attributes)));
|
||||
}), Object(external_wp_element_["createElement"])(external_wp_element_["RawHTML"], null, Object(external_wp_dom_["safeHTML"])(saveContent)));
|
||||
} else if (mode === 'html') {
|
||||
// Render blockEdit so the inspector controls don't disappear.
|
||||
// See #8969.
|
||||
|
@ -38457,28 +38466,6 @@ function _extends() {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ "zLVn":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "ziDm":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -87,6 +87,13 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockLibrary"] =
|
|||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ "1CF3":
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["dom"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "1K8p":
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
|
@ -1215,12 +1222,30 @@ return FastAverageColor;
|
|||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("zLVn");
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _objectWithoutProperties; });
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
||||
var target = _objectWithoutPropertiesLoose(source, excluded);
|
||||
var key, i;
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
|
@ -3392,7 +3417,7 @@ function index_module_classNames() {
|
|||
}).join(' ').trim();
|
||||
}
|
||||
|
||||
var css_248z = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n";
|
||||
var css_248z = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n";
|
||||
|
||||
var MIN_ZOOM = 1;
|
||||
var MAX_ZOOM = 3;
|
||||
|
@ -3759,7 +3784,7 @@ function (_super) {
|
|||
};
|
||||
|
||||
Cropper.prototype.componentDidUpdate = function (prevProps) {
|
||||
var _a, _b, _c, _d, _e, _f, _g, _h;
|
||||
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
||||
|
||||
if (prevProps.rotation !== this.props.rotation) {
|
||||
this.computeSizes();
|
||||
|
@ -3779,6 +3804,10 @@ function (_super) {
|
|||
passive: false
|
||||
}) : this.clearScrollEvent();
|
||||
}
|
||||
|
||||
if (prevProps.video !== this.props.video) {
|
||||
(_j = this.videoRef) === null || _j === void 0 ? void 0 : _j.load();
|
||||
}
|
||||
};
|
||||
|
||||
Cropper.prototype.getAspect = function () {
|
||||
|
@ -3845,7 +3874,8 @@ function (_super) {
|
|||
_d = _a.classes,
|
||||
containerClassName = _d.containerClassName,
|
||||
cropAreaClassName = _d.cropAreaClassName,
|
||||
mediaClassName = _d.mediaClassName;
|
||||
mediaClassName = _d.mediaClassName,
|
||||
objectFit = _a.objectFit;
|
||||
return /*#__PURE__*/external_React_default.a.createElement("div", {
|
||||
onMouseDown: this.onMouseDown,
|
||||
onTouchStart: this.onTouchStart,
|
||||
|
@ -3857,7 +3887,7 @@ function (_super) {
|
|||
className: index_module_classNames('reactEasyCrop_Container', containerClassName)
|
||||
}, image ? /*#__PURE__*/external_React_default.a.createElement("img", __assign({
|
||||
alt: "",
|
||||
className: index_module_classNames('reactEasyCrop_Image', mediaClassName)
|
||||
className: index_module_classNames('reactEasyCrop_Image', objectFit === 'contain' && 'reactEasyCrop_Contain', objectFit === 'horizontal-cover' && 'reactEasyCrop_Cover_Horizontal', objectFit === 'vertical-cover' && 'reactEasyCrop_Cover_Vertical', mediaClassName)
|
||||
}, mediaProps, {
|
||||
src: image,
|
||||
ref: function ref(el) {
|
||||
|
@ -3871,9 +3901,8 @@ function (_super) {
|
|||
autoPlay: true,
|
||||
loop: true,
|
||||
muted: true,
|
||||
className: index_module_classNames('reactEasyCrop_Video', mediaClassName)
|
||||
className: index_module_classNames('reactEasyCrop_Video', objectFit === 'contain' && 'reactEasyCrop_Contain', objectFit === 'horizontal-cover' && 'reactEasyCrop_Cover_Horizontal', objectFit === 'vertical-cover' && 'reactEasyCrop_Cover_Vertical', mediaClassName)
|
||||
}, mediaProps, {
|
||||
src: video,
|
||||
ref: function ref(el) {
|
||||
return _this.videoRef = el;
|
||||
},
|
||||
|
@ -3882,6 +3911,12 @@ function (_super) {
|
|||
transform: transform || "translate(" + x + "px, " + y + "px) rotate(" + rotation + "deg) scale(" + zoom + ")"
|
||||
}),
|
||||
controls: false
|
||||
}), (Array.isArray(video) ? video : [{
|
||||
src: video
|
||||
}]).map(function (item) {
|
||||
return /*#__PURE__*/external_React_default.a.createElement("source", __assign({
|
||||
key: item.src
|
||||
}, item));
|
||||
})), this.state.cropSize && /*#__PURE__*/external_React_default.a.createElement("div", {
|
||||
style: __assign(__assign({}, cropAreaStyle), {
|
||||
width: this.state.cropSize.width,
|
||||
|
@ -3899,6 +3934,7 @@ function (_super) {
|
|||
maxZoom: MAX_ZOOM,
|
||||
minZoom: MIN_ZOOM,
|
||||
cropShape: 'rect',
|
||||
objectFit: 'contain',
|
||||
showGrid: true,
|
||||
style: {},
|
||||
classes: {},
|
||||
|
@ -5835,7 +5871,7 @@ var heading = Object(external_wp_element_["createElement"])(external_wp_primitiv
|
|||
}));
|
||||
/* harmony default export */ var library_heading = (heading);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
||||
var objectWithoutProperties = __webpack_require__("Ff2n");
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/deprecated.js
|
||||
|
@ -19191,6 +19227,9 @@ var list_settings = {
|
|||
save: list_save_save
|
||||
};
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","dom"]
|
||||
var external_wp_dom_ = __webpack_require__("1CF3");
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/missing/edit.js
|
||||
|
||||
|
||||
|
@ -19204,6 +19243,7 @@ var list_settings = {
|
|||
|
||||
|
||||
|
||||
|
||||
function MissingBlockWarning(_ref) {
|
||||
var attributes = _ref.attributes,
|
||||
convertToHTML = _ref.convertToHTML;
|
||||
|
@ -19231,7 +19271,7 @@ function MissingBlockWarning(_ref) {
|
|||
|
||||
return Object(external_wp_element_["createElement"])("div", Object(external_wp_blockEditor_["useBlockProps"])(), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["Warning"], {
|
||||
actions: actions
|
||||
}, messageHTML), Object(external_wp_element_["createElement"])(external_wp_element_["RawHTML"], null, originalUndelimitedContent));
|
||||
}, messageHTML), Object(external_wp_element_["createElement"])(external_wp_element_["RawHTML"], null, Object(external_wp_dom_["safeHTML"])(originalUndelimitedContent)));
|
||||
}
|
||||
|
||||
var MissingEdit = Object(external_wp_data_["withDispatch"])(function (dispatch, _ref2) {
|
||||
|
@ -29782,28 +29822,6 @@ function _extends() {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ "zLVn":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "ziDm":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -96,37 +96,6 @@ function _iterableToArray(iter) {
|
|||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "3UD+":
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = function(originalModule) {
|
||||
if (!originalModule.webpackPolyfill) {
|
||||
var module = Object.create(originalModule);
|
||||
// module.parent = undefined by default
|
||||
if (!module.children) module.children = [];
|
||||
Object.defineProperty(module, "loaded", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return module.l;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(module, "id", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return module.i;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(module, "exports", {
|
||||
enumerable: true
|
||||
});
|
||||
module.webpackPolyfill = 1;
|
||||
}
|
||||
return module;
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "8mpt":
|
||||
|
@ -710,32 +679,6 @@ function _nonIterableRest() {
|
|||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "SLVX":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return symbolObservablePonyfill; });
|
||||
function symbolObservablePonyfill(root) {
|
||||
var result;
|
||||
var Symbol = root.Symbol;
|
||||
|
||||
if (typeof Symbol === 'function') {
|
||||
if (Symbol.observable) {
|
||||
result = Symbol.observable;
|
||||
} else {
|
||||
result = Symbol('observable');
|
||||
Symbol.observable = result;
|
||||
}
|
||||
} else {
|
||||
result = '@@observable';
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "XI5e":
|
||||
|
@ -776,33 +719,6 @@ function _arrayLikeToArray(arr, len) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ "bCCX":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var _ponyfill_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("SLVX");
|
||||
/* global window */
|
||||
|
||||
|
||||
var root;
|
||||
|
||||
if (typeof self !== 'undefined') {
|
||||
root = self;
|
||||
} else if (typeof window !== 'undefined') {
|
||||
root = window;
|
||||
} else if (typeof global !== 'undefined') {
|
||||
root = global;
|
||||
} else if (true) {
|
||||
root = module;
|
||||
} else {}
|
||||
|
||||
var result = Object(_ponyfill_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(root);
|
||||
/* harmony default export */ __webpack_exports__["a"] = (result);
|
||||
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("yLpj"), __webpack_require__("3UD+")(module)))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "cDcd":
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
|
@ -953,12 +869,61 @@ var external_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(ext
|
|||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
||||
var asyncToGenerator = __webpack_require__("HaE+");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/symbol-observable/es/index.js
|
||||
var es = __webpack_require__("bCCX");
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
||||
|
||||
|
||||
function ownKeys(object, enumerableOnly) {
|
||||
var keys = Object.keys(object);
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
var symbols = Object.getOwnPropertySymbols(object);
|
||||
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
||||
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
||||
});
|
||||
keys.push.apply(keys, symbols);
|
||||
}
|
||||
|
||||
return keys;
|
||||
}
|
||||
|
||||
function _objectSpread2(target) {
|
||||
for (var i = 1; i < arguments.length; i++) {
|
||||
var source = arguments[i] != null ? arguments[i] : {};
|
||||
|
||||
if (i % 2) {
|
||||
ownKeys(Object(source), true).forEach(function (key) {
|
||||
Object(defineProperty["a" /* default */])(target, key, source[key]);
|
||||
});
|
||||
} else if (Object.getOwnPropertyDescriptors) {
|
||||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
||||
} else {
|
||||
ownKeys(Object(source)).forEach(function (key) {
|
||||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/redux/es/redux.js
|
||||
|
||||
|
||||
/**
|
||||
* Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
|
||||
*
|
||||
* Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
|
||||
* during build.
|
||||
* @param {number} code
|
||||
*/
|
||||
function formatProdErrorMessage(code) {
|
||||
return "Minified Redux error #" + code + "; visit https://redux.js.org/Errors?code=" + code + " for the full message or " + 'use the non-minified dev environment for full errors. ';
|
||||
}
|
||||
|
||||
// Inlined version of the `symbol-observable` polyfill
|
||||
var $$observable = (function () {
|
||||
return typeof Symbol === 'function' && Symbol.observable || '@@observable';
|
||||
})();
|
||||
|
||||
/**
|
||||
* These are private action types reserved by Redux.
|
||||
* For any unknown actions, you must return the current state.
|
||||
|
@ -992,6 +957,63 @@ function isPlainObject(obj) {
|
|||
return Object.getPrototypeOf(obj) === proto;
|
||||
}
|
||||
|
||||
// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
|
||||
function miniKindOf(val) {
|
||||
if (val === void 0) return 'undefined';
|
||||
if (val === null) return 'null';
|
||||
var type = typeof val;
|
||||
|
||||
switch (type) {
|
||||
case 'boolean':
|
||||
case 'string':
|
||||
case 'number':
|
||||
case 'symbol':
|
||||
case 'function':
|
||||
{
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
||||
if (Array.isArray(val)) return 'array';
|
||||
if (isDate(val)) return 'date';
|
||||
if (isError(val)) return 'error';
|
||||
var constructorName = ctorName(val);
|
||||
|
||||
switch (constructorName) {
|
||||
case 'Symbol':
|
||||
case 'Promise':
|
||||
case 'WeakMap':
|
||||
case 'WeakSet':
|
||||
case 'Map':
|
||||
case 'Set':
|
||||
return constructorName;
|
||||
} // other
|
||||
|
||||
|
||||
return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
|
||||
}
|
||||
|
||||
function ctorName(val) {
|
||||
return typeof val.constructor === 'function' ? val.constructor.name : null;
|
||||
}
|
||||
|
||||
function isError(val) {
|
||||
return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
|
||||
}
|
||||
|
||||
function isDate(val) {
|
||||
if (val instanceof Date) return true;
|
||||
return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
|
||||
}
|
||||
|
||||
function kindOf(val) {
|
||||
var typeOfVal = typeof val;
|
||||
|
||||
if (false) {}
|
||||
|
||||
return typeOfVal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a Redux store that holds the state tree.
|
||||
* The only way to change the data in the store is to call `dispatch()` on it.
|
||||
|
@ -1018,11 +1040,11 @@ function isPlainObject(obj) {
|
|||
* and subscribe to changes.
|
||||
*/
|
||||
|
||||
function createStore(reducer, preloadedState, enhancer) {
|
||||
function redux_createStore(reducer, preloadedState, enhancer) {
|
||||
var _ref2;
|
||||
|
||||
if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
|
||||
throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.');
|
||||
throw new Error( true ? formatProdErrorMessage(0) : undefined);
|
||||
}
|
||||
|
||||
if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
|
||||
|
@ -1032,14 +1054,14 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
|
||||
if (typeof enhancer !== 'undefined') {
|
||||
if (typeof enhancer !== 'function') {
|
||||
throw new Error('Expected the enhancer to be a function.');
|
||||
throw new Error( true ? formatProdErrorMessage(1) : undefined);
|
||||
}
|
||||
|
||||
return enhancer(createStore)(reducer, preloadedState);
|
||||
return enhancer(redux_createStore)(reducer, preloadedState);
|
||||
}
|
||||
|
||||
if (typeof reducer !== 'function') {
|
||||
throw new Error('Expected the reducer to be a function.');
|
||||
throw new Error( true ? formatProdErrorMessage(2) : undefined);
|
||||
}
|
||||
|
||||
var currentReducer = reducer;
|
||||
|
@ -1069,7 +1091,7 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
|
||||
function getState() {
|
||||
if (isDispatching) {
|
||||
throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');
|
||||
throw new Error( true ? formatProdErrorMessage(3) : undefined);
|
||||
}
|
||||
|
||||
return currentState;
|
||||
|
@ -1101,11 +1123,11 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
|
||||
function subscribe(listener) {
|
||||
if (typeof listener !== 'function') {
|
||||
throw new Error('Expected the listener to be a function.');
|
||||
throw new Error( true ? formatProdErrorMessage(4) : undefined);
|
||||
}
|
||||
|
||||
if (isDispatching) {
|
||||
throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');
|
||||
throw new Error( true ? formatProdErrorMessage(5) : undefined);
|
||||
}
|
||||
|
||||
var isSubscribed = true;
|
||||
|
@ -1117,7 +1139,7 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
}
|
||||
|
||||
if (isDispatching) {
|
||||
throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');
|
||||
throw new Error( true ? formatProdErrorMessage(6) : undefined);
|
||||
}
|
||||
|
||||
isSubscribed = false;
|
||||
|
@ -1156,15 +1178,15 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
|
||||
function dispatch(action) {
|
||||
if (!isPlainObject(action)) {
|
||||
throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');
|
||||
throw new Error( true ? formatProdErrorMessage(7) : undefined);
|
||||
}
|
||||
|
||||
if (typeof action.type === 'undefined') {
|
||||
throw new Error('Actions may not have an undefined "type" property. ' + 'Have you misspelled a constant?');
|
||||
throw new Error( true ? formatProdErrorMessage(8) : undefined);
|
||||
}
|
||||
|
||||
if (isDispatching) {
|
||||
throw new Error('Reducers may not dispatch actions.');
|
||||
throw new Error( true ? formatProdErrorMessage(9) : undefined);
|
||||
}
|
||||
|
||||
try {
|
||||
|
@ -1197,7 +1219,7 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
|
||||
function replaceReducer(nextReducer) {
|
||||
if (typeof nextReducer !== 'function') {
|
||||
throw new Error('Expected the nextReducer to be a function.');
|
||||
throw new Error( true ? formatProdErrorMessage(10) : undefined);
|
||||
}
|
||||
|
||||
currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
|
||||
|
@ -1232,7 +1254,7 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
*/
|
||||
subscribe: function subscribe(observer) {
|
||||
if (typeof observer !== 'object' || observer === null) {
|
||||
throw new TypeError('Expected the observer to be an object.');
|
||||
throw new Error( true ? formatProdErrorMessage(11) : undefined);
|
||||
}
|
||||
|
||||
function observeState() {
|
||||
|
@ -1247,7 +1269,7 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
unsubscribe: unsubscribe
|
||||
};
|
||||
}
|
||||
}, _ref[es["a" /* default */]] = function () {
|
||||
}, _ref[$$observable] = function () {
|
||||
return this;
|
||||
}, _ref;
|
||||
} // When a store is created, an "INIT" action is dispatched so that every
|
||||
|
@ -1263,7 +1285,7 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
subscribe: subscribe,
|
||||
getState: getState,
|
||||
replaceReducer: replaceReducer
|
||||
}, _ref2[es["a" /* default */]] = observable, _ref2;
|
||||
}, _ref2[$$observable] = observable, _ref2;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1289,12 +1311,6 @@ function warning(message) {
|
|||
|
||||
}
|
||||
|
||||
function getUndefinedStateErrorMessage(key, action) {
|
||||
var actionType = action && action.type;
|
||||
var actionDescription = actionType && "action \"" + String(actionType) + "\"" || 'an action';
|
||||
return "Given " + actionDescription + ", reducer \"" + key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.";
|
||||
}
|
||||
|
||||
function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
|
||||
var reducerKeys = Object.keys(reducers);
|
||||
var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
|
||||
|
@ -1304,7 +1320,7 @@ function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, une
|
|||
}
|
||||
|
||||
if (!isPlainObject(inputState)) {
|
||||
return "The " + argumentName + " has unexpected type of \"" + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
|
||||
return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
|
||||
}
|
||||
|
||||
var unexpectedKeys = Object.keys(inputState).filter(function (key) {
|
||||
|
@ -1328,13 +1344,13 @@ function assertReducerShape(reducers) {
|
|||
});
|
||||
|
||||
if (typeof initialState === 'undefined') {
|
||||
throw new Error("Reducer \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
|
||||
throw new Error( true ? formatProdErrorMessage(12) : undefined);
|
||||
}
|
||||
|
||||
if (typeof reducer(undefined, {
|
||||
type: ActionTypes.PROBE_UNKNOWN_ACTION()
|
||||
}) === 'undefined') {
|
||||
throw new Error("Reducer \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle " + ActionTypes.INIT + " or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
|
||||
throw new Error( true ? formatProdErrorMessage(13) : undefined);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -1406,8 +1422,8 @@ function combineReducers(reducers) {
|
|||
var nextStateForKey = reducer(previousStateForKey, action);
|
||||
|
||||
if (typeof nextStateForKey === 'undefined') {
|
||||
var errorMessage = getUndefinedStateErrorMessage(_key, action);
|
||||
throw new Error(errorMessage);
|
||||
var actionType = action && action.type;
|
||||
throw new Error( true ? formatProdErrorMessage(14) : undefined);
|
||||
}
|
||||
|
||||
nextState[_key] = nextStateForKey;
|
||||
|
@ -1453,7 +1469,7 @@ function bindActionCreators(actionCreators, dispatch) {
|
|||
}
|
||||
|
||||
if (typeof actionCreators !== 'object' || actionCreators === null) {
|
||||
throw new Error("bindActionCreators expected an object or a function, instead received " + (actionCreators === null ? 'null' : typeof actionCreators) + ". " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
|
||||
throw new Error( true ? formatProdErrorMessage(16) : undefined);
|
||||
}
|
||||
|
||||
var boundActionCreators = {};
|
||||
|
@ -1469,54 +1485,6 @@ function bindActionCreators(actionCreators, dispatch) {
|
|||
return boundActionCreators;
|
||||
}
|
||||
|
||||
function _defineProperty(obj, key, value) {
|
||||
if (key in obj) {
|
||||
Object.defineProperty(obj, key, {
|
||||
value: value,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
} else {
|
||||
obj[key] = value;
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
function ownKeys(object, enumerableOnly) {
|
||||
var keys = Object.keys(object);
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
keys.push.apply(keys, Object.getOwnPropertySymbols(object));
|
||||
}
|
||||
|
||||
if (enumerableOnly) keys = keys.filter(function (sym) {
|
||||
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
||||
});
|
||||
return keys;
|
||||
}
|
||||
|
||||
function _objectSpread2(target) {
|
||||
for (var i = 1; i < arguments.length; i++) {
|
||||
var source = arguments[i] != null ? arguments[i] : {};
|
||||
|
||||
if (i % 2) {
|
||||
ownKeys(source, true).forEach(function (key) {
|
||||
_defineProperty(target, key, source[key]);
|
||||
});
|
||||
} else if (Object.getOwnPropertyDescriptors) {
|
||||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
||||
} else {
|
||||
ownKeys(source).forEach(function (key) {
|
||||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/**
|
||||
* Composes single-argument functions from right to left. The rightmost
|
||||
* function can take multiple arguments as it provides the signature for
|
||||
|
@ -1576,7 +1544,7 @@ function applyMiddleware() {
|
|||
var store = createStore.apply(void 0, arguments);
|
||||
|
||||
var _dispatch = function dispatch() {
|
||||
throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
|
||||
throw new Error( true ? formatProdErrorMessage(15) : undefined);
|
||||
};
|
||||
|
||||
var middlewareAPI = {
|
||||
|
@ -1589,7 +1557,7 @@ function applyMiddleware() {
|
|||
return middleware(middlewareAPI);
|
||||
});
|
||||
_dispatch = compose.apply(void 0, chain)(store.dispatch);
|
||||
return _objectSpread2({}, store, {
|
||||
return _objectSpread2(_objectSpread2({}, store), {}, {
|
||||
dispatch: _dispatch
|
||||
});
|
||||
};
|
||||
|
@ -2488,7 +2456,7 @@ function instantiateReduxStore(key, options, registry, thunkArgs) {
|
|||
metadata: metadata_reducer,
|
||||
root: reducer
|
||||
});
|
||||
return createStore(enhancedReducer, {
|
||||
return redux_createStore(enhancedReducer, {
|
||||
root: initialState
|
||||
}, Object(external_lodash_["flowRight"])(enhancers));
|
||||
}
|
||||
|
@ -4447,33 +4415,6 @@ function _extends() {
|
|||
return _extends.apply(this, arguments);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "yLpj":
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
var g;
|
||||
|
||||
// This works in non-strict mode
|
||||
g = (function() {
|
||||
return this;
|
||||
})();
|
||||
|
||||
try {
|
||||
// This works if eval is allowed (see CSP)
|
||||
g = g || new Function("return this")();
|
||||
} catch (e) {
|
||||
// This works if the window reference is available
|
||||
if (typeof window === "object") g = window;
|
||||
}
|
||||
|
||||
// g can still be undefined, but nothing to do about it...
|
||||
// We return undefined, instead of nothing here, so it's
|
||||
// easier to handle this case. if(!global) { ...}
|
||||
|
||||
module.exports = g;
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
File diff suppressed because one or more lines are too long
|
@ -134,6 +134,7 @@ __webpack_require__.d(__webpack_exports__, "getPhrasingContentSchema", function(
|
|||
__webpack_require__.d(__webpack_exports__, "isPhrasingContent", function() { return /* reexport */ isPhrasingContent; });
|
||||
__webpack_require__.d(__webpack_exports__, "isTextContent", function() { return /* reexport */ isTextContent; });
|
||||
__webpack_require__.d(__webpack_exports__, "getFilesFromDataTransfer", function() { return /* reexport */ getFilesFromDataTransfer; });
|
||||
__webpack_require__.d(__webpack_exports__, "safeHTML", function() { return /* reexport */ safeHTML; });
|
||||
|
||||
// NAMESPACE OBJECT: ./node_modules/@wordpress/dom/build-module/focusable.js
|
||||
var focusable_namespaceObject = {};
|
||||
|
@ -1540,6 +1541,48 @@ function getFilesFromDataTransfer(dataTransfer) {
|
|||
return files;
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/safe-html.js
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
/**
|
||||
* Strips scripts and on* attributes from HTML.
|
||||
*
|
||||
* @param {string} html HTML to sanitize.
|
||||
*
|
||||
* @return {string} The sanitized HTML.
|
||||
*/
|
||||
|
||||
function safeHTML(html) {
|
||||
var _document$implementat = document.implementation.createHTMLDocument(''),
|
||||
body = _document$implementat.body;
|
||||
|
||||
body.innerHTML = html;
|
||||
var elements = body.getElementsByTagName('*');
|
||||
var elementIndex = elements.length;
|
||||
|
||||
while (elementIndex--) {
|
||||
var element = elements[elementIndex];
|
||||
|
||||
if (element.tagName === 'SCRIPT') {
|
||||
remove(element);
|
||||
} else {
|
||||
var attributeIndex = element.attributes.length;
|
||||
|
||||
while (attributeIndex--) {
|
||||
var key = element.attributes[attributeIndex].name;
|
||||
|
||||
if (key.startsWith('on')) {
|
||||
element.removeAttribute(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return body.innerHTML;
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/index.js
|
||||
/**
|
||||
* Internal dependencies
|
||||
|
@ -1560,6 +1603,7 @@ var build_module_focus = {
|
|||
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "BsWD":
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -387,12 +387,30 @@ function _arrayWithHoles(arr) {
|
|||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("zLVn");
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _objectWithoutProperties; });
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
||||
var target = _objectWithoutPropertiesLoose(source, excluded);
|
||||
var key, i;
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
|
@ -2409,7 +2427,7 @@ Object(external_wp_data_["registerStore"])(STORE_NAME, {
|
|||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__("wx14");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
||||
var objectWithoutProperties = __webpack_require__("Ff2n");
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","element"]
|
||||
|
@ -3589,7 +3607,7 @@ Object(external_wp_hooks_["addFilter"])('editor.MediaUpload', 'core/edit-post/re
|
|||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__("wx14");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
||||
var objectWithoutProperties = __webpack_require__("Ff2n");
|
||||
|
||||
// EXTERNAL MODULE: external "lodash"
|
||||
|
@ -9685,28 +9703,6 @@ PluginDocumentSettingPanel.Slot = Slot;
|
|||
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("8oxB")))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "zLVn":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
File diff suppressed because one or more lines are too long
|
@ -422,12 +422,30 @@ function _arrayWithHoles(arr) {
|
|||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("zLVn");
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _objectWithoutProperties; });
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
||||
var target = _objectWithoutPropertiesLoose(source, excluded);
|
||||
var key, i;
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
|
@ -464,7 +482,7 @@ function _objectWithoutProperties(source, excluded) {
|
|||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
||||
autosize 4.0.2
|
||||
autosize 4.0.4
|
||||
license: MIT
|
||||
http://www.jacklmoore.com/autosize
|
||||
*/
|
||||
|
@ -1293,7 +1311,7 @@ var defineProperty = __webpack_require__("rePB");
|
|||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||||
var slicedToArray = __webpack_require__("ODXe");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
||||
var objectWithoutProperties = __webpack_require__("Ff2n");
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","element"]
|
||||
|
@ -13034,28 +13052,6 @@ function _extends() {
|
|||
|
||||
(function() { module.exports = window["wp"]["apiFetch"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "zLVn":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
File diff suppressed because one or more lines are too long
|
@ -131,12 +131,30 @@ function _arrayWithHoles(arr) {
|
|||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("zLVn");
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _objectWithoutProperties; });
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
||||
var target = _objectWithoutPropertiesLoose(source, excluded);
|
||||
var key, i;
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
|
@ -734,7 +752,7 @@ function closeOuterElement(endOffset) {
|
|||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__("rePB");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
||||
var objectWithoutProperties = __webpack_require__("Ff2n");
|
||||
|
||||
// EXTERNAL MODULE: external "lodash"
|
||||
|
@ -1659,28 +1677,6 @@ function _defineProperty(obj, key, value) {
|
|||
return obj;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "zLVn":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
File diff suppressed because one or more lines are too long
|
@ -202,12 +202,30 @@ function _arrayWithHoles(arr) {
|
|||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("zLVn");
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _objectWithoutProperties; });
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
||||
var target = _objectWithoutPropertiesLoose(source, excluded);
|
||||
var key, i;
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
|
@ -524,7 +542,7 @@ function _defineProperty(obj, key, value) {
|
|||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
||||
var objectWithoutProperties = __webpack_require__("Ff2n");
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","richText"]
|
||||
|
@ -1862,28 +1880,6 @@ var textColor = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl
|
|||
/* harmony default export */ __webpack_exports__["a"] = (textColor);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "zLVn":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
File diff suppressed because one or more lines are too long
|
@ -91,12 +91,30 @@ this["wp"] = this["wp"] || {}; this["wp"]["primitives"] =
|
|||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("zLVn");
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _objectWithoutProperties; });
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
||||
var target = _objectWithoutPropertiesLoose(source, excluded);
|
||||
var key, i;
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
|
@ -140,7 +158,7 @@ __webpack_require__.d(__webpack_exports__, "View", function() { return /* reexpo
|
|||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__("rePB");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
||||
var objectWithoutProperties = __webpack_require__("Ff2n");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
|
@ -380,28 +398,6 @@ function _defineProperty(obj, key, value) {
|
|||
return obj;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "zLVn":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
|
@ -1,7 +1,7 @@
|
|||
/*! This file is auto-generated */
|
||||
this.wp=this.wp||{},this.wp.primitives=function(e){var t={};function r(n){if(t[n])return t[n].exports;var u=t[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)r.d(n,u,function(t){return e[t]}.bind(null,u));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="G8AQ")}({Ff2n:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r("zLVn");function u(e,t){if(null==e)return{};var r,u,o=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(u=0;u<c.length;u++)r=c[u],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},G8AQ:function(e,t,r){"use strict";r.r(t),r.d(t,"Circle",(function(){return l})),r.d(t,"G",(function(){return s})),r.d(t,"Path",(function(){return p})),r.d(t,"Polygon",(function(){return d})),r.d(t,"Rect",(function(){return b})),r.d(t,"Defs",(function(){return O})),r.d(t,"RadialGradient",(function(){return y})),r.d(t,"LinearGradient",(function(){return j})),r.d(t,"Stop",(function(){return v})),r.d(t,"SVG",(function(){return m})),r.d(t,"HorizontalRule",(function(){return g})),r.d(t,"BlockQuotation",(function(){return P})),r.d(t,"View",(function(){return h}));var n=r("rePB"),u=r("Ff2n"),o=r("TSYQ"),c=r.n(o),i=r("GRId");function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var l=function(e){return Object(i.createElement)("circle",e)},s=function(e){return Object(i.createElement)("g",e)},p=function(e){return Object(i.createElement)("path",e)},d=function(e){return Object(i.createElement)("polygon",e)},b=function(e){return Object(i.createElement)("rect",e)},O=function(e){return Object(i.createElement)("defs",e)},y=function(e){return Object(i.createElement)("radialGradient",e)},j=function(e){return Object(i.createElement)("linearGradient",e)},v=function(e){return Object(i.createElement)("stop",e)},m=function(e){var t=e.className,r=e.isPressed,n=a(a({},Object(u.a)(e,["className","isPressed"])),{},{className:c()(t,{"is-pressed":r})||void 0,role:"img","aria-hidden":!0,focusable:!1});return Object(i.createElement)("svg",n)},g="hr",P="blockquote",h="div"},GRId:function(e,t){e.exports=window.wp.element},TSYQ:function(e,t,r){var n;
|
||||
this.wp=this.wp||{},this.wp.primitives=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="G8AQ")}({Ff2n:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,"a",(function(){return n}))},G8AQ:function(e,t,r){"use strict";r.r(t),r.d(t,"Circle",(function(){return l})),r.d(t,"G",(function(){return s})),r.d(t,"Path",(function(){return p})),r.d(t,"Polygon",(function(){return d})),r.d(t,"Rect",(function(){return b})),r.d(t,"Defs",(function(){return O})),r.d(t,"RadialGradient",(function(){return y})),r.d(t,"LinearGradient",(function(){return j})),r.d(t,"Stop",(function(){return v})),r.d(t,"SVG",(function(){return m})),r.d(t,"HorizontalRule",(function(){return g})),r.d(t,"BlockQuotation",(function(){return P})),r.d(t,"View",(function(){return h}));var n=r("rePB"),o=r("Ff2n"),u=r("TSYQ"),c=r.n(u),i=r("GRId");function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var l=function(e){return Object(i.createElement)("circle",e)},s=function(e){return Object(i.createElement)("g",e)},p=function(e){return Object(i.createElement)("path",e)},d=function(e){return Object(i.createElement)("polygon",e)},b=function(e){return Object(i.createElement)("rect",e)},O=function(e){return Object(i.createElement)("defs",e)},y=function(e){return Object(i.createElement)("radialGradient",e)},j=function(e){return Object(i.createElement)("linearGradient",e)},v=function(e){return Object(i.createElement)("stop",e)},m=function(e){var t=e.className,r=e.isPressed,n=a(a({},Object(o.a)(e,["className","isPressed"])),{},{className:c()(t,{"is-pressed":r})||void 0,role:"img","aria-hidden":!0,focusable:!1});return Object(i.createElement)("svg",n)},g="hr",P="blockquote",h="div"},GRId:function(e,t){e.exports=window.wp.element},TSYQ:function(e,t,r){var n;
|
||||
/*!
|
||||
Copyright (c) 2017 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
http://jedwatson.github.io/classnames
|
||||
*/!function(){"use strict";var r={}.hasOwnProperty;function u(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var c=u.apply(null,n);c&&e.push(c)}else if("object"===o)for(var i in n)r.call(n,i)&&n[i]&&e.push(i)}}return e.join(" ")}e.exports?(u.default=u,e.exports=u):void 0===(n=function(){return u}.apply(t,[]))||(e.exports=n)}()},rePB:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},zLVn:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,u={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(u[r]=e[r]);return u}r.d(t,"a",(function(){return n}))}});
|
||||
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var u=typeof n;if("string"===u||"number"===u)e.push(n);else if(Array.isArray(n)&&n.length){var c=o.apply(null,n);c&&e.push(c)}else if("object"===u)for(var i in n)r.call(n,i)&&n[i]&&e.push(i)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},rePB:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))}});
|
|
@ -1520,6 +1520,22 @@ function createFromElement(_ref3) {
|
|||
return "continue";
|
||||
}
|
||||
|
||||
if (type === 'script') {
|
||||
var _value = {
|
||||
formats: [,],
|
||||
replacements: [{
|
||||
type: type,
|
||||
attributes: {
|
||||
'data-rich-text-script': node.getAttribute('data-rich-text-script') || encodeURIComponent(node.innerHTML)
|
||||
}
|
||||
}],
|
||||
text: OBJECT_REPLACEMENT_CHARACTER
|
||||
};
|
||||
accumulateSelection(accumulator, node, range, _value);
|
||||
mergePair(accumulator, _value);
|
||||
return "continue";
|
||||
}
|
||||
|
||||
if (type === 'br') {
|
||||
accumulateSelection(accumulator, node, range, createEmptyValue());
|
||||
mergePair(accumulator, create({
|
||||
|
@ -1539,7 +1555,7 @@ function createFromElement(_ref3) {
|
|||
var format = isFormatEqual(newFormat, lastFormat) ? lastFormat : newFormat;
|
||||
|
||||
if (multilineWrapperTags && multilineWrapperTags.indexOf(type) !== -1) {
|
||||
var _value = createFromMultilineElement({
|
||||
var _value2 = createFromMultilineElement({
|
||||
element: node,
|
||||
range: range,
|
||||
multilineTag: multilineTag,
|
||||
|
@ -1549,8 +1565,8 @@ function createFromElement(_ref3) {
|
|||
preserveWhiteSpace: preserveWhiteSpace
|
||||
});
|
||||
|
||||
accumulateSelection(accumulator, node, range, _value);
|
||||
mergePair(accumulator, _value);
|
||||
accumulateSelection(accumulator, node, range, _value2);
|
||||
mergePair(accumulator, _value2);
|
||||
return "continue";
|
||||
}
|
||||
|
||||
|
@ -1704,8 +1720,9 @@ function getAttributes(_ref5) {
|
|||
continue;
|
||||
}
|
||||
|
||||
var safeName = /^on/i.test(name) ? 'data-disable-rich-text-' + name : name;
|
||||
accumulator = accumulator || {};
|
||||
accumulator[name] = value;
|
||||
accumulator[safeName] = value;
|
||||
}
|
||||
|
||||
return accumulator;
|
||||
|
@ -2720,6 +2737,26 @@ function to_tree_objectSpread(target) { for (var i = 1; i < arguments.length; i+
|
|||
|
||||
|
||||
|
||||
|
||||
function restoreOnAttributes(attributes, isEditableTree) {
|
||||
if (isEditableTree) {
|
||||
return attributes;
|
||||
}
|
||||
|
||||
var newAttributes = {};
|
||||
|
||||
for (var key in attributes) {
|
||||
var newKey = key;
|
||||
|
||||
if (key.startsWith('data-disable-rich-text-')) {
|
||||
newKey = key.slice('data-disable-rich-text-'.length);
|
||||
}
|
||||
|
||||
newAttributes[newKey] = attributes[key];
|
||||
}
|
||||
|
||||
return newAttributes;
|
||||
}
|
||||
/**
|
||||
* Converts a format object to information that can be used to create an element
|
||||
* from (type, attributes and object).
|
||||
|
@ -2733,16 +2770,19 @@ function to_tree_objectSpread(target) { for (var i = 1; i < arguments.length; i+
|
|||
* format.
|
||||
* @param {boolean} $1.boundaryClass Whether or not to apply a boundary
|
||||
* class.
|
||||
* @param {boolean} $1.isEditableTree
|
||||
* @return {Object} Information to be used for
|
||||
* element creation.
|
||||
*/
|
||||
|
||||
|
||||
function fromFormat(_ref) {
|
||||
var type = _ref.type,
|
||||
attributes = _ref.attributes,
|
||||
unregisteredAttributes = _ref.unregisteredAttributes,
|
||||
object = _ref.object,
|
||||
boundaryClass = _ref.boundaryClass;
|
||||
boundaryClass = _ref.boundaryClass,
|
||||
isEditableTree = _ref.isEditableTree;
|
||||
var formatType = get_format_type_getFormatType(type);
|
||||
var elementAttributes = {};
|
||||
|
||||
|
@ -2757,7 +2797,7 @@ function fromFormat(_ref) {
|
|||
|
||||
return {
|
||||
type: type,
|
||||
attributes: elementAttributes,
|
||||
attributes: restoreOnAttributes(elementAttributes, isEditableTree),
|
||||
object: object
|
||||
};
|
||||
}
|
||||
|
@ -2785,7 +2825,7 @@ function fromFormat(_ref) {
|
|||
return {
|
||||
type: formatType.tagName,
|
||||
object: formatType.object,
|
||||
attributes: elementAttributes
|
||||
attributes: restoreOnAttributes(elementAttributes, isEditableTree)
|
||||
};
|
||||
}
|
||||
/**
|
||||
|
@ -2915,7 +2955,8 @@ function toTree(_ref2) {
|
|||
type: type,
|
||||
attributes: attributes,
|
||||
unregisteredAttributes: unregisteredAttributes,
|
||||
boundaryClass: boundaryClass
|
||||
boundaryClass: boundaryClass,
|
||||
isEditableTree: isEditableTree
|
||||
}));
|
||||
|
||||
if (isText(pointer) && getText(pointer).length === 0) {
|
||||
|
@ -2945,9 +2986,21 @@ function toTree(_ref2) {
|
|||
}
|
||||
|
||||
if (character === OBJECT_REPLACEMENT_CHARACTER) {
|
||||
pointer = append(getParent(pointer), fromFormat(to_tree_objectSpread(to_tree_objectSpread({}, replacements[i]), {}, {
|
||||
object: true
|
||||
}))); // Ensure pointer is text node.
|
||||
if (!isEditableTree && replacements[i].type === 'script') {
|
||||
pointer = append(getParent(pointer), fromFormat({
|
||||
type: 'script',
|
||||
isEditableTree: isEditableTree
|
||||
}));
|
||||
append(pointer, {
|
||||
html: decodeURIComponent(replacements[i].attributes['data-rich-text-script'])
|
||||
});
|
||||
} else {
|
||||
pointer = append(getParent(pointer), fromFormat(to_tree_objectSpread(to_tree_objectSpread({}, replacements[i]), {}, {
|
||||
object: true,
|
||||
isEditableTree: isEditableTree
|
||||
})));
|
||||
} // Ensure pointer is text node.
|
||||
|
||||
|
||||
pointer = append(getParent(pointer), '');
|
||||
} else if (!preserveWhiteSpace && character === '\n') {
|
||||
|
@ -3456,6 +3509,10 @@ function createElementHTML(_ref6) {
|
|||
function createChildrenHTML() {
|
||||
var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
||||
return children.map(function (child) {
|
||||
if (child.html !== undefined) {
|
||||
return child.html;
|
||||
}
|
||||
|
||||
return child.text === undefined ? createElementHTML(child) : Object(external_wp_escapeHtml_["escapeEditableHTML"])(child.text);
|
||||
}).join('');
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -120,7 +120,7 @@ var esm_extends = __webpack_require__("wx14");
|
|||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__("rePB");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
||||
var objectWithoutProperties = __webpack_require__("Ff2n");
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","element"]
|
||||
|
@ -434,12 +434,30 @@ if (window && window.wp && window.wp.components) {
|
|||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("zLVn");
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _objectWithoutProperties; });
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
||||
var target = _objectWithoutPropertiesLoose(source, excluded);
|
||||
var key, i;
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
|
@ -686,28 +704,6 @@ function _extends() {
|
|||
|
||||
(function() { module.exports = window["wp"]["apiFetch"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "zLVn":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ })["default"];
|
File diff suppressed because one or more lines are too long
|
@ -98,7 +98,7 @@ function wp_default_packages_vendor( $scripts ) {
|
|||
'react' => '16.13.1',
|
||||
'react-dom' => '16.13.1',
|
||||
'moment' => '2.26.0',
|
||||
'lodash' => '4.17.19',
|
||||
'lodash' => '4.17.21',
|
||||
'wp-polyfill-fetch' => '3.0.0',
|
||||
'wp-polyfill-formdata' => '3.0.12',
|
||||
'wp-polyfill-node-contains' => '3.42.0',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.7.3-alpha-51742';
|
||||
$wp_version = '5.7.3-alpha-51750';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue