Skip to content

Commit

Permalink
Editor: Update Packages with the latest bug fixes for 6.5 beta 2.
Browse files Browse the repository at this point in the history
It includes all the backports from this Gutenberg PR WordPress/gutenberg#59197

Props youknowriad, get_dave.
See #60315.

git-svn-id: https://develop.svn.wordpress.org/trunk@57663 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
youknowriad committed Feb 20, 2024
1 parent 18b21c3 commit c84cddb
Show file tree
Hide file tree
Showing 12 changed files with 1,994 additions and 1,935 deletions.
3,573 changes: 1,797 additions & 1,776 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.11",
"@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",
"@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/prettier-config": "3.8.1",
"@wordpress/scripts": "27.2.1",
"autoprefixer": "10.4.17",
"chalk": "5.3.0",
"check-node-version": "4.2.1",
Expand Down Expand Up @@ -78,72 +78,72 @@
"webpack-livereload-plugin": "3.0.2"
},
"dependencies": {
"@wordpress/a11y": "3.51.0",
"@wordpress/annotations": "2.51.1",
"@wordpress/api-fetch": "6.48.0",
"@wordpress/autop": "3.51.0",
"@wordpress/blob": "3.51.0",
"@wordpress/block-directory": "4.28.1",
"@wordpress/block-editor": "12.19.1",
"@wordpress/block-library": "8.28.1",
"@wordpress/block-serialization-default-parser": "4.51.0",
"@wordpress/blocks": "12.28.1",
"@wordpress/commands": "0.22.1",
"@wordpress/components": "26.0.1",
"@wordpress/compose": "6.28.0",
"@wordpress/core-commands": "0.20.1",
"@wordpress/core-data": "6.28.1",
"@wordpress/customize-widgets": "4.28.1",
"@wordpress/data": "9.21.0",
"@wordpress/data-controls": "3.20.0",
"@wordpress/dataviews": "0.5.1",
"@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.1",
"@wordpress/edit-site": "5.28.1",
"@wordpress/edit-widgets": "5.28.1",
"@wordpress/editor": "13.28.1",
"@wordpress/element": "5.28.0",
"@wordpress/escape-html": "2.51.0",
"@wordpress/format-library": "4.28.1",
"@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.1",
"@wordpress/is-shallow-equal": "4.51.0",
"@wordpress/keyboard-shortcuts": "4.28.0",
"@wordpress/keycodes": "3.51.0",
"@wordpress/list-reusable-blocks": "4.28.1",
"@wordpress/media-utils": "4.42.0",
"@wordpress/notices": "4.19.0",
"@wordpress/nux": "8.13.1",
"@wordpress/patterns": "1.12.1",
"@wordpress/plugins": "6.19.1",
"@wordpress/preferences": "3.28.1",
"@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.1",
"@wordpress/rich-text": "6.28.1",
"@wordpress/router": "0.20.0",
"@wordpress/server-side-render": "4.28.1",
"@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.1",
"@wordpress/wordcount": "3.51.0",
"@wordpress/a11y": "3.51.1",
"@wordpress/annotations": "2.51.2",
"@wordpress/api-fetch": "6.48.1",
"@wordpress/autop": "3.51.1",
"@wordpress/blob": "3.51.1",
"@wordpress/block-directory": "4.28.2",
"@wordpress/block-editor": "12.19.2",
"@wordpress/block-library": "8.28.2",
"@wordpress/block-serialization-default-parser": "4.51.1",
"@wordpress/blocks": "12.28.2",
"@wordpress/commands": "0.22.2",
"@wordpress/components": "26.0.2",
"@wordpress/compose": "6.28.1",
"@wordpress/core-commands": "0.20.2",
"@wordpress/core-data": "6.28.2",
"@wordpress/customize-widgets": "4.28.2",
"@wordpress/data": "9.21.1",
"@wordpress/data-controls": "3.20.1",
"@wordpress/dataviews": "0.5.2",
"@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.2",
"@wordpress/edit-site": "5.28.2",
"@wordpress/edit-widgets": "5.28.2",
"@wordpress/editor": "13.28.2",
"@wordpress/element": "5.28.1",
"@wordpress/escape-html": "2.51.1",
"@wordpress/format-library": "4.28.2",
"@wordpress/hooks": "3.51.1",
"@wordpress/html-entities": "3.51.1",
"@wordpress/i18n": "4.51.1",
"@wordpress/icons": "9.42.1",
"@wordpress/interactivity": "5.0.1",
"@wordpress/interactivity-router": "1.1.1",
"@wordpress/interface": "5.28.2",
"@wordpress/is-shallow-equal": "4.51.1",
"@wordpress/keyboard-shortcuts": "4.28.1",
"@wordpress/keycodes": "3.51.1",
"@wordpress/list-reusable-blocks": "4.28.2",
"@wordpress/media-utils": "4.42.1",
"@wordpress/notices": "4.19.1",
"@wordpress/nux": "8.13.2",
"@wordpress/patterns": "1.12.2",
"@wordpress/plugins": "6.19.2",
"@wordpress/preferences": "3.28.2",
"@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.2",
"@wordpress/rich-text": "6.28.2",
"@wordpress/router": "0.20.1",
"@wordpress/server-side-render": "4.28.2",
"@wordpress/shortcode": "3.51.1",
"@wordpress/style-engine": "1.34.1",
"@wordpress/sync": "0.13.1",
"@wordpress/token-list": "2.51.1",
"@wordpress/undo-manager": "0.11.1",
"@wordpress/url": "3.52.1",
"@wordpress/viewport": "5.28.1",
"@wordpress/warning": "2.51.1",
"@wordpress/widgets": "3.28.2",
"@wordpress/wordcount": "3.51.1",
"backbone": "1.5.0",
"clipboard": "2.0.11",
"core-js-url-browser": "3.6.4",
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/assets/script-loader-packages.min.php

Large diffs are not rendered by default.

12 changes: 2 additions & 10 deletions src/wp-includes/blocks/blocks-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,6 @@
'link'
),
'textdomain' => 'default',
'usesContext' => array(
'pattern/overrides'
),
'attributes' => array(
'tagName' => array(
'type' => 'string',
Expand Down Expand Up @@ -2218,9 +2215,6 @@
'subtitle'
),
'textdomain' => 'default',
'usesContext' => array(
'pattern/overrides'
),
'attributes' => array(
'textAlign' => array(
'type' => 'string'
Expand Down Expand Up @@ -2369,8 +2363,7 @@
'usesContext' => array(
'allowResize',
'imageCrop',
'fixedHeight',
'pattern/overrides'
'fixedHeight'
),
'description' => 'Insert an image to make a visual statement.',
'keywords' => array(
Expand Down Expand Up @@ -3621,8 +3614,7 @@
),
'textdomain' => 'default',
'usesContext' => array(
'postId',
'pattern/overrides'
'postId'
),
'attributes' => array(
'align' => array(
Expand Down
1 change: 0 additions & 1 deletion src/wp-includes/blocks/button/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"description": "Prompt visitors to take action with a button-style link.",
"keywords": [ "link" ],
"textdomain": "default",
"usesContext": [ "pattern/overrides" ],
"attributes": {
"tagName": {
"type": "string",
Expand Down
35 changes: 24 additions & 11 deletions src/wp-includes/blocks/footnotes.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,30 @@ function render_block_core_footnotes( $attributes, $content, $block ) {
* @since 6.3.0
*/
function register_block_core_footnotes() {
$post_types = get_post_types(
register_block_type_from_metadata(
__DIR__ . '/footnotes',
array(
'show_in_rest' => true,
'public' => true,
'render_callback' => 'render_block_core_footnotes',
)
);
}
add_action( 'init', 'register_block_core_footnotes' );


/**
* Registers the footnotes meta field required for footnotes to work.
*
* @since 6.5.0
*/
function register_block_core_footnotes_post_meta() {
$post_types = get_post_types( array( 'show_in_rest' => true ) );
foreach ( $post_types as $post_type ) {
// Only register the meta field if the post type supports the editor, custom fields, and revisions.
if ( post_type_supports( $post_type, 'editor' ) && post_type_supports( $post_type, 'custom-fields' ) && post_type_supports( $post_type, 'revisions' ) ) {
if (
post_type_supports( $post_type, 'editor' ) &&
post_type_supports( $post_type, 'custom-fields' ) &&
post_type_supports( $post_type, 'revisions' )
) {
register_post_meta(
$post_type,
'footnotes',
Expand All @@ -89,14 +104,12 @@ function register_block_core_footnotes() {
);
}
}
register_block_type_from_metadata(
__DIR__ . '/footnotes',
array(
'render_callback' => 'render_block_core_footnotes',
)
);
}
add_action( 'init', 'register_block_core_footnotes' );
/**
* Most post types are registered at priority 10, so use priority 20 here in
* order to catch them.
*/
add_action( 'init', 'register_block_core_footnotes_post_meta', 20 );

/**
* Adds the footnotes field to the revisions display.
Expand Down
1 change: 0 additions & 1 deletion src/wp-includes/blocks/heading/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"description": "Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",
"keywords": [ "title", "subtitle" ],
"textdomain": "default",
"usesContext": [ "pattern/overrides" ],
"attributes": {
"textAlign": {
"type": "string"
Expand Down
7 changes: 1 addition & 6 deletions src/wp-includes/blocks/image/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
"name": "core/image",
"title": "Image",
"category": "media",
"usesContext": [
"allowResize",
"imageCrop",
"fixedHeight",
"pattern/overrides"
],
"usesContext": [ "allowResize", "imageCrop", "fixedHeight" ],
"description": "Insert an image to make a visual statement.",
"keywords": [ "img", "photo", "picture" ],
"textdomain": "default",
Expand Down
1 change: 0 additions & 1 deletion src/wp-includes/blocks/navigation-link.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ function block_core_navigation_link_build_variations() {
* Registers the navigation link block.
*
* @uses render_block_core_navigation_link()
* @uses build_navigation_link_block_variations()
* @throws WP_Error An WP_Error exception parsing the block definition.
*/
function register_block_core_navigation_link() {
Expand Down
Loading

0 comments on commit c84cddb

Please sign in to comment.