Skip to content

Commit 2c81850

Browse files
committed
Editor: Update npm packages.
Updates the editor npm packages to latest versions. Props vcanales. Fixes #61339. git-svn-id: https://develop.svn.wordpress.org/trunk@58275 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 93bcf8d commit 2c81850

11 files changed

Lines changed: 1833 additions & 1755 deletions

File tree

package-lock.json

Lines changed: 1721 additions & 1663 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"@lodder/grunt-postcss": "^3.1.1",
2828
"@playwright/test": "1.32.0",
2929
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
30-
"@wordpress/babel-preset-default": "7.42.0",
31-
"@wordpress/dependency-extraction-webpack-plugin": "5.9.0",
32-
"@wordpress/e2e-test-utils": "10.29.0",
33-
"@wordpress/e2e-test-utils-playwright": "0.26.0",
34-
"@wordpress/prettier-config": "3.15.0",
35-
"@wordpress/scripts": "27.9.0",
30+
"@wordpress/babel-preset-default": "8.0.0",
31+
"@wordpress/dependency-extraction-webpack-plugin": "6.0.0",
32+
"@wordpress/e2e-test-utils": "11.0.0",
33+
"@wordpress/e2e-test-utils-playwright": "1.0.0",
34+
"@wordpress/prettier-config": "4.0.0",
35+
"@wordpress/scripts": "28.0.0",
3636
"autoprefixer": "10.4.17",
3737
"chalk": "5.3.0",
3838
"check-node-version": "4.2.1",
@@ -78,72 +78,72 @@
7878
"webpack-livereload-plugin": "3.0.2"
7979
},
8080
"dependencies": {
81-
"@wordpress/a11y": "3.58.0",
82-
"@wordpress/annotations": "2.58.0",
83-
"@wordpress/api-fetch": "6.55.0",
84-
"@wordpress/autop": "3.58.0",
85-
"@wordpress/blob": "3.58.0",
86-
"@wordpress/block-directory": "4.35.0",
87-
"@wordpress/block-editor": "12.26.0",
88-
"@wordpress/block-library": "8.35.0",
89-
"@wordpress/block-serialization-default-parser": "4.58.0",
90-
"@wordpress/blocks": "12.35.0",
91-
"@wordpress/commands": "0.29.0",
92-
"@wordpress/components": "27.6.0",
93-
"@wordpress/compose": "6.35.0",
94-
"@wordpress/core-commands": "0.27.0",
95-
"@wordpress/core-data": "6.35.0",
96-
"@wordpress/customize-widgets": "4.35.0",
97-
"@wordpress/data": "9.28.0",
98-
"@wordpress/data-controls": "3.27.0",
99-
"@wordpress/dataviews": "1.2.0",
100-
"@wordpress/date": "4.58.0",
101-
"@wordpress/deprecated": "3.58.0",
102-
"@wordpress/dom": "3.58.0",
103-
"@wordpress/dom-ready": "3.58.0",
104-
"@wordpress/edit-post": "7.35.0",
105-
"@wordpress/edit-site": "5.35.0",
106-
"@wordpress/edit-widgets": "5.35.0",
107-
"@wordpress/editor": "13.35.0",
108-
"@wordpress/element": "5.35.0",
109-
"@wordpress/escape-html": "2.58.0",
110-
"@wordpress/format-library": "4.35.0",
111-
"@wordpress/hooks": "3.58.0",
112-
"@wordpress/html-entities": "3.58.0",
113-
"@wordpress/i18n": "4.58.0",
114-
"@wordpress/icons": "9.49.0",
115-
"@wordpress/interactivity": "5.7.0",
116-
"@wordpress/interactivity-router": "1.8.0",
117-
"@wordpress/interface": "5.35.0",
118-
"@wordpress/is-shallow-equal": "4.58.0",
119-
"@wordpress/keyboard-shortcuts": "4.35.0",
120-
"@wordpress/keycodes": "3.58.0",
121-
"@wordpress/list-reusable-blocks": "4.35.0",
122-
"@wordpress/media-utils": "4.49.0",
123-
"@wordpress/notices": "4.26.0",
124-
"@wordpress/nux": "8.20.0",
125-
"@wordpress/patterns": "1.19.0",
126-
"@wordpress/plugins": "6.26.0",
127-
"@wordpress/preferences": "3.35.0",
128-
"@wordpress/preferences-persistence": "1.50.0",
129-
"@wordpress/primitives": "3.56.0",
130-
"@wordpress/priority-queue": "2.58.0",
131-
"@wordpress/private-apis": "0.40.0",
132-
"@wordpress/redux-routine": "4.58.0",
133-
"@wordpress/reusable-blocks": "4.35.0",
134-
"@wordpress/rich-text": "6.35.0",
135-
"@wordpress/router": "0.27.0",
136-
"@wordpress/server-side-render": "4.35.0",
137-
"@wordpress/shortcode": "3.58.0",
138-
"@wordpress/style-engine": "1.41.0",
139-
"@wordpress/sync": "0.20.0",
140-
"@wordpress/token-list": "2.58.0",
141-
"@wordpress/undo-manager": "0.18.0",
142-
"@wordpress/url": "3.59.0",
143-
"@wordpress/viewport": "5.35.0",
144-
"@wordpress/warning": "2.58.0",
145-
"@wordpress/widgets": "3.35.0",
146-
"@wordpress/wordcount": "3.58.0",
81+
"@wordpress/a11y": "4.0.0",
82+
"@wordpress/annotations": "3.0.0",
83+
"@wordpress/api-fetch": "7.0.0",
84+
"@wordpress/autop": "4.0.0",
85+
"@wordpress/blob": "4.0.0",
86+
"@wordpress/block-directory": "5.0.0",
87+
"@wordpress/block-editor": "13.0.0",
88+
"@wordpress/block-library": "9.0.0",
89+
"@wordpress/block-serialization-default-parser": "5.0.0",
90+
"@wordpress/blocks": "13.0.0",
91+
"@wordpress/commands": "1.0.0",
92+
"@wordpress/components": "28.0.0",
93+
"@wordpress/compose": "7.0.0",
94+
"@wordpress/core-commands": "1.0.0",
95+
"@wordpress/core-data": "7.0.0",
96+
"@wordpress/customize-widgets": "5.0.0",
97+
"@wordpress/data": "10.0.0",
98+
"@wordpress/data-controls": "4.0.0",
99+
"@wordpress/dataviews": "2.0.0",
100+
"@wordpress/date": "5.0.0",
101+
"@wordpress/deprecated": "4.0.0",
102+
"@wordpress/dom": "4.0.0",
103+
"@wordpress/dom-ready": "4.0.0",
104+
"@wordpress/edit-post": "8.0.0",
105+
"@wordpress/edit-site": "6.0.0",
106+
"@wordpress/edit-widgets": "6.0.0",
107+
"@wordpress/editor": "14.0.0",
108+
"@wordpress/element": "6.0.0",
109+
"@wordpress/escape-html": "3.0.0",
110+
"@wordpress/format-library": "5.0.0",
111+
"@wordpress/hooks": "4.0.0",
112+
"@wordpress/html-entities": "4.0.0",
113+
"@wordpress/i18n": "5.0.0",
114+
"@wordpress/icons": "10.0.0",
115+
"@wordpress/interactivity": "6.0.0",
116+
"@wordpress/interactivity-router": "2.0.0",
117+
"@wordpress/interface": "6.0.0",
118+
"@wordpress/is-shallow-equal": "5.0.0",
119+
"@wordpress/keyboard-shortcuts": "5.0.0",
120+
"@wordpress/keycodes": "4.0.0",
121+
"@wordpress/list-reusable-blocks": "5.0.0",
122+
"@wordpress/media-utils": "5.0.0",
123+
"@wordpress/notices": "5.0.0",
124+
"@wordpress/nux": "9.0.0",
125+
"@wordpress/patterns": "2.0.0",
126+
"@wordpress/plugins": "7.0.0",
127+
"@wordpress/preferences": "4.0.0",
128+
"@wordpress/preferences-persistence": "2.0.0",
129+
"@wordpress/primitives": "4.0.0",
130+
"@wordpress/priority-queue": "3.0.0",
131+
"@wordpress/private-apis": "1.0.0",
132+
"@wordpress/redux-routine": "5.0.0",
133+
"@wordpress/reusable-blocks": "5.0.0",
134+
"@wordpress/rich-text": "7.0.0",
135+
"@wordpress/router": "1.0.0",
136+
"@wordpress/server-side-render": "5.0.0",
137+
"@wordpress/shortcode": "4.0.0",
138+
"@wordpress/style-engine": "2.0.0",
139+
"@wordpress/sync": "1.0.0",
140+
"@wordpress/token-list": "3.0.0",
141+
"@wordpress/undo-manager": "1.0.0",
142+
"@wordpress/url": "4.0.0",
143+
"@wordpress/viewport": "6.0.0",
144+
"@wordpress/warning": "3.0.0",
145+
"@wordpress/widgets": "4.0.0",
146+
"@wordpress/wordcount": "4.0.0",
147147
"backbone": "1.5.0",
148148
"clipboard": "2.0.11",
149149
"core-js-url-browser": "3.6.4",

src/wp-includes/assets/script-loader-packages.min.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/wp-includes/blocks/block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function render_block_core_block( $attributes ) {
7878
* filter so that it is available when a pattern's inner blocks are
7979
* rendering via do_blocks given it only receives the inner content.
8080
*/
81-
$has_pattern_overrides = isset( $attributes['content'] );
81+
$has_pattern_overrides = isset( $attributes['content'] ) && null !== get_block_bindings_source( 'core/pattern-overrides' );
8282
if ( $has_pattern_overrides ) {
8383
$filter_block_context = static function ( $context ) use ( $attributes ) {
8484
$context['pattern/overrides'] = $attributes['content'];

src/wp-includes/blocks/blocks-json.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,6 +1558,7 @@
15581558
'anchor' => true,
15591559
'align' => true,
15601560
'html' => false,
1561+
'shadow' => true,
15611562
'spacing' => array(
15621563
'padding' => true,
15631564
'margin' => array(
@@ -3110,7 +3111,8 @@
31103111
'textdomain' => 'default',
31113112
'attributes' => array(
31123113
'customText' => array(
3113-
'type' => 'string'
3114+
'type' => 'string',
3115+
'default' => ''
31143116
),
31153117
'noTeaser' => array(
31163118
'type' => 'boolean',

src/wp-includes/blocks/comments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @since 6.1.0
2020
*
21-
* @global WP_Post $post Global post object.
21+
* @global WP_Post $post Global post object.
2222
*
2323
* @param array $attributes Block attributes.
2424
* @param string $content Block default content.

src/wp-includes/blocks/cover/block.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
"anchor": true,
8686
"align": true,
8787
"html": false,
88+
"shadow": true,
8889
"spacing": {
8990
"padding": true,
9091
"margin": [ "top", "bottom" ],

src/wp-includes/blocks/image.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,12 @@ function block_core_image_render_lightbox( $block_content, $block ) {
188188
// Image.
189189
$p->next_tag( 'img' );
190190
$p->set_attribute( 'data-wp-init', 'callbacks.setButtonStyles' );
191-
$p->set_attribute( 'data-wp-on--load', 'callbacks.setButtonStyles' );
192-
$p->set_attribute( 'data-wp-on-window--resize', 'callbacks.setButtonStyles' );
191+
$p->set_attribute( 'data-wp-on-async--load', 'callbacks.setButtonStyles' );
192+
$p->set_attribute( 'data-wp-on-async-window--resize', 'callbacks.setButtonStyles' );
193193
// Sets an event callback on the `img` because the `figure` element can also
194194
// contain a caption, and we don't want to trigger the lightbox when the
195195
// caption is clicked.
196-
$p->set_attribute( 'data-wp-on--click', 'actions.showLightbox' );
196+
$p->set_attribute( 'data-wp-on-async--click', 'actions.showLightbox' );
197197

198198
$body_content = $p->get_updated_html();
199199

@@ -209,7 +209,7 @@ class="lightbox-trigger"
209209
aria-haspopup="dialog"
210210
aria-label="' . esc_attr( $aria_label ) . '"
211211
data-wp-init="callbacks.initTriggerButton"
212-
data-wp-on--click="actions.showLightbox"
212+
data-wp-on-async--click="actions.showLightbox"
213213
data-wp-style--right="context.imageButtonRight"
214214
data-wp-style--top="context.imageButtonTop"
215215
>
@@ -258,12 +258,12 @@ class="wp-lightbox-overlay zoom"
258258
data-wp-class--show-closing-animation="state.showClosingAnimation"
259259
data-wp-watch="callbacks.setOverlayFocus"
260260
data-wp-on--keydown="actions.handleKeydown"
261-
data-wp-on--touchstart="actions.handleTouchStart"
261+
data-wp-on-async--touchstart="actions.handleTouchStart"
262262
data-wp-on--touchmove="actions.handleTouchMove"
263-
data-wp-on--touchend="actions.handleTouchEnd"
264-
data-wp-on--click="actions.hideLightbox"
265-
data-wp-on-window--resize="callbacks.setOverlayStyles"
266-
data-wp-on-window--scroll="actions.handleScroll"
263+
data-wp-on-async--touchend="actions.handleTouchEnd"
264+
data-wp-on-async--click="actions.hideLightbox"
265+
data-wp-on-async-window--resize="callbacks.setOverlayStyles"
266+
data-wp-on-async-window--scroll="actions.handleScroll"
267267
tabindex="-1"
268268
>
269269
<button type="button" aria-label="$close_button_label" style="fill: $close_button_color" class="close-button">

src/wp-includes/blocks/more/block.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"textdomain": "default",
1010
"attributes": {
1111
"customText": {
12-
"type": "string"
12+
"type": "string",
13+
"default": ""
1314
},
1415
"noTeaser": {
1516
"type": "boolean",

src/wp-includes/blocks/navigation.php

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,10 +1617,16 @@ function block_core_navigation_update_ignore_hooked_blocks_meta( $post ) {
16171617
$rest_insert_wp_navigation_core_callback = 'block_core_navigation_' . 'update_ignore_hooked_blocks_meta'; // phpcs:ignore Generic.Strings.UnnecessaryStringConcat.Found
16181618

16191619
/*
1620-
* Injection of hooked blocks into the Navigation block relies on some functions present in WP >= 6.5
1621-
* that are not present in Gutenberg's WP 6.5 compatibility layer.
1620+
* Do not add the `block_core_navigation_update_ignore_hooked_blocks_meta` filter in the following cases:
1621+
* - If Core has added the `update_ignored_hooked_blocks_postmeta` filter already (WP >= 6.6);
1622+
* - or if the `set_ignored_hooked_blocks_metadata` function is unavailable (which is required for the filter to work. It was introduced by WP 6.5 but is not present in Gutenberg's WP 6.5 compatibility layer);
1623+
* - or if the `$rest_insert_wp_navigation_core_callback` filter has already been added.
16221624
*/
1623-
if ( function_exists( 'set_ignored_hooked_blocks_metadata' ) && ! has_filter( 'rest_pre_insert_wp_navigation', $rest_insert_wp_navigation_core_callback ) ) {
1625+
if (
1626+
! has_filter( 'rest_pre_insert_wp_navigation', 'update_ignored_hooked_blocks_postmeta' ) &&
1627+
function_exists( 'set_ignored_hooked_blocks_metadata' ) &&
1628+
! has_filter( 'rest_pre_insert_wp_navigation', $rest_insert_wp_navigation_core_callback )
1629+
) {
16241630
add_filter( 'rest_pre_insert_wp_navigation', 'block_core_navigation_update_ignore_hooked_blocks_meta' );
16251631
}
16261632

@@ -1668,9 +1674,15 @@ function block_core_navigation_insert_hooked_blocks_into_rest_response( $respons
16681674
$rest_prepare_wp_navigation_core_callback = 'block_core_navigation_' . 'insert_hooked_blocks_into_rest_response';
16691675

16701676
/*
1671-
* Injection of hooked blocks into the Navigation block relies on some functions present in WP >= 6.5
1672-
* that are not present in Gutenberg's WP 6.5 compatibility layer.
1677+
* Do not add the `block_core_navigation_insert_hooked_blocks_into_rest_response` filter in the following cases:
1678+
* - If Core has added the `insert_hooked_blocks_into_rest_response` filter already (WP >= 6.6);
1679+
* - or if the `set_ignored_hooked_blocks_metadata` function is unavailable (which is required for the filter to work. It was introduced by WP 6.5 but is not present in Gutenberg's WP 6.5 compatibility layer);
1680+
* - or if the `$rest_prepare_wp_navigation_core_callback` filter has already been added.
16731681
*/
1674-
if ( function_exists( 'set_ignored_hooked_blocks_metadata' ) && ! has_filter( 'rest_prepare_wp_navigation', $rest_prepare_wp_navigation_core_callback ) ) {
1682+
if (
1683+
! has_filter( 'rest_prepare_wp_navigation', 'insert_hooked_blocks_into_rest_response' ) &&
1684+
function_exists( 'set_ignored_hooked_blocks_metadata' ) &&
1685+
! has_filter( 'rest_prepare_wp_navigation', $rest_prepare_wp_navigation_core_callback )
1686+
) {
16751687
add_filter( 'rest_prepare_wp_navigation', 'block_core_navigation_insert_hooked_blocks_into_rest_response', 10, 3 );
16761688
}

0 commit comments

Comments
 (0)