Editor: update npm packages with bug fixes and blessed tasks.

Includes miscellaneous bug fixes and enhancements to the Library task (#58579) and to the Command Palette task (#58643).

See #58745.


git-svn-id: https://develop.svn.wordpress.org/trunk@56159 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Isabel Brison 2023-07-07 07:18:46 +00:00
parent d113821dbb
commit f47b9a2075
20 changed files with 1205 additions and 1133 deletions

2265
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -28,7 +28,7 @@
"@pmmmwh/react-refresh-webpack-plugin": "0.5.5",
"@wordpress/babel-preset-default": "7.19.1",
"@wordpress/dependency-extraction-webpack-plugin": "4.18.1",
"@wordpress/e2e-test-utils": "10.6.2",
"@wordpress/e2e-test-utils": "10.6.3",
"@wordpress/scripts": "26.6.2",
"autoprefixer": "10.4.14",
"chalk": "5.2.0",
@ -80,64 +80,64 @@
"@emotion/is-prop-valid": "0.8.8",
"@emotion/memoize": "0.7.4",
"@wordpress/a11y": "3.35.1",
"@wordpress/annotations": "2.35.2",
"@wordpress/annotations": "2.35.3",
"@wordpress/api-fetch": "6.32.1",
"@wordpress/autop": "3.35.1",
"@wordpress/blob": "3.35.1",
"@wordpress/block-directory": "4.12.6",
"@wordpress/block-editor": "12.3.4",
"@wordpress/block-library": "8.12.6",
"@wordpress/block-directory": "4.12.7",
"@wordpress/block-editor": "12.3.5",
"@wordpress/block-library": "8.12.7",
"@wordpress/block-serialization-default-parser": "4.35.1",
"@wordpress/blocks": "12.12.2",
"@wordpress/commands": "0.6.4",
"@wordpress/components": "25.1.4",
"@wordpress/blocks": "12.12.3",
"@wordpress/commands": "0.6.5",
"@wordpress/components": "25.1.5",
"@wordpress/compose": "6.12.1",
"@wordpress/core-commands": "0.4.4",
"@wordpress/core-data": "6.12.4",
"@wordpress/customize-widgets": "4.12.6",
"@wordpress/data": "9.5.2",
"@wordpress/data-controls": "3.4.2",
"@wordpress/core-commands": "0.4.5",
"@wordpress/core-data": "6.12.5",
"@wordpress/customize-widgets": "4.12.7",
"@wordpress/data": "9.5.3",
"@wordpress/data-controls": "3.4.3",
"@wordpress/date": "4.35.1",
"@wordpress/deprecated": "3.35.1",
"@wordpress/dom": "3.35.1",
"@wordpress/dom-ready": "3.35.1",
"@wordpress/edit-post": "7.12.6",
"@wordpress/edit-site": "5.12.6",
"@wordpress/edit-widgets": "5.12.6",
"@wordpress/editor": "13.12.4",
"@wordpress/edit-post": "7.12.7",
"@wordpress/edit-site": "5.12.7",
"@wordpress/edit-widgets": "5.12.7",
"@wordpress/editor": "13.12.5",
"@wordpress/element": "5.12.1",
"@wordpress/escape-html": "2.35.1",
"@wordpress/format-library": "4.12.4",
"@wordpress/format-library": "4.12.5",
"@wordpress/hooks": "3.35.1",
"@wordpress/html-entities": "3.35.1",
"@wordpress/i18n": "4.35.1",
"@wordpress/icons": "9.26.2",
"@wordpress/interface": "5.12.4",
"@wordpress/interface": "5.12.5",
"@wordpress/is-shallow-equal": "4.35.1",
"@wordpress/keyboard-shortcuts": "4.12.2",
"@wordpress/keyboard-shortcuts": "4.12.3",
"@wordpress/keycodes": "3.35.1",
"@wordpress/list-reusable-blocks": "4.12.4",
"@wordpress/list-reusable-blocks": "4.12.5",
"@wordpress/media-utils": "4.26.1",
"@wordpress/notices": "4.3.2",
"@wordpress/notices": "4.3.3",
"@wordpress/nux": "6.0.0",
"@wordpress/plugins": "6.3.4",
"@wordpress/preferences": "3.12.4",
"@wordpress/plugins": "6.3.5",
"@wordpress/preferences": "3.12.5",
"@wordpress/preferences-persistence": "1.27.1",
"@wordpress/primitives": "3.33.1",
"@wordpress/priority-queue": "2.35.1",
"@wordpress/private-apis": "0.17.1",
"@wordpress/redux-routine": "4.35.1",
"@wordpress/reusable-blocks": "4.12.4",
"@wordpress/rich-text": "6.12.2",
"@wordpress/reusable-blocks": "4.12.5",
"@wordpress/rich-text": "6.12.3",
"@wordpress/router": "0.4.1",
"@wordpress/server-side-render": "4.12.4",
"@wordpress/server-side-render": "4.12.5",
"@wordpress/shortcode": "3.35.1",
"@wordpress/style-engine": "1.18.1",
"@wordpress/token-list": "2.35.1",
"@wordpress/url": "3.36.1",
"@wordpress/viewport": "5.12.2",
"@wordpress/viewport": "5.12.3",
"@wordpress/warning": "2.35.1",
"@wordpress/widgets": "3.12.4",
"@wordpress/widgets": "3.12.5",
"@wordpress/wordcount": "3.35.1",
"backbone": "1.4.1",
"clipboard": "2.0.11",

File diff suppressed because one or more lines are too long

View File

@ -29,7 +29,11 @@
"html": false,
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,

View File

@ -49,7 +49,11 @@
"align": true,
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
}
},
"editorStyle": "wp-block-audio-editor",

View File

@ -30,7 +30,11 @@
'html' => false,
'spacing' => array(
'margin' => true,
'padding' => true
'padding' => true,
'__experimentalDefaultControls' => array(
'margin' => false,
'padding' => false
)
),
'typography' => array(
'fontSize' => true,
@ -104,7 +108,11 @@
'align' => true,
'spacing' => array(
'margin' => true,
'padding' => true
'padding' => true,
'__experimentalDefaultControls' => array(
'margin' => false,
'padding' => false
)
)
),
'editorStyle' => 'wp-block-audio-editor',
@ -457,7 +465,11 @@
'html' => false,
'spacing' => array(
'margin' => true,
'padding' => true
'padding' => true,
'__experimentalDefaultControls' => array(
'margin' => false,
'padding' => false
)
),
'typography' => array(
'fontSize' => true,
@ -514,7 +526,11 @@
'top',
'bottom'
),
'padding' => true
'padding' => true,
'__experimentalDefaultControls' => array(
'margin' => false,
'padding' => false
)
),
'__experimentalBorder' => array(
'radius' => true,
@ -1528,7 +1544,11 @@
'html' => false,
'spacing' => array(
'margin' => true,
'padding' => true
'padding' => true,
'__experimentalDefaultControls' => array(
'margin' => false,
'padding' => false
)
),
'typography' => array(
'fontSize' => true,
@ -1856,7 +1876,9 @@
'blockGap'
),
'__experimentalDefaultControls' => array(
'blockGap' => true
'blockGap' => true,
'margin' => false,
'padding' => false
)
),
'color' => array(
@ -2027,7 +2049,11 @@
),
'spacing' => array(
'margin' => true,
'padding' => true
'padding' => true,
'__experimentalDefaultControls' => array(
'margin' => false,
'padding' => false
)
),
'typography' => array(
'fontSize' => true,
@ -2537,7 +2563,11 @@
),
'spacing' => array(
'margin' => true,
'padding' => true
'padding' => true,
'__experimentalDefaultControls' => array(
'margin' => false,
'padding' => false
)
),
'__unstablePasteTextInline' => true,
'__experimentalSelector' => 'ol,ul',
@ -4978,7 +5008,11 @@
),
'spacing' => array(
'margin' => true,
'padding' => true
'padding' => true,
'__experimentalDefaultControls' => array(
'margin' => false,
'padding' => false
)
)
),
'styles' => array(
@ -5029,7 +5063,11 @@
),
'spacing' => array(
'margin' => true,
'padding' => true
'padding' => true,
'__experimentalDefaultControls' => array(
'margin' => false,
'padding' => false
)
),
'typography' => array(
'fontSize' => true,
@ -5092,7 +5130,11 @@
),
'spacing' => array(
'padding' => true,
'margin' => true
'margin' => true,
'__experimentalDefaultControls' => array(
'margin' => false,
'padding' => false
)
),
'typography' => array(
'fontSize' => true,
@ -5244,7 +5286,9 @@
'vw'
),
'__experimentalDefaultControls' => array(
'blockGap' => true
'blockGap' => true,
'margin' => true,
'padding' => false
)
)
),
@ -5481,7 +5525,11 @@
),
'spacing' => array(
'margin' => true,
'padding' => true
'padding' => true,
'__experimentalDefaultControls' => array(
'margin' => false,
'padding' => false
)
),
'typography' => array(
'fontSize' => true,
@ -5752,7 +5800,11 @@
),
'spacing' => array(
'margin' => true,
'padding' => true
'padding' => true,
'__experimentalDefaultControls' => array(
'margin' => false,
'padding' => false
)
),
'__experimentalBorder' => array(
'radius' => true,
@ -5853,7 +5905,11 @@
'align' => true,
'spacing' => array(
'margin' => true,
'padding' => true
'padding' => true,
'__experimentalDefaultControls' => array(
'margin' => false,
'padding' => false
)
)
),
'editorStyle' => 'wp-block-video-editor',

View File

@ -33,7 +33,11 @@
"html": false,
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,

View File

@ -31,7 +31,11 @@
},
"spacing": {
"margin": [ "top", "bottom" ],
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"__experimentalBorder": {
"radius": true,

View File

@ -34,7 +34,11 @@
"html": false,
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,

View File

@ -115,7 +115,9 @@
"blockGap": [ "horizontal", "vertical" ],
"__experimentalSkipSerialization": [ "blockGap" ],
"__experimentalDefaultControls": {
"blockGap": true
"blockGap": true,
"margin": false,
"padding": false
}
},
"color": {

View File

@ -40,7 +40,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,

View File

@ -61,7 +61,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"__unstablePasteTextInline": true,
"__experimentalSelector": "ol,ul",

View File

@ -19,8 +19,11 @@ function render_block_core_post_title( $attributes, $content, $block ) {
return '';
}
$post = get_post( $block->context['postId'] );
$title = get_the_title( $post );
/**
* The `$post` argument is intentionally omitted so that changes are reflected when previewing a post.
* See: https://github.com/WordPress/gutenberg/pull/37622#issuecomment-1000932816.
*/
$title = get_the_title();
if ( ! $title ) {
return '';
@ -33,7 +36,7 @@ function render_block_core_post_title( $attributes, $content, $block ) {
if ( isset( $attributes['isLink'] ) && $attributes['isLink'] ) {
$rel = ! empty( $attributes['rel'] ) ? 'rel="' . esc_attr( $attributes['rel'] ) . '"' : '';
$title = sprintf( '<a href="%1$s" target="%2$s" %3$s>%4$s</a>', get_the_permalink( $post ), esc_attr( $attributes['linkTarget'] ), $rel, $title );
$title = sprintf( '<a href="%1$s" target="%2$s" %3$s>%4$s</a>', get_the_permalink( $block->context['postId'] ), esc_attr( $attributes['linkTarget'] ), $rel, $title );
}
$classes = array();

View File

@ -40,7 +40,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
}
},
"styles": [

View File

@ -25,7 +25,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,

View File

@ -40,7 +40,11 @@
},
"spacing": {
"padding": true,
"margin": true
"margin": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,

View File

@ -73,7 +73,9 @@
"padding": true,
"units": [ "px", "em", "rem", "vh", "vw" ],
"__experimentalDefaultControls": {
"blockGap": true
"blockGap": true,
"margin": true,
"padding": false
}
}
},

View File

@ -166,7 +166,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,

View File

@ -46,7 +46,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"__experimentalBorder": {
"radius": true,

View File

@ -83,7 +83,11 @@
"align": true,
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
}
},
"editorStyle": "wp-block-video-editor",