Editor: Update npm packages for WP 6.6 Beta 2.
See https://github.com/WordPress/wordpress-develop/pull/6773. Fixes #61410. Props vcanales. Built from https://develop.svn.wordpress.org/trunk@58387 git-svn-id: http://core.svn.wordpress.org/trunk@57836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
69eb380d78
commit
47e24c6791
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,80 @@
|
|||
<?php
|
||||
/**
|
||||
* Server-side rendering of the `core/button` block.
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
/**
|
||||
* Renders the `core/button` block on the server,
|
||||
*
|
||||
* @since 6.6.0
|
||||
*
|
||||
* @param array $attributes The block attributes.
|
||||
* @param string $content The block content.
|
||||
* @param WP_Block $block The block object.
|
||||
*
|
||||
* @return string The block content.
|
||||
*/
|
||||
function render_block_core_button( $attributes, $content ) {
|
||||
$p = new WP_HTML_Tag_Processor( $content );
|
||||
|
||||
/*
|
||||
* The button block can render an `<a>` or `<button>` and also has a
|
||||
* `<div>` wrapper. Find the a or button tag.
|
||||
*/
|
||||
$tag = null;
|
||||
while ( $p->next_tag() ) {
|
||||
$tag = $p->get_tag();
|
||||
if ( 'A' === $tag || 'BUTTON' === $tag ) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* If this happens, the likelihood is there's no block content,
|
||||
* or the block has been modified by a plugin.
|
||||
*/
|
||||
if ( null === $tag ) {
|
||||
return $content;
|
||||
}
|
||||
|
||||
// If the next token is the closing tag, the button is empty.
|
||||
$is_empty = true;
|
||||
while ( $p->next_token() && $tag !== $p->get_token_name() && $is_empty ) {
|
||||
if ( '#comment' !== $p->get_token_type() ) {
|
||||
/**
|
||||
* Anything else implies this is not empty.
|
||||
* This might include any text content (including a space),
|
||||
* inline images or other HTML.
|
||||
*/
|
||||
$is_empty = false;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* When there's no text, render nothing for the block.
|
||||
* See https://github.com/WordPress/gutenberg/issues/17221 for the
|
||||
* reasoning behind this.
|
||||
*/
|
||||
if ( $is_empty ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers the `core/button` block on server.
|
||||
*
|
||||
* @since 6.6.0
|
||||
*/
|
||||
function register_block_core_button() {
|
||||
register_block_type_from_metadata(
|
||||
__DIR__ . '/button',
|
||||
array(
|
||||
'render_callback' => 'render_block_core_button',
|
||||
)
|
||||
);
|
||||
}
|
||||
add_action( 'init', 'register_block_core_button' );
|
|
@ -9,25 +9,25 @@
|
|||
grid-template-columns:1fr 50%;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__media{
|
||||
align-self:start;
|
||||
}
|
||||
|
||||
.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__media,.wp-block-media-text>.wp-block-media-text__content,.wp-block-media-text>.wp-block-media-text__media{
|
||||
align-self:center;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__media{
|
||||
align-self:end;
|
||||
}
|
||||
|
||||
.wp-block-media-text .wp-block-media-text__media{
|
||||
.wp-block-media-text>.wp-block-media-text__media{
|
||||
grid-column:1;
|
||||
grid-row:1;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.wp-block-media-text .wp-block-media-text__content{
|
||||
.wp-block-media-text>.wp-block-media-text__content{
|
||||
direction:rtl;
|
||||
grid-column:2;
|
||||
grid-row:1;
|
||||
|
@ -35,12 +35,12 @@
|
|||
word-break:break-word;
|
||||
}
|
||||
|
||||
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media{
|
||||
.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{
|
||||
grid-column:2;
|
||||
grid-row:1;
|
||||
}
|
||||
|
||||
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{
|
||||
.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{
|
||||
grid-column:1;
|
||||
grid-row:1;
|
||||
}
|
||||
|
@ -52,18 +52,18 @@
|
|||
width:100%;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-image-fill .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-image-fill>.wp-block-media-text__media{
|
||||
background-size:cover;
|
||||
height:100%;
|
||||
min-height:250px;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-image-fill .wp-block-media-text__media>a{
|
||||
.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{
|
||||
display:block;
|
||||
height:100%;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-image-fill .wp-block-media-text__media img{
|
||||
.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{
|
||||
height:1px;
|
||||
margin:-1px;
|
||||
overflow:hidden;
|
||||
|
@ -77,11 +77,11 @@
|
|||
.wp-block-media-text.is-stacked-on-mobile{
|
||||
grid-template-columns:100% !important;
|
||||
}
|
||||
.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{
|
||||
grid-column:1;
|
||||
grid-row:1;
|
||||
}
|
||||
.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{
|
||||
.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{
|
||||
grid-column:1;
|
||||
grid-row:2;
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
.wp-block-media-text{box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media{align-self:start}.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media{align-self:center}.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media{align-self:end}.wp-block-media-text .wp-block-media-text__media{grid-column:1;grid-row:1;margin:0}.wp-block-media-text .wp-block-media-text__content{direction:rtl;grid-column:2;grid-row:1;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media{grid-column:2;grid-row:1}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{grid-column:1;grid-row:1}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill .wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill .wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill .wp-block-media-text__media img{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{grid-column:1;grid-row:2}}
|
||||
.wp-block-media-text{box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__media{align-self:start}.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__media,.wp-block-media-text>.wp-block-media-text__content,.wp-block-media-text>.wp-block-media-text__media{align-self:center}.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__media{align-self:end}.wp-block-media-text>.wp-block-media-text__media{grid-column:1;grid-row:1;margin:0}.wp-block-media-text>.wp-block-media-text__content{direction:rtl;grid-column:2;grid-row:1;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{grid-column:2;grid-row:1}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{grid-column:1;grid-row:1}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{grid-column:1;grid-row:2}}
|
|
@ -9,25 +9,25 @@
|
|||
grid-template-columns:1fr 50%;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__media{
|
||||
align-self:start;
|
||||
}
|
||||
|
||||
.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__media,.wp-block-media-text>.wp-block-media-text__content,.wp-block-media-text>.wp-block-media-text__media{
|
||||
align-self:center;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__media{
|
||||
align-self:end;
|
||||
}
|
||||
|
||||
.wp-block-media-text .wp-block-media-text__media{
|
||||
.wp-block-media-text>.wp-block-media-text__media{
|
||||
grid-column:1;
|
||||
grid-row:1;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.wp-block-media-text .wp-block-media-text__content{
|
||||
.wp-block-media-text>.wp-block-media-text__content{
|
||||
direction:ltr;
|
||||
grid-column:2;
|
||||
grid-row:1;
|
||||
|
@ -35,12 +35,12 @@
|
|||
word-break:break-word;
|
||||
}
|
||||
|
||||
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media{
|
||||
.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{
|
||||
grid-column:2;
|
||||
grid-row:1;
|
||||
}
|
||||
|
||||
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{
|
||||
.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{
|
||||
grid-column:1;
|
||||
grid-row:1;
|
||||
}
|
||||
|
@ -52,18 +52,18 @@
|
|||
width:100%;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-image-fill .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-image-fill>.wp-block-media-text__media{
|
||||
background-size:cover;
|
||||
height:100%;
|
||||
min-height:250px;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-image-fill .wp-block-media-text__media>a{
|
||||
.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{
|
||||
display:block;
|
||||
height:100%;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-image-fill .wp-block-media-text__media img{
|
||||
.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{
|
||||
height:1px;
|
||||
margin:-1px;
|
||||
overflow:hidden;
|
||||
|
@ -77,11 +77,11 @@
|
|||
.wp-block-media-text.is-stacked-on-mobile{
|
||||
grid-template-columns:100% !important;
|
||||
}
|
||||
.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{
|
||||
grid-column:1;
|
||||
grid-row:1;
|
||||
}
|
||||
.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{
|
||||
.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{
|
||||
grid-column:1;
|
||||
grid-row:2;
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
.wp-block-media-text{box-sizing:border-box;
|
||||
/*!rtl:begin:ignore*/direction:ltr;
|
||||
/*!rtl:end:ignore*/display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media{align-self:start}.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media{align-self:center}.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media{align-self:end}.wp-block-media-text .wp-block-media-text__media{
|
||||
/*!rtl:end:ignore*/display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__media{align-self:start}.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__media,.wp-block-media-text>.wp-block-media-text__content,.wp-block-media-text>.wp-block-media-text__media{align-self:center}.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__media{align-self:end}.wp-block-media-text>.wp-block-media-text__media{
|
||||
/*!rtl:begin:ignore*/grid-column:1;grid-row:1;
|
||||
/*!rtl:end:ignore*/margin:0}.wp-block-media-text .wp-block-media-text__content{direction:ltr;
|
||||
/*!rtl:end:ignore*/margin:0}.wp-block-media-text>.wp-block-media-text__content{direction:ltr;
|
||||
/*!rtl:begin:ignore*/grid-column:2;grid-row:1;
|
||||
/*!rtl:end:ignore*/padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media{
|
||||
/*!rtl:end:ignore*/padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{
|
||||
/*!rtl:begin:ignore*/grid-column:2;grid-row:1
|
||||
/*!rtl:end:ignore*/}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{
|
||||
/*!rtl:end:ignore*/}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{
|
||||
/*!rtl:begin:ignore*/grid-column:1;grid-row:1
|
||||
/*!rtl:end:ignore*/}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill .wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill .wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill .wp-block-media-text__media img{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{grid-column:1;grid-row:2}}
|
||||
/*!rtl:end:ignore*/}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{grid-column:1;grid-row:2}}
|
|
@ -495,7 +495,7 @@ class WP_Navigation_Block_Renderer {
|
|||
$close_button_directives = '';
|
||||
if ( $is_interactive ) {
|
||||
$open_button_directives = '
|
||||
data-wp-on--click="actions.openMenuOnClick"
|
||||
data-wp-on-async--click="actions.openMenuOnClick"
|
||||
data-wp-on--keydown="actions.handleMenuKeydown"
|
||||
';
|
||||
$responsive_container_directives = '
|
||||
|
@ -503,7 +503,7 @@ class WP_Navigation_Block_Renderer {
|
|||
data-wp-class--is-menu-open="state.isMenuOpen"
|
||||
data-wp-watch="callbacks.initMenu"
|
||||
data-wp-on--keydown="actions.handleMenuKeydown"
|
||||
data-wp-on--focusout="actions.handleMenuFocusout"
|
||||
data-wp-on-async--focusout="actions.handleMenuFocusout"
|
||||
tabindex="-1"
|
||||
';
|
||||
$responsive_dialog_directives = '
|
||||
|
@ -512,7 +512,7 @@ class WP_Navigation_Block_Renderer {
|
|||
data-wp-bind--role="state.roleAttribute"
|
||||
';
|
||||
$close_button_directives = '
|
||||
data-wp-on--click="actions.closeMenuOnClick"
|
||||
data-wp-on-async--click="actions.closeMenuOnClick"
|
||||
';
|
||||
$responsive_container_content_directives = '
|
||||
data-wp-watch="callbacks.focusFirstElement"
|
||||
|
@ -826,7 +826,7 @@ function block_core_navigation_add_directives_to_submenu( $tags, $block_attribut
|
|||
$tags->set_attribute( 'data-wp-interactive', 'core/navigation' );
|
||||
$tags->set_attribute( 'data-wp-context', '{ "submenuOpenedBy": { "click": false, "hover": false, "focus": false }, "type": "submenu" }' );
|
||||
$tags->set_attribute( 'data-wp-watch', 'callbacks.initMenu' );
|
||||
$tags->set_attribute( 'data-wp-on--focusout', 'actions.handleMenuFocusout' );
|
||||
$tags->set_attribute( 'data-wp-on-async--focusout', 'actions.handleMenuFocusout' );
|
||||
$tags->set_attribute( 'data-wp-on--keydown', 'actions.handleMenuKeydown' );
|
||||
|
||||
// This is a fix for Safari. Without it, Safari doesn't change the active
|
||||
|
@ -836,8 +836,8 @@ function block_core_navigation_add_directives_to_submenu( $tags, $block_attribut
|
|||
$tags->set_attribute( 'tabindex', '-1' );
|
||||
|
||||
if ( ! isset( $block_attributes['openSubmenusOnClick'] ) || false === $block_attributes['openSubmenusOnClick'] ) {
|
||||
$tags->set_attribute( 'data-wp-on--mouseenter', 'actions.openMenuOnHover' );
|
||||
$tags->set_attribute( 'data-wp-on--mouseleave', 'actions.closeMenuOnHover' );
|
||||
$tags->set_attribute( 'data-wp-on-async--mouseenter', 'actions.openMenuOnHover' );
|
||||
$tags->set_attribute( 'data-wp-on-async--mouseleave', 'actions.closeMenuOnHover' );
|
||||
}
|
||||
|
||||
// Add directives to the toggle submenu button.
|
||||
|
@ -847,7 +847,7 @@ function block_core_navigation_add_directives_to_submenu( $tags, $block_attribut
|
|||
'class_name' => 'wp-block-navigation-submenu__toggle',
|
||||
)
|
||||
) ) {
|
||||
$tags->set_attribute( 'data-wp-on--click', 'actions.toggleMenuOnClick' );
|
||||
$tags->set_attribute( 'data-wp-on-async--click', 'actions.toggleMenuOnClick' );
|
||||
$tags->set_attribute( 'data-wp-bind--aria-expanded', 'state.isMenuOpen' );
|
||||
// The `aria-expanded` attribute for SSR is already added in the submenu block.
|
||||
}
|
||||
|
@ -858,7 +858,7 @@ function block_core_navigation_add_directives_to_submenu( $tags, $block_attribut
|
|||
'class_name' => 'wp-block-navigation__submenu-container',
|
||||
)
|
||||
) ) {
|
||||
$tags->set_attribute( 'data-wp-on--focus', 'actions.openMenuOnFocus' );
|
||||
$tags->set_attribute( 'data-wp-on-async--focus', 'actions.openMenuOnFocus' );
|
||||
}
|
||||
|
||||
// Iterate through subitems if exist.
|
||||
|
|
|
@ -309,10 +309,6 @@
|
|||
top:141px;
|
||||
}
|
||||
|
||||
.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{
|
||||
left:280px;
|
||||
}
|
||||
|
||||
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{
|
||||
right:0;
|
||||
top:155px;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -309,10 +309,6 @@
|
|||
top:141px;
|
||||
}
|
||||
|
||||
.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{
|
||||
right:280px;
|
||||
}
|
||||
|
||||
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{
|
||||
left:0;
|
||||
top:155px;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -159,7 +159,7 @@ const {
|
|||
// If focus is outside modal, and in the document, close menu
|
||||
// event.target === The element losing focus
|
||||
// event.relatedTarget === The element receiving focus (if any)
|
||||
// When focusout is outsite the document,
|
||||
// When focusout is outside the document,
|
||||
// `window.document.activeElement` doesn't change.
|
||||
|
||||
// The event.relatedTarget is null when something outside the navigation menu is clicked. This is only necessary for Safari.
|
||||
|
|
|
@ -77,7 +77,7 @@ function render_block_core_query_pagination_next( $attributes, $content, $block
|
|||
) ) {
|
||||
$p->set_attribute( 'data-wp-key', 'query-pagination-next' );
|
||||
$p->set_attribute( 'data-wp-on--click', 'core/query::actions.navigate' );
|
||||
$p->set_attribute( 'data-wp-on--mouseenter', 'core/query::actions.prefetch' );
|
||||
$p->set_attribute( 'data-wp-on-async--mouseenter', 'core/query::actions.prefetch' );
|
||||
$p->set_attribute( 'data-wp-watch', 'core/query::callbacks.prefetch' );
|
||||
$content = $p->get_updated_html();
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ function render_block_core_query_pagination_previous( $attributes, $content, $bl
|
|||
) ) {
|
||||
$p->set_attribute( 'data-wp-key', 'query-pagination-previous' );
|
||||
$p->set_attribute( 'data-wp-on--click', 'core/query::actions.navigate' );
|
||||
$p->set_attribute( 'data-wp-on--mouseenter', 'core/query::actions.prefetch' );
|
||||
$p->set_attribute( 'data-wp-on-async--mouseenter', 'core/query::actions.prefetch' );
|
||||
$p->set_attribute( 'data-wp-watch', 'core/query::callbacks.prefetch' );
|
||||
$content = $p->get_updated_html();
|
||||
}
|
||||
|
|
|
@ -32,10 +32,11 @@
|
|||
}
|
||||
.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{
|
||||
background:#fff;
|
||||
margin-bottom:2px;
|
||||
margin-bottom:-4px;
|
||||
padding:16px 0;
|
||||
position:sticky;
|
||||
top:0;
|
||||
transform:translateY(-4px);
|
||||
z-index:2;
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 52px 16px 16px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:2px;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0}
|
||||
.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 52px 16px 16px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:-4px;padding:16px 0;position:sticky;top:0;transform:translateY(-4px);z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0}
|
|
@ -32,10 +32,11 @@
|
|||
}
|
||||
.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{
|
||||
background:#fff;
|
||||
margin-bottom:2px;
|
||||
margin-bottom:-4px;
|
||||
padding:16px 0;
|
||||
position:sticky;
|
||||
top:0;
|
||||
transform:translateY(-4px);
|
||||
z-index:2;
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 16px 16px 52px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:2px;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0}
|
||||
.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 16px 16px 52px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:-4px;padding:16px 0;position:sticky;top:0;transform:translateY(-4px);z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0}
|
|
@ -5,6 +5,7 @@
|
|||
require_once ABSPATH . WPINC . '/blocks/archives.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/avatar.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/block.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/button.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/calendar.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/categories.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/comment-author-name.php';
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
// Returns folder names for static blocks necessary for core blocks registration.
|
||||
return array(
|
||||
'audio',
|
||||
'button',
|
||||
'buttons',
|
||||
'code',
|
||||
'column',
|
||||
|
|
|
@ -191,8 +191,8 @@ function render_block_core_search( $attributes ) {
|
|||
data-wp-interactive="core/search"'
|
||||
. $form_context .
|
||||
'data-wp-class--wp-block-search__searchfield-hidden="!context.isSearchInputVisible"
|
||||
data-wp-on--keydown="actions.handleSearchKeydown"
|
||||
data-wp-on--focusout="actions.handleSearchFocusout"
|
||||
data-wp-on-async--keydown="actions.handleSearchKeydown"
|
||||
data-wp-on-async--focusout="actions.handleSearchFocusout"
|
||||
';
|
||||
}
|
||||
|
||||
|
|
|
@ -437,7 +437,7 @@
|
|||
width:100%;
|
||||
}
|
||||
.block-editor-block-variation-picker__skip svg,.block-editor-block-variation-picker__variations svg,.wp-block-group-placeholder__variations svg{
|
||||
fill:#ccc !important;
|
||||
fill:#949494 !important;
|
||||
}
|
||||
.block-editor-block-variation-picker__skip .components-button,.block-editor-block-variation-picker__variations .components-button,.wp-block-group-placeholder__variations .components-button{
|
||||
padding:4px;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -437,7 +437,7 @@
|
|||
width:100%;
|
||||
}
|
||||
.block-editor-block-variation-picker__skip svg,.block-editor-block-variation-picker__variations svg,.wp-block-group-placeholder__variations svg{
|
||||
fill:#ccc !important;
|
||||
fill:#949494 !important;
|
||||
}
|
||||
.block-editor-block-variation-picker__skip .components-button,.block-editor-block-variation-picker__variations .components-button,.wp-block-group-placeholder__variations .components-button{
|
||||
padding:4px;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -48,7 +48,7 @@
|
|||
}
|
||||
|
||||
iframe[name=editor-canvas]{
|
||||
background-color:#ddd;
|
||||
background-color:initial;
|
||||
box-sizing:border-box;
|
||||
display:block;
|
||||
height:100%;
|
||||
|
@ -3570,6 +3570,10 @@ iframe[name=editor-canvas]{
|
|||
padding-right:0;
|
||||
}
|
||||
|
||||
.block-editor-inserter__insertable-blocks-at-selection{
|
||||
border-bottom:1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__media-tabs-container{
|
||||
display:flex;
|
||||
flex-direction:column;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -48,7 +48,7 @@
|
|||
}
|
||||
|
||||
iframe[name=editor-canvas]{
|
||||
background-color:#ddd;
|
||||
background-color:initial;
|
||||
box-sizing:border-box;
|
||||
display:block;
|
||||
height:100%;
|
||||
|
@ -3570,6 +3570,10 @@ iframe[name=editor-canvas]{
|
|||
padding-right:0;
|
||||
}
|
||||
|
||||
.block-editor-inserter__insertable-blocks-at-selection{
|
||||
border-bottom:1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__media-tabs-container{
|
||||
display:flex;
|
||||
flex-direction:column;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1597,10 +1597,6 @@ figure.wp-block-image:not(.wp-block){
|
|||
top:141px;
|
||||
}
|
||||
|
||||
.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{
|
||||
left:280px;
|
||||
}
|
||||
|
||||
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{
|
||||
right:0;
|
||||
top:155px;
|
||||
|
@ -2509,10 +2505,11 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|||
}
|
||||
.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{
|
||||
background:#fff;
|
||||
margin-bottom:2px;
|
||||
margin-bottom:-4px;
|
||||
padding:16px 0;
|
||||
position:sticky;
|
||||
top:0;
|
||||
transform:translateY(-4px);
|
||||
z-index:2;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1595,10 +1595,6 @@ figure.wp-block-image:not(.wp-block){
|
|||
top:141px;
|
||||
}
|
||||
|
||||
.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{
|
||||
right:280px;
|
||||
}
|
||||
|
||||
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{
|
||||
left:0;
|
||||
top:155px;
|
||||
|
@ -2507,10 +2503,11 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|||
}
|
||||
.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{
|
||||
background:#fff;
|
||||
margin-bottom:2px;
|
||||
margin-bottom:-4px;
|
||||
padding:16px 0;
|
||||
position:sticky;
|
||||
top:0;
|
||||
transform:translateY(-4px);
|
||||
z-index:2;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1544,25 +1544,25 @@ ol,ul{
|
|||
grid-template-columns:1fr 50%;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__media{
|
||||
align-self:start;
|
||||
}
|
||||
|
||||
.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__media,.wp-block-media-text>.wp-block-media-text__content,.wp-block-media-text>.wp-block-media-text__media{
|
||||
align-self:center;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__media{
|
||||
align-self:end;
|
||||
}
|
||||
|
||||
.wp-block-media-text .wp-block-media-text__media{
|
||||
.wp-block-media-text>.wp-block-media-text__media{
|
||||
grid-column:1;
|
||||
grid-row:1;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.wp-block-media-text .wp-block-media-text__content{
|
||||
.wp-block-media-text>.wp-block-media-text__content{
|
||||
direction:rtl;
|
||||
grid-column:2;
|
||||
grid-row:1;
|
||||
|
@ -1570,12 +1570,12 @@ ol,ul{
|
|||
word-break:break-word;
|
||||
}
|
||||
|
||||
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media{
|
||||
.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{
|
||||
grid-column:2;
|
||||
grid-row:1;
|
||||
}
|
||||
|
||||
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{
|
||||
.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{
|
||||
grid-column:1;
|
||||
grid-row:1;
|
||||
}
|
||||
|
@ -1587,18 +1587,18 @@ ol,ul{
|
|||
width:100%;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-image-fill .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-image-fill>.wp-block-media-text__media{
|
||||
background-size:cover;
|
||||
height:100%;
|
||||
min-height:250px;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-image-fill .wp-block-media-text__media>a{
|
||||
.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{
|
||||
display:block;
|
||||
height:100%;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-image-fill .wp-block-media-text__media img{
|
||||
.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{
|
||||
height:1px;
|
||||
margin:-1px;
|
||||
overflow:hidden;
|
||||
|
@ -1612,11 +1612,11 @@ ol,ul{
|
|||
.wp-block-media-text.is-stacked-on-mobile{
|
||||
grid-template-columns:100% !important;
|
||||
}
|
||||
.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{
|
||||
grid-column:1;
|
||||
grid-row:1;
|
||||
}
|
||||
.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{
|
||||
.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{
|
||||
grid-column:1;
|
||||
grid-row:2;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1544,25 +1544,25 @@ ol,ul{
|
|||
grid-template-columns:1fr 50%;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__media{
|
||||
align-self:start;
|
||||
}
|
||||
|
||||
.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__media,.wp-block-media-text>.wp-block-media-text__content,.wp-block-media-text>.wp-block-media-text__media{
|
||||
align-self:center;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__media{
|
||||
align-self:end;
|
||||
}
|
||||
|
||||
.wp-block-media-text .wp-block-media-text__media{
|
||||
.wp-block-media-text>.wp-block-media-text__media{
|
||||
grid-column:1;
|
||||
grid-row:1;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.wp-block-media-text .wp-block-media-text__content{
|
||||
.wp-block-media-text>.wp-block-media-text__content{
|
||||
direction:ltr;
|
||||
grid-column:2;
|
||||
grid-row:1;
|
||||
|
@ -1570,12 +1570,12 @@ ol,ul{
|
|||
word-break:break-word;
|
||||
}
|
||||
|
||||
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media{
|
||||
.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{
|
||||
grid-column:2;
|
||||
grid-row:1;
|
||||
}
|
||||
|
||||
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{
|
||||
.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{
|
||||
grid-column:1;
|
||||
grid-row:1;
|
||||
}
|
||||
|
@ -1587,18 +1587,18 @@ ol,ul{
|
|||
width:100%;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-image-fill .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-image-fill>.wp-block-media-text__media{
|
||||
background-size:cover;
|
||||
height:100%;
|
||||
min-height:250px;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-image-fill .wp-block-media-text__media>a{
|
||||
.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{
|
||||
display:block;
|
||||
height:100%;
|
||||
}
|
||||
|
||||
.wp-block-media-text.is-image-fill .wp-block-media-text__media img{
|
||||
.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{
|
||||
height:1px;
|
||||
margin:-1px;
|
||||
overflow:hidden;
|
||||
|
@ -1612,11 +1612,11 @@ ol,ul{
|
|||
.wp-block-media-text.is-stacked-on-mobile{
|
||||
grid-template-columns:100% !important;
|
||||
}
|
||||
.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{
|
||||
.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{
|
||||
grid-column:1;
|
||||
grid-row:1;
|
||||
}
|
||||
.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{
|
||||
.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{
|
||||
grid-column:1;
|
||||
grid-row:2;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -393,6 +393,7 @@
|
|||
width:100%;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-actions .components-button{
|
||||
left:0;
|
||||
opacity:0;
|
||||
position:fixed;
|
||||
}
|
||||
|
@ -793,8 +794,11 @@
|
|||
display:flex;
|
||||
flex-direction:column;
|
||||
flex-wrap:wrap;
|
||||
position:absolute;
|
||||
width:100%;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
position:sticky;
|
||||
width:-moz-fit-content;
|
||||
width:fit-content;
|
||||
z-index:2;
|
||||
}
|
||||
.dataviews-bulk-actions .components-accessible-toolbar{
|
||||
|
@ -955,7 +959,12 @@
|
|||
height:100%;
|
||||
text-align:start;
|
||||
}
|
||||
|
||||
::view-transition-new(frame),::view-transition-old(frame){
|
||||
animation-duration:0;
|
||||
}
|
||||
.edit-site-visual-editor__editor-canvas{
|
||||
view-transition-name:frame;
|
||||
}
|
||||
.edit-site-visual-editor__editor-canvas.is-focused{
|
||||
outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);
|
||||
outline-offset:calc(var(--wp-admin-border-width-focus)*-2);
|
||||
|
@ -1336,17 +1345,10 @@
|
|||
}
|
||||
.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary{
|
||||
color:#1e1e1e;
|
||||
font-size:28px;
|
||||
font-weight:200;
|
||||
line-height:1.2;
|
||||
margin-bottom:4px;
|
||||
}
|
||||
.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled{
|
||||
.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled,.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{
|
||||
color:#949494;
|
||||
}
|
||||
.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:hover{
|
||||
background:#0000;
|
||||
}
|
||||
|
||||
.edit-site-global-styles-screen-revisions__footer{
|
||||
background:#fff;
|
||||
|
@ -1832,17 +1834,17 @@
|
|||
border-bottom:1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.edit-site-editor__interface-skeleton{
|
||||
.edit-site-editor__editor-interface{
|
||||
opacity:1;
|
||||
transition:opacity .1s ease-out;
|
||||
}
|
||||
@media (prefers-reduced-motion:reduce){
|
||||
.edit-site-editor__interface-skeleton{
|
||||
.edit-site-editor__editor-interface{
|
||||
transition-delay:0s;
|
||||
transition-duration:0s;
|
||||
}
|
||||
}
|
||||
.edit-site-editor__interface-skeleton.is-loading{
|
||||
.edit-site-editor__editor-interface.is-loading{
|
||||
opacity:0;
|
||||
}
|
||||
|
||||
|
@ -1856,10 +1858,6 @@
|
|||
width:280px;
|
||||
}
|
||||
|
||||
.editor-header{
|
||||
padding-right:60px;
|
||||
}
|
||||
|
||||
.edit-site-welcome-guide{
|
||||
width:312px;
|
||||
}
|
||||
|
@ -1904,44 +1902,13 @@
|
|||
}
|
||||
|
||||
.edit-site-layout{
|
||||
background:#1e1e1e;
|
||||
color:#ccc;
|
||||
display:flex;
|
||||
flex-direction:column;
|
||||
height:100%;
|
||||
}
|
||||
|
||||
.edit-site-layout__hub{
|
||||
height:60px;
|
||||
position:fixed;
|
||||
right:0;
|
||||
top:0;
|
||||
width:calc(100vw - 32px);
|
||||
z-index:3;
|
||||
}
|
||||
@media (min-width:782px){
|
||||
.edit-site-layout__hub{
|
||||
width:348px;
|
||||
}
|
||||
}
|
||||
.edit-site-layout.is-full-canvas .edit-site-layout__hub{
|
||||
border-radius:0;
|
||||
box-shadow:none;
|
||||
padding-left:0;
|
||||
width:60px;
|
||||
}
|
||||
|
||||
.edit-site-layout__header-container:has(+.edit-site-layout__content>.edit-site-layout__mobile>.edit-site-page){
|
||||
margin-bottom:60px;
|
||||
}
|
||||
@media (min-width:782px){
|
||||
.edit-site-layout__header-container:has(+.edit-site-layout__content>.edit-site-layout__mobile>.edit-site-page){
|
||||
margin-bottom:0;
|
||||
}
|
||||
}
|
||||
|
||||
.edit-site-layout__header-container{
|
||||
z-index:4;
|
||||
.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{
|
||||
background:#1e1e1e;
|
||||
}
|
||||
|
||||
.edit-site-layout__content{
|
||||
|
@ -2049,9 +2016,17 @@
|
|||
.edit-site-template-pages-preview{
|
||||
height:100%;
|
||||
}
|
||||
html.canvas-mode-edit-transition::view-transition-group(toggle){
|
||||
animation-delay:255ms;
|
||||
}
|
||||
.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle{
|
||||
display:none;
|
||||
}
|
||||
|
||||
.edit-site-layout__view-mode-toggle.components-button{
|
||||
view-transition-name:toggle;
|
||||
align-items:center;
|
||||
background:#1e1e1e;
|
||||
border-radius:0;
|
||||
color:#fff;
|
||||
display:flex;
|
||||
|
@ -2091,7 +2066,6 @@
|
|||
}
|
||||
.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{
|
||||
align-items:center;
|
||||
border-radius:2px;
|
||||
display:flex;
|
||||
height:64px;
|
||||
justify-content:center;
|
||||
|
@ -2122,27 +2096,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.edit-site-layout.is-distraction-free .edit-site-layout__header-container{
|
||||
height:60px;
|
||||
left:0;
|
||||
position:absolute;
|
||||
right:0;
|
||||
top:0;
|
||||
width:100%;
|
||||
z-index:4;
|
||||
}
|
||||
.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within{
|
||||
opacity:1 !important;
|
||||
}
|
||||
.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within div{
|
||||
transform:translateX(0) translateY(0) translateZ(0) !important;
|
||||
}
|
||||
.edit-site-layout.is-distraction-free .edit-site-site-hub{
|
||||
position:absolute;
|
||||
top:0;
|
||||
z-index:3;
|
||||
}
|
||||
|
||||
.edit-site-layout__area{
|
||||
flex-grow:1;
|
||||
margin:0;
|
||||
|
@ -2368,7 +2321,7 @@
|
|||
background:#1e1e1e;
|
||||
margin-bottom:8px;
|
||||
padding-bottom:8px;
|
||||
padding-top:108px;
|
||||
padding-top:48px;
|
||||
position:sticky;
|
||||
top:0;
|
||||
z-index:1;
|
||||
|
@ -2377,7 +2330,7 @@
|
|||
.edit-site-sidebar-navigation-screen__title{
|
||||
flex-grow:1;
|
||||
overflow-wrap:break-word;
|
||||
padding:6px 0 0;
|
||||
padding:2px 0 0;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-navigation-screen__actions{
|
||||
|
@ -2537,6 +2490,7 @@
|
|||
display:flex;
|
||||
gap:8px;
|
||||
justify-content:space-between;
|
||||
margin-left:12px;
|
||||
}
|
||||
|
||||
.edit-site-site-hub__actions{
|
||||
|
@ -2548,9 +2502,6 @@
|
|||
height:60px;
|
||||
width:60px;
|
||||
}
|
||||
.edit-site-site-hub__view-mode-toggle-container .edit-site-layout__view-mode-toggle-icon{
|
||||
background:#1e1e1e;
|
||||
}
|
||||
.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon{
|
||||
background:#0000;
|
||||
}
|
||||
|
@ -2640,13 +2591,6 @@
|
|||
|
||||
.edit-site-site-icon__icon{
|
||||
fill:currentColor;
|
||||
transition:padding .3s ease-out;
|
||||
}
|
||||
@media (prefers-reduced-motion:reduce){
|
||||
.edit-site-site-icon__icon{
|
||||
transition-delay:0s;
|
||||
transition-duration:0s;
|
||||
}
|
||||
}
|
||||
.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{
|
||||
padding:6px;
|
||||
|
@ -2654,7 +2598,6 @@
|
|||
|
||||
.edit-site-site-icon__image{
|
||||
background:#333;
|
||||
border-radius:4px;
|
||||
height:100%;
|
||||
object-fit:cover;
|
||||
width:100%;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -395,6 +395,7 @@
|
|||
.dataviews-view-list li .dataviews-view-list__item-actions .components-button{
|
||||
opacity:0;
|
||||
position:fixed;
|
||||
right:0;
|
||||
}
|
||||
.dataviews-view-list li.is-hovered .dataviews-view-list__item-actions,.dataviews-view-list li.is-selected .dataviews-view-list__item-actions,.dataviews-view-list li:focus-within .dataviews-view-list__item-actions{
|
||||
padding-right:32px;
|
||||
|
@ -793,8 +794,11 @@
|
|||
display:flex;
|
||||
flex-direction:column;
|
||||
flex-wrap:wrap;
|
||||
position:absolute;
|
||||
width:100%;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
position:sticky;
|
||||
width:-moz-fit-content;
|
||||
width:fit-content;
|
||||
z-index:2;
|
||||
}
|
||||
.dataviews-bulk-actions .components-accessible-toolbar{
|
||||
|
@ -955,7 +959,12 @@
|
|||
height:100%;
|
||||
text-align:start;
|
||||
}
|
||||
|
||||
::view-transition-new(frame),::view-transition-old(frame){
|
||||
animation-duration:0;
|
||||
}
|
||||
.edit-site-visual-editor__editor-canvas{
|
||||
view-transition-name:frame;
|
||||
}
|
||||
.edit-site-visual-editor__editor-canvas.is-focused{
|
||||
outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);
|
||||
outline-offset:calc(var(--wp-admin-border-width-focus)*-2);
|
||||
|
@ -1336,17 +1345,10 @@
|
|||
}
|
||||
.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary{
|
||||
color:#1e1e1e;
|
||||
font-size:28px;
|
||||
font-weight:200;
|
||||
line-height:1.2;
|
||||
margin-bottom:4px;
|
||||
}
|
||||
.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled{
|
||||
.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled,.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{
|
||||
color:#949494;
|
||||
}
|
||||
.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:hover{
|
||||
background:#0000;
|
||||
}
|
||||
|
||||
.edit-site-global-styles-screen-revisions__footer{
|
||||
background:#fff;
|
||||
|
@ -1832,17 +1834,17 @@
|
|||
border-bottom:1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.edit-site-editor__interface-skeleton{
|
||||
.edit-site-editor__editor-interface{
|
||||
opacity:1;
|
||||
transition:opacity .1s ease-out;
|
||||
}
|
||||
@media (prefers-reduced-motion:reduce){
|
||||
.edit-site-editor__interface-skeleton{
|
||||
.edit-site-editor__editor-interface{
|
||||
transition-delay:0s;
|
||||
transition-duration:0s;
|
||||
}
|
||||
}
|
||||
.edit-site-editor__interface-skeleton.is-loading{
|
||||
.edit-site-editor__editor-interface.is-loading{
|
||||
opacity:0;
|
||||
}
|
||||
|
||||
|
@ -1856,10 +1858,6 @@
|
|||
width:280px;
|
||||
}
|
||||
|
||||
.editor-header{
|
||||
padding-left:60px;
|
||||
}
|
||||
|
||||
.edit-site-welcome-guide{
|
||||
width:312px;
|
||||
}
|
||||
|
@ -1904,44 +1902,13 @@
|
|||
}
|
||||
|
||||
.edit-site-layout{
|
||||
background:#1e1e1e;
|
||||
color:#ccc;
|
||||
display:flex;
|
||||
flex-direction:column;
|
||||
height:100%;
|
||||
}
|
||||
|
||||
.edit-site-layout__hub{
|
||||
height:60px;
|
||||
left:0;
|
||||
position:fixed;
|
||||
top:0;
|
||||
width:calc(100vw - 32px);
|
||||
z-index:3;
|
||||
}
|
||||
@media (min-width:782px){
|
||||
.edit-site-layout__hub{
|
||||
width:348px;
|
||||
}
|
||||
}
|
||||
.edit-site-layout.is-full-canvas .edit-site-layout__hub{
|
||||
border-radius:0;
|
||||
box-shadow:none;
|
||||
padding-right:0;
|
||||
width:60px;
|
||||
}
|
||||
|
||||
.edit-site-layout__header-container:has(+.edit-site-layout__content>.edit-site-layout__mobile>.edit-site-page){
|
||||
margin-bottom:60px;
|
||||
}
|
||||
@media (min-width:782px){
|
||||
.edit-site-layout__header-container:has(+.edit-site-layout__content>.edit-site-layout__mobile>.edit-site-page){
|
||||
margin-bottom:0;
|
||||
}
|
||||
}
|
||||
|
||||
.edit-site-layout__header-container{
|
||||
z-index:4;
|
||||
.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{
|
||||
background:#1e1e1e;
|
||||
}
|
||||
|
||||
.edit-site-layout__content{
|
||||
|
@ -2049,9 +2016,17 @@
|
|||
.edit-site-template-pages-preview{
|
||||
height:100%;
|
||||
}
|
||||
html.canvas-mode-edit-transition::view-transition-group(toggle){
|
||||
animation-delay:255ms;
|
||||
}
|
||||
.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle{
|
||||
display:none;
|
||||
}
|
||||
|
||||
.edit-site-layout__view-mode-toggle.components-button{
|
||||
view-transition-name:toggle;
|
||||
align-items:center;
|
||||
background:#1e1e1e;
|
||||
border-radius:0;
|
||||
color:#fff;
|
||||
display:flex;
|
||||
|
@ -2091,7 +2066,6 @@
|
|||
}
|
||||
.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{
|
||||
align-items:center;
|
||||
border-radius:2px;
|
||||
display:flex;
|
||||
height:64px;
|
||||
justify-content:center;
|
||||
|
@ -2122,27 +2096,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.edit-site-layout.is-distraction-free .edit-site-layout__header-container{
|
||||
height:60px;
|
||||
left:0;
|
||||
position:absolute;
|
||||
right:0;
|
||||
top:0;
|
||||
width:100%;
|
||||
z-index:4;
|
||||
}
|
||||
.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within{
|
||||
opacity:1 !important;
|
||||
}
|
||||
.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within div{
|
||||
transform:translateX(0) translateY(0) translateZ(0) !important;
|
||||
}
|
||||
.edit-site-layout.is-distraction-free .edit-site-site-hub{
|
||||
position:absolute;
|
||||
top:0;
|
||||
z-index:3;
|
||||
}
|
||||
|
||||
.edit-site-layout__area{
|
||||
flex-grow:1;
|
||||
margin:0;
|
||||
|
@ -2368,7 +2321,7 @@
|
|||
background:#1e1e1e;
|
||||
margin-bottom:8px;
|
||||
padding-bottom:8px;
|
||||
padding-top:108px;
|
||||
padding-top:48px;
|
||||
position:sticky;
|
||||
top:0;
|
||||
z-index:1;
|
||||
|
@ -2377,7 +2330,7 @@
|
|||
.edit-site-sidebar-navigation-screen__title{
|
||||
flex-grow:1;
|
||||
overflow-wrap:break-word;
|
||||
padding:6px 0 0;
|
||||
padding:2px 0 0;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-navigation-screen__actions{
|
||||
|
@ -2537,6 +2490,7 @@
|
|||
display:flex;
|
||||
gap:8px;
|
||||
justify-content:space-between;
|
||||
margin-right:12px;
|
||||
}
|
||||
|
||||
.edit-site-site-hub__actions{
|
||||
|
@ -2548,9 +2502,6 @@
|
|||
height:60px;
|
||||
width:60px;
|
||||
}
|
||||
.edit-site-site-hub__view-mode-toggle-container .edit-site-layout__view-mode-toggle-icon{
|
||||
background:#1e1e1e;
|
||||
}
|
||||
.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon{
|
||||
background:#0000;
|
||||
}
|
||||
|
@ -2640,13 +2591,6 @@
|
|||
|
||||
.edit-site-site-icon__icon{
|
||||
fill:currentColor;
|
||||
transition:padding .3s ease-out;
|
||||
}
|
||||
@media (prefers-reduced-motion:reduce){
|
||||
.edit-site-site-icon__icon{
|
||||
transition-delay:0s;
|
||||
transition-duration:0s;
|
||||
}
|
||||
}
|
||||
.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{
|
||||
padding:6px;
|
||||
|
@ -2654,7 +2598,6 @@
|
|||
|
||||
.edit-site-site-icon__image{
|
||||
background:#333;
|
||||
border-radius:4px;
|
||||
height:100%;
|
||||
object-fit:cover;
|
||||
width:100%;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -249,9 +249,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
|
||||
position:relative !important;
|
||||
}
|
||||
.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{
|
||||
z-index:90;
|
||||
}
|
||||
}
|
||||
|
||||
.interface-interface-skeleton__sidebar{
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -249,9 +249,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
|
||||
position:relative !important;
|
||||
}
|
||||
.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{
|
||||
z-index:90;
|
||||
}
|
||||
}
|
||||
|
||||
.interface-interface-skeleton__sidebar{
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -250,9 +250,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
|
||||
position:relative !important;
|
||||
}
|
||||
.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{
|
||||
z-index:90;
|
||||
}
|
||||
}
|
||||
|
||||
.interface-interface-skeleton__sidebar{
|
||||
|
@ -485,6 +482,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
overflow:hidden;
|
||||
}
|
||||
.editor-collapsible-block-toolbar .block-editor-block-contextual-toolbar{
|
||||
background:#0000;
|
||||
border-bottom:0;
|
||||
height:100%;
|
||||
}
|
||||
|
@ -524,8 +522,9 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
}
|
||||
@media (min-width:600px){
|
||||
.editor-collapsible-block-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{
|
||||
height:40px;
|
||||
position:relative;
|
||||
top:-10px;
|
||||
top:-5px;
|
||||
}
|
||||
}
|
||||
.editor-collapsible-block-toolbar.is-collapsed{
|
||||
|
@ -851,6 +850,10 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
margin-right:8px;
|
||||
}
|
||||
|
||||
.editor-editor-interface .entities-saved-states__panel-header{
|
||||
height:61px;
|
||||
}
|
||||
|
||||
.components-editor-notices__dismissible,.components-editor-notices__pinned{
|
||||
color:#1e1e1e;
|
||||
left:0;
|
||||
|
@ -899,10 +902,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
margin-bottom:4px;
|
||||
}
|
||||
|
||||
.edit-post-layout .entities-saved-states__panel-header,.edit-site-editor__interface-skeleton .entities-saved-states__panel-header{
|
||||
height:61px;
|
||||
}
|
||||
|
||||
.entities-saved-states__post-meta{
|
||||
align-items:center;
|
||||
margin-right:24px;
|
||||
|
@ -1066,28 +1065,28 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
}
|
||||
}
|
||||
|
||||
.is-distraction-free .interface-interface-skeleton__header{
|
||||
.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header{
|
||||
border-bottom:none;
|
||||
}
|
||||
.is-distraction-free .editor-header{
|
||||
.editor-editor-interface.is-distraction-free .editor-header{
|
||||
background-color:#fff;
|
||||
border-bottom:1px solid #e0e0e0;
|
||||
position:absolute;
|
||||
width:100%;
|
||||
}
|
||||
.is-distraction-free .editor-header>.edit-post-header__settings>.edit-post-header__post-preview-button{
|
||||
.editor-editor-interface.is-distraction-free .editor-header>.edit-post-header__settings>.edit-post-header__post-preview-button{
|
||||
visibility:hidden;
|
||||
}
|
||||
.is-distraction-free .editor-header>.editor-header__settings>.editor-preview-dropdown,.is-distraction-free .editor-header>.editor-header__settings>.interface-pinned-items,.is-distraction-free .editor-header>.editor-header__toolbar .editor-document-tools__document-overview-toggle{
|
||||
.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-preview-dropdown,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.interface-pinned-items,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__toolbar .editor-document-tools__document-overview-toggle{
|
||||
display:none;
|
||||
}
|
||||
.is-distraction-free .interface-interface-skeleton__header:focus-within{
|
||||
.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within{
|
||||
opacity:1 !important;
|
||||
}
|
||||
.is-distraction-free .interface-interface-skeleton__header:focus-within div{
|
||||
.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within div{
|
||||
transform:translateX(0) translateZ(0) !important;
|
||||
}
|
||||
.is-distraction-free .components-editor-notices__dismissible{
|
||||
.editor-editor-interface.is-distraction-free .components-editor-notices__dismissible{
|
||||
position:absolute;
|
||||
z-index:35;
|
||||
}
|
||||
|
@ -1495,6 +1494,10 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
padding:16px;
|
||||
}
|
||||
|
||||
.editor-private-post-last-revision__button{
|
||||
display:inline-block;
|
||||
}
|
||||
|
||||
.editor-post-locked-modal__buttons{
|
||||
margin-top:24px;
|
||||
}
|
||||
|
@ -1533,6 +1536,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
.editor-post-panel__row-control .components-button{
|
||||
max-width:100%;
|
||||
text-align:right;
|
||||
text-wrap:balance;
|
||||
text-wrap:pretty;
|
||||
height:auto;
|
||||
min-height:32px;
|
||||
|
@ -1545,10 +1549,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
padding:16px;
|
||||
}
|
||||
|
||||
.editor-post-publish-panel{
|
||||
background:#fff;
|
||||
}
|
||||
|
||||
.editor-post-publish-panel__content{
|
||||
min-height:calc(100% - 144px);
|
||||
}
|
||||
|
@ -1611,6 +1611,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
}
|
||||
|
||||
.editor-post-publish-panel__header-publish-button{
|
||||
justify-content:center;
|
||||
padding-left:4px;
|
||||
}
|
||||
|
||||
|
@ -1658,6 +1659,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
}
|
||||
.editor-post-publish-panel__prepublish .components-panel__body-title .components-button{
|
||||
align-items:flex-start;
|
||||
text-wrap:balance;
|
||||
text-wrap:pretty;
|
||||
}
|
||||
|
||||
|
@ -1719,17 +1721,18 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
height:40px;
|
||||
}
|
||||
}
|
||||
.edit-post-layout .editor-post-publish-panel,.edit-site-editor__interface-skeleton .editor-post-publish-panel{
|
||||
.editor-post-publish-panel{
|
||||
background:#fff;
|
||||
bottom:0;
|
||||
left:0;
|
||||
overflow:auto;
|
||||
position:fixed;
|
||||
right:0;
|
||||
top:46px;
|
||||
top:0;
|
||||
z-index:100001;
|
||||
}
|
||||
@media (min-width:782px){
|
||||
.edit-post-layout .editor-post-publish-panel,.edit-site-editor__interface-skeleton .editor-post-publish-panel{
|
||||
.editor-post-publish-panel{
|
||||
animation:editor-post-publish-panel__slide-in-animation .1s forwards;
|
||||
border-right:1px solid #ddd;
|
||||
right:auto;
|
||||
|
@ -1740,22 +1743,19 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
}
|
||||
}
|
||||
@media (min-width:782px) and (prefers-reduced-motion:reduce){
|
||||
.edit-post-layout .editor-post-publish-panel,.edit-site-editor__interface-skeleton .editor-post-publish-panel{
|
||||
.editor-post-publish-panel{
|
||||
animation-delay:0s;
|
||||
animation-duration:1ms;
|
||||
}
|
||||
}
|
||||
@media (min-width:782px){
|
||||
body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel,body.is-fullscreen-mode .edit-site-editor__interface-skeleton .editor-post-publish-panel{
|
||||
body.is-fullscreen-mode .editor-post-publish-panel{
|
||||
top:0;
|
||||
}
|
||||
[role=region]:focus .edit-post-layout .editor-post-publish-panel,[role=region]:focus .edit-site-editor__interface-skeleton .editor-post-publish-panel{
|
||||
[role=region]:focus .editor-post-publish-panel{
|
||||
transform:translateX(0);
|
||||
}
|
||||
}
|
||||
.edit-post-layout .editor-post-publish-panel__header-publish-button,.edit-site-editor__interface-skeleton .editor-post-publish-panel__header-publish-button{
|
||||
justify-content:center;
|
||||
}
|
||||
|
||||
@keyframes editor-post-publish-panel__slide-in-animation{
|
||||
to{
|
||||
|
@ -2204,7 +2204,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder{
|
|||
z-index:100000;
|
||||
}
|
||||
|
||||
.interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-publish-panel,.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel,.interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel{
|
||||
.interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-publish-panel{
|
||||
bottom:0;
|
||||
top:auto;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -250,9 +250,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
|
||||
position:relative !important;
|
||||
}
|
||||
.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{
|
||||
z-index:90;
|
||||
}
|
||||
}
|
||||
|
||||
.interface-interface-skeleton__sidebar{
|
||||
|
@ -485,6 +482,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
overflow:hidden;
|
||||
}
|
||||
.editor-collapsible-block-toolbar .block-editor-block-contextual-toolbar{
|
||||
background:#0000;
|
||||
border-bottom:0;
|
||||
height:100%;
|
||||
}
|
||||
|
@ -524,8 +522,9 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
}
|
||||
@media (min-width:600px){
|
||||
.editor-collapsible-block-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{
|
||||
height:40px;
|
||||
position:relative;
|
||||
top:-10px;
|
||||
top:-5px;
|
||||
}
|
||||
}
|
||||
.editor-collapsible-block-toolbar.is-collapsed{
|
||||
|
@ -851,6 +850,10 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
margin-left:8px;
|
||||
}
|
||||
|
||||
.editor-editor-interface .entities-saved-states__panel-header{
|
||||
height:61px;
|
||||
}
|
||||
|
||||
.components-editor-notices__dismissible,.components-editor-notices__pinned{
|
||||
color:#1e1e1e;
|
||||
left:0;
|
||||
|
@ -899,10 +902,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
margin-bottom:4px;
|
||||
}
|
||||
|
||||
.edit-post-layout .entities-saved-states__panel-header,.edit-site-editor__interface-skeleton .entities-saved-states__panel-header{
|
||||
height:61px;
|
||||
}
|
||||
|
||||
.entities-saved-states__post-meta{
|
||||
align-items:center;
|
||||
margin-left:24px;
|
||||
|
@ -1066,28 +1065,28 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
}
|
||||
}
|
||||
|
||||
.is-distraction-free .interface-interface-skeleton__header{
|
||||
.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header{
|
||||
border-bottom:none;
|
||||
}
|
||||
.is-distraction-free .editor-header{
|
||||
.editor-editor-interface.is-distraction-free .editor-header{
|
||||
background-color:#fff;
|
||||
border-bottom:1px solid #e0e0e0;
|
||||
position:absolute;
|
||||
width:100%;
|
||||
}
|
||||
.is-distraction-free .editor-header>.edit-post-header__settings>.edit-post-header__post-preview-button{
|
||||
.editor-editor-interface.is-distraction-free .editor-header>.edit-post-header__settings>.edit-post-header__post-preview-button{
|
||||
visibility:hidden;
|
||||
}
|
||||
.is-distraction-free .editor-header>.editor-header__settings>.editor-preview-dropdown,.is-distraction-free .editor-header>.editor-header__settings>.interface-pinned-items,.is-distraction-free .editor-header>.editor-header__toolbar .editor-document-tools__document-overview-toggle{
|
||||
.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-preview-dropdown,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.interface-pinned-items,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__toolbar .editor-document-tools__document-overview-toggle{
|
||||
display:none;
|
||||
}
|
||||
.is-distraction-free .interface-interface-skeleton__header:focus-within{
|
||||
.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within{
|
||||
opacity:1 !important;
|
||||
}
|
||||
.is-distraction-free .interface-interface-skeleton__header:focus-within div{
|
||||
.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within div{
|
||||
transform:translateX(0) translateZ(0) !important;
|
||||
}
|
||||
.is-distraction-free .components-editor-notices__dismissible{
|
||||
.editor-editor-interface.is-distraction-free .components-editor-notices__dismissible{
|
||||
position:absolute;
|
||||
z-index:35;
|
||||
}
|
||||
|
@ -1495,6 +1494,10 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
padding:16px;
|
||||
}
|
||||
|
||||
.editor-private-post-last-revision__button{
|
||||
display:inline-block;
|
||||
}
|
||||
|
||||
.editor-post-locked-modal__buttons{
|
||||
margin-top:24px;
|
||||
}
|
||||
|
@ -1533,6 +1536,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
.editor-post-panel__row-control .components-button{
|
||||
max-width:100%;
|
||||
text-align:left;
|
||||
text-wrap:balance;
|
||||
text-wrap:pretty;
|
||||
height:auto;
|
||||
min-height:32px;
|
||||
|
@ -1545,10 +1549,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
padding:16px;
|
||||
}
|
||||
|
||||
.editor-post-publish-panel{
|
||||
background:#fff;
|
||||
}
|
||||
|
||||
.editor-post-publish-panel__content{
|
||||
min-height:calc(100% - 144px);
|
||||
}
|
||||
|
@ -1611,6 +1611,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
}
|
||||
|
||||
.editor-post-publish-panel__header-publish-button{
|
||||
justify-content:center;
|
||||
padding-right:4px;
|
||||
}
|
||||
|
||||
|
@ -1658,6 +1659,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
}
|
||||
.editor-post-publish-panel__prepublish .components-panel__body-title .components-button{
|
||||
align-items:flex-start;
|
||||
text-wrap:balance;
|
||||
text-wrap:pretty;
|
||||
}
|
||||
|
||||
|
@ -1719,17 +1721,18 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
height:40px;
|
||||
}
|
||||
}
|
||||
.edit-post-layout .editor-post-publish-panel,.edit-site-editor__interface-skeleton .editor-post-publish-panel{
|
||||
.editor-post-publish-panel{
|
||||
background:#fff;
|
||||
bottom:0;
|
||||
left:0;
|
||||
overflow:auto;
|
||||
position:fixed;
|
||||
right:0;
|
||||
top:46px;
|
||||
top:0;
|
||||
z-index:100001;
|
||||
}
|
||||
@media (min-width:782px){
|
||||
.edit-post-layout .editor-post-publish-panel,.edit-site-editor__interface-skeleton .editor-post-publish-panel{
|
||||
.editor-post-publish-panel{
|
||||
animation:editor-post-publish-panel__slide-in-animation .1s forwards;
|
||||
border-left:1px solid #ddd;
|
||||
left:auto;
|
||||
|
@ -1740,22 +1743,19 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
|||
}
|
||||
}
|
||||
@media (min-width:782px) and (prefers-reduced-motion:reduce){
|
||||
.edit-post-layout .editor-post-publish-panel,.edit-site-editor__interface-skeleton .editor-post-publish-panel{
|
||||
.editor-post-publish-panel{
|
||||
animation-delay:0s;
|
||||
animation-duration:1ms;
|
||||
}
|
||||
}
|
||||
@media (min-width:782px){
|
||||
body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel,body.is-fullscreen-mode .edit-site-editor__interface-skeleton .editor-post-publish-panel{
|
||||
body.is-fullscreen-mode .editor-post-publish-panel{
|
||||
top:0;
|
||||
}
|
||||
[role=region]:focus .edit-post-layout .editor-post-publish-panel,[role=region]:focus .edit-site-editor__interface-skeleton .editor-post-publish-panel{
|
||||
[role=region]:focus .editor-post-publish-panel{
|
||||
transform:translateX(0);
|
||||
}
|
||||
}
|
||||
.edit-post-layout .editor-post-publish-panel__header-publish-button,.edit-site-editor__interface-skeleton .editor-post-publish-panel__header-publish-button{
|
||||
justify-content:center;
|
||||
}
|
||||
|
||||
@keyframes editor-post-publish-panel__slide-in-animation{
|
||||
to{
|
||||
|
@ -2204,7 +2204,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder{
|
|||
z-index:100000;
|
||||
}
|
||||
|
||||
.interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-publish-panel,.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel,.interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel{
|
||||
.interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-publish-panel{
|
||||
bottom:0;
|
||||
top:auto;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2100,6 +2100,7 @@ function InstallButton({
|
|||
}
|
||||
}
|
||||
}),
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: isInstallingBlock,
|
||||
isBusy: isInstallingBlock,
|
||||
variant: "primary",
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -11261,6 +11261,7 @@ const selectors_EMPTY_ARRAY = [];
|
|||
* @type {Set}
|
||||
*/
|
||||
const EMPTY_SET = new Set();
|
||||
const EMPTY_OBJECT = {};
|
||||
|
||||
/**
|
||||
* Returns a block's name given its client ID, or null if no block exists with
|
||||
|
@ -12943,7 +12944,7 @@ const buildBlockTypeItem = (state, {
|
|||
* this item.
|
||||
* @property {number} frecency Heuristic that combines frequency and recency.
|
||||
*/
|
||||
const getInserterItems = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (0,external_wp_data_namespaceObject.createSelector)((state, rootClientId = null, options = {}) => {
|
||||
const getInserterItems = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (0,external_wp_data_namespaceObject.createSelector)((state, rootClientId = null, options = EMPTY_OBJECT) => {
|
||||
const buildReusableBlockInserterItem = reusableBlock => {
|
||||
const icon = !reusableBlock.wp_pattern_sync_status ? {
|
||||
src: library_symbol,
|
||||
|
@ -15942,7 +15943,7 @@ function __unstableSetTemporarilyEditingAsBlocks(temporarilyEditingAsBlocks, foc
|
|||
* per_page: 'page_size',
|
||||
* search: 'q',
|
||||
* };
|
||||
* const url = new URL( 'https://api.openverse.engineering/v1/images/' );
|
||||
* const url = new URL( 'https://api.openverse.org/v1/images/' );
|
||||
* Object.entries( finalQuery ).forEach( ( [ key, value ] ) => {
|
||||
* const queryKey = mapFromInserterMediaRequest[ key ] || key;
|
||||
* url.searchParams.set( queryKey, value );
|
||||
|
@ -17125,7 +17126,7 @@ function useSettingsForBlockElement(parentSettings, blockName, element) {
|
|||
updatedSettings.color.defaultDuotone = false;
|
||||
updatedSettings.color.customDuotone = false;
|
||||
}
|
||||
['lineHeight', 'fontStyle', 'fontWeight', 'letterSpacing', 'textTransform', 'textDecoration', 'writingMode'].forEach(key => {
|
||||
['lineHeight', 'fontStyle', 'fontWeight', 'letterSpacing', 'textAlign', 'textTransform', 'textDecoration', 'writingMode'].forEach(key => {
|
||||
if (!supportedStyles.includes(key)) {
|
||||
updatedSettings.typography = {
|
||||
...updatedSettings.typography,
|
||||
|
@ -22891,7 +22892,7 @@ const LinkControlSearchInput = (0,external_wp_element_namespaceObject.forwardRef
|
|||
className: className,
|
||||
value: value,
|
||||
onChange: onInputChange,
|
||||
placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : (0,external_wp_i18n_namespaceObject.__)('Search or type url'),
|
||||
placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : (0,external_wp_i18n_namespaceObject.__)('Search or type URL'),
|
||||
__experimentalRenderSuggestions: showSuggestions ? handleRenderSuggestions : null,
|
||||
__experimentalFetchLinkSuggestions: searchHandler,
|
||||
__experimentalHandleURLSuggestions: true,
|
||||
|
@ -23215,6 +23216,7 @@ function LinkPreview({
|
|||
// Ends up looking like "Copy link: https://example.com".
|
||||
isEmptyURL || showIconLabels ? '' : ': ' + value.url),
|
||||
ref: ref,
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: isEmptyURL,
|
||||
size: "compact"
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ViewerSlot, {
|
||||
|
@ -24494,13 +24496,13 @@ function BackgroundSizeToolsPanelItem({
|
|||
help: backgroundSizeHelpText(sizeValue || defaultValues?.backgroundSize),
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
|
||||
value: "cover",
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Cover')
|
||||
label: (0,external_wp_i18n_namespaceObject._x)('Cover', 'Size option for background image control')
|
||||
}, "cover"), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
|
||||
value: "contain",
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Contain')
|
||||
label: (0,external_wp_i18n_namespaceObject._x)('Contain', 'Size option for background image control')
|
||||
}, "contain"), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
|
||||
value: "auto",
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Tile')
|
||||
label: (0,external_wp_i18n_namespaceObject._x)('Tile', 'Size option for background image control')
|
||||
}, "tile")]
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
justify: "flex-start",
|
||||
|
@ -30525,22 +30527,19 @@ function useSpacingSizes() {
|
|||
name: (0,external_wp_i18n_namespaceObject.__)('None'),
|
||||
slug: '0',
|
||||
size: 0
|
||||
}, ...customSizes, ...themeSizes, ...defaultSizes].sort((a, b) => compare(a.slug, b.slug));
|
||||
}, ...customSizes, ...themeSizes, ...defaultSizes];
|
||||
|
||||
// Only sort if more than one origin has presets defined in order to
|
||||
// preserve order for themes that don't include default presets and
|
||||
// want a custom order.
|
||||
if ((customSizes.length && 1) + (themeSizes.length && 1) + (defaultSizes.length && 1) > 1) {
|
||||
sizes.sort((a, b) => compare(a.slug, b.slug));
|
||||
}
|
||||
return sizes.length > RANGE_CONTROL_MAX_SIZE ? [{
|
||||
name: (0,external_wp_i18n_namespaceObject.__)('Default'),
|
||||
slug: 'default',
|
||||
size: undefined
|
||||
}, ...sizes] :
|
||||
// See https://github.com/WordPress/gutenberg/pull/44247 for reasoning
|
||||
// to use the index as the name in the range control.
|
||||
sizes.map(({
|
||||
slug,
|
||||
size
|
||||
}, i) => ({
|
||||
name: i,
|
||||
slug,
|
||||
size
|
||||
}));
|
||||
}, ...sizes] : sizes;
|
||||
}, [customSizes, themeSizes, defaultSizes]);
|
||||
}
|
||||
|
||||
|
@ -36535,7 +36534,7 @@ function BlockIcon({
|
|||
|
||||
|
||||
|
||||
const EMPTY_OBJECT = {};
|
||||
const block_hooks_EMPTY_OBJECT = {};
|
||||
function BlockHooksControlPure({
|
||||
name,
|
||||
clientId,
|
||||
|
@ -36622,7 +36621,7 @@ function BlockHooksControlPure({
|
|||
if (Object.values(_hookedBlockClientIds).length > 0) {
|
||||
return _hookedBlockClientIds;
|
||||
}
|
||||
return EMPTY_OBJECT;
|
||||
return block_hooks_EMPTY_OBJECT;
|
||||
}, [hookedBlocksForCurrentBlock, name, clientId, rootClientId]);
|
||||
const {
|
||||
insertBlock,
|
||||
|
@ -38094,9 +38093,10 @@ function getItemSearchRank(item, searchTerm, config = {}) {
|
|||
* @return {Array} Returns the block types state. (block types, categories, collections, onSelect handler)
|
||||
*/
|
||||
const useBlockTypesState = (rootClientId, onInsert, isQuick) => {
|
||||
const [items] = (0,external_wp_data_namespaceObject.useSelect)(select => [select(store).getInserterItems(rootClientId, {
|
||||
const options = (0,external_wp_element_namespaceObject.useMemo)(() => ({
|
||||
[withRootClientIdOptionKey]: !isQuick
|
||||
})], [rootClientId, isQuick]);
|
||||
}), [isQuick]);
|
||||
const [items] = (0,external_wp_data_namespaceObject.useSelect)(select => [select(store).getInserterItems(rootClientId, options)], [rootClientId, options]);
|
||||
const [categories, collections] = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
const {
|
||||
getCategories,
|
||||
|
@ -43240,10 +43240,29 @@ function useClipboardHandler() {
|
|||
}
|
||||
const [firstSelectedClientId] = selectedBlockClientIds;
|
||||
const rootClientId = getBlockRootClientId(firstSelectedClientId);
|
||||
if (!blocks.every(block => canInsertBlockType(block.name, rootClientId))) {
|
||||
return;
|
||||
const newBlocks = [];
|
||||
for (const block of blocks) {
|
||||
if (canInsertBlockType(block.name, rootClientId)) {
|
||||
newBlocks.push(block);
|
||||
} else {
|
||||
// If a block cannot be inserted in a root block, try
|
||||
// converting it to that root block type and insert the
|
||||
// inner blocks.
|
||||
// Example: paragraphs cannot be inserted into a list,
|
||||
// so convert the paragraphs to a list for list items.
|
||||
const rootBlockName = getBlockName(rootClientId);
|
||||
const switchedBlocks = block.name !== rootBlockName ? (0,external_wp_blocks_namespaceObject.switchToBlockType)(block, rootBlockName) : [block];
|
||||
if (!switchedBlocks) {
|
||||
return;
|
||||
}
|
||||
for (const switchedBlock of switchedBlocks) {
|
||||
for (const innerBlock of switchedBlock.innerBlocks) {
|
||||
newBlocks.push(innerBlock);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
__unstableSplitSelection(blocks);
|
||||
__unstableSplitSelection(newBlocks);
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
|
@ -44983,8 +45002,8 @@ function BlockTypesTab({
|
|||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_listbox, {
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
||||
ref: ref,
|
||||
children: [!!itemsForCurrentRoot.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockTypesTabPanel, {
|
||||
children: [!!itemsForCurrentRoot.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockTypesTabPanel, {
|
||||
items: itemsForCurrentRoot,
|
||||
categories: categories,
|
||||
collections: collections,
|
||||
|
@ -44992,7 +45011,7 @@ function BlockTypesTab({
|
|||
onHover: onHover,
|
||||
showMostUsedBlocks: showMostUsedBlocks,
|
||||
className: "block-editor-inserter__insertable-blocks-at-selection"
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("hr", {})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockTypesTabPanel, {
|
||||
items: itemsRemaining,
|
||||
categories: categories,
|
||||
|
@ -48109,7 +48128,10 @@ function ButtonBlockAppender({
|
|||
className: dist_clsx(className, 'block-editor-button-block-appender'),
|
||||
onClick: onToggle,
|
||||
"aria-haspopup": isToggleButton ? 'true' : undefined,
|
||||
"aria-expanded": isToggleButton ? isOpen : undefined,
|
||||
"aria-expanded": isToggleButton ? isOpen : undefined
|
||||
// Disable reason: There shouldn't be a case where this button is disabled but not visually hidden.
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
,
|
||||
disabled: disabled,
|
||||
label: label,
|
||||
children: [!hasSingleBlockType && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
|
||||
|
@ -54551,7 +54573,7 @@ function BlockBindingsToolbarIndicator({
|
|||
return {
|
||||
icon: _icon,
|
||||
firstBlockName: getBlockAttributes(clientIds[0]).metadata.name,
|
||||
isConnectedToPatternOverrides: getBlocksByClientId(clientIds).some(block => Object.values(block?.attributes.metadata?.bindings).some(binding => binding.source === 'core/pattern-overrides'))
|
||||
isConnectedToPatternOverrides: getBlocksByClientId(clientIds).some(block => Object.values(block?.attributes?.metadata?.bindings || {}).some(binding => binding.source === 'core/pattern-overrides'))
|
||||
};
|
||||
}, [clientIds, isSingleBlockSelected]);
|
||||
const firstBlockTitle = useBlockDisplayTitle({
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5192,9 +5192,6 @@ function save_save({
|
|||
url,
|
||||
width
|
||||
} = attributes;
|
||||
if (external_wp_blockEditor_namespaceObject.RichText.isEmpty(text)) {
|
||||
return null;
|
||||
}
|
||||
const TagName = tagName || 'a';
|
||||
const isButtonTag = 'button' === TagName;
|
||||
const buttonType = type || 'button';
|
||||
|
@ -16973,16 +16970,6 @@ const embed_variations_variations = [{
|
|||
providerNameSlug: 'scribd',
|
||||
responsive: true
|
||||
}
|
||||
}, {
|
||||
name: 'slideshare',
|
||||
title: 'Slideshare',
|
||||
icon: embedContentIcon,
|
||||
description: (0,external_wp_i18n_namespaceObject.__)('Embed Slideshare content.'),
|
||||
patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],
|
||||
attributes: {
|
||||
providerNameSlug: 'slideshare',
|
||||
responsive: true
|
||||
}
|
||||
}, {
|
||||
name: 'smugmug',
|
||||
title: 'SmugMug',
|
||||
|
@ -21802,13 +21789,19 @@ class GalleryImage extends external_wp_element_namespaceObject.Component {
|
|||
icon: chevron_left,
|
||||
onClick: isFirstItem ? undefined : onMoveBackward,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Move image backward'),
|
||||
"aria-disabled": isFirstItem,
|
||||
"aria-disabled": isFirstItem
|
||||
// Disable reason: Truly disable when image is not selected.
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
,
|
||||
disabled: !isSelected
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
icon: chevron_right,
|
||||
onClick: isLastItem ? undefined : onMoveForward,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Move image forward'),
|
||||
"aria-disabled": isLastItem,
|
||||
"aria-disabled": isLastItem
|
||||
// Disable reason: Truly disable when image is not selected.
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
,
|
||||
disabled: !isSelected
|
||||
})]
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ButtonGroup, {
|
||||
|
@ -21816,12 +21809,18 @@ class GalleryImage extends external_wp_element_namespaceObject.Component {
|
|||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
icon: library_edit,
|
||||
onClick: this.onEdit,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Replace image'),
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Replace image')
|
||||
// Disable reason: Truly disable when image is not selected.
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
,
|
||||
disabled: !isSelected
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
icon: close_small,
|
||||
onClick: onRemove,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Remove image'),
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Remove image')
|
||||
// Disable reason: Truly disable when image is not selected.
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
,
|
||||
disabled: !isSelected
|
||||
})]
|
||||
}), !isEditing && (isSelected || caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
|
||||
|
@ -39285,6 +39284,7 @@ function ConvertToLinksModal({
|
|||
children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
variant: "primary",
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: disabled,
|
||||
onClick: onClick,
|
||||
children: (0,external_wp_i18n_namespaceObject.__)('Edit')
|
||||
|
@ -39563,6 +39563,7 @@ function PageListEdit({
|
|||
children: convertDescription
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
variant: "primary",
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: !hasResolvedPages,
|
||||
onClick: convertToNavigationLinks,
|
||||
children: (0,external_wp_i18n_namespaceObject.__)('Edit')
|
||||
|
@ -60229,8 +60230,8 @@ function TitleModal({
|
|||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
variant: "primary",
|
||||
type: "submit",
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: !title.length,
|
||||
"aria-disabled": !title.length,
|
||||
children: (0,external_wp_i18n_namespaceObject.__)('Create')
|
||||
})
|
||||
})]
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -8164,6 +8164,27 @@ const getValueFromObjectPath = (object, path, defaultValue) => {
|
|||
});
|
||||
return (_value = value) !== null && _value !== void 0 ? _value : defaultValue;
|
||||
};
|
||||
function utils_isObject(candidate) {
|
||||
return typeof candidate === 'object' && candidate.constructor === Object && candidate !== null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether a set of object properties matches a given object.
|
||||
*
|
||||
* Given an object of block attributes and an object of variation attributes,
|
||||
* this function checks recursively whether all the variation attributes are
|
||||
* present in the block attributes object.
|
||||
*
|
||||
* @param {Object} blockAttributes The object to inspect.
|
||||
* @param {Object} variationAttributes The object of property values to match.
|
||||
* @return {boolean} Whether the block attributes match the variation attributes.
|
||||
*/
|
||||
function matchesAttributes(blockAttributes, variationAttributes) {
|
||||
if (utils_isObject(blockAttributes) && utils_isObject(variationAttributes)) {
|
||||
return Object.entries(variationAttributes).every(([key, value]) => matchesAttributes(blockAttributes?.[key], value));
|
||||
}
|
||||
return blockAttributes === variationAttributes;
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/selectors.js
|
||||
/**
|
||||
|
@ -8176,6 +8197,7 @@ const getValueFromObjectPath = (object, path, defaultValue) => {
|
|||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
@ -8414,11 +8436,15 @@ function getActiveBlockVariation(state, blockName, attributes, scope) {
|
|||
continue;
|
||||
}
|
||||
const isMatch = definedAttributes.every(attribute => {
|
||||
const attributeValue = getValueFromObjectPath(attributes, attribute);
|
||||
if (attributeValue === undefined) {
|
||||
const variationAttributeValue = getValueFromObjectPath(variation.attributes, attribute);
|
||||
if (variationAttributeValue === undefined) {
|
||||
return false;
|
||||
}
|
||||
return attributeValue === getValueFromObjectPath(variation.attributes, attribute);
|
||||
let blockAttributeValue = getValueFromObjectPath(attributes, attribute);
|
||||
if (blockAttributeValue instanceof external_wp_richText_namespaceObject.RichTextData) {
|
||||
blockAttributeValue = blockAttributeValue.toHTMLString();
|
||||
}
|
||||
return matchesAttributes(blockAttributeValue, variationAttributeValue);
|
||||
});
|
||||
if (isMatch && definedAttributesLength > maxMatchedAttributes) {
|
||||
match = variation;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -27882,7 +27882,7 @@ function text_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried t
|
|||
* Internal dependencies
|
||||
*/
|
||||
|
||||
const Text = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.gray[900], ";line-height:", config_values.fontLineHeightBase, ";margin:0;text-wrap:pretty;" + ( true ? "" : 0), true ? "" : 0);
|
||||
const Text = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.gray[900], ";line-height:", config_values.fontLineHeightBase, ";margin:0;text-wrap:balance;text-wrap:pretty;" + ( true ? "" : 0), true ? "" : 0);
|
||||
const styles_block = true ? {
|
||||
name: "4zleql",
|
||||
styles: "display:block"
|
||||
|
@ -73600,10 +73600,12 @@ function useTrackElementOffset(targetElement, onUpdate) {
|
|||
observedElementRef.current = targetElement !== null && targetElement !== void 0 ? targetElement : undefined;
|
||||
function updateIndicator(element) {
|
||||
setIndicatorPosition({
|
||||
left: element.offsetLeft,
|
||||
top: element.offsetTop,
|
||||
width: element.offsetWidth,
|
||||
height: element.offsetHeight
|
||||
// Workaround to prevent unwanted scrollbars, see:
|
||||
// https://github.com/WordPress/gutenberg/pull/61979
|
||||
left: Math.max(element.offsetLeft - 1, 0),
|
||||
top: Math.max(element.offsetTop - 1, 0),
|
||||
width: parseFloat(getComputedStyle(element).width),
|
||||
height: parseFloat(getComputedStyle(element).height)
|
||||
});
|
||||
updateCallbackRef.current?.();
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -3477,7 +3477,7 @@ function items(state = {}, action) {
|
|||
[context]: {
|
||||
...state[context],
|
||||
...action.items.reduce((accumulator, value) => {
|
||||
const itemId = value[key];
|
||||
const itemId = value?.[key];
|
||||
accumulator[itemId] = conservativeMapItem(state?.[context]?.[itemId], value);
|
||||
return accumulator;
|
||||
}, {})
|
||||
|
@ -3525,7 +3525,7 @@ function itemIsComplete(state = {}, action) {
|
|||
[context]: {
|
||||
...state[context],
|
||||
...action.items.reduce((result, item) => {
|
||||
const itemId = item[key];
|
||||
const itemId = item?.[key];
|
||||
|
||||
// Defer to completeness if already assigned. Technically the
|
||||
// data may be outdated if receiving items for a field subset.
|
||||
|
@ -3580,7 +3580,7 @@ on_sub_key('stableKey')])((state = {}, action) => {
|
|||
return state;
|
||||
}
|
||||
return {
|
||||
itemIds: getMergedItemIds(state?.itemIds || [], action.items.map(item => item[key]), page, perPage),
|
||||
itemIds: getMergedItemIds(state?.itemIds || [], action.items.map(item => item?.[key]).filter(Boolean), page, perPage),
|
||||
meta: action.meta
|
||||
};
|
||||
});
|
||||
|
@ -3859,7 +3859,7 @@ function entity(entityConfig) {
|
|||
...state
|
||||
};
|
||||
for (const record of action.items) {
|
||||
const recordId = record[action.key];
|
||||
const recordId = record?.[action.key];
|
||||
const edits = nextState[recordId];
|
||||
if (!edits) {
|
||||
continue;
|
||||
|
@ -5990,7 +5990,7 @@ const resolvers_getEntityRecords = (kind, name, query = {}) => async ({
|
|||
// See https://github.com/WordPress/gutenberg/pull/26575
|
||||
if (!query?._fields && !query.context) {
|
||||
const key = entityConfig.key || DEFAULT_ENTITY_KEY;
|
||||
const resolutionsArgs = records.filter(record => record[key]).map(record => [kind, name, record[key]]);
|
||||
const resolutionsArgs = records.filter(record => record?.[key]).map(record => [kind, name, record[key]]);
|
||||
dispatch({
|
||||
type: 'START_RESOLUTIONS',
|
||||
selectorName: 'getEntityRecord',
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -3434,9 +3434,12 @@ function createRegistry(storeConfigs = {}, parent = null) {
|
|||
}
|
||||
emitter.pause();
|
||||
Object.values(stores).forEach(store => store.emitter.pause());
|
||||
callback();
|
||||
emitter.resume();
|
||||
Object.values(stores).forEach(store => store.emitter.resume());
|
||||
try {
|
||||
callback();
|
||||
} finally {
|
||||
emitter.resume();
|
||||
Object.values(stores).forEach(store => store.emitter.resume());
|
||||
}
|
||||
}
|
||||
let registry = {
|
||||
batch,
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -161,8 +161,6 @@ const external_wp_commands_namespaceObject = window["wp"]["commands"];
|
|||
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
|
||||
;// CONCATENATED MODULE: external ["wp","blockEditor"]
|
||||
const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
|
||||
;// CONCATENATED MODULE: external ["wp","compose"]
|
||||
const external_wp_compose_namespaceObject = window["wp"]["compose"];
|
||||
;// CONCATENATED MODULE: external ["wp","plugins"]
|
||||
const external_wp_plugins_namespaceObject = window["wp"]["plugins"];
|
||||
;// CONCATENATED MODULE: external ["wp","i18n"]
|
||||
|
@ -192,6 +190,8 @@ const wordpress = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(
|
|||
});
|
||||
/* harmony default export */ const library_wordpress = (wordpress);
|
||||
|
||||
;// CONCATENATED MODULE: external ["wp","compose"]
|
||||
const external_wp_compose_namespaceObject = window["wp"]["compose"];
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/reducer.js
|
||||
/**
|
||||
* WordPress dependencies
|
||||
|
@ -1518,7 +1518,9 @@ function BackButton({
|
|||
initialPost
|
||||
}) {
|
||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BackButtonFill, {
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
|
||||
children: ({
|
||||
length
|
||||
}) => length <= 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
|
||||
variants: slideX,
|
||||
transition: {
|
||||
type: 'tween',
|
||||
|
@ -1654,7 +1656,7 @@ function InitPatternModal() {
|
|||
__nextHasNoMarginBottom: true,
|
||||
__next40pxDefaultSize: true
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ReusableBlocksRenameHint, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
|
||||
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that makes an individual pattern synchronized'),
|
||||
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'pattern (singular)'),
|
||||
help: (0,external_wp_i18n_namespaceObject.__)('Sync this pattern across multiple locations.'),
|
||||
checked: !syncType,
|
||||
onChange: () => {
|
||||
|
@ -2059,6 +2061,7 @@ function CustomFieldsConfirmation({
|
|||
className: "edit-post-preferences-modal__custom-fields-confirmation-button",
|
||||
variant: "secondary",
|
||||
isBusy: isReloading,
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: isReloading,
|
||||
onClick: () => {
|
||||
setIsReloading(true);
|
||||
|
@ -2647,7 +2650,6 @@ function useShouldIframe() {
|
|||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
@ -2735,22 +2737,21 @@ function useEditorStyles() {
|
|||
}
|
||||
const baseStyles = hasThemeStyles ? (_editorSettings$style3 = editorSettings.styles) !== null && _editorSettings$style3 !== void 0 ? _editorSettings$style3 : [] : defaultEditorStyles;
|
||||
|
||||
// Add a constant padding for the typewritter effect. When typing at the
|
||||
// Add a constant padding for the typewriter effect. When typing at the
|
||||
// bottom, there needs to be room to scroll up.
|
||||
if (!isZoomedOutView && !hasMetaBoxes && renderingMode === 'post-only' && !DESIGN_POST_TYPES.includes(postType)) {
|
||||
baseStyles.push({
|
||||
return [...baseStyles, {
|
||||
css: 'body{padding-bottom: 40vh}'
|
||||
});
|
||||
}];
|
||||
}
|
||||
return baseStyles;
|
||||
}, [editorSettings.defaultEditorStyles, editorSettings.disableLayoutStyles, editorSettings.styles, hasThemeStyleSupport]);
|
||||
}, [editorSettings.defaultEditorStyles, editorSettings.disableLayoutStyles, editorSettings.styles, hasThemeStyleSupport, postType]);
|
||||
}
|
||||
function Layout({
|
||||
initialPost
|
||||
}) {
|
||||
layout_useCommands();
|
||||
useCommands();
|
||||
const isWideViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('large');
|
||||
const paddingAppenderRef = usePaddingAppender();
|
||||
const shouldIframe = useShouldIframe();
|
||||
const {
|
||||
|
@ -2759,12 +2760,10 @@ function Layout({
|
|||
const {
|
||||
mode,
|
||||
isFullscreenActive,
|
||||
sidebarIsOpened,
|
||||
hasActiveMetaboxes,
|
||||
hasBlockSelected,
|
||||
showIconLabels,
|
||||
isDistractionFree,
|
||||
showBlockBreadcrumbs,
|
||||
showMetaBoxes,
|
||||
hasHistory,
|
||||
isEditingTemplate,
|
||||
|
@ -2786,7 +2785,6 @@ function Layout({
|
|||
hasBlockSelected: !!select(external_wp_blockEditor_namespaceObject.store).getBlockSelectionStart(),
|
||||
showIconLabels: get('core', 'showIconLabels'),
|
||||
isDistractionFree: get('core', 'distractionFree'),
|
||||
showBlockBreadcrumbs: get('core', 'showBlockBreadcrumbs'),
|
||||
showMetaBoxes: select(external_wp_editor_namespaceObject.store).getRenderingMode() === 'post-only',
|
||||
hasHistory: !!getEditorSettings().onNavigateToPreviousEntityRecord,
|
||||
isEditingTemplate: select(external_wp_editor_namespaceObject.store).getCurrentPostType() === 'wp_template',
|
||||
|
@ -2806,10 +2804,7 @@ function Layout({
|
|||
document.body.classList.remove('show-icon-labels');
|
||||
}
|
||||
const className = dist_clsx('edit-post-layout', 'is-mode-' + mode, {
|
||||
'is-sidebar-opened': sidebarIsOpened,
|
||||
'has-metaboxes': hasActiveMetaboxes,
|
||||
'is-distraction-free': isDistractionFree && isWideViewport,
|
||||
'has-block-breadcrumbs': showBlockBreadcrumbs && !isDistractionFree && isWideViewport
|
||||
'has-metaboxes': hasActiveMetaboxes
|
||||
});
|
||||
function onPluginAreaError(name) {
|
||||
createErrorNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: plugin name */
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -8180,6 +8180,7 @@ function PushChangesToGlobalStylesControl({
|
|||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
__next40pxDefaultSize: true,
|
||||
variant: "secondary",
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: changes.length === 0,
|
||||
onClick: pushChanges,
|
||||
children: (0,external_wp_i18n_namespaceObject.__)('Apply globally')
|
||||
|
@ -8801,27 +8802,42 @@ const setCanvasMode = mode => ({
|
|||
registry,
|
||||
dispatch
|
||||
}) => {
|
||||
const isMediumOrBigger = window.matchMedia('(min-width: 782px)').matches;
|
||||
registry.dispatch(external_wp_blockEditor_namespaceObject.store).__unstableSetEditorMode('edit');
|
||||
const isPublishSidebarOpened = registry.select(external_wp_editor_namespaceObject.store).isPublishSidebarOpened();
|
||||
dispatch({
|
||||
type: 'SET_CANVAS_MODE',
|
||||
mode
|
||||
});
|
||||
const isEditMode = mode === 'edit';
|
||||
if (isPublishSidebarOpened && !isEditMode) {
|
||||
registry.dispatch(external_wp_editor_namespaceObject.store).closePublishSidebar();
|
||||
}
|
||||
const switchCanvasMode = () => {
|
||||
registry.batch(() => {
|
||||
const isMediumOrBigger = window.matchMedia('(min-width: 782px)').matches;
|
||||
registry.dispatch(external_wp_blockEditor_namespaceObject.store).clearSelectedBlock();
|
||||
registry.dispatch(external_wp_editor_namespaceObject.store).setDeviceType('Desktop');
|
||||
registry.dispatch(external_wp_blockEditor_namespaceObject.store).__unstableSetEditorMode('edit');
|
||||
const isPublishSidebarOpened = registry.select(external_wp_editor_namespaceObject.store).isPublishSidebarOpened();
|
||||
dispatch({
|
||||
type: 'SET_CANVAS_MODE',
|
||||
mode
|
||||
});
|
||||
const isEditMode = mode === 'edit';
|
||||
if (isPublishSidebarOpened && !isEditMode) {
|
||||
registry.dispatch(external_wp_editor_namespaceObject.store).closePublishSidebar();
|
||||
}
|
||||
|
||||
// Check if the block list view should be open by default.
|
||||
// If `distractionFree` mode is enabled, the block list view should not be open.
|
||||
// This behavior is disabled for small viewports.
|
||||
if (isMediumOrBigger && isEditMode && registry.select(external_wp_preferences_namespaceObject.store).get('core', 'showListViewByDefault') && !registry.select(external_wp_preferences_namespaceObject.store).get('core', 'distractionFree')) {
|
||||
registry.dispatch(external_wp_editor_namespaceObject.store).setIsListViewOpened(true);
|
||||
// Check if the block list view should be open by default.
|
||||
// If `distractionFree` mode is enabled, the block list view should not be open.
|
||||
// This behavior is disabled for small viewports.
|
||||
if (isMediumOrBigger && isEditMode && registry.select(external_wp_preferences_namespaceObject.store).get('core', 'showListViewByDefault') && !registry.select(external_wp_preferences_namespaceObject.store).get('core', 'distractionFree')) {
|
||||
registry.dispatch(external_wp_editor_namespaceObject.store).setIsListViewOpened(true);
|
||||
} else {
|
||||
registry.dispatch(external_wp_editor_namespaceObject.store).setIsListViewOpened(false);
|
||||
}
|
||||
registry.dispatch(external_wp_editor_namespaceObject.store).setIsInserterOpened(false);
|
||||
});
|
||||
};
|
||||
if (!document.startViewTransition) {
|
||||
switchCanvasMode();
|
||||
} else {
|
||||
registry.dispatch(external_wp_editor_namespaceObject.store).setIsListViewOpened(false);
|
||||
document.documentElement.classList.add(`canvas-mode-${mode}-transition`);
|
||||
const transition = document.startViewTransition(() => switchCanvasMode());
|
||||
transition.finished.finally(() => {
|
||||
document.documentElement.classList.remove(`canvas-mode-${mode}-transition`);
|
||||
});
|
||||
}
|
||||
registry.dispatch(external_wp_editor_namespaceObject.store).setIsInserterOpened(false);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -9585,9 +9601,6 @@ function SiteIcon({
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
@ -9596,19 +9609,15 @@ function SiteIcon({
|
|||
|
||||
|
||||
|
||||
const HUB_ANIMATION_DURATION = 0.3;
|
||||
const SiteHub = (0,external_wp_element_namespaceObject.memo)(({
|
||||
isTransparent,
|
||||
className
|
||||
}) => {
|
||||
const SiteHub = (0,external_wp_element_namespaceObject.memo)((0,external_wp_element_namespaceObject.forwardRef)(({
|
||||
isTransparent
|
||||
}, ref) => {
|
||||
const {
|
||||
canvasMode,
|
||||
dashboardLink,
|
||||
homeUrl,
|
||||
siteTitle
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
const {
|
||||
getCanvasMode,
|
||||
getSettings
|
||||
} = lock_unlock_unlock(select(store));
|
||||
const {
|
||||
|
@ -9617,7 +9626,6 @@ const SiteHub = (0,external_wp_element_namespaceObject.memo)(({
|
|||
} = select(external_wp_coreData_namespaceObject.store);
|
||||
const _site = getSite();
|
||||
return {
|
||||
canvasMode: getCanvasMode(),
|
||||
dashboardLink: getSettings().__experimentalDashboardLink || 'index.php',
|
||||
homeUrl: getUnstableBase()?.home,
|
||||
siteTitle: !_site?.title && !!_site?.url ? (0,external_wp_url_namespaceObject.filterURLForDisplay)(_site?.url) : _site?.title
|
||||
|
@ -9626,136 +9634,54 @@ const SiteHub = (0,external_wp_element_namespaceObject.memo)(({
|
|||
const {
|
||||
open: openCommandCenter
|
||||
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_commands_namespaceObject.store);
|
||||
const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
|
||||
const {
|
||||
setCanvasMode
|
||||
} = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
|
||||
const {
|
||||
clearSelectedBlock
|
||||
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
|
||||
const {
|
||||
setDeviceType
|
||||
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_editor_namespaceObject.store);
|
||||
const isBackToDashboardButton = canvasMode === 'view';
|
||||
const siteIconButtonProps = isBackToDashboardButton ? {
|
||||
href: dashboardLink,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Go to the Dashboard')
|
||||
} : {
|
||||
href: dashboardLink,
|
||||
// We need to keep the `href` here so the component doesn't remount as a `<button>` and break the animation.
|
||||
role: 'button',
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Open Navigation'),
|
||||
onClick: event => {
|
||||
event.preventDefault();
|
||||
if (canvasMode === 'edit') {
|
||||
clearSelectedBlock();
|
||||
setDeviceType('Desktop');
|
||||
setCanvasMode('view');
|
||||
}
|
||||
}
|
||||
};
|
||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
|
||||
className: dist_clsx('edit-site-site-hub', className),
|
||||
variants: {
|
||||
isDistractionFree: {
|
||||
x: '-100%'
|
||||
},
|
||||
isDistractionFreeHovering: {
|
||||
x: 0
|
||||
},
|
||||
view: {
|
||||
x: 0
|
||||
},
|
||||
edit: {
|
||||
x: 0
|
||||
}
|
||||
},
|
||||
initial: false,
|
||||
transition: {
|
||||
type: 'tween',
|
||||
duration: disableMotion ? 0 : HUB_ANIMATION_DURATION,
|
||||
ease: 'easeOut'
|
||||
},
|
||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||
className: "edit-site-site-hub",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
justify: "flex-start",
|
||||
spacing: "0",
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||
className: dist_clsx('edit-site-site-hub__view-mode-toggle-container', {
|
||||
'has-transparent-background': isTransparent
|
||||
}),
|
||||
layout: true,
|
||||
transition: {
|
||||
type: 'tween',
|
||||
duration: disableMotion ? 0 : HUB_ANIMATION_DURATION,
|
||||
ease: 'easeOut'
|
||||
},
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
...siteIconButtonProps,
|
||||
ref: ref,
|
||||
href: dashboardLink,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Go to the Dashboard'),
|
||||
className: "edit-site-layout__view-mode-toggle",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
|
||||
initial: false,
|
||||
animate: {
|
||||
scale: canvasMode === 'view' ? 0.5 : 1
|
||||
},
|
||||
whileHover: {
|
||||
scale: canvasMode === 'view' ? 0.5 : 0.96
|
||||
},
|
||||
transition: {
|
||||
type: 'tween',
|
||||
duration: disableMotion ? 0 : HUB_ANIMATION_DURATION,
|
||||
ease: 'easeOut'
|
||||
},
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(site_icon, {
|
||||
className: "edit-site-layout__view-mode-toggle-icon"
|
||||
})
|
||||
style: {
|
||||
transform: 'scale(0.5)',
|
||||
borderRadius: 4
|
||||
},
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(site_icon, {
|
||||
className: "edit-site-layout__view-mode-toggle-icon"
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableAnimatePresence, {
|
||||
initial: false,
|
||||
children: canvasMode === 'view' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
as: external_wp_components_namespaceObject.__unstableMotion.div,
|
||||
initial: {
|
||||
opacity: 0
|
||||
},
|
||||
animate: {
|
||||
opacity: isTransparent ? 0 : 1
|
||||
},
|
||||
exit: {
|
||||
opacity: 0
|
||||
},
|
||||
transition: {
|
||||
type: 'tween',
|
||||
duration: disableMotion ? 0 : 0.2,
|
||||
ease: 'easeOut',
|
||||
delay: canvasMode === 'view' ? 0.1 : 0
|
||||
},
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||
className: "edit-site-site-hub__title",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
variant: "link",
|
||||
href: homeUrl,
|
||||
target: "_blank",
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('View site (opens in a new tab)'),
|
||||
"aria-label": (0,external_wp_i18n_namespaceObject.__)('View site (opens in a new tab)'),
|
||||
children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(siteTitle)
|
||||
})
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
spacing: 0,
|
||||
expanded: false,
|
||||
className: "edit-site-site-hub__actions",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
className: "edit-site-site-hub_toggle-command-center",
|
||||
icon: library_search,
|
||||
onClick: () => openCommandCenter(),
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Open command palette'),
|
||||
shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('k')
|
||||
})
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||
className: "edit-site-site-hub__title",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
variant: "link",
|
||||
href: homeUrl,
|
||||
target: "_blank",
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('View site (opens in a new tab)'),
|
||||
children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(siteTitle)
|
||||
})
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
spacing: 0,
|
||||
expanded: false,
|
||||
className: "edit-site-site-hub__actions",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
className: "edit-site-site-hub_toggle-command-center",
|
||||
icon: library_search,
|
||||
onClick: () => openCommandCenter(),
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Open command palette'),
|
||||
shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('k')
|
||||
})
|
||||
})]
|
||||
})]
|
||||
})
|
||||
});
|
||||
});
|
||||
}));
|
||||
/* harmony default export */ const site_hub = (SiteHub);
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/resizable-frame/index.js
|
||||
|
@ -11629,51 +11555,6 @@ function GlobalStylesRenderer() {
|
|||
return null;
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: external ["wp","a11y"]
|
||||
const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/routes/use-title.js
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
const {
|
||||
useLocation: use_title_useLocation
|
||||
} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
|
||||
function useTitle(title) {
|
||||
const location = use_title_useLocation();
|
||||
const siteTitle = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getEntityRecord('root', 'site')?.title, []);
|
||||
const isInitialLocationRef = (0,external_wp_element_namespaceObject.useRef)(true);
|
||||
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
||||
isInitialLocationRef.current = false;
|
||||
}, [location]);
|
||||
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
||||
// Don't update or announce the title for initial page load.
|
||||
if (isInitialLocationRef.current) {
|
||||
return;
|
||||
}
|
||||
if (title && siteTitle) {
|
||||
// @see https://github.com/WordPress/wordpress-develop/blob/94849898192d271d533e09756007e176feb80697/src/wp-admin/admin-header.php#L67-L68
|
||||
const formattedTitle = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: Admin document title. 1: Admin screen name, 2: Network or site name. */
|
||||
(0,external_wp_i18n_namespaceObject.__)('%1$s ‹ %2$s ‹ Editor — WordPress'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(siteTitle));
|
||||
document.title = formattedTitle;
|
||||
|
||||
// Announce title on route change for screen readers.
|
||||
(0,external_wp_a11y_namespaceObject.speak)(title, 'assertive');
|
||||
}
|
||||
}, [title, siteTitle, location]);
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/canvas-loader/index.js
|
||||
/**
|
||||
* WordPress dependencies
|
||||
|
@ -13124,6 +13005,8 @@ function ScreenRoot() {
|
|||
}
|
||||
/* harmony default export */ const screen_root = (ScreenRoot);
|
||||
|
||||
;// CONCATENATED MODULE: external ["wp","a11y"]
|
||||
const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/variations/variations-panel.js
|
||||
/**
|
||||
* WordPress dependencies
|
||||
|
@ -20796,7 +20679,7 @@ function ColorVariations({
|
|||
children: [title && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(subtitle, {
|
||||
level: 3,
|
||||
children: title
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalGrid, {
|
||||
spacing: gap,
|
||||
children: colorVariations.map((variation, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Variation, {
|
||||
variation: variation,
|
||||
|
@ -22730,7 +22613,7 @@ function ScreenCSS() {
|
|||
title: (0,external_wp_i18n_namespaceObject.__)('CSS'),
|
||||
description: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
||||
children: [description, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
|
||||
href: "https://wordpress.org/documentation/article/css/",
|
||||
href: "https://developer.wordpress.org/advanced-administration/wordpress/css/",
|
||||
className: "edit-site-global-styles-screen-css-help-link",
|
||||
children: (0,external_wp_i18n_namespaceObject.__)('Learn more about CSS')
|
||||
})]
|
||||
|
@ -23096,6 +22979,7 @@ function RevisionsButtons({
|
|||
"aria-current": isSelected,
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
className: "edit-site-global-styles-screen-revisions__revision-button",
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: isSelected,
|
||||
onClick: () => {
|
||||
onChange(revision);
|
||||
|
@ -23131,7 +23015,6 @@ function RevisionsButtons({
|
|||
className: "edit-site-global-styles-screen-revisions__applied-text",
|
||||
children: (0,external_wp_i18n_namespaceObject.__)('These styles are already applied to your site.')
|
||||
}) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
disabled: areStylesEqual,
|
||||
size: "compact",
|
||||
variant: "primary",
|
||||
className: "edit-site-global-styles-screen-revisions__apply-button",
|
||||
|
@ -23144,6 +23027,36 @@ function RevisionsButtons({
|
|||
}
|
||||
/* harmony default export */ const revisions_buttons = (RevisionsButtons);
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/previous.js
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
const previous = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
|
||||
xmlns: "http://www.w3.org/2000/svg",
|
||||
viewBox: "0 0 24 24",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
|
||||
d: "M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"
|
||||
})
|
||||
});
|
||||
/* harmony default export */ const library_previous = (previous);
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/next.js
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
const next = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
|
||||
xmlns: "http://www.w3.org/2000/svg",
|
||||
viewBox: "0 0 24 24",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
|
||||
d: "M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"
|
||||
})
|
||||
});
|
||||
/* harmony default export */ const library_next = (next);
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/pagination/index.js
|
||||
/**
|
||||
* External dependencies
|
||||
|
@ -23157,6 +23070,7 @@ function RevisionsButtons({
|
|||
|
||||
|
||||
|
||||
|
||||
function Pagination({
|
||||
currentPage,
|
||||
numPages,
|
||||
|
@ -23188,15 +23102,19 @@ function Pagination({
|
|||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
variant: buttonVariant,
|
||||
onClick: () => changePage(1),
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: disabled || currentPage === 1,
|
||||
"aria-label": (0,external_wp_i18n_namespaceObject.__)('First page'),
|
||||
children: "\xAB"
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('First page'),
|
||||
icon: library_previous,
|
||||
size: "compact"
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
variant: buttonVariant,
|
||||
onClick: () => changePage(currentPage - 1),
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: disabled || currentPage === 1,
|
||||
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Previous page'),
|
||||
children: "\u2039"
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Previous page'),
|
||||
icon: chevron_left,
|
||||
size: "compact"
|
||||
})]
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
|
||||
variant: "muted",
|
||||
|
@ -23209,15 +23127,19 @@ function Pagination({
|
|||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
variant: buttonVariant,
|
||||
onClick: () => changePage(currentPage + 1),
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: disabled || currentPage === numPages,
|
||||
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Next page'),
|
||||
children: "\u203A"
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Next page'),
|
||||
icon: chevron_right,
|
||||
size: "compact"
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
variant: buttonVariant,
|
||||
onClick: () => changePage(numPages),
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: disabled || currentPage === numPages,
|
||||
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Last page'),
|
||||
children: "\xBB"
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Last page'),
|
||||
icon: library_next,
|
||||
size: "compact"
|
||||
})]
|
||||
})]
|
||||
});
|
||||
|
@ -23906,6 +23828,7 @@ function GlobalStylesSidebar() {
|
|||
icon: library_seen,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Style Book'),
|
||||
isPressed: isStyleBookOpened || isRevisionsStyleBookOpened,
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: shouldClearCanvasContainerView,
|
||||
onClick: toggleStyleBook,
|
||||
size: "compact"
|
||||
|
@ -23915,6 +23838,7 @@ function GlobalStylesSidebar() {
|
|||
label: (0,external_wp_i18n_namespaceObject.__)('Revisions'),
|
||||
icon: library_backup,
|
||||
onClick: toggleRevisions,
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: !hasRevisions,
|
||||
isPressed: isRevisionsOpened || isRevisionsStyleBookOpened,
|
||||
size: "compact"
|
||||
|
@ -24260,6 +24184,81 @@ function useEditorIframeProps() {
|
|||
};
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/routes/use-title.js
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
const {
|
||||
useLocation: use_title_useLocation
|
||||
} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
|
||||
function useTitle(title) {
|
||||
const location = use_title_useLocation();
|
||||
const siteTitle = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getEntityRecord('root', 'site')?.title, []);
|
||||
const isInitialLocationRef = (0,external_wp_element_namespaceObject.useRef)(true);
|
||||
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
||||
isInitialLocationRef.current = false;
|
||||
}, [location]);
|
||||
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
||||
// Don't update or announce the title for initial page load.
|
||||
if (isInitialLocationRef.current) {
|
||||
return;
|
||||
}
|
||||
if (title && siteTitle) {
|
||||
// @see https://github.com/WordPress/wordpress-develop/blob/94849898192d271d533e09756007e176feb80697/src/wp-admin/admin-header.php#L67-L68
|
||||
const formattedTitle = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: Admin document title. 1: Admin screen name, 2: Network or site name. */
|
||||
(0,external_wp_i18n_namespaceObject.__)('%1$s ‹ %2$s ‹ Editor — WordPress'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(siteTitle));
|
||||
document.title = formattedTitle;
|
||||
|
||||
// Announce title on route change for screen readers.
|
||||
(0,external_wp_a11y_namespaceObject.speak)(title, 'assertive');
|
||||
}
|
||||
}, [title, siteTitle, location]);
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/editor/use-editor-title.js
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
function useEditorTitle() {
|
||||
const {
|
||||
record: editedPost,
|
||||
getTitle,
|
||||
isLoaded: hasLoadedPost
|
||||
} = useEditedEntityRecord();
|
||||
let title;
|
||||
if (hasLoadedPost) {
|
||||
var _POST_TYPE_LABELS$edi;
|
||||
title = (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||
// translators: A breadcrumb trail for the Admin document title. %1$s: title of template being edited, %2$s: type of template (Template or Template Part).
|
||||
(0,external_wp_i18n_namespaceObject.__)('%1$s ‹ %2$s'), getTitle(), (_POST_TYPE_LABELS$edi = POST_TYPE_LABELS[editedPost.type]) !== null && _POST_TYPE_LABELS$edi !== void 0 ? _POST_TYPE_LABELS$edi : POST_TYPE_LABELS[TEMPLATE_POST_TYPE]);
|
||||
}
|
||||
|
||||
// Only announce the title once the editor is ready to prevent "Replace"
|
||||
// action in <URLQueryController> from double-announcing.
|
||||
useTitle(hasLoadedPost && title);
|
||||
}
|
||||
/* harmony default export */ const use_editor_title = (useEditorTitle);
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/editor/index.js
|
||||
/**
|
||||
* External dependencies
|
||||
|
@ -24303,11 +24302,9 @@ function useEditorIframeProps() {
|
|||
|
||||
|
||||
|
||||
|
||||
const {
|
||||
EditorInterface,
|
||||
ExperimentalEditorProvider: EditorProvider,
|
||||
Sidebar
|
||||
Editor,
|
||||
BackButton
|
||||
} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
|
||||
const {
|
||||
useHistory: editor_useHistory
|
||||
|
@ -24315,20 +24312,14 @@ const {
|
|||
const {
|
||||
BlockKeyboardShortcuts
|
||||
} = lock_unlock_unlock(external_wp_blockLibrary_namespaceObject.privateApis);
|
||||
function Editor({
|
||||
function EditSiteEditor({
|
||||
isLoading
|
||||
}) {
|
||||
const {
|
||||
record: editedPost,
|
||||
getTitle,
|
||||
isLoaded: hasLoadedPost
|
||||
} = useEditedEntityRecord();
|
||||
const {
|
||||
type: editedPostType
|
||||
} = editedPost;
|
||||
const {
|
||||
context,
|
||||
contextPost,
|
||||
editedPostType,
|
||||
editedPostId,
|
||||
contextPostType,
|
||||
contextPostId,
|
||||
editorMode,
|
||||
canvasMode,
|
||||
isEditingPage,
|
||||
|
@ -24340,13 +24331,14 @@ function Editor({
|
|||
const {
|
||||
getEditedPostContext,
|
||||
getCanvasMode,
|
||||
isPage
|
||||
isPage,
|
||||
getEditedPostType,
|
||||
getEditedPostId
|
||||
} = lock_unlock_unlock(select(store));
|
||||
const {
|
||||
get
|
||||
} = select(external_wp_preferences_namespaceObject.store);
|
||||
const {
|
||||
getEntityRecord,
|
||||
getCurrentTheme
|
||||
} = select(external_wp_coreData_namespaceObject.store);
|
||||
const {
|
||||
|
@ -24357,8 +24349,10 @@ function Editor({
|
|||
// The currently selected entity to display.
|
||||
// Typically template or template part in the site editor.
|
||||
return {
|
||||
context: _context,
|
||||
contextPost: _context?.postId ? getEntityRecord('postType', _context.postType, _context.postId) : undefined,
|
||||
editedPostType: getEditedPostType(),
|
||||
editedPostId: getEditedPostId(),
|
||||
contextPostType: _context?.postId ? _context.postType : undefined,
|
||||
contextPostId: _context?.postId ? _context.postId : undefined,
|
||||
editorMode: getEditorMode(),
|
||||
canvasMode: getCanvasMode(),
|
||||
isEditingPage: isPage(),
|
||||
|
@ -24368,24 +24362,14 @@ function Editor({
|
|||
currentPostIsTrashed: select(external_wp_editor_namespaceObject.store).getCurrentPostAttribute('status') === 'trash'
|
||||
};
|
||||
}, []);
|
||||
use_editor_title();
|
||||
const _isPreviewingTheme = isPreviewingTheme();
|
||||
const hasDefaultEditorCanvasView = !useHasEditorCanvasContainer();
|
||||
const iframeProps = useEditorIframeProps();
|
||||
const isViewMode = canvasMode === 'view';
|
||||
const isEditMode = canvasMode === 'edit';
|
||||
const showVisualEditor = isViewMode || editorMode === 'visual';
|
||||
const postWithTemplate = !!context?.postId;
|
||||
let title;
|
||||
if (hasLoadedPost) {
|
||||
var _POST_TYPE_LABELS$edi;
|
||||
title = (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||
// translators: A breadcrumb trail for the Admin document title. %1$s: title of template being edited, %2$s: type of template (Template or Template Part).
|
||||
(0,external_wp_i18n_namespaceObject.__)('%1$s ‹ %2$s'), getTitle(), (_POST_TYPE_LABELS$edi = POST_TYPE_LABELS[editedPostType]) !== null && _POST_TYPE_LABELS$edi !== void 0 ? _POST_TYPE_LABELS$edi : POST_TYPE_LABELS[TEMPLATE_POST_TYPE]);
|
||||
}
|
||||
|
||||
// Only announce the title once the editor is ready to prevent "Replace"
|
||||
// action in <URLQueryController> from double-announcing.
|
||||
useTitle(hasLoadedPost && title);
|
||||
const postWithTemplate = !!contextPostId;
|
||||
const loadingProgressId = (0,external_wp_compose_namespaceObject.useInstanceId)(CanvasLoader, 'edit-site-editor__loading-progress');
|
||||
const settings = useSpecificEditorSettings();
|
||||
const styles = (0,external_wp_element_namespaceObject.useMemo)(() => [...settings.styles, {
|
||||
|
@ -24394,6 +24378,9 @@ function Editor({
|
|||
|
||||
css: `body{${canvasMode === 'view' ? `min-height: 100vh; ${currentPostIsTrashed ? '' : 'cursor: pointer;'}` : ''}}}`
|
||||
}], [settings.styles, canvasMode, currentPostIsTrashed]);
|
||||
const {
|
||||
setCanvasMode
|
||||
} = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
|
||||
const {
|
||||
createSuccessNotice
|
||||
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
|
||||
|
@ -24432,35 +24419,40 @@ function Editor({
|
|||
break;
|
||||
}
|
||||
}, [history, createSuccessNotice]);
|
||||
const isReady = !isLoading && (postWithTemplate && !!contextPost && !!editedPost || !postWithTemplate && !!editedPost);
|
||||
const isReady = !isLoading;
|
||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesRenderer, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.EditorKeyboardShortcutsRegister, {}), isEditMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockKeyboardShortcuts, {}), showVisualEditor && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplatePartConverter, {}), !isReady ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CanvasLoader, {
|
||||
id: loadingProgressId
|
||||
}) : null, isEditMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuide, {}), hasLoadedPost && !editedPost && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
|
||||
status: "warning",
|
||||
isDismissible: false,
|
||||
children: (0,external_wp_i18n_namespaceObject.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")
|
||||
}), isReady && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(EditorProvider, {
|
||||
post: postWithTemplate ? contextPost : editedPost,
|
||||
__unstableTemplate: postWithTemplate ? editedPost : undefined,
|
||||
}) : null, isEditMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuide, {}), isReady && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Editor, {
|
||||
postType: postWithTemplate ? contextPostType : editedPostType,
|
||||
postId: postWithTemplate ? contextPostId : editedPostId,
|
||||
templateId: postWithTemplate ? editedPostId : undefined,
|
||||
settings: settings,
|
||||
useSubRegistry: false,
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MoreMenu, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditorInterface, {
|
||||
className: dist_clsx('edit-site-editor__interface-skeleton', {
|
||||
'show-icon-labels': showIconLabels
|
||||
}),
|
||||
styles: styles,
|
||||
enableRegionNavigation: false,
|
||||
customSaveButton: _isPreviewingTheme && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SaveButton, {
|
||||
size: "compact"
|
||||
}),
|
||||
forceDisableBlockTools: !hasDefaultEditorCanvasView,
|
||||
title: !hasDefaultEditorCanvasView ? getEditorCanvasContainerTitle(editorCanvasView) : undefined,
|
||||
iframeProps: iframeProps
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Sidebar, {
|
||||
onActionPerformed: onActionPerformed,
|
||||
extraPanels: !isEditingPage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(plugin_template_setting_panel.Slot, {})
|
||||
}), supportsGlobalStyles && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesSidebar, {})]
|
||||
className: dist_clsx('edit-site-editor__editor-interface', {
|
||||
'show-icon-labels': showIconLabels
|
||||
}),
|
||||
styles: styles,
|
||||
enableRegionNavigation: false,
|
||||
customSaveButton: _isPreviewingTheme && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SaveButton, {
|
||||
size: "compact"
|
||||
}),
|
||||
forceDisableBlockTools: !hasDefaultEditorCanvasView,
|
||||
title: !hasDefaultEditorCanvasView ? getEditorCanvasContainerTitle(editorCanvasView) : undefined,
|
||||
iframeProps: iframeProps,
|
||||
onActionPerformed: onActionPerformed,
|
||||
extraSidebarPanels: !isEditingPage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(plugin_template_setting_panel.Slot, {}),
|
||||
children: [isEditMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BackButton, {
|
||||
children: ({
|
||||
length
|
||||
}) => length <= 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Open Navigation'),
|
||||
className: "edit-site-layout__view-mode-toggle",
|
||||
onClick: () => setCanvasMode('view'),
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(site_icon, {
|
||||
className: "edit-site-layout__view-mode-toggle-icon"
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MoreMenu, {}), supportsGlobalStyles && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesSidebar, {})]
|
||||
})]
|
||||
});
|
||||
}
|
||||
|
@ -24960,6 +24952,7 @@ function CompactItemActions({
|
|||
size: "compact",
|
||||
icon: more_vertical,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: !actions.length,
|
||||
className: "dataviews-all-actions-button"
|
||||
}),
|
||||
|
@ -25972,6 +25965,7 @@ function ListItem({
|
|||
size: "compact",
|
||||
icon: more_vertical,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: !actions.length,
|
||||
onKeyDown: event => {
|
||||
if (event.key === 'ArrowDown') {
|
||||
|
@ -34764,11 +34758,11 @@ const DEFAULT_VIEW = {
|
|||
};
|
||||
const SYNC_FILTERS = [{
|
||||
value: PATTERN_SYNC_TYPES.full,
|
||||
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that shows all synchronized patterns'),
|
||||
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'pattern (singular)'),
|
||||
description: (0,external_wp_i18n_namespaceObject.__)('Patterns that are kept in sync across the site.')
|
||||
}, {
|
||||
value: PATTERN_SYNC_TYPES.unsynced,
|
||||
label: (0,external_wp_i18n_namespaceObject._x)('Not synced', 'Option that shows all patterns that are not synchronized'),
|
||||
label: (0,external_wp_i18n_namespaceObject._x)('Not synced', 'pattern (singular)'),
|
||||
description: (0,external_wp_i18n_namespaceObject.__)('Patterns that can be changed freely without affecting the site.')
|
||||
}];
|
||||
function PreviewWrapper({
|
||||
|
@ -34972,11 +34966,11 @@ function DataviewsPatterns() {
|
|||
// Non-user patterns are all unsynced for the time being.
|
||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
|
||||
className: `edit-site-patterns__field-sync-status-${item.syncStatus}`,
|
||||
children: SYNC_FILTERS.find(({
|
||||
children: (SYNC_FILTERS.find(({
|
||||
value
|
||||
}) => value === item.syncStatus)?.label || SYNC_FILTERS.find(({
|
||||
}) => value === item.syncStatus) || SYNC_FILTERS.find(({
|
||||
value
|
||||
}) => value === PATTERN_SYNC_TYPES.unsynced).label
|
||||
}) => value === PATTERN_SYNC_TYPES.unsynced)).label
|
||||
});
|
||||
},
|
||||
elements: SYNC_FILTERS,
|
||||
|
@ -37430,7 +37424,7 @@ function SidebarNavigationScreen({
|
|||
spacing: 0,
|
||||
justify: "flex-start",
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
spacing: 4,
|
||||
spacing: 3,
|
||||
alignment: "flex-start",
|
||||
className: "edit-site-sidebar-navigation-screen__title-icon",
|
||||
children: [!isRoot && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarButton, {
|
||||
|
@ -38083,6 +38077,7 @@ function rename_modal_RenameModal({
|
|||
children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
__next40pxDefaultSize: true,
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: !isEditedMenuTitleValid,
|
||||
variant: "primary",
|
||||
type: "submit",
|
||||
|
@ -39019,11 +39014,15 @@ function DataViewItem({
|
|||
}
|
||||
} = dataview_item_useLocation();
|
||||
const iconToUse = icon || VIEW_LAYOUTS.find(v => v.type === type).icon;
|
||||
let activeView = isCustom ? customViewId : slug;
|
||||
if (activeView === 'all') {
|
||||
activeView = undefined;
|
||||
}
|
||||
const linkInfo = useLink({
|
||||
postType,
|
||||
layout,
|
||||
activeView: isCustom ? customViewId : slug,
|
||||
isCustom: isCustom ? 'true' : 'false'
|
||||
activeView,
|
||||
isCustom: isCustom ? 'true' : undefined
|
||||
});
|
||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
justify: "flex-start",
|
||||
|
@ -39179,7 +39178,7 @@ function CategoryItem({
|
|||
type
|
||||
}) {
|
||||
const linkInfo = useLink({
|
||||
categoryId: id,
|
||||
categoryId: id !== TEMPLATE_PART_ALL_AREAS_CATEGORY && id !== PATTERN_DEFAULT_CATEGORY ? id : undefined,
|
||||
postType: type === TEMPLATE_PART_POST_TYPE ? TEMPLATE_PART_POST_TYPE : PATTERN_TYPES.user
|
||||
});
|
||||
if (!count) {
|
||||
|
@ -39328,8 +39327,8 @@ function SidebarNavigationScreenPatterns({
|
|||
categoryId
|
||||
}
|
||||
} = sidebar_navigation_screen_patterns_useLocation();
|
||||
const currentCategory = categoryId || PATTERN_DEFAULT_CATEGORY;
|
||||
const currentType = postType || PATTERN_TYPES.user;
|
||||
const currentCategory = categoryId || (currentType === PATTERN_TYPES.user ? PATTERN_DEFAULT_CATEGORY : TEMPLATE_PART_ALL_AREAS_CATEGORY);
|
||||
const {
|
||||
templatePartAreas,
|
||||
hasTemplateParts,
|
||||
|
@ -39844,10 +39843,10 @@ function useLayoutAreas() {
|
|||
content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DataViewsSidebarContent, {})
|
||||
}),
|
||||
content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PagePages, {}),
|
||||
preview: (isListLayout || canvas === 'edit') && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Editor, {
|
||||
preview: (isListLayout || canvas === 'edit') && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
|
||||
isLoading: isSiteEditorLoading
|
||||
}),
|
||||
mobile: canvas === 'edit' ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Editor, {
|
||||
mobile: canvas === 'edit' ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
|
||||
isLoading: isSiteEditorLoading
|
||||
}) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PagePages, {})
|
||||
},
|
||||
|
@ -39867,7 +39866,7 @@ function useLayoutAreas() {
|
|||
backPath: {}
|
||||
}),
|
||||
content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PageTemplates, {}),
|
||||
preview: (isListLayout || canvas === 'edit') && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Editor, {
|
||||
preview: (isListLayout || canvas === 'edit') && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
|
||||
isLoading: isSiteEditorLoading
|
||||
}),
|
||||
mobile: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PageTemplates, {})
|
||||
|
@ -39888,7 +39887,7 @@ function useLayoutAreas() {
|
|||
}),
|
||||
content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DataviewsPatterns, {}),
|
||||
mobile: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DataviewsPatterns, {}),
|
||||
preview: canvas === 'edit' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Editor, {
|
||||
preview: canvas === 'edit' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
|
||||
isLoading: isSiteEditorLoading
|
||||
})
|
||||
}
|
||||
|
@ -39903,10 +39902,10 @@ function useLayoutAreas() {
|
|||
sidebar: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenGlobalStyles, {
|
||||
backPath: {}
|
||||
}),
|
||||
preview: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Editor, {
|
||||
preview: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
|
||||
isLoading: isSiteEditorLoading
|
||||
}),
|
||||
mobile: canvas === 'edit' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Editor, {
|
||||
mobile: canvas === 'edit' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
|
||||
isLoading: isSiteEditorLoading
|
||||
})
|
||||
}
|
||||
|
@ -39924,10 +39923,10 @@ function useLayoutAreas() {
|
|||
postType: NAVIGATION_POST_TYPE
|
||||
}
|
||||
}),
|
||||
preview: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Editor, {
|
||||
preview: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
|
||||
isLoading: isSiteEditorLoading
|
||||
}),
|
||||
mobile: canvas === 'edit' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Editor, {
|
||||
mobile: canvas === 'edit' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
|
||||
isLoading: isSiteEditorLoading
|
||||
})
|
||||
}
|
||||
|
@ -39939,10 +39938,10 @@ function useLayoutAreas() {
|
|||
sidebar: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenNavigationMenus, {
|
||||
backPath: {}
|
||||
}),
|
||||
preview: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Editor, {
|
||||
preview: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
|
||||
isLoading: isSiteEditorLoading
|
||||
}),
|
||||
mobile: canvas === 'edit' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Editor, {
|
||||
mobile: canvas === 'edit' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
|
||||
isLoading: isSiteEditorLoading
|
||||
})
|
||||
}
|
||||
|
@ -39954,10 +39953,10 @@ function useLayoutAreas() {
|
|||
key: 'default',
|
||||
areas: {
|
||||
sidebar: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenMain, {}),
|
||||
preview: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Editor, {
|
||||
preview: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
|
||||
isLoading: isSiteEditorLoading
|
||||
}),
|
||||
mobile: canvas === 'edit' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Editor, {
|
||||
mobile: canvas === 'edit' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
|
||||
isLoading: isSiteEditorLoading
|
||||
})
|
||||
}
|
||||
|
@ -40214,14 +40213,14 @@ function Layout() {
|
|||
useEditModeCommands();
|
||||
useCommonCommands();
|
||||
const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
|
||||
const toggleRef = (0,external_wp_element_namespaceObject.useRef)();
|
||||
const {
|
||||
isDistractionFree,
|
||||
hasFixedToolbar,
|
||||
hasBlockSelected,
|
||||
canvasMode,
|
||||
previousShortcut,
|
||||
nextShortcut,
|
||||
hasBlockBreadcrumbs
|
||||
nextShortcut
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
const {
|
||||
getAllShortcutKeyCombinations
|
||||
|
@ -40235,7 +40234,6 @@ function Layout() {
|
|||
nextShortcut: getAllShortcutKeyCombinations('core/editor/next-region'),
|
||||
hasFixedToolbar: select(external_wp_preferences_namespaceObject.store).get('core', 'fixedToolbar'),
|
||||
isDistractionFree: select(external_wp_preferences_namespaceObject.store).get('core', 'distractionFree'),
|
||||
hasBlockBreadcrumbs: select(external_wp_preferences_namespaceObject.store).get('core', 'showBlockBreadcrumbs'),
|
||||
hasBlockSelected: select(external_wp_blockEditor_namespaceObject.store).getBlockSelectionStart()
|
||||
};
|
||||
}, []);
|
||||
|
@ -40257,26 +40255,6 @@ function Layout() {
|
|||
triggerAnimationOnChange: canvasMode + '__' + routeKey
|
||||
});
|
||||
|
||||
// This determines which animation variant should apply to the header.
|
||||
// There is also a `isDistractionFreeHovering` state that gets priority
|
||||
// when hovering the `edit-site-layout__header-container` in distraction
|
||||
// free mode. It's set via framer and trickles down to all the children
|
||||
// so they can use this variant state too.
|
||||
//
|
||||
// TODO: The issue with this is we want to have the hover state stick when hovering
|
||||
// a popover opened via the header. We'll probably need to lift this state to
|
||||
// handle it ourselves. Also, focusWithin the header needs to be handled.
|
||||
let headerAnimationState;
|
||||
if (canvasMode === 'view') {
|
||||
// We need 'view' to always take priority so 'isDistractionFree'
|
||||
// doesn't bleed over into the view (sidebar) state
|
||||
headerAnimationState = 'view';
|
||||
} else if (isDistractionFree) {
|
||||
headerAnimationState = 'isDistractionFree';
|
||||
} else {
|
||||
headerAnimationState = canvasMode; // edit, view, init
|
||||
}
|
||||
|
||||
// Sets the right context for the command palette
|
||||
let commandContext = 'site-editor';
|
||||
if (canvasMode === 'edit') {
|
||||
|
@ -40288,6 +40266,14 @@ function Layout() {
|
|||
useCommandContext(commandContext);
|
||||
const [backgroundColor] = layout_useGlobalStyle('color.background');
|
||||
const [gradientValue] = layout_useGlobalStyle('color.gradient');
|
||||
const previousCanvaMode = (0,external_wp_compose_namespaceObject.usePrevious)(canvasMode);
|
||||
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
||||
if (previousCanvaMode === 'edit') {
|
||||
toggleRef.current?.focus();
|
||||
}
|
||||
// Should not depend on the previous canvas mode value but the next.
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [canvasMode]);
|
||||
|
||||
// Synchronizing the URL with the store value of canvasMode happens in an effect
|
||||
// This condition ensures the component is only rendered after the synchronization happens
|
||||
|
@ -40303,42 +40289,9 @@ function Layout() {
|
|||
'is-distraction-free': isDistractionFree && canvasMode === 'edit',
|
||||
'is-full-canvas': canvasMode === 'edit',
|
||||
'has-fixed-toolbar': hasFixedToolbar,
|
||||
'is-block-toolbar-visible': hasBlockSelected,
|
||||
'has-block-breadcrumbs': hasBlockBreadcrumbs && !isDistractionFree && canvasMode === 'edit'
|
||||
'is-block-toolbar-visible': hasBlockSelected
|
||||
}),
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
|
||||
className: "edit-site-layout__header-container",
|
||||
variants: {
|
||||
isDistractionFree: {
|
||||
opacity: 0,
|
||||
transition: {
|
||||
type: 'tween',
|
||||
delay: 0.8,
|
||||
delayChildren: 0.8
|
||||
} // How long to wait before the header exits
|
||||
},
|
||||
isDistractionFreeHovering: {
|
||||
opacity: 1,
|
||||
transition: {
|
||||
type: 'tween',
|
||||
delay: 0.2,
|
||||
delayChildren: 0.2
|
||||
} // How long to wait before the header shows
|
||||
},
|
||||
view: {
|
||||
opacity: 1
|
||||
},
|
||||
edit: {
|
||||
opacity: 1
|
||||
}
|
||||
},
|
||||
whileHover: isDistractionFree ? 'isDistractionFreeHovering' : undefined,
|
||||
animate: headerAnimationState,
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(site_hub, {
|
||||
isTransparent: isResizableFrameOversized,
|
||||
className: "edit-site-layout__hub"
|
||||
})
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
||||
className: "edit-site-layout__content",
|
||||
children: [(!isMobileViewport || !areas.mobile) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(layout_NavigableRegion, {
|
||||
ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Navigation'),
|
||||
|
@ -40362,7 +40315,10 @@ function Layout() {
|
|||
ease: 'easeOut'
|
||||
},
|
||||
className: "edit-site-layout__sidebar",
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarContent, {
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(site_hub, {
|
||||
ref: toggleRef,
|
||||
isTransparent: isResizableFrameOversized
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarContent, {
|
||||
routeKey: routeKey,
|
||||
children: areas.sidebar
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SaveHub, {})]
|
||||
|
|
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
|
@ -310,7 +310,7 @@ function store(namespace, {
|
|||
const parseInitialData = (dom = document) => {
|
||||
var _dom$getElementById;
|
||||
const jsonDataScriptTag = // Preferred Script Module data passing form
|
||||
(_dom$getElementById = dom.getElementById('wp-scriptmodule-data_@wordpress/interactivity')) !== null && _dom$getElementById !== void 0 ? _dom$getElementById :
|
||||
(_dom$getElementById = dom.getElementById('wp-script-module-data-@wordpress/interactivity')) !== null && _dom$getElementById !== void 0 ? _dom$getElementById :
|
||||
// Legacy form
|
||||
dom.getElementById('wp-interactivity-data');
|
||||
if (jsonDataScriptTag?.textContent) {
|
||||
|
@ -1573,7 +1573,9 @@ const getGlobalAsyncEventDirective = type => {
|
|||
}, {
|
||||
priority: 20
|
||||
});
|
||||
directive('each-child', () => null);
|
||||
directive('each-child', () => null, {
|
||||
priority: 1
|
||||
});
|
||||
});
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/constants.js
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -722,6 +722,7 @@ function ImportForm({
|
|||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
type: "submit",
|
||||
isBusy: isLoading,
|
||||
__experimentalIsFocusable: true,
|
||||
disabled: !file || isLoading,
|
||||
variant: "secondary",
|
||||
className: "list-reusable-blocks-import-form__button",
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t);const n=window.wp.element,o=window.wp.i18n;var r=function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function s(e){return e.toLowerCase()}var a=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],i=/[^A-Z0-9]+/gi;function l(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function c(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?a:n,r=t.stripRegexp,c=void 0===r?i:r,p=t.transform,d=void 0===p?s:p,u=t.delimiter,w=void 0===u?" ":u,f=l(l(e,o,"$1\0$2"),c,"\0"),m=0,b=f.length;"\0"===f.charAt(m);)m++;for(;"\0"===f.charAt(b-1);)b--;return f.slice(m,b).split("\0").map(d).join(w)}(e,r({delimiter:"."},t))}const p=window.wp.apiFetch;var d=e.n(p);const u=window.wp.blob;const w=async function(e){const t=await d()({path:"/wp/v2/types/wp_block"}),n=await d()({path:`/wp/v2/${t.rest_base}/${e}?context=edit`}),o=n.title.raw,s=n.content.raw,a=n.wp_pattern_sync_status,i=JSON.stringify({__file:"wp_block",title:o,content:s,syncStatus:a},null,2),l=(void 0===p&&(p={}),c(o,r({delimiter:"-"},p))+".json");var p;(0,u.downloadBlob)(l,i,"application/json")},f=window.wp.compose,m=window.wp.components;const b=async function(e){const t=await function(e){const t=new window.FileReader;return new Promise((n=>{t.onload=()=>{n(t.result)},t.readAsText(e)}))}(e);let n;try{n=JSON.parse(t)}catch(e){throw new Error("Invalid JSON file")}if("wp_block"!==n.__file||!n.title||!n.content||"string"!=typeof n.title||"string"!=typeof n.content||n.syncStatus&&"string"!=typeof n.syncStatus)throw new Error("Invalid pattern JSON file");const o=await d()({path:"/wp/v2/types/wp_block"});return await d()({path:`/wp/v2/${o.rest_base}`,data:{title:n.title,content:n.content,status:"publish",meta:"unsynced"===n.syncStatus?{wp_pattern_sync_status:n.syncStatus}:void 0},method:"POST"})},_=window.ReactJSXRuntime;const v=(0,f.withInstanceId)((function({instanceId:e,onUpload:t}){const r="list-reusable-blocks-import-form-"+e,s=(0,n.useRef)(),[a,i]=(0,n.useState)(!1),[l,c]=(0,n.useState)(null),[p,d]=(0,n.useState)(null);return(0,_.jsxs)("form",{className:"list-reusable-blocks-import-form",onSubmit:e=>{e.preventDefault(),p&&(i({isLoading:!0}),b(p).then((e=>{s&&(i(!1),t(e))})).catch((e=>{if(!s)return;let t;switch(e.message){case"Invalid JSON file":t=(0,o.__)("Invalid JSON file");break;case"Invalid pattern JSON file":t=(0,o.__)("Invalid pattern JSON file");break;default:t=(0,o.__)("Unknown error")}i(!1),c(t)})))},ref:s,children:[l&&(0,_.jsx)(m.Notice,{status:"error",onRemove:()=>{c(null)},children:l}),(0,_.jsx)("label",{htmlFor:r,className:"list-reusable-blocks-import-form__label",children:(0,o.__)("File")}),(0,_.jsx)("input",{id:r,type:"file",onChange:e=>{d(e.target.files[0]),c(null)}}),(0,_.jsx)(m.Button,{type:"submit",isBusy:a,disabled:!p||a,variant:"secondary",className:"list-reusable-blocks-import-form__button",children:(0,o._x)("Import","button label")})]})}));const y=function({onUpload:e}){return(0,_.jsx)(m.Dropdown,{popoverProps:{placement:"bottom-start"},contentClassName:"list-reusable-blocks-import-dropdown__content",renderToggle:({isOpen:e,onToggle:t})=>(0,_.jsx)(m.Button,{"aria-expanded":e,onClick:t,variant:"primary",children:(0,o.__)("Import from JSON")}),renderContent:({onClose:t})=>(0,_.jsx)(v,{onUpload:(0,f.pipe)(t,e)})})};document.body.addEventListener("click",(e=>{e.target.classList.contains("wp-list-reusable-blocks__export")&&(e.preventDefault(),w(e.target.dataset.id))})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".page-title-action");if(!e)return;const t=document.createElement("div");t.className="list-reusable-blocks__container",e.parentNode.insertBefore(t,e),(0,n.createRoot)(t).render((0,_.jsx)(y,{onUpload:()=>{const e=document.createElement("div");e.className="notice notice-success is-dismissible",e.innerHTML=`<p>${(0,o.__)("Pattern imported successfully!")}</p>`;const t=document.querySelector(".wp-header-end");t&&t.parentNode.insertBefore(e,t)}}))})),(window.wp=window.wp||{}).listReusableBlocks=t})();
|
||||
(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t);const n=window.wp.element,o=window.wp.i18n;var r=function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function s(e){return e.toLowerCase()}var a=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],i=/[^A-Z0-9]+/gi;function l(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function c(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?a:n,r=t.stripRegexp,c=void 0===r?i:r,p=t.transform,d=void 0===p?s:p,u=t.delimiter,w=void 0===u?" ":u,f=l(l(e,o,"$1\0$2"),c,"\0"),m=0,b=f.length;"\0"===f.charAt(m);)m++;for(;"\0"===f.charAt(b-1);)b--;return f.slice(m,b).split("\0").map(d).join(w)}(e,r({delimiter:"."},t))}const p=window.wp.apiFetch;var d=e.n(p);const u=window.wp.blob;const w=async function(e){const t=await d()({path:"/wp/v2/types/wp_block"}),n=await d()({path:`/wp/v2/${t.rest_base}/${e}?context=edit`}),o=n.title.raw,s=n.content.raw,a=n.wp_pattern_sync_status,i=JSON.stringify({__file:"wp_block",title:o,content:s,syncStatus:a},null,2),l=(void 0===p&&(p={}),c(o,r({delimiter:"-"},p))+".json");var p;(0,u.downloadBlob)(l,i,"application/json")},f=window.wp.compose,m=window.wp.components;const b=async function(e){const t=await function(e){const t=new window.FileReader;return new Promise((n=>{t.onload=()=>{n(t.result)},t.readAsText(e)}))}(e);let n;try{n=JSON.parse(t)}catch(e){throw new Error("Invalid JSON file")}if("wp_block"!==n.__file||!n.title||!n.content||"string"!=typeof n.title||"string"!=typeof n.content||n.syncStatus&&"string"!=typeof n.syncStatus)throw new Error("Invalid pattern JSON file");const o=await d()({path:"/wp/v2/types/wp_block"});return await d()({path:`/wp/v2/${o.rest_base}`,data:{title:n.title,content:n.content,status:"publish",meta:"unsynced"===n.syncStatus?{wp_pattern_sync_status:n.syncStatus}:void 0},method:"POST"})},_=window.ReactJSXRuntime;const v=(0,f.withInstanceId)((function({instanceId:e,onUpload:t}){const r="list-reusable-blocks-import-form-"+e,s=(0,n.useRef)(),[a,i]=(0,n.useState)(!1),[l,c]=(0,n.useState)(null),[p,d]=(0,n.useState)(null);return(0,_.jsxs)("form",{className:"list-reusable-blocks-import-form",onSubmit:e=>{e.preventDefault(),p&&(i({isLoading:!0}),b(p).then((e=>{s&&(i(!1),t(e))})).catch((e=>{if(!s)return;let t;switch(e.message){case"Invalid JSON file":t=(0,o.__)("Invalid JSON file");break;case"Invalid pattern JSON file":t=(0,o.__)("Invalid pattern JSON file");break;default:t=(0,o.__)("Unknown error")}i(!1),c(t)})))},ref:s,children:[l&&(0,_.jsx)(m.Notice,{status:"error",onRemove:()=>{c(null)},children:l}),(0,_.jsx)("label",{htmlFor:r,className:"list-reusable-blocks-import-form__label",children:(0,o.__)("File")}),(0,_.jsx)("input",{id:r,type:"file",onChange:e=>{d(e.target.files[0]),c(null)}}),(0,_.jsx)(m.Button,{type:"submit",isBusy:a,__experimentalIsFocusable:!0,disabled:!p||a,variant:"secondary",className:"list-reusable-blocks-import-form__button",children:(0,o._x)("Import","button label")})]})}));const y=function({onUpload:e}){return(0,_.jsx)(m.Dropdown,{popoverProps:{placement:"bottom-start"},contentClassName:"list-reusable-blocks-import-dropdown__content",renderToggle:({isOpen:e,onToggle:t})=>(0,_.jsx)(m.Button,{"aria-expanded":e,onClick:t,variant:"primary",children:(0,o.__)("Import from JSON")}),renderContent:({onClose:t})=>(0,_.jsx)(v,{onUpload:(0,f.pipe)(t,e)})})};document.body.addEventListener("click",(e=>{e.target.classList.contains("wp-list-reusable-blocks__export")&&(e.preventDefault(),w(e.target.dataset.id))})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".page-title-action");if(!e)return;const t=document.createElement("div");t.className="list-reusable-blocks__container",e.parentNode.insertBefore(t,e),(0,n.createRoot)(t).render((0,_.jsx)(y,{onUpload:()=>{const e=document.createElement("div");e.className="notice notice-success is-dismissible",e.innerHTML=`<p>${(0,o.__)("Pattern imported successfully!")}</p>`;const t=document.querySelector(".wp-header-end");t&&t.parentNode.insertBefore(e,t)}}))})),(window.wp=window.wp||{}).listReusableBlocks=t})();
|
|
@ -633,7 +633,7 @@ function CreatePatternModalContents({
|
|||
onChange: setCategoryTerms,
|
||||
categoryMap: categoryMap
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
|
||||
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that makes an individual pattern synchronized'),
|
||||
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'pattern (singular)'),
|
||||
help: (0,external_wp_i18n_namespaceObject.__)('Sync this pattern across multiple locations.'),
|
||||
checked: syncType === PATTERN_SYNC_TYPES.full,
|
||||
onChange: () => {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -389,7 +389,7 @@ function ReusableBlockConvertButton({
|
|||
onChange: setTitle,
|
||||
placeholder: (0,external_wp_i18n_namespaceObject.__)('My pattern')
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
|
||||
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that makes an individual pattern synchronized'),
|
||||
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'pattern (singular)'),
|
||||
help: (0,external_wp_i18n_namespaceObject.__)('Sync this pattern across multiple locations.'),
|
||||
checked: !syncType,
|
||||
onChange: () => {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.6-beta1-58386';
|
||||
$wp_version = '6.6-beta1-58387';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue