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' : ''; $show_label = empty( $attributes['showLabel'] ) ? ' screen-reader-text' : '';
$default_label = $taxonomy->label; $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>'; $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 ); $items_markup = wp_dropdown_categories( $args );
$type = 'dropdown'; $type = 'dropdown';

View File

@ -698,26 +698,14 @@
} }
.block-editor-media-placeholder__url-input-form{ .block-editor-media-placeholder__url-input-form{
display:flex; min-width:260px;
}
.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%;
} }
@media (min-width:600px){ @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; width:300px;
} }
} }
.block-editor-media-placeholder__url-input-submit-button{
flex-shrink:1;
}
.block-editor-media-placeholder__cancel-button.is-link{ .block-editor-media-placeholder__cancel-button.is-link{
display:block; display:block;
margin:1em; 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{ .block-editor-media-placeholder__url-input-form{
display:flex; min-width:260px;
}
.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%;
} }
@media (min-width:600px){ @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; width:300px;
} }
} }
.block-editor-media-placeholder__url-input-submit-button{
flex-shrink:1;
}
.block-editor-media-placeholder__cancel-button.is-link{ .block-editor-media-placeholder__cancel-button.is-link{
display:block; display:block;
margin:1em; 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; 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{ .edit-site-layout{
color:#ccc; color:#ccc;
display:flex; display:flex;
@ -1340,7 +1329,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
overflow-y:auto; overflow-y:auto;
} }
@keyframes _vbgy4_slide-from-right{ @keyframes _dq5dx_slide-from-right{
0%{ 0%{
opacity:0; opacity:0;
transform:translateX(-50px); transform:translateX(-50px);
@ -1350,7 +1339,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
transform:none; transform:none;
} }
} }
@keyframes _vbgy4_slide-from-left{ @keyframes _dq5dx_slide-from-left{
0%{ 0%{
opacity:0; opacity:0;
transform:translateX(50px); transform:translateX(50px);
@ -1406,10 +1395,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
} }
} }
.edit-site-sidebar__screen-wrapper.slide-from-left{ .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{ .edit-site-sidebar__screen-wrapper.slide-from-right{
animation-name:_vbgy4_slide-from-right; animation-name:_dq5dx_slide-from-right;
} }
.edit-site-site-hub{ .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; 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{ .edit-site-layout{
color:#ccc; color:#ccc;
display:flex; display:flex;
@ -1340,7 +1329,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
overflow-y:auto; overflow-y:auto;
} }
@keyframes _vbgy4_slide-from-right{ @keyframes _dq5dx_slide-from-right{
0%{ 0%{
opacity:0; opacity:0;
transform:translateX(50px); transform:translateX(50px);
@ -1350,7 +1339,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
transform:none; transform:none;
} }
} }
@keyframes _vbgy4_slide-from-left{ @keyframes _dq5dx_slide-from-left{
0%{ 0%{
opacity:0; opacity:0;
transform:translateX(-50px); transform:translateX(-50px);
@ -1406,10 +1395,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
} }
} }
.edit-site-sidebar__screen-wrapper.slide-from-left{ .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{ .edit-site-sidebar__screen-wrapper.slide-from-right{
animation-name:_vbgy4_slide-from-right; animation-name:_dq5dx_slide-from-right;
} }
.edit-site-site-hub{ .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; 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{ .edit-site-custom-template-modal__contents-wrapper{
height:100%; height:100%;
justify-content:flex-start !important; justify-content:flex-start !important;
@ -2324,7 +2313,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
overflow-y:auto; overflow-y:auto;
} }
@keyframes _anvff_slide-from-right{ @keyframes _ngjuq_slide-from-right{
0%{ 0%{
opacity:0; opacity:0;
transform:translateX(-50px); transform:translateX(-50px);
@ -2334,7 +2323,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
transform:none; transform:none;
} }
} }
@keyframes _anvff_slide-from-left{ @keyframes _ngjuq_slide-from-left{
0%{ 0%{
opacity:0; opacity:0;
transform:translateX(50px); transform:translateX(50px);
@ -2390,10 +2379,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
} }
} }
.edit-site-sidebar__screen-wrapper.slide-from-left{ .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{ .edit-site-sidebar__screen-wrapper.slide-from-right{
animation-name:_anvff_slide-from-right; animation-name:_ngjuq_slide-from-right;
} }
.edit-site-sidebar-button{ .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; 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{ .edit-site-custom-template-modal__contents-wrapper{
height:100%; height:100%;
justify-content:flex-start !important; justify-content:flex-start !important;
@ -2324,7 +2313,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
overflow-y:auto; overflow-y:auto;
} }
@keyframes _anvff_slide-from-right{ @keyframes _ngjuq_slide-from-right{
0%{ 0%{
opacity:0; opacity:0;
transform:translateX(50px); transform:translateX(50px);
@ -2334,7 +2323,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
transform:none; transform:none;
} }
} }
@keyframes _anvff_slide-from-left{ @keyframes _ngjuq_slide-from-left{
0%{ 0%{
opacity:0; opacity:0;
transform:translateX(-50px); transform:translateX(-50px);
@ -2390,10 +2379,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
} }
} }
.edit-site-sidebar__screen-wrapper.slide-from-left{ .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{ .edit-site-sidebar__screen-wrapper.slide-from-right{
animation-name:_anvff_slide-from-right; animation-name:_ngjuq_slide-from-right;
} }
.edit-site-sidebar-button{ .edit-site-sidebar-button{

File diff suppressed because one or more lines are too long

View File

@ -20,6 +20,10 @@
padding:10px; padding:10px;
} }
[class].list-reusable-blocks-import-dropdown__button{
height:30px;
}
.list-reusable-blocks-import-form__label{ .list-reusable-blocks-import-form__label{
display:block; display:block;
margin-bottom:10px; margin-bottom:10px;
@ -27,7 +31,6 @@
.list-reusable-blocks-import-form__button{ .list-reusable-blocks-import-form__button{
float:left; float:left;
margin-bottom:10px;
margin-top:10px; margin-top:10px;
} }
@ -45,9 +48,6 @@
position:relative; position:relative;
top:-3px; top:-3px;
} }
.list-reusable-blocks__container .components-button{
height:26px;
}
body.admin-color-light{ body.admin-color-light{
--wp-admin-theme-color:#0085ba; --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; padding:10px;
} }
[class].list-reusable-blocks-import-dropdown__button{
height:30px;
}
.list-reusable-blocks-import-form__label{ .list-reusable-blocks-import-form__label{
display:block; display:block;
margin-bottom:10px; margin-bottom:10px;
@ -27,7 +31,6 @@
.list-reusable-blocks-import-form__button{ .list-reusable-blocks-import-form__button{
float:right; float:right;
margin-bottom:10px;
margin-top:10px; margin-top:10px;
} }
@ -45,9 +48,6 @@
position:relative; position:relative;
top:-3px; top:-3px;
} }
.list-reusable-blocks__container .components-button{
height:26px;
}
body.admin-color-light{ body.admin-color-light{
--wp-admin-theme-color:#0085ba; --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(); 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); const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({ /* harmony default export */ const esm_browser_native = ({
randomUUID 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 // 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 // require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()). // generators (like Math.random()).
@ -506,7 +506,7 @@ function rng() {
return getRandomValues(rnds8); 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: * 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))); /* 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), store: () => (/* reexport */ store),
storeConfig: () => (/* reexport */ storeConfig), storeConfig: () => (/* reexport */ storeConfig),
transformStyles: () => (/* reexport */ transform_styles), transformStyles: () => (/* reexport */ transform_styles),
useBlockBindingsUtils: () => (/* reexport */ useBlockBindingsUtils),
useBlockCommands: () => (/* reexport */ useBlockCommands), useBlockCommands: () => (/* reexport */ useBlockCommands),
useBlockDisplayInformation: () => (/* reexport */ useBlockDisplayInformation), useBlockDisplayInformation: () => (/* reexport */ useBlockDisplayInformation),
useBlockEditContext: () => (/* reexport */ useBlockEditContext), useBlockEditContext: () => (/* reexport */ useBlockEditContext),
@ -38465,7 +38466,7 @@ const withBlockBindingSupport = (0,external_wp_compose_namespaceObject.createHig
// there are attribute updates. // there are attribute updates.
// `source.getValues` may also call a selector via `registry.select`. // `source.getValues` may also call a selector via `registry.select`.
const updatedContext = {}; const updatedContext = {};
const boundAttributes = (0,external_wp_data_namespaceObject.useSelect)(() => { const boundAttributes = (0,external_wp_data_namespaceObject.useSelect)(select => {
if (!blockBindings) { if (!blockBindings) {
return; return;
} }
@ -38503,7 +38504,7 @@ const withBlockBindingSupport = (0,external_wp_compose_namespaceObject.createHig
}); });
} else { } else {
values = source.getValues({ values = source.getValues({
registry, select,
context: updatedContext, context: updatedContext,
clientId, clientId,
bindings bindings
@ -38520,7 +38521,7 @@ const withBlockBindingSupport = (0,external_wp_compose_namespaceObject.createHig
} }
} }
return attributes; return attributes;
}, [blockBindings, name, clientId, updatedContext, registry, sources]); }, [blockBindings, name, clientId, updatedContext, sources]);
const hasParentPattern = !!updatedContext['pattern/overrides']; const hasParentPattern = !!updatedContext['pattern/overrides'];
const hasPatternOverridesDefaultBinding = props.attributes.metadata?.bindings?.[DEFAULT_ATTRIBUTE]?.source === 'core/pattern-overrides'; const hasPatternOverridesDefaultBinding = props.attributes.metadata?.bindings?.[DEFAULT_ATTRIBUTE]?.source === 'core/pattern-overrides';
const _setAttributes = (0,external_wp_element_namespaceObject.useCallback)(nextAttributes => { const _setAttributes = (0,external_wp_element_namespaceObject.useCallback)(nextAttributes => {
@ -38556,7 +38557,8 @@ const withBlockBindingSupport = (0,external_wp_compose_namespaceObject.createHig
if (blockBindingsBySource.size) { if (blockBindingsBySource.size) {
for (const [source, bindings] of blockBindingsBySource) { for (const [source, bindings] of blockBindingsBySource) {
source.setValues({ source.setValues({
registry, select: registry.select,
dispatch: registry.dispatch,
context: updatedContext, context: updatedContext,
clientId, clientId,
bindings bindings
@ -50654,6 +50656,54 @@ function BlockHooksControlPure({
function isObjectEmpty(object) { function isObjectEmpty(object) {
return !object || Object.keys(object).length === 0; 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() { function useBlockBindingsUtils() {
const { const {
clientId clientId
@ -50793,10 +50843,7 @@ function BlockBindingsPanelDropdown({
attribute, attribute,
binding binding
}) { }) {
const { const registeredSources = (0,external_wp_blocks_namespaceObject.getBlockBindingsSources)();
getBlockBindingsSources
} = unlock(external_wp_blocks_namespaceObject.privateApis);
const registeredSources = getBlockBindingsSources();
const { const {
updateBlockBindings updateBlockBindings
} = useBlockBindingsUtils(); } = useBlockBindingsUtils();
@ -50837,7 +50884,7 @@ function BlockBindingsAttribute({
source: sourceName, source: sourceName,
args args
} = binding || {}; } = binding || {};
const sourceProps = unlock(external_wp_blocks_namespaceObject.privateApis).getBlockBindingsSource(sourceName); const sourceProps = (0,external_wp_blocks_namespaceObject.getBlockBindingsSource)(sourceName);
const isSourceInvalid = !sourceProps; const isSourceInvalid = !sourceProps;
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, { return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
className: "block-editor-bindings__item", className: "block-editor-bindings__item",
@ -50911,7 +50958,6 @@ const BlockBindingsPanel = ({
name: blockName, name: blockName,
metadata metadata
}) => { }) => {
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
const blockContext = (0,external_wp_element_namespaceObject.useContext)(block_context); const blockContext = (0,external_wp_element_namespaceObject.useContext)(block_context);
const { const {
removeAllBlockBindings removeAllBlockBindings
@ -50921,7 +50967,7 @@ const BlockBindingsPanel = ({
// `useSelect` is used purposely here to ensure `getFieldsList` // `useSelect` is used purposely here to ensure `getFieldsList`
// is updated whenever there are updates in block context. // 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 = {};
const { const {
fieldsList, fieldsList,
@ -50930,10 +50976,7 @@ const BlockBindingsPanel = ({
if (!bindableAttributes || bindableAttributes.length === 0) { if (!bindableAttributes || bindableAttributes.length === 0) {
return block_bindings_EMPTY_OBJECT; return block_bindings_EMPTY_OBJECT;
} }
const { const registeredSources = (0,external_wp_blocks_namespaceObject.getBlockBindingsSources)();
getBlockBindingsSources
} = unlock(external_wp_blocks_namespaceObject.privateApis);
const registeredSources = getBlockBindingsSources();
Object.entries(registeredSources).forEach(([sourceName, { Object.entries(registeredSources).forEach(([sourceName, {
getFieldsList, getFieldsList,
usesContext usesContext
@ -50947,7 +50990,7 @@ const BlockBindingsPanel = ({
} }
} }
const sourceList = getFieldsList({ const sourceList = getFieldsList({
registry, select,
context context
}); });
// Only add source if the list is not empty. // 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, fieldsList: Object.values(_fieldsList).length > 0 ? _fieldsList : block_bindings_EMPTY_OBJECT,
canUpdateBlockBindings: select(store).getSettings().canUpdateBlockBindings canUpdateBlockBindings: select(store).getSettings().canUpdateBlockBindings
}; };
}, [blockContext, bindableAttributes, registry]); }, [blockContext, bindableAttributes]);
// Return early if there are no bindable attributes. // Return early if there are no bindable attributes.
if (!bindableAttributes || bindableAttributes.length === 0) { if (!bindableAttributes || bindableAttributes.length === 0) {
return null; return null;
@ -66104,25 +66147,26 @@ const InsertFromURLPopover = ({
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(url_popover, { }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(url_popover, {
anchor: popoverAnchor, anchor: popoverAnchor,
onClose: onClose, 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", className: "block-editor-media-placeholder__url-input-form",
onSubmit: onSubmit, onSubmit: onSubmit,
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", { children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalInputControl, {
className: "block-editor-media-placeholder__url-input-field", __next40pxDefaultSize: true,
type: "text", label: (0,external_wp_i18n_namespaceObject.__)('URL'),
"aria-label": (0,external_wp_i18n_namespaceObject.__)('URL'), hideLabelFromVision: true,
placeholder: (0,external_wp_i18n_namespaceObject.__)('Paste or type URL'), placeholder: (0,external_wp_i18n_namespaceObject.__)('Paste or type URL'),
onChange: onChange, onChange: onChange,
value: src value: src,
}), /*#__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",
className: "block-editor-media-placeholder__url-input-submit-button",
icon: keyboard_return, icon: keyboard_return,
label: (0,external_wp_i18n_namespaceObject.__)('Apply'), label: (0,external_wp_i18n_namespaceObject.__)('Apply'),
type: "submit" type: "submit"
})] })
})
})
}) })
}); });
const URLSelectionUI = ({ const URLSelectionUI = ({
@ -66221,9 +66265,6 @@ function MediaPlaceholder({
} }
return allowedTypes.every(allowedType => allowedType === 'image' || allowedType.startsWith('image/')); return allowedTypes.every(allowedType => allowedType === 'image' || allowedType.startsWith('image/'));
}; };
const onChangeSrc = event => {
setSrc(event.target.value);
};
const onFilesUpload = files => { const onFilesUpload = files => {
if (!handleUpload || typeof handleUpload === 'function' && !handleUpload(files)) { if (!handleUpload || typeof handleUpload === 'function' && !handleUpload(files)) {
return onSelect(files); return onSelect(files);
@ -66402,7 +66443,7 @@ function MediaPlaceholder({
const renderUrlSelectionUI = () => { const renderUrlSelectionUI = () => {
return onSelectURL && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(URLSelectionUI, { return onSelectURL && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(URLSelectionUI, {
src: src, src: src,
onChangeSrc: onChangeSrc, onChangeSrc: setSrc,
onSelectURL: onSelectURL onSelectURL: onSelectURL
}); });
}; };
@ -67897,7 +67938,6 @@ function withDeprecations(Component) {
const keyboardShortcutContext = (0,external_wp_element_namespaceObject.createContext)(); const keyboardShortcutContext = (0,external_wp_element_namespaceObject.createContext)();
const inputEventContext = (0,external_wp_element_namespaceObject.createContext)(); const inputEventContext = (0,external_wp_element_namespaceObject.createContext)();
const instanceIdKey = Symbol('instanceId'); const instanceIdKey = Symbol('instanceId');
@ -68019,10 +68059,7 @@ function RichTextWrapper({
return {}; return {};
} }
const relatedBinding = blockBindings[identifier]; const relatedBinding = blockBindings[identifier];
const { const blockBindingsSource = (0,external_wp_blocks_namespaceObject.getBlockBindingsSource)(relatedBinding.source);
getBlockBindingsSource
} = unlock(select(external_wp_blocks_namespaceObject.store));
const blockBindingsSource = getBlockBindingsSource(relatedBinding.source);
const blockBindingsContext = {}; const blockBindingsContext = {};
if (blockBindingsSource?.usesContext?.length) { if (blockBindingsSource?.usesContext?.length) {
for (const key of blockBindingsSource.usesContext) { for (const key of blockBindingsSource.usesContext) {
@ -68030,7 +68067,7 @@ function RichTextWrapper({
} }
} }
const _disableBoundBlock = !blockBindingsSource?.canUserEditValue?.({ const _disableBoundBlock = !blockBindingsSource?.canUserEditValue?.({
registry, select,
context: blockBindingsContext, context: blockBindingsContext,
args: relatedBinding.args args: relatedBinding.args
}); });
@ -68049,7 +68086,7 @@ function RichTextWrapper({
} = select(store); } = select(store);
const blockAttributes = getBlockAttributes(clientId); const blockAttributes = getBlockAttributes(clientId);
const fieldsList = blockBindingsSource?.getFieldsList?.({ const fieldsList = blockBindingsSource?.getFieldsList?.({
registry, select,
context: blockBindingsContext context: blockBindingsContext
}); });
const bindingKey = (_fieldsList$relatedBi = fieldsList?.[relatedBinding?.args?.key]?.label) !== null && _fieldsList$relatedBi !== void 0 ? _fieldsList$relatedBi : blockBindingsSource?.label; 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, bindingsPlaceholder: blockAttributes?.placeholder || _bindingsPlaceholder,
bindingsLabel: _bindingsLabel bindingsLabel: _bindingsLabel
}; };
}, [blockBindings, identifier, blockName, blockContext, registry, adjustedValue]); }, [blockBindings, identifier, blockName, blockContext, adjustedValue]);
const shouldDisableEditing = readOnly || disableBoundBlock; const shouldDisableEditing = readOnly || disableBoundBlock;
const { const {
getSelectionStart, getSelectionStart,
@ -70840,6 +70877,7 @@ const __experimentalGetElementClassName = element => {
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/image-settings-panel.js ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/image-settings-panel.js
/** /**
* WordPress dependencies * WordPress dependencies
@ -74350,7 +74388,6 @@ function ResolutionTool({
/** /**
@ -74396,7 +74433,6 @@ lock(privateApis, {
useBlockDisplayTitle: useBlockDisplayTitle, useBlockDisplayTitle: useBlockDisplayTitle,
__unstableBlockStyleVariationOverridesWithConfig: __unstableBlockStyleVariationOverridesWithConfig, __unstableBlockStyleVariationOverridesWithConfig: __unstableBlockStyleVariationOverridesWithConfig,
setBackgroundStyleDefaults: setBackgroundStyleDefaults, setBackgroundStyleDefaults: setBackgroundStyleDefaults,
useBlockBindingsUtils: useBlockBindingsUtils,
sectionRootClientIdKey: sectionRootClientIdKey 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 * WordPress dependencies
*/ */
@ -5040,7 +5039,6 @@ function ButtonEdit(props) {
const colorProps = (0,external_wp_blockEditor_namespaceObject.__experimentalUseColorProps)(attributes); const colorProps = (0,external_wp_blockEditor_namespaceObject.__experimentalUseColorProps)(attributes);
const spacingProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetSpacingClassesAndStyles)(attributes); const spacingProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetSpacingClassesAndStyles)(attributes);
const shadowProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetShadowClassesAndStyles)(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 ref = (0,external_wp_element_namespaceObject.useRef)();
const richTextRef = (0,external_wp_element_namespaceObject.useRef)(); const richTextRef = (0,external_wp_element_namespaceObject.useRef)();
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({ const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
@ -5089,10 +5087,10 @@ function ButtonEdit(props) {
if (!isSelected) { if (!isSelected) {
return {}; 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 { return {
lockUrlControls: !!metadata?.bindings?.url && !blockBindingsSource?.canUserEditValue?.({ lockUrlControls: !!metadata?.bindings?.url && !blockBindingsSource?.canUserEditValue?.({
registry, select,
context, context,
args: metadata?.bindings?.url?.args 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. // The only supported unit is px, so we can parseInt to strip the px here.
const numericWidth = width ? parseInt(width, 10) : undefined; const numericWidth = width ? parseInt(width, 10) : undefined;
const numericHeight = height ? parseInt(height, 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 imageRef = (0,external_wp_element_namespaceObject.useRef)();
const { const {
allowResize = true allowResize = true
@ -26253,21 +26250,18 @@ function image_Image({
if (!isSingleSelected) { if (!isSingleSelected) {
return {}; return {};
} }
const {
getBlockBindingsSource
} = unlock(select(external_wp_blocks_namespaceObject.store));
const { const {
url: urlBinding, url: urlBinding,
alt: altBinding, alt: altBinding,
title: titleBinding title: titleBinding
} = metadata?.bindings || {}; } = metadata?.bindings || {};
const hasParentPattern = !!context['pattern/overrides']; const hasParentPattern = !!context['pattern/overrides'];
const urlBindingSource = getBlockBindingsSource(urlBinding?.source); const urlBindingSource = (0,external_wp_blocks_namespaceObject.getBlockBindingsSource)(urlBinding?.source);
const altBindingSource = getBlockBindingsSource(altBinding?.source); const altBindingSource = (0,external_wp_blocks_namespaceObject.getBlockBindingsSource)(altBinding?.source);
const titleBindingSource = getBlockBindingsSource(titleBinding?.source); const titleBindingSource = (0,external_wp_blocks_namespaceObject.getBlockBindingsSource)(titleBinding?.source);
return { return {
lockUrlControls: !!urlBinding && !urlBindingSource?.canUserEditValue?.({ lockUrlControls: !!urlBinding && !urlBindingSource?.canUserEditValue?.({
registry, select,
context, context,
args: urlBinding?.args args: urlBinding?.args
}), }),
@ -26280,14 +26274,14 @@ function image_Image({
// This is a temporary solution until we support overriding the caption on the frontend. // This is a temporary solution until we support overriding the caption on the frontend.
hasParentPattern, hasParentPattern,
lockAltControls: !!altBinding && !altBindingSource?.canUserEditValue?.({ lockAltControls: !!altBinding && !altBindingSource?.canUserEditValue?.({
registry, select,
context, context,
args: altBinding?.args args: altBinding?.args
}), }),
lockAltControlsMessage: altBindingSource?.label ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Label of the bindings source. */ 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'), (0,external_wp_i18n_namespaceObject.__)('Connected to %s'), altBindingSource.label) : (0,external_wp_i18n_namespaceObject.__)('Connected to dynamic data'),
lockTitleControls: !!titleBinding && !titleBindingSource?.canUserEditValue?.({ lockTitleControls: !!titleBinding && !titleBindingSource?.canUserEditValue?.({
registry, select,
context, context,
args: titleBinding?.args args: titleBinding?.args
}), }),
@ -26737,7 +26731,6 @@ function useMaxWidthObserver() {
/** /**
* Module constants * Module constants
*/ */
@ -26800,7 +26793,6 @@ function ImageEdit({
metadata metadata
} = attributes; } = attributes;
const [temporaryURL, setTemporaryURL] = (0,external_wp_element_namespaceObject.useState)(attributes.blob); 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)(); 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. // 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. // This won't work for them because the container width changes with the image.
@ -27026,10 +27018,10 @@ function ImageEdit({
if (!isSingleSelected) { if (!isSingleSelected) {
return {}; 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 { return {
lockUrlControls: !!metadata?.bindings?.url && !blockBindingsSource?.canUserEditValue?.({ lockUrlControls: !!metadata?.bindings?.url && !blockBindingsSource?.canUserEditValue?.({
registry, select,
context, context,
args: metadata?.bindings?.url?.args args: metadata?.bindings?.url?.args
}), }),
@ -51426,15 +51418,12 @@ function ReusableBlockEdit({
getSettings, getSettings,
getBlockEditingMode getBlockEditingMode
} = select(external_wp_blockEditor_namespaceObject.store); } = 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. // For editing link to the site editor if the theme and user permissions support it.
return { return {
innerBlocks: getBlocks(patternClientId), innerBlocks: getBlocks(patternClientId),
onNavigateToEntityRecord: getSettings().onNavigateToEntityRecord, onNavigateToEntityRecord: getSettings().onNavigateToEntityRecord,
editingMode: getBlockEditingMode(patternClientId), editingMode: getBlockEditingMode(patternClientId),
hasPatternOverridesSource: !!getBlockBindingsSource('core/pattern-overrides') hasPatternOverridesSource: !!(0,external_wp_blocks_namespaceObject.getBlockBindingsSource)('core/pattern-overrides')
}; };
}, [patternClientId]); }, [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); const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({ /* harmony default export */ const esm_browser_native = ({
randomUUID 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 // 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 // require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()). // generators (like Math.random()).
@ -64000,7 +63989,7 @@ function rng() {
return getRandomValues(rnds8); 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: * 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))); /* 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), findTransform: () => (/* reexport */ findTransform),
getBlockAttributes: () => (/* reexport */ getBlockAttributes), getBlockAttributes: () => (/* reexport */ getBlockAttributes),
getBlockAttributesNamesByRole: () => (/* reexport */ getBlockAttributesNamesByRole), getBlockAttributesNamesByRole: () => (/* reexport */ getBlockAttributesNamesByRole),
getBlockBindingsSource: () => (/* reexport */ getBlockBindingsSource),
getBlockBindingsSources: () => (/* reexport */ getBlockBindingsSources),
getBlockContent: () => (/* reexport */ getBlockInnerHTML), getBlockContent: () => (/* reexport */ getBlockInnerHTML),
getBlockDefaultClassName: () => (/* reexport */ getBlockDefaultClassName), getBlockDefaultClassName: () => (/* reexport */ getBlockDefaultClassName),
getBlockFromExample: () => (/* reexport */ getBlockFromExample), getBlockFromExample: () => (/* reexport */ getBlockFromExample),
@ -5881,6 +5883,7 @@ __webpack_require__.d(__webpack_exports__, {
pasteHandler: () => (/* reexport */ pasteHandler), pasteHandler: () => (/* reexport */ pasteHandler),
privateApis: () => (/* reexport */ privateApis), privateApis: () => (/* reexport */ privateApis),
rawHandler: () => (/* reexport */ rawHandler), rawHandler: () => (/* reexport */ rawHandler),
registerBlockBindingsSource: () => (/* reexport */ registerBlockBindingsSource),
registerBlockCollection: () => (/* reexport */ registerBlockCollection), registerBlockCollection: () => (/* reexport */ registerBlockCollection),
registerBlockStyle: () => (/* reexport */ registerBlockStyle), registerBlockStyle: () => (/* reexport */ registerBlockStyle),
registerBlockType: () => (/* reexport */ registerBlockType), registerBlockType: () => (/* reexport */ registerBlockType),
@ -5895,6 +5898,7 @@ __webpack_require__.d(__webpack_exports__, {
store: () => (/* reexport */ store), store: () => (/* reexport */ store),
switchToBlockType: () => (/* reexport */ switchToBlockType), switchToBlockType: () => (/* reexport */ switchToBlockType),
synchronizeBlocksWithTemplate: () => (/* reexport */ synchronizeBlocksWithTemplate), synchronizeBlocksWithTemplate: () => (/* reexport */ synchronizeBlocksWithTemplate),
unregisterBlockBindingsSource: () => (/* reexport */ unregisterBlockBindingsSource),
unregisterBlockStyle: () => (/* reexport */ unregisterBlockStyle), unregisterBlockStyle: () => (/* reexport */ unregisterBlockStyle),
unregisterBlockType: () => (/* reexport */ unregisterBlockType), unregisterBlockType: () => (/* reexport */ unregisterBlockType),
unregisterBlockVariation: () => (/* reexport */ unregisterBlockVariation), unregisterBlockVariation: () => (/* reexport */ unregisterBlockVariation),
@ -7514,12 +7518,11 @@ const unregisterBlockVariation = (blockName, variationName) => {
* *
* @param {Object} source Properties of the source to be registered. * @param {Object} source Properties of the source to be registered.
* @param {string} source.name The unique and machine-readable name. * @param {string} source.name The unique and machine-readable name.
* @param {string} [source.label] Human-readable label. * @param {string} [source.label] Human-readable label. Optional when it is defined in the server.
* @param {Array} [source.usesContext] Array of context needed by the source only in the editor. * @param {Array} [source.usesContext] Optional 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.getValues] Optional function to get the values from the source.
* @param {Function} [source.setValues] Function to update multiple values connected to the source. * @param {Function} [source.setValues] Optional 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.canUserEditValue] Optional 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.
* *
* @example * @example
* ```js * ```js
@ -7529,8 +7532,9 @@ const unregisterBlockVariation = (blockName, variationName) => {
* registerBlockBindingsSource( { * registerBlockBindingsSource( {
* name: 'plugin/my-custom-source', * name: 'plugin/my-custom-source',
* label: _x( 'My Custom Source', 'block bindings source' ), * label: _x( 'My Custom Source', 'block bindings source' ),
* getValues: () => getSourceValues(), * usesContext: [ 'postType' ],
* setValues: () => updateMyCustomValuesInBatch(), * getValues: getSourceValues,
* setValues: updateMyCustomValuesInBatch,
* canUserEditValue: () => true, * 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. * @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. * @param {string} name Block bindings source name.
* *
@ -8358,6 +8362,11 @@ function getMergedUsesContext(existingUsesContext = [], newUsesContext = []) {
function blockBindingsSources(state = {}, action) { function blockBindingsSources(state = {}, action) {
switch (action.type) { switch (action.type) {
case 'ADD_BLOCK_BINDINGS_SOURCE': 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 { return {
...state, ...state,
[action.name]: { [action.name]: {
@ -8368,7 +8377,7 @@ function blockBindingsSources(state = {}, action) {
setValues: action.setValues, setValues: action.setValues,
// Only set `canUserEditValue` if `setValues` is also defined. // Only set `canUserEditValue` if `setValues` is also defined.
canUserEditValue: action.setValues && action.canUserEditValue, canUserEditValue: action.setValues && action.canUserEditValue,
getFieldsList: action.getFieldsList getFieldsList
} }
}; };
case 'ADD_BOOTSTRAPPED_BLOCK_BINDINGS_SOURCE': 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).registerPrivateSelectors(private_selectors_namespaceObject);
unlock(store).registerPrivateActions(private_actions_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); const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({ /* harmony default export */ const esm_browser_native = ({
randomUUID 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 // 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 // require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()). // generators (like Math.random()).
@ -10066,7 +10075,7 @@ function rng() {
return getRandomValues(rnds8); 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: * 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))); /* 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 // The blocktype is the most important concept within the block API. It defines
// all aspects of the block configuration and its interfaces, including `edit` // all aspects of the block configuration and its interfaces, including `edit`
// and `save`. The transforms specification allows converting one blocktype to // and `save`. The transforms specification allows converting one blocktype to
@ -15865,10 +15873,6 @@ function synchronizeBlocksWithTemplate(blocks = [], template) {
const privateApis = {}; const privateApis = {};
lock(privateApis, { lock(privateApis, {
registerBlockBindingsSource: registerBlockBindingsSource,
unregisterBlockBindingsSource: unregisterBlockBindingsSource,
getBlockBindingsSource: getBlockBindingsSource,
getBlockBindingsSources: getBlockBindingsSources,
isUnmodifiedBlockContent: isUnmodifiedBlockContent 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); /* 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); const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({ /* harmony default export */ const esm_browser_native = ({
randomUUID 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 // 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 // require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()). // generators (like Math.random()).
@ -33640,7 +33640,7 @@ function rng() {
return getRandomValues(rnds8); 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: * 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))); /* 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 * Internal dependencies
*/ */
@ -35757,7 +35758,8 @@ function UnforwardedToggleGroupControlAsRadioGroup({
const radio = useRadioStore({ const radio = useRadioStore({
defaultValue, defaultValue,
value, value,
setValue: wrappedOnChangeProp setValue: wrappedOnChangeProp,
rtl: (0,external_wp_i18n_namespaceObject.isRTL)()
}); });
const selectedValue = useStoreState(radio, 'value'); const selectedValue = useStoreState(radio, 'value');
const setValue = radio.setValue; 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"]; const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
;// CONCATENATED MODULE: external ["wp","richText"] ;// CONCATENATED MODULE: external ["wp","richText"]
const external_wp_richText_namespaceObject = window["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); const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({ /* harmony default export */ const esm_browser_native = ({
randomUUID 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 // 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 // require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()). // generators (like Math.random()).
@ -1464,7 +1464,7 @@ function rng() {
return getRandomValues(rnds8); 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: * 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))); /* 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, level: 2,
size: 13, size: 13,
children: title 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 }), /*#__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",
label: (0,external_wp_i18n_namespaceObject.__)('Close'), label: (0,external_wp_i18n_namespaceObject.__)('Close'),
icon: close_small, 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, level: 2,
size: 13, size: 13,
children: title 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 }), /*#__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",
label: (0,external_wp_i18n_namespaceObject.__)('Close'), label: (0,external_wp_i18n_namespaceObject.__)('Close'),
icon: close_small, icon: close_small,
onClick: onClose onClick: onClose,
size: "small"
})] })]
}) })
}); });
@ -8751,16 +8748,13 @@ function ControlsWithStoreSubscription(props) {
hasPatternOverridesSource, hasPatternOverridesSource,
isEditingSyncedPattern isEditingSyncedPattern
} = (0,external_wp_data_namespaceObject.useSelect)(select => { } = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getBlockBindingsSource
} = unlock(select(external_wp_blocks_namespaceObject.store));
const { const {
getCurrentPostType, getCurrentPostType,
getEditedPostAttribute getEditedPostAttribute
} = select(store_store); } = select(store_store);
return { return {
// For editing link to the site editor if the theme and user permissions support it. // 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 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); /* 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); const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({ /* harmony default export */ const esm_browser_native = ({
randomUUID 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 // 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 // require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()). // generators (like Math.random()).
@ -18543,7 +18537,7 @@ function rng() {
return getRandomValues(rnds8); 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: * 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))); /* 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 = ({ /* harmony default export */ const pattern_overrides = ({
name: 'core/pattern-overrides', name: 'core/pattern-overrides',
getValues({ getValues({
registry, select,
clientId, clientId,
context, context,
bindings bindings
@ -29869,7 +29863,7 @@ const CONTENT = 'content';
const patternOverridesContent = context['pattern/overrides']; const patternOverridesContent = context['pattern/overrides'];
const { const {
getBlockAttributes getBlockAttributes
} = registry.select(external_wp_blockEditor_namespaceObject.store); } = select(external_wp_blockEditor_namespaceObject.store);
const currentBlockAttributes = getBlockAttributes(clientId); const currentBlockAttributes = getBlockAttributes(clientId);
const overridesValues = {}; const overridesValues = {};
for (const attributeName of Object.keys(bindings)) { for (const attributeName of Object.keys(bindings)) {
@ -29887,7 +29881,8 @@ const CONTENT = 'content';
return overridesValues; return overridesValues;
}, },
setValues({ setValues({
registry, select,
dispatch,
clientId, clientId,
bindings bindings
}) { }) {
@ -29895,7 +29890,7 @@ const CONTENT = 'content';
getBlockAttributes, getBlockAttributes,
getBlockParentsByBlockName, getBlockParentsByBlockName,
getBlocks getBlocks
} = registry.select(external_wp_blockEditor_namespaceObject.store); } = select(external_wp_blockEditor_namespaceObject.store);
const currentBlockAttributes = getBlockAttributes(clientId); const currentBlockAttributes = getBlockAttributes(clientId);
const blockName = currentBlockAttributes?.metadata?.name; const blockName = currentBlockAttributes?.metadata?.name;
if (!blockName) { if (!blockName) {
@ -29916,7 +29911,7 @@ const CONTENT = 'content';
const syncBlocksWithSameName = blocks => { const syncBlocksWithSameName = blocks => {
for (const block of blocks) { for (const block of blocks) {
if (block.attributes?.metadata?.name === blockName) { 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); syncBlocksWithSameName(block.innerBlocks);
} }
@ -29925,7 +29920,7 @@ const CONTENT = 'content';
return; return;
} }
const currentBindingValue = getBlockAttributes(patternClientId)?.[CONTENT]; const currentBindingValue = getBlockAttributes(patternClientId)?.[CONTENT];
registry.dispatch(external_wp_blockEditor_namespaceObject.store).updateBlockAttributes(patternClientId, { dispatch(external_wp_blockEditor_namespaceObject.store).updateBlockAttributes(patternClientId, {
[CONTENT]: { [CONTENT]: {
...currentBindingValue, ...currentBindingValue,
[blockName]: { [blockName]: {
@ -29963,7 +29958,7 @@ const CONTENT = 'content';
* If the value is not available based on context, like in templates, * If the value is not available based on context, like in templates,
* it falls back to the default value, label, or key. * 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. * @param {Object} context The context provided.
* @return {Object} List of post meta fields with their value and label. * @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 { const {
getEditedEntityRecord getEditedEntityRecord
} = registry.select(external_wp_coreData_namespaceObject.store); } = select(external_wp_coreData_namespaceObject.store);
const { const {
getRegisteredPostMeta getRegisteredPostMeta
} = unlock(registry.select(external_wp_coreData_namespaceObject.store)); } = unlock(select(external_wp_coreData_namespaceObject.store));
let entityMetaValues; let entityMetaValues;
// Try to get the current entity meta values. // Try to get the current entity meta values.
if (context?.postType && context?.postId) { if (context?.postType && context?.postId) {
@ -30017,11 +30012,11 @@ function getPostMetaFields(registry, context) {
/* harmony default export */ const post_meta = ({ /* harmony default export */ const post_meta = ({
name: 'core/post-meta', name: 'core/post-meta',
getValues({ getValues({
registry, select,
context, context,
bindings bindings
}) { }) {
const metaFields = getPostMetaFields(registry, context); const metaFields = getPostMetaFields(select, context);
const newValues = {}; const newValues = {};
for (const [attributeName, source] of Object.entries(bindings)) { for (const [attributeName, source] of Object.entries(bindings)) {
var _ref; var _ref;
@ -30036,7 +30031,7 @@ function getPostMetaFields(registry, context) {
return newValues; return newValues;
}, },
setValues({ setValues({
registry, dispatch,
context, context,
bindings bindings
}) { }) {
@ -30047,12 +30042,12 @@ function getPostMetaFields(registry, context) {
}) => { }) => {
newMeta[args.key] = newValue; 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 meta: newMeta
}); });
}, },
canUserEditValue({ canUserEditValue({
registry, select,
context, context,
args args
}) { }) {
@ -30060,25 +30055,25 @@ function getPostMetaFields(registry, context) {
if (context?.query || context?.queryId) { if (context?.query || context?.queryId) {
return false; 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. // Check that editing is happening in the post editor and not a template.
if (postType === 'wp_template') { if (postType === 'wp_template') {
return false; 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. // Empty string or `false` could be a valid value, so we need to check if the field value is undefined.
if (fieldValue === undefined) { if (fieldValue === undefined) {
return false; return false;
} }
// Check that custom fields metabox is not enabled. // 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) { if (areCustomFieldsEnabled) {
return false; return false;
} }
// Check that the user has the capability to edit post meta. // 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', kind: 'postType',
name: context?.postType, name: context?.postType,
id: context?.postId id: context?.postId
@ -30089,10 +30084,10 @@ function getPostMetaFields(registry, context) {
return true; return true;
}, },
getFieldsList({ getFieldsList({
registry, select,
context context
}) { }) {
return getPostMetaFields(registry, context); return getPostMetaFields(select, context);
} }
}); });
@ -30121,11 +30116,8 @@ function getPostMetaFields(registry, context) {
* ``` * ```
*/ */
function registerCoreBlockBindingsSources() { function registerCoreBlockBindingsSources() {
const { (0,external_wp_blocks_namespaceObject.registerBlockBindingsSource)(pattern_overrides);
registerBlockBindingsSource (0,external_wp_blocks_namespaceObject.registerBlockBindingsSource)(post_meta);
} = unlock(external_wp_blocks_namespaceObject.privateApis);
registerBlockBindingsSource(pattern_overrides);
registerBlockBindingsSource(post_meta);
} }
/** /**

File diff suppressed because one or more lines are too long

View File

@ -751,14 +751,11 @@ function DropdownHeader({
level: 2, level: 2,
size: 13, size: 13,
children: title 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 }), /*#__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",
label: (0,external_wp_i18n_namespaceObject.__)('Close'), label: (0,external_wp_i18n_namespaceObject.__)('Close'),
icon: close_small, 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, id: inputId,
type: "file", type: "file",
onChange: onChangeFile onChange: onChangeFile
}), /*#__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,
type: "submit", type: "submit",
isBusy: isLoading, isBusy: isLoading,
accessibleWhenDisabled: true, accessibleWhenDisabled: true,
@ -759,10 +757,9 @@ function ImportDropdown({
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",
, { className: "list-reusable-blocks-import-dropdown__button",
__next40pxDefaultSize: false,
"aria-expanded": isOpen, "aria-expanded": isOpen,
onClick: onToggle, onClick: onToggle,
variant: "primary", variant: "primary",

View File

@ -1,2 +1,2 @@
/*! This file is auto-generated */ /*! 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: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
children: children children: children
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", { }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
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: onDismiss, onClick: onDismiss,
children: hasNextTip ? (0,external_wp_i18n_namespaceObject.__)('See next tip') : (0,external_wp_i18n_namespaceObject.__)('Got it') 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 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
// TODO: Switch to `true` (40px size) if possible size: "small",
, {
__next40pxDefaultSize: false,
className: "nux-dot-tip__disable", className: "nux-dot-tip__disable",
icon: library_close, icon: library_close,
label: (0,external_wp_i18n_namespaceObject.__)('Disable tips'), label: (0,external_wp_i18n_namespaceObject.__)('Disable tips'),

View File

@ -1,2 +1,2 @@
/*! This file is auto-generated */ /*! 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({ function PatternOverridesControls({
attributes, attributes,
setAttributes, setAttributes,
@ -1426,7 +1422,7 @@ function PatternOverridesControls({
const isConnectedToOtherSources = defaultBindings?.source && defaultBindings.source !== PATTERN_OVERRIDES_BINDING_SOURCE; const isConnectedToOtherSources = defaultBindings?.source && defaultBindings.source !== PATTERN_OVERRIDES_BINDING_SOURCE;
const { const {
updateBlockBindings updateBlockBindings
} = useBlockBindingsUtils(); } = (0,external_wp_blockEditor_namespaceObject.useBlockBindingsUtils)();
function updateBindings(isChecked, customName) { function updateBindings(isChecked, customName) {
if (customName) { if (customName) {
setAttributes({ 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, { }), /*#__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: () => {
setIsModalOpen(false); setIsModalOpen(false);
setTitle(''); setTitle('');
}, },
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",
children: (0,external_wp_i18n_namespaceObject.__)('Create') 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 * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.