Editor: Update packages for 6.7 Beta 1.

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

See #61906.

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


git-svn-id: http://core.svn.wordpress.org/trunk@58544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
noisysocks 2024-10-01 01:18:28 +00:00
parent 9171d921f4
commit 0e5b9a0eb4
44 changed files with 243 additions and 309 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

@ -49,7 +49,7 @@ function render_block_core_categories( $attributes, $content, $block ) {
$show_label = empty( $attributes['showLabel'] ) ? ' screen-reader-text' : '';
$default_label = $taxonomy->label;
$label_text = ! empty( $attributes['label'] ) ? $attributes['label'] : $default_label;
$label_text = ! empty( $attributes['label'] ) ? wp_kses_post( $attributes['label'] ) : $default_label;
$wrapper_markup = '<div %1$s><label class="wp-block-categories__label' . $show_label . '" for="' . esc_attr( $id ) . '">' . $label_text . '</label>%2$s</div>';
$items_markup = wp_dropdown_categories( $args );
$type = 'dropdown';

View File

@ -698,26 +698,14 @@
}
.block-editor-media-placeholder__url-input-form{
display:flex;
}
.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{
border:none;
border-radius:0;
flex-grow:1;
margin:2px;
min-width:200px;
width:100%;
min-width:260px;
}
@media (min-width:600px){
.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{
.block-editor-media-placeholder__url-input-form{
width:300px;
}
}
.block-editor-media-placeholder__url-input-submit-button{
flex-shrink:1;
}
.block-editor-media-placeholder__cancel-button.is-link{
display:block;
margin:1em;

File diff suppressed because one or more lines are too long

View File

@ -698,26 +698,14 @@
}
.block-editor-media-placeholder__url-input-form{
display:flex;
}
.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{
border:none;
border-radius:0;
flex-grow:1;
margin:2px;
min-width:200px;
width:100%;
min-width:260px;
}
@media (min-width:600px){
.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{
.block-editor-media-placeholder__url-input-form{
width:300px;
}
}
.block-editor-media-placeholder__url-input-submit-button{
flex-shrink:1;
}
.block-editor-media-placeholder__cancel-button.is-link{
display:block;
margin:1em;

File diff suppressed because one or more lines are too long

View File

@ -1009,17 +1009,6 @@ ul.dataviews-view-list{
margin-bottom:16px;
}
[class].dataforms-layouts-panel__dropdown-header-action{
height:24px;
}
[class].dataforms-layouts-panel__dropdown-header-action.has-icon{
min-width:24px;
padding:0;
}
[class].dataforms-layouts-panel__dropdown-header-action:not(.has-icon){
text-decoration:underline;
}
.edit-site-layout{
color:#ccc;
display:flex;
@ -1340,7 +1329,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
overflow-y:auto;
}
@keyframes _vbgy4_slide-from-right{
@keyframes _dq5dx_slide-from-right{
0%{
opacity:0;
transform:translateX(-50px);
@ -1350,7 +1339,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
transform:none;
}
}
@keyframes _vbgy4_slide-from-left{
@keyframes _dq5dx_slide-from-left{
0%{
opacity:0;
transform:translateX(50px);
@ -1406,10 +1395,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
}
}
.edit-site-sidebar__screen-wrapper.slide-from-left{
animation-name:_vbgy4_slide-from-left;
animation-name:_dq5dx_slide-from-left;
}
.edit-site-sidebar__screen-wrapper.slide-from-right{
animation-name:_vbgy4_slide-from-right;
animation-name:_dq5dx_slide-from-right;
}
.edit-site-site-hub{

File diff suppressed because one or more lines are too long

View File

@ -1009,17 +1009,6 @@ ul.dataviews-view-list{
margin-bottom:16px;
}
[class].dataforms-layouts-panel__dropdown-header-action{
height:24px;
}
[class].dataforms-layouts-panel__dropdown-header-action.has-icon{
min-width:24px;
padding:0;
}
[class].dataforms-layouts-panel__dropdown-header-action:not(.has-icon){
text-decoration:underline;
}
.edit-site-layout{
color:#ccc;
display:flex;
@ -1340,7 +1329,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
overflow-y:auto;
}
@keyframes _vbgy4_slide-from-right{
@keyframes _dq5dx_slide-from-right{
0%{
opacity:0;
transform:translateX(50px);
@ -1350,7 +1339,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
transform:none;
}
}
@keyframes _vbgy4_slide-from-left{
@keyframes _dq5dx_slide-from-left{
0%{
opacity:0;
transform:translateX(-50px);
@ -1406,10 +1395,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
}
}
.edit-site-sidebar__screen-wrapper.slide-from-left{
animation-name:_vbgy4_slide-from-left;
animation-name:_dq5dx_slide-from-left;
}
.edit-site-sidebar__screen-wrapper.slide-from-right{
animation-name:_vbgy4_slide-from-right;
animation-name:_dq5dx_slide-from-right;
}
.edit-site-site-hub{

File diff suppressed because one or more lines are too long

View File

@ -1009,17 +1009,6 @@ ul.dataviews-view-list{
margin-bottom:16px;
}
[class].dataforms-layouts-panel__dropdown-header-action{
height:24px;
}
[class].dataforms-layouts-panel__dropdown-header-action.has-icon{
min-width:24px;
padding:0;
}
[class].dataforms-layouts-panel__dropdown-header-action:not(.has-icon){
text-decoration:underline;
}
.edit-site-custom-template-modal__contents-wrapper{
height:100%;
justify-content:flex-start !important;
@ -2324,7 +2313,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
overflow-y:auto;
}
@keyframes _anvff_slide-from-right{
@keyframes _ngjuq_slide-from-right{
0%{
opacity:0;
transform:translateX(-50px);
@ -2334,7 +2323,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
transform:none;
}
}
@keyframes _anvff_slide-from-left{
@keyframes _ngjuq_slide-from-left{
0%{
opacity:0;
transform:translateX(50px);
@ -2390,10 +2379,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
}
}
.edit-site-sidebar__screen-wrapper.slide-from-left{
animation-name:_anvff_slide-from-left;
animation-name:_ngjuq_slide-from-left;
}
.edit-site-sidebar__screen-wrapper.slide-from-right{
animation-name:_anvff_slide-from-right;
animation-name:_ngjuq_slide-from-right;
}
.edit-site-sidebar-button{

File diff suppressed because one or more lines are too long

View File

@ -1009,17 +1009,6 @@ ul.dataviews-view-list{
margin-bottom:16px;
}
[class].dataforms-layouts-panel__dropdown-header-action{
height:24px;
}
[class].dataforms-layouts-panel__dropdown-header-action.has-icon{
min-width:24px;
padding:0;
}
[class].dataforms-layouts-panel__dropdown-header-action:not(.has-icon){
text-decoration:underline;
}
.edit-site-custom-template-modal__contents-wrapper{
height:100%;
justify-content:flex-start !important;
@ -2324,7 +2313,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
overflow-y:auto;
}
@keyframes _anvff_slide-from-right{
@keyframes _ngjuq_slide-from-right{
0%{
opacity:0;
transform:translateX(50px);
@ -2334,7 +2323,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
transform:none;
}
}
@keyframes _anvff_slide-from-left{
@keyframes _ngjuq_slide-from-left{
0%{
opacity:0;
transform:translateX(-50px);
@ -2390,10 +2379,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
}
}
.edit-site-sidebar__screen-wrapper.slide-from-left{
animation-name:_anvff_slide-from-left;
animation-name:_ngjuq_slide-from-left;
}
.edit-site-sidebar__screen-wrapper.slide-from-right{
animation-name:_anvff_slide-from-right;
animation-name:_ngjuq_slide-from-right;
}
.edit-site-sidebar-button{

File diff suppressed because one or more lines are too long

View File

@ -20,6 +20,10 @@
padding:10px;
}
[class].list-reusable-blocks-import-dropdown__button{
height:30px;
}
.list-reusable-blocks-import-form__label{
display:block;
margin-bottom:10px;
@ -27,7 +31,6 @@
.list-reusable-blocks-import-form__button{
float:left;
margin-bottom:10px;
margin-top:10px;
}
@ -45,9 +48,6 @@
position:relative;
top:-3px;
}
.list-reusable-blocks__container .components-button{
height:26px;
}
body.admin-color-light{
--wp-admin-theme-color:#0085ba;

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}}.list-reusable-blocks-import-dropdown__content .components-popover__content{padding:10px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{float:left;margin-bottom:10px;margin-top:10px}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks-import-form .components-notice.is-dismissible{margin:5px 0;padding-left:0}.list-reusable-blocks__container{align-items:center;display:inline-flex;position:relative;top:-3px}.list-reusable-blocks__container .components-button{height:26px}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.list-reusable-blocks-import-dropdown__content .components-popover__content{padding:10px}[class].list-reusable-blocks-import-dropdown__button{height:30px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{float:left;margin-top:10px}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks-import-form .components-notice.is-dismissible{margin:5px 0;padding-left:0}.list-reusable-blocks__container{align-items:center;display:inline-flex;position:relative;top:-3px}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}

View File

@ -20,6 +20,10 @@
padding:10px;
}
[class].list-reusable-blocks-import-dropdown__button{
height:30px;
}
.list-reusable-blocks-import-form__label{
display:block;
margin-bottom:10px;
@ -27,7 +31,6 @@
.list-reusable-blocks-import-form__button{
float:right;
margin-bottom:10px;
margin-top:10px;
}
@ -45,9 +48,6 @@
position:relative;
top:-3px;
}
.list-reusable-blocks__container .components-button{
height:26px;
}
body.admin-color-light{
--wp-admin-theme-color:#0085ba;

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}}.list-reusable-blocks-import-dropdown__content .components-popover__content{padding:10px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{float:right;margin-bottom:10px;margin-top:10px}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks-import-form .components-notice.is-dismissible{margin:5px 0;padding-right:0}.list-reusable-blocks__container{align-items:center;display:inline-flex;position:relative;top:-3px}.list-reusable-blocks__container .components-button{height:26px}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.list-reusable-blocks-import-dropdown__content .components-popover__content{padding:10px}[class].list-reusable-blocks-import-dropdown__button{height:30px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{float:right;margin-top:10px}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks-import-form .components-notice.is-dismissible{margin:5px 0;padding-right:0}.list-reusable-blocks__container{align-items:center;display:inline-flex;position:relative;top:-3px}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}

View File

@ -482,12 +482,12 @@ function __experimentalGetAnnotations(state) {
return Object.values(state).flat();
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/native.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({
randomUUID
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/rng.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()).
@ -506,7 +506,7 @@ function rng() {
return getRandomValues(rnds8);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/stringify.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
/**
* Convert array of 16 byte values to UUID string format of the form:
@ -540,7 +540,7 @@ function stringify(arr, offset = 0) {
}
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/v4.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js

View File

@ -7711,6 +7711,7 @@ __webpack_require__.d(__webpack_exports__, {
store: () => (/* reexport */ store),
storeConfig: () => (/* reexport */ storeConfig),
transformStyles: () => (/* reexport */ transform_styles),
useBlockBindingsUtils: () => (/* reexport */ useBlockBindingsUtils),
useBlockCommands: () => (/* reexport */ useBlockCommands),
useBlockDisplayInformation: () => (/* reexport */ useBlockDisplayInformation),
useBlockEditContext: () => (/* reexport */ useBlockEditContext),
@ -38465,7 +38466,7 @@ const withBlockBindingSupport = (0,external_wp_compose_namespaceObject.createHig
// there are attribute updates.
// `source.getValues` may also call a selector via `registry.select`.
const updatedContext = {};
const boundAttributes = (0,external_wp_data_namespaceObject.useSelect)(() => {
const boundAttributes = (0,external_wp_data_namespaceObject.useSelect)(select => {
if (!blockBindings) {
return;
}
@ -38503,7 +38504,7 @@ const withBlockBindingSupport = (0,external_wp_compose_namespaceObject.createHig
});
} else {
values = source.getValues({
registry,
select,
context: updatedContext,
clientId,
bindings
@ -38520,7 +38521,7 @@ const withBlockBindingSupport = (0,external_wp_compose_namespaceObject.createHig
}
}
return attributes;
}, [blockBindings, name, clientId, updatedContext, registry, sources]);
}, [blockBindings, name, clientId, updatedContext, sources]);
const hasParentPattern = !!updatedContext['pattern/overrides'];
const hasPatternOverridesDefaultBinding = props.attributes.metadata?.bindings?.[DEFAULT_ATTRIBUTE]?.source === 'core/pattern-overrides';
const _setAttributes = (0,external_wp_element_namespaceObject.useCallback)(nextAttributes => {
@ -38556,7 +38557,8 @@ const withBlockBindingSupport = (0,external_wp_compose_namespaceObject.createHig
if (blockBindingsBySource.size) {
for (const [source, bindings] of blockBindingsBySource) {
source.setValues({
registry,
select: registry.select,
dispatch: registry.dispatch,
context: updatedContext,
clientId,
bindings
@ -50654,6 +50656,54 @@ function BlockHooksControlPure({
function isObjectEmpty(object) {
return !object || Object.keys(object).length === 0;
}
/**
* Contains utils to update the block `bindings` metadata.
*
* @typedef {Object} WPBlockBindingsUtils
*
* @property {Function} updateBlockBindings Updates the value of the bindings connected to block attributes.
* @property {Function} removeAllBlockBindings Removes the bindings property of the `metadata` attribute.
*/
/**
* Retrieves the existing utils needed to update the block `bindings` metadata.
* They can be used to create, modify, or remove connections from the existing block attributes.
*
* It contains the following utils:
* - `updateBlockBindings`: Updates the value of the bindings connected to block attributes. It can be used to remove a specific binding by setting the value to `undefined`.
* - `removeAllBlockBindings`: Removes the bindings property of the `metadata` attribute.
*
* @return {?WPBlockBindingsUtils} Object containing the block bindings utils.
*
* @example
* ```js
* import { useBlockBindingsUtils } from '@wordpress/block-editor'
* const { updateBlockBindings, removeAllBlockBindings } = useBlockBindingsUtils();
*
* // Update url and alt attributes.
* updateBlockBindings( {
* url: {
* source: 'core/post-meta',
* args: {
* key: 'url_custom_field',
* },
* },
* alt: {
* source: 'core/post-meta',
* args: {
* key: 'text_custom_field',
* },
* },
* } );
*
* // Remove binding from url attribute.
* updateBlockBindings( { url: undefined } );
*
* // Remove bindings from all attributes.
* removeAllBlockBindings();
* ```
*/
function useBlockBindingsUtils() {
const {
clientId
@ -50793,10 +50843,7 @@ function BlockBindingsPanelDropdown({
attribute,
binding
}) {
const {
getBlockBindingsSources
} = unlock(external_wp_blocks_namespaceObject.privateApis);
const registeredSources = getBlockBindingsSources();
const registeredSources = (0,external_wp_blocks_namespaceObject.getBlockBindingsSources)();
const {
updateBlockBindings
} = useBlockBindingsUtils();
@ -50837,7 +50884,7 @@ function BlockBindingsAttribute({
source: sourceName,
args
} = binding || {};
const sourceProps = unlock(external_wp_blocks_namespaceObject.privateApis).getBlockBindingsSource(sourceName);
const sourceProps = (0,external_wp_blocks_namespaceObject.getBlockBindingsSource)(sourceName);
const isSourceInvalid = !sourceProps;
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
className: "block-editor-bindings__item",
@ -50911,7 +50958,6 @@ const BlockBindingsPanel = ({
name: blockName,
metadata
}) => {
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
const blockContext = (0,external_wp_element_namespaceObject.useContext)(block_context);
const {
removeAllBlockBindings
@ -50921,7 +50967,7 @@ const BlockBindingsPanel = ({
// `useSelect` is used purposely here to ensure `getFieldsList`
// is updated whenever there are updates in block context.
// `source.getFieldsList` may also call a selector via `registry.select`.
// `source.getFieldsList` may also call a selector via `select`.
const _fieldsList = {};
const {
fieldsList,
@ -50930,10 +50976,7 @@ const BlockBindingsPanel = ({
if (!bindableAttributes || bindableAttributes.length === 0) {
return block_bindings_EMPTY_OBJECT;
}
const {
getBlockBindingsSources
} = unlock(external_wp_blocks_namespaceObject.privateApis);
const registeredSources = getBlockBindingsSources();
const registeredSources = (0,external_wp_blocks_namespaceObject.getBlockBindingsSources)();
Object.entries(registeredSources).forEach(([sourceName, {
getFieldsList,
usesContext
@ -50947,7 +50990,7 @@ const BlockBindingsPanel = ({
}
}
const sourceList = getFieldsList({
registry,
select,
context
});
// Only add source if the list is not empty.
@ -50962,7 +51005,7 @@ const BlockBindingsPanel = ({
fieldsList: Object.values(_fieldsList).length > 0 ? _fieldsList : block_bindings_EMPTY_OBJECT,
canUpdateBlockBindings: select(store).getSettings().canUpdateBlockBindings
};
}, [blockContext, bindableAttributes, registry]);
}, [blockContext, bindableAttributes]);
// Return early if there are no bindable attributes.
if (!bindableAttributes || bindableAttributes.length === 0) {
return null;
@ -66104,25 +66147,26 @@ const InsertFromURLPopover = ({
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(url_popover, {
anchor: popoverAnchor,
onClose: onClose,
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("form", {
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
className: "block-editor-media-placeholder__url-input-form",
onSubmit: onSubmit,
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
className: "block-editor-media-placeholder__url-input-field",
type: "text",
"aria-label": (0,external_wp_i18n_namespaceObject.__)('URL'),
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalInputControl, {
__next40pxDefaultSize: true,
label: (0,external_wp_i18n_namespaceObject.__)('URL'),
hideLabelFromVision: true,
placeholder: (0,external_wp_i18n_namespaceObject.__)('Paste or type URL'),
onChange: onChange,
value: src
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button
// TODO: Switch to `true` (40px size) if possible
, {
__next40pxDefaultSize: false,
className: "block-editor-media-placeholder__url-input-submit-button",
value: src,
suffix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalInputControlSuffixWrapper, {
variant: "control",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
size: "small",
icon: keyboard_return,
label: (0,external_wp_i18n_namespaceObject.__)('Apply'),
type: "submit"
})]
})
})
})
})
});
const URLSelectionUI = ({
@ -66221,9 +66265,6 @@ function MediaPlaceholder({
}
return allowedTypes.every(allowedType => allowedType === 'image' || allowedType.startsWith('image/'));
};
const onChangeSrc = event => {
setSrc(event.target.value);
};
const onFilesUpload = files => {
if (!handleUpload || typeof handleUpload === 'function' && !handleUpload(files)) {
return onSelect(files);
@ -66402,7 +66443,7 @@ function MediaPlaceholder({
const renderUrlSelectionUI = () => {
return onSelectURL && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(URLSelectionUI, {
src: src,
onChangeSrc: onChangeSrc,
onChangeSrc: setSrc,
onSelectURL: onSelectURL
});
};
@ -67897,7 +67938,6 @@ function withDeprecations(Component) {
const keyboardShortcutContext = (0,external_wp_element_namespaceObject.createContext)();
const inputEventContext = (0,external_wp_element_namespaceObject.createContext)();
const instanceIdKey = Symbol('instanceId');
@ -68019,10 +68059,7 @@ function RichTextWrapper({
return {};
}
const relatedBinding = blockBindings[identifier];
const {
getBlockBindingsSource
} = unlock(select(external_wp_blocks_namespaceObject.store));
const blockBindingsSource = getBlockBindingsSource(relatedBinding.source);
const blockBindingsSource = (0,external_wp_blocks_namespaceObject.getBlockBindingsSource)(relatedBinding.source);
const blockBindingsContext = {};
if (blockBindingsSource?.usesContext?.length) {
for (const key of blockBindingsSource.usesContext) {
@ -68030,7 +68067,7 @@ function RichTextWrapper({
}
}
const _disableBoundBlock = !blockBindingsSource?.canUserEditValue?.({
registry,
select,
context: blockBindingsContext,
args: relatedBinding.args
});
@ -68049,7 +68086,7 @@ function RichTextWrapper({
} = select(store);
const blockAttributes = getBlockAttributes(clientId);
const fieldsList = blockBindingsSource?.getFieldsList?.({
registry,
select,
context: blockBindingsContext
});
const bindingKey = (_fieldsList$relatedBi = fieldsList?.[relatedBinding?.args?.key]?.label) !== null && _fieldsList$relatedBi !== void 0 ? _fieldsList$relatedBi : blockBindingsSource?.label;
@ -68062,7 +68099,7 @@ function RichTextWrapper({
bindingsPlaceholder: blockAttributes?.placeholder || _bindingsPlaceholder,
bindingsLabel: _bindingsLabel
};
}, [blockBindings, identifier, blockName, blockContext, registry, adjustedValue]);
}, [blockBindings, identifier, blockName, blockContext, adjustedValue]);
const shouldDisableEditing = readOnly || disableBoundBlock;
const {
getSelectionStart,
@ -70840,6 +70877,7 @@ const __experimentalGetElementClassName = element => {
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/image-settings-panel.js
/**
* WordPress dependencies
@ -74350,7 +74388,6 @@ function ResolutionTool({
/**
@ -74396,7 +74433,6 @@ lock(privateApis, {
useBlockDisplayTitle: useBlockDisplayTitle,
__unstableBlockStyleVariationOverridesWithConfig: __unstableBlockStyleVariationOverridesWithConfig,
setBackgroundStyleDefaults: setBackgroundStyleDefaults,
useBlockBindingsUtils: useBlockBindingsUtils,
sectionRootClientIdKey: sectionRootClientIdKey
});

File diff suppressed because one or more lines are too long

View File

@ -4904,7 +4904,6 @@ const linkOff = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ex
/**
* WordPress dependencies
*/
@ -5040,7 +5039,6 @@ function ButtonEdit(props) {
const colorProps = (0,external_wp_blockEditor_namespaceObject.__experimentalUseColorProps)(attributes);
const spacingProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetSpacingClassesAndStyles)(attributes);
const shadowProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetShadowClassesAndStyles)(attributes);
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
const ref = (0,external_wp_element_namespaceObject.useRef)();
const richTextRef = (0,external_wp_element_namespaceObject.useRef)();
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
@ -5089,10 +5087,10 @@ function ButtonEdit(props) {
if (!isSelected) {
return {};
}
const blockBindingsSource = unlock(select(external_wp_blocks_namespaceObject.store)).getBlockBindingsSource(metadata?.bindings?.url?.source);
const blockBindingsSource = (0,external_wp_blocks_namespaceObject.getBlockBindingsSource)(metadata?.bindings?.url?.source);
return {
lockUrlControls: !!metadata?.bindings?.url && !blockBindingsSource?.canUserEditValue?.({
registry,
select,
context,
args: metadata?.bindings?.url?.args
})
@ -25944,7 +25942,6 @@ function image_Image({
// The only supported unit is px, so we can parseInt to strip the px here.
const numericWidth = width ? parseInt(width, 10) : undefined;
const numericHeight = height ? parseInt(height, 10) : undefined;
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
const imageRef = (0,external_wp_element_namespaceObject.useRef)();
const {
allowResize = true
@ -26253,21 +26250,18 @@ function image_Image({
if (!isSingleSelected) {
return {};
}
const {
getBlockBindingsSource
} = unlock(select(external_wp_blocks_namespaceObject.store));
const {
url: urlBinding,
alt: altBinding,
title: titleBinding
} = metadata?.bindings || {};
const hasParentPattern = !!context['pattern/overrides'];
const urlBindingSource = getBlockBindingsSource(urlBinding?.source);
const altBindingSource = getBlockBindingsSource(altBinding?.source);
const titleBindingSource = getBlockBindingsSource(titleBinding?.source);
const urlBindingSource = (0,external_wp_blocks_namespaceObject.getBlockBindingsSource)(urlBinding?.source);
const altBindingSource = (0,external_wp_blocks_namespaceObject.getBlockBindingsSource)(altBinding?.source);
const titleBindingSource = (0,external_wp_blocks_namespaceObject.getBlockBindingsSource)(titleBinding?.source);
return {
lockUrlControls: !!urlBinding && !urlBindingSource?.canUserEditValue?.({
registry,
select,
context,
args: urlBinding?.args
}),
@ -26280,14 +26274,14 @@ function image_Image({
// This is a temporary solution until we support overriding the caption on the frontend.
hasParentPattern,
lockAltControls: !!altBinding && !altBindingSource?.canUserEditValue?.({
registry,
select,
context,
args: altBinding?.args
}),
lockAltControlsMessage: altBindingSource?.label ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Label of the bindings source. */
(0,external_wp_i18n_namespaceObject.__)('Connected to %s'), altBindingSource.label) : (0,external_wp_i18n_namespaceObject.__)('Connected to dynamic data'),
lockTitleControls: !!titleBinding && !titleBindingSource?.canUserEditValue?.({
registry,
select,
context,
args: titleBinding?.args
}),
@ -26737,7 +26731,6 @@ function useMaxWidthObserver() {
/**
* Module constants
*/
@ -26800,7 +26793,6 @@ function ImageEdit({
metadata
} = attributes;
const [temporaryURL, setTemporaryURL] = (0,external_wp_element_namespaceObject.useState)(attributes.blob);
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
const containerRef = (0,external_wp_element_namespaceObject.useRef)();
// Only observe the max width from the parent container when the parent layout is not flex nor grid.
// This won't work for them because the container width changes with the image.
@ -27026,10 +27018,10 @@ function ImageEdit({
if (!isSingleSelected) {
return {};
}
const blockBindingsSource = unlock(select(external_wp_blocks_namespaceObject.store)).getBlockBindingsSource(metadata?.bindings?.url?.source);
const blockBindingsSource = (0,external_wp_blocks_namespaceObject.getBlockBindingsSource)(metadata?.bindings?.url?.source);
return {
lockUrlControls: !!metadata?.bindings?.url && !blockBindingsSource?.canUserEditValue?.({
registry,
select,
context,
args: metadata?.bindings?.url?.args
}),
@ -51426,15 +51418,12 @@ function ReusableBlockEdit({
getSettings,
getBlockEditingMode
} = select(external_wp_blockEditor_namespaceObject.store);
const {
getBlockBindingsSource
} = unlock(select(external_wp_blocks_namespaceObject.store));
// For editing link to the site editor if the theme and user permissions support it.
return {
innerBlocks: getBlocks(patternClientId),
onNavigateToEntityRecord: getSettings().onNavigateToEntityRecord,
editingMode: getBlockEditingMode(patternClientId),
hasPatternOverridesSource: !!getBlockBindingsSource('core/pattern-overrides')
hasPatternOverridesSource: !!(0,external_wp_blocks_namespaceObject.getBlockBindingsSource)('core/pattern-overrides')
};
}, [patternClientId]);
@ -63976,12 +63965,12 @@ function FootnotesEdit({
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/native.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({
randomUUID
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/rng.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()).
@ -64000,7 +63989,7 @@ function rng() {
return getRandomValues(rnds8);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/stringify.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
/**
* Convert array of 16 byte values to UUID string format of the form:
@ -64034,7 +64023,7 @@ function stringify(arr, offset = 0) {
}
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/v4.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js

File diff suppressed because one or more lines are too long

View File

@ -5846,6 +5846,8 @@ __webpack_require__.d(__webpack_exports__, {
findTransform: () => (/* reexport */ findTransform),
getBlockAttributes: () => (/* reexport */ getBlockAttributes),
getBlockAttributesNamesByRole: () => (/* reexport */ getBlockAttributesNamesByRole),
getBlockBindingsSource: () => (/* reexport */ getBlockBindingsSource),
getBlockBindingsSources: () => (/* reexport */ getBlockBindingsSources),
getBlockContent: () => (/* reexport */ getBlockInnerHTML),
getBlockDefaultClassName: () => (/* reexport */ getBlockDefaultClassName),
getBlockFromExample: () => (/* reexport */ getBlockFromExample),
@ -5881,6 +5883,7 @@ __webpack_require__.d(__webpack_exports__, {
pasteHandler: () => (/* reexport */ pasteHandler),
privateApis: () => (/* reexport */ privateApis),
rawHandler: () => (/* reexport */ rawHandler),
registerBlockBindingsSource: () => (/* reexport */ registerBlockBindingsSource),
registerBlockCollection: () => (/* reexport */ registerBlockCollection),
registerBlockStyle: () => (/* reexport */ registerBlockStyle),
registerBlockType: () => (/* reexport */ registerBlockType),
@ -5895,6 +5898,7 @@ __webpack_require__.d(__webpack_exports__, {
store: () => (/* reexport */ store),
switchToBlockType: () => (/* reexport */ switchToBlockType),
synchronizeBlocksWithTemplate: () => (/* reexport */ synchronizeBlocksWithTemplate),
unregisterBlockBindingsSource: () => (/* reexport */ unregisterBlockBindingsSource),
unregisterBlockStyle: () => (/* reexport */ unregisterBlockStyle),
unregisterBlockType: () => (/* reexport */ unregisterBlockType),
unregisterBlockVariation: () => (/* reexport */ unregisterBlockVariation),
@ -7514,12 +7518,11 @@ const unregisterBlockVariation = (blockName, variationName) => {
*
* @param {Object} source Properties of the source to be registered.
* @param {string} source.name The unique and machine-readable name.
* @param {string} [source.label] Human-readable label.
* @param {Array} [source.usesContext] Array of context needed by the source only in the editor.
* @param {Function} [source.getValues] Function to get the values from the source.
* @param {Function} [source.setValues] Function to update multiple values connected to the source.
* @param {Function} [source.canUserEditValue] Function to determine if the user can edit the value.
* @param {Function} [source.getFieldsList] Function to get the lists of fields to expose in the connections panel.
* @param {string} [source.label] Human-readable label. Optional when it is defined in the server.
* @param {Array} [source.usesContext] Optional array of context needed by the source only in the editor.
* @param {Function} [source.getValues] Optional function to get the values from the source.
* @param {Function} [source.setValues] Optional function to update multiple values connected to the source.
* @param {Function} [source.canUserEditValue] Optional function to determine if the user can edit the value.
*
* @example
* ```js
@ -7529,8 +7532,9 @@ const unregisterBlockVariation = (blockName, variationName) => {
* registerBlockBindingsSource( {
* name: 'plugin/my-custom-source',
* label: _x( 'My Custom Source', 'block bindings source' ),
* getValues: () => getSourceValues(),
* setValues: () => updateMyCustomValuesInBatch(),
* usesContext: [ 'postType' ],
* getValues: getSourceValues,
* setValues: updateMyCustomValuesInBatch,
* canUserEditValue: () => true,
* } );
* ```
@ -7626,7 +7630,7 @@ const registerBlockBindingsSource = source => {
};
/**
* Unregisters a block bindings source
* Unregisters a block bindings source by providing its name.
*
* @param {string} name The name of the block bindings source to unregister.
*
@ -7647,7 +7651,7 @@ function unregisterBlockBindingsSource(name) {
}
/**
* Returns a registered block bindings source.
* Returns a registered block bindings source by its name.
*
* @param {string} name Block bindings source name.
*
@ -8358,6 +8362,11 @@ function getMergedUsesContext(existingUsesContext = [], newUsesContext = []) {
function blockBindingsSources(state = {}, action) {
switch (action.type) {
case 'ADD_BLOCK_BINDINGS_SOURCE':
// Only open this API in Gutenberg and for `core/post-meta` for the moment.
let getFieldsList;
if (false) {} else if (action.name === 'core/post-meta') {
getFieldsList = action.getFieldsList;
}
return {
...state,
[action.name]: {
@ -8368,7 +8377,7 @@ function blockBindingsSources(state = {}, action) {
setValues: action.setValues,
// Only set `canUserEditValue` if `setValues` is also defined.
canUserEditValue: action.setValues && action.canUserEditValue,
getFieldsList: action.getFieldsList
getFieldsList
}
};
case 'ADD_BOOTSTRAPPED_BLOCK_BINDINGS_SOURCE':
@ -10042,12 +10051,12 @@ const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME,
unlock(store).registerPrivateSelectors(private_selectors_namespaceObject);
unlock(store).registerPrivateActions(private_actions_namespaceObject);
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/native.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({
randomUUID
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/rng.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()).
@ -10066,7 +10075,7 @@ function rng() {
return getRandomValues(rnds8);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/stringify.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
/**
* Convert array of 16 byte values to UUID string format of the form:
@ -10100,7 +10109,7 @@ function stringify(arr, offset = 0) {
}
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/v4.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
@ -15766,7 +15775,6 @@ function synchronizeBlocksWithTemplate(blocks = [], template) {
// The blocktype is the most important concept within the block API. It defines
// all aspects of the block configuration and its interfaces, including `edit`
// and `save`. The transforms specification allows converting one blocktype to
@ -15865,10 +15873,6 @@ function synchronizeBlocksWithTemplate(blocks = [], template) {
const privateApis = {};
lock(privateApis, {
registerBlockBindingsSource: registerBlockBindingsSource,
unregisterBlockBindingsSource: unregisterBlockBindingsSource,
getBlockBindingsSource: getBlockBindingsSource,
getBlockBindingsSources: getBlockBindingsSources,
isUnmodifiedBlockContent: isUnmodifiedBlockContent
});

File diff suppressed because one or more lines are too long

View File

@ -33616,12 +33616,12 @@ const Slot = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.j
});
/* harmony default export */ const slot = (Slot);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/native.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({
randomUUID
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/rng.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()).
@ -33640,7 +33640,7 @@ function rng() {
return getRandomValues(rnds8);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/stringify.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
/**
* Convert array of 16 byte values to UUID string format of the form:
@ -33674,7 +33674,7 @@ function stringify_stringify(arr, offset = 0) {
}
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify_stringify)));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/v4.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
@ -35720,6 +35720,7 @@ function useComputeControlledOrUncontrolledValue(valueProp) {
/**
* Internal dependencies
*/
@ -35757,7 +35758,8 @@ function UnforwardedToggleGroupControlAsRadioGroup({
const radio = useRadioStore({
defaultValue,
value,
setValue: wrappedOnChangeProp
setValue: wrappedOnChangeProp,
rtl: (0,external_wp_i18n_namespaceObject.isRTL)()
});
const selectedValue = useStoreState(radio, 'value');
const setValue = radio.setValue;

File diff suppressed because one or more lines are too long

View File

@ -1440,12 +1440,12 @@ var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_w
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
;// CONCATENATED MODULE: external ["wp","richText"]
const external_wp_richText_namespaceObject = window["wp"]["richText"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/native.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({
randomUUID
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/rng.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()).
@ -1464,7 +1464,7 @@ function rng() {
return getRandomValues(rnds8);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/stringify.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
/**
* Convert array of 16 byte values to UUID string format of the form:
@ -1498,7 +1498,7 @@ function stringify(arr, offset = 0) {
}
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/v4.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js

View File

@ -40815,14 +40815,11 @@ function DropdownHeader({
level: 2,
size: 13,
children: title
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {}), onClose && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button
// TODO: Switch to `true` (40px size) if possible
, {
__next40pxDefaultSize: false,
className: "dataforms-layouts-panel__dropdown-header-action",
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {}), onClose && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
label: (0,external_wp_i18n_namespaceObject.__)('Close'),
icon: close_small,
onClick: onClose
onClick: onClose,
size: "small"
})]
})
});

File diff suppressed because one or more lines are too long

View File

@ -7250,14 +7250,11 @@ function DropdownHeader({
level: 2,
size: 13,
children: title
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {}), onClose && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button
// TODO: Switch to `true` (40px size) if possible
, {
__next40pxDefaultSize: false,
className: "dataforms-layouts-panel__dropdown-header-action",
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {}), onClose && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
label: (0,external_wp_i18n_namespaceObject.__)('Close'),
icon: close_small,
onClick: onClose
onClick: onClose,
size: "small"
})]
})
});
@ -8751,16 +8748,13 @@ function ControlsWithStoreSubscription(props) {
hasPatternOverridesSource,
isEditingSyncedPattern
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getBlockBindingsSource
} = unlock(select(external_wp_blocks_namespaceObject.store));
const {
getCurrentPostType,
getEditedPostAttribute
} = select(store_store);
return {
// For editing link to the site editor if the theme and user permissions support it.
hasPatternOverridesSource: !!getBlockBindingsSource('core/pattern-overrides'),
hasPatternOverridesSource: !!(0,external_wp_blocks_namespaceObject.getBlockBindingsSource)('core/pattern-overrides'),
isEditingSyncedPattern: getCurrentPostType() === pattern_overrides_PATTERN_TYPES.user && getEditedPostAttribute('meta')?.wp_pattern_sync_status !== PATTERN_SYNC_TYPES.unsynced && getEditedPostAttribute('wp_pattern_sync_status') !== PATTERN_SYNC_TYPES.unsynced
};
}, []);
@ -18519,12 +18513,12 @@ function MaybeCategoryPanel() {
}
/* harmony default export */ const maybe_category_panel = (MaybeCategoryPanel);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/node_modules/uuid/dist/esm-browser/native.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({
randomUUID
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/node_modules/uuid/dist/esm-browser/rng.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()).
@ -18543,7 +18537,7 @@ function rng() {
return getRandomValues(rnds8);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/node_modules/uuid/dist/esm-browser/stringify.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
/**
* Convert array of 16 byte values to UUID string format of the form:
@ -18577,7 +18571,7 @@ function stringify(arr, offset = 0) {
}
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/node_modules/uuid/dist/esm-browser/v4.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
@ -29861,7 +29855,7 @@ const CONTENT = 'content';
/* harmony default export */ const pattern_overrides = ({
name: 'core/pattern-overrides',
getValues({
registry,
select,
clientId,
context,
bindings
@ -29869,7 +29863,7 @@ const CONTENT = 'content';
const patternOverridesContent = context['pattern/overrides'];
const {
getBlockAttributes
} = registry.select(external_wp_blockEditor_namespaceObject.store);
} = select(external_wp_blockEditor_namespaceObject.store);
const currentBlockAttributes = getBlockAttributes(clientId);
const overridesValues = {};
for (const attributeName of Object.keys(bindings)) {
@ -29887,7 +29881,8 @@ const CONTENT = 'content';
return overridesValues;
},
setValues({
registry,
select,
dispatch,
clientId,
bindings
}) {
@ -29895,7 +29890,7 @@ const CONTENT = 'content';
getBlockAttributes,
getBlockParentsByBlockName,
getBlocks
} = registry.select(external_wp_blockEditor_namespaceObject.store);
} = select(external_wp_blockEditor_namespaceObject.store);
const currentBlockAttributes = getBlockAttributes(clientId);
const blockName = currentBlockAttributes?.metadata?.name;
if (!blockName) {
@ -29916,7 +29911,7 @@ const CONTENT = 'content';
const syncBlocksWithSameName = blocks => {
for (const block of blocks) {
if (block.attributes?.metadata?.name === blockName) {
registry.dispatch(external_wp_blockEditor_namespaceObject.store).updateBlockAttributes(block.clientId, attributes);
dispatch(external_wp_blockEditor_namespaceObject.store).updateBlockAttributes(block.clientId, attributes);
}
syncBlocksWithSameName(block.innerBlocks);
}
@ -29925,7 +29920,7 @@ const CONTENT = 'content';
return;
}
const currentBindingValue = getBlockAttributes(patternClientId)?.[CONTENT];
registry.dispatch(external_wp_blockEditor_namespaceObject.store).updateBlockAttributes(patternClientId, {
dispatch(external_wp_blockEditor_namespaceObject.store).updateBlockAttributes(patternClientId, {
[CONTENT]: {
...currentBindingValue,
[blockName]: {
@ -29963,7 +29958,7 @@ const CONTENT = 'content';
* If the value is not available based on context, like in templates,
* it falls back to the default value, label, or key.
*
* @param {Object} registry The registry context exposed through `useRegistry`.
* @param {Object} select The select function from the data store.
* @param {Object} context The context provided.
* @return {Object} List of post meta fields with their value and label.
*
@ -29982,13 +29977,13 @@ const CONTENT = 'content';
* }
* ```
*/
function getPostMetaFields(registry, context) {
function getPostMetaFields(select, context) {
const {
getEditedEntityRecord
} = registry.select(external_wp_coreData_namespaceObject.store);
} = select(external_wp_coreData_namespaceObject.store);
const {
getRegisteredPostMeta
} = unlock(registry.select(external_wp_coreData_namespaceObject.store));
} = unlock(select(external_wp_coreData_namespaceObject.store));
let entityMetaValues;
// Try to get the current entity meta values.
if (context?.postType && context?.postId) {
@ -30017,11 +30012,11 @@ function getPostMetaFields(registry, context) {
/* harmony default export */ const post_meta = ({
name: 'core/post-meta',
getValues({
registry,
select,
context,
bindings
}) {
const metaFields = getPostMetaFields(registry, context);
const metaFields = getPostMetaFields(select, context);
const newValues = {};
for (const [attributeName, source] of Object.entries(bindings)) {
var _ref;
@ -30036,7 +30031,7 @@ function getPostMetaFields(registry, context) {
return newValues;
},
setValues({
registry,
dispatch,
context,
bindings
}) {
@ -30047,12 +30042,12 @@ function getPostMetaFields(registry, context) {
}) => {
newMeta[args.key] = newValue;
});
registry.dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord('postType', context?.postType, context?.postId, {
dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord('postType', context?.postType, context?.postId, {
meta: newMeta
});
},
canUserEditValue({
registry,
select,
context,
args
}) {
@ -30060,25 +30055,25 @@ function getPostMetaFields(registry, context) {
if (context?.query || context?.queryId) {
return false;
}
const postType = context?.postType || registry.select(store_store).getCurrentPostType();
const postType = context?.postType || select(store_store).getCurrentPostType();
// Check that editing is happening in the post editor and not a template.
if (postType === 'wp_template') {
return false;
}
const fieldValue = getPostMetaFields(registry, context)?.[args.key]?.value;
const fieldValue = getPostMetaFields(select, context)?.[args.key]?.value;
// Empty string or `false` could be a valid value, so we need to check if the field value is undefined.
if (fieldValue === undefined) {
return false;
}
// Check that custom fields metabox is not enabled.
const areCustomFieldsEnabled = registry.select(store_store).getEditorSettings().enableCustomFields;
const areCustomFieldsEnabled = select(store_store).getEditorSettings().enableCustomFields;
if (areCustomFieldsEnabled) {
return false;
}
// Check that the user has the capability to edit post meta.
const canUserEdit = registry.select(external_wp_coreData_namespaceObject.store).canUser('update', {
const canUserEdit = select(external_wp_coreData_namespaceObject.store).canUser('update', {
kind: 'postType',
name: context?.postType,
id: context?.postId
@ -30089,10 +30084,10 @@ function getPostMetaFields(registry, context) {
return true;
},
getFieldsList({
registry,
select,
context
}) {
return getPostMetaFields(registry, context);
return getPostMetaFields(select, context);
}
});
@ -30121,11 +30116,8 @@ function getPostMetaFields(registry, context) {
* ```
*/
function registerCoreBlockBindingsSources() {
const {
registerBlockBindingsSource
} = unlock(external_wp_blocks_namespaceObject.privateApis);
registerBlockBindingsSource(pattern_overrides);
registerBlockBindingsSource(post_meta);
(0,external_wp_blocks_namespaceObject.registerBlockBindingsSource)(pattern_overrides);
(0,external_wp_blocks_namespaceObject.registerBlockBindingsSource)(post_meta);
}
/**

File diff suppressed because one or more lines are too long

View File

@ -751,14 +751,11 @@ function DropdownHeader({
level: 2,
size: 13,
children: title
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {}), onClose && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button
// TODO: Switch to `true` (40px size) if possible
, {
__next40pxDefaultSize: false,
className: "dataforms-layouts-panel__dropdown-header-action",
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {}), onClose && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
label: (0,external_wp_i18n_namespaceObject.__)('Close'),
icon: close_small,
onClick: onClose
onClick: onClose,
size: "small"
})]
})
});

File diff suppressed because one or more lines are too long

View File

@ -719,10 +719,8 @@ function ImportForm({
id: inputId,
type: "file",
onChange: onChangeFile
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button
// TODO: Switch to `true` (40px size) if possible
, {
__next40pxDefaultSize: false,
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
__next40pxDefaultSize: true,
type: "submit",
isBusy: isLoading,
accessibleWhenDisabled: true,
@ -759,10 +757,9 @@ function ImportDropdown({
renderToggle: ({
isOpen,
onToggle
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button
// TODO: Switch to `true` (40px size) if possible
, {
__next40pxDefaultSize: false,
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
size: "compact",
className: "list-reusable-blocks-import-dropdown__button",
"aria-expanded": isOpen,
onClick: onToggle,
variant: "primary",

View File

@ -1,2 +1,2 @@
/*! This file is auto-generated */
(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t);const n=window.wp.element,o=window.wp.i18n;var r=function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function s(e){return e.toLowerCase()}var a=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],i=/[^A-Z0-9]+/gi;function l(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function c(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?a:n,r=t.stripRegexp,c=void 0===r?i:r,p=t.transform,d=void 0===p?s:p,u=t.delimiter,w=void 0===u?" ":u,f=l(l(e,o,"$1\0$2"),c,"\0"),m=0,b=f.length;"\0"===f.charAt(m);)m++;for(;"\0"===f.charAt(b-1);)b--;return f.slice(m,b).split("\0").map(d).join(w)}(e,r({delimiter:"."},t))}const p=window.wp.apiFetch;var d=e.n(p);const u=window.wp.blob;const w=async function(e){const t=await d()({path:"/wp/v2/types/wp_block"}),n=await d()({path:`/wp/v2/${t.rest_base}/${e}?context=edit`}),o=n.title.raw,s=n.content.raw,a=n.wp_pattern_sync_status,i=JSON.stringify({__file:"wp_block",title:o,content:s,syncStatus:a},null,2),l=(void 0===p&&(p={}),c(o,r({delimiter:"-"},p))+".json");var p;(0,u.downloadBlob)(l,i,"application/json")},f=window.wp.compose,m=window.wp.components;const b=async function(e){const t=await function(e){const t=new window.FileReader;return new Promise((n=>{t.onload=()=>{n(t.result)},t.readAsText(e)}))}(e);let n;try{n=JSON.parse(t)}catch(e){throw new Error("Invalid JSON file")}if("wp_block"!==n.__file||!n.title||!n.content||"string"!=typeof n.title||"string"!=typeof n.content||n.syncStatus&&"string"!=typeof n.syncStatus)throw new Error("Invalid pattern JSON file");const o=await d()({path:"/wp/v2/types/wp_block"});return await d()({path:`/wp/v2/${o.rest_base}`,data:{title:n.title,content:n.content,status:"publish",meta:"unsynced"===n.syncStatus?{wp_pattern_sync_status:n.syncStatus}:void 0},method:"POST"})},_=window.ReactJSXRuntime;const v=(0,f.withInstanceId)((function({instanceId:e,onUpload:t}){const r="list-reusable-blocks-import-form-"+e,s=(0,n.useRef)(),[a,i]=(0,n.useState)(!1),[l,c]=(0,n.useState)(null),[p,d]=(0,n.useState)(null);return(0,_.jsxs)("form",{className:"list-reusable-blocks-import-form",onSubmit:e=>{e.preventDefault(),p&&(i({isLoading:!0}),b(p).then((e=>{s&&(i(!1),t(e))})).catch((e=>{if(!s)return;let t;switch(e.message){case"Invalid JSON file":t=(0,o.__)("Invalid JSON file");break;case"Invalid pattern JSON file":t=(0,o.__)("Invalid pattern JSON file");break;default:t=(0,o.__)("Unknown error")}i(!1),c(t)})))},ref:s,children:[l&&(0,_.jsx)(m.Notice,{status:"error",onRemove:()=>{c(null)},children:l}),(0,_.jsx)("label",{htmlFor:r,className:"list-reusable-blocks-import-form__label",children:(0,o.__)("File")}),(0,_.jsx)("input",{id:r,type:"file",onChange:e=>{d(e.target.files[0]),c(null)}}),(0,_.jsx)(m.Button,{__next40pxDefaultSize:!1,type:"submit",isBusy:a,accessibleWhenDisabled:!0,disabled:!p||a,variant:"secondary",className:"list-reusable-blocks-import-form__button",children:(0,o._x)("Import","button label")})]})}));const y=function({onUpload:e}){return(0,_.jsx)(m.Dropdown,{popoverProps:{placement:"bottom-start"},contentClassName:"list-reusable-blocks-import-dropdown__content",renderToggle:({isOpen:e,onToggle:t})=>(0,_.jsx)(m.Button,{__next40pxDefaultSize:!1,"aria-expanded":e,onClick:t,variant:"primary",children:(0,o.__)("Import from JSON")}),renderContent:({onClose:t})=>(0,_.jsx)(v,{onUpload:(0,f.pipe)(t,e)})})};document.body.addEventListener("click",(e=>{e.target.classList.contains("wp-list-reusable-blocks__export")&&(e.preventDefault(),w(e.target.dataset.id))})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".page-title-action");if(!e)return;const t=document.createElement("div");t.className="list-reusable-blocks__container",e.parentNode.insertBefore(t,e),(0,n.createRoot)(t).render((0,_.jsx)(n.StrictMode,{children:(0,_.jsx)(y,{onUpload:()=>{const e=document.createElement("div");e.className="notice notice-success is-dismissible",e.innerHTML=`<p>${(0,o.__)("Pattern imported successfully!")}</p>`;const t=document.querySelector(".wp-header-end");t&&t.parentNode.insertBefore(e,t)}})}))})),(window.wp=window.wp||{}).listReusableBlocks=t})();
(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t);const n=window.wp.element,o=window.wp.i18n;var r=function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function s(e){return e.toLowerCase()}var a=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],i=/[^A-Z0-9]+/gi;function l(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function c(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?a:n,r=t.stripRegexp,c=void 0===r?i:r,p=t.transform,d=void 0===p?s:p,u=t.delimiter,w=void 0===u?" ":u,f=l(l(e,o,"$1\0$2"),c,"\0"),m=0,b=f.length;"\0"===f.charAt(m);)m++;for(;"\0"===f.charAt(b-1);)b--;return f.slice(m,b).split("\0").map(d).join(w)}(e,r({delimiter:"."},t))}const p=window.wp.apiFetch;var d=e.n(p);const u=window.wp.blob;const w=async function(e){const t=await d()({path:"/wp/v2/types/wp_block"}),n=await d()({path:`/wp/v2/${t.rest_base}/${e}?context=edit`}),o=n.title.raw,s=n.content.raw,a=n.wp_pattern_sync_status,i=JSON.stringify({__file:"wp_block",title:o,content:s,syncStatus:a},null,2),l=(void 0===p&&(p={}),c(o,r({delimiter:"-"},p))+".json");var p;(0,u.downloadBlob)(l,i,"application/json")},f=window.wp.compose,m=window.wp.components;const b=async function(e){const t=await function(e){const t=new window.FileReader;return new Promise((n=>{t.onload=()=>{n(t.result)},t.readAsText(e)}))}(e);let n;try{n=JSON.parse(t)}catch(e){throw new Error("Invalid JSON file")}if("wp_block"!==n.__file||!n.title||!n.content||"string"!=typeof n.title||"string"!=typeof n.content||n.syncStatus&&"string"!=typeof n.syncStatus)throw new Error("Invalid pattern JSON file");const o=await d()({path:"/wp/v2/types/wp_block"});return await d()({path:`/wp/v2/${o.rest_base}`,data:{title:n.title,content:n.content,status:"publish",meta:"unsynced"===n.syncStatus?{wp_pattern_sync_status:n.syncStatus}:void 0},method:"POST"})},_=window.ReactJSXRuntime;const v=(0,f.withInstanceId)((function({instanceId:e,onUpload:t}){const r="list-reusable-blocks-import-form-"+e,s=(0,n.useRef)(),[a,i]=(0,n.useState)(!1),[l,c]=(0,n.useState)(null),[p,d]=(0,n.useState)(null);return(0,_.jsxs)("form",{className:"list-reusable-blocks-import-form",onSubmit:e=>{e.preventDefault(),p&&(i({isLoading:!0}),b(p).then((e=>{s&&(i(!1),t(e))})).catch((e=>{if(!s)return;let t;switch(e.message){case"Invalid JSON file":t=(0,o.__)("Invalid JSON file");break;case"Invalid pattern JSON file":t=(0,o.__)("Invalid pattern JSON file");break;default:t=(0,o.__)("Unknown error")}i(!1),c(t)})))},ref:s,children:[l&&(0,_.jsx)(m.Notice,{status:"error",onRemove:()=>{c(null)},children:l}),(0,_.jsx)("label",{htmlFor:r,className:"list-reusable-blocks-import-form__label",children:(0,o.__)("File")}),(0,_.jsx)("input",{id:r,type:"file",onChange:e=>{d(e.target.files[0]),c(null)}}),(0,_.jsx)(m.Button,{__next40pxDefaultSize:!0,type:"submit",isBusy:a,accessibleWhenDisabled:!0,disabled:!p||a,variant:"secondary",className:"list-reusable-blocks-import-form__button",children:(0,o._x)("Import","button label")})]})}));const y=function({onUpload:e}){return(0,_.jsx)(m.Dropdown,{popoverProps:{placement:"bottom-start"},contentClassName:"list-reusable-blocks-import-dropdown__content",renderToggle:({isOpen:e,onToggle:t})=>(0,_.jsx)(m.Button,{size:"compact",className:"list-reusable-blocks-import-dropdown__button","aria-expanded":e,onClick:t,variant:"primary",children:(0,o.__)("Import from JSON")}),renderContent:({onClose:t})=>(0,_.jsx)(v,{onUpload:(0,f.pipe)(t,e)})})};document.body.addEventListener("click",(e=>{e.target.classList.contains("wp-list-reusable-blocks__export")&&(e.preventDefault(),w(e.target.dataset.id))})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".page-title-action");if(!e)return;const t=document.createElement("div");t.className="list-reusable-blocks__container",e.parentNode.insertBefore(t,e),(0,n.createRoot)(t).render((0,_.jsx)(n.StrictMode,{children:(0,_.jsx)(y,{onUpload:()=>{const e=document.createElement("div");e.className="notice notice-success is-dismissible",e.innerHTML=`<p>${(0,o.__)("Pattern imported successfully!")}</p>`;const t=document.querySelector(".wp-header-end");t&&t.parentNode.insertBefore(e,t)}})}))})),(window.wp=window.wp||{}).listReusableBlocks=t})();

View File

@ -396,18 +396,14 @@ function DotTip({
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
children: children
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button
// TODO: Switch to `true` (40px size) if possible
, {
__next40pxDefaultSize: false,
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
__next40pxDefaultSize: true,
variant: "link",
onClick: onDismiss,
children: hasNextTip ? (0,external_wp_i18n_namespaceObject.__)('See next tip') : (0,external_wp_i18n_namespaceObject.__)('Got it')
})
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button
// TODO: Switch to `true` (40px size) if possible
, {
__next40pxDefaultSize: false,
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
size: "small",
className: "nux-dot-tip__disable",
icon: library_close,
label: (0,external_wp_i18n_namespaceObject.__)('Disable tips'),

View File

@ -1,2 +1,2 @@
/*! This file is auto-generated */
(()=>{"use strict";var e={n:i=>{var n=i&&i.__esModule?()=>i.default:()=>i;return e.d(n,{a:n}),n},d:(i,n)=>{for(var t in n)e.o(n,t)&&!e.o(i,t)&&Object.defineProperty(i,t,{enumerable:!0,get:n[t]})},o:(e,i)=>Object.prototype.hasOwnProperty.call(e,i),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},i={};e.r(i),e.d(i,{DotTip:()=>D,store:()=>S});var n={};e.r(n),e.d(n,{disableTips:()=>l,dismissTip:()=>u,enableTips:()=>a,triggerGuide:()=>p});var t={};e.r(t),e.d(t,{areTipsEnabled:()=>T,getAssociatedGuide:()=>w,isTipVisible:()=>f});const s=window.wp.deprecated;var r=e.n(s);const o=window.wp.data;const c=(0,o.combineReducers)({areTipsEnabled:function(e=!0,i){switch(i.type){case"DISABLE_TIPS":return!1;case"ENABLE_TIPS":return!0}return e},dismissedTips:function(e={},i){switch(i.type){case"DISMISS_TIP":return{...e,[i.id]:!0};case"ENABLE_TIPS":return{}}return e}}),d=(0,o.combineReducers)({guides:function(e=[],i){return"TRIGGER_GUIDE"===i.type?[...e,i.tipIds]:e},preferences:c});function p(e){return{type:"TRIGGER_GUIDE",tipIds:e}}function u(e){return{type:"DISMISS_TIP",id:e}}function l(){return{type:"DISABLE_TIPS"}}function a(){return{type:"ENABLE_TIPS"}}const w=(0,o.createSelector)(((e,i)=>{for(const n of e.guides)if(n.includes(i)){const i=n.filter((i=>!Object.keys(e.preferences.dismissedTips).includes(i))),[t=null,s=null]=i;return{tipIds:n,currentTipId:t,nextTipId:s}}return null}),(e=>[e.guides,e.preferences.dismissedTips]));function f(e,i){if(!e.preferences.areTipsEnabled)return!1;if(e.preferences.dismissedTips?.hasOwnProperty(i))return!1;const n=w(e,i);return!n||n.currentTipId===i}function T(e){return e.preferences.areTipsEnabled}const b="core/nux",S=(0,o.createReduxStore)(b,{reducer:d,actions:n,selectors:t,persist:["preferences"]});(0,o.registerStore)(b,{reducer:d,actions:n,selectors:t,persist:["preferences"]});const _=window.wp.compose,m=window.wp.components,I=window.wp.i18n,x=window.wp.element,g=window.wp.primitives,h=window.ReactJSXRuntime,y=(0,h.jsx)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,h.jsx)(g.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})});function E(e){e.stopPropagation()}const D=(0,_.compose)((0,o.withSelect)(((e,{tipId:i})=>{const{isTipVisible:n,getAssociatedGuide:t}=e(S),s=t(i);return{isVisible:n(i),hasNextTip:!(!s||!s.nextTipId)}})),(0,o.withDispatch)(((e,{tipId:i})=>{const{dismissTip:n,disableTips:t}=e(S);return{onDismiss(){n(i)},onDisable(){t()}}})))((function({position:e="middle right",children:i,isVisible:n,hasNextTip:t,onDismiss:s,onDisable:r}){const o=(0,x.useRef)(null),c=(0,x.useCallback)((e=>{o.current&&(o.current.contains(e.relatedTarget)||r())}),[r,o]);return n?(0,h.jsxs)(m.Popover,{className:"nux-dot-tip",position:e,focusOnMount:!0,role:"dialog","aria-label":(0,I.__)("Editor tips"),onClick:E,onFocusOutside:c,children:[(0,h.jsx)("p",{children:i}),(0,h.jsx)("p",{children:(0,h.jsx)(m.Button,{__next40pxDefaultSize:!1,variant:"link",onClick:s,children:t?(0,I.__)("See next tip"):(0,I.__)("Got it")})}),(0,h.jsx)(m.Button,{__next40pxDefaultSize:!1,className:"nux-dot-tip__disable",icon:y,label:(0,I.__)("Disable tips"),onClick:r})]}):null}));r()("wp.nux",{since:"5.4",hint:"wp.components.Guide can be used to show a user guide.",version:"6.2"}),(window.wp=window.wp||{}).nux=i})();
(()=>{"use strict";var e={n:i=>{var n=i&&i.__esModule?()=>i.default:()=>i;return e.d(n,{a:n}),n},d:(i,n)=>{for(var t in n)e.o(n,t)&&!e.o(i,t)&&Object.defineProperty(i,t,{enumerable:!0,get:n[t]})},o:(e,i)=>Object.prototype.hasOwnProperty.call(e,i),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},i={};e.r(i),e.d(i,{DotTip:()=>P,store:()=>m});var n={};e.r(n),e.d(n,{disableTips:()=>l,dismissTip:()=>u,enableTips:()=>a,triggerGuide:()=>p});var t={};e.r(t),e.d(t,{areTipsEnabled:()=>T,getAssociatedGuide:()=>w,isTipVisible:()=>f});const s=window.wp.deprecated;var r=e.n(s);const o=window.wp.data;const c=(0,o.combineReducers)({areTipsEnabled:function(e=!0,i){switch(i.type){case"DISABLE_TIPS":return!1;case"ENABLE_TIPS":return!0}return e},dismissedTips:function(e={},i){switch(i.type){case"DISMISS_TIP":return{...e,[i.id]:!0};case"ENABLE_TIPS":return{}}return e}}),d=(0,o.combineReducers)({guides:function(e=[],i){return"TRIGGER_GUIDE"===i.type?[...e,i.tipIds]:e},preferences:c});function p(e){return{type:"TRIGGER_GUIDE",tipIds:e}}function u(e){return{type:"DISMISS_TIP",id:e}}function l(){return{type:"DISABLE_TIPS"}}function a(){return{type:"ENABLE_TIPS"}}const w=(0,o.createSelector)(((e,i)=>{for(const n of e.guides)if(n.includes(i)){const i=n.filter((i=>!Object.keys(e.preferences.dismissedTips).includes(i))),[t=null,s=null]=i;return{tipIds:n,currentTipId:t,nextTipId:s}}return null}),(e=>[e.guides,e.preferences.dismissedTips]));function f(e,i){if(!e.preferences.areTipsEnabled)return!1;if(e.preferences.dismissedTips?.hasOwnProperty(i))return!1;const n=w(e,i);return!n||n.currentTipId===i}function T(e){return e.preferences.areTipsEnabled}const b="core/nux",m=(0,o.createReduxStore)(b,{reducer:d,actions:n,selectors:t,persist:["preferences"]});(0,o.registerStore)(b,{reducer:d,actions:n,selectors:t,persist:["preferences"]});const I=window.wp.compose,S=window.wp.components,_=window.wp.i18n,x=window.wp.element,g=window.wp.primitives,h=window.ReactJSXRuntime,y=(0,h.jsx)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,h.jsx)(g.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})});function E(e){e.stopPropagation()}const P=(0,I.compose)((0,o.withSelect)(((e,{tipId:i})=>{const{isTipVisible:n,getAssociatedGuide:t}=e(m),s=t(i);return{isVisible:n(i),hasNextTip:!(!s||!s.nextTipId)}})),(0,o.withDispatch)(((e,{tipId:i})=>{const{dismissTip:n,disableTips:t}=e(m);return{onDismiss(){n(i)},onDisable(){t()}}})))((function({position:e="middle right",children:i,isVisible:n,hasNextTip:t,onDismiss:s,onDisable:r}){const o=(0,x.useRef)(null),c=(0,x.useCallback)((e=>{o.current&&(o.current.contains(e.relatedTarget)||r())}),[r,o]);return n?(0,h.jsxs)(S.Popover,{className:"nux-dot-tip",position:e,focusOnMount:!0,role:"dialog","aria-label":(0,_.__)("Editor tips"),onClick:E,onFocusOutside:c,children:[(0,h.jsx)("p",{children:i}),(0,h.jsx)("p",{children:(0,h.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:s,children:t?(0,_.__)("See next tip"):(0,_.__)("Got it")})}),(0,h.jsx)(S.Button,{size:"small",className:"nux-dot-tip__disable",icon:y,label:(0,_.__)("Disable tips"),onClick:r})]}):null}));r()("wp.nux",{since:"5.4",hint:"wp.components.Guide can be used to show a user guide.",version:"6.2"}),(window.wp=window.wp||{}).nux=i})();

View File

@ -1408,10 +1408,6 @@ function DisallowOverridesModal({
const {
useBlockBindingsUtils
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
function PatternOverridesControls({
attributes,
setAttributes,
@ -1426,7 +1422,7 @@ function PatternOverridesControls({
const isConnectedToOtherSources = defaultBindings?.source && defaultBindings.source !== PATTERN_OVERRIDES_BINDING_SOURCE;
const {
updateBlockBindings
} = useBlockBindingsUtils();
} = (0,external_wp_blockEditor_namespaceObject.useBlockBindingsUtils)();
function updateBindings(isChecked, customName) {
if (customName) {
setAttributes({

File diff suppressed because one or more lines are too long

View File

@ -386,20 +386,16 @@ function ReusableBlockConvertButton({
}
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
justify: "right",
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button
// TODO: Switch to `true` (40px size) if possible
, {
__next40pxDefaultSize: false,
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
__next40pxDefaultSize: true,
variant: "tertiary",
onClick: () => {
setIsModalOpen(false);
setTitle('');
},
children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button
// TODO: Switch to `true` (40px size) if possible
, {
__next40pxDefaultSize: false,
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
__next40pxDefaultSize: true,
variant: "primary",
type: "submit",
children: (0,external_wp_i18n_namespaceObject.__)('Create')

File diff suppressed because one or more lines are too long

View File

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