Editor: update npm packages in trunk for 6.7.1.
Syncs Editor packages for WordPress 6.7.1 RC1. Includes the following PRs: - https://github.com/WordPress/gutenberg/pull/66945 - https://github.com/WordPress/gutenberg/pull/66889 - https://github.com/WordPress/gutenberg/pull/67139 Props mmaattiiaass, ramonopoly, mamaduka, get_dave, poena, ntsekouras, mcsf, jsnajdr, 0mirka00, desrosj, joemcgill, cbravobernal, azaozz, room34, mayanktripathi32, im3dabasia1, jonsurrell. Fixes #62478, #62447. Built from https://develop.svn.wordpress.org/branches/6.7@59437 git-svn-id: http://core.svn.wordpress.org/branches/6.7@58823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3b56f5bbf3
commit
019b2bf7a4
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -47222,7 +47222,8 @@ function PatternList({
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (selectedCategory === 'uncategorized') {
|
if (selectedCategory === 'uncategorized') {
|
||||||
const hasKnownCategory = pattern.categories.some(category => registeredPatternCategories.includes(category));
|
var _pattern$categories$s;
|
||||||
|
const hasKnownCategory = (_pattern$categories$s = pattern.categories?.some(category => registeredPatternCategories.includes(category))) !== null && _pattern$categories$s !== void 0 ? _pattern$categories$s : false;
|
||||||
return !pattern.categories?.length || !hasKnownCategory;
|
return !pattern.categories?.length || !hasKnownCategory;
|
||||||
}
|
}
|
||||||
return pattern.categories?.includes(selectedCategory);
|
return pattern.categories?.includes(selectedCategory);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -57454,7 +57454,9 @@ function FormFileUpload({
|
||||||
// @todo: Temporary fix a bug that prevents Chromium browsers from selecting ".heic" files
|
// @todo: Temporary fix a bug that prevents Chromium browsers from selecting ".heic" files
|
||||||
// from the file upload. See https://core.trac.wordpress.org/ticket/62268#comment:4.
|
// from the file upload. See https://core.trac.wordpress.org/ticket/62268#comment:4.
|
||||||
// This can be removed once the Chromium fix is in the stable channel.
|
// This can be removed once the Chromium fix is in the stable channel.
|
||||||
const compatAccept = !!accept?.includes('image/*') ? `${accept}, image/heic, image/heif` : accept;
|
// Prevent Safari from adding "image/heic" and "image/heif" to the accept attribute.
|
||||||
|
const isSafari = globalThis.window?.navigator.userAgent.includes('Safari') && !globalThis.window?.navigator.userAgent.includes('Chrome') && !globalThis.window?.navigator.userAgent.includes('Chromium');
|
||||||
|
const compatAccept = !isSafari && !!accept?.includes('image/*') ? `${accept}, image/heic, image/heif` : accept;
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
||||||
className: "components-form-file-upload",
|
className: "components-form-file-upload",
|
||||||
children: [ui, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
|
children: [ui, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -683,7 +683,7 @@ function CreatePatternModalContents({
|
||||||
function getTermLabels(pattern, categories) {
|
function getTermLabels(pattern, categories) {
|
||||||
// Theme patterns rely on core pattern categories.
|
// Theme patterns rely on core pattern categories.
|
||||||
if (pattern.type !== PATTERN_TYPES.user) {
|
if (pattern.type !== PATTERN_TYPES.user) {
|
||||||
return categories.core?.filter(category => pattern.categories.includes(category.name)).map(category => category.label);
|
return categories.core?.filter(category => pattern.categories?.includes(category.name)).map(category => category.label);
|
||||||
}
|
}
|
||||||
return categories.user?.filter(category => pattern.wp_pattern_category.includes(category.id)).map(category => category.label);
|
return categories.user?.filter(category => pattern.wp_pattern_category.includes(category.id)).map(category => category.label);
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.7.1-alpha-59436';
|
$wp_version = '6.7.1-alpha-59437';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue