Editor: Update WordPress packages for 6.0 RC 3

Included cherry-picked commits from the Gutenberg plugin that fix bugs discovered after WordPress 6.0 RC 2.

Props zieladam, ndiego.
See #55567.



Built from https://develop.svn.wordpress.org/trunk@53403


git-svn-id: http://core.svn.wordpress.org/trunk@52992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
gziolo 2022-05-17 13:30:31 +00:00
parent 102004b505
commit 58dfeaa86f
16 changed files with 119 additions and 43 deletions

File diff suppressed because one or more lines are too long

View File

@ -74,6 +74,21 @@
/**
* Reset the WP Admin page styles for Gutenberg-like pages.
*/
.wp-block-post-comments {
/* utility classes */
/* end utility classes */
}
.wp-block-post-comments .alignleft {
float: right;
}
.wp-block-post-comments .alignright {
float: left;
}
.wp-block-post-comments .navigation::after {
content: "";
display: table;
clear: both;
}
.wp-block-post-comments .commentlist {
clear: both;
list-style: none;

View File

@ -1 +1 @@
.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-right:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-top:.5em;margin-left:.75em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation{margin-top:1em;margin-bottom:1em;display:block}.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{display:block;box-sizing:border-box;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-size:1em;font-family:inherit}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}.wp-block-post-comments input[type=submit]{border:none}
.wp-block-post-comments .alignleft{float:right}.wp-block-post-comments .alignright{float:left}.wp-block-post-comments .navigation:after{content:"";display:table;clear:both}.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-right:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-top:.5em;margin-left:.75em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation{margin-top:1em;margin-bottom:1em;display:block}.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{display:block;box-sizing:border-box;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-size:1em;font-family:inherit}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}.wp-block-post-comments input[type=submit]{border:none}

View File

@ -74,6 +74,21 @@
/**
* Reset the WP Admin page styles for Gutenberg-like pages.
*/
.wp-block-post-comments {
/* utility classes */
/* end utility classes */
}
.wp-block-post-comments .alignleft {
float: left;
}
.wp-block-post-comments .alignright {
float: right;
}
.wp-block-post-comments .navigation::after {
content: "";
display: table;
clear: both;
}
.wp-block-post-comments .commentlist {
clear: both;
list-style: none;

View File

@ -1 +1 @@
.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-top:.5em;margin-right:.75em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation{margin-top:1em;margin-bottom:1em;display:block}.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{display:block;box-sizing:border-box;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em}.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-size:1em;font-family:inherit}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}.wp-block-post-comments input[type=submit]{border:none}
.wp-block-post-comments .alignleft{float:left}.wp-block-post-comments .alignright{float:right}.wp-block-post-comments .navigation:after{content:"";display:table;clear:both}.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-top:.5em;margin-right:.75em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation{margin-top:1em;margin-bottom:1em;display:block}.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{display:block;box-sizing:border-box;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em}.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-size:1em;font-family:inherit}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}.wp-block-post-comments input[type=submit]{border:none}

View File

@ -2101,6 +2101,21 @@ p.has-background {
margin: 0;
}
.wp-block-post-comments {
/* utility classes */
/* end utility classes */
}
.wp-block-post-comments .alignleft {
float: right;
}
.wp-block-post-comments .alignright {
float: left;
}
.wp-block-post-comments .navigation::after {
content: "";
display: table;
clear: both;
}
.wp-block-post-comments .commentlist {
clear: both;
list-style: none;

File diff suppressed because one or more lines are too long

View File

@ -2127,6 +2127,21 @@ p.has-background {
margin: 0;
}
.wp-block-post-comments {
/* utility classes */
/* end utility classes */
}
.wp-block-post-comments .alignleft {
float: left;
}
.wp-block-post-comments .alignright {
float: right;
}
.wp-block-post-comments .navigation::after {
content: "";
display: table;
clear: both;
}
.wp-block-post-comments .commentlist {
clear: both;
list-style: none;

File diff suppressed because one or more lines are too long

View File

@ -13019,6 +13019,11 @@ function Warning(_ref) {
secondaryActions
} = _ref;
return (0,external_wp_element_namespaceObject.createElement)("div", {
style: {
display: 'contents',
all: 'initial'
}
}, (0,external_wp_element_namespaceObject.createElement)("div", {
className: classnames_default()(className, 'block-editor-warning')
}, (0,external_wp_element_namespaceObject.createElement)("div", {
className: "block-editor-warning__contents"
@ -13041,7 +13046,7 @@ function Warning(_ref) {
}, () => (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, null, secondaryActions.map((item, pos) => (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
onClick: item.onClick,
key: pos
}, item.title)))))));
}, item.title))))))));
}
/**
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/warning/README.md

File diff suppressed because one or more lines are too long

View File

@ -11033,6 +11033,7 @@ function ResizableEditor(_ref) {
* External dependencies
*/
/**
* WordPress dependencies
*/
@ -11065,46 +11066,49 @@ const LAYOUT = {
alignments: []
};
function BlockEditor(_ref) {
var _storedSettings$__exp, _storedSettings$__exp2;
let {
setIsInserterOpen
} = _ref;
const {
settings
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
let storedSettings = select(store_store).getSettings(setIsInserterOpen);
if (!storedSettings.__experimentalBlockPatterns) {
storedSettings = { ...storedSettings,
__experimentalBlockPatterns: select(external_wp_coreData_namespaceObject.store).getBlockPatterns()
};
}
if (!storedSettings.__experimentalBlockPatternCategories) {
storedSettings = { ...storedSettings,
__experimentalBlockPatternCategories: select(external_wp_coreData_namespaceObject.store).getBlockPatternCategories()
};
}
return {
settings: storedSettings
};
}, [setIsInserterOpen]);
const {
storedSettings,
templateType,
templateId,
page
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getSettings,
getEditedPostType,
getEditedPostId,
getPage
} = select(store_store);
return {
storedSettings: getSettings(setIsInserterOpen),
templateType: getEditedPostType(),
templateId: getEditedPostId(),
page: getPage()
};
}, [setIsInserterOpen]);
const settingsBlockPatterns = (_storedSettings$__exp = storedSettings.__experimentalAdditionalBlockPatterns) !== null && _storedSettings$__exp !== void 0 ? _storedSettings$__exp : // WP 6.0
storedSettings.__experimentalBlockPatterns; // WP 5.9
const settingsBlockPatternCategories = (_storedSettings$__exp2 = storedSettings.__experimentalAdditionalBlockPatternCategories) !== null && _storedSettings$__exp2 !== void 0 ? _storedSettings$__exp2 : // WP 6.0
storedSettings.__experimentalBlockPatternCategories; // WP 5.9
const {
restBlockPatterns,
restBlockPatternCategories
} = (0,external_wp_data_namespaceObject.useSelect)(select => ({
restBlockPatterns: select(external_wp_coreData_namespaceObject.store).getBlockPatterns(),
restBlockPatternCategories: select(external_wp_coreData_namespaceObject.store).getBlockPatternCategories()
}), []);
const blockPatterns = (0,external_wp_element_namespaceObject.useMemo)(() => (0,external_lodash_namespaceObject.unionBy)(settingsBlockPatterns, restBlockPatterns, 'name'), [settingsBlockPatterns, restBlockPatterns]);
const blockPatternCategories = (0,external_wp_element_namespaceObject.useMemo)(() => (0,external_lodash_namespaceObject.unionBy)(settingsBlockPatternCategories, restBlockPatternCategories, 'name'), [settingsBlockPatternCategories, restBlockPatternCategories]);
const settings = (0,external_wp_element_namespaceObject.useMemo)(() => ({ ...(0,external_lodash_namespaceObject.omit)(storedSettings, ['__experimentalAdditionalBlockPatterns', '__experimentalAdditionalBlockPatternCategories']),
__experimentalBlockPatterns: blockPatterns,
__experimentalBlockPatternCategories: blockPatternCategories
}), [storedSettings, blockPatterns, blockPatternCategories]);
const [blocks, onInput, onChange] = (0,external_wp_coreData_namespaceObject.useEntityBlockEditor)('postType', templateType);
const {
setPage
@ -11122,6 +11126,7 @@ function BlockEditor(_ref) {
clearSelectedBlock
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
const isTemplatePart = templateType === 'wp_template_part';
const hasBlocks = blocks.length !== 0;
const NavMenuSidebarToggle = () => (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
className: "components-toolbar__control",
@ -11167,7 +11172,7 @@ function BlockEditor(_ref) {
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockList, {
className: "edit-site-block-editor__block-list wp-site-blocks",
__experimentalLayout: LAYOUT,
renderAppender: isTemplatePart ? false : undefined
renderAppender: isTemplatePart && hasBlocks ? false : undefined
})), (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__unstableBlockSettingsMenuFirstItem, null, _ref2 => {
let {
onClose

File diff suppressed because one or more lines are too long

View File

@ -8826,7 +8826,7 @@ function FlatTermSelector(_ref) {
(0,external_wp_element_namespaceObject.useEffect)(() => {
if (hasResolvedTerms) {
const newValues = terms.map(term => unescapeString(term.name));
const newValues = (terms !== null && terms !== void 0 ? terms : []).map(term => unescapeString(term.name));
setValues(newValues);
}
}, [terms, hasResolvedTerms]);
@ -8848,7 +8848,7 @@ function FlatTermSelector(_ref) {
}
function onChange(termNames) {
const availableTerms = [...terms, ...(searchResults !== null && searchResults !== void 0 ? searchResults : [])];
const availableTerms = [...(terms !== null && terms !== void 0 ? terms : []), ...(searchResults !== null && searchResults !== void 0 ? searchResults : [])];
const uniqueTerms = (0,external_lodash_namespaceObject.uniqBy)(termNames, term => term.toLowerCase());
const newTermNames = uniqueTerms.filter(termName => !(0,external_lodash_namespaceObject.find)(availableTerms, term => isSameTermName(term.name, termName))); // Optimistically update term values.
// The selector will always re-fetch terms later.
@ -11462,6 +11462,8 @@ function mediaUpload(_ref) {
*/
function useBlockEditorSettings(settings, hasTemplate) {
var _settings$__experimen, _settings$__experimen2;
const {
reusableBlocks,
hasUploadPermissions,
@ -11489,17 +11491,21 @@ function useBlockEditorSettings(settings, hasTemplate) {
pageOnFront: siteSettings === null || siteSettings === void 0 ? void 0 : siteSettings.page_on_front
};
}, []);
const settingsBlockPatterns = (_settings$__experimen = settings.__experimentalAdditionalBlockPatterns) !== null && _settings$__experimen !== void 0 ? _settings$__experimen : // WP 6.0
settings.__experimentalBlockPatterns; // WP 5.9
const settingsBlockPatternCategories = (_settings$__experimen2 = settings.__experimentalAdditionalBlockPatternCategories) !== null && _settings$__experimen2 !== void 0 ? _settings$__experimen2 : // WP 6.0
settings.__experimentalBlockPatternCategories; // WP 5.9
const {
__experimentalBlockPatterns: settingsBlockPatterns,
__experimentalBlockPatternCategories: settingsBlockPatternCategories
} = settings;
const {
blockPatterns,
blockPatternCategories
restBlockPatterns,
restBlockPatternCategories
} = (0,external_wp_data_namespaceObject.useSelect)(select => ({
blockPatterns: settingsBlockPatterns !== null && settingsBlockPatterns !== void 0 ? settingsBlockPatterns : select(external_wp_coreData_namespaceObject.store).getBlockPatterns(),
blockPatternCategories: settingsBlockPatternCategories !== null && settingsBlockPatternCategories !== void 0 ? settingsBlockPatternCategories : select(external_wp_coreData_namespaceObject.store).getBlockPatternCategories()
}), [settingsBlockPatterns, settingsBlockPatternCategories]);
restBlockPatterns: select(external_wp_coreData_namespaceObject.store).getBlockPatterns(),
restBlockPatternCategories: select(external_wp_coreData_namespaceObject.store).getBlockPatternCategories()
}), []);
const blockPatterns = (0,external_wp_element_namespaceObject.useMemo)(() => (0,external_lodash_namespaceObject.unionBy)(settingsBlockPatterns, restBlockPatterns, 'name'), [settingsBlockPatterns, restBlockPatterns]);
const blockPatternCategories = (0,external_wp_element_namespaceObject.useMemo)(() => (0,external_lodash_namespaceObject.unionBy)(settingsBlockPatternCategories, restBlockPatternCategories, 'name'), [settingsBlockPatternCategories, restBlockPatternCategories]);
const {
undo
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.1-alpha-53402';
$wp_version = '6.1-alpha-53403';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.