mirror of
git://develop.git.wordpress.org/
synced 2025-05-16 00:29:43 +02:00
Editor: Update npm packages.
Updates the editor npm packages to latest versions. Props vcanales. Fixes #61339. git-svn-id: https://develop.svn.wordpress.org/trunk@58275 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
93bcf8da93
commit
2c818502ea
3380
package-lock.json
generated
3380
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
144
package.json
144
package.json
@ -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.42.0",
|
||||
"@wordpress/dependency-extraction-webpack-plugin": "5.9.0",
|
||||
"@wordpress/e2e-test-utils": "10.29.0",
|
||||
"@wordpress/e2e-test-utils-playwright": "0.26.0",
|
||||
"@wordpress/prettier-config": "3.15.0",
|
||||
"@wordpress/scripts": "27.9.0",
|
||||
"@wordpress/babel-preset-default": "8.0.0",
|
||||
"@wordpress/dependency-extraction-webpack-plugin": "6.0.0",
|
||||
"@wordpress/e2e-test-utils": "11.0.0",
|
||||
"@wordpress/e2e-test-utils-playwright": "1.0.0",
|
||||
"@wordpress/prettier-config": "4.0.0",
|
||||
"@wordpress/scripts": "28.0.0",
|
||||
"autoprefixer": "10.4.17",
|
||||
"chalk": "5.3.0",
|
||||
"check-node-version": "4.2.1",
|
||||
@ -78,72 +78,72 @@
|
||||
"webpack-livereload-plugin": "3.0.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@wordpress/a11y": "3.58.0",
|
||||
"@wordpress/annotations": "2.58.0",
|
||||
"@wordpress/api-fetch": "6.55.0",
|
||||
"@wordpress/autop": "3.58.0",
|
||||
"@wordpress/blob": "3.58.0",
|
||||
"@wordpress/block-directory": "4.35.0",
|
||||
"@wordpress/block-editor": "12.26.0",
|
||||
"@wordpress/block-library": "8.35.0",
|
||||
"@wordpress/block-serialization-default-parser": "4.58.0",
|
||||
"@wordpress/blocks": "12.35.0",
|
||||
"@wordpress/commands": "0.29.0",
|
||||
"@wordpress/components": "27.6.0",
|
||||
"@wordpress/compose": "6.35.0",
|
||||
"@wordpress/core-commands": "0.27.0",
|
||||
"@wordpress/core-data": "6.35.0",
|
||||
"@wordpress/customize-widgets": "4.35.0",
|
||||
"@wordpress/data": "9.28.0",
|
||||
"@wordpress/data-controls": "3.27.0",
|
||||
"@wordpress/dataviews": "1.2.0",
|
||||
"@wordpress/date": "4.58.0",
|
||||
"@wordpress/deprecated": "3.58.0",
|
||||
"@wordpress/dom": "3.58.0",
|
||||
"@wordpress/dom-ready": "3.58.0",
|
||||
"@wordpress/edit-post": "7.35.0",
|
||||
"@wordpress/edit-site": "5.35.0",
|
||||
"@wordpress/edit-widgets": "5.35.0",
|
||||
"@wordpress/editor": "13.35.0",
|
||||
"@wordpress/element": "5.35.0",
|
||||
"@wordpress/escape-html": "2.58.0",
|
||||
"@wordpress/format-library": "4.35.0",
|
||||
"@wordpress/hooks": "3.58.0",
|
||||
"@wordpress/html-entities": "3.58.0",
|
||||
"@wordpress/i18n": "4.58.0",
|
||||
"@wordpress/icons": "9.49.0",
|
||||
"@wordpress/interactivity": "5.7.0",
|
||||
"@wordpress/interactivity-router": "1.8.0",
|
||||
"@wordpress/interface": "5.35.0",
|
||||
"@wordpress/is-shallow-equal": "4.58.0",
|
||||
"@wordpress/keyboard-shortcuts": "4.35.0",
|
||||
"@wordpress/keycodes": "3.58.0",
|
||||
"@wordpress/list-reusable-blocks": "4.35.0",
|
||||
"@wordpress/media-utils": "4.49.0",
|
||||
"@wordpress/notices": "4.26.0",
|
||||
"@wordpress/nux": "8.20.0",
|
||||
"@wordpress/patterns": "1.19.0",
|
||||
"@wordpress/plugins": "6.26.0",
|
||||
"@wordpress/preferences": "3.35.0",
|
||||
"@wordpress/preferences-persistence": "1.50.0",
|
||||
"@wordpress/primitives": "3.56.0",
|
||||
"@wordpress/priority-queue": "2.58.0",
|
||||
"@wordpress/private-apis": "0.40.0",
|
||||
"@wordpress/redux-routine": "4.58.0",
|
||||
"@wordpress/reusable-blocks": "4.35.0",
|
||||
"@wordpress/rich-text": "6.35.0",
|
||||
"@wordpress/router": "0.27.0",
|
||||
"@wordpress/server-side-render": "4.35.0",
|
||||
"@wordpress/shortcode": "3.58.0",
|
||||
"@wordpress/style-engine": "1.41.0",
|
||||
"@wordpress/sync": "0.20.0",
|
||||
"@wordpress/token-list": "2.58.0",
|
||||
"@wordpress/undo-manager": "0.18.0",
|
||||
"@wordpress/url": "3.59.0",
|
||||
"@wordpress/viewport": "5.35.0",
|
||||
"@wordpress/warning": "2.58.0",
|
||||
"@wordpress/widgets": "3.35.0",
|
||||
"@wordpress/wordcount": "3.58.0",
|
||||
"@wordpress/a11y": "4.0.0",
|
||||
"@wordpress/annotations": "3.0.0",
|
||||
"@wordpress/api-fetch": "7.0.0",
|
||||
"@wordpress/autop": "4.0.0",
|
||||
"@wordpress/blob": "4.0.0",
|
||||
"@wordpress/block-directory": "5.0.0",
|
||||
"@wordpress/block-editor": "13.0.0",
|
||||
"@wordpress/block-library": "9.0.0",
|
||||
"@wordpress/block-serialization-default-parser": "5.0.0",
|
||||
"@wordpress/blocks": "13.0.0",
|
||||
"@wordpress/commands": "1.0.0",
|
||||
"@wordpress/components": "28.0.0",
|
||||
"@wordpress/compose": "7.0.0",
|
||||
"@wordpress/core-commands": "1.0.0",
|
||||
"@wordpress/core-data": "7.0.0",
|
||||
"@wordpress/customize-widgets": "5.0.0",
|
||||
"@wordpress/data": "10.0.0",
|
||||
"@wordpress/data-controls": "4.0.0",
|
||||
"@wordpress/dataviews": "2.0.0",
|
||||
"@wordpress/date": "5.0.0",
|
||||
"@wordpress/deprecated": "4.0.0",
|
||||
"@wordpress/dom": "4.0.0",
|
||||
"@wordpress/dom-ready": "4.0.0",
|
||||
"@wordpress/edit-post": "8.0.0",
|
||||
"@wordpress/edit-site": "6.0.0",
|
||||
"@wordpress/edit-widgets": "6.0.0",
|
||||
"@wordpress/editor": "14.0.0",
|
||||
"@wordpress/element": "6.0.0",
|
||||
"@wordpress/escape-html": "3.0.0",
|
||||
"@wordpress/format-library": "5.0.0",
|
||||
"@wordpress/hooks": "4.0.0",
|
||||
"@wordpress/html-entities": "4.0.0",
|
||||
"@wordpress/i18n": "5.0.0",
|
||||
"@wordpress/icons": "10.0.0",
|
||||
"@wordpress/interactivity": "6.0.0",
|
||||
"@wordpress/interactivity-router": "2.0.0",
|
||||
"@wordpress/interface": "6.0.0",
|
||||
"@wordpress/is-shallow-equal": "5.0.0",
|
||||
"@wordpress/keyboard-shortcuts": "5.0.0",
|
||||
"@wordpress/keycodes": "4.0.0",
|
||||
"@wordpress/list-reusable-blocks": "5.0.0",
|
||||
"@wordpress/media-utils": "5.0.0",
|
||||
"@wordpress/notices": "5.0.0",
|
||||
"@wordpress/nux": "9.0.0",
|
||||
"@wordpress/patterns": "2.0.0",
|
||||
"@wordpress/plugins": "7.0.0",
|
||||
"@wordpress/preferences": "4.0.0",
|
||||
"@wordpress/preferences-persistence": "2.0.0",
|
||||
"@wordpress/primitives": "4.0.0",
|
||||
"@wordpress/priority-queue": "3.0.0",
|
||||
"@wordpress/private-apis": "1.0.0",
|
||||
"@wordpress/redux-routine": "5.0.0",
|
||||
"@wordpress/reusable-blocks": "5.0.0",
|
||||
"@wordpress/rich-text": "7.0.0",
|
||||
"@wordpress/router": "1.0.0",
|
||||
"@wordpress/server-side-render": "5.0.0",
|
||||
"@wordpress/shortcode": "4.0.0",
|
||||
"@wordpress/style-engine": "2.0.0",
|
||||
"@wordpress/sync": "1.0.0",
|
||||
"@wordpress/token-list": "3.0.0",
|
||||
"@wordpress/undo-manager": "1.0.0",
|
||||
"@wordpress/url": "4.0.0",
|
||||
"@wordpress/viewport": "6.0.0",
|
||||
"@wordpress/warning": "3.0.0",
|
||||
"@wordpress/widgets": "4.0.0",
|
||||
"@wordpress/wordcount": "4.0.0",
|
||||
"backbone": "1.5.0",
|
||||
"clipboard": "2.0.11",
|
||||
"core-js-url-browser": "3.6.4",
|
||||
|
File diff suppressed because one or more lines are too long
@ -78,7 +78,7 @@ function render_block_core_block( $attributes ) {
|
||||
* 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'] );
|
||||
$has_pattern_overrides = isset( $attributes['content'] ) && null !== get_block_bindings_source( 'core/pattern-overrides' );
|
||||
if ( $has_pattern_overrides ) {
|
||||
$filter_block_context = static function ( $context ) use ( $attributes ) {
|
||||
$context['pattern/overrides'] = $attributes['content'];
|
||||
|
@ -1558,6 +1558,7 @@
|
||||
'anchor' => true,
|
||||
'align' => true,
|
||||
'html' => false,
|
||||
'shadow' => true,
|
||||
'spacing' => array(
|
||||
'padding' => true,
|
||||
'margin' => array(
|
||||
@ -3110,7 +3111,8 @@
|
||||
'textdomain' => 'default',
|
||||
'attributes' => array(
|
||||
'customText' => array(
|
||||
'type' => 'string'
|
||||
'type' => 'string',
|
||||
'default' => ''
|
||||
),
|
||||
'noTeaser' => array(
|
||||
'type' => 'boolean',
|
||||
|
@ -18,7 +18,7 @@
|
||||
*
|
||||
* @since 6.1.0
|
||||
*
|
||||
* @global WP_Post $post Global post object.
|
||||
* @global WP_Post $post Global post object.
|
||||
*
|
||||
* @param array $attributes Block attributes.
|
||||
* @param string $content Block default content.
|
||||
|
@ -85,6 +85,7 @@
|
||||
"anchor": true,
|
||||
"align": true,
|
||||
"html": false,
|
||||
"shadow": true,
|
||||
"spacing": {
|
||||
"padding": true,
|
||||
"margin": [ "top", "bottom" ],
|
||||
|
@ -188,12 +188,12 @@ function block_core_image_render_lightbox( $block_content, $block ) {
|
||||
// Image.
|
||||
$p->next_tag( 'img' );
|
||||
$p->set_attribute( 'data-wp-init', 'callbacks.setButtonStyles' );
|
||||
$p->set_attribute( 'data-wp-on--load', 'callbacks.setButtonStyles' );
|
||||
$p->set_attribute( 'data-wp-on-window--resize', 'callbacks.setButtonStyles' );
|
||||
$p->set_attribute( 'data-wp-on-async--load', 'callbacks.setButtonStyles' );
|
||||
$p->set_attribute( 'data-wp-on-async-window--resize', 'callbacks.setButtonStyles' );
|
||||
// Sets an event callback on the `img` because the `figure` element can also
|
||||
// contain a caption, and we don't want to trigger the lightbox when the
|
||||
// caption is clicked.
|
||||
$p->set_attribute( 'data-wp-on--click', 'actions.showLightbox' );
|
||||
$p->set_attribute( 'data-wp-on-async--click', 'actions.showLightbox' );
|
||||
|
||||
$body_content = $p->get_updated_html();
|
||||
|
||||
@ -209,7 +209,7 @@ function block_core_image_render_lightbox( $block_content, $block ) {
|
||||
aria-haspopup="dialog"
|
||||
aria-label="' . esc_attr( $aria_label ) . '"
|
||||
data-wp-init="callbacks.initTriggerButton"
|
||||
data-wp-on--click="actions.showLightbox"
|
||||
data-wp-on-async--click="actions.showLightbox"
|
||||
data-wp-style--right="context.imageButtonRight"
|
||||
data-wp-style--top="context.imageButtonTop"
|
||||
>
|
||||
@ -258,12 +258,12 @@ function block_core_image_print_lightbox_overlay() {
|
||||
data-wp-class--show-closing-animation="state.showClosingAnimation"
|
||||
data-wp-watch="callbacks.setOverlayFocus"
|
||||
data-wp-on--keydown="actions.handleKeydown"
|
||||
data-wp-on--touchstart="actions.handleTouchStart"
|
||||
data-wp-on-async--touchstart="actions.handleTouchStart"
|
||||
data-wp-on--touchmove="actions.handleTouchMove"
|
||||
data-wp-on--touchend="actions.handleTouchEnd"
|
||||
data-wp-on--click="actions.hideLightbox"
|
||||
data-wp-on-window--resize="callbacks.setOverlayStyles"
|
||||
data-wp-on-window--scroll="actions.handleScroll"
|
||||
data-wp-on-async--touchend="actions.handleTouchEnd"
|
||||
data-wp-on-async--click="actions.hideLightbox"
|
||||
data-wp-on-async-window--resize="callbacks.setOverlayStyles"
|
||||
data-wp-on-async-window--scroll="actions.handleScroll"
|
||||
tabindex="-1"
|
||||
>
|
||||
<button type="button" aria-label="$close_button_label" style="fill: $close_button_color" class="close-button">
|
||||
|
@ -9,7 +9,8 @@
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"customText": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"noTeaser": {
|
||||
"type": "boolean",
|
||||
|
@ -1617,10 +1617,16 @@ function block_core_navigation_update_ignore_hooked_blocks_meta( $post ) {
|
||||
$rest_insert_wp_navigation_core_callback = 'block_core_navigation_' . 'update_ignore_hooked_blocks_meta'; // phpcs:ignore Generic.Strings.UnnecessaryStringConcat.Found
|
||||
|
||||
/*
|
||||
* Injection of hooked blocks into the Navigation block relies on some functions present in WP >= 6.5
|
||||
* that are not present in Gutenberg's WP 6.5 compatibility layer.
|
||||
* Do not add the `block_core_navigation_update_ignore_hooked_blocks_meta` filter in the following cases:
|
||||
* - If Core has added the `update_ignored_hooked_blocks_postmeta` filter already (WP >= 6.6);
|
||||
* - or if the `set_ignored_hooked_blocks_metadata` function is unavailable (which is required for the filter to work. It was introduced by WP 6.5 but is not present in Gutenberg's WP 6.5 compatibility layer);
|
||||
* - or if the `$rest_insert_wp_navigation_core_callback` filter has already been added.
|
||||
*/
|
||||
if ( function_exists( 'set_ignored_hooked_blocks_metadata' ) && ! has_filter( 'rest_pre_insert_wp_navigation', $rest_insert_wp_navigation_core_callback ) ) {
|
||||
if (
|
||||
! has_filter( 'rest_pre_insert_wp_navigation', 'update_ignored_hooked_blocks_postmeta' ) &&
|
||||
function_exists( 'set_ignored_hooked_blocks_metadata' ) &&
|
||||
! has_filter( 'rest_pre_insert_wp_navigation', $rest_insert_wp_navigation_core_callback )
|
||||
) {
|
||||
add_filter( 'rest_pre_insert_wp_navigation', 'block_core_navigation_update_ignore_hooked_blocks_meta' );
|
||||
}
|
||||
|
||||
@ -1668,9 +1674,15 @@ function block_core_navigation_insert_hooked_blocks_into_rest_response( $respons
|
||||
$rest_prepare_wp_navigation_core_callback = 'block_core_navigation_' . 'insert_hooked_blocks_into_rest_response';
|
||||
|
||||
/*
|
||||
* Injection of hooked blocks into the Navigation block relies on some functions present in WP >= 6.5
|
||||
* that are not present in Gutenberg's WP 6.5 compatibility layer.
|
||||
* Do not add the `block_core_navigation_insert_hooked_blocks_into_rest_response` filter in the following cases:
|
||||
* - If Core has added the `insert_hooked_blocks_into_rest_response` filter already (WP >= 6.6);
|
||||
* - or if the `set_ignored_hooked_blocks_metadata` function is unavailable (which is required for the filter to work. It was introduced by WP 6.5 but is not present in Gutenberg's WP 6.5 compatibility layer);
|
||||
* - or if the `$rest_prepare_wp_navigation_core_callback` filter has already been added.
|
||||
*/
|
||||
if ( function_exists( 'set_ignored_hooked_blocks_metadata' ) && ! has_filter( 'rest_prepare_wp_navigation', $rest_prepare_wp_navigation_core_callback ) ) {
|
||||
if (
|
||||
! has_filter( 'rest_prepare_wp_navigation', 'insert_hooked_blocks_into_rest_response' ) &&
|
||||
function_exists( 'set_ignored_hooked_blocks_metadata' ) &&
|
||||
! has_filter( 'rest_prepare_wp_navigation', $rest_prepare_wp_navigation_core_callback )
|
||||
) {
|
||||
add_filter( 'rest_prepare_wp_navigation', 'block_core_navigation_insert_hooked_blocks_into_rest_response', 10, 3 );
|
||||
}
|
||||
|
@ -153,6 +153,10 @@ function block_core_social_link_services( $service = '', $field = '' ) {
|
||||
'name' => 'Behance',
|
||||
'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"></path></svg>',
|
||||
),
|
||||
'bluesky' => array(
|
||||
'name' => 'Bluesky',
|
||||
'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"></path></svg>',
|
||||
),
|
||||
'chain' => array(
|
||||
'name' => 'Link',
|
||||
'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M15.6,7.2H14v1.5h1.6c2,0,3.7,1.7,3.7,3.7s-1.7,3.7-3.7,3.7H14v1.5h1.6c2.8,0,5.2-2.3,5.2-5.2,0-2.9-2.3-5.2-5.2-5.2zM4.7,12.4c0-2,1.7-3.7,3.7-3.7H10V7.2H8.4c-2.9,0-5.2,2.3-5.2,5.2,0,2.9,2.3,5.2,5.2,5.2H10v-1.5H8.4c-2,0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"></path></svg>',
|
||||
|
Loading…
x
Reference in New Issue
Block a user