@wordpress/block-library 11.0.2-next.v.202609171837.0 → 11.2.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 +44 -1
- package/build/accordion/block.json +4 -1
- package/build/accordion-heading/block.json +1 -0
- package/build/accordion-item/block.json +7 -1
- package/build/accordion-panel/block.json +9 -1
- package/build/archives/block.json +12 -0
- package/build/audio/block.json +8 -0
- package/build/audio/edit.cjs +2 -1
- package/build/audio/edit.cjs.map +2 -2
- package/build/avatar/block.json +4 -0
- package/build/avatar/edit.cjs +31 -1
- package/build/avatar/edit.cjs.map +3 -3
- package/build/breadcrumbs/block.json +3 -0
- package/build/breadcrumbs/edit.cjs.map +3 -3
- package/build/button/block.json +6 -0
- package/build/button/edit.cjs +9 -6
- package/build/button/edit.cjs.map +2 -2
- package/build/buttons/block.json +15 -1
- package/build/categories/block.json +12 -1
- package/build/code/block.json +13 -0
- package/build/column/block.json +9 -0
- package/build/column/edit.cjs +5 -0
- package/build/column/edit.cjs.map +2 -2
- package/build/columns/block.json +13 -0
- package/build/columns/edit.cjs +21 -112
- package/build/columns/edit.cjs.map +3 -3
- package/build/comment-author-name/block.json +3 -0
- package/build/comment-content/block.json +5 -0
- package/build/comment-date/block.json +3 -0
- package/build/comment-edit-link/block.json +3 -0
- package/build/comment-reply-link/block.json +3 -0
- package/build/comments/block.json +10 -0
- package/build/comments/edit/placeholder.cjs +95 -87
- package/build/comments/edit/placeholder.cjs.map +2 -2
- package/build/comments-pagination/block.json +14 -0
- package/build/comments-pagination-next/block.json +3 -0
- package/build/comments-pagination-numbers/block.json +3 -0
- package/build/comments-pagination-previous/block.json +6 -0
- package/build/comments-title/block.json +3 -0
- package/build/cover/block.json +2 -1
- package/build/cover/edit/index.cjs +30 -6
- package/build/cover/edit/index.cjs.map +2 -2
- package/build/cover/edit/inspector-controls.cjs +56 -14
- package/build/cover/edit/inspector-controls.cjs.map +2 -2
- package/build/cover/embed-video-utils.cjs +9 -8
- package/build/cover/embed-video-utils.cjs.map +2 -2
- package/build/cover/view.cjs +21 -0
- package/build/cover/view.cjs.map +7 -0
- package/build/details/block.json +14 -0
- package/build/embed/block.json +6 -1
- package/build/file/block.json +14 -0
- package/build/footnotes/block.json +13 -0
- package/build/gallery/block.json +22 -0
- package/build/gallery/dynamic-gallery.cjs +32 -93
- package/build/gallery/dynamic-gallery.cjs.map +3 -3
- package/build/gallery/edit.cjs +104 -42
- package/build/gallery/edit.cjs.map +2 -2
- package/build/gallery/order-controls.cjs +107 -0
- package/build/gallery/order-controls.cjs.map +7 -0
- package/build/gallery/order-images.cjs +92 -0
- package/build/gallery/order-images.cjs.map +7 -0
- package/build/gallery/order-options.cjs +62 -0
- package/build/gallery/order-options.cjs.map +7 -0
- package/build/gallery/use-dynamic-gallery.cjs +1 -7
- package/build/gallery/use-dynamic-gallery.cjs.map +2 -2
- package/build/gallery/use-get-media.cjs +2 -3
- package/build/gallery/use-get-media.cjs.map +2 -2
- package/build/group/block.json +1 -0
- package/build/group/edit.cjs +3 -3
- package/build/group/edit.cjs.map +2 -2
- package/build/heading/block.json +14 -0
- package/build/home-link/block.json +30 -0
- package/build/home-link/edit.cjs.map +3 -3
- package/build/icon/components/custom-inserter/index.cjs +3 -1
- package/build/icon/components/custom-inserter/index.cjs.map +2 -2
- package/build/icon/edit.cjs +49 -5
- package/build/icon/edit.cjs.map +2 -2
- package/build/image/image.cjs +10 -8
- package/build/image/image.cjs.map +3 -3
- package/build/image/use-open-image-media-editor-modal.cjs +32 -8
- package/build/image/use-open-image-media-editor-modal.cjs.map +2 -2
- package/build/image/view.cjs +44 -50
- package/build/image/view.cjs.map +2 -2
- package/build/latest-comments/block.json +20 -0
- package/build/latest-posts/block.json +14 -0
- package/build/list/block.json +12 -1
- package/build/list-item/block.json +8 -1
- package/build/list-item/index.cjs +4 -0
- package/build/list-item/index.cjs.map +3 -3
- package/build/loginout/block.json +14 -0
- package/build/math/block.json +14 -0
- package/build/media-text/block.json +19 -0
- package/build/navigation/edit/index.cjs +1 -4
- package/build/navigation/edit/index.cjs.map +2 -2
- package/build/navigation-link/link-ui/index.cjs +33 -19
- package/build/navigation-link/link-ui/index.cjs.map +2 -2
- package/build/navigation-link/link-ui/page-creator.cjs.map +3 -3
- package/build/navigation-link/shared/controls.cjs.map +3 -3
- package/build/navigation-link/shared/index.cjs +5 -0
- package/build/navigation-link/shared/index.cjs.map +2 -2
- package/build/navigation-link/shared/use-block-suggestions.cjs +141 -0
- package/build/navigation-link/shared/use-block-suggestions.cjs.map +7 -0
- package/build/navigation-link/shared/use-link-preview.cjs +13 -13
- package/build/navigation-link/shared/use-link-preview.cjs.map +2 -2
- package/build/navigation-overlay-close/block.json +7 -0
- package/build/navigation-submenu/block.json +6 -0
- package/build/navigation-submenu/edit.cjs +9 -1
- package/build/navigation-submenu/edit.cjs.map +3 -3
- package/build/page-list/block.json +14 -0
- package/build/paragraph/block.json +1 -0
- package/build/paragraph/edit.cjs +1 -2
- package/build/paragraph/edit.cjs.map +2 -2
- package/build/playlist/block.json +1 -0
- package/build/post-author-biography/block.json +5 -0
- package/build/post-author-name/block.json +5 -0
- package/build/post-comments-count/block.json +3 -0
- package/build/post-comments-form/block.json +15 -0
- package/build/post-content/block.json +4 -1
- package/build/post-date/block.json +3 -0
- package/build/post-excerpt/block.json +9 -0
- package/build/post-featured-image/block.json +1 -0
- package/build/post-featured-image/edit.cjs +12 -10
- package/build/post-featured-image/edit.cjs.map +2 -2
- package/build/post-navigation-link/block.json +30 -0
- package/build/post-navigation-link/edit.cjs +13 -2
- package/build/post-navigation-link/edit.cjs.map +3 -3
- package/build/post-template/block.json +13 -1
- package/build/post-terms/block.json +10 -0
- package/build/post-time-to-read/block.json +10 -0
- package/build/post-title/block.json +14 -0
- package/build/preformatted/block.json +11 -0
- package/build/pullquote/block.json +3 -1
- package/build/query-no-results/block.json +14 -2
- package/build/query-pagination/block.json +20 -0
- package/build/query-pagination-next/block.json +3 -0
- package/build/query-pagination-numbers/block.json +3 -0
- package/build/query-pagination-previous/block.json +3 -0
- package/build/query-title/block.json +3 -0
- package/build/query-total/block.json +10 -0
- package/build/quote/block.json +3 -0
- package/build/read-more/block.json +11 -0
- package/build/rss/block.json +10 -0
- package/build/search/block.json +2 -1
- package/build/site-tagline/block.json +12 -1
- package/build/site-title/block.json +11 -1
- package/build/social-links/block.json +4 -0
- package/build/social-links/edit.cjs +2 -3
- package/build/social-links/edit.cjs.map +2 -2
- package/build/tab-list/block.json +4 -0
- package/build/tab-list/edit.cjs +3 -1
- package/build/tab-list/edit.cjs.map +3 -3
- package/build/tab-list/save.cjs +3 -1
- package/build/tab-list/save.cjs.map +3 -3
- package/build/tab-panel/block.json +25 -0
- package/build/tab-panel/controls.cjs.map +3 -3
- package/build/tab-panels/block.json +21 -1
- package/build/table-of-contents/block.json +7 -0
- package/build/tabs/block.json +27 -1
- package/build/tag-cloud/block.json +19 -0
- package/build/template-part/edit/selection-modal.cjs.map +1 -1
- package/build/term-count/block.json +12 -0
- package/build/term-description/block.json +13 -0
- package/build/term-name/block.json +16 -1
- package/build/term-template/block.json +14 -1
- package/build/utils/search-patterns.cjs +7 -43
- package/build/utils/search-patterns.cjs.map +3 -3
- package/build/utils/style-state.cjs +4 -6
- package/build/utils/style-state.cjs.map +2 -2
- package/build/utils/waveform-utils.cjs +2 -2
- package/build/utils/waveform-utils.cjs.map +2 -2
- package/build/verse/block.json +4 -0
- package/build/video/block.json +12 -0
- package/build/video/edit.cjs +30 -14
- package/build/video/edit.cjs.map +3 -3
- package/build/video/index.cjs +0 -2
- package/build/video/index.cjs.map +3 -3
- package/build/video/save.cjs +5 -1
- package/build/video/save.cjs.map +3 -3
- package/build-module/accordion/block.json +4 -1
- package/build-module/accordion-heading/block.json +1 -0
- package/build-module/accordion-item/block.json +7 -1
- package/build-module/accordion-panel/block.json +9 -1
- package/build-module/archives/block.json +12 -0
- package/build-module/audio/block.json +8 -0
- package/build-module/audio/edit.mjs +2 -1
- package/build-module/audio/edit.mjs.map +2 -2
- package/build-module/avatar/block.json +4 -0
- package/build-module/avatar/edit.mjs +33 -2
- package/build-module/avatar/edit.mjs.map +2 -2
- package/build-module/breadcrumbs/block.json +3 -0
- package/build-module/breadcrumbs/edit.mjs +3 -3
- package/build-module/breadcrumbs/edit.mjs.map +2 -2
- package/build-module/button/block.json +6 -0
- package/build-module/button/edit.mjs +11 -7
- package/build-module/button/edit.mjs.map +2 -2
- package/build-module/buttons/block.json +15 -1
- package/build-module/categories/block.json +12 -1
- package/build-module/code/block.json +13 -0
- package/build-module/column/block.json +9 -0
- package/build-module/column/edit.mjs +5 -0
- package/build-module/column/edit.mjs.map +2 -2
- package/build-module/columns/block.json +13 -0
- package/build-module/columns/edit.mjs +22 -122
- package/build-module/columns/edit.mjs.map +2 -2
- package/build-module/comment-author-name/block.json +3 -0
- package/build-module/comment-content/block.json +5 -0
- package/build-module/comment-date/block.json +3 -0
- package/build-module/comment-edit-link/block.json +3 -0
- package/build-module/comment-reply-link/block.json +3 -0
- package/build-module/comments/block.json +10 -0
- package/build-module/comments/edit/placeholder.mjs +95 -87
- package/build-module/comments/edit/placeholder.mjs.map +2 -2
- package/build-module/comments-pagination/block.json +14 -0
- package/build-module/comments-pagination-next/block.json +3 -0
- package/build-module/comments-pagination-numbers/block.json +3 -0
- package/build-module/comments-pagination-previous/block.json +6 -0
- package/build-module/comments-title/block.json +3 -0
- package/build-module/cover/block.json +2 -1
- package/build-module/cover/edit/index.mjs +36 -7
- package/build-module/cover/edit/index.mjs.map +2 -2
- package/build-module/cover/edit/inspector-controls.mjs +62 -16
- package/build-module/cover/edit/inspector-controls.mjs.map +2 -2
- package/build-module/cover/embed-video-utils.mjs +9 -8
- package/build-module/cover/embed-video-utils.mjs.map +2 -2
- package/build-module/cover/view.mjs +19 -0
- package/build-module/cover/view.mjs.map +7 -0
- package/build-module/details/block.json +14 -0
- package/build-module/embed/block.json +6 -1
- package/build-module/file/block.json +14 -0
- package/build-module/footnotes/block.json +13 -0
- package/build-module/gallery/block.json +22 -0
- package/build-module/gallery/dynamic-gallery.mjs +33 -97
- package/build-module/gallery/dynamic-gallery.mjs.map +2 -2
- package/build-module/gallery/edit.mjs +111 -44
- package/build-module/gallery/edit.mjs.map +2 -2
- package/build-module/gallery/order-controls.mjs +87 -0
- package/build-module/gallery/order-controls.mjs.map +7 -0
- package/build-module/gallery/order-images.mjs +66 -0
- package/build-module/gallery/order-images.mjs.map +7 -0
- package/build-module/gallery/order-options.mjs +33 -0
- package/build-module/gallery/order-options.mjs.map +7 -0
- package/build-module/gallery/use-dynamic-gallery.mjs +1 -7
- package/build-module/gallery/use-dynamic-gallery.mjs.map +2 -2
- package/build-module/gallery/use-get-media.mjs +2 -3
- package/build-module/gallery/use-get-media.mjs.map +2 -2
- package/build-module/group/block.json +1 -0
- package/build-module/group/edit.mjs +4 -4
- package/build-module/group/edit.mjs.map +2 -2
- package/build-module/heading/block.json +14 -0
- package/build-module/home-link/block.json +30 -0
- package/build-module/home-link/edit.mjs +2 -2
- package/build-module/home-link/edit.mjs.map +2 -2
- package/build-module/icon/components/custom-inserter/index.mjs +3 -1
- package/build-module/icon/components/custom-inserter/index.mjs.map +2 -2
- package/build-module/icon/edit.mjs +50 -6
- package/build-module/icon/edit.mjs.map +2 -2
- package/build-module/image/image.mjs +12 -10
- package/build-module/image/image.mjs.map +2 -2
- package/build-module/image/use-open-image-media-editor-modal.mjs +32 -8
- package/build-module/image/use-open-image-media-editor-modal.mjs.map +2 -2
- package/build-module/image/view.mjs +44 -50
- package/build-module/image/view.mjs.map +2 -2
- package/build-module/latest-comments/block.json +20 -0
- package/build-module/latest-posts/block.json +14 -0
- package/build-module/list/block.json +12 -1
- package/build-module/list-item/block.json +8 -1
- package/build-module/list-item/index.mjs +4 -0
- package/build-module/list-item/index.mjs.map +2 -2
- package/build-module/loginout/block.json +14 -0
- package/build-module/math/block.json +14 -0
- package/build-module/media-text/block.json +19 -0
- package/build-module/navigation/edit/index.mjs +1 -4
- package/build-module/navigation/edit/index.mjs.map +2 -2
- package/build-module/navigation-link/link-ui/index.mjs +39 -20
- package/build-module/navigation-link/link-ui/index.mjs.map +2 -2
- package/build-module/navigation-link/link-ui/page-creator.mjs +2 -2
- package/build-module/navigation-link/link-ui/page-creator.mjs.map +2 -2
- package/build-module/navigation-link/shared/controls.mjs +2 -2
- package/build-module/navigation-link/shared/controls.mjs.map +2 -2
- package/build-module/navigation-link/shared/index.mjs +6 -0
- package/build-module/navigation-link/shared/index.mjs.map +2 -2
- package/build-module/navigation-link/shared/use-block-suggestions.mjs +120 -0
- package/build-module/navigation-link/shared/use-block-suggestions.mjs.map +7 -0
- package/build-module/navigation-link/shared/use-link-preview.mjs +13 -13
- package/build-module/navigation-link/shared/use-link-preview.mjs.map +2 -2
- package/build-module/navigation-overlay-close/block.json +7 -0
- package/build-module/navigation-submenu/block.json +6 -0
- package/build-module/navigation-submenu/edit.mjs +11 -2
- package/build-module/navigation-submenu/edit.mjs.map +2 -2
- package/build-module/page-list/block.json +14 -0
- package/build-module/paragraph/block.json +1 -0
- package/build-module/paragraph/edit.mjs +1 -2
- package/build-module/paragraph/edit.mjs.map +2 -2
- package/build-module/playlist/block.json +1 -0
- package/build-module/post-author-biography/block.json +5 -0
- package/build-module/post-author-name/block.json +5 -0
- package/build-module/post-comments-count/block.json +3 -0
- package/build-module/post-comments-form/block.json +15 -0
- package/build-module/post-content/block.json +4 -1
- package/build-module/post-date/block.json +3 -0
- package/build-module/post-excerpt/block.json +9 -0
- package/build-module/post-featured-image/block.json +1 -0
- package/build-module/post-featured-image/edit.mjs +12 -10
- package/build-module/post-featured-image/edit.mjs.map +2 -2
- package/build-module/post-navigation-link/block.json +30 -0
- package/build-module/post-navigation-link/edit.mjs +17 -3
- package/build-module/post-navigation-link/edit.mjs.map +2 -2
- package/build-module/post-template/block.json +13 -1
- package/build-module/post-terms/block.json +10 -0
- package/build-module/post-time-to-read/block.json +10 -0
- package/build-module/post-title/block.json +14 -0
- package/build-module/preformatted/block.json +11 -0
- package/build-module/pullquote/block.json +3 -1
- package/build-module/query-no-results/block.json +14 -2
- package/build-module/query-pagination/block.json +20 -0
- package/build-module/query-pagination-next/block.json +3 -0
- package/build-module/query-pagination-numbers/block.json +3 -0
- package/build-module/query-pagination-previous/block.json +3 -0
- package/build-module/query-title/block.json +3 -0
- package/build-module/query-total/block.json +10 -0
- package/build-module/quote/block.json +3 -0
- package/build-module/read-more/block.json +11 -0
- package/build-module/rss/block.json +10 -0
- package/build-module/search/block.json +2 -1
- package/build-module/site-tagline/block.json +12 -1
- package/build-module/site-title/block.json +11 -1
- package/build-module/social-links/block.json +4 -0
- package/build-module/social-links/edit.mjs +2 -3
- package/build-module/social-links/edit.mjs.map +2 -2
- package/build-module/tab-list/block.json +4 -0
- package/build-module/tab-list/edit.mjs +4 -1
- package/build-module/tab-list/edit.mjs.map +2 -2
- package/build-module/tab-list/save.mjs +4 -1
- package/build-module/tab-list/save.mjs.map +2 -2
- package/build-module/tab-panel/block.json +25 -0
- package/build-module/tab-panel/controls.mjs +2 -2
- package/build-module/tab-panel/controls.mjs.map +2 -2
- package/build-module/tab-panels/block.json +21 -1
- package/build-module/table-of-contents/block.json +7 -0
- package/build-module/tabs/block.json +27 -1
- package/build-module/tag-cloud/block.json +19 -0
- package/build-module/template-part/edit/selection-modal.mjs.map +1 -1
- package/build-module/term-count/block.json +12 -0
- package/build-module/term-description/block.json +13 -0
- package/build-module/term-name/block.json +16 -1
- package/build-module/term-template/block.json +14 -1
- package/build-module/utils/search-patterns.mjs +7 -32
- package/build-module/utils/search-patterns.mjs.map +2 -2
- package/build-module/utils/style-state.mjs +6 -4
- package/build-module/utils/style-state.mjs.map +2 -2
- package/build-module/utils/waveform-utils.mjs +1 -1
- package/build-module/utils/waveform-utils.mjs.map +1 -1
- package/build-module/verse/block.json +4 -0
- package/build-module/video/block.json +12 -0
- package/build-module/video/edit.mjs +32 -15
- package/build-module/video/edit.mjs.map +2 -2
- package/build-module/video/index.mjs +0 -2
- package/build-module/video/index.mjs.map +2 -2
- package/build-module/video/save.mjs +7 -2
- package/build-module/video/save.mjs.map +2 -2
- package/build-style/avatar/editor-rtl.css +4 -0
- package/build-style/avatar/editor.css +4 -0
- package/build-style/comments-pagination/style-rtl.css +3 -0
- package/build-style/comments-pagination/style.css +3 -0
- package/build-style/common-rtl.css +32 -1
- package/build-style/common.css +35 -2
- package/build-style/editor-rtl.css +23 -6
- package/build-style/editor.css +23 -6
- package/build-style/embed/style-rtl.css +4 -1
- package/build-style/embed/style.css +4 -1
- package/build-style/gallery/editor-rtl.css +1 -3
- package/build-style/gallery/editor.css +1 -3
- package/build-style/image/editor-rtl.css +6 -0
- package/build-style/image/editor.css +6 -0
- package/build-style/image/style-rtl.css +11 -2
- package/build-style/image/style.css +11 -2
- package/build-style/media-text/style-rtl.css +4 -1
- package/build-style/media-text/style.css +4 -1
- package/build-style/navigation/style-rtl.css +18 -3
- package/build-style/navigation/style.css +18 -3
- package/build-style/navigation-link/editor-rtl.css +3 -1
- package/build-style/navigation-link/editor.css +3 -1
- package/build-style/navigation-overlay-close/style-rtl.css +1 -1
- package/build-style/navigation-overlay-close/style.css +1 -1
- package/build-style/navigation-submenu/editor-rtl.css +3 -1
- package/build-style/navigation-submenu/editor.css +3 -1
- package/build-style/post-navigation-link/style-rtl.css +3 -0
- package/build-style/post-navigation-link/style.css +3 -0
- package/build-style/query-pagination/style-rtl.css +3 -0
- package/build-style/query-pagination/style.css +3 -0
- package/build-style/style-rtl.css +94 -13
- package/build-style/style.css +97 -14
- package/build-style/tab-panel/style-rtl.css +2 -0
- package/build-style/tab-panel/style.css +2 -0
- package/build-style/table/editor-rtl.css +6 -1
- package/build-style/table/editor.css +6 -1
- package/build-style/table/style-rtl.css +4 -2
- package/build-style/table/style.css +4 -2
- package/build-style/tag-cloud/style-rtl.css +1 -1
- package/build-style/tag-cloud/style.css +1 -1
- package/build-style/verse/style-rtl.css +8 -1
- package/build-style/verse/style.css +8 -1
- package/build-types/gallery/order-controls.d.ts +58 -0
- package/build-types/gallery/order-controls.d.ts.map +1 -0
- package/build-types/gallery/order-options.d.ts +67 -0
- package/build-types/gallery/order-options.d.ts.map +1 -0
- package/package.json +46 -44
- package/src/accordion/README.md +3 -0
- package/src/accordion/block.json +4 -1
- package/src/accordion-heading/README.md +1 -0
- package/src/accordion-heading/block.json +1 -0
- package/src/accordion-item/README.md +5 -0
- package/src/accordion-item/block.json +7 -1
- package/src/accordion-panel/README.md +7 -0
- package/src/accordion-panel/block.json +9 -1
- package/src/archives/README.md +6 -0
- package/src/archives/block.json +12 -0
- package/src/audio/README.md +4 -0
- package/src/audio/block.json +8 -0
- package/src/audio/edit.jsx +2 -1
- package/src/avatar/README.md +2 -0
- package/src/avatar/block.json +4 -0
- package/src/avatar/edit.jsx +48 -2
- package/src/avatar/editor.scss +4 -0
- package/src/avatar/index.php +5 -3
- package/src/breadcrumbs/README.md +2 -0
- package/src/breadcrumbs/block.json +3 -0
- package/src/breadcrumbs/edit.jsx +3 -3
- package/src/breadcrumbs/index.php +1 -1
- package/src/button/README.md +4 -0
- package/src/button/block.json +6 -0
- package/src/button/edit.jsx +47 -52
- package/src/button/index.php +47 -0
- package/src/buttons/README.md +8 -0
- package/src/buttons/block.json +15 -1
- package/src/categories/README.md +6 -0
- package/src/categories/block.json +12 -1
- package/src/code/README.md +7 -0
- package/src/code/block.json +13 -0
- package/src/column/README.md +4 -0
- package/src/column/block.json +9 -0
- package/src/column/edit.jsx +6 -0
- package/src/columns/README.md +7 -0
- package/src/columns/block.json +13 -0
- package/src/columns/edit.jsx +1 -131
- package/src/comment-author-name/README.md +2 -0
- package/src/comment-author-name/block.json +3 -0
- package/src/comment-content/README.md +4 -0
- package/src/comment-content/block.json +5 -0
- package/src/comment-date/README.md +2 -0
- package/src/comment-date/block.json +3 -0
- package/src/comment-edit-link/README.md +2 -0
- package/src/comment-edit-link/block.json +3 -0
- package/src/comment-reply-link/README.md +2 -0
- package/src/comment-reply-link/block.json +3 -0
- package/src/comments/README.md +5 -0
- package/src/comments/block.json +10 -0
- package/src/comments/edit/placeholder.jsx +5 -1
- package/src/comments-pagination/README.md +6 -0
- package/src/comments-pagination/block.json +14 -0
- package/src/comments-pagination/style.scss +3 -0
- package/src/comments-pagination-next/README.md +2 -0
- package/src/comments-pagination-next/block.json +3 -0
- package/src/comments-pagination-numbers/README.md +2 -0
- package/src/comments-pagination-numbers/block.json +3 -0
- package/src/comments-pagination-previous/README.md +2 -0
- package/src/comments-pagination-previous/block.json +6 -0
- package/src/comments-title/README.md +2 -0
- package/src/comments-title/block.json +3 -0
- package/src/common.scss +38 -0
- package/src/cover/README.md +1 -0
- package/src/cover/block.json +2 -1
- package/src/cover/edit/index.jsx +41 -6
- package/src/cover/edit/inspector-controls.jsx +74 -14
- package/src/cover/embed-video-utils.js +18 -10
- package/src/cover/index.php +44 -15
- package/src/cover/test/edit.browser.test.js +200 -4
- package/src/cover/test/embed-video-utils.test.js +48 -0
- package/src/cover/view.js +22 -0
- package/src/details/README.md +8 -0
- package/src/details/block.json +14 -0
- package/src/embed/README.md +4 -0
- package/src/embed/block.json +6 -1
- package/src/embed/style.scss +7 -1
- package/src/file/README.md +8 -0
- package/src/file/block.json +14 -0
- package/src/footnotes/README.md +7 -0
- package/src/footnotes/block.json +13 -0
- package/src/gallery/README.md +17 -0
- package/src/gallery/block.json +22 -0
- package/src/gallery/dynamic-gallery.jsx +11 -91
- package/src/gallery/edit.jsx +147 -49
- package/src/gallery/editor.scss +5 -9
- package/src/gallery/order-controls.tsx +143 -0
- package/src/gallery/order-images.js +111 -0
- package/src/gallery/order-options.ts +75 -0
- package/src/gallery/test/edit.jsdom.test.js +87 -10
- package/src/gallery/test/order-images.js +162 -0
- package/src/gallery/use-dynamic-gallery.js +1 -9
- package/src/gallery/use-get-media.js +7 -2
- package/src/group/README.md +1 -0
- package/src/group/block.json +1 -0
- package/src/group/edit.jsx +5 -5
- package/src/heading/README.md +8 -0
- package/src/heading/block.json +14 -0
- package/src/home-link/README.md +11 -0
- package/src/home-link/block.json +30 -0
- package/src/home-link/edit.jsx +2 -2
- package/src/icon/components/custom-inserter/index.jsx +5 -1
- package/src/icon/edit.jsx +68 -7
- package/src/icon/index.php +10 -1
- package/src/image/editor.scss +8 -0
- package/src/image/image.jsx +13 -11
- package/src/image/index.php +3 -4
- package/src/image/style.scss +14 -2
- package/src/image/test/use-open-image-media-editor-modal.jsdom.test.js +201 -0
- package/src/image/use-open-image-media-editor-modal.js +37 -4
- package/src/image/view.js +64 -68
- package/src/latest-comments/README.md +8 -0
- package/src/latest-comments/block.json +20 -0
- package/src/latest-posts/README.md +8 -0
- package/src/latest-posts/block.json +14 -0
- package/src/list/README.md +6 -0
- package/src/list/block.json +12 -1
- package/src/list-item/README.md +6 -0
- package/src/list-item/block.json +8 -1
- package/src/list-item/index.js +5 -0
- package/src/loginout/README.md +8 -0
- package/src/loginout/block.json +14 -0
- package/src/math/README.md +8 -0
- package/src/math/block.json +14 -0
- package/src/media-text/README.md +18 -0
- package/src/media-text/block.json +19 -0
- package/src/media-text/style.scss +5 -1
- package/src/navigation/edit/index.jsx +2 -4
- package/src/navigation/style.scss +40 -4
- package/src/navigation/test/use-navigation-menu.jsdom.test.js +1 -1
- package/src/navigation-link/README.md +1 -1
- package/src/navigation-link/editor.scss +6 -1
- package/src/navigation-link/link-ui/index.jsx +60 -27
- package/src/navigation-link/link-ui/page-creator.jsx +2 -2
- package/src/navigation-link/link-ui/test/get-suggestions-query.jsdom.test.js +67 -0
- package/src/navigation-link/shared/controls.jsx +2 -2
- package/src/navigation-link/shared/index.js +4 -0
- package/src/navigation-link/shared/test/use-block-suggestions.jsdom.test.js +158 -0
- package/src/navigation-link/shared/test/use-entity-binding.jsdom.test.js +1 -7
- package/src/navigation-link/shared/test/use-link-preview.jsdom.test.js +22 -22
- package/src/navigation-link/shared/use-block-suggestions.js +192 -0
- package/src/navigation-link/shared/use-link-preview.js +15 -14
- package/src/navigation-overlay-close/README.md +1 -0
- package/src/navigation-overlay-close/block.json +7 -0
- package/src/navigation-overlay-close/style.scss +1 -1
- package/src/navigation-submenu/README.md +7 -0
- package/src/navigation-submenu/block.json +6 -0
- package/src/navigation-submenu/edit.jsx +11 -1
- package/src/navigation-submenu/editor.scss +6 -1
- package/src/navigation-submenu/index.php +11 -0
- package/src/page-list/README.md +8 -0
- package/src/page-list/block.json +14 -0
- package/src/paragraph/README.md +1 -0
- package/src/paragraph/block.json +1 -0
- package/src/paragraph/edit.jsx +1 -3
- package/src/playlist/README.md +1 -0
- package/src/playlist/block.json +1 -0
- package/src/playlist/test/edit-component.jsdom.test.jsx +11 -11
- package/src/playlist-track/test/edit.jsdom.test.jsx +3 -3
- package/src/post-author-biography/README.md +4 -0
- package/src/post-author-biography/block.json +5 -0
- package/src/post-author-name/README.md +4 -0
- package/src/post-author-name/block.json +5 -0
- package/src/post-comments-count/README.md +2 -0
- package/src/post-comments-count/block.json +3 -0
- package/src/post-comments-form/README.md +8 -0
- package/src/post-comments-form/block.json +15 -0
- package/src/post-content/README.md +3 -0
- package/src/post-content/block.json +4 -1
- package/src/post-date/README.md +2 -0
- package/src/post-date/block.json +3 -0
- package/src/post-excerpt/README.md +7 -0
- package/src/post-excerpt/block.json +9 -0
- package/src/post-featured-image/block.json +1 -0
- package/src/post-featured-image/edit.jsx +13 -11
- package/src/post-navigation-link/README.md +12 -0
- package/src/post-navigation-link/block.json +30 -0
- package/src/post-navigation-link/edit.jsx +23 -2
- package/src/post-navigation-link/index.php +94 -5
- package/src/post-navigation-link/style.scss +2 -0
- package/src/post-template/README.md +7 -0
- package/src/post-template/block.json +13 -1
- package/src/post-terms/README.md +8 -0
- package/src/post-terms/block.json +10 -0
- package/src/post-time-to-read/README.md +8 -0
- package/src/post-time-to-read/block.json +10 -0
- package/src/post-title/README.md +8 -0
- package/src/post-title/block.json +14 -0
- package/src/preformatted/README.md +9 -0
- package/src/preformatted/block.json +11 -0
- package/src/pullquote/README.md +2 -0
- package/src/pullquote/block.json +3 -1
- package/src/query-no-results/README.md +10 -0
- package/src/query-no-results/block.json +14 -2
- package/src/query-pagination/README.md +6 -0
- package/src/query-pagination/block.json +20 -0
- package/src/query-pagination/style.scss +3 -0
- package/src/query-pagination-next/README.md +2 -0
- package/src/query-pagination-next/block.json +3 -0
- package/src/query-pagination-numbers/README.md +2 -0
- package/src/query-pagination-numbers/block.json +3 -0
- package/src/query-pagination-previous/README.md +2 -0
- package/src/query-pagination-previous/block.json +3 -0
- package/src/query-title/README.md +2 -0
- package/src/query-title/block.json +3 -0
- package/src/query-total/README.md +8 -0
- package/src/query-total/block.json +10 -0
- package/src/quote/README.md +3 -0
- package/src/quote/block.json +3 -0
- package/src/read-more/README.md +8 -0
- package/src/read-more/block.json +11 -0
- package/src/rss/README.md +8 -0
- package/src/rss/block.json +10 -0
- package/src/search/README.md +1 -0
- package/src/search/block.json +2 -1
- package/src/site-tagline/README.md +9 -0
- package/src/site-tagline/block.json +12 -1
- package/src/site-title/README.md +8 -0
- package/src/site-title/block.json +11 -1
- package/src/social-links/README.md +3 -0
- package/src/social-links/block.json +4 -0
- package/src/social-links/edit.jsx +2 -3
- package/src/tab-list/README.md +2 -0
- package/src/tab-list/block.json +4 -0
- package/src/tab-list/edit.jsx +3 -0
- package/src/tab-list/save.jsx +3 -0
- package/src/tab-panel/README.md +9 -0
- package/src/tab-panel/block.json +25 -0
- package/src/tab-panel/controls.jsx +2 -2
- package/src/tab-panel/style.scss +5 -2
- package/src/tab-panels/README.md +9 -0
- package/src/tab-panels/block.json +21 -1
- package/src/table/editor.scss +8 -2
- package/src/table/style.scss +4 -4
- package/src/table-of-contents/README.md +6 -0
- package/src/table-of-contents/block.json +7 -0
- package/src/tabs/README.md +11 -0
- package/src/tabs/block.json +27 -1
- package/src/tag-cloud/README.md +9 -0
- package/src/tag-cloud/block.json +19 -0
- package/src/tag-cloud/style.scss +1 -1
- package/src/template-part/edit/selection-modal.jsx +1 -1
- package/src/template-part/index.php +16 -3
- package/src/term-count/README.md +10 -0
- package/src/term-count/block.json +12 -0
- package/src/term-description/README.md +8 -0
- package/src/term-description/block.json +13 -0
- package/src/term-name/README.md +9 -0
- package/src/term-name/block.json +16 -1
- package/src/term-name/index.php +1 -1
- package/src/term-template/README.md +8 -0
- package/src/term-template/block.json +14 -1
- package/src/utils/search-patterns.js +9 -53
- package/src/utils/style-state.js +6 -4
- package/src/utils/test/{search-patterns.js → search-patterns.jsdom.test.js} +1 -22
- package/src/utils/test/waveform-player-auto-init.jsdom.test.js +25 -0
- package/src/utils/test/waveform-player-dependency.jsdom.test.js +7 -60
- package/src/utils/test/waveform-utils.browser.test.js +3 -15
- package/src/utils/waveform-utils.js +1 -1
- package/src/verse/README.md +4 -0
- package/src/verse/block.json +4 -0
- package/src/verse/style.scss +11 -2
- package/src/video/README.md +11 -0
- package/src/video/block.json +12 -0
- package/src/video/edit.jsx +65 -49
- package/src/video/index.js +0 -2
- package/src/video/save.jsx +10 -1
- package/build/columns/utils.cjs +0 -112
- package/build/columns/utils.cjs.map +0 -7
- package/build/video/variations.cjs +0 -75
- package/build/video/variations.cjs.map +0 -7
- package/build-module/columns/utils.mjs +0 -78
- package/build-module/columns/utils.mjs.map +0 -7
- package/build-module/video/variations.mjs +0 -50
- package/build-module/video/variations.mjs.map +0 -7
- package/src/columns/test/utils.js +0 -331
- package/src/columns/utils.js +0 -176
- package/src/video/test/variations.js +0 -63
- package/src/video/variations.js +0 -62
package/src/button/edit.jsx
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
LinkControl,
|
|
17
17
|
__experimentalUseBorderProps as useBorderProps,
|
|
18
18
|
__experimentalUseColorProps as useColorProps,
|
|
19
|
+
useBackgroundProps,
|
|
19
20
|
__experimentalGetSpacingClassesAndStyles as useSpacingProps,
|
|
20
21
|
__experimentalGetShadowClassesAndStyles as useShadowProps,
|
|
21
22
|
__experimentalGetDimensionsClassesAndStyles as useDimensionsProps,
|
|
@@ -27,7 +28,7 @@ import {
|
|
|
27
28
|
privateApis as blockEditorPrivateApis,
|
|
28
29
|
} from '@wordpress/block-editor';
|
|
29
30
|
import { displayShortcut, isKeyboardEvent, ENTER } from '@wordpress/keycodes';
|
|
30
|
-
import { link
|
|
31
|
+
import { link } from '@wordpress/icons';
|
|
31
32
|
import {
|
|
32
33
|
createBlock,
|
|
33
34
|
cloneBlock,
|
|
@@ -166,6 +167,7 @@ function ButtonEdit( props ) {
|
|
|
166
167
|
const colorProps = useColorProps( attributes );
|
|
167
168
|
const spacingProps = useSpacingProps( attributes );
|
|
168
169
|
const shadowProps = useShadowProps( attributes );
|
|
170
|
+
const backgroundProps = useBackgroundProps( attributes );
|
|
169
171
|
const dimensionsProps = useDimensionsProps( attributes );
|
|
170
172
|
const ref = useRef();
|
|
171
173
|
const richTextRef = useRef();
|
|
@@ -348,6 +350,7 @@ function ButtonEdit( props ) {
|
|
|
348
350
|
className,
|
|
349
351
|
'wp-block-button__link',
|
|
350
352
|
colorProps.className,
|
|
353
|
+
backgroundProps.className,
|
|
351
354
|
borderProps.className,
|
|
352
355
|
typographyProps.className,
|
|
353
356
|
{
|
|
@@ -362,6 +365,7 @@ function ButtonEdit( props ) {
|
|
|
362
365
|
style={ {
|
|
363
366
|
...borderProps.style,
|
|
364
367
|
...colorProps.style,
|
|
368
|
+
...backgroundProps.style,
|
|
365
369
|
...spacingProps.style,
|
|
366
370
|
...shadowProps.style,
|
|
367
371
|
...typographyProps.style,
|
|
@@ -377,64 +381,55 @@ function ButtonEdit( props ) {
|
|
|
377
381
|
{ isLinkTag && ! lockUrlControls && (
|
|
378
382
|
<ToolbarButton
|
|
379
383
|
name="link"
|
|
380
|
-
icon={
|
|
381
|
-
title={
|
|
382
|
-
shortcut={
|
|
383
|
-
|
|
384
|
-
? displayShortcut.primary( 'k' )
|
|
385
|
-
: displayShortcut.primaryShift( 'k' )
|
|
386
|
-
}
|
|
387
|
-
onClick={ ! isURLSet ? startEditing : unlink }
|
|
384
|
+
icon={ link }
|
|
385
|
+
title={ __( 'Link' ) }
|
|
386
|
+
shortcut={ displayShortcut.primary( 'k' ) }
|
|
387
|
+
onClick={ () => setIsEditingURL( ! isEditingURL ) }
|
|
388
388
|
isActive={ isURLSet }
|
|
389
389
|
/>
|
|
390
390
|
) }
|
|
391
391
|
</BlockControls>
|
|
392
392
|
) }
|
|
393
|
-
{ isLinkTag &&
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
393
|
+
{ isLinkTag && isSelected && isEditingURL && ! lockUrlControls && (
|
|
394
|
+
<Popover
|
|
395
|
+
placement="bottom"
|
|
396
|
+
onClose={ () => {
|
|
397
|
+
setIsEditingURL( false );
|
|
398
|
+
richTextRef.current?.focus();
|
|
399
|
+
} }
|
|
400
|
+
anchor={ popoverAnchor }
|
|
401
|
+
focusOnMount={ isEditingURL ? 'firstElement' : false }
|
|
402
|
+
__unstableSlotName="__unstable-block-tools-after"
|
|
403
|
+
shift
|
|
404
|
+
>
|
|
405
|
+
<LinkControl
|
|
406
|
+
value={ linkValue }
|
|
407
|
+
onChange={ ( {
|
|
408
|
+
url: newURL,
|
|
409
|
+
opensInNewTab: newOpensInNewTab,
|
|
410
|
+
nofollow: newNofollow,
|
|
411
|
+
} ) =>
|
|
412
|
+
setAttributes(
|
|
413
|
+
getUpdatedLinkAttributes( {
|
|
414
|
+
rel,
|
|
415
|
+
url: newURL,
|
|
416
|
+
opensInNewTab: newOpensInNewTab,
|
|
417
|
+
nofollow: newNofollow,
|
|
418
|
+
} )
|
|
419
|
+
)
|
|
420
|
+
}
|
|
421
|
+
onRemove={ () => {
|
|
422
|
+
unlink();
|
|
401
423
|
richTextRef.current?.focus();
|
|
402
424
|
} }
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
url: newURL,
|
|
412
|
-
opensInNewTab: newOpensInNewTab,
|
|
413
|
-
nofollow: newNofollow,
|
|
414
|
-
} ) =>
|
|
415
|
-
setAttributes(
|
|
416
|
-
getUpdatedLinkAttributes( {
|
|
417
|
-
rel,
|
|
418
|
-
url: newURL,
|
|
419
|
-
opensInNewTab: newOpensInNewTab,
|
|
420
|
-
nofollow: newNofollow,
|
|
421
|
-
} )
|
|
422
|
-
)
|
|
423
|
-
}
|
|
424
|
-
onRemove={ () => {
|
|
425
|
-
unlink();
|
|
426
|
-
richTextRef.current?.focus();
|
|
427
|
-
} }
|
|
428
|
-
forceIsEditingLink={ isEditingURL }
|
|
429
|
-
settings={ LINK_SETTINGS }
|
|
430
|
-
createSuggestion={
|
|
431
|
-
createPageEntity && handleCreate
|
|
432
|
-
}
|
|
433
|
-
withCreateSuggestion={ userCanCreatePages }
|
|
434
|
-
createSuggestionButtonText={ createButtonText }
|
|
435
|
-
/>
|
|
436
|
-
</Popover>
|
|
437
|
-
) }
|
|
425
|
+
forceIsEditingLink={ ! isURLSet }
|
|
426
|
+
settings={ LINK_SETTINGS }
|
|
427
|
+
createSuggestion={ createPageEntity && handleCreate }
|
|
428
|
+
withCreateSuggestion={ userCanCreatePages }
|
|
429
|
+
createSuggestionButtonText={ createButtonText }
|
|
430
|
+
/>
|
|
431
|
+
</Popover>
|
|
432
|
+
) }
|
|
438
433
|
<InspectorControls group="advanced">
|
|
439
434
|
<HTMLElementControl
|
|
440
435
|
tagName={ tagName }
|
package/src/button/index.php
CHANGED
|
@@ -60,6 +60,53 @@ function render_block_core_button( $attributes, $content ) {
|
|
|
60
60
|
return '';
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
// Background skips serialization, so apply it to the link like color.
|
|
64
|
+
$background = $attributes['style']['background'] ?? null;
|
|
65
|
+
|
|
66
|
+
if ( is_array( $background ) ) {
|
|
67
|
+
$background_styles = array(
|
|
68
|
+
'backgroundImage' => $background['backgroundImage'] ?? null,
|
|
69
|
+
'backgroundSize' => $background['backgroundSize'] ?? null,
|
|
70
|
+
'backgroundPosition' => $background['backgroundPosition'] ?? null,
|
|
71
|
+
'backgroundRepeat' => $background['backgroundRepeat'] ?? null,
|
|
72
|
+
'backgroundAttachment' => $background['backgroundAttachment'] ?? null,
|
|
73
|
+
'gradient' => $background['gradient'] ?? null,
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
// Mirror the background block support defaults.
|
|
77
|
+
if ( ! empty( $background_styles['backgroundImage'] ) ) {
|
|
78
|
+
$background_styles['backgroundSize'] = $background_styles['backgroundSize'] ?? 'cover';
|
|
79
|
+
if ( 'contain' === $background_styles['backgroundSize'] && ! $background_styles['backgroundPosition'] ) {
|
|
80
|
+
$background_styles['backgroundPosition'] = '50% 50%';
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
$styles = wp_style_engine_get_styles( array( 'background' => $background_styles ) );
|
|
85
|
+
|
|
86
|
+
if ( ! empty( $styles['css'] ) ) {
|
|
87
|
+
$processor = new WP_HTML_Tag_Processor( $content );
|
|
88
|
+
while ( $processor->next_tag() ) {
|
|
89
|
+
if ( $tag !== $processor->get_tag() ) {
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
$existing_style = $processor->get_attribute( 'style' );
|
|
94
|
+
if ( is_string( $existing_style ) && '' !== $existing_style ) {
|
|
95
|
+
$separator = str_ends_with( $existing_style, ';' ) ? '' : ';';
|
|
96
|
+
$processor->set_attribute( 'style', $existing_style . $separator . $styles['css'] );
|
|
97
|
+
} else {
|
|
98
|
+
$processor->set_attribute( 'style', $styles['css'] );
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if ( ! empty( $background_styles['backgroundImage'] ) || ! empty( $background_styles['gradient'] ) ) {
|
|
102
|
+
$processor->add_class( 'has-background' );
|
|
103
|
+
}
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
$content = $processor->get_updated_html();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
63
110
|
$width = $attributes['style']['dimensions']['width'] ?? null;
|
|
64
111
|
|
|
65
112
|
if ( is_string( $width ) && '' !== $width ) {
|
package/src/buttons/README.md
CHANGED
|
@@ -27,6 +27,10 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
27
27
|
- [`anchor`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#anchor): `true`
|
|
28
28
|
- [`align`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#align): `"wide"`, `"full"`
|
|
29
29
|
- [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false`
|
|
30
|
+
- [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#background):
|
|
31
|
+
- `backgroundImage`: `true`
|
|
32
|
+
- `backgroundSize`: `true`
|
|
33
|
+
- `gradient`: `true`
|
|
30
34
|
- [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color):
|
|
31
35
|
- [`gradients`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-gradients): `true`
|
|
32
36
|
- [`text`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-text): `false`
|
|
@@ -37,6 +41,9 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
37
41
|
- [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography):
|
|
38
42
|
- [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true`
|
|
39
43
|
- [`lineHeight`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-lineheight): `true`
|
|
44
|
+
- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
|
|
45
|
+
- `minHeight`: `true`
|
|
46
|
+
- `minWidth`: `true`
|
|
40
47
|
- [`layout`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout):
|
|
41
48
|
- [`allowSwitching`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowswitching): `false`
|
|
42
49
|
- [`allowInheriting`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowinheriting): `false`
|
|
@@ -45,6 +52,7 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
45
52
|
- `clientNavigation`: `true`
|
|
46
53
|
- [`listView`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#listview): `true`
|
|
47
54
|
- [`contentRole`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#contentrole): `true`
|
|
55
|
+
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
|
|
48
56
|
|
|
49
57
|
## Block Markup
|
|
50
58
|
|
package/src/buttons/block.json
CHANGED
|
@@ -13,6 +13,15 @@
|
|
|
13
13
|
"align": [ "wide", "full" ],
|
|
14
14
|
"html": false,
|
|
15
15
|
"__experimentalExposeControlsToChildren": true,
|
|
16
|
+
"background": {
|
|
17
|
+
"backgroundImage": true,
|
|
18
|
+
"backgroundSize": true,
|
|
19
|
+
"gradient": true,
|
|
20
|
+
"__experimentalDefaultControls": {
|
|
21
|
+
"backgroundImage": true,
|
|
22
|
+
"gradient": true
|
|
23
|
+
}
|
|
24
|
+
},
|
|
16
25
|
"color": {
|
|
17
26
|
"gradients": true,
|
|
18
27
|
"text": false,
|
|
@@ -41,6 +50,10 @@
|
|
|
41
50
|
"fontSize": true
|
|
42
51
|
}
|
|
43
52
|
},
|
|
53
|
+
"dimensions": {
|
|
54
|
+
"minHeight": true,
|
|
55
|
+
"minWidth": true
|
|
56
|
+
},
|
|
44
57
|
"__experimentalBorder": {
|
|
45
58
|
"color": true,
|
|
46
59
|
"radius": true,
|
|
@@ -64,7 +77,8 @@
|
|
|
64
77
|
"clientNavigation": true
|
|
65
78
|
},
|
|
66
79
|
"listView": true,
|
|
67
|
-
"contentRole": true
|
|
80
|
+
"contentRole": true,
|
|
81
|
+
"shadow": true
|
|
68
82
|
},
|
|
69
83
|
"editorStyle": "wp-block-buttons-editor",
|
|
70
84
|
"style": "wp-block-buttons"
|
package/src/categories/README.md
CHANGED
|
@@ -30,6 +30,10 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
30
30
|
|
|
31
31
|
- [`anchor`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#anchor): `true`
|
|
32
32
|
- [`align`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#align): `true`
|
|
33
|
+
- [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#background):
|
|
34
|
+
- `backgroundImage`: `true`
|
|
35
|
+
- `backgroundSize`: `true`
|
|
36
|
+
- `gradient`: `true`
|
|
33
37
|
- [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false`
|
|
34
38
|
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
|
|
35
39
|
- `margin`: `true`
|
|
@@ -37,11 +41,13 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
37
41
|
- [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography):
|
|
38
42
|
- [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true`
|
|
39
43
|
- [`lineHeight`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-lineheight): `true`
|
|
44
|
+
- `textColumns`: `true`
|
|
40
45
|
- [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color):
|
|
41
46
|
- [`gradients`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-gradients): `true`
|
|
42
47
|
- [`link`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-link): `true`
|
|
43
48
|
- [`interactivity`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#interactivity):
|
|
44
49
|
- `clientNavigation`: `true`
|
|
50
|
+
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
|
|
45
51
|
|
|
46
52
|
## Context
|
|
47
53
|
|
|
@@ -45,6 +45,15 @@
|
|
|
45
45
|
"supports": {
|
|
46
46
|
"anchor": true,
|
|
47
47
|
"align": true,
|
|
48
|
+
"background": {
|
|
49
|
+
"backgroundImage": true,
|
|
50
|
+
"backgroundSize": true,
|
|
51
|
+
"gradient": true,
|
|
52
|
+
"__experimentalDefaultControls": {
|
|
53
|
+
"backgroundImage": true,
|
|
54
|
+
"gradient": true
|
|
55
|
+
}
|
|
56
|
+
},
|
|
48
57
|
"html": false,
|
|
49
58
|
"spacing": {
|
|
50
59
|
"margin": true,
|
|
@@ -57,6 +66,7 @@
|
|
|
57
66
|
"typography": {
|
|
58
67
|
"fontSize": true,
|
|
59
68
|
"lineHeight": true,
|
|
69
|
+
"textColumns": true,
|
|
60
70
|
"__experimentalFontFamily": true,
|
|
61
71
|
"__experimentalFontWeight": true,
|
|
62
72
|
"__experimentalFontStyle": true,
|
|
@@ -90,7 +100,8 @@
|
|
|
90
100
|
"width": true,
|
|
91
101
|
"style": true
|
|
92
102
|
}
|
|
93
|
-
}
|
|
103
|
+
},
|
|
104
|
+
"shadow": true
|
|
94
105
|
},
|
|
95
106
|
"editorStyle": "wp-block-categories-editor",
|
|
96
107
|
"style": "wp-block-categories"
|
package/src/code/README.md
CHANGED
|
@@ -22,6 +22,13 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
22
22
|
|
|
23
23
|
- [`align`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#align): `"wide"`
|
|
24
24
|
- [`anchor`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#anchor): `true`
|
|
25
|
+
- [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#background):
|
|
26
|
+
- `backgroundImage`: `true`
|
|
27
|
+
- `backgroundSize`: `true`
|
|
28
|
+
- `gradient`: `true`
|
|
29
|
+
- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
|
|
30
|
+
- `minHeight`: `true`
|
|
31
|
+
- `minWidth`: `true`
|
|
25
32
|
- [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography):
|
|
26
33
|
- [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true`
|
|
27
34
|
- [`lineHeight`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-lineheight): `true`
|
package/src/code/block.json
CHANGED
|
@@ -18,6 +18,19 @@
|
|
|
18
18
|
"supports": {
|
|
19
19
|
"align": [ "wide" ],
|
|
20
20
|
"anchor": true,
|
|
21
|
+
"background": {
|
|
22
|
+
"backgroundImage": true,
|
|
23
|
+
"backgroundSize": true,
|
|
24
|
+
"gradient": true,
|
|
25
|
+
"__experimentalDefaultControls": {
|
|
26
|
+
"backgroundImage": true,
|
|
27
|
+
"gradient": true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"dimensions": {
|
|
31
|
+
"minHeight": true,
|
|
32
|
+
"minWidth": true
|
|
33
|
+
},
|
|
21
34
|
"typography": {
|
|
22
35
|
"fontSize": true,
|
|
23
36
|
"lineHeight": true,
|
package/src/column/README.md
CHANGED
|
@@ -30,6 +30,10 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
30
30
|
- [`anchor`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#anchor): `true`
|
|
31
31
|
- [`reusable`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#reusable): `false`
|
|
32
32
|
- [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false`
|
|
33
|
+
- [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#background):
|
|
34
|
+
- `backgroundImage`: `true`
|
|
35
|
+
- `backgroundSize`: `true`
|
|
36
|
+
- `gradient`: `true`
|
|
33
37
|
- [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color):
|
|
34
38
|
- [`gradients`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-gradients): `true`
|
|
35
39
|
- [`heading`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-heading): `true`
|
package/src/column/block.json
CHANGED
|
@@ -24,6 +24,15 @@
|
|
|
24
24
|
"anchor": true,
|
|
25
25
|
"reusable": false,
|
|
26
26
|
"html": false,
|
|
27
|
+
"background": {
|
|
28
|
+
"backgroundImage": true,
|
|
29
|
+
"backgroundSize": true,
|
|
30
|
+
"gradient": true,
|
|
31
|
+
"__experimentalDefaultControls": {
|
|
32
|
+
"backgroundImage": true,
|
|
33
|
+
"gradient": true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
27
36
|
"color": {
|
|
28
37
|
"gradients": true,
|
|
29
38
|
"heading": true,
|
package/src/column/edit.jsx
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
__experimentalToolsPanelItem as ToolsPanelItem,
|
|
17
17
|
} from '@wordpress/components';
|
|
18
18
|
import { useSelect, useDispatch } from '@wordpress/data';
|
|
19
|
+
import { useState } from '@wordpress/element';
|
|
19
20
|
import { sprintf, __ } from '@wordpress/i18n';
|
|
20
21
|
import { useToolsPanelDropdownMenuProps } from '../utils/hooks';
|
|
21
22
|
|
|
@@ -105,7 +106,10 @@ function ColumnEdit( {
|
|
|
105
106
|
};
|
|
106
107
|
|
|
107
108
|
const widthWithUnit = Number.isFinite( width ) ? width + '%' : width;
|
|
109
|
+
// State, not a ref, so that the element is there on the next render.
|
|
110
|
+
const [ dropZoneElement, setDropZoneElement ] = useState( null );
|
|
108
111
|
const blockProps = useBlockProps( {
|
|
112
|
+
ref: setDropZoneElement,
|
|
109
113
|
className: classes,
|
|
110
114
|
style: widthWithUnit ? { flexBasis: widthWithUnit } : undefined,
|
|
111
115
|
} );
|
|
@@ -124,6 +128,8 @@ function ColumnEdit( {
|
|
|
124
128
|
const innerBlocksProps = useInnerBlocksProps(
|
|
125
129
|
{ ...blockProps, 'aria-label': label },
|
|
126
130
|
{
|
|
131
|
+
// Allows dropping before or after the column, not only inside it.
|
|
132
|
+
dropZoneElement,
|
|
127
133
|
templateLock,
|
|
128
134
|
allowedBlocks,
|
|
129
135
|
renderAppender: hasChildBlocks
|
package/src/columns/README.md
CHANGED
|
@@ -35,6 +35,13 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
35
35
|
- [`link`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-link): `true`
|
|
36
36
|
- [`heading`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-heading): `true`
|
|
37
37
|
- [`button`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-button): `true`
|
|
38
|
+
- [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#background):
|
|
39
|
+
- `backgroundImage`: `true`
|
|
40
|
+
- `backgroundSize`: `true`
|
|
41
|
+
- `gradient`: `true`
|
|
42
|
+
- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
|
|
43
|
+
- `minHeight`: `true`
|
|
44
|
+
- `minWidth`: `true`
|
|
38
45
|
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
|
|
39
46
|
- `blockGap`: `{"__experimentalDefault":"2em","sides":["horizontal","vertical"]}`
|
|
40
47
|
- `margin`: `["top","bottom"]`
|
package/src/columns/block.json
CHANGED
|
@@ -34,6 +34,19 @@
|
|
|
34
34
|
"text": true
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
+
"background": {
|
|
38
|
+
"backgroundImage": true,
|
|
39
|
+
"backgroundSize": true,
|
|
40
|
+
"gradient": true,
|
|
41
|
+
"__experimentalDefaultControls": {
|
|
42
|
+
"backgroundImage": true,
|
|
43
|
+
"gradient": true
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"dimensions": {
|
|
47
|
+
"minHeight": true,
|
|
48
|
+
"minWidth": true
|
|
49
|
+
},
|
|
37
50
|
"spacing": {
|
|
38
51
|
"blockGap": {
|
|
39
52
|
"__experimentalDefault": "2em",
|
package/src/columns/edit.jsx
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
2
|
import { __ } from '@wordpress/i18n';
|
|
3
3
|
import {
|
|
4
|
-
Notice,
|
|
5
|
-
RangeControl,
|
|
6
4
|
ToggleControl,
|
|
7
5
|
__experimentalToolsPanel as ToolsPanel,
|
|
8
6
|
__experimentalToolsPanelItem as ToolsPanelItem,
|
|
9
|
-
__experimentalVStack as VStack,
|
|
10
7
|
} from '@wordpress/components';
|
|
11
8
|
import {
|
|
12
9
|
InspectorControls,
|
|
@@ -19,122 +16,16 @@ import {
|
|
|
19
16
|
} from '@wordpress/block-editor';
|
|
20
17
|
import { useDispatch, useSelect, useRegistry } from '@wordpress/data';
|
|
21
18
|
import {
|
|
22
|
-
createBlock,
|
|
23
19
|
createBlocksFromInnerBlocksTemplate,
|
|
24
20
|
store as blocksStore,
|
|
25
21
|
} from '@wordpress/blocks';
|
|
26
|
-
import {
|
|
27
|
-
hasExplicitPercentColumnWidths,
|
|
28
|
-
getMappedColumnWidths,
|
|
29
|
-
getRedistributedColumnWidths,
|
|
30
|
-
toWidthPrecision,
|
|
31
|
-
} from './utils';
|
|
32
22
|
import { useToolsPanelDropdownMenuProps } from '../utils/hooks';
|
|
33
23
|
|
|
34
24
|
const DEFAULT_BLOCK = {
|
|
35
25
|
name: 'core/column',
|
|
36
26
|
};
|
|
37
27
|
|
|
38
|
-
function ColumnInspectorControls( {
|
|
39
|
-
clientId,
|
|
40
|
-
setAttributes,
|
|
41
|
-
isStackedOnMobile,
|
|
42
|
-
} ) {
|
|
43
|
-
const { count, canInsertColumnBlock, minCount } = useSelect(
|
|
44
|
-
( select ) => {
|
|
45
|
-
const { canInsertBlockType, canRemoveBlock, getBlockOrder } =
|
|
46
|
-
select( blockEditorStore );
|
|
47
|
-
const blockOrder = getBlockOrder( clientId );
|
|
48
|
-
|
|
49
|
-
// Get the indexes of columns for which removal is prevented.
|
|
50
|
-
// The highest index will be used to determine the minimum column count.
|
|
51
|
-
const preventRemovalBlockIndexes = blockOrder.reduce(
|
|
52
|
-
( acc, blockId, index ) => {
|
|
53
|
-
if ( ! canRemoveBlock( blockId ) ) {
|
|
54
|
-
acc.push( index );
|
|
55
|
-
}
|
|
56
|
-
return acc;
|
|
57
|
-
},
|
|
58
|
-
[]
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
count: blockOrder.length,
|
|
63
|
-
canInsertColumnBlock: canInsertBlockType(
|
|
64
|
-
'core/column',
|
|
65
|
-
clientId
|
|
66
|
-
),
|
|
67
|
-
minCount: Math.max( ...preventRemovalBlockIndexes ) + 1,
|
|
68
|
-
};
|
|
69
|
-
},
|
|
70
|
-
[ clientId ]
|
|
71
|
-
);
|
|
72
|
-
const { getBlocks } = useSelect( blockEditorStore );
|
|
73
|
-
const { replaceInnerBlocks } = useDispatch( blockEditorStore );
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Updates the column count, including necessary revisions to child Column
|
|
77
|
-
* blocks to grant required or redistribute available space.
|
|
78
|
-
*
|
|
79
|
-
* @param {number} previousColumns Previous column count.
|
|
80
|
-
* @param {number} newColumns New column count.
|
|
81
|
-
*/
|
|
82
|
-
function updateColumns( previousColumns, newColumns ) {
|
|
83
|
-
let innerBlocks = getBlocks( clientId );
|
|
84
|
-
const hasExplicitWidths = hasExplicitPercentColumnWidths( innerBlocks );
|
|
85
|
-
|
|
86
|
-
// Redistribute available width for existing inner blocks.
|
|
87
|
-
const isAddingColumn = newColumns > previousColumns;
|
|
88
|
-
|
|
89
|
-
if ( isAddingColumn && hasExplicitWidths ) {
|
|
90
|
-
// If adding a new column, assign width to the new column equal to
|
|
91
|
-
// as if it were `1 / columns` of the total available space.
|
|
92
|
-
const newColumnWidth = toWidthPrecision( 100 / newColumns );
|
|
93
|
-
const newlyAddedColumns = newColumns - previousColumns;
|
|
94
|
-
|
|
95
|
-
// Redistribute in consideration of pending block insertion as
|
|
96
|
-
// constraining the available working width.
|
|
97
|
-
const widths = getRedistributedColumnWidths(
|
|
98
|
-
innerBlocks,
|
|
99
|
-
100 - newColumnWidth * newlyAddedColumns
|
|
100
|
-
);
|
|
101
|
-
|
|
102
|
-
innerBlocks = [
|
|
103
|
-
...getMappedColumnWidths( innerBlocks, widths ),
|
|
104
|
-
...Array.from( {
|
|
105
|
-
length: newlyAddedColumns,
|
|
106
|
-
} ).map( () => {
|
|
107
|
-
return createBlock( 'core/column', {
|
|
108
|
-
width: `${ newColumnWidth }%`,
|
|
109
|
-
} );
|
|
110
|
-
} ),
|
|
111
|
-
];
|
|
112
|
-
} else if ( isAddingColumn ) {
|
|
113
|
-
innerBlocks = [
|
|
114
|
-
...innerBlocks,
|
|
115
|
-
...Array.from( {
|
|
116
|
-
length: newColumns - previousColumns,
|
|
117
|
-
} ).map( () => {
|
|
118
|
-
return createBlock( 'core/column' );
|
|
119
|
-
} ),
|
|
120
|
-
];
|
|
121
|
-
} else if ( newColumns < previousColumns ) {
|
|
122
|
-
// The removed column will be the last of the inner blocks.
|
|
123
|
-
innerBlocks = innerBlocks.slice(
|
|
124
|
-
0,
|
|
125
|
-
-( previousColumns - newColumns )
|
|
126
|
-
);
|
|
127
|
-
if ( hasExplicitWidths ) {
|
|
128
|
-
// Redistribute as if block is already removed.
|
|
129
|
-
const widths = getRedistributedColumnWidths( innerBlocks, 100 );
|
|
130
|
-
|
|
131
|
-
innerBlocks = getMappedColumnWidths( innerBlocks, widths );
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
replaceInnerBlocks( clientId, innerBlocks );
|
|
136
|
-
}
|
|
137
|
-
|
|
28
|
+
function ColumnInspectorControls( { setAttributes, isStackedOnMobile } ) {
|
|
138
29
|
const dropdownMenuProps = useToolsPanelDropdownMenuProps();
|
|
139
30
|
|
|
140
31
|
return (
|
|
@@ -147,26 +38,6 @@ function ColumnInspectorControls( {
|
|
|
147
38
|
} }
|
|
148
39
|
dropdownMenuProps={ dropdownMenuProps }
|
|
149
40
|
>
|
|
150
|
-
{ canInsertColumnBlock && (
|
|
151
|
-
<VStack spacing={ 4 } style={ { gridColumn: '1 / -1' } }>
|
|
152
|
-
<RangeControl
|
|
153
|
-
label={ __( 'Columns' ) }
|
|
154
|
-
value={ count }
|
|
155
|
-
onChange={ ( value ) =>
|
|
156
|
-
updateColumns( count, Math.max( minCount, value ) )
|
|
157
|
-
}
|
|
158
|
-
min={ Math.max( 1, minCount ) }
|
|
159
|
-
max={ Math.max( 6, count ) }
|
|
160
|
-
/>
|
|
161
|
-
{ count > 6 && (
|
|
162
|
-
<Notice status="warning" isDismissible={ false }>
|
|
163
|
-
{ __(
|
|
164
|
-
'This column count exceeds the recommended amount and may cause visual breakage.'
|
|
165
|
-
) }
|
|
166
|
-
</Notice>
|
|
167
|
-
) }
|
|
168
|
-
</VStack>
|
|
169
|
-
) }
|
|
170
41
|
<ToolsPanelItem
|
|
171
42
|
label={ __( 'Stack on mobile' ) }
|
|
172
43
|
isShownByDefault
|
|
@@ -243,7 +114,6 @@ function ColumnsEditContainer( { attributes, setAttributes, clientId } ) {
|
|
|
243
114
|
</BlockControls>
|
|
244
115
|
<InspectorControls>
|
|
245
116
|
<ColumnInspectorControls
|
|
246
|
-
clientId={ clientId }
|
|
247
117
|
setAttributes={ setAttributes }
|
|
248
118
|
isStackedOnMobile={ isStackedOnMobile }
|
|
249
119
|
/>
|
|
@@ -28,6 +28,8 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
28
28
|
|
|
29
29
|
- [`anchor`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#anchor): `true`
|
|
30
30
|
- [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false`
|
|
31
|
+
- [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#background):
|
|
32
|
+
- `gradient`: `true`
|
|
31
33
|
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
|
|
32
34
|
- `margin`: `true`
|
|
33
35
|
- `padding`: `true`
|
|
@@ -24,8 +24,12 @@ _This block has no custom attributes._
|
|
|
24
24
|
_Defined via the [`supports`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/) property in block.json._
|
|
25
25
|
|
|
26
26
|
- [`anchor`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#anchor): `true`
|
|
27
|
+
- [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#background):
|
|
28
|
+
- `gradient`: `true`
|
|
27
29
|
- [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color):
|
|
28
30
|
- [`gradients`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-gradients): `true`
|
|
31
|
+
- [`heading`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-heading): `true`
|
|
32
|
+
- [`button`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-button): `true`
|
|
29
33
|
- [`link`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-link): `true`
|
|
30
34
|
- [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography):
|
|
31
35
|
- [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true`
|