mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
Editor: Update Packages with the latest bug fixes for 6.5 RC 1
It includes all the backports from this Gutenberg PR https://github.com/WordPress/gutenberg/pull/59541/ Props get_dave, youknowriad, talldanwp. See #60315. Fixes #60665. git-svn-id: https://develop.svn.wordpress.org/trunk@57760 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a5541c0140
commit
798264f39a
984
package-lock.json
generated
984
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
62
package.json
62
package.json
@ -30,9 +30,9 @@
|
||||
"@wordpress/babel-preset-default": "7.35.1",
|
||||
"@wordpress/dependency-extraction-webpack-plugin": "5.2.1",
|
||||
"@wordpress/e2e-test-utils": "10.22.1",
|
||||
"@wordpress/e2e-test-utils-playwright": "0.19.1",
|
||||
"@wordpress/e2e-test-utils-playwright": "0.19.2",
|
||||
"@wordpress/prettier-config": "3.8.1",
|
||||
"@wordpress/scripts": "27.2.3",
|
||||
"@wordpress/scripts": "27.2.4",
|
||||
"autoprefixer": "10.4.17",
|
||||
"chalk": "5.3.0",
|
||||
"check-node-version": "4.2.1",
|
||||
@ -79,61 +79,61 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@wordpress/a11y": "3.51.1",
|
||||
"@wordpress/annotations": "2.51.2",
|
||||
"@wordpress/annotations": "2.51.3",
|
||||
"@wordpress/api-fetch": "6.48.1",
|
||||
"@wordpress/autop": "3.51.1",
|
||||
"@wordpress/blob": "3.51.1",
|
||||
"@wordpress/block-directory": "4.28.4",
|
||||
"@wordpress/block-editor": "12.19.4",
|
||||
"@wordpress/block-library": "8.28.4",
|
||||
"@wordpress/block-directory": "4.28.5",
|
||||
"@wordpress/block-editor": "12.19.5",
|
||||
"@wordpress/block-library": "8.28.5",
|
||||
"@wordpress/block-serialization-default-parser": "4.51.1",
|
||||
"@wordpress/blocks": "12.28.4",
|
||||
"@wordpress/commands": "0.22.3",
|
||||
"@wordpress/components": "26.0.3",
|
||||
"@wordpress/blocks": "12.28.5",
|
||||
"@wordpress/commands": "0.22.4",
|
||||
"@wordpress/components": "26.0.4",
|
||||
"@wordpress/compose": "6.28.1",
|
||||
"@wordpress/core-commands": "0.20.4",
|
||||
"@wordpress/core-data": "6.28.4",
|
||||
"@wordpress/customize-widgets": "4.28.4",
|
||||
"@wordpress/core-commands": "0.20.5",
|
||||
"@wordpress/core-data": "6.28.5",
|
||||
"@wordpress/customize-widgets": "4.28.5",
|
||||
"@wordpress/data": "9.21.1",
|
||||
"@wordpress/data-controls": "3.20.1",
|
||||
"@wordpress/dataviews": "0.5.4",
|
||||
"@wordpress/dataviews": "0.5.5",
|
||||
"@wordpress/date": "4.51.1",
|
||||
"@wordpress/deprecated": "3.51.1",
|
||||
"@wordpress/dom": "3.51.1",
|
||||
"@wordpress/dom-ready": "3.51.1",
|
||||
"@wordpress/edit-post": "7.28.4",
|
||||
"@wordpress/edit-site": "5.28.4",
|
||||
"@wordpress/edit-widgets": "5.28.4",
|
||||
"@wordpress/editor": "13.28.4",
|
||||
"@wordpress/edit-post": "7.28.5",
|
||||
"@wordpress/edit-site": "5.28.5",
|
||||
"@wordpress/edit-widgets": "5.28.5",
|
||||
"@wordpress/editor": "13.28.5",
|
||||
"@wordpress/element": "5.28.1",
|
||||
"@wordpress/escape-html": "2.51.1",
|
||||
"@wordpress/format-library": "4.28.4",
|
||||
"@wordpress/format-library": "4.28.5",
|
||||
"@wordpress/hooks": "3.51.1",
|
||||
"@wordpress/html-entities": "3.51.1",
|
||||
"@wordpress/i18n": "4.51.1",
|
||||
"@wordpress/icons": "9.42.2",
|
||||
"@wordpress/interactivity": "5.0.2",
|
||||
"@wordpress/interactivity-router": "1.1.2",
|
||||
"@wordpress/interface": "5.28.3",
|
||||
"@wordpress/icons": "9.42.3",
|
||||
"@wordpress/interactivity": "5.0.3",
|
||||
"@wordpress/interactivity-router": "1.1.3",
|
||||
"@wordpress/interface": "5.28.4",
|
||||
"@wordpress/is-shallow-equal": "4.51.1",
|
||||
"@wordpress/keyboard-shortcuts": "4.28.1",
|
||||
"@wordpress/keycodes": "3.51.1",
|
||||
"@wordpress/list-reusable-blocks": "4.28.3",
|
||||
"@wordpress/list-reusable-blocks": "4.28.4",
|
||||
"@wordpress/media-utils": "4.42.1",
|
||||
"@wordpress/notices": "4.19.1",
|
||||
"@wordpress/nux": "8.13.3",
|
||||
"@wordpress/patterns": "1.12.4",
|
||||
"@wordpress/plugins": "6.19.3",
|
||||
"@wordpress/preferences": "3.28.3",
|
||||
"@wordpress/nux": "8.13.4",
|
||||
"@wordpress/patterns": "1.12.5",
|
||||
"@wordpress/plugins": "6.19.4",
|
||||
"@wordpress/preferences": "3.28.4",
|
||||
"@wordpress/preferences-persistence": "1.43.1",
|
||||
"@wordpress/primitives": "3.49.1",
|
||||
"@wordpress/priority-queue": "2.51.1",
|
||||
"@wordpress/private-apis": "0.33.1",
|
||||
"@wordpress/redux-routine": "4.51.1",
|
||||
"@wordpress/reusable-blocks": "4.28.4",
|
||||
"@wordpress/rich-text": "6.28.2",
|
||||
"@wordpress/reusable-blocks": "4.28.5",
|
||||
"@wordpress/rich-text": "6.28.3",
|
||||
"@wordpress/router": "0.20.1",
|
||||
"@wordpress/server-side-render": "4.28.4",
|
||||
"@wordpress/server-side-render": "4.28.5",
|
||||
"@wordpress/shortcode": "3.51.1",
|
||||
"@wordpress/style-engine": "1.34.1",
|
||||
"@wordpress/sync": "0.13.1",
|
||||
@ -142,7 +142,7 @@
|
||||
"@wordpress/url": "3.52.1",
|
||||
"@wordpress/viewport": "5.28.1",
|
||||
"@wordpress/warning": "2.51.1",
|
||||
"@wordpress/widgets": "3.28.4",
|
||||
"@wordpress/widgets": "3.28.5",
|
||||
"@wordpress/wordcount": "3.51.1",
|
||||
"backbone": "1.5.0",
|
||||
"clipboard": "2.0.11",
|
||||
|
File diff suppressed because one or more lines are too long
@ -20,11 +20,11 @@
|
||||
* @return mixed The value computed for the source.
|
||||
*/
|
||||
function _block_bindings_pattern_overrides_get_value( array $source_args, $block_instance, string $attribute_name ) {
|
||||
if ( empty( $block_instance->attributes['metadata']['id'] ) ) {
|
||||
if ( empty( $block_instance->attributes['metadata']['name'] ) ) {
|
||||
return null;
|
||||
}
|
||||
$block_id = $block_instance->attributes['metadata']['id'];
|
||||
return _wp_array_get( $block_instance->context, array( 'pattern/overrides', $block_id, 'values', $attribute_name ), null );
|
||||
$metadata_name = $block_instance->attributes['metadata']['name'];
|
||||
return _wp_array_get( $block_instance->context, array( 'pattern/overrides', $metadata_name, $attribute_name ), null );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -46,26 +46,35 @@ function render_block_core_block( $attributes ) {
|
||||
$content = $wp_embed->run_shortcode( $reusable_block->post_content );
|
||||
$content = $wp_embed->autoembed( $content );
|
||||
|
||||
// Back compat, the content attribute was previously named overrides and
|
||||
// had a slightly different format. For blocks that have not been migrated,
|
||||
// also convert the format here so that the provided `pattern/overrides`
|
||||
// context is correct.
|
||||
if ( isset( $attributes['overrides'] ) && ! isset( $attributes['content'] ) ) {
|
||||
$migrated_content = array();
|
||||
foreach ( $attributes['overrides'] as $id => $values ) {
|
||||
$migrated_content[ $id ] = array(
|
||||
'values' => $values,
|
||||
);
|
||||
// Back compat.
|
||||
// For blocks that have not been migrated in the editor, add some back compat
|
||||
// so that front-end rendering continues to work.
|
||||
|
||||
// This matches the `v2` deprecation. Removes the inner `values` property
|
||||
// from every item.
|
||||
if ( isset( $attributes['content'] ) ) {
|
||||
foreach ( $attributes['content'] as &$content_data ) {
|
||||
if ( isset( $content_data['values'] ) ) {
|
||||
$is_assoc_array = is_array( $content_data['values'] ) && ! wp_is_numeric_array( $content_data['values'] );
|
||||
|
||||
if ( $is_assoc_array ) {
|
||||
$content_data = $content_data['values'];
|
||||
}
|
||||
}
|
||||
}
|
||||
$attributes['content'] = $migrated_content;
|
||||
}
|
||||
$has_pattern_overrides = isset( $attributes['content'] );
|
||||
|
||||
// This matches the `v1` deprecation. Rename `overrides` to `content`.
|
||||
if ( isset( $attributes['overrides'] ) && ! isset( $attributes['content'] ) ) {
|
||||
$attributes['content'] = $attributes['overrides'];
|
||||
}
|
||||
|
||||
/**
|
||||
* We set the `pattern/overrides` context through the `render_block_context`
|
||||
* filter so that it is available when a pattern's inner blocks are
|
||||
* rendering via do_blocks given it only receives the inner content.
|
||||
*/
|
||||
$has_pattern_overrides = isset( $attributes['content'] );
|
||||
if ( $has_pattern_overrides ) {
|
||||
$filter_block_context = static function ( $context ) use ( $attributes ) {
|
||||
$context['pattern/overrides'] = $attributes['content'];
|
||||
|
@ -552,7 +552,7 @@ class WP_Navigation_Block_Renderer {
|
||||
return '';
|
||||
}
|
||||
// When adding to this array be mindful of security concerns.
|
||||
$nav_element_context = data_wp_context(
|
||||
$nav_element_context = wp_interactivity_data_wp_context(
|
||||
array(
|
||||
'overlayOpenedBy' => array(
|
||||
'click' => false,
|
||||
|
@ -179,7 +179,7 @@ function render_block_core_search( $attributes ) {
|
||||
if ( $is_expandable_searchfield ) {
|
||||
$aria_label_expanded = __( 'Submit Search' );
|
||||
$aria_label_collapsed = __( 'Expand search field' );
|
||||
$form_context = data_wp_context(
|
||||
$form_context = wp_interactivity_data_wp_context(
|
||||
array(
|
||||
'isSearchInputVisible' => $open_by_default,
|
||||
'inputId' => $input_id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user