Editor: Update npm packages to fix gutenberg_ prefix

Update `@wordpress/*` packages to the latest patch versions in
order to replace calls to `gutenberg_apply_colors_support` with
`wp_apply_colors_support` in order to avoid a fatal error.

Props joemcgill, spacedmonkey, flixos90, ironprogrammer, sabernhardt.
Fixes #58651.

git-svn-id: https://develop.svn.wordpress.org/trunk@56098 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Bernie Reiter
2023-06-28 22:36:22 +00:00
parent 260e97646d
commit f39bf114c0
4 changed files with 211 additions and 2059 deletions

2252
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -84,9 +84,9 @@
"@wordpress/api-fetch": "6.32.1",
"@wordpress/autop": "3.35.1",
"@wordpress/blob": "3.35.1",
"@wordpress/block-directory": "4.12.4",
"@wordpress/block-directory": "4.12.5",
"@wordpress/block-editor": "12.3.3",
"@wordpress/block-library": "8.12.4",
"@wordpress/block-library": "8.12.5",
"@wordpress/block-serialization-default-parser": "4.35.1",
"@wordpress/blocks": "12.12.1",
"@wordpress/commands": "0.6.3",
@@ -94,16 +94,16 @@
"@wordpress/compose": "6.12.1",
"@wordpress/core-commands": "0.4.3",
"@wordpress/core-data": "6.12.3",
"@wordpress/customize-widgets": "4.12.4",
"@wordpress/customize-widgets": "4.12.5",
"@wordpress/data": "9.5.1",
"@wordpress/data-controls": "3.4.1",
"@wordpress/date": "4.35.1",
"@wordpress/deprecated": "3.35.1",
"@wordpress/dom": "3.35.1",
"@wordpress/dom-ready": "3.35.1",
"@wordpress/edit-post": "7.12.4",
"@wordpress/edit-site": "5.12.4",
"@wordpress/edit-widgets": "5.12.4",
"@wordpress/edit-post": "7.12.5",
"@wordpress/edit-site": "5.12.5",
"@wordpress/edit-widgets": "5.12.5",
"@wordpress/editor": "13.12.3",
"@wordpress/element": "5.12.1",
"@wordpress/escape-html": "2.35.1",

File diff suppressed because one or more lines are too long

View File

@@ -199,9 +199,9 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) {
$attributes['style']['color']['background'] = $block->context['customOverlayBackgroundColor'];
}
// This allows us to be able to get a response from gutenberg_apply_colors_support.
// This allows us to be able to get a response from wp_apply_colors_support.
$block->block_type->supports['color'] = true;
$colors_supports = gutenberg_apply_colors_support( $block->block_type, $attributes );
$colors_supports = wp_apply_colors_support( $block->block_type, $attributes );
$css_classes = 'wp-block-navigation__submenu-container';
if ( array_key_exists( 'class', $colors_supports ) ) {
$css_classes .= ' ' . $colors_supports['class'];