Skip to content

Commit 932895b

Browse files
committed
Editor: Update npm packages.
Updates the editor npm packages to latest versions. See #6612. Props ellatrix, mukesh27, youknowriad, mamaduka. git-svn-id: https://develop.svn.wordpress.org/trunk@58187 602fd350-edb4-49c9-b593-d223f7449a82
1 parent b815a36 commit 932895b

91 files changed

Lines changed: 3383 additions & 2544 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

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

package.json

Lines changed: 75 additions & 75 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.35.1",
31-
"@wordpress/dependency-extraction-webpack-plugin": "5.2.1",
32-
"@wordpress/e2e-test-utils": "10.22.1",
33-
"@wordpress/e2e-test-utils-playwright": "0.19.2",
34-
"@wordpress/prettier-config": "3.8.1",
35-
"@wordpress/scripts": "27.2.5",
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",
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.51.1",
82-
"@wordpress/annotations": "2.51.4",
83-
"@wordpress/api-fetch": "6.48.1",
84-
"@wordpress/autop": "3.51.1",
85-
"@wordpress/blob": "3.51.1",
86-
"@wordpress/block-directory": "4.28.10",
87-
"@wordpress/block-editor": "12.19.8",
88-
"@wordpress/block-library": "8.28.10",
89-
"@wordpress/block-serialization-default-parser": "4.51.1",
90-
"@wordpress/blocks": "12.28.6",
91-
"@wordpress/commands": "0.22.6",
92-
"@wordpress/components": "26.0.6",
93-
"@wordpress/compose": "6.28.1",
94-
"@wordpress/core-commands": "0.20.8",
95-
"@wordpress/core-data": "6.28.8",
96-
"@wordpress/customize-widgets": "4.28.10",
97-
"@wordpress/data": "9.21.1",
98-
"@wordpress/data-controls": "3.20.1",
99-
"@wordpress/dataviews": "0.5.7",
100-
"@wordpress/date": "4.51.1",
101-
"@wordpress/deprecated": "3.51.1",
102-
"@wordpress/dom": "3.51.1",
103-
"@wordpress/dom-ready": "3.51.1",
104-
"@wordpress/edit-post": "7.28.10",
105-
"@wordpress/edit-site": "5.28.10",
106-
"@wordpress/edit-widgets": "5.28.10",
107-
"@wordpress/editor": "13.28.8",
108-
"@wordpress/element": "5.28.1",
109-
"@wordpress/escape-html": "2.51.1",
110-
"@wordpress/format-library": "4.28.8",
111-
"@wordpress/hooks": "3.51.1",
112-
"@wordpress/html-entities": "3.51.1",
113-
"@wordpress/i18n": "4.51.1",
114-
"@wordpress/icons": "9.42.4",
115-
"@wordpress/interactivity": "5.0.5",
116-
"@wordpress/interactivity-router": "1.1.5",
117-
"@wordpress/interface": "5.28.6",
118-
"@wordpress/is-shallow-equal": "4.51.1",
119-
"@wordpress/keyboard-shortcuts": "4.28.1",
120-
"@wordpress/keycodes": "3.51.1",
121-
"@wordpress/list-reusable-blocks": "4.28.6",
122-
"@wordpress/media-utils": "4.42.2",
123-
"@wordpress/notices": "4.19.1",
124-
"@wordpress/nux": "8.13.6",
125-
"@wordpress/patterns": "1.12.8",
126-
"@wordpress/plugins": "6.19.6",
127-
"@wordpress/preferences": "3.28.6",
128-
"@wordpress/preferences-persistence": "1.43.1",
129-
"@wordpress/primitives": "3.49.1",
130-
"@wordpress/priority-queue": "2.51.1",
131-
"@wordpress/private-apis": "0.33.1",
132-
"@wordpress/redux-routine": "4.51.1",
133-
"@wordpress/reusable-blocks": "4.28.8",
134-
"@wordpress/rich-text": "6.28.4",
135-
"@wordpress/router": "0.20.1",
136-
"@wordpress/server-side-render": "4.28.7",
137-
"@wordpress/shortcode": "3.51.1",
138-
"@wordpress/style-engine": "1.34.1",
139-
"@wordpress/sync": "0.13.1",
140-
"@wordpress/token-list": "2.51.1",
141-
"@wordpress/undo-manager": "0.11.1",
142-
"@wordpress/url": "3.52.1",
143-
"@wordpress/viewport": "5.28.1",
144-
"@wordpress/warning": "2.51.1",
145-
"@wordpress/widgets": "3.28.8",
146-
"@wordpress/wordcount": "3.51.1",
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",
147147
"backbone": "1.5.0",
148148
"clipboard": "2.0.11",
149149
"core-js-url-browser": "3.6.4",
@@ -162,9 +162,9 @@
162162
"moment": "2.29.4",
163163
"objectFitPolyfill": "2.3.5",
164164
"polyfill-library": "4.8.0",
165-
"react": "18.2.0",
166-
"react-dom": "18.2.0",
167-
"react-is": "18.2.0",
165+
"react": "18.3.1",
166+
"react-dom": "18.3.1",
167+
"react-is": "18.3.1",
168168
"regenerator-runtime": "0.14.0",
169169
"underscore": "1.13.6",
170170
"whatwg-fetch": "3.6.17",

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/archives.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/**
99
* Renders the `core/archives` block on server.
1010
*
11+
* @since 5.0.0
12+
*
1113
* @see WP_Widget_Archives
1214
*
1315
* @param array $attributes The block attributes.
@@ -106,6 +108,8 @@ function render_block_core_archives( $attributes ) {
106108

107109
/**
108110
* Register archives block.
111+
*
112+
* @since 5.0.0
109113
*/
110114
function register_block_core_archives() {
111115
register_block_type_from_metadata(

src/wp-includes/blocks/avatar.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/**
99
* Renders the `core/avatar` block on the server.
1010
*
11+
* @since 6.0.0
12+
*
1113
* @param array $attributes Block attributes.
1214
* @param string $content Block default content.
1315
* @param WP_Block $block Block instance.
@@ -31,7 +33,18 @@ function render_block_core_avatar( $attributes, $content, $block ) {
3133
: '';
3234

3335
if ( ! isset( $block->context['commentId'] ) ) {
34-
$author_id = isset( $attributes['userId'] ) ? $attributes['userId'] : get_post_field( 'post_author', $block->context['postId'] );
36+
if ( isset( $attributes['userId'] ) ) {
37+
$author_id = $attributes['userId'];
38+
} elseif ( isset( $block->context['postId'] ) ) {
39+
$author_id = get_post_field( 'post_author', $block->context['postId'] );
40+
} else {
41+
$author_id = get_query_var( 'author' );
42+
}
43+
44+
if ( empty( $author_id ) ) {
45+
return '';
46+
}
47+
3548
$author_name = get_the_author_meta( 'display_name', $author_id );
3649
// translators: %s is the Author name.
3750
$alt = sprintf( __( '%s Avatar' ), $author_name );
@@ -88,6 +101,8 @@ function render_block_core_avatar( $attributes, $content, $block ) {
88101
* Generates class names and styles to apply the border support styles for
89102
* the Avatar block.
90103
*
104+
* @since 6.3.0
105+
*
91106
* @param array $attributes The block attributes.
92107
* @return array The border-related classnames and styles for the block.
93108
*/
@@ -138,6 +153,8 @@ function get_block_core_avatar_border_attributes( $attributes ) {
138153

139154
/**
140155
* Registers the `core/avatar` block on the server.
156+
*
157+
* @since 6.0.0
141158
*/
142159
function register_block_core_avatar() {
143160
register_block_type_from_metadata(

src/wp-includes/blocks/block.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
/**
99
* Renders the `core/block` block on server.
1010
*
11+
* @since 5.0.0
12+
*
13+
* @global WP_Embed $wp_embed
14+
*
1115
* @param array $attributes The block attributes.
1216
*
1317
* @return string Rendered HTML of the referenced block.
@@ -95,6 +99,8 @@ function render_block_core_block( $attributes ) {
9599

96100
/**
97101
* Registers the `core/block` block.
102+
*
103+
* @since 5.3.0
98104
*/
99105
function register_block_core_block() {
100106
register_block_type_from_metadata(

0 commit comments

Comments
 (0)