mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 04:48:25 +01:00
Update editor related npm packages for 6.4 RC1.
The npm packages needed a second part to the update for 6.4 RC1. Props isabel_brison, andrewserong, jsnajdr, wildworks, joen, mciampini, tyxla, youknowriad, ramonopoly, spacedmonkey, dmsnell, mikachan, kishanjasani, czapla, siobhyb, darerodz, luisherranz See #59411. git-svn-id: https://develop.svn.wordpress.org/trunk@56945 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
797bb8d6af
commit
f6c0c51706
3067
package-lock.json
generated
3067
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
138
package.json
138
package.json
@ -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.6",
|
||||
"@wordpress/dependency-extraction-webpack-plugin": "4.25.6",
|
||||
"@wordpress/e2e-test-utils": "10.13.6",
|
||||
"@wordpress/e2e-test-utils-playwright": "0.11.0",
|
||||
"@wordpress/scripts": "26.13.6",
|
||||
"@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",
|
||||
"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.6",
|
||||
"@wordpress/annotations": "2.42.6",
|
||||
"@wordpress/api-fetch": "6.39.6",
|
||||
"@wordpress/autop": "3.42.6",
|
||||
"@wordpress/blob": "3.42.6",
|
||||
"@wordpress/block-directory": "4.19.6",
|
||||
"@wordpress/block-editor": "12.10.6",
|
||||
"@wordpress/block-library": "8.19.6",
|
||||
"@wordpress/block-serialization-default-parser": "4.42.6",
|
||||
"@wordpress/blocks": "12.19.6",
|
||||
"@wordpress/commands": "0.13.6",
|
||||
"@wordpress/components": "25.8.6",
|
||||
"@wordpress/compose": "6.19.6",
|
||||
"@wordpress/core-commands": "0.11.6",
|
||||
"@wordpress/core-data": "6.19.6",
|
||||
"@wordpress/customize-widgets": "4.19.6",
|
||||
"@wordpress/data": "9.12.6",
|
||||
"@wordpress/data-controls": "3.11.6",
|
||||
"@wordpress/date": "4.42.6",
|
||||
"@wordpress/deprecated": "3.42.6",
|
||||
"@wordpress/dom": "3.42.6",
|
||||
"@wordpress/dom-ready": "3.42.6",
|
||||
"@wordpress/edit-post": "7.19.6",
|
||||
"@wordpress/edit-site": "5.19.6",
|
||||
"@wordpress/edit-widgets": "5.19.6",
|
||||
"@wordpress/editor": "13.19.6",
|
||||
"@wordpress/element": "5.19.6",
|
||||
"@wordpress/escape-html": "2.42.6",
|
||||
"@wordpress/format-library": "4.19.6",
|
||||
"@wordpress/hooks": "3.42.6",
|
||||
"@wordpress/html-entities": "3.42.6",
|
||||
"@wordpress/i18n": "4.42.6",
|
||||
"@wordpress/icons": "9.33.6",
|
||||
"@wordpress/interactivity": "2.3.6",
|
||||
"@wordpress/interface": "5.19.6",
|
||||
"@wordpress/is-shallow-equal": "4.42.6",
|
||||
"@wordpress/keyboard-shortcuts": "4.19.6",
|
||||
"@wordpress/keycodes": "3.42.6",
|
||||
"@wordpress/list-reusable-blocks": "4.19.6",
|
||||
"@wordpress/media-utils": "4.33.6",
|
||||
"@wordpress/notices": "4.10.6",
|
||||
"@wordpress/nux": "8.4.6",
|
||||
"@wordpress/patterns": "1.3.6",
|
||||
"@wordpress/plugins": "6.10.6",
|
||||
"@wordpress/preferences": "3.19.6",
|
||||
"@wordpress/preferences-persistence": "1.34.6",
|
||||
"@wordpress/primitives": "3.40.6",
|
||||
"@wordpress/priority-queue": "2.42.6",
|
||||
"@wordpress/private-apis": "0.24.6",
|
||||
"@wordpress/redux-routine": "4.42.6",
|
||||
"@wordpress/reusable-blocks": "4.19.6",
|
||||
"@wordpress/rich-text": "6.19.6",
|
||||
"@wordpress/router": "0.11.6",
|
||||
"@wordpress/server-side-render": "4.19.6",
|
||||
"@wordpress/shortcode": "3.42.6",
|
||||
"@wordpress/style-engine": "1.25.6",
|
||||
"@wordpress/sync": "0.4.6",
|
||||
"@wordpress/token-list": "2.42.6",
|
||||
"@wordpress/undo-manager": "0.2.6",
|
||||
"@wordpress/url": "3.43.6",
|
||||
"@wordpress/viewport": "5.19.6",
|
||||
"@wordpress/warning": "2.42.6",
|
||||
"@wordpress/widgets": "3.19.6",
|
||||
"@wordpress/wordcount": "3.42.6",
|
||||
"@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",
|
||||
"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
@ -170,8 +170,8 @@ function block_core_image_render_lightbox( $block_content, $block ) {
|
||||
if ( isset( $block['attrs']['id'] ) ) {
|
||||
$img_uploaded_src = wp_get_attachment_url( $block['attrs']['id'] );
|
||||
$img_metadata = wp_get_attachment_metadata( $block['attrs']['id'] );
|
||||
$img_width = $img_metadata['width'];
|
||||
$img_height = $img_metadata['height'];
|
||||
$img_width = $img_metadata['width'] ?? 'none';
|
||||
$img_height = $img_metadata['height'] ?? 'none';
|
||||
} else {
|
||||
$img_uploaded_src = $processor->get_attribute( 'src' );
|
||||
$img_width = 'none';
|
||||
|
@ -38,6 +38,7 @@ function render_block_core_post_navigation_link( $attributes, $content ) {
|
||||
$link = 'next' === $navigation_type ? _x( 'Next', 'label for next post link' ) : _x( 'Previous', 'label for previous post link' );
|
||||
$label = '';
|
||||
|
||||
// Only use hardcoded values here, otherwise we need to add escaping where these values are used.
|
||||
$arrow_map = array(
|
||||
'none' => '',
|
||||
'arrow' => array(
|
||||
@ -88,7 +89,7 @@ function render_block_core_post_navigation_link( $attributes, $content ) {
|
||||
}
|
||||
|
||||
// Display arrows.
|
||||
if ( isset( $attributes['arrow'] ) && ! empty( $attributes['arrow'] ) && 'none' !== $attributes['arrow'] ) {
|
||||
if ( isset( $attributes['arrow'] ) && 'none' !== $attributes['arrow'] && isset( $arrow_map[ $attributes['arrow'] ] ) ) {
|
||||
$arrow = $arrow_map[ $attributes['arrow'] ][ $navigation_type ];
|
||||
|
||||
if ( 'next' === $navigation_type ) {
|
||||
|
@ -48,14 +48,6 @@ class WP_Block_Parser {
|
||||
*/
|
||||
public $stack;
|
||||
|
||||
/**
|
||||
* Empty associative array, here due to PHP quirks
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @var array empty associative array
|
||||
*/
|
||||
public $empty_attrs;
|
||||
|
||||
/**
|
||||
* Parses a document and returns a list of block structures
|
||||
*
|
||||
@ -69,11 +61,10 @@ class WP_Block_Parser {
|
||||
* @return array[]
|
||||
*/
|
||||
public function parse( $document ) {
|
||||
$this->document = $document;
|
||||
$this->offset = 0;
|
||||
$this->output = array();
|
||||
$this->stack = array();
|
||||
$this->empty_attrs = array();
|
||||
$this->document = $document;
|
||||
$this->offset = 0;
|
||||
$this->output = array();
|
||||
$this->stack = array();
|
||||
|
||||
while ( $this->proceed() ) {
|
||||
continue;
|
||||
@ -287,7 +278,7 @@ class WP_Block_Parser {
|
||||
*/
|
||||
$attrs = $has_attrs
|
||||
? json_decode( $matches['attrs'][0], /* as-associative */ true )
|
||||
: $this->empty_attrs;
|
||||
: array();
|
||||
|
||||
/*
|
||||
* This state isn't allowed
|
||||
@ -318,7 +309,7 @@ class WP_Block_Parser {
|
||||
* @return WP_Block_Parser_Block freeform block object.
|
||||
*/
|
||||
public function freeform( $inner_html ) {
|
||||
return new WP_Block_Parser_Block( null, $this->empty_attrs, array(), $inner_html, array( $inner_html ) );
|
||||
return new WP_Block_Parser_Block( null, array(), array(), $inner_html, array( $inner_html ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user