Editor: Update packages for 6.7 RC 1.
Syncs @wordpress/* packages to the wp-6.7 npm tag. Props get_dave, kevin940726, rejaulalomkhan. Fixes #62263 Built from https://develop.svn.wordpress.org/trunk@59263 git-svn-id: http://core.svn.wordpress.org/trunk@58655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
339ee19db1
commit
224824fb85
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
<?php return array('interactivity/index.min.js' => array('dependencies' => array(), 'version' => 'b427d23841a264dec4b1', 'type' => 'module'), 'interactivity/debug.min.js' => array('dependencies' => array(), 'version' => '48d222e8a1a04e2ce84f', 'type' => 'module'), 'interactivity-router/index.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => 'f01b88335afcef3dfc5d', 'type' => 'module'), 'a11y/index.min.js' => array('dependencies' => array(), 'version' => 'b7d06936b8bc23cff2ad', 'type' => 'module'), 'block-library/file/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'fdc2f6842e015af83140', 'type' => 'module'), 'block-library/image/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'acfec7b3c0be4a859b31', 'type' => 'module'), 'block-library/navigation/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '8ff192874fc8910a284c', 'type' => 'module'), 'block-library/query/view.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => 'f4c91c89fa5271f3dad9', 'type' => 'module'), 'block-library/search/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '2a73400a693958f604de', 'type' => 'module'));
|
||||
<?php return array('interactivity/index.min.js' => array('dependencies' => array(), 'version' => '06b8f695ef48ab2d9277', 'type' => 'module'), 'interactivity/debug.min.js' => array('dependencies' => array(), 'version' => 'c77e5317ad566e76e750', 'type' => 'module'), 'interactivity-router/index.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => 'f01b88335afcef3dfc5d', 'type' => 'module'), 'a11y/index.min.js' => array('dependencies' => array(), 'version' => 'b7d06936b8bc23cff2ad', 'type' => 'module'), 'block-library/file/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'fdc2f6842e015af83140', 'type' => 'module'), 'block-library/image/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'acfec7b3c0be4a859b31', 'type' => 'module'), 'block-library/navigation/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '8ff192874fc8910a284c', 'type' => 'module'), 'block-library/query/view.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => 'f4c91c89fa5271f3dad9', 'type' => 'module'), 'block-library/search/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '2a73400a693958f604de', 'type' => 'module'));
|
||||
|
|
|
@ -1 +1 @@
|
|||
<?php return array('interactivity/index.js' => array('dependencies' => array(), 'version' => 'ab37baaa0b495ff62fc7', 'type' => 'module'), 'interactivity/debug.js' => array('dependencies' => array(), 'version' => '54d38e1abb076cc189c5', 'type' => 'module'), 'interactivity-router/index.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => '4b36f376cc3aab08acca', 'type' => 'module'), 'a11y/index.js' => array('dependencies' => array(), 'version' => 'b3a7f46c0ef4f3484886', 'type' => 'module'), 'block-library/file/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'b0cd471b6fde34702d88', 'type' => 'module'), 'block-library/image/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'e1ce544dd878f3a09f70', 'type' => 'module'), 'block-library/navigation/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '9510985aedc1f8e088f3', 'type' => 'module'), 'block-library/query/view.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => '8e6f28f734f3c306b648', 'type' => 'module'), 'block-library/search/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'acdb7febda1392ad28de', 'type' => 'module'));
|
||||
<?php return array('interactivity/index.js' => array('dependencies' => array(), 'version' => 'd509fc21b652345db0b3', 'type' => 'module'), 'interactivity/debug.js' => array('dependencies' => array(), 'version' => 'd1c1c7faff86314c361a', 'type' => 'module'), 'interactivity-router/index.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => '4b36f376cc3aab08acca', 'type' => 'module'), 'a11y/index.js' => array('dependencies' => array(), 'version' => 'b3a7f46c0ef4f3484886', 'type' => 'module'), 'block-library/file/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'b0cd471b6fde34702d88', 'type' => 'module'), 'block-library/image/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'e1ce544dd878f3a09f70', 'type' => 'module'), 'block-library/navigation/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '9510985aedc1f8e088f3', 'type' => 'module'), 'block-library/query/view.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => '8e6f28f734f3c306b648', 'type' => 'module'), 'block-library/search/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'acdb7febda1392ad28de', 'type' => 'module'));
|
||||
|
|
|
@ -20,29 +20,22 @@ function render_block_core_cover( $attributes, $content ) {
|
|||
return $content;
|
||||
}
|
||||
|
||||
$object_position = isset( $attributes['focalPoint'] )
|
||||
? round( $attributes['focalPoint']['x'] * 100 ) . '% ' . round( $attributes['focalPoint']['y'] * 100 ) . '%'
|
||||
: null;
|
||||
|
||||
if ( ! ( $attributes['hasParallax'] || $attributes['isRepeated'] ) ) {
|
||||
$attr = array(
|
||||
'class' => 'wp-block-cover__image-background',
|
||||
'data-object-fit' => 'cover',
|
||||
);
|
||||
|
||||
if ( isset( $attributes['focalPoint'] ) ) {
|
||||
$object_position = round( $attributes['focalPoint']['x'] * 100 ) . '% ' . round( $attributes['focalPoint']['y'] * 100 ) . '%';
|
||||
if ( $object_position ) {
|
||||
$attr['data-object-position'] = $object_position;
|
||||
$attr['style'] = 'object-position: ' . $object_position;
|
||||
$attr['style'] = 'object-position:' . $object_position . ';';
|
||||
}
|
||||
|
||||
$image = get_the_post_thumbnail( null, 'post-thumbnail', $attr );
|
||||
|
||||
/*
|
||||
* Inserts the featured image between the (1st) cover 'background' `span` and 'inner_container' `div`,
|
||||
* and removes eventual whitespace characters between the two (typically introduced at template level)
|
||||
*/
|
||||
$inner_container_start = '/<div\b[^>]+wp-block-cover__inner-container[\s|"][^>]*>/U';
|
||||
if ( 1 === preg_match( $inner_container_start, $content, $matches, PREG_OFFSET_CAPTURE ) ) {
|
||||
$offset = $matches[0][1];
|
||||
$content = substr( $content, 0, $offset ) . $image . substr( $content, $offset );
|
||||
}
|
||||
} else {
|
||||
if ( in_the_loop() ) {
|
||||
update_post_thumbnail_cache();
|
||||
|
@ -52,15 +45,41 @@ function render_block_core_cover( $attributes, $content ) {
|
|||
return $content;
|
||||
}
|
||||
|
||||
$processor = new WP_HTML_Tag_Processor( $content );
|
||||
$current_thumbnail_id = get_post_thumbnail_id();
|
||||
|
||||
$processor = new WP_HTML_Tag_Processor( '<div></div>' );
|
||||
$processor->next_tag();
|
||||
|
||||
$styles = $processor->get_attribute( 'style' );
|
||||
$merged_styles = ! empty( $styles ) ? $styles . ';' : '';
|
||||
$merged_styles .= 'background-image:url(' . esc_url( $current_featured_image ) . ');';
|
||||
$current_alt = trim( strip_tags( get_post_meta( $current_thumbnail_id, '_wp_attachment_image_alt', true ) ) );
|
||||
if ( $current_alt ) {
|
||||
$processor->set_attribute( 'role', 'img' );
|
||||
$processor->set_attribute( 'aria-label', $current_alt );
|
||||
}
|
||||
|
||||
$processor->set_attribute( 'style', $merged_styles );
|
||||
$content = $processor->get_updated_html();
|
||||
$processor->add_class( 'wp-block-cover__image-background' );
|
||||
$processor->add_class( 'wp-image-' . $current_thumbnail_id );
|
||||
if ( $attributes['hasParallax'] ) {
|
||||
$processor->add_class( 'has-parallax' );
|
||||
}
|
||||
if ( $attributes['isRepeated'] ) {
|
||||
$processor->add_class( 'is-repeated' );
|
||||
}
|
||||
|
||||
$styles = 'background-position:' . ( $object_position ?? '50% 50%' ) . ';';
|
||||
$styles .= 'background-image:url(' . esc_url( $current_featured_image ) . ');';
|
||||
$processor->set_attribute( 'style', $styles );
|
||||
|
||||
$image = $processor->get_updated_html();
|
||||
}
|
||||
|
||||
/*
|
||||
* Inserts the featured image between the (1st) cover 'background' `span` and 'inner_container' `div`,
|
||||
* and removes eventual whitespace characters between the two (typically introduced at template level)
|
||||
*/
|
||||
$inner_container_start = '/<div\b[^>]+wp-block-cover__inner-container[\s|"][^>]*>/U';
|
||||
if ( 1 === preg_match( $inner_container_start, $content, $matches, PREG_OFFSET_CAPTURE ) ) {
|
||||
$offset = $matches[0][1];
|
||||
$content = substr( $content, 0, $offset ) . $image . substr( $content, $offset );
|
||||
}
|
||||
|
||||
return $content;
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
right:50%;
|
||||
top:50%;
|
||||
transform:translate(50%, -50%);
|
||||
z-index:1;
|
||||
}
|
||||
.wp-block-cover .wp-block-cover__inner-container{
|
||||
margin-left:0;
|
||||
|
|
|
@ -1 +1 @@
|
|||
.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover .components-spinner{margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:right}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}
|
||||
.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover .components-spinner{margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);z-index:1}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:right}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}
|
|
@ -32,6 +32,7 @@
|
|||
position:absolute;
|
||||
top:50%;
|
||||
transform:translate(-50%, -50%);
|
||||
z-index:1;
|
||||
}
|
||||
.wp-block-cover .wp-block-cover__inner-container{
|
||||
margin-left:0;
|
||||
|
|
|
@ -1 +1 @@
|
|||
.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover .components-spinner{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:left}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}
|
||||
.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover .components-spinner{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:1}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:left}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}
|
|
@ -27,7 +27,7 @@
|
|||
position:absolute;
|
||||
right:0;
|
||||
top:0;
|
||||
z-index:0;
|
||||
z-index:1;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{
|
||||
opacity:.1;
|
||||
|
@ -101,9 +101,13 @@
|
|||
}
|
||||
.wp-block-cover .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{
|
||||
color:inherit; direction:rtl;
|
||||
position:relative;
|
||||
width:100%;
|
||||
z-index:1;
|
||||
}
|
||||
.has-modal-open .wp-block-cover .wp-block-cover__inner-container,.has-modal-open .wp-block-cover-image .wp-block-cover__inner-container{
|
||||
z-index:auto;
|
||||
}
|
||||
|
||||
.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{
|
||||
align-items:flex-start;
|
||||
justify-content:flex-start;
|
||||
|
@ -186,7 +190,7 @@
|
|||
}
|
||||
|
||||
.wp-block-cover__image-background,.wp-block-cover__video-background{
|
||||
z-index:-1;
|
||||
z-index:0;
|
||||
}
|
||||
.wp-block-cover-image-text,.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{
|
||||
color:#fff;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -27,7 +27,7 @@
|
|||
position:absolute;
|
||||
right:0;
|
||||
top:0;
|
||||
z-index:0;
|
||||
z-index:1;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{
|
||||
opacity:.1;
|
||||
|
@ -101,9 +101,13 @@
|
|||
}
|
||||
.wp-block-cover .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{
|
||||
color:inherit;
|
||||
position:relative;
|
||||
width:100%;
|
||||
z-index:1;
|
||||
}
|
||||
.has-modal-open .wp-block-cover .wp-block-cover__inner-container,.has-modal-open .wp-block-cover-image .wp-block-cover__inner-container{
|
||||
z-index:auto;
|
||||
}
|
||||
|
||||
.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{
|
||||
align-items:flex-start;
|
||||
justify-content:flex-start;
|
||||
|
@ -186,7 +190,7 @@
|
|||
}
|
||||
|
||||
.wp-block-cover__image-background,.wp-block-cover__video-background{
|
||||
z-index:-1;
|
||||
z-index:0;
|
||||
}
|
||||
.wp-block-cover-image-text,.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{
|
||||
color:#fff;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -118,6 +118,7 @@
|
|||
.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender{
|
||||
background-color:#1e1e1e;
|
||||
color:#fff;
|
||||
height:24px;
|
||||
}
|
||||
.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{
|
||||
padding:0;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -118,6 +118,7 @@
|
|||
.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender{
|
||||
background-color:#1e1e1e;
|
||||
color:#fff;
|
||||
height:24px;
|
||||
}
|
||||
.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{
|
||||
padding:0;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -370,10 +370,11 @@
|
|||
justify-content:center;
|
||||
margin-left:-1px;
|
||||
margin-right:-1px;
|
||||
overflow:hidden;
|
||||
transition:background-color .3s ease;
|
||||
}
|
||||
.is-zoomed-out .block-editor-block-list__zoom-out-separator{
|
||||
font-size:calc(13px*(2 - var(--wp-block-editor-iframe-zoom-out-scale)));
|
||||
font-size:calc(13px/var(--wp-block-editor-iframe-zoom-out-scale));
|
||||
}
|
||||
.block-editor-block-list__zoom-out-separator.is-dragged-over{
|
||||
background:#ccc;
|
||||
|
@ -635,26 +636,9 @@
|
|||
position:relative;
|
||||
}
|
||||
|
||||
.block-editor-iframe__container{
|
||||
height:100%;
|
||||
overflow-x:hidden;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.block-editor-iframe__scale-container{
|
||||
display:flex;
|
||||
height:100%;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.block-editor-iframe__scale-container.is-zoomed-out{
|
||||
margin-right:calc((var(--wp-block-editor-iframe-zoom-out-prev-container-width, 100vw) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw))*-1/2);
|
||||
width:var(--wp-block-editor-iframe-zoom-out-prev-container-width, 100vw);
|
||||
}
|
||||
|
||||
.block-editor-iframe__html{
|
||||
transform-origin:top center;
|
||||
transition:all .4s cubic-bezier(.46, .03, .52, .96);
|
||||
transition:all .4s cubic-bezier(.46, .03, .52, .96),transform 0s,scale 0s,padding 0s;
|
||||
}
|
||||
@media (prefers-reduced-motion:reduce){
|
||||
.block-editor-iframe__html{
|
||||
|
@ -662,13 +646,23 @@
|
|||
transition-duration:0s;
|
||||
}
|
||||
}
|
||||
.block-editor-iframe__html.zoom-out-animation{
|
||||
transition:all .4s cubic-bezier(.46, .03, .52, .96),transform 0s;
|
||||
}
|
||||
@media (prefers-reduced-motion:reduce){
|
||||
.block-editor-iframe__html.zoom-out-animation{
|
||||
transition-delay:0s;
|
||||
transition-duration:0s;
|
||||
}
|
||||
}
|
||||
|
||||
.block-editor-iframe__html.is-zoomed-out{
|
||||
background-color:#ddd;
|
||||
margin-bottom:calc(var(--wp-block-editor-iframe-zoom-out-content-height)*(1 - var(--wp-block-editor-iframe-zoom-out-scale))*-1 + var(--wp-block-editor-iframe-zoom-out-frame-size)*2/var(--wp-block-editor-iframe-zoom-out-scale)*-1 + -2px);
|
||||
padding-bottom:calc(var(--wp-block-editor-iframe-zoom-out-frame-size)/var(--wp-block-editor-iframe-zoom-out-scale));
|
||||
padding-top:calc(var(--wp-block-editor-iframe-zoom-out-frame-size)/var(--wp-block-editor-iframe-zoom-out-scale));
|
||||
transform:scale(var(--wp-block-editor-iframe-zoom-out-scale));
|
||||
scale:var(--wp-block-editor-iframe-zoom-out-scale);
|
||||
transform:translateX(calc(((var(--wp-block-editor-iframe-zoom-out-scale-container-width) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw))/2/var(--wp-block-editor-iframe-zoom-out-scale))*-1));
|
||||
}
|
||||
.block-editor-iframe__html.is-zoomed-out body{
|
||||
min-height:calc((var(--wp-block-editor-iframe-zoom-out-inner-height) - 2*var(--wp-block-editor-iframe-zoom-out-frame-size)/var(--wp-block-editor-iframe-zoom-out-scale))/var(--wp-block-editor-iframe-zoom-out-scale));
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -370,10 +370,11 @@
|
|||
justify-content:center;
|
||||
margin-left:-1px;
|
||||
margin-right:-1px;
|
||||
overflow:hidden;
|
||||
transition:background-color .3s ease;
|
||||
}
|
||||
.is-zoomed-out .block-editor-block-list__zoom-out-separator{
|
||||
font-size:calc(13px*(2 - var(--wp-block-editor-iframe-zoom-out-scale)));
|
||||
font-size:calc(13px/var(--wp-block-editor-iframe-zoom-out-scale));
|
||||
}
|
||||
.block-editor-block-list__zoom-out-separator.is-dragged-over{
|
||||
background:#ccc;
|
||||
|
@ -635,26 +636,9 @@
|
|||
position:relative;
|
||||
}
|
||||
|
||||
.block-editor-iframe__container{
|
||||
height:100%;
|
||||
overflow-x:hidden;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.block-editor-iframe__scale-container{
|
||||
display:flex;
|
||||
height:100%;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.block-editor-iframe__scale-container.is-zoomed-out{
|
||||
margin-left:calc((var(--wp-block-editor-iframe-zoom-out-prev-container-width, 100vw) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw))*-1/2);
|
||||
width:var(--wp-block-editor-iframe-zoom-out-prev-container-width, 100vw);
|
||||
}
|
||||
|
||||
.block-editor-iframe__html{
|
||||
transform-origin:top center;
|
||||
transition:all .4s cubic-bezier(.46, .03, .52, .96);
|
||||
transition:all .4s cubic-bezier(.46, .03, .52, .96),transform 0s,scale 0s,padding 0s;
|
||||
}
|
||||
@media (prefers-reduced-motion:reduce){
|
||||
.block-editor-iframe__html{
|
||||
|
@ -662,13 +646,23 @@
|
|||
transition-duration:0s;
|
||||
}
|
||||
}
|
||||
.block-editor-iframe__html.zoom-out-animation{
|
||||
transition:all .4s cubic-bezier(.46, .03, .52, .96),transform 0s;
|
||||
}
|
||||
@media (prefers-reduced-motion:reduce){
|
||||
.block-editor-iframe__html.zoom-out-animation{
|
||||
transition-delay:0s;
|
||||
transition-duration:0s;
|
||||
}
|
||||
}
|
||||
|
||||
.block-editor-iframe__html.is-zoomed-out{
|
||||
background-color:#ddd;
|
||||
margin-bottom:calc(var(--wp-block-editor-iframe-zoom-out-content-height)*(1 - var(--wp-block-editor-iframe-zoom-out-scale))*-1 + var(--wp-block-editor-iframe-zoom-out-frame-size)*2/var(--wp-block-editor-iframe-zoom-out-scale)*-1 + -2px);
|
||||
padding-bottom:calc(var(--wp-block-editor-iframe-zoom-out-frame-size)/var(--wp-block-editor-iframe-zoom-out-scale));
|
||||
padding-top:calc(var(--wp-block-editor-iframe-zoom-out-frame-size)/var(--wp-block-editor-iframe-zoom-out-scale));
|
||||
transform:scale(var(--wp-block-editor-iframe-zoom-out-scale));
|
||||
scale:var(--wp-block-editor-iframe-zoom-out-scale);
|
||||
transform:translateX(calc((var(--wp-block-editor-iframe-zoom-out-scale-container-width) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw))/2/var(--wp-block-editor-iframe-zoom-out-scale)));
|
||||
}
|
||||
.block-editor-iframe__html.is-zoomed-out body{
|
||||
min-height:calc((var(--wp-block-editor-iframe-zoom-out-inner-height) - 2*var(--wp-block-editor-iframe-zoom-out-frame-size)/var(--wp-block-editor-iframe-zoom-out-scale))/var(--wp-block-editor-iframe-zoom-out-scale));
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -442,22 +442,8 @@ iframe[name=editor-canvas]{
|
|||
transform:translateX(50%) translateY(-50%);
|
||||
}
|
||||
|
||||
.zoom-out-toolbar .block-editor-block-mover-button.block-editor-block-mover-button:focus-visible:before,.zoom-out-toolbar .block-editor-block-toolbar-shuffle:focus:before,.zoom-out-toolbar .block-selection-button_drag-handle:focus:before,.zoom-out-toolbar .zoom-out-toolbar-button:focus:before{
|
||||
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
||||
}
|
||||
.zoom-out-toolbar .block-editor-block-mover{
|
||||
background:none;
|
||||
border:none;
|
||||
}
|
||||
.zoom-out-toolbar .zoom-out-toolbar-button{
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.block-editor-block-tools__zoom-out-mode-inserter-button{
|
||||
visibility:hidden;
|
||||
}
|
||||
.block-editor-block-tools__zoom-out-mode-inserter-button.is-visible{
|
||||
visibility:visible;
|
||||
.components-button.block-editor-button-pattern-inserter__button.block-editor-block-tools__zoom-out-mode-inserter-button{
|
||||
top:-1px;
|
||||
}
|
||||
|
||||
.block-editor-block-lock-modal{
|
||||
|
@ -1754,6 +1740,22 @@ iframe[name=editor-canvas]{
|
|||
padding:0;
|
||||
}
|
||||
|
||||
.block-editor-iframe__container{
|
||||
height:100%;
|
||||
overflow-x:hidden;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.block-editor-iframe__scale-container{
|
||||
height:100%;
|
||||
}
|
||||
|
||||
.block-editor-iframe__scale-container.is-zoomed-out{
|
||||
left:0;
|
||||
position:absolute;
|
||||
width:var(--wp-block-editor-iframe-zoom-out-scale-container-width, 100vw);
|
||||
}
|
||||
|
||||
.block-editor-image-size-control{
|
||||
margin-bottom:1em;
|
||||
}
|
||||
|
@ -2863,6 +2865,7 @@ iframe[name=editor-canvas]{
|
|||
z-index:99998;
|
||||
}
|
||||
.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{
|
||||
border-radius:2px;
|
||||
box-shadow:none;
|
||||
margin-bottom:8px;
|
||||
min-width:auto;
|
||||
|
@ -2872,6 +2875,9 @@ iframe[name=editor-canvas]{
|
|||
.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{
|
||||
border-radius:2px;
|
||||
}
|
||||
.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{
|
||||
background:none;
|
||||
}
|
||||
.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{
|
||||
min-height:48px;
|
||||
min-width:48px;
|
||||
|
@ -3230,9 +3236,12 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span{
|
|||
.block-editor-block-toolbar.is-connected .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-connected .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors,.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{
|
||||
color:var(--wp-block-synced-color);
|
||||
}
|
||||
.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{
|
||||
.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2),.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2) .components-toolbar,.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2) .components-toolbar-group,.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{
|
||||
border-left:none;
|
||||
}
|
||||
.block-editor-block-toolbar .components-toolbar-group:empty{
|
||||
display:none;
|
||||
}
|
||||
|
||||
.block-editor-block-contextual-toolbar{
|
||||
background-color:#fff;
|
||||
|
@ -3521,6 +3530,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span{
|
|||
align-items:center;
|
||||
display:inline-flex;
|
||||
padding:16px 16px 0;
|
||||
position:relative;
|
||||
}
|
||||
|
||||
.block-editor-inserter__panel-content{
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -442,22 +442,8 @@ iframe[name=editor-canvas]{
|
|||
transform:translateX(-50%) translateY(-50%);
|
||||
}
|
||||
|
||||
.zoom-out-toolbar .block-editor-block-mover-button.block-editor-block-mover-button:focus-visible:before,.zoom-out-toolbar .block-editor-block-toolbar-shuffle:focus:before,.zoom-out-toolbar .block-selection-button_drag-handle:focus:before,.zoom-out-toolbar .zoom-out-toolbar-button:focus:before{
|
||||
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
||||
}
|
||||
.zoom-out-toolbar .block-editor-block-mover{
|
||||
background:none;
|
||||
border:none;
|
||||
}
|
||||
.zoom-out-toolbar .zoom-out-toolbar-button{
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.block-editor-block-tools__zoom-out-mode-inserter-button{
|
||||
visibility:hidden;
|
||||
}
|
||||
.block-editor-block-tools__zoom-out-mode-inserter-button.is-visible{
|
||||
visibility:visible;
|
||||
.components-button.block-editor-button-pattern-inserter__button.block-editor-block-tools__zoom-out-mode-inserter-button{
|
||||
top:-1px;
|
||||
}
|
||||
|
||||
.block-editor-block-lock-modal{
|
||||
|
@ -1754,6 +1740,22 @@ iframe[name=editor-canvas]{
|
|||
padding:0;
|
||||
}
|
||||
|
||||
.block-editor-iframe__container{
|
||||
height:100%;
|
||||
overflow-x:hidden;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.block-editor-iframe__scale-container{
|
||||
height:100%;
|
||||
}
|
||||
|
||||
.block-editor-iframe__scale-container.is-zoomed-out{
|
||||
position:absolute;
|
||||
right:0;
|
||||
width:var(--wp-block-editor-iframe-zoom-out-scale-container-width, 100vw);
|
||||
}
|
||||
|
||||
.block-editor-image-size-control{
|
||||
margin-bottom:1em;
|
||||
}
|
||||
|
@ -2863,6 +2865,7 @@ iframe[name=editor-canvas]{
|
|||
z-index:99998;
|
||||
}
|
||||
.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{
|
||||
border-radius:2px;
|
||||
box-shadow:none;
|
||||
margin-bottom:8px;
|
||||
min-width:auto;
|
||||
|
@ -2872,6 +2875,9 @@ iframe[name=editor-canvas]{
|
|||
.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{
|
||||
border-radius:2px;
|
||||
}
|
||||
.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{
|
||||
background:none;
|
||||
}
|
||||
.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{
|
||||
min-height:48px;
|
||||
min-width:48px;
|
||||
|
@ -3230,9 +3236,12 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span{
|
|||
.block-editor-block-toolbar.is-connected .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-connected .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors,.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{
|
||||
color:var(--wp-block-synced-color);
|
||||
}
|
||||
.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{
|
||||
.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2),.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2) .components-toolbar,.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2) .components-toolbar-group,.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{
|
||||
border-right:none;
|
||||
}
|
||||
.block-editor-block-toolbar .components-toolbar-group:empty{
|
||||
display:none;
|
||||
}
|
||||
|
||||
.block-editor-block-contextual-toolbar{
|
||||
background-color:#fff;
|
||||
|
@ -3521,6 +3530,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span{
|
|||
align-items:center;
|
||||
display:inline-flex;
|
||||
padding:16px 16px 0;
|
||||
position:relative;
|
||||
}
|
||||
|
||||
.block-editor-inserter__panel-content{
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -300,6 +300,7 @@ html :where(.wp-block-column){
|
|||
right:50%;
|
||||
top:50%;
|
||||
transform:translate(50%, -50%);
|
||||
z-index:1;
|
||||
}
|
||||
.wp-block-cover .wp-block-cover__inner-container{
|
||||
margin-left:0;
|
||||
|
@ -1374,6 +1375,7 @@ figure.wp-block-image:not(.wp-block){
|
|||
.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender{
|
||||
background-color:#1e1e1e;
|
||||
color:#fff;
|
||||
height:24px;
|
||||
}
|
||||
.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{
|
||||
padding:0;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -298,6 +298,7 @@ html :where(.wp-block-column){
|
|||
position:absolute;
|
||||
top:50%;
|
||||
transform:translate(-50%, -50%);
|
||||
z-index:1;
|
||||
}
|
||||
.wp-block-cover .wp-block-cover__inner-container{
|
||||
margin-left:0;
|
||||
|
@ -1372,6 +1373,7 @@ figure.wp-block-image:not(.wp-block){
|
|||
.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender{
|
||||
background-color:#1e1e1e;
|
||||
color:#fff;
|
||||
height:24px;
|
||||
}
|
||||
.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{
|
||||
padding:0;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -489,7 +489,7 @@
|
|||
position:absolute;
|
||||
right:0;
|
||||
top:0;
|
||||
z-index:0;
|
||||
z-index:1;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{
|
||||
opacity:.1;
|
||||
|
@ -563,9 +563,13 @@
|
|||
}
|
||||
.wp-block-cover .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{
|
||||
color:inherit; direction:rtl;
|
||||
position:relative;
|
||||
width:100%;
|
||||
z-index:1;
|
||||
}
|
||||
.has-modal-open .wp-block-cover .wp-block-cover__inner-container,.has-modal-open .wp-block-cover-image .wp-block-cover__inner-container{
|
||||
z-index:auto;
|
||||
}
|
||||
|
||||
.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{
|
||||
align-items:flex-start;
|
||||
justify-content:flex-start;
|
||||
|
@ -648,7 +652,7 @@
|
|||
}
|
||||
|
||||
.wp-block-cover__image-background,.wp-block-cover__video-background{
|
||||
z-index:-1;
|
||||
z-index:0;
|
||||
}
|
||||
.wp-block-cover-image-text,.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{
|
||||
color:#fff;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -489,7 +489,7 @@
|
|||
position:absolute;
|
||||
right:0;
|
||||
top:0;
|
||||
z-index:0;
|
||||
z-index:1;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{
|
||||
opacity:.1;
|
||||
|
@ -563,9 +563,13 @@
|
|||
}
|
||||
.wp-block-cover .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{
|
||||
color:inherit;
|
||||
position:relative;
|
||||
width:100%;
|
||||
z-index:1;
|
||||
}
|
||||
.has-modal-open .wp-block-cover .wp-block-cover__inner-container,.has-modal-open .wp-block-cover-image .wp-block-cover__inner-container{
|
||||
z-index:auto;
|
||||
}
|
||||
|
||||
.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{
|
||||
align-items:flex-start;
|
||||
justify-content:flex-start;
|
||||
|
@ -648,7 +652,7 @@
|
|||
}
|
||||
|
||||
.wp-block-cover__image-background,.wp-block-cover__video-background{
|
||||
z-index:-1;
|
||||
z-index:0;
|
||||
}
|
||||
.wp-block-cover-image-text,.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{
|
||||
color:#fff;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -676,44 +676,31 @@ ul.dataviews-view-list{
|
|||
}
|
||||
.dataviews-view-list li{
|
||||
border-top:1px solid #f0f0f0;
|
||||
cursor:pointer;
|
||||
margin:0;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-wrapper{
|
||||
border-radius:4px;
|
||||
padding:16px 24px;
|
||||
position:relative;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-wrapper>*{
|
||||
width:100%;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-actions{
|
||||
left:0;
|
||||
position:absolute;
|
||||
top:16px;
|
||||
flex:0;
|
||||
overflow:hidden;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-actions>div{
|
||||
height:24px;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-actions .components-button{
|
||||
opacity:0;
|
||||
position:relative;
|
||||
z-index:1;
|
||||
}
|
||||
.dataviews-view-list li:has(.dataviews-view-list__fields:empty) .dataviews-view-list__item-actions{
|
||||
top:50%;
|
||||
transform:translateY(-50%);
|
||||
.dataviews-view-list li:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions{
|
||||
flex-basis:min-content;
|
||||
margin-inline:8px 0;
|
||||
overflow:unset;
|
||||
}
|
||||
.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{
|
||||
background:#f8f8f8;
|
||||
box-shadow:12px 0 8px 0 #f8f8f8;
|
||||
margin-left:24px;
|
||||
padding-right:8px;
|
||||
}
|
||||
.dataviews-view-list li.is-hovered .dataviews-view-list__item-actions .components-button,.dataviews-view-list li.is-selected .dataviews-view-list__item-actions .components-button,.dataviews-view-list li:focus-within .dataviews-view-list__item-actions .components-button{
|
||||
.dataviews-view-list li:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions .components-button{
|
||||
opacity:1;
|
||||
position:static;
|
||||
}
|
||||
.dataviews-view-list li.is-selected .dataviews-view-list__item-actions{
|
||||
background-color:#f7f8ff;
|
||||
box-shadow:12px 0 8px 0 #f7f8ff;
|
||||
}
|
||||
.dataviews-view-list li.is-selected.is-selected,.dataviews-view-list li.is-selected.is-selected+li{
|
||||
border-top:1px solid rgba(var(--wp-admin-theme-color--rgb), .12);
|
||||
|
@ -736,26 +723,36 @@ ul.dataviews-view-list{
|
|||
color:var(--wp-admin-theme-color);
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item{
|
||||
box-sizing:border-box;
|
||||
padding:16px 24px;
|
||||
appearance:none;
|
||||
background:none;
|
||||
border:none;
|
||||
cursor:pointer;
|
||||
inset:0;
|
||||
padding:0;
|
||||
position:absolute;
|
||||
scroll-margin:8px 0;
|
||||
width:100%;
|
||||
z-index:1;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item:focus-visible{
|
||||
outline:none;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item:focus-visible:before{
|
||||
border-radius:2px;
|
||||
bottom:var(--wp-admin-border-width-focus);
|
||||
box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
||||
content:"";
|
||||
left:var(--wp-admin-border-width-focus);
|
||||
inset:var(--wp-admin-border-width-focus);
|
||||
outline:2px solid #0000;
|
||||
position:absolute;
|
||||
right:var(--wp-admin-border-width-focus);
|
||||
top:var(--wp-admin-border-width-focus);
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item .dataviews-view-list__primary-field{
|
||||
.dataviews-view-list .dataviews-view-list__primary-field{
|
||||
flex:1;
|
||||
line-height:24px;
|
||||
min-height:24px;
|
||||
overflow:hidden;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__primary-field:has(a,button){
|
||||
z-index:1;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__media-wrapper{
|
||||
background-color:#f0f0f0;
|
||||
border-radius:4px;
|
||||
|
@ -786,6 +783,7 @@ ul.dataviews-view-list{
|
|||
width:52px;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__field-wrapper{
|
||||
flex-grow:1;
|
||||
min-height:52px;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__fields{
|
||||
|
@ -1183,9 +1181,9 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{
|
||||
align-items:center;
|
||||
display:flex;
|
||||
height:64px;
|
||||
height:60px;
|
||||
justify-content:center;
|
||||
width:64px;
|
||||
width:60px;
|
||||
}
|
||||
|
||||
.edit-site-layout__actions{
|
||||
|
@ -1329,7 +1327,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
overflow-y:auto;
|
||||
}
|
||||
|
||||
@keyframes _dq5dx_slide-from-right{
|
||||
@keyframes _wd5ep_slide-from-right{
|
||||
0%{
|
||||
opacity:0;
|
||||
transform:translateX(-50px);
|
||||
|
@ -1339,7 +1337,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
transform:none;
|
||||
}
|
||||
}
|
||||
@keyframes _dq5dx_slide-from-left{
|
||||
@keyframes _wd5ep_slide-from-left{
|
||||
0%{
|
||||
opacity:0;
|
||||
transform:translateX(50px);
|
||||
|
@ -1395,16 +1393,17 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
}
|
||||
}
|
||||
.edit-site-sidebar__screen-wrapper.slide-from-left{
|
||||
animation-name:_dq5dx_slide-from-left;
|
||||
animation-name:_wd5ep_slide-from-left;
|
||||
}
|
||||
.edit-site-sidebar__screen-wrapper.slide-from-right{
|
||||
animation-name:_dq5dx_slide-from-right;
|
||||
animation-name:_wd5ep_slide-from-right;
|
||||
}
|
||||
|
||||
.edit-site-site-hub{
|
||||
align-items:center;
|
||||
display:flex;
|
||||
gap:8px;
|
||||
height:56px;
|
||||
justify-content:space-between;
|
||||
margin-left:12px;
|
||||
}
|
||||
|
@ -1428,6 +1427,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
flex-grow:1;
|
||||
font-size:15px;
|
||||
font-weight:500;
|
||||
margin-right:-4px;
|
||||
overflow:hidden;
|
||||
padding-left:16px;
|
||||
position:relative;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -676,44 +676,31 @@ ul.dataviews-view-list{
|
|||
}
|
||||
.dataviews-view-list li{
|
||||
border-top:1px solid #f0f0f0;
|
||||
cursor:pointer;
|
||||
margin:0;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-wrapper{
|
||||
border-radius:4px;
|
||||
padding:16px 24px;
|
||||
position:relative;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-wrapper>*{
|
||||
width:100%;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-actions{
|
||||
position:absolute;
|
||||
right:0;
|
||||
top:16px;
|
||||
flex:0;
|
||||
overflow:hidden;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-actions>div{
|
||||
height:24px;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-actions .components-button{
|
||||
opacity:0;
|
||||
position:relative;
|
||||
z-index:1;
|
||||
}
|
||||
.dataviews-view-list li:has(.dataviews-view-list__fields:empty) .dataviews-view-list__item-actions{
|
||||
top:50%;
|
||||
transform:translateY(-50%);
|
||||
.dataviews-view-list li:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions{
|
||||
flex-basis:min-content;
|
||||
margin-inline:8px 0;
|
||||
overflow:unset;
|
||||
}
|
||||
.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{
|
||||
background:#f8f8f8;
|
||||
box-shadow:-12px 0 8px 0 #f8f8f8;
|
||||
margin-right:24px;
|
||||
padding-left:8px;
|
||||
}
|
||||
.dataviews-view-list li.is-hovered .dataviews-view-list__item-actions .components-button,.dataviews-view-list li.is-selected .dataviews-view-list__item-actions .components-button,.dataviews-view-list li:focus-within .dataviews-view-list__item-actions .components-button{
|
||||
.dataviews-view-list li:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions .components-button{
|
||||
opacity:1;
|
||||
position:static;
|
||||
}
|
||||
.dataviews-view-list li.is-selected .dataviews-view-list__item-actions{
|
||||
background-color:#f7f8ff;
|
||||
box-shadow:-12px 0 8px 0 #f7f8ff;
|
||||
}
|
||||
.dataviews-view-list li.is-selected.is-selected,.dataviews-view-list li.is-selected.is-selected+li{
|
||||
border-top:1px solid rgba(var(--wp-admin-theme-color--rgb), .12);
|
||||
|
@ -736,26 +723,36 @@ ul.dataviews-view-list{
|
|||
color:var(--wp-admin-theme-color);
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item{
|
||||
box-sizing:border-box;
|
||||
padding:16px 24px;
|
||||
appearance:none;
|
||||
background:none;
|
||||
border:none;
|
||||
cursor:pointer;
|
||||
inset:0;
|
||||
padding:0;
|
||||
position:absolute;
|
||||
scroll-margin:8px 0;
|
||||
width:100%;
|
||||
z-index:1;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item:focus-visible{
|
||||
outline:none;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item:focus-visible:before{
|
||||
border-radius:2px;
|
||||
bottom:var(--wp-admin-border-width-focus);
|
||||
box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
||||
content:"";
|
||||
left:var(--wp-admin-border-width-focus);
|
||||
inset:var(--wp-admin-border-width-focus);
|
||||
outline:2px solid #0000;
|
||||
position:absolute;
|
||||
right:var(--wp-admin-border-width-focus);
|
||||
top:var(--wp-admin-border-width-focus);
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item .dataviews-view-list__primary-field{
|
||||
.dataviews-view-list .dataviews-view-list__primary-field{
|
||||
flex:1;
|
||||
line-height:24px;
|
||||
min-height:24px;
|
||||
overflow:hidden;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__primary-field:has(a,button){
|
||||
z-index:1;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__media-wrapper{
|
||||
background-color:#f0f0f0;
|
||||
border-radius:4px;
|
||||
|
@ -786,6 +783,7 @@ ul.dataviews-view-list{
|
|||
width:52px;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__field-wrapper{
|
||||
flex-grow:1;
|
||||
min-height:52px;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__fields{
|
||||
|
@ -1183,9 +1181,9 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{
|
||||
align-items:center;
|
||||
display:flex;
|
||||
height:64px;
|
||||
height:60px;
|
||||
justify-content:center;
|
||||
width:64px;
|
||||
width:60px;
|
||||
}
|
||||
|
||||
.edit-site-layout__actions{
|
||||
|
@ -1329,7 +1327,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
overflow-y:auto;
|
||||
}
|
||||
|
||||
@keyframes _dq5dx_slide-from-right{
|
||||
@keyframes _wd5ep_slide-from-right{
|
||||
0%{
|
||||
opacity:0;
|
||||
transform:translateX(50px);
|
||||
|
@ -1339,7 +1337,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
transform:none;
|
||||
}
|
||||
}
|
||||
@keyframes _dq5dx_slide-from-left{
|
||||
@keyframes _wd5ep_slide-from-left{
|
||||
0%{
|
||||
opacity:0;
|
||||
transform:translateX(-50px);
|
||||
|
@ -1395,16 +1393,17 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
}
|
||||
}
|
||||
.edit-site-sidebar__screen-wrapper.slide-from-left{
|
||||
animation-name:_dq5dx_slide-from-left;
|
||||
animation-name:_wd5ep_slide-from-left;
|
||||
}
|
||||
.edit-site-sidebar__screen-wrapper.slide-from-right{
|
||||
animation-name:_dq5dx_slide-from-right;
|
||||
animation-name:_wd5ep_slide-from-right;
|
||||
}
|
||||
|
||||
.edit-site-site-hub{
|
||||
align-items:center;
|
||||
display:flex;
|
||||
gap:8px;
|
||||
height:56px;
|
||||
justify-content:space-between;
|
||||
margin-right:12px;
|
||||
}
|
||||
|
@ -1428,6 +1427,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
flex-grow:1;
|
||||
font-size:15px;
|
||||
font-weight:500;
|
||||
margin-left:-4px;
|
||||
overflow:hidden;
|
||||
padding-right:16px;
|
||||
position:relative;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -676,44 +676,31 @@ ul.dataviews-view-list{
|
|||
}
|
||||
.dataviews-view-list li{
|
||||
border-top:1px solid #f0f0f0;
|
||||
cursor:pointer;
|
||||
margin:0;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-wrapper{
|
||||
border-radius:4px;
|
||||
padding:16px 24px;
|
||||
position:relative;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-wrapper>*{
|
||||
width:100%;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-actions{
|
||||
left:0;
|
||||
position:absolute;
|
||||
top:16px;
|
||||
flex:0;
|
||||
overflow:hidden;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-actions>div{
|
||||
height:24px;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-actions .components-button{
|
||||
opacity:0;
|
||||
position:relative;
|
||||
z-index:1;
|
||||
}
|
||||
.dataviews-view-list li:has(.dataviews-view-list__fields:empty) .dataviews-view-list__item-actions{
|
||||
top:50%;
|
||||
transform:translateY(-50%);
|
||||
.dataviews-view-list li:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions{
|
||||
flex-basis:min-content;
|
||||
margin-inline:8px 0;
|
||||
overflow:unset;
|
||||
}
|
||||
.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{
|
||||
background:#f8f8f8;
|
||||
box-shadow:12px 0 8px 0 #f8f8f8;
|
||||
margin-left:24px;
|
||||
padding-right:8px;
|
||||
}
|
||||
.dataviews-view-list li.is-hovered .dataviews-view-list__item-actions .components-button,.dataviews-view-list li.is-selected .dataviews-view-list__item-actions .components-button,.dataviews-view-list li:focus-within .dataviews-view-list__item-actions .components-button{
|
||||
.dataviews-view-list li:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions .components-button{
|
||||
opacity:1;
|
||||
position:static;
|
||||
}
|
||||
.dataviews-view-list li.is-selected .dataviews-view-list__item-actions{
|
||||
background-color:#f7f8ff;
|
||||
box-shadow:12px 0 8px 0 #f7f8ff;
|
||||
}
|
||||
.dataviews-view-list li.is-selected.is-selected,.dataviews-view-list li.is-selected.is-selected+li{
|
||||
border-top:1px solid rgba(var(--wp-admin-theme-color--rgb), .12);
|
||||
|
@ -736,26 +723,36 @@ ul.dataviews-view-list{
|
|||
color:var(--wp-admin-theme-color);
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item{
|
||||
box-sizing:border-box;
|
||||
padding:16px 24px;
|
||||
appearance:none;
|
||||
background:none;
|
||||
border:none;
|
||||
cursor:pointer;
|
||||
inset:0;
|
||||
padding:0;
|
||||
position:absolute;
|
||||
scroll-margin:8px 0;
|
||||
width:100%;
|
||||
z-index:1;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item:focus-visible{
|
||||
outline:none;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item:focus-visible:before{
|
||||
border-radius:2px;
|
||||
bottom:var(--wp-admin-border-width-focus);
|
||||
box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
||||
content:"";
|
||||
left:var(--wp-admin-border-width-focus);
|
||||
inset:var(--wp-admin-border-width-focus);
|
||||
outline:2px solid #0000;
|
||||
position:absolute;
|
||||
right:var(--wp-admin-border-width-focus);
|
||||
top:var(--wp-admin-border-width-focus);
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item .dataviews-view-list__primary-field{
|
||||
.dataviews-view-list .dataviews-view-list__primary-field{
|
||||
flex:1;
|
||||
line-height:24px;
|
||||
min-height:24px;
|
||||
overflow:hidden;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__primary-field:has(a,button){
|
||||
z-index:1;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__media-wrapper{
|
||||
background-color:#f0f0f0;
|
||||
border-radius:4px;
|
||||
|
@ -786,6 +783,7 @@ ul.dataviews-view-list{
|
|||
width:52px;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__field-wrapper{
|
||||
flex-grow:1;
|
||||
min-height:52px;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__fields{
|
||||
|
@ -2228,9 +2226,9 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{
|
||||
align-items:center;
|
||||
display:flex;
|
||||
height:64px;
|
||||
height:60px;
|
||||
justify-content:center;
|
||||
width:64px;
|
||||
width:60px;
|
||||
}
|
||||
|
||||
.edit-site-layout__actions{
|
||||
|
@ -2313,7 +2311,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
overflow-y:auto;
|
||||
}
|
||||
|
||||
@keyframes _ngjuq_slide-from-right{
|
||||
@keyframes _saugi_slide-from-right{
|
||||
0%{
|
||||
opacity:0;
|
||||
transform:translateX(-50px);
|
||||
|
@ -2323,7 +2321,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
transform:none;
|
||||
}
|
||||
}
|
||||
@keyframes _ngjuq_slide-from-left{
|
||||
@keyframes _saugi_slide-from-left{
|
||||
0%{
|
||||
opacity:0;
|
||||
transform:translateX(50px);
|
||||
|
@ -2379,10 +2377,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
}
|
||||
}
|
||||
.edit-site-sidebar__screen-wrapper.slide-from-left{
|
||||
animation-name:_ngjuq_slide-from-left;
|
||||
animation-name:_saugi_slide-from-left;
|
||||
}
|
||||
.edit-site-sidebar__screen-wrapper.slide-from-right{
|
||||
animation-name:_ngjuq_slide-from-right;
|
||||
animation-name:_saugi_slide-from-right;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-button{
|
||||
|
@ -2397,7 +2395,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
||||
outline:3px solid #0000;
|
||||
}
|
||||
.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{
|
||||
.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover:not(:disabled,[aria-disabled=true]),.edit-site-sidebar-button:not(:disabled,[aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{
|
||||
color:#f0f0f0;
|
||||
}
|
||||
|
||||
|
@ -2492,7 +2490,9 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
.edit-site-sidebar-navigation-screen__title{
|
||||
flex-grow:1;
|
||||
overflow-wrap:break-word;
|
||||
padding:2px 0 0;
|
||||
}
|
||||
.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title,.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title .edit-site-sidebar-navigation-screen__title{
|
||||
line-height:32px;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-navigation-screen__actions{
|
||||
|
@ -2650,6 +2650,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
align-items:center;
|
||||
display:flex;
|
||||
gap:8px;
|
||||
height:56px;
|
||||
justify-content:space-between;
|
||||
margin-left:12px;
|
||||
}
|
||||
|
@ -2673,6 +2674,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
flex-grow:1;
|
||||
font-size:15px;
|
||||
font-weight:500;
|
||||
margin-right:-4px;
|
||||
overflow:hidden;
|
||||
padding-left:16px;
|
||||
position:relative;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -676,44 +676,31 @@ ul.dataviews-view-list{
|
|||
}
|
||||
.dataviews-view-list li{
|
||||
border-top:1px solid #f0f0f0;
|
||||
cursor:pointer;
|
||||
margin:0;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-wrapper{
|
||||
border-radius:4px;
|
||||
padding:16px 24px;
|
||||
position:relative;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-wrapper>*{
|
||||
width:100%;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-actions{
|
||||
position:absolute;
|
||||
right:0;
|
||||
top:16px;
|
||||
flex:0;
|
||||
overflow:hidden;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-actions>div{
|
||||
height:24px;
|
||||
}
|
||||
.dataviews-view-list li .dataviews-view-list__item-actions .components-button{
|
||||
opacity:0;
|
||||
position:relative;
|
||||
z-index:1;
|
||||
}
|
||||
.dataviews-view-list li:has(.dataviews-view-list__fields:empty) .dataviews-view-list__item-actions{
|
||||
top:50%;
|
||||
transform:translateY(-50%);
|
||||
.dataviews-view-list li:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions{
|
||||
flex-basis:min-content;
|
||||
margin-inline:8px 0;
|
||||
overflow:unset;
|
||||
}
|
||||
.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{
|
||||
background:#f8f8f8;
|
||||
box-shadow:-12px 0 8px 0 #f8f8f8;
|
||||
margin-right:24px;
|
||||
padding-left:8px;
|
||||
}
|
||||
.dataviews-view-list li.is-hovered .dataviews-view-list__item-actions .components-button,.dataviews-view-list li.is-selected .dataviews-view-list__item-actions .components-button,.dataviews-view-list li:focus-within .dataviews-view-list__item-actions .components-button{
|
||||
.dataviews-view-list li:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions .components-button{
|
||||
opacity:1;
|
||||
position:static;
|
||||
}
|
||||
.dataviews-view-list li.is-selected .dataviews-view-list__item-actions{
|
||||
background-color:#f7f8ff;
|
||||
box-shadow:-12px 0 8px 0 #f7f8ff;
|
||||
}
|
||||
.dataviews-view-list li.is-selected.is-selected,.dataviews-view-list li.is-selected.is-selected+li{
|
||||
border-top:1px solid rgba(var(--wp-admin-theme-color--rgb), .12);
|
||||
|
@ -736,26 +723,36 @@ ul.dataviews-view-list{
|
|||
color:var(--wp-admin-theme-color);
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item{
|
||||
box-sizing:border-box;
|
||||
padding:16px 24px;
|
||||
appearance:none;
|
||||
background:none;
|
||||
border:none;
|
||||
cursor:pointer;
|
||||
inset:0;
|
||||
padding:0;
|
||||
position:absolute;
|
||||
scroll-margin:8px 0;
|
||||
width:100%;
|
||||
z-index:1;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item:focus-visible{
|
||||
outline:none;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item:focus-visible:before{
|
||||
border-radius:2px;
|
||||
bottom:var(--wp-admin-border-width-focus);
|
||||
box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
||||
content:"";
|
||||
left:var(--wp-admin-border-width-focus);
|
||||
inset:var(--wp-admin-border-width-focus);
|
||||
outline:2px solid #0000;
|
||||
position:absolute;
|
||||
right:var(--wp-admin-border-width-focus);
|
||||
top:var(--wp-admin-border-width-focus);
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__item .dataviews-view-list__primary-field{
|
||||
.dataviews-view-list .dataviews-view-list__primary-field{
|
||||
flex:1;
|
||||
line-height:24px;
|
||||
min-height:24px;
|
||||
overflow:hidden;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__primary-field:has(a,button){
|
||||
z-index:1;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__media-wrapper{
|
||||
background-color:#f0f0f0;
|
||||
border-radius:4px;
|
||||
|
@ -786,6 +783,7 @@ ul.dataviews-view-list{
|
|||
width:52px;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__field-wrapper{
|
||||
flex-grow:1;
|
||||
min-height:52px;
|
||||
}
|
||||
.dataviews-view-list .dataviews-view-list__fields{
|
||||
|
@ -2228,9 +2226,9 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{
|
||||
align-items:center;
|
||||
display:flex;
|
||||
height:64px;
|
||||
height:60px;
|
||||
justify-content:center;
|
||||
width:64px;
|
||||
width:60px;
|
||||
}
|
||||
|
||||
.edit-site-layout__actions{
|
||||
|
@ -2313,7 +2311,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
overflow-y:auto;
|
||||
}
|
||||
|
||||
@keyframes _ngjuq_slide-from-right{
|
||||
@keyframes _saugi_slide-from-right{
|
||||
0%{
|
||||
opacity:0;
|
||||
transform:translateX(50px);
|
||||
|
@ -2323,7 +2321,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
transform:none;
|
||||
}
|
||||
}
|
||||
@keyframes _ngjuq_slide-from-left{
|
||||
@keyframes _saugi_slide-from-left{
|
||||
0%{
|
||||
opacity:0;
|
||||
transform:translateX(-50px);
|
||||
|
@ -2379,10 +2377,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
}
|
||||
}
|
||||
.edit-site-sidebar__screen-wrapper.slide-from-left{
|
||||
animation-name:_ngjuq_slide-from-left;
|
||||
animation-name:_saugi_slide-from-left;
|
||||
}
|
||||
.edit-site-sidebar__screen-wrapper.slide-from-right{
|
||||
animation-name:_ngjuq_slide-from-right;
|
||||
animation-name:_saugi_slide-from-right;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-button{
|
||||
|
@ -2397,7 +2395,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
||||
outline:3px solid #0000;
|
||||
}
|
||||
.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{
|
||||
.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover:not(:disabled,[aria-disabled=true]),.edit-site-sidebar-button:not(:disabled,[aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{
|
||||
color:#f0f0f0;
|
||||
}
|
||||
|
||||
|
@ -2492,7 +2490,9 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
.edit-site-sidebar-navigation-screen__title{
|
||||
flex-grow:1;
|
||||
overflow-wrap:break-word;
|
||||
padding:2px 0 0;
|
||||
}
|
||||
.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title,.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title .edit-site-sidebar-navigation-screen__title{
|
||||
line-height:32px;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-navigation-screen__actions{
|
||||
|
@ -2650,6 +2650,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
align-items:center;
|
||||
display:flex;
|
||||
gap:8px;
|
||||
height:56px;
|
||||
justify-content:space-between;
|
||||
margin-right:12px;
|
||||
}
|
||||
|
@ -2673,6 +2674,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
|||
flex-grow:1;
|
||||
font-size:15px;
|
||||
font-weight:500;
|
||||
margin-left:-4px;
|
||||
overflow:hidden;
|
||||
padding-right:16px;
|
||||
position:relative;
|
||||
|
|
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
|
@ -35679,6 +35679,27 @@ function AccessibleMenuDescription({
|
|||
|
||||
|
||||
|
||||
function useResponsiveMenu(navRef) {
|
||||
const [isResponsiveMenuOpen, setResponsiveMenuVisibility] = (0,external_wp_element_namespaceObject.useState)(false);
|
||||
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
||||
if (!navRef.current) {
|
||||
return;
|
||||
}
|
||||
const htmlElement = navRef.current.ownerDocument.documentElement;
|
||||
|
||||
// Add a `has-modal-open` class to the <html> when the responsive
|
||||
// menu is open. This reproduces the same behavior of the frontend.
|
||||
if (isResponsiveMenuOpen) {
|
||||
htmlElement.classList.add('has-modal-open');
|
||||
} else {
|
||||
htmlElement.classList.remove('has-modal-open');
|
||||
}
|
||||
return () => {
|
||||
htmlElement?.classList.remove('has-modal-open');
|
||||
};
|
||||
}, [navRef, isResponsiveMenuOpen]);
|
||||
return [isResponsiveMenuOpen, setResponsiveMenuVisibility];
|
||||
}
|
||||
function ColorTools({
|
||||
textColor,
|
||||
setTextColor,
|
||||
|
@ -35838,7 +35859,8 @@ function Navigation({
|
|||
selectBlock,
|
||||
__unstableMarkNextChangeAsNotPersistent
|
||||
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
|
||||
const [isResponsiveMenuOpen, setResponsiveMenuVisibility] = (0,external_wp_element_namespaceObject.useState)(false);
|
||||
const navRef = (0,external_wp_element_namespaceObject.useRef)();
|
||||
const [isResponsiveMenuOpen, setResponsiveMenuVisibility] = useResponsiveMenu(navRef);
|
||||
const [overlayMenuPreview, setOverlayMenuPreview] = (0,external_wp_element_namespaceObject.useState)(false);
|
||||
const {
|
||||
hasResolvedNavigationMenus,
|
||||
|
@ -35901,7 +35923,6 @@ function Navigation({
|
|||
__unstableMarkNextChangeAsNotPersistent();
|
||||
setRef(navigationFallbackId);
|
||||
}, [ref, setRef, hasUnsavedBlocks, navigationFallbackId, __unstableMarkNextChangeAsNotPersistent]);
|
||||
const navRef = (0,external_wp_element_namespaceObject.useRef)();
|
||||
|
||||
// The standard HTML5 tag for the block wrapper.
|
||||
const TagName = 'nav';
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5972,7 +5972,6 @@ var private_actions_namespaceObject = {};
|
|||
__webpack_require__.r(private_actions_namespaceObject);
|
||||
__webpack_require__.d(private_actions_namespaceObject, {
|
||||
addBlockBindingsSource: () => (addBlockBindingsSource),
|
||||
addBootstrappedBlockBindingsSource: () => (addBootstrappedBlockBindingsSource),
|
||||
addBootstrappedBlockType: () => (addBootstrappedBlockType),
|
||||
addUnprocessedBlockType: () => (addUnprocessedBlockType),
|
||||
removeBlockBindingsSource: () => (removeBlockBindingsSource)
|
||||
|
@ -7561,11 +7560,14 @@ const registerBlockBindingsSource = source => {
|
|||
|
||||
/*
|
||||
* Check if the source has been already registered on the client.
|
||||
* If the `getValues` property is defined, it could be assumed the source is already registered.
|
||||
* If any property expected to be "client-only" is defined, return a warning.
|
||||
*/
|
||||
if (existingSource?.getValues) {
|
||||
true ? external_wp_warning_default()('Block bindings source "' + name + '" is already registered.') : 0;
|
||||
return;
|
||||
const serverProps = ['label', 'usesContext'];
|
||||
for (const prop in existingSource) {
|
||||
if (!serverProps.includes(prop) && existingSource[prop]) {
|
||||
true ? external_wp_warning_default()('Block bindings source "' + name + '" is already registered.') : 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Check the `name` property is correct.
|
||||
|
@ -7591,10 +7593,7 @@ const registerBlockBindingsSource = source => {
|
|||
}
|
||||
|
||||
// Check the `label` property is correct.
|
||||
if (label && existingSource?.label) {
|
||||
true ? external_wp_warning_default()('Block bindings "' + name + '" source label is already defined in the server.') : 0;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!label && !existingSource?.label) {
|
||||
true ? external_wp_warning_default()('Block bindings source must contain a label.') : 0;
|
||||
return;
|
||||
|
@ -7603,6 +7602,9 @@ const registerBlockBindingsSource = source => {
|
|||
true ? external_wp_warning_default()('Block bindings source label must be a string.') : 0;
|
||||
return;
|
||||
}
|
||||
if (label && existingSource?.label && label !== existingSource?.label) {
|
||||
true ? external_wp_warning_default()('Block bindings "' + name + '" source label was overriden.') : 0;
|
||||
}
|
||||
|
||||
// Check the `usesContext` property is correct.
|
||||
if (usesContext && !Array.isArray(usesContext)) {
|
||||
|
@ -8378,8 +8380,7 @@ function blockBindingsSources(state = {}, action) {
|
|||
return {
|
||||
...state,
|
||||
[action.name]: {
|
||||
// Don't override the label if it's already set.
|
||||
label: state[action.name]?.label || action.label,
|
||||
label: action.label || state[action.name]?.label,
|
||||
usesContext: getMergedUsesContext(state[action.name]?.usesContext, action.usesContext),
|
||||
getValues: action.getValues,
|
||||
setValues: action.setValues,
|
||||
|
@ -8388,19 +8389,6 @@ function blockBindingsSources(state = {}, action) {
|
|||
getFieldsList
|
||||
}
|
||||
};
|
||||
case 'ADD_BOOTSTRAPPED_BLOCK_BINDINGS_SOURCE':
|
||||
return {
|
||||
...state,
|
||||
[action.name]: {
|
||||
/*
|
||||
* Keep the exisitng properties in case the source has been registered
|
||||
* in the client before bootstrapping.
|
||||
*/
|
||||
...state[action.name],
|
||||
label: action.label,
|
||||
usesContext: getMergedUsesContext(state[action.name]?.usesContext, action.usesContext)
|
||||
}
|
||||
};
|
||||
case 'REMOVE_BLOCK_BINDINGS_SOURCE':
|
||||
return omit(state, action.name);
|
||||
}
|
||||
|
@ -10009,20 +9997,6 @@ function removeBlockBindingsSource(name) {
|
|||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Add bootstrapped block bindings sources, usually initialized from the server.
|
||||
*
|
||||
* @param {string} source Name of the source to bootstrap.
|
||||
*/
|
||||
function addBootstrappedBlockBindingsSource(source) {
|
||||
return {
|
||||
type: 'ADD_BOOTSTRAPPED_BLOCK_BINDINGS_SOURCE',
|
||||
name: source.name,
|
||||
label: source.label,
|
||||
usesContext: source.usesContext
|
||||
};
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/constants.js
|
||||
const STORE_NAME = 'core/blocks';
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -35640,6 +35640,13 @@ function UnforwardedToggleGroupControlAsRadioGroup({
|
|||
});
|
||||
const selectedValue = useStoreState(radio, 'value');
|
||||
const setValue = radio.setValue;
|
||||
|
||||
// Ensures that the active id is also reset after the value is "reset" by the consumer.
|
||||
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
||||
if (selectedValue === '') {
|
||||
radio.setActiveId(undefined);
|
||||
}
|
||||
}, [radio, selectedValue]);
|
||||
const groupContextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
|
||||
activeItemIsNotFirstItem: () => radio.getState().activeId !== radio.first(),
|
||||
baseId,
|
||||
|
@ -36164,9 +36171,11 @@ function ToggleGroupControlOptionBase(props, forwardedRef) {
|
|||
}) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Radio, {
|
||||
disabled: disabled,
|
||||
onFocusVisible: () => {
|
||||
const selectedValueIsEmpty = toggleGroupControlContext.value === null || toggleGroupControlContext.value === '';
|
||||
|
||||
// Conditions ensure that the first visible focus to a radio group
|
||||
// without a selected option will not automatically select the option.
|
||||
if (toggleGroupControlContext.value !== null || toggleGroupControlContext.activeItemIsNotFirstItem?.()) {
|
||||
if (!selectedValueIsEmpty || toggleGroupControlContext.activeItemIsNotFirstItem?.()) {
|
||||
toggleGroupControlContext.setValue(value);
|
||||
}
|
||||
},
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1036,7 +1036,7 @@ const initializeMetaBoxes = () => ({
|
|||
actions_metaBoxesInitialized = true;
|
||||
|
||||
// Save metaboxes on save completion, except for autosaves.
|
||||
(0,external_wp_hooks_namespaceObject.addAction)('editor.savePost', 'core/edit-post/save-metaboxes', async options => {
|
||||
(0,external_wp_hooks_namespaceObject.addAction)('editor.savePost', 'core/edit-post/save-metaboxes', async (post, options) => {
|
||||
if (!options.isAutosave && select.hasMetaBoxes()) {
|
||||
await dispatch.requestMetaBoxUpdates();
|
||||
}
|
||||
|
@ -2608,7 +2608,11 @@ function usePaddingAppender() {
|
|||
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
|
||||
return (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
|
||||
function onMouseDown(event) {
|
||||
if (event.target !== node) {
|
||||
if (event.target !== node &&
|
||||
// Tests for the parent element because in the iframed editor if the click is
|
||||
// below the padding the target will be the parent element (html) and should
|
||||
// still be treated as intent to append.
|
||||
event.target !== node.parentElement) {
|
||||
return;
|
||||
}
|
||||
const {
|
||||
|
@ -2631,7 +2635,7 @@ function usePaddingAppender() {
|
|||
if (event.clientY < lastChildRect.bottom) {
|
||||
return;
|
||||
}
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
const blockOrder = registry.select(external_wp_blockEditor_namespaceObject.store).getBlockOrder('');
|
||||
const lastBlockClientId = blockOrder[blockOrder.length - 1];
|
||||
const lastBlock = registry.select(external_wp_blockEditor_namespaceObject.store).getBlock(lastBlockClientId);
|
||||
|
@ -2645,9 +2649,14 @@ function usePaddingAppender() {
|
|||
insertDefaultBlock();
|
||||
}
|
||||
}
|
||||
node.addEventListener('mousedown', onMouseDown);
|
||||
const {
|
||||
ownerDocument
|
||||
} = node;
|
||||
// Adds the listener on the document so that in the iframed editor clicks below the
|
||||
// padding can be handled as they too should be treated as intent to append.
|
||||
ownerDocument.addEventListener('mousedown', onMouseDown);
|
||||
return () => {
|
||||
node.removeEventListener('mousedown', onMouseDown);
|
||||
ownerDocument.removeEventListener('mousedown', onMouseDown);
|
||||
};
|
||||
}, [registry]);
|
||||
}
|
||||
|
@ -3451,8 +3460,7 @@ function __experimentalPluginPostExcerpt() {
|
|||
|
||||
const {
|
||||
BackButton: __experimentalMainDashboardButton,
|
||||
registerCoreBlockBindingsSources,
|
||||
bootstrapBlockBindingsSourcesFromServer
|
||||
registerCoreBlockBindingsSources
|
||||
} = unlock(external_wp_editor_namespaceObject.privateApis);
|
||||
|
||||
/**
|
||||
|
@ -3504,7 +3512,6 @@ function initializeEditor(id, postType, postId, settings, initialEdits) {
|
|||
(0,external_wp_data_namespaceObject.dispatch)(external_wp_editor_namespaceObject.store).setIsListViewOpened(true);
|
||||
}
|
||||
(0,external_wp_blockLibrary_namespaceObject.registerCoreBlocks)();
|
||||
bootstrapBlockBindingsSourcesFromServer(settings?.blockBindingsSources);
|
||||
registerCoreBlockBindingsSources();
|
||||
(0,external_wp_widgets_namespaceObject.registerLegacyWidgetBlock)({
|
||||
inserter: false
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -8032,7 +8032,8 @@ const SiteHub = (0,external_wp_element_namespaceObject.memo)((0,external_wp_elem
|
|||
label: (0,external_wp_i18n_namespaceObject.__)('Go to the Dashboard'),
|
||||
className: "edit-site-layout__view-mode-toggle",
|
||||
style: {
|
||||
transform: 'scale(0.5)',
|
||||
transform: 'scale(0.5333) translateX(-4px)',
|
||||
// Offset to position the icon 12px from viewport edge
|
||||
borderRadius: 4
|
||||
},
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(site_icon, {
|
||||
|
@ -8058,7 +8059,7 @@ const SiteHub = (0,external_wp_element_namespaceObject.memo)((0,external_wp_elem
|
|||
expanded: false,
|
||||
className: "edit-site-site-hub__actions",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
__next40pxDefaultSize: true,
|
||||
size: "compact",
|
||||
className: "edit-site-site-hub_toggle-command-center",
|
||||
icon: library_search,
|
||||
onClick: () => openCommandCenter(),
|
||||
|
@ -10172,6 +10173,7 @@ function useEditModeCommands() {
|
|||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
@ -10364,8 +10366,14 @@ function useInitEditedEntityFromURL() {
|
|||
const {
|
||||
setEditedEntity
|
||||
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
|
||||
const {
|
||||
__unstableSetEditorMode,
|
||||
resetZoomLevel
|
||||
} = unlock((0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store));
|
||||
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
||||
if (isReady) {
|
||||
__unstableSetEditorMode('edit');
|
||||
resetZoomLevel();
|
||||
setEditedEntity(postType, postId, context);
|
||||
}
|
||||
}, [isReady, postType, postId, context, setEditedEntity]);
|
||||
|
@ -13137,6 +13145,24 @@ function FontSizes() {
|
|||
}
|
||||
/* harmony default export */ const font_sizes_count = (FontSizes);
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/settings.js
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
const settings_settings = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(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: "m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
|
||||
d: "m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"
|
||||
})]
|
||||
});
|
||||
/* harmony default export */ const library_settings = (settings_settings);
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-library-modal/resolvers.js
|
||||
/**
|
||||
* WordPress dependencies
|
||||
|
@ -19408,6 +19434,7 @@ function FontFamilyItem({
|
|||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
@ -19454,35 +19481,40 @@ function FontFamilies() {
|
|||
onRequestClose: () => setModalTabOpen(null),
|
||||
defaultTabId: modalTabOpen
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
|
||||
spacing: 4,
|
||||
children: [activeFonts.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
||||
spacing: 2,
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
justify: "space-between",
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(subtitle, {
|
||||
level: 3,
|
||||
children: (0,external_wp_i18n_namespaceObject.__)('Fonts')
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
onClick: () => setModalTabOpen('installed-fonts'),
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Manage fonts'),
|
||||
icon: library_settings,
|
||||
size: "small"
|
||||
})]
|
||||
}), activeFonts.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
|
||||
size: "large",
|
||||
isBordered: true,
|
||||
isSeparated: true,
|
||||
children: activeFonts.map(font => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_family_item, {
|
||||
font: font
|
||||
}, font.slug))
|
||||
})]
|
||||
}), !hasFonts && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(subtitle, {
|
||||
level: 3,
|
||||
children: (0,external_wp_i18n_namespaceObject.__)('Fonts')
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
|
||||
})
|
||||
}), !hasFonts && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
|
||||
as: "p",
|
||||
children: hasInstalledFonts ? (0,external_wp_i18n_namespaceObject.__)('No fonts activated.') : (0,external_wp_i18n_namespaceObject.__)('No fonts installed.')
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
className: "edit-site-global-styles-font-families__manage-fonts",
|
||||
variant: "secondary",
|
||||
__next40pxDefaultSize: true,
|
||||
onClick: () => {
|
||||
setModalTabOpen(hasInstalledFonts ? 'installed-fonts' : 'upload-fonts');
|
||||
},
|
||||
children: hasInstalledFonts ? (0,external_wp_i18n_namespaceObject.__)('Manage fonts') : (0,external_wp_i18n_namespaceObject.__)('Add fonts')
|
||||
})]
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
className: "edit-site-global-styles-font-families__manage-fonts",
|
||||
variant: "secondary",
|
||||
__next40pxDefaultSize: true,
|
||||
onClick: () => {
|
||||
setModalTabOpen(hasInstalledFonts ? 'installed-fonts' : 'upload-fonts');
|
||||
},
|
||||
children: hasInstalledFonts ? (0,external_wp_i18n_namespaceObject.__)('Manage fonts') : (0,external_wp_i18n_namespaceObject.__)('Add fonts')
|
||||
})]
|
||||
})]
|
||||
});
|
||||
|
@ -24145,6 +24177,7 @@ function useEditorTitle() {
|
|||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
@ -24272,6 +24305,10 @@ function EditSiteEditor({
|
|||
const {
|
||||
setCanvasMode
|
||||
} = unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
|
||||
const {
|
||||
__unstableSetEditorMode,
|
||||
resetZoomLevel
|
||||
} = unlock((0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store));
|
||||
const {
|
||||
createSuccessNotice
|
||||
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
|
||||
|
@ -24355,6 +24392,9 @@ function EditSiteEditor({
|
|||
tooltipPosition: "middle right",
|
||||
onClick: () => {
|
||||
setCanvasMode('view');
|
||||
__unstableSetEditorMode('edit');
|
||||
resetZoomLevel();
|
||||
|
||||
// TODO: this is a temporary solution to navigate to the posts list if we are
|
||||
// come here through `posts list` and are in focus mode editing a template, template part etc..
|
||||
if (isPostsList && params?.focusMode) {
|
||||
|
@ -32029,11 +32069,11 @@ function ListItem({
|
|||
const labelId = `${idPrefix}-label`;
|
||||
const descriptionId = `${idPrefix}-description`;
|
||||
const [isHovered, setIsHovered] = (0,external_wp_element_namespaceObject.useState)(false);
|
||||
const handleMouseEnter = () => {
|
||||
setIsHovered(true);
|
||||
};
|
||||
const handleMouseLeave = () => {
|
||||
setIsHovered(false);
|
||||
const handleHover = ({
|
||||
type
|
||||
}) => {
|
||||
const isHover = type === 'mouseenter';
|
||||
setIsHovered(isHover);
|
||||
};
|
||||
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
||||
if (isSelected) {
|
||||
|
@ -32065,6 +32105,35 @@ function ListItem({
|
|||
const renderedPrimaryField = primaryField?.render ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(primaryField.render, {
|
||||
item: item
|
||||
}) : null;
|
||||
const usedActions = eligibleActions?.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
spacing: 3,
|
||||
className: "dataviews-view-list__item-actions",
|
||||
children: [primaryAction && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrimaryActionGridCell, {
|
||||
idPrefix: idPrefix,
|
||||
primaryAction: primaryAction,
|
||||
item: item
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||
role: "gridcell",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenu, {
|
||||
trigger: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Composite.Item, {
|
||||
id: generateDropdownTriggerCompositeId(idPrefix),
|
||||
render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
size: "small",
|
||||
icon: more_vertical,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
|
||||
accessibleWhenDisabled: true,
|
||||
disabled: !actions.length,
|
||||
onKeyDown: onDropdownTriggerKeyDown
|
||||
})
|
||||
}),
|
||||
placement: "bottom-end",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionsDropdownMenuGroup, {
|
||||
actions: eligibleActions,
|
||||
item: item
|
||||
})
|
||||
})
|
||||
})]
|
||||
});
|
||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Composite.Row, {
|
||||
ref: itemRef,
|
||||
render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {}),
|
||||
|
@ -32073,89 +32142,55 @@ function ListItem({
|
|||
'is-selected': isSelected,
|
||||
'is-hovered': isHovered
|
||||
}),
|
||||
onMouseEnter: handleMouseEnter,
|
||||
onMouseLeave: handleMouseLeave,
|
||||
onMouseEnter: handleHover,
|
||||
onMouseLeave: handleHover,
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
className: "dataviews-view-list__item-wrapper",
|
||||
alignment: "center",
|
||||
spacing: 0,
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||
role: "gridcell",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Composite.Item, {
|
||||
render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {}),
|
||||
role: "button",
|
||||
id: generateItemWrapperCompositeId(idPrefix),
|
||||
"aria-pressed": isSelected,
|
||||
"aria-labelledby": labelId,
|
||||
"aria-describedby": descriptionId,
|
||||
className: "dataviews-view-list__item",
|
||||
onClick: () => onSelect(item),
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
spacing: 3,
|
||||
justify: "start",
|
||||
alignment: "flex-start",
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||
className: "dataviews-view-list__media-wrapper",
|
||||
children: renderedMediaField
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
|
||||
spacing: 1,
|
||||
className: "dataviews-view-list__field-wrapper",
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
|
||||
className: "dataviews-view-list__primary-field",
|
||||
id: labelId,
|
||||
children: renderedPrimaryField
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||
className: "dataviews-view-list__fields",
|
||||
id: descriptionId,
|
||||
children: visibleFields.map(field => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
||||
className: "dataviews-view-list__field",
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
|
||||
as: "span",
|
||||
className: "dataviews-view-list__field-label",
|
||||
children: field.label
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
|
||||
className: "dataviews-view-list__field-value",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(field.render, {
|
||||
item: item
|
||||
})
|
||||
})]
|
||||
}, field.id))
|
||||
})]
|
||||
})]
|
||||
})
|
||||
onClick: () => onSelect(item)
|
||||
})
|
||||
}), eligibleActions?.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
spacing: 3,
|
||||
justify: "flex-end",
|
||||
className: "dataviews-view-list__item-actions",
|
||||
style: {
|
||||
flexShrink: '0',
|
||||
width: 'auto'
|
||||
},
|
||||
children: [primaryAction && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrimaryActionGridCell, {
|
||||
idPrefix: idPrefix,
|
||||
primaryAction: primaryAction,
|
||||
item: item
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||
role: "gridcell",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenu, {
|
||||
trigger: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Composite.Item, {
|
||||
id: generateDropdownTriggerCompositeId(idPrefix),
|
||||
render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
size: "small",
|
||||
icon: more_vertical,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
|
||||
accessibleWhenDisabled: true,
|
||||
disabled: !actions.length,
|
||||
onKeyDown: onDropdownTriggerKeyDown
|
||||
})
|
||||
}),
|
||||
placement: "bottom-end",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionsDropdownMenuGroup, {
|
||||
actions: eligibleActions,
|
||||
item: item
|
||||
})
|
||||
})
|
||||
justify: "start",
|
||||
alignment: "flex-start",
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||
className: "dataviews-view-list__media-wrapper",
|
||||
children: renderedMediaField
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
|
||||
spacing: 1,
|
||||
className: "dataviews-view-list__field-wrapper",
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
spacing: 0,
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||
className: "dataviews-view-list__primary-field",
|
||||
id: labelId,
|
||||
children: renderedPrimaryField
|
||||
}), usedActions]
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||
className: "dataviews-view-list__fields",
|
||||
id: descriptionId,
|
||||
children: visibleFields.map(field => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
||||
className: "dataviews-view-list__field",
|
||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
|
||||
as: "span",
|
||||
className: "dataviews-view-list__field-label",
|
||||
children: field.label
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
|
||||
className: "dataviews-view-list__field-value",
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(field.render, {
|
||||
item: item
|
||||
})
|
||||
})]
|
||||
}, field.id))
|
||||
})]
|
||||
})]
|
||||
})]
|
||||
})
|
||||
|
@ -38411,7 +38446,7 @@ function PageTemplates() {
|
|||
|
||||
function SidebarButton(props) {
|
||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
__next40pxDefaultSize: true,
|
||||
size: "compact",
|
||||
...props,
|
||||
className: dist_clsx('edit-site-sidebar-button', props.className)
|
||||
});
|
||||
|
@ -41666,8 +41701,7 @@ function initializePostsDashboard(id, settings) {
|
|||
|
||||
|
||||
const {
|
||||
registerCoreBlockBindingsSources,
|
||||
bootstrapBlockBindingsSourcesFromServer
|
||||
registerCoreBlockBindingsSources
|
||||
} = unlock(external_wp_editor_namespaceObject.privateApis);
|
||||
|
||||
/**
|
||||
|
@ -41684,7 +41718,6 @@ function initializeEditor(id, settings) {
|
|||
name
|
||||
}) => name !== 'core/freeform');
|
||||
(0,external_wp_blockLibrary_namespaceObject.registerCoreBlocks)(coreBlocks);
|
||||
bootstrapBlockBindingsSourcesFromServer(settings?.blockBindingsSources);
|
||||
registerCoreBlockBindingsSources();
|
||||
(0,external_wp_data_namespaceObject.dispatch)(external_wp_blocks_namespaceObject.store).setFreeformFallbackBlockName('core/html');
|
||||
(0,external_wp_widgets_namespaceObject.registerLegacyWidgetBlock)({
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4449,7 +4449,9 @@ const savePost = (options = {}) => async ({
|
|||
}
|
||||
if (!error) {
|
||||
try {
|
||||
await (0,external_wp_hooks_namespaceObject.doActionAsync)('editor.savePost', options);
|
||||
await (0,external_wp_hooks_namespaceObject.doActionAsync)('editor.savePost', {
|
||||
id: previousRecord.id
|
||||
}, options);
|
||||
} catch (err) {
|
||||
error = err;
|
||||
}
|
||||
|
@ -24569,7 +24571,7 @@ const ExperimentalEditorProvider = with_registry_provider(({
|
|||
selection,
|
||||
isReady,
|
||||
mode,
|
||||
postTypes
|
||||
postTypeEntities
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
const {
|
||||
getEditorSettings,
|
||||
|
@ -24578,32 +24580,30 @@ const ExperimentalEditorProvider = with_registry_provider(({
|
|||
__unstableIsEditorReady
|
||||
} = select(store_store);
|
||||
const {
|
||||
getPostTypes
|
||||
getEntitiesConfig
|
||||
} = select(external_wp_coreData_namespaceObject.store);
|
||||
return {
|
||||
editorSettings: getEditorSettings(),
|
||||
isReady: __unstableIsEditorReady(),
|
||||
mode: getRenderingMode(),
|
||||
selection: getEditorSelection(),
|
||||
postTypes: getPostTypes({
|
||||
per_page: -1
|
||||
})
|
||||
postTypeEntities: post.type === 'wp_template' ? getEntitiesConfig('postType') : null
|
||||
};
|
||||
}, []);
|
||||
}, [post.type]);
|
||||
const shouldRenderTemplate = !!template && mode !== 'post-only';
|
||||
const rootLevelPost = shouldRenderTemplate ? template : post;
|
||||
const defaultBlockContext = (0,external_wp_element_namespaceObject.useMemo)(() => {
|
||||
const postContext = {};
|
||||
// If it is a template, try to inherit the post type from the slug.
|
||||
// If it is a template, try to inherit the post type from the name.
|
||||
if (post.type === 'wp_template') {
|
||||
if (post.slug === 'page') {
|
||||
postContext.postType = 'page';
|
||||
} else if (post.slug === 'single') {
|
||||
postContext.postType = 'post';
|
||||
} else if (post.slug.split('-')[0] === 'single') {
|
||||
// If the slug is single-{postType}, infer the post type from the slug.
|
||||
const postTypesSlugs = postTypes?.map(entity => entity.slug) || [];
|
||||
const match = post.slug.match(`^single-(${postTypesSlugs.join('|')})(?:-.+)?$`);
|
||||
// If the slug is single-{postType}, infer the post type from the name.
|
||||
const postTypeNames = postTypeEntities?.map(entity => entity.name) || [];
|
||||
const match = post.slug.match(`^single-(${postTypeNames.join('|')})(?:-.+)?$`);
|
||||
if (match) {
|
||||
postContext.postType = match[1];
|
||||
}
|
||||
|
@ -24616,7 +24616,7 @@ const ExperimentalEditorProvider = with_registry_provider(({
|
|||
...postContext,
|
||||
templateSlug: rootLevelPost.type === 'wp_template' ? rootLevelPost.slug : undefined
|
||||
};
|
||||
}, [shouldRenderTemplate, post.id, post.type, rootLevelPost.type, rootLevelPost.slug, postTypes]);
|
||||
}, [shouldRenderTemplate, post.id, post.type, post.slug, rootLevelPost.type, rootLevelPost.slug, postTypeEntities]);
|
||||
const {
|
||||
id,
|
||||
type
|
||||
|
@ -26197,7 +26197,9 @@ const square = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ext
|
|||
*/
|
||||
|
||||
|
||||
const ZoomOutToggle = () => {
|
||||
const ZoomOutToggle = ({
|
||||
disabled
|
||||
}) => {
|
||||
const {
|
||||
isZoomOut,
|
||||
showIconLabels
|
||||
|
@ -26219,6 +26221,8 @@ const ZoomOutToggle = () => {
|
|||
__unstableSetEditorMode(isZoomOut ? 'edit' : 'zoom-out');
|
||||
};
|
||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||
accessibleWhenDisabled: true,
|
||||
disabled: disabled,
|
||||
onClick: handleZoomOut,
|
||||
icon: library_square,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Toggle Zoom Out'),
|
||||
|
@ -26389,7 +26393,9 @@ function Header({
|
|||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostPreviewButton, {
|
||||
className: "editor-header__post-preview-button",
|
||||
forceIsAutosaveable: forceIsDirty
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostViewLink, {}), isEditorIframed && isWideViewport && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(zoom_out_toggle, {}), (isWideViewport || !showIconLabels) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pinned_items.Slot, {
|
||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostViewLink, {}), isEditorIframed && isWideViewport && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(zoom_out_toggle, {
|
||||
disabled: forceDisableBlockTools
|
||||
}), (isWideViewport || !showIconLabels) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pinned_items.Slot, {
|
||||
scope: "core"
|
||||
}), !customSaveButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_publish_button_or_toggle, {
|
||||
forceIsDirty: forceIsDirty,
|
||||
|
@ -26800,6 +26806,7 @@ function SavePublishPanels({
|
|||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
@ -26808,6 +26815,7 @@ function SavePublishPanels({
|
|||
|
||||
|
||||
|
||||
|
||||
function TextEditor({
|
||||
autoFocus = false
|
||||
}) {
|
||||
|
@ -26829,13 +26837,19 @@ function TextEditor({
|
|||
isRichEditingEnabled: getEditorSettings().richEditingEnabled
|
||||
};
|
||||
}, []);
|
||||
const {
|
||||
resetZoomLevel,
|
||||
__unstableSetEditorMode
|
||||
} = unlock((0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store));
|
||||
const titleRef = (0,external_wp_element_namespaceObject.useRef)();
|
||||
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
||||
resetZoomLevel();
|
||||
__unstableSetEditorMode('edit');
|
||||
if (autoFocus) {
|
||||
return;
|
||||
}
|
||||
titleRef?.current?.focus();
|
||||
}, [autoFocus]);
|
||||
}, [autoFocus, resetZoomLevel, __unstableSetEditorMode]);
|
||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
||||
className: "editor-text-editor",
|
||||
children: [isRichEditingEnabled && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
||||
|
@ -30019,7 +30033,8 @@ function getPostMetaFields(select, context) {
|
|||
value: // When using the entity value, an empty string IS a valid value.
|
||||
(_entityMetaValues$key = entityMetaValues?.[key]) !== null && _entityMetaValues$key !== void 0 ? _entityMetaValues$key :
|
||||
// When using the default, an empty string IS NOT a valid value.
|
||||
props.default || undefined
|
||||
props.default || undefined,
|
||||
type: props.type
|
||||
};
|
||||
}
|
||||
});
|
||||
|
@ -30116,14 +30131,12 @@ function getPostMetaFields(select, context) {
|
|||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Function to register core block bindings sources provided by the editor.
|
||||
*
|
||||
|
@ -30139,32 +30152,6 @@ function registerCoreBlockBindingsSources() {
|
|||
(0,external_wp_blocks_namespaceObject.registerBlockBindingsSource)(post_meta);
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to bootstrap core block bindings sources defined in the server.
|
||||
*
|
||||
* @param {Object} sources Object containing the sources to bootstrap.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* import { bootstrapBlockBindingsSourcesFromServer } from '@wordpress/editor';
|
||||
*
|
||||
* bootstrapBlockBindingsSourcesFromServer( sources );
|
||||
* ```
|
||||
*/
|
||||
function bootstrapBlockBindingsSourcesFromServer(sources) {
|
||||
if (sources) {
|
||||
const {
|
||||
addBootstrappedBlockBindingsSource
|
||||
} = unlock((0,external_wp_data_namespaceObject.dispatch)(external_wp_blocks_namespaceObject.store));
|
||||
for (const [name, args] of Object.entries(sources)) {
|
||||
addBootstrappedBlockBindingsSource({
|
||||
name,
|
||||
...args
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/private-apis.js
|
||||
/**
|
||||
* WordPress dependencies
|
||||
|
@ -30210,7 +30197,6 @@ lock(privateApis, {
|
|||
ViewMoreMenuGroup: view_more_menu_group,
|
||||
ResizableEditor: resizable_editor,
|
||||
registerCoreBlockBindingsSources: registerCoreBlockBindingsSources,
|
||||
bootstrapBlockBindingsSourcesFromServer: bootstrapBlockBindingsSourcesFromServer,
|
||||
// This is a temporary private API while we're updating the site editor to use EditorProvider.
|
||||
interfaceStore,
|
||||
...remainingInterfaceApis
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -979,7 +979,8 @@ const deepMergeRecursive = (target, source, override = true) => {
|
|||
if (isNew || override && !isPlainObject(target[key])) {
|
||||
target[key] = {};
|
||||
if (propSignal) {
|
||||
propSignal.setValue(target[key]);
|
||||
const ns = getNamespaceFromProxy(proxy);
|
||||
propSignal.setValue(proxifyState(ns, target[key]));
|
||||
}
|
||||
}
|
||||
if (isPlainObject(target[key])) {
|
||||
|
@ -988,7 +989,11 @@ const deepMergeRecursive = (target, source, override = true) => {
|
|||
} else if (override || isNew) {
|
||||
Object.defineProperty(target, key, desc);
|
||||
if (propSignal) {
|
||||
propSignal.setValue(desc.value);
|
||||
const {
|
||||
value
|
||||
} = desc;
|
||||
const ns = getNamespaceFromProxy(proxy);
|
||||
propSignal.setValue(shouldProxy(value) ? proxifyState(ns, value) : value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1043,7 +1043,8 @@ const deepMergeRecursive = (target, source, override = true) => {
|
|||
if (isNew || override && !isPlainObject(target[key])) {
|
||||
target[key] = {};
|
||||
if (propSignal) {
|
||||
propSignal.setValue(target[key]);
|
||||
const ns = getNamespaceFromProxy(proxy);
|
||||
propSignal.setValue(proxifyState(ns, target[key]));
|
||||
}
|
||||
}
|
||||
if (isPlainObject(target[key])) {
|
||||
|
@ -1052,7 +1053,11 @@ const deepMergeRecursive = (target, source, override = true) => {
|
|||
} else if (override || isNew) {
|
||||
Object.defineProperty(target, key, desc);
|
||||
if (propSignal) {
|
||||
propSignal.setValue(desc.value);
|
||||
const {
|
||||
value
|
||||
} = desc;
|
||||
const ns = getNamespaceFromProxy(proxy);
|
||||
propSignal.setValue(shouldProxy(value) ? proxifyState(ns, value) : value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.7-beta3-59262';
|
||||
$wp_version = '6.7-beta3-59263';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue