Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update packages for 6.7 Beta 1 (2/3) #7417

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,344 changes: 710 additions & 634 deletions package-lock.json

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
"@playwright/test": "1.45.0",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
"@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-playwright": "1.8.1",
"@wordpress/prettier-config": "4.8.1",
"@wordpress/scripts": "30.0.2",
"@wordpress/scripts": "30.0.3",
"autoprefixer": "10.4.19",
"chalk": "5.3.0",
"check-node-version": "4.2.1",
Expand Down Expand Up @@ -79,71 +79,71 @@
},
"dependencies": {
"@wordpress/a11y": "4.8.1",
"@wordpress/annotations": "3.8.1",
"@wordpress/annotations": "3.8.2",
"@wordpress/api-fetch": "7.8.1",
"@wordpress/autop": "4.8.1",
"@wordpress/blob": "4.8.1",
"@wordpress/block-directory": "5.8.3",
"@wordpress/block-editor": "14.3.1",
"@wordpress/block-library": "9.8.2",
"@wordpress/block-directory": "5.8.4",
"@wordpress/block-editor": "14.3.2",
"@wordpress/block-library": "9.8.3",
"@wordpress/block-serialization-default-parser": "5.8.1",
"@wordpress/blocks": "13.8.1",
"@wordpress/commands": "1.8.1",
"@wordpress/components": "28.8.1",
"@wordpress/compose": "7.8.1",
"@wordpress/core-commands": "1.8.1",
"@wordpress/core-data": "7.8.1",
"@wordpress/customize-widgets": "5.8.2",
"@wordpress/data": "10.8.1",
"@wordpress/data-controls": "4.8.1",
"@wordpress/dataviews": "4.4.1",
"@wordpress/blocks": "13.8.2",
"@wordpress/commands": "1.8.2",
"@wordpress/components": "28.8.2",
"@wordpress/compose": "7.8.2",
"@wordpress/core-commands": "1.8.2",
"@wordpress/core-data": "7.8.2",
"@wordpress/customize-widgets": "5.8.3",
"@wordpress/data": "10.8.2",
"@wordpress/data-controls": "4.8.2",
"@wordpress/dataviews": "4.4.2",
"@wordpress/date": "5.8.1",
"@wordpress/deprecated": "4.8.1",
"@wordpress/dom": "4.8.1",
"@wordpress/dom-ready": "4.8.1",
"@wordpress/edit-post": "8.8.3",
"@wordpress/edit-site": "6.8.3",
"@wordpress/edit-widgets": "6.8.2",
"@wordpress/editor": "14.8.3",
"@wordpress/edit-post": "8.8.4",
"@wordpress/edit-site": "6.8.4",
"@wordpress/edit-widgets": "6.8.3",
"@wordpress/editor": "14.8.4",
"@wordpress/element": "6.8.1",
"@wordpress/escape-html": "3.8.1",
"@wordpress/fields": "0.0.2",
"@wordpress/format-library": "5.8.1",
"@wordpress/fields": "0.0.3",
"@wordpress/format-library": "5.8.2",
"@wordpress/hooks": "4.8.1",
"@wordpress/html-entities": "4.8.1",
"@wordpress/i18n": "5.8.1",
"@wordpress/icons": "10.8.1",
"@wordpress/interactivity": "6.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/keyboard-shortcuts": "5.8.1",
"@wordpress/keyboard-shortcuts": "5.8.2",
"@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/notices": "5.8.1",
"@wordpress/nux": "9.8.1",
"@wordpress/patterns": "2.8.1",
"@wordpress/plugins": "7.8.1",
"@wordpress/preferences": "4.8.1",
"@wordpress/notices": "5.8.2",
"@wordpress/nux": "9.8.2",
"@wordpress/patterns": "2.8.2",
"@wordpress/plugins": "7.8.2",
"@wordpress/preferences": "4.8.2",
"@wordpress/preferences-persistence": "2.8.1",
"@wordpress/primitives": "4.8.1",
"@wordpress/priority-queue": "3.8.1",
"@wordpress/private-apis": "1.8.1",
"@wordpress/redux-routine": "5.8.1",
"@wordpress/reusable-blocks": "5.8.1",
"@wordpress/rich-text": "7.8.1",
"@wordpress/reusable-blocks": "5.8.2",
"@wordpress/rich-text": "7.8.2",
"@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/style-engine": "2.8.1",
"@wordpress/sync": "1.8.1",
"@wordpress/token-list": "3.8.1",
"@wordpress/undo-manager": "1.8.1",
"@wordpress/url": "4.8.1",
"@wordpress/viewport": "6.8.1",
"@wordpress/viewport": "6.8.2",
"@wordpress/warning": "3.8.1",
"@wordpress/widgets": "4.8.1",
"@wordpress/widgets": "4.8.2",
"@wordpress/wordcount": "4.8.1",
"backbone": "1.6.0",
"clipboard": "2.0.11",
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/assets/script-loader-packages.min.php

Large diffs are not rendered by default.

13 changes: 1 addition & 12 deletions src/wp-includes/blocks/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,7 @@
function render_block_core_file( $attributes, $content ) {
// If it's interactive, enqueue the script module and add the directives.
if ( ! empty( $attributes['displayPreview'] ) ) {
$suffix = wp_scripts_get_suffix();
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' );
wp_enqueue_script_module( '@wordpress/block-library/file/view' );

$processor = new WP_HTML_Tag_Processor( $content );
$processor->next_tag();
Expand Down
14 changes: 1 addition & 13 deletions src/wp-includes/blocks/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,7 @@ function render_block_core_image( $attributes, $content, $block ) {
isset( $lightbox_settings['enabled'] ) &&
true === $lightbox_settings['enabled']
) {
$suffix = wp_scripts_get_suffix();
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' );
wp_enqueue_script_module( '@wordpress/block-library/image/view' );

/*
* This render needs to happen in a filter with priority 15 to ensure that
Expand Down
13 changes: 1 addition & 12 deletions src/wp-includes/blocks/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -622,18 +622,7 @@ private static function get_nav_element_directives( $is_interactive ) {
*/
private static function handle_view_script_module_loading( $attributes, $block, $inner_blocks ) {
if ( static::is_interactive( $attributes, $inner_blocks ) ) {
$suffix = wp_scripts_get_suffix();
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' );
wp_enqueue_script_module( '@wordpress/block-library/navigation/view' );
}
}

Expand Down
5 changes: 0 additions & 5 deletions src/wp-includes/blocks/post-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ function render_block_core_post_template( $attributes, $content, $block ) {
if ( in_the_loop() ) {
$query = clone $wp_query;
$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 {
$query = $wp_query;
}
Expand Down
22 changes: 1 addition & 21 deletions src/wp-includes/blocks/query.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
// interactive.
if ( $is_interactive ) {
$suffix = wp_scripts_get_suffix();
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' );
wp_enqueue_script_module( '@wordpress/block-library/query/view' );

$p = new WP_HTML_Tag_Processor( $content );
if ( $p->next_tag() ) {
Expand Down
13 changes: 1 addition & 12 deletions src/wp-includes/blocks/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,7 @@ function render_block_core_search( $attributes ) {
// If it's interactive, enqueue the script module and add the directives.
$is_expandable_searchfield = 'button-only' === $button_position;
if ( $is_expandable_searchfield ) {
$suffix = wp_scripts_get_suffix();
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' );
wp_enqueue_script_module( '@wordpress/block-library/search/view' );

$input->set_attribute( 'data-wp-bind--aria-hidden', '!context.isSearchInputVisible' );
$input->set_attribute( 'data-wp-bind--tabindex', 'state.tabindex' );
Expand Down
Loading