Editor: Update packages for 6.6 Beta 3.
See https://make.wordpress.org/core/handbook/about/release-cycle/block-editor-release-process-for-major-releases/#package-updates-and-core-patches. See https://github.com/WordPress/gutenberg/pull/62641. See https://github.com/WordPress/wordpress-develop/pull/6850. Props ellatrix, cbravobernal. Fixes #61462. Built from https://develop.svn.wordpress.org/trunk@58434 git-svn-id: http://core.svn.wordpress.org/trunk@57883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c469887ea5
commit
6e426b04c1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -31,7 +31,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-block-search__input{
|
.wp-block-search__input{
|
||||||
-webkit-appearance:initial;
|
|
||||||
appearance:none;
|
appearance:none;
|
||||||
border:1px solid #949494;
|
border:1px solid #949494;
|
||||||
flex-grow:1;
|
flex-grow:1;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
.wp-block-search__button{margin-right:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{height:1.25em;min-height:24px;min-width:24px;width:1.25em;fill:currentColor;vertical-align:text-bottom}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search__input{-webkit-appearance:initial;appearance:none;border:1px solid #949494;flex-grow:1;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important}.wp-block-search.wp-block-search__button-only .wp-block-search__button{flex-shrink:0;margin-right:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button[aria-expanded=true]{max-width:calc(100% - 100px)}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__input){font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-transform:inherit}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:left}
|
.wp-block-search__button{margin-right:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{height:1.25em;min-height:24px;min-width:24px;width:1.25em;fill:currentColor;vertical-align:text-bottom}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search__input{appearance:none;border:1px solid #949494;flex-grow:1;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important}.wp-block-search.wp-block-search__button-only .wp-block-search__button{flex-shrink:0;margin-right:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button[aria-expanded=true]{max-width:calc(100% - 100px)}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__input){font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-transform:inherit}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:left}
|
|
@ -31,7 +31,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-block-search__input{
|
.wp-block-search__input{
|
||||||
-webkit-appearance:initial;
|
|
||||||
appearance:none;
|
appearance:none;
|
||||||
border:1px solid #949494;
|
border:1px solid #949494;
|
||||||
flex-grow:1;
|
flex-grow:1;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
.wp-block-search__button{margin-left:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{height:1.25em;min-height:24px;min-width:24px;width:1.25em;fill:currentColor;vertical-align:text-bottom}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search__input{-webkit-appearance:initial;appearance:none;border:1px solid #949494;flex-grow:1;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important}.wp-block-search.wp-block-search__button-only .wp-block-search__button{flex-shrink:0;margin-left:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button[aria-expanded=true]{max-width:calc(100% - 100px)}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__input){font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-transform:inherit}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:right}
|
.wp-block-search__button{margin-left:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{height:1.25em;min-height:24px;min-width:24px;width:1.25em;fill:currentColor;vertical-align:text-bottom}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search__input{appearance:none;border:1px solid #949494;flex-grow:1;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important}.wp-block-search.wp-block-search__button-only .wp-block-search__button{flex-shrink:0;margin-left:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button[aria-expanded=true]{max-width:calc(100% - 100px)}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__input){font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-transform:inherit}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:right}
|
|
@ -81,7 +81,6 @@
|
||||||
.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{
|
.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{
|
||||||
border:0;
|
border:0;
|
||||||
clip:rect(1px, 1px, 1px, 1px);
|
clip:rect(1px, 1px, 1px, 1px);
|
||||||
-webkit-clip-path:inset(50%);
|
|
||||||
clip-path:inset(50%);
|
clip-path:inset(50%);
|
||||||
height:1px;
|
height:1px;
|
||||||
margin:-1px;
|
margin:-1px;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-right:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-right:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:right;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-left:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-left:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
|
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-right:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-right:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:right;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-left:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-left:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
|
|
@ -81,7 +81,6 @@
|
||||||
.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{
|
.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{
|
||||||
border:0;
|
border:0;
|
||||||
clip:rect(1px, 1px, 1px, 1px);
|
clip:rect(1px, 1px, 1px, 1px);
|
||||||
-webkit-clip-path:inset(50%);
|
|
||||||
clip-path:inset(50%);
|
clip-path:inset(50%);
|
||||||
height:1px;
|
height:1px;
|
||||||
margin:-1px;
|
margin:-1px;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-left:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-left:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:left;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-right:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-right:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
|
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-left:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-left:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:left;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-right:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-right:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
|
|
@ -34,19 +34,6 @@
|
||||||
margin-top:0;
|
margin-top:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-editor-block-bindings-toolbar-indicator__popover .components-popover__content{
|
|
||||||
min-width:260px;
|
|
||||||
padding:16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.block-editor-block-bindings-toolbar-indicator .block-editor-block-bindings-toolbar-indicator-icon.has-colors svg{
|
|
||||||
fill:var(--wp-block-synced-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.editor-collapsible-block-toolbar .block-editor-block-bindings-toolbar-indicator{
|
|
||||||
height:32px;
|
|
||||||
}
|
|
||||||
|
|
||||||
iframe[name=editor-canvas]{
|
iframe[name=editor-canvas]{
|
||||||
background-color:initial;
|
background-color:initial;
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
|
@ -1053,6 +1040,11 @@ iframe[name=editor-canvas]{
|
||||||
padding:6px 8px;
|
padding:6px 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.block-editor-block-switcher__binding-indicator{
|
||||||
|
display:block;
|
||||||
|
padding:8px;
|
||||||
|
}
|
||||||
|
|
||||||
.block-editor-block-types-list>[role=presentation]{
|
.block-editor-block-types-list>[role=presentation]{
|
||||||
display:flex;
|
display:flex;
|
||||||
flex-wrap:wrap;
|
flex-wrap:wrap;
|
||||||
|
@ -2702,7 +2694,6 @@ iframe[name=editor-canvas]{
|
||||||
.block-editor-responsive-block-control .components-base-control__help{
|
.block-editor-responsive-block-control .components-base-control__help{
|
||||||
border:0;
|
border:0;
|
||||||
clip:rect(1px, 1px, 1px, 1px);
|
clip:rect(1px, 1px, 1px, 1px);
|
||||||
-webkit-clip-path:inset(50%);
|
|
||||||
clip-path:inset(50%);
|
clip-path:inset(50%);
|
||||||
height:1px;
|
height:1px;
|
||||||
margin:-1px;
|
margin:-1px;
|
||||||
|
@ -3154,7 +3145,7 @@ iframe[name=editor-canvas]{
|
||||||
margin-bottom:-1px;
|
margin-bottom:-1px;
|
||||||
margin-top:-1px;
|
margin-top:-1px;
|
||||||
}
|
}
|
||||||
.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{
|
.block-editor-block-toolbar.is-connected .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-connected .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors,.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{
|
||||||
color:var(--wp-block-synced-color);
|
color:var(--wp-block-synced-color);
|
||||||
}
|
}
|
||||||
.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{
|
.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -34,19 +34,6 @@
|
||||||
margin-top:0;
|
margin-top:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-editor-block-bindings-toolbar-indicator__popover .components-popover__content{
|
|
||||||
min-width:260px;
|
|
||||||
padding:16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.block-editor-block-bindings-toolbar-indicator .block-editor-block-bindings-toolbar-indicator-icon.has-colors svg{
|
|
||||||
fill:var(--wp-block-synced-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.editor-collapsible-block-toolbar .block-editor-block-bindings-toolbar-indicator{
|
|
||||||
height:32px;
|
|
||||||
}
|
|
||||||
|
|
||||||
iframe[name=editor-canvas]{
|
iframe[name=editor-canvas]{
|
||||||
background-color:initial;
|
background-color:initial;
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
|
@ -1053,6 +1040,11 @@ iframe[name=editor-canvas]{
|
||||||
padding:6px 8px;
|
padding:6px 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.block-editor-block-switcher__binding-indicator{
|
||||||
|
display:block;
|
||||||
|
padding:8px;
|
||||||
|
}
|
||||||
|
|
||||||
.block-editor-block-types-list>[role=presentation]{
|
.block-editor-block-types-list>[role=presentation]{
|
||||||
display:flex;
|
display:flex;
|
||||||
flex-wrap:wrap;
|
flex-wrap:wrap;
|
||||||
|
@ -2702,7 +2694,6 @@ iframe[name=editor-canvas]{
|
||||||
.block-editor-responsive-block-control .components-base-control__help{
|
.block-editor-responsive-block-control .components-base-control__help{
|
||||||
border:0;
|
border:0;
|
||||||
clip:rect(1px, 1px, 1px, 1px);
|
clip:rect(1px, 1px, 1px, 1px);
|
||||||
-webkit-clip-path:inset(50%);
|
|
||||||
clip-path:inset(50%);
|
clip-path:inset(50%);
|
||||||
height:1px;
|
height:1px;
|
||||||
margin:-1px;
|
margin:-1px;
|
||||||
|
@ -3154,7 +3145,7 @@ iframe[name=editor-canvas]{
|
||||||
margin-bottom:-1px;
|
margin-bottom:-1px;
|
||||||
margin-top:-1px;
|
margin-top:-1px;
|
||||||
}
|
}
|
||||||
.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{
|
.block-editor-block-toolbar.is-connected .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-connected .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors,.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{
|
||||||
color:var(--wp-block-synced-color);
|
color:var(--wp-block-synced-color);
|
||||||
}
|
}
|
||||||
.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{
|
.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -112,7 +112,6 @@
|
||||||
.screen-reader-text{
|
.screen-reader-text{
|
||||||
border:0;
|
border:0;
|
||||||
clip:rect(1px, 1px, 1px, 1px);
|
clip:rect(1px, 1px, 1px, 1px);
|
||||||
-webkit-clip-path:inset(50%);
|
|
||||||
clip-path:inset(50%);
|
clip-path:inset(50%);
|
||||||
height:1px;
|
height:1px;
|
||||||
margin:-1px;
|
margin:-1px;
|
||||||
|
@ -126,7 +125,6 @@
|
||||||
.screen-reader-text:focus{
|
.screen-reader-text:focus{
|
||||||
background-color:#ddd;
|
background-color:#ddd;
|
||||||
clip:auto !important;
|
clip:auto !important;
|
||||||
-webkit-clip-path:none;
|
|
||||||
clip-path:none;
|
clip-path:none;
|
||||||
color:#444;
|
color:#444;
|
||||||
display:block;
|
display:block;
|
||||||
|
|
|
@ -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}}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;line-height:normal;padding:15px 23px 14px;right:5px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-left-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-right-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-left-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-right-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
|
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;clip-path:none;color:#444;display:block;font-size:1em;height:auto;line-height:normal;padding:15px 23px 14px;right:5px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-left-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-right-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-left-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-right-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
|
|
@ -112,7 +112,6 @@
|
||||||
.screen-reader-text{
|
.screen-reader-text{
|
||||||
border:0;
|
border:0;
|
||||||
clip:rect(1px, 1px, 1px, 1px);
|
clip:rect(1px, 1px, 1px, 1px);
|
||||||
-webkit-clip-path:inset(50%);
|
|
||||||
clip-path:inset(50%);
|
clip-path:inset(50%);
|
||||||
height:1px;
|
height:1px;
|
||||||
margin:-1px;
|
margin:-1px;
|
||||||
|
@ -126,7 +125,6 @@
|
||||||
.screen-reader-text:focus{
|
.screen-reader-text:focus{
|
||||||
background-color:#ddd;
|
background-color:#ddd;
|
||||||
clip:auto !important;
|
clip:auto !important;
|
||||||
-webkit-clip-path:none;
|
|
||||||
clip-path:none;
|
clip-path:none;
|
||||||
color:#444;
|
color:#444;
|
||||||
display:block;
|
display:block;
|
||||||
|
|
|
@ -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}}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
|
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
|
|
@ -2637,7 +2637,6 @@ ul.wp-block-rss.is-grid li{
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-block-search__input{
|
.wp-block-search__input{
|
||||||
-webkit-appearance:initial;
|
|
||||||
appearance:none;
|
appearance:none;
|
||||||
border:1px solid #949494;
|
border:1px solid #949494;
|
||||||
flex-grow:1;
|
flex-grow:1;
|
||||||
|
@ -3493,7 +3492,6 @@ a[data-fn].fn:after{
|
||||||
.screen-reader-text{
|
.screen-reader-text{
|
||||||
border:0;
|
border:0;
|
||||||
clip:rect(1px, 1px, 1px, 1px);
|
clip:rect(1px, 1px, 1px, 1px);
|
||||||
-webkit-clip-path:inset(50%);
|
|
||||||
clip-path:inset(50%);
|
clip-path:inset(50%);
|
||||||
height:1px;
|
height:1px;
|
||||||
margin:-1px;
|
margin:-1px;
|
||||||
|
@ -3507,7 +3505,6 @@ a[data-fn].fn:after{
|
||||||
.screen-reader-text:focus{
|
.screen-reader-text:focus{
|
||||||
background-color:#ddd;
|
background-color:#ddd;
|
||||||
clip:auto !important;
|
clip:auto !important;
|
||||||
-webkit-clip-path:none;
|
|
||||||
clip-path:none;
|
clip-path:none;
|
||||||
color:#444;
|
color:#444;
|
||||||
display:block;
|
display:block;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2637,7 +2637,6 @@ ul.wp-block-rss.is-grid li{
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-block-search__input{
|
.wp-block-search__input{
|
||||||
-webkit-appearance:initial;
|
|
||||||
appearance:none;
|
appearance:none;
|
||||||
border:1px solid #949494;
|
border:1px solid #949494;
|
||||||
flex-grow:1;
|
flex-grow:1;
|
||||||
|
@ -3493,7 +3492,6 @@ a[data-fn].fn:after{
|
||||||
.screen-reader-text{
|
.screen-reader-text{
|
||||||
border:0;
|
border:0;
|
||||||
clip:rect(1px, 1px, 1px, 1px);
|
clip:rect(1px, 1px, 1px, 1px);
|
||||||
-webkit-clip-path:inset(50%);
|
|
||||||
clip-path:inset(50%);
|
clip-path:inset(50%);
|
||||||
height:1px;
|
height:1px;
|
||||||
margin:-1px;
|
margin:-1px;
|
||||||
|
@ -3507,7 +3505,6 @@ a[data-fn].fn:after{
|
||||||
.screen-reader-text:focus{
|
.screen-reader-text:focus{
|
||||||
background-color:#ddd;
|
background-color:#ddd;
|
||||||
clip:auto !important;
|
clip:auto !important;
|
||||||
-webkit-clip-path:none;
|
|
||||||
clip-path:none;
|
clip-path:none;
|
||||||
color:#444;
|
color:#444;
|
||||||
display:block;
|
display:block;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -390,7 +390,6 @@ p+.components-button.is-tertiary{
|
||||||
}
|
}
|
||||||
|
|
||||||
.components-checkbox-control__input[type=checkbox]{
|
.components-checkbox-control__input[type=checkbox]{
|
||||||
-webkit-appearance:none;
|
|
||||||
appearance:none;
|
appearance:none;
|
||||||
background:#fff;
|
background:#fff;
|
||||||
border:1px solid #1e1e1e;
|
border:1px solid #1e1e1e;
|
||||||
|
@ -2400,7 +2399,6 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
|
||||||
}
|
}
|
||||||
|
|
||||||
.components-radio-control__input[type=radio]{
|
.components-radio-control__input[type=radio]{
|
||||||
-webkit-appearance:none;
|
|
||||||
appearance:none;
|
appearance:none;
|
||||||
border:1px solid #1e1e1e;
|
border:1px solid #1e1e1e;
|
||||||
border-radius:2px;
|
border-radius:2px;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -390,7 +390,6 @@ p+.components-button.is-tertiary{
|
||||||
}
|
}
|
||||||
|
|
||||||
.components-checkbox-control__input[type=checkbox]{
|
.components-checkbox-control__input[type=checkbox]{
|
||||||
-webkit-appearance:none;
|
|
||||||
appearance:none;
|
appearance:none;
|
||||||
background:#fff;
|
background:#fff;
|
||||||
border:1px solid #1e1e1e;
|
border:1px solid #1e1e1e;
|
||||||
|
@ -2400,7 +2399,6 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
|
||||||
}
|
}
|
||||||
|
|
||||||
.components-radio-control__input[type=radio]{
|
.components-radio-control__input[type=radio]{
|
||||||
-webkit-appearance:none;
|
|
||||||
appearance:none;
|
appearance:none;
|
||||||
border:1px solid #1e1e1e;
|
border:1px solid #1e1e1e;
|
||||||
border-radius:2px;
|
border-radius:2px;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -902,19 +902,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
||||||
margin-bottom:4px;
|
margin-bottom:4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entities-saved-states__post-meta{
|
|
||||||
align-items:center;
|
|
||||||
margin-right:24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.entities-saved-states__connections-icon{
|
|
||||||
flex-grow:0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.entities-saved-states__bindings-text{
|
|
||||||
flex-grow:1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.editor-error-boundary{
|
.editor-error-boundary{
|
||||||
box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,-.1px 11.5px 16.4px -.5px #00000026;
|
box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,-.1px 11.5px 16.4px -.5px #00000026;
|
||||||
margin:60px auto auto;
|
margin:60px auto auto;
|
||||||
|
@ -2148,7 +2135,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder{
|
||||||
}
|
}
|
||||||
|
|
||||||
.editor-resizable-editor__resize-handle{
|
.editor-resizable-editor__resize-handle{
|
||||||
-webkit-appearance:none;
|
|
||||||
appearance:none;
|
appearance:none;
|
||||||
background:none;
|
background:none;
|
||||||
border:0;
|
border:0;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -902,19 +902,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
||||||
margin-bottom:4px;
|
margin-bottom:4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entities-saved-states__post-meta{
|
|
||||||
align-items:center;
|
|
||||||
margin-left:24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.entities-saved-states__connections-icon{
|
|
||||||
flex-grow:0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.entities-saved-states__bindings-text{
|
|
||||||
flex-grow:1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.editor-error-boundary{
|
.editor-error-boundary{
|
||||||
box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,.1px 11.5px 16.4px -.5px #00000026;
|
box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,.1px 11.5px 16.4px -.5px #00000026;
|
||||||
margin:60px auto auto;
|
margin:60px auto auto;
|
||||||
|
@ -2148,7 +2135,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder{
|
||||||
}
|
}
|
||||||
|
|
||||||
.editor-resizable-editor__resize-handle{
|
.editor-resizable-editor__resize-handle{
|
||||||
-webkit-appearance:none;
|
|
||||||
appearance:none;
|
appearance:none;
|
||||||
background:none;
|
background:none;
|
||||||
border:0;
|
border:0;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -57,3 +57,16 @@
|
||||||
justify-content:center;
|
justify-content:center;
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.patterns-pattern-overrides-toolbar-indicator__popover .components-popover__content{
|
||||||
|
min-width:260px;
|
||||||
|
padding:16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.patterns-pattern-overrides-toolbar-indicator .patterns-pattern-overrides-toolbar-indicator-icon.has-colors svg{
|
||||||
|
fill:var(--wp-block-synced-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor-collapsible-block-toolbar .patterns-pattern-overrides-toolbar-indicator{
|
||||||
|
height:32px;
|
||||||
|
}
|
|
@ -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}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{position:relative}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;max-height:96px;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}}.pattern-overrides-control__allow-overrides-button{justify-content:center;width:100%}
|
: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}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{position:relative}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;max-height:96px;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}}.pattern-overrides-control__allow-overrides-button{justify-content:center;width:100%}.patterns-pattern-overrides-toolbar-indicator__popover .components-popover__content{min-width:260px;padding:16px}.patterns-pattern-overrides-toolbar-indicator .patterns-pattern-overrides-toolbar-indicator-icon.has-colors svg{fill:var(--wp-block-synced-color)}.editor-collapsible-block-toolbar .patterns-pattern-overrides-toolbar-indicator{height:32px}
|
|
@ -57,3 +57,16 @@
|
||||||
justify-content:center;
|
justify-content:center;
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.patterns-pattern-overrides-toolbar-indicator__popover .components-popover__content{
|
||||||
|
min-width:260px;
|
||||||
|
padding:16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.patterns-pattern-overrides-toolbar-indicator .patterns-pattern-overrides-toolbar-indicator-icon.has-colors svg{
|
||||||
|
fill:var(--wp-block-synced-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor-collapsible-block-toolbar .patterns-pattern-overrides-toolbar-indicator{
|
||||||
|
height:32px;
|
||||||
|
}
|
|
@ -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}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{position:relative}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;max-height:96px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}}.pattern-overrides-control__allow-overrides-button{justify-content:center;width:100%}
|
: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}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{position:relative}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;max-height:96px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}}.pattern-overrides-control__allow-overrides-button{justify-content:center;width:100%}.patterns-pattern-overrides-toolbar-indicator__popover .components-popover__content{min-width:260px;padding:16px}.patterns-pattern-overrides-toolbar-indicator .patterns-pattern-overrides-toolbar-indicator-icon.has-colors svg{fill:var(--wp-block-synced-color)}.editor-collapsible-block-toolbar .patterns-pattern-overrides-toolbar-indicator{height:32px}
|
|
@ -1515,7 +1515,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/block-directory');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/block-directory');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-list-item/index.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-list-item/index.js
|
||||||
/**
|
/**
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -10451,7 +10451,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/block-editor');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/block-editor');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/constants.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/constants.js
|
||||||
const STORE_NAME = 'core/block-editor';
|
const STORE_NAME = 'core/block-editor';
|
||||||
|
@ -12669,11 +12669,10 @@ function canInsertBlocks(state, clientIds, rootClientId = null) {
|
||||||
*
|
*
|
||||||
* @param {Object} state Editor state.
|
* @param {Object} state Editor state.
|
||||||
* @param {string} clientId The block client Id.
|
* @param {string} clientId The block client Id.
|
||||||
* @param {?string} rootClientId Optional root client ID of block list.
|
|
||||||
*
|
*
|
||||||
* @return {boolean} Whether the given block is allowed to be removed.
|
* @return {boolean} Whether the given block is allowed to be removed.
|
||||||
*/
|
*/
|
||||||
function canRemoveBlock(state, clientId, rootClientId = null) {
|
function canRemoveBlock(state, clientId) {
|
||||||
const attributes = getBlockAttributes(state, clientId);
|
const attributes = getBlockAttributes(state, clientId);
|
||||||
if (attributes === null) {
|
if (attributes === null) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -12681,6 +12680,7 @@ function canRemoveBlock(state, clientId, rootClientId = null) {
|
||||||
if (attributes.lock?.remove !== undefined) {
|
if (attributes.lock?.remove !== undefined) {
|
||||||
return !attributes.lock.remove;
|
return !attributes.lock.remove;
|
||||||
}
|
}
|
||||||
|
const rootClientId = getBlockRootClientId(state, clientId);
|
||||||
if (getTemplateLock(state, rootClientId)) {
|
if (getTemplateLock(state, rootClientId)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -12692,12 +12692,11 @@ function canRemoveBlock(state, clientId, rootClientId = null) {
|
||||||
*
|
*
|
||||||
* @param {Object} state Editor state.
|
* @param {Object} state Editor state.
|
||||||
* @param {string} clientIds The block client IDs to be removed.
|
* @param {string} clientIds The block client IDs to be removed.
|
||||||
* @param {?string} rootClientId Optional root client ID of block list.
|
|
||||||
*
|
*
|
||||||
* @return {boolean} Whether the given blocks are allowed to be removed.
|
* @return {boolean} Whether the given blocks are allowed to be removed.
|
||||||
*/
|
*/
|
||||||
function canRemoveBlocks(state, clientIds, rootClientId = null) {
|
function canRemoveBlocks(state, clientIds) {
|
||||||
return clientIds.every(clientId => canRemoveBlock(state, clientId, rootClientId));
|
return clientIds.every(clientId => canRemoveBlock(state, clientId));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -12705,11 +12704,10 @@ function canRemoveBlocks(state, clientIds, rootClientId = null) {
|
||||||
*
|
*
|
||||||
* @param {Object} state Editor state.
|
* @param {Object} state Editor state.
|
||||||
* @param {string} clientId The block client Id.
|
* @param {string} clientId The block client Id.
|
||||||
* @param {?string} rootClientId Optional root client ID of block list.
|
|
||||||
*
|
*
|
||||||
* @return {boolean | undefined} Whether the given block is allowed to be moved.
|
* @return {boolean | undefined} Whether the given block is allowed to be moved.
|
||||||
*/
|
*/
|
||||||
function canMoveBlock(state, clientId, rootClientId = null) {
|
function canMoveBlock(state, clientId) {
|
||||||
const attributes = getBlockAttributes(state, clientId);
|
const attributes = getBlockAttributes(state, clientId);
|
||||||
if (attributes === null) {
|
if (attributes === null) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -12717,6 +12715,7 @@ function canMoveBlock(state, clientId, rootClientId = null) {
|
||||||
if (attributes.lock?.move !== undefined) {
|
if (attributes.lock?.move !== undefined) {
|
||||||
return !attributes.lock.move;
|
return !attributes.lock.move;
|
||||||
}
|
}
|
||||||
|
const rootClientId = getBlockRootClientId(state, clientId);
|
||||||
if (getTemplateLock(state, rootClientId) === 'all') {
|
if (getTemplateLock(state, rootClientId) === 'all') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -12728,12 +12727,11 @@ function canMoveBlock(state, clientId, rootClientId = null) {
|
||||||
*
|
*
|
||||||
* @param {Object} state Editor state.
|
* @param {Object} state Editor state.
|
||||||
* @param {string} clientIds The block client IDs to be moved.
|
* @param {string} clientIds The block client IDs to be moved.
|
||||||
* @param {?string} rootClientId Optional root client ID of block list.
|
|
||||||
*
|
*
|
||||||
* @return {boolean} Whether the given blocks are allowed to be moved.
|
* @return {boolean} Whether the given blocks are allowed to be moved.
|
||||||
*/
|
*/
|
||||||
function canMoveBlocks(state, clientIds, rootClientId = null) {
|
function canMoveBlocks(state, clientIds) {
|
||||||
return clientIds.every(clientId => canMoveBlock(state, clientId, rootClientId));
|
return clientIds.every(clientId => canMoveBlock(state, clientId));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13730,7 +13728,7 @@ const isGroupable = (0,external_wp_data_namespaceObject.createRegistrySelector)(
|
||||||
const rootClientId = _clientIds?.length ? getBlockRootClientId(state, _clientIds[0]) : undefined;
|
const rootClientId = _clientIds?.length ? getBlockRootClientId(state, _clientIds[0]) : undefined;
|
||||||
const groupingBlockAvailable = canInsertBlockType(state, groupingBlockName, rootClientId);
|
const groupingBlockAvailable = canInsertBlockType(state, groupingBlockName, rootClientId);
|
||||||
const _isGroupable = groupingBlockAvailable && _clientIds.length;
|
const _isGroupable = groupingBlockAvailable && _clientIds.length;
|
||||||
return _isGroupable && canRemoveBlocks(state, _clientIds, rootClientId);
|
return _isGroupable && canRemoveBlocks(state, _clientIds);
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13897,8 +13895,7 @@ const privateRemoveBlocks = (clientIds, selectPrevious = true, forceRemove = fal
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
clientIds = castArray(clientIds);
|
clientIds = castArray(clientIds);
|
||||||
const rootClientId = select.getBlockRootClientId(clientIds[0]);
|
const canRemoveBlocks = select.canRemoveBlocks(clientIds);
|
||||||
const canRemoveBlocks = select.canRemoveBlocks(clientIds, rootClientId);
|
|
||||||
if (!canRemoveBlocks) {
|
if (!canRemoveBlocks) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -14626,7 +14623,7 @@ const createOnMove = type => (clientIds, rootClientId) => ({
|
||||||
dispatch
|
dispatch
|
||||||
}) => {
|
}) => {
|
||||||
// If one of the blocks is locked or the parent is locked, we cannot move any block.
|
// If one of the blocks is locked or the parent is locked, we cannot move any block.
|
||||||
const canMoveBlocks = select.canMoveBlocks(clientIds, rootClientId);
|
const canMoveBlocks = select.canMoveBlocks(clientIds);
|
||||||
if (!canMoveBlocks) {
|
if (!canMoveBlocks) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -14651,7 +14648,7 @@ const moveBlocksToPosition = (clientIds, fromRootClientId = '', toRootClientId =
|
||||||
select,
|
select,
|
||||||
dispatch
|
dispatch
|
||||||
}) => {
|
}) => {
|
||||||
const canMoveBlocks = select.canMoveBlocks(clientIds, fromRootClientId);
|
const canMoveBlocks = select.canMoveBlocks(clientIds);
|
||||||
|
|
||||||
// If one of the blocks is locked or the parent is locked, we cannot move any block.
|
// If one of the blocks is locked or the parent is locked, we cannot move any block.
|
||||||
if (!canMoveBlocks) {
|
if (!canMoveBlocks) {
|
||||||
|
@ -14660,7 +14657,7 @@ const moveBlocksToPosition = (clientIds, fromRootClientId = '', toRootClientId =
|
||||||
|
|
||||||
// If moving inside the same root block the move is always possible.
|
// If moving inside the same root block the move is always possible.
|
||||||
if (fromRootClientId !== toRootClientId) {
|
if (fromRootClientId !== toRootClientId) {
|
||||||
const canRemoveBlocks = select.canRemoveBlocks(clientIds, fromRootClientId);
|
const canRemoveBlocks = select.canRemoveBlocks(clientIds);
|
||||||
|
|
||||||
// If we're moving to another block, it means we're deleting blocks from
|
// If we're moving to another block, it means we're deleting blocks from
|
||||||
// the original block, so we need to check if removing is possible.
|
// the original block, so we need to check if removing is possible.
|
||||||
|
@ -15074,7 +15071,7 @@ const __unstableSplitSelection = (blocks = []) => ({
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const tail = {
|
let tail = {
|
||||||
...blockB,
|
...blockB,
|
||||||
// Only preserve the original client ID if the end is different.
|
// Only preserve the original client ID if the end is different.
|
||||||
clientId: blockA.clientId === blockB.clientId ? (0,external_wp_blocks_namespaceObject.createBlock)(blockB.name).clientId : blockB.clientId,
|
clientId: blockA.clientId === blockB.clientId ? (0,external_wp_blocks_namespaceObject.createBlock)(blockB.name).clientId : blockB.clientId,
|
||||||
|
@ -15085,6 +15082,22 @@ const __unstableSplitSelection = (blocks = []) => ({
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// When splitting a block, attempt to convert the tail block to the
|
||||||
|
// default block type. For example, when splitting a heading block, the
|
||||||
|
// tail block will be converted to a paragraph block. Note that for
|
||||||
|
// blocks such as a list item and button, this will be skipped because
|
||||||
|
// the default block type cannot be inserted.
|
||||||
|
const defaultBlockName = (0,external_wp_blocks_namespaceObject.getDefaultBlockName)();
|
||||||
|
if (
|
||||||
|
// A block is only split when the selection is within the same
|
||||||
|
// block.
|
||||||
|
blockA.clientId === blockB.clientId && defaultBlockName && tail.name !== defaultBlockName && select.canInsertBlockType(defaultBlockName, anchorRootClientId)) {
|
||||||
|
const switched = (0,external_wp_blocks_namespaceObject.switchToBlockType)(tail, defaultBlockName);
|
||||||
|
if (switched?.length === 1) {
|
||||||
|
tail = switched[0];
|
||||||
|
}
|
||||||
|
}
|
||||||
if (!blocks.length) {
|
if (!blocks.length) {
|
||||||
dispatch.replaceBlocks(select.getSelectedBlockClientIds(), [head, tail]);
|
dispatch.replaceBlocks(select.getSelectedBlockClientIds(), [head, tail]);
|
||||||
return;
|
return;
|
||||||
|
@ -16992,7 +17005,7 @@ const useGlobalStylesReset = () => {
|
||||||
setUserConfig
|
setUserConfig
|
||||||
} = (0,external_wp_element_namespaceObject.useContext)(GlobalStylesContext);
|
} = (0,external_wp_element_namespaceObject.useContext)(GlobalStylesContext);
|
||||||
const canReset = !!config && !es6_default()(config, EMPTY_CONFIG);
|
const canReset = !!config && !es6_default()(config, EMPTY_CONFIG);
|
||||||
return [canReset, (0,external_wp_element_namespaceObject.useCallback)(() => setUserConfig(() => EMPTY_CONFIG), [setUserConfig])];
|
return [canReset, (0,external_wp_element_namespaceObject.useCallback)(() => setUserConfig(EMPTY_CONFIG), [setUserConfig])];
|
||||||
};
|
};
|
||||||
function useGlobalSetting(propertyPath, blockName, source = 'all') {
|
function useGlobalSetting(propertyPath, blockName, source = 'all') {
|
||||||
const {
|
const {
|
||||||
|
@ -17591,7 +17604,8 @@ function createBlockListBlockFilter(features) {
|
||||||
const {
|
const {
|
||||||
hasSupport,
|
hasSupport,
|
||||||
attributeKeys = [],
|
attributeKeys = [],
|
||||||
useBlockProps
|
useBlockProps,
|
||||||
|
isMatch
|
||||||
} = feature;
|
} = feature;
|
||||||
const neededProps = {};
|
const neededProps = {};
|
||||||
for (const key of attributeKeys) {
|
for (const key of attributeKeys) {
|
||||||
|
@ -17602,7 +17616,7 @@ function createBlockListBlockFilter(features) {
|
||||||
if (
|
if (
|
||||||
// Skip rendering if none of the needed attributes are
|
// Skip rendering if none of the needed attributes are
|
||||||
// set.
|
// set.
|
||||||
!Object.keys(neededProps).length || !hasSupport(props.name)) {
|
!Object.keys(neededProps).length || !hasSupport(props.name) || isMatch && !isMatch(neededProps)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockPropsPure
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockPropsPure
|
||||||
|
@ -30529,10 +30543,10 @@ function useSpacingSizes() {
|
||||||
size: 0
|
size: 0
|
||||||
}, ...customSizes, ...themeSizes, ...defaultSizes];
|
}, ...customSizes, ...themeSizes, ...defaultSizes];
|
||||||
|
|
||||||
// Only sort if more than one origin has presets defined in order to
|
// Using numeric slugs opts-in to sorting by slug.
|
||||||
// preserve order for themes that don't include default presets and
|
if (sizes.every(({
|
||||||
// want a custom order.
|
slug
|
||||||
if ((customSizes.length && 1) + (themeSizes.length && 1) + (defaultSizes.length && 1) > 1) {
|
}) => /^[0-9]/.test(slug))) {
|
||||||
sizes.sort((a, b) => compare(a.slug, b.slug));
|
sizes.sort((a, b) => compare(a.slug, b.slug));
|
||||||
}
|
}
|
||||||
return sizes.length > RANGE_CONTROL_MAX_SIZE ? [{
|
return sizes.length > RANGE_CONTROL_MAX_SIZE ? [{
|
||||||
|
@ -34118,6 +34132,9 @@ const getNodesWithStyles = (tree, blockSelectors) => {
|
||||||
Object.entries(node.variations).forEach(([variationName, variation]) => {
|
Object.entries(node.variations).forEach(([variationName, variation]) => {
|
||||||
var _variation$elements, _variation$blocks;
|
var _variation$elements, _variation$blocks;
|
||||||
variations[variationName] = pickStyleKeys(variation);
|
variations[variationName] = pickStyleKeys(variation);
|
||||||
|
if (variation?.css) {
|
||||||
|
variations[variationName].css = variation.css;
|
||||||
|
}
|
||||||
const variationSelector = blockSelectors[blockName].styleVariationSelectors?.[variationName];
|
const variationSelector = blockSelectors[blockName].styleVariationSelectors?.[variationName];
|
||||||
|
|
||||||
// Process the variation's inner element styles.
|
// Process the variation's inner element styles.
|
||||||
|
@ -34139,13 +34156,17 @@ const getNodesWithStyles = (tree, blockSelectors) => {
|
||||||
const variationBlockSelector = scopeSelector(variationSelector, blockSelectors[variationBlockName].selector);
|
const variationBlockSelector = scopeSelector(variationSelector, blockSelectors[variationBlockName].selector);
|
||||||
const variationDuotoneSelector = scopeSelector(variationSelector, blockSelectors[variationBlockName].duotoneSelector);
|
const variationDuotoneSelector = scopeSelector(variationSelector, blockSelectors[variationBlockName].duotoneSelector);
|
||||||
const variationFeatureSelectors = scopeFeatureSelectors(variationSelector, blockSelectors[variationBlockName].featureSelectors);
|
const variationFeatureSelectors = scopeFeatureSelectors(variationSelector, blockSelectors[variationBlockName].featureSelectors);
|
||||||
|
const variationBlockStyleNodes = pickStyleKeys(variationBlockStyles);
|
||||||
|
if (variationBlockStyles?.css) {
|
||||||
|
variationBlockStyleNodes.css = variationBlockStyles.css;
|
||||||
|
}
|
||||||
nodes.push({
|
nodes.push({
|
||||||
selector: variationBlockSelector,
|
selector: variationBlockSelector,
|
||||||
duotoneSelector: variationDuotoneSelector,
|
duotoneSelector: variationDuotoneSelector,
|
||||||
featureSelectors: variationFeatureSelectors,
|
featureSelectors: variationFeatureSelectors,
|
||||||
fallbackGapValue: blockSelectors[variationBlockName].fallbackGapValue,
|
fallbackGapValue: blockSelectors[variationBlockName].fallbackGapValue,
|
||||||
hasLayoutSupport: blockSelectors[variationBlockName].hasLayoutSupport,
|
hasLayoutSupport: blockSelectors[variationBlockName].hasLayoutSupport,
|
||||||
styles: pickStyleKeys(variationBlockStyles)
|
styles: variationBlockStyleNodes
|
||||||
});
|
});
|
||||||
|
|
||||||
// Process element styles for the inner blocks
|
// Process element styles for the inner blocks
|
||||||
|
@ -34353,6 +34374,9 @@ const toStyles = (tree, blockSelectors, hasBlockGapSupport, hasFallbackGapSuppor
|
||||||
if (styleDeclarations?.length) {
|
if (styleDeclarations?.length) {
|
||||||
ruleset += `:root :where(${selector}){${styleDeclarations.join(';')};}`;
|
ruleset += `:root :where(${selector}){${styleDeclarations.join(';')};}`;
|
||||||
}
|
}
|
||||||
|
if (styles?.css) {
|
||||||
|
ruleset += processCSSNesting(styles.css, `:root :where(${selector})`);
|
||||||
|
}
|
||||||
if (styleVariationSelectors) {
|
if (styleVariationSelectors) {
|
||||||
Object.entries(styleVariationSelectors).forEach(([styleVariationName, styleVariationSelector]) => {
|
Object.entries(styleVariationSelectors).forEach(([styleVariationName, styleVariationSelector]) => {
|
||||||
const styleVariations = styles?.variations?.[styleVariationName];
|
const styleVariations = styles?.variations?.[styleVariationName];
|
||||||
|
@ -34374,6 +34398,9 @@ const toStyles = (tree, blockSelectors, hasBlockGapSupport, hasFallbackGapSuppor
|
||||||
if (styleVariationDeclarations.length) {
|
if (styleVariationDeclarations.length) {
|
||||||
ruleset += `:root :where(${styleVariationSelector}){${styleVariationDeclarations.join(';')};}`;
|
ruleset += `:root :where(${styleVariationSelector}){${styleVariationDeclarations.join(';')};}`;
|
||||||
}
|
}
|
||||||
|
if (styleVariations?.css) {
|
||||||
|
ruleset += processCSSNesting(styleVariations.css, `:root :where(${styleVariationSelector})`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -34644,6 +34671,21 @@ function useGlobalStylesOutput(disableRootPadding = false) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const VARIATION_PREFIX = 'is-style-';
|
||||||
|
function getVariationMatches(className) {
|
||||||
|
if (!className) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
return className.split(/\s+/).reduce((matches, name) => {
|
||||||
|
if (name.startsWith(VARIATION_PREFIX)) {
|
||||||
|
const match = name.slice(VARIATION_PREFIX.length);
|
||||||
|
if (match !== 'default') {
|
||||||
|
matches.push(match);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return matches;
|
||||||
|
}, []);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the first block style variation that has been registered from the class string.
|
* Get the first block style variation that has been registered from the class string.
|
||||||
|
@ -34656,12 +34698,11 @@ function useGlobalStylesOutput(disableRootPadding = false) {
|
||||||
function getVariationNameFromClass(className, registeredStyles = []) {
|
function getVariationNameFromClass(className, registeredStyles = []) {
|
||||||
// The global flag affects how capturing groups work in JS. So the regex
|
// The global flag affects how capturing groups work in JS. So the regex
|
||||||
// below will only return full CSS classes not just the variation name.
|
// below will only return full CSS classes not just the variation name.
|
||||||
const matches = className?.match(/\bis-style-(?!default)(\S+)\b/g);
|
const matches = getVariationMatches(className);
|
||||||
if (!matches) {
|
if (!matches) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
for (const variationClass of matches) {
|
for (const variation of matches) {
|
||||||
const variation = variationClass.substring(9); // Remove 'is-style-' prefix.
|
|
||||||
if (registeredStyles.some(style => style.name === variation)) {
|
if (registeredStyles.some(style => style.name === variation)) {
|
||||||
return variation;
|
return variation;
|
||||||
}
|
}
|
||||||
|
@ -34720,7 +34761,7 @@ function block_style_variation_useBlockProps({
|
||||||
} = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store);
|
} = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store);
|
||||||
const registeredStyles = getBlockStyles(name);
|
const registeredStyles = getBlockStyles(name);
|
||||||
const variation = getVariationNameFromClass(className, registeredStyles);
|
const variation = getVariationNameFromClass(className, registeredStyles);
|
||||||
const variationClass = `is-style-${variation}-${clientId}`;
|
const variationClass = `${VARIATION_PREFIX}${variation}-${clientId}`;
|
||||||
const {
|
const {
|
||||||
settings,
|
settings,
|
||||||
styles
|
styles
|
||||||
|
@ -34763,6 +34804,9 @@ function block_style_variation_useBlockProps({
|
||||||
/* harmony default export */ const block_style_variation = ({
|
/* harmony default export */ const block_style_variation = ({
|
||||||
hasSupport: () => true,
|
hasSupport: () => true,
|
||||||
attributeKeys: ['className'],
|
attributeKeys: ['className'],
|
||||||
|
isMatch: ({
|
||||||
|
className
|
||||||
|
}) => getVariationMatches(className).length > 0,
|
||||||
useBlockProps: block_style_variation_useBlockProps
|
useBlockProps: block_style_variation_useBlockProps
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -35688,13 +35732,11 @@ function useBlockLock(clientId) {
|
||||||
canRemoveBlock,
|
canRemoveBlock,
|
||||||
canLockBlockType,
|
canLockBlockType,
|
||||||
getBlockName,
|
getBlockName,
|
||||||
getBlockRootClientId,
|
|
||||||
getTemplateLock
|
getTemplateLock
|
||||||
} = select(store);
|
} = select(store);
|
||||||
const rootClientId = getBlockRootClientId(clientId);
|
|
||||||
const canEdit = canEditBlock(clientId);
|
const canEdit = canEditBlock(clientId);
|
||||||
const canMove = canMoveBlock(clientId, rootClientId);
|
const canMove = canMoveBlock(clientId);
|
||||||
const canRemove = canRemoveBlock(clientId, rootClientId);
|
const canRemove = canRemoveBlock(clientId);
|
||||||
return {
|
return {
|
||||||
canEdit,
|
canEdit,
|
||||||
canMove,
|
canMove,
|
||||||
|
@ -36809,6 +36851,7 @@ const withBlockBindingSupport = (0,external_wp_compose_namespaceObject.createHig
|
||||||
clientId,
|
clientId,
|
||||||
context
|
context
|
||||||
} = props;
|
} = props;
|
||||||
|
const hasPatternOverridesDefaultBinding = props.attributes.metadata?.bindings?.[DEFAULT_ATTRIBUTE]?.source === 'core/pattern-overrides';
|
||||||
const bindings = (0,external_wp_element_namespaceObject.useMemo)(() => replacePatternOverrideDefaultBindings(name, props.attributes.metadata?.bindings), [props.attributes.metadata?.bindings, name]);
|
const bindings = (0,external_wp_element_namespaceObject.useMemo)(() => replacePatternOverrideDefaultBindings(name, props.attributes.metadata?.bindings), [props.attributes.metadata?.bindings, name]);
|
||||||
const boundAttributes = (0,external_wp_data_namespaceObject.useSelect)(() => {
|
const boundAttributes = (0,external_wp_data_namespaceObject.useSelect)(() => {
|
||||||
if (!bindings) {
|
if (!bindings) {
|
||||||
|
@ -36892,11 +36935,15 @@ const withBlockBindingSupport = (0,external_wp_compose_namespaceObject.createHig
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Object.keys(keptAttributes).length) {
|
|
||||||
|
// Only apply normal attribute updates to blocks
|
||||||
|
// that have partial bindings. Currently this is
|
||||||
|
// only skipped for pattern overrides sources.
|
||||||
|
if (!hasPatternOverridesDefaultBinding && Object.keys(keptAttributes).length) {
|
||||||
setAttributes(keptAttributes);
|
setAttributes(keptAttributes);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, [registry, bindings, name, clientId, context, setAttributes, sources]);
|
}, [registry, bindings, name, clientId, context, setAttributes, sources, hasPatternOverridesDefaultBinding]);
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
||||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, {
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, {
|
||||||
...props,
|
...props,
|
||||||
|
@ -36980,8 +37027,10 @@ const BlockBindingsPanel = ({
|
||||||
}
|
}
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls, {
|
||||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
|
||||||
title: (0,external_wp_i18n_namespaceObject.__)('Bindings'),
|
title: (0,external_wp_i18n_namespaceObject.__)('Attributes'),
|
||||||
className: "components-panel__block-bindings-panel",
|
className: "components-panel__block-bindings-panel",
|
||||||
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl, {
|
||||||
|
help: (0,external_wp_i18n_namespaceObject.__)('Attributes connected to various sources.'),
|
||||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
|
||||||
isBordered: true,
|
isBordered: true,
|
||||||
isSeparated: true,
|
isSeparated: true,
|
||||||
|
@ -37000,6 +37049,7 @@ const BlockBindingsPanel = ({
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
})
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
/* harmony default export */ const block_bindings = ({
|
/* harmony default export */ const block_bindings = ({
|
||||||
|
@ -40740,8 +40790,8 @@ function BlockListBlockProvider(props) {
|
||||||
return previewContext;
|
return previewContext;
|
||||||
}
|
}
|
||||||
const _isSelected = isBlockSelected(clientId);
|
const _isSelected = isBlockSelected(clientId);
|
||||||
const canRemove = canRemoveBlock(clientId, rootClientId);
|
const canRemove = canRemoveBlock(clientId);
|
||||||
const canMove = canMoveBlock(clientId, rootClientId);
|
const canMove = canMoveBlock(clientId);
|
||||||
const match = getActiveBlockVariation(blockName, attributes);
|
const match = getActiveBlockVariation(blockName, attributes);
|
||||||
const isMultiSelected = isBlockMultiSelected(clientId);
|
const isMultiSelected = isBlockMultiSelected(clientId);
|
||||||
const checkDeep = true;
|
const checkDeep = true;
|
||||||
|
@ -48785,7 +48835,9 @@ function useInBetweenInserter() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
function onMouseMove(event) {
|
function onMouseMove(event) {
|
||||||
if (openRef.current) {
|
// openRef is the reference to the insertion point between blocks.
|
||||||
|
// If the reference is not set or the insertion point is already open, return.
|
||||||
|
if (openRef === undefined || openRef.current) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50997,7 +51049,7 @@ const BlockDraggable = ({
|
||||||
const variation = getActiveBlockVariation(blockName, getBlockAttributes(clientIds[0]));
|
const variation = getActiveBlockVariation(blockName, getBlockAttributes(clientIds[0]));
|
||||||
return {
|
return {
|
||||||
srcRootClientId: rootClientId,
|
srcRootClientId: rootClientId,
|
||||||
isDraggable: canMoveBlocks(clientIds, rootClientId),
|
isDraggable: canMoveBlocks(clientIds),
|
||||||
icon: variation?.icon || _getBlockType(blockName)?.icon,
|
icon: variation?.icon || _getBlockType(blockName)?.icon,
|
||||||
visibleInserter: isBlockInsertionPointVisible(),
|
visibleInserter: isBlockInsertionPointVisible(),
|
||||||
getBlockType: _getBlockType
|
getBlockType: _getBlockType
|
||||||
|
@ -51573,7 +51625,7 @@ function BlockMover({
|
||||||
const lastIndex = getBlockIndex(normalizedClientIds[normalizedClientIds.length - 1]);
|
const lastIndex = getBlockIndex(normalizedClientIds[normalizedClientIds.length - 1]);
|
||||||
const blockOrder = getBlockOrder(_rootClientId);
|
const blockOrder = getBlockOrder(_rootClientId);
|
||||||
return {
|
return {
|
||||||
canMove: canMoveBlocks(clientIds, _rootClientId),
|
canMove: canMoveBlocks(clientIds),
|
||||||
rootClientId: _rootClientId,
|
rootClientId: _rootClientId,
|
||||||
isFirst: firstIndex === 0,
|
isFirst: firstIndex === 0,
|
||||||
isLast: lastIndex === blockOrder.length - 1,
|
isLast: lastIndex === blockOrder.length - 1,
|
||||||
|
@ -51951,7 +52003,6 @@ function useBlockVariationTransforms({
|
||||||
blockVariationTransformations
|
blockVariationTransformations
|
||||||
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||||
const {
|
const {
|
||||||
getBlockRootClientId,
|
|
||||||
getBlockAttributes,
|
getBlockAttributes,
|
||||||
canRemoveBlocks
|
canRemoveBlocks
|
||||||
} = select(store);
|
} = select(store);
|
||||||
|
@ -51959,8 +52010,7 @@ function useBlockVariationTransforms({
|
||||||
getActiveBlockVariation,
|
getActiveBlockVariation,
|
||||||
getBlockVariations
|
getBlockVariations
|
||||||
} = select(external_wp_blocks_namespaceObject.store);
|
} = select(external_wp_blocks_namespaceObject.store);
|
||||||
const rootClientId = getBlockRootClientId(Array.isArray(clientIds) ? clientIds[0] : clientIds);
|
const canRemove = canRemoveBlocks(clientIds);
|
||||||
const canRemove = canRemoveBlocks(clientIds, rootClientId);
|
|
||||||
// Only handle single selected blocks for now.
|
// Only handle single selected blocks for now.
|
||||||
if (blocks.length !== 1 || !canRemove) {
|
if (blocks.length !== 1 || !canRemove) {
|
||||||
return block_variation_transformations_EMPTY_OBJECT;
|
return block_variation_transformations_EMPTY_OBJECT;
|
||||||
|
@ -52742,7 +52792,8 @@ function BlockSwitcherDropdownMenuContents({
|
||||||
onClose,
|
onClose,
|
||||||
clientIds,
|
clientIds,
|
||||||
hasBlockStyles,
|
hasBlockStyles,
|
||||||
canRemove
|
canRemove,
|
||||||
|
isUsingBindings
|
||||||
}) {
|
}) {
|
||||||
const {
|
const {
|
||||||
replaceBlocks,
|
replaceBlocks,
|
||||||
|
@ -52813,6 +52864,7 @@ function BlockSwitcherDropdownMenuContents({
|
||||||
children: (0,external_wp_i18n_namespaceObject.__)('No transforms.')
|
children: (0,external_wp_i18n_namespaceObject.__)('No transforms.')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
const connectedBlockDescription = isSingleBlock ? (0,external_wp_i18n_namespaceObject._x)('This block is connected.', 'block toolbar button label and description') : (0,external_wp_i18n_namespaceObject._x)('These blocks are connected.', 'block toolbar button label and description');
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
||||||
className: "block-editor-block-switcher__container",
|
className: "block-editor-block-switcher__container",
|
||||||
children: [hasPatternTransformation && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pattern_transformations_menu, {
|
children: [hasPatternTransformation && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pattern_transformations_menu, {
|
||||||
|
@ -52838,12 +52890,18 @@ function BlockSwitcherDropdownMenuContents({
|
||||||
}), hasBlockStyles && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockStylesMenu, {
|
}), hasBlockStyles && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockStylesMenu, {
|
||||||
hoveredBlock: blocks[0],
|
hoveredBlock: blocks[0],
|
||||||
onSwitch: onClose
|
onSwitch: onClose
|
||||||
|
}), isUsingBindings && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
|
||||||
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
|
||||||
|
className: "block-editor-block-switcher__binding-indicator",
|
||||||
|
children: connectedBlockDescription
|
||||||
|
})
|
||||||
})]
|
})]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const BlockSwitcher = ({
|
const BlockSwitcher = ({
|
||||||
clientIds,
|
clientIds,
|
||||||
disabled
|
disabled,
|
||||||
|
isUsingBindings
|
||||||
}) => {
|
}) => {
|
||||||
const {
|
const {
|
||||||
canRemove,
|
canRemove,
|
||||||
|
@ -52854,7 +52912,6 @@ const BlockSwitcher = ({
|
||||||
isTemplate
|
isTemplate
|
||||||
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||||
const {
|
const {
|
||||||
getBlockRootClientId,
|
|
||||||
getBlocksByClientId,
|
getBlocksByClientId,
|
||||||
getBlockAttributes,
|
getBlockAttributes,
|
||||||
canRemoveBlocks
|
canRemoveBlocks
|
||||||
|
@ -52870,7 +52927,6 @@ const BlockSwitcher = ({
|
||||||
invalidBlocks: true
|
invalidBlocks: true
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const rootClientId = getBlockRootClientId(Array.isArray(clientIds) ? clientIds[0] : clientIds);
|
|
||||||
const [{
|
const [{
|
||||||
name: firstBlockName
|
name: firstBlockName
|
||||||
}] = _blocks;
|
}] = _blocks;
|
||||||
|
@ -52890,7 +52946,7 @@ const BlockSwitcher = ({
|
||||||
_icon = isSelectionOfSameType ? blockType.icon : library_copy;
|
_icon = isSelectionOfSameType ? blockType.icon : library_copy;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
canRemove: canRemoveBlocks(clientIds, rootClientId),
|
canRemove: canRemoveBlocks(clientIds),
|
||||||
hasBlockStyles: _isSingleBlockSelected && !!getBlockStyles(firstBlockName)?.length,
|
hasBlockStyles: _isSingleBlockSelected && !!getBlockStyles(firstBlockName)?.length,
|
||||||
icon: _icon,
|
icon: _icon,
|
||||||
isReusable: _isSingleBlockSelected && (0,external_wp_blocks_namespaceObject.isReusableBlock)(_blocks[0]),
|
isReusable: _isSingleBlockSelected && (0,external_wp_blocks_namespaceObject.isReusableBlock)(_blocks[0]),
|
||||||
|
@ -52959,7 +53015,8 @@ const BlockSwitcher = ({
|
||||||
onClose: onClose,
|
onClose: onClose,
|
||||||
clientIds: clientIds,
|
clientIds: clientIds,
|
||||||
hasBlockStyles: hasBlockStyles,
|
hasBlockStyles: hasBlockStyles,
|
||||||
canRemove: canRemove
|
canRemove: canRemove,
|
||||||
|
isUsingBindings: isUsingBindings
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -53450,18 +53507,16 @@ function BlockActions({
|
||||||
getBlocksByClientId,
|
getBlocksByClientId,
|
||||||
getDirectInsertBlock,
|
getDirectInsertBlock,
|
||||||
canMoveBlocks,
|
canMoveBlocks,
|
||||||
canRemoveBlocks,
|
canRemoveBlocks
|
||||||
getBlockEditingMode
|
|
||||||
} = select(store);
|
} = select(store);
|
||||||
const blocks = getBlocksByClientId(clientIds);
|
const blocks = getBlocksByClientId(clientIds);
|
||||||
const rootClientId = getBlockRootClientId(clientIds[0]);
|
const rootClientId = getBlockRootClientId(clientIds[0]);
|
||||||
const rootBlockEditingMode = getBlockEditingMode(rootClientId);
|
|
||||||
const canInsertDefaultBlock = canInsertBlockType(getDefaultBlockName(), rootClientId);
|
const canInsertDefaultBlock = canInsertBlockType(getDefaultBlockName(), rootClientId);
|
||||||
const directInsertBlock = rootClientId ? getDirectInsertBlock(rootClientId) : null;
|
const directInsertBlock = rootClientId ? getDirectInsertBlock(rootClientId) : null;
|
||||||
return {
|
return {
|
||||||
canMove: canMoveBlocks(clientIds, rootClientId),
|
canMove: canMoveBlocks(clientIds),
|
||||||
canRemove: canRemoveBlocks(clientIds, rootClientId),
|
canRemove: canRemoveBlocks(clientIds),
|
||||||
canInsertBlock: (canInsertDefaultBlock || !!directInsertBlock) && rootBlockEditingMode === 'default',
|
canInsertBlock: canInsertDefaultBlock || !!directInsertBlock,
|
||||||
canCopyStyles: blocks.every(block => {
|
canCopyStyles: blocks.every(block => {
|
||||||
return !!block && ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'color') || (0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'typography'));
|
return !!block && ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'color') || (0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'typography'));
|
||||||
}),
|
}),
|
||||||
|
@ -53847,7 +53902,7 @@ function BlockSettingsDropdown({
|
||||||
onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onDuplicate, updateSelectionAfterDuplicate),
|
onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onDuplicate, updateSelectionAfterDuplicate),
|
||||||
shortcut: shortcuts.duplicate,
|
shortcut: shortcuts.duplicate,
|
||||||
children: (0,external_wp_i18n_namespaceObject.__)('Duplicate')
|
children: (0,external_wp_i18n_namespaceObject.__)('Duplicate')
|
||||||
}), canInsertBlock && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
}), canInsertBlock && !isContentOnly && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
||||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
|
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
|
||||||
onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onInsertBefore),
|
onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onInsertBefore),
|
||||||
shortcut: shortcuts.insertBefore,
|
shortcut: shortcuts.insertBefore,
|
||||||
|
@ -54519,106 +54574,6 @@ function Shuffle({
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-bindings-toolbar-indicator/index.js
|
|
||||||
/**
|
|
||||||
* WordPress dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Internal dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function BlockBindingsToolbarIndicator({
|
|
||||||
clientIds
|
|
||||||
}) {
|
|
||||||
const isSingleBlockSelected = clientIds.length === 1;
|
|
||||||
const {
|
|
||||||
icon,
|
|
||||||
firstBlockName,
|
|
||||||
isConnectedToPatternOverrides
|
|
||||||
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
|
||||||
const {
|
|
||||||
getBlockAttributes,
|
|
||||||
getBlockNamesByClientId,
|
|
||||||
getBlocksByClientId
|
|
||||||
} = select(store);
|
|
||||||
const {
|
|
||||||
getBlockType,
|
|
||||||
getActiveBlockVariation
|
|
||||||
} = select(external_wp_blocks_namespaceObject.store);
|
|
||||||
const blockTypeNames = getBlockNamesByClientId(clientIds);
|
|
||||||
const _firstBlockTypeName = blockTypeNames[0];
|
|
||||||
const firstBlockType = getBlockType(_firstBlockTypeName);
|
|
||||||
let _icon;
|
|
||||||
if (isSingleBlockSelected) {
|
|
||||||
const match = getActiveBlockVariation(_firstBlockTypeName, getBlockAttributes(clientIds[0]));
|
|
||||||
// Take into account active block variations.
|
|
||||||
_icon = match?.icon || firstBlockType.icon;
|
|
||||||
} else {
|
|
||||||
const isSelectionOfSameType = new Set(blockTypeNames).size === 1;
|
|
||||||
// When selection consists of blocks of multiple types, display an
|
|
||||||
// appropriate icon to communicate the non-uniformity.
|
|
||||||
_icon = isSelectionOfSameType ? firstBlockType.icon : library_copy;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
icon: _icon,
|
|
||||||
firstBlockName: getBlockAttributes(clientIds[0]).metadata.name,
|
|
||||||
isConnectedToPatternOverrides: getBlocksByClientId(clientIds).some(block => Object.values(block?.attributes?.metadata?.bindings || {}).some(binding => binding.source === 'core/pattern-overrides'))
|
|
||||||
};
|
|
||||||
}, [clientIds, isSingleBlockSelected]);
|
|
||||||
const firstBlockTitle = useBlockDisplayTitle({
|
|
||||||
clientId: clientIds[0],
|
|
||||||
maximumLength: 35
|
|
||||||
});
|
|
||||||
let blockDescription = isSingleBlockSelected ? (0,external_wp_i18n_namespaceObject._x)('This block is connected.', 'block toolbar button label and description') : (0,external_wp_i18n_namespaceObject._x)('These blocks are connected.', 'block toolbar button label and description');
|
|
||||||
if (isConnectedToPatternOverrides && firstBlockName) {
|
|
||||||
blockDescription = isSingleBlockSelected ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1s: The block type's name; %2s: The block's user-provided name (the same as the override name). */
|
|
||||||
(0,external_wp_i18n_namespaceObject.__)('This %1$s is editable using the "%2$s" override.'), firstBlockTitle.toLowerCase(), firstBlockName) : (0,external_wp_i18n_namespaceObject.__)('These blocks are editable using overrides.');
|
|
||||||
}
|
|
||||||
const descriptionId = (0,external_wp_element_namespaceObject.useId)();
|
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
|
|
||||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
|
|
||||||
children: toggleProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
|
|
||||||
className: "block-editor-block-bindings-toolbar-indicator",
|
|
||||||
label: firstBlockTitle,
|
|
||||||
popoverProps: {
|
|
||||||
placement: 'bottom-start',
|
|
||||||
className: 'block-editor-block-bindings-toolbar-indicator__popover'
|
|
||||||
},
|
|
||||||
icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
|
||||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
|
|
||||||
icon: icon,
|
|
||||||
className: "block-editor-block-bindings-toolbar-indicator-icon",
|
|
||||||
showColors: true
|
|
||||||
})
|
|
||||||
}),
|
|
||||||
toggleProps: {
|
|
||||||
describedBy: blockDescription,
|
|
||||||
...toggleProps
|
|
||||||
},
|
|
||||||
menuProps: {
|
|
||||||
orientation: 'both',
|
|
||||||
'aria-describedby': descriptionId
|
|
||||||
},
|
|
||||||
children: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
|
|
||||||
id: descriptionId,
|
|
||||||
children: blockDescription
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-controls/use-has-block-controls.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-controls/use-has-block-controls.js
|
||||||
/**
|
/**
|
||||||
* WordPress dependencies
|
* WordPress dependencies
|
||||||
|
@ -54734,7 +54689,6 @@ function useHasBlockToolbar() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders the block toolbar.
|
* Renders the block toolbar.
|
||||||
*
|
*
|
||||||
|
@ -54762,7 +54716,6 @@ function PrivateBlockToolbar({
|
||||||
blockClientIds,
|
blockClientIds,
|
||||||
isDefaultEditingMode,
|
isDefaultEditingMode,
|
||||||
blockType,
|
blockType,
|
||||||
blockName,
|
|
||||||
toolbarKey,
|
toolbarKey,
|
||||||
shouldShowVisualToolbar,
|
shouldShowVisualToolbar,
|
||||||
showParentSelector,
|
showParentSelector,
|
||||||
|
@ -54789,12 +54742,11 @@ function PrivateBlockToolbar({
|
||||||
const _blockName = getBlockName(selectedBlockClientId);
|
const _blockName = getBlockName(selectedBlockClientId);
|
||||||
const isValid = selectedBlockClientIds.every(id => isBlockValid(id));
|
const isValid = selectedBlockClientIds.every(id => isBlockValid(id));
|
||||||
const isVisual = selectedBlockClientIds.every(id => getBlockMode(id) === 'visual');
|
const isVisual = selectedBlockClientIds.every(id => getBlockMode(id) === 'visual');
|
||||||
const _isUsingBindings = !!getBlockAttributes(selectedBlockClientId)?.metadata?.bindings;
|
const _isUsingBindings = selectedBlockClientIds.every(clientId => !!getBlockAttributes(clientId)?.metadata?.bindings);
|
||||||
return {
|
return {
|
||||||
blockClientId: selectedBlockClientId,
|
blockClientId: selectedBlockClientId,
|
||||||
blockClientIds: selectedBlockClientIds,
|
blockClientIds: selectedBlockClientIds,
|
||||||
isDefaultEditingMode: _isDefaultEditingMode,
|
isDefaultEditingMode: _isDefaultEditingMode,
|
||||||
blockName: _blockName,
|
|
||||||
blockType: selectedBlockClientId && (0,external_wp_blocks_namespaceObject.getBlockType)(_blockName),
|
blockType: selectedBlockClientId && (0,external_wp_blocks_namespaceObject.getBlockType)(_blockName),
|
||||||
shouldShowVisualToolbar: isValid && isVisual,
|
shouldShowVisualToolbar: isValid && isVisual,
|
||||||
rootClientId: blockRootClientId,
|
rootClientId: blockRootClientId,
|
||||||
|
@ -54824,7 +54776,8 @@ function PrivateBlockToolbar({
|
||||||
'has-parent': showParentSelector
|
'has-parent': showParentSelector
|
||||||
});
|
});
|
||||||
const innerClasses = dist_clsx('block-editor-block-toolbar', {
|
const innerClasses = dist_clsx('block-editor-block-toolbar', {
|
||||||
'is-synced': isSynced
|
'is-synced': isSynced,
|
||||||
|
'is-connected': isUsingBindings
|
||||||
});
|
});
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableToolbar, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableToolbar, {
|
||||||
focusEditorOnEscape: true,
|
focusEditorOnEscape: true,
|
||||||
|
@ -54843,16 +54796,15 @@ function PrivateBlockToolbar({
|
||||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
||||||
ref: toolbarWrapperRef,
|
ref: toolbarWrapperRef,
|
||||||
className: innerClasses,
|
className: innerClasses,
|
||||||
children: [!isMultiToolbar && isLargeViewport && isDefaultEditingMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockParentSelector, {}), isUsingBindings && canBindBlock(blockName) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockBindingsToolbarIndicator, {
|
children: [!isMultiToolbar && isLargeViewport && isDefaultEditingMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockParentSelector, {}), (shouldShowVisualToolbar || isMultiToolbar) && (isDefaultEditingMode || isSynced) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||||
clientIds: blockClientIds
|
|
||||||
}), (shouldShowVisualToolbar || isMultiToolbar) && (isDefaultEditingMode || isSynced) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
|
||||||
ref: nodeRef,
|
ref: nodeRef,
|
||||||
...showHoveredOrFocusedGestures,
|
...showHoveredOrFocusedGestures,
|
||||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ToolbarGroup, {
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ToolbarGroup, {
|
||||||
className: "block-editor-block-toolbar__block-controls",
|
className: "block-editor-block-toolbar__block-controls",
|
||||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_switcher, {
|
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_switcher, {
|
||||||
clientIds: blockClientIds,
|
clientIds: blockClientIds,
|
||||||
disabled: !isDefaultEditingMode
|
disabled: !isDefaultEditingMode,
|
||||||
|
isUsingBindings: isUsingBindings
|
||||||
}), isDefaultEditingMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
}), isDefaultEditingMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
||||||
children: [!isMultiToolbar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockLockToolbar, {
|
children: [!isMultiToolbar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockLockToolbar, {
|
||||||
clientId: blockClientId
|
clientId: blockClientId
|
||||||
|
@ -55104,8 +55056,8 @@ function BlockSelectionButton({
|
||||||
isBlockTemplatePart,
|
isBlockTemplatePart,
|
||||||
isNextBlockTemplatePart,
|
isNextBlockTemplatePart,
|
||||||
isPrevBlockTemplatePart,
|
isPrevBlockTemplatePart,
|
||||||
canRemove: canRemoveBlock(clientId, rootClientId),
|
canRemove: canRemoveBlock(clientId),
|
||||||
canMove: canMoveBlock(clientId, rootClientId)
|
canMove: canMoveBlock(clientId)
|
||||||
};
|
};
|
||||||
}, [clientId, rootClientId]);
|
}, [clientId, rootClientId]);
|
||||||
const {
|
const {
|
||||||
|
@ -55792,7 +55744,7 @@ const useTransformCommands = () => {
|
||||||
blocks: selectedBlocks,
|
blocks: selectedBlocks,
|
||||||
clientIds: selectedBlockClientIds,
|
clientIds: selectedBlockClientIds,
|
||||||
possibleBlockTransformations: getBlockTransformItems(selectedBlocks, rootClientId),
|
possibleBlockTransformations: getBlockTransformItems(selectedBlocks, rootClientId),
|
||||||
canRemove: canRemoveBlocks(selectedBlockClientIds, rootClientId),
|
canRemove: canRemoveBlocks(selectedBlockClientIds),
|
||||||
invalidSelection: false
|
invalidSelection: false
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
@ -55883,7 +55835,7 @@ const useActionsCommands = () => {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const rootClientId = getBlockRootClientId(clientIds[0]);
|
const rootClientId = getBlockRootClientId(clientIds[0]);
|
||||||
const canMove = canMoveBlocks(clientIds, rootClientId) && getBlockCount(rootClientId) !== 1;
|
const canMove = canMoveBlocks(clientIds) && getBlockCount(rootClientId) !== 1;
|
||||||
const commands = [];
|
const commands = [];
|
||||||
if (canMove) {
|
if (canMove) {
|
||||||
commands.push({
|
commands.push({
|
||||||
|
@ -55981,7 +55933,7 @@ const useQuickActionsCommands = () => {
|
||||||
const canDuplicate = blocks.every(block => {
|
const canDuplicate = blocks.every(block => {
|
||||||
return !!block && (0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'multiple', true) && canInsertBlockType(block.name, rootClientId);
|
return !!block && (0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'multiple', true) && canInsertBlockType(block.name, rootClientId);
|
||||||
});
|
});
|
||||||
const canRemove = canRemoveBlocks(clientIds, rootClientId);
|
const canRemove = canRemoveBlocks(clientIds);
|
||||||
const commands = [];
|
const commands = [];
|
||||||
if (canDuplicate) {
|
if (canDuplicate) {
|
||||||
commands.push({
|
commands.push({
|
||||||
|
@ -57241,6 +57193,12 @@ function ListViewBlock({
|
||||||
if (event.defaultPrevented) {
|
if (event.defaultPrevented) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Do not handle events if it comes from modals;
|
||||||
|
// retain the default behavior for these keys.
|
||||||
|
if (event.target.closest('[role=dialog]')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const isDeleteKey = [external_wp_keycodes_namespaceObject.BACKSPACE, external_wp_keycodes_namespaceObject.DELETE].includes(event.keyCode);
|
const isDeleteKey = [external_wp_keycodes_namespaceObject.BACKSPACE, external_wp_keycodes_namespaceObject.DELETE].includes(event.keyCode);
|
||||||
|
|
||||||
// If multiple blocks are selected, deselect all blocks when the user
|
// If multiple blocks are selected, deselect all blocks when the user
|
||||||
|
@ -57251,11 +57209,6 @@ function ListViewBlock({
|
||||||
selectBlock(event, undefined);
|
selectBlock(event, undefined);
|
||||||
} else if (isDeleteKey || isMatch('core/block-editor/remove', event)) {
|
} else if (isDeleteKey || isMatch('core/block-editor/remove', event)) {
|
||||||
var _getPreviousBlockClie;
|
var _getPreviousBlockClie;
|
||||||
// Do not handle single-key block deletion shortcuts when events come from modals;
|
|
||||||
// retain the default behavior for these keys.
|
|
||||||
if (isDeleteKey && event.target.closest('[role=dialog]')) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const {
|
const {
|
||||||
blocksToUpdate: blocksToDelete,
|
blocksToUpdate: blocksToDelete,
|
||||||
firstBlockClientId,
|
firstBlockClientId,
|
||||||
|
@ -57264,7 +57217,7 @@ function ListViewBlock({
|
||||||
} = getBlocksToUpdate();
|
} = getBlocksToUpdate();
|
||||||
|
|
||||||
// Don't update the selection if the blocks cannot be deleted.
|
// Don't update the selection if the blocks cannot be deleted.
|
||||||
if (!canRemoveBlocks(blocksToDelete, firstBlockRootClientId)) {
|
if (!canRemoveBlocks(blocksToDelete)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let blockToFocus = (_getPreviousBlockClie = getPreviousBlockClientId(firstBlockClientId)) !== null && _getPreviousBlockClie !== void 0 ? _getPreviousBlockClie :
|
let blockToFocus = (_getPreviousBlockClie = getPreviousBlockClientId(firstBlockClientId)) !== null && _getPreviousBlockClie !== void 0 ? _getPreviousBlockClie :
|
||||||
|
@ -57765,7 +57718,9 @@ function ListViewBranch(props) {
|
||||||
// This prevents the entire tree from being rendered when a branch is
|
// This prevents the entire tree from being rendered when a branch is
|
||||||
// selected, or a user selects all blocks, while still enabling scroll
|
// selected, or a user selects all blocks, while still enabling scroll
|
||||||
// into view behavior when selecting a block or opening the list view.
|
// into view behavior when selecting a block or opening the list view.
|
||||||
const showBlock = isDragged || blockInView || isSelected && clientId === selectedClientIds[0];
|
// The first and last blocks of the list are always rendered, to ensure
|
||||||
|
// that Home and End keys work as expected.
|
||||||
|
const showBlock = isDragged || blockInView || isSelected && clientId === selectedClientIds[0] || index === 0 || index === blockCount - 1;
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_data_namespaceObject.AsyncModeProvider, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_data_namespaceObject.AsyncModeProvider, {
|
||||||
value: !isSelected,
|
value: !isSelected,
|
||||||
children: [showBlock && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(list_view_block, {
|
children: [showBlock && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(list_view_block, {
|
||||||
|
@ -58883,7 +58838,7 @@ function use_clipboard_handler_useClipboardHandler({
|
||||||
if (event.type === 'cut') {
|
if (event.type === 'cut') {
|
||||||
var _getPreviousBlockClie;
|
var _getPreviousBlockClie;
|
||||||
// Don't update the selection if the blocks cannot be deleted.
|
// Don't update the selection if the blocks cannot be deleted.
|
||||||
if (!canRemoveBlocks(selectedBlockClientIds, firstBlockRootClientId)) {
|
if (!canRemoveBlocks(selectedBlockClientIds)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let blockToFocus = (_getPreviousBlockClie = getPreviousBlockClientId(firstBlockClientId)) !== null && _getPreviousBlockClie !== void 0 ? _getPreviousBlockClie :
|
let blockToFocus = (_getPreviousBlockClie = getPreviousBlockClientId(firstBlockClientId)) !== null && _getPreviousBlockClie !== void 0 ? _getPreviousBlockClie :
|
||||||
|
@ -71232,6 +71187,7 @@ function ResolutionTool({
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -71275,7 +71231,8 @@ lock(privateApis, {
|
||||||
reusableBlocksSelectKey: reusableBlocksSelectKey,
|
reusableBlocksSelectKey: reusableBlocksSelectKey,
|
||||||
PrivateBlockPopover: PrivateBlockPopover,
|
PrivateBlockPopover: PrivateBlockPopover,
|
||||||
PrivatePublishDateTimePicker: PrivatePublishDateTimePicker,
|
PrivatePublishDateTimePicker: PrivatePublishDateTimePicker,
|
||||||
useSpacingSizes: useSpacingSizes
|
useSpacingSizes: useSpacingSizes,
|
||||||
|
useBlockDisplayTitle: useBlockDisplayTitle
|
||||||
});
|
});
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/index.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/index.js
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2652,7 +2652,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/block-library');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/block-library');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js
|
||||||
/**
|
/**
|
||||||
|
@ -3145,6 +3145,7 @@ function Caption({
|
||||||
placeholder = (0,external_wp_i18n_namespaceObject.__)('Add caption'),
|
placeholder = (0,external_wp_i18n_namespaceObject.__)('Add caption'),
|
||||||
label = (0,external_wp_i18n_namespaceObject.__)('Caption text'),
|
label = (0,external_wp_i18n_namespaceObject.__)('Caption text'),
|
||||||
showToolbarButton = true,
|
showToolbarButton = true,
|
||||||
|
excludeElementClassName,
|
||||||
className,
|
className,
|
||||||
readOnly,
|
readOnly,
|
||||||
tagName = 'figcaption',
|
tagName = 'figcaption',
|
||||||
|
@ -3200,7 +3201,7 @@ function Caption({
|
||||||
}), showCaption && (!RichText.isEmpty(caption) || isSelected) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RichText, {
|
}), showCaption && (!RichText.isEmpty(caption) || isSelected) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RichText, {
|
||||||
identifier: attributeKey,
|
identifier: attributeKey,
|
||||||
tagName: tagName,
|
tagName: tagName,
|
||||||
className: dist_clsx(className, (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')),
|
className: dist_clsx(className, excludeElementClassName ? '' : (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')),
|
||||||
ref: ref,
|
ref: ref,
|
||||||
"aria-label": label,
|
"aria-label": label,
|
||||||
placeholder: placeholder,
|
placeholder: placeholder,
|
||||||
|
@ -50443,6 +50444,7 @@ function QuoteEdit({
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Add citation'),
|
(0,external_wp_i18n_namespaceObject.__)('Add citation'),
|
||||||
addLabel: (0,external_wp_i18n_namespaceObject.__)('Add citation'),
|
addLabel: (0,external_wp_i18n_namespaceObject.__)('Add citation'),
|
||||||
removeLabel: (0,external_wp_i18n_namespaceObject.__)('Remove citation'),
|
removeLabel: (0,external_wp_i18n_namespaceObject.__)('Remove citation'),
|
||||||
|
excludeElementClassName: true,
|
||||||
className: "wp-block-quote__citation",
|
className: "wp-block-quote__citation",
|
||||||
insertBlocksAfter: insertBlocksAfter,
|
insertBlocksAfter: insertBlocksAfter,
|
||||||
...(!edit_isWebPlatform ? {
|
...(!edit_isWebPlatform ? {
|
||||||
|
@ -55238,8 +55240,6 @@ const getNameBySite = name => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
|
@ -55251,12 +55251,8 @@ const SocialLinkURLPopover = ({
|
||||||
url,
|
url,
|
||||||
setAttributes,
|
setAttributes,
|
||||||
setPopover,
|
setPopover,
|
||||||
popoverAnchor,
|
popoverAnchor
|
||||||
clientId
|
|
||||||
}) => {
|
}) => {
|
||||||
const {
|
|
||||||
removeBlock
|
|
||||||
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
|
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.URLPopover, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.URLPopover, {
|
||||||
anchor: popoverAnchor,
|
anchor: popoverAnchor,
|
||||||
onClose: () => setPopover(false),
|
onClose: () => setPopover(false),
|
||||||
|
@ -55277,13 +55273,7 @@ const SocialLinkURLPopover = ({
|
||||||
placeholder: (0,external_wp_i18n_namespaceObject.__)('Enter social link'),
|
placeholder: (0,external_wp_i18n_namespaceObject.__)('Enter social link'),
|
||||||
label: (0,external_wp_i18n_namespaceObject.__)('Enter social link'),
|
label: (0,external_wp_i18n_namespaceObject.__)('Enter social link'),
|
||||||
hideLabelFromVision: true,
|
hideLabelFromVision: true,
|
||||||
disableSuggestions: true,
|
disableSuggestions: true
|
||||||
onKeyDown: event => {
|
|
||||||
if (!!url || event.defaultPrevented || ![external_wp_keycodes_namespaceObject.BACKSPACE, external_wp_keycodes_namespaceObject.DELETE].includes(event.keyCode)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
removeBlock(clientId);
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||||
icon: keyboard_return,
|
icon: keyboard_return,
|
||||||
|
@ -55297,8 +55287,7 @@ const SocialLinkEdit = ({
|
||||||
attributes,
|
attributes,
|
||||||
context,
|
context,
|
||||||
isSelected,
|
isSelected,
|
||||||
setAttributes,
|
setAttributes
|
||||||
clientId
|
|
||||||
}) => {
|
}) => {
|
||||||
const {
|
const {
|
||||||
url,
|
url,
|
||||||
|
@ -55380,8 +55369,7 @@ const SocialLinkEdit = ({
|
||||||
url: url,
|
url: url,
|
||||||
setAttributes: setAttributes,
|
setAttributes: setAttributes,
|
||||||
setPopover: setPopover,
|
setPopover: setPopover,
|
||||||
popoverAnchor: popoverAnchor,
|
popoverAnchor: popoverAnchor
|
||||||
clientId: clientId
|
|
||||||
})]
|
})]
|
||||||
})]
|
})]
|
||||||
});
|
});
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -6779,7 +6779,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/blocks');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/blocks');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/registration.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/registration.js
|
||||||
/* eslint no-console: [ 'error', { allow: [ 'error', 'warn' ] } ] */
|
/* eslint no-console: [ 'error', { allow: [ 'error', 'warn' ] } ] */
|
||||||
|
@ -14490,7 +14490,11 @@ function rawHandler({
|
||||||
}) {
|
}) {
|
||||||
// If we detect block delimiters, parse entirely as blocks.
|
// If we detect block delimiters, parse entirely as blocks.
|
||||||
if (HTML.indexOf('<!-- wp:') !== -1) {
|
if (HTML.indexOf('<!-- wp:') !== -1) {
|
||||||
return parser_parse(HTML);
|
const parseResult = parser_parse(HTML);
|
||||||
|
const isSingleFreeFormBlock = parseResult.length === 1 && parseResult[0].name === 'core/freeform';
|
||||||
|
if (!isSingleFreeFormBlock) {
|
||||||
|
return parseResult;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// An array of HTML strings and block objects. The blocks replace matched
|
// An array of HTML strings and block objects. The blocks replace matched
|
||||||
|
@ -15097,7 +15101,11 @@ function pasteHandler({
|
||||||
// Check plain text if there is no HTML.
|
// Check plain text if there is no HTML.
|
||||||
const content = HTML ? HTML : plainText;
|
const content = HTML ? HTML : plainText;
|
||||||
if (content.indexOf('<!-- wp:') !== -1) {
|
if (content.indexOf('<!-- wp:') !== -1) {
|
||||||
return parser_parse(content);
|
const parseResult = parser_parse(content);
|
||||||
|
const isSingleFreeFormBlock = parseResult.length === 1 && parseResult[0].name === 'core/freeform';
|
||||||
|
if (!isSingleFreeFormBlock) {
|
||||||
|
return parseResult;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -3500,7 +3500,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/commands');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/commands');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/commands/build-module/store/index.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/commands/build-module/store/index.js
|
||||||
/**
|
/**
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -73946,7 +73946,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/components');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/components');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/private-apis.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/private-apis.js
|
||||||
/**
|
/**
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -231,7 +231,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/core-commands');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/core-commands');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-commands/build-module/utils/order-entity-records-by-search.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-commands/build-module/utils/order-entity-records-by-search.js
|
||||||
function orderEntityRecordsBySearch(records = [], search = '') {
|
function orderEntityRecordsBySearch(records = [], search = '') {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -6735,7 +6735,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/core-data');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/core-data');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: external ["wp","element"]
|
;// CONCATENATED MODULE: external ["wp","element"]
|
||||||
const external_wp_element_namespaceObject = window["wp"]["element"];
|
const external_wp_element_namespaceObject = window["wp"]["element"];
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1445,7 +1445,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/customize-widgets');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/customize-widgets');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/sidebar-block-editor/sidebar-editor-provider.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/sidebar-block-editor/sidebar-editor-provider.js
|
||||||
/**
|
/**
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1627,7 +1627,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/data');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/data');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/is-promise/index.mjs
|
;// CONCATENATED MODULE: ./node_modules/is-promise/index.mjs
|
||||||
function isPromise(obj) {
|
function isPromise(obj) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -171,6 +171,8 @@ const external_wp_notices_namespaceObject = window["wp"]["notices"];
|
||||||
const external_wp_coreCommands_namespaceObject = window["wp"]["coreCommands"];
|
const external_wp_coreCommands_namespaceObject = window["wp"]["coreCommands"];
|
||||||
;// CONCATENATED MODULE: external ["wp","url"]
|
;// CONCATENATED MODULE: external ["wp","url"]
|
||||||
const external_wp_url_namespaceObject = window["wp"]["url"];
|
const external_wp_url_namespaceObject = window["wp"]["url"];
|
||||||
|
;// CONCATENATED MODULE: external ["wp","htmlEntities"]
|
||||||
|
const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
|
||||||
;// CONCATENATED MODULE: external ["wp","primitives"]
|
;// CONCATENATED MODULE: external ["wp","primitives"]
|
||||||
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
|
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
|
||||||
;// CONCATENATED MODULE: external "ReactJSXRuntime"
|
;// CONCATENATED MODULE: external "ReactJSXRuntime"
|
||||||
|
@ -313,7 +315,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/edit-post');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/edit-post');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/actions.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/actions.js
|
||||||
/**
|
/**
|
||||||
|
@ -2650,6 +2652,7 @@ function useShouldIframe() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
|
@ -2830,7 +2833,7 @@ function Layout({
|
||||||
const title = typeof newItem.title === 'string' ? newItem.title : newItem.title?.rendered;
|
const title = typeof newItem.title === 'string' ? newItem.title : newItem.title?.rendered;
|
||||||
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: Title of the created post e.g: "Post 1".
|
// translators: %s: Title of the created post e.g: "Post 1".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), title), {
|
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title)), {
|
||||||
type: 'snackbar',
|
type: 'snackbar',
|
||||||
id: 'duplicate-post-action',
|
id: 'duplicate-post-action',
|
||||||
actions: [{
|
actions: [{
|
||||||
|
@ -3123,6 +3126,7 @@ function Editor({
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
|
@ -3131,6 +3135,7 @@ function Editor({
|
||||||
const {
|
const {
|
||||||
PluginPostExcerpt
|
PluginPostExcerpt
|
||||||
} = unlock(external_wp_editor_namespaceObject.privateApis);
|
} = unlock(external_wp_editor_namespaceObject.privateApis);
|
||||||
|
const isSiteEditor = (0,external_wp_url_namespaceObject.getPath)(window.location.href)?.includes('site-editor.php');
|
||||||
const deprecateSlot = name => {
|
const deprecateSlot = name => {
|
||||||
external_wp_deprecated_default()(`wp.editPost.${name}`, {
|
external_wp_deprecated_default()(`wp.editPost.${name}`, {
|
||||||
since: '6.6',
|
since: '6.6',
|
||||||
|
@ -3143,6 +3148,9 @@ const deprecateSlot = name => {
|
||||||
* @see PluginBlockSettingsMenuItem in @wordpress/editor package.
|
* @see PluginBlockSettingsMenuItem in @wordpress/editor package.
|
||||||
*/
|
*/
|
||||||
function PluginBlockSettingsMenuItem(props) {
|
function PluginBlockSettingsMenuItem(props) {
|
||||||
|
if (isSiteEditor) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
deprecateSlot('PluginBlockSettingsMenuItem');
|
deprecateSlot('PluginBlockSettingsMenuItem');
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginBlockSettingsMenuItem, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginBlockSettingsMenuItem, {
|
||||||
...props
|
...props
|
||||||
|
@ -3153,6 +3161,9 @@ function PluginBlockSettingsMenuItem(props) {
|
||||||
* @see PluginDocumentSettingPanel in @wordpress/editor package.
|
* @see PluginDocumentSettingPanel in @wordpress/editor package.
|
||||||
*/
|
*/
|
||||||
function PluginDocumentSettingPanel(props) {
|
function PluginDocumentSettingPanel(props) {
|
||||||
|
if (isSiteEditor) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
deprecateSlot('PluginDocumentSettingPanel');
|
deprecateSlot('PluginDocumentSettingPanel');
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginDocumentSettingPanel, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginDocumentSettingPanel, {
|
||||||
...props
|
...props
|
||||||
|
@ -3163,6 +3174,9 @@ function PluginDocumentSettingPanel(props) {
|
||||||
* @see PluginMoreMenuItem in @wordpress/editor package.
|
* @see PluginMoreMenuItem in @wordpress/editor package.
|
||||||
*/
|
*/
|
||||||
function PluginMoreMenuItem(props) {
|
function PluginMoreMenuItem(props) {
|
||||||
|
if (isSiteEditor) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
deprecateSlot('PluginMoreMenuItem');
|
deprecateSlot('PluginMoreMenuItem');
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginMoreMenuItem, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginMoreMenuItem, {
|
||||||
...props
|
...props
|
||||||
|
@ -3173,6 +3187,9 @@ function PluginMoreMenuItem(props) {
|
||||||
* @see PluginPrePublishPanel in @wordpress/editor package.
|
* @see PluginPrePublishPanel in @wordpress/editor package.
|
||||||
*/
|
*/
|
||||||
function PluginPrePublishPanel(props) {
|
function PluginPrePublishPanel(props) {
|
||||||
|
if (isSiteEditor) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
deprecateSlot('PluginPrePublishPanel');
|
deprecateSlot('PluginPrePublishPanel');
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginPrePublishPanel, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginPrePublishPanel, {
|
||||||
...props
|
...props
|
||||||
|
@ -3183,6 +3200,9 @@ function PluginPrePublishPanel(props) {
|
||||||
* @see PluginPostPublishPanel in @wordpress/editor package.
|
* @see PluginPostPublishPanel in @wordpress/editor package.
|
||||||
*/
|
*/
|
||||||
function PluginPostPublishPanel(props) {
|
function PluginPostPublishPanel(props) {
|
||||||
|
if (isSiteEditor) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
deprecateSlot('PluginPostPublishPanel');
|
deprecateSlot('PluginPostPublishPanel');
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginPostPublishPanel, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginPostPublishPanel, {
|
||||||
...props
|
...props
|
||||||
|
@ -3193,6 +3213,9 @@ function PluginPostPublishPanel(props) {
|
||||||
* @see PluginPostStatusInfo in @wordpress/editor package.
|
* @see PluginPostStatusInfo in @wordpress/editor package.
|
||||||
*/
|
*/
|
||||||
function PluginPostStatusInfo(props) {
|
function PluginPostStatusInfo(props) {
|
||||||
|
if (isSiteEditor) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
deprecateSlot('PluginPostStatusInfo');
|
deprecateSlot('PluginPostStatusInfo');
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginPostStatusInfo, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginPostStatusInfo, {
|
||||||
...props
|
...props
|
||||||
|
@ -3203,6 +3226,9 @@ function PluginPostStatusInfo(props) {
|
||||||
* @see PluginSidebar in @wordpress/editor package.
|
* @see PluginSidebar in @wordpress/editor package.
|
||||||
*/
|
*/
|
||||||
function PluginSidebar(props) {
|
function PluginSidebar(props) {
|
||||||
|
if (isSiteEditor) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
deprecateSlot('PluginSidebar');
|
deprecateSlot('PluginSidebar');
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginSidebar, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginSidebar, {
|
||||||
...props
|
...props
|
||||||
|
@ -3213,6 +3239,9 @@ function PluginSidebar(props) {
|
||||||
* @see PluginSidebarMoreMenuItem in @wordpress/editor package.
|
* @see PluginSidebarMoreMenuItem in @wordpress/editor package.
|
||||||
*/
|
*/
|
||||||
function PluginSidebarMoreMenuItem(props) {
|
function PluginSidebarMoreMenuItem(props) {
|
||||||
|
if (isSiteEditor) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
deprecateSlot('PluginSidebarMoreMenuItem');
|
deprecateSlot('PluginSidebarMoreMenuItem');
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginSidebarMoreMenuItem, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginSidebarMoreMenuItem, {
|
||||||
...props
|
...props
|
||||||
|
@ -3223,6 +3252,9 @@ function PluginSidebarMoreMenuItem(props) {
|
||||||
* @see PluginPostExcerpt in @wordpress/editor package.
|
* @see PluginPostExcerpt in @wordpress/editor package.
|
||||||
*/
|
*/
|
||||||
function __experimentalPluginPostExcerpt() {
|
function __experimentalPluginPostExcerpt() {
|
||||||
|
if (isSiteEditor) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
external_wp_deprecated_default()('wp.editPost.__experimentalPluginPostExcerpt', {
|
external_wp_deprecated_default()('wp.editPost.__experimentalPluginPostExcerpt', {
|
||||||
since: '6.6',
|
since: '6.6',
|
||||||
hint: 'Core and custom panels can be access programmatically using their panel name.',
|
hint: 'Core and custom panels can be access programmatically using their panel name.',
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7522,7 +7522,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock: lock_unlock_unlock
|
unlock: lock_unlock_unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/edit-site');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/edit-site');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js
|
||||||
/**
|
/**
|
||||||
|
@ -8150,7 +8150,7 @@ function PushChangesToGlobalStylesControl({
|
||||||
// notification.
|
// notification.
|
||||||
__unstableMarkNextChangeAsNotPersistent();
|
__unstableMarkNextChangeAsNotPersistent();
|
||||||
setAttributes(newBlockAttributes);
|
setAttributes(newBlockAttributes);
|
||||||
setUserConfig(() => newUserConfig, {
|
setUserConfig(newUserConfig, {
|
||||||
undoIgnore: true
|
undoIgnore: true
|
||||||
});
|
});
|
||||||
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
|
@ -8162,7 +8162,7 @@ function PushChangesToGlobalStylesControl({
|
||||||
onClick() {
|
onClick() {
|
||||||
__unstableMarkNextChangeAsNotPersistent();
|
__unstableMarkNextChangeAsNotPersistent();
|
||||||
setAttributes(attributes);
|
setAttributes(attributes);
|
||||||
setUserConfig(() => userConfig, {
|
setUserConfig(userConfig, {
|
||||||
undoIgnore: true
|
undoIgnore: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -13751,6 +13751,7 @@ function TypographyElements() {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
mergeBaseAndUserConfigs: variation_mergeBaseAndUserConfigs
|
mergeBaseAndUserConfigs: variation_mergeBaseAndUserConfigs
|
||||||
} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
|
} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
|
||||||
|
@ -13761,7 +13762,8 @@ const {
|
||||||
function Variation({
|
function Variation({
|
||||||
variation,
|
variation,
|
||||||
children,
|
children,
|
||||||
isPill
|
isPill,
|
||||||
|
property
|
||||||
}) {
|
}) {
|
||||||
const [isFocused, setIsFocused] = (0,external_wp_element_namespaceObject.useState)(false);
|
const [isFocused, setIsFocused] = (0,external_wp_element_namespaceObject.useState)(false);
|
||||||
const {
|
const {
|
||||||
|
@ -13770,25 +13772,18 @@ function Variation({
|
||||||
setUserConfig
|
setUserConfig
|
||||||
} = (0,external_wp_element_namespaceObject.useContext)(variation_GlobalStylesContext);
|
} = (0,external_wp_element_namespaceObject.useContext)(variation_GlobalStylesContext);
|
||||||
const context = (0,external_wp_element_namespaceObject.useMemo)(() => {
|
const context = (0,external_wp_element_namespaceObject.useMemo)(() => {
|
||||||
var _variation$settings, _variation$styles, _variation$_links;
|
let merged = variation_mergeBaseAndUserConfigs(base, variation);
|
||||||
|
if (property) {
|
||||||
|
merged = filterObjectByProperty(merged, property);
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
user: {
|
user: variation,
|
||||||
settings: (_variation$settings = variation.settings) !== null && _variation$settings !== void 0 ? _variation$settings : {},
|
|
||||||
styles: (_variation$styles = variation.styles) !== null && _variation$styles !== void 0 ? _variation$styles : {},
|
|
||||||
_links: (_variation$_links = variation._links) !== null && _variation$_links !== void 0 ? _variation$_links : {}
|
|
||||||
},
|
|
||||||
base,
|
base,
|
||||||
merged: variation_mergeBaseAndUserConfigs(base, variation),
|
merged,
|
||||||
setUserConfig: () => {}
|
setUserConfig: () => {}
|
||||||
};
|
};
|
||||||
}, [variation, base]);
|
}, [variation, base, property]);
|
||||||
const selectVariation = () => {
|
const selectVariation = () => setUserConfig(variation);
|
||||||
setUserConfig(() => ({
|
|
||||||
settings: variation.settings,
|
|
||||||
styles: variation.styles,
|
|
||||||
_links: variation._links
|
|
||||||
}));
|
|
||||||
};
|
|
||||||
const selectOnEnter = event => {
|
const selectOnEnter = event => {
|
||||||
if (event.keyCode === external_wp_keycodes_namespaceObject.ENTER) {
|
if (event.keyCode === external_wp_keycodes_namespaceObject.ENTER) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
@ -13862,6 +13857,7 @@ function TypographyVariations({
|
||||||
className: "edit-site-global-styles-style-variations-container",
|
className: "edit-site-global-styles-style-variations-container",
|
||||||
children: typographyVariations && typographyVariations.length && typographyVariations.map((variation, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Variation, {
|
children: typographyVariations && typographyVariations.length && typographyVariations.map((variation, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Variation, {
|
||||||
variation: variation,
|
variation: variation,
|
||||||
|
property: "typography",
|
||||||
children: isFocused => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreviewIframe, {
|
children: isFocused => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreviewIframe, {
|
||||||
label: variation?.title,
|
label: variation?.title,
|
||||||
isFocused: isFocused,
|
isFocused: isFocused,
|
||||||
|
@ -15283,6 +15279,7 @@ function ConfirmDeleteDialog({
|
||||||
confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Delete'),
|
confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Delete'),
|
||||||
onCancel: handleCancelUninstall,
|
onCancel: handleCancelUninstall,
|
||||||
onConfirm: handleConfirmUninstall,
|
onConfirm: handleConfirmUninstall,
|
||||||
|
size: "medium",
|
||||||
children: font && (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the font. */
|
children: font && (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the font. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete "%s" font and all its variants and assets?'), font.name)
|
(0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete "%s" font and all its variants and assets?'), font.name)
|
||||||
});
|
});
|
||||||
|
@ -20684,6 +20681,7 @@ function ColorVariations({
|
||||||
children: colorVariations.map((variation, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Variation, {
|
children: colorVariations.map((variation, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Variation, {
|
||||||
variation: variation,
|
variation: variation,
|
||||||
isPill: true,
|
isPill: true,
|
||||||
|
property: "color",
|
||||||
children: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(preview_colors, {})
|
children: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(preview_colors, {})
|
||||||
}, index))
|
}, index))
|
||||||
})]
|
})]
|
||||||
|
@ -21414,6 +21412,7 @@ function ShadowsEditPanel() {
|
||||||
setIsConfirmDialogVisible(false);
|
setIsConfirmDialogVisible(false);
|
||||||
},
|
},
|
||||||
confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Delete'),
|
confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Delete'),
|
||||||
|
size: "medium",
|
||||||
children: (0,external_wp_i18n_namespaceObject.sprintf)(
|
children: (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: name of the shadow
|
// translators: %s: name of the shadow
|
||||||
'Are you sure you want to delete "%s"?', selectedShadow.name)
|
'Are you sure you want to delete "%s"?', selectedShadow.name)
|
||||||
|
@ -23215,26 +23214,10 @@ function ScreenRevisions() {
|
||||||
setEditorCanvasContainerView(canvasContainerView);
|
setEditorCanvasContainerView(canvasContainerView);
|
||||||
};
|
};
|
||||||
const restoreRevision = revision => {
|
const restoreRevision = revision => {
|
||||||
setUserConfig(() => ({
|
setUserConfig(() => revision);
|
||||||
styles: revision?.styles,
|
|
||||||
settings: revision?.settings,
|
|
||||||
_links: revision?._links
|
|
||||||
}));
|
|
||||||
setIsLoadingRevisionWithUnsavedChanges(false);
|
setIsLoadingRevisionWithUnsavedChanges(false);
|
||||||
onCloseRevisions();
|
onCloseRevisions();
|
||||||
};
|
};
|
||||||
const selectRevision = revision => {
|
|
||||||
setCurrentlySelectedRevision({
|
|
||||||
/*
|
|
||||||
* The default must be an empty object so that
|
|
||||||
* `mergeBaseAndUserConfigs()` can merge them correctly.
|
|
||||||
*/
|
|
||||||
styles: revision?.styles || {},
|
|
||||||
settings: revision?.settings || {},
|
|
||||||
_links: revision?._links || {},
|
|
||||||
id: revision?.id
|
|
||||||
});
|
|
||||||
};
|
|
||||||
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
||||||
if (!editorCanvasContainerView || !editorCanvasContainerView.startsWith('global-styles-revisions')) {
|
if (!editorCanvasContainerView || !editorCanvasContainerView.startsWith('global-styles-revisions')) {
|
||||||
goTo('/'); // Return to global styles main panel.
|
goTo('/'); // Return to global styles main panel.
|
||||||
|
@ -23257,11 +23240,7 @@ function ScreenRevisions() {
|
||||||
* See: https://github.com/WordPress/gutenberg/issues/55866
|
* See: https://github.com/WordPress/gutenberg/issues/55866
|
||||||
*/
|
*/
|
||||||
if (shouldSelectFirstItem) {
|
if (shouldSelectFirstItem) {
|
||||||
setCurrentlySelectedRevision({
|
setCurrentlySelectedRevision(firstRevision);
|
||||||
styles: firstRevision?.styles || {},
|
|
||||||
settings: firstRevision?.settings || {},
|
|
||||||
id: firstRevision?.id
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}, [shouldSelectFirstItem, firstRevision]);
|
}, [shouldSelectFirstItem, firstRevision]);
|
||||||
|
|
||||||
|
@ -23289,7 +23268,7 @@ function ScreenRevisions() {
|
||||||
userConfig: currentlySelectedRevision,
|
userConfig: currentlySelectedRevision,
|
||||||
closeButtonLabel: (0,external_wp_i18n_namespaceObject.__)('Close revisions')
|
closeButtonLabel: (0,external_wp_i18n_namespaceObject.__)('Close revisions')
|
||||||
})), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(revisions_buttons, {
|
})), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(revisions_buttons, {
|
||||||
onChange: selectRevision,
|
onChange: setCurrentlySelectedRevision,
|
||||||
selectedRevisionId: currentlySelectedRevisionId,
|
selectedRevisionId: currentlySelectedRevisionId,
|
||||||
userRevisions: currentRevisions,
|
userRevisions: currentRevisions,
|
||||||
canApplyRevision: isLoadButtonEnabled,
|
canApplyRevision: isLoadButtonEnabled,
|
||||||
|
@ -23310,6 +23289,7 @@ function ScreenRevisions() {
|
||||||
confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Apply'),
|
confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Apply'),
|
||||||
onConfirm: () => restoreRevision(currentlySelectedRevision),
|
onConfirm: () => restoreRevision(currentlySelectedRevision),
|
||||||
onCancel: () => setIsLoadingRevisionWithUnsavedChanges(false),
|
onCancel: () => setIsLoadingRevisionWithUnsavedChanges(false),
|
||||||
|
size: "medium",
|
||||||
children: (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to apply this revision? Any unsaved changes will be lost.')
|
children: (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to apply this revision? Any unsaved changes will be lost.')
|
||||||
})]
|
})]
|
||||||
});
|
});
|
||||||
|
@ -24280,6 +24260,7 @@ function useEditorTitle() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
|
@ -24401,7 +24382,7 @@ function EditSiteEditor({
|
||||||
const _title = typeof newItem.title === 'string' ? newItem.title : newItem.title?.rendered;
|
const _title = typeof newItem.title === 'string' ? newItem.title : newItem.title?.rendered;
|
||||||
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: Title of the created post e.g: "Post 1".
|
// translators: %s: Title of the created post e.g: "Post 1".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), _title), {
|
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(_title)), {
|
||||||
type: 'snackbar',
|
type: 'snackbar',
|
||||||
id: 'duplicate-post-action',
|
id: 'duplicate-post-action',
|
||||||
actions: [{
|
actions: [{
|
||||||
|
@ -24558,7 +24539,7 @@ const pagination_Pagination = (0,external_wp_element_namespaceObject.memo)(funct
|
||||||
const {
|
const {
|
||||||
lock: lock_unlock_lock,
|
lock: lock_unlock_lock,
|
||||||
unlock: build_module_lock_unlock_unlock
|
unlock: build_module_lock_unlock_unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/dataviews');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/dataviews');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/constants.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/constants.js
|
||||||
/**
|
/**
|
||||||
|
@ -32756,6 +32737,7 @@ const DEFAULT_VIEWS = {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function AddNewPageModal({
|
function AddNewPageModal({
|
||||||
onSave,
|
onSave,
|
||||||
onClose
|
onClose
|
||||||
|
@ -32786,7 +32768,7 @@ function AddNewPageModal({
|
||||||
onSave(newPage);
|
onSave(newPage);
|
||||||
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: Title of the created template e.g: "Category".
|
// translators: %s: Title of the created template e.g: "Category".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), newPage.title?.rendered || title), {
|
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(newPage.title?.rendered || title)), {
|
||||||
type: 'snackbar'
|
type: 'snackbar'
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@ -38122,6 +38104,7 @@ function DeleteConfirmDialog({
|
||||||
},
|
},
|
||||||
onCancel: onClose,
|
onCancel: onClose,
|
||||||
confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Delete'),
|
confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Delete'),
|
||||||
|
size: "medium",
|
||||||
children: (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete this Navigation Menu?')
|
children: (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete this Navigation Menu?')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -40414,6 +40397,8 @@ function App() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const isSiteEditor = (0,external_wp_url_namespaceObject.getPath)(window.location.href)?.includes('site-editor.php');
|
||||||
const deprecateSlot = name => {
|
const deprecateSlot = name => {
|
||||||
external_wp_deprecated_default()(`wp.editPost.${name}`, {
|
external_wp_deprecated_default()(`wp.editPost.${name}`, {
|
||||||
since: '6.6',
|
since: '6.6',
|
||||||
|
@ -40426,6 +40411,9 @@ const deprecateSlot = name => {
|
||||||
* @see PluginMoreMenuItem in @wordpress/editor package.
|
* @see PluginMoreMenuItem in @wordpress/editor package.
|
||||||
*/
|
*/
|
||||||
function PluginMoreMenuItem(props) {
|
function PluginMoreMenuItem(props) {
|
||||||
|
if (!isSiteEditor) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
deprecateSlot('PluginMoreMenuItem');
|
deprecateSlot('PluginMoreMenuItem');
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginMoreMenuItem, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginMoreMenuItem, {
|
||||||
...props
|
...props
|
||||||
|
@ -40436,6 +40424,9 @@ function PluginMoreMenuItem(props) {
|
||||||
* @see PluginSidebar in @wordpress/editor package.
|
* @see PluginSidebar in @wordpress/editor package.
|
||||||
*/
|
*/
|
||||||
function PluginSidebar(props) {
|
function PluginSidebar(props) {
|
||||||
|
if (!isSiteEditor) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
deprecateSlot('PluginSidebar');
|
deprecateSlot('PluginSidebar');
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginSidebar, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginSidebar, {
|
||||||
...props
|
...props
|
||||||
|
@ -40446,6 +40437,9 @@ function PluginSidebar(props) {
|
||||||
* @see PluginSidebarMoreMenuItem in @wordpress/editor package.
|
* @see PluginSidebarMoreMenuItem in @wordpress/editor package.
|
||||||
*/
|
*/
|
||||||
function PluginSidebarMoreMenuItem(props) {
|
function PluginSidebarMoreMenuItem(props) {
|
||||||
|
if (!isSiteEditor) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
deprecateSlot('PluginSidebarMoreMenuItem');
|
deprecateSlot('PluginSidebarMoreMenuItem');
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginSidebarMoreMenuItem, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginSidebarMoreMenuItem, {
|
||||||
...props
|
...props
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2394,7 +2394,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/edit-widgets');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/edit-widgets');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/index.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/index.js
|
||||||
/**
|
/**
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1893,7 +1893,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/editor');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/editor');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: external ["wp","i18n"]
|
;// CONCATENATED MODULE: external ["wp","i18n"]
|
||||||
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
|
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
|
||||||
|
@ -6329,6 +6329,7 @@ const external_wp_patterns_namespaceObject = window["wp"]["patterns"];
|
||||||
const {
|
const {
|
||||||
PatternOverridesControls,
|
PatternOverridesControls,
|
||||||
ResetOverridesControl,
|
ResetOverridesControl,
|
||||||
|
PatternOverridesBlockControls,
|
||||||
PATTERN_TYPES,
|
PATTERN_TYPES,
|
||||||
PARTIAL_SYNCING_SUPPORTED_BLOCKS,
|
PARTIAL_SYNCING_SUPPORTED_BLOCKS,
|
||||||
PATTERN_SYNC_TYPES
|
PATTERN_SYNC_TYPES
|
||||||
|
@ -6350,7 +6351,7 @@ const withPatternOverrideControls = (0,external_wp_compose_namespaceObject.creat
|
||||||
...props
|
...props
|
||||||
}), props.isSelected && isSupportedBlock && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ControlsWithStoreSubscription, {
|
}), props.isSelected && isSupportedBlock && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ControlsWithStoreSubscription, {
|
||||||
...props
|
...props
|
||||||
})]
|
}), isSupportedBlock && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternOverridesBlockControls, {})]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -8758,6 +8759,7 @@ function TemplateValidationNotice() {
|
||||||
synchronizeTemplate();
|
synchronizeTemplate();
|
||||||
},
|
},
|
||||||
onCancel: () => setShowConfirmDialog(false),
|
onCancel: () => setShowConfirmDialog(false),
|
||||||
|
size: "medium",
|
||||||
children: (0,external_wp_i18n_namespaceObject.__)('Resetting the template may result in loss of content, do you want to continue?')
|
children: (0,external_wp_i18n_namespaceObject.__)('Resetting the template may result in loss of content, do you want to continue?')
|
||||||
})]
|
})]
|
||||||
});
|
});
|
||||||
|
@ -8852,22 +8854,6 @@ function EditorSnackbars() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/connection.js
|
|
||||||
/**
|
|
||||||
* WordPress dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
const connection = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
|
|
||||||
viewBox: "0 0 24 24",
|
|
||||||
xmlns: "http://www.w3.org/2000/svg",
|
|
||||||
fillRule: "evenodd",
|
|
||||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
|
|
||||||
d: "M19.53 4.47a.75.75 0 0 1 0 1.06L17.06 8l.77.769a3.155 3.155 0 0 1 .685 3.439 3.15 3.15 0 0 1-.685 1.022v.001L13.23 17.83v.001a3.15 3.15 0 0 1-4.462 0L8 17.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L6.94 16l-.77-.769a3.154 3.154 0 0 1-.685-3.439 3.15 3.15 0 0 1 .685-1.023l4.599-4.598a3.152 3.152 0 0 1 4.462 0l.769.768 2.47-2.47a.75.75 0 0 1 1.06 0Zm-2.76 7.7L15 13.94 10.06 9l1.771-1.77a1.65 1.65 0 0 1 2.338 0L16.77 9.83a1.649 1.649 0 0 1 0 2.338h-.001ZM13.94 15 9 10.06l-1.77 1.771a1.65 1.65 0 0 0 0 2.338l2.601 2.602a1.649 1.649 0 0 0 2.338 0v-.001L13.94 15Z"
|
|
||||||
})
|
|
||||||
});
|
|
||||||
/* harmony default export */ const library_connection = (connection);
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/entities-saved-states/entity-record-item.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/entities-saved-states/entity-record-item.js
|
||||||
/**
|
/**
|
||||||
* WordPress dependencies
|
* WordPress dependencies
|
||||||
|
@ -8878,7 +8864,6 @@ const connection = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
|
@ -8924,17 +8909,10 @@ function EntityRecordItem({
|
||||||
checked: checked,
|
checked: checked,
|
||||||
onChange: onChange
|
onChange: onChange
|
||||||
})
|
})
|
||||||
}), hasPostMetaChanges && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelRow, {
|
}), hasPostMetaChanges && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
|
||||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
|
className: "entities-saved-states__changes",
|
||||||
className: "entities-saved-states__post-meta",
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
|
||||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
|
|
||||||
className: "entities-saved-states__connections-icon",
|
|
||||||
icon: library_connection,
|
|
||||||
size: 24
|
|
||||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
|
|
||||||
className: "entities-saved-states__bindings-text",
|
|
||||||
children: (0,external_wp_i18n_namespaceObject.__)('Post Meta.')
|
children: (0,external_wp_i18n_namespaceObject.__)('Post Meta.')
|
||||||
})]
|
|
||||||
})
|
})
|
||||||
})]
|
})]
|
||||||
});
|
});
|
||||||
|
@ -14306,6 +14284,7 @@ function PostVisibility({
|
||||||
onConfirm: confirmPrivate,
|
onConfirm: confirmPrivate,
|
||||||
onCancel: handleDialogCancel,
|
onCancel: handleDialogCancel,
|
||||||
confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Publish'),
|
confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Publish'),
|
||||||
|
size: "medium",
|
||||||
children: (0,external_wp_i18n_namespaceObject.__)('Would you like to privately publish this post now?')
|
children: (0,external_wp_i18n_namespaceObject.__)('Would you like to privately publish this post now?')
|
||||||
})]
|
})]
|
||||||
});
|
});
|
||||||
|
@ -17992,6 +17971,7 @@ function PostTrash() {
|
||||||
onConfirm: handleConfirm,
|
onConfirm: handleConfirm,
|
||||||
onCancel: () => setShowConfirmDialog(false),
|
onCancel: () => setShowConfirmDialog(false),
|
||||||
confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Move to trash'),
|
confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Move to trash'),
|
||||||
|
size: "medium",
|
||||||
children: (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to move this post to the trash?')
|
children: (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to move this post to the trash?')
|
||||||
})]
|
})]
|
||||||
});
|
});
|
||||||
|
@ -19232,7 +19212,14 @@ function useGlobalStylesUserConfig() {
|
||||||
_links: _links !== null && _links !== void 0 ? _links : {}
|
_links: _links !== null && _links !== void 0 ? _links : {}
|
||||||
};
|
};
|
||||||
}, [settings, styles, _links]);
|
}, [settings, styles, _links]);
|
||||||
const setConfig = (0,external_wp_element_namespaceObject.useCallback)((callback, options = {}) => {
|
const setConfig = (0,external_wp_element_namespaceObject.useCallback)(
|
||||||
|
/**
|
||||||
|
* Set the global styles config.
|
||||||
|
* @param {Function|Object} callbackOrObject If the callbackOrObject is a function, pass the current config to the callback so the consumer can merge values.
|
||||||
|
* Otherwise, overwrite the current config with the incoming object.
|
||||||
|
* @param {Object} options Options for editEntityRecord Core selector.
|
||||||
|
*/
|
||||||
|
(callbackOrObject, options = {}) => {
|
||||||
var _record$styles, _record$settings, _record$_links;
|
var _record$styles, _record$settings, _record$_links;
|
||||||
const record = getEditedEntityRecord('root', 'globalStyles', globalStylesId);
|
const record = getEditedEntityRecord('root', 'globalStyles', globalStylesId);
|
||||||
const currentConfig = {
|
const currentConfig = {
|
||||||
|
@ -19240,7 +19227,7 @@ function useGlobalStylesUserConfig() {
|
||||||
settings: (_record$settings = record?.settings) !== null && _record$settings !== void 0 ? _record$settings : {},
|
settings: (_record$settings = record?.settings) !== null && _record$settings !== void 0 ? _record$settings : {},
|
||||||
_links: (_record$_links = record?._links) !== null && _record$_links !== void 0 ? _record$_links : {}
|
_links: (_record$_links = record?._links) !== null && _record$_links !== void 0 ? _record$_links : {}
|
||||||
};
|
};
|
||||||
const updatedConfig = callback(currentConfig);
|
const updatedConfig = typeof callbackOrObject === 'function' ? callbackOrObject(currentConfig) : callbackOrObject;
|
||||||
editEntityRecord('root', 'globalStyles', globalStylesId, {
|
editEntityRecord('root', 'globalStyles', globalStylesId, {
|
||||||
styles: cleanEmptyObject(updatedConfig.styles) || {},
|
styles: cleanEmptyObject(updatedConfig.styles) || {},
|
||||||
settings: cleanEmptyObject(updatedConfig.settings) || {},
|
settings: cleanEmptyObject(updatedConfig.settings) || {},
|
||||||
|
@ -22663,9 +22650,6 @@ const plus = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(exter
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const preventDefault = event => {
|
|
||||||
event.preventDefault();
|
|
||||||
};
|
|
||||||
function DocumentTools({
|
function DocumentTools({
|
||||||
className,
|
className,
|
||||||
disableBlockTools = false
|
disableBlockTools = false
|
||||||
|
@ -22715,6 +22699,18 @@ function DocumentTools({
|
||||||
isZoomedOutView: __unstableGetEditorMode() === 'zoom-out'
|
isZoomedOutView: __unstableGetEditorMode() === 'zoom-out'
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
const preventDefault = event => {
|
||||||
|
// Because the inserter behaves like a dialog,
|
||||||
|
// if the inserter is opened already then when we click on the toggle button
|
||||||
|
// then the initial click event will close the inserter and then be propagated
|
||||||
|
// to the inserter toggle and it will open it again.
|
||||||
|
// To prevent this we need to stop the propagation of the event.
|
||||||
|
// This won't be necessary when the inserter no longer behaves like a dialog.
|
||||||
|
|
||||||
|
if (isInserterOpened) {
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
};
|
||||||
const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
|
const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
|
||||||
const isWideViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('wide');
|
const isWideViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('wide');
|
||||||
|
|
||||||
|
@ -24158,6 +24154,7 @@ function EditTemplateBlocksNotification({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onCancel: () => setIsDialogOpen(false),
|
onCancel: () => setIsDialogOpen(false),
|
||||||
|
size: "medium",
|
||||||
children: (0,external_wp_i18n_namespaceObject.__)('You’ve tried to select a block that is part of a template, which may be used on other posts and pages. Would you like to edit the template?')
|
children: (0,external_wp_i18n_namespaceObject.__)('You’ve tried to select a block that is part of a template, which may be used on other posts and pages. Would you like to edit the template?')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -25632,7 +25629,7 @@ const duplicatePostAction = {
|
||||||
});
|
});
|
||||||
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: Title of the created template e.g: "Category".
|
// translators: %s: Title of the created template e.g: "Category".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), newItem.title?.rendered || title), {
|
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(newItem.title?.rendered || title)), {
|
||||||
id: 'duplicate-post-action',
|
id: 'duplicate-post-action',
|
||||||
type: 'snackbar'
|
type: 'snackbar'
|
||||||
});
|
});
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1295,7 +1295,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/format-library');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/format-library');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/text-color/inline.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/text-color/inline.js
|
||||||
/**
|
/**
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -254,7 +254,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/patterns');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/patterns');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/store/index.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/store/index.js
|
||||||
/**
|
/**
|
||||||
|
@ -1549,6 +1549,148 @@ function ResetOverridesControl(props) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/copy.js
|
||||||
|
/**
|
||||||
|
* WordPress dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
const copy = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
|
||||||
|
xmlns: "http://www.w3.org/2000/svg",
|
||||||
|
viewBox: "0 0 24 24",
|
||||||
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
|
||||||
|
fillRule: "evenodd",
|
||||||
|
clipRule: "evenodd",
|
||||||
|
d: "M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"
|
||||||
|
})
|
||||||
|
});
|
||||||
|
/* harmony default export */ const library_copy = (copy);
|
||||||
|
|
||||||
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/pattern-overrides-block-controls.js
|
||||||
|
/**
|
||||||
|
* WordPress dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const {
|
||||||
|
useBlockDisplayTitle
|
||||||
|
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
|
||||||
|
function PatternOverridesToolbarIndicator({
|
||||||
|
clientIds
|
||||||
|
}) {
|
||||||
|
const isSingleBlockSelected = clientIds.length === 1;
|
||||||
|
const {
|
||||||
|
icon,
|
||||||
|
firstBlockName
|
||||||
|
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||||
|
const {
|
||||||
|
getBlockAttributes,
|
||||||
|
getBlockNamesByClientId
|
||||||
|
} = select(external_wp_blockEditor_namespaceObject.store);
|
||||||
|
const {
|
||||||
|
getBlockType,
|
||||||
|
getActiveBlockVariation
|
||||||
|
} = select(external_wp_blocks_namespaceObject.store);
|
||||||
|
const blockTypeNames = getBlockNamesByClientId(clientIds);
|
||||||
|
const _firstBlockTypeName = blockTypeNames[0];
|
||||||
|
const firstBlockType = getBlockType(_firstBlockTypeName);
|
||||||
|
let _icon;
|
||||||
|
if (isSingleBlockSelected) {
|
||||||
|
const match = getActiveBlockVariation(_firstBlockTypeName, getBlockAttributes(clientIds[0]));
|
||||||
|
// Take into account active block variations.
|
||||||
|
_icon = match?.icon || firstBlockType.icon;
|
||||||
|
} else {
|
||||||
|
const isSelectionOfSameType = new Set(blockTypeNames).size === 1;
|
||||||
|
// When selection consists of blocks of multiple types, display an
|
||||||
|
// appropriate icon to communicate the non-uniformity.
|
||||||
|
_icon = isSelectionOfSameType ? firstBlockType.icon : library_copy;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
icon: _icon,
|
||||||
|
firstBlockName: getBlockAttributes(clientIds[0]).metadata.name
|
||||||
|
};
|
||||||
|
}, [clientIds, isSingleBlockSelected]);
|
||||||
|
const firstBlockTitle = useBlockDisplayTitle({
|
||||||
|
clientId: clientIds[0],
|
||||||
|
maximumLength: 35
|
||||||
|
});
|
||||||
|
const blockDescription = isSingleBlockSelected ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1s: The block type's name; %2s: The block's user-provided name (the same as the override name). */
|
||||||
|
(0,external_wp_i18n_namespaceObject.__)('This %1$s is editable using the "%2$s" override.'), firstBlockTitle.toLowerCase(), firstBlockName) : (0,external_wp_i18n_namespaceObject.__)('These blocks are editable using overrides.');
|
||||||
|
const descriptionId = (0,external_wp_element_namespaceObject.useId)();
|
||||||
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
|
||||||
|
children: toggleProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
|
||||||
|
className: "patterns-pattern-overrides-toolbar-indicator",
|
||||||
|
label: firstBlockTitle,
|
||||||
|
popoverProps: {
|
||||||
|
placement: 'bottom-start',
|
||||||
|
className: 'patterns-pattern-overrides-toolbar-indicator__popover'
|
||||||
|
},
|
||||||
|
icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
||||||
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
|
||||||
|
icon: icon,
|
||||||
|
className: "patterns-pattern-overrides-toolbar-indicator-icon",
|
||||||
|
showColors: true
|
||||||
|
})
|
||||||
|
}),
|
||||||
|
toggleProps: {
|
||||||
|
describedBy: blockDescription,
|
||||||
|
...toggleProps
|
||||||
|
},
|
||||||
|
menuProps: {
|
||||||
|
orientation: 'both',
|
||||||
|
'aria-describedby': descriptionId
|
||||||
|
},
|
||||||
|
children: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
|
||||||
|
id: descriptionId,
|
||||||
|
children: blockDescription
|
||||||
|
})
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function PatternOverridesBlockControls() {
|
||||||
|
const {
|
||||||
|
clientIds,
|
||||||
|
hasPatternOverrides,
|
||||||
|
hasParentPattern
|
||||||
|
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||||
|
const {
|
||||||
|
getBlockAttributes,
|
||||||
|
getSelectedBlockClientIds,
|
||||||
|
getBlockParentsByBlockName
|
||||||
|
} = select(external_wp_blockEditor_namespaceObject.store);
|
||||||
|
const selectedClientIds = getSelectedBlockClientIds();
|
||||||
|
const _hasPatternOverrides = selectedClientIds.every(clientId => {
|
||||||
|
var _getBlockAttributes$m;
|
||||||
|
return Object.values((_getBlockAttributes$m = getBlockAttributes(clientId)?.metadata?.bindings) !== null && _getBlockAttributes$m !== void 0 ? _getBlockAttributes$m : {}).some(binding => binding?.source === PATTERN_OVERRIDES_BINDING_SOURCE);
|
||||||
|
});
|
||||||
|
const _hasParentPattern = selectedClientIds.every(clientId => getBlockParentsByBlockName(clientId, 'core/block', true).length > 0);
|
||||||
|
return {
|
||||||
|
clientIds: selectedClientIds,
|
||||||
|
hasPatternOverrides: _hasPatternOverrides,
|
||||||
|
hasParentPattern: _hasParentPattern
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
return hasPatternOverrides && hasParentPattern ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
|
||||||
|
group: "parent",
|
||||||
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternOverridesToolbarIndicator, {
|
||||||
|
clientIds: clientIds
|
||||||
|
})
|
||||||
|
}) : null;
|
||||||
|
}
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/private-apis.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/private-apis.js
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
|
@ -1565,6 +1707,7 @@ function ResetOverridesControl(props) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const privateApis = {};
|
const privateApis = {};
|
||||||
lock(privateApis, {
|
lock(privateApis, {
|
||||||
OverridesPanel: OverridesPanel,
|
OverridesPanel: OverridesPanel,
|
||||||
|
@ -1579,6 +1722,7 @@ lock(privateApis, {
|
||||||
RenamePatternCategoryModal: RenamePatternCategoryModal,
|
RenamePatternCategoryModal: RenamePatternCategoryModal,
|
||||||
PatternOverridesControls: pattern_overrides_controls,
|
PatternOverridesControls: pattern_overrides_controls,
|
||||||
ResetOverridesControl: ResetOverridesControl,
|
ResetOverridesControl: ResetOverridesControl,
|
||||||
|
PatternOverridesBlockControls: PatternOverridesBlockControls,
|
||||||
useAddPatternCategory: useAddPatternCategory,
|
useAddPatternCategory: useAddPatternCategory,
|
||||||
PATTERN_TYPES: PATTERN_TYPES,
|
PATTERN_TYPES: PATTERN_TYPES,
|
||||||
PATTERN_DEFAULT_CATEGORY: PATTERN_DEFAULT_CATEGORY,
|
PATTERN_DEFAULT_CATEGORY: PATTERN_DEFAULT_CATEGORY,
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -598,7 +598,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/preferences');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/preferences');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences/build-module/components/preferences-modal-tabs/index.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences/build-module/components/preferences-modal-tabs/index.js
|
||||||
/**
|
/**
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -78,7 +78,7 @@ const registeredPrivateApis = [];
|
||||||
* WITHOUT NOTICE. THIS CHANGE WILL BREAK EXISTING THIRD-PARTY CODE. SUCH A
|
* WITHOUT NOTICE. THIS CHANGE WILL BREAK EXISTING THIRD-PARTY CODE. SUCH A
|
||||||
* CHANGE MAY OCCUR IN EITHER A MAJOR OR MINOR RELEASE.
|
* CHANGE MAY OCCUR IN EITHER A MAJOR OR MINOR RELEASE.
|
||||||
*/
|
*/
|
||||||
const requiredConsent = 'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.';
|
const requiredConsent = 'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.';
|
||||||
|
|
||||||
/** @type {boolean} */
|
/** @type {boolean} */
|
||||||
let allowReRegistration;
|
let allowReRegistration;
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
/*! This file is auto-generated */
|
/*! This file is auto-generated */
|
||||||
(()=>{"use strict";var e={d:(r,o)=>{for(var s in o)e.o(o,s)&&!e.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:o[s]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};e.r(r),e.d(r,{__dangerousOptInToUnstableAPIsOnlyForCoreModules:()=>n});const o=["@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/commands","@wordpress/components","@wordpress/core-commands","@wordpress/core-data","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/format-library","@wordpress/interface","@wordpress/patterns","@wordpress/preferences","@wordpress/reusable-blocks","@wordpress/router","@wordpress/dataviews"],s=[];let t;try{t=!1}catch(e){t=!0}const n=(e,r)=>{if(!o.includes(r))throw new Error(`You tried to opt-in to unstable APIs as module "${r}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if(!t&&s.includes(r))throw new Error(`You tried to opt-in to unstable APIs as module "${r}" which is already registered. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress."!==e)throw new Error("You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.");return s.push(r),{lock:i,unlock:a}};function i(e,r){if(!e)throw new Error("Cannot lock an undefined object.");l in e||(e[l]={}),d.set(e[l],r)}function a(e){if(!e)throw new Error("Cannot unlock an undefined object.");if(!(l in e))throw new Error("Cannot unlock an object that was not locked before. ");return d.get(e[l])}const d=new WeakMap,l=Symbol("Private API ID");(window.wp=window.wp||{}).privateApis=r})();
|
(()=>{"use strict";var e={d:(r,o)=>{for(var s in o)e.o(o,s)&&!e.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:o[s]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};e.r(r),e.d(r,{__dangerousOptInToUnstableAPIsOnlyForCoreModules:()=>n});const o=["@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/commands","@wordpress/components","@wordpress/core-commands","@wordpress/core-data","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/format-library","@wordpress/interface","@wordpress/patterns","@wordpress/preferences","@wordpress/reusable-blocks","@wordpress/router","@wordpress/dataviews"],s=[];let t;try{t=!1}catch(e){t=!0}const n=(e,r)=>{if(!o.includes(r))throw new Error(`You tried to opt-in to unstable APIs as module "${r}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if(!t&&s.includes(r))throw new Error(`You tried to opt-in to unstable APIs as module "${r}" which is already registered. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress."!==e)throw new Error("You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.");return s.push(r),{lock:i,unlock:d}};function i(e,r){if(!e)throw new Error("Cannot lock an undefined object.");l in e||(e[l]={}),a.set(e[l],r)}function d(e){if(!e)throw new Error("Cannot unlock an undefined object.");if(!(l in e))throw new Error("Cannot unlock an object that was not locked before. ");return a.get(e[l])}const a=new WeakMap,l=Symbol("Private API ID");(window.wp=window.wp||{}).privateApis=r})();
|
|
@ -257,7 +257,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
|
|
||||||
const {
|
const {
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/reusable-blocks');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/reusable-blocks');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/components/reusable-blocks-menu-items/reusable-block-convert-button.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/components/reusable-blocks-menu-items/reusable-block-convert-button.js
|
||||||
/**
|
/**
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -956,7 +956,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
|
||||||
const {
|
const {
|
||||||
lock,
|
lock,
|
||||||
unlock
|
unlock
|
||||||
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/router');
|
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/router');
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/router/build-module/private-apis.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/router/build-module/private-apis.js
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
/*! This file is auto-generated */
|
/*! This file is auto-generated */
|
||||||
(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{privateApis:()=>j});const n=window.wp.element;function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}var o;!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(o||(o={}));var a=function(t){return t};var i="beforeunload",u="popstate";function c(t){t.preventDefault(),t.returnValue=""}function s(){var t=[];return{get length(){return t.length},push:function(e){return t.push(e),function(){t=t.filter((function(t){return t!==e}))}},call:function(e){t.forEach((function(t){return t&&t(e)}))}}}function l(){return Math.random().toString(36).substr(2,8)}function f(t){var e=t.pathname,n=void 0===e?"/":e,r=t.search,o=void 0===r?"":r,a=t.hash,i=void 0===a?"":a;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function h(t){var e={};if(t){var n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));var r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}const p=window.wp.url,v=function(t){void 0===t&&(t={});var e=t.window,n=void 0===e?document.defaultView:e,p=n.history;function v(){var t=n.location,e=t.pathname,r=t.search,o=t.hash,i=p.state||{};return[i.idx,a({pathname:e,search:r,hash:o,state:i.usr||null,key:i.key||"default"})]}var d=null;n.addEventListener(u,(function(){if(d)P.call(d),d=null;else{var t=o.Pop,e=v(),n=e[0],r=e[1];if(P.length){if(null!=n){var a=y-n;a&&(d={action:t,location:r,retry:function(){L(-1*a)}},L(a))}}else j(t)}}));var w=o.Pop,g=v(),y=g[0],m=g[1],b=s(),P=s();function S(t){return"string"==typeof t?t:f(t)}function O(t,e){return void 0===e&&(e=null),a(r({pathname:m.pathname,hash:"",search:""},"string"==typeof t?h(t):t,{state:e,key:l()}))}function x(t,e){return[{usr:t.state,key:t.key,idx:e},S(t)]}function k(t,e,n){return!P.length||(P.call({action:t,location:e,retry:n}),!1)}function j(t){w=t;var e=v();y=e[0],m=e[1],b.call({action:w,location:m})}function L(t){p.go(t)}null==y&&(y=0,p.replaceState(r({},p.state,{idx:y}),""));var _={get action(){return w},get location(){return m},createHref:S,push:function t(e,r){var a=o.Push,i=O(e,r);if(k(a,i,(function(){t(e,r)}))){var u=x(i,y+1),c=u[0],s=u[1];try{p.pushState(c,"",s)}catch(t){n.location.assign(s)}j(a)}},replace:function t(e,n){var r=o.Replace,a=O(e,n);if(k(r,a,(function(){t(e,n)}))){var i=x(a,y),u=i[0],c=i[1];p.replaceState(u,"",c),j(r)}},go:L,back:function(){L(-1)},forward:function(){L(1)},listen:function(t){return b.push(t)},block:function(t){var e=P.push(t);return 1===P.length&&n.addEventListener(i,c),function(){e(),P.length||n.removeEventListener(i,c)}}};return _}(),d=v.push,w=v.replace;function g(t){if(t.hasOwnProperty("wp_theme_preview"))return t;const e=new URLSearchParams(v.location.search).get("wp_theme_preview");return null===e?t:{...t,wp_theme_preview:e}}const y=new WeakMap;v.push=function(t,e){const n=(0,p.buildQueryString)(g(t));return d.call(v,{search:n},e)},v.replace=function(t,e){const n=(0,p.buildQueryString)(g(t));return w.call(v,{search:n},e)},v.getLocationWithParams=function(){const t=v.location;let e=y.get(t);return e||(e={...t,params:Object.fromEntries(new URLSearchParams(t.search))},y.set(t,e)),e};const m=v,b=window.ReactJSXRuntime,P=(0,n.createContext)(),S=(0,n.createContext)();const O=window.wp.privateApis,{lock:x,unlock:k}=(0,O.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/router"),j={};x(j,{useHistory:function(){return(0,n.useContext)(S)},useLocation:function(){return(0,n.useContext)(P)},RouterProvider:function({children:t}){const e=(0,n.useSyncExternalStore)(m.listen,m.getLocationWithParams,m.getLocationWithParams);return(0,b.jsx)(S.Provider,{value:m,children:(0,b.jsx)(P.Provider,{value:e,children:t})})}}),(window.wp=window.wp||{}).router=e})();
|
(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{privateApis:()=>j});const n=window.wp.element;function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}var o;!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(o||(o={}));var a=function(t){return t};var i="beforeunload",u="popstate";function c(t){t.preventDefault(),t.returnValue=""}function s(){var t=[];return{get length(){return t.length},push:function(e){return t.push(e),function(){t=t.filter((function(t){return t!==e}))}},call:function(e){t.forEach((function(t){return t&&t(e)}))}}}function l(){return Math.random().toString(36).substr(2,8)}function f(t){var e=t.pathname,n=void 0===e?"/":e,r=t.search,o=void 0===r?"":r,a=t.hash,i=void 0===a?"":a;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function h(t){var e={};if(t){var n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));var r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}const p=window.wp.url,d=function(t){void 0===t&&(t={});var e=t.window,n=void 0===e?document.defaultView:e,p=n.history;function d(){var t=n.location,e=t.pathname,r=t.search,o=t.hash,i=p.state||{};return[i.idx,a({pathname:e,search:r,hash:o,state:i.usr||null,key:i.key||"default"})]}var v=null;n.addEventListener(u,(function(){if(v)P.call(v),v=null;else{var t=o.Pop,e=d(),n=e[0],r=e[1];if(P.length){if(null!=n){var a=y-n;a&&(v={action:t,location:r,retry:function(){L(-1*a)}},L(a))}}else j(t)}}));var w=o.Pop,g=d(),y=g[0],m=g[1],b=s(),P=s();function S(t){return"string"==typeof t?t:f(t)}function O(t,e){return void 0===e&&(e=null),a(r({pathname:m.pathname,hash:"",search:""},"string"==typeof t?h(t):t,{state:e,key:l()}))}function x(t,e){return[{usr:t.state,key:t.key,idx:e},S(t)]}function k(t,e,n){return!P.length||(P.call({action:t,location:e,retry:n}),!1)}function j(t){w=t;var e=d();y=e[0],m=e[1],b.call({action:w,location:m})}function L(t){p.go(t)}null==y&&(y=0,p.replaceState(r({},p.state,{idx:y}),""));var _={get action(){return w},get location(){return m},createHref:S,push:function t(e,r){var a=o.Push,i=O(e,r);if(k(a,i,(function(){t(e,r)}))){var u=x(i,y+1),c=u[0],s=u[1];try{p.pushState(c,"",s)}catch(t){n.location.assign(s)}j(a)}},replace:function t(e,n){var r=o.Replace,a=O(e,n);if(k(r,a,(function(){t(e,n)}))){var i=x(a,y),u=i[0],c=i[1];p.replaceState(u,"",c),j(r)}},go:L,back:function(){L(-1)},forward:function(){L(1)},listen:function(t){return b.push(t)},block:function(t){var e=P.push(t);return 1===P.length&&n.addEventListener(i,c),function(){e(),P.length||n.removeEventListener(i,c)}}};return _}(),v=d.push,w=d.replace;function g(t){if(t.hasOwnProperty("wp_theme_preview"))return t;const e=new URLSearchParams(d.location.search).get("wp_theme_preview");return null===e?t:{...t,wp_theme_preview:e}}const y=new WeakMap;d.push=function(t,e){const n=(0,p.buildQueryString)(g(t));return v.call(d,{search:n},e)},d.replace=function(t,e){const n=(0,p.buildQueryString)(g(t));return w.call(d,{search:n},e)},d.getLocationWithParams=function(){const t=d.location;let e=y.get(t);return e||(e={...t,params:Object.fromEntries(new URLSearchParams(t.search))},y.set(t,e)),e};const m=d,b=window.ReactJSXRuntime,P=(0,n.createContext)(),S=(0,n.createContext)();const O=window.wp.privateApis,{lock:x,unlock:k}=(0,O.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/router"),j={};x(j,{useHistory:function(){return(0,n.useContext)(S)},useLocation:function(){return(0,n.useContext)(P)},RouterProvider:function({children:t}){const e=(0,n.useSyncExternalStore)(m.listen,m.getLocationWithParams,m.getLocationWithParams);return(0,b.jsx)(S.Provider,{value:m,children:(0,b.jsx)(P.Provider,{value:e,children:t})})}}),(window.wp=window.wp||{}).router=e})();
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.6-beta2-58433';
|
$wp_version = '6.6-beta2-58434';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
|
Loading…
Reference in New Issue