mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
Editor: Update @wordpress npm packages
Update @wordpress npm packages to the latest published versions. This means that the block editor includes functionality that exists in Gutenberg 9.9. Fixes #52334. git-svn-id: https://develop.svn.wordpress.org/trunk@50137 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ce2b61b40f
commit
6df51a3fc7
2087
package-lock.json
generated
2087
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
106
package.json
106
package.json
@ -25,11 +25,11 @@
|
||||
"last 2 Opera versions"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@wordpress/custom-templated-path-webpack-plugin": "2.0.0",
|
||||
"@wordpress/dependency-extraction-webpack-plugin": "3.0.0",
|
||||
"@wordpress/e2e-test-utils": "5.0.0",
|
||||
"@wordpress/library-export-default-webpack-plugin": "2.0.0",
|
||||
"@wordpress/scripts": "13.0.0",
|
||||
"@wordpress/custom-templated-path-webpack-plugin": "2.0.1",
|
||||
"@wordpress/dependency-extraction-webpack-plugin": "3.0.1",
|
||||
"@wordpress/e2e-test-utils": "5.0.3",
|
||||
"@wordpress/library-export-default-webpack-plugin": "2.0.1",
|
||||
"@wordpress/scripts": "13.0.2",
|
||||
"autoprefixer": "^9.8.6",
|
||||
"chalk": "4.1.0",
|
||||
"check-node-version": "4.0.3",
|
||||
@ -79,54 +79,54 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/polyfill": "7.10.1",
|
||||
"@wordpress/a11y": "2.14.0",
|
||||
"@wordpress/annotations": "1.24.2",
|
||||
"@wordpress/api-fetch": "3.21.2",
|
||||
"@wordpress/autop": "2.11.0",
|
||||
"@wordpress/blob": "2.12.0",
|
||||
"@wordpress/block-directory": "1.18.2",
|
||||
"@wordpress/block-editor": "5.2.2",
|
||||
"@wordpress/block-library": "2.27.2",
|
||||
"@wordpress/block-serialization-default-parser": "3.9.0",
|
||||
"@wordpress/blocks": "6.25.2",
|
||||
"@wordpress/components": "12.0.2",
|
||||
"@wordpress/compose": "3.24.0",
|
||||
"@wordpress/core-data": "2.25.2",
|
||||
"@wordpress/data": "4.26.2",
|
||||
"@wordpress/data-controls": "1.20.2",
|
||||
"@wordpress/date": "3.13.0",
|
||||
"@wordpress/deprecated": "2.11.0",
|
||||
"@wordpress/dom": "2.16.1",
|
||||
"@wordpress/dom-ready": "2.12.0",
|
||||
"@wordpress/edit-post": "3.26.2",
|
||||
"@wordpress/editor": "9.25.2",
|
||||
"@wordpress/element": "2.19.0",
|
||||
"@wordpress/escape-html": "1.11.0",
|
||||
"@wordpress/format-library": "1.26.2",
|
||||
"@wordpress/hooks": "2.11.0",
|
||||
"@wordpress/html-entities": "2.10.0",
|
||||
"@wordpress/i18n": "3.17.0",
|
||||
"@wordpress/icons": "2.9.0",
|
||||
"@wordpress/is-shallow-equal": "3.0.0",
|
||||
"@wordpress/keyboard-shortcuts": "1.13.2",
|
||||
"@wordpress/keycodes": "2.18.0",
|
||||
"@wordpress/list-reusable-blocks": "1.25.2",
|
||||
"@wordpress/media-utils": "1.19.2",
|
||||
"@wordpress/notices": "2.12.2",
|
||||
"@wordpress/nux": "3.24.2",
|
||||
"@wordpress/plugins": "2.24.2",
|
||||
"@wordpress/primitives": "1.11.0",
|
||||
"@wordpress/priority-queue": "1.10.0",
|
||||
"@wordpress/redux-routine": "3.13.0",
|
||||
"@wordpress/reusable-blocks": "1.1.2",
|
||||
"@wordpress/rich-text": "3.24.2",
|
||||
"@wordpress/server-side-render": "1.20.2",
|
||||
"@wordpress/shortcode": "2.12.0",
|
||||
"@wordpress/token-list": "1.14.0",
|
||||
"@wordpress/url": "2.21.1",
|
||||
"@wordpress/viewport": "2.25.2",
|
||||
"@wordpress/warning": "1.3.0",
|
||||
"@wordpress/wordcount": "2.14.0",
|
||||
"@wordpress/a11y": "2.14.3",
|
||||
"@wordpress/annotations": "1.24.5",
|
||||
"@wordpress/api-fetch": "3.21.5",
|
||||
"@wordpress/autop": "2.11.1",
|
||||
"@wordpress/blob": "2.12.1",
|
||||
"@wordpress/block-directory": "1.18.5",
|
||||
"@wordpress/block-editor": "5.2.5",
|
||||
"@wordpress/block-library": "2.28.2",
|
||||
"@wordpress/block-serialization-default-parser": "3.9.1",
|
||||
"@wordpress/blocks": "7.0.2",
|
||||
"@wordpress/components": "12.0.5",
|
||||
"@wordpress/compose": "3.24.3",
|
||||
"@wordpress/core-data": "2.25.5",
|
||||
"@wordpress/data": "4.26.5",
|
||||
"@wordpress/data-controls": "1.20.5",
|
||||
"@wordpress/date": "3.13.1",
|
||||
"@wordpress/deprecated": "2.11.1",
|
||||
"@wordpress/dom": "2.16.2",
|
||||
"@wordpress/dom-ready": "2.12.1",
|
||||
"@wordpress/edit-post": "3.26.5",
|
||||
"@wordpress/editor": "9.25.5",
|
||||
"@wordpress/element": "2.19.1",
|
||||
"@wordpress/escape-html": "1.11.1",
|
||||
"@wordpress/format-library": "1.26.5",
|
||||
"@wordpress/hooks": "2.11.1",
|
||||
"@wordpress/html-entities": "2.10.1",
|
||||
"@wordpress/i18n": "3.18.0",
|
||||
"@wordpress/icons": "2.9.1",
|
||||
"@wordpress/is-shallow-equal": "3.0.1",
|
||||
"@wordpress/keyboard-shortcuts": "1.13.5",
|
||||
"@wordpress/keycodes": "2.18.3",
|
||||
"@wordpress/list-reusable-blocks": "1.25.5",
|
||||
"@wordpress/media-utils": "1.19.5",
|
||||
"@wordpress/notices": "2.12.5",
|
||||
"@wordpress/nux": "3.24.5",
|
||||
"@wordpress/plugins": "2.24.5",
|
||||
"@wordpress/primitives": "1.11.1",
|
||||
"@wordpress/priority-queue": "1.10.1",
|
||||
"@wordpress/redux-routine": "3.13.1",
|
||||
"@wordpress/reusable-blocks": "1.1.5",
|
||||
"@wordpress/rich-text": "3.24.5",
|
||||
"@wordpress/server-side-render": "1.20.5",
|
||||
"@wordpress/shortcode": "2.12.1",
|
||||
"@wordpress/token-list": "1.14.1",
|
||||
"@wordpress/url": "2.21.2",
|
||||
"@wordpress/viewport": "2.25.5",
|
||||
"@wordpress/warning": "1.3.1",
|
||||
"@wordpress/wordcount": "2.14.1",
|
||||
"backbone": "1.4.0",
|
||||
"clipboard": "2.0.6",
|
||||
"core-js-url-browser": "3.6.4",
|
||||
|
File diff suppressed because one or more lines are too long
@ -13,6 +13,8 @@
|
||||
* @return string Rendered HTML of the referenced block.
|
||||
*/
|
||||
function render_block_core_block( $attributes ) {
|
||||
static $seen_refs = array();
|
||||
|
||||
if ( empty( $attributes['ref'] ) ) {
|
||||
return '';
|
||||
}
|
||||
@ -22,11 +24,38 @@ function render_block_core_block( $attributes ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ( isset( $seen_refs[ $attributes['ref'] ] ) ) {
|
||||
if ( ! is_admin() ) {
|
||||
trigger_error(
|
||||
sprintf(
|
||||
// translators: %s is the user-provided title of the reusable block.
|
||||
__( 'Could not render Reusable Block <strong>%s</strong>: blocks cannot be rendered inside themselves.' ),
|
||||
$reusable_block->post_title
|
||||
),
|
||||
E_USER_WARNING
|
||||
);
|
||||
}
|
||||
|
||||
// WP_DEBUG_DISPLAY must only be honored when WP_DEBUG. This precedent
|
||||
// is set in `wp_debug_mode()`.
|
||||
$is_debug = defined( 'WP_DEBUG' ) && WP_DEBUG &&
|
||||
defined( 'WP_DEBUG_DISPLAY' ) && WP_DEBUG_DISPLAY;
|
||||
|
||||
return $is_debug ?
|
||||
// translators: Visible only in the front end, this warning takes the place of a faulty block.
|
||||
__( '[block rendering halted]' ) :
|
||||
'';
|
||||
}
|
||||
|
||||
if ( 'publish' !== $reusable_block->post_status || ! empty( $reusable_block->post_password ) ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return do_blocks( $reusable_block->post_content );
|
||||
$seen_refs[ $attributes['ref'] ] = true;
|
||||
|
||||
$result = do_blocks( $reusable_block->post_content );
|
||||
unset( $seen_refs[ $attributes['ref'] ] );
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -71,7 +71,10 @@
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true
|
||||
"anchor": true,
|
||||
"__experimentalBorder": {
|
||||
"radius": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-image-editor",
|
||||
"style": "wp-block-image"
|
||||
|
@ -35,7 +35,7 @@ function render_block_core_social_link( $attributes, $content, $block ) {
|
||||
$icon = block_core_social_link_get_icon( $service );
|
||||
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => 'wp-social-link wp-social-link-' . $service . $class_name ) );
|
||||
|
||||
return '<li ' . $wrapper_attributes . '><a href="' . esc_url( $url ) . '" aria-label="' . esc_attr( $label ) . '" ' . $attribute . '> ' . $icon . '</a></li>';
|
||||
return '<li ' . $wrapper_attributes . '><a href="' . esc_url( $url ) . '" aria-label="' . esc_attr( $label ) . '" ' . $attribute . ' class="wp-block-social-link-anchor"> ' . $icon . '</a></li>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -3,6 +3,24 @@
|
||||
"name": "core/social-links",
|
||||
"category": "widgets",
|
||||
"attributes": {
|
||||
"iconColor": {
|
||||
"type": "string"
|
||||
},
|
||||
"customIconColor": {
|
||||
"type": "string"
|
||||
},
|
||||
"iconColorValue": {
|
||||
"type": "string"
|
||||
},
|
||||
"iconBackgroundColor": {
|
||||
"type": "string"
|
||||
},
|
||||
"customIconBackgroundColor": {
|
||||
"type": "string"
|
||||
},
|
||||
"iconBackgroundColorValue": {
|
||||
"type": "string"
|
||||
},
|
||||
"openInNewTab": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
|
@ -300,7 +300,7 @@ class WP_Block_Parser {
|
||||
*/
|
||||
if ( 0 === $stack_depth ) {
|
||||
if ( isset( $leading_html_start ) ) {
|
||||
$this->output[] = (array) self::freeform(
|
||||
$this->output[] = (array) $this->freeform(
|
||||
substr(
|
||||
$this->document,
|
||||
$leading_html_start,
|
||||
@ -492,7 +492,7 @@ class WP_Block_Parser {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->output[] = (array) self::freeform( substr( $this->document, $this->offset, $length ) );
|
||||
$this->output[] = (array) $this->freeform( substr( $this->document, $this->offset, $length ) );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -541,7 +541,7 @@ class WP_Block_Parser {
|
||||
}
|
||||
|
||||
if ( isset( $stack_top->leading_html_start ) ) {
|
||||
$this->output[] = (array) self::freeform(
|
||||
$this->output[] = (array) $this->freeform(
|
||||
substr(
|
||||
$this->document,
|
||||
$stack_top->leading_html_start,
|
||||
|
@ -721,6 +721,7 @@ JS;
|
||||
$expected .= "( 'fetch' in window ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-fetch{$suffix}.js\"></scr' + 'ipt>' );( document.contains ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-node-contains{$suffix}.js\"></scr' + 'ipt>' );( window.DOMRect ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-dom-rect{$suffix}.js\"></scr' + 'ipt>' );( window.URL && window.URL.prototype && window.URLSearchParams ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-url{$suffix}.js\"></scr' + 'ipt>' );( window.FormData && window.FormData.prototype.keys ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-formdata{$suffix}.js\"></scr' + 'ipt>' );( Element.prototype.matches && Element.prototype.closest ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-element-closest{$suffix}.js\"></scr' + 'ipt>' );( 'objectFit' in document.documentElement.style ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-object-fit.min.js\"></scr' + 'ipt>' );\n";
|
||||
$expected .= "</script>\n";
|
||||
$expected .= "<script type='text/javascript' src='/wp-includes/js/dist/dom-ready{$suffix}.js' id='wp-dom-ready-js'></script>\n";
|
||||
$expected .= "<script type='text/javascript' src='/wp-includes/js/dist/hooks{$suffix}.js' id='wp-hooks-js'></script>\n";
|
||||
$expected .= "<script type='text/javascript' src='/wp-includes/js/dist/i18n{$suffix}.js' id='wp-i18n-js'></script>\n";
|
||||
$expected .= "<script type='text/javascript' id='wp-a11y-js-translations'>\n";
|
||||
$expected .= "( function( domain, translations ) {\n";
|
||||
|
@ -28,6 +28,7 @@
|
||||
<script src="../../build/wp-includes/js/wp-util.js"></script>
|
||||
<script src="../../build/wp-includes/js/dist/vendor/wp-polyfill.js"></script>
|
||||
<script src="../../build/wp-includes/js/dist/dom-ready.js"></script>
|
||||
<script src="../../build/wp-includes/js/dist/hooks.js"></script>
|
||||
<script src="../../build/wp-includes/js/dist/i18n.js"></script>
|
||||
<script src="../../build/wp-includes/js/dist/a11y.js"></script>
|
||||
<script>
|
||||
|
@ -253,6 +253,8 @@ module.exports = function( env = { environment: 'production', watch: false, buil
|
||||
new DefinePlugin( {
|
||||
// Inject the `GUTENBERG_PHASE` global, used for feature flagging.
|
||||
'process.env.GUTENBERG_PHASE': 1,
|
||||
// Inject the `COMPONENT_SYSTEM_PHASE` global, used for controlling Component System roll-out.
|
||||
'process.env.COMPONENT_SYSTEM_PHASE': 0,
|
||||
'process.env.FORCE_REDUCED_MOTION': JSON.stringify(
|
||||
process.env.FORCE_REDUCED_MOTION
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user