Editor: Update packages for 6.7 Beta 1.

Syncs `@wordpress/*` packages to the `wp-6.7` npm tag.

See #61906.


git-svn-id: https://develop.svn.wordpress.org/trunk@59079 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Robert Anderson 2024-09-23 06:50:27 +00:00
parent e2d9ffcf1e
commit d2f4251fb1
9 changed files with 751 additions and 745 deletions

1344
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -28,11 +28,11 @@
"@playwright/test": "1.45.0", "@playwright/test": "1.45.0",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15", "@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
"@wordpress/babel-preset-default": "8.8.2", "@wordpress/babel-preset-default": "8.8.2",
"@wordpress/dependency-extraction-webpack-plugin": "6.8.1", "@wordpress/dependency-extraction-webpack-plugin": "6.8.2",
"@wordpress/e2e-test-utils": "11.8.1", "@wordpress/e2e-test-utils": "11.8.1",
"@wordpress/e2e-test-utils-playwright": "1.8.1", "@wordpress/e2e-test-utils-playwright": "1.8.1",
"@wordpress/prettier-config": "4.8.1", "@wordpress/prettier-config": "4.8.1",
"@wordpress/scripts": "30.0.2", "@wordpress/scripts": "30.0.3",
"autoprefixer": "10.4.19", "autoprefixer": "10.4.19",
"chalk": "5.3.0", "chalk": "5.3.0",
"check-node-version": "4.2.1", "check-node-version": "4.2.1",
@ -79,71 +79,71 @@
}, },
"dependencies": { "dependencies": {
"@wordpress/a11y": "4.8.1", "@wordpress/a11y": "4.8.1",
"@wordpress/annotations": "3.8.1", "@wordpress/annotations": "3.8.2",
"@wordpress/api-fetch": "7.8.1", "@wordpress/api-fetch": "7.8.1",
"@wordpress/autop": "4.8.1", "@wordpress/autop": "4.8.1",
"@wordpress/blob": "4.8.1", "@wordpress/blob": "4.8.1",
"@wordpress/block-directory": "5.8.3", "@wordpress/block-directory": "5.8.4",
"@wordpress/block-editor": "14.3.1", "@wordpress/block-editor": "14.3.2",
"@wordpress/block-library": "9.8.2", "@wordpress/block-library": "9.8.3",
"@wordpress/block-serialization-default-parser": "5.8.1", "@wordpress/block-serialization-default-parser": "5.8.1",
"@wordpress/blocks": "13.8.1", "@wordpress/blocks": "13.8.2",
"@wordpress/commands": "1.8.1", "@wordpress/commands": "1.8.2",
"@wordpress/components": "28.8.1", "@wordpress/components": "28.8.2",
"@wordpress/compose": "7.8.1", "@wordpress/compose": "7.8.2",
"@wordpress/core-commands": "1.8.1", "@wordpress/core-commands": "1.8.2",
"@wordpress/core-data": "7.8.1", "@wordpress/core-data": "7.8.2",
"@wordpress/customize-widgets": "5.8.2", "@wordpress/customize-widgets": "5.8.3",
"@wordpress/data": "10.8.1", "@wordpress/data": "10.8.2",
"@wordpress/data-controls": "4.8.1", "@wordpress/data-controls": "4.8.2",
"@wordpress/dataviews": "4.4.1", "@wordpress/dataviews": "4.4.2",
"@wordpress/date": "5.8.1", "@wordpress/date": "5.8.1",
"@wordpress/deprecated": "4.8.1", "@wordpress/deprecated": "4.8.1",
"@wordpress/dom": "4.8.1", "@wordpress/dom": "4.8.1",
"@wordpress/dom-ready": "4.8.1", "@wordpress/dom-ready": "4.8.1",
"@wordpress/edit-post": "8.8.3", "@wordpress/edit-post": "8.8.4",
"@wordpress/edit-site": "6.8.3", "@wordpress/edit-site": "6.8.4",
"@wordpress/edit-widgets": "6.8.2", "@wordpress/edit-widgets": "6.8.3",
"@wordpress/editor": "14.8.3", "@wordpress/editor": "14.8.4",
"@wordpress/element": "6.8.1", "@wordpress/element": "6.8.1",
"@wordpress/escape-html": "3.8.1", "@wordpress/escape-html": "3.8.1",
"@wordpress/fields": "0.0.2", "@wordpress/fields": "0.0.3",
"@wordpress/format-library": "5.8.1", "@wordpress/format-library": "5.8.2",
"@wordpress/hooks": "4.8.1", "@wordpress/hooks": "4.8.1",
"@wordpress/html-entities": "4.8.1", "@wordpress/html-entities": "4.8.1",
"@wordpress/i18n": "5.8.1", "@wordpress/i18n": "5.8.1",
"@wordpress/icons": "10.8.1", "@wordpress/icons": "10.8.1",
"@wordpress/interactivity": "6.8.2", "@wordpress/interactivity": "6.8.2",
"@wordpress/interactivity-router": "2.8.2", "@wordpress/interactivity-router": "2.8.2",
"@wordpress/interface": "6.8.1", "@wordpress/interface": "6.8.2",
"@wordpress/is-shallow-equal": "5.8.1", "@wordpress/is-shallow-equal": "5.8.1",
"@wordpress/keyboard-shortcuts": "5.8.1", "@wordpress/keyboard-shortcuts": "5.8.2",
"@wordpress/keycodes": "4.8.1", "@wordpress/keycodes": "4.8.1",
"@wordpress/list-reusable-blocks": "5.8.1", "@wordpress/list-reusable-blocks": "5.8.2",
"@wordpress/media-utils": "5.8.1", "@wordpress/media-utils": "5.8.1",
"@wordpress/notices": "5.8.1", "@wordpress/notices": "5.8.2",
"@wordpress/nux": "9.8.1", "@wordpress/nux": "9.8.2",
"@wordpress/patterns": "2.8.1", "@wordpress/patterns": "2.8.2",
"@wordpress/plugins": "7.8.1", "@wordpress/plugins": "7.8.2",
"@wordpress/preferences": "4.8.1", "@wordpress/preferences": "4.8.2",
"@wordpress/preferences-persistence": "2.8.1", "@wordpress/preferences-persistence": "2.8.1",
"@wordpress/primitives": "4.8.1", "@wordpress/primitives": "4.8.1",
"@wordpress/priority-queue": "3.8.1", "@wordpress/priority-queue": "3.8.1",
"@wordpress/private-apis": "1.8.1", "@wordpress/private-apis": "1.8.1",
"@wordpress/redux-routine": "5.8.1", "@wordpress/redux-routine": "5.8.1",
"@wordpress/reusable-blocks": "5.8.1", "@wordpress/reusable-blocks": "5.8.2",
"@wordpress/rich-text": "7.8.1", "@wordpress/rich-text": "7.8.2",
"@wordpress/router": "1.8.1", "@wordpress/router": "1.8.1",
"@wordpress/server-side-render": "5.8.1", "@wordpress/server-side-render": "5.8.2",
"@wordpress/shortcode": "4.8.1", "@wordpress/shortcode": "4.8.1",
"@wordpress/style-engine": "2.8.1", "@wordpress/style-engine": "2.8.1",
"@wordpress/sync": "1.8.1", "@wordpress/sync": "1.8.1",
"@wordpress/token-list": "3.8.1", "@wordpress/token-list": "3.8.1",
"@wordpress/undo-manager": "1.8.1", "@wordpress/undo-manager": "1.8.1",
"@wordpress/url": "4.8.1", "@wordpress/url": "4.8.1",
"@wordpress/viewport": "6.8.1", "@wordpress/viewport": "6.8.2",
"@wordpress/warning": "3.8.1", "@wordpress/warning": "3.8.1",
"@wordpress/widgets": "4.8.1", "@wordpress/widgets": "4.8.2",
"@wordpress/wordcount": "4.8.1", "@wordpress/wordcount": "4.8.1",
"backbone": "1.6.0", "backbone": "1.6.0",
"clipboard": "2.0.11", "clipboard": "2.0.11",

File diff suppressed because one or more lines are too long

View File

@ -19,18 +19,7 @@
function render_block_core_file( $attributes, $content ) { function render_block_core_file( $attributes, $content ) {
// If it's interactive, enqueue the script module and add the directives. // If it's interactive, enqueue the script module and add the directives.
if ( ! empty( $attributes['displayPreview'] ) ) { if ( ! empty( $attributes['displayPreview'] ) ) {
$suffix = wp_scripts_get_suffix(); wp_enqueue_script_module( '@wordpress/block-library/file/view' );
if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
$module_url = gutenberg_url( '/build-module/block-library/file/view.min.js' );
}
wp_register_script_module(
'@wordpress/block-library/file',
isset( $module_url ) ? $module_url : includes_url( "blocks/file/view{$suffix}.js" ),
array( '@wordpress/interactivity' ),
defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' )
);
wp_enqueue_script_module( '@wordpress/block-library/file' );
$processor = new WP_HTML_Tag_Processor( $content ); $processor = new WP_HTML_Tag_Processor( $content );
$processor->next_tag(); $processor->next_tag();

View File

@ -70,19 +70,7 @@ function render_block_core_image( $attributes, $content, $block ) {
isset( $lightbox_settings['enabled'] ) && isset( $lightbox_settings['enabled'] ) &&
true === $lightbox_settings['enabled'] true === $lightbox_settings['enabled']
) { ) {
$suffix = wp_scripts_get_suffix(); wp_enqueue_script_module( '@wordpress/block-library/image/view' );
if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
$module_url = gutenberg_url( '/build-module/block-library/image/view.min.js' );
}
wp_register_script_module(
'@wordpress/block-library/image',
isset( $module_url ) ? $module_url : includes_url( "blocks/image/view{$suffix}.js" ),
array( '@wordpress/interactivity' ),
defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' )
);
wp_enqueue_script_module( '@wordpress/block-library/image' );
/* /*
* This render needs to happen in a filter with priority 15 to ensure that * This render needs to happen in a filter with priority 15 to ensure that

View File

@ -622,18 +622,7 @@ class WP_Navigation_Block_Renderer {
*/ */
private static function handle_view_script_module_loading( $attributes, $block, $inner_blocks ) { private static function handle_view_script_module_loading( $attributes, $block, $inner_blocks ) {
if ( static::is_interactive( $attributes, $inner_blocks ) ) { if ( static::is_interactive( $attributes, $inner_blocks ) ) {
$suffix = wp_scripts_get_suffix(); wp_enqueue_script_module( '@wordpress/block-library/navigation/view' );
if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
$module_url = gutenberg_url( '/build-module/block-library/navigation/view.min.js' );
}
wp_register_script_module(
'@wordpress/block-library/navigation',
isset( $module_url ) ? $module_url : includes_url( "blocks/navigation/view{$suffix}.js" ),
array( '@wordpress/interactivity' ),
defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' )
);
wp_enqueue_script_module( '@wordpress/block-library/navigation' );
} }
} }

View File

@ -64,11 +64,6 @@ function render_block_core_post_template( $attributes, $content, $block ) {
if ( in_the_loop() ) { if ( in_the_loop() ) {
$query = clone $wp_query; $query = clone $wp_query;
$query->rewind_posts(); $query->rewind_posts();
// If in a single post of any post type, default to the 'post' post type.
if ( is_singular() ) {
query_posts( array( 'post_type' => 'post' ) );
}
} else { } else {
$query = $wp_query; $query = $wp_query;
} }

View File

@ -24,27 +24,7 @@ function render_block_core_query( $attributes, $content, $block ) {
// Enqueue the script module and add the necessary directives if the block is // Enqueue the script module and add the necessary directives if the block is
// interactive. // interactive.
if ( $is_interactive ) { if ( $is_interactive ) {
$suffix = wp_scripts_get_suffix(); wp_enqueue_script_module( '@wordpress/block-library/query/view' );
if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
$module_url = gutenberg_url( '/build-module/block-library/query/view.min.js' );
}
wp_register_script_module(
'@wordpress/block-library/query',
isset( $module_url ) ? $module_url : includes_url( "blocks/query/view{$suffix}.js" ),
array(
array(
'id' => '@wordpress/interactivity',
'import' => 'static',
),
array(
'id' => '@wordpress/interactivity-router',
'import' => 'dynamic',
),
),
defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' )
);
wp_enqueue_script_module( '@wordpress/block-library/query' );
$p = new WP_HTML_Tag_Processor( $content ); $p = new WP_HTML_Tag_Processor( $content );
if ( $p->next_tag() ) { if ( $p->next_tag() ) {

View File

@ -80,18 +80,7 @@ function render_block_core_search( $attributes ) {
// If it's interactive, enqueue the script module and add the directives. // If it's interactive, enqueue the script module and add the directives.
$is_expandable_searchfield = 'button-only' === $button_position; $is_expandable_searchfield = 'button-only' === $button_position;
if ( $is_expandable_searchfield ) { if ( $is_expandable_searchfield ) {
$suffix = wp_scripts_get_suffix(); wp_enqueue_script_module( '@wordpress/block-library/search/view' );
if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
$module_url = gutenberg_url( '/build-module/block-library/search/view.min.js' );
}
wp_register_script_module(
'@wordpress/block-library/search',
isset( $module_url ) ? $module_url : includes_url( "blocks/search/view{$suffix}.js" ),
array( '@wordpress/interactivity' ),
defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' )
);
wp_enqueue_script_module( '@wordpress/block-library/search' );
$input->set_attribute( 'data-wp-bind--aria-hidden', '!context.isSearchInputVisible' ); $input->set_attribute( 'data-wp-bind--aria-hidden', '!context.isSearchInputVisible' );
$input->set_attribute( 'data-wp-bind--tabindex', 'state.tabindex' ); $input->set_attribute( 'data-wp-bind--tabindex', 'state.tabindex' );