Block Editor: Update packages and backport the latest Gutenberg fixes.

This includes the following fixes:

- Generate babel polyfill dynamically https://github.com/WordPress/gutenberg/pull/31279
- Improve the List View component https://github.com/WordPress/gutenberg/pull/31290 https://github.com/WordPress/gutenberg/pull/32063
- Template mode:
    - Fix embed dimensions https://github.com/WordPress/gutenberg/pull/32057
    - Update the welcome guide https://github.com/WordPress/gutenberg/pull/32055 https://github.com/WordPress/gutenberg/pull/32026
    - Don’t display the notice at the same time as the welcome guide https://github.com/WordPress/gutenberg/pull/32076
    - Remove MetaBoxes https://github.com/WordPress/gutenberg/pull/32315
    - Update the title area https://github.com/WordPress/gutenberg/pull/32037 
- Widgets Screen:
    - Fix unsaved changes https://github.com/WordPress/gutenberg/pull/31757
    - Fix toolbar alignment https://github.com/WordPress/gutenberg/pull/31991
    - Fix block toolbar position after scroll https://github.com/WordPress/gutenberg/pull/32212
    - Fix the visible widget area header https://github.com/WordPress/gutenberg/pull/32262
    - Fix legacy widgets preview https://github.com/WordPress/gutenberg/pull/32260
    - 
- Block Widgets in the customizer: 
    - Fix customizer title overlapping block toolbar https://github.com/WordPress/gutenberg/pull/32140
    - Fix styling issues https://github.com/WordPress/gutenberg/pull/32072
    - Fix escape key events https://github.com/WordPress/gutenberg/pull/32175
    - Add preferences menu group label https://github.com/WordPress/gutenberg/pull/32259
    - Fix creating and replacing legacy widgets https://github.com/WordPress/gutenberg/pull/32005
    - Fix the welcome guide’s image https://github.com/WordPress/gutenberg/pull/32264 https://github.com/WordPress/gutenberg/pull/32302 
- Fix Cover to Image transform duotone error https://github.com/WordPress/gutenberg/pull/32006
- Remove filter_var usage from blocks https://github.com/WordPress/gutenberg/pull/32046 
- Fix image width for aligned Post Featured Image block https://github.com/WordPress/gutenberg/pull/32070
- Prevent excessive Image block re-rendering https://github.com/WordPress/gutenberg/pull/32102
- Remove gutenberg domain from core blocks https://github.com/WordPress/gutenberg/pull/32152
- Use the block editor context class for the the different settings filters https://github.com/WordPress/gutenberg/pull/32159
- Fix Latest Posts block grid view https://github.com/WordPress/gutenberg/pull/32160
- Fix preset classes generation per block https://github.com/WordPress/gutenberg/pull/32190
- Fix logic to enable custom colors and gradients https://github.com/WordPress/gutenberg/pull/32200
- Update the Site Logo logic to use a dedicated site option https://github.com/WordPress/gutenberg/pull/32229
- Limit the Latest Posts block’s featured image width https://github.com/WordPress/gutenberg/pull/32245
- Remove opacity animation in the canvas. https://github.com/WordPress/gutenberg/pull/32266
- Make the focus style valid CSS https://github.com/WordPress/gutenberg/pull/32305
- Fix theme.json styles for the core/list block https://github.com/WordPress/gutenberg/pull/32343
- Fix PHP notice when calling render_block https://github.com/WordPress/gutenberg/pull/32135

Props nosolosw, noisysocks.
See #52991.

Built from https://develop.svn.wordpress.org/trunk@51051


git-svn-id: http://core.svn.wordpress.org/trunk@50660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
youknowriad 2021-06-01 08:10:04 +00:00
parent 6acd4d4c16
commit e335b68afc
54 changed files with 2320 additions and 1818 deletions

File diff suppressed because one or more lines are too long

View File

@ -17,7 +17,10 @@
* @return string Filtered block content.
*/
function wp_render_elements_support( $block_content, $block ) {
$link_color = _wp_array_get( $block['attrs'], array( 'style', 'elements', 'link', 'color', 'text' ), null );
$link_color = null;
if ( ! empty( $block['attrs'] ) ) {
$link_color = _wp_array_get( $block['attrs'], array( 'style', 'elements', 'link', 'color', 'text' ), null );
}
/*
* For now we only care about link color.

View File

@ -140,6 +140,7 @@
.wp-block-latest-posts__featured-image img {
height: auto;
width: auto;
max-width: 100%;
}
.wp-block-latest-posts__featured-image.alignleft {
margin-right: 1em;

View File

@ -1 +1 @@
.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 0 1.25em 1.25em;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-left:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-left:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-left:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-left:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-left:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}
.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 0 1.25em 1.25em;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-left:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-left:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-left:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-left:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-left:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto;max-width:100%}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}

View File

@ -142,6 +142,7 @@
.wp-block-latest-posts__featured-image img {
height: auto;
width: auto;
max-width: 100%;
}
.wp-block-latest-posts__featured-image.alignleft {
/*rtl:ignore*/

View File

@ -1 +1 @@
.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 1.25em 1.25em 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-right:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-right:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-right:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-right:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-right:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}
.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 1.25em 1.25em 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-right:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-right:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-right:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-right:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-right:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto;max-width:100%}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}

View File

@ -41,7 +41,8 @@
"color": {
"gradients": true
},
"__unstablePasteTextInline": true
"__unstablePasteTextInline": true,
"__experimentalSelector": "ol,ul"
},
"editorStyle": "wp-block-list-editor",
"style": "wp-block-list"

View File

@ -79,3 +79,6 @@
max-width: 100%;
height: auto;
}
.wp-block-post-featured-image.alignwide img, .wp-block-post-featured-image.alignfull img {
width: 100%;
}

View File

@ -1 +1 @@
.wp-block-post-featured-image{margin-right:0;margin-left:0}.wp-block-post-featured-image a{display:inline-block}.wp-block-post-featured-image img{max-width:100%;height:auto}
.wp-block-post-featured-image{margin-right:0;margin-left:0}.wp-block-post-featured-image a{display:inline-block}.wp-block-post-featured-image img{max-width:100%;height:auto}.wp-block-post-featured-image.alignfull img,.wp-block-post-featured-image.alignwide img{width:100%}

View File

@ -79,3 +79,6 @@
max-width: 100%;
height: auto;
}
.wp-block-post-featured-image.alignwide img, .wp-block-post-featured-image.alignfull img {
width: 100%;
}

View File

@ -1 +1 @@
.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:inline-block}.wp-block-post-featured-image img{max-width:100%;height:auto}
.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:inline-block}.wp-block-post-featured-image img{max-width:100%;height:auto}.wp-block-post-featured-image.alignfull img,.wp-block-post-featured-image.alignwide img{width:100%}

View File

@ -16,7 +16,7 @@
*/
function render_block_core_query_loop( $attributes, $content, $block ) {
$page_key = isset( $block->context['queryId'] ) ? 'query-' . $block->context['queryId'] . '-page' : 'query-page';
$page = empty( $_GET[ $page_key ] ) ? 1 : filter_var( $_GET[ $page_key ], FILTER_VALIDATE_INT );
$page = empty( $_GET[ $page_key ] ) ? 1 : (int) $_GET[ $page_key ];
$query_args = build_query_vars_from_query_block( $block, $page );
// Override the custom query with the global query if needed.

View File

@ -16,11 +16,11 @@
*/
function render_block_core_query_pagination_next( $attributes, $content, $block ) {
$page_key = isset( $block->context['queryId'] ) ? 'query-' . $block->context['queryId'] . '-page' : 'query-page';
$page = empty( $_GET[ $page_key ] ) ? 1 : filter_var( $_GET[ $page_key ], FILTER_VALIDATE_INT );
$page = empty( $_GET[ $page_key ] ) ? 1 : (int) $_GET[ $page_key ];
$max_page = isset( $block->context['query']['pages'] ) ? (int) $block->context['query']['pages'] : 0;
$wrapper_attributes = get_block_wrapper_attributes();
$default_label = __( 'Next Page »', 'gutenberg' );
$default_label = __( 'Next Page »' );
$label = isset( $attributes['label'] ) && ! empty( $attributes['label'] ) ? $attributes['label'] : $default_label;
$content = '';

View File

@ -16,7 +16,7 @@
*/
function render_block_core_query_pagination_numbers( $attributes, $content, $block ) {
$page_key = isset( $block->context['queryId'] ) ? 'query-' . $block->context['queryId'] . '-page' : 'query-page';
$page = empty( $_GET[ $page_key ] ) ? 1 : filter_var( $_GET[ $page_key ], FILTER_VALIDATE_INT );
$page = empty( $_GET[ $page_key ] ) ? 1 : (int) $_GET[ $page_key ];
$max_page = isset( $block->context['query']['pages'] ) ? (int) $block->context['query']['pages'] : 0;
$wrapper_attributes = get_block_wrapper_attributes();

View File

@ -16,10 +16,10 @@
*/
function render_block_core_query_pagination_previous( $attributes, $content, $block ) {
$page_key = isset( $block->context['queryId'] ) ? 'query-' . $block->context['queryId'] . '-page' : 'query-page';
$page = empty( $_GET[ $page_key ] ) ? 1 : filter_var( $_GET[ $page_key ], FILTER_VALIDATE_INT );
$page = empty( $_GET[ $page_key ] ) ? 1 : (int) $_GET[ $page_key ];
$wrapper_attributes = get_block_wrapper_attributes();
$default_label = __( '« Previous Page', 'gutenberg' );
$default_label = __( '« Previous Page' );
$label = isset( $attributes['label'] ) && ! empty( $attributes['label'] ) ? $attributes['label'] : $default_label;
$content = '';
// Check if the pagination is for Query that inherits the global context

View File

@ -21,7 +21,7 @@ function render_block_core_social_link( $attributes, $content, $block ) {
$url = ( isset( $attributes['url'] ) ) ? $attributes['url'] : false;
$label = ( isset( $attributes['label'] ) ) ? $attributes['label'] : sprintf(
/* translators: %1$s: Social-network name. %2$s: URL. */
__( '%1$s: %2$s', 'gutenberg' ),
__( '%1$s: %2$s' ),
block_core_social_link_get_name( $service ),
$url
);

View File

@ -609,6 +609,28 @@ class WP_Theme_JSON {
return $selector . '{' . $declaration_block . '}';
}
/**
* Function that appends a sub-selector to a existing one.
*
* Given the compounded $selector "h1, h2, h3"
* and the $to_append selector ".some-class" the result will be
* "h1.some-class, h2.some-class, h3.some-class".
*
* @param string $selector Original selector.
* @param string $to_append Selector to append.
*
* @return string
*/
private static function append_to_selector( $selector, $to_append ) {
$new_selectors = array();
$selectors = explode( ',', $selector );
foreach ( $selectors as $sel ) {
$new_selectors[] = $sel . $to_append;
}
return implode( ',', $new_selectors );
}
/**
* Given a settings array, it returns the generated rulesets
* for the preset classes.
@ -633,7 +655,7 @@ class WP_Theme_JSON {
foreach ( $values as $value ) {
foreach ( $preset['classes'] as $class ) {
$stylesheet .= self::to_ruleset(
$selector . '.has-' . $value['slug'] . '-' . $class['class_suffix'],
self::append_to_selector( $selector, '.has-' . $value['slug'] . '-' . $class['class_suffix'] ),
array(
array(
'name' => $class['property_name'],

View File

@ -1356,9 +1356,44 @@
display: flex;
}
.block-editor-block-navigator-indentation {
flex-shrink: 0;
width: 28px;
.block-editor-block-navigation-leaf[aria-level] .block-editor-block-icon {
margin-right: 224px;
}
.block-editor-block-navigation-leaf[aria-level="1"] .block-editor-block-icon {
margin-right: 0px;
}
.block-editor-block-navigation-leaf[aria-level="2"] .block-editor-block-icon {
margin-right: 28px;
}
.block-editor-block-navigation-leaf[aria-level="3"] .block-editor-block-icon {
margin-right: 56px;
}
.block-editor-block-navigation-leaf[aria-level="4"] .block-editor-block-icon {
margin-right: 84px;
}
.block-editor-block-navigation-leaf[aria-level="5"] .block-editor-block-icon {
margin-right: 112px;
}
.block-editor-block-navigation-leaf[aria-level="6"] .block-editor-block-icon {
margin-right: 140px;
}
.block-editor-block-navigation-leaf[aria-level="7"] .block-editor-block-icon {
margin-right: 168px;
}
.block-editor-block-navigation-leaf[aria-level="8"] .block-editor-block-icon {
margin-right: 196px;
}
.block-editor-block-navigation-leaf[aria-level="9"] .block-editor-block-icon {
margin-right: 224px;
}
.block-editor-block-parent-selector {
@ -1889,7 +1924,7 @@
}
.block-editor-block-variation-transforms .components-dropdown-menu__toggle:focus:not(:disabled) {
border-color: var(--wp-admin-theme-color);
box-shadow: 0 0 0 var(--wp-admin-border-width-focus)-1px var(--wp-admin-theme-color);
box-shadow: 0 0 0 calc(var(--wp-admin-border-width-focus) - 1px) var(--wp-admin-theme-color);
}
.block-editor-block-variation-transforms .components-dropdown-menu__toggle svg {
height: 100%;
@ -2039,6 +2074,7 @@
.block-editor-duotone-control__popover .components-menu-group__label {
padding: 12px 12px 0 12px;
width: 100%;
box-sizing: border-box;
}
.block-editor-duotone-control__popover > .components-popover__content {

File diff suppressed because one or more lines are too long

View File

@ -1356,9 +1356,44 @@
display: flex;
}
.block-editor-block-navigator-indentation {
flex-shrink: 0;
width: 28px;
.block-editor-block-navigation-leaf[aria-level] .block-editor-block-icon {
margin-left: 224px;
}
.block-editor-block-navigation-leaf[aria-level="1"] .block-editor-block-icon {
margin-left: 0px;
}
.block-editor-block-navigation-leaf[aria-level="2"] .block-editor-block-icon {
margin-left: 28px;
}
.block-editor-block-navigation-leaf[aria-level="3"] .block-editor-block-icon {
margin-left: 56px;
}
.block-editor-block-navigation-leaf[aria-level="4"] .block-editor-block-icon {
margin-left: 84px;
}
.block-editor-block-navigation-leaf[aria-level="5"] .block-editor-block-icon {
margin-left: 112px;
}
.block-editor-block-navigation-leaf[aria-level="6"] .block-editor-block-icon {
margin-left: 140px;
}
.block-editor-block-navigation-leaf[aria-level="7"] .block-editor-block-icon {
margin-left: 168px;
}
.block-editor-block-navigation-leaf[aria-level="8"] .block-editor-block-icon {
margin-left: 196px;
}
.block-editor-block-navigation-leaf[aria-level="9"] .block-editor-block-icon {
margin-left: 224px;
}
.block-editor-block-parent-selector {
@ -1889,7 +1924,7 @@
}
.block-editor-block-variation-transforms .components-dropdown-menu__toggle:focus:not(:disabled) {
border-color: var(--wp-admin-theme-color);
box-shadow: 0 0 0 var(--wp-admin-border-width-focus)-1px var(--wp-admin-theme-color);
box-shadow: 0 0 0 calc(var(--wp-admin-border-width-focus) - 1px) var(--wp-admin-theme-color);
}
.block-editor-block-variation-transforms .components-dropdown-menu__toggle svg {
height: 100%;
@ -2039,6 +2074,7 @@
.block-editor-duotone-control__popover .components-menu-group__label {
padding: 12px 12px 0 12px;
width: 100%;
box-sizing: border-box;
}
.block-editor-duotone-control__popover > .components-popover__content {

File diff suppressed because one or more lines are too long

View File

@ -1207,6 +1207,7 @@ ol.wp-block-latest-comments {
.wp-block-latest-posts__featured-image img {
height: auto;
width: auto;
max-width: 100%;
}
.wp-block-latest-posts__featured-image.alignleft {
margin-right: 1em;
@ -2773,6 +2774,9 @@ pre.wp-block-verse {
max-width: 100%;
height: auto;
}
.wp-block-post-featured-image.alignwide img, .wp-block-post-featured-image.alignfull img {
width: 100%;
}
:root {
/* stylelint-disable function-comma-space-after */

File diff suppressed because one or more lines are too long

View File

@ -1230,6 +1230,7 @@ ol.wp-block-latest-comments {
.wp-block-latest-posts__featured-image img {
height: auto;
width: auto;
max-width: 100%;
}
.wp-block-latest-posts__featured-image.alignleft {
/*rtl:ignore*/
@ -2813,6 +2814,9 @@ pre.wp-block-verse {
max-width: 100%;
height: auto;
}
.wp-block-post-featured-image.alignwide img, .wp-block-post-featured-image.alignfull img {
width: 100%;
}
:root {
/* stylelint-disable function-comma-space-after */

File diff suppressed because one or more lines are too long

View File

@ -270,21 +270,13 @@
z-index: 7;
}
.customize-widgets-welcome-guide__image {
.customize-widgets-welcome-guide__image__wrapper {
background: #00a0d2;
height: 240px;
margin: 0 0 8px;
text-align: center;
margin-bottom: 8px;
}
.customize-widgets-welcome-guide__image__prm-r {
display: none;
}
@media (prefers-reduced-motion: reduce) {
.customize-widgets-welcome-guide__image__prm-r {
display: block;
}
.customize-widgets-welcome-guide__image__prm-np {
display: none;
}
.customize-widgets-welcome-guide__image {
height: auto;
}
.wrap .customize-widgets-welcome-guide__heading {
font-size: 18px;
@ -309,8 +301,31 @@
overflow: unset;
min-height: 100%;
background-color: #fff;
padding-top: 10px !important;
}
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title {
position: static !important;
top: 0 !important;
width: unset !important;
}
.components-modal__screen-overlay {
z-index: 999999;
}
.customize-control-sidebar_block_editor,
.customize-widgets-layout__inspector,
.customize-widgets-popover {
box-sizing: border-box;
}
.customize-control-sidebar_block_editor *,
.customize-control-sidebar_block_editor *::before,
.customize-control-sidebar_block_editor *::after,
.customize-widgets-layout__inspector *,
.customize-widgets-layout__inspector *::before,
.customize-widgets-layout__inspector *::after,
.customize-widgets-popover *,
.customize-widgets-popover *::before,
.customize-widgets-popover *::after {
box-sizing: inherit;
}

File diff suppressed because one or more lines are too long

View File

@ -270,21 +270,13 @@
z-index: 7;
}
.customize-widgets-welcome-guide__image {
.customize-widgets-welcome-guide__image__wrapper {
background: #00a0d2;
height: 240px;
margin: 0 0 8px;
text-align: center;
margin-bottom: 8px;
}
.customize-widgets-welcome-guide__image__prm-r {
display: none;
}
@media (prefers-reduced-motion: reduce) {
.customize-widgets-welcome-guide__image__prm-r {
display: block;
}
.customize-widgets-welcome-guide__image__prm-np {
display: none;
}
.customize-widgets-welcome-guide__image {
height: auto;
}
.wrap .customize-widgets-welcome-guide__heading {
font-size: 18px;
@ -309,8 +301,31 @@
overflow: unset;
min-height: 100%;
background-color: #fff;
padding-top: 10px !important;
}
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title {
position: static !important;
top: 0 !important;
width: unset !important;
}
.components-modal__screen-overlay {
z-index: 999999;
}
.customize-control-sidebar_block_editor,
.customize-widgets-layout__inspector,
.customize-widgets-popover {
box-sizing: border-box;
}
.customize-control-sidebar_block_editor *,
.customize-control-sidebar_block_editor *::before,
.customize-control-sidebar_block_editor *::after,
.customize-widgets-layout__inspector *,
.customize-widgets-layout__inspector *::before,
.customize-widgets-layout__inspector *::after,
.customize-widgets-popover *,
.customize-widgets-popover *::before,
.customize-widgets-popover *::after {
box-sizing: inherit;
}

File diff suppressed because one or more lines are too long

View File

@ -835,8 +835,40 @@ body.is-fullscreen-mode .interface-interface-skeleton {
width: 100%;
align-items: center;
}
.edit-post-template-top-area .components-button.is-small {
height: 24px;
.edit-post-template-top-area .edit-post-template-title,
.edit-post-template-top-area .edit-post-template-post-title {
padding: 0;
text-decoration: none;
height: auto;
}
.edit-post-template-top-area .edit-post-template-title::before,
.edit-post-template-top-area .edit-post-template-post-title::before {
height: 100%;
}
.edit-post-template-top-area .edit-post-template-title.has-icon svg,
.edit-post-template-top-area .edit-post-template-post-title.has-icon svg {
order: 1;
margin-left: 0;
}
.edit-post-template-top-area .edit-post-template-title {
color: #1e1e1e;
}
.edit-post-template-top-area .edit-post-template-post-title {
margin-top: 4px;
max-width: 160px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: block;
}
.edit-post-template-top-area .edit-post-template-post-title::before {
right: 0;
left: 0;
}
@media (min-width: 1080px) {
.edit-post-template-top-area .edit-post-template-post-title {
max-width: none;
}
}
.edit-post-template-top-area__popover .components-popover__content {
@ -1722,20 +1754,8 @@ h2.edit-post-template-summary__title {
}
.edit-post-welcome-guide__image {
background: #00a0d2;
height: 240px;
margin: 0 0 16px;
}
.edit-post-welcome-guide__image__prm-r {
display: none;
}
@media (prefers-reduced-motion: reduce) {
.edit-post-welcome-guide__image__prm-r {
display: block;
}
.edit-post-welcome-guide__image__prm-np {
display: none;
}
}
.edit-post-welcome-guide__heading {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 24px;

File diff suppressed because one or more lines are too long

View File

@ -835,8 +835,40 @@ body.is-fullscreen-mode .interface-interface-skeleton {
width: 100%;
align-items: center;
}
.edit-post-template-top-area .components-button.is-small {
height: 24px;
.edit-post-template-top-area .edit-post-template-title,
.edit-post-template-top-area .edit-post-template-post-title {
padding: 0;
text-decoration: none;
height: auto;
}
.edit-post-template-top-area .edit-post-template-title::before,
.edit-post-template-top-area .edit-post-template-post-title::before {
height: 100%;
}
.edit-post-template-top-area .edit-post-template-title.has-icon svg,
.edit-post-template-top-area .edit-post-template-post-title.has-icon svg {
order: 1;
margin-right: 0;
}
.edit-post-template-top-area .edit-post-template-title {
color: #1e1e1e;
}
.edit-post-template-top-area .edit-post-template-post-title {
margin-top: 4px;
max-width: 160px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: block;
}
.edit-post-template-top-area .edit-post-template-post-title::before {
left: 0;
right: 0;
}
@media (min-width: 1080px) {
.edit-post-template-top-area .edit-post-template-post-title {
max-width: none;
}
}
.edit-post-template-top-area__popover .components-popover__content {
@ -1726,20 +1758,8 @@ h2.edit-post-template-summary__title {
}
.edit-post-welcome-guide__image {
background: #00a0d2;
height: 240px;
margin: 0 0 16px;
}
.edit-post-welcome-guide__image__prm-r {
display: none;
}
@media (prefers-reduced-motion: reduce) {
.edit-post-welcome-guide__image__prm-r {
display: block;
}
.edit-post-welcome-guide__image__prm-np {
display: none;
}
}
.edit-post-welcome-guide__heading {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 24px;

File diff suppressed because one or more lines are too long

View File

@ -730,20 +730,8 @@ body.is-fullscreen-mode .edit-widgets-notices__snackbar {
}
.edit-widgets-welcome-guide__image {
background: #00a0d2;
height: 240px;
margin: 0 0 16px;
}
.edit-widgets-welcome-guide__image__prm-r {
display: none;
}
@media (prefers-reduced-motion: reduce) {
.edit-widgets-welcome-guide__image__prm-r {
display: block;
}
.edit-widgets-welcome-guide__image__prm-np {
display: none;
}
}
.edit-widgets-welcome-guide__heading {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 24px;

File diff suppressed because one or more lines are too long

View File

@ -730,20 +730,8 @@ body.is-fullscreen-mode .edit-widgets-notices__snackbar {
}
.edit-widgets-welcome-guide__image {
background: #00a0d2;
height: 240px;
margin: 0 0 16px;
}
.edit-widgets-welcome-guide__image__prm-r {
display: none;
}
@media (prefers-reduced-motion: reduce) {
.edit-widgets-welcome-guide__image__prm-r {
display: block;
}
.edit-widgets-welcome-guide__image__prm-np {
display: none;
}
}
.edit-widgets-welcome-guide__heading {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 24px;

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -3450,7 +3450,7 @@ function index_module_classNames() {
}).join(' ').trim();
}
var css_248z = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n";
var css_248z = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n";
var MIN_ZOOM = 1;
var MAX_ZOOM = 3;
@ -3903,7 +3903,8 @@ function (_super) {
_d = _a.classes,
containerClassName = _d.containerClassName,
cropAreaClassName = _d.cropAreaClassName,
mediaClassName = _d.mediaClassName;
mediaClassName = _d.mediaClassName,
objectFit = _a.objectFit;
return /*#__PURE__*/external_React_default.a.createElement("div", {
onMouseDown: this.onMouseDown,
onTouchStart: this.onTouchStart,
@ -3915,7 +3916,7 @@ function (_super) {
className: index_module_classNames('reactEasyCrop_Container', containerClassName)
}, image ? /*#__PURE__*/external_React_default.a.createElement("img", __assign({
alt: "",
className: index_module_classNames('reactEasyCrop_Image', mediaClassName)
className: index_module_classNames('reactEasyCrop_Image', objectFit === 'contain' && 'reactEasyCrop_Contain', objectFit === 'horizontal-cover' && 'reactEasyCrop_Cover_Horizontal', objectFit === 'vertical-cover' && 'reactEasyCrop_Cover_Vertical', mediaClassName)
}, mediaProps, {
src: image,
ref: function ref(el) {
@ -3929,7 +3930,7 @@ function (_super) {
autoPlay: true,
loop: true,
muted: true,
className: index_module_classNames('reactEasyCrop_Video', mediaClassName)
className: index_module_classNames('reactEasyCrop_Video', objectFit === 'contain' && 'reactEasyCrop_Contain', objectFit === 'horizontal-cover' && 'reactEasyCrop_Cover_Horizontal', objectFit === 'vertical-cover' && 'reactEasyCrop_Cover_Vertical', mediaClassName)
}, mediaProps, {
src: video,
ref: function ref(el) {
@ -3957,6 +3958,7 @@ function (_super) {
maxZoom: MAX_ZOOM,
minZoom: MIN_ZOOM,
cropShape: 'rect',
objectFit: 'contain',
showGrid: true,
style: {},
classes: {},
@ -4681,13 +4683,15 @@ function Image({
onSelectImage,
onSelectURL,
onUploadError,
containerRef
containerRef,
clientId
}) {
const captionRef = Object(external_wp_element_["useRef"])();
const prevUrl = Object(external_wp_compose_["usePrevious"])(url);
const {
block,
currentId,
getBlock
} = Object(external_wp_data_["useSelect"])(external_wp_blockEditor_["store"]);
const {
image,
multiImageSelection
} = Object(external_wp_data_["useSelect"])(select => {
@ -4696,16 +4700,12 @@ function Image({
} = select(external_wp_coreData_["store"]);
const {
getMultiSelectedBlockClientIds,
getBlockName,
getSelectedBlock,
getSelectedBlockClientId
getBlockName
} = select(external_wp_blockEditor_["store"]);
const multiSelectedClientIds = getMultiSelectedBlockClientIds();
return {
block: getSelectedBlock(),
currentId: getSelectedBlockClientId(),
image: id && isSelected ? getMedia(id) : null,
multiImageSelection: multiSelectedClientIds.length && multiSelectedClientIds.every(clientId => getBlockName(clientId) === 'core/image')
multiImageSelection: multiSelectedClientIds.length && multiSelectedClientIds.every(_clientId => getBlockName(_clientId) === 'core/image')
};
}, [id, isSelected]);
const {
@ -4867,6 +4867,11 @@ function Image({
}, [isSelected]);
const canEditImage = id && naturalWidth && naturalHeight && imageEditing;
const allowCrop = !multiImageSelection && canEditImage && !isEditingImage;
function switchToCover() {
replaceBlocks(clientId, Object(external_wp_blocks_["switchToBlockType"])(getBlock(clientId), 'core/cover'));
}
const controls = Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
group: "block"
}, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockAlignmentControl"], {
@ -4892,7 +4897,7 @@ function Image({
}), !multiImageSelection && coverBlockExists && Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarButton"], {
icon: overlay_text,
label: Object(external_wp_i18n_["__"])('Add text over image'),
onClick: () => replaceBlocks(currentId, Object(external_wp_blocks_["switchToBlockType"])(block, 'core/cover'))
onClick: switchToCover
})), !multiImageSelection && !isEditingImage && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
group: "other"
}, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["MediaReplaceFlow"], {
@ -5147,7 +5152,8 @@ function ImageEdit({
noticeUI,
insertBlocksAfter,
noticeOperations,
onReplace
onReplace,
clientId
}) {
const {
url = '',
@ -5362,7 +5368,8 @@ function ImageEdit({
onSelectImage: onSelectImage,
onSelectURL: onSelectURL,
onUploadError: onUploadError,
containerRef: ref
containerRef: ref,
clientId: clientId
}), !url && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
group: "block"
}, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockAlignmentControl"], {
@ -13964,20 +13971,24 @@ const cover_transforms_transforms = {
id,
anchor,
style
}) => Object(external_wp_blocks_["createBlock"])('core/cover', {
url,
align,
id,
anchor,
style: {
color: {
duotone: style.color.duotone
}) => {
var _style$color;
return Object(external_wp_blocks_["createBlock"])('core/cover', {
url,
align,
id,
anchor,
style: {
color: {
duotone: style === null || style === void 0 ? void 0 : (_style$color = style.color) === null || _style$color === void 0 ? void 0 : _style$color.duotone
}
}
}
}, [Object(external_wp_blocks_["createBlock"])('core/paragraph', {
content: caption,
fontSize: 'large'
})])
}, [Object(external_wp_blocks_["createBlock"])('core/paragraph', {
content: caption,
fontSize: 'large'
})]);
}
}, {
type: 'block',
blocks: ['core/video'],
@ -14005,7 +14016,7 @@ const cover_transforms_transforms = {
gradient,
style
}) => {
var _style$color, _style$color2;
var _style$color2, _style$color3;
/*
* Make this transformation available only if the Group has background
@ -14014,7 +14025,7 @@ const cover_transforms_transforms = {
* This helps avoid arbitrary decisions about the Cover block's background
* and user confusion about the existence of previous content.
*/
return backgroundColor || (style === null || style === void 0 ? void 0 : (_style$color = style.color) === null || _style$color === void 0 ? void 0 : _style$color.background) || (style === null || style === void 0 ? void 0 : (_style$color2 = style.color) === null || _style$color2 === void 0 ? void 0 : _style$color2.gradient) || gradient;
return backgroundColor || (style === null || style === void 0 ? void 0 : (_style$color2 = style.color) === null || _style$color2 === void 0 ? void 0 : _style$color2.background) || (style === null || style === void 0 ? void 0 : (_style$color3 = style.color) === null || _style$color3 === void 0 ? void 0 : _style$color3.gradient) || gradient;
},
transform: ({
align,
@ -14023,15 +14034,15 @@ const cover_transforms_transforms = {
gradient,
style
}, innerBlocks) => {
var _style$color3, _style$color4;
var _style$color4, _style$color5;
return Object(external_wp_blocks_["createBlock"])('core/cover', {
align,
anchor,
overlayColor: backgroundColor,
customOverlayColor: style === null || style === void 0 ? void 0 : (_style$color3 = style.color) === null || _style$color3 === void 0 ? void 0 : _style$color3.background,
customOverlayColor: style === null || style === void 0 ? void 0 : (_style$color4 = style.color) === null || _style$color4 === void 0 ? void 0 : _style$color4.background,
gradient,
customGradient: style === null || style === void 0 ? void 0 : (_style$color4 = style.color) === null || _style$color4 === void 0 ? void 0 : _style$color4.gradient
customGradient: style === null || style === void 0 ? void 0 : (_style$color5 = style.color) === null || _style$color5 === void 0 ? void 0 : _style$color5.gradient
}, innerBlocks);
}
}],
@ -14061,18 +14072,22 @@ const cover_transforms_transforms = {
id,
anchor,
style
}) => Object(external_wp_blocks_["createBlock"])('core/image', {
caption: title,
url,
align,
id,
anchor,
style: {
color: {
duotone: style.color.duotone
}) => {
var _style$color6;
return Object(external_wp_blocks_["createBlock"])('core/image', {
caption: title,
url,
align,
id,
anchor,
style: {
color: {
duotone: style === null || style === void 0 ? void 0 : (_style$color6 = style.color) === null || _style$color6 === void 0 ? void 0 : _style$color6.duotone
}
}
}
})
});
}
}, {
type: 'block',
blocks: ['core/video'],
@ -17995,22 +18010,8 @@ const list = Object(external_wp_element_["createElement"])(external_wp_primitive
}));
/* harmony default export */ var library_list = (list);
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/grid.js
/**
* WordPress dependencies
*/
const grid = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",
fillRule: "evenodd",
clipRule: "evenodd"
}));
/* harmony default export */ var library_grid = (grid);
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/grid.js
var grid = __webpack_require__("b2RC");
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/constants.js
const MIN_EXCERPT_LENGTH = 10;
@ -18194,6 +18195,7 @@ function LatestPostsEdit({
isStillMounted.current = false;
};
}, []);
const hasPosts = !!(latestPosts !== null && latestPosts !== void 0 && latestPosts.length);
const inspectorControls = Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InspectorControls"], null, Object(external_wp_element_["createElement"])(external_wp_components_["PanelBody"], {
title: Object(external_wp_i18n_["__"])('Post content settings')
}, Object(external_wp_element_["createElement"])(external_wp_components_["ToggleControl"], {
@ -18327,7 +18329,6 @@ function LatestPostsEdit({
[`columns-${columns}`]: postLayout === 'grid'
})
});
const hasPosts = Array.isArray(latestPosts) && latestPosts.length;
if (!hasPosts) {
return Object(external_wp_element_["createElement"])("div", blockProps, inspectorControls, Object(external_wp_element_["createElement"])(external_wp_components_["Placeholder"], {
@ -18346,7 +18347,7 @@ function LatestPostsEdit({
}),
isActive: postLayout === 'list'
}, {
icon: library_grid,
icon: grid["a" /* default */],
title: Object(external_wp_i18n_["__"])('Grid view'),
onClick: () => setAttributes({
postLayout: 'grid'
@ -19139,17 +19140,49 @@ function Form({
function Preview({
idBase,
instance,
isVisible
}) {
const [iframeHeight, setIframeHeight] = Object(external_wp_element_["useState"])(null);
const [iframeHeight, setIframeHeight] = Object(external_wp_element_["useState"])(); // Resize the iframe on either the load event, or when the iframe becomes visible.
const ref = Object(external_wp_compose_["useRefEffect"])(iframe => {
function onChange() {
var _iframe$contentDocume, _iframe$contentDocume2;
const boundingRect = iframe === null || iframe === void 0 ? void 0 : (_iframe$contentDocume = iframe.contentDocument) === null || _iframe$contentDocume === void 0 ? void 0 : (_iframe$contentDocume2 = _iframe$contentDocume.body) === null || _iframe$contentDocume2 === void 0 ? void 0 : _iframe$contentDocume2.getBoundingClientRect();
if (boundingRect) {
// Include `top` in the height calculation to avoid the bottom
// of widget previews being cut-off. Most widgets have a
// heading at the top that has top margin, and the `height`
// alone doesn't take that margin into account.
setIframeHeight(boundingRect.top + boundingRect.height);
}
}
const {
IntersectionObserver
} = iframe.ownerDocument.defaultView; // Observe for intersections that might cause a change in the height of
// the iframe, e.g. a Widget Area becoming expanded.
const intersectionObserver = new IntersectionObserver(onChange, {
threshold: 1
});
intersectionObserver.observe(iframe);
iframe.addEventListener('load', onChange);
return () => {
iframe.removeEventListener('load', onChange);
};
}, []);
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, isVisible && iframeHeight === null && Object(external_wp_element_["createElement"])(external_wp_components_["Placeholder"], null, Object(external_wp_element_["createElement"])(external_wp_components_["Spinner"], null)), Object(external_wp_element_["createElement"])("div", {
className: classnames_default()('wp-block-legacy-widget__edit-preview', {
'is-offscreen': !isVisible || iframeHeight === null
})
}, Object(external_wp_element_["createElement"])(external_wp_components_["Disabled"], null, Object(external_wp_element_["createElement"])("iframe", {
ref: ref,
className: "wp-block-legacy-widget__edit-preview-iframe",
title: Object(external_wp_i18n_["__"])('Legacy Widget Preview') // TODO: This chokes when the query param is too big.
// Ideally, we'd render a <ServerSideRender>. Maybe by
@ -19162,10 +19195,7 @@ function Preview({
instance
}
}),
height: iframeHeight !== null && iframeHeight !== void 0 ? iframeHeight : 100,
onLoad: event => {
setIframeHeight(event.target.contentDocument.body.scrollHeight);
}
height: iframeHeight || 100
}))));
}
@ -20339,7 +20369,8 @@ const list_metadata = {
color: {
gradients: true
},
__unstablePasteTextInline: true
__unstablePasteTextInline: true,
__experimentalSelector: "ol,ul"
},
editorStyle: "wp-block-list-editor",
style: "wp-block-list"
@ -22205,7 +22236,7 @@ function RSSEdit({
}),
isActive: blockLayout === 'list'
}, {
icon: library_grid,
icon: grid["a" /* default */],
title: Object(external_wp_i18n_["__"])('Grid view'),
onClick: () => setAttributes({
blockLayout: 'grid'
@ -24328,50 +24359,14 @@ const table_deprecated_deprecated = [// Deprecation migrating table block to use
}];
/* harmony default export */ var table_deprecated = (table_deprecated_deprecated);
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-left.js
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-left.js
var align_left = __webpack_require__("fPbg");
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-center.js
var align_center = __webpack_require__("plpT");
/**
* WordPress dependencies
*/
const alignLeft = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
d: "M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"
}));
/* harmony default export */ var align_left = (alignLeft);
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-center.js
/**
* WordPress dependencies
*/
const alignCenter = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
d: "M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"
}));
/* harmony default export */ var align_center = (alignCenter);
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-right.js
/**
* WordPress dependencies
*/
const alignRight = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
d: "M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"
}));
/* harmony default export */ var align_right = (alignRight);
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-right.js
var align_right = __webpack_require__("ziDm");
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-row-before.js
@ -24805,15 +24800,15 @@ function isEmptyRow(row) {
const ALIGNMENT_CONTROLS = [{
icon: align_left,
icon: align_left["a" /* default */],
title: Object(external_wp_i18n_["__"])('Align column left'),
align: 'left'
}, {
icon: align_center,
icon: align_center["a" /* default */],
title: Object(external_wp_i18n_["__"])('Align column center'),
align: 'center'
}, {
icon: align_right,
icon: align_right["a" /* default */],
title: Object(external_wp_i18n_["__"])('Align column right'),
align: 'right'
}];
@ -26144,20 +26139,8 @@ const VideoSettings = ({
/* harmony default export */ var edit_common_settings = (VideoSettings);
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/media.js
/**
* WordPress dependencies
*/
const media_media = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
d: "M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"
}));
/* harmony default export */ var library_media = (media_media);
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/media.js
var library_media = __webpack_require__("rH4q");
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/tracks-editor.js
@ -26394,7 +26377,7 @@ function TracksEditor({
render: ({
open
}) => Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
icon: library_media,
icon: library_media["a" /* default */],
onClick: open
}, Object(external_wp_i18n_["__"])('Open Media Library'))
}), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["MediaUploadCheck"], null, Object(external_wp_element_["createElement"])(external_wp_components_["FormFileUpload"], {
@ -29229,34 +29212,26 @@ function LogoEdit({
const {
mediaItemData,
siteLogo,
url,
stylesheet
url
} = Object(external_wp_data_["useSelect"])(select => {
const siteSettings = select(external_wp_coreData_["store"]).getEditedEntityRecord('root', 'site');
const themeModOptionName = `theme_mods_${siteSettings.stylesheet}`;
siteSettings[themeModOptionName] = siteSettings[themeModOptionName] || {};
const mediaItem = siteSettings[themeModOptionName].custom_logo ? select(external_wp_coreData_["store"]).getEntityRecord('root', 'media', siteSettings[themeModOptionName].custom_logo) : null;
const mediaItem = siteSettings.site_logo ? select(external_wp_coreData_["store"]).getEntityRecord('root', 'media', siteSettings.site_logo) : null;
return {
mediaItemData: mediaItem && {
url: mediaItem.source_url,
alt: mediaItem.alt_text
},
siteLogo: siteSettings[themeModOptionName].custom_logo,
url: siteSettings.url,
stylesheet: siteSettings.stylesheet
siteLogo: siteSettings.site_logo,
url: siteSettings.url
};
}, []);
const {
editEntityRecord
} = Object(external_wp_data_["useDispatch"])(external_wp_coreData_["store"]);
const setLogo = newValue => {
const settingsVal = {};
settingsVal[`theme_mods_${stylesheet}`] = {
custom_logo: newValue
};
editEntityRecord('root', 'site', undefined, settingsVal);
};
const setLogo = newValue => editEntityRecord('root', 'site', undefined, {
site_logo: newValue
});
let alt = null;
@ -29774,7 +29749,7 @@ function QueryToolbar({
}),
isActive: (displayLayout === null || displayLayout === void 0 ? void 0 : displayLayout.type) === 'list'
}, {
icon: library_grid,
icon: grid["a" /* default */],
title: Object(external_wp_i18n_["__"])('Grid view'),
onClick: () => setDisplayLayout({
type: 'flex',
@ -34119,6 +34094,33 @@ else {}
(function() { module.exports = window["wp"]["blockEditor"]; }());
/***/ }),
/***/ "b2RC":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
/**
* WordPress dependencies
*/
const grid = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",
fillRule: "evenodd",
clipRule: "evenodd"
}));
/* harmony default export */ __webpack_exports__["a"] = (grid);
/***/ }),
/***/ "bWcr":
@ -34279,6 +34281,31 @@ function isEventSupported(eventNameSuffix, capture) {
module.exports = isEventSupported;
/***/ }),
/***/ "fPbg":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
/**
* WordPress dependencies
*/
const alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
d: "M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"
}));
/* harmony default export */ __webpack_exports__["a"] = (alignLeft);
/***/ }),
/***/ "g56x":
@ -34718,6 +34745,31 @@ const button = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle
(function() { module.exports = window["wp"]["notices"]; }());
/***/ }),
/***/ "plpT":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
/**
* WordPress dependencies
*/
const alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
d: "M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"
}));
/* harmony default export */ __webpack_exports__["a"] = (alignCenter);
/***/ }),
/***/ "qRz9":
@ -34725,6 +34777,31 @@ const button = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle
(function() { module.exports = window["wp"]["richText"]; }());
/***/ }),
/***/ "rH4q":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
/**
* WordPress dependencies
*/
const media = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
d: "M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"
}));
/* harmony default export */ __webpack_exports__["a"] = (media);
/***/ }),
/***/ "tI+e":
@ -34786,6 +34863,31 @@ function _extends() {
(function() { module.exports = window["wp"]["apiFetch"]; }());
/***/ }),
/***/ "ziDm":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
/**
* WordPress dependencies
*/
const alignRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
d: "M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"
}));
/* harmony default export */ __webpack_exports__["a"] = (alignRight);
/***/ })
/******/ });

File diff suppressed because one or more lines are too long

View File

@ -540,7 +540,7 @@ function getBlockStyles(state, name) {
* @return {(WPBlockVariation[]|void)} Block variations.
*/
function getBlockVariations(state, blockName, scope) {
const getBlockVariations = Object(rememo["a" /* default */])((state, blockName, scope) => {
const variations = state.blockVariations[blockName];
if (!variations || !scope) {
@ -548,10 +548,11 @@ function getBlockVariations(state, blockName, scope) {
}
return variations.filter(variation => {
// For backward compatibility reasons, variation's scope defaults to `block` and `inserter` when not set.
// For backward compatibility reasons, variation's scope defaults to
// `block` and `inserter` when not set.
return (variation.scope || ['block', 'inserter']).includes(scope);
});
}
}, (state, blockName) => [state.blockVariations[blockName]]);
/**
* Returns the active block variation for a given block based on its attributes.
* Variations are determined by their `isActive` property.

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -142,6 +142,31 @@ const link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme
/* harmony default export */ __webpack_exports__["a"] = (link);
/***/ }),
/***/ "Crq9":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
/**
* WordPress dependencies
*/
const formatStrikethrough = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
d: "M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"
}));
/* harmony default export */ __webpack_exports__["a"] = (formatStrikethrough);
/***/ }),
/***/ "GRId":
@ -1110,20 +1135,8 @@ const link_link = {
edit: link_Edit
};
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-strikethrough.js
/**
* WordPress dependencies
*/
const formatStrikethrough = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
d: "M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"
}));
/* harmony default export */ var format_strikethrough = (formatStrikethrough);
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/format-strikethrough.js
var format_strikethrough = __webpack_require__("Crq9");
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/strikethrough/index.js
@ -1159,7 +1172,7 @@ const strikethrough = {
}
return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichTextToolbarButton"], {
icon: format_strikethrough,
icon: format_strikethrough["a" /* default */],
title: strikethrough_title,
onClick: onClick,
isActive: isActive

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.8-alpha-51050';
$wp_version = '5.8-alpha-51051';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.