mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
Editor: Update Packages with the latest bug fixes for 6.5 RC 1
It includes all the backports from this Gutenberg PR https://github.com/WordPress/gutenberg/pull/59541/ Props get_dave, youknowriad, talldanwp. See #60315. Fixes #60665. Built from https://develop.svn.wordpress.org/trunk@57760 git-svn-id: http://core.svn.wordpress.org/trunk@57261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3dc3dc25e9
commit
bee0c1a172
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -20,11 +20,11 @@
|
||||
* @return mixed The value computed for the source.
|
||||
*/
|
||||
function _block_bindings_pattern_overrides_get_value( array $source_args, $block_instance, string $attribute_name ) {
|
||||
if ( empty( $block_instance->attributes['metadata']['id'] ) ) {
|
||||
if ( empty( $block_instance->attributes['metadata']['name'] ) ) {
|
||||
return null;
|
||||
}
|
||||
$block_id = $block_instance->attributes['metadata']['id'];
|
||||
return _wp_array_get( $block_instance->context, array( 'pattern/overrides', $block_id, 'values', $attribute_name ), null );
|
||||
$metadata_name = $block_instance->attributes['metadata']['name'];
|
||||
return _wp_array_get( $block_instance->context, array( 'pattern/overrides', $metadata_name, $attribute_name ), null );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -46,26 +46,35 @@ function render_block_core_block( $attributes ) {
|
||||
$content = $wp_embed->run_shortcode( $reusable_block->post_content );
|
||||
$content = $wp_embed->autoembed( $content );
|
||||
|
||||
// Back compat, the content attribute was previously named overrides and
|
||||
// had a slightly different format. For blocks that have not been migrated,
|
||||
// also convert the format here so that the provided `pattern/overrides`
|
||||
// context is correct.
|
||||
if ( isset( $attributes['overrides'] ) && ! isset( $attributes['content'] ) ) {
|
||||
$migrated_content = array();
|
||||
foreach ( $attributes['overrides'] as $id => $values ) {
|
||||
$migrated_content[ $id ] = array(
|
||||
'values' => $values,
|
||||
);
|
||||
// Back compat.
|
||||
// For blocks that have not been migrated in the editor, add some back compat
|
||||
// so that front-end rendering continues to work.
|
||||
|
||||
// This matches the `v2` deprecation. Removes the inner `values` property
|
||||
// from every item.
|
||||
if ( isset( $attributes['content'] ) ) {
|
||||
foreach ( $attributes['content'] as &$content_data ) {
|
||||
if ( isset( $content_data['values'] ) ) {
|
||||
$is_assoc_array = is_array( $content_data['values'] ) && ! wp_is_numeric_array( $content_data['values'] );
|
||||
|
||||
if ( $is_assoc_array ) {
|
||||
$content_data = $content_data['values'];
|
||||
}
|
||||
}
|
||||
}
|
||||
$attributes['content'] = $migrated_content;
|
||||
}
|
||||
$has_pattern_overrides = isset( $attributes['content'] );
|
||||
|
||||
// This matches the `v1` deprecation. Rename `overrides` to `content`.
|
||||
if ( isset( $attributes['overrides'] ) && ! isset( $attributes['content'] ) ) {
|
||||
$attributes['content'] = $attributes['overrides'];
|
||||
}
|
||||
|
||||
/**
|
||||
* We set the `pattern/overrides` context through the `render_block_context`
|
||||
* filter so that it is available when a pattern's inner blocks are
|
||||
* rendering via do_blocks given it only receives the inner content.
|
||||
*/
|
||||
$has_pattern_overrides = isset( $attributes['content'] );
|
||||
if ( $has_pattern_overrides ) {
|
||||
$filter_block_context = static function ( $context ) use ( $attributes ) {
|
||||
$context['pattern/overrides'] = $attributes['content'];
|
||||
|
@ -552,7 +552,7 @@ class WP_Navigation_Block_Renderer {
|
||||
return '';
|
||||
}
|
||||
// When adding to this array be mindful of security concerns.
|
||||
$nav_element_context = data_wp_context(
|
||||
$nav_element_context = wp_interactivity_data_wp_context(
|
||||
array(
|
||||
'overlayOpenedBy' => array(
|
||||
'click' => false,
|
||||
|
@ -179,7 +179,7 @@ function render_block_core_search( $attributes ) {
|
||||
if ( $is_expandable_searchfield ) {
|
||||
$aria_label_expanded = __( 'Submit Search' );
|
||||
$aria_label_collapsed = __( 'Expand search field' );
|
||||
$form_context = data_wp_context(
|
||||
$form_context = wp_interactivity_data_wp_context(
|
||||
array(
|
||||
'isSearchInputVisible' => $open_by_default,
|
||||
'inputId' => $input_id,
|
||||
|
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-right:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-right:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:right;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-left:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-left:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-right:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-right:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:right;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-left:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-left:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
|
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-left:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-left:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:left;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-right:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-right:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-left:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-left:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:left;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-right:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-right:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
|
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
File diff suppressed because one or more lines are too long
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
File diff suppressed because one or more lines are too long
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;line-height:1.5;--wp--style--block-gap:2em}p{line-height:1.8}.editor-post-title__block{font-size:2.5em;font-weight:800;margin-bottom:1em;margin-top:2em}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;line-height:1.5;--wp--style--block-gap:2em}p{line-height:1.8}.editor-post-title__block{font-size:2.5em;font-weight:800;margin-bottom:1em;margin-top:2em}
|
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;line-height:1.5;--wp--style--block-gap:2em}p{line-height:1.8}.editor-post-title__block{font-size:2.5em;font-weight:800;margin-bottom:1em;margin-top:2em}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;line-height:1.5;--wp--style--block-gap:2em}p{line-height:1.8}.editor-post-title__block{font-size:2.5em;font-weight:800;margin-bottom:1em;margin-top:2em}
|
29
wp-includes/css/dist/block-editor/style-rtl.css
vendored
29
wp-includes/css/dist/block-editor/style-rtl.css
vendored
@ -9,6 +9,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
@ -34,6 +35,20 @@
|
||||
margin-top:0;
|
||||
}
|
||||
|
||||
.block-editor-block-bindings-toolbar-indicator{
|
||||
align-items:center;
|
||||
display:inline-flex;
|
||||
height:48px;
|
||||
padding:6px;
|
||||
}
|
||||
.block-editor-block-bindings-toolbar-indicator svg g{
|
||||
stroke:var(--wp-bound-block-color);
|
||||
fill:#0000;
|
||||
stroke-width:1.5;
|
||||
stroke-linecap:round;
|
||||
stroke-linejoin:round;
|
||||
}
|
||||
|
||||
iframe[name=editor-canvas]{
|
||||
display:block;
|
||||
height:100%;
|
||||
@ -2480,7 +2495,19 @@ iframe[name=editor-canvas].has-editor-padding{
|
||||
color:#fff;
|
||||
}
|
||||
|
||||
.list-view-appender__description,.modal-open .block-editor-media-replace-flow__options{
|
||||
.list-view-appender__description{
|
||||
display:none;
|
||||
}
|
||||
|
||||
.block-editor-list-view-block-select-button__bindings svg g{
|
||||
stroke:var(--wp-bound-block-color);
|
||||
fill:#0000;
|
||||
stroke-width:1.5;
|
||||
stroke-linecap:round;
|
||||
stroke-linejoin:round;
|
||||
}
|
||||
|
||||
.modal-open .block-editor-media-replace-flow__options{
|
||||
display:none;
|
||||
}
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
29
wp-includes/css/dist/block-editor/style.css
vendored
29
wp-includes/css/dist/block-editor/style.css
vendored
@ -9,6 +9,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
@ -34,6 +35,20 @@
|
||||
margin-top:0;
|
||||
}
|
||||
|
||||
.block-editor-block-bindings-toolbar-indicator{
|
||||
align-items:center;
|
||||
display:inline-flex;
|
||||
height:48px;
|
||||
padding:6px;
|
||||
}
|
||||
.block-editor-block-bindings-toolbar-indicator svg g{
|
||||
stroke:var(--wp-bound-block-color);
|
||||
fill:#0000;
|
||||
stroke-width:1.5;
|
||||
stroke-linecap:round;
|
||||
stroke-linejoin:round;
|
||||
}
|
||||
|
||||
iframe[name=editor-canvas]{
|
||||
display:block;
|
||||
height:100%;
|
||||
@ -2480,7 +2495,19 @@ iframe[name=editor-canvas].has-editor-padding{
|
||||
color:#fff;
|
||||
}
|
||||
|
||||
.list-view-appender__description,.modal-open .block-editor-media-replace-flow__options{
|
||||
.list-view-appender__description{
|
||||
display:none;
|
||||
}
|
||||
|
||||
.block-editor-list-view-block-select-button__bindings svg g{
|
||||
stroke:var(--wp-bound-block-color);
|
||||
fill:#0000;
|
||||
stroke-width:1.5;
|
||||
stroke-linecap:round;
|
||||
stroke-linejoin:round;
|
||||
}
|
||||
|
||||
.modal-open .block-editor-media-replace-flow__options{
|
||||
display:none;
|
||||
}
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;line-height:normal;padding:15px 23px 14px;right:5px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-left-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-right-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-left-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-right-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;line-height:normal;padding:15px 23px 14px;right:5px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-left-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-right-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-left-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-right-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
|
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
|
1
wp-includes/css/dist/commands/style-rtl.css
vendored
1
wp-includes/css/dist/commands/style-rtl.css
vendored
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.commands-command-menu{border-radius:4px;margin:auto;max-width:420px;position:relative;top:calc(15% + 60px);width:calc(100% - 32px)}@media (min-width:600px){.commands-command-menu{top:15%}}.commands-command-menu .components-modal__content{margin:0;padding:0}.commands-command-menu__overlay{align-items:start;display:block}.commands-command-menu__header{align-items:center;display:flex;padding-right:16px}.commands-command-menu__header .components-button{border:1px solid #949494;border-left:0;border-radius:0 2px 2px 0;height:56px;justify-content:center;width:56px}.commands-command-menu__header .components-button+[cmdk-input]{border-bottom-right-radius:0;border-top-right-radius:0}.commands-command-menu__container{will-change:transform}.commands-command-menu__container [cmdk-input]{border:none;border-radius:0;color:#1e1e1e;font-size:16px;line-height:28px;margin:0;outline:none;padding:16px 8px 16px 16px;width:100%}.commands-command-menu__container [cmdk-input]::placeholder{color:#757575}.commands-command-menu__container [cmdk-input]:focus{box-shadow:none;outline:none}.commands-command-menu__container [cmdk-item]{align-items:center;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;font-size:13px;min-height:40px}.commands-command-menu__container [cmdk-item]:active,.commands-command-menu__container [cmdk-item][aria-selected=true]{background:var(--wp-admin-theme-color);color:#fff}.commands-command-menu__container [cmdk-item]:active svg,.commands-command-menu__container [cmdk-item][aria-selected=true] svg{fill:#fff}.commands-command-menu__container [cmdk-item][aria-disabled=true]{color:#949494;cursor:not-allowed}.commands-command-menu__container [cmdk-item] svg{fill:#1e1e1e}.commands-command-menu__container [cmdk-item]>div{padding:8px 40px 8px 8px}.commands-command-menu__container [cmdk-item]>.has-icon{padding-right:8px}.commands-command-menu__container [cmdk-root]>[cmdk-list]{max-height:368px;overflow:auto}.commands-command-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]>[cmdk-group-items]:not(:empty){padding:0 8px 8px}.commands-command-menu__container [cmdk-empty]{align-items:center;color:#1e1e1e;display:flex;justify-content:center;padding:8px 0 32px;white-space:pre-wrap}.commands-command-menu__container [cmdk-loading]{padding:16px}.commands-command-menu__container [cmdk-list-sizer]{position:relative}.commands-command-menu__item span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.commands-command-menu__item mark{background:unset;color:inherit;font-weight:600}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.commands-command-menu{border-radius:4px;margin:auto;max-width:420px;position:relative;top:calc(15% + 60px);width:calc(100% - 32px)}@media (min-width:600px){.commands-command-menu{top:15%}}.commands-command-menu .components-modal__content{margin:0;padding:0}.commands-command-menu__overlay{align-items:start;display:block}.commands-command-menu__header{align-items:center;display:flex;padding-right:16px}.commands-command-menu__header .components-button{border:1px solid #949494;border-left:0;border-radius:0 2px 2px 0;height:56px;justify-content:center;width:56px}.commands-command-menu__header .components-button+[cmdk-input]{border-bottom-right-radius:0;border-top-right-radius:0}.commands-command-menu__container{will-change:transform}.commands-command-menu__container [cmdk-input]{border:none;border-radius:0;color:#1e1e1e;font-size:16px;line-height:28px;margin:0;outline:none;padding:16px 8px 16px 16px;width:100%}.commands-command-menu__container [cmdk-input]::placeholder{color:#757575}.commands-command-menu__container [cmdk-input]:focus{box-shadow:none;outline:none}.commands-command-menu__container [cmdk-item]{align-items:center;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;font-size:13px;min-height:40px}.commands-command-menu__container [cmdk-item]:active,.commands-command-menu__container [cmdk-item][aria-selected=true]{background:var(--wp-admin-theme-color);color:#fff}.commands-command-menu__container [cmdk-item]:active svg,.commands-command-menu__container [cmdk-item][aria-selected=true] svg{fill:#fff}.commands-command-menu__container [cmdk-item][aria-disabled=true]{color:#949494;cursor:not-allowed}.commands-command-menu__container [cmdk-item] svg{fill:#1e1e1e}.commands-command-menu__container [cmdk-item]>div{padding:8px 40px 8px 8px}.commands-command-menu__container [cmdk-item]>.has-icon{padding-right:8px}.commands-command-menu__container [cmdk-root]>[cmdk-list]{max-height:368px;overflow:auto}.commands-command-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]>[cmdk-group-items]:not(:empty){padding:0 8px 8px}.commands-command-menu__container [cmdk-empty]{align-items:center;color:#1e1e1e;display:flex;justify-content:center;padding:8px 0 32px;white-space:pre-wrap}.commands-command-menu__container [cmdk-loading]{padding:16px}.commands-command-menu__container [cmdk-list-sizer]{position:relative}.commands-command-menu__item span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.commands-command-menu__item mark{background:unset;color:inherit;font-weight:600}
|
1
wp-includes/css/dist/commands/style.css
vendored
1
wp-includes/css/dist/commands/style.css
vendored
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
2
wp-includes/css/dist/commands/style.min.css
vendored
2
wp-includes/css/dist/commands/style.min.css
vendored
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.commands-command-menu{border-radius:4px;margin:auto;max-width:420px;position:relative;top:calc(15% + 60px);width:calc(100% - 32px)}@media (min-width:600px){.commands-command-menu{top:15%}}.commands-command-menu .components-modal__content{margin:0;padding:0}.commands-command-menu__overlay{align-items:start;display:block}.commands-command-menu__header{align-items:center;display:flex;padding-left:16px}.commands-command-menu__header .components-button{border:1px solid #949494;border-radius:2px 0 0 2px;border-right:0;height:56px;justify-content:center;width:56px}.commands-command-menu__header .components-button+[cmdk-input]{border-bottom-left-radius:0;border-top-left-radius:0}.commands-command-menu__container{will-change:transform}.commands-command-menu__container [cmdk-input]{border:none;border-radius:0;color:#1e1e1e;font-size:16px;line-height:28px;margin:0;outline:none;padding:16px 16px 16px 8px;width:100%}.commands-command-menu__container [cmdk-input]::placeholder{color:#757575}.commands-command-menu__container [cmdk-input]:focus{box-shadow:none;outline:none}.commands-command-menu__container [cmdk-item]{align-items:center;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;font-size:13px;min-height:40px}.commands-command-menu__container [cmdk-item]:active,.commands-command-menu__container [cmdk-item][aria-selected=true]{background:var(--wp-admin-theme-color);color:#fff}.commands-command-menu__container [cmdk-item]:active svg,.commands-command-menu__container [cmdk-item][aria-selected=true] svg{fill:#fff}.commands-command-menu__container [cmdk-item][aria-disabled=true]{color:#949494;cursor:not-allowed}.commands-command-menu__container [cmdk-item] svg{fill:#1e1e1e}.commands-command-menu__container [cmdk-item]>div{padding:8px 8px 8px 40px}.commands-command-menu__container [cmdk-item]>.has-icon{padding-left:8px}.commands-command-menu__container [cmdk-root]>[cmdk-list]{max-height:368px;overflow:auto}.commands-command-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]>[cmdk-group-items]:not(:empty){padding:0 8px 8px}.commands-command-menu__container [cmdk-empty]{align-items:center;color:#1e1e1e;display:flex;justify-content:center;padding:8px 0 32px;white-space:pre-wrap}.commands-command-menu__container [cmdk-loading]{padding:16px}.commands-command-menu__container [cmdk-list-sizer]{position:relative}.commands-command-menu__item span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.commands-command-menu__item mark{background:unset;color:inherit;font-weight:600}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.commands-command-menu{border-radius:4px;margin:auto;max-width:420px;position:relative;top:calc(15% + 60px);width:calc(100% - 32px)}@media (min-width:600px){.commands-command-menu{top:15%}}.commands-command-menu .components-modal__content{margin:0;padding:0}.commands-command-menu__overlay{align-items:start;display:block}.commands-command-menu__header{align-items:center;display:flex;padding-left:16px}.commands-command-menu__header .components-button{border:1px solid #949494;border-radius:2px 0 0 2px;border-right:0;height:56px;justify-content:center;width:56px}.commands-command-menu__header .components-button+[cmdk-input]{border-bottom-left-radius:0;border-top-left-radius:0}.commands-command-menu__container{will-change:transform}.commands-command-menu__container [cmdk-input]{border:none;border-radius:0;color:#1e1e1e;font-size:16px;line-height:28px;margin:0;outline:none;padding:16px 16px 16px 8px;width:100%}.commands-command-menu__container [cmdk-input]::placeholder{color:#757575}.commands-command-menu__container [cmdk-input]:focus{box-shadow:none;outline:none}.commands-command-menu__container [cmdk-item]{align-items:center;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;font-size:13px;min-height:40px}.commands-command-menu__container [cmdk-item]:active,.commands-command-menu__container [cmdk-item][aria-selected=true]{background:var(--wp-admin-theme-color);color:#fff}.commands-command-menu__container [cmdk-item]:active svg,.commands-command-menu__container [cmdk-item][aria-selected=true] svg{fill:#fff}.commands-command-menu__container [cmdk-item][aria-disabled=true]{color:#949494;cursor:not-allowed}.commands-command-menu__container [cmdk-item] svg{fill:#1e1e1e}.commands-command-menu__container [cmdk-item]>div{padding:8px 8px 8px 40px}.commands-command-menu__container [cmdk-item]>.has-icon{padding-left:8px}.commands-command-menu__container [cmdk-root]>[cmdk-list]{max-height:368px;overflow:auto}.commands-command-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]>[cmdk-group-items]:not(:empty){padding:0 8px 8px}.commands-command-menu__container [cmdk-empty]{align-items:center;color:#1e1e1e;display:flex;justify-content:center;padding:8px 0 32px;white-space:pre-wrap}.commands-command-menu__container [cmdk-loading]{padding:16px}.commands-command-menu__container [cmdk-list-sizer]{position:relative}.commands-command-menu__item span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.commands-command-menu__item mark{background:unset;color:inherit;font-weight:600}
|
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
File diff suppressed because one or more lines are too long
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
File diff suppressed because one or more lines are too long
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.editor-styles-wrapper .wp-block{margin-left:auto;margin-right:auto}html :where(.editor-styles-wrapper){padding:8px}html :where(.editor-styles-wrapper) .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-8px;margin-right:-8px}html :where(.wp-block){margin-bottom:28px;margin-top:28px;max-width:840px}html :where(.wp-block)[data-align=wide]{max-width:1100px}html :where(.wp-block)[data-align=full]{max-width:none}html :where(.wp-block)[data-align=left],html :where(.wp-block)[data-align=right]{height:0;width:100%}html :where(.wp-block)[data-align=left]:before,html :where(.wp-block)[data-align=right]:before{content:none}html :where(.wp-block)[data-align=left]>*{float:left;margin-right:2em}html :where(.wp-block)[data-align=right]>*{float:right;margin-left:2em}html :where(.wp-block)[data-align=full],html :where(.wp-block)[data-align=wide]{clear:both}.wp-block-group>[data-align=full]{margin-left:auto;margin-right:auto}.wp-block-group.has-background>[data-align=full]{margin-right:-30px;width:calc(100% + 60px)}[data-align=full] .wp-block-group>.wp-block{padding-left:14px;padding-right:14px}@media (min-width:600px){[data-align=full] .wp-block-group>.wp-block{padding-left:0;padding-right:0}}[data-align=full] .wp-block-group>[data-align=full]{max-width:none;padding-left:0;padding-right:0;right:0;width:100%}[data-align=full] .wp-block-group.has-background>[data-align=full]{width:calc(100% + 60px)}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.editor-styles-wrapper .wp-block{margin-left:auto;margin-right:auto}html :where(.editor-styles-wrapper){padding:8px}html :where(.editor-styles-wrapper) .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-8px;margin-right:-8px}html :where(.wp-block){margin-bottom:28px;margin-top:28px;max-width:840px}html :where(.wp-block)[data-align=wide]{max-width:1100px}html :where(.wp-block)[data-align=full]{max-width:none}html :where(.wp-block)[data-align=left],html :where(.wp-block)[data-align=right]{height:0;width:100%}html :where(.wp-block)[data-align=left]:before,html :where(.wp-block)[data-align=right]:before{content:none}html :where(.wp-block)[data-align=left]>*{float:left;margin-right:2em}html :where(.wp-block)[data-align=right]>*{float:right;margin-left:2em}html :where(.wp-block)[data-align=full],html :where(.wp-block)[data-align=wide]{clear:both}.wp-block-group>[data-align=full]{margin-left:auto;margin-right:auto}.wp-block-group.has-background>[data-align=full]{margin-right:-30px;width:calc(100% + 60px)}[data-align=full] .wp-block-group>.wp-block{padding-left:14px;padding-right:14px}@media (min-width:600px){[data-align=full] .wp-block-group>.wp-block{padding-left:0;padding-right:0}}[data-align=full] .wp-block-group>[data-align=full]{max-width:none;padding-left:0;padding-right:0;right:0;width:100%}[data-align=full] .wp-block-group.has-background>[data-align=full]{width:calc(100% + 60px)}
|
1
wp-includes/css/dist/edit-post/classic.css
vendored
1
wp-includes/css/dist/edit-post/classic.css
vendored
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1,4 +1,4 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.editor-styles-wrapper .wp-block{margin-left:auto;margin-right:auto}html :where(.editor-styles-wrapper){padding:8px}html :where(.editor-styles-wrapper) .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-8px;margin-right:-8px}html :where(.wp-block){margin-bottom:28px;margin-top:28px;max-width:840px}html :where(.wp-block)[data-align=wide]{max-width:1100px}html :where(.wp-block)[data-align=full]{max-width:none}html :where(.wp-block)[data-align=left],html :where(.wp-block)[data-align=right]{height:0;width:100%}html :where(.wp-block)[data-align=left]:before,html :where(.wp-block)[data-align=right]:before{content:none}html :where(.wp-block)[data-align=left]>*{
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.editor-styles-wrapper .wp-block{margin-left:auto;margin-right:auto}html :where(.editor-styles-wrapper){padding:8px}html :where(.editor-styles-wrapper) .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-8px;margin-right:-8px}html :where(.wp-block){margin-bottom:28px;margin-top:28px;max-width:840px}html :where(.wp-block)[data-align=wide]{max-width:1100px}html :where(.wp-block)[data-align=full]{max-width:none}html :where(.wp-block)[data-align=left],html :where(.wp-block)[data-align=right]{height:0;width:100%}html :where(.wp-block)[data-align=left]:before,html :where(.wp-block)[data-align=right]:before{content:none}html :where(.wp-block)[data-align=left]>*{
|
||||
/*!rtl:begin:ignore*/float:left;margin-right:2em
|
||||
/*!rtl:end:ignore*/}html :where(.wp-block)[data-align=right]>*{
|
||||
/*!rtl:begin:ignore*/float:right;margin-left:2em
|
||||
|
1
wp-includes/css/dist/edit-post/style-rtl.css
vendored
1
wp-includes/css/dist/edit-post/style-rtl.css
vendored
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
File diff suppressed because one or more lines are too long
1
wp-includes/css/dist/edit-post/style.css
vendored
1
wp-includes/css/dist/edit-post/style.css
vendored
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
2
wp-includes/css/dist/edit-post/style.min.css
vendored
2
wp-includes/css/dist/edit-post/style.min.css
vendored
File diff suppressed because one or more lines are too long
7
wp-includes/css/dist/edit-site/style-rtl.css
vendored
7
wp-includes/css/dist/edit-site/style-rtl.css
vendored
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
@ -554,7 +555,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
||||
display:block;
|
||||
font-size:13px;
|
||||
font-weight:500;
|
||||
overflow:hidden;
|
||||
text-overflow:ellipsis;
|
||||
white-space:nowrap;
|
||||
width:100%;
|
||||
@ -571,6 +571,11 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
||||
.dataviews-view-grid__primary-field a:hover,.dataviews-view-list__primary-field a:hover,.dataviews-view-table__primary-field a:hover{
|
||||
color:#1e1e1e;
|
||||
}
|
||||
.dataviews-view-grid__primary-field a:focus,.dataviews-view-list__primary-field a:focus,.dataviews-view-table__primary-field a:focus{
|
||||
border-radius:2px;
|
||||
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color, #007cba);
|
||||
color:var(--wp-admin-theme-color--rgb);
|
||||
}
|
||||
.dataviews-view-grid__primary-field button.components-button.is-link,.dataviews-view-list__primary-field button.components-button.is-link,.dataviews-view-table__primary-field button.components-button.is-link{
|
||||
color:inherit;
|
||||
display:block;
|
||||
|
File diff suppressed because one or more lines are too long
7
wp-includes/css/dist/edit-site/style.css
vendored
7
wp-includes/css/dist/edit-site/style.css
vendored
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
@ -554,7 +555,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
||||
display:block;
|
||||
font-size:13px;
|
||||
font-weight:500;
|
||||
overflow:hidden;
|
||||
text-overflow:ellipsis;
|
||||
white-space:nowrap;
|
||||
width:100%;
|
||||
@ -571,6 +571,11 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
||||
.dataviews-view-grid__primary-field a:hover,.dataviews-view-list__primary-field a:hover,.dataviews-view-table__primary-field a:hover{
|
||||
color:#1e1e1e;
|
||||
}
|
||||
.dataviews-view-grid__primary-field a:focus,.dataviews-view-list__primary-field a:focus,.dataviews-view-table__primary-field a:focus{
|
||||
border-radius:2px;
|
||||
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color, #007cba);
|
||||
color:var(--wp-admin-theme-color--rgb);
|
||||
}
|
||||
.dataviews-view-grid__primary-field button.components-button.is-link,.dataviews-view-list__primary-field button.components-button.is-link,.dataviews-view-table__primary-field button.components-button.is-link{
|
||||
color:inherit;
|
||||
display:block;
|
||||
|
2
wp-includes/css/dist/edit-site/style.min.css
vendored
2
wp-includes/css/dist/edit-site/style.min.css
vendored
File diff suppressed because one or more lines are too long
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
File diff suppressed because one or more lines are too long
1
wp-includes/css/dist/edit-widgets/style.css
vendored
1
wp-includes/css/dist/edit-widgets/style.css
vendored
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
File diff suppressed because one or more lines are too long
1
wp-includes/css/dist/editor/style-rtl.css
vendored
1
wp-includes/css/dist/editor/style-rtl.css
vendored
@ -9,6 +9,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
File diff suppressed because one or more lines are too long
1
wp-includes/css/dist/editor/style.css
vendored
1
wp-includes/css/dist/editor/style.css
vendored
@ -9,6 +9,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
2
wp-includes/css/dist/editor/style.min.css
vendored
2
wp-includes/css/dist/editor/style.min.css
vendored
File diff suppressed because one or more lines are too long
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-format-toolbar__image-popover{z-index:159990}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-value{margin:7px;max-width:500px;min-width:150px}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-button{height:30px;margin-bottom:8px;margin-left:8px}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{flex-grow:1;flex-shrink:1;margin:7px;max-width:500px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#cc1818}.format-library__inline-color-popover [role=tabpanel]{padding:16px}.block-editor-format-toolbar__language-popover .components-popover__content{padding:1rem;width:auto}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-format-toolbar__image-popover{z-index:159990}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-value{margin:7px;max-width:500px;min-width:150px}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-button{height:30px;margin-bottom:8px;margin-left:8px}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{flex-grow:1;flex-shrink:1;margin:7px;max-width:500px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#cc1818}.format-library__inline-color-popover [role=tabpanel]{padding:16px}.block-editor-format-toolbar__language-popover .components-popover__content{padding:1rem;width:auto}
|
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-format-toolbar__image-popover{z-index:159990}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-value{margin:7px;max-width:500px;min-width:150px}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-button{height:30px;margin-bottom:8px;margin-right:8px}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{flex-grow:1;flex-shrink:1;margin:7px;max-width:500px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#cc1818}.format-library__inline-color-popover [role=tabpanel]{padding:16px}.block-editor-format-toolbar__language-popover .components-popover__content{padding:1rem;width:auto}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-format-toolbar__image-popover{z-index:159990}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-value{margin:7px;max-width:500px;min-width:150px}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-button{height:30px;margin-bottom:8px;margin-right:8px}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{flex-grow:1;flex-shrink:1;margin:7px;max-width:500px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#cc1818}.format-library__inline-color-popover [role=tabpanel]{padding:16px}.block-editor-format-toolbar__language-popover .components-popover__content{padding:1rem;width:auto}
|
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.list-reusable-blocks-import-dropdown__content .components-popover__content{padding:10px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{float:left;margin-bottom:10px;margin-top:10px}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks-import-form .components-notice.is-dismissible{margin:5px 0;padding-left:0}.list-reusable-blocks__container{align-items:center;display:inline-flex;position:relative;top:-3px}.list-reusable-blocks__container .components-button{height:26px}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.list-reusable-blocks-import-dropdown__content .components-popover__content{padding:10px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{float:left;margin-bottom:10px;margin-top:10px}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks-import-form .components-notice.is-dismissible{margin:5px 0;padding-left:0}.list-reusable-blocks__container{align-items:center;display:inline-flex;position:relative;top:-3px}.list-reusable-blocks__container .components-button{height:26px}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
|
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.list-reusable-blocks-import-dropdown__content .components-popover__content{padding:10px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{float:right;margin-bottom:10px;margin-top:10px}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks-import-form .components-notice.is-dismissible{margin:5px 0;padding-right:0}.list-reusable-blocks__container{align-items:center;display:inline-flex;position:relative;top:-3px}.list-reusable-blocks__container .components-button{height:26px}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.list-reusable-blocks-import-dropdown__content .components-popover__content{padding:10px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{float:right;margin-bottom:10px;margin-top:10px}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks-import-form .components-notice.is-dismissible{margin:5px 0;padding-right:0}.list-reusable-blocks__container{align-items:center;display:inline-flex;position:relative;top:-3px}.list-reusable-blocks__container .components-button{height:26px}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
|
1
wp-includes/css/dist/nux/style-rtl.css
vendored
1
wp-includes/css/dist/nux/style-rtl.css
vendored
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
2
wp-includes/css/dist/nux/style-rtl.min.css
vendored
2
wp-includes/css/dist/nux/style-rtl.min.css
vendored
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.nux-dot-tip:after,.nux-dot-tip:before{border-radius:100%;content:" ";pointer-events:none;position:absolute}.nux-dot-tip:before{animation:nux-pulse 1.6s cubic-bezier(.17,.67,.92,.62) infinite;background:#00739ce6;height:24px;opacity:.9;right:-12px;top:-12px;transform:scale(.3333333333);width:24px}.nux-dot-tip:after{background:#00739c;height:8px;right:-4px;top:-4px;width:8px}@keyframes nux-pulse{to{background:#00739c00;transform:scale(1)}}.nux-dot-tip .components-popover__content{padding:20px 18px;width:350px}@media (min-width:600px){.nux-dot-tip .components-popover__content{width:450px}}.nux-dot-tip .components-popover__content .nux-dot-tip__disable{left:0;position:absolute;top:0}.nux-dot-tip[data-y-axis=top]{margin-top:-4px}.nux-dot-tip[data-y-axis=bottom]{margin-top:4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left]{margin-right:-4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right]{margin-right:4px}.nux-dot-tip[data-y-axis=top] .components-popover__content{margin-bottom:20px}.nux-dot-tip[data-y-axis=bottom] .components-popover__content{margin-top:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left] .components-popover__content{margin-left:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right] .components-popover__content{margin-right:20px}.nux-dot-tip[data-y-axis=center],.nux-dot-tip[data-y-axis=left],.nux-dot-tip[data-y-axis=right]{z-index:1000001}@media (max-width:600px){.nux-dot-tip[data-y-axis=center] .components-popover__content,.nux-dot-tip[data-y-axis=left] .components-popover__content,.nux-dot-tip[data-y-axis=right] .components-popover__content{align-self:end;left:5px;margin:20px 0 0;max-width:none!important;position:fixed;right:5px;width:auto}}.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{margin-left:0}.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=left] .components-popover__content{margin-right:0}.nux-dot-tip.components-popover.interface-more-menu-dropdown__content:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{margin-left:-12px}.nux-dot-tip.components-popover.interface-more-menu-dropdown__content:not([data-y-axis=middle])[data-y-axis=left] .components-popover__content{margin-right:-12px}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.nux-dot-tip:after,.nux-dot-tip:before{border-radius:100%;content:" ";pointer-events:none;position:absolute}.nux-dot-tip:before{animation:nux-pulse 1.6s cubic-bezier(.17,.67,.92,.62) infinite;background:#00739ce6;height:24px;opacity:.9;right:-12px;top:-12px;transform:scale(.3333333333);width:24px}.nux-dot-tip:after{background:#00739c;height:8px;right:-4px;top:-4px;width:8px}@keyframes nux-pulse{to{background:#00739c00;transform:scale(1)}}.nux-dot-tip .components-popover__content{padding:20px 18px;width:350px}@media (min-width:600px){.nux-dot-tip .components-popover__content{width:450px}}.nux-dot-tip .components-popover__content .nux-dot-tip__disable{left:0;position:absolute;top:0}.nux-dot-tip[data-y-axis=top]{margin-top:-4px}.nux-dot-tip[data-y-axis=bottom]{margin-top:4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left]{margin-right:-4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right]{margin-right:4px}.nux-dot-tip[data-y-axis=top] .components-popover__content{margin-bottom:20px}.nux-dot-tip[data-y-axis=bottom] .components-popover__content{margin-top:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left] .components-popover__content{margin-left:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right] .components-popover__content{margin-right:20px}.nux-dot-tip[data-y-axis=center],.nux-dot-tip[data-y-axis=left],.nux-dot-tip[data-y-axis=right]{z-index:1000001}@media (max-width:600px){.nux-dot-tip[data-y-axis=center] .components-popover__content,.nux-dot-tip[data-y-axis=left] .components-popover__content,.nux-dot-tip[data-y-axis=right] .components-popover__content{align-self:end;left:5px;margin:20px 0 0;max-width:none!important;position:fixed;right:5px;width:auto}}.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{margin-left:0}.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=left] .components-popover__content{margin-right:0}.nux-dot-tip.components-popover.interface-more-menu-dropdown__content:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{margin-left:-12px}.nux-dot-tip.components-popover.interface-more-menu-dropdown__content:not([data-y-axis=middle])[data-y-axis=left] .components-popover__content{margin-right:-12px}
|
1
wp-includes/css/dist/nux/style.css
vendored
1
wp-includes/css/dist/nux/style.css
vendored
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
2
wp-includes/css/dist/nux/style.min.css
vendored
2
wp-includes/css/dist/nux/style.min.css
vendored
@ -1,4 +1,4 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.nux-dot-tip:after,.nux-dot-tip:before{border-radius:100%;content:" ";pointer-events:none;position:absolute}.nux-dot-tip:before{animation:nux-pulse 1.6s cubic-bezier(.17,.67,.92,.62) infinite;background:#00739ce6;height:24px;left:-12px;opacity:.9;top:-12px;transform:scale(.3333333333);width:24px}.nux-dot-tip:after{background:#00739c;height:8px;left:-4px;top:-4px;width:8px}@keyframes nux-pulse{to{background:#00739c00;transform:scale(1)}}.nux-dot-tip .components-popover__content{padding:20px 18px;width:350px}@media (min-width:600px){.nux-dot-tip .components-popover__content{width:450px}}.nux-dot-tip .components-popover__content .nux-dot-tip__disable{position:absolute;right:0;top:0}.nux-dot-tip[data-y-axis=top]{margin-top:-4px}.nux-dot-tip[data-y-axis=bottom]{margin-top:4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left]{margin-left:-4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right]{margin-left:4px}.nux-dot-tip[data-y-axis=top] .components-popover__content{margin-bottom:20px}.nux-dot-tip[data-y-axis=bottom] .components-popover__content{margin-top:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left] .components-popover__content{margin-right:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right] .components-popover__content{margin-left:20px}.nux-dot-tip[data-y-axis=center],.nux-dot-tip[data-y-axis=left],.nux-dot-tip[data-y-axis=right]{z-index:1000001}@media (max-width:600px){.nux-dot-tip[data-y-axis=center] .components-popover__content,.nux-dot-tip[data-y-axis=left] .components-popover__content,.nux-dot-tip[data-y-axis=right] .components-popover__content{align-self:end;left:5px;margin:20px 0 0;max-width:none!important;position:fixed;right:5px;width:auto}}.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.nux-dot-tip:after,.nux-dot-tip:before{border-radius:100%;content:" ";pointer-events:none;position:absolute}.nux-dot-tip:before{animation:nux-pulse 1.6s cubic-bezier(.17,.67,.92,.62) infinite;background:#00739ce6;height:24px;left:-12px;opacity:.9;top:-12px;transform:scale(.3333333333);width:24px}.nux-dot-tip:after{background:#00739c;height:8px;left:-4px;top:-4px;width:8px}@keyframes nux-pulse{to{background:#00739c00;transform:scale(1)}}.nux-dot-tip .components-popover__content{padding:20px 18px;width:350px}@media (min-width:600px){.nux-dot-tip .components-popover__content{width:450px}}.nux-dot-tip .components-popover__content .nux-dot-tip__disable{position:absolute;right:0;top:0}.nux-dot-tip[data-y-axis=top]{margin-top:-4px}.nux-dot-tip[data-y-axis=bottom]{margin-top:4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left]{margin-left:-4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right]{margin-left:4px}.nux-dot-tip[data-y-axis=top] .components-popover__content{margin-bottom:20px}.nux-dot-tip[data-y-axis=bottom] .components-popover__content{margin-top:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left] .components-popover__content{margin-right:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right] .components-popover__content{margin-left:20px}.nux-dot-tip[data-y-axis=center],.nux-dot-tip[data-y-axis=left],.nux-dot-tip[data-y-axis=right]{z-index:1000001}@media (max-width:600px){.nux-dot-tip[data-y-axis=center] .components-popover__content,.nux-dot-tip[data-y-axis=left] .components-popover__content,.nux-dot-tip[data-y-axis=right] .components-popover__content{align-self:end;left:5px;margin:20px 0 0;max-width:none!important;position:fixed;right:5px;width:auto}}.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{
|
||||
/*!rtl:ignore*/margin-left:0}.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=left] .components-popover__content{
|
||||
/*!rtl:ignore*/margin-right:0}.nux-dot-tip.components-popover.interface-more-menu-dropdown__content:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{
|
||||
/*!rtl:ignore*/margin-left:-12px}.nux-dot-tip.components-popover.interface-more-menu-dropdown__content:not([data-y-axis=middle])[data-y-axis=left] .components-popover__content{
|
||||
|
1
wp-includes/css/dist/patterns/style-rtl.css
vendored
1
wp-includes/css/dist/patterns/style-rtl.css
vendored
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{position:relative}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;max-height:96px;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{position:relative}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;max-height:96px;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}}
|
1
wp-includes/css/dist/patterns/style.css
vendored
1
wp-includes/css/dist/patterns/style.css
vendored
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
2
wp-includes/css/dist/patterns/style.min.css
vendored
2
wp-includes/css/dist/patterns/style.min.css
vendored
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{position:relative}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;max-height:96px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{position:relative}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;max-height:96px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}}
|
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.preference-base-option+.preference-base-option{margin-top:16px}.preference-base-option .components-base-control__help{margin-right:48px;margin-top:0}@media (min-width:600px){.preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.preferences-modal{width:750px}}@media (min-width:960px){.preferences-modal{height:70%}}@media (max-width:781px){.preferences-modal .components-modal__content{padding:0}}.preferences__tabs-tablist{position:absolute;right:16px;top:84px;width:160px}.preferences__tabs-tab{border-radius:2px;font-weight:400}.preferences__tabs-tab[aria-selected=true]{background:#f0f0f0;box-shadow:none;font-weight:500}.preferences__tabs-tab[aria-selected=true]:after{content:none}.preferences__tabs-tab[role=tab]:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.preferences__tabs-tab:focus-visible:before{content:none}.preferences__tabs-tabpanel{margin-right:160px;padding-right:24px}@media (max-width:781px){.preferences__provider{height:100%}}.preferences-modal__section{margin:0 0 2.5rem}.preferences-modal__section:last-child{margin:0}.preferences-modal__section-legend{margin-bottom:8px}.preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.preferences-modal__section:has(.preferences-modal__section-content:empty){display:none}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.preference-base-option+.preference-base-option{margin-top:16px}.preference-base-option .components-base-control__help{margin-right:48px;margin-top:0}@media (min-width:600px){.preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.preferences-modal{width:750px}}@media (min-width:960px){.preferences-modal{height:70%}}@media (max-width:781px){.preferences-modal .components-modal__content{padding:0}}.preferences__tabs-tablist{position:absolute;right:16px;top:84px;width:160px}.preferences__tabs-tab{border-radius:2px;font-weight:400}.preferences__tabs-tab[aria-selected=true]{background:#f0f0f0;box-shadow:none;font-weight:500}.preferences__tabs-tab[aria-selected=true]:after{content:none}.preferences__tabs-tab[role=tab]:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.preferences__tabs-tab:focus-visible:before{content:none}.preferences__tabs-tabpanel{margin-right:160px;padding-right:24px}@media (max-width:781px){.preferences__provider{height:100%}}.preferences-modal__section{margin:0 0 2.5rem}.preferences-modal__section:last-child{margin:0}.preferences-modal__section-legend{margin-bottom:8px}.preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.preferences-modal__section:has(.preferences-modal__section-content:empty){display:none}
|
1
wp-includes/css/dist/preferences/style.css
vendored
1
wp-includes/css/dist/preferences/style.css
vendored
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.preference-base-option+.preference-base-option{margin-top:16px}.preference-base-option .components-base-control__help{margin-left:48px;margin-top:0}@media (min-width:600px){.preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.preferences-modal{width:750px}}@media (min-width:960px){.preferences-modal{height:70%}}@media (max-width:781px){.preferences-modal .components-modal__content{padding:0}}.preferences__tabs-tablist{left:16px;position:absolute;top:84px;width:160px}.preferences__tabs-tab{border-radius:2px;font-weight:400}.preferences__tabs-tab[aria-selected=true]{background:#f0f0f0;box-shadow:none;font-weight:500}.preferences__tabs-tab[aria-selected=true]:after{content:none}.preferences__tabs-tab[role=tab]:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.preferences__tabs-tab:focus-visible:before{content:none}.preferences__tabs-tabpanel{margin-left:160px;padding-left:24px}@media (max-width:781px){.preferences__provider{height:100%}}.preferences-modal__section{margin:0 0 2.5rem}.preferences-modal__section:last-child{margin:0}.preferences-modal__section-legend{margin-bottom:8px}.preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.preferences-modal__section:has(.preferences-modal__section-content:empty){display:none}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.preference-base-option+.preference-base-option{margin-top:16px}.preference-base-option .components-base-control__help{margin-left:48px;margin-top:0}@media (min-width:600px){.preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.preferences-modal{width:750px}}@media (min-width:960px){.preferences-modal{height:70%}}@media (max-width:781px){.preferences-modal .components-modal__content{padding:0}}.preferences__tabs-tablist{left:16px;position:absolute;top:84px;width:160px}.preferences__tabs-tab{border-radius:2px;font-weight:400}.preferences__tabs-tab[aria-selected=true]{background:#f0f0f0;box-shadow:none;font-weight:500}.preferences__tabs-tab[aria-selected=true]:after{content:none}.preferences__tabs-tab[role=tab]:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.preferences__tabs-tab:focus-visible:before{content:none}.preferences__tabs-tabpanel{margin-left:160px;padding-left:24px}@media (max-width:781px){.preferences__provider{height:100%}}.preferences-modal__section{margin:0 0 2.5rem}.preferences-modal__section:last-child{margin:0}.preferences-modal__section-legend{margin-bottom:8px}.preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.preferences-modal__section:has(.preferences-modal__section-content:empty){display:none}
|
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.reusable-blocks-menu-items__convert-modal{z-index:1000001}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.reusable-blocks-menu-items__convert-modal{z-index:1000001}
|
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.reusable-blocks-menu-items__convert-modal{z-index:1000001}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.reusable-blocks-menu-items__convert-modal{z-index:1000001}
|
1
wp-includes/css/dist/widgets/style-rtl.css
vendored
1
wp-includes/css/dist/widgets/style-rtl.css
vendored
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
File diff suppressed because one or more lines are too long
1
wp-includes/css/dist/widgets/style.css
vendored
1
wp-includes/css/dist/widgets/style.css
vendored
@ -8,6 +8,7 @@
|
||||
--wp-admin-border-width-focus:2px;
|
||||
--wp-block-synced-color:#7a00df;
|
||||
--wp-block-synced-color--rgb:122, 0, 223;
|
||||
--wp-bound-block-color:#9747ff;
|
||||
}
|
||||
@media (min-resolution:192dpi){
|
||||
:root{
|
||||
|
2
wp-includes/css/dist/widgets/style.min.css
vendored
2
wp-includes/css/dist/widgets/style.min.css
vendored
File diff suppressed because one or more lines are too long
521
wp-includes/js/dist/block-editor.js
vendored
521
wp-includes/js/dist/block-editor.js
vendored
@ -16283,7 +16283,7 @@ const duplicateBlocks = (clientIds, updateSelection = true) => ({
|
||||
};
|
||||
|
||||
/**
|
||||
* Action that inserts an empty block before a given block.
|
||||
* Action that inserts a default block before a given block.
|
||||
*
|
||||
* @param {string} clientId
|
||||
*/
|
||||
@ -16299,12 +16299,29 @@ const insertBeforeBlock = clientId => ({
|
||||
if (isLocked) {
|
||||
return;
|
||||
}
|
||||
const firstSelectedIndex = select.getBlockIndex(clientId);
|
||||
return dispatch.insertDefaultBlock({}, rootClientId, firstSelectedIndex);
|
||||
const blockIndex = select.getBlockIndex(clientId);
|
||||
const directInsertBlock = rootClientId ? select.getDirectInsertBlock(rootClientId) : null;
|
||||
if (!directInsertBlock) {
|
||||
return dispatch.insertDefaultBlock({}, rootClientId, blockIndex);
|
||||
}
|
||||
const copiedAttributes = {};
|
||||
if (directInsertBlock.attributesToCopy) {
|
||||
const attributes = select.getBlockAttributes(clientId);
|
||||
directInsertBlock.attributesToCopy.forEach(key => {
|
||||
if (attributes[key]) {
|
||||
copiedAttributes[key] = attributes[key];
|
||||
}
|
||||
});
|
||||
}
|
||||
const block = (0,external_wp_blocks_namespaceObject.createBlock)(directInsertBlock.name, {
|
||||
...directInsertBlock.attributes,
|
||||
...copiedAttributes
|
||||
});
|
||||
return dispatch.insertBlock(block, blockIndex, rootClientId);
|
||||
};
|
||||
|
||||
/**
|
||||
* Action that inserts an empty block after a given block.
|
||||
* Action that inserts a default block after a given block.
|
||||
*
|
||||
* @param {string} clientId
|
||||
*/
|
||||
@ -16320,8 +16337,25 @@ const insertAfterBlock = clientId => ({
|
||||
if (isLocked) {
|
||||
return;
|
||||
}
|
||||
const firstSelectedIndex = select.getBlockIndex(clientId);
|
||||
return dispatch.insertDefaultBlock({}, rootClientId, firstSelectedIndex + 1);
|
||||
const blockIndex = select.getBlockIndex(clientId);
|
||||
const directInsertBlock = rootClientId ? select.getDirectInsertBlock(rootClientId) : null;
|
||||
if (!directInsertBlock) {
|
||||
return dispatch.insertDefaultBlock({}, rootClientId, blockIndex + 1);
|
||||
}
|
||||
const copiedAttributes = {};
|
||||
if (directInsertBlock.attributesToCopy) {
|
||||
const attributes = select.getBlockAttributes(clientId);
|
||||
directInsertBlock.attributesToCopy.forEach(key => {
|
||||
if (attributes[key]) {
|
||||
copiedAttributes[key] = attributes[key];
|
||||
}
|
||||
});
|
||||
}
|
||||
const block = (0,external_wp_blocks_namespaceObject.createBlock)(directInsertBlock.name, {
|
||||
...directInsertBlock.attributes,
|
||||
...copiedAttributes
|
||||
});
|
||||
return dispatch.insertBlock(block, blockIndex + 1, rootClientId);
|
||||
};
|
||||
|
||||
/**
|
||||
@ -33944,12 +33978,21 @@ function BlockIcon({
|
||||
const EMPTY_OBJECT = {};
|
||||
function BlockHooksControlPure({
|
||||
name,
|
||||
clientId
|
||||
clientId,
|
||||
metadata: {
|
||||
ignoredHookedBlocks = []
|
||||
} = {}
|
||||
}) {
|
||||
const blockTypes = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blocks_namespaceObject.store).getBlockTypes(), []);
|
||||
|
||||
// A hooked block added via a filter will not be exposed through a block
|
||||
// type's `blockHooks` property; however, if the containing layout has been
|
||||
// modified, it will be present in the anchor block's `ignoredHookedBlocks`
|
||||
// metadata.
|
||||
const hookedBlocksForCurrentBlock = (0,external_wp_element_namespaceObject.useMemo)(() => blockTypes?.filter(({
|
||||
name: blockName,
|
||||
blockHooks
|
||||
}) => blockHooks && name in blockHooks), [blockTypes, name]);
|
||||
}) => blockHooks && name in blockHooks || ignoredHookedBlocks.includes(blockName)), [blockTypes, name, ignoredHookedBlocks]);
|
||||
const {
|
||||
blockIndex,
|
||||
rootClientId,
|
||||
@ -33994,6 +34037,12 @@ function BlockHooksControlPure({
|
||||
// inserted and then moved around a bit by the user.
|
||||
candidates = getBlocks(clientId);
|
||||
break;
|
||||
case undefined:
|
||||
// If we haven't found a blockHooks field with a relative position for the hooked
|
||||
// block, it means that it was added by a filter. In this case, we look for the block
|
||||
// both among the current block's siblings and its children.
|
||||
candidates = [...getBlocks(rootClientId), ...getBlocks(clientId)];
|
||||
break;
|
||||
}
|
||||
const hookedBlock = candidates?.find(candidate => candidate.name === block.name);
|
||||
|
||||
@ -34048,6 +34097,14 @@ function BlockHooksControlPure({
|
||||
// Insert as a child of the current block.
|
||||
false);
|
||||
break;
|
||||
case undefined:
|
||||
// If we do not know the relative position, it is because the block was
|
||||
// added via a filter. In this case, we default to inserting it after the
|
||||
// current block.
|
||||
insertBlock(block, blockIndex + 1, rootClientId,
|
||||
// Insert as a child of the current block's parent
|
||||
false);
|
||||
break;
|
||||
}
|
||||
};
|
||||
return (0,external_React_.createElement)(inspector_controls, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
|
||||
@ -34086,6 +34143,7 @@ function BlockHooksControlPure({
|
||||
}
|
||||
/* harmony default export */ const block_hooks = ({
|
||||
edit: BlockHooksControlPure,
|
||||
attributeKeys: ['metadata'],
|
||||
hasSupport() {
|
||||
return true;
|
||||
}
|
||||
@ -34177,13 +34235,14 @@ function BlockRenameControlPure({
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
/** @typedef {import('@wordpress/compose').WPHigherOrderComponent} WPHigherOrderComponent */
|
||||
/** @typedef {import('@wordpress/blocks').WPBlockSettings} WPBlockSettings */
|
||||
|
||||
@ -34200,62 +34259,186 @@ const BLOCK_BINDINGS_ALLOWED_BLOCKS = {
|
||||
'core/image': ['url', 'title', 'alt'],
|
||||
'core/button': ['url', 'text', 'linkTarget']
|
||||
};
|
||||
const createEditFunctionWithBindingsAttribute = () => (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => {
|
||||
|
||||
/**
|
||||
* Based on the given block name,
|
||||
* check if it is possible to bind the block.
|
||||
*
|
||||
* @param {string} blockName - The block name.
|
||||
* @return {boolean} Whether it is possible to bind the block to sources.
|
||||
*/
|
||||
function canBindBlock(blockName) {
|
||||
return blockName in BLOCK_BINDINGS_ALLOWED_BLOCKS;
|
||||
}
|
||||
|
||||
/**
|
||||
* Based on the given block name and attribute name,
|
||||
* check if it is possible to bind the block attribute.
|
||||
*
|
||||
* @param {string} blockName - The block name.
|
||||
* @param {string} attributeName - The attribute name.
|
||||
* @return {boolean} Whether it is possible to bind the block attribute.
|
||||
*/
|
||||
function canBindAttribute(blockName, attributeName) {
|
||||
return canBindBlock(blockName) && BLOCK_BINDINGS_ALLOWED_BLOCKS[blockName].includes(attributeName);
|
||||
}
|
||||
|
||||
/**
|
||||
* This component is responsible for detecting and
|
||||
* propagating data changes from the source to the block.
|
||||
*
|
||||
* @param {Object} props - The component props.
|
||||
* @param {string} props.attrName - The attribute name.
|
||||
* @param {Object} props.blockProps - The block props with bound attribute.
|
||||
* @param {Object} props.source - Source handler.
|
||||
* @param {Object} props.args - The arguments to pass to the source.
|
||||
* @param {Function} props.onPropValueChange - The function to call when the attribute value changes.
|
||||
* @return {null} Data-handling component. Render nothing.
|
||||
*/
|
||||
const BindingConnector = ({
|
||||
args,
|
||||
attrName,
|
||||
blockProps,
|
||||
source,
|
||||
onPropValueChange
|
||||
}) => {
|
||||
const {
|
||||
placeholder,
|
||||
value: propValue
|
||||
} = source.useSource(blockProps, args);
|
||||
const {
|
||||
clientId,
|
||||
name: blockName
|
||||
} = useBlockEditContext();
|
||||
const blockBindingsSources = unlock((0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store)).getAllBlockBindingsSources();
|
||||
const {
|
||||
getBlockAttributes
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(store);
|
||||
const updatedAttributes = getBlockAttributes(clientId);
|
||||
if (updatedAttributes?.metadata?.bindings) {
|
||||
Object.entries(updatedAttributes.metadata.bindings).forEach(([attributeName, settings]) => {
|
||||
const source = blockBindingsSources[settings.source];
|
||||
if (source && source.useSource) {
|
||||
// Second argument (`updateMetaValue`) will be used to update the value in the future.
|
||||
const {
|
||||
placeholder,
|
||||
useValue: [metaValue = null] = []
|
||||
} = source.useSource(props, settings.args);
|
||||
if (placeholder && !metaValue) {
|
||||
// If the attribute is `src` or `href`, a placeholder can't be used because it is not a valid url.
|
||||
// Adding this workaround until attributes and metadata fields types are improved and include `url`.
|
||||
const htmlAttribute = (0,external_wp_blocks_namespaceObject.getBlockType)(blockName).attributes[attributeName].attribute;
|
||||
if (htmlAttribute === 'src' || htmlAttribute === 'href') {
|
||||
updatedAttributes[attributeName] = null;
|
||||
} else {
|
||||
updatedAttributes[attributeName] = placeholder;
|
||||
}
|
||||
}
|
||||
if (metaValue) {
|
||||
updatedAttributes[attributeName] = metaValue;
|
||||
}
|
||||
} = blockProps;
|
||||
const attrValue = blockProps.attributes[attrName];
|
||||
const updateBoundAttibute = (0,external_wp_element_namespaceObject.useCallback)((newAttrValue, prevAttrValue) => {
|
||||
/*
|
||||
* If the attribute is a RichTextData instance,
|
||||
* (core/paragraph, core/heading, core/button, etc.)
|
||||
* compare its HTML representation with the new value.
|
||||
*
|
||||
* To do: it looks like a workaround.
|
||||
* Consider improving the attribute and metadata fields types.
|
||||
*/
|
||||
if (prevAttrValue instanceof external_wp_richText_namespaceObject.RichTextData) {
|
||||
// Bail early if the Rich Text value is the same.
|
||||
if (prevAttrValue.toHTMLString() === newAttrValue) {
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* To preserve the value type,
|
||||
* convert the new value to a RichTextData instance.
|
||||
*/
|
||||
newAttrValue = external_wp_richText_namespaceObject.RichTextData.fromHTMLString(newAttrValue);
|
||||
}
|
||||
if (prevAttrValue === newAttrValue) {
|
||||
return;
|
||||
}
|
||||
onPropValueChange({
|
||||
[attrName]: newAttrValue
|
||||
});
|
||||
}
|
||||
return (0,external_React_.createElement)(BlockEdit, {
|
||||
key: "edit",
|
||||
}, [attrName, onPropValueChange]);
|
||||
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
|
||||
if (typeof propValue !== 'undefined') {
|
||||
updateBoundAttibute(propValue, attrValue);
|
||||
} else if (placeholder) {
|
||||
/*
|
||||
* Placeholder fallback.
|
||||
* If the attribute is `src` or `href`,
|
||||
* a placeholder can't be used because it is not a valid url.
|
||||
* Adding this workaround until
|
||||
* attributes and metadata fields types are improved and include `url`.
|
||||
*/
|
||||
const htmlAttribute = (0,external_wp_blocks_namespaceObject.getBlockType)(blockName).attributes[attrName].attribute;
|
||||
if (htmlAttribute === 'src' || htmlAttribute === 'href') {
|
||||
updateBoundAttibute(null);
|
||||
return;
|
||||
}
|
||||
updateBoundAttibute(placeholder);
|
||||
}
|
||||
}, [updateBoundAttibute, propValue, attrValue, placeholder, blockName, attrName]);
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* BlockBindingBridge acts like a component wrapper
|
||||
* that connects the bound attributes of a block
|
||||
* to the source handlers.
|
||||
* For this, it creates a BindingConnector for each bound attribute.
|
||||
*
|
||||
* @param {Object} props - The component props.
|
||||
* @param {Object} props.blockProps - The BlockEdit props object.
|
||||
* @param {Object} props.bindings - The block bindings settings.
|
||||
* @param {Function} props.onPropValueChange - The function to call when the attribute value changes.
|
||||
* @return {null} Data-handling component. Render nothing.
|
||||
*/
|
||||
function BlockBindingBridge({
|
||||
blockProps,
|
||||
bindings,
|
||||
onPropValueChange
|
||||
}) {
|
||||
const blockBindingsSources = unlock((0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store)).getAllBlockBindingsSources();
|
||||
return (0,external_React_.createElement)(external_React_.Fragment, null, Object.entries(bindings).map(([attrName, boundAttribute]) => {
|
||||
// Bail early if the block doesn't have a valid source handler.
|
||||
const source = blockBindingsSources[boundAttribute.source];
|
||||
if (!source?.useSource) {
|
||||
return null;
|
||||
}
|
||||
return (0,external_React_.createElement)(BindingConnector, {
|
||||
key: attrName,
|
||||
attrName: attrName,
|
||||
source: source,
|
||||
blockProps: blockProps,
|
||||
args: boundAttribute.args,
|
||||
onPropValueChange: onPropValueChange
|
||||
});
|
||||
}));
|
||||
}
|
||||
const withBlockBindingSupport = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => {
|
||||
/*
|
||||
* Collect and update the bound attributes
|
||||
* in a separate state.
|
||||
*/
|
||||
const [boundAttributes, setBoundAttributes] = (0,external_wp_element_namespaceObject.useState)({});
|
||||
const updateBoundAttributes = (0,external_wp_element_namespaceObject.useCallback)(newAttributes => setBoundAttributes(prev => ({
|
||||
...prev,
|
||||
...newAttributes
|
||||
})), []);
|
||||
|
||||
/*
|
||||
* Create binding object filtering
|
||||
* only the attributes that can be bound.
|
||||
*/
|
||||
const bindings = Object.fromEntries(Object.entries(props.attributes.metadata?.bindings || {}).filter(([attrName]) => canBindAttribute(props.name, attrName)));
|
||||
return (0,external_React_.createElement)(external_React_.Fragment, null, Object.keys(bindings).length > 0 && (0,external_React_.createElement)(BlockBindingBridge, {
|
||||
blockProps: props,
|
||||
bindings: bindings,
|
||||
onPropValueChange: updateBoundAttributes
|
||||
}), (0,external_React_.createElement)(BlockEdit, {
|
||||
...props,
|
||||
attributes: updatedAttributes
|
||||
});
|
||||
}, 'useBoundAttributes');
|
||||
attributes: {
|
||||
...props.attributes,
|
||||
...boundAttributes
|
||||
}
|
||||
}));
|
||||
}, 'withBlockBindingSupport');
|
||||
|
||||
/**
|
||||
* Filters a registered block's settings to enhance a block's `edit` component
|
||||
* to upgrade bound attributes.
|
||||
*
|
||||
* @param {WPBlockSettings} settings Registered block settings.
|
||||
*
|
||||
* @param {WPBlockSettings} settings - Registered block settings.
|
||||
* @param {string} name - Block name.
|
||||
* @return {WPBlockSettings} Filtered block settings.
|
||||
*/
|
||||
function shimAttributeSource(settings) {
|
||||
if (!(settings.name in BLOCK_BINDINGS_ALLOWED_BLOCKS)) {
|
||||
function shimAttributeSource(settings, name) {
|
||||
if (!canBindBlock(name)) {
|
||||
return settings;
|
||||
}
|
||||
settings.edit = createEditFunctionWithBindingsAttribute()(settings.edit);
|
||||
return settings;
|
||||
return {
|
||||
...settings,
|
||||
edit: withBlockBindingSupport(settings.edit)
|
||||
};
|
||||
}
|
||||
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/editor/custom-sources-backwards-compatibility/shim-attribute-source', shimAttributeSource);
|
||||
|
||||
@ -36996,7 +37179,7 @@ function useEventHandlers({
|
||||
getBlockIndex
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(store);
|
||||
const {
|
||||
insertDefaultBlock,
|
||||
insertAfterBlock,
|
||||
removeBlock
|
||||
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
|
||||
return (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
|
||||
@ -37026,7 +37209,7 @@ function useEventHandlers({
|
||||
}
|
||||
event.preventDefault();
|
||||
if (keyCode === external_wp_keycodes_namespaceObject.ENTER) {
|
||||
insertDefaultBlock({}, getBlockRootClientId(clientId), getBlockIndex(clientId) + 1);
|
||||
insertAfterBlock(clientId);
|
||||
} else {
|
||||
removeBlock(clientId);
|
||||
}
|
||||
@ -37047,7 +37230,7 @@ function useEventHandlers({
|
||||
node.removeEventListener('keydown', onKeyDown);
|
||||
node.removeEventListener('dragstart', onDragStart);
|
||||
};
|
||||
}, [clientId, isSelected, getBlockRootClientId, getBlockIndex, insertDefaultBlock, removeBlock]);
|
||||
}, [clientId, isSelected, getBlockRootClientId, getBlockIndex, insertAfterBlock, removeBlock]);
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/use-block-props/use-nav-mode-exit.js
|
||||
@ -37206,6 +37389,7 @@ function useFlashEditableBlocks({
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This hook is used to lightly mark an element as a block element. The element
|
||||
* should be the outermost element of a block. Call this hook and pass the
|
||||
@ -37304,6 +37488,11 @@ function use_block_props_useBlockProps(props = {}, {
|
||||
isEnabled: name === 'core/block' || templateLock === 'contentOnly'
|
||||
})]);
|
||||
const blockEditContext = useBlockEditContext();
|
||||
const hasBlockBindings = !!blockEditContext[blockBindingsKey];
|
||||
const bindingsStyle = hasBlockBindings && canBindBlock(name) ? {
|
||||
'--wp-admin-theme-color': 'var(--wp-bound-block-color)'
|
||||
} : {};
|
||||
|
||||
// Ensures it warns only inside the `edit` implementation for the block.
|
||||
if (blockApiVersion < 2 && clientId === blockEditContext.clientId) {
|
||||
true ? external_wp_warning_default()(`Block type "${name}" must support API version 2 or higher to work correctly with "useBlockProps" method.`) : 0;
|
||||
@ -37340,7 +37529,8 @@ function use_block_props_useBlockProps(props = {}, {
|
||||
}, className, props.className, wrapperProps.className, defaultClassName),
|
||||
style: {
|
||||
...wrapperProps.style,
|
||||
...props.style
|
||||
...props.style,
|
||||
...bindingsStyle
|
||||
}
|
||||
};
|
||||
}
|
||||
@ -39942,18 +40132,33 @@ function shouldDismissPastedFiles(files, html /*, plainText */) {
|
||||
*/
|
||||
|
||||
|
||||
const requiresWrapperOnCopy = Symbol('requiresWrapperOnCopy');
|
||||
|
||||
/**
|
||||
* Sets the clipboard data for the provided blocks, with both HTML and plain
|
||||
* text representations.
|
||||
*
|
||||
* @param {ClipboardEvent} event Clipboard event.
|
||||
* @param {WPBlock[]} blocks Blocks to set as clipboard data.
|
||||
* @param {ClipboardEvent} event Clipboard event.
|
||||
* @param {WPBlock[]} blocks Blocks to set as clipboard data.
|
||||
* @param {Object} registry The registry to select from.
|
||||
*/
|
||||
function setClipboardBlocks(event, blocks) {
|
||||
function setClipboardBlocks(event, blocks, registry) {
|
||||
let _blocks = blocks;
|
||||
const wrapperBlockName = event.clipboardData.getData('__unstableWrapperBlockName');
|
||||
if (wrapperBlockName) {
|
||||
_blocks = (0,external_wp_blocks_namespaceObject.createBlock)(wrapperBlockName, JSON.parse(event.clipboardData.getData('__unstableWrapperBlockAttributes')), _blocks);
|
||||
const [firstBlock] = blocks;
|
||||
if (firstBlock) {
|
||||
const firstBlockType = registry.select(external_wp_blocks_namespaceObject.store).getBlockType(firstBlock.name);
|
||||
if (firstBlockType[requiresWrapperOnCopy]) {
|
||||
const {
|
||||
getBlockRootClientId,
|
||||
getBlockName,
|
||||
getBlockAttributes
|
||||
} = registry.select(store);
|
||||
const wrapperBlockClientId = getBlockRootClientId(firstBlock.clientId);
|
||||
const wrapperBlockName = getBlockName(wrapperBlockClientId);
|
||||
if (wrapperBlockName) {
|
||||
_blocks = (0,external_wp_blocks_namespaceObject.createBlock)(wrapperBlockName, getBlockAttributes(wrapperBlockClientId), _blocks);
|
||||
}
|
||||
}
|
||||
}
|
||||
const serialized = (0,external_wp_blocks_namespaceObject.serialize)(_blocks);
|
||||
event.clipboardData.setData('text/plain', toPlainText(serialized));
|
||||
@ -40025,6 +40230,7 @@ function toPlainText(html) {
|
||||
|
||||
|
||||
function useClipboardHandler() {
|
||||
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
|
||||
const {
|
||||
getBlocksByClientId,
|
||||
getSelectedBlockClientIds,
|
||||
@ -40099,7 +40305,7 @@ function useClipboardHandler() {
|
||||
const inBetweenBlocks = getBlocksByClientId(selectedBlockClientIds.slice(1, selectedBlockClientIds.length - 1));
|
||||
blocks = [head, ...inBetweenBlocks, tail];
|
||||
}
|
||||
setClipboardBlocks(event, blocks);
|
||||
setClipboardBlocks(event, blocks, registry);
|
||||
}
|
||||
}
|
||||
if (event.type === 'cut') {
|
||||
@ -49591,28 +49797,46 @@ function BlockActions({
|
||||
children,
|
||||
__experimentalUpdateSelection: updateSelection
|
||||
}) {
|
||||
const {
|
||||
canInsertBlockType,
|
||||
getBlockRootClientId,
|
||||
getBlocksByClientId,
|
||||
canMoveBlocks,
|
||||
canRemoveBlocks
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(store);
|
||||
const {
|
||||
getDefaultBlockName,
|
||||
getGroupingBlockName
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store);
|
||||
const blocks = getBlocksByClientId(clientIds);
|
||||
const rootClientId = getBlockRootClientId(clientIds[0]);
|
||||
const canCopyStyles = blocks.every(block => {
|
||||
return !!block && ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'color') || (0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'typography'));
|
||||
});
|
||||
const canDuplicate = blocks.every(block => {
|
||||
return !!block && (0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'multiple', true) && canInsertBlockType(block.name, rootClientId);
|
||||
});
|
||||
const canInsertDefaultBlock = canInsertBlockType(getDefaultBlockName(), rootClientId);
|
||||
const canMove = canMoveBlocks(clientIds, rootClientId);
|
||||
const canRemove = canRemoveBlocks(clientIds, rootClientId);
|
||||
const selected = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
const {
|
||||
canInsertBlockType,
|
||||
getBlockRootClientId,
|
||||
getBlocksByClientId,
|
||||
getDirectInsertBlock,
|
||||
canMoveBlocks,
|
||||
canRemoveBlocks
|
||||
} = select(store);
|
||||
const blocks = getBlocksByClientId(clientIds);
|
||||
const rootClientId = getBlockRootClientId(clientIds[0]);
|
||||
const canInsertDefaultBlock = canInsertBlockType(getDefaultBlockName(), rootClientId);
|
||||
const directInsertBlock = rootClientId ? getDirectInsertBlock(rootClientId) : null;
|
||||
return {
|
||||
canMove: canMoveBlocks(clientIds, rootClientId),
|
||||
canRemove: canRemoveBlocks(clientIds, rootClientId),
|
||||
canInsertBlock: canInsertDefaultBlock || !!directInsertBlock,
|
||||
canCopyStyles: blocks.every(block => {
|
||||
return !!block && ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'color') || (0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'typography'));
|
||||
}),
|
||||
canDuplicate: blocks.every(block => {
|
||||
return !!block && (0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'multiple', true) && canInsertBlockType(block.name, rootClientId);
|
||||
})
|
||||
};
|
||||
}, [clientIds, getDefaultBlockName]);
|
||||
const {
|
||||
getBlocksByClientId,
|
||||
getBlocks
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(store);
|
||||
const {
|
||||
canMove,
|
||||
canRemove,
|
||||
canInsertBlock,
|
||||
canCopyStyles,
|
||||
canDuplicate
|
||||
} = selected;
|
||||
const {
|
||||
removeBlocks,
|
||||
replaceBlocks,
|
||||
@ -49629,11 +49853,9 @@ function BlockActions({
|
||||
return children({
|
||||
canCopyStyles,
|
||||
canDuplicate,
|
||||
canInsertDefaultBlock,
|
||||
canInsertBlock,
|
||||
canMove,
|
||||
canRemove,
|
||||
rootClientId,
|
||||
blocks,
|
||||
onDuplicate() {
|
||||
return duplicateBlocks(clientIds, updateSelection);
|
||||
},
|
||||
@ -49654,39 +49876,36 @@ function BlockActions({
|
||||
setBlockMovingClientId(clientIds[0]);
|
||||
},
|
||||
onGroup() {
|
||||
if (!blocks.length) {
|
||||
if (!clientIds.length) {
|
||||
return;
|
||||
}
|
||||
const groupingBlockName = getGroupingBlockName();
|
||||
|
||||
// Activate the `transform` on `core/group` which does the conversion.
|
||||
const newBlocks = (0,external_wp_blocks_namespaceObject.switchToBlockType)(blocks, groupingBlockName);
|
||||
const newBlocks = (0,external_wp_blocks_namespaceObject.switchToBlockType)(getBlocksByClientId(clientIds), groupingBlockName);
|
||||
if (!newBlocks) {
|
||||
return;
|
||||
}
|
||||
replaceBlocks(clientIds, newBlocks);
|
||||
},
|
||||
onUngroup() {
|
||||
if (!blocks.length) {
|
||||
if (!clientIds.length) {
|
||||
return;
|
||||
}
|
||||
const innerBlocks = blocks[0].innerBlocks;
|
||||
const innerBlocks = getBlocks(clientIds[0]);
|
||||
if (!innerBlocks.length) {
|
||||
return;
|
||||
}
|
||||
replaceBlocks(clientIds, innerBlocks);
|
||||
},
|
||||
onCopy() {
|
||||
const selectedBlockClientIds = blocks.map(({
|
||||
clientId
|
||||
}) => clientId);
|
||||
if (blocks.length === 1) {
|
||||
flashBlock(selectedBlockClientIds[0]);
|
||||
if (clientIds.length === 1) {
|
||||
flashBlock(clientIds[0]);
|
||||
}
|
||||
notifyCopy('copy', selectedBlockClientIds);
|
||||
notifyCopy('copy', clientIds);
|
||||
},
|
||||
async onPasteStyles() {
|
||||
await pasteStyles(blocks);
|
||||
await pasteStyles(getBlocksByClientId(clientIds));
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -49765,11 +49984,14 @@ const block_settings_dropdown_POPOVER_PROPS = {
|
||||
placement: 'bottom-start'
|
||||
};
|
||||
function CopyMenuItem({
|
||||
blocks,
|
||||
clientIds,
|
||||
onCopy,
|
||||
label
|
||||
}) {
|
||||
const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(() => (0,external_wp_blocks_namespaceObject.serialize)(blocks), onCopy);
|
||||
const {
|
||||
getBlocksByClientId
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(store);
|
||||
const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(() => (0,external_wp_blocks_namespaceObject.serialize)(getBlocksByClientId(clientIds)), onCopy);
|
||||
const copyMenuItemLabel = label ? label : (0,external_wp_i18n_namespaceObject.__)('Copy');
|
||||
return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
|
||||
ref: ref
|
||||
@ -49914,7 +50136,7 @@ function BlockSettingsDropdown({
|
||||
}, ({
|
||||
canCopyStyles,
|
||||
canDuplicate,
|
||||
canInsertDefaultBlock,
|
||||
canInsertBlock,
|
||||
canMove,
|
||||
canRemove,
|
||||
onDuplicate,
|
||||
@ -49923,8 +50145,7 @@ function BlockSettingsDropdown({
|
||||
onRemove,
|
||||
onCopy,
|
||||
onPasteStyles,
|
||||
onMoveTo,
|
||||
blocks
|
||||
onMoveTo
|
||||
}) => (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
|
||||
icon: more_vertical,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Options'),
|
||||
@ -49945,11 +50166,11 @@ function BlockSettingsDropdown({
|
||||
} else if (isMatch('core/block-editor/duplicate', event) && canDuplicate) {
|
||||
event.preventDefault();
|
||||
updateSelectionAfterDuplicate(onDuplicate());
|
||||
} else if (isMatch('core/block-editor/insert-after', event) && canInsertDefaultBlock) {
|
||||
} else if (isMatch('core/block-editor/insert-after', event) && canInsertBlock) {
|
||||
event.preventDefault();
|
||||
setOpenedBlockSettingsMenu(undefined);
|
||||
onInsertAfter();
|
||||
} else if (isMatch('core/block-editor/insert-before', event) && canInsertDefaultBlock) {
|
||||
} else if (isMatch('core/block-editor/insert-before', event) && canInsertBlock) {
|
||||
event.preventDefault();
|
||||
setOpenedBlockSettingsMenu(undefined);
|
||||
onInsertBefore();
|
||||
@ -49969,19 +50190,19 @@ function BlockSettingsDropdown({
|
||||
}), count === 1 && (0,external_React_.createElement)(block_html_convert_button, {
|
||||
clientId: firstBlockClientId
|
||||
}), (0,external_React_.createElement)(CopyMenuItem, {
|
||||
blocks: blocks,
|
||||
clientIds: clientIds,
|
||||
onCopy: onCopy
|
||||
}), canDuplicate && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
|
||||
onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onDuplicate, updateSelectionAfterDuplicate),
|
||||
shortcut: shortcuts.duplicate
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('Duplicate')), canInsertDefaultBlock && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('Duplicate')), canInsertBlock && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
|
||||
onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onInsertBefore),
|
||||
shortcut: shortcuts.insertBefore
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('Add before')), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
|
||||
onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onInsertAfter),
|
||||
shortcut: shortcuts.insertAfter
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('Add after')))), canCopyStyles && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(CopyMenuItem, {
|
||||
blocks: blocks,
|
||||
clientIds: clientIds,
|
||||
onCopy: onCopy,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Copy styles')
|
||||
}), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
|
||||
@ -50509,6 +50730,52 @@ function useHasBlockControls(group = 'default') {
|
||||
return !!fills?.length;
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/connection.js
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
const connection = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
|
||||
width: "24",
|
||||
height: "24",
|
||||
viewBox: "0 0 24 24",
|
||||
xmlns: "http://www.w3.org/2000/svg",
|
||||
"fill-rule": "evenodd"
|
||||
}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
|
||||
d: "M5 19L8 16L5 19Z"
|
||||
}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
|
||||
d: "M16 8L19 5L16 8Z"
|
||||
}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.G, null, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
|
||||
d: "M5 19L8 16"
|
||||
}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
|
||||
d: "M9.30003 17.3C9.523 17.5237 9.78794 17.7013 10.0797 17.8224C10.3714 17.9435 10.6842 18.0059 11 18.0059C11.3159 18.0059 11.6287 17.9435 11.9204 17.8224C12.2121 17.7013 12.4771 17.5237 12.7 17.3L15 15L9.00003 9L6.70003 11.3C6.47629 11.523 6.29876 11.7879 6.17763 12.0796C6.05649 12.3714 5.99414 12.6841 5.99414 13C5.99414 13.3159 6.05649 13.6286 6.17763 13.9204C6.29876 14.2121 6.47629 14.477 6.70003 14.7L9.30003 17.3Z"
|
||||
}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
|
||||
d: "M16 8L19 5"
|
||||
}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
|
||||
d: "M9 9.00003L15 15L17.3 12.7C17.5237 12.4771 17.7013 12.2121 17.8224 11.9204C17.9435 11.6287 18.0059 11.3159 18.0059 11C18.0059 10.6842 17.9435 10.3714 17.8224 10.0797C17.7013 9.78794 17.5237 9.523 17.3 9.30003L14.7 6.70003C14.477 6.47629 14.2121 6.29876 13.9204 6.17763C13.6286 6.05649 13.3159 5.99414 13 5.99414C12.6841 5.99414 12.3714 6.05649 12.0796 6.17763C11.7879 6.29876 11.523 6.47629 11.3 6.70003L9 9.00003Z"
|
||||
})));
|
||||
/* harmony default export */ const library_connection = (connection);
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-bindings-toolbar-indicator/index.js
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
function BlockBindingsToolbarIndicator() {
|
||||
return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarItem, {
|
||||
as: 'div',
|
||||
"aria-label": (0,external_wp_i18n_namespaceObject._x)('Connected', 'block toolbar button label'),
|
||||
className: "block-editor-block-bindings-toolbar-indicator"
|
||||
}, (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
|
||||
icon: library_connection,
|
||||
size: 24
|
||||
})));
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js
|
||||
|
||||
/**
|
||||
@ -50544,6 +50811,8 @@ function useHasBlockControls(group = 'default') {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Renders the block toolbar.
|
||||
*
|
||||
@ -50568,8 +50837,10 @@ function PrivateBlockToolbar({
|
||||
blockClientIds,
|
||||
isDefaultEditingMode,
|
||||
blockType,
|
||||
blockName,
|
||||
shouldShowVisualToolbar,
|
||||
showParentSelector
|
||||
showParentSelector,
|
||||
isUsingBindings
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
const {
|
||||
getBlockName,
|
||||
@ -50578,7 +50849,8 @@ function PrivateBlockToolbar({
|
||||
getSelectedBlockClientIds,
|
||||
isBlockValid,
|
||||
getBlockRootClientId,
|
||||
getBlockEditingMode
|
||||
getBlockEditingMode,
|
||||
getBlockAttributes
|
||||
} = select(store);
|
||||
const selectedBlockClientIds = getSelectedBlockClientIds();
|
||||
const selectedBlockClientId = selectedBlockClientIds[0];
|
||||
@ -50588,16 +50860,20 @@ function PrivateBlockToolbar({
|
||||
const parentBlockName = getBlockName(firstParentClientId);
|
||||
const parentBlockType = (0,external_wp_blocks_namespaceObject.getBlockType)(parentBlockName);
|
||||
const _isDefaultEditingMode = getBlockEditingMode(selectedBlockClientId) === 'default';
|
||||
const _blockName = getBlockName(selectedBlockClientId);
|
||||
const isValid = selectedBlockClientIds.every(id => isBlockValid(id));
|
||||
const isVisual = selectedBlockClientIds.every(id => getBlockMode(id) === 'visual');
|
||||
const _isUsingBindings = !!getBlockAttributes(selectedBlockClientId)?.metadata?.bindings;
|
||||
return {
|
||||
blockClientId: selectedBlockClientId,
|
||||
blockClientIds: selectedBlockClientIds,
|
||||
isDefaultEditingMode: _isDefaultEditingMode,
|
||||
blockType: selectedBlockClientId && (0,external_wp_blocks_namespaceObject.getBlockType)(getBlockName(selectedBlockClientId)),
|
||||
blockName: _blockName,
|
||||
blockType: selectedBlockClientId && (0,external_wp_blocks_namespaceObject.getBlockType)(_blockName),
|
||||
shouldShowVisualToolbar: isValid && isVisual,
|
||||
rootClientId: blockRootClientId,
|
||||
showParentSelector: parentBlockType && getBlockEditingMode(firstParentClientId) === 'default' && (0,external_wp_blocks_namespaceObject.hasBlockSupport)(parentBlockType, '__experimentalParentSelector', true) && selectedBlockClientIds.length === 1 && _isDefaultEditingMode
|
||||
showParentSelector: parentBlockType && getBlockEditingMode(firstParentClientId) === 'default' && (0,external_wp_blocks_namespaceObject.hasBlockSupport)(parentBlockType, '__experimentalParentSelector', true) && selectedBlockClientIds.length === 1 && _isDefaultEditingMode,
|
||||
isUsingBindings: _isUsingBindings
|
||||
};
|
||||
}, []);
|
||||
const toolbarWrapperRef = (0,external_wp_element_namespaceObject.useRef)(null);
|
||||
@ -50642,7 +50918,7 @@ function PrivateBlockToolbar({
|
||||
}, (0,external_React_.createElement)("div", {
|
||||
ref: toolbarWrapperRef,
|
||||
className: innerClasses
|
||||
}, !isMultiToolbar && isLargeViewport && isDefaultEditingMode && (0,external_React_.createElement)(BlockParentSelector, null), (shouldShowVisualToolbar || isMultiToolbar) && isDefaultEditingMode && (0,external_React_.createElement)("div", {
|
||||
}, !isMultiToolbar && isLargeViewport && isDefaultEditingMode && (0,external_React_.createElement)(BlockParentSelector, null), isUsingBindings && canBindBlock(blockName) && (0,external_React_.createElement)(BlockBindingsToolbarIndicator, null), (shouldShowVisualToolbar || isMultiToolbar) && isDefaultEditingMode && (0,external_React_.createElement)("div", {
|
||||
ref: nodeRef,
|
||||
...showHoveredOrFocusedGestures
|
||||
}, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, {
|
||||
@ -51899,10 +52175,12 @@ function useListViewImages({
|
||||
|
||||
|
||||
|
||||
|
||||
function ListViewBlockSelectButton({
|
||||
className,
|
||||
block: {
|
||||
clientId
|
||||
clientId,
|
||||
name: blockName
|
||||
},
|
||||
onClick,
|
||||
onContextMenu,
|
||||
@ -51933,6 +52211,7 @@ function ListViewBlockSelectButton({
|
||||
getBlockRootClientId,
|
||||
getBlockOrder,
|
||||
getBlocksByClientId,
|
||||
getBlockAttributes,
|
||||
canRemoveBlocks
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(store);
|
||||
const {
|
||||
@ -51949,6 +52228,7 @@ function ListViewBlockSelectButton({
|
||||
const {
|
||||
rootClientId
|
||||
} = useListViewContext();
|
||||
const isConnected = getBlockAttributes(clientId)?.metadata?.bindings;
|
||||
const positionLabel = blockInformation?.positionLabel ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||
// translators: 1: Position of selected block, e.g. "Sticky" or "Fixed".
|
||||
(0,external_wp_i18n_namespaceObject.__)('Position: %1$s'), blockInformation.positionLabel) : '';
|
||||
@ -52102,7 +52382,11 @@ function ListViewBlockSelectButton({
|
||||
}, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
|
||||
className: "block-editor-list-view-block-select-button__anchor",
|
||||
ellipsizeMode: "auto"
|
||||
}, blockInformation.anchor)), positionLabel && isSticky && (0,external_React_.createElement)(external_wp_components_namespaceObject.Tooltip, {
|
||||
}, blockInformation.anchor)), isConnected && canBindBlock(blockName) && (0,external_React_.createElement)("span", {
|
||||
className: "block-editor-list-view-block-select-button__bindings"
|
||||
}, (0,external_React_.createElement)(build_module_icon, {
|
||||
icon: library_connection
|
||||
})), positionLabel && isSticky && (0,external_React_.createElement)(external_wp_components_namespaceObject.Tooltip, {
|
||||
text: positionLabel
|
||||
}, (0,external_React_.createElement)(build_module_icon, {
|
||||
icon: pin_small
|
||||
@ -53858,6 +54142,7 @@ function useListViewExpandSelectedItem({
|
||||
function use_clipboard_handler_useClipboardHandler({
|
||||
selectBlock
|
||||
}) {
|
||||
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
|
||||
const {
|
||||
getBlockOrder,
|
||||
getBlockRootClientId,
|
||||
@ -53934,7 +54219,7 @@ function use_clipboard_handler_useClipboardHandler({
|
||||
}
|
||||
notifyCopy(event.type, selectedBlockClientIds);
|
||||
const blocks = getBlocksByClientId(selectedBlockClientIds);
|
||||
setClipboardBlocks(event, blocks);
|
||||
setClipboardBlocks(event, blocks, registry);
|
||||
}
|
||||
if (event.type === 'cut') {
|
||||
var _getPreviousBlockClie;
|
||||
@ -57645,9 +57930,9 @@ const URLPopover = (0,external_wp_element_namespaceObject.forwardRef)(({
|
||||
onClick: toggleSettingsVisibility,
|
||||
"aria-expanded": isSettingsExpanded,
|
||||
size: "compact"
|
||||
})), showSettings && (0,external_React_.createElement)("div", {
|
||||
className: "block-editor-url-popover__row block-editor-url-popover__settings"
|
||||
}, renderSettings())), additionalControls && !showSettings && (0,external_React_.createElement)("div", {
|
||||
}))), showSettings && (0,external_React_.createElement)("div", {
|
||||
className: "block-editor-url-popover__settings"
|
||||
}, renderSettings()), additionalControls && !showSettings && (0,external_React_.createElement)("div", {
|
||||
className: "block-editor-url-popover__additional-controls"
|
||||
}, additionalControls));
|
||||
});
|
||||
@ -59663,7 +59948,7 @@ function RichTextWrapper({
|
||||
const disableBoundBlocks = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
// Disable Rich Text editing if block bindings specify that.
|
||||
let _disableBoundBlocks = false;
|
||||
if (blockBindings && blockName in BLOCK_BINDINGS_ALLOWED_BLOCKS) {
|
||||
if (blockBindings && canBindBlock(blockName)) {
|
||||
const blockTypeAttributes = (0,external_wp_blocks_namespaceObject.getBlockType)(blockName).attributes;
|
||||
const {
|
||||
getBlockBindingsSource
|
||||
@ -67196,6 +67481,7 @@ function ResolutionTool({
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
@ -67228,6 +67514,7 @@ lock(privateApis, {
|
||||
usesContextKey: usesContextKey,
|
||||
useFlashEditableBlocks: useFlashEditableBlocks,
|
||||
selectBlockPatternsKey: selectBlockPatternsKey,
|
||||
requiresWrapperOnCopy: requiresWrapperOnCopy,
|
||||
PrivateRichText: PrivateRichText
|
||||
});
|
||||
|
||||
|
4
wp-includes/js/dist/block-editor.min.js
vendored
4
wp-includes/js/dist/block-editor.min.js
vendored
File diff suppressed because one or more lines are too long
231
wp-includes/js/dist/block-library.js
vendored
231
wp-includes/js/dist/block-library.js
vendored
@ -26081,7 +26081,9 @@ function image_Image({
|
||||
lockUrlControls = false,
|
||||
lockHrefControls = false,
|
||||
lockAltControls = false,
|
||||
lockAltControlsMessage,
|
||||
lockTitleControls = false,
|
||||
lockTitleControlsMessage,
|
||||
lockCaption = false
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
if (!isSingleSelected) {
|
||||
@ -26113,7 +26115,11 @@ function image_Image({
|
||||
// This is a temporary solution until we support overriding the caption on the frontend.
|
||||
hasParentPattern,
|
||||
lockAltControls: !!altBinding && (!altBindingSource || altBindingSource?.lockAttributesEditing),
|
||||
lockTitleControls: !!titleBinding && (!titleBindingSource || titleBindingSource?.lockAttributesEditing)
|
||||
lockAltControlsMessage: altBindingSource?.label ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Label of the bindings source. */
|
||||
(0,external_wp_i18n_namespaceObject.__)('Connected to %s'), altBindingSource.label) : (0,external_wp_i18n_namespaceObject.__)('Connected to dynamic data'),
|
||||
lockTitleControls: !!titleBinding && (!titleBindingSource || titleBindingSource?.lockAttributesEditing),
|
||||
lockTitleControlsMessage: titleBindingSource?.label ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Label of the bindings source. */
|
||||
(0,external_wp_i18n_namespaceObject.__)('Connected to %s'), titleBindingSource.label) : (0,external_wp_i18n_namespaceObject.__)('Connected to dynamic data')
|
||||
};
|
||||
}, [clientId, isSingleSelected, metadata?.bindings]);
|
||||
const controls = (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
|
||||
@ -26182,7 +26188,7 @@ function image_Image({
|
||||
value: alt || '',
|
||||
onChange: updateAlt,
|
||||
disabled: lockAltControls,
|
||||
help: lockAltControls ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Connected to a custom field')) : (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
|
||||
help: lockAltControls ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, lockAltControlsMessage) : (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
|
||||
href: "https://www.w3.org/WAI/tutorials/images/decision-tree"
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('Describe the purpose of the image.')), (0,external_React_namespaceObject.createElement)("br", null), (0,external_wp_i18n_namespaceObject.__)('Leave empty if decorative.')),
|
||||
__nextHasNoMarginBottom: true
|
||||
@ -26212,7 +26218,7 @@ function image_Image({
|
||||
value: title || '',
|
||||
onChange: onSetTitle,
|
||||
disabled: lockTitleControls,
|
||||
help: lockTitleControls ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Connected to a custom field')) : (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Describe the role of this image on the page.'), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
|
||||
help: lockTitleControls ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, lockTitleControlsMessage) : (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Describe the role of this image on the page.'), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
|
||||
href: "https://www.w3.org/TR/html52/dom.html#the-title-attribute"
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('(Note: many devices and browsers do not display this text.)')))
|
||||
})
|
||||
@ -26232,7 +26238,7 @@ function image_Image({
|
||||
value: alt || '',
|
||||
onChange: updateAlt,
|
||||
readOnly: lockAltControls,
|
||||
help: lockAltControls ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Connected to a custom field')) : (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
|
||||
help: lockAltControls ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, lockAltControlsMessage) : (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
|
||||
href: "https://www.w3.org/WAI/tutorials/images/decision-tree"
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('Describe the purpose of the image.')), (0,external_React_namespaceObject.createElement)("br", null), (0,external_wp_i18n_namespaceObject.__)('Leave empty if decorative.')),
|
||||
__nextHasNoMarginBottom: true
|
||||
@ -26248,7 +26254,7 @@ function image_Image({
|
||||
value: title || '',
|
||||
onChange: onSetTitle,
|
||||
readOnly: lockTitleControls,
|
||||
help: lockTitleControls ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Connected to a custom field')) : (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Describe the role of this image on the page.'), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
|
||||
help: lockTitleControls ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, lockTitleControlsMessage) : (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Describe the role of this image on the page.'), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
|
||||
href: "https://www.w3.org/TR/html52/dom.html#the-title-attribute"
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('(Note: many devices and browsers do not display this text.)')))
|
||||
})));
|
||||
@ -26724,14 +26730,17 @@ function ImageEdit({
|
||||
|
||||
// Much of this description is duplicated from MediaPlaceholder.
|
||||
const {
|
||||
lockUrlControls = false
|
||||
lockUrlControls = false,
|
||||
lockUrlControlsMessage
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
if (!isSingleSelected) {
|
||||
return {};
|
||||
}
|
||||
const blockBindingsSource = unlock(select(external_wp_blocks_namespaceObject.store)).getBlockBindingsSource(metadata?.bindings?.url?.source);
|
||||
return {
|
||||
lockUrlControls: !!metadata?.bindings?.url && (!blockBindingsSource || blockBindingsSource?.lockAttributesEditing)
|
||||
lockUrlControls: !!metadata?.bindings?.url && (!blockBindingsSource || blockBindingsSource?.lockAttributesEditing),
|
||||
lockUrlControlsMessage: blockBindingsSource?.label ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Label of the bindings source. */
|
||||
(0,external_wp_i18n_namespaceObject.__)('Connected to %s'), blockBindingsSource.label) : (0,external_wp_i18n_namespaceObject.__)('Connected to dynamic data')
|
||||
};
|
||||
}, [isSingleSelected]);
|
||||
const placeholder = content => {
|
||||
@ -26753,7 +26762,7 @@ function ImageEdit({
|
||||
}
|
||||
}, lockUrlControls ? (0,external_React_namespaceObject.createElement)("span", {
|
||||
className: 'block-bindings-media-placeholder-message'
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('Connected to a custom field')) : content);
|
||||
}, lockUrlControlsMessage) : content);
|
||||
};
|
||||
return (0,external_React_namespaceObject.createElement)("figure", {
|
||||
...blockProps
|
||||
@ -29317,39 +29326,6 @@ function useOutdentListItem() {
|
||||
}, []);
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list-item/hooks/use-copy.js
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
function useCopy(clientId) {
|
||||
const {
|
||||
getBlockRootClientId,
|
||||
getBlockName,
|
||||
getBlockAttributes
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
|
||||
return (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
|
||||
function onCopy(event) {
|
||||
// The event propagates through all nested lists, so don't override
|
||||
// when copying nested list items.
|
||||
if (event.clipboardData.getData('__unstableWrapperBlockName')) {
|
||||
return;
|
||||
}
|
||||
const rootClientId = getBlockRootClientId(clientId);
|
||||
event.clipboardData.setData('__unstableWrapperBlockName', getBlockName(rootClientId));
|
||||
event.clipboardData.setData('__unstableWrapperBlockAttributes', JSON.stringify(getBlockAttributes(rootClientId)));
|
||||
}
|
||||
node.addEventListener('copy', onCopy);
|
||||
node.addEventListener('cut', onCopy);
|
||||
return () => {
|
||||
node.removeEventListener('copy', onCopy);
|
||||
node.removeEventListener('cut', onCopy);
|
||||
};
|
||||
}, []);
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list-item/hooks/use-enter.js
|
||||
/**
|
||||
* WordPress dependencies
|
||||
@ -29718,9 +29694,7 @@ function ListItemEdit({
|
||||
placeholder,
|
||||
content
|
||||
} = attributes;
|
||||
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
|
||||
ref: useCopy(clientId)
|
||||
});
|
||||
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
|
||||
const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)(blockProps, {
|
||||
renderAppender: false,
|
||||
__unstableDisableDropZone: true
|
||||
@ -29792,6 +29766,7 @@ const list_item_transforms_transforms = {
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
@ -29849,6 +29824,7 @@ const list_item_metadata = {
|
||||
|
||||
|
||||
|
||||
|
||||
const {
|
||||
name: list_item_name
|
||||
} = list_item_metadata;
|
||||
@ -29863,7 +29839,8 @@ const list_item_settings = {
|
||||
content: attributes.content + attributesToMerge.content
|
||||
};
|
||||
},
|
||||
transforms: list_item_transforms
|
||||
transforms: list_item_transforms,
|
||||
[unlock(external_wp_blockEditor_namespaceObject.privateApis).requiresWrapperOnCopy]: true
|
||||
};
|
||||
const list_item_init = () => initBlock({
|
||||
name: list_item_name,
|
||||
@ -48837,6 +48814,23 @@ const {
|
||||
PARTIAL_SYNCING_SUPPORTED_BLOCKS
|
||||
} = unlock(external_wp_patterns_namespaceObject.privateApis);
|
||||
const fullAlignments = ['full', 'wide', 'left', 'right'];
|
||||
function getLegacyIdMap(blocks, content, nameCount = {}) {
|
||||
let idToClientIdMap = {};
|
||||
for (const block of blocks) {
|
||||
if (block?.innerBlocks?.length) {
|
||||
idToClientIdMap = {
|
||||
...idToClientIdMap,
|
||||
...getLegacyIdMap(block.innerBlocks, content, nameCount)
|
||||
};
|
||||
}
|
||||
const id = block.attributes.metadata?.id;
|
||||
const clientId = block.clientId;
|
||||
if (id && content?.[id]) {
|
||||
idToClientIdMap[clientId] = id;
|
||||
}
|
||||
}
|
||||
return idToClientIdMap;
|
||||
}
|
||||
const useInferredLayout = (blocks, parentLayout) => {
|
||||
const initialInferredAlignmentRef = (0,external_wp_element_namespaceObject.useRef)();
|
||||
return (0,external_wp_element_namespaceObject.useMemo)(() => {
|
||||
@ -48873,23 +48867,26 @@ function hasOverridableBlocks(blocks) {
|
||||
function getOverridableAttributes(block) {
|
||||
return Object.entries(block.attributes.metadata.bindings).filter(([, binding]) => binding.source === 'core/pattern-overrides').map(([attributeKey]) => attributeKey);
|
||||
}
|
||||
function applyInitialContentValuesToInnerBlocks(blocks, content = {}, defaultValues) {
|
||||
function applyInitialContentValuesToInnerBlocks(blocks, content = {}, defaultValues, legacyIdMap) {
|
||||
return blocks.map(block => {
|
||||
const innerBlocks = applyInitialContentValuesToInnerBlocks(block.innerBlocks, content, defaultValues);
|
||||
const blockId = block.attributes.metadata?.id;
|
||||
if (!hasOverridableAttributes(block) || !blockId) return {
|
||||
...block,
|
||||
innerBlocks
|
||||
};
|
||||
var _legacyIdMap$block$cl;
|
||||
const innerBlocks = applyInitialContentValuesToInnerBlocks(block.innerBlocks, content, defaultValues, legacyIdMap);
|
||||
const metadataName = (_legacyIdMap$block$cl = legacyIdMap?.[block.clientId]) !== null && _legacyIdMap$block$cl !== void 0 ? _legacyIdMap$block$cl : block.attributes.metadata?.name;
|
||||
if (!metadataName || !hasOverridableAttributes(block)) {
|
||||
return {
|
||||
...block,
|
||||
innerBlocks
|
||||
};
|
||||
}
|
||||
const attributes = getOverridableAttributes(block);
|
||||
const newAttributes = {
|
||||
...block.attributes
|
||||
};
|
||||
for (const attributeKey of attributes) {
|
||||
var _defaultValues$blockI;
|
||||
(_defaultValues$blockI = defaultValues[blockId]) !== null && _defaultValues$blockI !== void 0 ? _defaultValues$blockI : defaultValues[blockId] = {};
|
||||
defaultValues[blockId][attributeKey] = block.attributes[attributeKey];
|
||||
const contentValues = content[blockId]?.values;
|
||||
var _defaultValues$metada;
|
||||
(_defaultValues$metada = defaultValues[metadataName]) !== null && _defaultValues$metada !== void 0 ? _defaultValues$metada : defaultValues[metadataName] = {};
|
||||
defaultValues[metadataName][attributeKey] = block.attributes[attributeKey];
|
||||
const contentValues = content[metadataName];
|
||||
if (contentValues?.[attributeKey] !== undefined) {
|
||||
newAttributes[attributeKey] = contentValues[attributeKey];
|
||||
}
|
||||
@ -48907,25 +48904,27 @@ function isAttributeEqual(attribute1, attribute2) {
|
||||
}
|
||||
return attribute1 === attribute2;
|
||||
}
|
||||
function getContentValuesFromInnerBlocks(blocks, defaultValues) {
|
||||
function getContentValuesFromInnerBlocks(blocks, defaultValues, legacyIdMap) {
|
||||
/** @type {Record<string, { values: Record<string, unknown>}>} */
|
||||
const content = {};
|
||||
for (const block of blocks) {
|
||||
var _legacyIdMap$block$cl2;
|
||||
if (block.name === block_name) continue;
|
||||
Object.assign(content, getContentValuesFromInnerBlocks(block.innerBlocks, defaultValues));
|
||||
const blockId = block.attributes.metadata?.id;
|
||||
if (!hasOverridableAttributes(block) || !blockId) continue;
|
||||
if (block.innerBlocks.length) {
|
||||
Object.assign(content, getContentValuesFromInnerBlocks(block.innerBlocks, defaultValues, legacyIdMap));
|
||||
}
|
||||
const metadataName = (_legacyIdMap$block$cl2 = legacyIdMap?.[block.clientId]) !== null && _legacyIdMap$block$cl2 !== void 0 ? _legacyIdMap$block$cl2 : block.attributes.metadata?.name;
|
||||
if (!metadataName || !hasOverridableAttributes(block)) {
|
||||
continue;
|
||||
}
|
||||
const attributes = getOverridableAttributes(block);
|
||||
for (const attributeKey of attributes) {
|
||||
if (!isAttributeEqual(block.attributes[attributeKey], defaultValues[blockId][attributeKey])) {
|
||||
var _content$blockId;
|
||||
(_content$blockId = content[blockId]) !== null && _content$blockId !== void 0 ? _content$blockId : content[blockId] = {
|
||||
values: {},
|
||||
blockName: block.name
|
||||
};
|
||||
if (!isAttributeEqual(block.attributes[attributeKey], defaultValues?.[metadataName]?.[attributeKey])) {
|
||||
var _content$metadataName;
|
||||
(_content$metadataName = content[metadataName]) !== null && _content$metadataName !== void 0 ? _content$metadataName : content[metadataName] = {};
|
||||
// TODO: We need a way to represent `undefined` in the serialized overrides.
|
||||
// Also see: https://github.com/WordPress/gutenberg/pull/57249#discussion_r1452987871
|
||||
content[blockId].values[attributeKey] = block.attributes[attributeKey] === undefined ?
|
||||
content[metadataName][attributeKey] = block.attributes[attributeKey] === undefined ?
|
||||
// TODO: We use an empty string to represent undefined for now until
|
||||
// we support a richer format for overrides and the block binding API.
|
||||
// Currently only the `linkTarget` attribute of `core/button` is affected.
|
||||
@ -49018,16 +49017,19 @@ function ReusableBlockEdit({
|
||||
(_editedRecord$blocks$ = editedRecord.blocks?.map(block => (0,external_wp_blocks_namespaceObject.cloneBlock)(block))) !== null && _editedRecord$blocks$ !== void 0 ? _editedRecord$blocks$ : editedRecord.content && typeof editedRecord.content !== 'function' ? (0,external_wp_blocks_namespaceObject.parse)(editedRecord.content) : []
|
||||
);
|
||||
}, [editedRecord.blocks, editedRecord.content]);
|
||||
const legacyIdMap = (0,external_wp_element_namespaceObject.useRef)({});
|
||||
|
||||
// Apply the initial overrides from the pattern block to the inner blocks.
|
||||
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
||||
// Build a map of clientIds to the old nano id system to provide back compat.
|
||||
legacyIdMap.current = getLegacyIdMap(initialBlocks, initialContent.current);
|
||||
defaultContent.current = {};
|
||||
const originalEditingMode = getBlockEditingMode(patternClientId);
|
||||
// Replace the contents of the blocks with the overrides.
|
||||
registry.batch(() => {
|
||||
setBlockEditingMode(patternClientId, 'default');
|
||||
syncDerivedUpdates(() => {
|
||||
replaceInnerBlocks(patternClientId, applyInitialContentValuesToInnerBlocks(initialBlocks, initialContent.current, defaultContent.current));
|
||||
replaceInnerBlocks(patternClientId, applyInitialContentValuesToInnerBlocks(initialBlocks, initialContent.current, defaultContent.current, legacyIdMap.current));
|
||||
});
|
||||
setBlockEditingMode(patternClientId, originalEditingMode);
|
||||
});
|
||||
@ -49063,7 +49065,7 @@ function ReusableBlockEdit({
|
||||
prevBlocks = blocks;
|
||||
syncDerivedUpdates(() => {
|
||||
setAttributes({
|
||||
content: getContentValuesFromInnerBlocks(blocks, defaultContent.current)
|
||||
content: getContentValuesFromInnerBlocks(blocks, defaultContent.current, legacyIdMap.current)
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -49106,7 +49108,73 @@ function ReusableBlockEdit({
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/deprecated.js
|
||||
// v1: Migrate and rename the `overrides` attribute to the `content` attribute.
|
||||
const isObject = obj => typeof obj === 'object' && !Array.isArray(obj) && obj !== null;
|
||||
|
||||
// v2: Migrate to a more condensed version of the 'content' attribute attribute.
|
||||
const block_deprecated_v2 = {
|
||||
attributes: {
|
||||
ref: {
|
||||
type: 'number'
|
||||
},
|
||||
content: {
|
||||
type: 'object'
|
||||
}
|
||||
},
|
||||
supports: {
|
||||
customClassName: false,
|
||||
html: false,
|
||||
inserter: false,
|
||||
renaming: false
|
||||
},
|
||||
// Force this deprecation to run whenever there's a values sub-property that's an object.
|
||||
//
|
||||
// This could fail in the future if a block ever has binding to a `values` attribute.
|
||||
// Some extra protection is added to ensure `values` is an object, but this only reduces
|
||||
// the likelihood, it doesn't solve it completely.
|
||||
isEligible({
|
||||
content
|
||||
}) {
|
||||
return !!content && Object.keys(content).every(contentKey => content[contentKey].values && isObject(content[contentKey].values));
|
||||
},
|
||||
/*
|
||||
* Old attribute format:
|
||||
* content: {
|
||||
* "V98q_x": {
|
||||
* // The attribute values are now stored as a 'values' sub-property.
|
||||
* values: { content: 'My content value' },
|
||||
* // ... additional metadata, like the block name can be stored here.
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* New attribute format:
|
||||
* content: {
|
||||
* "V98q_x": {
|
||||
* content: 'My content value',
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
migrate(attributes) {
|
||||
const {
|
||||
content,
|
||||
...retainedAttributes
|
||||
} = attributes;
|
||||
if (content && Object.keys(content).length) {
|
||||
const updatedContent = {
|
||||
...content
|
||||
};
|
||||
for (const contentKey in content) {
|
||||
updatedContent[contentKey] = content[contentKey].values;
|
||||
}
|
||||
return {
|
||||
...retainedAttributes,
|
||||
content: updatedContent
|
||||
};
|
||||
}
|
||||
return attributes;
|
||||
}
|
||||
};
|
||||
|
||||
// v1: Rename the `overrides` attribute to the `content` attribute.
|
||||
const block_deprecated_v1 = {
|
||||
attributes: {
|
||||
ref: {
|
||||
@ -49133,16 +49201,12 @@ const block_deprecated_v1 = {
|
||||
* overrides: {
|
||||
* // An key is an id that represents a block.
|
||||
* // The values are the attribute values of the block.
|
||||
* "V98q_x": { content: 'dwefwefwefwe' }
|
||||
* "V98q_x": { content: 'My content value' }
|
||||
* }
|
||||
*
|
||||
* New attribute format:
|
||||
* content: {
|
||||
* "V98q_x": {
|
||||
* // The attribute values are now stored as a 'values' sub-property.
|
||||
* values: { content: 'dwefwefwefwe' },
|
||||
* // ... additional metadata, like the block name can be stored here.
|
||||
* }
|
||||
* "V98q_x": { content: 'My content value' }
|
||||
* }
|
||||
*
|
||||
*/
|
||||
@ -49153,9 +49217,7 @@ const block_deprecated_v1 = {
|
||||
} = attributes;
|
||||
const content = {};
|
||||
Object.keys(overrides).forEach(id => {
|
||||
content[id] = {
|
||||
values: overrides[id]
|
||||
};
|
||||
content[id] = overrides[id];
|
||||
});
|
||||
return {
|
||||
...retainedAttributes,
|
||||
@ -49163,7 +49225,7 @@ const block_deprecated_v1 = {
|
||||
};
|
||||
}
|
||||
};
|
||||
/* harmony default export */ const block_deprecated = ([block_deprecated_v1]);
|
||||
/* harmony default export */ const block_deprecated = ([block_deprecated_v2, block_deprecated_v1]);
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/index.js
|
||||
/**
|
||||
@ -51006,11 +51068,16 @@ const SiteLogo = ({
|
||||
});
|
||||
}
|
||||
}, imgWrapper);
|
||||
|
||||
// Support the previous location for the Site Icon settings. To be removed
|
||||
// when the required WP core version for Gutenberg is >= 6.5.0.
|
||||
const shouldUseNewUrl = !window?.__experimentalUseCustomizerSiteLogoUrl;
|
||||
const siteIconSettingsUrl = shouldUseNewUrl ? siteUrl + '/wp-admin/options-general.php' : siteUrl + '/wp-admin/customize.php?autofocus[section]=title_tagline';
|
||||
const syncSiteIconHelpText = (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. To use a custom icon that is different from your site logo, use the <a>Site Icon settings</a>.'), {
|
||||
a:
|
||||
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
||||
(0,external_React_namespaceObject.createElement)("a", {
|
||||
href: siteUrl + '/wp-admin/customize.php?autofocus[section]=title_tagline',
|
||||
href: siteIconSettingsUrl,
|
||||
target: "_blank",
|
||||
rel: "noopener noreferrer"
|
||||
})
|
||||
@ -51045,7 +51112,7 @@ const SiteLogo = ({
|
||||
checked: linkTarget === '_blank'
|
||||
})), canUserEdit && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
|
||||
__nextHasNoMarginBottom: true,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Use as site icon'),
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Use as Site Icon'),
|
||||
onChange: value => {
|
||||
setAttributes({
|
||||
shouldSyncIcon: value
|
||||
|
4
wp-includes/js/dist/block-library.min.js
vendored
4
wp-includes/js/dist/block-library.min.js
vendored
File diff suppressed because one or more lines are too long
194
wp-includes/js/dist/edit-site.js
vendored
194
wp-includes/js/dist/edit-site.js
vendored
@ -19672,10 +19672,13 @@ function SingleSelectionCheckbox({
|
||||
return (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
|
||||
className: "dataviews-view-table-selection-checkbox",
|
||||
__nextHasNoMarginBottom: true,
|
||||
checked: isSelected,
|
||||
label: selectionLabel,
|
||||
disabled: disabled,
|
||||
"aria-disabled": disabled,
|
||||
checked: isSelected,
|
||||
onChange: () => {
|
||||
if (disabled) {
|
||||
return;
|
||||
}
|
||||
if (!isSelected) {
|
||||
onSelectionChange(data.filter(_item => {
|
||||
const itemId = getItemId?.(_item);
|
||||
@ -23883,7 +23886,8 @@ function ResizableFrame({
|
||||
onResizeStop: handleResizeStop,
|
||||
className: classnames_default()('edit-site-resizable-frame__inner', {
|
||||
'is-resizing': isResizing
|
||||
})
|
||||
}),
|
||||
showHandle: false // Do not show the default handle, as we're using a custom one.
|
||||
}, (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
|
||||
className: "edit-site-resizable-frame__inner-content",
|
||||
animate: {
|
||||
@ -26674,7 +26678,14 @@ async function loadFontFaceInBrowser(fontFace, source, addTo = 'all') {
|
||||
iframeDocument.fonts.add(loadedFace);
|
||||
}
|
||||
}
|
||||
function getDisplaySrcFromFontFace(input, urlPrefix) {
|
||||
|
||||
/**
|
||||
* Retrieves the display source from a font face src.
|
||||
*
|
||||
* @param {string|string[]} input - The font face src.
|
||||
* @return {string|undefined} The display source or undefined if the input is invalid.
|
||||
*/
|
||||
function getDisplaySrcFromFontFace(input) {
|
||||
if (!input) {
|
||||
return;
|
||||
}
|
||||
@ -26684,9 +26695,9 @@ function getDisplaySrcFromFontFace(input, urlPrefix) {
|
||||
} else {
|
||||
src = input;
|
||||
}
|
||||
// If it is a theme font, we need to make the url absolute
|
||||
if (src.startsWith('file:.') && urlPrefix) {
|
||||
src = src.replace('file:.', urlPrefix);
|
||||
// It's expected theme fonts will already be loaded in the browser.
|
||||
if (src.startsWith('file:.')) {
|
||||
return;
|
||||
}
|
||||
if (!isUrlEncoded(src)) {
|
||||
src = encodeURI(src);
|
||||
@ -27010,18 +27021,6 @@ function FontLibraryProvider({
|
||||
|
||||
// Demo
|
||||
const [loadedFontUrls] = (0,external_wp_element_namespaceObject.useState)(new Set());
|
||||
|
||||
// Theme data
|
||||
const {
|
||||
site,
|
||||
currentTheme
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
return {
|
||||
site: select(external_wp_coreData_namespaceObject.store).getSite(),
|
||||
currentTheme: select(external_wp_coreData_namespaceObject.store).getCurrentTheme()
|
||||
};
|
||||
});
|
||||
const themeUrl = site?.url + '/wp-content/themes/' + currentTheme?.stylesheet;
|
||||
const getAvailableFontsOutline = availableFontFamilies => {
|
||||
const outline = availableFontFamilies.reduce((acc, font) => {
|
||||
const availableFontFaces = font?.fontFace && font.fontFace?.length > 0 ? font?.fontFace.map(face => `${face.fontStyle + face.fontWeight}`) : ['normal400']; // If the font doesn't have fontFace, we assume it is a system font and we add the defaults: normal 400
|
||||
@ -27049,59 +27048,65 @@ function FontLibraryProvider({
|
||||
const getFontFacesActivated = (slug, source) => {
|
||||
return getActivatedFontsOutline(source)[slug] || [];
|
||||
};
|
||||
async function installFont(fontFamilyToInstall) {
|
||||
async function installFonts(fontFamiliesToInstall) {
|
||||
setIsInstalling(true);
|
||||
try {
|
||||
// Get the font family if it already exists.
|
||||
let installedFontFamily = await fetchGetFontFamilyBySlug(fontFamilyToInstall.slug);
|
||||
const fontFamiliesToActivate = [];
|
||||
let installationErrors = [];
|
||||
for (const fontFamilyToInstall of fontFamiliesToInstall) {
|
||||
let isANewFontFamily = false;
|
||||
|
||||
// Otherwise create it.
|
||||
if (!installedFontFamily) {
|
||||
// Prepare font family form data to install.
|
||||
installedFontFamily = await fetchInstallFontFamily(makeFontFamilyFormData(fontFamilyToInstall));
|
||||
// Get the font family if it already exists.
|
||||
let installedFontFamily = await fetchGetFontFamilyBySlug(fontFamilyToInstall.slug);
|
||||
|
||||
// Otherwise create it.
|
||||
if (!installedFontFamily) {
|
||||
isANewFontFamily = true;
|
||||
// Prepare font family form data to install.
|
||||
installedFontFamily = await fetchInstallFontFamily(makeFontFamilyFormData(fontFamilyToInstall));
|
||||
}
|
||||
|
||||
// Collect font faces that have already been installed (to be activated later)
|
||||
const alreadyInstalledFontFaces = installedFontFamily.fontFace && fontFamilyToInstall.fontFace ? installedFontFamily.fontFace.filter(fontFaceToInstall => checkFontFaceInstalled(fontFaceToInstall, fontFamilyToInstall.fontFace)) : [];
|
||||
|
||||
// Filter out Font Faces that have already been installed (so that they are not re-installed)
|
||||
if (installedFontFamily.fontFace && fontFamilyToInstall.fontFace) {
|
||||
fontFamilyToInstall.fontFace = fontFamilyToInstall.fontFace.filter(fontFaceToInstall => !checkFontFaceInstalled(fontFaceToInstall, installedFontFamily.fontFace));
|
||||
}
|
||||
|
||||
// Install the fonts (upload the font files to the server and create the post in the database).
|
||||
let sucessfullyInstalledFontFaces = [];
|
||||
let unsucessfullyInstalledFontFaces = [];
|
||||
if (fontFamilyToInstall?.fontFace?.length > 0) {
|
||||
const response = await batchInstallFontFaces(installedFontFamily.id, makeFontFacesFormData(fontFamilyToInstall));
|
||||
sucessfullyInstalledFontFaces = response?.successes;
|
||||
unsucessfullyInstalledFontFaces = response?.errors;
|
||||
}
|
||||
|
||||
// Use the sucessfully installed font faces
|
||||
// As well as any font faces that were already installed (those will be activated)
|
||||
if (sucessfullyInstalledFontFaces?.length > 0 || alreadyInstalledFontFaces?.length > 0) {
|
||||
fontFamilyToInstall.fontFace = [...sucessfullyInstalledFontFaces, ...alreadyInstalledFontFaces];
|
||||
fontFamiliesToActivate.push(fontFamilyToInstall);
|
||||
} else if (isANewFontFamily) {
|
||||
// If the font family is new, delete it to avoid having font families without font faces.
|
||||
await fetchUninstallFontFamily(installedFontFamily.id);
|
||||
}
|
||||
installationErrors = installationErrors.concat(unsucessfullyInstalledFontFaces);
|
||||
}
|
||||
if (fontFamiliesToActivate.length > 0) {
|
||||
// Activate the font family (add the font family to the global styles).
|
||||
activateCustomFontFamilies(fontFamiliesToActivate);
|
||||
|
||||
// Collect font faces that have already been installed (to be activated later)
|
||||
const alreadyInstalledFontFaces = installedFontFamily.fontFace && fontFamilyToInstall.fontFace ? installedFontFamily.fontFace.filter(fontFaceToInstall => checkFontFaceInstalled(fontFaceToInstall, fontFamilyToInstall.fontFace)) : [];
|
||||
|
||||
// Filter out Font Faces that have already been installed (so that they are not re-installed)
|
||||
if (installedFontFamily.fontFace && fontFamilyToInstall.fontFace) {
|
||||
fontFamilyToInstall.fontFace = fontFamilyToInstall.fontFace.filter(fontFaceToInstall => !checkFontFaceInstalled(fontFaceToInstall, installedFontFamily.fontFace));
|
||||
// Save the global styles to the database.
|
||||
await saveSpecifiedEntityEdits('root', 'globalStyles', globalStylesId, ['settings.typography.fontFamilies']);
|
||||
refreshLibrary();
|
||||
}
|
||||
|
||||
// Install the fonts (upload the font files to the server and create the post in the database).
|
||||
let sucessfullyInstalledFontFaces = [];
|
||||
let unsucessfullyInstalledFontFaces = [];
|
||||
if (fontFamilyToInstall?.fontFace?.length > 0) {
|
||||
const response = await batchInstallFontFaces(installedFontFamily.id, makeFontFacesFormData(fontFamilyToInstall));
|
||||
sucessfullyInstalledFontFaces = response?.successes;
|
||||
unsucessfullyInstalledFontFaces = response?.errors;
|
||||
}
|
||||
const detailedErrorMessage = unsucessfullyInstalledFontFaces.reduce((errorMessageCollection, error) => {
|
||||
return `${errorMessageCollection} ${error.message}`;
|
||||
}, '');
|
||||
|
||||
// If there were no successes and nothing already installed then we don't need to activate anything and can bounce now.
|
||||
if (fontFamilyToInstall?.fontFace?.length > 0 && sucessfullyInstalledFontFaces.length === 0 && alreadyInstalledFontFaces.length === 0) {
|
||||
if (installationErrors.length > 0) {
|
||||
throw new Error((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Specific error message returned from server. */
|
||||
(0,external_wp_i18n_namespaceObject.__)('No font faces were installed. %s'), detailedErrorMessage));
|
||||
}
|
||||
|
||||
// Use the sucessfully installed font faces
|
||||
// As well as any font faces that were already installed (those will be activated)
|
||||
if (sucessfullyInstalledFontFaces?.length > 0 || alreadyInstalledFontFaces?.length > 0) {
|
||||
fontFamilyToInstall.fontFace = [...sucessfullyInstalledFontFaces, ...alreadyInstalledFontFaces];
|
||||
}
|
||||
|
||||
// Activate the font family (add the font family to the global styles).
|
||||
activateCustomFontFamilies([fontFamilyToInstall]);
|
||||
|
||||
// Save the global styles to the database.
|
||||
saveSpecifiedEntityEdits('root', 'globalStyles', globalStylesId, ['settings.typography.fontFamilies']);
|
||||
refreshLibrary();
|
||||
if (unsucessfullyInstalledFontFaces.length > 0) {
|
||||
throw new Error((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Specific error message returned from server. */
|
||||
(0,external_wp_i18n_namespaceObject.__)('Some font faces were installed. There were some errors. %s'), detailedErrorMessage));
|
||||
(0,external_wp_i18n_namespaceObject.__)('There were some errors installing fonts. %s'), installationErrors.reduce((errorMessageCollection, error) => {
|
||||
return `${errorMessageCollection} ${error.message}`;
|
||||
}, '')));
|
||||
}
|
||||
} finally {
|
||||
setIsInstalling(false);
|
||||
@ -27143,11 +27148,10 @@ function FontLibraryProvider({
|
||||
};
|
||||
const activateCustomFontFamilies = fontsToAdd => {
|
||||
// Merge the existing custom fonts with the new fonts.
|
||||
const newCustomFonts = mergeFontFamilies(fontFamilies?.custom, fontsToAdd);
|
||||
// Activate the fonts by set the new custom fonts array.
|
||||
setFontFamilies({
|
||||
...fontFamilies,
|
||||
custom: newCustomFonts
|
||||
custom: mergeFontFamilies(fontFamilies?.custom, fontsToAdd)
|
||||
});
|
||||
// Add custom fonts to the browser.
|
||||
fontsToAdd.forEach(font => {
|
||||
@ -27176,7 +27180,7 @@ function FontLibraryProvider({
|
||||
// If the font doesn't have a src, don't load it.
|
||||
if (!fontFace.src) return;
|
||||
// Get the src of the font.
|
||||
const src = getDisplaySrcFromFontFace(fontFace.src, themeUrl);
|
||||
const src = getDisplaySrcFromFontFace(fontFace.src);
|
||||
// If the font is already loaded, don't load it again.
|
||||
if (!src || loadedFontUrls.has(src)) return;
|
||||
// Load the font in the browser.
|
||||
@ -27221,7 +27225,7 @@ function FontLibraryProvider({
|
||||
isFontActivated,
|
||||
getFontFacesActivated,
|
||||
loadFontFaceAsset,
|
||||
installFont,
|
||||
installFonts,
|
||||
uninstallFontFamily,
|
||||
toggleActivateFont,
|
||||
getAvailableFontsOutline,
|
||||
@ -27485,6 +27489,8 @@ function sortFontFaces(faces) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
@ -27513,7 +27519,14 @@ function InstalledFonts() {
|
||||
setNotice
|
||||
} = (0,external_wp_element_namespaceObject.useContext)(FontLibraryContext);
|
||||
const [isConfirmDeleteOpen, setIsConfirmDeleteOpen] = (0,external_wp_element_namespaceObject.useState)(false);
|
||||
const shouldDisplayDeleteButton = !!libraryFontSelected && libraryFontSelected?.source !== 'theme';
|
||||
const customFontFamilyId = libraryFontSelected?.source === 'custom' && libraryFontSelected?.id;
|
||||
const canUserDelete = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
const {
|
||||
canUser
|
||||
} = select(external_wp_coreData_namespaceObject.store);
|
||||
return customFontFamilyId && canUser('delete', 'font-families', customFontFamilyId);
|
||||
}, [customFontFamilyId]);
|
||||
const shouldDisplayDeleteButton = !!libraryFontSelected && libraryFontSelected?.source !== 'theme' && canUserDelete;
|
||||
const handleUninstallClick = () => {
|
||||
setIsConfirmDeleteOpen(true);
|
||||
};
|
||||
@ -27858,7 +27871,7 @@ function FontCollection({
|
||||
const {
|
||||
collections,
|
||||
getFontCollection,
|
||||
installFont,
|
||||
installFonts,
|
||||
isInstalling,
|
||||
notice,
|
||||
setNotice
|
||||
@ -27971,7 +27984,7 @@ function FontCollection({
|
||||
return;
|
||||
}
|
||||
try {
|
||||
await installFont(fontFamily);
|
||||
await installFonts([fontFamily]);
|
||||
setNotice({
|
||||
type: 'success',
|
||||
message: (0,external_wp_i18n_namespaceObject.__)('Fonts were installed successfully.')
|
||||
@ -28025,10 +28038,10 @@ function FontCollection({
|
||||
path: "/"
|
||||
}, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||
justify: "space-between"
|
||||
}, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
|
||||
}, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
|
||||
level: 2,
|
||||
size: 13
|
||||
}, selectedCollection.name), (0,external_React_.createElement)(ActionsComponent, null)), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, selectedCollection.description), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
|
||||
}, selectedCollection.name), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, selectedCollection.description)), (0,external_React_.createElement)(ActionsComponent, null)), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
|
||||
margin: 4
|
||||
}), (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalInputControl, {
|
||||
value: filters.search,
|
||||
@ -32051,7 +32064,7 @@ const {
|
||||
} = unlock(external_wp_components_namespaceObject.privateApis);
|
||||
function UploadFonts() {
|
||||
const {
|
||||
installFont,
|
||||
installFonts,
|
||||
notice,
|
||||
setNotice
|
||||
} = (0,external_wp_element_namespaceObject.useContext)(FontLibraryContext);
|
||||
@ -32155,16 +32168,8 @@ function UploadFonts() {
|
||||
*/
|
||||
const handleInstall = async fontFaces => {
|
||||
const fontFamilies = makeFamiliesFromFaces(fontFaces);
|
||||
if (fontFamilies.length > 1) {
|
||||
setNotice({
|
||||
type: 'error',
|
||||
message: (0,external_wp_i18n_namespaceObject.__)('Variants from only one font family can be uploaded at a time.')
|
||||
});
|
||||
setIsUploading(false);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
await installFont(fontFamilies[0]);
|
||||
await installFonts(fontFamilies);
|
||||
setNotice({
|
||||
type: 'success',
|
||||
message: (0,external_wp_i18n_namespaceObject.__)('Fonts were installed successfully.')
|
||||
@ -32215,6 +32220,8 @@ function UploadFonts() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
@ -32226,13 +32233,14 @@ function UploadFonts() {
|
||||
const {
|
||||
Tabs: font_library_modal_Tabs
|
||||
} = unlock(external_wp_components_namespaceObject.privateApis);
|
||||
const DEFAULT_TABS = [{
|
||||
const DEFAULT_TAB = {
|
||||
id: 'installed-fonts',
|
||||
title: (0,external_wp_i18n_namespaceObject.__)('Library')
|
||||
}, {
|
||||
};
|
||||
const UPLOAD_TAB = {
|
||||
id: 'upload-fonts',
|
||||
title: (0,external_wp_i18n_namespaceObject.__)('Upload')
|
||||
}];
|
||||
};
|
||||
const tabsFromCollections = collections => collections.map(({
|
||||
slug,
|
||||
name
|
||||
@ -32248,7 +32256,17 @@ function FontLibraryModal({
|
||||
collections,
|
||||
setNotice
|
||||
} = (0,external_wp_element_namespaceObject.useContext)(FontLibraryContext);
|
||||
const tabs = [...DEFAULT_TABS, ...tabsFromCollections(collections || [])];
|
||||
const canUserCreate = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
const {
|
||||
canUser
|
||||
} = select(external_wp_coreData_namespaceObject.store);
|
||||
return canUser('create', 'font-families');
|
||||
}, []);
|
||||
const tabs = [DEFAULT_TAB];
|
||||
if (canUserCreate) {
|
||||
tabs.push(UPLOAD_TAB);
|
||||
tabs.push(...tabsFromCollections(collections || []));
|
||||
}
|
||||
|
||||
// Reset notice when new tab is selected.
|
||||
const onSelect = () => {
|
||||
|
6
wp-includes/js/dist/edit-site.min.js
vendored
6
wp-includes/js/dist/edit-site.min.js
vendored
File diff suppressed because one or more lines are too long
25
wp-includes/js/dist/editor.js
vendored
25
wp-includes/js/dist/editor.js
vendored
@ -5307,7 +5307,8 @@ unlock(store_store).registerPrivateSelectors(private_selectors_namespaceObject);
|
||||
};
|
||||
return {
|
||||
placeholder: metaKey,
|
||||
useValue: [metaValue, updateMetaValue]
|
||||
value: metaValue,
|
||||
updateValue: updateMetaValue
|
||||
};
|
||||
}
|
||||
});
|
||||
@ -5500,7 +5501,7 @@ function setDefaultCompleters(completers = []) {
|
||||
|
||||
;// CONCATENATED MODULE: external ["wp","patterns"]
|
||||
const external_wp_patterns_namespaceObject = window["wp"]["patterns"];
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/hooks/pattern-partial-syncing.js
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/hooks/pattern-overrides.js
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
@ -5517,7 +5518,7 @@ const external_wp_patterns_namespaceObject = window["wp"]["patterns"];
|
||||
|
||||
|
||||
const {
|
||||
PartialSyncingControls,
|
||||
useSetPatternBindings,
|
||||
ResetOverridesControl,
|
||||
PATTERN_TYPES,
|
||||
PARTIAL_SYNCING_SUPPORTED_BLOCKS
|
||||
@ -5532,14 +5533,21 @@ const {
|
||||
*
|
||||
* @return {Component} Wrapped component.
|
||||
*/
|
||||
const withPartialSyncingControls = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => {
|
||||
const withPatternOverrideControls = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => {
|
||||
const isSupportedBlock = Object.keys(PARTIAL_SYNCING_SUPPORTED_BLOCKS).includes(props.name);
|
||||
return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(BlockEdit, {
|
||||
...props
|
||||
}), isSupportedBlock && (0,external_React_.createElement)(BindingUpdater, {
|
||||
...props
|
||||
}), props.isSelected && isSupportedBlock && (0,external_React_.createElement)(ControlsWithStoreSubscription, {
|
||||
...props
|
||||
}));
|
||||
});
|
||||
function BindingUpdater(props) {
|
||||
const postType = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getCurrentPostType(), []);
|
||||
useSetPatternBindings(props, postType);
|
||||
return null;
|
||||
}
|
||||
|
||||
// Split into a separate component to avoid a store subscription
|
||||
// on every block.
|
||||
@ -5548,15 +5556,12 @@ function ControlsWithStoreSubscription(props) {
|
||||
const isEditingPattern = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getCurrentPostType() === PATTERN_TYPES.user, []);
|
||||
const bindings = props.attributes.metadata?.bindings;
|
||||
const hasPatternBindings = !!bindings && Object.values(bindings).some(binding => binding.source === 'core/pattern-overrides');
|
||||
const shouldShowPartialSyncingControls = isEditingPattern && blockEditingMode === 'default';
|
||||
const shouldShowResetOverridesControl = !isEditingPattern && !!props.attributes.metadata?.id && blockEditingMode !== 'disabled' && hasPatternBindings;
|
||||
return (0,external_React_.createElement)(external_React_.Fragment, null, shouldShowPartialSyncingControls && (0,external_React_.createElement)(PartialSyncingControls, {
|
||||
...props
|
||||
}), shouldShowResetOverridesControl && (0,external_React_.createElement)(ResetOverridesControl, {
|
||||
const shouldShowResetOverridesControl = !isEditingPattern && !!props.attributes.metadata?.name && blockEditingMode !== 'disabled' && hasPatternBindings;
|
||||
return (0,external_React_.createElement)(external_React_.Fragment, null, shouldShowResetOverridesControl && (0,external_React_.createElement)(ResetOverridesControl, {
|
||||
...props
|
||||
}));
|
||||
}
|
||||
(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/with-partial-syncing-controls', withPartialSyncingControls);
|
||||
(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/with-pattern-override-controls', withPatternOverrideControls);
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/hooks/index.js
|
||||
/**
|
||||
|
2
wp-includes/js/dist/editor.min.js
vendored
2
wp-includes/js/dist/editor.min.js
vendored
File diff suppressed because one or more lines are too long
171
wp-includes/js/dist/patterns.js
vendored
171
wp-includes/js/dist/patterns.js
vendored
@ -1125,133 +1125,90 @@ function RenamePatternCategoryModal({
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('Save'))))));
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/nanoid/index.browser.js
|
||||
|
||||
let random = bytes => crypto.getRandomValues(new Uint8Array(bytes))
|
||||
let customRandom = (alphabet, defaultSize, getRandom) => {
|
||||
let mask = (2 << (Math.log(alphabet.length - 1) / Math.LN2)) - 1
|
||||
let step = -~((1.6 * mask * defaultSize) / alphabet.length)
|
||||
return (size = defaultSize) => {
|
||||
let id = ''
|
||||
while (true) {
|
||||
let bytes = getRandom(step)
|
||||
let j = step
|
||||
while (j--) {
|
||||
id += alphabet[bytes[j] & mask] || ''
|
||||
if (id.length === size) return id
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
let customAlphabet = (alphabet, size = 21) =>
|
||||
customRandom(alphabet, size, random)
|
||||
let nanoid = (size = 21) =>
|
||||
crypto.getRandomValues(new Uint8Array(size)).reduce((id, byte) => {
|
||||
byte &= 63
|
||||
if (byte < 36) {
|
||||
id += byte.toString(36)
|
||||
} else if (byte < 62) {
|
||||
id += (byte - 26).toString(36).toUpperCase()
|
||||
} else if (byte > 62) {
|
||||
id += '-'
|
||||
} else {
|
||||
id += '_'
|
||||
}
|
||||
return id
|
||||
}, '')
|
||||
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/partial-syncing-controls.js
|
||||
|
||||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/use-set-pattern-bindings.js
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
function PartialSyncingControls({
|
||||
function removeBindings(bindings, syncedAttributes) {
|
||||
let updatedBindings = {};
|
||||
for (const attributeName of syncedAttributes) {
|
||||
// Omit any pattern override bindings from the `updatedBindings` object.
|
||||
if (bindings?.[attributeName]?.source !== 'core/pattern-overrides' && bindings?.[attributeName]?.source !== undefined) {
|
||||
updatedBindings[attributeName] = bindings[attributeName];
|
||||
}
|
||||
}
|
||||
if (!Object.keys(updatedBindings).length) {
|
||||
updatedBindings = undefined;
|
||||
}
|
||||
return updatedBindings;
|
||||
}
|
||||
function addBindings(bindings, syncedAttributes) {
|
||||
const updatedBindings = {
|
||||
...bindings
|
||||
};
|
||||
for (const attributeName of syncedAttributes) {
|
||||
if (!bindings?.[attributeName]) {
|
||||
updatedBindings[attributeName] = {
|
||||
source: 'core/pattern-overrides'
|
||||
};
|
||||
}
|
||||
}
|
||||
return updatedBindings;
|
||||
}
|
||||
function useSetPatternBindings({
|
||||
name,
|
||||
attributes,
|
||||
setAttributes
|
||||
}) {
|
||||
const syncedAttributes = PARTIAL_SYNCING_SUPPORTED_BLOCKS[name];
|
||||
const attributeSources = syncedAttributes.map(attributeName => attributes.metadata?.bindings?.[attributeName]?.source);
|
||||
const isConnectedToOtherSources = attributeSources.every(source => source && source !== 'core/pattern-overrides');
|
||||
}, currentPostType) {
|
||||
var _attributes$metadata$, _usePrevious;
|
||||
const metadataName = (_attributes$metadata$ = attributes?.metadata?.name) !== null && _attributes$metadata$ !== void 0 ? _attributes$metadata$ : '';
|
||||
const prevMetadataName = (_usePrevious = (0,external_wp_compose_namespaceObject.usePrevious)(metadataName)) !== null && _usePrevious !== void 0 ? _usePrevious : '';
|
||||
const bindings = attributes?.metadata?.bindings;
|
||||
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
||||
// Bindings should only be created when editing a wp_block post type,
|
||||
// and also when there's a change to the user-given name for the block.
|
||||
if (currentPostType !== 'wp_block' || metadataName === prevMetadataName) {
|
||||
return;
|
||||
}
|
||||
const syncedAttributes = PARTIAL_SYNCING_SUPPORTED_BLOCKS[name];
|
||||
const attributeSources = syncedAttributes.map(attributeName => attributes.metadata?.bindings?.[attributeName]?.source);
|
||||
const isConnectedToOtherSources = attributeSources.every(source => source && source !== 'core/pattern-overrides');
|
||||
|
||||
// Render nothing if all supported attributes are connected to other sources.
|
||||
if (isConnectedToOtherSources) {
|
||||
return null;
|
||||
}
|
||||
function updateBindings(isChecked) {
|
||||
let updatedBindings = {
|
||||
...attributes?.metadata?.bindings
|
||||
};
|
||||
if (!isChecked) {
|
||||
for (const attributeName of syncedAttributes) {
|
||||
if (updatedBindings[attributeName]?.source === 'core/pattern-overrides') {
|
||||
delete updatedBindings[attributeName];
|
||||
}
|
||||
}
|
||||
if (!Object.keys(updatedBindings).length) {
|
||||
updatedBindings = undefined;
|
||||
}
|
||||
// Avoid overwriting other (e.g. meta) bindings.
|
||||
if (isConnectedToOtherSources) {
|
||||
return;
|
||||
}
|
||||
|
||||
// The user-given name for the block was deleted, remove the bindings.
|
||||
if (!metadataName?.length && prevMetadataName?.length) {
|
||||
const updatedBindings = removeBindings(bindings, syncedAttributes);
|
||||
setAttributes({
|
||||
metadata: {
|
||||
...attributes.metadata,
|
||||
bindings: updatedBindings
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
for (const attributeName of syncedAttributes) {
|
||||
if (!updatedBindings[attributeName]) {
|
||||
updatedBindings[attributeName] = {
|
||||
source: 'core/pattern-overrides'
|
||||
};
|
||||
}
|
||||
}
|
||||
if (typeof attributes.metadata?.id === 'string') {
|
||||
|
||||
// The user-given name for the block was set, set the bindings.
|
||||
if (!prevMetadataName?.length && metadataName.length) {
|
||||
const updatedBindings = addBindings(bindings, syncedAttributes);
|
||||
setAttributes({
|
||||
metadata: {
|
||||
...attributes.metadata,
|
||||
bindings: updatedBindings
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
const id = nanoid(6);
|
||||
setAttributes({
|
||||
metadata: {
|
||||
...attributes.metadata,
|
||||
id,
|
||||
bindings: updatedBindings
|
||||
}
|
||||
});
|
||||
}
|
||||
return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
|
||||
group: "advanced"
|
||||
}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.BaseControl, {
|
||||
__nextHasNoMarginBottom: true
|
||||
}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, null, (0,external_wp_i18n_namespaceObject.__)('Pattern overrides')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
|
||||
__nextHasNoMarginBottom: true,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Allow instance overrides'),
|
||||
checked: attributeSources.some(source => source === 'core/pattern-overrides'),
|
||||
onChange: isChecked => {
|
||||
updateBindings(isChecked);
|
||||
}
|
||||
})));
|
||||
}, [bindings, prevMetadataName, metadataName, currentPostType, name, attributes.metadata, setAttributes]);
|
||||
}
|
||||
/* harmony default export */ const partial_syncing_controls = (PartialSyncingControls);
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/reset-overrides-control.js
|
||||
|
||||
@ -1264,12 +1221,12 @@ function PartialSyncingControls({
|
||||
|
||||
|
||||
|
||||
function recursivelyFindBlockWithId(blocks, id) {
|
||||
function recursivelyFindBlockWithName(blocks, name) {
|
||||
for (const block of blocks) {
|
||||
if (block.attributes.metadata?.id === id) {
|
||||
if (block.attributes.metadata?.name === name) {
|
||||
return block;
|
||||
}
|
||||
const found = recursivelyFindBlockWithId(block.innerBlocks, id);
|
||||
const found = recursivelyFindBlockWithName(block.innerBlocks, name);
|
||||
if (found) {
|
||||
return found;
|
||||
}
|
||||
@ -1277,9 +1234,9 @@ function recursivelyFindBlockWithId(blocks, id) {
|
||||
}
|
||||
function ResetOverridesControl(props) {
|
||||
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
|
||||
const id = props.attributes.metadata?.id;
|
||||
const name = props.attributes.metadata?.name;
|
||||
const patternWithOverrides = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
if (!id) {
|
||||
if (!name) {
|
||||
return undefined;
|
||||
}
|
||||
const {
|
||||
@ -1287,16 +1244,16 @@ function ResetOverridesControl(props) {
|
||||
getBlocksByClientId
|
||||
} = select(external_wp_blockEditor_namespaceObject.store);
|
||||
const patternBlock = getBlocksByClientId(getBlockParentsByBlockName(props.clientId, 'core/block'))[0];
|
||||
if (!patternBlock?.attributes.content?.[id]) {
|
||||
if (!patternBlock?.attributes.content?.[name]) {
|
||||
return undefined;
|
||||
}
|
||||
return patternBlock;
|
||||
}, [props.clientId, id]);
|
||||
}, [props.clientId, name]);
|
||||
const resetOverrides = async () => {
|
||||
var _editedRecord$blocks;
|
||||
const editedRecord = await registry.resolveSelect(external_wp_coreData_namespaceObject.store).getEditedEntityRecord('postType', 'wp_block', patternWithOverrides.attributes.ref);
|
||||
const blocks = (_editedRecord$blocks = editedRecord.blocks) !== null && _editedRecord$blocks !== void 0 ? _editedRecord$blocks : (0,external_wp_blocks_namespaceObject.parse)(editedRecord.content);
|
||||
const block = recursivelyFindBlockWithId(blocks, id);
|
||||
const block = recursivelyFindBlockWithName(blocks, name);
|
||||
const newAttributes = Object.assign(
|
||||
// Reset every existing attribute to undefined.
|
||||
Object.fromEntries(Object.keys(props.attributes).map(key => [key, undefined])),
|
||||
@ -1336,7 +1293,7 @@ lock(privateApis, {
|
||||
RenamePatternModal: RenamePatternModal,
|
||||
PatternsMenuItems: PatternsMenuItems,
|
||||
RenamePatternCategoryModal: RenamePatternCategoryModal,
|
||||
PartialSyncingControls: partial_syncing_controls,
|
||||
useSetPatternBindings: useSetPatternBindings,
|
||||
ResetOverridesControl: ResetOverridesControl,
|
||||
useAddPatternCategory: useAddPatternCategory,
|
||||
PATTERN_TYPES: PATTERN_TYPES,
|
||||
|
2
wp-includes/js/dist/patterns.min.js
vendored
2
wp-includes/js/dist/patterns.min.js
vendored
File diff suppressed because one or more lines are too long
11
wp-includes/js/dist/rich-text.js
vendored
11
wp-includes/js/dist/rich-text.js
vendored
@ -1845,11 +1845,9 @@ function createFromElement({
|
||||
if (node.nodeType !== node.ELEMENT_NODE) {
|
||||
continue;
|
||||
}
|
||||
if (isEditableTree && (
|
||||
// Ignore any placeholders.
|
||||
node.getAttribute('data-rich-text-placeholder') ||
|
||||
if (isEditableTree &&
|
||||
// Ignore any line breaks that are not inserted by us.
|
||||
tagName === 'br' && !node.getAttribute('data-rich-text-line-break'))) {
|
||||
tagName === 'br' && !node.getAttribute('data-rich-text-line-break')) {
|
||||
accumulateSelection(accumulator, node, range, createEmptyValue());
|
||||
continue;
|
||||
}
|
||||
@ -1904,7 +1902,10 @@ function createFromElement({
|
||||
isEditableTree
|
||||
});
|
||||
accumulateSelection(accumulator, node, range, value);
|
||||
if (!format) {
|
||||
|
||||
// Ignore any placeholders, but keep their content since the browser
|
||||
// might insert text inside them when the editable element is flex.
|
||||
if (!format || node.getAttribute('data-rich-text-placeholder')) {
|
||||
mergePair(accumulator, value);
|
||||
} else if (value.text.length === 0) {
|
||||
if (format.attributes) {
|
||||
|
2
wp-includes/js/dist/rich-text.min.js
vendored
2
wp-includes/js/dist/rich-text.min.js
vendored
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.5-beta3-57759';
|
||||
$wp_version = '6.5-beta3-57760';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user