@wordpress/block-library 11.0.0 → 11.1.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 +29 -0
- package/README.md +7 -7
- package/build/accordion/block.json +4 -1
- package/build/accordion-item/block.json +7 -1
- package/build/accordion-panel/block.json +9 -1
- package/build/archives/block.json +9 -0
- package/build/archives/edit.cjs.map +3 -3
- package/build/audio/block.json +8 -0
- package/build/audio/edit.cjs.map +3 -3
- package/build/avatar/hooks.cjs.map +2 -2
- package/build/breadcrumbs/block.json +3 -0
- package/build/breadcrumbs/edit.cjs.map +3 -3
- package/build/button/edit.cjs.map +2 -2
- package/build/buttons/block.json +9 -0
- package/build/categories/block.json +12 -1
- package/build/categories/edit.cjs.map +3 -3
- package/build/code/block.json +10 -0
- package/build/code/save.cjs.map +2 -2
- package/build/column/block.json +9 -0
- package/build/columns/block.json +9 -0
- 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/comment-template/hooks.cjs.map +2 -2
- package/build/comments/block.json +10 -0
- package/build/comments-pagination/block.json +3 -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/edit/index.cjs +4 -1
- package/build/cover/edit/index.cjs.map +2 -2
- package/build/cover/edit/inspector-controls.cjs +52 -13
- package/build/cover/edit/inspector-controls.cjs.map +2 -2
- package/build/cover/transforms.cjs.map +2 -2
- package/build/details/block.json +12 -0
- package/build/details/index.cjs.map +2 -2
- package/build/embed/embed-controls.cjs.map +2 -2
- package/build/file/block.json +9 -0
- package/build/file/deprecated.cjs.map +2 -2
- package/build/file/edit.cjs.map +2 -2
- package/build/file/inspector.cjs.map +3 -3
- package/build/file/save.cjs.map +2 -2
- package/build/footnotes/block.json +10 -0
- package/build/footnotes/edit.cjs.map +2 -2
- package/build/gallery/block.json +9 -0
- package/build/gallery/dynamic-gallery.cjs.map +3 -3
- package/build/gallery/edit.cjs +65 -39
- package/build/gallery/edit.cjs.map +3 -3
- package/build/gallery/{flex-styles.cjs → gallery-styles.cjs} +31 -32
- package/build/gallery/gallery-styles.cjs.map +7 -0
- package/build/gallery/responsive-styles.cjs +27 -5
- package/build/gallery/responsive-styles.cjs.map +2 -2
- package/build/group/block.json +1 -0
- package/build/heading/block.json +11 -0
- package/build/heading/index.cjs.map +2 -2
- package/build/home-link/block.json +18 -0
- package/build/home-link/edit.cjs.map +3 -3
- package/build/html/modal.cjs +3 -6
- package/build/html/modal.cjs.map +2 -2
- package/build/image/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 +20 -0
- package/build/image/use-open-image-media-editor-modal.cjs.map +2 -2
- package/build/index.cjs.map +2 -2
- package/build/latest-comments/block.json +10 -0
- package/build/latest-comments/edit.cjs.map +3 -3
- package/build/latest-posts/block.json +10 -0
- package/build/latest-posts/edit.cjs.map +2 -2
- package/build/list/ordered-list-settings.cjs.map +3 -3
- package/build/list-item/hooks/use-enter.cjs.map +2 -2
- package/build/loginout/block.json +10 -0
- package/build/math/block.json +12 -0
- package/build/math/deprecated.cjs +29 -12
- package/build/math/deprecated.cjs.map +2 -2
- package/build/math/edit.cjs +67 -46
- package/build/math/edit.cjs.map +2 -2
- package/build/math/save.cjs +2 -2
- package/build/math/save.cjs.map +2 -2
- package/build/media-text/block.json +1 -0
- package/build/media-text/constants.cjs +3 -0
- package/build/media-text/constants.cjs.map +2 -2
- package/build/media-text/deprecated.cjs.map +2 -2
- package/build/media-text/edit.cjs +40 -0
- package/build/media-text/edit.cjs.map +3 -3
- package/build/media-text/image-fill.cjs.map +2 -2
- package/build/media-text/media-container.cjs +3 -3
- package/build/media-text/media-container.cjs.map +2 -2
- package/build/navigation/edit/index.cjs +1 -4
- package/build/navigation/edit/index.cjs.map +2 -2
- package/build/navigation/edit/menu-inspector-controls.cjs.map +2 -2
- package/build/navigation/edit/overlay-template-part-selector.cjs.map +3 -3
- package/build/navigation/edit/responsive-wrapper.cjs.map +2 -2
- package/build/navigation/edit/use-generate-default-navigation-title.cjs.map +2 -2
- package/build/navigation/view.cjs +2 -2
- package/build/navigation/view.cjs.map +2 -2
- package/build/navigation-link/edit.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/invalid-draft-display.cjs.map +2 -2
- 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 +10 -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/paragraph/index.cjs +6 -0
- package/build/paragraph/index.cjs.map +3 -3
- package/build/playlist/block.json +1 -0
- package/build/playlist/edit.cjs +2 -1
- package/build/playlist/edit.cjs.map +3 -3
- package/build/post-author/edit.cjs.map +3 -3
- package/build/post-author-biography/block.json +4 -0
- package/build/post-author-name/block.json +5 -0
- package/build/post-author-name/edit.cjs.map +2 -2
- package/build/post-comments-count/block.json +3 -0
- package/build/post-comments-form/block.json +10 -0
- package/build/post-content/block.json +3 -0
- package/build/post-date/block.json +3 -0
- package/build/post-date/edit.cjs.map +2 -2
- package/build/post-excerpt/block.json +6 -0
- package/build/post-excerpt/edit.cjs.map +2 -2
- package/build/post-featured-image/edit.cjs +11 -9
- 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 +6 -0
- package/build/post-time-to-read/block.json +6 -0
- package/build/post-time-to-read/edit.cjs.map +2 -2
- package/build/post-title/block.json +10 -0
- package/build/preformatted/block.json +7 -0
- package/build/pullquote/block.json +1 -0
- package/build/pullquote/deprecated.cjs.map +2 -2
- package/build/query/deprecated.cjs.map +2 -2
- package/build/query/edit/inspector-controls/index.cjs.map +3 -3
- package/build/query/edit/inspector-controls/order-control.cjs.map +3 -3
- package/build/query/edit/inspector-controls/sticky-control.cjs.map +3 -3
- package/build/query/view.cjs.map +2 -2
- package/build/query-no-results/block.json +10 -2
- package/build/query-pagination/block.json +3 -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-title/use-archive-label.cjs.map +2 -2
- package/build/query-total/block.json +6 -0
- package/build/quote/block.json +1 -0
- package/build/quote/deprecated.cjs.map +2 -2
- package/build/quote/transforms.cjs.map +2 -2
- package/build/read-more/block.json +6 -0
- package/build/rss/block.json +6 -0
- package/build/search/edit.cjs.map +3 -3
- package/build/separator/edit.cjs.map +3 -3
- package/build/site-tagline/block.json +8 -1
- package/build/site-title/block.json +7 -1
- package/build/social-links/block.json +3 -0
- package/build/social-links/edit.cjs +2 -3
- package/build/social-links/edit.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 +18 -1
- package/build/table/state.cjs.map +2 -2
- package/build/table-of-contents/block.json +7 -0
- package/build/table-of-contents/edit.cjs.map +3 -3
- package/build/table-of-contents/utils.cjs.map +2 -2
- package/build/tabs/block.json +24 -1
- package/build/tabs/use-tab-actions.cjs.map +2 -2
- package/build/tag-cloud/block.json +19 -0
- package/build/tag-cloud/edit.cjs.map +3 -3
- package/build/template-part/edit/advanced-controls.cjs.map +3 -3
- package/build/template-part/edit/import-controls.cjs.map +3 -3
- package/build/template-part/edit/index.cjs.map +2 -2
- package/build/template-part/edit/inner-blocks.cjs.map +2 -2
- package/build/template-part/edit/placeholder.cjs.map +2 -2
- package/build/template-part/edit/selection-modal.cjs.map +1 -1
- package/build/term-count/block.json +7 -0
- package/build/term-count/use-term-count.cjs.map +2 -2
- package/build/term-description/block.json +9 -0
- package/build/term-description/use-term-description.cjs.map +2 -2
- package/build/term-name/block.json +10 -0
- package/build/term-name/use-term-name.cjs.map +2 -2
- package/build/term-template/block.json +10 -1
- package/build/terms-query/edit/inspector-controls/index.cjs.map +2 -2
- package/build/terms-query/edit/inspector-controls/inherit-control.cjs.map +2 -2
- package/build/terms-query/edit/inspector-controls/order-control.cjs.map +3 -3
- package/build/terms-query/edit/inspector-controls/taxonomy-control.cjs.map +3 -3
- package/build/utils/hooks.cjs.map +2 -2
- package/build/utils/media-control.cjs +5 -1
- package/build/utils/media-control.cjs.map +2 -2
- package/build/utils/poster-image.cjs.map +2 -2
- 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/verse/block.json +1 -0
- package/build/video/block.json +6 -0
- package/build/video/edit-common-settings.cjs.map +3 -3
- package/build/video/edit.cjs +23 -15
- 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/video/tracks-editor.cjs.map +3 -3
- package/build-module/accordion/block.json +4 -1
- package/build-module/accordion-item/block.json +7 -1
- package/build-module/accordion-panel/block.json +9 -1
- package/build-module/archives/block.json +9 -0
- package/build-module/archives/edit.mjs +2 -2
- package/build-module/archives/edit.mjs.map +2 -2
- package/build-module/audio/block.json +8 -0
- package/build-module/audio/edit.mjs +2 -2
- package/build-module/audio/edit.mjs.map +2 -2
- package/build-module/avatar/hooks.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/edit.mjs.map +2 -2
- package/build-module/buttons/block.json +9 -0
- package/build-module/categories/block.json +12 -1
- package/build-module/categories/edit.mjs +2 -2
- package/build-module/categories/edit.mjs.map +2 -2
- package/build-module/code/block.json +10 -0
- package/build-module/code/save.mjs.map +2 -2
- package/build-module/column/block.json +9 -0
- package/build-module/columns/block.json +9 -0
- 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/comment-template/hooks.mjs.map +2 -2
- package/build-module/comments/block.json +10 -0
- package/build-module/comments-pagination/block.json +3 -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/edit/index.mjs +4 -1
- package/build-module/cover/edit/index.mjs.map +2 -2
- package/build-module/cover/edit/inspector-controls.mjs +57 -14
- package/build-module/cover/edit/inspector-controls.mjs.map +2 -2
- package/build-module/cover/transforms.mjs.map +2 -2
- package/build-module/details/block.json +12 -0
- package/build-module/details/index.mjs.map +2 -2
- package/build-module/embed/embed-controls.mjs.map +2 -2
- package/build-module/file/block.json +9 -0
- package/build-module/file/deprecated.mjs.map +2 -2
- package/build-module/file/edit.mjs.map +2 -2
- package/build-module/file/inspector.mjs +2 -2
- package/build-module/file/inspector.mjs.map +2 -2
- package/build-module/file/save.mjs.map +2 -2
- package/build-module/footnotes/block.json +10 -0
- package/build-module/footnotes/edit.mjs.map +2 -2
- package/build-module/gallery/block.json +9 -0
- package/build-module/gallery/dynamic-gallery.mjs +2 -2
- package/build-module/gallery/dynamic-gallery.mjs.map +2 -2
- package/build-module/gallery/edit.mjs +68 -42
- package/build-module/gallery/edit.mjs.map +2 -2
- package/build-module/gallery/{flex-styles.mjs → gallery-styles.mjs} +29 -30
- package/build-module/gallery/gallery-styles.mjs.map +7 -0
- package/build-module/gallery/responsive-styles.mjs +25 -4
- package/build-module/gallery/responsive-styles.mjs.map +2 -2
- package/build-module/group/block.json +1 -0
- package/build-module/heading/block.json +11 -0
- package/build-module/heading/index.mjs.map +2 -2
- package/build-module/home-link/block.json +18 -0
- package/build-module/home-link/edit.mjs +2 -2
- package/build-module/home-link/edit.mjs.map +2 -2
- package/build-module/html/modal.mjs +3 -6
- package/build-module/html/modal.mjs.map +2 -2
- package/build-module/image/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 +20 -0
- package/build-module/image/use-open-image-media-editor-modal.mjs.map +2 -2
- package/build-module/index.mjs.map +2 -2
- package/build-module/latest-comments/block.json +10 -0
- package/build-module/latest-comments/edit.mjs +2 -2
- package/build-module/latest-comments/edit.mjs.map +2 -2
- package/build-module/latest-posts/block.json +10 -0
- package/build-module/latest-posts/edit.mjs.map +2 -2
- package/build-module/list/ordered-list-settings.mjs +2 -2
- package/build-module/list/ordered-list-settings.mjs.map +2 -2
- package/build-module/list-item/hooks/use-enter.mjs.map +2 -2
- package/build-module/loginout/block.json +10 -0
- package/build-module/math/block.json +12 -0
- package/build-module/math/deprecated.mjs +29 -12
- package/build-module/math/deprecated.mjs.map +2 -2
- package/build-module/math/edit.mjs +68 -47
- package/build-module/math/edit.mjs.map +2 -2
- package/build-module/math/save.mjs +2 -2
- package/build-module/math/save.mjs.map +2 -2
- package/build-module/media-text/block.json +1 -0
- package/build-module/media-text/constants.mjs +2 -0
- package/build-module/media-text/constants.mjs.map +2 -2
- package/build-module/media-text/deprecated.mjs.map +2 -2
- package/build-module/media-text/edit.mjs +42 -1
- package/build-module/media-text/edit.mjs.map +2 -2
- package/build-module/media-text/image-fill.mjs.map +2 -2
- package/build-module/media-text/media-container.mjs +1 -1
- package/build-module/media-text/media-container.mjs.map +2 -2
- package/build-module/navigation/edit/index.mjs +1 -4
- package/build-module/navigation/edit/index.mjs.map +2 -2
- package/build-module/navigation/edit/menu-inspector-controls.mjs.map +2 -2
- package/build-module/navigation/edit/overlay-template-part-selector.mjs +2 -2
- package/build-module/navigation/edit/overlay-template-part-selector.mjs.map +2 -2
- package/build-module/navigation/edit/responsive-wrapper.mjs.map +2 -2
- package/build-module/navigation/edit/use-generate-default-navigation-title.mjs.map +2 -2
- package/build-module/navigation/view.mjs +2 -2
- package/build-module/navigation/view.mjs.map +2 -2
- package/build-module/navigation-link/edit.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/invalid-draft-display.mjs.map +2 -2
- 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 +10 -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/paragraph/index.mjs +6 -0
- package/build-module/paragraph/index.mjs.map +2 -2
- package/build-module/playlist/block.json +1 -0
- package/build-module/playlist/edit.mjs +5 -4
- package/build-module/playlist/edit.mjs.map +2 -2
- package/build-module/post-author/edit.mjs +2 -2
- package/build-module/post-author/edit.mjs.map +2 -2
- package/build-module/post-author-biography/block.json +4 -0
- package/build-module/post-author-name/block.json +5 -0
- package/build-module/post-author-name/edit.mjs.map +2 -2
- package/build-module/post-comments-count/block.json +3 -0
- package/build-module/post-comments-form/block.json +10 -0
- package/build-module/post-content/block.json +3 -0
- package/build-module/post-date/block.json +3 -0
- package/build-module/post-date/edit.mjs.map +2 -2
- package/build-module/post-excerpt/block.json +6 -0
- package/build-module/post-excerpt/edit.mjs.map +2 -2
- package/build-module/post-featured-image/edit.mjs +11 -9
- 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 +19 -5
- 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 +6 -0
- package/build-module/post-time-to-read/block.json +6 -0
- package/build-module/post-time-to-read/edit.mjs.map +2 -2
- package/build-module/post-title/block.json +10 -0
- package/build-module/preformatted/block.json +7 -0
- package/build-module/pullquote/block.json +1 -0
- package/build-module/pullquote/deprecated.mjs.map +2 -2
- package/build-module/query/deprecated.mjs.map +2 -2
- package/build-module/query/edit/inspector-controls/index.mjs +2 -2
- package/build-module/query/edit/inspector-controls/index.mjs.map +2 -2
- package/build-module/query/edit/inspector-controls/order-control.mjs +2 -2
- package/build-module/query/edit/inspector-controls/order-control.mjs.map +2 -2
- package/build-module/query/edit/inspector-controls/sticky-control.mjs +2 -2
- package/build-module/query/edit/inspector-controls/sticky-control.mjs.map +2 -2
- package/build-module/query/view.mjs.map +2 -2
- package/build-module/query-no-results/block.json +10 -2
- package/build-module/query-pagination/block.json +3 -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-title/use-archive-label.mjs.map +2 -2
- package/build-module/query-total/block.json +6 -0
- package/build-module/quote/block.json +1 -0
- package/build-module/quote/deprecated.mjs.map +2 -2
- package/build-module/quote/transforms.mjs.map +2 -2
- package/build-module/read-more/block.json +6 -0
- package/build-module/rss/block.json +6 -0
- package/build-module/search/edit.mjs +3 -3
- package/build-module/search/edit.mjs.map +2 -2
- package/build-module/separator/edit.mjs +5 -2
- package/build-module/separator/edit.mjs.map +2 -2
- package/build-module/site-tagline/block.json +8 -1
- package/build-module/site-title/block.json +7 -1
- package/build-module/social-links/block.json +3 -0
- package/build-module/social-links/edit.mjs +4 -5
- package/build-module/social-links/edit.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 +18 -1
- package/build-module/table/state.mjs.map +2 -2
- package/build-module/table-of-contents/block.json +7 -0
- package/build-module/table-of-contents/edit.mjs +2 -2
- package/build-module/table-of-contents/edit.mjs.map +2 -2
- package/build-module/table-of-contents/utils.mjs.map +2 -2
- package/build-module/tabs/block.json +24 -1
- package/build-module/tabs/use-tab-actions.mjs.map +2 -2
- package/build-module/tag-cloud/block.json +19 -0
- package/build-module/tag-cloud/edit.mjs +2 -2
- package/build-module/tag-cloud/edit.mjs.map +2 -2
- package/build-module/template-part/edit/advanced-controls.mjs +5 -2
- package/build-module/template-part/edit/advanced-controls.mjs.map +2 -2
- package/build-module/template-part/edit/import-controls.mjs +2 -2
- package/build-module/template-part/edit/import-controls.mjs.map +2 -2
- package/build-module/template-part/edit/index.mjs.map +2 -2
- package/build-module/template-part/edit/inner-blocks.mjs.map +2 -2
- package/build-module/template-part/edit/placeholder.mjs.map +2 -2
- package/build-module/template-part/edit/selection-modal.mjs.map +1 -1
- package/build-module/term-count/block.json +7 -0
- package/build-module/term-count/use-term-count.mjs.map +2 -2
- package/build-module/term-description/block.json +9 -0
- package/build-module/term-description/use-term-description.mjs.map +2 -2
- package/build-module/term-name/block.json +10 -0
- package/build-module/term-name/use-term-name.mjs.map +2 -2
- package/build-module/term-template/block.json +10 -1
- package/build-module/terms-query/edit/inspector-controls/index.mjs.map +2 -2
- package/build-module/terms-query/edit/inspector-controls/inherit-control.mjs.map +2 -2
- package/build-module/terms-query/edit/inspector-controls/order-control.mjs +2 -2
- package/build-module/terms-query/edit/inspector-controls/order-control.mjs.map +2 -2
- package/build-module/terms-query/edit/inspector-controls/taxonomy-control.mjs +2 -2
- package/build-module/terms-query/edit/inspector-controls/taxonomy-control.mjs.map +2 -2
- package/build-module/utils/hooks.mjs.map +2 -2
- package/build-module/utils/media-control.mjs +5 -1
- package/build-module/utils/media-control.mjs.map +2 -2
- package/build-module/utils/poster-image.mjs.map +2 -2
- 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/verse/block.json +1 -0
- package/build-module/video/block.json +6 -0
- package/build-module/video/edit-common-settings.mjs +2 -2
- package/build-module/video/edit-common-settings.mjs.map +2 -2
- package/build-module/video/edit.mjs +25 -16
- 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-module/video/tracks-editor.mjs +2 -2
- package/build-module/video/tracks-editor.mjs.map +2 -2
- package/build-style/button/style-rtl.css +2 -1
- package/build-style/button/style.css +2 -1
- package/build-style/columns/style-rtl.css +1 -1
- package/build-style/columns/style.css +1 -1
- package/build-style/comments/editor-rtl.css +1 -1
- package/build-style/comments/editor.css +1 -1
- package/build-style/comments/style-rtl.css +1 -1
- package/build-style/comments/style.css +1 -1
- package/build-style/common-rtl.css +1 -1
- package/build-style/common.css +1 -1
- package/build-style/cover/style-rtl.css +6 -0
- package/build-style/cover/style.css +6 -0
- package/build-style/editor-rtl.css +21 -7
- package/build-style/editor.css +21 -7
- package/build-style/embed/editor-rtl.css +2 -1
- package/build-style/embed/editor.css +2 -1
- package/build-style/gallery/style-rtl.css +1 -2
- package/build-style/gallery/style.css +1 -2
- package/build-style/image/editor-rtl.css +6 -0
- package/build-style/image/editor.css +6 -0
- package/build-style/image/style-rtl.css +6 -9
- package/build-style/image/style.css +6 -9
- package/build-style/math/editor-rtl.css +5 -0
- package/build-style/math/editor.css +5 -0
- package/build-style/navigation/editor-rtl.css +1 -0
- package/build-style/navigation/editor.css +1 -0
- package/build-style/navigation/style-rtl.css +19 -4
- package/build-style/navigation/style.css +19 -4
- 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/post-title/style-rtl.css +2 -2
- package/build-style/post-title/style.css +2 -2
- package/build-style/query-pagination/editor-rtl.css +0 -3
- package/build-style/query-pagination/editor.css +0 -3
- package/build-style/search/theme-rtl.css +1 -1
- package/build-style/search/theme.css +1 -1
- package/build-style/style-rtl.css +47 -23
- package/build-style/style.css +47 -23
- package/build-style/tab-panel/style-rtl.css +2 -0
- package/build-style/tab-panel/style.css +2 -0
- package/build-style/theme-rtl.css +1 -1
- package/build-style/theme.css +1 -1
- package/build-style/verse/style-rtl.css +2 -1
- package/build-style/verse/style.css +2 -1
- package/package.json +42 -43
- package/src/accordion/README.md +3 -0
- package/src/accordion/block.json +4 -1
- 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 +4 -0
- package/src/archives/block.json +9 -0
- package/src/archives/edit.jsx +2 -2
- package/src/audio/README.md +4 -0
- package/src/audio/block.json +8 -0
- package/src/audio/edit.jsx +2 -2
- package/src/avatar/hooks.js +2 -2
- 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/edit.jsx +1 -1
- package/src/button/style.scss +2 -2
- package/src/buttons/README.md +4 -0
- package/src/buttons/block.json +9 -0
- package/src/calendar/index.php +1 -1
- package/src/categories/README.md +6 -0
- package/src/categories/block.json +12 -1
- package/src/categories/edit.jsx +2 -2
- package/src/code/README.md +5 -0
- package/src/code/block.json +10 -0
- package/src/code/save.jsx +1 -1
- package/src/column/README.md +4 -0
- package/src/column/block.json +9 -0
- package/src/columns/README.md +4 -0
- package/src/columns/block.json +9 -0
- package/src/columns/style.scss +2 -3
- 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/comment-template/hooks.js +1 -1
- package/src/comments/README.md +5 -0
- package/src/comments/block.json +10 -0
- package/src/comments/style.scss +1 -1
- package/src/comments-pagination/README.md +2 -0
- package/src/comments-pagination/block.json +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 +1 -2
- package/src/cover/edit/index.jsx +5 -2
- package/src/cover/edit/inspector-controls.jsx +66 -15
- package/src/cover/style.scss +10 -0
- package/src/cover/test/{edit.jsdom.test.js → edit.browser.test.js} +122 -147
- package/src/cover/transforms.js +3 -3
- package/src/details/README.md +7 -0
- package/src/details/block.json +12 -0
- package/src/details/index.js +1 -1
- package/src/embed/editor.scss +2 -2
- package/src/embed/embed-controls.jsx +2 -2
- package/src/file/README.md +4 -0
- package/src/file/block.json +9 -0
- package/src/file/deprecated.jsx +3 -3
- package/src/file/edit.jsx +5 -3
- package/src/file/inspector.jsx +3 -3
- package/src/file/save.jsx +2 -2
- package/src/footnotes/README.md +5 -0
- package/src/footnotes/block.json +10 -0
- package/src/footnotes/edit.jsx +1 -1
- package/src/gallery/README.md +4 -0
- package/src/gallery/block.json +9 -0
- package/src/gallery/dynamic-gallery.jsx +4 -4
- package/src/gallery/edit.jsx +122 -70
- package/src/gallery/gallery-styles.js +117 -0
- package/src/gallery/index.php +181 -67
- package/src/gallery/responsive-styles.js +59 -5
- package/src/gallery/test/edit.jsdom.test.js +71 -3
- package/src/gallery/test/responsive-styles.js +59 -5
- package/src/group/README.md +1 -0
- package/src/group/block.json +1 -0
- package/src/heading/README.md +6 -0
- package/src/heading/block.json +11 -0
- package/src/heading/index.js +2 -2
- package/src/home-link/README.md +5 -0
- package/src/home-link/block.json +18 -0
- package/src/home-link/edit.jsx +2 -2
- package/src/html/modal.jsx +0 -3
- package/src/icon/index.php +9 -0
- package/src/image/edit.jsx +1 -1
- package/src/image/editor.scss +8 -0
- package/src/image/image.jsx +20 -18
- package/src/image/index.php +10 -4
- package/src/image/style.scss +1 -0
- package/src/image/test/use-open-image-media-editor-modal.jsdom.test.js +140 -1
- package/src/image/use-open-image-media-editor-modal.js +37 -0
- package/src/index.jsx +1 -1
- package/src/latest-comments/README.md +5 -0
- package/src/latest-comments/block.json +10 -0
- package/src/latest-comments/edit.jsx +2 -2
- package/src/latest-posts/README.md +5 -0
- package/src/latest-posts/block.json +10 -0
- package/src/latest-posts/edit.jsx +1 -1
- package/src/list/ordered-list-settings.jsx +2 -2
- package/src/list-item/hooks/use-enter.js +1 -1
- package/src/loginout/README.md +5 -0
- package/src/loginout/block.json +10 -0
- package/src/math/README.md +7 -2
- package/src/math/block.json +12 -0
- package/src/math/deprecated.jsx +38 -12
- package/src/math/edit.jsx +49 -20
- package/src/math/editor.scss +5 -0
- package/src/math/save.jsx +20 -4
- package/src/media-text/README.md +1 -0
- package/src/media-text/block.json +1 -0
- package/src/media-text/constants.js +1 -0
- package/src/media-text/deprecated.jsx +3 -3
- package/src/media-text/edit.jsx +48 -3
- package/src/media-text/image-fill.js +2 -2
- package/src/media-text/media-container.jsx +1 -1
- package/src/navigation/edit/index.jsx +3 -5
- package/src/navigation/edit/menu-inspector-controls.jsx +2 -2
- package/src/navigation/edit/overlay-template-part-selector.jsx +3 -3
- package/src/navigation/edit/responsive-wrapper.jsx +1 -1
- package/src/navigation/edit/use-generate-default-navigation-title.js +2 -2
- package/src/navigation/editor.scss +1 -0
- package/src/navigation/index.php +12 -0
- package/src/navigation/style.scss +41 -5
- package/src/navigation/test/use-navigation-menu.jsdom.test.js +6 -28
- package/src/navigation/test/view.jsdom.test.js +23 -0
- package/src/navigation/view.js +9 -6
- package/src/navigation-link/edit.jsx +1 -1
- package/src/navigation-link/editor.scss +6 -1
- package/src/navigation-link/link-ui/page-creator.jsx +2 -2
- package/src/navigation-link/shared/controls.jsx +2 -2
- package/src/navigation-link/shared/invalid-draft-display.jsx +2 -2
- package/src/navigation-link/shared/test/use-link-preview.jsdom.test.js +22 -22
- package/src/navigation-link/shared/use-link-preview.js +15 -14
- package/src/navigation-link/test/__snapshots__/hooks.jsdom.test.js.snap +41 -11
- 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 +12 -2
- package/src/navigation-submenu/editor.scss +6 -1
- package/src/navigation-submenu/index.php +11 -0
- package/src/page-list/README.md +5 -0
- package/src/page-list/block.json +10 -0
- package/src/paragraph/README.md +1 -0
- package/src/paragraph/block.json +1 -0
- package/src/paragraph/edit.jsx +2 -4
- package/src/paragraph/index.js +7 -0
- package/src/pattern/index.php +2 -2
- package/src/playlist/README.md +1 -0
- package/src/playlist/block.json +1 -0
- package/src/playlist/edit.jsx +6 -4
- package/src/playlist-track/test/edit.jsdom.test.jsx +2 -3
- package/src/post-author/edit.jsx +2 -2
- package/src/post-author-biography/README.md +3 -0
- package/src/post-author-biography/block.json +4 -0
- package/src/post-author-name/README.md +4 -0
- package/src/post-author-name/block.json +5 -0
- package/src/post-author-name/edit.jsx +1 -1
- 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 +5 -0
- package/src/post-comments-form/block.json +10 -0
- package/src/post-content/README.md +3 -0
- package/src/post-content/block.json +3 -0
- package/src/post-date/README.md +2 -0
- package/src/post-date/block.json +3 -0
- package/src/post-date/edit.jsx +2 -2
- package/src/post-excerpt/README.md +5 -0
- package/src/post-excerpt/block.json +6 -0
- package/src/post-excerpt/edit.jsx +1 -1
- 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 +27 -6
- 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 +5 -0
- package/src/post-terms/block.json +6 -0
- package/src/post-time-to-read/README.md +5 -0
- package/src/post-time-to-read/block.json +6 -0
- package/src/post-time-to-read/edit.jsx +2 -2
- package/src/post-title/README.md +5 -0
- package/src/post-title/block.json +10 -0
- package/src/post-title/style.scss +2 -3
- package/src/preformatted/README.md +6 -0
- package/src/preformatted/block.json +7 -0
- package/src/pullquote/README.md +1 -0
- package/src/pullquote/block.json +1 -0
- package/src/pullquote/deprecated.jsx +1 -1
- package/src/query/deprecated.jsx +1 -1
- package/src/query/edit/inspector-controls/index.jsx +4 -4
- package/src/query/edit/inspector-controls/order-control.jsx +2 -2
- package/src/query/edit/inspector-controls/sticky-control.jsx +2 -2
- package/src/query/view.js +6 -9
- package/src/query-no-results/README.md +7 -0
- package/src/query-no-results/block.json +10 -2
- package/src/query-pagination/README.md +2 -0
- package/src/query-pagination/block.json +3 -0
- package/src/query-pagination/editor.scss +0 -3
- 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-title/use-archive-label.js +1 -1
- package/src/query-total/README.md +5 -0
- package/src/query-total/block.json +6 -0
- package/src/quote/README.md +1 -0
- package/src/quote/block.json +1 -0
- package/src/quote/deprecated.jsx +2 -2
- package/src/quote/transforms.js +3 -3
- package/src/read-more/README.md +5 -0
- package/src/read-more/block.json +6 -0
- package/src/rss/README.md +5 -0
- package/src/rss/block.json +6 -0
- package/src/search/edit.jsx +6 -6
- package/src/search/theme.scss +1 -1
- package/src/separator/edit.jsx +7 -4
- package/src/site-tagline/README.md +6 -0
- package/src/site-tagline/block.json +8 -1
- package/src/site-title/README.md +5 -0
- package/src/site-title/block.json +7 -1
- package/src/social-links/README.md +2 -0
- package/src/social-links/block.json +3 -0
- package/src/social-links/edit.jsx +4 -5
- 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 +7 -0
- package/src/tab-panels/block.json +18 -1
- package/src/table/state.js +1 -1
- package/src/table-of-contents/README.md +6 -0
- package/src/table-of-contents/block.json +7 -0
- package/src/table-of-contents/edit.jsx +6 -6
- package/src/table-of-contents/utils.ts +2 -2
- package/src/tabs/README.md +9 -0
- package/src/tabs/block.json +24 -1
- package/src/tabs/use-tab-actions.js +1 -1
- package/src/tag-cloud/README.md +9 -0
- package/src/tag-cloud/block.json +19 -0
- package/src/tag-cloud/edit.jsx +2 -2
- package/src/template-part/edit/advanced-controls.jsx +5 -2
- package/src/template-part/edit/import-controls.jsx +2 -2
- package/src/template-part/edit/index.jsx +2 -2
- package/src/template-part/edit/inner-blocks.jsx +1 -1
- package/src/template-part/edit/placeholder.jsx +2 -2
- package/src/template-part/edit/selection-modal.jsx +1 -1
- package/src/term-count/README.md +6 -0
- package/src/term-count/block.json +7 -0
- package/src/term-count/use-term-count.js +1 -1
- package/src/term-description/README.md +5 -0
- package/src/term-description/block.json +9 -0
- package/src/term-description/use-term-description.js +1 -1
- package/src/term-name/README.md +5 -0
- package/src/term-name/block.json +10 -0
- package/src/term-name/index.php +1 -1
- package/src/term-name/use-term-name.js +1 -1
- package/src/term-template/README.md +5 -0
- package/src/term-template/block.json +10 -1
- package/src/terms-query/edit/inspector-controls/index.jsx +2 -2
- package/src/terms-query/edit/inspector-controls/inherit-control.jsx +1 -1
- package/src/terms-query/edit/inspector-controls/order-control.jsx +2 -2
- package/src/terms-query/edit/inspector-controls/taxonomy-control.jsx +2 -2
- package/src/utils/hooks.js +1 -1
- package/src/utils/media-control.jsx +16 -10
- package/src/utils/poster-image.jsx +2 -2
- 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.jsdom.test.jsx +36 -38
- package/src/utils/test/{waveform-utils.jsdom.test.js → waveform-utils.browser.test.js} +64 -44
- package/src/verse/README.md +1 -0
- package/src/verse/block.json +1 -0
- package/src/verse/style.scss +2 -2
- package/src/video/README.md +7 -0
- package/src/video/block.json +6 -0
- package/src/video/edit-common-settings.jsx +3 -3
- package/src/video/edit.jsx +56 -51
- package/src/video/index.js +0 -2
- package/src/video/save.jsx +10 -1
- package/src/video/tracks-editor.jsx +2 -2
- package/build/gallery/flex-styles.cjs.map +0 -7
- package/build/video/variations.cjs +0 -75
- package/build/video/variations.cjs.map +0 -7
- package/build-module/gallery/flex-styles.mjs.map +0 -7
- package/build-module/video/variations.mjs +0 -50
- package/build-module/video/variations.mjs.map +0 -7
- package/src/gallery/flex-styles.js +0 -99
- package/src/video/test/variations.js +0 -63
- package/src/video/variations.js +0 -62
|
@@ -41,9 +41,7 @@ import { unlock } from '../lock-unlock';
|
|
|
41
41
|
import { getDimensionResetAttributes } from '../utils/style-state';
|
|
42
42
|
|
|
43
43
|
const ALLOWED_MEDIA_TYPES = [ 'image' ];
|
|
44
|
-
const {
|
|
45
|
-
blockEditorPrivateApis
|
|
46
|
-
);
|
|
44
|
+
const { ResolutionTool } = unlock( blockEditorPrivateApis );
|
|
47
45
|
|
|
48
46
|
const hasDimensionValue = ( value ) =>
|
|
49
47
|
value !== undefined && value !== null && value !== '';
|
|
@@ -132,13 +130,18 @@ export default function PostFeaturedImageEdit( {
|
|
|
132
130
|
return imageId;
|
|
133
131
|
}, [ storedFeaturedImage, useFirstImageFromPost, postContent ] );
|
|
134
132
|
|
|
135
|
-
const {
|
|
133
|
+
const {
|
|
134
|
+
media,
|
|
135
|
+
postType,
|
|
136
|
+
postPermalink,
|
|
137
|
+
selectedStyleState,
|
|
138
|
+
hasSelectedStyleState,
|
|
139
|
+
} = useSelect(
|
|
136
140
|
( select ) => {
|
|
137
141
|
const { getEntityRecord, getPostType, getEditedEntityRecord } =
|
|
138
142
|
select( coreStore );
|
|
139
|
-
const { getSelectedBlockStyleState } =
|
|
140
|
-
select( blockEditorStore )
|
|
141
|
-
);
|
|
143
|
+
const { getSelectedBlockStyleState, hasSelectedBlockStyleState } =
|
|
144
|
+
select( blockEditorStore );
|
|
142
145
|
return {
|
|
143
146
|
media:
|
|
144
147
|
featuredImage &&
|
|
@@ -152,12 +155,11 @@ export default function PostFeaturedImageEdit( {
|
|
|
152
155
|
postId
|
|
153
156
|
)?.link,
|
|
154
157
|
selectedStyleState: getSelectedBlockStyleState( clientId ),
|
|
158
|
+
hasSelectedStyleState: hasSelectedBlockStyleState( clientId ),
|
|
155
159
|
};
|
|
156
160
|
},
|
|
157
161
|
[ clientId, featuredImage, postTypeSlug, postId ]
|
|
158
162
|
);
|
|
159
|
-
const hasSelectedStyleState =
|
|
160
|
-
! isDefaultBlockStyleState( selectedStyleState );
|
|
161
163
|
|
|
162
164
|
const mediaUrl =
|
|
163
165
|
media?.media_details?.sizes?.[ sizeSlug ]?.source_url ||
|
|
@@ -290,7 +292,7 @@ export default function PostFeaturedImageEdit( {
|
|
|
290
292
|
// translators: %s: Name of the post type e.g: "post".
|
|
291
293
|
__( 'Link to %s' ),
|
|
292
294
|
postType.labels.singular_name
|
|
293
|
-
|
|
295
|
+
)
|
|
294
296
|
: __( 'Link to post' )
|
|
295
297
|
}
|
|
296
298
|
isShownByDefault
|
|
@@ -472,7 +474,7 @@ export default function PostFeaturedImageEdit( {
|
|
|
472
474
|
// translators: %s: The image's alt text.
|
|
473
475
|
__( 'Featured image: %s' ),
|
|
474
476
|
media.alt_text
|
|
475
|
-
|
|
477
|
+
)
|
|
476
478
|
: __( 'Featured image' )
|
|
477
479
|
}
|
|
478
480
|
style={ imageStyles }
|
|
@@ -34,8 +34,12 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
34
34
|
- [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true`
|
|
35
35
|
- [`lineHeight`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-lineheight): `true`
|
|
36
36
|
- [`textAlign`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-textalign): `true`
|
|
37
|
+
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
|
|
37
38
|
- [`interactivity`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#interactivity):
|
|
38
39
|
- `clientNavigation`: `true`
|
|
40
|
+
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
|
|
41
|
+
- `margin`: `true`
|
|
42
|
+
- `padding`: `true`
|
|
39
43
|
|
|
40
44
|
## Context
|
|
41
45
|
|
|
@@ -45,6 +49,14 @@ _Defined via the [`usesContext` and `providesContext`](https://developer.wordpre
|
|
|
45
49
|
|
|
46
50
|
- `postType`
|
|
47
51
|
|
|
52
|
+
## CSS Selectors
|
|
53
|
+
|
|
54
|
+
_Defined via the [`selectors`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-selectors/) property in block.json._
|
|
55
|
+
|
|
56
|
+
- **border**: `.wp-block-post-navigation-link:not(:empty)`
|
|
57
|
+
- **shadow**: `.wp-block-post-navigation-link:not(:empty)`
|
|
58
|
+
- **spacing**: `.wp-block-post-navigation-link:not(:empty)`
|
|
59
|
+
|
|
48
60
|
## Block Markup
|
|
49
61
|
|
|
50
62
|
This is a [**dynamic block**](https://developer.wordpress.org/block-editor/getting-started/fundamentals/static-dynamic-rendering/). It is rendered on the server and does not save HTML in post content.
|
|
@@ -55,9 +55,39 @@
|
|
|
55
55
|
"fontSize": true
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
+
"shadow": {
|
|
59
|
+
"__experimentalSkipSerialization": true
|
|
60
|
+
},
|
|
58
61
|
"interactivity": {
|
|
59
62
|
"clientNavigation": true
|
|
63
|
+
},
|
|
64
|
+
"spacing": {
|
|
65
|
+
"__experimentalSkipSerialization": true,
|
|
66
|
+
"margin": true,
|
|
67
|
+
"padding": true,
|
|
68
|
+
"__experimentalDefaultControls": {
|
|
69
|
+
"margin": false,
|
|
70
|
+
"padding": false
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"__experimentalBorder": {
|
|
74
|
+
"__experimentalSkipSerialization": true,
|
|
75
|
+
"color": true,
|
|
76
|
+
"radius": true,
|
|
77
|
+
"style": true,
|
|
78
|
+
"width": true,
|
|
79
|
+
"__experimentalDefaultControls": {
|
|
80
|
+
"color": false,
|
|
81
|
+
"radius": false,
|
|
82
|
+
"style": false,
|
|
83
|
+
"width": false
|
|
84
|
+
}
|
|
60
85
|
}
|
|
61
86
|
},
|
|
87
|
+
"selectors": {
|
|
88
|
+
"border": ".wp-block-post-navigation-link:not(:empty)",
|
|
89
|
+
"shadow": ".wp-block-post-navigation-link:not(:empty)",
|
|
90
|
+
"spacing": ".wp-block-post-navigation-link:not(:empty)"
|
|
91
|
+
},
|
|
62
92
|
"style": "wp-block-post-navigation-link"
|
|
63
93
|
}
|
|
@@ -4,12 +4,15 @@ import {
|
|
|
4
4
|
__experimentalToolsPanel as ToolsPanel,
|
|
5
5
|
__experimentalToolsPanelItem as ToolsPanelItem,
|
|
6
6
|
ToggleControl,
|
|
7
|
-
SelectControl,
|
|
7
|
+
SelectControl as WCSelectControl,
|
|
8
8
|
} from '@wordpress/components';
|
|
9
9
|
import {
|
|
10
10
|
InspectorControls,
|
|
11
11
|
RichText,
|
|
12
12
|
useBlockProps,
|
|
13
|
+
__experimentalUseBorderProps as useBorderProps,
|
|
14
|
+
__experimentalGetShadowClassesAndStyles as getShadowClassesAndStyles,
|
|
15
|
+
__experimentalGetSpacingClassesAndStyles as getSpacingClassesAndStyles,
|
|
13
16
|
} from '@wordpress/block-editor';
|
|
14
17
|
import { __, _x } from '@wordpress/i18n';
|
|
15
18
|
import { useSelect } from '@wordpress/data';
|
|
@@ -18,9 +21,10 @@ import { useToolsPanelDropdownMenuProps } from '../utils/hooks';
|
|
|
18
21
|
|
|
19
22
|
export default function PostNavigationLinkEdit( {
|
|
20
23
|
context: { postType },
|
|
21
|
-
attributes
|
|
24
|
+
attributes,
|
|
22
25
|
setAttributes,
|
|
23
26
|
} ) {
|
|
27
|
+
const { type, label, showTitle, linkLabel, arrow, taxonomy } = attributes;
|
|
24
28
|
const isNext = type === 'next';
|
|
25
29
|
let placeholder = isNext ? __( 'Next' ) : __( 'Previous' );
|
|
26
30
|
|
|
@@ -35,13 +39,30 @@ export default function PostNavigationLinkEdit( {
|
|
|
35
39
|
if ( showTitle ) {
|
|
36
40
|
placeholder = isNext
|
|
37
41
|
? /* translators: Label before for next and previous post. There is a space after the colon. */
|
|
38
|
-
|
|
42
|
+
__( 'Next: ' ) // eslint-disable-line @wordpress/i18n-no-flanking-whitespace
|
|
39
43
|
: /* translators: Label before for next and previous post. There is a space after the colon. */
|
|
40
|
-
|
|
44
|
+
__( 'Previous: ' ); // eslint-disable-line @wordpress/i18n-no-flanking-whitespace
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
const ariaLabel = isNext ? __( 'Next post' ) : __( 'Previous post' );
|
|
44
|
-
|
|
48
|
+
|
|
49
|
+
/*
|
|
50
|
+
* Border, shadow and spacing serialization is skipped for this block so the
|
|
51
|
+
* styles are not applied to the empty wrapper the front end renders when
|
|
52
|
+
* there is no adjacent post. The editor always renders the link, so they
|
|
53
|
+
* always apply here.
|
|
54
|
+
*/
|
|
55
|
+
const borderProps = useBorderProps( attributes );
|
|
56
|
+
const shadowProps = getShadowClassesAndStyles( attributes );
|
|
57
|
+
const spacingProps = getSpacingClassesAndStyles( attributes );
|
|
58
|
+
const blockProps = useBlockProps( {
|
|
59
|
+
className: borderProps.className,
|
|
60
|
+
style: {
|
|
61
|
+
...borderProps.style,
|
|
62
|
+
...shadowProps.style,
|
|
63
|
+
...spacingProps.style,
|
|
64
|
+
},
|
|
65
|
+
} );
|
|
45
66
|
const taxonomies = useSelect(
|
|
46
67
|
( select ) => {
|
|
47
68
|
const { getTaxonomies } = select( coreStore );
|
|
@@ -174,7 +195,7 @@ export default function PostNavigationLinkEdit( {
|
|
|
174
195
|
</ToolsPanel>
|
|
175
196
|
</InspectorControls>
|
|
176
197
|
<InspectorControls group="advanced">
|
|
177
|
-
<
|
|
198
|
+
<WCSelectControl
|
|
178
199
|
label={ __( 'Filter by taxonomy' ) }
|
|
179
200
|
value={ taxonomy }
|
|
180
201
|
options={ getTaxonomyOptions() }
|
|
@@ -30,11 +30,7 @@ function render_block_core_post_navigation_link( $attributes, $content ) {
|
|
|
30
30
|
if ( isset( $attributes['textAlign'] ) ) {
|
|
31
31
|
$classes .= " has-text-align-{$attributes['textAlign']}";
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
array(
|
|
35
|
-
'class' => $classes,
|
|
36
|
-
)
|
|
37
|
-
);
|
|
33
|
+
|
|
38
34
|
// Set default values.
|
|
39
35
|
$format = '%link';
|
|
40
36
|
$link = 'next' === $navigation_type ? _x( 'Next', 'label for next post link' ) : _x( 'Previous', 'label for previous post link' );
|
|
@@ -116,6 +112,32 @@ function render_block_core_post_navigation_link( $attributes, $content ) {
|
|
|
116
112
|
$content = $get_link_function( $format, $link );
|
|
117
113
|
}
|
|
118
114
|
|
|
115
|
+
// The `{next,previous}_post_link` filters can return null, which renders as no link.
|
|
116
|
+
$content = (string) $content;
|
|
117
|
+
|
|
118
|
+
/*
|
|
119
|
+
* Border, shadow and spacing serialization is skipped for this block so
|
|
120
|
+
* those styles can be withheld from the empty wrapper rendered when there is
|
|
121
|
+
* no adjacent post. The wrapper itself is kept for backward compatibility.
|
|
122
|
+
*/
|
|
123
|
+
$support_styles = '' === $content
|
|
124
|
+
? array(
|
|
125
|
+
'class' => '',
|
|
126
|
+
'style' => '',
|
|
127
|
+
)
|
|
128
|
+
: block_core_post_navigation_link_get_support_styles( $attributes );
|
|
129
|
+
|
|
130
|
+
if ( '' !== $support_styles['class'] ) {
|
|
131
|
+
$classes .= " {$support_styles['class']}";
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
$wrapper_attributes = get_block_wrapper_attributes(
|
|
135
|
+
array(
|
|
136
|
+
'class' => $classes,
|
|
137
|
+
'style' => $support_styles['style'],
|
|
138
|
+
)
|
|
139
|
+
);
|
|
140
|
+
|
|
119
141
|
return sprintf(
|
|
120
142
|
'<div %1$s>%2$s</div>',
|
|
121
143
|
$wrapper_attributes,
|
|
@@ -123,6 +145,73 @@ function render_block_core_post_navigation_link( $attributes, $content ) {
|
|
|
123
145
|
);
|
|
124
146
|
}
|
|
125
147
|
|
|
148
|
+
/**
|
|
149
|
+
* Generates the border, shadow and spacing class names and inline styles for
|
|
150
|
+
* the `core/post-navigation-link` block.
|
|
151
|
+
*
|
|
152
|
+
* Mirrors the default border, shadow and spacing block support serialization,
|
|
153
|
+
* which the block opts out of so the styles are only applied when a link is
|
|
154
|
+
* rendered.
|
|
155
|
+
*
|
|
156
|
+
* @since 7.2.0
|
|
157
|
+
*
|
|
158
|
+
* @param array $attributes The block attributes.
|
|
159
|
+
* @return array {
|
|
160
|
+
* Border, shadow and spacing class names and inline styles.
|
|
161
|
+
*
|
|
162
|
+
* @type string $class Class names generated by the style engine, or an empty string.
|
|
163
|
+
* @type string $style Inline styles generated by the style engine, or an empty string.
|
|
164
|
+
* }
|
|
165
|
+
*/
|
|
166
|
+
function block_core_post_navigation_link_get_support_styles( $attributes ) {
|
|
167
|
+
$block_styles = $attributes['style'] ?? array();
|
|
168
|
+
$border = $block_styles['border'] ?? array();
|
|
169
|
+
$border_styles = array();
|
|
170
|
+
|
|
171
|
+
// Border radius and width accept unitless numbers from the original implementation.
|
|
172
|
+
if ( isset( $border['radius'] ) ) {
|
|
173
|
+
$border_styles['radius'] = is_numeric( $border['radius'] ) ? "{$border['radius']}px" : $border['radius'];
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
if ( isset( $border['width'] ) ) {
|
|
177
|
+
$border_styles['width'] = is_numeric( $border['width'] ) ? "{$border['width']}px" : $border['width'];
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if ( isset( $border['style'] ) ) {
|
|
181
|
+
$border_styles['style'] = $border['style'];
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// A preset border color is stored in its own attribute rather than under `style`.
|
|
185
|
+
$border_styles['color'] = isset( $attributes['borderColor'] )
|
|
186
|
+
? "var:preset|color|{$attributes['borderColor']}"
|
|
187
|
+
: ( $border['color'] ?? null );
|
|
188
|
+
|
|
189
|
+
// Individual border sides e.g. top, left etc.
|
|
190
|
+
foreach ( array( 'top', 'right', 'bottom', 'left' ) as $side ) {
|
|
191
|
+
$border_styles[ $side ] = array(
|
|
192
|
+
'width' => $border[ $side ]['width'] ?? null,
|
|
193
|
+
'color' => $border[ $side ]['color'] ?? null,
|
|
194
|
+
'style' => $border[ $side ]['style'] ?? null,
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
$styles = wp_style_engine_get_styles(
|
|
199
|
+
array(
|
|
200
|
+
'border' => $border_styles,
|
|
201
|
+
'shadow' => $block_styles['shadow'] ?? null,
|
|
202
|
+
'spacing' => array(
|
|
203
|
+
'margin' => $block_styles['spacing']['margin'] ?? null,
|
|
204
|
+
'padding' => $block_styles['spacing']['padding'] ?? null,
|
|
205
|
+
),
|
|
206
|
+
)
|
|
207
|
+
);
|
|
208
|
+
|
|
209
|
+
return array(
|
|
210
|
+
'class' => $styles['classnames'] ?? '',
|
|
211
|
+
'style' => $styles['css'] ?? '',
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
|
|
126
215
|
/**
|
|
127
216
|
* Registers the `core/post-navigation-link` block on the server.
|
|
128
217
|
*
|
|
@@ -28,9 +28,15 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
28
28
|
- [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false`
|
|
29
29
|
- [`align`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#align): `"wide"`, `"full"`
|
|
30
30
|
- [`layout`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout): `true`
|
|
31
|
+
- [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#background):
|
|
32
|
+
- `backgroundImage`: `true`
|
|
33
|
+
- `backgroundSize`: `true`
|
|
34
|
+
- `gradient`: `true`
|
|
31
35
|
- [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color):
|
|
32
36
|
- [`gradients`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-gradients): `true`
|
|
33
37
|
- [`link`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-link): `true`
|
|
38
|
+
- [`heading`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-heading): `true`
|
|
39
|
+
- [`button`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-button): `true`
|
|
34
40
|
- [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography):
|
|
35
41
|
- [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true`
|
|
36
42
|
- [`lineHeight`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-lineheight): `true`
|
|
@@ -40,6 +46,7 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
40
46
|
- `blockGap`: `{"__experimentalDefault":"1.25em"}`
|
|
41
47
|
- [`interactivity`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#interactivity):
|
|
42
48
|
- `clientNavigation`: `true`
|
|
49
|
+
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
|
|
43
50
|
|
|
44
51
|
## Context
|
|
45
52
|
|
|
@@ -23,9 +23,20 @@
|
|
|
23
23
|
"html": false,
|
|
24
24
|
"align": [ "wide", "full" ],
|
|
25
25
|
"layout": true,
|
|
26
|
+
"background": {
|
|
27
|
+
"backgroundImage": true,
|
|
28
|
+
"backgroundSize": true,
|
|
29
|
+
"gradient": true,
|
|
30
|
+
"__experimentalDefaultControls": {
|
|
31
|
+
"backgroundImage": true,
|
|
32
|
+
"gradient": true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
26
35
|
"color": {
|
|
27
36
|
"gradients": true,
|
|
28
37
|
"link": true,
|
|
38
|
+
"heading": true,
|
|
39
|
+
"button": true,
|
|
29
40
|
"__experimentalDefaultControls": {
|
|
30
41
|
"background": true,
|
|
31
42
|
"text": true
|
|
@@ -64,7 +75,8 @@
|
|
|
64
75
|
"color": true,
|
|
65
76
|
"width": true,
|
|
66
77
|
"style": true
|
|
67
|
-
}
|
|
78
|
+
},
|
|
79
|
+
"shadow": true
|
|
68
80
|
},
|
|
69
81
|
"style": "wp-block-post-template",
|
|
70
82
|
"editorStyle": "wp-block-post-template-editor"
|
package/src/post-terms/README.md
CHANGED
|
@@ -25,9 +25,14 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
25
25
|
|
|
26
26
|
- [`anchor`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#anchor): `true`
|
|
27
27
|
- [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false`
|
|
28
|
+
- [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#background):
|
|
29
|
+
- `backgroundImage`: `true`
|
|
30
|
+
- `backgroundSize`: `true`
|
|
31
|
+
- `gradient`: `true`
|
|
28
32
|
- [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color):
|
|
29
33
|
- [`gradients`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-gradients): `true`
|
|
30
34
|
- [`link`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-link): `true`
|
|
35
|
+
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
|
|
31
36
|
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
|
|
32
37
|
- `margin`: `true`
|
|
33
38
|
- `padding`: `true`
|
|
@@ -32,6 +32,11 @@
|
|
|
32
32
|
"supports": {
|
|
33
33
|
"anchor": true,
|
|
34
34
|
"html": false,
|
|
35
|
+
"background": {
|
|
36
|
+
"backgroundImage": true,
|
|
37
|
+
"backgroundSize": true,
|
|
38
|
+
"gradient": true
|
|
39
|
+
},
|
|
35
40
|
"color": {
|
|
36
41
|
"gradients": true,
|
|
37
42
|
"link": true,
|
|
@@ -41,6 +46,7 @@
|
|
|
41
46
|
"link": true
|
|
42
47
|
}
|
|
43
48
|
},
|
|
49
|
+
"shadow": true,
|
|
44
50
|
"spacing": {
|
|
45
51
|
"margin": true,
|
|
46
52
|
"padding": true
|
|
@@ -23,9 +23,14 @@ _Defined via the [`attributes`](https://developer.wordpress.org/block-editor/ref
|
|
|
23
23
|
_Defined via the [`supports`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/) property in block.json._
|
|
24
24
|
|
|
25
25
|
- [`anchor`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#anchor): `true`
|
|
26
|
+
- [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#background):
|
|
27
|
+
- `backgroundImage`: `true`
|
|
28
|
+
- `backgroundSize`: `true`
|
|
29
|
+
- `gradient`: `true`
|
|
26
30
|
- [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color):
|
|
27
31
|
- [`gradients`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-gradients): `true`
|
|
28
32
|
- [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false`
|
|
33
|
+
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
|
|
29
34
|
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
|
|
30
35
|
- `margin`: `true`
|
|
31
36
|
- `padding`: `true`
|
|
@@ -23,6 +23,11 @@
|
|
|
23
23
|
},
|
|
24
24
|
"supports": {
|
|
25
25
|
"anchor": true,
|
|
26
|
+
"background": {
|
|
27
|
+
"backgroundImage": true,
|
|
28
|
+
"backgroundSize": true,
|
|
29
|
+
"gradient": true
|
|
30
|
+
},
|
|
26
31
|
"color": {
|
|
27
32
|
"gradients": true,
|
|
28
33
|
"__experimentalDefaultControls": {
|
|
@@ -31,6 +36,7 @@
|
|
|
31
36
|
}
|
|
32
37
|
},
|
|
33
38
|
"html": false,
|
|
39
|
+
"shadow": true,
|
|
34
40
|
"spacing": {
|
|
35
41
|
"margin": true,
|
|
36
42
|
"padding": true,
|
|
@@ -94,12 +94,12 @@ function PostTimeToReadEdit( { attributes, setAttributes, context } ) {
|
|
|
94
94
|
/* translators: %s: the number of words in the post. */
|
|
95
95
|
_n( '%s word', '%s words', totalWords ),
|
|
96
96
|
totalWords.toLocaleString()
|
|
97
|
-
|
|
97
|
+
)
|
|
98
98
|
: sprintf(
|
|
99
99
|
/* translators: %s: the number of characters in the post. */
|
|
100
100
|
_n( '%s character', '%s characters', totalWords ),
|
|
101
101
|
totalWords.toLocaleString()
|
|
102
|
-
|
|
102
|
+
);
|
|
103
103
|
}
|
|
104
104
|
}, [
|
|
105
105
|
contentStructure,
|
package/src/post-title/README.md
CHANGED
|
@@ -28,9 +28,14 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
28
28
|
- [`anchor`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#anchor): `true`
|
|
29
29
|
- [`align`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#align): `"wide"`, `"full"`
|
|
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
|
+
- `backgroundImage`: `true`
|
|
33
|
+
- `backgroundSize`: `true`
|
|
34
|
+
- `gradient`: `true`
|
|
31
35
|
- [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color):
|
|
32
36
|
- [`gradients`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-gradients): `true`
|
|
33
37
|
- [`link`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-link): `true`
|
|
38
|
+
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
|
|
34
39
|
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
|
|
35
40
|
- `margin`: `true`
|
|
36
41
|
- `padding`: `true`
|
|
@@ -42,6 +42,15 @@
|
|
|
42
42
|
"anchor": true,
|
|
43
43
|
"align": [ "wide", "full" ],
|
|
44
44
|
"html": false,
|
|
45
|
+
"background": {
|
|
46
|
+
"backgroundImage": true,
|
|
47
|
+
"backgroundSize": true,
|
|
48
|
+
"gradient": true,
|
|
49
|
+
"__experimentalDefaultControls": {
|
|
50
|
+
"backgroundImage": true,
|
|
51
|
+
"gradient": true
|
|
52
|
+
}
|
|
53
|
+
},
|
|
45
54
|
"color": {
|
|
46
55
|
"gradients": true,
|
|
47
56
|
"link": true,
|
|
@@ -51,6 +60,7 @@
|
|
|
51
60
|
"link": true
|
|
52
61
|
}
|
|
53
62
|
},
|
|
63
|
+
"shadow": true,
|
|
54
64
|
"spacing": {
|
|
55
65
|
"margin": true,
|
|
56
66
|
"padding": true
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
.wp-block-post-title {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
word-break: normal;
|
|
3
|
+
overflow-wrap: anywhere;
|
|
4
4
|
// This block has customizable padding, border-box makes that more predictable.
|
|
5
5
|
box-sizing: border-box;
|
|
6
6
|
|
|
7
7
|
:where(a) {
|
|
8
|
-
display: inline-block;
|
|
9
8
|
font-family: inherit;
|
|
10
9
|
font-size: inherit;
|
|
11
10
|
font-style: inherit;
|
|
@@ -21,8 +21,14 @@ _Defined via the [`attributes`](https://developer.wordpress.org/block-editor/ref
|
|
|
21
21
|
_Defined via the [`supports`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/) property in block.json._
|
|
22
22
|
|
|
23
23
|
- [`anchor`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#anchor): `true`
|
|
24
|
+
- [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#background):
|
|
25
|
+
- `backgroundImage`: `true`
|
|
26
|
+
- `backgroundSize`: `true`
|
|
27
|
+
- `gradient`: `true`
|
|
24
28
|
- [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color):
|
|
25
29
|
- [`gradients`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-gradients): `true`
|
|
30
|
+
- [`link`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-link): `true`
|
|
31
|
+
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
|
|
26
32
|
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
|
|
27
33
|
- `padding`: `true`
|
|
28
34
|
- `margin`: `true`
|
|
@@ -17,13 +17,20 @@
|
|
|
17
17
|
},
|
|
18
18
|
"supports": {
|
|
19
19
|
"anchor": true,
|
|
20
|
+
"background": {
|
|
21
|
+
"backgroundImage": true,
|
|
22
|
+
"backgroundSize": true,
|
|
23
|
+
"gradient": true
|
|
24
|
+
},
|
|
20
25
|
"color": {
|
|
21
26
|
"gradients": true,
|
|
27
|
+
"link": true,
|
|
22
28
|
"__experimentalDefaultControls": {
|
|
23
29
|
"background": true,
|
|
24
30
|
"text": true
|
|
25
31
|
}
|
|
26
32
|
},
|
|
33
|
+
"shadow": true,
|
|
27
34
|
"spacing": {
|
|
28
35
|
"padding": true,
|
|
29
36
|
"margin": true
|
package/src/pullquote/README.md
CHANGED
|
@@ -33,6 +33,7 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
33
33
|
- [`link`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-link): `true`
|
|
34
34
|
- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
|
|
35
35
|
- `minHeight`: `true`
|
|
36
|
+
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
|
|
36
37
|
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
|
|
37
38
|
- `margin`: `true`
|
|
38
39
|
- `padding`: `true`
|
package/src/pullquote/block.json
CHANGED
package/src/query/deprecated.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TextControl,
|
|
3
|
-
SelectControl,
|
|
3
|
+
SelectControl as WCSelectControl,
|
|
4
4
|
Notice,
|
|
5
5
|
__experimentalVStack as VStack,
|
|
6
6
|
__experimentalToolsPanel as ToolsPanel,
|
|
@@ -237,10 +237,10 @@ export default function QueryInspectorControls( props ) {
|
|
|
237
237
|
inherit
|
|
238
238
|
? __(
|
|
239
239
|
'Display a list of posts or custom post types based on the current template.'
|
|
240
|
-
|
|
240
|
+
)
|
|
241
241
|
: __(
|
|
242
242
|
'Display a list of posts or custom post types based on specific criteria.'
|
|
243
|
-
|
|
243
|
+
)
|
|
244
244
|
}
|
|
245
245
|
value={ !! inherit ? 'default' : 'custom' }
|
|
246
246
|
>
|
|
@@ -275,7 +275,7 @@ export default function QueryInspectorControls( props ) {
|
|
|
275
275
|
isShownByDefault
|
|
276
276
|
>
|
|
277
277
|
{ postTypesSelectOptions.length > 2 ? (
|
|
278
|
-
<
|
|
278
|
+
<WCSelectControl
|
|
279
279
|
options={ postTypesSelectOptions }
|
|
280
280
|
value={ postType }
|
|
281
281
|
label={ postTypeControlLabel }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectControl } from '@wordpress/components';
|
|
1
|
+
import { SelectControl as WCSelectControl } from '@wordpress/components';
|
|
2
2
|
import { __ } from '@wordpress/i18n';
|
|
3
3
|
|
|
4
4
|
const defaultOrderByOptions = [
|
|
@@ -29,7 +29,7 @@ function OrderControl( {
|
|
|
29
29
|
onChange,
|
|
30
30
|
} ) {
|
|
31
31
|
return (
|
|
32
|
-
<
|
|
32
|
+
<WCSelectControl
|
|
33
33
|
label={ __( 'Order by' ) }
|
|
34
34
|
value={ `${ orderBy }/${ order }` }
|
|
35
35
|
options={ orderByOptions }
|