Update @wordpress packages for Beta 4

Update packages with these bug fixes from Gutenberg:

Navigation: Remove hardcoded typography units
Handle parsed request
Navigation: Refactor modal padding to be simpler and more flexible
Show notice on save in site editor
Add aria-pressed true/false to Toggle navigation button based on state
Components FontSizePicker: Use incremental sequence of numbers
Custom keys from theme.json: fix kebabCase conversion
Template Part: Fix 'isMissing' condition check
Multi-Entity Saving: Decode HTML entities in item titles
Font sizes: update default values
Query Loop: Add useBlockPreview, fix Query Loop wide alignment
Only add dialog role to navigation when modal is open
Fix navigation appender
Show a UI warning when user does not have permission to update/edit a Navigation block
Block editor: Fix Enter handling for nested blocks
Update: Use subtitle styles for the palette names
Allow publishing a post while not saving changes to non-post entities
Update: Block top level useSetting paths
Fix Site Logo block alignment issues
Editor: when Toggle navigation receives state false, focus
ToolsPanel: Allow items to register when panelId is null
Block Support Panels - Make block support tools panels compatible
Gallery: Fix block registration hook priority
Navigation: Fix page list issues in overlay
Ensure the overlay menu works when inserting navigation block pattern
Restrict Navigation permissions and show UI warning if cannot create
Add block gap support for group blocks
Try cascading nav styles through classnames
Fix: Impossible to edit theme and default colors
Fix: Color editor discards colors with default name
Site Editor: Fix template author avatar check
Template Editing Mode: Fix options dropdown
Avoid undo issues when reset parent blocks for controlled blocks
Add comment-form and comment-list to html5 theme support and fix comment layout

Props hellofromtonya.
See #54487.

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


git-svn-id: http://core.svn.wordpress.org/trunk@51994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
isabel_brison 2021-12-21 07:02:34 +00:00
parent af941fc10c
commit 4939393799
79 changed files with 1376 additions and 1421 deletions

File diff suppressed because one or more lines are too long

View File

@ -104,9 +104,6 @@ function wp_get_layout_style( $selector, $layout, $has_block_gap_support = false
$style .= 'align-items: center;'; $style .= 'align-items: center;';
if ( 'horizontal' === $layout_orientation ) { if ( 'horizontal' === $layout_orientation ) {
$style .= 'align-items: center;'; $style .= 'align-items: center;';
if ( ! empty( $layout['setCascadingProperties'] ) && $layout['setCascadingProperties'] ) {
$style .= '--layout-direction: row;';
}
/** /**
* Add this style only if is not empty for backwards compatibility, * Add this style only if is not empty for backwards compatibility,
* since we intend to convert blocks that had flex layout implemented * since we intend to convert blocks that had flex layout implemented
@ -114,27 +111,11 @@ function wp_get_layout_style( $selector, $layout, $has_block_gap_support = false
*/ */
if ( ! empty( $layout['justifyContent'] ) && array_key_exists( $layout['justifyContent'], $justify_content_options ) ) { if ( ! empty( $layout['justifyContent'] ) && array_key_exists( $layout['justifyContent'], $justify_content_options ) ) {
$style .= "justify-content: {$justify_content_options[ $layout['justifyContent'] ]};"; $style .= "justify-content: {$justify_content_options[ $layout['justifyContent'] ]};";
if ( ! empty( $layout['setCascadingProperties'] ) && $layout['setCascadingProperties'] ) {
// --layout-justification-setting allows children to inherit the value regardless or row or column direction.
$style .= "--layout-justification-setting: {$justify_content_options[ $layout['justifyContent'] ]};";
$style .= "--layout-wrap: $flex_wrap;";
$style .= "--layout-justify: {$justify_content_options[ $layout['justifyContent'] ]};";
$style .= '--layout-align: center;';
}
} }
} else { } else {
$style .= 'flex-direction: column;'; $style .= 'flex-direction: column;';
if ( ! empty( $layout['justifyContent'] ) && array_key_exists( $layout['justifyContent'], $justify_content_options ) ) { if ( ! empty( $layout['justifyContent'] ) && array_key_exists( $layout['justifyContent'], $justify_content_options ) ) {
$style .= "align-items: {$justify_content_options[ $layout['justifyContent'] ]};"; $style .= "align-items: {$justify_content_options[ $layout['justifyContent'] ]};";
if ( ! empty( $layout['setCascadingProperties'] ) && $layout['setCascadingProperties'] ) {
$style .= '--layout-direction: column;';
}
if ( ! empty( $layout['setCascadingProperties'] ) && $layout['setCascadingProperties'] ) {
// --layout-justification-setting allows children to inherit the value regardless or row or column direction.
$style .= "--layout-justification-setting: {$justify_content_options[ $layout['justifyContent'] ]};";
$style .= '--layout-justify: initial;';
$style .= "--layout-align: {$justify_content_options[ $layout['justifyContent'] ]};";
}
} }
} }
$style .= '}'; $style .= '}';

View File

@ -48,4 +48,4 @@ function register_block_core_gallery() {
); );
} }
add_action( 'init', 'register_block_core_gallery', 20 ); add_action( 'init', 'register_block_core_gallery' );

View File

@ -26,8 +26,10 @@
}, },
"spacing": { "spacing": {
"padding": true, "padding": true,
"blockGap": true,
"__experimentalDefaultControls": { "__experimentalDefaultControls": {
"padding": true "padding": true,
"blockGap": true
} }
}, },
"__experimentalBorder": { "__experimentalBorder": {

View File

@ -98,7 +98,7 @@ function block_core_navigation_link_build_css_font_sizes( $context ) {
$font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] ); $font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] );
} elseif ( $has_custom_font_size ) { } elseif ( $has_custom_font_size ) {
// Add the custom font size inline style. // Add the custom font size inline style.
$font_sizes['inline_styles'] = sprintf( 'font-size: %spx;', $context['style']['typography']['fontSize'] ); $font_sizes['inline_styles'] = sprintf( 'font-size: %s;', $context['style']['typography']['fontSize'] );
} }
return $font_sizes; return $font_sizes;

View File

@ -98,7 +98,7 @@ function block_core_navigation_submenu_build_css_font_sizes( $context ) {
$font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] ); $font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] );
} elseif ( $has_custom_font_size ) { } elseif ( $has_custom_font_size ) {
// Add the custom font size inline style. // Add the custom font size inline style.
$font_sizes['inline_styles'] = sprintf( 'font-size: %spx;', $context['style']['typography']['fontSize'] ); $font_sizes['inline_styles'] = sprintf( 'font-size: %s;', $context['style']['typography']['fontSize'] );
} }
return $font_sizes; return $font_sizes;

View File

@ -452,14 +452,24 @@ function render_block_core_navigation( $attributes, $content, $block ) {
} }
$layout_justification = array(
'left' => 'items-justified-left',
'right' => 'items-justified-right',
'center' => 'items-justified-center',
'space-between' => 'items-justified-space-between',
);
// Restore legacy classnames for submenu positioning. // Restore legacy classnames for submenu positioning.
$layout_class = ''; $layout_class = '';
if ( isset( $attributes['layout']['justifyContent'] ) ) { if ( isset( $attributes['layout']['justifyContent'] ) ) {
if ( 'right' === $attributes['layout']['justifyContent'] ) { $layout_class .= $layout_justification[ $attributes['layout']['justifyContent'] ];
$layout_class .= 'items-justified-right'; }
} elseif ( 'space-between' === $attributes['layout']['justifyContent'] ) { if ( isset( $attributes['layout']['orientation'] ) && 'vertical' === $attributes['layout']['orientation'] ) {
$layout_class .= 'items-justified-space-between'; $layout_class .= ' is-vertical';
} }
if ( isset( $attributes['layout']['flexWrap'] ) && 'nowrap' === $attributes['layout']['flexWrap'] ) {
$layout_class .= ' no-wrap';
} }
$colors = block_core_navigation_build_css_colors( $attributes ); $colors = block_core_navigation_build_css_colors( $attributes );
@ -528,10 +538,10 @@ function render_block_core_navigation( $attributes, $content, $block ) {
); );
$responsive_container_markup = sprintf( $responsive_container_markup = sprintf(
'<button aria-expanded="false" aria-haspopup="true" aria-label="%3$s" class="%6$s" data-micromodal-trigger="modal-%1$s"><svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img" aria-hidden="true" focusable="false"><rect x="4" y="7.5" width="16" height="1.5" /><rect x="4" y="15" width="16" height="1.5" /></svg></button> '<button aria-haspopup="true" aria-label="%3$s" class="%6$s" data-micromodal-trigger="modal-%1$s"><svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img" aria-hidden="true" focusable="false"><rect x="4" y="7.5" width="16" height="1.5" /><rect x="4" y="15" width="16" height="1.5" /></svg></button>
<div class="%5$s" style="%7$s" id="modal-%1$s"> <div class="%5$s" style="%7$s" id="modal-%1$s">
<div class="wp-block-navigation__responsive-close" tabindex="-1" data-micromodal-close> <div class="wp-block-navigation__responsive-close" tabindex="-1" data-micromodal-close>
<div class="wp-block-navigation__responsive-dialog" role="dialog" aria-modal="true" aria-labelledby="modal-%1$s-title" > <div class="wp-block-navigation__responsive-dialog" aria-label="%8$s">
<button aria-label="%4$s" data-micromodal-close class="wp-block-navigation__responsive-container-close"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" role="img" aria-hidden="true" focusable="false"><path d="M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"></path></svg></button> <button aria-label="%4$s" data-micromodal-close class="wp-block-navigation__responsive-container-close"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" role="img" aria-hidden="true" focusable="false"><path d="M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"></path></svg></button>
<div class="wp-block-navigation__responsive-container-content" id="modal-%1$s-content"> <div class="wp-block-navigation__responsive-container-content" id="modal-%1$s-content">
%2$s %2$s
@ -545,7 +555,8 @@ function render_block_core_navigation( $attributes, $content, $block ) {
__( 'Close menu' ), // Close button label. __( 'Close menu' ), // Close button label.
implode( ' ', $responsive_container_classes ), implode( ' ', $responsive_container_classes ),
implode( ' ', $open_button_classes ), implode( ' ', $open_button_classes ),
$colors['overlay_inline_styles'] $colors['overlay_inline_styles'],
__( 'Menu' )
); );
return sprintf( return sprintf(

View File

@ -114,8 +114,7 @@
"allowSwitching": false, "allowSwitching": false,
"allowInheriting": false, "allowInheriting": false,
"default": { "default": {
"type": "flex", "type": "flex"
"setCascadingProperties": true
} }
} }
}, },

View File

@ -140,6 +140,7 @@
.is-editing > .wp-block-navigation__submenu-container > .block-list-appender { .is-editing > .wp-block-navigation__submenu-container > .block-list-appender {
display: block; display: block;
position: static; position: static;
width: 100%;
} }
.wp-block-navigation__submenu-container .block-list-appender { .wp-block-navigation__submenu-container .block-list-appender {
@ -338,6 +339,7 @@
font-size: 13px; font-size: 13px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
gap: 6px; gap: 6px;
align-items: center;
height: 100%; height: 100%;
} }
.wp-block-navigation-placeholder__actions .components-dropdown, .wp-block-navigation-placeholder__actions .components-dropdown,

File diff suppressed because one or more lines are too long

View File

@ -140,6 +140,7 @@
.is-editing > .wp-block-navigation__submenu-container > .block-list-appender { .is-editing > .wp-block-navigation__submenu-container > .block-list-appender {
display: block; display: block;
position: static; position: static;
width: 100%;
} }
.wp-block-navigation__submenu-container .block-list-appender { .wp-block-navigation__submenu-container .block-list-appender {
@ -338,6 +339,7 @@
font-size: 13px; font-size: 13px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
gap: 6px; gap: 6px;
align-items: center;
height: 100%; height: 100%;
} }
.wp-block-navigation-placeholder__actions .components-dropdown, .wp-block-navigation-placeholder__actions .components-dropdown,

File diff suppressed because one or more lines are too long

View File

@ -76,6 +76,11 @@
*/ */
.wp-block-navigation { .wp-block-navigation {
position: relative; position: relative;
--navigation-layout-justification-setting: flex-start;
--navigation-layout-direction: row;
--navigation-layout-wrap: wrap;
--navigation-layout-justify: flex-start;
--navigation-layout-align: center;
} }
.wp-block-navigation ul { .wp-block-navigation ul {
margin-top: 0; margin-top: 0;
@ -137,6 +142,31 @@
width: inherit; width: inherit;
height: inherit; height: inherit;
} }
.wp-block-navigation.is-vertical {
--navigation-layout-direction: column;
--navigation-layout-justify: initial;
}
.wp-block-navigation.no-wrap {
--navigation-layout-wrap: nowrap;
}
.wp-block-navigation.items-justified-center {
--navigation-layout-justification-setting: center;
--navigation-layout-justify: center;
}
.wp-block-navigation.items-justified-center.is-vertical {
--navigation-layout-align: center;
}
.wp-block-navigation.items-justified-right {
--navigation-layout-justification-setting: flex-end;
--navigation-layout-justify: flex-end;
}
.wp-block-navigation.items-justified-right.is-vertical {
--navigation-layout-align: flex-end;
}
.wp-block-navigation.items-justified-space-between {
--navigation-layout-justification-setting: space-between;
--navigation-layout-justify: space-between;
}
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) { .wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) {
background-color: inherit; background-color: inherit;
@ -304,10 +334,10 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__container { .wp-block-navigation__container {
display: flex; display: flex;
flex-wrap: var(--layout-wrap, wrap); flex-wrap: var(--navigation-layout-wrap, wrap);
flex-direction: var(--layout-direction, initial); flex-direction: var(--navigation-layout-direction, initial);
justify-content: var(--layout-justify, initial); justify-content: var(--navigation-layout-justify, initial);
align-items: var(--layout-align, initial); align-items: var(--navigation-layout-align, initial);
list-style: none; list-style: none;
margin: 0; margin: 0;
padding-right: 0; padding-right: 0;
@ -334,10 +364,10 @@ button.wp-block-navigation-item__content {
} }
.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content { .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
display: flex; display: flex;
flex-wrap: var(--layout-wrap, wrap); flex-wrap: var(--navigation-layout-wrap, wrap);
flex-direction: var(--layout-direction, initial); flex-direction: var(--navigation-layout-direction, initial);
justify-content: var(--layout-justify, initial); justify-content: var(--navigation-layout-justify, initial);
align-items: var(--layout-align, initial); align-items: var(--navigation-layout-align, initial);
} }
.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) { .wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) {
color: inherit !important; color: inherit !important;
@ -346,17 +376,18 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__responsive-container.is-menu-open { .wp-block-navigation__responsive-container.is-menu-open {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-color: inherit;
padding: 2em;
overflow: auto; overflow: auto;
z-index: 100000; z-index: 100000;
padding: 72px 24px 24px 24px;
background-color: inherit;
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
padding-top: calc(2em + 24px);
overflow: visible;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: var(--layout-justification-setting, inherit); flex-wrap: nowrap;
overflow: auto; align-items: var(--navigation-layout-justification-setting, inherit);
padding: 0;
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list,
@ -376,17 +407,14 @@ button.wp-block-navigation-item__content {
min-width: 200px; min-width: 200px;
position: static; position: static;
border: none; border: none;
padding-right: 32px; padding-right: 2em;
padding-left: 32px; padding-left: 2em;
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
gap: var(--wp--style--block-gap, 2em); gap: var(--wp--style--block-gap, 2em);
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container .wp-block-navigation__container {
padding-top: var(--wp--style--block-gap, 2em); padding-top: var(--wp--style--block-gap, 2em);
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
@ -397,7 +425,7 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: var(--layout-justification-setting, initial); align-items: var(--navigation-layout-justification-setting, initial);
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
@ -460,8 +488,8 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__responsive-container-close { .wp-block-navigation__responsive-container-close {
position: absolute; position: absolute;
top: 24px; top: 0;
left: 24px; left: 0;
z-index: 2; z-index: 2;
} }
@ -472,8 +500,11 @@ button.wp-block-navigation-item__content {
.is-menu-open .wp-block-navigation__responsive-close, .is-menu-open .wp-block-navigation__responsive-close,
.is-menu-open .wp-block-navigation__responsive-dialog, .is-menu-open .wp-block-navigation__responsive-dialog,
.is-menu-open .wp-block-navigation__responsive-container-content { .is-menu-open .wp-block-navigation__responsive-container-content {
width: 100%; box-sizing: border-box;
height: 100%; }
.wp-block-navigation__responsive-dialog {
position: relative;
} }
html.has-modal-open { html.has-modal-open {

File diff suppressed because one or more lines are too long

View File

@ -76,6 +76,11 @@
*/ */
.wp-block-navigation { .wp-block-navigation {
position: relative; position: relative;
--navigation-layout-justification-setting: flex-start;
--navigation-layout-direction: row;
--navigation-layout-wrap: wrap;
--navigation-layout-justify: flex-start;
--navigation-layout-align: center;
} }
.wp-block-navigation ul { .wp-block-navigation ul {
margin-top: 0; margin-top: 0;
@ -137,6 +142,31 @@
width: inherit; width: inherit;
height: inherit; height: inherit;
} }
.wp-block-navigation.is-vertical {
--navigation-layout-direction: column;
--navigation-layout-justify: initial;
}
.wp-block-navigation.no-wrap {
--navigation-layout-wrap: nowrap;
}
.wp-block-navigation.items-justified-center {
--navigation-layout-justification-setting: center;
--navigation-layout-justify: center;
}
.wp-block-navigation.items-justified-center.is-vertical {
--navigation-layout-align: center;
}
.wp-block-navigation.items-justified-right {
--navigation-layout-justification-setting: flex-end;
--navigation-layout-justify: flex-end;
}
.wp-block-navigation.items-justified-right.is-vertical {
--navigation-layout-align: flex-end;
}
.wp-block-navigation.items-justified-space-between {
--navigation-layout-justification-setting: space-between;
--navigation-layout-justify: space-between;
}
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) { .wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) {
background-color: inherit; background-color: inherit;
@ -304,10 +334,10 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__container { .wp-block-navigation__container {
display: flex; display: flex;
flex-wrap: var(--layout-wrap, wrap); flex-wrap: var(--navigation-layout-wrap, wrap);
flex-direction: var(--layout-direction, initial); flex-direction: var(--navigation-layout-direction, initial);
justify-content: var(--layout-justify, initial); justify-content: var(--navigation-layout-justify, initial);
align-items: var(--layout-align, initial); align-items: var(--navigation-layout-align, initial);
list-style: none; list-style: none;
margin: 0; margin: 0;
padding-left: 0; padding-left: 0;
@ -334,10 +364,10 @@ button.wp-block-navigation-item__content {
} }
.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content { .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
display: flex; display: flex;
flex-wrap: var(--layout-wrap, wrap); flex-wrap: var(--navigation-layout-wrap, wrap);
flex-direction: var(--layout-direction, initial); flex-direction: var(--navigation-layout-direction, initial);
justify-content: var(--layout-justify, initial); justify-content: var(--navigation-layout-justify, initial);
align-items: var(--layout-align, initial); align-items: var(--navigation-layout-align, initial);
} }
.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) { .wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) {
color: inherit !important; color: inherit !important;
@ -346,17 +376,18 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__responsive-container.is-menu-open { .wp-block-navigation__responsive-container.is-menu-open {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-color: inherit;
padding: 2em;
overflow: auto; overflow: auto;
z-index: 100000; z-index: 100000;
padding: 72px 24px 24px 24px;
background-color: inherit;
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
padding-top: calc(2em + 24px);
overflow: visible;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: var(--layout-justification-setting, inherit); flex-wrap: nowrap;
overflow: auto; align-items: var(--navigation-layout-justification-setting, inherit);
padding: 0;
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list,
@ -376,17 +407,14 @@ button.wp-block-navigation-item__content {
min-width: 200px; min-width: 200px;
position: static; position: static;
border: none; border: none;
padding-left: 32px; padding-left: 2em;
padding-right: 32px; padding-right: 2em;
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
gap: var(--wp--style--block-gap, 2em); gap: var(--wp--style--block-gap, 2em);
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container .wp-block-navigation__container {
padding-top: var(--wp--style--block-gap, 2em); padding-top: var(--wp--style--block-gap, 2em);
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
@ -397,7 +425,7 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: var(--layout-justification-setting, initial); align-items: var(--navigation-layout-justification-setting, initial);
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
@ -460,8 +488,8 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__responsive-container-close { .wp-block-navigation__responsive-container-close {
position: absolute; position: absolute;
top: 24px; top: 0;
right: 24px; right: 0;
z-index: 2; z-index: 2;
} }
@ -472,8 +500,11 @@ button.wp-block-navigation-item__content {
.is-menu-open .wp-block-navigation__responsive-close, .is-menu-open .wp-block-navigation__responsive-close,
.is-menu-open .wp-block-navigation__responsive-dialog, .is-menu-open .wp-block-navigation__responsive-dialog,
.is-menu-open .wp-block-navigation__responsive-container-content { .is-menu-open .wp-block-navigation__responsive-container-content {
width: 100%; box-sizing: border-box;
height: 100%; }
.wp-block-navigation__responsive-dialog {
position: relative;
} }
html.has-modal-open { html.has-modal-open {

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => '9d620afb4e0a01af65cf6ea7a2578d8f'); <?php return array('dependencies' => array(), 'version' => '766e18bbb8dc00dda3002c46d0f2ff37');

View File

@ -103,14 +103,19 @@ function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable
// Responsive navigation toggle. // Responsive navigation toggle.
function navigationToggleModal(modal) { function navigationToggleModal(modal) {
const triggerButton = document.querySelector(`button[data-micromodal-trigger="${modal.id}"]`); const dialogContainer = document.querySelector(`.wp-block-navigation__responsive-dialog`);
const closeButton = modal.querySelector('button[data-micromodal-close]'); // Use aria-hidden to determine the status of the modal, as this attribute is
// managed by micromodal.
const isHidden = 'true' === modal.getAttribute('aria-hidden'); const isHidden = 'true' === modal.getAttribute('aria-hidden');
triggerButton.setAttribute('aria-expanded', !isHidden); modal.classList.toggle('has-modal-open', !isHidden);
closeButton.setAttribute('aria-expanded', !isHidden); dialogContainer.toggleAttribute('aria-modal', !isHidden);
modal.classList.toggle('has-modal-open', !isHidden); // Add a class to indicate the modal is open.
if (isHidden) {
dialogContainer.removeAttribute('role');
dialogContainer.removeAttribute('aria-modal');
} else {
dialogContainer.setAttribute('role', 'dialog');
dialogContainer.setAttribute('aria-modal', 'true');
} // Add a class to indicate the modal is open.
const htmlElement = document.documentElement; const htmlElement = document.documentElement;
htmlElement.classList.toggle('has-modal-open'); htmlElement.classList.toggle('has-modal-open');

View File

@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => 'd5ab04a497b4f1465f1f0060b6b71ae3'); <?php return array('dependencies' => array(), 'version' => 'fb15026c86328593809ad0e2e073f64f');

File diff suppressed because one or more lines are too long

View File

@ -119,7 +119,7 @@ function block_core_page_list_build_css_font_sizes( $context ) {
$font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] ); $font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] );
} elseif ( $has_custom_font_size ) { } elseif ( $has_custom_font_size ) {
// Add the custom font size inline style. // Add the custom font size inline style.
$font_sizes['inline_styles'] = sprintf( 'font-size: %spx;', $context['style']['typography']['fontSize'] ); $font_sizes['inline_styles'] = sprintf( 'font-size: %s;', $context['style']['typography']['fontSize'] );
} }
return $font_sizes; return $font_sizes;

View File

@ -98,7 +98,6 @@
} }
.wp-block-post-comments .comment-author { .wp-block-post-comments .comment-author {
line-height: 1.5; line-height: 1.5;
margin-right: -3.25em;
} }
.wp-block-post-comments .comment-author .avatar { .wp-block-post-comments .comment-author .avatar {
border-radius: 1.5em; border-radius: 1.5em;

View File

@ -1 +1 @@
.wp-block-post-comments>h3:first-of-type{margin-top:0}.wp-block-post-comments .commentlist{list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-right:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5;margin-right:-3.25em}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{line-height:1.5;margin-right:-3.25em}.wp-block-post-comments .comment-body .commentmetadata{font-size:.75em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{display:block;box-sizing:border-box;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .reply{font-size:.75em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-size:1em;font-family:inherit}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}.wp-block-post-comments input[type=submit]{border:none} .wp-block-post-comments>h3:first-of-type{margin-top:0}.wp-block-post-comments .commentlist{list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-right:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{line-height:1.5;margin-right:-3.25em}.wp-block-post-comments .comment-body .commentmetadata{font-size:.75em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{display:block;box-sizing:border-box;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .reply{font-size:.75em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-size:1em;font-family:inherit}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}.wp-block-post-comments input[type=submit]{border:none}

View File

@ -98,7 +98,6 @@
} }
.wp-block-post-comments .comment-author { .wp-block-post-comments .comment-author {
line-height: 1.5; line-height: 1.5;
margin-left: -3.25em;
} }
.wp-block-post-comments .comment-author .avatar { .wp-block-post-comments .comment-author .avatar {
border-radius: 1.5em; border-radius: 1.5em;

View File

@ -1 +1 @@
.wp-block-post-comments>h3:first-of-type{margin-top:0}.wp-block-post-comments .commentlist{list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5;margin-left:-3.25em}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{line-height:1.5;margin-left:-3.25em}.wp-block-post-comments .comment-body .commentmetadata{font-size:.75em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{display:block;box-sizing:border-box;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .reply{font-size:.75em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-size:1em;font-family:inherit}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}.wp-block-post-comments input[type=submit]{border:none} .wp-block-post-comments>h3:first-of-type{margin-top:0}.wp-block-post-comments .commentlist{list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{line-height:1.5;margin-left:-3.25em}.wp-block-post-comments .comment-body .commentmetadata{font-size:.75em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{display:block;box-sizing:border-box;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .reply{font-size:.75em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-size:1em;font-family:inherit}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}.wp-block-post-comments input[type=submit]{border:none}

View File

@ -48,10 +48,6 @@ function render_block_core_site_logo( $attributes ) {
$classnames[] = $attributes['className']; $classnames[] = $attributes['className'];
} }
if ( ! empty( $attributes['align'] ) && in_array( $attributes['align'], array( 'center', 'left', 'right' ), true ) ) {
$classnames[] = "align{$attributes['align']}";
}
if ( empty( $attributes['width'] ) ) { if ( empty( $attributes['width'] ) ) {
$classnames[] = 'is-default-size'; $classnames[] = 'is-default-size';
} }

View File

@ -6,9 +6,6 @@
"description": "Display a graphic to represent this site. Update the block, and the changes apply everywhere its used. This is different than the site icon, which is the smaller image visible in your dashboard, browser tabs, etc used to help others recognize this site.", "description": "Display a graphic to represent this site. Update the block, and the changes apply everywhere its used. This is different than the site icon, which is the smaller image visible in your dashboard, browser tabs, etc used to help others recognize this site.",
"textdomain": "default", "textdomain": "default",
"attributes": { "attributes": {
"align": {
"type": "string"
},
"width": { "width": {
"type": "number" "type": "number"
}, },

View File

@ -75,24 +75,14 @@
* Reset the WP Admin page styles for Gutenberg-like pages. * Reset the WP Admin page styles for Gutenberg-like pages.
*/ */
.wp-block[data-align=center] > .wp-block-site-logo { .wp-block[data-align=center] > .wp-block-site-logo {
display: table;
margin-right: auto; margin-right: auto;
margin-left: auto; margin-left: auto;
text-align: center;
} }
.wp-block-site-logo a { .wp-block-site-logo a {
pointer-events: none; pointer-events: none;
} }
.wp-block-site-logo:not(.is-default-size) {
display: table;
}
.wp-block-site-logo.is-default-size {
width: 120px;
}
.wp-block-site-logo.is-default-size img {
height: auto;
width: 100%;
}
.wp-block-site-logo .custom-logo-link { .wp-block-site-logo .custom-logo-link {
cursor: inherit; cursor: inherit;
} }

View File

@ -1 +1 @@
.wp-block[data-align=center]>.wp-block-site-logo{margin-right:auto;margin-left:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{height:auto;width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder,.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:120px;width:120px}.wp-block-site-logo.wp-block-site-logo .components-placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;min-height:48px;min-width:48px;height:100%;width:100%;color:currentColor;background:transparent}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;left:4px;bottom:4px;right:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;border:1px dashed;opacity:.4;pointer-events:none;border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__fieldset{width:auto}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:#fff}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__illustration{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.4}.wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible} .wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-right:auto;margin-left:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder,.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:120px;width:120px}.wp-block-site-logo.wp-block-site-logo .components-placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;min-height:48px;min-width:48px;height:100%;width:100%;color:currentColor;background:transparent}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;left:4px;bottom:4px;right:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;border:1px dashed;opacity:.4;pointer-events:none;border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__fieldset{width:auto}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:#fff}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__illustration{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.4}.wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible}

View File

@ -75,24 +75,14 @@
* Reset the WP Admin page styles for Gutenberg-like pages. * Reset the WP Admin page styles for Gutenberg-like pages.
*/ */
.wp-block[data-align=center] > .wp-block-site-logo { .wp-block[data-align=center] > .wp-block-site-logo {
display: table;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
text-align: center;
} }
.wp-block-site-logo a { .wp-block-site-logo a {
pointer-events: none; pointer-events: none;
} }
.wp-block-site-logo:not(.is-default-size) {
display: table;
}
.wp-block-site-logo.is-default-size {
width: 120px;
}
.wp-block-site-logo.is-default-size img {
height: auto;
width: 100%;
}
.wp-block-site-logo .custom-logo-link { .wp-block-site-logo .custom-logo-link {
cursor: inherit; cursor: inherit;
} }

View File

@ -1 +1 @@
.wp-block[data-align=center]>.wp-block-site-logo{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{height:auto;width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder,.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:120px;width:120px}.wp-block-site-logo.wp-block-site-logo .components-placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;min-height:48px;min-width:48px;height:100%;width:100%;color:currentColor;background:transparent}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;right:4px;bottom:4px;left:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border:1px dashed;opacity:.4;pointer-events:none;border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__fieldset{width:auto}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:#fff}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__illustration{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.4}.wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible} .wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder,.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:120px;width:120px}.wp-block-site-logo.wp-block-site-logo .components-placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;min-height:48px;min-width:48px;height:100%;width:100%;color:currentColor;background:transparent}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;right:4px;bottom:4px;left:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border:1px dashed;opacity:.4;pointer-events:none;border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__fieldset{width:auto}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:#fff}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__illustration{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.4}.wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible}

View File

@ -89,7 +89,9 @@
border-radius: inherit; border-radius: inherit;
} }
.wp-block-site-logo.aligncenter { .wp-block-site-logo.aligncenter {
display: table; margin-right: auto;
margin-left: auto;
text-align: center;
} }
.wp-block-site-logo.is-style-rounded { .wp-block-site-logo.is-style-rounded {
border-radius: 9999px; border-radius: 9999px;

View File

@ -1 +1 @@
.wp-block-site-logo{line-height:0}.wp-block-site-logo a{display:inline-block}.wp-block-site-logo.is-default-size img{width:120px;height:auto}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{display:table}.wp-block-site-logo.is-style-rounded{border-radius:9999px} .wp-block-site-logo{line-height:0}.wp-block-site-logo a{display:inline-block}.wp-block-site-logo.is-default-size img{width:120px;height:auto}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-right:auto;margin-left:auto;text-align:center}.wp-block-site-logo.is-style-rounded{border-radius:9999px}

View File

@ -89,7 +89,9 @@
border-radius: inherit; border-radius: inherit;
} }
.wp-block-site-logo.aligncenter { .wp-block-site-logo.aligncenter {
display: table; margin-left: auto;
margin-right: auto;
text-align: center;
} }
.wp-block-site-logo.is-style-rounded { .wp-block-site-logo.is-style-rounded {
border-radius: 9999px; border-radius: 9999px;

View File

@ -1 +1 @@
.wp-block-site-logo{line-height:0}.wp-block-site-logo a{display:inline-block}.wp-block-site-logo.is-default-size img{width:120px;height:auto}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{display:table}.wp-block-site-logo.is-style-rounded{border-radius:9999px} .wp-block-site-logo{line-height:0}.wp-block-site-logo a{display:inline-block}.wp-block-site-logo.is-default-size img{width:120px;height:auto}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo.is-style-rounded{border-radius:9999px}

View File

@ -1242,7 +1242,7 @@ class WP_Theme_JSON {
$new_key = $prefix . str_replace( $new_key = $prefix . str_replace(
'/', '/',
'-', '-',
strtolower( preg_replace( '/(?<!^)[A-Z]/', '-$0', $property ) ) // CamelCase to kebab-case. strtolower( _wp_to_kebab_case( $property ) )
); );
if ( is_array( $value ) ) { if ( is_array( $value ) ) {

View File

@ -1188,6 +1188,20 @@
display: none; display: none;
} }
.block-editor-block-preview__live-content * {
pointer-events: none;
}
.block-editor-block-preview__live-content .block-list-appender {
display: none;
}
.block-editor-block-preview__live-content .components-button:disabled {
opacity: initial;
}
.block-editor-block-preview__live-content .components-placeholder,
.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true] {
display: none;
}
.block-editor-block-settings-menu__popover .components-dropdown-menu__menu { .block-editor-block-settings-menu__popover .components-dropdown-menu__menu {
padding: 0; padding: 0;
} }

File diff suppressed because one or more lines are too long

View File

@ -1188,6 +1188,20 @@
display: none; display: none;
} }
.block-editor-block-preview__live-content * {
pointer-events: none;
}
.block-editor-block-preview__live-content .block-list-appender {
display: none;
}
.block-editor-block-preview__live-content .components-button:disabled {
opacity: initial;
}
.block-editor-block-preview__live-content .components-placeholder,
.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true] {
display: none;
}
.block-editor-block-settings-menu__popover .components-dropdown-menu__menu { .block-editor-block-settings-menu__popover .components-dropdown-menu__menu {
padding: 0; padding: 0;
} }

File diff suppressed because one or more lines are too long

View File

@ -96,6 +96,8 @@
*/ */
/* stylelint-disable function-comma-space-after */ /* stylelint-disable function-comma-space-after */
/* stylelint-enable function-comma-space-after */ /* stylelint-enable function-comma-space-after */
--wp--preset--font-size--normal: 16px;
--wp--preset--font-size--huge: 42px;
} }
:root .has-very-light-gray-background-color { :root .has-very-light-gray-background-color {
background-color: #eee; background-color: #eee;
@ -139,6 +141,14 @@
font-size: 2.625em; font-size: 2.625em;
} }
.has-normal-font-size {
font-size: var(--wp--preset--font-size--normal) !important;
}
.has-huge-font-size {
font-size: var(--wp--preset--font-size--huge) !important;
}
.has-text-align-center { .has-text-align-center {
text-align: center; text-align: center;
} }

View File

@ -1 +1 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;right:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} :root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)!important}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)!important}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;right:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}

View File

@ -96,6 +96,8 @@
*/ */
/* stylelint-disable function-comma-space-after */ /* stylelint-disable function-comma-space-after */
/* stylelint-enable function-comma-space-after */ /* stylelint-enable function-comma-space-after */
--wp--preset--font-size--normal: 16px;
--wp--preset--font-size--huge: 42px;
} }
:root .has-very-light-gray-background-color { :root .has-very-light-gray-background-color {
background-color: #eee; background-color: #eee;
@ -139,6 +141,14 @@
font-size: 2.625em; font-size: 2.625em;
} }
.has-normal-font-size {
font-size: var(--wp--preset--font-size--normal) !important;
}
.has-huge-font-size {
font-size: var(--wp--preset--font-size--huge) !important;
}
.has-text-align-center { .has-text-align-center {
text-align: center; text-align: center;
} }

View File

@ -1 +1 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} :root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)!important}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)!important}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}

View File

@ -1238,6 +1238,7 @@ figure.wp-block-image:not(.wp-block) {
.is-editing > .wp-block-navigation__submenu-container > .block-list-appender { .is-editing > .wp-block-navigation__submenu-container > .block-list-appender {
display: block; display: block;
position: static; position: static;
width: 100%;
} }
.wp-block-navigation__submenu-container .block-list-appender { .wp-block-navigation__submenu-container .block-list-appender {
@ -1436,6 +1437,7 @@ figure.wp-block-image:not(.wp-block) {
font-size: 13px; font-size: 13px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
gap: 6px; gap: 6px;
align-items: center;
height: 100%; height: 100%;
} }
.wp-block-navigation-placeholder__actions .components-dropdown, .wp-block-navigation-placeholder__actions .components-dropdown,
@ -1922,24 +1924,14 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
} }
.wp-block[data-align=center] > .wp-block-site-logo { .wp-block[data-align=center] > .wp-block-site-logo {
display: table;
margin-right: auto; margin-right: auto;
margin-left: auto; margin-left: auto;
text-align: center;
} }
.wp-block-site-logo a { .wp-block-site-logo a {
pointer-events: none; pointer-events: none;
} }
.wp-block-site-logo:not(.is-default-size) {
display: table;
}
.wp-block-site-logo.is-default-size {
width: 120px;
}
.wp-block-site-logo.is-default-size img {
height: auto;
width: 100%;
}
.wp-block-site-logo .custom-logo-link { .wp-block-site-logo .custom-logo-link {
cursor: inherit; cursor: inherit;
} }
@ -2610,6 +2602,8 @@ div[data-type="core/post-featured-image"] img {
*/ */
/* stylelint-disable function-comma-space-after */ /* stylelint-disable function-comma-space-after */
/* stylelint-enable function-comma-space-after */ /* stylelint-enable function-comma-space-after */
--wp--preset--font-size--normal: 16px;
--wp--preset--font-size--huge: 42px;
} }
:root .editor-styles-wrapper .has-very-light-gray-background-color { :root .editor-styles-wrapper .has-very-light-gray-background-color {
background-color: #eee; background-color: #eee;
@ -2653,6 +2647,14 @@ div[data-type="core/post-featured-image"] img {
font-size: 42px; font-size: 42px;
} }
.editor-styles-wrapper .has-normal-font-size {
font-size: var(--wp--preset--font-size--normal) !important;
}
.editor-styles-wrapper .has-huge-font-size {
font-size: var(--wp--preset--font-size--huge) !important;
}
/** /**
* Editor Normalization Styles * Editor Normalization Styles
* *

File diff suppressed because one or more lines are too long

View File

@ -1243,6 +1243,7 @@ figure.wp-block-image:not(.wp-block) {
.is-editing > .wp-block-navigation__submenu-container > .block-list-appender { .is-editing > .wp-block-navigation__submenu-container > .block-list-appender {
display: block; display: block;
position: static; position: static;
width: 100%;
} }
.wp-block-navigation__submenu-container .block-list-appender { .wp-block-navigation__submenu-container .block-list-appender {
@ -1441,6 +1442,7 @@ figure.wp-block-image:not(.wp-block) {
font-size: 13px; font-size: 13px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
gap: 6px; gap: 6px;
align-items: center;
height: 100%; height: 100%;
} }
.wp-block-navigation-placeholder__actions .components-dropdown, .wp-block-navigation-placeholder__actions .components-dropdown,
@ -1927,24 +1929,14 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
} }
.wp-block[data-align=center] > .wp-block-site-logo { .wp-block[data-align=center] > .wp-block-site-logo {
display: table;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
text-align: center;
} }
.wp-block-site-logo a { .wp-block-site-logo a {
pointer-events: none; pointer-events: none;
} }
.wp-block-site-logo:not(.is-default-size) {
display: table;
}
.wp-block-site-logo.is-default-size {
width: 120px;
}
.wp-block-site-logo.is-default-size img {
height: auto;
width: 100%;
}
.wp-block-site-logo .custom-logo-link { .wp-block-site-logo .custom-logo-link {
cursor: inherit; cursor: inherit;
} }
@ -2618,6 +2610,8 @@ div[data-type="core/post-featured-image"] img {
*/ */
/* stylelint-disable function-comma-space-after */ /* stylelint-disable function-comma-space-after */
/* stylelint-enable function-comma-space-after */ /* stylelint-enable function-comma-space-after */
--wp--preset--font-size--normal: 16px;
--wp--preset--font-size--huge: 42px;
} }
:root .editor-styles-wrapper .has-very-light-gray-background-color { :root .editor-styles-wrapper .has-very-light-gray-background-color {
background-color: #eee; background-color: #eee;
@ -2661,6 +2655,14 @@ div[data-type="core/post-featured-image"] img {
font-size: 42px; font-size: 42px;
} }
.editor-styles-wrapper .has-normal-font-size {
font-size: var(--wp--preset--font-size--normal) !important;
}
.editor-styles-wrapper .has-huge-font-size {
font-size: var(--wp--preset--font-size--huge) !important;
}
/** /**
* Editor Normalization Styles * Editor Normalization Styles
* *

File diff suppressed because one or more lines are too long

View File

@ -1488,6 +1488,11 @@ ul.has-background {
} }
.wp-block-navigation { .wp-block-navigation {
position: relative; position: relative;
--navigation-layout-justification-setting: flex-start;
--navigation-layout-direction: row;
--navigation-layout-wrap: wrap;
--navigation-layout-justify: flex-start;
--navigation-layout-align: center;
} }
.wp-block-navigation ul { .wp-block-navigation ul {
margin-top: 0; margin-top: 0;
@ -1549,6 +1554,31 @@ ul.has-background {
width: inherit; width: inherit;
height: inherit; height: inherit;
} }
.wp-block-navigation.is-vertical {
--navigation-layout-direction: column;
--navigation-layout-justify: initial;
}
.wp-block-navigation.no-wrap {
--navigation-layout-wrap: nowrap;
}
.wp-block-navigation.items-justified-center {
--navigation-layout-justification-setting: center;
--navigation-layout-justify: center;
}
.wp-block-navigation.items-justified-center.is-vertical {
--navigation-layout-align: center;
}
.wp-block-navigation.items-justified-right {
--navigation-layout-justification-setting: flex-end;
--navigation-layout-justify: flex-end;
}
.wp-block-navigation.items-justified-right.is-vertical {
--navigation-layout-align: flex-end;
}
.wp-block-navigation.items-justified-space-between {
--navigation-layout-justification-setting: space-between;
--navigation-layout-justify: space-between;
}
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) { .wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) {
background-color: inherit; background-color: inherit;
@ -1716,10 +1746,10 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__container { .wp-block-navigation__container {
display: flex; display: flex;
flex-wrap: var(--layout-wrap, wrap); flex-wrap: var(--navigation-layout-wrap, wrap);
flex-direction: var(--layout-direction, initial); flex-direction: var(--navigation-layout-direction, initial);
justify-content: var(--layout-justify, initial); justify-content: var(--navigation-layout-justify, initial);
align-items: var(--layout-align, initial); align-items: var(--navigation-layout-align, initial);
list-style: none; list-style: none;
margin: 0; margin: 0;
padding-right: 0; padding-right: 0;
@ -1746,10 +1776,10 @@ button.wp-block-navigation-item__content {
} }
.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content { .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
display: flex; display: flex;
flex-wrap: var(--layout-wrap, wrap); flex-wrap: var(--navigation-layout-wrap, wrap);
flex-direction: var(--layout-direction, initial); flex-direction: var(--navigation-layout-direction, initial);
justify-content: var(--layout-justify, initial); justify-content: var(--navigation-layout-justify, initial);
align-items: var(--layout-align, initial); align-items: var(--navigation-layout-align, initial);
} }
.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) { .wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) {
color: inherit !important; color: inherit !important;
@ -1758,17 +1788,18 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__responsive-container.is-menu-open { .wp-block-navigation__responsive-container.is-menu-open {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-color: inherit;
padding: 2em;
overflow: auto; overflow: auto;
z-index: 100000; z-index: 100000;
padding: 72px 24px 24px 24px;
background-color: inherit;
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
padding-top: calc(2em + 24px);
overflow: visible;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: var(--layout-justification-setting, inherit); flex-wrap: nowrap;
overflow: auto; align-items: var(--navigation-layout-justification-setting, inherit);
padding: 0;
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list,
@ -1788,17 +1819,14 @@ button.wp-block-navigation-item__content {
min-width: 200px; min-width: 200px;
position: static; position: static;
border: none; border: none;
padding-right: 32px; padding-right: 2em;
padding-left: 32px; padding-left: 2em;
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
gap: var(--wp--style--block-gap, 2em); gap: var(--wp--style--block-gap, 2em);
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container .wp-block-navigation__container {
padding-top: var(--wp--style--block-gap, 2em); padding-top: var(--wp--style--block-gap, 2em);
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
@ -1809,7 +1837,7 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: var(--layout-justification-setting, initial); align-items: var(--navigation-layout-justification-setting, initial);
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
@ -1872,8 +1900,8 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__responsive-container-close { .wp-block-navigation__responsive-container-close {
position: absolute; position: absolute;
top: 24px; top: 0;
left: 24px; left: 0;
z-index: 2; z-index: 2;
} }
@ -1884,8 +1912,11 @@ button.wp-block-navigation-item__content {
.is-menu-open .wp-block-navigation__responsive-close, .is-menu-open .wp-block-navigation__responsive-close,
.is-menu-open .wp-block-navigation__responsive-dialog, .is-menu-open .wp-block-navigation__responsive-dialog,
.is-menu-open .wp-block-navigation__responsive-container-content { .is-menu-open .wp-block-navigation__responsive-container-content {
width: 100%; box-sizing: border-box;
height: 100%; }
.wp-block-navigation__responsive-dialog {
position: relative;
} }
html.has-modal-open { html.has-modal-open {
@ -2029,7 +2060,6 @@ p.has-background {
} }
.wp-block-post-comments .comment-author { .wp-block-post-comments .comment-author {
line-height: 1.5; line-height: 1.5;
margin-right: -3.25em;
} }
.wp-block-post-comments .comment-author .avatar { .wp-block-post-comments .comment-author .avatar {
border-radius: 1.5em; border-radius: 1.5em;
@ -2494,7 +2524,9 @@ ul.wp-block-rss.is-grid li {
border-radius: inherit; border-radius: inherit;
} }
.wp-block-site-logo.aligncenter { .wp-block-site-logo.aligncenter {
display: table; margin-right: auto;
margin-left: auto;
text-align: center;
} }
.wp-block-site-logo.is-style-rounded { .wp-block-site-logo.is-style-rounded {
border-radius: 9999px; border-radius: 9999px;
@ -3044,6 +3076,8 @@ pre.wp-block-verse {
*/ */
/* stylelint-disable function-comma-space-after */ /* stylelint-disable function-comma-space-after */
/* stylelint-enable function-comma-space-after */ /* stylelint-enable function-comma-space-after */
--wp--preset--font-size--normal: 16px;
--wp--preset--font-size--huge: 42px;
} }
:root .has-very-light-gray-background-color { :root .has-very-light-gray-background-color {
background-color: #eee; background-color: #eee;
@ -3087,6 +3121,14 @@ pre.wp-block-verse {
font-size: 2.625em; font-size: 2.625em;
} }
.has-normal-font-size {
font-size: var(--wp--preset--font-size--normal) !important;
}
.has-huge-font-size {
font-size: var(--wp--preset--font-size--huge) !important;
}
.has-text-align-center { .has-text-align-center {
text-align: center; text-align: center;
} }

File diff suppressed because one or more lines are too long

View File

@ -1510,6 +1510,11 @@ ul.has-background {
} }
.wp-block-navigation { .wp-block-navigation {
position: relative; position: relative;
--navigation-layout-justification-setting: flex-start;
--navigation-layout-direction: row;
--navigation-layout-wrap: wrap;
--navigation-layout-justify: flex-start;
--navigation-layout-align: center;
} }
.wp-block-navigation ul { .wp-block-navigation ul {
margin-top: 0; margin-top: 0;
@ -1571,6 +1576,31 @@ ul.has-background {
width: inherit; width: inherit;
height: inherit; height: inherit;
} }
.wp-block-navigation.is-vertical {
--navigation-layout-direction: column;
--navigation-layout-justify: initial;
}
.wp-block-navigation.no-wrap {
--navigation-layout-wrap: nowrap;
}
.wp-block-navigation.items-justified-center {
--navigation-layout-justification-setting: center;
--navigation-layout-justify: center;
}
.wp-block-navigation.items-justified-center.is-vertical {
--navigation-layout-align: center;
}
.wp-block-navigation.items-justified-right {
--navigation-layout-justification-setting: flex-end;
--navigation-layout-justify: flex-end;
}
.wp-block-navigation.items-justified-right.is-vertical {
--navigation-layout-align: flex-end;
}
.wp-block-navigation.items-justified-space-between {
--navigation-layout-justification-setting: space-between;
--navigation-layout-justify: space-between;
}
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) { .wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) {
background-color: inherit; background-color: inherit;
@ -1738,10 +1768,10 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__container { .wp-block-navigation__container {
display: flex; display: flex;
flex-wrap: var(--layout-wrap, wrap); flex-wrap: var(--navigation-layout-wrap, wrap);
flex-direction: var(--layout-direction, initial); flex-direction: var(--navigation-layout-direction, initial);
justify-content: var(--layout-justify, initial); justify-content: var(--navigation-layout-justify, initial);
align-items: var(--layout-align, initial); align-items: var(--navigation-layout-align, initial);
list-style: none; list-style: none;
margin: 0; margin: 0;
padding-left: 0; padding-left: 0;
@ -1768,10 +1798,10 @@ button.wp-block-navigation-item__content {
} }
.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content { .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
display: flex; display: flex;
flex-wrap: var(--layout-wrap, wrap); flex-wrap: var(--navigation-layout-wrap, wrap);
flex-direction: var(--layout-direction, initial); flex-direction: var(--navigation-layout-direction, initial);
justify-content: var(--layout-justify, initial); justify-content: var(--navigation-layout-justify, initial);
align-items: var(--layout-align, initial); align-items: var(--navigation-layout-align, initial);
} }
.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) { .wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) {
color: inherit !important; color: inherit !important;
@ -1780,17 +1810,18 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__responsive-container.is-menu-open { .wp-block-navigation__responsive-container.is-menu-open {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-color: inherit;
padding: 2em;
overflow: auto; overflow: auto;
z-index: 100000; z-index: 100000;
padding: 72px 24px 24px 24px;
background-color: inherit;
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
padding-top: calc(2em + 24px);
overflow: visible;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: var(--layout-justification-setting, inherit); flex-wrap: nowrap;
overflow: auto; align-items: var(--navigation-layout-justification-setting, inherit);
padding: 0;
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list,
@ -1810,17 +1841,14 @@ button.wp-block-navigation-item__content {
min-width: 200px; min-width: 200px;
position: static; position: static;
border: none; border: none;
padding-left: 32px; padding-left: 2em;
padding-right: 32px; padding-right: 2em;
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
gap: var(--wp--style--block-gap, 2em); gap: var(--wp--style--block-gap, 2em);
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container .wp-block-navigation__container {
padding-top: var(--wp--style--block-gap, 2em); padding-top: var(--wp--style--block-gap, 2em);
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
@ -1831,7 +1859,7 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list { .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: var(--layout-justification-setting, initial); align-items: var(--navigation-layout-justification-setting, initial);
} }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
@ -1894,8 +1922,8 @@ button.wp-block-navigation-item__content {
.wp-block-navigation__responsive-container-close { .wp-block-navigation__responsive-container-close {
position: absolute; position: absolute;
top: 24px; top: 0;
right: 24px; right: 0;
z-index: 2; z-index: 2;
} }
@ -1906,8 +1934,11 @@ button.wp-block-navigation-item__content {
.is-menu-open .wp-block-navigation__responsive-close, .is-menu-open .wp-block-navigation__responsive-close,
.is-menu-open .wp-block-navigation__responsive-dialog, .is-menu-open .wp-block-navigation__responsive-dialog,
.is-menu-open .wp-block-navigation__responsive-container-content { .is-menu-open .wp-block-navigation__responsive-container-content {
width: 100%; box-sizing: border-box;
height: 100%; }
.wp-block-navigation__responsive-dialog {
position: relative;
} }
html.has-modal-open { html.has-modal-open {
@ -2051,7 +2082,6 @@ p.has-background {
} }
.wp-block-post-comments .comment-author { .wp-block-post-comments .comment-author {
line-height: 1.5; line-height: 1.5;
margin-left: -3.25em;
} }
.wp-block-post-comments .comment-author .avatar { .wp-block-post-comments .comment-author .avatar {
border-radius: 1.5em; border-radius: 1.5em;
@ -2521,7 +2551,9 @@ ul.wp-block-rss.is-grid li {
border-radius: inherit; border-radius: inherit;
} }
.wp-block-site-logo.aligncenter { .wp-block-site-logo.aligncenter {
display: table; margin-left: auto;
margin-right: auto;
text-align: center;
} }
.wp-block-site-logo.is-style-rounded { .wp-block-site-logo.is-style-rounded {
border-radius: 9999px; border-radius: 9999px;
@ -3071,6 +3103,8 @@ pre.wp-block-verse {
*/ */
/* stylelint-disable function-comma-space-after */ /* stylelint-disable function-comma-space-after */
/* stylelint-enable function-comma-space-after */ /* stylelint-enable function-comma-space-after */
--wp--preset--font-size--normal: 16px;
--wp--preset--font-size--huge: 42px;
} }
:root .has-very-light-gray-background-color { :root .has-very-light-gray-background-color {
background-color: #eee; background-color: #eee;
@ -3114,6 +3148,14 @@ pre.wp-block-verse {
font-size: 2.625em; font-size: 2.625em;
} }
.has-normal-font-size {
font-size: var(--wp--preset--font-size--normal) !important;
}
.has-huge-font-size {
font-size: var(--wp--preset--font-size--huge) !important;
}
.has-text-align-center { .has-text-align-center {
text-align: center; text-align: center;
} }

File diff suppressed because one or more lines are too long

View File

@ -928,12 +928,16 @@ body.is-fullscreen-mode .interface-interface-skeleton {
.edit-post-template-top-area__popover .components-popover__content { .edit-post-template-top-area__popover .components-popover__content {
min-width: 280px; min-width: 280px;
padding: 8px;
}
.edit-post-template-top-area__popover .edit-post-template-details__description {
color: #757575;
} }
.edit-post-template-top-area__second-menu-group { .edit-post-template-top-area__second-menu-group {
margin-right: -12px; margin-right: -16px;
margin-left: -12px; margin-left: -16px;
padding: 12px; padding: 16px;
padding-bottom: 0; padding-bottom: 0;
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
} }
@ -943,6 +947,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
} }
.edit-post-template-top-area__second-menu-group .edit-post-template-top-area__delete-template-button .components-menu-item__item { .edit-post-template-top-area__second-menu-group .edit-post-template-top-area__delete-template-button .components-menu-item__item {
margin-left: 0; margin-left: 0;
min-width: 0;
} }
.edit-post-keyboard-shortcut-help-modal__section { .edit-post-keyboard-shortcut-help-modal__section {

File diff suppressed because one or more lines are too long

View File

@ -928,12 +928,16 @@ body.is-fullscreen-mode .interface-interface-skeleton {
.edit-post-template-top-area__popover .components-popover__content { .edit-post-template-top-area__popover .components-popover__content {
min-width: 280px; min-width: 280px;
padding: 8px;
}
.edit-post-template-top-area__popover .edit-post-template-details__description {
color: #757575;
} }
.edit-post-template-top-area__second-menu-group { .edit-post-template-top-area__second-menu-group {
margin-left: -12px; margin-left: -16px;
margin-right: -12px; margin-right: -16px;
padding: 12px; padding: 16px;
padding-bottom: 0; padding-bottom: 0;
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
} }
@ -943,6 +947,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
} }
.edit-post-template-top-area__second-menu-group .edit-post-template-top-area__delete-template-button .components-menu-item__item { .edit-post-template-top-area__second-menu-group .edit-post-template-top-area__delete-template-button .components-menu-item__item {
margin-right: 0; margin-right: 0;
min-width: 0;
} }
.edit-post-keyboard-shortcut-help-modal__section { .edit-post-keyboard-shortcut-help-modal__section {

File diff suppressed because one or more lines are too long

View File

@ -600,6 +600,12 @@ h2.edit-site-global-styles-gradient-palette-panel__duotone-heading.components-he
margin-bottom: 8px; margin-bottom: 8px;
} }
.edit-site-screen-text-color__control,
.edit-site-screen-link-color__control,
.edit-site-screen-background-color__control {
padding: 16px;
}
.edit-site-header { .edit-site-header {
align-items: center; align-items: center;
background-color: #fff; background-color: #fff;

File diff suppressed because one or more lines are too long

View File

@ -600,6 +600,12 @@ h2.edit-site-global-styles-gradient-palette-panel__duotone-heading.components-he
margin-bottom: 8px; margin-bottom: 8px;
} }
.edit-site-screen-text-color__control,
.edit-site-screen-link-color__control,
.edit-site-screen-background-color__control {
padding: 16px;
}
.edit-site-header { .edit-site-header {
align-items: center; align-items: center;
background-color: #fff; background-color: #fff;

File diff suppressed because one or more lines are too long

View File

@ -2171,7 +2171,7 @@ function onBlockDrop(targetRootClientId, targetBlockIndex, getBlockIndex, getCli
if (dropType === 'block') { if (dropType === 'block') {
const sourceBlockIndex = getBlockIndex(sourceClientIds[0], sourceRootClientId); // If the user is dropping to the same position, return early. const sourceBlockIndex = getBlockIndex(sourceClientIds[0]); // If the user is dropping to the same position, return early.
if (sourceRootClientId === targetRootClientId && sourceBlockIndex === targetBlockIndex) { if (sourceRootClientId === targetRootClientId && sourceBlockIndex === targetBlockIndex) {
return; return;
@ -2527,21 +2527,21 @@ function useMultipleOriginColorsAndGradients() {
"use strict"; "use strict";
// EXPORTS // EXPORTS
__webpack_require__.d(__webpack_exports__, "gc", function() { return /* reexport */ components_colors["b" /* getColorClassName */]; }); __webpack_require__.d(__webpack_exports__, "hc", function() { return /* reexport */ components_colors["b" /* getColorClassName */]; });
__webpack_require__.d(__webpack_exports__, "hc", function() { return /* reexport */ components_colors["c" /* getColorObjectByAttributeValues */]; }); __webpack_require__.d(__webpack_exports__, "ic", function() { return /* reexport */ components_colors["c" /* getColorObjectByAttributeValues */]; });
__webpack_require__.d(__webpack_exports__, "ic", function() { return /* reexport */ components_colors["d" /* getColorObjectByColorValue */]; }); __webpack_require__.d(__webpack_exports__, "jc", function() { return /* reexport */ components_colors["d" /* getColorObjectByColorValue */]; });
__webpack_require__.d(__webpack_exports__, "fc", function() { return /* reexport */ components_colors["a" /* createCustomColorsHOC */]; }); __webpack_require__.d(__webpack_exports__, "gc", function() { return /* reexport */ components_colors["a" /* createCustomColorsHOC */]; });
__webpack_require__.d(__webpack_exports__, "uc", function() { return /* reexport */ components_colors["e" /* withColors */]; }); __webpack_require__.d(__webpack_exports__, "vc", function() { return /* reexport */ components_colors["e" /* withColors */]; });
__webpack_require__.d(__webpack_exports__, "xb", function() { return /* reexport */ gradients["a" /* __experimentalGetGradientClass */]; }); __webpack_require__.d(__webpack_exports__, "xb", function() { return /* reexport */ gradients["a" /* __experimentalGetGradientClass */]; });
__webpack_require__.d(__webpack_exports__, "nc", function() { return /* reexport */ gradients["e" /* getGradientValueBySlug */]; }); __webpack_require__.d(__webpack_exports__, "oc", function() { return /* reexport */ gradients["e" /* getGradientValueBySlug */]; });
__webpack_require__.d(__webpack_exports__, "yb", function() { return /* reexport */ gradients["b" /* __experimentalGetGradientObjectByGradientValue */]; }); __webpack_require__.d(__webpack_exports__, "yb", function() { return /* reexport */ gradients["b" /* __experimentalGetGradientObjectByGradientValue */]; });
__webpack_require__.d(__webpack_exports__, "mc", function() { return /* reexport */ gradients["d" /* getGradientSlugByValue */]; }); __webpack_require__.d(__webpack_exports__, "nc", function() { return /* reexport */ gradients["d" /* getGradientSlugByValue */]; });
__webpack_require__.d(__webpack_exports__, "Rb", function() { return /* reexport */ gradients["c" /* __experimentalUseGradient */]; }); __webpack_require__.d(__webpack_exports__, "Sb", function() { return /* reexport */ gradients["c" /* __experimentalUseGradient */]; });
__webpack_require__.d(__webpack_exports__, "jc", function() { return /* reexport */ font_sizes["b" /* getFontSize */]; }); __webpack_require__.d(__webpack_exports__, "kc", function() { return /* reexport */ font_sizes["b" /* getFontSize */]; });
__webpack_require__.d(__webpack_exports__, "kc", function() { return /* reexport */ font_sizes["c" /* getFontSizeClass */]; }); __webpack_require__.d(__webpack_exports__, "lc", function() { return /* reexport */ font_sizes["c" /* getFontSizeClass */]; });
__webpack_require__.d(__webpack_exports__, "lc", function() { return /* reexport */ font_sizes["d" /* getFontSizeObjectByValue */]; }); __webpack_require__.d(__webpack_exports__, "mc", function() { return /* reexport */ font_sizes["d" /* getFontSizeObjectByValue */]; });
__webpack_require__.d(__webpack_exports__, "I", function() { return /* reexport */ font_sizes["a" /* FontSizePicker */]; }); __webpack_require__.d(__webpack_exports__, "I", function() { return /* reexport */ font_sizes["a" /* FontSizePicker */]; });
__webpack_require__.d(__webpack_exports__, "vc", function() { return /* reexport */ font_sizes["e" /* withFontSizes */]; }); __webpack_require__.d(__webpack_exports__, "wc", function() { return /* reexport */ font_sizes["e" /* withFontSizes */]; });
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ AlignmentControl; }); __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ AlignmentControl; });
__webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ AlignmentToolbar; }); __webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ AlignmentToolbar; });
__webpack_require__.d(__webpack_exports__, "c", function() { return /* reexport */ autocomplete; }); __webpack_require__.d(__webpack_exports__, "c", function() { return /* reexport */ autocomplete; });
@ -2556,7 +2556,7 @@ __webpack_require__.d(__webpack_exports__, "i", function() { return /* reexport
__webpack_require__.d(__webpack_exports__, "m", function() { return /* reexport */ block_controls["a" /* BlockFormatControls */]; }); __webpack_require__.d(__webpack_exports__, "m", function() { return /* reexport */ block_controls["a" /* BlockFormatControls */]; });
__webpack_require__.d(__webpack_exports__, "g", function() { return /* reexport */ color_style_selector; }); __webpack_require__.d(__webpack_exports__, "g", function() { return /* reexport */ color_style_selector; });
__webpack_require__.d(__webpack_exports__, "j", function() { return /* reexport */ block_edit["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "j", function() { return /* reexport */ block_edit["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "pc", function() { return /* reexport */ context["c" /* useBlockEditContext */]; }); __webpack_require__.d(__webpack_exports__, "qc", function() { return /* reexport */ context["c" /* useBlockEditContext */]; });
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ block_icon["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ block_icon["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport */ dropdown; }); __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport */ dropdown; });
__webpack_require__.d(__webpack_exports__, "pb", function() { return /* reexport */ block_variation_picker; }); __webpack_require__.d(__webpack_exports__, "pb", function() { return /* reexport */ block_variation_picker; });
@ -2583,7 +2583,7 @@ __webpack_require__.d(__webpack_exports__, "Ab", function() { return /* reexport
__webpack_require__.d(__webpack_exports__, "zb", function() { return /* reexport */ ImageEditingProvider; }); __webpack_require__.d(__webpack_exports__, "zb", function() { return /* reexport */ ImageEditingProvider; });
__webpack_require__.d(__webpack_exports__, "Bb", function() { return /* reexport */ ImageSizeControl; }); __webpack_require__.d(__webpack_exports__, "Bb", function() { return /* reexport */ ImageSizeControl; });
__webpack_require__.d(__webpack_exports__, "J", function() { return /* reexport */ inner_blocks["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "J", function() { return /* reexport */ inner_blocks["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "rc", function() { return /* reexport */ inner_blocks["b" /* useInnerBlocksProps */]; }); __webpack_require__.d(__webpack_exports__, "sc", function() { return /* reexport */ inner_blocks["b" /* useInnerBlocksProps */]; });
__webpack_require__.d(__webpack_exports__, "M", function() { return /* reexport */ inspector_controls["b" /* default */]; }); __webpack_require__.d(__webpack_exports__, "M", function() { return /* reexport */ inspector_controls["b" /* default */]; });
__webpack_require__.d(__webpack_exports__, "L", function() { return /* reexport */ inspector_controls["a" /* InspectorAdvancedControls */]; }); __webpack_require__.d(__webpack_exports__, "L", function() { return /* reexport */ inspector_controls["a" /* InspectorAdvancedControls */]; });
__webpack_require__.d(__webpack_exports__, "O", function() { return /* reexport */ justify_content_control["b" /* JustifyToolbar */]; }); __webpack_require__.d(__webpack_exports__, "O", function() { return /* reexport */ justify_content_control["b" /* JustifyToolbar */]; });
@ -2604,55 +2604,56 @@ __webpack_require__.d(__webpack_exports__, "Nb", function() { return /* reexport
__webpack_require__.d(__webpack_exports__, "ab", function() { return /* reexport */ rich_text; }); __webpack_require__.d(__webpack_exports__, "ab", function() { return /* reexport */ rich_text; });
__webpack_require__.d(__webpack_exports__, "bb", function() { return /* reexport */ RichTextShortcut; }); __webpack_require__.d(__webpack_exports__, "bb", function() { return /* reexport */ RichTextShortcut; });
__webpack_require__.d(__webpack_exports__, "cb", function() { return /* reexport */ RichTextToolbarButton; }); __webpack_require__.d(__webpack_exports__, "cb", function() { return /* reexport */ RichTextToolbarButton; });
__webpack_require__.d(__webpack_exports__, "Yb", function() { return /* reexport */ __unstableRichTextInputEvent; }); __webpack_require__.d(__webpack_exports__, "Zb", function() { return /* reexport */ __unstableRichTextInputEvent; });
__webpack_require__.d(__webpack_exports__, "eb", function() { return /* reexport */ tool_selector; }); __webpack_require__.d(__webpack_exports__, "eb", function() { return /* reexport */ tool_selector; });
__webpack_require__.d(__webpack_exports__, "Qb", function() { return /* reexport */ UnitControl; }); __webpack_require__.d(__webpack_exports__, "Qb", function() { return /* reexport */ UnitControl; });
__webpack_require__.d(__webpack_exports__, "gb", function() { return /* reexport */ url_input; }); __webpack_require__.d(__webpack_exports__, "gb", function() { return /* reexport */ url_input; });
__webpack_require__.d(__webpack_exports__, "hb", function() { return /* reexport */ url_input_button; }); __webpack_require__.d(__webpack_exports__, "hb", function() { return /* reexport */ url_input_button; });
__webpack_require__.d(__webpack_exports__, "ib", function() { return /* reexport */ url_popover; }); __webpack_require__.d(__webpack_exports__, "ib", function() { return /* reexport */ url_popover; });
__webpack_require__.d(__webpack_exports__, "Cb", function() { return /* reexport */ ImageURLInputUI; }); __webpack_require__.d(__webpack_exports__, "Cb", function() { return /* reexport */ ImageURLInputUI; });
__webpack_require__.d(__webpack_exports__, "tc", function() { return /* reexport */ with_color_context; }); __webpack_require__.d(__webpack_exports__, "uc", function() { return /* reexport */ with_color_context; });
__webpack_require__.d(__webpack_exports__, "Ub", function() { return /* reexport */ block_settings_menu_first_item["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "Vb", function() { return /* reexport */ block_settings_menu_first_item["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "Xb", function() { return /* reexport */ inserter_menu_extension["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "Yb", function() { return /* reexport */ inserter_menu_extension["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "Mb", function() { return /* reexport */ PreviewOptions; }); __webpack_require__.d(__webpack_exports__, "Mb", function() { return /* reexport */ PreviewOptions; });
__webpack_require__.d(__webpack_exports__, "Tb", function() { return /* reexport */ useResizeCanvas; }); __webpack_require__.d(__webpack_exports__, "Ub", function() { return /* reexport */ useResizeCanvas; });
__webpack_require__.d(__webpack_exports__, "o", function() { return /* reexport */ block_inspector; }); __webpack_require__.d(__webpack_exports__, "o", function() { return /* reexport */ block_inspector; });
__webpack_require__.d(__webpack_exports__, "p", function() { return /* reexport */ block_list["c" /* default */]; }); __webpack_require__.d(__webpack_exports__, "p", function() { return /* reexport */ block_list["c" /* default */]; });
__webpack_require__.d(__webpack_exports__, "qc", function() { return /* reexport */ use_block_props["a" /* useBlockProps */]; }); __webpack_require__.d(__webpack_exports__, "rc", function() { return /* reexport */ use_block_props["a" /* useBlockProps */]; });
__webpack_require__.d(__webpack_exports__, "Db", function() { return /* reexport */ block_list_layout["b" /* LayoutStyle */]; }); __webpack_require__.d(__webpack_exports__, "Db", function() { return /* reexport */ block_list_layout["b" /* LayoutStyle */]; });
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ block_mover["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ block_mover["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "s", function() { return /* reexport */ block_preview["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "s", function() { return /* reexport */ block_preview["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "Rb", function() { return /* reexport */ block_preview["b" /* useBlockPreview */]; });
__webpack_require__.d(__webpack_exports__, "t", function() { return /* reexport */ block_selection_clearer["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "t", function() { return /* reexport */ block_selection_clearer["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "Zb", function() { return /* reexport */ block_selection_clearer["b" /* useBlockSelectionClearer */]; }); __webpack_require__.d(__webpack_exports__, "ac", function() { return /* reexport */ block_selection_clearer["b" /* useBlockSelectionClearer */]; });
__webpack_require__.d(__webpack_exports__, "u", function() { return /* reexport */ block_settings_menu["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "u", function() { return /* reexport */ block_settings_menu["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "v", function() { return /* reexport */ block_settings_menu_controls["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "v", function() { return /* reexport */ block_settings_menu_controls["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "w", function() { return /* reexport */ block_title["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "w", function() { return /* reexport */ block_title["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "x", function() { return /* reexport */ block_toolbar["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "x", function() { return /* reexport */ block_toolbar["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "y", function() { return /* reexport */ BlockTools; }); __webpack_require__.d(__webpack_exports__, "y", function() { return /* reexport */ BlockTools; });
__webpack_require__.d(__webpack_exports__, "G", function() { return /* reexport */ copy_handler["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "G", function() { return /* reexport */ copy_handler["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "bc", function() { return /* reexport */ copy_handler["b" /* useClipboardHandler */]; }); __webpack_require__.d(__webpack_exports__, "cc", function() { return /* reexport */ copy_handler["b" /* useClipboardHandler */]; });
__webpack_require__.d(__webpack_exports__, "H", function() { return /* reexport */ default_block_appender["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "H", function() { return /* reexport */ default_block_appender["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "Vb", function() { return /* reexport */ editor_styles["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "Wb", function() { return /* reexport */ editor_styles["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "K", function() { return /* reexport */ inserter["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "K", function() { return /* reexport */ inserter["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "Fb", function() { return /* reexport */ library; }); __webpack_require__.d(__webpack_exports__, "Fb", function() { return /* reexport */ library; });
__webpack_require__.d(__webpack_exports__, "k", function() { return /* reexport */ keyboard_shortcuts; }); __webpack_require__.d(__webpack_exports__, "k", function() { return /* reexport */ keyboard_shortcuts; });
__webpack_require__.d(__webpack_exports__, "U", function() { return /* reexport */ MultiSelectScrollIntoView; }); __webpack_require__.d(__webpack_exports__, "U", function() { return /* reexport */ MultiSelectScrollIntoView; });
__webpack_require__.d(__webpack_exports__, "V", function() { return /* reexport */ navigable_toolbar["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "V", function() { return /* reexport */ navigable_toolbar["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "W", function() { return /* reexport */ observe_typing; }); __webpack_require__.d(__webpack_exports__, "W", function() { return /* reexport */ observe_typing; });
__webpack_require__.d(__webpack_exports__, "ec", function() { return /* reexport */ useTypingObserver; }); __webpack_require__.d(__webpack_exports__, "fc", function() { return /* reexport */ useTypingObserver; });
__webpack_require__.d(__webpack_exports__, "cc", function() { return /* reexport */ useMouseMoveTypingReset; }); __webpack_require__.d(__webpack_exports__, "dc", function() { return /* reexport */ useMouseMoveTypingReset; });
__webpack_require__.d(__webpack_exports__, "Z", function() { return /* reexport */ PreserveScrollInReorder; }); __webpack_require__.d(__webpack_exports__, "Z", function() { return /* reexport */ PreserveScrollInReorder; });
__webpack_require__.d(__webpack_exports__, "db", function() { return /* reexport */ skip_to_selected_block; }); __webpack_require__.d(__webpack_exports__, "db", function() { return /* reexport */ skip_to_selected_block; });
__webpack_require__.d(__webpack_exports__, "fb", function() { return /* reexport */ typewriter; }); __webpack_require__.d(__webpack_exports__, "fb", function() { return /* reexport */ typewriter; });
__webpack_require__.d(__webpack_exports__, "dc", function() { return /* reexport */ useTypewriter; }); __webpack_require__.d(__webpack_exports__, "ec", function() { return /* reexport */ useTypewriter; });
__webpack_require__.d(__webpack_exports__, "jb", function() { return /* reexport */ warning["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "jb", function() { return /* reexport */ warning["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "kb", function() { return /* reexport */ writing_flow["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "kb", function() { return /* reexport */ writing_flow["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "ac", function() { return /* reexport */ useCanvasClickRedirect; }); __webpack_require__.d(__webpack_exports__, "bc", function() { return /* reexport */ useCanvasClickRedirect; });
__webpack_require__.d(__webpack_exports__, "oc", function() { return /* reexport */ use_block_display_information["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "pc", function() { return /* reexport */ use_block_display_information["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "Wb", function() { return /* reexport */ iframe["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "Xb", function() { return /* reexport */ iframe["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "Sb", function() { return /* reexport */ useNoRecursiveRenders; }); __webpack_require__.d(__webpack_exports__, "Tb", function() { return /* reexport */ useNoRecursiveRenders; });
__webpack_require__.d(__webpack_exports__, "l", function() { return /* reexport */ provider["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "l", function() { return /* reexport */ provider["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "sc", function() { return /* reexport */ use_setting["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "tc", function() { return /* reexport */ use_setting["a" /* default */]; });
// EXTERNAL MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/index.js + 1 modules // EXTERNAL MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/index.js + 1 modules
var components_colors = __webpack_require__("5gPN"); var components_colors = __webpack_require__("5gPN");
@ -4424,7 +4425,7 @@ function useListViewDropZone() {
return { return {
clientId, clientId,
rootClientId, rootClientId,
blockIndex: getBlockIndex(clientId, rootClientId), blockIndex: getBlockIndex(clientId),
element: blockElement, element: blockElement,
isDraggedBlock: isBlockDrag ? draggedBlockClientIds.includes(clientId) : false, isDraggedBlock: isBlockDrag ? draggedBlockClientIds.includes(clientId) : false,
innerBlockCount: getBlockCount(clientId), innerBlockCount: getBlockCount(clientId),
@ -12492,8 +12493,15 @@ const BlockInspector = _ref => {
if (count > 1) { if (count > 1) {
return Object(external_wp_element_["createElement"])("div", { return Object(external_wp_element_["createElement"])("div", {
className: "block-editor-block-inspector" className: "block-editor-block-inspector"
}, Object(external_wp_element_["createElement"])(multi_selection_inspector, null), Object(external_wp_element_["createElement"])(inspector_controls["b" /* default */].Slot, { }, Object(external_wp_element_["createElement"])(multi_selection_inspector, null), Object(external_wp_element_["createElement"])(inspector_controls["b" /* default */].Slot, null), Object(external_wp_element_["createElement"])(inspector_controls["b" /* default */].Slot, {
bubblesVirtually: bubblesVirtually __experimentalGroup: "typography",
label: Object(external_wp_i18n_["__"])('Typography')
}), Object(external_wp_element_["createElement"])(inspector_controls["b" /* default */].Slot, {
__experimentalGroup: "dimensions",
label: Object(external_wp_i18n_["__"])('Dimensions')
}), Object(external_wp_element_["createElement"])(inspector_controls["b" /* default */].Slot, {
__experimentalGroup: "border",
label: Object(external_wp_i18n_["__"])('Border')
})); }));
} }
@ -12549,6 +12557,9 @@ const BlockInspectorSingleBlock = _ref2 => {
__experimentalGroup: "dimensions", __experimentalGroup: "dimensions",
bubblesVirtually: bubblesVirtually, bubblesVirtually: bubblesVirtually,
label: Object(external_wp_i18n_["__"])('Dimensions') label: Object(external_wp_i18n_["__"])('Dimensions')
}), Object(external_wp_element_["createElement"])(inspector_controls["b" /* default */].Slot, {
__experimentalGroup: "border",
label: Object(external_wp_i18n_["__"])('Border')
}), Object(external_wp_element_["createElement"])("div", null, Object(external_wp_element_["createElement"])(AdvancedControls, { }), Object(external_wp_element_["createElement"])("div", null, Object(external_wp_element_["createElement"])(AdvancedControls, {
bubblesVirtually: bubblesVirtually bubblesVirtually: bubblesVirtually
})), Object(external_wp_element_["createElement"])(skip_to_selected_block, { })), Object(external_wp_element_["createElement"])(skip_to_selected_block, {
@ -16471,8 +16482,8 @@ const BlockMoverButton = Object(external_wp_element_["forwardRef"])((_ref, ref)
const normalizedClientIds = Object(external_lodash_["castArray"])(clientIds); const normalizedClientIds = Object(external_lodash_["castArray"])(clientIds);
const firstClientId = Object(external_lodash_["first"])(normalizedClientIds); const firstClientId = Object(external_lodash_["first"])(normalizedClientIds);
const blockRootClientId = getBlockRootClientId(firstClientId); const blockRootClientId = getBlockRootClientId(firstClientId);
const firstBlockIndex = getBlockIndex(firstClientId, blockRootClientId); const firstBlockIndex = getBlockIndex(firstClientId);
const lastBlockIndex = getBlockIndex(Object(external_lodash_["last"])(normalizedClientIds), blockRootClientId); const lastBlockIndex = getBlockIndex(Object(external_lodash_["last"])(normalizedClientIds));
const blockOrder = getBlockOrder(blockRootClientId); const blockOrder = getBlockOrder(blockRootClientId);
const block = getBlock(firstClientId); const block = getBlock(firstClientId);
const isFirstBlock = firstBlockIndex === 0; const isFirstBlock = firstBlockIndex === 0;
@ -16801,10 +16812,10 @@ function useInsertionPoint(_ref) {
_destinationIndex = insertionIndex; _destinationIndex = insertionIndex;
} else if (clientId) { } else if (clientId) {
// Insert after a specific client ID. // Insert after a specific client ID.
_destinationIndex = getBlockIndex(clientId, _destinationRootClientId); _destinationIndex = getBlockIndex(clientId);
} else if (!isAppender && selectedBlockClientId) { } else if (!isAppender && selectedBlockClientId) {
_destinationRootClientId = getBlockRootClientId(selectedBlockClientId); _destinationRootClientId = getBlockRootClientId(selectedBlockClientId);
_destinationIndex = getBlockIndex(selectedBlockClientId, _destinationRootClientId) + 1; _destinationIndex = getBlockIndex(selectedBlockClientId) + 1;
} else { } else {
// Insert at the end of the list. // Insert at the end of the list.
_destinationIndex = getBlockOrder(_destinationRootClientId).length; _destinationIndex = getBlockOrder(_destinationRootClientId).length;
@ -18125,6 +18136,29 @@ const withSaveReusableBlock = reducer => (state, action) => {
return reducer(state, action); return reducer(state, action);
}; };
/**
* Higher-order reducer which removes blocks from state when switching parent block controlled state.
*
* @param {Function} reducer Original reducer function.
*
* @return {Function} Enhanced reducer function.
*/
const withResetControlledBlocks = reducer => (state, action) => {
if (action.type === 'SET_HAS_CONTROLLED_INNER_BLOCKS') {
// when switching a block from controlled to uncontrolled or inverse,
// we need to remove its content first.
const tempState = reducer(state, {
type: 'REPLACE_INNER_BLOCKS',
rootClientId: action.clientId,
blocks: []
});
return reducer(tempState, action);
}
return reducer(state, action);
};
/** /**
* Reducer returning the blocks state. * Reducer returning the blocks state.
* *
@ -18138,7 +18172,7 @@ const withSaveReusableBlock = reducer => (state, action) => {
const reducer_blocks = Object(external_lodash_["flow"])(external_wp_data_["combineReducers"], withSaveReusableBlock, // needs to be before withBlockCache const reducer_blocks = Object(external_lodash_["flow"])(external_wp_data_["combineReducers"], withSaveReusableBlock, // needs to be before withBlockCache
withBlockTree, // needs to be before withInnerBlocksRemoveCascade withBlockTree, // needs to be before withInnerBlocksRemoveCascade
withInnerBlocksRemoveCascade, withReplaceInnerBlocks, // needs to be after withInnerBlocksRemoveCascade withInnerBlocksRemoveCascade, withReplaceInnerBlocks, // needs to be after withInnerBlocksRemoveCascade
withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ withBlockReset, withPersistentBlockChange, withIgnoredBlockChange, withResetControlledBlocks)({
byClientId() { byClientId() {
let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
let action = arguments.length > 1 ? arguments[1] : undefined; let action = arguments.length > 1 ? arguments[1] : undefined;
@ -19972,12 +20006,12 @@ function getBlockOrder(state, rootClientId) {
* *
* @param {Object} state Editor state. * @param {Object} state Editor state.
* @param {string} clientId Block client ID. * @param {string} clientId Block client ID.
* @param {?string} rootClientId Optional root client ID of block list.
* *
* @return {number} Index at which block exists in order. * @return {number} Index at which block exists in order.
*/ */
function getBlockIndex(state, clientId, rootClientId) { function getBlockIndex(state, clientId) {
const rootClientId = getBlockRootClientId(state, clientId);
return getBlockOrder(state, rootClientId).indexOf(clientId); return getBlockOrder(state, rootClientId).indexOf(clientId);
} }
/** /**
@ -22464,7 +22498,7 @@ const duplicateBlocks = function (clientIds) {
} }
const rootClientId = select.getBlockRootClientId(clientIds[0]); const rootClientId = select.getBlockRootClientId(clientIds[0]);
const lastSelectedIndex = select.getBlockIndex(Object(external_lodash_["last"])(Object(external_lodash_["castArray"])(clientIds)), rootClientId); const lastSelectedIndex = select.getBlockIndex(Object(external_lodash_["last"])(Object(external_lodash_["castArray"])(clientIds)));
const clonedBlocks = blocks.map(block => Object(external_wp_blocks_["__experimentalCloneSanitizedBlock"])(block)); const clonedBlocks = blocks.map(block => Object(external_wp_blocks_["__experimentalCloneSanitizedBlock"])(block));
dispatch.insertBlocks(clonedBlocks, lastSelectedIndex + 1, rootClientId, updateSelection); dispatch.insertBlocks(clonedBlocks, lastSelectedIndex + 1, rootClientId, updateSelection);
@ -22498,7 +22532,7 @@ const insertBeforeBlock = clientId => _ref18 => {
return; return;
} }
const firstSelectedIndex = select.getBlockIndex(clientId, rootClientId); const firstSelectedIndex = select.getBlockIndex(clientId);
return dispatch.insertDefaultBlock({}, rootClientId, firstSelectedIndex); return dispatch.insertDefaultBlock({}, rootClientId, firstSelectedIndex);
}; };
/** /**
@ -22524,7 +22558,7 @@ const insertAfterBlock = clientId => _ref19 => {
return; return;
} }
const firstSelectedIndex = select.getBlockIndex(clientId, rootClientId); const firstSelectedIndex = select.getBlockIndex(clientId);
return dispatch.insertDefaultBlock({}, rootClientId, firstSelectedIndex + 1); return dispatch.insertDefaultBlock({}, rootClientId, firstSelectedIndex + 1);
}; };
/** /**
@ -24545,6 +24579,9 @@ function useBlockSync(_ref) {
getBlockName, getBlockName,
getBlocks getBlocks
} = registry.select(_store__WEBPACK_IMPORTED_MODULE_4__[/* store */ "a"]); } = registry.select(_store__WEBPACK_IMPORTED_MODULE_4__[/* store */ "a"]);
const isControlled = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__["useSelect"])(select => {
return !clientId || select(_store__WEBPACK_IMPORTED_MODULE_4__[/* store */ "a"]).areInnerBlocksControlled(clientId);
}, [clientId]);
const pendingChanges = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useRef"])({ const pendingChanges = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useRef"])({
incoming: null, incoming: null,
outgoing: [] outgoing: []
@ -24562,17 +24599,22 @@ function useBlockSync(_ref) {
__unstableMarkNextChangeAsNotPersistent(); __unstableMarkNextChangeAsNotPersistent();
if (clientId) { if (clientId) {
setHasControlledInnerBlocks(clientId, true); // It is important to batch here because otherwise,
// as soon as `setHasControlledInnerBlocks` is called
// the effect to restore might be triggered
// before the actual blocks get set properly in state.
registry.batch(() => {
setHasControlledInnerBlocks(clientId, true);
const storeBlocks = controlledBlocks.map(block => Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["cloneBlock"])(block));
__unstableMarkNextChangeAsNotPersistent(); if (subscribed.current) {
pendingChanges.current.incoming = storeBlocks;
}
const storeBlocks = controlledBlocks.map(block => Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["cloneBlock"])(block)); __unstableMarkNextChangeAsNotPersistent();
if (subscribed.current) { replaceInnerBlocks(clientId, storeBlocks);
pendingChanges.current.incoming = storeBlocks; });
}
replaceInnerBlocks(clientId, storeBlocks);
} else { } else {
if (subscribed.current) { if (subscribed.current) {
pendingChanges.current.incoming = controlledBlocks; pendingChanges.current.incoming = controlledBlocks;
@ -24617,13 +24659,22 @@ function useBlockSync(_ref) {
} }
} }
}, [controlledBlocks, clientId]); }, [controlledBlocks, clientId]);
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(() => {
// When the block becomes uncontrolled, it means its inner state has been reset
// we need to take the blocks again from the external value property.
if (!isControlled) {
pendingChanges.current.outgoing = [];
setControlledBlocks();
}
}, [isControlled]);
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(() => { Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(() => {
const { const {
getSelectionStart, getSelectionStart,
getSelectionEnd, getSelectionEnd,
getSelectedBlocksInitialCaretPosition, getSelectedBlocksInitialCaretPosition,
isLastBlockChangePersistent, isLastBlockChangePersistent,
__unstableIsLastBlockChangeIgnored __unstableIsLastBlockChangeIgnored,
areInnerBlocksControlled
} = registry.select(_store__WEBPACK_IMPORTED_MODULE_4__[/* store */ "a"]); } = registry.select(_store__WEBPACK_IMPORTED_MODULE_4__[/* store */ "a"]);
let blocks = getBlocks(clientId); let blocks = getBlocks(clientId);
let isPersistent = isLastBlockChangePersistent(); let isPersistent = isLastBlockChangePersistent();
@ -24637,7 +24688,17 @@ function useBlockSync(_ref) {
// the subscription is triggering for a block (`clientId !== null`) // the subscription is triggering for a block (`clientId !== null`)
// and its block name can't be found because it's not on the list. // and its block name can't be found because it's not on the list.
// (`getBlockName( clientId ) === null`). // (`getBlockName( clientId ) === null`).
if (clientId !== null && getBlockName(clientId) === null) return; if (clientId !== null && getBlockName(clientId) === null) return; // When RESET_BLOCKS on parent blocks get called, the controlled blocks
// can reset to uncontrolled, in these situations, it means we need to populate
// the blocks again from the external blocks (the value property here)
// and we should stop triggering onChange
const isStillControlled = !clientId || areInnerBlocksControlled(clientId);
if (!isStillControlled) {
return;
}
const newIsPersistent = isLastBlockChangePersistent(); const newIsPersistent = isLastBlockChangePersistent();
const newBlocks = getBlocks(clientId); const newBlocks = getBlocks(clientId);
const areBlocksDifferent = newBlocks !== blocks; const areBlocksDifferent = newBlocks !== blocks;
@ -25045,8 +25106,8 @@ function BlockMover(_ref) {
const firstClientId = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["first"])(normalizedClientIds); const firstClientId = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["first"])(normalizedClientIds);
const block = getBlock(firstClientId); const block = getBlock(firstClientId);
const rootClientId = getBlockRootClientId(Object(lodash__WEBPACK_IMPORTED_MODULE_2__["first"])(normalizedClientIds)); const rootClientId = getBlockRootClientId(Object(lodash__WEBPACK_IMPORTED_MODULE_2__["first"])(normalizedClientIds));
const firstIndex = getBlockIndex(firstClientId, rootClientId); const firstIndex = getBlockIndex(firstClientId);
const lastIndex = getBlockIndex(Object(lodash__WEBPACK_IMPORTED_MODULE_2__["last"])(normalizedClientIds), rootClientId); const lastIndex = getBlockIndex(Object(lodash__WEBPACK_IMPORTED_MODULE_2__["last"])(normalizedClientIds));
const blockOrder = getBlockOrder(rootClientId); const blockOrder = getBlockOrder(rootClientId);
const isFirst = firstIndex === 0; const isFirst = firstIndex === 0;
const isLast = lastIndex === blockOrder.length - 1; const isLast = lastIndex === blockOrder.length - 1;
@ -26034,46 +26095,22 @@ const flexWrapOptions = ['wrap', 'nowrap'];
layout layout
} = _ref3; } = _ref3;
const { const {
orientation = 'horizontal', orientation = 'horizontal'
setCascadingProperties = false
} = layout; } = layout;
const blockGapSupport = Object(use_setting["a" /* default */])('spacing.blockGap'); const blockGapSupport = Object(use_setting["a" /* default */])('spacing.blockGap');
const hasBlockGapStylesSupport = blockGapSupport !== null; const hasBlockGapStylesSupport = blockGapSupport !== null;
const justifyContent = justifyContentMap[layout.justifyContent] || justifyContentMap.left; const justifyContent = justifyContentMap[layout.justifyContent] || justifyContentMap.left;
const flexWrap = flexWrapOptions.includes(layout.flexWrap) ? layout.flexWrap : 'wrap'; const flexWrap = flexWrapOptions.includes(layout.flexWrap) ? layout.flexWrap : 'wrap';
let rowOrientation = ` const rowOrientation = `
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: ${justifyContent}; justify-content: ${justifyContent};
`; `;
if (setCascadingProperties) {
// --layout-justification-setting allows children to inherit the value
// regardless or row or column direction.
rowOrientation += `
--layout-justification-setting: ${justifyContent};
--layout-direction: row;
--layout-wrap: ${flexWrap};
--layout-justify: ${justifyContent};
--layout-align: center;
`;
}
const alignItems = alignItemsMap[layout.justifyContent] || alignItemsMap.left; const alignItems = alignItemsMap[layout.justifyContent] || alignItemsMap.left;
let columnOrientation = ` const columnOrientation = `
flex-direction: column; flex-direction: column;
align-items: ${alignItems}; align-items: ${alignItems};
`; `;
if (setCascadingProperties) {
columnOrientation += `
--layout-justification-setting: ${alignItems};
--layout-direction: column;
--layout-justify: initial;
--layout-align: ${alignItems};
`;
}
return Object(external_wp_element_["createElement"])("style", null, ` return Object(external_wp_element_["createElement"])("style", null, `
${appendSelectors(selector)} { ${appendSelectors(selector)} {
display: flex; display: flex;
@ -26979,6 +27016,9 @@ function FontSizePicker(props) {
"use strict"; "use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ useBlockPreview; });
// UNUSED EXPORTS: BlockPreview // UNUSED EXPORTS: BlockPreview
// EXTERNAL MODULE: external ["wp","element"] // EXTERNAL MODULE: external ["wp","element"]
@ -26987,6 +27027,13 @@ var external_wp_element_ = __webpack_require__("GRId");
// EXTERNAL MODULE: external "lodash" // EXTERNAL MODULE: external "lodash"
var external_lodash_ = __webpack_require__("YLtl"); var external_lodash_ = __webpack_require__("YLtl");
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__("TSYQ");
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: external ["wp","compose"]
var external_wp_compose_ = __webpack_require__("K9lf");
// EXTERNAL MODULE: external ["wp","data"] // EXTERNAL MODULE: external ["wp","data"]
var external_wp_data_ = __webpack_require__("1ZqX"); var external_wp_data_ = __webpack_require__("1ZqX");
@ -27023,9 +27070,6 @@ function LiveBlockPreview(_ref) {
}, Object(external_wp_element_["createElement"])(external_wp_components_["Disabled"], null, Object(external_wp_element_["createElement"])(block_list["c" /* default */], null))); }, Object(external_wp_element_["createElement"])(external_wp_components_["Disabled"], null, Object(external_wp_element_["createElement"])(block_list["c" /* default */], null)));
} }
// EXTERNAL MODULE: external ["wp","compose"]
var external_wp_compose_ = __webpack_require__("K9lf");
// EXTERNAL MODULE: ./node_modules/@wordpress/block-editor/build-module/components/iframe/index.js // EXTERNAL MODULE: ./node_modules/@wordpress/block-editor/build-module/components/iframe/index.js
var iframe = __webpack_require__("hHnB"); var iframe = __webpack_require__("hHnB");
@ -27117,12 +27161,14 @@ function AutoBlockPreview(_ref) {
* External dependencies * External dependencies
*/ */
/** /**
* WordPress dependencies * WordPress dependencies
*/ */
/** /**
* Internal dependencies * Internal dependencies
*/ */
@ -27131,6 +27177,7 @@ function AutoBlockPreview(_ref) {
function BlockPreview(_ref) { function BlockPreview(_ref) {
let { let {
blocks, blocks,
@ -27175,6 +27222,49 @@ function BlockPreview(_ref) {
*/ */
/* harmony default export */ var block_preview = __webpack_exports__["a"] = (Object(external_wp_element_["memo"])(BlockPreview)); /* harmony default export */ var block_preview = __webpack_exports__["a"] = (Object(external_wp_element_["memo"])(BlockPreview));
/**
* This hook is used to lightly mark an element as a block preview wrapper
* element. Call this hook and pass the returned props to the element to mark as
* a block preview wrapper, automatically rendering inner blocks as children. If
* you define a ref for the element, it is important to pass the ref to this
* hook, which the hook in turn will pass to the component through the props it
* returns. Optionally, you can also pass any other props through this hook, and
* they will be merged and returned.
*
* @param {Object} options Preview options.
* @param {WPBlock[]} options.blocks Block objects.
* @param {Object} options.props Optional. Props to pass to the element. Must contain
* the ref if one is defined.
* @param {Object} options.__experimentalLayout Layout settings to be used in the preview.
*
*/
function useBlockPreview(_ref2) {
let {
blocks,
props = {},
__experimentalLayout
} = _ref2;
const originalSettings = Object(external_wp_data_["useSelect"])(select => select(store["a" /* store */]).getSettings(), []);
const disabledRef = Object(external_wp_compose_["__experimentalUseDisabled"])();
const ref = Object(external_wp_compose_["useMergeRefs"])([props.ref, disabledRef]);
const settings = Object(external_wp_element_["useMemo"])(() => ({ ...originalSettings,
__experimentalBlockPatterns: []
}), [originalSettings]);
const renderedBlocks = Object(external_wp_element_["useMemo"])(() => Object(external_lodash_["castArray"])(blocks), [blocks]);
const children = Object(external_wp_element_["createElement"])(provider["a" /* default */], {
value: renderedBlocks,
settings: settings
}, Object(external_wp_element_["createElement"])(block_list["a" /* BlockListItems */], {
renderAppender: false,
__experimentalLayout: __experimentalLayout
}));
return { ...props,
ref,
className: classnames_default()(props.className, 'block-editor-block-preview__live-content', 'components-disabled'),
children: blocks !== null && blocks !== void 0 && blocks.length ? children : null
};
}
/***/ }), /***/ }),
@ -28551,7 +28641,7 @@ function useInBetweenInserter() {
return; return;
} }
const index = getBlockIndex(clientId, rootClientId); // Don't show the in-between inserter before the first block in const index = getBlockIndex(clientId); // Don't show the in-between inserter before the first block in
// the list (preserves the original behaviour). // the list (preserves the original behaviour).
if (index === 0) { if (index === 0) {
@ -30299,17 +30389,41 @@ function BlockSupportToolsPanel(_ref) {
label label
} = _ref; } = _ref;
const { const {
clientId, attributes,
attributes clientIds,
panelId
} = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__["useSelect"])(select => { } = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__["useSelect"])(select => {
const { const {
getBlockAttributes, getBlockAttributes,
getSelectedBlockClientId getMultiSelectedBlockClientIds,
} = select(_store__WEBPACK_IMPORTED_MODULE_3__[/* store */ "a"]); getSelectedBlockClientId,
hasMultiSelection
} = select(_store__WEBPACK_IMPORTED_MODULE_3__[/* store */ "a"]); // When we currently have a multi-selection, the value returned from
// `getSelectedBlockClientId()` is `null`. When a `null` value is used
// for the `panelId`, a `ToolsPanel` will still allow panel items to
// register themselves despite their panelIds not matching.
const selectedBlockClientId = getSelectedBlockClientId(); const selectedBlockClientId = getSelectedBlockClientId();
if (hasMultiSelection()) {
const selectedBlockClientIds = getMultiSelectedBlockClientIds();
const selectedBlockAttributes = selectedBlockClientIds.reduce((blockAttributes, blockId) => {
blockAttributes[blockId] = getBlockAttributes(blockId);
return blockAttributes;
}, {});
return {
panelId: selectedBlockClientId,
clientIds: selectedBlockClientIds,
attributes: selectedBlockAttributes
};
}
return { return {
clientId: selectedBlockClientId, panelId: selectedBlockClientId,
attributes: getBlockAttributes(selectedBlockClientId) clientIds: [selectedBlockClientId],
attributes: {
[selectedBlockClientId]: getBlockAttributes(selectedBlockClientId)
}
}; };
}, []); }, []);
const { const {
@ -30318,30 +30432,34 @@ function BlockSupportToolsPanel(_ref) {
const resetAll = function () { const resetAll = function () {
let resetFilters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; let resetFilters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
const { const newAttributes = {};
style clientIds.forEach(clientId => {
} = attributes; const {
let newAttributes = { style
style } = attributes[clientId];
}; let newBlockAttributes = {
resetFilters.forEach(resetFilter => { style
newAttributes = { ...newAttributes,
...resetFilter(newAttributes)
}; };
}); // Enforce a cleaned style object. resetFilters.forEach(resetFilter => {
newBlockAttributes = { ...newBlockAttributes,
...resetFilter(newBlockAttributes)
};
}); // Enforce a cleaned style object.
newAttributes = { ...newAttributes, newBlockAttributes = { ...newBlockAttributes,
style: Object(_hooks_utils__WEBPACK_IMPORTED_MODULE_4__[/* cleanEmptyObject */ "a"])(newAttributes.style) style: Object(_hooks_utils__WEBPACK_IMPORTED_MODULE_4__[/* cleanEmptyObject */ "a"])(newBlockAttributes.style)
}; };
updateBlockAttributes(clientId, newAttributes); newAttributes[clientId] = newBlockAttributes;
});
updateBlockAttributes(clientIds, newAttributes, true);
}; };
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["__experimentalToolsPanel"], { return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["__experimentalToolsPanel"], {
className: `${group}-block-support-panel`, className: `${group}-block-support-panel`,
label: label, label: label,
resetAll: resetAll, resetAll: resetAll,
key: clientId, key: panelId,
panelId: clientId, panelId: panelId,
hasInnerWrapper: true, hasInnerWrapper: true,
shouldRenderPlaceholderItems: true // Required to maintain fills ordering. shouldRenderPlaceholderItems: true // Required to maintain fills ordering.
@ -33594,7 +33712,7 @@ const applyWithDispatch = Object(external_wp_data_["withDispatch"])((dispatch, o
const { const {
getBlockIndex getBlockIndex
} = select(store["a" /* store */]); } = select(store["a" /* store */]);
const index = getBlockIndex(clientId, rootClientId); const index = getBlockIndex(clientId);
insertBlocks(blocks, index + 1, rootClientId); insertBlocks(blocks, index + 1, rootClientId);
}, },
@ -38168,7 +38286,6 @@ function useBlockProps() {
enableAnimation enableAnimation
} = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["useSelect"])(select => { } = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["useSelect"])(select => {
const { const {
getBlockRootClientId,
getBlockIndex, getBlockIndex,
getBlockMode, getBlockMode,
getBlockName, getBlockName,
@ -38182,10 +38299,9 @@ function useBlockProps() {
const isSelected = isBlockSelected(clientId); const isSelected = isBlockSelected(clientId);
const isPartOfMultiSelection = isBlockMultiSelected(clientId) || isAncestorMultiSelected(clientId); const isPartOfMultiSelection = isBlockMultiSelected(clientId) || isAncestorMultiSelected(clientId);
const blockName = getBlockName(clientId); const blockName = getBlockName(clientId);
const rootClientId = getBlockRootClientId(clientId);
const blockType = Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["getBlockType"])(blockName); const blockType = Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["getBlockType"])(blockName);
return { return {
index: getBlockIndex(clientId, rootClientId), index: getBlockIndex(clientId),
mode: getBlockMode(clientId), mode: getBlockMode(clientId),
name: blockName, name: blockName,
blockApiVersion: (blockType === null || blockType === void 0 ? void 0 : blockType.apiVersion) || 1, blockApiVersion: (blockType === null || blockType === void 0 ? void 0 : blockType.apiVersion) || 1,
@ -39928,7 +40044,7 @@ function QuickInserter(_ref) {
getBlockIndex, getBlockIndex,
getBlockCount getBlockCount
} = select(store["a" /* store */]); } = select(store["a" /* store */]);
const index = getBlockIndex(clientId, rootClientId); const index = getBlockIndex(clientId);
return { return {
setInserterIsOpened: getSettings().__experimentalSetIsInserterOpened, setInserterIsOpened: getSettings().__experimentalSetIsInserterOpened,
insertionIndex: index === -1 ? getBlockCount() : index insertionIndex: index === -1 ? getBlockCount() : index
@ -40251,14 +40367,14 @@ class inserter_Inserter extends external_wp_element_["Component"] {
} = select(store["a" /* store */]); // If the clientId is defined, we insert at the position of the block. } = select(store["a" /* store */]); // If the clientId is defined, we insert at the position of the block.
if (clientId) { if (clientId) {
return getBlockIndex(clientId, rootClientId); return getBlockIndex(clientId);
} // If there a selected block, we insert after the selected block. } // If there a selected block, we insert after the selected block.
const end = getBlockSelectionEnd(); const end = getBlockSelectionEnd();
if (!isAppender && end && getBlockRootClientId(end) === rootClientId) { if (!isAppender && end && getBlockRootClientId(end) === rootClientId) {
return getBlockIndex(end, rootClientId) + 1; return getBlockIndex(end) + 1;
} // Otherwise, we insert at the end of the current rootClientId } // Otherwise, we insert at the end of the current rootClientId
@ -40728,21 +40844,21 @@ __webpack_require__.d(__webpack_exports__, "__experimentalUseColorProps", functi
__webpack_require__.d(__webpack_exports__, "__experimentalUseCustomSides", function() { return /* reexport */ useCustomSides; }); __webpack_require__.d(__webpack_exports__, "__experimentalUseCustomSides", function() { return /* reexport */ useCustomSides; });
__webpack_require__.d(__webpack_exports__, "__experimentalGetSpacingClassesAndStyles", function() { return /* reexport */ getSpacingClassesAndStyles; }); __webpack_require__.d(__webpack_exports__, "__experimentalGetSpacingClassesAndStyles", function() { return /* reexport */ getSpacingClassesAndStyles; });
__webpack_require__.d(__webpack_exports__, "useCachedTruthy", function() { return /* reexport */ useCachedTruthy; }); __webpack_require__.d(__webpack_exports__, "useCachedTruthy", function() { return /* reexport */ useCachedTruthy; });
__webpack_require__.d(__webpack_exports__, "getColorClassName", function() { return /* reexport */ components["gc" /* getColorClassName */]; }); __webpack_require__.d(__webpack_exports__, "getColorClassName", function() { return /* reexport */ components["hc" /* getColorClassName */]; });
__webpack_require__.d(__webpack_exports__, "getColorObjectByAttributeValues", function() { return /* reexport */ components["hc" /* getColorObjectByAttributeValues */]; }); __webpack_require__.d(__webpack_exports__, "getColorObjectByAttributeValues", function() { return /* reexport */ components["ic" /* getColorObjectByAttributeValues */]; });
__webpack_require__.d(__webpack_exports__, "getColorObjectByColorValue", function() { return /* reexport */ components["ic" /* getColorObjectByColorValue */]; }); __webpack_require__.d(__webpack_exports__, "getColorObjectByColorValue", function() { return /* reexport */ components["jc" /* getColorObjectByColorValue */]; });
__webpack_require__.d(__webpack_exports__, "createCustomColorsHOC", function() { return /* reexport */ components["fc" /* createCustomColorsHOC */]; }); __webpack_require__.d(__webpack_exports__, "createCustomColorsHOC", function() { return /* reexport */ components["gc" /* createCustomColorsHOC */]; });
__webpack_require__.d(__webpack_exports__, "withColors", function() { return /* reexport */ components["uc" /* withColors */]; }); __webpack_require__.d(__webpack_exports__, "withColors", function() { return /* reexport */ components["vc" /* withColors */]; });
__webpack_require__.d(__webpack_exports__, "__experimentalGetGradientClass", function() { return /* reexport */ components["xb" /* __experimentalGetGradientClass */]; }); __webpack_require__.d(__webpack_exports__, "__experimentalGetGradientClass", function() { return /* reexport */ components["xb" /* __experimentalGetGradientClass */]; });
__webpack_require__.d(__webpack_exports__, "getGradientValueBySlug", function() { return /* reexport */ components["nc" /* getGradientValueBySlug */]; }); __webpack_require__.d(__webpack_exports__, "getGradientValueBySlug", function() { return /* reexport */ components["oc" /* getGradientValueBySlug */]; });
__webpack_require__.d(__webpack_exports__, "__experimentalGetGradientObjectByGradientValue", function() { return /* reexport */ components["yb" /* __experimentalGetGradientObjectByGradientValue */]; }); __webpack_require__.d(__webpack_exports__, "__experimentalGetGradientObjectByGradientValue", function() { return /* reexport */ components["yb" /* __experimentalGetGradientObjectByGradientValue */]; });
__webpack_require__.d(__webpack_exports__, "getGradientSlugByValue", function() { return /* reexport */ components["mc" /* getGradientSlugByValue */]; }); __webpack_require__.d(__webpack_exports__, "getGradientSlugByValue", function() { return /* reexport */ components["nc" /* getGradientSlugByValue */]; });
__webpack_require__.d(__webpack_exports__, "__experimentalUseGradient", function() { return /* reexport */ components["Rb" /* __experimentalUseGradient */]; }); __webpack_require__.d(__webpack_exports__, "__experimentalUseGradient", function() { return /* reexport */ components["Sb" /* __experimentalUseGradient */]; });
__webpack_require__.d(__webpack_exports__, "getFontSize", function() { return /* reexport */ components["jc" /* getFontSize */]; }); __webpack_require__.d(__webpack_exports__, "getFontSize", function() { return /* reexport */ components["kc" /* getFontSize */]; });
__webpack_require__.d(__webpack_exports__, "getFontSizeClass", function() { return /* reexport */ components["kc" /* getFontSizeClass */]; }); __webpack_require__.d(__webpack_exports__, "getFontSizeClass", function() { return /* reexport */ components["lc" /* getFontSizeClass */]; });
__webpack_require__.d(__webpack_exports__, "getFontSizeObjectByValue", function() { return /* reexport */ components["lc" /* getFontSizeObjectByValue */]; }); __webpack_require__.d(__webpack_exports__, "getFontSizeObjectByValue", function() { return /* reexport */ components["mc" /* getFontSizeObjectByValue */]; });
__webpack_require__.d(__webpack_exports__, "FontSizePicker", function() { return /* reexport */ components["I" /* FontSizePicker */]; }); __webpack_require__.d(__webpack_exports__, "FontSizePicker", function() { return /* reexport */ components["I" /* FontSizePicker */]; });
__webpack_require__.d(__webpack_exports__, "withFontSizes", function() { return /* reexport */ components["vc" /* withFontSizes */]; }); __webpack_require__.d(__webpack_exports__, "withFontSizes", function() { return /* reexport */ components["wc" /* withFontSizes */]; });
__webpack_require__.d(__webpack_exports__, "AlignmentControl", function() { return /* reexport */ components["a" /* AlignmentControl */]; }); __webpack_require__.d(__webpack_exports__, "AlignmentControl", function() { return /* reexport */ components["a" /* AlignmentControl */]; });
__webpack_require__.d(__webpack_exports__, "AlignmentToolbar", function() { return /* reexport */ components["b" /* AlignmentToolbar */]; }); __webpack_require__.d(__webpack_exports__, "AlignmentToolbar", function() { return /* reexport */ components["b" /* AlignmentToolbar */]; });
__webpack_require__.d(__webpack_exports__, "Autocomplete", function() { return /* reexport */ components["c" /* Autocomplete */]; }); __webpack_require__.d(__webpack_exports__, "Autocomplete", function() { return /* reexport */ components["c" /* Autocomplete */]; });
@ -40757,7 +40873,7 @@ __webpack_require__.d(__webpack_exports__, "BlockControls", function() { return
__webpack_require__.d(__webpack_exports__, "BlockFormatControls", function() { return /* reexport */ components["m" /* BlockFormatControls */]; }); __webpack_require__.d(__webpack_exports__, "BlockFormatControls", function() { return /* reexport */ components["m" /* BlockFormatControls */]; });
__webpack_require__.d(__webpack_exports__, "BlockColorsStyleSelector", function() { return /* reexport */ components["g" /* BlockColorsStyleSelector */]; }); __webpack_require__.d(__webpack_exports__, "BlockColorsStyleSelector", function() { return /* reexport */ components["g" /* BlockColorsStyleSelector */]; });
__webpack_require__.d(__webpack_exports__, "BlockEdit", function() { return /* reexport */ components["j" /* BlockEdit */]; }); __webpack_require__.d(__webpack_exports__, "BlockEdit", function() { return /* reexport */ components["j" /* BlockEdit */]; });
__webpack_require__.d(__webpack_exports__, "useBlockEditContext", function() { return /* reexport */ components["pc" /* useBlockEditContext */]; }); __webpack_require__.d(__webpack_exports__, "useBlockEditContext", function() { return /* reexport */ components["qc" /* useBlockEditContext */]; });
__webpack_require__.d(__webpack_exports__, "BlockIcon", function() { return /* reexport */ components["n" /* BlockIcon */]; }); __webpack_require__.d(__webpack_exports__, "BlockIcon", function() { return /* reexport */ components["n" /* BlockIcon */]; });
__webpack_require__.d(__webpack_exports__, "BlockNavigationDropdown", function() { return /* reexport */ components["r" /* BlockNavigationDropdown */]; }); __webpack_require__.d(__webpack_exports__, "BlockNavigationDropdown", function() { return /* reexport */ components["r" /* BlockNavigationDropdown */]; });
__webpack_require__.d(__webpack_exports__, "__experimentalBlockVariationPicker", function() { return /* reexport */ components["pb" /* __experimentalBlockVariationPicker */]; }); __webpack_require__.d(__webpack_exports__, "__experimentalBlockVariationPicker", function() { return /* reexport */ components["pb" /* __experimentalBlockVariationPicker */]; });
@ -40784,7 +40900,7 @@ __webpack_require__.d(__webpack_exports__, "__experimentalImageEditor", function
__webpack_require__.d(__webpack_exports__, "__experimentalImageEditingProvider", function() { return /* reexport */ components["zb" /* __experimentalImageEditingProvider */]; }); __webpack_require__.d(__webpack_exports__, "__experimentalImageEditingProvider", function() { return /* reexport */ components["zb" /* __experimentalImageEditingProvider */]; });
__webpack_require__.d(__webpack_exports__, "__experimentalImageSizeControl", function() { return /* reexport */ components["Bb" /* __experimentalImageSizeControl */]; }); __webpack_require__.d(__webpack_exports__, "__experimentalImageSizeControl", function() { return /* reexport */ components["Bb" /* __experimentalImageSizeControl */]; });
__webpack_require__.d(__webpack_exports__, "InnerBlocks", function() { return /* reexport */ components["J" /* InnerBlocks */]; }); __webpack_require__.d(__webpack_exports__, "InnerBlocks", function() { return /* reexport */ components["J" /* InnerBlocks */]; });
__webpack_require__.d(__webpack_exports__, "useInnerBlocksProps", function() { return /* reexport */ components["rc" /* useInnerBlocksProps */]; }); __webpack_require__.d(__webpack_exports__, "useInnerBlocksProps", function() { return /* reexport */ components["sc" /* useInnerBlocksProps */]; });
__webpack_require__.d(__webpack_exports__, "InspectorControls", function() { return /* reexport */ components["M" /* InspectorControls */]; }); __webpack_require__.d(__webpack_exports__, "InspectorControls", function() { return /* reexport */ components["M" /* InspectorControls */]; });
__webpack_require__.d(__webpack_exports__, "InspectorAdvancedControls", function() { return /* reexport */ components["L" /* InspectorAdvancedControls */]; }); __webpack_require__.d(__webpack_exports__, "InspectorAdvancedControls", function() { return /* reexport */ components["L" /* InspectorAdvancedControls */]; });
__webpack_require__.d(__webpack_exports__, "JustifyToolbar", function() { return /* reexport */ components["O" /* JustifyToolbar */]; }); __webpack_require__.d(__webpack_exports__, "JustifyToolbar", function() { return /* reexport */ components["O" /* JustifyToolbar */]; });
@ -40805,55 +40921,56 @@ __webpack_require__.d(__webpack_exports__, "__experimentalResponsiveBlockControl
__webpack_require__.d(__webpack_exports__, "RichText", function() { return /* reexport */ components["ab" /* RichText */]; }); __webpack_require__.d(__webpack_exports__, "RichText", function() { return /* reexport */ components["ab" /* RichText */]; });
__webpack_require__.d(__webpack_exports__, "RichTextShortcut", function() { return /* reexport */ components["bb" /* RichTextShortcut */]; }); __webpack_require__.d(__webpack_exports__, "RichTextShortcut", function() { return /* reexport */ components["bb" /* RichTextShortcut */]; });
__webpack_require__.d(__webpack_exports__, "RichTextToolbarButton", function() { return /* reexport */ components["cb" /* RichTextToolbarButton */]; }); __webpack_require__.d(__webpack_exports__, "RichTextToolbarButton", function() { return /* reexport */ components["cb" /* RichTextToolbarButton */]; });
__webpack_require__.d(__webpack_exports__, "__unstableRichTextInputEvent", function() { return /* reexport */ components["Yb" /* __unstableRichTextInputEvent */]; }); __webpack_require__.d(__webpack_exports__, "__unstableRichTextInputEvent", function() { return /* reexport */ components["Zb" /* __unstableRichTextInputEvent */]; });
__webpack_require__.d(__webpack_exports__, "ToolSelector", function() { return /* reexport */ components["eb" /* ToolSelector */]; }); __webpack_require__.d(__webpack_exports__, "ToolSelector", function() { return /* reexport */ components["eb" /* ToolSelector */]; });
__webpack_require__.d(__webpack_exports__, "__experimentalUnitControl", function() { return /* reexport */ components["Qb" /* __experimentalUnitControl */]; }); __webpack_require__.d(__webpack_exports__, "__experimentalUnitControl", function() { return /* reexport */ components["Qb" /* __experimentalUnitControl */]; });
__webpack_require__.d(__webpack_exports__, "URLInput", function() { return /* reexport */ components["gb" /* URLInput */]; }); __webpack_require__.d(__webpack_exports__, "URLInput", function() { return /* reexport */ components["gb" /* URLInput */]; });
__webpack_require__.d(__webpack_exports__, "URLInputButton", function() { return /* reexport */ components["hb" /* URLInputButton */]; }); __webpack_require__.d(__webpack_exports__, "URLInputButton", function() { return /* reexport */ components["hb" /* URLInputButton */]; });
__webpack_require__.d(__webpack_exports__, "URLPopover", function() { return /* reexport */ components["ib" /* URLPopover */]; }); __webpack_require__.d(__webpack_exports__, "URLPopover", function() { return /* reexport */ components["ib" /* URLPopover */]; });
__webpack_require__.d(__webpack_exports__, "__experimentalImageURLInputUI", function() { return /* reexport */ components["Cb" /* __experimentalImageURLInputUI */]; }); __webpack_require__.d(__webpack_exports__, "__experimentalImageURLInputUI", function() { return /* reexport */ components["Cb" /* __experimentalImageURLInputUI */]; });
__webpack_require__.d(__webpack_exports__, "withColorContext", function() { return /* reexport */ components["tc" /* withColorContext */]; }); __webpack_require__.d(__webpack_exports__, "withColorContext", function() { return /* reexport */ components["uc" /* withColorContext */]; });
__webpack_require__.d(__webpack_exports__, "__unstableBlockSettingsMenuFirstItem", function() { return /* reexport */ components["Ub" /* __unstableBlockSettingsMenuFirstItem */]; }); __webpack_require__.d(__webpack_exports__, "__unstableBlockSettingsMenuFirstItem", function() { return /* reexport */ components["Vb" /* __unstableBlockSettingsMenuFirstItem */]; });
__webpack_require__.d(__webpack_exports__, "__unstableInserterMenuExtension", function() { return /* reexport */ components["Xb" /* __unstableInserterMenuExtension */]; }); __webpack_require__.d(__webpack_exports__, "__unstableInserterMenuExtension", function() { return /* reexport */ components["Yb" /* __unstableInserterMenuExtension */]; });
__webpack_require__.d(__webpack_exports__, "__experimentalPreviewOptions", function() { return /* reexport */ components["Mb" /* __experimentalPreviewOptions */]; }); __webpack_require__.d(__webpack_exports__, "__experimentalPreviewOptions", function() { return /* reexport */ components["Mb" /* __experimentalPreviewOptions */]; });
__webpack_require__.d(__webpack_exports__, "__experimentalUseResizeCanvas", function() { return /* reexport */ components["Tb" /* __experimentalUseResizeCanvas */]; }); __webpack_require__.d(__webpack_exports__, "__experimentalUseResizeCanvas", function() { return /* reexport */ components["Ub" /* __experimentalUseResizeCanvas */]; });
__webpack_require__.d(__webpack_exports__, "BlockInspector", function() { return /* reexport */ components["o" /* BlockInspector */]; }); __webpack_require__.d(__webpack_exports__, "BlockInspector", function() { return /* reexport */ components["o" /* BlockInspector */]; });
__webpack_require__.d(__webpack_exports__, "BlockList", function() { return /* reexport */ components["p" /* BlockList */]; }); __webpack_require__.d(__webpack_exports__, "BlockList", function() { return /* reexport */ components["p" /* BlockList */]; });
__webpack_require__.d(__webpack_exports__, "useBlockProps", function() { return /* reexport */ components["qc" /* useBlockProps */]; }); __webpack_require__.d(__webpack_exports__, "useBlockProps", function() { return /* reexport */ components["rc" /* useBlockProps */]; });
__webpack_require__.d(__webpack_exports__, "__experimentalLayoutStyle", function() { return /* reexport */ components["Db" /* __experimentalLayoutStyle */]; }); __webpack_require__.d(__webpack_exports__, "__experimentalLayoutStyle", function() { return /* reexport */ components["Db" /* __experimentalLayoutStyle */]; });
__webpack_require__.d(__webpack_exports__, "BlockMover", function() { return /* reexport */ components["q" /* BlockMover */]; }); __webpack_require__.d(__webpack_exports__, "BlockMover", function() { return /* reexport */ components["q" /* BlockMover */]; });
__webpack_require__.d(__webpack_exports__, "BlockPreview", function() { return /* reexport */ components["s" /* BlockPreview */]; }); __webpack_require__.d(__webpack_exports__, "BlockPreview", function() { return /* reexport */ components["s" /* BlockPreview */]; });
__webpack_require__.d(__webpack_exports__, "__experimentalUseBlockPreview", function() { return /* reexport */ components["Rb" /* __experimentalUseBlockPreview */]; });
__webpack_require__.d(__webpack_exports__, "BlockSelectionClearer", function() { return /* reexport */ components["t" /* BlockSelectionClearer */]; }); __webpack_require__.d(__webpack_exports__, "BlockSelectionClearer", function() { return /* reexport */ components["t" /* BlockSelectionClearer */]; });
__webpack_require__.d(__webpack_exports__, "__unstableUseBlockSelectionClearer", function() { return /* reexport */ components["Zb" /* __unstableUseBlockSelectionClearer */]; }); __webpack_require__.d(__webpack_exports__, "__unstableUseBlockSelectionClearer", function() { return /* reexport */ components["ac" /* __unstableUseBlockSelectionClearer */]; });
__webpack_require__.d(__webpack_exports__, "BlockSettingsMenu", function() { return /* reexport */ components["u" /* BlockSettingsMenu */]; }); __webpack_require__.d(__webpack_exports__, "BlockSettingsMenu", function() { return /* reexport */ components["u" /* BlockSettingsMenu */]; });
__webpack_require__.d(__webpack_exports__, "BlockSettingsMenuControls", function() { return /* reexport */ components["v" /* BlockSettingsMenuControls */]; }); __webpack_require__.d(__webpack_exports__, "BlockSettingsMenuControls", function() { return /* reexport */ components["v" /* BlockSettingsMenuControls */]; });
__webpack_require__.d(__webpack_exports__, "BlockTitle", function() { return /* reexport */ components["w" /* BlockTitle */]; }); __webpack_require__.d(__webpack_exports__, "BlockTitle", function() { return /* reexport */ components["w" /* BlockTitle */]; });
__webpack_require__.d(__webpack_exports__, "BlockToolbar", function() { return /* reexport */ components["x" /* BlockToolbar */]; }); __webpack_require__.d(__webpack_exports__, "BlockToolbar", function() { return /* reexport */ components["x" /* BlockToolbar */]; });
__webpack_require__.d(__webpack_exports__, "BlockTools", function() { return /* reexport */ components["y" /* BlockTools */]; }); __webpack_require__.d(__webpack_exports__, "BlockTools", function() { return /* reexport */ components["y" /* BlockTools */]; });
__webpack_require__.d(__webpack_exports__, "CopyHandler", function() { return /* reexport */ components["G" /* CopyHandler */]; }); __webpack_require__.d(__webpack_exports__, "CopyHandler", function() { return /* reexport */ components["G" /* CopyHandler */]; });
__webpack_require__.d(__webpack_exports__, "__unstableUseClipboardHandler", function() { return /* reexport */ components["bc" /* __unstableUseClipboardHandler */]; }); __webpack_require__.d(__webpack_exports__, "__unstableUseClipboardHandler", function() { return /* reexport */ components["cc" /* __unstableUseClipboardHandler */]; });
__webpack_require__.d(__webpack_exports__, "DefaultBlockAppender", function() { return /* reexport */ components["H" /* DefaultBlockAppender */]; }); __webpack_require__.d(__webpack_exports__, "DefaultBlockAppender", function() { return /* reexport */ components["H" /* DefaultBlockAppender */]; });
__webpack_require__.d(__webpack_exports__, "__unstableEditorStyles", function() { return /* reexport */ components["Vb" /* __unstableEditorStyles */]; }); __webpack_require__.d(__webpack_exports__, "__unstableEditorStyles", function() { return /* reexport */ components["Wb" /* __unstableEditorStyles */]; });
__webpack_require__.d(__webpack_exports__, "Inserter", function() { return /* reexport */ components["K" /* Inserter */]; }); __webpack_require__.d(__webpack_exports__, "Inserter", function() { return /* reexport */ components["K" /* Inserter */]; });
__webpack_require__.d(__webpack_exports__, "__experimentalLibrary", function() { return /* reexport */ components["Fb" /* __experimentalLibrary */]; }); __webpack_require__.d(__webpack_exports__, "__experimentalLibrary", function() { return /* reexport */ components["Fb" /* __experimentalLibrary */]; });
__webpack_require__.d(__webpack_exports__, "BlockEditorKeyboardShortcuts", function() { return /* reexport */ components["k" /* BlockEditorKeyboardShortcuts */]; }); __webpack_require__.d(__webpack_exports__, "BlockEditorKeyboardShortcuts", function() { return /* reexport */ components["k" /* BlockEditorKeyboardShortcuts */]; });
__webpack_require__.d(__webpack_exports__, "MultiSelectScrollIntoView", function() { return /* reexport */ components["U" /* MultiSelectScrollIntoView */]; }); __webpack_require__.d(__webpack_exports__, "MultiSelectScrollIntoView", function() { return /* reexport */ components["U" /* MultiSelectScrollIntoView */]; });
__webpack_require__.d(__webpack_exports__, "NavigableToolbar", function() { return /* reexport */ components["V" /* NavigableToolbar */]; }); __webpack_require__.d(__webpack_exports__, "NavigableToolbar", function() { return /* reexport */ components["V" /* NavigableToolbar */]; });
__webpack_require__.d(__webpack_exports__, "ObserveTyping", function() { return /* reexport */ components["W" /* ObserveTyping */]; }); __webpack_require__.d(__webpack_exports__, "ObserveTyping", function() { return /* reexport */ components["W" /* ObserveTyping */]; });
__webpack_require__.d(__webpack_exports__, "__unstableUseTypingObserver", function() { return /* reexport */ components["ec" /* __unstableUseTypingObserver */]; }); __webpack_require__.d(__webpack_exports__, "__unstableUseTypingObserver", function() { return /* reexport */ components["fc" /* __unstableUseTypingObserver */]; });
__webpack_require__.d(__webpack_exports__, "__unstableUseMouseMoveTypingReset", function() { return /* reexport */ components["cc" /* __unstableUseMouseMoveTypingReset */]; }); __webpack_require__.d(__webpack_exports__, "__unstableUseMouseMoveTypingReset", function() { return /* reexport */ components["dc" /* __unstableUseMouseMoveTypingReset */]; });
__webpack_require__.d(__webpack_exports__, "PreserveScrollInReorder", function() { return /* reexport */ components["Z" /* PreserveScrollInReorder */]; }); __webpack_require__.d(__webpack_exports__, "PreserveScrollInReorder", function() { return /* reexport */ components["Z" /* PreserveScrollInReorder */]; });
__webpack_require__.d(__webpack_exports__, "SkipToSelectedBlock", function() { return /* reexport */ components["db" /* SkipToSelectedBlock */]; }); __webpack_require__.d(__webpack_exports__, "SkipToSelectedBlock", function() { return /* reexport */ components["db" /* SkipToSelectedBlock */]; });
__webpack_require__.d(__webpack_exports__, "Typewriter", function() { return /* reexport */ components["fb" /* Typewriter */]; }); __webpack_require__.d(__webpack_exports__, "Typewriter", function() { return /* reexport */ components["fb" /* Typewriter */]; });
__webpack_require__.d(__webpack_exports__, "__unstableUseTypewriter", function() { return /* reexport */ components["dc" /* __unstableUseTypewriter */]; }); __webpack_require__.d(__webpack_exports__, "__unstableUseTypewriter", function() { return /* reexport */ components["ec" /* __unstableUseTypewriter */]; });
__webpack_require__.d(__webpack_exports__, "Warning", function() { return /* reexport */ components["jb" /* Warning */]; }); __webpack_require__.d(__webpack_exports__, "Warning", function() { return /* reexport */ components["jb" /* Warning */]; });
__webpack_require__.d(__webpack_exports__, "WritingFlow", function() { return /* reexport */ components["kb" /* WritingFlow */]; }); __webpack_require__.d(__webpack_exports__, "WritingFlow", function() { return /* reexport */ components["kb" /* WritingFlow */]; });
__webpack_require__.d(__webpack_exports__, "__unstableUseCanvasClickRedirect", function() { return /* reexport */ components["ac" /* __unstableUseCanvasClickRedirect */]; }); __webpack_require__.d(__webpack_exports__, "__unstableUseCanvasClickRedirect", function() { return /* reexport */ components["bc" /* __unstableUseCanvasClickRedirect */]; });
__webpack_require__.d(__webpack_exports__, "useBlockDisplayInformation", function() { return /* reexport */ components["oc" /* useBlockDisplayInformation */]; }); __webpack_require__.d(__webpack_exports__, "useBlockDisplayInformation", function() { return /* reexport */ components["pc" /* useBlockDisplayInformation */]; });
__webpack_require__.d(__webpack_exports__, "__unstableIframe", function() { return /* reexport */ components["Wb" /* __unstableIframe */]; }); __webpack_require__.d(__webpack_exports__, "__unstableIframe", function() { return /* reexport */ components["Xb" /* __unstableIframe */]; });
__webpack_require__.d(__webpack_exports__, "__experimentalUseNoRecursiveRenders", function() { return /* reexport */ components["Sb" /* __experimentalUseNoRecursiveRenders */]; }); __webpack_require__.d(__webpack_exports__, "__experimentalUseNoRecursiveRenders", function() { return /* reexport */ components["Tb" /* __experimentalUseNoRecursiveRenders */]; });
__webpack_require__.d(__webpack_exports__, "BlockEditorProvider", function() { return /* reexport */ components["l" /* BlockEditorProvider */]; }); __webpack_require__.d(__webpack_exports__, "BlockEditorProvider", function() { return /* reexport */ components["l" /* BlockEditorProvider */]; });
__webpack_require__.d(__webpack_exports__, "useSetting", function() { return /* reexport */ components["sc" /* useSetting */]; }); __webpack_require__.d(__webpack_exports__, "useSetting", function() { return /* reexport */ components["tc" /* useSetting */]; });
__webpack_require__.d(__webpack_exports__, "transformStyles", function() { return /* reexport */ build_module_utils["c" /* transformStyles */]; }); __webpack_require__.d(__webpack_exports__, "transformStyles", function() { return /* reexport */ build_module_utils["c" /* transformStyles */]; });
__webpack_require__.d(__webpack_exports__, "validateThemeColors", function() { return /* reexport */ build_module_utils["d" /* validateThemeColors */]; }); __webpack_require__.d(__webpack_exports__, "validateThemeColors", function() { return /* reexport */ build_module_utils["d" /* validateThemeColors */]; });
__webpack_require__.d(__webpack_exports__, "validateThemeGradients", function() { return /* reexport */ build_module_utils["e" /* validateThemeGradients */]; }); __webpack_require__.d(__webpack_exports__, "validateThemeGradients", function() { return /* reexport */ build_module_utils["e" /* validateThemeGradients */]; });
@ -45397,6 +45514,7 @@ function useBlockEditContext() {
const blockedPaths = ['color', 'border', 'typography', 'spacing'];
const deprecatedFlags = { const deprecatedFlags = {
'color.palette': settings => settings.colors === undefined ? undefined : settings.colors, 'color.palette': settings => settings.colors === undefined ? undefined : settings.colors,
'color.gradients': settings => settings.gradients === undefined ? undefined : settings.gradients, 'color.gradients': settings => settings.gradients === undefined ? undefined : settings.gradients,
@ -45477,6 +45595,12 @@ function useSetting(path) {
const setting = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__["useSelect"])(select => { const setting = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__["useSelect"])(select => {
var _get; var _get;
if (blockedPaths.includes(path)) {
// eslint-disable-next-line no-console
console.warn('Top level useSetting paths are disabled. Please use a subpath to query the information needed.');
return undefined;
}
const settings = select(_store__WEBPACK_IMPORTED_MODULE_4__[/* store */ "a"]).getSettings(); // 1 - Use __experimental features, if available. const settings = select(_store__WEBPACK_IMPORTED_MODULE_4__[/* store */ "a"]).getSettings(); // 1 - Use __experimental features, if available.
// We cascade to the all value if the block one is not available. // We cascade to the all value if the block one is not available.
@ -47873,7 +47997,7 @@ function BlockSelectionButton(_ref) {
hasBlockMovingClientId, hasBlockMovingClientId,
getBlockListSettings getBlockListSettings
} = select(store["a" /* store */]); } = select(store["a" /* store */]);
const index = getBlockIndex(clientId, rootClientId); const index = getBlockIndex(clientId);
const { const {
name, name,
attributes attributes
@ -47985,8 +48109,8 @@ function BlockSelectionButton(_ref) {
if ((isEnter || isSpace) && startingBlockClientId) { if ((isEnter || isSpace) && startingBlockClientId) {
const sourceRoot = getBlockRootClientId(startingBlockClientId); const sourceRoot = getBlockRootClientId(startingBlockClientId);
const destRoot = getBlockRootClientId(selectedBlockClientId); const destRoot = getBlockRootClientId(selectedBlockClientId);
const sourceBlockIndex = getBlockIndex(startingBlockClientId, sourceRoot); const sourceBlockIndex = getBlockIndex(startingBlockClientId);
let destinationBlockIndex = getBlockIndex(selectedBlockClientId, destRoot); let destinationBlockIndex = getBlockIndex(selectedBlockClientId);
if (sourceBlockIndex < destinationBlockIndex && sourceRoot === destRoot) { if (sourceBlockIndex < destinationBlockIndex && sourceRoot === destRoot) {
destinationBlockIndex -= 1; destinationBlockIndex -= 1;

File diff suppressed because one or more lines are too long

View File

@ -1844,7 +1844,6 @@ const WP_EMBED_TYPE = 'wp-embed';
// EXTERNAL MODULE: external "lodash" // EXTERNAL MODULE: external "lodash"
var external_lodash_ = __webpack_require__("YLtl"); var external_lodash_ = __webpack_require__("YLtl");
var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_);
// EXTERNAL MODULE: ./node_modules/classnames/dedupe.js // EXTERNAL MODULE: ./node_modules/classnames/dedupe.js
var dedupe = __webpack_require__("A/WM"); var dedupe = __webpack_require__("A/WM");
@ -14597,8 +14596,10 @@ const group_metadata = {
}, },
spacing: { spacing: {
padding: true, padding: true,
blockGap: true,
__experimentalDefaultControls: { __experimentalDefaultControls: {
padding: true padding: true,
blockGap: true
} }
}, },
__experimentalBorder: { __experimentalBorder: {
@ -20695,7 +20696,8 @@ function useNavigationMenu(ref) {
getEntityRecord, getEntityRecord,
getEditedEntityRecord, getEditedEntityRecord,
getEntityRecords, getEntityRecords,
hasFinishedResolution hasFinishedResolution,
canUser
} = select(external_wp_coreData_["store"]); } = select(external_wp_coreData_["store"]);
const navigationMenuSingleArgs = ['postType', 'wp_navigation', ref]; const navigationMenuSingleArgs = ['postType', 'wp_navigation', ref];
const rawNavigationMenu = ref ? getEntityRecord(...navigationMenuSingleArgs) : null; const rawNavigationMenu = ref ? getEntityRecord(...navigationMenuSingleArgs) : null;
@ -20719,7 +20721,13 @@ function useNavigationMenu(ref) {
canSwitchNavigationMenu, canSwitchNavigationMenu,
hasResolvedNavigationMenus: hasFinishedResolution('getEntityRecords', navigationMenuMultipleArgs), hasResolvedNavigationMenus: hasFinishedResolution('getEntityRecords', navigationMenuMultipleArgs),
navigationMenu, navigationMenu,
navigationMenus navigationMenus,
canUserUpdateNavigationEntity: ref ? canUser('update', 'navigation', ref) : undefined,
hasResolvedCanUserUpdateNavigationEntity: hasFinishedResolution('canUser', ['update', 'navigation', ref]),
canUserDeleteNavigationEntity: ref ? canUser('delete', 'navigation', ref) : undefined,
hasResolvedCanUserDeleteNavigationEntity: hasFinishedResolution('canUser', ['delete', 'navigation', ref]),
canUserCreateNavigation: canUser('create', 'navigation'),
hasResolvedCanUserCreateNavigation: hasFinishedResolution('canUser', ['create', 'navigation'])
}; };
}, [ref]); }, [ref]);
} }
@ -21289,7 +21297,8 @@ const ExistingMenusDropdown = _ref => {
setSelectedMenu, setSelectedMenu,
onFinish, onFinish,
menus, menus,
onCreateFromMenu onCreateFromMenu,
showClassicMenus = false
} = _ref; } = _ref;
const toggleProps = { const toggleProps = {
variant: 'tertiary', variant: 'tertiary',
@ -21318,7 +21327,7 @@ const ExistingMenusDropdown = _ref => {
onClose: onClose, onClose: onClose,
key: menu.id key: menu.id
}, Object(external_wp_htmlEntities_["decodeEntities"])(menu.title.rendered)); }, Object(external_wp_htmlEntities_["decodeEntities"])(menu.title.rendered));
}))), Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], { }))), showClassicMenus && Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], {
label: Object(external_wp_i18n_["__"])('Classic Menus') label: Object(external_wp_i18n_["__"])('Classic Menus')
}, menus === null || menus === void 0 ? void 0 : menus.map(menu => { }, menus === null || menus === void 0 ? void 0 : menus.map(menu => {
return Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], { return Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
@ -21338,7 +21347,8 @@ function NavigationPlaceholder(_ref3) {
clientId, clientId,
onFinish, onFinish,
canSwitchNavigationMenu, canSwitchNavigationMenu,
hasResolvedNavigationMenus hasResolvedNavigationMenus,
canUserCreateNavigation = false
} = _ref3; } = _ref3;
const [selectedMenu, setSelectedMenu] = Object(external_wp_element_["useState"])(); const [selectedMenu, setSelectedMenu] = Object(external_wp_element_["useState"])();
const [isCreatingFromMenu, setIsCreatingFromMenu] = Object(external_wp_element_["useState"])(false); const [isCreatingFromMenu, setIsCreatingFromMenu] = Object(external_wp_element_["useState"])(false);
@ -21347,6 +21357,11 @@ function NavigationPlaceholder(_ref3) {
const onFinishMenuCreation = async function (blocks) { const onFinishMenuCreation = async function (blocks) {
let navigationMenuTitle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; let navigationMenuTitle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
if (!canUserCreateNavigation) {
return;
}
const navigationMenu = await createNavigationMenu(navigationMenuTitle, blocks); const navigationMenu = await createNavigationMenu(navigationMenuTitle, blocks);
onFinish(navigationMenu, blocks); onFinish(navigationMenu, blocks);
}; };
@ -21413,17 +21428,18 @@ function NavigationPlaceholder(_ref3) {
className: "wp-block-navigation-placeholder__actions__indicator" className: "wp-block-navigation-placeholder__actions__indicator"
}, Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], { }, Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
icon: library_navigation icon: library_navigation
}), ' ', Object(external_wp_i18n_["__"])('Navigation')), Object(external_wp_element_["createElement"])("hr", null), hasMenus || navigationMenus.length ? Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(ExistingMenusDropdown, { }), ' ', Object(external_wp_i18n_["__"])('Navigation')), Object(external_wp_element_["createElement"])("hr", null), hasMenus || navigationMenus !== null && navigationMenus !== void 0 && navigationMenus.length ? Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(ExistingMenusDropdown, {
canSwitchNavigationMenu: canSwitchNavigationMenu, canSwitchNavigationMenu: canSwitchNavigationMenu,
navigationMenus: navigationMenus, navigationMenus: navigationMenus,
setSelectedMenu: setSelectedMenu, setSelectedMenu: setSelectedMenu,
onFinish: onFinish, onFinish: onFinish,
menus: menus, menus: menus,
onCreateFromMenu: onCreateFromMenu onCreateFromMenu: onCreateFromMenu,
}), Object(external_wp_element_["createElement"])("hr", null)) : undefined, hasPages ? Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { showClassicMenus: canUserCreateNavigation
}), Object(external_wp_element_["createElement"])("hr", null)) : undefined, canUserCreateNavigation && hasPages ? Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
variant: "tertiary", variant: "tertiary",
onClick: onCreateAllPages onClick: onCreateAllPages
}, Object(external_wp_i18n_["__"])('Add all pages')), Object(external_wp_element_["createElement"])("hr", null)) : undefined, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { }, Object(external_wp_i18n_["__"])('Add all pages')), Object(external_wp_element_["createElement"])("hr", null)) : undefined, canUserCreateNavigation && Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
variant: "tertiary", variant: "tertiary",
onClick: onCreateEmptyMenu onClick: onCreateEmptyMenu
}, Object(external_wp_i18n_["__"])('Start empty')))))); }, Object(external_wp_i18n_["__"])('Start empty'))))));
@ -21471,9 +21487,16 @@ function ResponsiveWrapper(_ref) {
'always-shown': isHiddenByDefault 'always-shown': isHiddenByDefault
}); });
const modalId = `${id}-modal`; const modalId = `${id}-modal`;
const dialogProps = {
className: 'wp-block-navigation__responsive-dialog',
...(isOpen && {
role: 'dialog',
'aria-modal': true,
'aria-label': Object(external_wp_i18n_["__"])('Menu')
})
};
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, !isOpen && Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, !isOpen && Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
"aria-haspopup": "true", "aria-haspopup": "true",
"aria-expanded": isOpen,
"aria-label": Object(external_wp_i18n_["__"])('Open menu'), "aria-label": Object(external_wp_i18n_["__"])('Open menu'),
className: openButtonClasses, className: openButtonClasses,
onClick: () => onToggle(true) onClick: () => onToggle(true)
@ -21502,12 +21525,7 @@ function ResponsiveWrapper(_ref) {
}, Object(external_wp_element_["createElement"])("div", { }, Object(external_wp_element_["createElement"])("div", {
className: "wp-block-navigation__responsive-close", className: "wp-block-navigation__responsive-close",
tabIndex: "-1" tabIndex: "-1"
}, Object(external_wp_element_["createElement"])("div", { }, Object(external_wp_element_["createElement"])("div", dialogProps, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
className: "wp-block-navigation__responsive-dialog",
role: "dialog",
"aria-modal": "true",
"aria-labelledby": `${modalId}-title`
}, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
className: "wp-block-navigation__responsive-container-close", className: "wp-block-navigation__responsive-container-close",
"aria-label": Object(external_wp_i18n_["__"])('Close menu'), "aria-label": Object(external_wp_i18n_["__"])('Close menu'),
onClick: () => onToggle(false) onClick: () => onToggle(false)
@ -21626,7 +21644,8 @@ function NavigationInnerBlocks(_ref) {
function NavigationMenuSelector(_ref) { function NavigationMenuSelector(_ref) {
let { let {
onSelect, onSelect,
onCreateNew onCreateNew,
showCreate = false
} = _ref; } = _ref;
const { const {
navigationMenus navigationMenus
@ -21649,7 +21668,7 @@ function NavigationMenuSelector(_ref) {
Object(external_wp_i18n_["__"])("Switch to '%s'"), label) Object(external_wp_i18n_["__"])("Switch to '%s'"), label)
}; };
}) })
})), Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], null, Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], { })), showCreate && Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], null, Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
onClick: onCreateNew onClick: onCreateNew
}, Object(external_wp_i18n_["__"])('Create new menu')), Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], { }, Object(external_wp_i18n_["__"])('Create new menu')), Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
href: Object(external_wp_url_["addQueryArgs"])('edit.php', { href: Object(external_wp_url_["addQueryArgs"])('edit.php', {
@ -21698,9 +21717,6 @@ function NavigationMenuNameControl() {
const NOOP = () => {};
const EMPTY_OBJECT = {}; const EMPTY_OBJECT = {};
const unsaved_inner_blocks_DRAFT_MENU_PARAMS = ['postType', 'wp_navigation', { const unsaved_inner_blocks_DRAFT_MENU_PARAMS = ['postType', 'wp_navigation', {
status: 'draft', status: 'draft',
@ -21720,13 +21736,7 @@ function UnsavedInnerBlocks(_ref) {
const isDisabled = Object(external_wp_element_["useContext"])(external_wp_components_["Disabled"].Context); const isDisabled = Object(external_wp_element_["useContext"])(external_wp_components_["Disabled"].Context);
const savingLock = Object(external_wp_element_["useRef"])(false); const savingLock = Object(external_wp_element_["useRef"])(false);
const innerBlocksProps = Object(external_wp_blockEditor_["useInnerBlocksProps"])(blockProps, { const innerBlocksProps = Object(external_wp_blockEditor_["useInnerBlocksProps"])(blockProps, {
renderAppender: hasSelection ? undefined : false, renderAppender: hasSelection ? undefined : false
// Make the inner blocks 'controlled'. This allows the block to always
// work with controlled inner blocks, smoothing out the switch to using
// an entity.
value: blocks,
onChange: NOOP,
onInput: NOOP
}); });
const { const {
isSaving, isSaving,
@ -21776,13 +21786,13 @@ function UnsavedInnerBlocks(_ref) {
onSave(menu); onSave(menu);
savingLock.current = false; savingLock.current = false;
}, [isDisabled, isSaving, hasResolvedDraftNavigationMenus, hasResolvedNavigationMenus, draftNavigationMenus, navigationMenus, hasSelection, createNavigationMenu, blocks]); }, [isDisabled, isSaving, hasResolvedDraftNavigationMenus, hasResolvedNavigationMenus, draftNavigationMenus, navigationMenus, hasSelection, createNavigationMenu, blocks]);
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("nav", blockProps, Object(external_wp_element_["createElement"])("div", { return Object(external_wp_element_["createElement"])("div", {
className: "wp-block-navigation__unsaved-changes" className: "wp-block-navigation__unsaved-changes"
}, Object(external_wp_element_["createElement"])(external_wp_components_["Disabled"], { }, Object(external_wp_element_["createElement"])(external_wp_components_["Disabled"], {
className: classnames_default()('wp-block-navigation__unsaved-changes-overlay', { className: classnames_default()('wp-block-navigation__unsaved-changes-overlay', {
'is-saving': hasSelection 'is-saving': hasSelection
}) })
}, Object(external_wp_element_["createElement"])("div", innerBlocksProps)), hasSelection && Object(external_wp_element_["createElement"])(external_wp_components_["Spinner"], null)))); }, Object(external_wp_element_["createElement"])("div", innerBlocksProps)), hasSelection && Object(external_wp_element_["createElement"])(external_wp_components_["Spinner"], null));
} }
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/navigation-menu-delete-control.js // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/navigation-menu-delete-control.js
@ -21837,6 +21847,51 @@ function NavigationMenuDeleteControl(_ref) {
}, Object(external_wp_i18n_["__"])('Confirm')))))); }, Object(external_wp_i18n_["__"])('Confirm'))))));
} }
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/use-navigation-notice.js
/**
* WordPress dependencies
*/
function useNavigationNotice() {
let {
name,
message
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
const noticeRef = Object(external_wp_element_["useRef"])();
const {
createWarningNotice,
removeNotice
} = Object(external_wp_data_["useDispatch"])(external_wp_notices_["store"]);
const showNotice = () => {
if (noticeRef.current) {
return;
}
noticeRef.current = name;
createWarningNotice(message, {
id: noticeRef.current,
type: 'snackbar'
});
};
const hideNotice = () => {
if (!noticeRef.current) {
return;
}
removeNotice(noticeRef.current);
noticeRef.current = null;
};
return [showNotice, hideNotice];
}
/* harmony default export */ var use_navigation_notice = (useNavigationNotice);
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/index.js // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/index.js
@ -21870,6 +21925,8 @@ function NavigationMenuDeleteControl(_ref) {
const EMPTY_ARRAY = [];
function getComputedStyle(node) { function getComputedStyle(node) {
return node.ownerDocument.defaultView.getComputedStyle(node); return node.ownerDocument.defaultView.getComputedStyle(node);
} }
@ -21922,17 +21979,19 @@ function Navigation(_ref) {
showSubmenuIcon, showSubmenuIcon,
layout: { layout: {
justifyContent, justifyContent,
orientation = 'horizontal' orientation = 'horizontal',
flexWrap = 'wrap'
} = {} } = {}
} = attributes; } = attributes;
let areaMenu, let areaMenu,
setAreaMenu = external_lodash_default.a; // Navigation areas are deprecated and on their way out. Let's not perform setAreaMenu = external_lodash_["noop"]; // Navigation areas are deprecated and on their way out. Let's not perform
// the request unless we're in an environment where the endpoint exists. // the request unless we're in an environment where the endpoint exists.
if (false) {} if (false) {}
const navigationAreaMenu = areaMenu === 0 ? undefined : areaMenu; const navigationAreaMenu = areaMenu === 0 ? undefined : areaMenu;
const ref = navigationArea ? navigationAreaMenu : attributes.ref; const ref = navigationArea ? navigationAreaMenu : attributes.ref;
const registry = Object(external_wp_data_["useRegistry"])();
const setRef = Object(external_wp_element_["useCallback"])(postId => { const setRef = Object(external_wp_element_["useCallback"])(postId => {
setAttributes({ setAttributes({
ref: postId ref: postId
@ -21944,27 +22003,41 @@ function Navigation(_ref) {
}, [navigationArea]); }, [navigationArea]);
const [hasAlreadyRendered, RecursionProvider] = Object(external_wp_blockEditor_["__experimentalUseNoRecursiveRenders"])(`navigationMenu/${ref}`); const [hasAlreadyRendered, RecursionProvider] = Object(external_wp_blockEditor_["__experimentalUseNoRecursiveRenders"])(`navigationMenu/${ref}`);
const { const {
innerBlocks, hasUncontrolledInnerBlocks,
uncontrolledInnerBlocks,
isInnerBlockSelected isInnerBlockSelected
} = Object(external_wp_data_["useSelect"])(select => { } = Object(external_wp_data_["useSelect"])(select => {
const { const {
getBlock,
getBlocks, getBlocks,
hasSelectedInnerBlock hasSelectedInnerBlock
} = select(external_wp_blockEditor_["store"]); } = select(external_wp_blockEditor_["store"]); // This relies on the fact that `getBlock` won't return controlled
// inner blocks, while `getBlocks` does. It might be more stable to
// introduce a selector like `getUncontrolledInnerBlocks`, just in
// case `getBlock` is fixed.
const _uncontrolledInnerBlocks = getBlock(clientId).innerBlocks;
const _hasUncontrolledInnerBlocks = _uncontrolledInnerBlocks === null || _uncontrolledInnerBlocks === void 0 ? void 0 : _uncontrolledInnerBlocks.length;
const _controlledInnerBlocks = _hasUncontrolledInnerBlocks ? EMPTY_ARRAY : getBlocks(clientId);
const innerBlocks = _hasUncontrolledInnerBlocks ? _uncontrolledInnerBlocks : _controlledInnerBlocks;
return { return {
innerBlocks: getBlocks(clientId), hasSubmenus: !!innerBlocks.find(block => block.name === 'core/navigation-submenu'),
hasUncontrolledInnerBlocks: _hasUncontrolledInnerBlocks,
uncontrolledInnerBlocks: _uncontrolledInnerBlocks,
isInnerBlockSelected: hasSelectedInnerBlock(clientId, true) isInnerBlockSelected: hasSelectedInnerBlock(clientId, true)
}; };
}, [clientId]); }, [clientId]);
const hasExistingNavItems = !!innerBlocks.length;
const { const {
replaceInnerBlocks, replaceInnerBlocks,
selectBlock, selectBlock,
__unstableMarkNextChangeAsNotPersistent __unstableMarkNextChangeAsNotPersistent
} = Object(external_wp_data_["useDispatch"])(external_wp_blockEditor_["store"]); } = Object(external_wp_data_["useDispatch"])(external_wp_blockEditor_["store"]);
const [hasSavedUnsavedInnerBlocks, setHasSavedUnsavedInnerBlocks] = Object(external_wp_element_["useState"])(false); const [hasSavedUnsavedInnerBlocks, setHasSavedUnsavedInnerBlocks] = Object(external_wp_element_["useState"])(false);
const isWithinUnassignedArea = navigationArea && !ref; const isWithinUnassignedArea = !!navigationArea && !ref;
const [isPlaceholderShown, setIsPlaceholderShown] = Object(external_wp_element_["useState"])(!hasExistingNavItems || isWithinUnassignedArea); const [isPlaceholderShown, setIsPlaceholderShown] = Object(external_wp_element_["useState"])(!hasUncontrolledInnerBlocks || isWithinUnassignedArea);
const [isResponsiveMenuOpen, setResponsiveMenuVisibility] = Object(external_wp_element_["useState"])(false); const [isResponsiveMenuOpen, setResponsiveMenuVisibility] = Object(external_wp_element_["useState"])(false);
const { const {
isNavigationMenuResolved, isNavigationMenuResolved,
@ -21972,7 +22045,13 @@ function Navigation(_ref) {
canSwitchNavigationMenu, canSwitchNavigationMenu,
hasResolvedNavigationMenus, hasResolvedNavigationMenus,
navigationMenus, navigationMenus,
navigationMenu navigationMenu,
canUserUpdateNavigationEntity,
hasResolvedCanUserUpdateNavigationEntity,
canUserDeleteNavigationEntity,
hasResolvedCanUserDeleteNavigationEntity,
canUserCreateNavigation,
hasResolvedCanUserCreateNavigation
} = useNavigationMenu(ref); } = useNavigationMenu(ref);
const navRef = Object(external_wp_element_["useRef"])(); const navRef = Object(external_wp_element_["useRef"])();
const isDraftNavigationMenu = (navigationMenu === null || navigationMenu === void 0 ? void 0 : navigationMenu.status) === 'draft'; const isDraftNavigationMenu = (navigationMenu === null || navigationMenu === void 0 ? void 0 : navigationMenu.status) === 'draft';
@ -21986,6 +22065,10 @@ function Navigation(_ref) {
className: classnames_default()(className, { className: classnames_default()(className, {
'items-justified-right': justifyContent === 'right', 'items-justified-right': justifyContent === 'right',
'items-justified-space-between': justifyContent === 'space-between', 'items-justified-space-between': justifyContent === 'space-between',
'items-justified-left': justifyContent === 'left',
'items-justified-center': justifyContent === 'center',
'is-vertical': orientation === 'vertical',
'no-wrap': flexWrap === 'nowrap',
'is-responsive': 'never' !== overlayMenu, 'is-responsive': 'never' !== overlayMenu,
'has-text-color': !!textColor.color || !!(textColor !== null && textColor !== void 0 && textColor.class), 'has-text-color': !!textColor.color || !!(textColor !== null && textColor !== void 0 && textColor.class),
[Object(external_wp_blockEditor_["getColorClassName"])('color', textColor === null || textColor === void 0 ? void 0 : textColor.slug)]: !!(textColor !== null && textColor !== void 0 && textColor.slug), [Object(external_wp_blockEditor_["getColorClassName"])('color', textColor === null || textColor === void 0 ? void 0 : textColor.slug)]: !!(textColor !== null && textColor !== void 0 && textColor.slug),
@ -22025,12 +22108,14 @@ function Navigation(_ref) {
} }
}, [orientation]); }, [orientation]);
Object(external_wp_element_["useEffect"])(() => { Object(external_wp_element_["useEffect"])(() => {
var _navRef$current;
if (!enableContrastChecking) { if (!enableContrastChecking) {
return; return;
} }
detectColors(navRef.current, setDetectedColor, setDetectedBackgroundColor); detectColors(navRef.current, setDetectedColor, setDetectedBackgroundColor);
const subMenuElement = navRef.current.querySelector('[data-type="core/navigation-link"] [data-type="core/navigation-link"]'); const subMenuElement = (_navRef$current = navRef.current) === null || _navRef$current === void 0 ? void 0 : _navRef$current.querySelector('[data-type="core/navigation-link"] [data-type="core/navigation-link"]');
if (subMenuElement) { if (subMenuElement) {
detectColors(subMenuElement, setDetectedOverlayColor, setDetectedOverlayBackgroundColor); detectColors(subMenuElement, setDetectedOverlayColor, setDetectedOverlayBackgroundColor);
@ -22039,47 +22124,78 @@ function Navigation(_ref) {
Object(external_wp_element_["useEffect"])(() => { Object(external_wp_element_["useEffect"])(() => {
setIsPlaceholderShown(!isEntityAvailable); setIsPlaceholderShown(!isEntityAvailable);
}, [isEntityAvailable]); // If the ref no longer exists the reset the inner blocks }, [isEntityAvailable]);
// to provide a clean slate. const [showCantEditNotice, hideCantEditNotice] = use_navigation_notice({
name: 'block-library/core/navigation/permissions/update',
message: Object(external_wp_i18n_["__"])('You do not have permission to edit this Menu. Any changes made will not be saved.')
});
const [showCantCreateNotice, hideCantCreateNotice] = use_navigation_notice({
name: 'block-library/core/navigation/permissions/create',
message: Object(external_wp_i18n_["__"])('You do not have permission to create Navigation Menus.')
});
Object(external_wp_element_["useEffect"])(() => { Object(external_wp_element_["useEffect"])(() => {
if (ref === undefined && innerBlocks.length > 0) { if (!isSelected && !isInnerBlockSelected) {
replaceInnerBlocks(clientId, []); hideCantEditNotice();
} // innerBlocks are intentionally not listed as deps. This function is only concerned hideCantCreateNotice();
// with the snapshot from the time when ref became undefined.
}, [clientId, ref, innerBlocks]);
const startWithEmptyMenu = Object(external_wp_element_["useCallback"])(() => {
if (navigationArea) {
setAreaMenu(0);
} }
setAttributes({ if (isSelected || isInnerBlockSelected) {
ref: undefined if (hasResolvedCanUserUpdateNavigationEntity && !canUserUpdateNavigationEntity) {
showCantEditNotice();
}
if (!ref && hasResolvedCanUserCreateNavigation && !canUserCreateNavigation) {
showCantCreateNotice();
}
}
}, [isSelected, isInnerBlockSelected, canUserUpdateNavigationEntity, hasResolvedCanUserUpdateNavigationEntity, canUserCreateNavigation, hasResolvedCanUserCreateNavigation, ref]);
const startWithEmptyMenu = Object(external_wp_element_["useCallback"])(() => {
registry.batch(() => {
if (navigationArea) {
setAreaMenu(0);
}
setAttributes({
ref: undefined
});
if (!ref) {
replaceInnerBlocks(clientId, []);
}
setIsPlaceholderShown(true);
}); });
setIsPlaceholderShown(true); }, [clientId, ref]); // If the block has inner blocks, but no menu id, this was an older
}, [clientId]); // If the block has inner blocks, but no menu id, this was an older
// navigation block added before the block used a wp_navigation entity. // navigation block added before the block used a wp_navigation entity.
// Either this block was saved in the content or inserted by a pattern. // Either this block was saved in the content or inserted by a pattern.
// Consider this 'unsaved'. Offer an uncontrolled version of inner blocks, // Consider this 'unsaved'. Offer an uncontrolled version of inner blocks,
// that automatically saves the menu. // that automatically saves the menu.
const hasUnsavedBlocks = hasExistingNavItems && !isEntityAvailable && !isWithinUnassignedArea; const hasUnsavedBlocks = hasUncontrolledInnerBlocks && !isEntityAvailable;
if (hasUnsavedBlocks) { if (hasUnsavedBlocks) {
return Object(external_wp_element_["createElement"])(UnsavedInnerBlocks, { return Object(external_wp_element_["createElement"])("nav", blockProps, Object(external_wp_element_["createElement"])(ResponsiveWrapper, {
id: clientId,
onToggle: setResponsiveMenuVisibility,
isOpen: isResponsiveMenuOpen,
isResponsive: 'never' !== overlayMenu,
isHiddenByDefault: 'always' === overlayMenu,
classNames: overlayClassnames,
styles: overlayStyles
}, Object(external_wp_element_["createElement"])(UnsavedInnerBlocks, {
blockProps: blockProps, blockProps: blockProps,
blocks: innerBlocks, blocks: uncontrolledInnerBlocks,
clientId: clientId, clientId: clientId,
navigationMenus: navigationMenus, navigationMenus: navigationMenus,
hasSelection: isSelected || isInnerBlockSelected, hasSelection: isSelected || isInnerBlockSelected,
hasSavedUnsavedInnerBlocks: hasSavedUnsavedInnerBlocks, hasSavedUnsavedInnerBlocks: hasSavedUnsavedInnerBlocks,
onSave: post => { onSave: post => {
// Set some state used as a guard to prevent the creation of multiple posts.
setHasSavedUnsavedInnerBlocks(true); // Switch to using the wp_navigation entity. setHasSavedUnsavedInnerBlocks(true); // Switch to using the wp_navigation entity.
setRef(post.id); setRef(post.id);
} }
}); })));
} // Show a warning if the selected menu is no longer available. } // Show a warning if the selected menu is no longer available.
// TODO - the user should be able to select a new one? // TODO - the user should be able to select a new one?
@ -22116,7 +22232,8 @@ function Navigation(_ref) {
setRef(id); setRef(id);
onClose(); onClose();
}, },
onCreateNew: startWithEmptyMenu onCreateNew: startWithEmptyMenu,
showCreate: canUserCreateNavigation
}); });
})), Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarGroup"], null, listViewToolbarButton)), listViewModal, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InspectorControls"], null, hasSubmenuIndicatorSetting && Object(external_wp_element_["createElement"])(external_wp_components_["PanelBody"], { })), Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarGroup"], null, listViewToolbarButton)), listViewModal, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InspectorControls"], null, hasSubmenuIndicatorSetting && Object(external_wp_element_["createElement"])(external_wp_components_["PanelBody"], {
title: Object(external_wp_i18n_["__"])('Display') title: Object(external_wp_i18n_["__"])('Display')
@ -22184,17 +22301,8 @@ function Navigation(_ref) {
textColor: detectedOverlayColor textColor: detectedOverlayColor
})))), isEntityAvailable && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InspectorControls"], { })))), isEntityAvailable && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InspectorControls"], {
__experimentalGroup: "advanced" __experimentalGroup: "advanced"
}, Object(external_wp_element_["createElement"])(NavigationMenuNameControl, null), Object(external_wp_element_["createElement"])(NavigationMenuDeleteControl, { }, hasResolvedCanUserUpdateNavigationEntity && canUserUpdateNavigationEntity && Object(external_wp_element_["createElement"])(NavigationMenuNameControl, null), hasResolvedCanUserDeleteNavigationEntity && canUserDeleteNavigationEntity && Object(external_wp_element_["createElement"])(NavigationMenuDeleteControl, {
onDelete: () => { onDelete: startWithEmptyMenu
if (navigationArea) {
setAreaMenu(0);
}
setAttributes({
ref: undefined
});
setIsPlaceholderShown(true);
}
})), Object(external_wp_element_["createElement"])("nav", blockProps, isPlaceholderShown && Object(external_wp_element_["createElement"])(PlaceholderComponent, { })), Object(external_wp_element_["createElement"])("nav", blockProps, isPlaceholderShown && Object(external_wp_element_["createElement"])(PlaceholderComponent, {
onFinish: post => { onFinish: post => {
setIsPlaceholderShown(false); setIsPlaceholderShown(false);
@ -22207,8 +22315,9 @@ function Navigation(_ref) {
}, },
canSwitchNavigationMenu: canSwitchNavigationMenu, canSwitchNavigationMenu: canSwitchNavigationMenu,
hasResolvedNavigationMenus: hasResolvedNavigationMenus, hasResolvedNavigationMenus: hasResolvedNavigationMenus,
clientId: clientId clientId: clientId,
}), !isEntityAvailable && !isPlaceholderShown && Object(external_wp_element_["createElement"])(placeholder_preview, { canUserCreateNavigation: canUserCreateNavigation
}), !hasResolvedCanUserCreateNavigation || !isEntityAvailable && !isPlaceholderShown && Object(external_wp_element_["createElement"])(placeholder_preview, {
isLoading: true isLoading: true
}), !isPlaceholderShown && Object(external_wp_element_["createElement"])(ResponsiveWrapper, { }), !isPlaceholderShown && Object(external_wp_element_["createElement"])(ResponsiveWrapper, {
id: clientId, id: clientId,
@ -22309,7 +22418,6 @@ const deprecated_migrateWithLayout = attributes => {
Object.assign(updatedAttributes, { Object.assign(updatedAttributes, {
layout: { layout: {
type: 'flex', type: 'flex',
setCascadingProperties: 'true',
...(itemsJustification && { ...(itemsJustification && {
justifyContent: itemsJustification justifyContent: itemsJustification
}), }),
@ -22402,8 +22510,7 @@ const navigation_deprecated_v6 = {
allowSwitching: false, allowSwitching: false,
allowInheriting: false, allowInheriting: false,
default: { default: {
type: 'flex', type: 'flex'
setCascadingProperties: true
} }
} }
}, },
@ -22957,8 +23064,7 @@ const navigation_metadata = {
allowSwitching: false, allowSwitching: false,
allowInheriting: false, allowInheriting: false,
"default": { "default": {
type: "flex", type: "flex"
setCascadingProperties: true
} }
} }
}, },
@ -27869,6 +27975,7 @@ var library_layout = __webpack_require__("Civd");
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-template/edit.js // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-template/edit.js
/** /**
* External dependencies * External dependencies
*/ */
@ -27892,7 +27999,36 @@ function PostTemplateInnerBlocks() {
return Object(external_wp_element_["createElement"])("li", innerBlocksProps); return Object(external_wp_element_["createElement"])("li", innerBlocksProps);
} }
function PostTemplateEdit(_ref) { function PostTemplateBlockPreview(_ref) {
let {
blocks,
blockContextId,
isHidden,
setActiveBlockContextId
} = _ref;
const blockPreviewProps = Object(external_wp_blockEditor_["__experimentalUseBlockPreview"])({
blocks
});
const handleOnClick = () => {
setActiveBlockContextId(blockContextId);
};
const style = {
display: isHidden ? 'none' : undefined
};
return Object(external_wp_element_["createElement"])("li", Object(esm_extends["a" /* default */])({}, blockPreviewProps, {
tabIndex: 0 // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role
,
role: "button",
onClick: handleOnClick,
onKeyPress: handleOnClick,
style: style
}));
}
const MemoizedPostTemplateBlockPreview = Object(external_wp_element_["memo"])(PostTemplateBlockPreview);
function PostTemplateEdit(_ref2) {
let { let {
clientId, clientId,
context: { context: {
@ -27919,11 +28055,11 @@ function PostTemplateEdit(_ref) {
columns = 1 columns = 1
} = {} } = {}
} }
} = _ref; } = _ref2;
const [{ const [{
page page
}] = queryContext; }] = queryContext;
const [activeBlockContext, setActiveBlockContext] = Object(external_wp_element_["useState"])(); const [activeBlockContextId, setActiveBlockContextId] = Object(external_wp_element_["useState"])();
const { const {
posts, posts,
blocks blocks
@ -27997,16 +28133,25 @@ function PostTemplateEdit(_ref) {
if (!posts.length) { if (!posts.length) {
return Object(external_wp_element_["createElement"])("p", blockProps, " ", Object(external_wp_i18n_["__"])('No results found.')); return Object(external_wp_element_["createElement"])("p", blockProps, " ", Object(external_wp_i18n_["__"])('No results found.'));
} } // To avoid flicker when switching active block contexts, a preview is rendered
// for each block context, but the preview for the active block context is hidden.
// This ensures that when it is displayed again, the cached rendering of the
// block preview is used, instead of having to re-render the preview from scratch.
return Object(external_wp_element_["createElement"])("ul", blockProps, blockContexts && blockContexts.map(blockContext => Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockContextProvider"], {
key: blockContext.postId, return Object(external_wp_element_["createElement"])("ul", blockProps, blockContexts && blockContexts.map(blockContext => {
value: blockContext var _blockContexts$, _blockContexts$2;
}, blockContext === (activeBlockContext || blockContexts[0]) ? Object(external_wp_element_["createElement"])(PostTemplateInnerBlocks, null) : Object(external_wp_element_["createElement"])("li", null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockPreview"], {
blocks: blocks, return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockContextProvider"], {
__experimentalLive: true, key: blockContext.postId,
__experimentalOnClick: () => setActiveBlockContext(blockContext) value: blockContext
}))))); }, blockContext.postId === (activeBlockContextId || ((_blockContexts$ = blockContexts[0]) === null || _blockContexts$ === void 0 ? void 0 : _blockContexts$.postId)) ? Object(external_wp_element_["createElement"])(PostTemplateInnerBlocks, null) : null, Object(external_wp_element_["createElement"])(MemoizedPostTemplateBlockPreview, {
blocks: blocks,
blockContextId: blockContext.postId,
setActiveBlockContextId: setActiveBlockContextId,
isHidden: blockContext.postId === (activeBlockContextId || ((_blockContexts$2 = blockContexts[0]) === null || _blockContexts$2 === void 0 ? void 0 : _blockContexts$2.postId))
}));
}));
} }
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-template/save.js // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-template/save.js
@ -33588,9 +33733,12 @@ const SiteLogo = _ref => {
height height
} }
}, imgWrapper); }, imgWrapper);
} } // Set the default width to a responsible size.
// Note that this width is also set in the attached frontend CSS file.
const currentWidth = width || imageWidthWithinContainer;
const defaultWidth = 120;
const currentWidth = width || defaultWidth;
const ratio = naturalWidth / naturalHeight; const ratio = naturalWidth / naturalHeight;
const currentHeight = currentWidth / ratio; const currentHeight = currentWidth / ratio;
const minWidth = naturalWidth < naturalHeight ? MIN_SIZE : MIN_SIZE * ratio; const minWidth = naturalWidth < naturalHeight ? MIN_SIZE : MIN_SIZE * ratio;
@ -33604,10 +33752,7 @@ const SiteLogo = _ref => {
// @todo It would be good to revisit this once a content-width variable // @todo It would be good to revisit this once a content-width variable
// becomes available. // becomes available.
const maxWidthBuffer = maxWidth * 2.5; // Set the default width to a responsible size. const maxWidthBuffer = maxWidth * 2.5;
// Note that this width is also set in the attached CSS file.
const defaultWidth = 120;
let showRightHandle = false; let showRightHandle = false;
let showLeftHandle = false; let showLeftHandle = false;
/* eslint-disable no-lonely-if */ /* eslint-disable no-lonely-if */
@ -33807,6 +33952,9 @@ function LogoEdit(_ref2) {
const onRemoveLogo = () => { const onRemoveLogo = () => {
setLogo(null); setLogo(null);
setLogoUrl(undefined); setLogoUrl(undefined);
setAttributes({
width: undefined
});
}; };
const { const {
@ -33923,9 +34071,6 @@ const site_logo_metadata = {
description: "Display a graphic to represent this site. Update the block, and the changes apply everywhere it\u2019s used. This is different than the site icon, which is the smaller image visible in your dashboard, browser tabs, etc used to help others recognize this site.", description: "Display a graphic to represent this site. Update the block, and the changes apply everywhere it\u2019s used. This is different than the site icon, which is the smaller image visible in your dashboard, browser tabs, etc used to help others recognize this site.",
textdomain: "default", textdomain: "default",
attributes: { attributes: {
align: {
type: "string"
},
width: { width: {
type: "number" type: "number"
}, },
@ -39037,6 +39182,10 @@ function TemplatePartInnerBlocks(_ref) {
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template-part/edit/index.js // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template-part/edit/index.js
/**
* External dependencies
*/
/** /**
* WordPress dependencies * WordPress dependencies
*/ */
@ -39045,6 +39194,7 @@ function TemplatePartInnerBlocks(_ref) {
/** /**
* Internal dependencies * Internal dependencies
*/ */
@ -39116,7 +39266,7 @@ function TemplatePartEdit(_ref) {
return { return {
innerBlocks: getBlocks(clientId), innerBlocks: getBlocks(clientId),
isResolved: hasResolvedEntity, isResolved: hasResolvedEntity,
isMissing: hasResolvedEntity && !entityRecord, isMissing: hasResolvedEntity && Object(external_lodash_["isEmpty"])(entityRecord),
defaultWrapper: defaultWrapperElement || 'div', defaultWrapper: defaultWrapperElement || 'div',
area: _area, area: _area,
enableSelection: _enableSelection, enableSelection: _enableSelection,

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

@ -128,6 +128,7 @@ __webpack_require__.d(__webpack_exports__, "useConstrainedTabbing", function() {
__webpack_require__.d(__webpack_exports__, "useCopyOnClick", function() { return /* reexport */ useCopyOnClick; }); __webpack_require__.d(__webpack_exports__, "useCopyOnClick", function() { return /* reexport */ useCopyOnClick; });
__webpack_require__.d(__webpack_exports__, "useCopyToClipboard", function() { return /* reexport */ useCopyToClipboard; }); __webpack_require__.d(__webpack_exports__, "useCopyToClipboard", function() { return /* reexport */ useCopyToClipboard; });
__webpack_require__.d(__webpack_exports__, "__experimentalUseDialog", function() { return /* reexport */ use_dialog; }); __webpack_require__.d(__webpack_exports__, "__experimentalUseDialog", function() { return /* reexport */ use_dialog; });
__webpack_require__.d(__webpack_exports__, "__experimentalUseDisabled", function() { return /* reexport */ useDisabled; });
__webpack_require__.d(__webpack_exports__, "__experimentalUseDragging", function() { return /* reexport */ useDragging; }); __webpack_require__.d(__webpack_exports__, "__experimentalUseDragging", function() { return /* reexport */ useDragging; });
__webpack_require__.d(__webpack_exports__, "useFocusOnMount", function() { return /* reexport */ useFocusOnMount; }); __webpack_require__.d(__webpack_exports__, "useFocusOnMount", function() { return /* reexport */ useFocusOnMount; });
__webpack_require__.d(__webpack_exports__, "__experimentalUseFocusOutside", function() { return /* reexport */ useFocusOutside; }); __webpack_require__.d(__webpack_exports__, "__experimentalUseFocusOutside", function() { return /* reexport */ useFocusOutside; });
@ -1486,6 +1487,111 @@ function useDialog(options) {
/* harmony default export */ var use_dialog = (useDialog); /* harmony default export */ var use_dialog = (useDialog);
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-disabled/index.js
/**
* External dependencies
*/
/**
* WordPress dependencies
*/
/**
* Names of control nodes which qualify for disabled behavior.
*
* See WHATWG HTML Standard: 4.10.18.5: "Enabling and disabling form controls: the disabled attribute".
*
* @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#enabling-and-disabling-form-controls:-the-disabled-attribute
*
* @type {string[]}
*/
const DISABLED_ELIGIBLE_NODE_NAMES = ['BUTTON', 'FIELDSET', 'INPUT', 'OPTGROUP', 'OPTION', 'SELECT', 'TEXTAREA'];
/**
* In some circumstances, such as block previews, all focusable DOM elements
* (input fields, links, buttons, etc.) need to be disabled. This hook adds the
* behavior to disable nested DOM elements to the returned ref.
*
* @return {import('react').RefObject<HTMLElement>} Element Ref.
*
* @example
* ```js
* import { __experimentalUseDisabled as useDisabled } from '@wordpress/compose';
* const DisabledExample = () => {
* const disabledRef = useDisabled();
* return (
* <div ref={ disabledRef }>
* <a href="#">This link will have tabindex set to -1</a>
* <input placeholder="This input will have the disabled attribute added to it." type="text" />
* </div>
* );
* };
* ```
*/
function useDisabled() {
/** @type {import('react').RefObject<HTMLElement>} */
const node = Object(external_wp_element_["useRef"])(null);
const disable = () => {
if (!node.current) {
return;
}
external_wp_dom_["focus"].focusable.find(node.current).forEach(focusable => {
if (Object(external_lodash_["includes"])(DISABLED_ELIGIBLE_NODE_NAMES, focusable.nodeName)) {
focusable.setAttribute('disabled', '');
}
if (focusable.nodeName === 'A') {
focusable.setAttribute('tabindex', '-1');
}
const tabIndex = focusable.getAttribute('tabindex');
if (tabIndex !== null && tabIndex !== '-1') {
focusable.removeAttribute('tabindex');
}
if (focusable.hasAttribute('contenteditable')) {
focusable.setAttribute('contenteditable', 'false');
}
});
}; // Debounce re-disable since disabling process itself will incur
// additional mutations which should be ignored.
const debouncedDisable = Object(external_wp_element_["useCallback"])(Object(external_lodash_["debounce"])(disable, undefined, {
leading: true
}), []);
Object(external_wp_element_["useLayoutEffect"])(() => {
disable();
/** @type {MutationObserver | undefined} */
let observer;
if (node.current) {
observer = new window.MutationObserver(debouncedDisable);
observer.observe(node.current, {
childList: true,
attributes: true,
subtree: true
});
}
return () => {
if (observer) {
observer.disconnect();
}
debouncedDisable.cancel();
};
}, []);
return node;
}
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-isomorphic-layout-effect/index.js // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-isomorphic-layout-effect/index.js
/** /**
* WordPress dependencies * WordPress dependencies
@ -2573,6 +2679,7 @@ function useFixedWindowList(elementRef, itemHeight, totalItems, options) {
/***/ }), /***/ }),

File diff suppressed because one or more lines are too long

View File

@ -671,14 +671,9 @@ function ownKeys(object, enumerableOnly) {
if (Object.getOwnPropertySymbols) { if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object); var symbols = Object.getOwnPropertySymbols(object);
enumerableOnly && (symbols = symbols.filter(function (sym) {
if (enumerableOnly) { return Object.getOwnPropertyDescriptor(object, sym).enumerable;
symbols = symbols.filter(function (sym) { })), keys.push.apply(keys, symbols);
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
}
keys.push.apply(keys, symbols);
} }
return keys; return keys;
@ -686,19 +681,12 @@ function ownKeys(object, enumerableOnly) {
function _objectSpread2(target) { function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) { for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {}; var source = null != arguments[i] ? arguments[i] : {};
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
if (i % 2) { _defineProperty(target, key, source[key]);
ownKeys(Object(source), true).forEach(function (key) { }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
_defineProperty(target, key, source[key]); Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
}); });
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
} }
return target; return target;

View File

@ -6404,6 +6404,10 @@ function EditTemplateTitle() {
updateEditorSettings updateEditorSettings
} = Object(external_wp_data_["useDispatch"])(external_wp_editor_["store"]); } = Object(external_wp_data_["useDispatch"])(external_wp_editor_["store"]);
if (template.has_theme_file) {
return null;
}
let templateTitle = Object(external_wp_i18n_["__"])('Default'); let templateTitle = Object(external_wp_i18n_["__"])('Default');
if (template !== null && template !== void 0 && template.title) { if (template !== null && template !== void 0 && template.title) {
@ -6450,12 +6454,14 @@ function EditTemplateTitle() {
function TemplateDescription() { function TemplateDescription() {
const { const {
description description,
title
} = Object(external_wp_data_["useSelect"])(select => { } = Object(external_wp_data_["useSelect"])(select => {
const { const {
getEditedPostTemplate getEditedPostTemplate
} = select(store["a" /* store */]); } = select(store["a" /* store */]);
return { return {
title: getEditedPostTemplate().title,
description: getEditedPostTemplate().description description: getEditedPostTemplate().description
}; };
}, []); }, []);
@ -6464,9 +6470,17 @@ function TemplateDescription() {
return null; return null;
} }
return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalText"], { return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHeading"], {
size: "body" level: 4,
}, description); weight: 600
}, title), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalText"], {
className: "edit-post-template-details__description",
size: "body",
as: "p",
style: {
marginTop: '12px'
}
}, description));
} }
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/template-title/index.js // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/template-title/index.js
@ -6531,6 +6545,7 @@ function TemplateTitle() {
templateTitle = template.slug; templateTitle = template.slug;
} }
const hasOptions = !!(template.custom || template.wp_id || template.description);
return Object(external_wp_element_["createElement"])("div", { return Object(external_wp_element_["createElement"])("div", {
className: "edit-post-template-top-area" className: "edit-post-template-top-area"
}, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { }, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
@ -6544,7 +6559,7 @@ function TemplateTitle() {
clearSelectedBlock(); clearSelectedBlock();
setIsEditingTemplate(false); setIsEditingTemplate(false);
} }
}, title), Object(external_wp_element_["createElement"])(external_wp_components_["Dropdown"], { }, title), hasOptions ? Object(external_wp_element_["createElement"])(external_wp_components_["Dropdown"], {
position: "bottom center", position: "bottom center",
contentClassName: "edit-post-template-top-area__popover", contentClassName: "edit-post-template-top-area__popover",
renderToggle: _ref => { renderToggle: _ref => {
@ -6560,8 +6575,14 @@ function TemplateTitle() {
label: Object(external_wp_i18n_["__"])('Template Options') label: Object(external_wp_i18n_["__"])('Template Options')
}, templateTitle); }, templateTitle);
}, },
renderContent: () => Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, template.has_theme_file ? Object(external_wp_element_["createElement"])(TemplateDescription, null) : Object(external_wp_element_["createElement"])(EditTemplateTitle, null), Object(external_wp_element_["createElement"])(DeleteTemplate, null)) renderContent: () => Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(EditTemplateTitle, null), Object(external_wp_element_["createElement"])(TemplateDescription, null), Object(external_wp_element_["createElement"])(DeleteTemplate, null))
})); }) : Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalText"], {
className: "edit-post-template-title",
size: "body",
style: {
lineHeight: '24px'
}
}, templateTitle));
} }
/* harmony default export */ var template_title = (TemplateTitle); /* harmony default export */ var template_title = (TemplateTitle);

File diff suppressed because one or more lines are too long

View File

@ -469,7 +469,13 @@ function SiteExport() {
}); });
const blob = await response.blob(); const blob = await response.blob();
download_default()(blob, 'edit-site-export.zip', 'application/zip'); download_default()(blob, 'edit-site-export.zip', 'application/zip');
} catch (error) { } catch (errorResponse) {
let error = {};
try {
error = await errorResponse.json();
} catch (e) {}
const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : Object(external_wp_i18n_["__"])('An error occurred while creating the site export.'); const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : Object(external_wp_i18n_["__"])('An error occurred while creating the site export.');
createErrorNotice(errorMessage, { createErrorNotice(errorMessage, {
type: 'snackbar' type: 'snackbar'
@ -1720,20 +1726,20 @@ Object(external_wp_hooks_["addFilter"])('editor.MediaUpload', 'core/edit-site/co
var esm_extends = __webpack_require__("wx14"); var esm_extends = __webpack_require__("wx14");
// CONCATENATED MODULE: ./node_modules/history/index.js // CONCATENATED MODULE: ./node_modules/history/index.js
var r,B=r||(r={});B.Pop="POP";B.Push="PUSH";B.Replace="REPLACE";var C= false?undefined:function(b){return b};function D(b,h){if(!b){"undefined"!==typeof console&&console.warn(h);try{throw Error(h);}catch(k){}}}function E(b){b.preventDefault();b.returnValue=""} var r,B=r||(r={});B.Pop="POP";B.Push="PUSH";B.Replace="REPLACE";var C= false?undefined:function(b){return b};function D(b,h){if(!b){"undefined"!==typeof console&&console.warn(h);try{throw Error(h);}catch(e){}}}function E(b){b.preventDefault();b.returnValue=""}
function F(){var b=[];return{get length(){return b.length},push:function(h){b.push(h);return function(){b=b.filter(function(k){return k!==h})}},call:function(h){b.forEach(function(k){return k&&k(h)})}}}function H(){return Math.random().toString(36).substr(2,8)}function I(b){var h=b.pathname,k=b.search;b=b.hash;return(void 0===h?"/":h)+(void 0===k?"":k)+(void 0===b?"":b)} function F(){var b=[];return{get length(){return b.length},push:function(h){b.push(h);return function(){b=b.filter(function(e){return e!==h})}},call:function(h){b.forEach(function(e){return e&&e(h)})}}}function H(){return Math.random().toString(36).substr(2,8)}function I(b){var h=b.pathname;h=void 0===h?"/":h;var e=b.search;e=void 0===e?"":e;b=b.hash;b=void 0===b?"":b;e&&"?"!==e&&(h+="?"===e.charAt(0)?e:"?"+e);b&&"#"!==b&&(h+="#"===b.charAt(0)?b:"#"+b);return h}
function J(b){var h={};if(b){var k=b.indexOf("#");0<=k&&(h.hash=b.substr(k),b=b.substr(0,k));k=b.indexOf("?");0<=k&&(h.search=b.substr(k),b=b.substr(0,k));b&&(h.pathname=b)}return h} function J(b){var h={};if(b){var e=b.indexOf("#");0<=e&&(h.hash=b.substr(e),b=b.substr(0,e));e=b.indexOf("?");0<=e&&(h.search=b.substr(e),b=b.substr(0,e));b&&(h.pathname=b)}return h}
function createBrowserHistory(b){function h(){var c=p.location,a=m.state||{};return[a.idx,C({pathname:c.pathname,search:c.search,hash:c.hash,state:a.usr||null,key:a.key||"default"})]}function k(c){return"string"===typeof c?c:I(c)}function x(c,a){void 0===a&&(a=null);return C(Object(esm_extends["a" /* default */])({pathname:q.pathname,hash:"",search:""},"string"===typeof c?J(c):c,{state:a,key:H()}))}function z(c){t=c;c=h();v=c[0];q=c[1];d.call({action:t,location:q})}function A(c,a){function e(){A(c,a)}var l=r.Push,g=x(c, function createBrowserHistory(b){function h(){var c=p.location,a=m.state||{};return[a.idx,C({pathname:c.pathname,search:c.search,hash:c.hash,state:a.usr||null,key:a.key||"default"})]}function e(c){return"string"===typeof c?c:I(c)}function x(c,a){void 0===a&&(a=null);return C(Object(esm_extends["a" /* default */])({pathname:q.pathname,hash:"",search:""},"string"===typeof c?J(c):c,{state:a,key:H()}))}function z(c){t=c;c=h();v=c[0];q=c[1];d.call({action:t,location:q})}function A(c,a){function f(){A(c,a)}var l=r.Push,k=x(c,
a);if(!f.length||(f.call({action:l,location:g,retry:e}),!1)){var n=[{usr:g.state,key:g.key,idx:v+1},k(g)];g=n[0];n=n[1];try{m.pushState(g,"",n)}catch(G){p.location.assign(n)}z(l)}}function y(c,a){function e(){y(c,a)}var l=r.Replace,g=x(c,a);f.length&&(f.call({action:l,location:g,retry:e}),1)||(g=[{usr:g.state,key:g.key,idx:v},k(g)],m.replaceState(g[0],"",g[1]),z(l))}function w(c){m.go(c)}void 0===b&&(b={});b=b.window;var p=void 0===b?document.defaultView:b,m=p.history,u=null;p.addEventListener("popstate", a);if(!g.length||(g.call({action:l,location:k,retry:f}),!1)){var n=[{usr:k.state,key:k.key,idx:v+1},e(k)];k=n[0];n=n[1];try{m.pushState(k,"",n)}catch(G){p.location.assign(n)}z(l)}}function y(c,a){function f(){y(c,a)}var l=r.Replace,k=x(c,a);g.length&&(g.call({action:l,location:k,retry:f}),1)||(k=[{usr:k.state,key:k.key,idx:v},e(k)],m.replaceState(k[0],"",k[1]),z(l))}function w(c){m.go(c)}void 0===b&&(b={});b=b.window;var p=void 0===b?document.defaultView:b,m=p.history,u=null;p.addEventListener("popstate",
function(){if(u)f.call(u),u=null;else{var c=r.Pop,a=h(),e=a[0];a=a[1];if(f.length)if(null!=e){var l=v-e;l&&(u={action:c,location:a,retry:function(){w(-1*l)}},w(l))}else false?undefined: function(){if(u)g.call(u),u=null;else{var c=r.Pop,a=h(),f=a[0];a=a[1];if(g.length)if(null!=f){var l=v-f;l&&(u={action:c,location:a,retry:function(){w(-1*l)}},w(l))}else false?undefined:
void 0;else z(c)}});var t=r.Pop;b=h();var v=b[0],q=b[1],d=F(),f=F();null==v&&(v=0,m.replaceState(Object(esm_extends["a" /* default */])({},m.state,{idx:v}),""));return{get action(){return t},get location(){return q},createHref:k,push:A,replace:y,go:w,back:function(){w(-1)},forward:function(){w(1)},listen:function(c){return d.push(c)},block:function(c){var a=f.push(c);1===f.length&&p.addEventListener("beforeunload",E);return function(){a();f.length||p.removeEventListener("beforeunload",E)}}}}; void 0;else z(c)}});var t=r.Pop;b=h();var v=b[0],q=b[1],d=F(),g=F();null==v&&(v=0,m.replaceState(Object(esm_extends["a" /* default */])({},m.state,{idx:v}),""));return{get action(){return t},get location(){return q},createHref:e,push:A,replace:y,go:w,back:function(){w(-1)},forward:function(){w(1)},listen:function(c){return d.push(c)},block:function(c){var a=g.push(c);1===g.length&&p.addEventListener("beforeunload",E);return function(){a();g.length||p.removeEventListener("beforeunload",E)}}}};
function createHashHistory(b){function h(){var a=J(m.location.hash.substr(1)),e=a.pathname,l=a.search;a=a.hash;var g=u.state||{};return[g.idx,C({pathname:void 0===e?"/":e,search:void 0===l?"":l,hash:void 0===a?"":a,state:g.usr||null,key:g.key||"default"})]}function k(){if(t)c.call(t),t=null;else{var a=r.Pop,e=h(),l=e[0];e=e[1];if(c.length)if(null!=l){var g=q-l;g&&(t={action:a,location:e,retry:function(){p(-1*g)}},p(g))}else false?undefined: function createHashHistory(b){function h(){var a=J(m.location.hash.substr(1)),f=a.pathname,l=a.search;a=a.hash;var k=u.state||{};return[k.idx,C({pathname:void 0===f?"/":f,search:void 0===l?"":l,hash:void 0===a?"":a,state:k.usr||null,key:k.key||"default"})]}function e(){if(t)c.call(t),t=null;else{var a=r.Pop,f=h(),l=f[0];f=f[1];if(c.length)if(null!=l){var k=q-l;k&&(t={action:a,location:f,retry:function(){p(-1*k)}},p(k))}else false?undefined:
void 0;else A(a)}}function x(a){var e=document.querySelector("base"),l="";e&&e.getAttribute("href")&&(e=m.location.href,l=e.indexOf("#"),l=-1===l?e:e.slice(0,l));return l+"#"+("string"===typeof a?a:I(a))}function z(a,e){void 0===e&&(e=null);return C(Object(esm_extends["a" /* default */])({pathname:d.pathname,hash:"",search:""},"string"===typeof a?J(a):a,{state:e,key:H()}))}function A(a){v=a;a=h();q=a[0];d=a[1];f.call({action:v,location:d})}function y(a,e){function l(){y(a,e)}var g=r.Push,n=z(a,e); false? void 0;else A(a)}}function x(a){var f=document.querySelector("base"),l="";f&&f.getAttribute("href")&&(f=m.location.href,l=f.indexOf("#"),l=-1===l?f:f.slice(0,l));return l+"#"+("string"===typeof a?a:I(a))}function z(a,f){void 0===f&&(f=null);return C(Object(esm_extends["a" /* default */])({pathname:d.pathname,hash:"",search:""},"string"===typeof a?J(a):a,{state:f,key:H()}))}function A(a){v=a;a=h();q=a[0];d=a[1];g.call({action:v,location:d})}function y(a,f){function l(){y(a,f)}var k=r.Push,n=z(a,f); false?
undefined:void 0;if(!c.length||(c.call({action:g,location:n,retry:l}),!1)){var G=[{usr:n.state,key:n.key,idx:q+1},x(n)];n=G[0];G=G[1];try{u.pushState(n,"",G)}catch(K){m.location.assign(G)}A(g)}}function w(a,e){function l(){w(a,e)}var g=r.Replace,n=z(a,e); false?undefined:void 0;c.length&&(c.call({action:g,location:n,retry:l}),1)||(n=[{usr:n.state,key:n.key,idx:q},x(n)],u.replaceState(n[0],"",n[1]),A(g))}function p(a){u.go(a)}void 0===b&&(b={});b=b.window;var m=void 0===b?document.defaultView:b,u=m.history,t=null;m.addEventListener("popstate",k);m.addEventListener("hashchange",function(){var a=h()[1];I(a)!==I(d)&&k()});var v=r.Pop;b=h();var q=b[0],d=b[1],f=F(),c=F();null==q&&(q=0,u.replaceState(Object(esm_extends["a" /* default */])({},u.state,{idx:q}),""));return{get action(){return v},get location(){return d}, undefined:void 0;if(!c.length||(c.call({action:k,location:n,retry:l}),!1)){var G=[{usr:n.state,key:n.key,idx:q+1},x(n)];n=G[0];G=G[1];try{u.pushState(n,"",G)}catch(K){m.location.assign(G)}A(k)}}function w(a,f){function l(){w(a,f)}var k=r.Replace,n=z(a,f); false?undefined:void 0;c.length&&(c.call({action:k,location:n,retry:l}),1)||(n=[{usr:n.state,key:n.key,idx:q},x(n)],u.replaceState(n[0],"",n[1]),A(k))}function p(a){u.go(a)}void 0===b&&(b={});b=b.window;var m=void 0===b?document.defaultView:b,u=m.history,t=null;m.addEventListener("popstate",e);m.addEventListener("hashchange",function(){var a=h()[1];I(a)!==I(d)&&e()});var v=r.Pop;b=h();var q=b[0],d=b[1],g=F(),c=F();null==q&&(q=0,u.replaceState(Object(esm_extends["a" /* default */])({},u.state,{idx:q}),""));return{get action(){return v},get location(){return d},
createHref:x,push:y,replace:w,go:p,back:function(){p(-1)},forward:function(){p(1)},listen:function(a){return f.push(a)},block:function(a){var e=c.push(a);1===c.length&&m.addEventListener("beforeunload",E);return function(){e();c.length||m.removeEventListener("beforeunload",E)}}}}; createHref:x,push:y,replace:w,go:p,back:function(){p(-1)},forward:function(){p(1)},listen:function(a){return g.push(a)},block:function(a){var f=c.push(a);1===c.length&&m.addEventListener("beforeunload",E);return function(){f();c.length||m.removeEventListener("beforeunload",E)}}}};
function createMemoryHistory(b){function h(d,f){void 0===f&&(f=null);return C(Object(esm_extends["a" /* default */])({pathname:t.pathname,search:"",hash:""},"string"===typeof d?J(d):d,{state:f,key:H()}))}function k(d,f,c){return!q.length||(q.call({action:d,location:f,retry:c}),!1)}function x(d,f){u=d;t=f;v.call({action:u,location:t})}function z(d,f){var c=r.Push,a=h(d,f); false?undefined: function createMemoryHistory(b){function h(d,g){void 0===g&&(g=null);return C(Object(esm_extends["a" /* default */])({pathname:t.pathname,search:"",hash:""},"string"===typeof d?J(d):d,{state:g,key:H()}))}function e(d,g,c){return!q.length||(q.call({action:d,location:g,retry:c}),!1)}function x(d,g){u=d;t=g;v.call({action:u,location:t})}function z(d,g){var c=r.Push,a=h(d,g); false?undefined:
void 0;k(c,a,function(){z(d,f)})&&(m+=1,p.splice(m,p.length,a),x(c,a))}function A(d,f){var c=r.Replace,a=h(d,f); false?undefined:void 0;k(c,a,function(){A(d,f)})&&(p[m]=a,x(c,a))}function y(d){var f=Math.min(Math.max(m+d,0),p.length-1),c=r.Pop,a=p[f];k(c,a,function(){y(d)})&&(m=f,x(c,a))}void 0===b&&(b={});var w=b;b=w.initialEntries;w=w.initialIndex;var p=(void 0=== void 0;e(c,a,function(){z(d,g)})&&(m+=1,p.splice(m,p.length,a),x(c,a))}function A(d,g){var c=r.Replace,a=h(d,g); false?undefined:void 0;e(c,a,function(){A(d,g)})&&(p[m]=a,x(c,a))}function y(d){var g=Math.min(Math.max(m+d,0),p.length-1),c=r.Pop,a=p[g];e(c,a,function(){y(d)})&&(m=g,x(c,a))}void 0===b&&(b={});var w=b;b=w.initialEntries;w=w.initialIndex;var p=(void 0===
b?["/"]:b).map(function(d){var f=C(Object(esm_extends["a" /* default */])({pathname:"/",search:"",hash:"",state:null,key:H()},"string"===typeof d?J(d):d)); false?undefined:void 0;return f}),m=Math.min(Math.max(null==w?p.length-1:w,0),p.length-1),u=r.Pop,t=p[m],v=F(),q=F();return{get index(){return m},get action(){return u},get location(){return t},createHref:function(d){return"string"=== b?["/"]:b).map(function(d){var g=C(Object(esm_extends["a" /* default */])({pathname:"/",search:"",hash:"",state:null,key:H()},"string"===typeof d?J(d):d)); false?undefined:void 0;return g}),m=Math.min(Math.max(null==w?p.length-1:w,0),p.length-1),u=r.Pop,t=p[m],v=F(),q=F();return{get index(){return m},get action(){return u},get location(){return t},createHref:function(d){return"string"===
typeof d?d:I(d)},push:z,replace:A,go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(d){return v.push(d)},block:function(d){return q.push(d)}}}; typeof d?d:I(d)},push:z,replace:A,go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(d){return v.push(d)},block:function(d){return q.push(d)}}};
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/history.js // CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/history.js
@ -4256,6 +4262,7 @@ function ColorPalettePanel(_ref) {
*/ */
function GradientPalettePanel(_ref) { function GradientPalettePanel(_ref) {
let { let {
name name
@ -4288,9 +4295,9 @@ function GradientPalettePanel(_ref) {
paletteLabel: Object(external_wp_i18n_["__"])('Custom'), paletteLabel: Object(external_wp_i18n_["__"])('Custom'),
emptyMessage: Object(external_wp_i18n_["__"])('Custom gradients are empty! Add some gradients to create your own palette.'), emptyMessage: Object(external_wp_i18n_["__"])('Custom gradients are empty! Add some gradients to create your own palette.'),
slugPrefix: "custom-" slugPrefix: "custom-"
}), Object(external_wp_element_["createElement"])("div", null, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHeading"], { }), Object(external_wp_element_["createElement"])("div", null, Object(external_wp_element_["createElement"])(subtitle, null, Object(external_wp_i18n_["__"])('Duotone')), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalSpacer"], {
className: "edit-site-global-styles-gradient-palette-panel__duotone-heading" margin: 3
}, Object(external_wp_i18n_["__"])('Duotone')), Object(external_wp_element_["createElement"])(external_wp_components_["DuotonePicker"], { }), Object(external_wp_element_["createElement"])(external_wp_components_["DuotonePicker"], {
duotonePalette: duotonePalette, duotonePalette: duotonePalette,
disableCustomDuotone: true, disableCustomDuotone: true,
disableCustomColors: true, disableCustomColors: true,
@ -5563,6 +5570,7 @@ var wordpress = __webpack_require__("wduq");
/** /**
* Internal dependencies * Internal dependencies
*/ */
@ -5593,6 +5601,14 @@ function NavigationToggle(_ref) {
setIsNavigationPanelOpened setIsNavigationPanelOpened
} = Object(external_wp_data_["useDispatch"])(store); } = Object(external_wp_data_["useDispatch"])(store);
const disableMotion = Object(external_wp_compose_["useReducedMotion"])(); const disableMotion = Object(external_wp_compose_["useReducedMotion"])();
const navigationToggleRef = Object(external_wp_element_["useRef"])();
Object(external_wp_element_["useEffect"])(() => {
// TODO: Remove this effect when alternative solution is merged.
// See: https://github.com/WordPress/gutenberg/pull/37314
if (!isNavigationOpen) {
navigationToggleRef.current.focus();
}
}, [isNavigationOpen]);
const toggleNavigationPanel = () => setIsNavigationPanelOpened(!isNavigationOpen); const toggleNavigationPanel = () => setIsNavigationPanelOpened(!isNavigationOpen);
@ -5633,6 +5649,9 @@ function NavigationToggle(_ref) {
}, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { }, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
className: "edit-site-navigation-toggle__button has-icon", className: "edit-site-navigation-toggle__button has-icon",
label: Object(external_wp_i18n_["__"])('Toggle navigation'), label: Object(external_wp_i18n_["__"])('Toggle navigation'),
ref: navigationToggleRef // isPressed will add unwanted styles.
,
"aria-pressed": isNavigationOpen,
onClick: toggleNavigationPanel, onClick: toggleNavigationPanel,
showTooltip: true showTooltip: true
}, buttonIcon)); }, buttonIcon));
@ -7959,6 +7978,24 @@ function Actions(_ref) {
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plugins.js // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plugins.js
var plugins = __webpack_require__("0Ene"); var plugins = __webpack_require__("0Ene");
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/comment-author-avatar.js
/**
* WordPress dependencies
*/
const commentAuthorAvatar = 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: "M7.25 16.4371C6.16445 15.2755 5.5 13.7153 5.5 12C5.5 8.41015 8.41015 5.5 12 5.5C15.5899 5.5 18.5 8.41015 18.5 12C18.5 13.7153 17.8356 15.2755 16.75 16.4371V16C16.75 14.4812 15.5188 13.25 14 13.25L10 13.25C8.48122 13.25 7.25 14.4812 7.25 16V16.4371ZM8.75 17.6304C9.70606 18.1835 10.8161 18.5 12 18.5C13.1839 18.5 14.2939 18.1835 15.25 17.6304V16C15.25 15.3096 14.6904 14.75 14 14.75L10 14.75C9.30964 14.75 8.75 15.3096 8.75 16V17.6304ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM14 10C14 11.1046 13.1046 12 12 12C10.8954 12 10 11.1046 10 10C10 8.89543 10.8954 8 12 8C13.1046 8 14 8.89543 14 10Z",
fillRule: "evenodd",
clipRule: "evenodd",
fill: "black"
}));
/* harmony default export */ var comment_author_avatar = (commentAuthorAvatar);
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/list/added-by.js // CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/list/added-by.js
@ -8032,21 +8069,27 @@ function AddedByPlugin(_ref3) {
} }
function AddedByAuthor(_ref4) { function AddedByAuthor(_ref4) {
var _user$avatar_urls;
let { let {
id id
} = _ref4; } = _ref4;
const user = Object(external_wp_data_["useSelect"])(select => select(external_wp_coreData_["store"]).getUser(id), [id]); const user = Object(external_wp_data_["useSelect"])(select => select(external_wp_coreData_["store"]).getUser(id), [id]);
const [isImageLoaded, setIsImageLoaded] = Object(external_wp_element_["useState"])(false); const [isImageLoaded, setIsImageLoaded] = Object(external_wp_element_["useState"])(false);
const avatarURL = user === null || user === void 0 ? void 0 : (_user$avatar_urls = user.avatar_urls) === null || _user$avatar_urls === void 0 ? void 0 : _user$avatar_urls[48];
const hasAvatar = !!avatarURL;
return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHStack"], { return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHStack"], {
alignment: "left" alignment: "left"
}, Object(external_wp_element_["createElement"])("div", { }, Object(external_wp_element_["createElement"])("div", {
className: classnames_default()('edit-site-list-added-by__avatar', { className: classnames_default()(hasAvatar ? 'edit-site-list-added-by__avatar' : 'edit-site-list-added-by__icon', {
'is-loaded': isImageLoaded 'is-loaded': isImageLoaded
}) })
}, Object(external_wp_element_["createElement"])("img", { }, hasAvatar ? Object(external_wp_element_["createElement"])("img", {
onLoad: () => setIsImageLoaded(true), onLoad: () => setIsImageLoaded(true),
alt: "", alt: "",
src: user === null || user === void 0 ? void 0 : user.avatar_urls[48] src: avatarURL
}) : Object(external_wp_element_["createElement"])(external_wp_components_["Icon"], {
icon: comment_author_avatar
})), Object(external_wp_element_["createElement"])("span", null, user === null || user === void 0 ? void 0 : user.nickname)); })), Object(external_wp_element_["createElement"])("span", null, user === null || user === void 0 ? void 0 : user.nickname));
} }

File diff suppressed because one or more lines are too long

View File

@ -2964,7 +2964,7 @@ const useWidgetLibraryInsertionPoint = () => {
return { return {
rootClientId, rootClientId,
insertionIndex: getBlockIndex(clientId, rootClientId) + 1 insertionIndex: getBlockIndex(clientId) + 1
}; };
}, [firstRootId]); }, [firstRootId]);
}; };

File diff suppressed because one or more lines are too long

View File

@ -5091,6 +5091,9 @@ function EditorSnackbars() {
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
var library_close = __webpack_require__("w95h"); var library_close = __webpack_require__("w95h");
// EXTERNAL MODULE: external ["wp","htmlEntities"]
var external_wp_htmlEntities_ = __webpack_require__("rmEH");
// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/entities-saved-states/entity-record-item.js // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/entities-saved-states/entity-record-item.js
@ -5103,6 +5106,7 @@ var library_close = __webpack_require__("w95h");
/** /**
* Internal dependencies * Internal dependencies
*/ */
@ -5156,7 +5160,7 @@ function EntityRecordItem(_ref) {
closePanel(); closePanel();
}, [parentBlockId]); }, [parentBlockId]);
return Object(external_wp_element_["createElement"])(external_wp_components_["PanelRow"], null, Object(external_wp_element_["createElement"])(external_wp_components_["CheckboxControl"], { return Object(external_wp_element_["createElement"])(external_wp_components_["PanelRow"], null, Object(external_wp_element_["createElement"])(external_wp_components_["CheckboxControl"], {
label: Object(external_wp_element_["createElement"])("strong", null, entityRecordTitle || Object(external_wp_i18n_["__"])('Untitled')), label: Object(external_wp_element_["createElement"])("strong", null, Object(external_wp_htmlEntities_["decodeEntities"])(entityRecordTitle) || Object(external_wp_i18n_["__"])('Untitled')),
checked: checked, checked: checked,
onChange: onChange onChange: onChange
}), parentBlockId ? Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { }), parentBlockId ? Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
@ -5253,6 +5257,7 @@ function EntityTypeList(_ref) {
/** /**
* Internal dependencies * Internal dependencies
*/ */
@ -5302,7 +5307,11 @@ function EntitiesSavedStates(_ref) {
editEntityRecord, editEntityRecord,
saveEditedEntityRecord, saveEditedEntityRecord,
__experimentalSaveSpecifiedEntityEdits: saveSpecifiedEntityEdits __experimentalSaveSpecifiedEntityEdits: saveSpecifiedEntityEdits
} = Object(external_wp_data_["useDispatch"])(external_wp_coreData_["store"]); // To group entities by type. } = Object(external_wp_data_["useDispatch"])(external_wp_coreData_["store"]);
const {
createSuccessNotice,
createErrorNotice
} = Object(external_wp_data_["useDispatch"])(external_wp_notices_["store"]); // To group entities by type.
const partitionedSavables = Object(external_lodash_["groupBy"])(dirtyEntityRecords, 'name'); // Sort entity groups. const partitionedSavables = Object(external_lodash_["groupBy"])(dirtyEntityRecords, 'name'); // Sort entity groups.
@ -5348,6 +5357,7 @@ function EntitiesSavedStates(_ref) {
}); });
close(entitiesToSave); close(entitiesToSave);
const siteItemsToSave = []; const siteItemsToSave = [];
const pendingSavedRecords = [];
entitiesToSave.forEach(_ref4 => { entitiesToSave.forEach(_ref4 => {
let { let {
kind, kind,
@ -5365,13 +5375,23 @@ function EntitiesSavedStates(_ref) {
}); });
} }
saveEditedEntityRecord(kind, name, key); pendingSavedRecords.push(saveEditedEntityRecord(kind, name, key));
} }
}); });
if (siteItemsToSave.length) { if (siteItemsToSave.length) {
saveSpecifiedEntityEdits('root', 'site', undefined, siteItemsToSave); pendingSavedRecords.push(saveSpecifiedEntityEdits('root', 'site', undefined, siteItemsToSave));
} }
Promise.all(pendingSavedRecords).then(values => {
if (values.some(value => typeof value === 'undefined')) {
createErrorNotice(Object(external_wp_i18n_["__"])('Saving failed.'));
} else {
createSuccessNotice(Object(external_wp_i18n_["__"])('Site updated.'), {
type: 'snackbar'
});
}
}).catch(error => createErrorNotice(`${Object(external_wp_i18n_["__"])('Saving failed.')} ${error}`));
}; // Explicitly define this with no argument passed. Using `close` on }; // Explicitly define this with no argument passed. Using `close` on
// its own will use the event object in place of the expected saved entities. // its own will use the event object in place of the expected saved entities.
@ -5860,9 +5880,6 @@ function PageAttributesOrderWithChecks(props) {
}))])(PageAttributesOrderWithChecks)); }))])(PageAttributesOrderWithChecks));
// EXTERNAL MODULE: external ["wp","htmlEntities"]
var external_wp_htmlEntities_ = __webpack_require__("rmEH");
// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/utils/terms.js // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/utils/terms.js
/** /**
* External dependencies * External dependencies
@ -7798,10 +7815,15 @@ class post_publish_button_PostPublishButton extends external_wp_element_["Compon
} }
const { const {
hasNonPostEntityChanges hasNonPostEntityChanges,
} = _this.props; setEntitiesSavedStatesCallback
} = _this.props; // If a post with non-post entities is published, but the user
// elects to not save changes to the non-post entities, those
// entities will still be dirty when the Publish button is clicked.
// We also need to check that the `setEntitiesSavedStatesCallback`
// prop was passed. See https://github.com/WordPress/gutenberg/pull/37383
if (hasNonPostEntityChanges) { if (hasNonPostEntityChanges && setEntitiesSavedStatesCallback) {
// The modal for multiple entity saving will open, // The modal for multiple entity saving will open,
// hold the callback for saving/publishing the post // hold the callback for saving/publishing the post
// so that we can call it if the post entity is checked. // so that we can call it if the post entity is checked.
@ -7813,8 +7835,7 @@ class post_publish_button_PostPublishButton extends external_wp_element_["Compon
// function on its own will cause an error when called. // function on its own will cause an error when called.
_this.props.setEntitiesSavedStatesCallback(() => _this.closeEntitiesSavedStates); setEntitiesSavedStatesCallback(() => _this.closeEntitiesSavedStates);
return external_lodash_["noop"]; return external_lodash_["noop"];
} }

File diff suppressed because one or more lines are too long

View File

@ -199,11 +199,6 @@
"slug": "small", "slug": "small",
"size": "13px" "size": "13px"
}, },
{
"name": "Normal",
"slug": "normal",
"size": "16px"
},
{ {
"name": "Medium", "name": "Medium",
"slug": "medium", "slug": "medium",
@ -215,8 +210,8 @@
"size": "36px" "size": "36px"
}, },
{ {
"name": "Huge", "name": "Extra Large",
"slug": "huge", "slug": "x-large",
"size": "42px" "size": "42px"
} }
], ],

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.9-beta3-52401'; $wp_version = '5.9-beta3-52402';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.