Editor: Update packages for 6.7 Beta 2.

Syncs `@wordpress/*` packages to the `wp-6.7` npm tag.

Fixes #62179.

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


git-svn-id: http://core.svn.wordpress.org/trunk@58579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
noisysocks 2024-10-06 22:45:30 +00:00
parent 6c4dd50e88
commit 740dc9cf12
41 changed files with 641 additions and 706 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<?php return array('interactivity/index.min.js' => array('dependencies' => array(), 'version' => '2d6d1fdbcb3fda39c768', 'type' => 'module'), 'interactivity/debug.min.js' => array('dependencies' => array(), 'version' => '1ccc67b05c275e51a8f8', 'type' => 'module'), 'interactivity-router/index.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => 'f01b88335afcef3dfc5d', 'type' => 'module'), 'a11y/index.min.js' => array('dependencies' => array(), 'version' => 'b7d06936b8bc23cff2ad', 'type' => 'module'), 'block-library/file/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'fdc2f6842e015af83140', 'type' => 'module'), 'block-library/image/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'acfec7b3c0be4a859b31', 'type' => 'module'), 'block-library/navigation/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '8ff192874fc8910a284c', 'type' => 'module'), 'block-library/query/view.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => 'f4c91c89fa5271f3dad9', 'type' => 'module'), 'block-library/search/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '2a73400a693958f604de', 'type' => 'module')); <?php return array('interactivity/index.min.js' => array('dependencies' => array(), 'version' => 'b9302d272778fae26f7b', 'type' => 'module'), 'interactivity/debug.min.js' => array('dependencies' => array(), 'version' => 'b7a284e973e4c0ec54c8', 'type' => 'module'), 'interactivity-router/index.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => 'f01b88335afcef3dfc5d', 'type' => 'module'), 'a11y/index.min.js' => array('dependencies' => array(), 'version' => 'b7d06936b8bc23cff2ad', 'type' => 'module'), 'block-library/file/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'fdc2f6842e015af83140', 'type' => 'module'), 'block-library/image/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'acfec7b3c0be4a859b31', 'type' => 'module'), 'block-library/navigation/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '8ff192874fc8910a284c', 'type' => 'module'), 'block-library/query/view.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => 'f4c91c89fa5271f3dad9', 'type' => 'module'), 'block-library/search/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '2a73400a693958f604de', 'type' => 'module'));

View File

@ -1 +1 @@
<?php return array('interactivity/index.js' => array('dependencies' => array(), 'version' => 'ff86b5988014bd364de8', 'type' => 'module'), 'interactivity/debug.js' => array('dependencies' => array(), 'version' => 'd05372e68bd7a4cb0676', 'type' => 'module'), 'interactivity-router/index.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => '4b36f376cc3aab08acca', 'type' => 'module'), 'a11y/index.js' => array('dependencies' => array(), 'version' => 'b3a7f46c0ef4f3484886', 'type' => 'module'), 'block-library/file/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'b0cd471b6fde34702d88', 'type' => 'module'), 'block-library/image/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'e1ce544dd878f3a09f70', 'type' => 'module'), 'block-library/navigation/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '9510985aedc1f8e088f3', 'type' => 'module'), 'block-library/query/view.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => '8e6f28f734f3c306b648', 'type' => 'module'), 'block-library/search/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'acdb7febda1392ad28de', 'type' => 'module')); <?php return array('interactivity/index.js' => array('dependencies' => array(), 'version' => 'ecd49f2c0a9f3299b888', 'type' => 'module'), 'interactivity/debug.js' => array('dependencies' => array(), 'version' => 'ddec2f3e64b9cc2598d6', 'type' => 'module'), 'interactivity-router/index.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => '4b36f376cc3aab08acca', 'type' => 'module'), 'a11y/index.js' => array('dependencies' => array(), 'version' => 'b3a7f46c0ef4f3484886', 'type' => 'module'), 'block-library/file/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'b0cd471b6fde34702d88', 'type' => 'module'), 'block-library/image/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'e1ce544dd878f3a09f70', 'type' => 'module'), 'block-library/navigation/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '9510985aedc1f8e088f3', 'type' => 'module'), 'block-library/query/view.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => '8e6f28f734f3c306b648', 'type' => 'module'), 'block-library/search/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'acdb7febda1392ad28de', 'type' => 'module'));

View File

@ -26,8 +26,8 @@
border:1px dashed; border:1px dashed;
content:""; content:"";
display:flex; display:flex;
flex:1 0 48px; flex:1 0 40px;
min-height:46px; min-height:38px;
pointer-events:none; pointer-events:none;
} }
.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{ .wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{

View File

@ -1 +1 @@
.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;content:"";display:flex;flex:1 0 48px;min-height:46px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all} .wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;content:"";display:flex;flex:1 0 40px;min-height:38px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}

View File

@ -26,8 +26,8 @@
border:1px dashed; border:1px dashed;
content:""; content:"";
display:flex; display:flex;
flex:1 0 48px; flex:1 0 40px;
min-height:46px; min-height:38px;
pointer-events:none; pointer-events:none;
} }
.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{ .wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{

View File

@ -1 +1 @@
.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;content:"";display:flex;flex:1 0 48px;min-height:46px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all} .wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;content:"";display:flex;flex:1 0 40px;min-height:38px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}

View File

@ -64,22 +64,30 @@
} }
.block-directory-downloadable-block-list-item{ .block-directory-downloadable-block-list-item{
appearance:none;
background:none;
border:0;
display:grid; display:grid;
grid-template-columns:auto 1fr; grid-template-columns:auto 1fr;
height:auto; height:auto;
margin:0;
padding:12px; padding:12px;
position:relative; position:relative;
text-align:right; text-align:right;
transition:box-shadow .1s linear;
width:100%; width:100%;
} }
.block-directory-downloadable-block-list-item:hover{ .block-directory-downloadable-block-list-item+.block-directory-downloadable-block-list-item{
margin-top:4px;
}
.block-directory-downloadable-block-list-item:not([aria-disabled=true]){
cursor:pointer;
}
.block-directory-downloadable-block-list-item:hover,.block-directory-downloadable-block-list-item[data-focus-visible]{
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000; outline:2px solid #0000;
} }
.block-directory-downloadable-block-list-item.is-busy{ .block-directory-downloadable-block-list-item.is-installing .block-directory-downloadable-block-list-item__author{
background:#0000;
}
.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{
border:0; border:0;
clip:rect(1px, 1px, 1px, 1px); clip:rect(1px, 1px, 1px, 1px);
clip-path:inset(50%); clip-path:inset(50%);
@ -91,9 +99,6 @@
width:1px; width:1px;
word-wrap:normal !important; 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{ .block-directory-downloadable-block-list-item__icon{
align-self:flex-start; align-self:flex-start;
@ -176,14 +181,6 @@
margin:0 0 4px; margin:0 0 4px;
} }
.block-directory-downloadable-blocks-panel__description{ .block-directory-downloadable-blocks-panel__description,.installed-blocks-pre-publish-panel__copy{
margin-top:0;
}
.block-directory-downloadable-blocks-panel button{
margin-top:4px;
}
.installed-blocks-pre-publish-panel__copy{
margin-top:0; margin-top:0;
} }

View File

@ -1 +1 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@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;position:relative;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);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}.is-installing .block-directory-downloadable-block-list-item__icon{margin-left:22px}.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:var(--wp-block-synced-color)}@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{appearance:none;background:none;border:0;display:grid;grid-template-columns:auto 1fr;height:auto;margin:0;padding:12px;position:relative;text-align:right;transition:box-shadow .1s linear;width:100%}.block-directory-downloadable-block-list-item+.block-directory-downloadable-block-list-item{margin-top:4px}.block-directory-downloadable-block-list-item:not([aria-disabled=true]){cursor:pointer}.block-directory-downloadable-block-list-item:hover,.block-directory-downloadable-block-list-item[data-focus-visible]{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-installing .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);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__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}.is-installing .block-directory-downloadable-block-list-item__icon{margin-left:22px}.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,.installed-blocks-pre-publish-panel__copy{margin-top:0}

View File

@ -64,22 +64,30 @@
} }
.block-directory-downloadable-block-list-item{ .block-directory-downloadable-block-list-item{
appearance:none;
background:none;
border:0;
display:grid; display:grid;
grid-template-columns:auto 1fr; grid-template-columns:auto 1fr;
height:auto; height:auto;
margin:0;
padding:12px; padding:12px;
position:relative; position:relative;
text-align:left; text-align:left;
transition:box-shadow .1s linear;
width:100%; width:100%;
} }
.block-directory-downloadable-block-list-item:hover{ .block-directory-downloadable-block-list-item+.block-directory-downloadable-block-list-item{
margin-top:4px;
}
.block-directory-downloadable-block-list-item:not([aria-disabled=true]){
cursor:pointer;
}
.block-directory-downloadable-block-list-item:hover,.block-directory-downloadable-block-list-item[data-focus-visible]{
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000; outline:2px solid #0000;
} }
.block-directory-downloadable-block-list-item.is-busy{ .block-directory-downloadable-block-list-item.is-installing .block-directory-downloadable-block-list-item__author{
background:#0000;
}
.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{
border:0; border:0;
clip:rect(1px, 1px, 1px, 1px); clip:rect(1px, 1px, 1px, 1px);
clip-path:inset(50%); clip-path:inset(50%);
@ -91,9 +99,6 @@
width:1px; width:1px;
word-wrap:normal !important; 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{ .block-directory-downloadable-block-list-item__icon{
align-self:flex-start; align-self:flex-start;
@ -176,14 +181,6 @@
margin:0 0 4px; margin:0 0 4px;
} }
.block-directory-downloadable-blocks-panel__description{ .block-directory-downloadable-blocks-panel__description,.installed-blocks-pre-publish-panel__copy{
margin-top:0;
}
.block-directory-downloadable-blocks-panel button{
margin-top:4px;
}
.installed-blocks-pre-publish-panel__copy{
margin-top:0; margin-top:0;
} }

View File

@ -1 +1 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@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;position:relative;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);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}.is-installing .block-directory-downloadable-block-list-item__icon{margin-right:22px}.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:var(--wp-block-synced-color)}@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{appearance:none;background:none;border:0;display:grid;grid-template-columns:auto 1fr;height:auto;margin:0;padding:12px;position:relative;text-align:left;transition:box-shadow .1s linear;width:100%}.block-directory-downloadable-block-list-item+.block-directory-downloadable-block-list-item{margin-top:4px}.block-directory-downloadable-block-list-item:not([aria-disabled=true]){cursor:pointer}.block-directory-downloadable-block-list-item:hover,.block-directory-downloadable-block-list-item[data-focus-visible]{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-installing .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);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__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}.is-installing .block-directory-downloadable-block-list-item__icon{margin-right:22px}.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,.installed-blocks-pre-publish-panel__copy{margin-top:0}

View File

@ -484,9 +484,6 @@
justify-content:center; justify-content:center;
width:100%; width:100%;
} }
.block-editor-button-block-appender.components-button.components-button{
padding:12px;
}
.is-dark-theme .block-editor-button-block-appender{ .is-dark-theme .block-editor-button-block-appender{
box-shadow:inset 0 0 0 1px #ffffffa6; box-shadow:inset 0 0 0 1px #ffffffa6;
color:#ffffffa6; color:#ffffffa6;

File diff suppressed because one or more lines are too long

View File

@ -484,9 +484,6 @@
justify-content:center; justify-content:center;
width:100%; width:100%;
} }
.block-editor-button-block-appender.components-button.components-button{
padding:12px;
}
.is-dark-theme .block-editor-button-block-appender{ .is-dark-theme .block-editor-button-block-appender{
box-shadow:inset 0 0 0 1px #ffffffa6; box-shadow:inset 0 0 0 1px #ffffffa6;
color:#ffffffa6; color:#ffffffa6;

File diff suppressed because one or more lines are too long

View File

@ -242,7 +242,9 @@ iframe[name=editor-canvas]{
} }
.block-editor-block-inspector__tab-item{ .block-editor-block-inspector__tab-item{
display:flex;
flex:1 1 0px; flex:1 1 0px;
justify-content:center;
} }
.block-editor-block-list__insertion-point{ .block-editor-block-list__insertion-point{
bottom:0; bottom:0;
@ -447,6 +449,9 @@ iframe[name=editor-canvas]{
background:none; background:none;
border:none; border:none;
} }
.zoom-out-toolbar .zoom-out-toolbar-button{
height:40px;
}
.block-editor-block-tools__zoom-out-mode-inserter-button{ .block-editor-block-tools__zoom-out-mode-inserter-button{
visibility:hidden; visibility:hidden;
@ -1509,11 +1514,15 @@ iframe[name=editor-canvas]{
} }
.block-editor-global-styles__shadow-indicator{ .block-editor-global-styles__shadow-indicator{
align-items:center;
appearance:none;
background:none;
border:1px solid #e0e0e0; border:1px solid #e0e0e0;
border-radius:2px; border-radius:2px;
box-sizing:border-box; box-sizing:border-box;
color:#2f2f2f; color:#2f2f2f;
cursor:pointer; cursor:pointer;
display:inline-flex;
height:26px; height:26px;
padding:0; padding:0;
transform:scale(1); transform:scale(1);
@ -1870,17 +1879,6 @@ iframe[name=editor-canvas]{
margin-bottom:16px; margin-bottom:16px;
} }
[class].block-editor-inspector-popover-header__action{
height:24px;
}
[class].block-editor-inspector-popover-header__action.has-icon{
min-width:24px;
padding:0;
}
[class].block-editor-inspector-popover-header__action:not(.has-icon){
text-decoration:underline;
}
.items-justified-left{ .items-justified-left{
justify-content:flex-start; justify-content:flex-start;
} }
@ -2398,11 +2396,20 @@ iframe[name=editor-canvas]{
} }
.block-editor-list-view-leaf .block-editor-list-view-block-contents{ .block-editor-list-view-leaf .block-editor-list-view-block-contents{
align-items:center; align-items:center;
border-radius:2px;
box-sizing:border-box;
color:inherit;
display:flex; display:flex;
font-family:inherit;
font-size:13px;
font-weight:400;
height:32px; height:32px;
margin:0;
padding:6px 0 6px 4px; padding:6px 0 6px 4px;
position:relative; position:relative;
text-align:right; text-align:right;
text-decoration:none;
transition:box-shadow .1s linear;
white-space:nowrap; white-space:nowrap;
width:100%; width:100%;
} }
@ -2884,17 +2891,8 @@ iframe[name=editor-canvas]{
} }
.block-editor-skip-to-selected-block:focus{ .block-editor-skip-to-selected-block:focus{
background:#f1f1f1; background:#f1f1f1;
box-shadow:0 0 2px 2px #0009;
color:var(--wp-admin-theme-color);
display:block;
font-size:14px; font-size:14px;
font-weight:600; font-weight:600;
height:auto;
line-height:normal;
outline:none;
padding:15px 23px 14px;
text-decoration:none;
width:auto;
z-index:100000; z-index:100000;
} }
@ -3038,11 +3036,6 @@ iframe[name=editor-canvas]{
flex-shrink:1; flex-shrink:1;
min-width:0; min-width:0;
} }
.block-editor-url-input__button-modal-line .components-button{
flex-shrink:0;
height:36px;
width:36px;
}
.block-editor-url-popover__additional-controls{ .block-editor-url-popover__additional-controls{
border-top:1px solid #1e1e1e; border-top:1px solid #1e1e1e;

File diff suppressed because one or more lines are too long

View File

@ -242,7 +242,9 @@ iframe[name=editor-canvas]{
} }
.block-editor-block-inspector__tab-item{ .block-editor-block-inspector__tab-item{
display:flex;
flex:1 1 0px; flex:1 1 0px;
justify-content:center;
} }
.block-editor-block-list__insertion-point{ .block-editor-block-list__insertion-point{
bottom:0; bottom:0;
@ -447,6 +449,9 @@ iframe[name=editor-canvas]{
background:none; background:none;
border:none; border:none;
} }
.zoom-out-toolbar .zoom-out-toolbar-button{
height:40px;
}
.block-editor-block-tools__zoom-out-mode-inserter-button{ .block-editor-block-tools__zoom-out-mode-inserter-button{
visibility:hidden; visibility:hidden;
@ -1509,11 +1514,15 @@ iframe[name=editor-canvas]{
} }
.block-editor-global-styles__shadow-indicator{ .block-editor-global-styles__shadow-indicator{
align-items:center;
appearance:none;
background:none;
border:1px solid #e0e0e0; border:1px solid #e0e0e0;
border-radius:2px; border-radius:2px;
box-sizing:border-box; box-sizing:border-box;
color:#2f2f2f; color:#2f2f2f;
cursor:pointer; cursor:pointer;
display:inline-flex;
height:26px; height:26px;
padding:0; padding:0;
transform:scale(1); transform:scale(1);
@ -1870,17 +1879,6 @@ iframe[name=editor-canvas]{
margin-bottom:16px; margin-bottom:16px;
} }
[class].block-editor-inspector-popover-header__action{
height:24px;
}
[class].block-editor-inspector-popover-header__action.has-icon{
min-width:24px;
padding:0;
}
[class].block-editor-inspector-popover-header__action:not(.has-icon){
text-decoration:underline;
}
.items-justified-left{ .items-justified-left{
justify-content:flex-start; justify-content:flex-start;
} }
@ -2398,11 +2396,20 @@ iframe[name=editor-canvas]{
} }
.block-editor-list-view-leaf .block-editor-list-view-block-contents{ .block-editor-list-view-leaf .block-editor-list-view-block-contents{
align-items:center; align-items:center;
border-radius:2px;
box-sizing:border-box;
color:inherit;
display:flex; display:flex;
font-family:inherit;
font-size:13px;
font-weight:400;
height:32px; height:32px;
margin:0;
padding:6px 4px 6px 0; padding:6px 4px 6px 0;
position:relative; position:relative;
text-align:left; text-align:left;
text-decoration:none;
transition:box-shadow .1s linear;
white-space:nowrap; white-space:nowrap;
width:100%; width:100%;
} }
@ -2884,17 +2891,8 @@ iframe[name=editor-canvas]{
} }
.block-editor-skip-to-selected-block:focus{ .block-editor-skip-to-selected-block:focus{
background:#f1f1f1; background:#f1f1f1;
box-shadow:0 0 2px 2px #0009;
color:var(--wp-admin-theme-color);
display:block;
font-size:14px; font-size:14px;
font-weight:600; font-weight:600;
height:auto;
line-height:normal;
outline:none;
padding:15px 23px 14px;
text-decoration:none;
width:auto;
z-index:100000; z-index:100000;
} }
@ -3038,11 +3036,6 @@ iframe[name=editor-canvas]{
flex-shrink:1; flex-shrink:1;
min-width:0; min-width:0;
} }
.block-editor-url-input__button-modal-line .components-button{
flex-shrink:0;
height:36px;
width:36px;
}
.block-editor-url-popover__additional-controls{ .block-editor-url-popover__additional-controls{
border-top:1px solid #1e1e1e; border-top:1px solid #1e1e1e;

File diff suppressed because one or more lines are too long

View File

@ -996,8 +996,8 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar{
border:1px dashed; border:1px dashed;
content:""; content:"";
display:flex; display:flex;
flex:1 0 48px; flex:1 0 40px;
min-height:46px; min-height:38px;
pointer-events:none; pointer-events:none;
} }
.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{ .wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{

File diff suppressed because one or more lines are too long

View File

@ -994,8 +994,8 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar{
border:1px dashed; border:1px dashed;
content:""; content:"";
display:flex; display:flex;
flex:1 0 48px; flex:1 0 40px;
min-height:46px; min-height:38px;
pointer-events:none; pointer-events:none;
} }
.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{ .wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{

File diff suppressed because one or more lines are too long

View File

@ -1311,6 +1311,8 @@ const external_wp_compose_namespaceObject = window["wp"]["compose"];
const external_wp_components_namespaceObject = window["wp"]["components"]; const external_wp_components_namespaceObject = window["wp"]["components"];
;// CONCATENATED MODULE: external ["wp","coreData"] ;// CONCATENATED MODULE: external ["wp","coreData"]
const external_wp_coreData_namespaceObject = window["wp"]["coreData"]; const external_wp_coreData_namespaceObject = window["wp"]["coreData"];
;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
;// CONCATENATED MODULE: external ["wp","htmlEntities"] ;// CONCATENATED MODULE: external ["wp","htmlEntities"]
const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"]; const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
@ -1506,6 +1508,11 @@ const DownloadableBlockNotice = ({
/* harmony default export */ const downloadable_block_notice = (DownloadableBlockNotice); /* harmony default export */ const downloadable_block_notice = (DownloadableBlockNotice);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-list-item/index.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-list-item/index.js
/**
* External dependencies
*/
/** /**
* WordPress dependencies * WordPress dependencies
*/ */
@ -1595,61 +1602,58 @@ function DownloadableBlockListItem({
} else if (isInstalling) { } else if (isInstalling) {
statusText = (0,external_wp_i18n_namespaceObject.__)('Installing…'); statusText = (0,external_wp_i18n_namespaceObject.__)('Installing…');
} }
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Composite.Item, { const itemLabel = getDownloadableBlockLabel(item, {
render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button hasNotice,
// TODO: Switch to `true` (40px size) if possible isInstalled,
, { isInstalling
__next40pxDefaultSize: false, });
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
placement: "top",
text: itemLabel,
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Composite.Item, {
className: dist_clsx('block-directory-downloadable-block-list-item', isInstalling && 'is-installing'),
accessibleWhenDisabled: true, accessibleWhenDisabled: true,
type: "button", disabled: isInstalling || !isInstallable,
role: "option",
className: "block-directory-downloadable-block-list-item",
isBusy: isInstalling,
onClick: event => { onClick: event => {
event.preventDefault(); event.preventDefault();
onClick(); onClick();
}, },
label: getDownloadableBlockLabel(item, { "aria-label": itemLabel,
hasNotice, type: "button",
isInstalled, role: "option",
isInstalling children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
}), className: "block-directory-downloadable-block-list-item__icon",
showTooltip: true, children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(downloadable_block_icon, {
tooltipPosition: "top center" icon: icon,
}), title: title
disabled: isInstalling || !isInstallable, }), isInstalling ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { className: "block-directory-downloadable-block-list-item__spinner",
className: "block-directory-downloadable-block-list-item__icon", children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(downloadable_block_icon, { }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_ratings, {
icon: icon, rating: rating
title: title })]
}), isInstalling ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", { }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
className: "block-directory-downloadable-block-list-item__spinner", className: "block-directory-downloadable-block-list-item__details",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
}) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_ratings, {
rating: rating
})]
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
className: "block-directory-downloadable-block-list-item__details",
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: "block-directory-downloadable-block-list-item__title",
children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1$s: block title, %2$s: author name. */
(0,external_wp_i18n_namespaceObject.__)('%1$s <span>by %2$s</span>'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), author), {
span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: "block-directory-downloadable-block-list-item__author"
})
})
}), hasNotice ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(downloadable_block_notice, {
block: item
}) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", { children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: "block-directory-downloadable-block-list-item__desc", className: "block-directory-downloadable-block-list-item__title",
children: !!statusText ? statusText : (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(description) children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1$s: block title, %2$s: author name. */
}), isInstallable && !(isInstalled || isInstalling) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, { (0,external_wp_i18n_namespaceObject.__)('%1$s <span>by %2$s</span>'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), author), {
children: (0,external_wp_i18n_namespaceObject.__)('Install block') span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: "block-directory-downloadable-block-list-item__author"
})
})
}), hasNotice ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(downloadable_block_notice, {
block: item
}) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: "block-directory-downloadable-block-list-item__desc",
children: !!statusText ? statusText : (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(description)
}), isInstallable && !(isInstalled || isInstalling) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
children: (0,external_wp_i18n_namespaceObject.__)('Install block')
})]
})] })]
})] })]
})] })
}); });
} }
/* harmony default export */ const downloadable_block_list_item = (DownloadableBlockListItem); /* harmony default export */ const downloadable_block_list_item = (DownloadableBlockListItem);
@ -2061,10 +2065,8 @@ function InstallButton({
const { const {
replaceBlock replaceBlock
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store); } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
onClick: () => installBlockType(block).then(success => { onClick: () => installBlockType(block).then(success => {
if (success) { if (success) {
const blockType = (0,external_wp_blocks_namespaceObject.getBlockType)(block.name); const blockType = (0,external_wp_blocks_namespaceObject.getBlockType)(block.name);
@ -2170,10 +2172,8 @@ const ModifiedWarning = ({
if (hasContent && hasHTMLBlock) { if (hasContent && hasHTMLBlock) {
messageHTML = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: block name */ messageHTML = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: block name */
(0,external_wp_i18n_namespaceObject.__)('Your site doesnt include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely.'), originalBlock.title || originalName); (0,external_wp_i18n_namespaceObject.__)('Your site doesnt include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely.'), originalBlock.title || originalName);
actions.push( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button actions.push( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
onClick: convertToHTML, onClick: convertToHTML,
variant: "tertiary", variant: "tertiary",
children: (0,external_wp_i18n_namespaceObject.__)('Keep as HTML') children: (0,external_wp_i18n_namespaceObject.__)('Keep as HTML')

File diff suppressed because one or more lines are too long

View File

@ -19561,8 +19561,7 @@ const flexWrapOptions = ['wrap', 'nowrap'];
isToolbar: true isToolbar: true
}), allowVerticalAlignment && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexLayoutVerticalAlignmentControl, { }), allowVerticalAlignment && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexLayoutVerticalAlignmentControl, {
layout: layout, layout: layout,
onChange: onChange, onChange: onChange
isToolbar: true
})] })]
}); });
}, },
@ -19628,8 +19627,7 @@ const flexWrapOptions = ['wrap', 'nowrap'];
}); });
function FlexLayoutVerticalAlignmentControl({ function FlexLayoutVerticalAlignmentControl({
layout, layout,
onChange, onChange
isToolbar = false
}) { }) {
const { const {
orientation = 'horizontal' orientation = 'horizontal'
@ -19644,40 +19642,10 @@ function FlexLayoutVerticalAlignmentControl({
verticalAlignment: value verticalAlignment: value
}); });
}; };
if (isToolbar) { return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockVerticalAlignmentControl, {
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockVerticalAlignmentControl, { onChange: onVerticalAlignmentChange,
onChange: onVerticalAlignmentChange, value: verticalAlignment,
value: verticalAlignment, controls: orientation === 'horizontal' ? ['top', 'center', 'bottom', 'stretch'] : ['top', 'center', 'bottom', 'space-between']
controls: orientation === 'horizontal' ? ['top', 'center', 'bottom', 'stretch'] : ['top', 'center', 'bottom', 'space-between']
});
}
const verticalAlignmentOptions = [{
value: 'flex-start',
label: (0,external_wp_i18n_namespaceObject.__)('Align items top')
}, {
value: 'center',
label: (0,external_wp_i18n_namespaceObject.__)('Align items center')
}, {
value: 'flex-end',
label: (0,external_wp_i18n_namespaceObject.__)('Align items bottom')
}];
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
className: "block-editor-hooks__flex-layout-vertical-alignment-control",
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("legend", {
children: (0,external_wp_i18n_namespaceObject.__)('Vertical alignment')
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
children: verticalAlignmentOptions.map((value, icon, label) => {
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button
// TODO: Switch to `true` (40px size) if possible
, {
__next40pxDefaultSize: false,
label: label,
icon: icon,
isPressed: verticalAlignment === value,
onClick: () => onVerticalAlignmentChange(value)
}, value);
})
})]
}); });
} }
const POPOVER_PROPS = { const POPOVER_PROPS = {
@ -21794,10 +21762,8 @@ function LinkSettingsDrawer({
const id = (0,external_wp_compose_namespaceObject.useInstanceId)(LinkSettingsDrawer); const id = (0,external_wp_compose_namespaceObject.useInstanceId)(LinkSettingsDrawer);
const settingsDrawerId = `link-control-settings-drawer-${id}`; const settingsDrawerId = `link-control-settings-drawer-${id}`;
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
className: "block-editor-link-control__drawer-toggle", className: "block-editor-link-control__drawer-toggle",
"aria-expanded": settingsOpen, "aria-expanded": settingsOpen,
onClick: () => setSettingsOpen(!settingsOpen), onClick: () => setSettingsOpen(!settingsOpen),
@ -22291,10 +22257,8 @@ class URLInput extends external_wp_element_namespaceObject.Component {
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...suggestionsListProps, ...suggestionsListProps,
className: dist_clsx('block-editor-url-input__suggestions', `${className}__suggestions`), className: dist_clsx('block-editor-url-input__suggestions', `${className}__suggestions`),
children: suggestions.map((suggestion, index) => /*#__PURE__*/(0,external_React_.createElement)(external_wp_components_namespaceObject.Button children: suggestions.map((suggestion, index) => /*#__PURE__*/(0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
...buildSuggestionItemProps(suggestion, index), ...buildSuggestionItemProps(suggestion, index),
key: suggestion.id, key: suggestion.id,
className: dist_clsx('block-editor-url-input__suggestion', { className: dist_clsx('block-editor-url-input__suggestion', {
@ -23923,17 +23887,13 @@ function LinkControl({
}), showActions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, { }), showActions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
justify: "right", justify: "right",
className: "block-editor-link-control__search-actions", className: "block-editor-link-control__search-actions",
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
variant: "tertiary", variant: "tertiary",
onClick: handleCancel, onClick: handleCancel,
children: (0,external_wp_i18n_namespaceObject.__)('Cancel') children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
variant: "primary", variant: "primary",
onClick: isDisabled ? link_control_noop : handleSubmit, onClick: isDisabled ? link_control_noop : handleSubmit,
className: "block-editor-link-control__search-submit", className: "block-editor-link-control__search-submit",
@ -26033,10 +25993,8 @@ function ShadowPopoverContainer({
onSelect: onShadowChange onSelect: onShadowChange
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: "block-editor-global-styles__clear-shadow", className: "block-editor-global-styles__clear-shadow",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
variant: "tertiary", variant: "tertiary",
onClick: () => onShadowChange(undefined), onClick: () => onShadowChange(undefined),
children: (0,external_wp_i18n_namespaceObject.__)('Clear') children: (0,external_wp_i18n_namespaceObject.__)('Clear')
@ -26074,28 +26032,27 @@ function ShadowIndicator({
onSelect, onSelect,
shadow shadow
}) { }) {
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Composite.Item, { return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
role: "option", text: label,
"aria-label": label, children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Composite.Item, {
"aria-selected": isActive, role: "option",
className: dist_clsx('block-editor-global-styles__shadow__item', { "aria-label": label,
'is-active': isActive "aria-selected": isActive,
}), className: dist_clsx('block-editor-global-styles__shadow__item', {
render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button 'is-active': isActive
// TODO: Switch to `true` (40px size) if possible
, {
__next40pxDefaultSize: false,
className: dist_clsx('block-editor-global-styles__shadow-indicator', {
unset: type === 'unset'
}), }),
onClick: onSelect, render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("button", {
label: label, className: dist_clsx('block-editor-global-styles__shadow-indicator', {
style: { unset: type === 'unset'
boxShadow: shadow }),
}, onClick: onSelect,
showTooltip: true, style: {
children: isActive && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, { boxShadow: shadow
icon: library_check },
"aria-label": label,
children: isActive && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
icon: library_check
})
}) })
}) })
}); });
@ -26136,10 +26093,8 @@ function renderShadowToggle() {
}), }),
'aria-expanded': isOpen 'aria-expanded': isOpen
}; };
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
...toggleProps, ...toggleProps,
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, { children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
justify: "flex-start", justify: "flex-start",
@ -27246,10 +27201,8 @@ function ColorPanelDropdown({
'aria-label': (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s is the type of color property, e.g., "background" */ 'aria-label': (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s is the type of color property, e.g., "background" */
(0,external_wp_i18n_namespaceObject.__)('Color %s styles'), label) (0,external_wp_i18n_namespaceObject.__)('Color %s styles'), label)
}; };
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
...toggleProps, ...toggleProps,
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LabeledColorIndicators, { children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LabeledColorIndicators, {
indicators: indicators, indicators: indicators,
@ -33626,10 +33579,8 @@ function FiltersPanel({
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, { return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
isBordered: true, isBordered: true,
isSeparated: true, isSeparated: true,
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
...toggleProps, ...toggleProps,
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LabeledColorIndicator, { children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LabeledColorIndicator, {
indicator: duotone, indicator: duotone,
@ -49482,10 +49433,8 @@ function button_block_appender_ButtonBlockAppender({
const label = hasSingleBlockType ? (0,external_wp_i18n_namespaceObject.sprintf)( const label = hasSingleBlockType ? (0,external_wp_i18n_namespaceObject.sprintf)(
// translators: %s: the name of the block when there is only one // translators: %s: the name of the block when there is only one
(0,external_wp_i18n_namespaceObject._x)('Add %s', 'directly add the only allowed block'), blockTitle) : (0,external_wp_i18n_namespaceObject._x)('Add block', 'Generic label for block inserter button'); (0,external_wp_i18n_namespaceObject._x)('Add %s', 'directly add the only allowed block'), blockTitle) : (0,external_wp_i18n_namespaceObject._x)('Add block', 'Generic label for block inserter button');
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
ref: mergedInserterButtonRef, ref: mergedInserterButtonRef,
onFocus: onFocus, onFocus: onFocus,
tabIndex: tabIndex, tabIndex: tabIndex,
@ -59875,10 +59824,7 @@ function ListViewBlockSelectButton({
onClick(event); onClick(event);
} }
} }
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Button return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("a", {
// TODO: Switch to `true` (40px size) if possible
, {
__next40pxDefaultSize: false,
className: dist_clsx('block-editor-list-view-block-select-button', className), className: dist_clsx('block-editor-list-view-block-select-button', className),
onClick: onClick, onClick: onClick,
onContextMenu: onContextMenu, onContextMenu: onContextMenu,
@ -62906,10 +62852,8 @@ function BlockVariationPicker({
}, variation.name)) }, variation.name))
}), allowSkip && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { }), allowSkip && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: "block-editor-block-variation-picker__skip", className: "block-editor-block-variation-picker__skip",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
variant: "link", variant: "link",
onClick: () => onSelect(), onClick: () => onSelect(),
children: (0,external_wp_i18n_namespaceObject.__)('Skip') children: (0,external_wp_i18n_namespaceObject.__)('Skip')
@ -63254,10 +63198,9 @@ function VariationsButtons({
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, { children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
as: "legend", as: "legend",
children: (0,external_wp_i18n_namespaceObject.__)('Transform to variation') children: (0,external_wp_i18n_namespaceObject.__)('Transform to variation')
}), variations.map(variation => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button }), variations.map(variation => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, { size: "compact",
__next40pxDefaultSize: false,
icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, { icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
icon: variation.icon, icon: variation.icon,
showColors: true showColors: true
@ -63687,10 +63630,8 @@ const renderToggle = settings => ({
}), }),
'aria-expanded': isOpen 'aria-expanded': isOpen
}; };
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
...toggleProps, ...toggleProps,
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_LabeledColorIndicator, { children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_LabeledColorIndicator, {
colorValue: colorValue, colorValue: colorValue,
@ -66194,10 +66135,8 @@ const URLSelectionUI = ({
}; };
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: "block-editor-media-placeholder__url-input-container", className: "block-editor-media-placeholder__url-input-container",
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
className: "block-editor-media-placeholder__button", className: "block-editor-media-placeholder__button",
onClick: openURLInput, onClick: openURLInput,
isPressed: isURLInputVisible, isPressed: isURLInputVisible,
@ -66429,10 +66368,8 @@ function MediaPlaceholder({
}); });
}; };
const renderCancelLink = () => { const renderCancelLink = () => {
return onCancel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button return onCancel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
className: "block-editor-media-placeholder__cancel-button", className: "block-editor-media-placeholder__cancel-button",
title: (0,external_wp_i18n_namespaceObject.__)('Cancel'), title: (0,external_wp_i18n_namespaceObject.__)('Cancel'),
variant: "link", variant: "link",
@ -66450,10 +66387,8 @@ function MediaPlaceholder({
const renderFeaturedImageToggle = () => { const renderFeaturedImageToggle = () => {
return onToggleFeaturedImage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { return onToggleFeaturedImage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: "block-editor-media-placeholder__url-input-container", className: "block-editor-media-placeholder__url-input-container",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
className: "block-editor-media-placeholder__button", className: "block-editor-media-placeholder__button",
onClick: onToggleFeaturedImage, onClick: onToggleFeaturedImage,
variant: "secondary", variant: "secondary",
@ -66465,10 +66400,8 @@ function MediaPlaceholder({
const defaultButton = ({ const defaultButton = ({
open open
}) => { }) => {
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
variant: "secondary", variant: "secondary",
onClick: () => { onClick: () => {
open(); open();
@ -66499,10 +66432,8 @@ function MediaPlaceholder({
openFileDialog openFileDialog
}) => { }) => {
const content = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { const content = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
variant: "primary", variant: "primary",
className: dist_clsx('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button'), className: dist_clsx('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button'),
onClick: openFileDialog, onClick: openFileDialog,
@ -66519,10 +66450,8 @@ function MediaPlaceholder({
children: [renderDropZone(), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FormFileUpload, { children: [renderDropZone(), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FormFileUpload, {
render: ({ render: ({
openFileDialog openFileDialog
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
onClick: openFileDialog, onClick: openFileDialog,
variant: "primary", variant: "primary",
className: dist_clsx('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button'), className: dist_clsx('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button'),
@ -68688,10 +68617,8 @@ function ToolSelector(props, ref) {
renderToggle: ({ renderToggle: ({
isOpen, isOpen,
onToggle onToggle
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible size: "compact",
, {
__next40pxDefaultSize: false,
...props, ...props,
ref: ref, ref: ref,
icon: mode === 'navigation' ? selectIcon : edit, icon: mode === 'navigation' ? selectIcon : edit,
@ -68819,10 +68746,8 @@ class URLInputButton extends external_wp_element_namespaceObject.Component {
const buttonLabel = url ? (0,external_wp_i18n_namespaceObject.__)('Edit link') : (0,external_wp_i18n_namespaceObject.__)('Insert link'); const buttonLabel = url ? (0,external_wp_i18n_namespaceObject.__)('Edit link') : (0,external_wp_i18n_namespaceObject.__)('Insert link');
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: "block-editor-url-input__button", className: "block-editor-url-input__button",
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible size: "compact",
, {
__next40pxDefaultSize: false,
icon: library_link, icon: library_link,
label: buttonLabel, label: buttonLabel,
onClick: this.toggle, onClick: this.toggle,
@ -68833,24 +68758,24 @@ class URLInputButton extends external_wp_element_namespaceObject.Component {
onSubmit: this.submitLink, onSubmit: this.submitLink,
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: "block-editor-url-input__button-modal-line", className: "block-editor-url-input__button-modal-line",
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
className: "block-editor-url-input__back", className: "block-editor-url-input__back",
icon: arrow_left, icon: arrow_left,
label: (0,external_wp_i18n_namespaceObject.__)('Close'), label: (0,external_wp_i18n_namespaceObject.__)('Close'),
onClick: this.toggle onClick: this.toggle
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(url_input, { }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(url_input, {
value: url || '', value: url || '',
onChange: onChange onChange: onChange,
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button suffix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalInputControlSuffixWrapper, {
// TODO: Switch to `true` (40px size) if possible variant: "control",
, { children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
__next40pxDefaultSize: false, size: "small",
icon: keyboard_return, icon: keyboard_return,
label: (0,external_wp_i18n_namespaceObject.__)('Submit'), label: (0,external_wp_i18n_namespaceObject.__)('Submit'),
type: "submit" type: "submit"
})
})
})] })]
}) })
})] })]
@ -69285,10 +69210,8 @@ function SkipToSelectedBlock() {
const onClick = () => { const onClick = () => {
ref.current?.focus(); ref.current?.focus();
}; };
return selectedBlockClientId ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button return selectedBlockClientId ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
variant: "secondary", variant: "secondary",
className: "block-editor-skip-to-selected-block", className: "block-editor-skip-to-selected-block",
onClick: onClick, onClick: onClick,
@ -69628,16 +69551,19 @@ function InspectorControlsTabs({
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(inspector_controls_tabs_Tabs, { children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(inspector_controls_tabs_Tabs, {
defaultTabId: initialTabName, defaultTabId: initialTabName,
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.TabList, { children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.TabList, {
children: tabs.map(tab => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.Tab, { children: tabs.map(tab => showIconLabels ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.Tab, {
tabId: tab.name, tabId: tab.name,
render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button className: tab.className,
// TODO: Switch to `true` (40px size) if possible children: tab.title
, { }, tab.name) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
__next40pxDefaultSize: false, text: tab.title,
icon: !showIconLabels ? tab.icon : undefined, children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.Tab, {
label: !showIconLabels ? tab.title : undefined, tabId: tab.name,
className: tab.className, className: tab.className,
children: showIconLabels && tab.title "aria-label": tab.title,
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
icon: tab.icon
})
}) })
}, tab.name)) }, tab.name))
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.TabPanel, { }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.TabPanel, {
@ -70647,20 +70573,16 @@ function InspectorPopoverHeader({
label, label,
icon, icon,
onClick onClick
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible size: "small",
, {
__next40pxDefaultSize: false,
className: "block-editor-inspector-popover-header__action", className: "block-editor-inspector-popover-header__action",
label: label, label: label,
icon: icon, icon: icon,
variant: !icon && 'tertiary', variant: !icon && 'tertiary',
onClick: onClick, onClick: onClick,
children: !icon && label children: !icon && label
}, label)), onClose && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button }, label)), onClose && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible size: "small",
, {
__next40pxDefaultSize: false,
className: "block-editor-inspector-popover-header__action", className: "block-editor-inspector-popover-header__action",
label: (0,external_wp_i18n_namespaceObject.__)('Close'), label: (0,external_wp_i18n_namespaceObject.__)('Close'),
icon: close_small, icon: close_small,

File diff suppressed because one or more lines are too long

View File

@ -14916,6 +14916,8 @@ function CoverEdit({
const isUploadingMedia = isTemporaryMedia(id, url); const isUploadingMedia = isTemporaryMedia(id, url);
const isImageBackground = IMAGE_BACKGROUND_TYPE === backgroundType; const isImageBackground = IMAGE_BACKGROUND_TYPE === backgroundType;
const isVideoBackground = VIDEO_BACKGROUND_TYPE === backgroundType; const isVideoBackground = VIDEO_BACKGROUND_TYPE === backgroundType;
const blockEditingMode = (0,external_wp_blockEditor_namespaceObject.useBlockEditingMode)();
const hasNonContentControls = blockEditingMode === 'default';
const [resizeListener, { const [resizeListener, {
height, height,
width width
@ -15046,7 +15048,7 @@ function CoverEdit({
}; };
if (!useFeaturedImage && !hasInnerBlocks && !hasBackground) { if (!useFeaturedImage && !hasInnerBlocks && !hasBackground) {
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
children: [blockControls, inspectorControls, isSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizableCoverPopover, { children: [blockControls, inspectorControls, hasNonContentControls && isSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizableCoverPopover, {
...resizableCoverProps ...resizableCoverProps
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(TagName, { }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(TagName, {
...blockProps, ...blockProps,
@ -15140,7 +15142,7 @@ function CoverEdit({
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...innerBlocksProps ...innerBlocksProps
})] })]
}), isSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizableCoverPopover, { }), hasNonContentControls && isSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizableCoverPopover, {
...resizableCoverProps ...resizableCoverProps
})] })]
}); });

File diff suppressed because one or more lines are too long

View File

@ -4609,9 +4609,15 @@ var IEKMDIUY_CompositeGroup = forwardRef2(function CompositeGroup2(props) {
const CompositeGroup = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeGroup(props, ref) { const CompositeGroup = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeGroup(props, ref) {
var _props$store;
const context = context_useCompositeContext(); const context = context_useCompositeContext();
// @ts-expect-error The store prop is undocumented and only used by the
// legacy compat layer. The `store` prop is documented, but its type is
// obfuscated to discourage its use outside of the component's internals.
const store = (_props$store = props.store) !== null && _props$store !== void 0 ? _props$store : context.store;
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(IEKMDIUY_CompositeGroup, { return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(IEKMDIUY_CompositeGroup, {
store: context.store, store: store,
...props, ...props,
ref: ref ref: ref
}); });
@ -4688,117 +4694,20 @@ var Y2MAXF6C_CompositeGroupLabel = forwardRef2(function CompositeGroupLabel2(pro
const CompositeGroupLabel = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeGroupLabel(props, ref) { const CompositeGroupLabel = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeGroupLabel(props, ref) {
var _props$store;
const context = context_useCompositeContext(); const context = context_useCompositeContext();
// @ts-expect-error The store prop is undocumented and only used by the
// legacy compat layer. The `store` prop is documented, but its type is
// obfuscated to discourage its use outside of the component's internals.
const store = (_props$store = props.store) !== null && _props$store !== void 0 ? _props$store : context.store;
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Y2MAXF6C_CompositeGroupLabel, { return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Y2MAXF6C_CompositeGroupLabel, {
store: context.store, store: store,
...props, ...props,
ref: ref ref: ref
}); });
}); });
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/OBZMLI6J.js
"use client";
// src/composite/composite-hover.tsx
var OBZMLI6J_TagName = "div";
function getMouseDestination(event) {
const relatedTarget = event.relatedTarget;
if ((relatedTarget == null ? void 0 : relatedTarget.nodeType) === Node.ELEMENT_NODE) {
return relatedTarget;
}
return null;
}
function hoveringInside(event) {
const nextElement = getMouseDestination(event);
if (!nextElement) return false;
return contains(event.currentTarget, nextElement);
}
var symbol = Symbol("composite-hover");
function movingToAnotherItem(event) {
let dest = getMouseDestination(event);
if (!dest) return false;
do {
if (PBFD2E7P_hasOwnProperty(dest, symbol) && dest[symbol]) return true;
dest = dest.parentElement;
} while (dest);
return false;
}
var useCompositeHover = createHook(
function useCompositeHover2(_a) {
var _b = _a, {
store,
focusOnHover = true,
blurOnHoverEnd = !!focusOnHover
} = _b, props = __objRest(_b, [
"store",
"focusOnHover",
"blurOnHoverEnd"
]);
const context = useCompositeContext();
store = store || context;
invariant(
store,
false && 0
);
const isMouseMoving = useIsMouseMoving();
const onMouseMoveProp = props.onMouseMove;
const focusOnHoverProp = useBooleanEvent(focusOnHover);
const onMouseMove = useEvent((event) => {
onMouseMoveProp == null ? void 0 : onMouseMoveProp(event);
if (event.defaultPrevented) return;
if (!isMouseMoving()) return;
if (!focusOnHoverProp(event)) return;
if (!hasFocusWithin(event.currentTarget)) {
const baseElement = store == null ? void 0 : store.getState().baseElement;
if (baseElement && !hasFocus(baseElement)) {
baseElement.focus();
}
}
store == null ? void 0 : store.setActiveId(event.currentTarget.id);
});
const onMouseLeaveProp = props.onMouseLeave;
const blurOnHoverEndProp = useBooleanEvent(blurOnHoverEnd);
const onMouseLeave = useEvent((event) => {
var _a2;
onMouseLeaveProp == null ? void 0 : onMouseLeaveProp(event);
if (event.defaultPrevented) return;
if (!isMouseMoving()) return;
if (hoveringInside(event)) return;
if (movingToAnotherItem(event)) return;
if (!focusOnHoverProp(event)) return;
if (!blurOnHoverEndProp(event)) return;
store == null ? void 0 : store.setActiveId(null);
(_a2 = store == null ? void 0 : store.getState().baseElement) == null ? void 0 : _a2.focus();
});
const ref = (0,external_React_.useCallback)((element) => {
if (!element) return;
element[symbol] = true;
}, []);
props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
ref: useMergeRefs(ref, props.ref),
onMouseMove,
onMouseLeave
});
return removeUndefinedValues(props);
}
);
var OBZMLI6J_CompositeHover = memo2(
forwardRef2(function CompositeHover2(props) {
const htmlProps = useCompositeHover(props);
return HKOOKEDE_createElement(OBZMLI6J_TagName, htmlProps);
})
);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/composite/hover.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/composite/hover.js
/** /**
* External dependencies * External dependencies
@ -4817,9 +4726,15 @@ var OBZMLI6J_CompositeHover = memo2(
const CompositeHover = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeHover(props, ref) { const CompositeHover = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeHover(props, ref) {
var _props$store;
const context = context_useCompositeContext(); const context = context_useCompositeContext();
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OBZMLI6J_CompositeHover, {
store: context.store, // @ts-expect-error The store prop is undocumented and only used by the
// legacy compat layer. The `store` prop is documented, but its type is
// obfuscated to discourage its use outside of the component's internals.
const store = (_props$store = props.store) !== null && _props$store !== void 0 ? _props$store : context.store;
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(IEKMDIUY_CompositeGroup, {
store: store,
...props, ...props,
ref: ref ref: ref
}); });
@ -4900,7 +4815,7 @@ function isNativeClick(event) {
} }
return false; return false;
} }
var HGP5L2ST_symbol = Symbol("command"); var symbol = Symbol("command");
var useCommand = createHook( var useCommand = createHook(
function useCommand2(_a) { function useCommand2(_a) {
var _b = _a, { clickOnEnter = true, clickOnSpace = true } = _b, props = __objRest(_b, ["clickOnEnter", "clickOnSpace"]); var _b = _a, { clickOnEnter = true, clickOnSpace = true } = _b, props = __objRest(_b, ["clickOnEnter", "clickOnSpace"]);
@ -4917,7 +4832,7 @@ var useCommand = createHook(
const [active, setActive] = (0,external_React_.useState)(false); const [active, setActive] = (0,external_React_.useState)(false);
const activeRef = (0,external_React_.useRef)(false); const activeRef = (0,external_React_.useRef)(false);
const disabled = disabledFromProps(props); const disabled = disabledFromProps(props);
const [isDuplicate, metadataProps] = useMetadataProps(props, HGP5L2ST_symbol, true); const [isDuplicate, metadataProps] = useMetadataProps(props, symbol, true);
const onKeyDownProp = props.onKeyDown; const onKeyDownProp = props.onKeyDown;
const onKeyDown = useEvent((event) => { const onKeyDown = useEvent((event) => {
onKeyDownProp == null ? void 0 : onKeyDownProp(event); onKeyDownProp == null ? void 0 : onKeyDownProp(event);
@ -5320,9 +5235,24 @@ var _7QKWW6TW_CompositeItem = memo2(
const CompositeItem = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeItem(props, ref) { const CompositeItem = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeItem(props, ref) {
var _props$store;
const context = context_useCompositeContext(); const context = context_useCompositeContext();
// @ts-expect-error The store prop is undocumented and only used by the
// legacy compat layer. The `store` prop is documented, but its type is
// obfuscated to discourage its use outside of the component's internals.
const store = (_props$store = props.store) !== null && _props$store !== void 0 ? _props$store : context.store;
// If the active item is not connected, Composite may end up in a state
// where none of the items are tabbable. In this case, we force all items to
// be tabbable, so that as soon as an item received focus, it becomes active
// and Composite goes back to working as expected.
const tabbable = useStoreState(store, state => {
return state?.activeId !== null && !store?.item(state?.activeId)?.element?.isConnected;
});
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(_7QKWW6TW_CompositeItem, { return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(_7QKWW6TW_CompositeItem, {
store: context.store, store: store,
tabbable: tabbable,
...props, ...props,
ref: ref ref: ref
}); });
@ -5399,118 +5329,20 @@ var _6BE7QOX5_CompositeRow = forwardRef2(function CompositeRow2(props) {
const CompositeRow = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeRow(props, ref) { const CompositeRow = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeRow(props, ref) {
var _props$store;
const context = context_useCompositeContext(); const context = context_useCompositeContext();
// @ts-expect-error The store prop is undocumented and only used by the
// legacy compat layer. The `store` prop is documented, but its type is
// obfuscated to discourage its use outside of the component's internals.
const store = (_props$store = props.store) !== null && _props$store !== void 0 ? _props$store : context.store;
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(_6BE7QOX5_CompositeRow, { return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(_6BE7QOX5_CompositeRow, {
store: context.store, store: store,
...props, ...props,
ref: ref ref: ref
}); });
}); });
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/DS36B3MQ.js
"use client";
// src/composite/composite-typeahead.tsx
var DS36B3MQ_TagName = "div";
var chars = "";
function clearChars() {
chars = "";
}
function isValidTypeaheadEvent(event) {
const target = event.target;
if (target && isTextField(target)) return false;
if (event.key === " " && chars.length) return true;
return event.key.length === 1 && !event.ctrlKey && !event.altKey && !event.metaKey && /^[\p{Letter}\p{Number}]$/u.test(event.key);
}
function isSelfTargetOrItem(event, items) {
if (isSelfTarget(event)) return true;
const target = event.target;
if (!target) return false;
const isItem = items.some((item) => item.element === target);
return isItem;
}
function DS36B3MQ_getEnabledItems(items) {
return items.filter((item) => !item.disabled);
}
function itemTextStartsWith(item, text) {
var _a;
const itemText = ((_a = item.element) == null ? void 0 : _a.textContent) || item.children || // The composite item object itself doesn't include a value property, but
// other components like Select do. Since CompositeTypeahead is a generic
// component that can be used with those as well, we also consider the value
// property as a fallback for the typeahead text content.
"value" in item && item.value;
if (!itemText) return false;
return normalizeString(itemText).trim().toLowerCase().startsWith(text.toLowerCase());
}
function getSameInitialItems(items, char, activeId) {
if (!activeId) return items;
const activeItem = items.find((item) => item.id === activeId);
if (!activeItem) return items;
if (!itemTextStartsWith(activeItem, char)) return items;
if (chars !== char && itemTextStartsWith(activeItem, chars)) return items;
chars = char;
return _5VQZOHHZ_flipItems(
items.filter((item) => itemTextStartsWith(item, chars)),
activeId
).filter((item) => item.id !== activeId);
}
var useCompositeTypeahead = createHook(function useCompositeTypeahead2(_a) {
var _b = _a, { store, typeahead = true } = _b, props = __objRest(_b, ["store", "typeahead"]);
const context = useCompositeContext();
store = store || context;
invariant(
store,
false && 0
);
const onKeyDownCaptureProp = props.onKeyDownCapture;
const cleanupTimeoutRef = (0,external_React_.useRef)(0);
const onKeyDownCapture = useEvent((event) => {
onKeyDownCaptureProp == null ? void 0 : onKeyDownCaptureProp(event);
if (event.defaultPrevented) return;
if (!typeahead) return;
if (!store) return;
const { renderedItems, items, activeId } = store.getState();
if (!isValidTypeaheadEvent(event)) return clearChars();
let enabledItems = DS36B3MQ_getEnabledItems(
renderedItems.length ? renderedItems : items
);
if (!isSelfTargetOrItem(event, enabledItems)) return clearChars();
event.preventDefault();
window.clearTimeout(cleanupTimeoutRef.current);
cleanupTimeoutRef.current = window.setTimeout(() => {
chars = "";
}, 500);
const char = event.key.toLowerCase();
chars += char;
enabledItems = getSameInitialItems(enabledItems, char, activeId);
const item = enabledItems.find((item2) => itemTextStartsWith(item2, chars));
if (item) {
store.move(item.id);
} else {
clearChars();
}
});
props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
onKeyDownCapture
});
return removeUndefinedValues(props);
});
var DS36B3MQ_CompositeTypeahead = forwardRef2(function CompositeTypeahead2(props) {
const htmlProps = useCompositeTypeahead(props);
return HKOOKEDE_createElement(DS36B3MQ_TagName, htmlProps);
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/composite/typeahead.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/composite/typeahead.js
/** /**
* External dependencies * External dependencies
@ -5529,9 +5361,15 @@ var DS36B3MQ_CompositeTypeahead = forwardRef2(function CompositeTypeahead2(props
const CompositeTypeahead = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeTypeahead(props, ref) { const CompositeTypeahead = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeTypeahead(props, ref) {
var _props$store;
const context = context_useCompositeContext(); const context = context_useCompositeContext();
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DS36B3MQ_CompositeTypeahead, {
store: context.store, // @ts-expect-error The store prop is undocumented and only used by the
// legacy compat layer. The `store` prop is documented, but its type is
// obfuscated to discourage its use outside of the component's internals.
const store = (_props$store = props.store) !== null && _props$store !== void 0 ? _props$store : context.store;
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(_6BE7QOX5_CompositeRow, {
store: store,
...props, ...props,
ref: ref ref: ref
}); });
@ -5603,7 +5441,10 @@ const Composite = Object.assign((0,external_wp_element_namespaceObject.forwardRe
// Rest props // Rest props
...props ...props
}, ref) { }, ref) {
const store = useCompositeStore({ // @ts-expect-error The store prop is undocumented and only used by the
// legacy compat layer.
const storeProp = props.store;
const internalStore = useCompositeStore({
activeId, activeId,
defaultActiveId, defaultActiveId,
setActiveId, setActiveId,
@ -5614,6 +5455,7 @@ const Composite = Object.assign((0,external_wp_element_namespaceObject.forwardRe
orientation, orientation,
rtl rtl
}); });
const store = storeProp !== null && storeProp !== void 0 ? storeProp : internalStore;
const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({ const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
store store
}), [store]); }), [store]);
@ -48463,6 +48305,110 @@ var SelectArrow = forwardRef2(function SelectArrow2(props) {
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/DS36B3MQ.js
"use client";
// src/composite/composite-typeahead.tsx
var DS36B3MQ_TagName = "div";
var chars = "";
function clearChars() {
chars = "";
}
function isValidTypeaheadEvent(event) {
const target = event.target;
if (target && isTextField(target)) return false;
if (event.key === " " && chars.length) return true;
return event.key.length === 1 && !event.ctrlKey && !event.altKey && !event.metaKey && /^[\p{Letter}\p{Number}]$/u.test(event.key);
}
function isSelfTargetOrItem(event, items) {
if (isSelfTarget(event)) return true;
const target = event.target;
if (!target) return false;
const isItem = items.some((item) => item.element === target);
return isItem;
}
function DS36B3MQ_getEnabledItems(items) {
return items.filter((item) => !item.disabled);
}
function itemTextStartsWith(item, text) {
var _a;
const itemText = ((_a = item.element) == null ? void 0 : _a.textContent) || item.children || // The composite item object itself doesn't include a value property, but
// other components like Select do. Since CompositeTypeahead is a generic
// component that can be used with those as well, we also consider the value
// property as a fallback for the typeahead text content.
"value" in item && item.value;
if (!itemText) return false;
return normalizeString(itemText).trim().toLowerCase().startsWith(text.toLowerCase());
}
function getSameInitialItems(items, char, activeId) {
if (!activeId) return items;
const activeItem = items.find((item) => item.id === activeId);
if (!activeItem) return items;
if (!itemTextStartsWith(activeItem, char)) return items;
if (chars !== char && itemTextStartsWith(activeItem, chars)) return items;
chars = char;
return _5VQZOHHZ_flipItems(
items.filter((item) => itemTextStartsWith(item, chars)),
activeId
).filter((item) => item.id !== activeId);
}
var useCompositeTypeahead = createHook(function useCompositeTypeahead2(_a) {
var _b = _a, { store, typeahead = true } = _b, props = __objRest(_b, ["store", "typeahead"]);
const context = useCompositeContext();
store = store || context;
invariant(
store,
false && 0
);
const onKeyDownCaptureProp = props.onKeyDownCapture;
const cleanupTimeoutRef = (0,external_React_.useRef)(0);
const onKeyDownCapture = useEvent((event) => {
onKeyDownCaptureProp == null ? void 0 : onKeyDownCaptureProp(event);
if (event.defaultPrevented) return;
if (!typeahead) return;
if (!store) return;
const { renderedItems, items, activeId } = store.getState();
if (!isValidTypeaheadEvent(event)) return clearChars();
let enabledItems = DS36B3MQ_getEnabledItems(
renderedItems.length ? renderedItems : items
);
if (!isSelfTargetOrItem(event, enabledItems)) return clearChars();
event.preventDefault();
window.clearTimeout(cleanupTimeoutRef.current);
cleanupTimeoutRef.current = window.setTimeout(() => {
chars = "";
}, 500);
const char = event.key.toLowerCase();
chars += char;
enabledItems = getSameInitialItems(enabledItems, char, activeId);
const item = enabledItems.find((item2) => itemTextStartsWith(item2, chars));
if (item) {
store.move(item.id);
} else {
clearChars();
}
});
props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
onKeyDownCapture
});
return removeUndefinedValues(props);
});
var DS36B3MQ_CompositeTypeahead = forwardRef2(function CompositeTypeahead2(props) {
const htmlProps = useCompositeTypeahead(props);
return HKOOKEDE_createElement(DS36B3MQ_TagName, htmlProps);
});
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/select/select.js ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/select/select.js
"use client"; "use client";
@ -48897,6 +48843,109 @@ var SelectPopover = createDialogComponent(
); );
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/OBZMLI6J.js
"use client";
// src/composite/composite-hover.tsx
var OBZMLI6J_TagName = "div";
function getMouseDestination(event) {
const relatedTarget = event.relatedTarget;
if ((relatedTarget == null ? void 0 : relatedTarget.nodeType) === Node.ELEMENT_NODE) {
return relatedTarget;
}
return null;
}
function hoveringInside(event) {
const nextElement = getMouseDestination(event);
if (!nextElement) return false;
return contains(event.currentTarget, nextElement);
}
var OBZMLI6J_symbol = Symbol("composite-hover");
function movingToAnotherItem(event) {
let dest = getMouseDestination(event);
if (!dest) return false;
do {
if (PBFD2E7P_hasOwnProperty(dest, OBZMLI6J_symbol) && dest[OBZMLI6J_symbol]) return true;
dest = dest.parentElement;
} while (dest);
return false;
}
var useCompositeHover = createHook(
function useCompositeHover2(_a) {
var _b = _a, {
store,
focusOnHover = true,
blurOnHoverEnd = !!focusOnHover
} = _b, props = __objRest(_b, [
"store",
"focusOnHover",
"blurOnHoverEnd"
]);
const context = useCompositeContext();
store = store || context;
invariant(
store,
false && 0
);
const isMouseMoving = useIsMouseMoving();
const onMouseMoveProp = props.onMouseMove;
const focusOnHoverProp = useBooleanEvent(focusOnHover);
const onMouseMove = useEvent((event) => {
onMouseMoveProp == null ? void 0 : onMouseMoveProp(event);
if (event.defaultPrevented) return;
if (!isMouseMoving()) return;
if (!focusOnHoverProp(event)) return;
if (!hasFocusWithin(event.currentTarget)) {
const baseElement = store == null ? void 0 : store.getState().baseElement;
if (baseElement && !hasFocus(baseElement)) {
baseElement.focus();
}
}
store == null ? void 0 : store.setActiveId(event.currentTarget.id);
});
const onMouseLeaveProp = props.onMouseLeave;
const blurOnHoverEndProp = useBooleanEvent(blurOnHoverEnd);
const onMouseLeave = useEvent((event) => {
var _a2;
onMouseLeaveProp == null ? void 0 : onMouseLeaveProp(event);
if (event.defaultPrevented) return;
if (!isMouseMoving()) return;
if (hoveringInside(event)) return;
if (movingToAnotherItem(event)) return;
if (!focusOnHoverProp(event)) return;
if (!blurOnHoverEndProp(event)) return;
store == null ? void 0 : store.setActiveId(null);
(_a2 = store == null ? void 0 : store.getState().baseElement) == null ? void 0 : _a2.focus();
});
const ref = (0,external_React_.useCallback)((element) => {
if (!element) return;
element[OBZMLI6J_symbol] = true;
}, []);
props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
ref: useMergeRefs(ref, props.ref),
onMouseMove,
onMouseLeave
});
return removeUndefinedValues(props);
}
);
var OBZMLI6J_CompositeHover = memo2(
forwardRef2(function CompositeHover2(props) {
const htmlProps = useCompositeHover(props);
return HKOOKEDE_createElement(OBZMLI6J_TagName, htmlProps);
})
);
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/select/select-item.js ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/select/select-item.js
"use client"; "use client";
@ -54135,7 +54184,8 @@ function DatePicker({
viewPreviousMonth(); viewPreviousMonth();
setFocusable(subMonths(focusable, 1)); setFocusable(subMonths(focusable, 1));
onMonthPreviewed?.(format(subMonths(viewing, 1), TIMEZONELESS_FORMAT)); onMonthPreviewed?.(format(subMonths(viewing, 1), TIMEZONELESS_FORMAT));
} },
size: "compact"
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(NavigatorHeading, { }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(NavigatorHeading, {
level: 3, level: 3,
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", { children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {
@ -54149,7 +54199,8 @@ function DatePicker({
viewNextMonth(); viewNextMonth();
setFocusable(addMonths(focusable, 1)); setFocusable(addMonths(focusable, 1));
onMonthPreviewed?.(format(addMonths(viewing, 1), TIMEZONELESS_FORMAT)); onMonthPreviewed?.(format(addMonths(viewing, 1), TIMEZONELESS_FORMAT));
} },
size: "compact"
})] })]
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Calendar, { }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Calendar, {
onFocus: () => setIsFocusWithinCalendar(true), onFocus: () => setIsFocusWithinCalendar(true),

File diff suppressed because one or more lines are too long

View File

@ -8027,10 +8027,8 @@ const SiteHub = (0,external_wp_element_namespaceObject.memo)((0,external_wp_elem
className: dist_clsx('edit-site-site-hub__view-mode-toggle-container', { className: dist_clsx('edit-site-site-hub__view-mode-toggle-container', {
'has-transparent-background': isTransparent 'has-transparent-background': isTransparent
}), }),
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
ref: ref, ref: ref,
href: dashboardLink, href: dashboardLink,
label: (0,external_wp_i18n_namespaceObject.__)('Go to the Dashboard'), label: (0,external_wp_i18n_namespaceObject.__)('Go to the Dashboard'),
@ -8046,10 +8044,8 @@ const SiteHub = (0,external_wp_element_namespaceObject.memo)((0,external_wp_elem
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, { }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: "edit-site-site-hub__title", className: "edit-site-site-hub__title",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Button children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
variant: "link", variant: "link",
href: homeUrl, href: homeUrl,
target: "_blank", target: "_blank",
@ -8063,10 +8059,8 @@ const SiteHub = (0,external_wp_element_namespaceObject.memo)((0,external_wp_elem
spacing: 0, spacing: 0,
expanded: false, expanded: false,
className: "edit-site-site-hub__actions", className: "edit-site-site-hub__actions",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
className: "edit-site-site-hub_toggle-command-center", className: "edit-site-site-hub_toggle-command-center",
icon: library_search, icon: library_search,
onClick: () => openCommandCenter(), onClick: () => openCommandCenter(),
@ -8111,10 +8105,8 @@ const SiteHubMobile = (0,external_wp_element_namespaceObject.memo)((0,external_w
className: dist_clsx('edit-site-site-hub__view-mode-toggle-container', { className: dist_clsx('edit-site-site-hub__view-mode-toggle-container', {
'has-transparent-background': isTransparent 'has-transparent-background': isTransparent
}), }),
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
ref: ref, ref: ref,
label: (0,external_wp_i18n_namespaceObject.__)('Go to Site Editor'), label: (0,external_wp_i18n_namespaceObject.__)('Go to Site Editor'),
className: "edit-site-layout__view-mode-toggle", className: "edit-site-layout__view-mode-toggle",
@ -8133,10 +8125,8 @@ const SiteHubMobile = (0,external_wp_element_namespaceObject.memo)((0,external_w
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, { }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: "edit-site-site-hub__title", className: "edit-site-site-hub__title",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
variant: "link", variant: "link",
href: homeUrl, href: homeUrl,
target: "_blank", target: "_blank",
@ -8147,10 +8137,8 @@ const SiteHubMobile = (0,external_wp_element_namespaceObject.memo)((0,external_w
spacing: 0, spacing: 0,
expanded: false, expanded: false,
className: "edit-site-site-hub__actions", className: "edit-site-site-hub__actions",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
className: "edit-site-site-hub_toggle-command-center", className: "edit-site-site-hub_toggle-command-center",
icon: library_search, icon: library_search,
onClick: () => openCommandCenter(), onClick: () => openCommandCenter(),
@ -9189,10 +9177,8 @@ function SavePanel() {
className: dist_clsx('edit-site-editor__toggle-save-panel', { className: dist_clsx('edit-site-editor__toggle-save-panel', {
'screen-reader-text': isSaveViewOpen 'screen-reader-text': isSaveViewOpen
}), }),
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
variant: "secondary", variant: "secondary",
className: "edit-site-editor__toggle-save-panel-button", className: "edit-site-editor__toggle-save-panel-button",
onClick: () => setIsSaveViewOpened(true), onClick: () => setIsSaveViewOpened(true),
@ -20012,7 +19998,6 @@ function FontSize() {
origin, origin,
slug slug
}, },
goBack,
goTo goTo
} = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)(); } = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
const [fontSizes, setFontSizes] = font_size_useGlobalSetting('typography.fontSizes'); const [fontSizes, setFontSizes] = font_size_useGlobalSetting('typography.fontSizes');
@ -20025,10 +20010,10 @@ function FontSize() {
const fontSize = sizes.find(size => size.slug === slug); const fontSize = sizes.find(size => size.slug === slug);
// Whether the font size is fluid. If not defined, use the global fluid value of the theme. // Whether the font size is fluid. If not defined, use the global fluid value of the theme.
const isFluid = fontSize.fluid !== undefined ? !!fontSize.fluid : !!globalFluid; const isFluid = fontSize?.fluid !== undefined ? !!fontSize.fluid : !!globalFluid;
// Whether custom fluid values are used. // Whether custom fluid values are used.
const isCustomFluid = typeof fontSize.fluid === 'object'; const isCustomFluid = typeof fontSize?.fluid === 'object';
const handleNameChange = value => { const handleNameChange = value => {
updateFontSize('name', value); updateFontSize('name', value);
}; };
@ -20078,8 +20063,6 @@ function FontSize() {
}); });
}; };
const handleRemoveFontSize = () => { const handleRemoveFontSize = () => {
// Navigate to the font sizes list.
goBack();
const newFontSizes = sizes.filter(size => size.slug !== slug); const newFontSizes = sizes.filter(size => size.slug !== slug);
setFontSizes({ setFontSizes({
...fontSizes, ...fontSizes,
@ -20092,6 +20075,20 @@ function FontSize() {
const toggleRenameDialog = () => { const toggleRenameDialog = () => {
setIsRenameDialogOpen(!isRenameDialogOpen); setIsRenameDialogOpen(!isRenameDialogOpen);
}; };
// Navigate to the font sizes list if the font size is not available.
(0,external_wp_element_namespaceObject.useEffect)(() => {
if (!fontSize) {
goTo('/typography/font-sizes/', {
isBack: true
});
}
}, [fontSize, goTo]);
// Avoid rendering if the font size is not available.
if (!fontSize) {
return null;
}
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(confirm_delete_font_size_dialog, { children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(confirm_delete_font_size_dialog, {
fontSize: fontSize, fontSize: fontSize,
@ -23541,19 +23538,6 @@ function GlobalStylesEditorCanvasContainerLink() {
goTo('/'); goTo('/');
} }
break; break;
default:
/*
* Example: the user has navigated to "Browse styles" or elsewhere
* and changes the editorCanvasContainerView, e.g., closes the style book.
* The panel should not be affected.
* Exclude revisions panel from this behavior,
* as it should close when the editorCanvasContainerView doesn't correspond.
*/
if (path !== '/' && !isRevisionsOpen) {
return;
}
goTo('/');
break;
} }
}, [editorCanvasContainerView, isRevisionsOpen, goTo]); }, [editorCanvasContainerView, isRevisionsOpen, goTo]);
} }
@ -35927,10 +35911,8 @@ function TitleField({
gap: 0, gap: 0,
justify: "flex-start", justify: "flex-start",
className: "edit-site-patterns__pattern-title", className: "edit-site-patterns__pattern-title",
children: item.type === PATTERN_TYPES.theme ? title : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: item.type === PATTERN_TYPES.theme ? title : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
variant: "link", variant: "link",
onClick: onClick onClick: onClick
// Required for the grid's roving tab index system. // Required for the grid's roving tab index system.
@ -38402,10 +38384,8 @@ function PageTemplates() {
function SidebarButton(props) { function SidebarButton(props) {
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
...props, ...props,
className: dist_clsx('edit-site-sidebar-button', props.className) className: dist_clsx('edit-site-sidebar-button', props.className)
}); });
@ -40440,19 +40420,15 @@ function AddNewItemModalContent({
className: "patterns-create-modal__name-input" className: "patterns-create-modal__name-input"
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, { }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
justify: "right", justify: "right",
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
variant: "tertiary", variant: "tertiary",
onClick: () => { onClick: () => {
setIsAdding(false); setIsAdding(false);
}, },
children: (0,external_wp_i18n_namespaceObject.__)('Cancel') children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible __next40pxDefaultSize: true,
, {
__next40pxDefaultSize: false,
variant: "primary", variant: "primary",
type: "submit", type: "submit",
"aria-disabled": !title || isSaving, "aria-disabled": !title || isSaving,

File diff suppressed because one or more lines are too long

View File

@ -26284,6 +26284,7 @@ function Header({
isPublishSidebarOpened, isPublishSidebarOpened,
showIconLabels, showIconLabels,
hasFixedToolbar, hasFixedToolbar,
hasBlockSelection,
isNestedEntity isNestedEntity
} = (0,external_wp_data_namespaceObject.useSelect)(select => { } = (0,external_wp_data_namespaceObject.useSelect)(select => {
const { const {
@ -26302,12 +26303,13 @@ function Header({
isPublishSidebarOpened: _isPublishSidebarOpened(), isPublishSidebarOpened: _isPublishSidebarOpened(),
showIconLabels: getPreference('core', 'showIconLabels'), showIconLabels: getPreference('core', 'showIconLabels'),
hasFixedToolbar: getPreference('core', 'fixedToolbar'), hasFixedToolbar: getPreference('core', 'fixedToolbar'),
hasBlockSelection: !!select(external_wp_blockEditor_namespaceObject.store).getBlockSelectionStart(),
isNestedEntity: !!getEditorSettings().onNavigateToPreviousEntityRecord, isNestedEntity: !!getEditorSettings().onNavigateToPreviousEntityRecord,
isZoomedOutView: __unstableGetEditorMode() === 'zoom-out' isZoomedOutView: __unstableGetEditorMode() === 'zoom-out'
}; };
}, []); }, []);
const [isBlockToolsCollapsed, setIsBlockToolsCollapsed] = (0,external_wp_element_namespaceObject.useState)(true); const [isBlockToolsCollapsed, setIsBlockToolsCollapsed] = (0,external_wp_element_namespaceObject.useState)(true);
const hasCenter = isBlockToolsCollapsed && !isTooNarrowForDocumentBar; const hasCenter = (!hasBlockSelection || isBlockToolsCollapsed) && !isTooNarrowForDocumentBar;
const hasBackButton = useHasBackButton(); const hasBackButton = useHasBackButton();
// The edit-post-header classname is only kept for backward compatibilty // The edit-post-header classname is only kept for backward compatibilty

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1018,42 +1018,46 @@ const peek = (obj, key) => {
* by default). * by default).
*/ */
const deepMergeRecursive = (target, source, override = true) => { const deepMergeRecursive = (target, source, override = true) => {
if (isPlainObject(target) && isPlainObject(source)) { if (!(isPlainObject(target) && isPlainObject(source))) {
let hasNewKeys = false; return;
for (const key in source) { }
const isNew = !(key in target); let hasNewKeys = false;
hasNewKeys = hasNewKeys || isNew; for (const key in source) {
const desc = Object.getOwnPropertyDescriptor(source, key); const isNew = !(key in target);
if (typeof desc?.get === 'function' || typeof desc?.set === 'function') { hasNewKeys = hasNewKeys || isNew;
if (override || isNew) { const desc = Object.getOwnPropertyDescriptor(source, key);
Object.defineProperty(target, key, { const proxy = getProxyFromObject(target);
...desc, const propSignal = !!proxy && hasPropSignal(proxy, key) && getPropSignal(proxy, key);
configurable: true, if (typeof desc.get === 'function' || typeof desc.set === 'function') {
enumerable: true if (override || isNew) {
}); Object.defineProperty(target, key, {
const proxy = getProxyFromObject(target); ...desc,
if (desc?.get && proxy && hasPropSignal(proxy, key)) { configurable: true,
const propSignal = getPropSignal(proxy, key); enumerable: true
propSignal.setGetter(desc.get); });
} if (desc.get && propSignal) {
} propSignal.setGetter(desc.get);
} else if (isPlainObject(source[key])) {
if (isNew) {
target[key] = {};
}
deepMergeRecursive(target[key], source[key], override);
} else if (override || isNew) {
Object.defineProperty(target, key, desc);
const proxy = getProxyFromObject(target);
if (desc?.value && proxy && hasPropSignal(proxy, key)) {
const propSignal = getPropSignal(proxy, key);
propSignal.setValue(desc.value);
} }
} }
} else if (isPlainObject(source[key])) {
if (isNew || override && !isPlainObject(target[key])) {
target[key] = {};
if (propSignal) {
propSignal.setValue(target[key]);
}
}
if (isPlainObject(target[key])) {
deepMergeRecursive(target[key], source[key], override);
}
} else if (override || isNew) {
Object.defineProperty(target, key, desc);
if (propSignal) {
propSignal.setValue(desc.value);
}
} }
if (hasNewKeys && objToIterable.has(target)) { }
objToIterable.get(target).value++; if (hasNewKeys && objToIterable.has(target)) {
} objToIterable.get(target).value++;
} }
}; };

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.7-beta1-59183'; $wp_version = '6.7-beta1-59184';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.