Editor: Bugfixes npm packages updates for 6.4 RC1.

Updates for needed bugfixes in RC1:

* [https://github.com/WordPress/gutenberg/pull/55212 Image: Reimplement lightbox trigger as a minimal button in corner of image]

* [https://github.com/WordPress/gutenberg/pull/55403 [Edit Widgets] Only suppress admin notices when JS enabled.]

Follow-up to [56849], [56818], [56816].

Props artemiosans, jameskoster, SantosGuillamot, aristath, czapla, joen, afercia, richtabor, peterwilsoncc, andraganescu, hellofromTonya, siobhyb.
See #59411.

git-svn-id: https://develop.svn.wordpress.org/trunk@56961 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Tonya Mork 2023-10-17 16:06:01 +00:00
parent dcd6e5c036
commit b97ae04b52
5 changed files with 1490 additions and 1480 deletions

2806
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -27,11 +27,11 @@
"@lodder/grunt-postcss": "^3.1.1",
"@playwright/test": "1.32.0",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.5",
"@wordpress/babel-preset-default": "7.26.7",
"@wordpress/dependency-extraction-webpack-plugin": "4.25.7",
"@wordpress/e2e-test-utils": "10.13.7",
"@wordpress/e2e-test-utils-playwright": "0.10.7",
"@wordpress/scripts": "26.13.7",
"@wordpress/babel-preset-default": "7.26.8",
"@wordpress/dependency-extraction-webpack-plugin": "4.25.8",
"@wordpress/e2e-test-utils": "10.13.8",
"@wordpress/e2e-test-utils-playwright": "0.10.8",
"@wordpress/scripts": "26.13.8",
"autoprefixer": "10.4.16",
"chalk": "5.3.0",
"check-node-version": "4.2.1",
@ -80,70 +80,70 @@
"dependencies": {
"@emotion/is-prop-valid": "0.8.8",
"@emotion/memoize": "0.7.4",
"@wordpress/a11y": "3.42.7",
"@wordpress/annotations": "2.42.7",
"@wordpress/api-fetch": "6.39.7",
"@wordpress/autop": "3.42.7",
"@wordpress/blob": "3.42.7",
"@wordpress/block-directory": "4.19.7",
"@wordpress/block-editor": "12.10.7",
"@wordpress/block-library": "8.19.7",
"@wordpress/block-serialization-default-parser": "4.42.7",
"@wordpress/blocks": "12.19.7",
"@wordpress/commands": "0.13.7",
"@wordpress/components": "25.8.7",
"@wordpress/compose": "6.19.7",
"@wordpress/core-commands": "0.11.7",
"@wordpress/core-data": "6.19.7",
"@wordpress/customize-widgets": "4.19.7",
"@wordpress/data": "9.12.7",
"@wordpress/data-controls": "3.11.7",
"@wordpress/date": "4.42.7",
"@wordpress/deprecated": "3.42.7",
"@wordpress/dom": "3.42.7",
"@wordpress/dom-ready": "3.42.7",
"@wordpress/edit-post": "7.19.7",
"@wordpress/edit-site": "5.19.7",
"@wordpress/edit-widgets": "5.19.7",
"@wordpress/editor": "13.19.7",
"@wordpress/element": "5.19.7",
"@wordpress/escape-html": "2.42.7",
"@wordpress/format-library": "4.19.7",
"@wordpress/hooks": "3.42.7",
"@wordpress/html-entities": "3.42.7",
"@wordpress/i18n": "4.42.7",
"@wordpress/icons": "9.33.7",
"@wordpress/interactivity": "2.3.7",
"@wordpress/interface": "5.19.7",
"@wordpress/is-shallow-equal": "4.42.7",
"@wordpress/keyboard-shortcuts": "4.19.7",
"@wordpress/keycodes": "3.42.7",
"@wordpress/list-reusable-blocks": "4.19.7",
"@wordpress/media-utils": "4.33.7",
"@wordpress/notices": "4.10.7",
"@wordpress/nux": "8.4.7",
"@wordpress/patterns": "1.3.7",
"@wordpress/plugins": "6.10.7",
"@wordpress/preferences": "3.19.7",
"@wordpress/preferences-persistence": "1.34.7",
"@wordpress/primitives": "3.40.7",
"@wordpress/priority-queue": "2.42.7",
"@wordpress/private-apis": "0.24.7",
"@wordpress/redux-routine": "4.42.7",
"@wordpress/reusable-blocks": "4.19.7",
"@wordpress/rich-text": "6.19.7",
"@wordpress/router": "0.11.7",
"@wordpress/server-side-render": "4.19.7",
"@wordpress/shortcode": "3.42.7",
"@wordpress/style-engine": "1.25.7",
"@wordpress/sync": "0.4.7",
"@wordpress/token-list": "2.42.7",
"@wordpress/undo-manager": "0.2.7",
"@wordpress/url": "3.43.7",
"@wordpress/viewport": "5.19.7",
"@wordpress/warning": "2.42.7",
"@wordpress/widgets": "3.19.7",
"@wordpress/wordcount": "3.42.7",
"@wordpress/a11y": "3.42.8",
"@wordpress/annotations": "2.42.8",
"@wordpress/api-fetch": "6.39.8",
"@wordpress/autop": "3.42.8",
"@wordpress/blob": "3.42.8",
"@wordpress/block-directory": "4.19.8",
"@wordpress/block-editor": "12.10.8",
"@wordpress/block-library": "8.19.8",
"@wordpress/block-serialization-default-parser": "4.42.8",
"@wordpress/blocks": "12.19.8",
"@wordpress/commands": "0.13.8",
"@wordpress/components": "25.8.8",
"@wordpress/compose": "6.19.8",
"@wordpress/core-commands": "0.11.8",
"@wordpress/core-data": "6.19.8",
"@wordpress/customize-widgets": "4.19.8",
"@wordpress/data": "9.12.8",
"@wordpress/data-controls": "3.11.8",
"@wordpress/date": "4.42.8",
"@wordpress/deprecated": "3.42.8",
"@wordpress/dom": "3.42.8",
"@wordpress/dom-ready": "3.42.8",
"@wordpress/edit-post": "7.19.8",
"@wordpress/edit-site": "5.19.8",
"@wordpress/edit-widgets": "5.19.8",
"@wordpress/editor": "13.19.8",
"@wordpress/element": "5.19.8",
"@wordpress/escape-html": "2.42.8",
"@wordpress/format-library": "4.19.8",
"@wordpress/hooks": "3.42.8",
"@wordpress/html-entities": "3.42.8",
"@wordpress/i18n": "4.42.8",
"@wordpress/icons": "9.33.8",
"@wordpress/interactivity": "2.3.8",
"@wordpress/interface": "5.19.8",
"@wordpress/is-shallow-equal": "4.42.8",
"@wordpress/keyboard-shortcuts": "4.19.8",
"@wordpress/keycodes": "3.42.8",
"@wordpress/list-reusable-blocks": "4.19.8",
"@wordpress/media-utils": "4.33.8",
"@wordpress/notices": "4.10.8",
"@wordpress/nux": "8.4.8",
"@wordpress/patterns": "1.3.8",
"@wordpress/plugins": "6.10.8",
"@wordpress/preferences": "3.19.8",
"@wordpress/preferences-persistence": "1.34.8",
"@wordpress/primitives": "3.40.8",
"@wordpress/priority-queue": "2.42.8",
"@wordpress/private-apis": "0.24.8",
"@wordpress/redux-routine": "4.42.8",
"@wordpress/reusable-blocks": "4.19.8",
"@wordpress/rich-text": "6.19.8",
"@wordpress/router": "0.11.8",
"@wordpress/server-side-render": "4.19.8",
"@wordpress/shortcode": "3.42.8",
"@wordpress/style-engine": "1.25.8",
"@wordpress/sync": "0.4.8",
"@wordpress/token-list": "2.42.8",
"@wordpress/undo-manager": "0.2.8",
"@wordpress/url": "3.43.8",
"@wordpress/viewport": "5.19.8",
"@wordpress/warning": "2.42.8",
"@wordpress/widgets": "3.19.8",
"@wordpress/wordcount": "3.42.8",
"backbone": "1.5.0",
"clipboard": "2.0.11",
"core-js-url-browser": "3.6.4",

View File

@ -218,13 +218,17 @@ function block_core_image_render_lightbox( $block_content, $block ) {
)
);
$w->next_tag( 'img' );
$w->set_attribute( 'data-wp-init', 'effects.core.image.setCurrentSrc' );
$w->set_attribute( 'data-wp-init', 'effects.core.image.initOriginImage' );
$w->set_attribute( 'data-wp-on--load', 'actions.core.image.handleLoad' );
$w->set_attribute( 'data-wp-effect', 'effects.core.image.setButtonStyles' );
// We need to set an event callback on the `img` specifically
// because the `figure` element can also contain a caption, and
// we don't want to trigger the lightbox when the caption is clicked.
$w->set_attribute( 'data-wp-on--click', 'actions.core.image.showLightbox' );
$w->set_attribute( 'data-wp-effect--setStylesOnResize', 'effects.core.image.setStylesOnResize' );
$body_content = $w->get_updated_html();
// Wrap the image in the body content with a button.
// Add a button alongside image in the body content.
$img = null;
preg_match( '/<img[^>]+>/', $body_content, $img );
@ -235,11 +239,17 @@ function block_core_image_render_lightbox( $block_content, $block ) {
aria-haspopup="dialog"
aria-label="' . esc_attr( $aria_label ) . '"
data-wp-on--click="actions.core.image.showLightbox"
data-wp-style--width="context.core.image.imageButtonWidth"
data-wp-style--height="context.core.image.imageButtonHeight"
data-wp-style--left="context.core.image.imageButtonLeft"
data-wp-style--right="context.core.image.imageButtonRight"
data-wp-style--top="context.core.image.imageButtonTop"
></button>';
style="background: #000"
>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M9 5H5V9" stroke="#FFFFFF" stroke-width="1.5"/>
<path d="M15 19L19 19L19 15" stroke="#FFFFFF" stroke-width="1.5"/>
<path d="M15 5H19V9" stroke="#FFFFFF" stroke-width="1.5"/>
<path d="M9 19L5 19L5 15" stroke="#FFFFFF" stroke-width="1.5"/>
</svg>
</button>';
$body_content = preg_replace( '/<img[^>]+>/', $button, $body_content );

View File

@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => 'aaa9542ea1e8b0279ca6');
<?php return array('dependencies' => array(), 'version' => '8256ab8fdb922a14e3c2');

View File

@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => '658cda6fbef6b9d36ffd');
<?php return array('dependencies' => array(), 'version' => 'f889b00627bef81443e0');