@wordpress/block-library 9.3.0 → 9.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/build/block/edit.js +38 -23
- package/build/block/edit.js.map +1 -1
- package/build/button/edit.js +1 -1
- package/build/button/edit.js.map +1 -1
- package/build/buttons/index.js +26 -0
- package/build/buttons/index.js.map +1 -1
- package/build/categories/edit.js +20 -3
- package/build/categories/edit.js.map +1 -1
- package/build/categories/index.js +8 -0
- package/build/categories/index.js.map +1 -1
- package/build/columns/index.js +2 -2
- package/build/columns/index.js.map +1 -1
- package/build/cover/edit/inspector-controls.js +2 -1
- package/build/cover/edit/inspector-controls.js.map +1 -1
- package/build/embed/variations.js +39 -34
- package/build/embed/variations.js.map +1 -1
- package/build/footnotes/index.js +1 -1
- package/build/footnotes/index.js.map +1 -1
- package/build/form-input/edit.js +2 -0
- package/build/form-input/edit.js.map +1 -1
- package/build/gallery/index.js +10 -0
- package/build/gallery/index.js.map +1 -1
- package/build/group/deprecated.js +2 -5
- package/build/group/deprecated.js.map +1 -1
- package/build/heading/index.js +14 -1
- package/build/heading/index.js.map +1 -1
- package/build/image/edit.js +1 -1
- package/build/image/edit.js.map +1 -1
- package/build/image/image.js +24 -11
- package/build/image/image.js.map +1 -1
- package/build/image/index.js +3 -0
- package/build/image/index.js.map +1 -1
- package/build/image/view.js +65 -49
- package/build/image/view.js.map +1 -1
- package/build/latest-comments/index.js +9 -0
- package/build/latest-comments/index.js.map +1 -1
- package/build/list/edit.js +3 -3
- package/build/list/edit.js.map +1 -1
- package/build/list-item/edit.js +2 -2
- package/build/list-item/edit.js.map +1 -1
- package/build/list-item/hooks/index.js +0 -7
- package/build/list-item/hooks/index.js.map +1 -1
- package/build/media-text/index.js +12 -0
- package/build/media-text/index.js.map +1 -1
- package/build/navigation/edit/navigation-menu-delete-control.js +1 -0
- package/build/navigation/edit/navigation-menu-delete-control.js.map +1 -1
- package/build/navigation/use-navigation-menu.js +5 -1
- package/build/navigation/use-navigation-menu.js.map +1 -1
- package/build/navigation-link/link-ui.js +13 -17
- package/build/navigation-link/link-ui.js.map +1 -1
- package/build/navigation-submenu/edit.js +0 -11
- package/build/navigation-submenu/edit.js.map +1 -1
- package/build/page-list/edit.js +1 -0
- package/build/page-list/edit.js.map +1 -1
- package/build/page-list-item/edit.js +4 -1
- package/build/page-list-item/edit.js.map +1 -1
- package/build/paragraph/index.js +6 -0
- package/build/paragraph/index.js.map +1 -1
- package/build/paragraph/transforms.js +6 -0
- package/build/paragraph/transforms.js.map +1 -1
- package/build/post-author/index.js +8 -0
- package/build/post-author/index.js.map +1 -1
- package/build/post-author-biography/index.js +3 -0
- package/build/post-author-biography/index.js.map +1 -1
- package/build/post-author-name/index.js +3 -0
- package/build/post-author-name/index.js.map +1 -1
- package/build/post-date/index.js +3 -0
- package/build/post-date/index.js.map +1 -1
- package/build/post-excerpt/edit.js +1 -0
- package/build/post-excerpt/edit.js.map +1 -1
- package/build/post-featured-image/index.js +3 -0
- package/build/post-featured-image/index.js.map +1 -1
- package/build/post-terms/index.js +3 -0
- package/build/post-terms/index.js.map +1 -1
- package/build/post-title/edit.js +5 -1
- package/build/post-title/edit.js.map +1 -1
- package/build/query/edit/inspector-controls/author-control.js +3 -1
- package/build/query/edit/inspector-controls/author-control.js.map +1 -1
- package/build/query/edit/inspector-controls/index.js +24 -6
- package/build/query/edit/inspector-controls/index.js.map +1 -1
- package/build/query/edit/inspector-controls/order-control.js +1 -0
- package/build/query/edit/inspector-controls/order-control.js.map +1 -1
- package/build/query/edit/inspector-controls/parent-control.js +2 -1
- package/build/query/edit/inspector-controls/parent-control.js.map +1 -1
- package/build/query/edit/inspector-controls/sticky-control.js +1 -0
- package/build/query/edit/inspector-controls/sticky-control.js.map +1 -1
- package/build/query/edit/inspector-controls/taxonomy-controls.js +5 -2
- package/build/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
- package/build/query/edit/query-content.js +11 -2
- package/build/query/edit/query-content.js.map +1 -1
- package/build/query/edit/query-placeholder.js +1 -14
- package/build/query/edit/query-placeholder.js.map +1 -1
- package/build/query/utils.js +5 -1
- package/build/query/utils.js.map +1 -1
- package/build/query/variations.js +9 -55
- package/build/query/variations.js.map +1 -1
- package/build/query-pagination-numbers/edit.js +1 -0
- package/build/query-pagination-numbers/edit.js.map +1 -1
- package/build/query-title/edit.js +11 -19
- package/build/query-title/edit.js.map +1 -1
- package/build/query-title/use-archive-label.js +95 -0
- package/build/query-title/use-archive-label.js.map +1 -0
- package/build/quote/index.js +15 -1
- package/build/quote/index.js.map +1 -1
- package/build/search/index.js +3 -0
- package/build/search/index.js.map +1 -1
- package/build/site-logo/edit.js +4 -1
- package/build/site-logo/edit.js.map +1 -1
- package/build/site-tagline/edit.js +5 -2
- package/build/site-tagline/edit.js.map +1 -1
- package/build/site-tagline/index.js +6 -1
- package/build/site-tagline/index.js.map +1 -1
- package/build/site-title/edit.js +4 -1
- package/build/site-title/edit.js.map +1 -1
- package/build/site-title/index.js +6 -1
- package/build/site-title/index.js.map +1 -1
- package/build/social-link/icons/soundcloud.js +1 -1
- package/build/social-link/icons/soundcloud.js.map +1 -1
- package/build/social-links/index.js +12 -0
- package/build/social-links/index.js.map +1 -1
- package/build/tag-cloud/edit.js +4 -1
- package/build/tag-cloud/edit.js.map +1 -1
- package/build/template-part/edit/index.js +5 -3
- package/build/template-part/edit/index.js.map +1 -1
- package/build/template-part/edit/inner-blocks.js +8 -3
- package/build/template-part/edit/inner-blocks.js.map +1 -1
- package/build/template-part/edit/placeholder.js +23 -3
- package/build/template-part/edit/placeholder.js.map +1 -1
- package/build/template-part/edit/title-modal.js +20 -8
- package/build/template-part/edit/title-modal.js.map +1 -1
- package/build/term-description/index.js +12 -0
- package/build/term-description/index.js.map +1 -1
- package/build/utils/hooks.js +5 -1
- package/build/utils/hooks.js.map +1 -1
- package/build-module/block/edit.js +38 -23
- package/build-module/block/edit.js.map +1 -1
- package/build-module/button/edit.js +1 -1
- package/build-module/button/edit.js.map +1 -1
- package/build-module/buttons/index.js +26 -0
- package/build-module/buttons/index.js.map +1 -1
- package/build-module/categories/edit.js +21 -4
- package/build-module/categories/edit.js.map +1 -1
- package/build-module/categories/index.js +8 -0
- package/build-module/categories/index.js.map +1 -1
- package/build-module/columns/index.js +2 -2
- package/build-module/columns/index.js.map +1 -1
- package/build-module/cover/edit/inspector-controls.js +2 -1
- package/build-module/cover/edit/inspector-controls.js.map +1 -1
- package/build-module/embed/variations.js +40 -35
- package/build-module/embed/variations.js.map +1 -1
- package/build-module/footnotes/index.js +1 -1
- package/build-module/footnotes/index.js.map +1 -1
- package/build-module/form-input/edit.js +2 -0
- package/build-module/form-input/edit.js.map +1 -1
- package/build-module/gallery/index.js +10 -0
- package/build-module/gallery/index.js.map +1 -1
- package/build-module/group/deprecated.js +2 -5
- package/build-module/group/deprecated.js.map +1 -1
- package/build-module/heading/index.js +14 -1
- package/build-module/heading/index.js.map +1 -1
- package/build-module/image/edit.js +1 -1
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/image.js +25 -12
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/index.js +3 -0
- package/build-module/image/index.js.map +1 -1
- package/build-module/image/view.js +65 -49
- package/build-module/image/view.js.map +1 -1
- package/build-module/latest-comments/index.js +9 -0
- package/build-module/latest-comments/index.js.map +1 -1
- package/build-module/list/edit.js +3 -3
- package/build-module/list/edit.js.map +1 -1
- package/build-module/list-item/edit.js +2 -2
- package/build-module/list-item/edit.js.map +1 -1
- package/build-module/list-item/hooks/index.js +0 -1
- package/build-module/list-item/hooks/index.js.map +1 -1
- package/build-module/media-text/index.js +12 -0
- package/build-module/media-text/index.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-delete-control.js +1 -0
- package/build-module/navigation/edit/navigation-menu-delete-control.js.map +1 -1
- package/build-module/navigation/use-navigation-menu.js +5 -1
- package/build-module/navigation/use-navigation-menu.js.map +1 -1
- package/build-module/navigation-link/link-ui.js +13 -17
- package/build-module/navigation-link/link-ui.js.map +1 -1
- package/build-module/navigation-submenu/edit.js +0 -11
- package/build-module/navigation-submenu/edit.js.map +1 -1
- package/build-module/page-list/edit.js +1 -0
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/page-list-item/edit.js +4 -1
- package/build-module/page-list-item/edit.js.map +1 -1
- package/build-module/paragraph/index.js +6 -0
- package/build-module/paragraph/index.js.map +1 -1
- package/build-module/paragraph/transforms.js +6 -0
- package/build-module/paragraph/transforms.js.map +1 -1
- package/build-module/post-author/index.js +8 -0
- package/build-module/post-author/index.js.map +1 -1
- package/build-module/post-author-biography/index.js +3 -0
- package/build-module/post-author-biography/index.js.map +1 -1
- package/build-module/post-author-name/index.js +3 -0
- package/build-module/post-author-name/index.js.map +1 -1
- package/build-module/post-date/index.js +3 -0
- package/build-module/post-date/index.js.map +1 -1
- package/build-module/post-excerpt/edit.js +1 -0
- package/build-module/post-excerpt/edit.js.map +1 -1
- package/build-module/post-featured-image/index.js +3 -0
- package/build-module/post-featured-image/index.js.map +1 -1
- package/build-module/post-terms/index.js +3 -0
- package/build-module/post-terms/index.js.map +1 -1
- package/build-module/post-title/edit.js +5 -1
- package/build-module/post-title/edit.js.map +1 -1
- package/build-module/query/edit/inspector-controls/author-control.js +3 -1
- package/build-module/query/edit/inspector-controls/author-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/index.js +25 -7
- package/build-module/query/edit/inspector-controls/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/order-control.js +1 -0
- package/build-module/query/edit/inspector-controls/order-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/parent-control.js +2 -1
- package/build-module/query/edit/inspector-controls/parent-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/sticky-control.js +1 -0
- package/build-module/query/edit/inspector-controls/sticky-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/taxonomy-controls.js +6 -4
- package/build-module/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
- package/build-module/query/edit/query-content.js +11 -2
- package/build-module/query/edit/query-content.js.map +1 -1
- package/build-module/query/edit/query-placeholder.js +1 -14
- package/build-module/query/edit/query-placeholder.js.map +1 -1
- package/build-module/query/utils.js +5 -1
- package/build-module/query/utils.js.map +1 -1
- package/build-module/query/variations.js +4 -50
- package/build-module/query/variations.js.map +1 -1
- package/build-module/query-pagination-numbers/edit.js +1 -0
- package/build-module/query-pagination-numbers/edit.js.map +1 -1
- package/build-module/query-title/edit.js +12 -20
- package/build-module/query-title/edit.js.map +1 -1
- package/build-module/query-title/use-archive-label.js +88 -0
- package/build-module/query-title/use-archive-label.js.map +1 -0
- package/build-module/quote/index.js +15 -1
- package/build-module/quote/index.js.map +1 -1
- package/build-module/search/index.js +3 -0
- package/build-module/search/index.js.map +1 -1
- package/build-module/site-logo/edit.js +4 -1
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/site-tagline/edit.js +5 -2
- package/build-module/site-tagline/edit.js.map +1 -1
- package/build-module/site-tagline/index.js +6 -1
- package/build-module/site-tagline/index.js.map +1 -1
- package/build-module/site-title/edit.js +4 -1
- package/build-module/site-title/edit.js.map +1 -1
- package/build-module/site-title/index.js +6 -1
- package/build-module/site-title/index.js.map +1 -1
- package/build-module/social-link/icons/soundcloud.js +1 -1
- package/build-module/social-link/icons/soundcloud.js.map +1 -1
- package/build-module/social-links/index.js +12 -0
- package/build-module/social-links/index.js.map +1 -1
- package/build-module/tag-cloud/edit.js +4 -1
- package/build-module/tag-cloud/edit.js.map +1 -1
- package/build-module/template-part/edit/index.js +5 -3
- package/build-module/template-part/edit/index.js.map +1 -1
- package/build-module/template-part/edit/inner-blocks.js +8 -3
- package/build-module/template-part/edit/inner-blocks.js.map +1 -1
- package/build-module/template-part/edit/placeholder.js +23 -3
- package/build-module/template-part/edit/placeholder.js.map +1 -1
- package/build-module/template-part/edit/title-modal.js +20 -8
- package/build-module/template-part/edit/title-modal.js.map +1 -1
- package/build-module/term-description/index.js +12 -0
- package/build-module/term-description/index.js.map +1 -1
- package/build-module/utils/hooks.js +5 -1
- package/build-module/utils/hooks.js.map +1 -1
- package/build-style/categories/editor-rtl.css +4 -0
- package/build-style/categories/editor.css +4 -0
- package/build-style/categories/style-rtl.css +4 -0
- package/build-style/categories/style.css +4 -0
- package/build-style/editor-rtl.css +13 -12
- package/build-style/editor.css +13 -12
- package/build-style/image/editor-rtl.css +8 -4
- package/build-style/image/editor.css +8 -4
- package/build-style/image/style-rtl.css +19 -0
- package/build-style/image/style.css +19 -0
- package/build-style/list/style-rtl.css +1 -1
- package/build-style/list/style.css +1 -1
- package/build-style/navigation/style-rtl.css +1 -4
- package/build-style/navigation/style.css +1 -4
- package/build-style/post-comments-form/style-rtl.css +1 -1
- package/build-style/post-comments-form/style.css +1 -1
- package/build-style/query/editor-rtl.css +0 -7
- package/build-style/query/editor.css +0 -7
- package/build-style/search/editor-rtl.css +1 -1
- package/build-style/search/editor.css +1 -1
- package/build-style/social-links/style-rtl.css +2 -2
- package/build-style/social-links/style.css +2 -2
- package/build-style/style-rtl.css +29 -8
- package/build-style/style.css +29 -8
- package/build-style/term-description/style-rtl.css +1 -0
- package/build-style/term-description/style.css +1 -0
- package/package.json +35 -35
- package/src/block/edit.js +58 -27
- package/src/block/test/edit.native.js +6 -2
- package/src/button/edit.js +1 -1
- package/src/button/index.php +2 -2
- package/src/buttons/block.json +20 -0
- package/src/buttons/index.js +6 -0
- package/src/categories/block.json +8 -0
- package/src/categories/edit.js +32 -4
- package/src/categories/editor.scss +4 -0
- package/src/categories/index.php +4 -1
- package/src/categories/style.scss +4 -0
- package/src/columns/index.js +1 -1
- package/src/cover/edit/inspector-controls.js +1 -0
- package/src/embed/test/__snapshots__/index.native.js.snap +8 -8
- package/src/embed/test/index.js +1 -1
- package/src/embed/test/index.native.js +24 -23
- package/src/embed/variations.js +43 -35
- package/src/footnotes/index.js +1 -2
- package/src/form-input/edit.js +2 -0
- package/src/gallery/block.json +10 -0
- package/src/group/deprecated.js +3 -7
- package/src/heading/block.json +12 -0
- package/src/heading/index.js +1 -0
- package/src/image/block.json +3 -0
- package/src/image/edit.js +1 -1
- package/src/image/editor.scss +6 -1
- package/src/image/image.js +55 -35
- package/src/image/index.php +32 -15
- package/src/image/style.scss +22 -0
- package/src/image/test/edit.native.js +1 -0
- package/src/image/view.js +69 -49
- package/src/latest-comments/block.json +9 -0
- package/src/list/edit.js +3 -3
- package/src/list/style.scss +1 -1
- package/src/list-item/edit.js +2 -2
- package/src/list-item/hooks/index.js +0 -1
- package/src/media-text/block.json +12 -0
- package/src/navigation/edit/navigation-menu-delete-control.js +1 -0
- package/src/navigation/index.php +1 -1
- package/src/navigation/style.scss +4 -9
- package/src/navigation/test/use-navigation-menu.js +54 -15
- package/src/navigation/use-navigation-menu.js +5 -1
- package/src/navigation-link/link-ui.js +8 -14
- package/src/navigation-submenu/edit.js +1 -13
- package/src/page-list/edit.js +1 -0
- package/src/page-list-item/edit.js +4 -4
- package/src/paragraph/block.json +6 -0
- package/src/post-author/index.js +8 -0
- package/src/post-author-biography/block.json +3 -0
- package/src/post-author-name/block.json +3 -0
- package/src/post-comments-form/style.scss +1 -1
- package/src/post-date/block.json +3 -0
- package/src/post-excerpt/edit.js +1 -0
- package/src/post-featured-image/block.json +3 -0
- package/src/post-terms/block.json +3 -0
- package/src/post-title/edit.js +5 -5
- package/src/query/edit/inspector-controls/author-control.js +2 -0
- package/src/query/edit/inspector-controls/index.js +41 -14
- package/src/query/edit/inspector-controls/order-control.js +1 -0
- package/src/query/edit/inspector-controls/parent-control.js +1 -0
- package/src/query/edit/inspector-controls/sticky-control.js +1 -0
- package/src/query/edit/inspector-controls/taxonomy-controls.js +8 -3
- package/src/query/edit/query-content.js +17 -3
- package/src/query/edit/query-placeholder.js +1 -21
- package/src/query/editor.scss +0 -9
- package/src/query/utils.js +4 -0
- package/src/query/variations.js +4 -46
- package/src/query-pagination-numbers/edit.js +1 -0
- package/src/query-title/edit.js +10 -17
- package/src/query-title/use-archive-label.js +99 -0
- package/src/quote/block.json +15 -1
- package/src/search/block.json +3 -0
- package/src/search/editor.scss +1 -1
- package/src/site-logo/edit.js +4 -1
- package/src/site-tagline/block.json +6 -1
- package/src/site-tagline/edit.js +5 -2
- package/src/site-title/edit.js +4 -1
- package/src/site-title/index.js +6 -1
- package/src/social-link/icons/soundcloud.js +1 -1
- package/src/social-link/socials-with-bg.scss +1 -1
- package/src/social-link/socials-without-bg.scss +1 -1
- package/src/social-links/block.json +12 -0
- package/src/tag-cloud/edit.js +7 -1
- package/src/template-part/edit/index.js +5 -3
- package/src/template-part/edit/inner-blocks.js +8 -5
- package/src/template-part/edit/placeholder.js +31 -6
- package/src/template-part/edit/title-modal.js +18 -4
- package/src/term-description/block.json +12 -0
- package/src/term-description/style.scss +2 -0
- package/src/utils/hooks.js +5 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/build/list-item/hooks/use-split.js +0 -39
- package/build/list-item/hooks/use-split.js.map +0 -1
- package/build-module/list-item/hooks/use-split.js +0 -32
- package/build-module/list-item/hooks/use-split.js.map +0 -1
- package/src/list-item/hooks/use-split.js +0 -33
|
@@ -13,7 +13,7 @@ export default function TitleModal({
|
|
|
13
13
|
}) {
|
|
14
14
|
// Restructure onCreate to set the blocks on local state.
|
|
15
15
|
// Add modal to confirm title and trigger onCreate.
|
|
16
|
-
const [title, setTitle] = useState(
|
|
16
|
+
const [title, setTitle] = useState('');
|
|
17
17
|
const submitForCreation = event => {
|
|
18
18
|
event.preventDefault();
|
|
19
19
|
onSubmit(title);
|
|
@@ -21,27 +21,39 @@ export default function TitleModal({
|
|
|
21
21
|
return /*#__PURE__*/_jsx(Modal, {
|
|
22
22
|
title: sprintf(
|
|
23
23
|
// Translators: %s as template part area title ("Header", "Footer", etc.).
|
|
24
|
-
__('
|
|
25
|
-
overlayClassName: "wp-block-template-part__placeholder-create-new__title-form",
|
|
24
|
+
__('Create new %s'), areaLabel.toLowerCase()),
|
|
26
25
|
onRequestClose: onClose,
|
|
26
|
+
focusOnMount: "firstContentElement",
|
|
27
|
+
size: "small",
|
|
27
28
|
children: /*#__PURE__*/_jsx("form", {
|
|
28
29
|
onSubmit: submitForCreation,
|
|
29
30
|
children: /*#__PURE__*/_jsxs(VStack, {
|
|
30
31
|
spacing: "5",
|
|
31
32
|
children: [/*#__PURE__*/_jsx(TextControl, {
|
|
32
|
-
__nextHasNoMarginBottom: true,
|
|
33
33
|
label: __('Name'),
|
|
34
34
|
value: title,
|
|
35
|
-
onChange: setTitle
|
|
36
|
-
|
|
35
|
+
onChange: setTitle,
|
|
36
|
+
placeholder: __('Custom Template Part'),
|
|
37
|
+
__nextHasNoMarginBottom: true,
|
|
38
|
+
__next40pxDefaultSize: true
|
|
39
|
+
}), /*#__PURE__*/_jsxs(HStack, {
|
|
37
40
|
justify: "right",
|
|
38
|
-
children: /*#__PURE__*/_jsx(Button, {
|
|
41
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
42
|
+
__next40pxDefaultSize: true,
|
|
43
|
+
variant: "tertiary",
|
|
44
|
+
onClick: () => {
|
|
45
|
+
onClose();
|
|
46
|
+
setTitle('');
|
|
47
|
+
},
|
|
48
|
+
children: __('Cancel')
|
|
49
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
39
50
|
variant: "primary",
|
|
40
51
|
type: "submit",
|
|
41
52
|
accessibleWhenDisabled: true,
|
|
42
53
|
disabled: !title.length,
|
|
54
|
+
__next40pxDefaultSize: true,
|
|
43
55
|
children: __('Create')
|
|
44
|
-
})
|
|
56
|
+
})]
|
|
45
57
|
})]
|
|
46
58
|
})
|
|
47
59
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useState","__","sprintf","TextControl","Button","Modal","__experimentalHStack","HStack","__experimentalVStack","VStack","jsx","_jsx","jsxs","_jsxs","TitleModal","areaLabel","onClose","onSubmit","title","setTitle","submitForCreation","event","preventDefault","toLowerCase","
|
|
1
|
+
{"version":3,"names":["useState","__","sprintf","TextControl","Button","Modal","__experimentalHStack","HStack","__experimentalVStack","VStack","jsx","_jsx","jsxs","_jsxs","TitleModal","areaLabel","onClose","onSubmit","title","setTitle","submitForCreation","event","preventDefault","toLowerCase","onRequestClose","focusOnMount","size","children","spacing","label","value","onChange","placeholder","__nextHasNoMarginBottom","__next40pxDefaultSize","justify","variant","onClick","type","accessibleWhenDisabled","disabled","length"],"sources":["@wordpress/block-library/src/template-part/edit/title-modal.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useState } from '@wordpress/element';\nimport { __, sprintf } from '@wordpress/i18n';\nimport {\n\tTextControl,\n\tButton,\n\tModal,\n\t__experimentalHStack as HStack,\n\t__experimentalVStack as VStack,\n} from '@wordpress/components';\n\nexport default function TitleModal( { areaLabel, onClose, onSubmit } ) {\n\t// Restructure onCreate to set the blocks on local state.\n\t// Add modal to confirm title and trigger onCreate.\n\tconst [ title, setTitle ] = useState( '' );\n\n\tconst submitForCreation = ( event ) => {\n\t\tevent.preventDefault();\n\t\tonSubmit( title );\n\t};\n\n\treturn (\n\t\t<Modal\n\t\t\ttitle={ sprintf(\n\t\t\t\t// Translators: %s as template part area title (\"Header\", \"Footer\", etc.).\n\t\t\t\t__( 'Create new %s' ),\n\t\t\t\tareaLabel.toLowerCase()\n\t\t\t) }\n\t\t\tonRequestClose={ onClose }\n\t\t\tfocusOnMount=\"firstContentElement\"\n\t\t\tsize=\"small\"\n\t\t>\n\t\t\t<form onSubmit={ submitForCreation }>\n\t\t\t\t<VStack spacing=\"5\">\n\t\t\t\t\t<TextControl\n\t\t\t\t\t\tlabel={ __( 'Name' ) }\n\t\t\t\t\t\tvalue={ title }\n\t\t\t\t\t\tonChange={ setTitle }\n\t\t\t\t\t\tplaceholder={ __( 'Custom Template Part' ) }\n\t\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\t\t__next40pxDefaultSize\n\t\t\t\t\t/>\n\t\t\t\t\t<HStack justify=\"right\">\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t__next40pxDefaultSize\n\t\t\t\t\t\t\tvariant=\"tertiary\"\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\tsetTitle( '' );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Cancel' ) }\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t\ttype=\"submit\"\n\t\t\t\t\t\t\taccessibleWhenDisabled\n\t\t\t\t\t\t\tdisabled={ ! title.length }\n\t\t\t\t\t\t\t__next40pxDefaultSize\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Create' ) }\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</HStack>\n\t\t\t\t</VStack>\n\t\t\t</form>\n\t\t</Modal>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,EAAE,EAAEC,OAAO,QAAQ,iBAAiB;AAC7C,SACCC,WAAW,EACXC,MAAM,EACNC,KAAK,EACLC,oBAAoB,IAAIC,MAAM,EAC9BC,oBAAoB,IAAIC,MAAM,QACxB,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAE/B,eAAe,SAASC,UAAUA,CAAE;EAAEC,SAAS;EAAEC,OAAO;EAAEC;AAAS,CAAC,EAAG;EACtE;EACA;EACA,MAAM,CAAEC,KAAK,EAAEC,QAAQ,CAAE,GAAGnB,QAAQ,CAAE,EAAG,CAAC;EAE1C,MAAMoB,iBAAiB,GAAKC,KAAK,IAAM;IACtCA,KAAK,CAACC,cAAc,CAAC,CAAC;IACtBL,QAAQ,CAAEC,KAAM,CAAC;EAClB,CAAC;EAED,oBACCP,IAAA,CAACN,KAAK;IACLa,KAAK,EAAGhB,OAAO;IACd;IACAD,EAAE,CAAE,eAAgB,CAAC,EACrBc,SAAS,CAACQ,WAAW,CAAC,CACvB,CAAG;IACHC,cAAc,EAAGR,OAAS;IAC1BS,YAAY,EAAC,qBAAqB;IAClCC,IAAI,EAAC,OAAO;IAAAC,QAAA,eAEZhB,IAAA;MAAMM,QAAQ,EAAGG,iBAAmB;MAAAO,QAAA,eACnCd,KAAA,CAACJ,MAAM;QAACmB,OAAO,EAAC,GAAG;QAAAD,QAAA,gBAClBhB,IAAA,CAACR,WAAW;UACX0B,KAAK,EAAG5B,EAAE,CAAE,MAAO,CAAG;UACtB6B,KAAK,EAAGZ,KAAO;UACfa,QAAQ,EAAGZ,QAAU;UACrBa,WAAW,EAAG/B,EAAE,CAAE,sBAAuB,CAAG;UAC5CgC,uBAAuB;UACvBC,qBAAqB;QAAA,CACrB,CAAC,eACFrB,KAAA,CAACN,MAAM;UAAC4B,OAAO,EAAC,OAAO;UAAAR,QAAA,gBACtBhB,IAAA,CAACP,MAAM;YACN8B,qBAAqB;YACrBE,OAAO,EAAC,UAAU;YAClBC,OAAO,EAAGA,CAAA,KAAM;cACfrB,OAAO,CAAC,CAAC;cACTG,QAAQ,CAAE,EAAG,CAAC;YACf,CAAG;YAAAQ,QAAA,EAED1B,EAAE,CAAE,QAAS;UAAC,CACT,CAAC,eACTU,IAAA,CAACP,MAAM;YACNgC,OAAO,EAAC,SAAS;YACjBE,IAAI,EAAC,QAAQ;YACbC,sBAAsB;YACtBC,QAAQ,EAAG,CAAEtB,KAAK,CAACuB,MAAQ;YAC3BP,qBAAqB;YAAAP,QAAA,EAEnB1B,EAAE,CAAE,QAAS;UAAC,CACT,CAAC;QAAA,CACF,CAAC;MAAA,CACF;IAAC,CACJ;EAAC,CACD,CAAC;AAEV","ignoreList":[]}
|
|
@@ -49,6 +49,18 @@ const metadata = {
|
|
|
49
49
|
},
|
|
50
50
|
interactivity: {
|
|
51
51
|
clientNavigation: true
|
|
52
|
+
},
|
|
53
|
+
__experimentalBorder: {
|
|
54
|
+
radius: true,
|
|
55
|
+
color: true,
|
|
56
|
+
width: true,
|
|
57
|
+
style: true,
|
|
58
|
+
__experimentalDefaultControls: {
|
|
59
|
+
radius: true,
|
|
60
|
+
color: true,
|
|
61
|
+
width: true,
|
|
62
|
+
style: true
|
|
63
|
+
}
|
|
52
64
|
}
|
|
53
65
|
}
|
|
54
66
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["termDescription","icon","initBlock","metadata","$schema","apiVersion","name","title","category","description","textdomain","attributes","textAlign","type","supports","align","html","color","link","__experimentalDefaultControls","background","text","spacing","padding","margin","typography","fontSize","lineHeight","__experimentalFontFamily","__experimentalFontWeight","__experimentalFontStyle","__experimentalTextTransform","__experimentalTextDecoration","__experimentalLetterSpacing","interactivity","clientNavigation","edit","settings","init"],"sources":["@wordpress/block-library/src/term-description/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { termDescription as icon } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport metadata from './block.json';\nimport edit from './edit';\n\nconst { name } = metadata;\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\tedit,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,eAAe,IAAIC,IAAI,QAAQ,kBAAkB;;AAE1D;AACA;AACA;AACA,OAAOC,SAAS,MAAM,qBAAqB;AAAC,MAAAC,QAAA;EAAAC,OAAA;EAAAC,UAAA;EAAAC,IAAA;EAAAC,KAAA;EAAAC,QAAA;EAAAC,WAAA;EAAAC,UAAA;EAAAC,UAAA;IAAAC,SAAA;MAAAC,IAAA;IAAA;EAAA;EAAAC,QAAA;IAAAC,KAAA;IAAAC,IAAA;IAAAC,KAAA;MAAAC,IAAA;MAAAC,6BAAA;QAAAC,UAAA;QAAAC,IAAA;MAAA;IAAA;IAAAC,OAAA;MAAAC,OAAA;MAAAC,MAAA;IAAA;IAAAC,UAAA;MAAAC,QAAA;MAAAC,UAAA;MAAAC,wBAAA;MAAAC,wBAAA;MAAAC,uBAAA;MAAAC,2BAAA;MAAAC,4BAAA;MAAAC,2BAAA;MAAAd,6BAAA;QAAAO,QAAA;MAAA;IAAA;IAAAQ,aAAA;MAAAC,gBAAA;IAAA;EAAA;AAAA;AAE5C,OAAOC,IAAI,MAAM,QAAQ;AAEzB,MAAM;
|
|
1
|
+
{"version":3,"names":["termDescription","icon","initBlock","metadata","$schema","apiVersion","name","title","category","description","textdomain","attributes","textAlign","type","supports","align","html","color","link","__experimentalDefaultControls","background","text","spacing","padding","margin","typography","fontSize","lineHeight","__experimentalFontFamily","__experimentalFontWeight","__experimentalFontStyle","__experimentalTextTransform","__experimentalTextDecoration","__experimentalLetterSpacing","interactivity","clientNavigation","__experimentalBorder","radius","width","style","edit","settings","init"],"sources":["@wordpress/block-library/src/term-description/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { termDescription as icon } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport metadata from './block.json';\nimport edit from './edit';\n\nconst { name } = metadata;\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\tedit,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,eAAe,IAAIC,IAAI,QAAQ,kBAAkB;;AAE1D;AACA;AACA;AACA,OAAOC,SAAS,MAAM,qBAAqB;AAAC,MAAAC,QAAA;EAAAC,OAAA;EAAAC,UAAA;EAAAC,IAAA;EAAAC,KAAA;EAAAC,QAAA;EAAAC,WAAA;EAAAC,UAAA;EAAAC,UAAA;IAAAC,SAAA;MAAAC,IAAA;IAAA;EAAA;EAAAC,QAAA;IAAAC,KAAA;IAAAC,IAAA;IAAAC,KAAA;MAAAC,IAAA;MAAAC,6BAAA;QAAAC,UAAA;QAAAC,IAAA;MAAA;IAAA;IAAAC,OAAA;MAAAC,OAAA;MAAAC,MAAA;IAAA;IAAAC,UAAA;MAAAC,QAAA;MAAAC,UAAA;MAAAC,wBAAA;MAAAC,wBAAA;MAAAC,uBAAA;MAAAC,2BAAA;MAAAC,4BAAA;MAAAC,2BAAA;MAAAd,6BAAA;QAAAO,QAAA;MAAA;IAAA;IAAAQ,aAAA;MAAAC,gBAAA;IAAA;IAAAC,oBAAA;MAAAC,MAAA;MAAApB,KAAA;MAAAqB,KAAA;MAAAC,KAAA;MAAApB,6BAAA;QAAAkB,MAAA;QAAApB,KAAA;QAAAqB,KAAA;QAAAC,KAAA;MAAA;IAAA;EAAA;AAAA;AAE5C,OAAOC,IAAI,MAAM,QAAQ;AAEzB,MAAM;EAAElC;AAAK,CAAC,GAAGH,QAAQ;AACzB,SAASA,QAAQ,EAAEG,IAAI;AAEvB,OAAO,MAAMmC,QAAQ,GAAG;EACvBxC,IAAI;EACJuC;AACD,CAAC;AAED,OAAO,MAAME,IAAI,GAAGA,CAAA,KAAMxC,SAAS,CAAE;EAAEI,IAAI;EAAEH,QAAQ;EAAEsC;AAAS,CAAE,CAAC","ignoreList":[]}
|
|
@@ -16,7 +16,11 @@ import { useViewportMatch } from '@wordpress/compose';
|
|
|
16
16
|
* @param {string} recordId Record's id.
|
|
17
17
|
*/
|
|
18
18
|
export function useCanEditEntity(kind, name, recordId) {
|
|
19
|
-
return useSelect(select => select(coreStore).
|
|
19
|
+
return useSelect(select => select(coreStore).canUser('update', {
|
|
20
|
+
kind,
|
|
21
|
+
name,
|
|
22
|
+
id: recordId
|
|
23
|
+
}), [kind, name, recordId]);
|
|
20
24
|
}
|
|
21
25
|
|
|
22
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useSelect","useLayoutEffect","useEffect","useRef","getBlobByURL","isBlobURL","revokeBlobURL","store","blockEditorStore","coreStore","useViewportMatch","useCanEditEntity","kind","name","recordId","select","
|
|
1
|
+
{"version":3,"names":["useSelect","useLayoutEffect","useEffect","useRef","getBlobByURL","isBlobURL","revokeBlobURL","store","blockEditorStore","coreStore","useViewportMatch","useCanEditEntity","kind","name","recordId","select","canUser","id","useUploadMediaFromBlobURL","args","latestArgs","hasUploadStarted","getSettings","current","url","file","allowedTypes","onChange","onError","mediaUpload","filesList","onFileChange","media","message","useToolsPanelDropdownMenuProps","isMobile","popoverProps","placement","offset"],"sources":["@wordpress/block-library/src/utils/hooks.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport { useLayoutEffect, useEffect, useRef } from '@wordpress/element';\nimport { getBlobByURL, isBlobURL, revokeBlobURL } from '@wordpress/blob';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useViewportMatch } from '@wordpress/compose';\n\n/**\n * Returns whether the current user can edit the given entity.\n *\n * @param {string} kind Entity kind.\n * @param {string} name Entity name.\n * @param {string} recordId Record's id.\n */\nexport function useCanEditEntity( kind, name, recordId ) {\n\treturn useSelect(\n\t\t( select ) =>\n\t\t\tselect( coreStore ).canUser( 'update', {\n\t\t\t\tkind,\n\t\t\t\tname,\n\t\t\t\tid: recordId,\n\t\t\t} ),\n\t\t[ kind, name, recordId ]\n\t);\n}\n\n/**\n * Handles uploading a media file from a blob URL on mount.\n *\n * @param {Object} args Upload media arguments.\n * @param {string} args.url Blob URL.\n * @param {?Array} args.allowedTypes Array of allowed media types.\n * @param {Function} args.onChange Function called when the media is uploaded.\n * @param {Function} args.onError Function called when an error happens.\n */\nexport function useUploadMediaFromBlobURL( args = {} ) {\n\tconst latestArgs = useRef( args );\n\tconst hasUploadStarted = useRef( false );\n\tconst { getSettings } = useSelect( blockEditorStore );\n\n\tuseLayoutEffect( () => {\n\t\tlatestArgs.current = args;\n\t} );\n\n\tuseEffect( () => {\n\t\t// Uploading is a special effect that can't be canceled via the cleanup method.\n\t\t// The extra check avoids duplicate uploads in development mode (React.StrictMode).\n\t\tif ( hasUploadStarted.current ) {\n\t\t\treturn;\n\t\t}\n\t\tif (\n\t\t\t! latestArgs.current.url ||\n\t\t\t! isBlobURL( latestArgs.current.url )\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst file = getBlobByURL( latestArgs.current.url );\n\t\tif ( ! file ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst { url, allowedTypes, onChange, onError } = latestArgs.current;\n\t\tconst { mediaUpload } = getSettings();\n\n\t\thasUploadStarted.current = true;\n\n\t\tmediaUpload( {\n\t\t\tfilesList: [ file ],\n\t\t\tallowedTypes,\n\t\t\tonFileChange: ( [ media ] ) => {\n\t\t\t\tif ( isBlobURL( media?.url ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\trevokeBlobURL( url );\n\t\t\t\tonChange( media );\n\t\t\t\thasUploadStarted.current = false;\n\t\t\t},\n\t\t\tonError: ( message ) => {\n\t\t\t\trevokeBlobURL( url );\n\t\t\t\tonError( message );\n\t\t\t\thasUploadStarted.current = false;\n\t\t\t},\n\t\t} );\n\t}, [ getSettings ] );\n}\n\nexport function useToolsPanelDropdownMenuProps() {\n\tconst isMobile = useViewportMatch( 'medium', '<' );\n\treturn ! isMobile\n\t\t? {\n\t\t\t\tpopoverProps: {\n\t\t\t\t\tplacement: 'left-start',\n\t\t\t\t\t// For non-mobile, inner sidebar width (248px) - button width (24px) - border (1px) + padding (16px) + spacing (20px)\n\t\t\t\t\toffset: 259,\n\t\t\t\t},\n\t\t }\n\t\t: {};\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,eAAe,EAAEC,SAAS,EAAEC,MAAM,QAAQ,oBAAoB;AACvE,SAASC,YAAY,EAAEC,SAAS,EAAEC,aAAa,QAAQ,iBAAiB;AACxE,SAASC,KAAK,IAAIC,gBAAgB,QAAQ,yBAAyB;AACnE,SAASD,KAAK,IAAIE,SAAS,QAAQ,sBAAsB;AACzD,SAASC,gBAAgB,QAAQ,oBAAoB;;AAErD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAAEC,IAAI,EAAEC,IAAI,EAAEC,QAAQ,EAAG;EACxD,OAAOd,SAAS,CACbe,MAAM,IACPA,MAAM,CAAEN,SAAU,CAAC,CAACO,OAAO,CAAE,QAAQ,EAAE;IACtCJ,IAAI;IACJC,IAAI;IACJI,EAAE,EAAEH;EACL,CAAE,CAAC,EACJ,CAAEF,IAAI,EAAEC,IAAI,EAAEC,QAAQ,CACvB,CAAC;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASI,yBAAyBA,CAAEC,IAAI,GAAG,CAAC,CAAC,EAAG;EACtD,MAAMC,UAAU,GAAGjB,MAAM,CAAEgB,IAAK,CAAC;EACjC,MAAME,gBAAgB,GAAGlB,MAAM,CAAE,KAAM,CAAC;EACxC,MAAM;IAAEmB;EAAY,CAAC,GAAGtB,SAAS,CAAEQ,gBAAiB,CAAC;EAErDP,eAAe,CAAE,MAAM;IACtBmB,UAAU,CAACG,OAAO,GAAGJ,IAAI;EAC1B,CAAE,CAAC;EAEHjB,SAAS,CAAE,MAAM;IAChB;IACA;IACA,IAAKmB,gBAAgB,CAACE,OAAO,EAAG;MAC/B;IACD;IACA,IACC,CAAEH,UAAU,CAACG,OAAO,CAACC,GAAG,IACxB,CAAEnB,SAAS,CAAEe,UAAU,CAACG,OAAO,CAACC,GAAI,CAAC,EACpC;MACD;IACD;IAEA,MAAMC,IAAI,GAAGrB,YAAY,CAAEgB,UAAU,CAACG,OAAO,CAACC,GAAI,CAAC;IACnD,IAAK,CAAEC,IAAI,EAAG;MACb;IACD;IAEA,MAAM;MAAED,GAAG;MAAEE,YAAY;MAAEC,QAAQ;MAAEC;IAAQ,CAAC,GAAGR,UAAU,CAACG,OAAO;IACnE,MAAM;MAAEM;IAAY,CAAC,GAAGP,WAAW,CAAC,CAAC;IAErCD,gBAAgB,CAACE,OAAO,GAAG,IAAI;IAE/BM,WAAW,CAAE;MACZC,SAAS,EAAE,CAAEL,IAAI,CAAE;MACnBC,YAAY;MACZK,YAAY,EAAEA,CAAE,CAAEC,KAAK,CAAE,KAAM;QAC9B,IAAK3B,SAAS,CAAE2B,KAAK,EAAER,GAAI,CAAC,EAAG;UAC9B;QACD;QAEAlB,aAAa,CAAEkB,GAAI,CAAC;QACpBG,QAAQ,CAAEK,KAAM,CAAC;QACjBX,gBAAgB,CAACE,OAAO,GAAG,KAAK;MACjC,CAAC;MACDK,OAAO,EAAIK,OAAO,IAAM;QACvB3B,aAAa,CAAEkB,GAAI,CAAC;QACpBI,OAAO,CAAEK,OAAQ,CAAC;QAClBZ,gBAAgB,CAACE,OAAO,GAAG,KAAK;MACjC;IACD,CAAE,CAAC;EACJ,CAAC,EAAE,CAAED,WAAW,CAAG,CAAC;AACrB;AAEA,OAAO,SAASY,8BAA8BA,CAAA,EAAG;EAChD,MAAMC,QAAQ,GAAGzB,gBAAgB,CAAE,QAAQ,EAAE,GAAI,CAAC;EAClD,OAAO,CAAEyB,QAAQ,GACd;IACAC,YAAY,EAAE;MACbC,SAAS,EAAE,YAAY;MACvB;MACAC,MAAM,EAAE;IACT;EACA,CAAC,GACD,CAAC,CAAC;AACN","ignoreList":[]}
|
|
@@ -205,6 +205,10 @@ div[data-type="core/button"] {
|
|
|
205
205
|
text-align: center;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
+
.wp-block-categories__indentation {
|
|
209
|
+
padding-right: 16px;
|
|
210
|
+
}
|
|
211
|
+
|
|
208
212
|
.wp-block-code code {
|
|
209
213
|
background: none;
|
|
210
214
|
}
|
|
@@ -1221,7 +1225,7 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar {
|
|
|
1221
1225
|
outline: 2px solid transparent !important;
|
|
1222
1226
|
}
|
|
1223
1227
|
|
|
1224
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
1228
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder {
|
|
1225
1229
|
color: #1e1e1e;
|
|
1226
1230
|
background-color: #fff;
|
|
1227
1231
|
box-shadow: inset 0 0 0 1px #1e1e1e;
|
|
@@ -1229,13 +1233,13 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar {
|
|
|
1229
1233
|
filter: none !important;
|
|
1230
1234
|
border-radius: 2px;
|
|
1231
1235
|
}
|
|
1232
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
1236
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder > svg {
|
|
1233
1237
|
opacity: 0;
|
|
1234
1238
|
}
|
|
1235
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
1239
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder .components-placeholder__illustration {
|
|
1236
1240
|
display: none;
|
|
1237
1241
|
}
|
|
1238
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
1242
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder::before {
|
|
1239
1243
|
opacity: 0;
|
|
1240
1244
|
}
|
|
1241
1245
|
.wp-block-image.wp-block-image .block-bindings-media-placeholder-message {
|
|
@@ -1270,6 +1274,10 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1270
1274
|
transform: translate(50%, -50%);
|
|
1271
1275
|
}
|
|
1272
1276
|
|
|
1277
|
+
.wp-block-image__placeholder {
|
|
1278
|
+
aspect-ratio: 4/3;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1273
1281
|
.wp-block-image .components-resizable-box__container {
|
|
1274
1282
|
display: table;
|
|
1275
1283
|
}
|
|
@@ -2226,7 +2234,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2226
2234
|
margin: auto;
|
|
2227
2235
|
}
|
|
2228
2236
|
|
|
2229
|
-
.wp-block-search .wp-block-search__button {
|
|
2237
|
+
.wp-block-search :where(.wp-block-search__button) {
|
|
2230
2238
|
height: auto;
|
|
2231
2239
|
border-radius: initial;
|
|
2232
2240
|
display: flex;
|
|
@@ -2799,13 +2807,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2799
2807
|
z-index: 2;
|
|
2800
2808
|
}
|
|
2801
2809
|
|
|
2802
|
-
.block-library-query-toolspanel__filters .components-form-token-field__help {
|
|
2803
|
-
margin-bottom: 0;
|
|
2804
|
-
}
|
|
2805
|
-
.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child) {
|
|
2806
|
-
margin-bottom: 24px;
|
|
2807
|
-
}
|
|
2808
|
-
|
|
2809
2810
|
@media (min-width: 600px) {
|
|
2810
2811
|
.wp-block-query__enhanced-pagination-modal {
|
|
2811
2812
|
max-width: 480px;
|
package/build-style/editor.css
CHANGED
|
@@ -206,6 +206,10 @@ div[data-type="core/button"] {
|
|
|
206
206
|
text-align: center;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
.wp-block-categories__indentation {
|
|
210
|
+
padding-left: 16px;
|
|
211
|
+
}
|
|
212
|
+
|
|
209
213
|
.wp-block-code code {
|
|
210
214
|
background: none;
|
|
211
215
|
}
|
|
@@ -1230,7 +1234,7 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar {
|
|
|
1230
1234
|
outline: 2px solid transparent !important;
|
|
1231
1235
|
}
|
|
1232
1236
|
|
|
1233
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
1237
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder {
|
|
1234
1238
|
color: #1e1e1e;
|
|
1235
1239
|
background-color: #fff;
|
|
1236
1240
|
box-shadow: inset 0 0 0 1px #1e1e1e;
|
|
@@ -1238,13 +1242,13 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar {
|
|
|
1238
1242
|
filter: none !important;
|
|
1239
1243
|
border-radius: 2px;
|
|
1240
1244
|
}
|
|
1241
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
1245
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder > svg {
|
|
1242
1246
|
opacity: 0;
|
|
1243
1247
|
}
|
|
1244
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
1248
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder .components-placeholder__illustration {
|
|
1245
1249
|
display: none;
|
|
1246
1250
|
}
|
|
1247
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
1251
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder::before {
|
|
1248
1252
|
opacity: 0;
|
|
1249
1253
|
}
|
|
1250
1254
|
.wp-block-image.wp-block-image .block-bindings-media-placeholder-message {
|
|
@@ -1279,6 +1283,10 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1279
1283
|
transform: translate(-50%, -50%);
|
|
1280
1284
|
}
|
|
1281
1285
|
|
|
1286
|
+
.wp-block-image__placeholder {
|
|
1287
|
+
aspect-ratio: 4/3;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1282
1290
|
.wp-block-image .components-resizable-box__container {
|
|
1283
1291
|
display: table;
|
|
1284
1292
|
}
|
|
@@ -2235,7 +2243,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2235
2243
|
margin: auto;
|
|
2236
2244
|
}
|
|
2237
2245
|
|
|
2238
|
-
.wp-block-search .wp-block-search__button {
|
|
2246
|
+
.wp-block-search :where(.wp-block-search__button) {
|
|
2239
2247
|
height: auto;
|
|
2240
2248
|
border-radius: initial;
|
|
2241
2249
|
display: flex;
|
|
@@ -2808,13 +2816,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2808
2816
|
z-index: 2;
|
|
2809
2817
|
}
|
|
2810
2818
|
|
|
2811
|
-
.block-library-query-toolspanel__filters .components-form-token-field__help {
|
|
2812
|
-
margin-bottom: 0;
|
|
2813
|
-
}
|
|
2814
|
-
.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child) {
|
|
2815
|
-
margin-bottom: 24px;
|
|
2816
|
-
}
|
|
2817
|
-
|
|
2818
2819
|
@media (min-width: 600px) {
|
|
2819
2820
|
.wp-block-query__enhanced-pagination-modal {
|
|
2820
2821
|
max-width: 480px;
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
/**
|
|
87
87
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
88
88
|
*/
|
|
89
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
89
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder {
|
|
90
90
|
color: #1e1e1e;
|
|
91
91
|
background-color: #fff;
|
|
92
92
|
box-shadow: inset 0 0 0 1px #1e1e1e;
|
|
@@ -94,13 +94,13 @@
|
|
|
94
94
|
filter: none !important;
|
|
95
95
|
border-radius: 2px;
|
|
96
96
|
}
|
|
97
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
97
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder > svg {
|
|
98
98
|
opacity: 0;
|
|
99
99
|
}
|
|
100
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
100
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder .components-placeholder__illustration {
|
|
101
101
|
display: none;
|
|
102
102
|
}
|
|
103
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
103
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder::before {
|
|
104
104
|
opacity: 0;
|
|
105
105
|
}
|
|
106
106
|
.wp-block-image.wp-block-image .block-bindings-media-placeholder-message {
|
|
@@ -135,6 +135,10 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
135
135
|
transform: translate(50%, -50%);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
+
.wp-block-image__placeholder {
|
|
139
|
+
aspect-ratio: 4/3;
|
|
140
|
+
}
|
|
141
|
+
|
|
138
142
|
.wp-block-image .components-resizable-box__container {
|
|
139
143
|
display: table;
|
|
140
144
|
}
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
/**
|
|
87
87
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
88
88
|
*/
|
|
89
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
89
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder {
|
|
90
90
|
color: #1e1e1e;
|
|
91
91
|
background-color: #fff;
|
|
92
92
|
box-shadow: inset 0 0 0 1px #1e1e1e;
|
|
@@ -94,13 +94,13 @@
|
|
|
94
94
|
filter: none !important;
|
|
95
95
|
border-radius: 2px;
|
|
96
96
|
}
|
|
97
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
97
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder > svg {
|
|
98
98
|
opacity: 0;
|
|
99
99
|
}
|
|
100
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
100
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder .components-placeholder__illustration {
|
|
101
101
|
display: none;
|
|
102
102
|
}
|
|
103
|
-
.wp-block-image.wp-block-image.is-selected .
|
|
103
|
+
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder::before {
|
|
104
104
|
opacity: 0;
|
|
105
105
|
}
|
|
106
106
|
.wp-block-image.wp-block-image .block-bindings-media-placeholder-message {
|
|
@@ -135,6 +135,10 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
135
135
|
transform: translate(-50%, -50%);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
+
.wp-block-image__placeholder {
|
|
139
|
+
aspect-ratio: 4/3;
|
|
140
|
+
}
|
|
141
|
+
|
|
138
142
|
.wp-block-image .components-resizable-box__container {
|
|
139
143
|
display: table;
|
|
140
144
|
}
|
|
@@ -95,6 +95,14 @@
|
|
|
95
95
|
vertical-align: bottom;
|
|
96
96
|
box-sizing: border-box;
|
|
97
97
|
}
|
|
98
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
99
|
+
.wp-block-image img.hide {
|
|
100
|
+
visibility: hidden;
|
|
101
|
+
}
|
|
102
|
+
.wp-block-image img.show {
|
|
103
|
+
animation: show-content-image 0.4s;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
98
106
|
.wp-block-image[style*=border-radius] > a,
|
|
99
107
|
.wp-block-image[style*=border-radius] img {
|
|
100
108
|
border-radius: inherit;
|
|
@@ -338,6 +346,17 @@
|
|
|
338
346
|
}
|
|
339
347
|
}
|
|
340
348
|
|
|
349
|
+
@keyframes show-content-image {
|
|
350
|
+
0% {
|
|
351
|
+
visibility: hidden;
|
|
352
|
+
}
|
|
353
|
+
99% {
|
|
354
|
+
visibility: hidden;
|
|
355
|
+
}
|
|
356
|
+
100% {
|
|
357
|
+
visibility: visible;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
341
360
|
@keyframes turn-on-visibility {
|
|
342
361
|
0% {
|
|
343
362
|
opacity: 0;
|
|
@@ -95,6 +95,14 @@
|
|
|
95
95
|
vertical-align: bottom;
|
|
96
96
|
box-sizing: border-box;
|
|
97
97
|
}
|
|
98
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
99
|
+
.wp-block-image img.hide {
|
|
100
|
+
visibility: hidden;
|
|
101
|
+
}
|
|
102
|
+
.wp-block-image img.show {
|
|
103
|
+
animation: show-content-image 0.4s;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
98
106
|
.wp-block-image[style*=border-radius] > a,
|
|
99
107
|
.wp-block-image[style*=border-radius] img {
|
|
100
108
|
border-radius: inherit;
|
|
@@ -344,6 +352,17 @@
|
|
|
344
352
|
}
|
|
345
353
|
}
|
|
346
354
|
|
|
355
|
+
@keyframes show-content-image {
|
|
356
|
+
0% {
|
|
357
|
+
visibility: hidden;
|
|
358
|
+
}
|
|
359
|
+
99% {
|
|
360
|
+
visibility: hidden;
|
|
361
|
+
}
|
|
362
|
+
100% {
|
|
363
|
+
visibility: visible;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
347
366
|
@keyframes turn-on-visibility {
|
|
348
367
|
0% {
|
|
349
368
|
opacity: 0;
|
|
@@ -132,10 +132,7 @@
|
|
|
132
132
|
.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus, .wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active {
|
|
133
133
|
text-decoration: line-through;
|
|
134
134
|
}
|
|
135
|
-
.wp-block-navigation:where(:
|
|
136
|
-
text-decoration: none;
|
|
137
|
-
}
|
|
138
|
-
.wp-block-navigation:where(:not([class*="has-text-decoration"])) a:focus, .wp-block-navigation:where(:not([class*="has-text-decoration"])) a:active {
|
|
135
|
+
.wp-block-navigation :where(a), .wp-block-navigation :where(a:focus), .wp-block-navigation :where(a:active) {
|
|
139
136
|
text-decoration: none;
|
|
140
137
|
}
|
|
141
138
|
.wp-block-navigation .wp-block-navigation__submenu-icon {
|
|
@@ -132,10 +132,7 @@
|
|
|
132
132
|
.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus, .wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active {
|
|
133
133
|
text-decoration: line-through;
|
|
134
134
|
}
|
|
135
|
-
.wp-block-navigation:where(:
|
|
136
|
-
text-decoration: none;
|
|
137
|
-
}
|
|
138
|
-
.wp-block-navigation:where(:not([class*="has-text-decoration"])) a:focus, .wp-block-navigation:where(:not([class*="has-text-decoration"])) a:active {
|
|
135
|
+
.wp-block-navigation :where(a), .wp-block-navigation :where(a:focus), .wp-block-navigation :where(a:active) {
|
|
139
136
|
text-decoration: none;
|
|
140
137
|
}
|
|
141
138
|
.wp-block-navigation .wp-block-navigation__submenu-icon {
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title) {
|
|
119
119
|
letter-spacing: inherit;
|
|
120
120
|
}
|
|
121
|
-
.wp-block-post-comments-form input[type=submit] {
|
|
121
|
+
.wp-block-post-comments-form :where(input[type="submit"]) {
|
|
122
122
|
box-shadow: none;
|
|
123
123
|
cursor: pointer;
|
|
124
124
|
display: inline-block;
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title) {
|
|
119
119
|
letter-spacing: inherit;
|
|
120
120
|
}
|
|
121
|
-
.wp-block-post-comments-form input[type=submit] {
|
|
121
|
+
.wp-block-post-comments-form :where(input[type="submit"]) {
|
|
122
122
|
box-shadow: none;
|
|
123
123
|
cursor: pointer;
|
|
124
124
|
display: inline-block;
|
|
@@ -131,13 +131,6 @@
|
|
|
131
131
|
z-index: 2;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
.block-library-query-toolspanel__filters .components-form-token-field__help {
|
|
135
|
-
margin-bottom: 0;
|
|
136
|
-
}
|
|
137
|
-
.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child) {
|
|
138
|
-
margin-bottom: 24px;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
134
|
@media (min-width: 600px) {
|
|
142
135
|
.wp-block-query__enhanced-pagination-modal {
|
|
143
136
|
max-width: 480px;
|
|
@@ -131,13 +131,6 @@
|
|
|
131
131
|
z-index: 2;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
.block-library-query-toolspanel__filters .components-form-token-field__help {
|
|
135
|
-
margin-bottom: 0;
|
|
136
|
-
}
|
|
137
|
-
.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child) {
|
|
138
|
-
margin-bottom: 24px;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
134
|
@media (min-width: 600px) {
|
|
142
135
|
.wp-block-query__enhanced-pagination-modal {
|
|
143
136
|
max-width: 480px;
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
color: #fff;
|
|
204
204
|
}
|
|
205
205
|
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-facebook {
|
|
206
|
-
background-color: #
|
|
206
|
+
background-color: #0866ff;
|
|
207
207
|
color: #fff;
|
|
208
208
|
}
|
|
209
209
|
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-fivehundredpx {
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
color: #f45800;
|
|
380
380
|
}
|
|
381
381
|
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-facebook {
|
|
382
|
-
color: #
|
|
382
|
+
color: #0866ff;
|
|
383
383
|
}
|
|
384
384
|
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-fivehundredpx {
|
|
385
385
|
color: #000;
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
color: #fff;
|
|
204
204
|
}
|
|
205
205
|
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-facebook {
|
|
206
|
-
background-color: #
|
|
206
|
+
background-color: #0866ff;
|
|
207
207
|
color: #fff;
|
|
208
208
|
}
|
|
209
209
|
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-fivehundredpx {
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
color: #f45800;
|
|
380
380
|
}
|
|
381
381
|
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-facebook {
|
|
382
|
-
color: #
|
|
382
|
+
color: #0866ff;
|
|
383
383
|
}
|
|
384
384
|
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-fivehundredpx {
|
|
385
385
|
color: #000;
|