Editor: Update packages
@wordpress/block-directory@1.17.2 @wordpress/block-editor@5.1.2 @wordpress/block-library@2.26.2 @wordpress/edit-post@3.25.2 @wordpress/editor@9.24.2 @wordpress/format-library@1.25.2 @wordpress/reusable-blocks@1.0.2 Props isabel_brison. See #51696. Built from https://develop.svn.wordpress.org/trunk@49473 git-svn-id: http://core.svn.wordpress.org/trunk@49232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f39fc10544
commit
cfa1fb8c83
File diff suppressed because one or more lines are too long
|
@ -3,7 +3,7 @@
|
|||
"name": "core/heading",
|
||||
"category": "text",
|
||||
"attributes": {
|
||||
"align": {
|
||||
"textAlign": {
|
||||
"type": "string"
|
||||
},
|
||||
"content": {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"apiVersion": 2,
|
||||
"name": "core/latest-posts",
|
||||
"category": "widgets",
|
||||
"attributes": {
|
||||
|
|
|
@ -1083,27 +1083,26 @@
|
|||
.block-editor-block-preview__container.editor-styles-wrapper {
|
||||
padding: 0;
|
||||
margin: 0; }
|
||||
|
||||
.block-editor-block-preview__content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
transform-origin: top right;
|
||||
text-align: initial;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
min-height: auto; }
|
||||
.block-editor-block-preview__content .block-editor-block-list__insertion-point,
|
||||
.block-editor-block-preview__content .block-editor-block-drop-zone,
|
||||
.block-editor-block-preview__content .reusable-block-indicator,
|
||||
.block-editor-block-preview__content .block-list-appender {
|
||||
display: none; }
|
||||
.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container {
|
||||
padding-right: 0;
|
||||
padding-left: 0; }
|
||||
.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container > .wp-block[data-align="full"] {
|
||||
margin-right: 0;
|
||||
margin-left: 0; }
|
||||
.block-editor-block-preview__container .block-editor-block-preview__content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
transform-origin: top right;
|
||||
text-align: initial;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
min-height: auto; }
|
||||
.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,
|
||||
.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-drop-zone,
|
||||
.block-editor-block-preview__container .block-editor-block-preview__content .reusable-block-indicator,
|
||||
.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender {
|
||||
display: none; }
|
||||
.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__layout.is-root-container {
|
||||
padding-right: 0;
|
||||
padding-left: 0; }
|
||||
.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__layout.is-root-container > .wp-block[data-align="full"] {
|
||||
margin-right: 0;
|
||||
margin-left: 0; }
|
||||
|
||||
.block-editor-block-settings-menu__popover .components-dropdown-menu__menu {
|
||||
padding: 0; }
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1087,27 +1087,26 @@
|
|||
.block-editor-block-preview__container.editor-styles-wrapper {
|
||||
padding: 0;
|
||||
margin: 0; }
|
||||
|
||||
.block-editor-block-preview__content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
transform-origin: top left;
|
||||
text-align: initial;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
min-height: auto; }
|
||||
.block-editor-block-preview__content .block-editor-block-list__insertion-point,
|
||||
.block-editor-block-preview__content .block-editor-block-drop-zone,
|
||||
.block-editor-block-preview__content .reusable-block-indicator,
|
||||
.block-editor-block-preview__content .block-list-appender {
|
||||
display: none; }
|
||||
.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container {
|
||||
padding-left: 0;
|
||||
padding-right: 0; }
|
||||
.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container > .wp-block[data-align="full"] {
|
||||
margin-left: 0;
|
||||
margin-right: 0; }
|
||||
.block-editor-block-preview__container .block-editor-block-preview__content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
transform-origin: top left;
|
||||
text-align: initial;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
min-height: auto; }
|
||||
.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,
|
||||
.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-drop-zone,
|
||||
.block-editor-block-preview__container .block-editor-block-preview__content .reusable-block-indicator,
|
||||
.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender {
|
||||
display: none; }
|
||||
.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__layout.is-root-container {
|
||||
padding-left: 0;
|
||||
padding-right: 0; }
|
||||
.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__layout.is-root-container > .wp-block[data-align="full"] {
|
||||
margin-left: 0;
|
||||
margin-right: 0; }
|
||||
|
||||
.block-editor-block-settings-menu__popover .components-dropdown-menu__menu {
|
||||
padding: 0; }
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -190,11 +190,11 @@
|
|||
.wp-block-column {
|
||||
flex-basis: 100% !important; } }
|
||||
@media (min-width: 600px) and (max-width: 781px) {
|
||||
.wp-block-column {
|
||||
.wp-block-column:not(:only-child) {
|
||||
flex-basis: calc(50% - 1em) !important;
|
||||
flex-grow: 0; }
|
||||
.wp-block-column:nth-child(even) {
|
||||
margin-right: 2em; } }
|
||||
.wp-block-column:nth-child(even) {
|
||||
margin-right: 2em; } }
|
||||
@media (min-width: 782px) {
|
||||
.wp-block-column {
|
||||
flex-basis: 0;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -197,11 +197,11 @@
|
|||
.wp-block-column {
|
||||
flex-basis: 100% !important; } }
|
||||
@media (min-width: 600px) and (max-width: 781px) {
|
||||
.wp-block-column {
|
||||
.wp-block-column:not(:only-child) {
|
||||
flex-basis: calc(50% - 1em) !important;
|
||||
flex-grow: 0; }
|
||||
.wp-block-column:nth-child(even) {
|
||||
margin-left: 2em; } }
|
||||
.wp-block-column:nth-child(even) {
|
||||
margin-left: 2em; } }
|
||||
@media (min-width: 782px) {
|
||||
.wp-block-column {
|
||||
flex-basis: 0;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -295,6 +295,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|||
background-color: #fff;
|
||||
z-index: 90;
|
||||
display: none; }
|
||||
.is-focusing-regions .interface-interface-skeleton__footer[role="region"] {
|
||||
position: fixed; }
|
||||
@media (min-width: 782px) {
|
||||
.interface-interface-skeleton__footer {
|
||||
display: flex; } }
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -295,6 +295,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|||
background-color: #fff;
|
||||
z-index: 90;
|
||||
display: none; }
|
||||
.is-focusing-regions .interface-interface-skeleton__footer[role="region"] {
|
||||
position: fixed; }
|
||||
@media (min-width: 782px) {
|
||||
.interface-interface-skeleton__footer {
|
||||
display: flex; } }
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -25197,7 +25197,7 @@ var __experimentalGetParsedReusableBlock = Object(rememo["a" /* default */])(fun
|
|||
// workaround until #22127 is fixed.
|
||||
|
||||
|
||||
return Object(external_this_wp_blocks_["parse"])(reusableBlock.content.raw || reusableBlock.content);
|
||||
return Object(external_this_wp_blocks_["parse"])(typeof reusableBlock.content.raw === 'string' ? reusableBlock.content.raw : reusableBlock.content);
|
||||
}, function (state) {
|
||||
return [getReusableBlocks(state)];
|
||||
});
|
||||
|
@ -30262,12 +30262,13 @@ function BlockMover(_ref) {
|
|||
|
||||
if (isLocked || isFirst && isLast && !rootClientId) {
|
||||
return null;
|
||||
} // We emulate a disabled state because forcefully applying the `disabled`
|
||||
}
|
||||
|
||||
var dragHandleLabel = clientIds.length === 1 ? Object(external_this_wp_i18n_["__"])('Drag block') : Object(external_this_wp_i18n_["__"])('Drag blocks'); // We emulate a disabled state because forcefully applying the `disabled`
|
||||
// attribute on the buttons while it has focus causes the screen to change
|
||||
// to an unfocused state (body as active element) without firing blur on,
|
||||
// the rendering parent, leaving it unable to react to focus out.
|
||||
|
||||
|
||||
return Object(external_this_wp_element_["createElement"])("div", {
|
||||
className: classnames_default()('block-editor-block-mover', {
|
||||
'is-visible': isFocused || !isHidden,
|
||||
|
@ -30284,7 +30285,7 @@ function BlockMover(_ref) {
|
|||
icon: drag_handle,
|
||||
className: "block-editor-block-mover__drag-handle",
|
||||
"aria-hidden": "true",
|
||||
label: Object(external_this_wp_i18n_["_n"])('Drag block', 'Drag blocks', clientIds.length) // Should not be able to tab to drag handle as this
|
||||
label: dragHandleLabel // Should not be able to tab to drag handle as this
|
||||
// button can only be used with a pointer device.
|
||||
,
|
||||
tabIndex: "-1",
|
||||
|
@ -31556,6 +31557,7 @@ function BlockSettingsDropdown(_ref) {
|
|||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}() : external_this_lodash_["noop"], [__experimentalSelectBlock]);
|
||||
var removeBlockLabel = count === 1 ? Object(external_this_wp_i18n_["__"])('Remove block') : Object(external_this_wp_i18n_["__"])('Remove blocks');
|
||||
return Object(external_this_wp_element_["createElement"])(BlockActions, {
|
||||
clientIds: clientIds,
|
||||
__experimentalUpdateSelection: !__experimentalSelectBlock
|
||||
|
@ -31619,7 +31621,7 @@ function BlockSettingsDropdown(_ref) {
|
|||
}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, !isLocked && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], {
|
||||
onClick: Object(external_this_lodash_["flow"])(onClose, onRemove, updateSelection),
|
||||
shortcut: shortcuts.remove
|
||||
}, Object(external_this_wp_i18n_["_n"])('Remove block', 'Remove blocks', count))));
|
||||
}, removeBlockLabel)));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -36040,7 +36042,7 @@ var url_input_URLInput = /*#__PURE__*/function (_Component) {
|
|||
_this.bindSuggestionNode = _this.bindSuggestionNode.bind(Object(assertThisInitialized["a" /* default */])(_this));
|
||||
_this.autocompleteRef = props.autocompleteRef || Object(external_this_wp_element_["createRef"])();
|
||||
_this.inputRef = Object(external_this_wp_element_["createRef"])();
|
||||
_this.updateSuggestions = Object(external_this_lodash_["throttle"])(_this.updateSuggestions.bind(Object(assertThisInitialized["a" /* default */])(_this)), 200);
|
||||
_this.updateSuggestions = Object(external_this_lodash_["debounce"])(_this.updateSuggestions.bind(Object(assertThisInitialized["a" /* default */])(_this)), 200);
|
||||
_this.suggestionNodes = [];
|
||||
_this.isUpdatingSuggestions = false;
|
||||
_this.state = {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5785,10 +5785,14 @@ var heading = Object(external_this_wp_element_["createElement"])(external_this_w
|
|||
}));
|
||||
/* harmony default export */ var library_heading = (heading);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(14);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/deprecated.js
|
||||
|
||||
|
||||
|
||||
|
||||
function deprecated_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 deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { deprecated_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 { deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
||||
|
@ -5841,7 +5845,57 @@ var deprecated_migrateCustomColors = function migrateCustomColors(attributes) {
|
|||
});
|
||||
};
|
||||
|
||||
var TEXT_ALIGN_OPTIONS = ['left', 'right', 'center'];
|
||||
|
||||
var deprecated_migrateTextAlign = function migrateTextAlign(attributes) {
|
||||
var align = attributes.align,
|
||||
rest = Object(objectWithoutProperties["a" /* default */])(attributes, ["align"]);
|
||||
|
||||
return TEXT_ALIGN_OPTIONS.includes(align) ? deprecated_objectSpread(deprecated_objectSpread({}, rest), {}, {
|
||||
textAlign: align
|
||||
}) : attributes;
|
||||
};
|
||||
|
||||
var heading_deprecated_deprecated = [{
|
||||
supports: {
|
||||
align: ['wide', 'full'],
|
||||
anchor: true,
|
||||
className: false,
|
||||
color: {
|
||||
link: true
|
||||
},
|
||||
fontSize: true,
|
||||
lineHeight: true,
|
||||
__experimentalSelector: {
|
||||
'core/heading/h1': 'h1',
|
||||
'core/heading/h2': 'h2',
|
||||
'core/heading/h3': 'h3',
|
||||
'core/heading/h4': 'h4',
|
||||
'core/heading/h5': 'h5',
|
||||
'core/heading/h6': 'h6'
|
||||
},
|
||||
__unstablePasteTextInline: true
|
||||
},
|
||||
attributes: heading_deprecated_blockAttributes,
|
||||
isEligible: function isEligible(_ref) {
|
||||
var align = _ref.align;
|
||||
return TEXT_ALIGN_OPTIONS.includes(align);
|
||||
},
|
||||
migrate: deprecated_migrateTextAlign,
|
||||
save: function save(_ref2) {
|
||||
var attributes = _ref2.attributes;
|
||||
var align = attributes.align,
|
||||
content = attributes.content,
|
||||
level = attributes.level;
|
||||
var TagName = 'h' + level;
|
||||
var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align));
|
||||
return Object(external_this_wp_element_["createElement"])(TagName, external_this_wp_blockEditor_["useBlockProps"].save({
|
||||
className: className
|
||||
}), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
|
||||
value: content
|
||||
}));
|
||||
}
|
||||
}, {
|
||||
supports: blockSupports,
|
||||
attributes: deprecated_objectSpread(deprecated_objectSpread({}, heading_deprecated_blockAttributes), {}, {
|
||||
customTextColor: {
|
||||
|
@ -5851,11 +5905,13 @@ var heading_deprecated_deprecated = [{
|
|||
type: 'string'
|
||||
}
|
||||
}),
|
||||
migrate: deprecated_migrateCustomColors,
|
||||
save: function save(_ref) {
|
||||
var _classnames;
|
||||
migrate: function migrate(attributes) {
|
||||
return deprecated_migrateCustomColors(deprecated_migrateTextAlign(attributes));
|
||||
},
|
||||
save: function save(_ref3) {
|
||||
var _classnames2;
|
||||
|
||||
var attributes = _ref.attributes;
|
||||
var attributes = _ref3.attributes;
|
||||
var align = attributes.align,
|
||||
content = attributes.content,
|
||||
customTextColor = attributes.customTextColor,
|
||||
|
@ -5863,7 +5919,7 @@ var heading_deprecated_deprecated = [{
|
|||
textColor = attributes.textColor;
|
||||
var tagName = 'h' + level;
|
||||
var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
|
||||
var className = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor || customTextColor), Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), _classnames));
|
||||
var className = classnames_default()((_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, 'has-text-color', textColor || customTextColor), Object(defineProperty["a" /* default */])(_classnames2, "has-text-align-".concat(align), align), _classnames2));
|
||||
return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
|
||||
className: className ? className : undefined,
|
||||
tagName: tagName,
|
||||
|
@ -5882,11 +5938,13 @@ var heading_deprecated_deprecated = [{
|
|||
type: 'string'
|
||||
}
|
||||
}),
|
||||
migrate: deprecated_migrateCustomColors,
|
||||
save: function save(_ref2) {
|
||||
var _classnames2;
|
||||
migrate: function migrate(attributes) {
|
||||
return deprecated_migrateCustomColors(deprecated_migrateTextAlign(attributes));
|
||||
},
|
||||
save: function save(_ref4) {
|
||||
var _classnames3;
|
||||
|
||||
var attributes = _ref2.attributes;
|
||||
var attributes = _ref4.attributes;
|
||||
var align = attributes.align,
|
||||
content = attributes.content,
|
||||
customTextColor = attributes.customTextColor,
|
||||
|
@ -5894,7 +5952,7 @@ var heading_deprecated_deprecated = [{
|
|||
textColor = attributes.textColor;
|
||||
var tagName = 'h' + level;
|
||||
var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
|
||||
var className = classnames_default()((_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, "has-text-align-".concat(align), align), _classnames2));
|
||||
var className = classnames_default()((_classnames3 = {}, Object(defineProperty["a" /* default */])(_classnames3, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames3, "has-text-align-".concat(align), align), _classnames3));
|
||||
return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
|
||||
className: className ? className : undefined,
|
||||
tagName: tagName,
|
||||
|
@ -5915,9 +5973,11 @@ var heading_deprecated_deprecated = [{
|
|||
type: 'string'
|
||||
}
|
||||
}),
|
||||
migrate: deprecated_migrateCustomColors,
|
||||
save: function save(_ref3) {
|
||||
var attributes = _ref3.attributes;
|
||||
migrate: function migrate(attributes) {
|
||||
return deprecated_migrateCustomColors(deprecated_migrateTextAlign(attributes));
|
||||
},
|
||||
save: function save(_ref5) {
|
||||
var attributes = _ref5.attributes;
|
||||
var align = attributes.align,
|
||||
level = attributes.level,
|
||||
content = attributes.content,
|
||||
|
@ -6123,13 +6183,13 @@ function HeadingEdit(_ref) {
|
|||
mergeBlocks = _ref.mergeBlocks,
|
||||
onReplace = _ref.onReplace,
|
||||
mergedStyle = _ref.mergedStyle;
|
||||
var align = attributes.align,
|
||||
var textAlign = attributes.textAlign,
|
||||
content = attributes.content,
|
||||
level = attributes.level,
|
||||
placeholder = attributes.placeholder;
|
||||
var tagName = 'h' + level;
|
||||
var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])({
|
||||
className: classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)),
|
||||
className: classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(textAlign), textAlign)),
|
||||
style: mergedStyle
|
||||
});
|
||||
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(HeadingLevelDropdown, {
|
||||
|
@ -6140,10 +6200,10 @@ function HeadingEdit(_ref) {
|
|||
});
|
||||
}
|
||||
})), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], {
|
||||
value: align,
|
||||
value: textAlign,
|
||||
onChange: function onChange(nextAlign) {
|
||||
setAttributes({
|
||||
align: nextAlign
|
||||
textAlign: nextAlign
|
||||
});
|
||||
}
|
||||
})), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], Object(esm_extends["a" /* default */])({
|
||||
|
@ -6170,7 +6230,7 @@ function HeadingEdit(_ref) {
|
|||
return onReplace([]);
|
||||
},
|
||||
placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write heading…'),
|
||||
textAlign: align
|
||||
textAlign: textAlign
|
||||
}, blockProps)));
|
||||
}
|
||||
|
||||
|
@ -6191,11 +6251,11 @@ function HeadingEdit(_ref) {
|
|||
|
||||
function heading_save_save(_ref) {
|
||||
var attributes = _ref.attributes;
|
||||
var align = attributes.align,
|
||||
var textAlign = attributes.textAlign,
|
||||
content = attributes.content,
|
||||
level = attributes.level;
|
||||
var TagName = 'h' + level;
|
||||
var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align));
|
||||
var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(textAlign), textAlign));
|
||||
return Object(external_this_wp_element_["createElement"])(TagName, external_this_wp_blockEditor_["useBlockProps"].save({
|
||||
className: className
|
||||
}), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
|
||||
|
@ -6232,7 +6292,7 @@ var transforms_apiVersion$name$cate = {
|
|||
name: "core/heading",
|
||||
category: "text",
|
||||
attributes: {
|
||||
align: {
|
||||
textAlign: {
|
||||
type: "string"
|
||||
},
|
||||
content: {
|
||||
|
@ -6370,7 +6430,7 @@ var heading_metadata = {
|
|||
name: "core/heading",
|
||||
category: "text",
|
||||
attributes: {
|
||||
align: {
|
||||
textAlign: {
|
||||
type: "string"
|
||||
},
|
||||
content: {
|
||||
|
@ -6704,9 +6764,6 @@ function quote_save_save(_ref) {
|
|||
}));
|
||||
}
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(14);
|
||||
|
||||
// EXTERNAL MODULE: external {"this":["wp","richText"]}
|
||||
var external_this_wp_richText_ = __webpack_require__(25);
|
||||
|
||||
|
@ -17239,6 +17296,7 @@ function latest_posts_deprecated_objectSpread(target) { for (var i = 1; i < argu
|
|||
* Internal dependencies
|
||||
*/
|
||||
var latest_posts_deprecated_metadata = {
|
||||
apiVersion: 2,
|
||||
name: "core/latest-posts",
|
||||
category: "widgets",
|
||||
attributes: {
|
||||
|
@ -17739,7 +17797,14 @@ function LatestPostsEdit(_ref) {
|
|||
max: !hasPosts ? MAX_POSTS_COLUMNS : Math.min(MAX_POSTS_COLUMNS, latestPosts.length),
|
||||
required: true
|
||||
})));
|
||||
var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])();
|
||||
var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])({
|
||||
className: classnames_default()(Object(defineProperty["a" /* default */])({
|
||||
'wp-block-latest-posts__list': true,
|
||||
'is-grid': postLayout === 'grid',
|
||||
'has-dates': displayPostDate,
|
||||
'has-author': displayAuthor
|
||||
}, "columns-".concat(columns), postLayout === 'grid'))
|
||||
});
|
||||
var hasPosts = Array.isArray(latestPosts) && latestPosts.length;
|
||||
|
||||
if (!hasPosts) {
|
||||
|
@ -17773,16 +17838,9 @@ function LatestPostsEdit(_ref) {
|
|||
|
||||
var dateFormat = Object(external_this_wp_date_["__experimentalGetSettings"])().formats.date;
|
||||
|
||||
return Object(external_this_wp_element_["createElement"])("div", blockProps, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], {
|
||||
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], {
|
||||
controls: layoutControls
|
||||
})), Object(external_this_wp_element_["createElement"])("ul", {
|
||||
className: classnames_default()(Object(defineProperty["a" /* default */])({
|
||||
'wp-block-latest-posts__list': true,
|
||||
'is-grid': postLayout === 'grid',
|
||||
'has-dates': displayPostDate,
|
||||
'has-author': displayAuthor
|
||||
}, "columns-".concat(columns), postLayout === 'grid'))
|
||||
}, displayPosts.map(function (post, i) {
|
||||
})), Object(external_this_wp_element_["createElement"])("ul", blockProps, displayPosts.map(function (post, i) {
|
||||
var titleTrimmed = Object(external_this_lodash_["invoke"])(post, ['title', 'rendered', 'trim']);
|
||||
var excerpt = post.excerpt.rendered;
|
||||
var currentAuthor = authorList.find(function (author) {
|
||||
|
@ -17855,6 +17913,7 @@ function LatestPostsEdit(_ref) {
|
|||
|
||||
|
||||
var latest_posts_metadata = {
|
||||
apiVersion: 2,
|
||||
name: "core/latest-posts",
|
||||
category: "widgets",
|
||||
attributes: {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5383,7 +5383,7 @@ function PreferencesModal(_ref) {
|
|||
}, Object(external_this_wp_element_["createElement"])(enable_feature, {
|
||||
featureName: "keepCaretInsideBlock",
|
||||
help: Object(external_this_wp_i18n_["__"])('Aids screen readers by stopping text caret from leaving blocks.'),
|
||||
label: Object(external_this_wp_i18n_["__"])('Contain text cursor inside block.')
|
||||
label: Object(external_this_wp_i18n_["__"])('Contain text cursor inside block')
|
||||
})), Object(external_this_wp_element_["createElement"])(section, {
|
||||
title: Object(external_this_wp_i18n_["__"])('Appearance')
|
||||
}, Object(external_this_wp_element_["createElement"])(enable_feature, {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -12702,7 +12702,9 @@ var provider_EditorProvider = /*#__PURE__*/function (_Component) {
|
|||
blocks: getEditorBlocks(),
|
||||
selectionStart: getEditorSelectionStart(),
|
||||
selectionEnd: getEditorSelectionEnd(),
|
||||
reusableBlocks: select('core').getEntityRecords('postType', 'wp_block'),
|
||||
reusableBlocks: select('core').getEntityRecords('postType', 'wp_block', {
|
||||
per_page: -1
|
||||
}),
|
||||
hasUploadPermissions: Object(external_this_lodash_["defaultTo"])(canUser('create', 'media'), true),
|
||||
// This selector is only defined on mobile.
|
||||
isPostTitleSelected: isPostTitleSelected && isPostTitleSelected()
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.6-beta2-49472';
|
||||
$wp_version = '5.6-beta2-49473';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue