Skip to content

Commit

Permalink
Editor: Update the WordPress packages to Gutenberg 17.7RC1.
Browse files Browse the repository at this point in the history
This brings the latest and greatest from Gutenberg.
The full changelog is available here 
https://github.com/WordPress/gutenberg/releases/tag/v17.7.0-rc.1

Props youknowriad, get_dave.
See #60315.

git-svn-id: https://develop.svn.wordpress.org/trunk@57578 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
youknowriad committed Feb 9, 2024
1 parent ed1d846 commit 1f8bb9f
Show file tree
Hide file tree
Showing 101 changed files with 3,072 additions and 2,563 deletions.
3,977 changes: 1,993 additions & 1,984 deletions package-lock.json

Large diffs are not rendered by default.

144 changes: 72 additions & 72 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
"@lodder/grunt-postcss": "^3.1.1",
"@playwright/test": "1.32.0",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.5",
"@wordpress/babel-preset-default": "7.34.0",
"@wordpress/dependency-extraction-webpack-plugin": "5.1.0",
"@wordpress/e2e-test-utils": "10.21.0",
"@wordpress/e2e-test-utils-playwright": "0.18.0",
"@wordpress/prettier-config": "3.7.0",
"@wordpress/scripts": "27.1.0",
"@wordpress/babel-preset-default": "7.35.0",
"@wordpress/dependency-extraction-webpack-plugin": "5.2.0",
"@wordpress/e2e-test-utils": "10.22.0",
"@wordpress/e2e-test-utils-playwright": "0.19.0",
"@wordpress/prettier-config": "3.8.0",
"@wordpress/scripts": "27.2.0",
"autoprefixer": "10.4.16",
"chalk": "5.3.0",
"check-node-version": "4.2.1",
Expand Down Expand Up @@ -80,72 +80,72 @@
"dependencies": {
"@emotion/is-prop-valid": "0.8.8",
"@emotion/memoize": "0.7.4",
"@wordpress/a11y": "3.50.0",
"@wordpress/annotations": "2.50.0",
"@wordpress/api-fetch": "6.47.0",
"@wordpress/autop": "3.50.0",
"@wordpress/blob": "3.50.0",
"@wordpress/block-directory": "4.27.2",
"@wordpress/block-editor": "12.18.2",
"@wordpress/block-library": "8.27.2",
"@wordpress/block-serialization-default-parser": "4.50.0",
"@wordpress/blocks": "12.27.1",
"@wordpress/commands": "0.21.0",
"@wordpress/components": "25.16.0",
"@wordpress/compose": "6.27.0",
"@wordpress/core-commands": "0.19.2",
"@wordpress/core-data": "6.27.2",
"@wordpress/customize-widgets": "4.27.2",
"@wordpress/data": "9.20.0",
"@wordpress/data-controls": "3.19.0",
"@wordpress/dataviews": "0.4.1",
"@wordpress/date": "4.50.0",
"@wordpress/deprecated": "3.50.0",
"@wordpress/dom": "3.50.0",
"@wordpress/dom-ready": "3.50.0",
"@wordpress/edit-post": "7.27.2",
"@wordpress/edit-site": "5.27.2",
"@wordpress/edit-widgets": "5.27.2",
"@wordpress/editor": "13.27.2",
"@wordpress/element": "5.27.0",
"@wordpress/escape-html": "2.50.0",
"@wordpress/format-library": "4.27.2",
"@wordpress/hooks": "3.50.0",
"@wordpress/html-entities": "3.50.0",
"@wordpress/i18n": "4.50.0",
"@wordpress/icons": "9.41.0",
"@wordpress/interactivity": "4.0.1",
"@wordpress/interactivity-router": "1.0.1",
"@wordpress/interface": "5.27.0",
"@wordpress/is-shallow-equal": "4.50.0",
"@wordpress/keyboard-shortcuts": "4.27.0",
"@wordpress/keycodes": "3.50.0",
"@wordpress/list-reusable-blocks": "4.27.0",
"@wordpress/media-utils": "4.41.0",
"@wordpress/notices": "4.18.0",
"@wordpress/nux": "8.12.0",
"@wordpress/patterns": "1.11.2",
"@wordpress/plugins": "6.18.0",
"@wordpress/preferences": "3.27.0",
"@wordpress/preferences-persistence": "1.42.0",
"@wordpress/primitives": "3.48.0",
"@wordpress/priority-queue": "2.50.0",
"@wordpress/private-apis": "0.32.0",
"@wordpress/redux-routine": "4.50.0",
"@wordpress/reusable-blocks": "4.27.2",
"@wordpress/rich-text": "6.27.0",
"@wordpress/router": "0.19.0",
"@wordpress/server-side-render": "4.27.1",
"@wordpress/shortcode": "3.50.0",
"@wordpress/style-engine": "1.33.1",
"@wordpress/sync": "0.12.0",
"@wordpress/token-list": "2.50.0",
"@wordpress/undo-manager": "0.10.0",
"@wordpress/url": "3.51.0",
"@wordpress/viewport": "5.27.0",
"@wordpress/warning": "2.50.0",
"@wordpress/widgets": "3.27.2",
"@wordpress/wordcount": "3.50.0",
"@wordpress/a11y": "3.51.0",
"@wordpress/annotations": "2.51.0",
"@wordpress/api-fetch": "6.48.0",
"@wordpress/autop": "3.51.0",
"@wordpress/blob": "3.51.0",
"@wordpress/block-directory": "4.28.0",
"@wordpress/block-editor": "12.19.0",
"@wordpress/block-library": "8.28.0",
"@wordpress/block-serialization-default-parser": "4.51.0",
"@wordpress/blocks": "12.28.0",
"@wordpress/commands": "0.22.0",
"@wordpress/components": "26.0.0",
"@wordpress/compose": "6.28.0",
"@wordpress/core-commands": "0.20.0",
"@wordpress/core-data": "6.28.0",
"@wordpress/customize-widgets": "4.28.0",
"@wordpress/data": "9.21.0",
"@wordpress/data-controls": "3.20.0",
"@wordpress/dataviews": "0.5.0",
"@wordpress/date": "4.51.0",
"@wordpress/deprecated": "3.51.0",
"@wordpress/dom": "3.51.0",
"@wordpress/dom-ready": "3.51.0",
"@wordpress/edit-post": "7.28.0",
"@wordpress/edit-site": "5.28.0",
"@wordpress/edit-widgets": "5.28.0",
"@wordpress/editor": "13.28.0",
"@wordpress/element": "5.28.0",
"@wordpress/escape-html": "2.51.0",
"@wordpress/format-library": "4.28.0",
"@wordpress/hooks": "3.51.0",
"@wordpress/html-entities": "3.51.0",
"@wordpress/i18n": "4.51.0",
"@wordpress/icons": "9.42.0",
"@wordpress/interactivity": "5.0.0",
"@wordpress/interactivity-router": "1.1.0",
"@wordpress/interface": "5.28.0",
"@wordpress/is-shallow-equal": "4.51.0",
"@wordpress/keyboard-shortcuts": "4.28.0",
"@wordpress/keycodes": "3.51.0",
"@wordpress/list-reusable-blocks": "4.28.0",
"@wordpress/media-utils": "4.42.0",
"@wordpress/notices": "4.19.0",
"@wordpress/nux": "8.13.0",
"@wordpress/patterns": "1.12.0",
"@wordpress/plugins": "6.19.0",
"@wordpress/preferences": "3.28.0",
"@wordpress/preferences-persistence": "1.43.0",
"@wordpress/primitives": "3.49.0",
"@wordpress/priority-queue": "2.51.0",
"@wordpress/private-apis": "0.33.0",
"@wordpress/redux-routine": "4.51.0",
"@wordpress/reusable-blocks": "4.28.0",
"@wordpress/rich-text": "6.28.0",
"@wordpress/router": "0.20.0",
"@wordpress/server-side-render": "4.28.0",
"@wordpress/shortcode": "3.51.0",
"@wordpress/style-engine": "1.34.0",
"@wordpress/sync": "0.13.0",
"@wordpress/token-list": "2.51.0",
"@wordpress/undo-manager": "0.11.0",
"@wordpress/url": "3.52.0",
"@wordpress/viewport": "5.28.0",
"@wordpress/warning": "2.51.0",
"@wordpress/widgets": "3.28.0",
"@wordpress/wordcount": "3.51.0",
"backbone": "1.5.0",
"clipboard": "2.0.11",
"core-js-url-browser": "3.6.4",
Expand Down
4 changes: 0 additions & 4 deletions src/wp-admin/includes/update-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -833,10 +833,6 @@
'wp-includes/blocks/heading/editor.min.css',
'wp-includes/blocks/heading/editor-rtl.css',
'wp-includes/blocks/heading/editor-rtl.min.css',
'wp-includes/blocks/post-content/editor.css',
'wp-includes/blocks/post-content/editor.min.css',
'wp-includes/blocks/post-content/editor-rtl.css',
'wp-includes/blocks/post-content/editor-rtl.min.css',
'wp-includes/blocks/query-title/editor.css',
'wp-includes/blocks/query-title/editor.min.css',
'wp-includes/blocks/query-title/editor-rtl.css',
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/assets/script-loader-packages.min.php

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/wp-includes/blocks/archives/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
"__experimentalDefaultControls": {
"fontSize": true
}
},
"interactivity": {
"clientNavigation": true
}
},
"editorStyle": "wp-block-archives-editor"
Expand Down
3 changes: 3 additions & 0 deletions src/wp-includes/blocks/audio/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
"margin": false,
"padding": false
}
},
"interactivity": {
"clientNavigation": true
}
},
"editorStyle": "wp-block-audio-editor",
Expand Down
3 changes: 3 additions & 0 deletions src/wp-includes/blocks/avatar/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
"text": false,
"background": false,
"__experimentalDuotone": "img"
},
"interactivity": {
"clientNavigation": true
}
},
"selectors": {
Expand Down
17 changes: 15 additions & 2 deletions src/wp-includes/blocks/block.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,20 @@ function render_block_core_block( $attributes ) {
$content = $wp_embed->run_shortcode( $reusable_block->post_content );
$content = $wp_embed->autoembed( $content );

$has_pattern_overrides = isset( $attributes['overrides'] );
// 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,
);
}
$attributes['content'] = $migrated_content;
}
$has_pattern_overrides = isset( $attributes['content'] );

/**
* We set the `pattern/overrides` context through the `render_block_context`
Expand All @@ -55,7 +68,7 @@ function render_block_core_block( $attributes ) {
*/
if ( $has_pattern_overrides ) {
$filter_block_context = static function ( $context ) use ( $attributes ) {
$context['pattern/overrides'] = $attributes['overrides'];
$context['pattern/overrides'] = $attributes['content'];
return $context;
};
add_filter( 'render_block_context', $filter_block_context, 1 );
Expand Down
9 changes: 6 additions & 3 deletions src/wp-includes/blocks/block/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,24 @@
"name": "core/block",
"title": "Pattern",
"category": "reusable",
"description": "Create and save content to reuse across your site. Update the pattern, and the changes apply everywhere it’s used.",
"description": "Reuse this design across your site.",
"keywords": [ "reusable" ],
"textdomain": "default",
"attributes": {
"ref": {
"type": "number"
},
"overrides": {
"content": {
"type": "object"
}
},
"supports": {
"customClassName": false,
"html": false,
"inserter": false,
"renaming": false
"renaming": false,
"interactivity": {
"clientNavigation": true
}
}
}
Loading

0 comments on commit 1f8bb9f

Please sign in to comment.