@wordpress/block-library 7.10.0 → 7.12.2-next.d6164808d3.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 +11 -1
- package/build/archives/edit.js +7 -0
- package/build/archives/edit.js.map +1 -1
- package/build/archives/index.js +9 -1
- package/build/archives/index.js.map +1 -1
- package/build/audio/index.js +4 -0
- package/build/audio/index.js.map +1 -1
- package/build/block/edit.js +4 -2
- package/build/block/edit.js.map +1 -1
- package/build/block/edit.native.js +4 -2
- package/build/block/edit.native.js.map +1 -1
- package/build/button/deprecated.js +14 -5
- package/build/button/deprecated.js.map +1 -1
- package/build/button/edit.js +2 -1
- package/build/button/edit.js.map +1 -1
- package/build/button/index.js +1 -1
- package/build/buttons/edit.js +1 -1
- package/build/buttons/edit.js.map +1 -1
- package/build/calendar/edit.js +12 -5
- package/build/calendar/edit.js.map +1 -1
- package/build/categories/edit.js +3 -1
- package/build/categories/edit.js.map +1 -1
- package/build/categories/index.js +14 -1
- package/build/categories/index.js.map +1 -1
- package/build/code/index.js +4 -2
- package/build/code/index.js.map +1 -1
- package/build/column/index.js +13 -0
- package/build/column/index.js.map +1 -1
- package/build/columns/deprecated.js +16 -5
- package/build/columns/deprecated.js.map +1 -1
- package/build/columns/edit.js +6 -2
- package/build/columns/edit.js.map +1 -1
- package/build/columns/edit.native.js +9 -4
- package/build/columns/edit.native.js.map +1 -1
- package/build/columns/index.js +13 -0
- package/build/columns/index.js.map +1 -1
- package/build/comment-author-name/index.js +5 -1
- package/build/comment-author-name/index.js.map +1 -1
- package/build/comment-content/index.js +5 -1
- package/build/comment-content/index.js.map +1 -1
- package/build/comment-date/index.js +1 -0
- package/build/comment-date/index.js.map +1 -1
- package/build/comment-edit-link/index.js +5 -1
- package/build/comment-edit-link/index.js.map +1 -1
- package/build/comment-reply-link/index.js +5 -1
- package/build/comment-reply-link/index.js.map +1 -1
- package/build/comment-template/index.js +14 -1
- package/build/comment-template/index.js.map +1 -1
- package/build/comments/edit/comments-legacy.js +73 -0
- package/build/comments/edit/comments-legacy.js.map +1 -0
- package/build/comments/{edit.js → edit/index.js} +17 -38
- package/build/comments/edit/index.js.map +1 -0
- package/build/comments/edit/placeholder.js +117 -0
- package/build/comments/edit/placeholder.js.map +1 -0
- package/build/comments/edit/template.js +39 -0
- package/build/comments/edit/template.js.map +1 -0
- package/build/comments/index.js +19 -1
- package/build/comments/index.js.map +1 -1
- package/build/comments/save.js +12 -4
- package/build/comments/save.js.map +1 -1
- package/build/comments-pagination/index.js +13 -0
- package/build/comments-pagination/index.js.map +1 -1
- package/build/comments-pagination-next/index.js +4 -2
- package/build/comments-pagination-next/index.js.map +1 -1
- package/build/comments-pagination-numbers/edit.js +5 -1
- package/build/comments-pagination-numbers/edit.js.map +1 -1
- package/build/comments-pagination-numbers/index.js +14 -1
- package/build/comments-pagination-numbers/index.js.map +1 -1
- package/build/comments-pagination-previous/index.js +4 -2
- package/build/comments-pagination-previous/index.js.map +1 -1
- package/build/comments-title/deprecated.js +4 -2
- package/build/comments-title/deprecated.js.map +1 -1
- package/build/comments-title/index.js +4 -2
- package/build/comments-title/index.js.map +1 -1
- package/build/cover/deprecated.js +20 -5
- package/build/cover/deprecated.js.map +1 -1
- package/build/cover/edit/resizable-cover.js +6 -0
- package/build/cover/edit/resizable-cover.js.map +1 -1
- package/build/cover/index.js +13 -0
- package/build/cover/index.js.map +1 -1
- package/build/cover/shared.js +1 -1
- package/build/cover/shared.js.map +1 -1
- package/build/cover/transforms.js +3 -2
- package/build/cover/transforms.js.map +1 -1
- package/build/embed/embed-placeholder.native.js +1 -3
- package/build/embed/embed-placeholder.native.js.map +1 -1
- package/build/embed/icons.js +1 -1
- package/build/embed/icons.js.map +1 -1
- package/build/gallery/deprecated.js +6 -1
- package/build/gallery/deprecated.js.map +1 -1
- package/build/gallery/edit.js +17 -4
- package/build/gallery/edit.js.map +1 -1
- package/build/gallery/index.js +5 -0
- package/build/gallery/index.js.map +1 -1
- package/build/gallery/transforms.js +20 -7
- package/build/gallery/transforms.js.map +1 -1
- package/build/gallery/use-get-media.native.js +59 -0
- package/build/gallery/use-get-media.native.js.map +1 -0
- package/build/gallery/utils.js +7 -6
- package/build/gallery/utils.js.map +1 -1
- package/build/group/deprecated.js +108 -12
- package/build/group/deprecated.js.map +1 -1
- package/build/group/edit.js +23 -1
- package/build/group/edit.js.map +1 -1
- package/build/group/index.js +11 -2
- package/build/group/index.js.map +1 -1
- package/build/group/transforms.js +5 -0
- package/build/group/transforms.js.map +1 -1
- package/build/group/variations.js +9 -9
- package/build/group/variations.js.map +1 -1
- package/build/heading/deprecated.js +5 -3
- package/build/heading/deprecated.js.map +1 -1
- package/build/heading/index.js +3 -1
- package/build/heading/index.js.map +1 -1
- package/build/heading/transforms.js +3 -1
- package/build/heading/transforms.js.map +1 -1
- package/build/home-link/edit.js +8 -4
- package/build/home-link/edit.js.map +1 -1
- package/build/image/deprecated.js +77 -9
- package/build/image/deprecated.js.map +1 -1
- package/build/image/edit.js +16 -2
- package/build/image/edit.js.map +1 -1
- package/build/image/edit.native.js +18 -8
- package/build/image/edit.native.js.map +1 -1
- package/build/image/image.js +27 -20
- package/build/image/image.js.map +1 -1
- package/build/image/index.js +20 -8
- package/build/image/index.js.map +1 -1
- package/build/image/save.js +8 -2
- package/build/image/save.js.map +1 -1
- package/build/index.js +1 -3
- package/build/index.js.map +1 -1
- package/build/index.native.js +16 -10
- package/build/index.native.js.map +1 -1
- package/build/list/index.js +6 -0
- package/build/list/index.js.map +1 -1
- package/build/list/transforms.js +4 -63
- package/build/list/transforms.js.map +1 -1
- package/build/list/v2/edit.js +16 -5
- package/build/list/v2/edit.js.map +1 -1
- package/build/list/v2/tag-name.js +31 -0
- package/build/list/v2/tag-name.js.map +1 -0
- package/build/list/v2/tag-name.native.js +32 -0
- package/build/list/v2/tag-name.native.js.map +1 -0
- package/build/list/v2/transforms.js +1 -38
- package/build/list/v2/transforms.js.map +1 -1
- package/build/list-item/edit.js +18 -10
- package/build/list-item/edit.js.map +1 -1
- package/build/list-item/edit.native.js +158 -0
- package/build/list-item/edit.native.js.map +1 -0
- package/build/list-item/hooks/index.js +12 -4
- package/build/list-item/hooks/index.js.map +1 -1
- package/build/list-item/hooks/use-copy.js +42 -0
- package/build/list-item/hooks/use-copy.js.map +1 -0
- package/build/list-item/hooks/use-merge.js +174 -0
- package/build/list-item/hooks/use-merge.js.map +1 -0
- package/build/list-item/hooks/use-outdent-list-item.js +86 -50
- package/build/list-item/hooks/use-outdent-list-item.js.map +1 -1
- package/build/list-item/icons.native.js +53 -0
- package/build/list-item/icons.native.js.map +1 -0
- package/build/list-item/list-style-type.native.js +139 -0
- package/build/list-item/list-style-type.native.js.map +1 -0
- package/build/list-item/utils.js +125 -1
- package/build/list-item/utils.js.map +1 -1
- package/build/media-text/deprecated.js +270 -17
- package/build/media-text/deprecated.js.map +1 -1
- package/build/media-text/edit.js +4 -3
- package/build/media-text/edit.js.map +1 -1
- package/build/media-text/index.js +13 -0
- package/build/media-text/index.js.map +1 -1
- package/build/media-text/media-container.js +1 -1
- package/build/media-text/media-container.js.map +1 -1
- package/build/media-text/save.js +13 -0
- package/build/media-text/save.js.map +1 -1
- package/build/more/save.js +1 -7
- package/build/more/save.js.map +1 -1
- package/build/navigation/deprecated.js +6 -1
- package/build/navigation/deprecated.js.map +1 -1
- package/build/navigation/edit/index.js +180 -154
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/navigation-menu-selector.js +11 -14
- package/build/navigation/edit/navigation-menu-selector.js.map +1 -1
- package/build/navigation/edit/placeholder/index.js +4 -2
- package/build/navigation/edit/placeholder/index.js.map +1 -1
- package/build/navigation/edit/responsive-wrapper.js +13 -3
- package/build/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build/navigation/edit/unsaved-inner-blocks.js +2 -1
- package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
- package/build/navigation/edit/use-convert-classic-menu-to-block-menu.js +4 -7
- package/build/navigation/edit/use-convert-classic-menu-to-block-menu.js.map +1 -1
- package/build/navigation/edit/use-create-navigation-menu.js +5 -1
- package/build/navigation/edit/use-create-navigation-menu.js.map +1 -1
- package/build/navigation/edit/use-inner-blocks.js +43 -0
- package/build/navigation/edit/use-inner-blocks.js.map +1 -0
- package/build/navigation/edit/utils.js +28 -0
- package/build/navigation/edit/utils.js.map +1 -0
- package/build/navigation/menu-items-to-blocks.js +1 -7
- package/build/navigation/menu-items-to-blocks.js.map +1 -1
- package/build/navigation/use-navigation-menu.js +15 -10
- package/build/navigation/use-navigation-menu.js.map +1 -1
- package/build/navigation-link/edit.js +11 -12
- package/build/navigation-link/edit.js.map +1 -1
- package/build/navigation-submenu/edit.js +6 -7
- package/build/navigation-submenu/edit.js.map +1 -1
- package/build/page-list/edit.js +15 -4
- package/build/page-list/edit.js.map +1 -1
- package/build/paragraph/deprecated.js +18 -10
- package/build/paragraph/deprecated.js.map +1 -1
- package/build/paragraph/edit.js +8 -11
- package/build/paragraph/edit.js.map +1 -1
- package/build/paragraph/index.js +5 -0
- package/build/paragraph/index.js.map +1 -1
- package/build/paragraph/transforms.js +5 -0
- package/build/paragraph/transforms.js.map +1 -1
- package/build/post-author/edit.js +5 -2
- package/build/post-author/edit.js.map +1 -1
- package/build/post-author/index.js +4 -2
- package/build/post-author/index.js.map +1 -1
- package/build/post-author-biography/edit.js +7 -1
- package/build/post-author-biography/edit.js.map +1 -1
- package/build/post-author-biography/index.js +1 -0
- package/build/post-author-biography/index.js.map +1 -1
- package/build/post-author-name/index.js +5 -1
- package/build/post-author-name/index.js.map +1 -1
- package/build/post-comments-count/edit.js +11 -1
- package/build/post-comments-count/edit.js.map +1 -1
- package/build/post-comments-count/index.js +4 -1
- package/build/post-comments-count/index.js.map +1 -1
- package/build/post-comments-form/edit.js +4 -45
- package/build/post-comments-form/edit.js.map +1 -1
- package/build/post-comments-form/form.js +47 -3
- package/build/post-comments-form/form.js.map +1 -1
- package/build/post-comments-link/index.js +4 -2
- package/build/post-comments-link/index.js.map +1 -1
- package/build/post-content/edit.js +4 -2
- package/build/post-content/edit.js.map +1 -1
- package/build/post-date/edit.js +9 -2
- package/build/post-date/edit.js.map +1 -1
- package/build/post-date/index.js +9 -0
- package/build/post-date/index.js.map +1 -1
- package/build/post-featured-image/edit.js +43 -14
- package/build/post-featured-image/edit.js.map +1 -1
- package/build/post-featured-image/index.js +21 -0
- package/build/post-featured-image/index.js.map +1 -1
- package/build/post-navigation-link/index.js +3 -2
- package/build/post-navigation-link/index.js.map +1 -1
- package/build/post-template/edit.js +8 -4
- package/build/post-template/edit.js.map +1 -1
- package/build/post-template/index.js +14 -1
- package/build/post-template/index.js.map +1 -1
- package/build/post-terms/edit.js +3 -2
- package/build/post-terms/edit.js.map +1 -1
- package/build/post-terms/index.js +5 -3
- package/build/post-terms/index.js.map +1 -1
- package/build/post-title/index.js +2 -1
- package/build/post-title/index.js.map +1 -1
- package/build/preformatted/index.js +4 -2
- package/build/preformatted/index.js.map +1 -1
- package/build/pullquote/deprecated.js +135 -25
- package/build/pullquote/deprecated.js.map +1 -1
- package/build/pullquote/edit.js +1 -1
- package/build/pullquote/edit.js.map +1 -1
- package/build/pullquote/edit.native.js +0 -1
- package/build/pullquote/edit.native.js.map +1 -1
- package/build/pullquote/index.js +13 -6
- package/build/pullquote/index.js.map +1 -1
- package/build/pullquote/save.js +2 -2
- package/build/pullquote/save.js.map +1 -1
- package/build/pullquote/transforms.js +14 -33
- package/build/pullquote/transforms.js.map +1 -1
- package/build/query/deprecated.js +10 -9
- package/build/query/deprecated.js.map +1 -1
- package/build/query/edit/index.js +19 -8
- package/build/query/edit/index.js.map +1 -1
- package/build/query/edit/inspector-controls/index.js +42 -9
- package/build/query/edit/inspector-controls/index.js.map +1 -1
- package/build/query/edit/inspector-controls/taxonomy-controls.js +22 -14
- package/build/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
- package/build/query/edit/query-placeholder.js +6 -1
- package/build/query/edit/query-placeholder.js.map +1 -1
- package/build/query/utils.js +35 -9
- package/build/query/utils.js.map +1 -1
- package/build/query-no-results/edit.js +2 -2
- package/build/query-no-results/edit.js.map +1 -1
- package/build/query-pagination-next/edit.js +2 -1
- package/build/query-pagination-next/edit.js.map +1 -1
- package/build/query-pagination-previous/edit.js +2 -1
- package/build/query-pagination-previous/edit.js.map +1 -1
- package/build/query-title/edit.js +30 -8
- package/build/query-title/edit.js.map +1 -1
- package/build/query-title/index.js +11 -2
- package/build/query-title/index.js.map +1 -1
- package/build/query-title/variations.js +10 -0
- package/build/query-title/variations.js.map +1 -1
- package/build/quote/deprecated.js +176 -37
- package/build/quote/deprecated.js.map +1 -1
- package/build/quote/edit.js +76 -39
- package/build/quote/edit.js.map +1 -1
- package/build/quote/index.js +9 -45
- package/build/quote/index.js.map +1 -1
- package/build/quote/save.js +1 -5
- package/build/quote/save.js.map +1 -1
- package/build/quote/transforms.js +96 -159
- package/build/quote/transforms.js.map +1 -1
- package/build/separator/deprecated.js +3 -4
- package/build/separator/deprecated.js.map +1 -1
- package/build/separator/edit.js +1 -1
- package/build/separator/edit.js.map +1 -1
- package/build/separator/index.js +1 -0
- package/build/separator/index.js.map +1 -1
- package/build/social-link/icons/index.js +13 -0
- package/build/social-link/icons/index.js.map +1 -1
- package/build/social-link/icons/reddit.js +1 -1
- package/build/social-link/icons/reddit.js.map +1 -1
- package/build/social-link/icons/whatsapp.js +25 -0
- package/build/social-link/icons/whatsapp.js.map +1 -0
- package/build/social-link/variations.js +7 -0
- package/build/social-link/variations.js.map +1 -1
- package/build/social-links/edit.js +3 -1
- package/build/social-links/edit.js.map +1 -1
- package/build/spacer/index.js +7 -1
- package/build/spacer/index.js.map +1 -1
- package/build/table/index.js +4 -0
- package/build/table/index.js.map +1 -1
- package/build/table/state.js +9 -3
- package/build/table/state.js.map +1 -1
- package/build/table-of-contents/index.js +11 -1
- package/build/table-of-contents/index.js.map +1 -1
- package/build/tag-cloud/index.js +5 -1
- package/build/tag-cloud/index.js.map +1 -1
- package/build/template-part/edit/index.js +21 -10
- package/build/template-part/edit/index.js.map +1 -1
- package/build/template-part/edit/selection-modal.js +33 -13
- package/build/template-part/edit/selection-modal.js.map +1 -1
- package/build/template-part/edit/utils/search.js +94 -0
- package/build/template-part/edit/utils/search.js.map +1 -0
- package/build/template-part/index.js +2 -2
- package/build/template-part/index.js.map +1 -1
- package/build/term-description/index.js +4 -0
- package/build/term-description/index.js.map +1 -1
- package/build/text-columns/edit.js +3 -1
- package/build/text-columns/edit.js.map +1 -1
- package/build/text-columns/save.js +3 -1
- package/build/text-columns/save.js.map +1 -1
- package/build/verse/index.js +1 -0
- package/build/verse/index.js.map +1 -1
- package/build/video/index.js +4 -0
- package/build/video/index.js.map +1 -1
- package/build-module/archives/edit.js +7 -0
- package/build-module/archives/edit.js.map +1 -1
- package/build-module/archives/index.js +9 -1
- package/build-module/archives/index.js.map +1 -1
- package/build-module/audio/index.js +4 -0
- package/build-module/audio/index.js.map +1 -1
- package/build-module/block/edit.js +5 -3
- package/build-module/block/edit.js.map +1 -1
- package/build-module/block/edit.native.js +5 -3
- package/build-module/block/edit.native.js.map +1 -1
- package/build-module/button/deprecated.js +14 -4
- package/build-module/button/deprecated.js.map +1 -1
- package/build-module/button/edit.js +2 -1
- package/build-module/button/edit.js.map +1 -1
- package/build-module/button/index.js +1 -1
- package/build-module/buttons/edit.js +2 -2
- package/build-module/buttons/edit.js.map +1 -1
- package/build-module/calendar/edit.js +12 -4
- package/build-module/calendar/edit.js.map +1 -1
- package/build-module/categories/edit.js +4 -2
- package/build-module/categories/edit.js.map +1 -1
- package/build-module/categories/index.js +14 -1
- package/build-module/categories/index.js.map +1 -1
- package/build-module/code/index.js +4 -2
- package/build-module/code/index.js.map +1 -1
- package/build-module/column/index.js +13 -0
- package/build-module/column/index.js.map +1 -1
- package/build-module/columns/deprecated.js +16 -4
- package/build-module/columns/deprecated.js.map +1 -1
- package/build-module/columns/edit.js +7 -3
- package/build-module/columns/edit.js.map +1 -1
- package/build-module/columns/edit.native.js +10 -5
- package/build-module/columns/edit.native.js.map +1 -1
- package/build-module/columns/index.js +13 -0
- package/build-module/columns/index.js.map +1 -1
- package/build-module/comment-author-name/index.js +5 -1
- package/build-module/comment-author-name/index.js.map +1 -1
- package/build-module/comment-content/index.js +5 -1
- package/build-module/comment-content/index.js.map +1 -1
- package/build-module/comment-date/index.js +1 -0
- package/build-module/comment-date/index.js.map +1 -1
- package/build-module/comment-edit-link/index.js +5 -1
- package/build-module/comment-edit-link/index.js.map +1 -1
- package/build-module/comment-reply-link/index.js +5 -1
- package/build-module/comment-reply-link/index.js.map +1 -1
- package/build-module/comment-template/index.js +14 -1
- package/build-module/comment-template/index.js.map +1 -1
- package/build-module/comments/edit/comments-legacy.js +59 -0
- package/build-module/comments/edit/comments-legacy.js.map +1 -0
- package/build-module/comments/edit/index.js +37 -0
- package/build-module/comments/edit/index.js.map +1 -0
- package/build-module/comments/edit/placeholder.js +102 -0
- package/build-module/comments/edit/placeholder.js.map +1 -0
- package/build-module/comments/edit/template.js +32 -0
- package/build-module/comments/edit/template.js.map +1 -0
- package/build-module/comments/index.js +19 -1
- package/build-module/comments/index.js.map +1 -1
- package/build-module/comments/save.js +9 -4
- package/build-module/comments/save.js.map +1 -1
- package/build-module/comments-pagination/index.js +13 -0
- package/build-module/comments-pagination/index.js.map +1 -1
- package/build-module/comments-pagination-next/index.js +4 -2
- package/build-module/comments-pagination-next/index.js.map +1 -1
- package/build-module/comments-pagination-numbers/edit.js +5 -1
- package/build-module/comments-pagination-numbers/edit.js.map +1 -1
- package/build-module/comments-pagination-numbers/index.js +14 -1
- package/build-module/comments-pagination-numbers/index.js.map +1 -1
- package/build-module/comments-pagination-previous/index.js +4 -2
- package/build-module/comments-pagination-previous/index.js.map +1 -1
- package/build-module/comments-title/deprecated.js +4 -2
- package/build-module/comments-title/deprecated.js.map +1 -1
- package/build-module/comments-title/index.js +4 -2
- package/build-module/comments-title/index.js.map +1 -1
- package/build-module/cover/deprecated.js +20 -4
- package/build-module/cover/deprecated.js.map +1 -1
- package/build-module/cover/edit/resizable-cover.js +6 -0
- package/build-module/cover/edit/resizable-cover.js.map +1 -1
- package/build-module/cover/index.js +13 -0
- package/build-module/cover/index.js.map +1 -1
- package/build-module/cover/shared.js +1 -1
- package/build-module/cover/shared.js.map +1 -1
- package/build-module/cover/transforms.js +3 -2
- package/build-module/cover/transforms.js.map +1 -1
- package/build-module/embed/embed-placeholder.native.js +1 -2
- package/build-module/embed/embed-placeholder.native.js.map +1 -1
- package/build-module/embed/icons.js +1 -1
- package/build-module/embed/icons.js.map +1 -1
- package/build-module/gallery/deprecated.js +7 -2
- package/build-module/gallery/deprecated.js.map +1 -1
- package/build-module/gallery/edit.js +17 -4
- package/build-module/gallery/edit.js.map +1 -1
- package/build-module/gallery/index.js +5 -0
- package/build-module/gallery/index.js.map +1 -1
- package/build-module/gallery/transforms.js +20 -7
- package/build-module/gallery/transforms.js.map +1 -1
- package/build-module/gallery/use-get-media.native.js +50 -0
- package/build-module/gallery/use-get-media.native.js.map +1 -0
- package/build-module/gallery/utils.js +7 -6
- package/build-module/gallery/utils.js.map +1 -1
- package/build-module/group/deprecated.js +109 -12
- package/build-module/group/deprecated.js.map +1 -1
- package/build-module/group/edit.js +25 -2
- package/build-module/group/edit.js.map +1 -1
- package/build-module/group/index.js +11 -2
- package/build-module/group/index.js.map +1 -1
- package/build-module/group/transforms.js +5 -0
- package/build-module/group/transforms.js.map +1 -1
- package/build-module/group/variations.js +10 -10
- package/build-module/group/variations.js.map +1 -1
- package/build-module/heading/deprecated.js +5 -2
- package/build-module/heading/deprecated.js.map +1 -1
- package/build-module/heading/index.js +3 -1
- package/build-module/heading/index.js.map +1 -1
- package/build-module/heading/transforms.js +3 -1
- package/build-module/heading/transforms.js.map +1 -1
- package/build-module/home-link/edit.js +10 -6
- package/build-module/home-link/edit.js.map +1 -1
- package/build-module/image/deprecated.js +77 -9
- package/build-module/image/deprecated.js.map +1 -1
- package/build-module/image/edit.js +19 -5
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/edit.native.js +18 -8
- package/build-module/image/edit.native.js.map +1 -1
- package/build-module/image/image.js +29 -22
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/index.js +20 -8
- package/build-module/image/index.js.map +1 -1
- package/build-module/image/save.js +9 -3
- package/build-module/image/save.js.map +1 -1
- package/build-module/index.js +1 -2
- package/build-module/index.js.map +1 -1
- package/build-module/index.native.js +15 -9
- package/build-module/index.native.js.map +1 -1
- package/build-module/list/index.js +1 -1
- package/build-module/list/index.js.map +1 -1
- package/build-module/list/transforms.js +4 -63
- package/build-module/list/transforms.js.map +1 -1
- package/build-module/list/v2/edit.js +15 -5
- package/build-module/list/v2/edit.js.map +1 -1
- package/build-module/list/v2/tag-name.js +21 -0
- package/build-module/list/v2/tag-name.js.map +1 -0
- package/build-module/list/v2/tag-name.native.js +21 -0
- package/build-module/list/v2/tag-name.native.js.map +1 -0
- package/build-module/list/v2/transforms.js +3 -39
- package/build-module/list/v2/transforms.js.map +1 -1
- package/build-module/list-item/edit.js +18 -14
- package/build-module/list-item/edit.js.map +1 -1
- package/build-module/list-item/edit.native.js +141 -0
- package/build-module/list-item/edit.native.js.map +1 -0
- package/build-module/list-item/hooks/index.js +2 -1
- package/build-module/list-item/hooks/index.js.map +1 -1
- package/build-module/list-item/hooks/use-copy.js +32 -0
- package/build-module/list-item/hooks/use-copy.js.map +1 -0
- package/build-module/list-item/hooks/use-merge.js +160 -0
- package/build-module/list-item/hooks/use-merge.js.map +1 -0
- package/build-module/list-item/hooks/use-outdent-list-item.js +82 -46
- package/build-module/list-item/hooks/use-outdent-list-item.js.map +1 -1
- package/build-module/list-item/icons.native.js +37 -0
- package/build-module/list-item/icons.native.js.map +1 -0
- package/build-module/list-item/list-style-type.native.js +126 -0
- package/build-module/list-item/list-style-type.native.js.map +1 -0
- package/build-module/list-item/utils.js +123 -2
- package/build-module/list-item/utils.js.map +1 -1
- package/build-module/media-text/deprecated.js +273 -19
- package/build-module/media-text/deprecated.js.map +1 -1
- package/build-module/media-text/edit.js +4 -3
- package/build-module/media-text/edit.js.map +1 -1
- package/build-module/media-text/index.js +13 -0
- package/build-module/media-text/index.js.map +1 -1
- package/build-module/media-text/media-container.js +1 -1
- package/build-module/media-text/media-container.js.map +1 -1
- package/build-module/media-text/save.js +13 -0
- package/build-module/media-text/save.js.map +1 -1
- package/build-module/more/save.js +1 -6
- package/build-module/more/save.js.map +1 -1
- package/build-module/navigation/deprecated.js +7 -2
- package/build-module/navigation/deprecated.js.map +1 -1
- package/build-module/navigation/edit/index.js +178 -154
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-selector.js +12 -15
- package/build-module/navigation/edit/navigation-menu-selector.js.map +1 -1
- package/build-module/navigation/edit/placeholder/index.js +4 -2
- package/build-module/navigation/edit/placeholder/index.js.map +1 -1
- package/build-module/navigation/edit/responsive-wrapper.js +12 -3
- package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build-module/navigation/edit/unsaved-inner-blocks.js +2 -1
- package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
- package/build-module/navigation/edit/use-convert-classic-menu-to-block-menu.js +4 -7
- package/build-module/navigation/edit/use-convert-classic-menu-to-block-menu.js.map +1 -1
- package/build-module/navigation/edit/use-create-navigation-menu.js +5 -1
- package/build-module/navigation/edit/use-create-navigation-menu.js.map +1 -1
- package/build-module/navigation/edit/use-inner-blocks.js +33 -0
- package/build-module/navigation/edit/use-inner-blocks.js.map +1 -0
- package/build-module/navigation/edit/utils.js +21 -0
- package/build-module/navigation/edit/utils.js.map +1 -0
- package/build-module/navigation/menu-items-to-blocks.js +1 -6
- package/build-module/navigation/menu-items-to-blocks.js.map +1 -1
- package/build-module/navigation/use-navigation-menu.js +15 -10
- package/build-module/navigation/use-navigation-menu.js.map +1 -1
- package/build-module/navigation-link/edit.js +12 -13
- package/build-module/navigation-link/edit.js.map +1 -1
- package/build-module/navigation-submenu/edit.js +7 -8
- package/build-module/navigation-submenu/edit.js.map +1 -1
- package/build-module/page-list/edit.js +15 -3
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/paragraph/deprecated.js +18 -9
- package/build-module/paragraph/deprecated.js.map +1 -1
- package/build-module/paragraph/edit.js +9 -12
- package/build-module/paragraph/edit.js.map +1 -1
- package/build-module/paragraph/index.js +5 -0
- package/build-module/paragraph/index.js.map +1 -1
- package/build-module/paragraph/transforms.js +5 -0
- package/build-module/paragraph/transforms.js.map +1 -1
- package/build-module/post-author/edit.js +5 -2
- package/build-module/post-author/edit.js.map +1 -1
- package/build-module/post-author/index.js +4 -2
- package/build-module/post-author/index.js.map +1 -1
- package/build-module/post-author-biography/edit.js +6 -1
- package/build-module/post-author-biography/edit.js.map +1 -1
- package/build-module/post-author-biography/index.js +1 -0
- package/build-module/post-author-biography/index.js.map +1 -1
- package/build-module/post-author-name/index.js +5 -1
- package/build-module/post-author-name/index.js.map +1 -1
- package/build-module/post-comments-count/edit.js +10 -1
- package/build-module/post-comments-count/edit.js.map +1 -1
- package/build-module/post-comments-count/index.js +4 -1
- package/build-module/post-comments-count/index.js.map +1 -1
- package/build-module/post-comments-form/edit.js +5 -42
- package/build-module/post-comments-form/edit.js.map +1 -1
- package/build-module/post-comments-form/form.js +46 -5
- package/build-module/post-comments-form/form.js.map +1 -1
- package/build-module/post-comments-link/index.js +4 -2
- package/build-module/post-comments-link/index.js.map +1 -1
- package/build-module/post-content/edit.js +5 -3
- package/build-module/post-content/edit.js.map +1 -1
- package/build-module/post-date/edit.js +9 -2
- package/build-module/post-date/edit.js.map +1 -1
- package/build-module/post-date/index.js +9 -0
- package/build-module/post-date/index.js.map +1 -1
- package/build-module/post-featured-image/edit.js +45 -16
- package/build-module/post-featured-image/edit.js.map +1 -1
- package/build-module/post-featured-image/index.js +21 -0
- package/build-module/post-featured-image/index.js.map +1 -1
- package/build-module/post-navigation-link/index.js +3 -2
- package/build-module/post-navigation-link/index.js.map +1 -1
- package/build-module/post-template/edit.js +8 -4
- package/build-module/post-template/edit.js.map +1 -1
- package/build-module/post-template/index.js +14 -1
- package/build-module/post-template/index.js.map +1 -1
- package/build-module/post-terms/edit.js +3 -2
- package/build-module/post-terms/edit.js.map +1 -1
- package/build-module/post-terms/index.js +5 -3
- package/build-module/post-terms/index.js.map +1 -1
- package/build-module/post-title/index.js +2 -1
- package/build-module/post-title/index.js.map +1 -1
- package/build-module/preformatted/index.js +4 -2
- package/build-module/preformatted/index.js.map +1 -1
- package/build-module/pullquote/deprecated.js +134 -25
- package/build-module/pullquote/deprecated.js.map +1 -1
- package/build-module/pullquote/edit.js +1 -1
- package/build-module/pullquote/edit.js.map +1 -1
- package/build-module/pullquote/edit.native.js +0 -1
- package/build-module/pullquote/edit.native.js.map +1 -1
- package/build-module/pullquote/index.js +13 -6
- package/build-module/pullquote/index.js.map +1 -1
- package/build-module/pullquote/save.js +2 -2
- package/build-module/pullquote/save.js.map +1 -1
- package/build-module/pullquote/transforms.js +15 -34
- package/build-module/pullquote/transforms.js.map +1 -1
- package/build-module/query/deprecated.js +10 -8
- package/build-module/query/deprecated.js.map +1 -1
- package/build-module/query/edit/index.js +23 -12
- package/build-module/query/edit/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/index.js +42 -9
- package/build-module/query/edit/inspector-controls/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/taxonomy-controls.js +17 -12
- package/build-module/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
- package/build-module/query/edit/query-placeholder.js +6 -1
- package/build-module/query/edit/query-placeholder.js.map +1 -1
- package/build-module/query/utils.js +32 -7
- package/build-module/query/utils.js.map +1 -1
- package/build-module/query-no-results/edit.js +3 -3
- package/build-module/query-no-results/edit.js.map +1 -1
- package/build-module/query-pagination-next/edit.js +2 -1
- package/build-module/query-pagination-next/edit.js.map +1 -1
- package/build-module/query-pagination-previous/edit.js +2 -1
- package/build-module/query-pagination-previous/edit.js.map +1 -1
- package/build-module/query-title/edit.js +30 -9
- package/build-module/query-title/edit.js.map +1 -1
- package/build-module/query-title/index.js +11 -2
- package/build-module/query-title/index.js.map +1 -1
- package/build-module/query-title/variations.js +10 -0
- package/build-module/query-title/variations.js.map +1 -1
- package/build-module/quote/deprecated.js +171 -37
- package/build-module/quote/deprecated.js.map +1 -1
- package/build-module/quote/edit.js +77 -43
- package/build-module/quote/edit.js.map +1 -1
- package/build-module/quote/index.js +9 -39
- package/build-module/quote/index.js.map +1 -1
- package/build-module/quote/save.js +4 -8
- package/build-module/quote/save.js.map +1 -1
- package/build-module/quote/transforms.js +96 -158
- package/build-module/quote/transforms.js.map +1 -1
- package/build-module/separator/deprecated.js +3 -3
- package/build-module/separator/deprecated.js.map +1 -1
- package/build-module/separator/edit.js +1 -1
- package/build-module/separator/edit.js.map +1 -1
- package/build-module/separator/index.js +1 -0
- package/build-module/separator/index.js.map +1 -1
- package/build-module/social-link/icons/index.js +1 -0
- package/build-module/social-link/icons/index.js.map +1 -1
- package/build-module/social-link/icons/reddit.js +1 -1
- package/build-module/social-link/icons/reddit.js.map +1 -1
- package/build-module/social-link/icons/whatsapp.js +15 -0
- package/build-module/social-link/icons/whatsapp.js.map +1 -0
- package/build-module/social-link/variations.js +8 -1
- package/build-module/social-link/variations.js.map +1 -1
- package/build-module/social-links/edit.js +3 -1
- package/build-module/social-links/edit.js.map +1 -1
- package/build-module/spacer/index.js +7 -1
- package/build-module/spacer/index.js.map +1 -1
- package/build-module/table/index.js +4 -0
- package/build-module/table/index.js.map +1 -1
- package/build-module/table/state.js +10 -4
- package/build-module/table/state.js.map +1 -1
- package/build-module/table-of-contents/index.js +11 -1
- package/build-module/table-of-contents/index.js.map +1 -1
- package/build-module/tag-cloud/index.js +5 -1
- package/build-module/tag-cloud/index.js.map +1 -1
- package/build-module/template-part/edit/index.js +24 -13
- package/build-module/template-part/edit/index.js.map +1 -1
- package/build-module/template-part/edit/selection-modal.js +33 -15
- package/build-module/template-part/edit/selection-modal.js.map +1 -1
- package/build-module/template-part/edit/utils/search.js +84 -0
- package/build-module/template-part/edit/utils/search.js.map +1 -0
- package/build-module/template-part/index.js +2 -2
- package/build-module/template-part/index.js.map +1 -1
- package/build-module/term-description/index.js +4 -0
- package/build-module/term-description/index.js.map +1 -1
- package/build-module/text-columns/edit.js +4 -2
- package/build-module/text-columns/edit.js.map +1 -1
- package/build-module/text-columns/save.js +4 -2
- package/build-module/text-columns/save.js.map +1 -1
- package/build-module/verse/index.js +1 -0
- package/build-module/verse/index.js.map +1 -1
- package/build-module/video/index.js +4 -0
- package/build-module/video/index.js.map +1 -1
- package/build-style/audio/style-rtl.css +3 -0
- package/build-style/audio/style.css +3 -0
- package/build-style/button/style-rtl.css +7 -7
- package/build-style/button/style.css +7 -7
- package/build-style/comments/editor-rtl.css +122 -0
- package/build-style/comments/editor.css +122 -0
- package/build-style/{post-comments → comments}/style-rtl.css +1 -0
- package/build-style/{post-comments → comments}/style.css +1 -0
- package/build-style/common-rtl.css +7 -0
- package/build-style/common.css +7 -0
- package/build-style/cover/style-rtl.css +2 -2
- package/build-style/cover/style.css +2 -2
- package/build-style/editor-elements-rtl.css +85 -0
- package/build-style/editor-elements.css +85 -0
- package/build-style/editor-rtl.css +266 -132
- package/build-style/editor.css +266 -132
- package/build-style/gallery/style-rtl.css +7 -2
- package/build-style/gallery/style.css +7 -2
- package/build-style/group/editor-rtl.css +27 -8
- package/build-style/group/editor.css +27 -8
- package/build-style/image/editor-rtl.css +25 -5
- package/build-style/image/editor.css +25 -5
- package/build-style/image/style-rtl.css +33 -3
- package/build-style/image/style.css +33 -3
- package/build-style/latest-posts/editor-rtl.css +3 -0
- package/build-style/latest-posts/editor.css +3 -0
- package/build-style/navigation/editor-rtl.css +8 -4
- package/build-style/navigation/editor.css +8 -4
- package/build-style/navigation/style-rtl.css +17 -19
- package/build-style/navigation/style.css +17 -19
- package/build-style/paragraph/editor-rtl.css +1 -1
- package/build-style/paragraph/editor.css +1 -1
- package/build-style/post-comments-form/style-rtl.css +0 -1
- package/build-style/post-comments-form/style.css +0 -1
- package/build-style/{post-comments/editor-rtl.css → post-date/style-rtl.css} +2 -2
- package/build-style/{post-comments/editor.css → post-date/style.css} +2 -2
- package/build-style/post-featured-image/editor-rtl.css +45 -43
- package/build-style/post-featured-image/editor.css +45 -43
- package/build-style/post-featured-image/style-rtl.css +1 -0
- package/build-style/post-featured-image/style.css +1 -0
- package/build-style/post-title/style-rtl.css +1 -0
- package/build-style/post-title/style.css +1 -0
- package/build-style/pullquote/editor-rtl.css +0 -12
- package/build-style/pullquote/editor.css +0 -12
- package/build-style/pullquote/style-rtl.css +1 -8
- package/build-style/pullquote/style.css +1 -8
- package/build-style/query/editor-rtl.css +7 -0
- package/build-style/query/editor.css +7 -0
- package/build-style/query-pagination/style-rtl.css +6 -0
- package/build-style/query-pagination/style.css +6 -0
- package/build-style/query-title/style-rtl.css +79 -0
- package/build-style/query-title/style.css +79 -0
- package/build-style/search/style-rtl.css +2 -0
- package/build-style/search/style.css +2 -0
- package/build-style/site-logo/editor-rtl.css +3 -52
- package/build-style/site-logo/editor.css +3 -52
- package/build-style/social-link/editor-rtl.css +1 -0
- package/build-style/social-link/editor.css +1 -0
- package/build-style/social-links/style-rtl.css +10 -2
- package/build-style/social-links/style.css +10 -2
- package/build-style/style-rtl.css +221 -162
- package/build-style/style.css +221 -162
- package/build-style/tag-cloud/style-rtl.css +1 -0
- package/build-style/tag-cloud/style.css +1 -0
- package/build-style/template-part/editor-rtl.css +14 -3
- package/build-style/template-part/editor.css +14 -3
- package/build-style/video/style-rtl.css +3 -0
- package/build-style/video/style.css +3 -0
- package/package.json +30 -30
- package/src/archives/block.json +9 -1
- package/src/archives/edit.js +12 -1
- package/src/archives/index.php +5 -3
- package/src/audio/block.json +4 -0
- package/src/audio/style.scss +2 -0
- package/src/audio/test/__snapshots__/edit.native.js.snap +16 -2
- package/src/block/edit.js +4 -4
- package/src/block/edit.native.js +4 -4
- package/src/button/block.json +1 -1
- package/src/button/deprecated.js +21 -22
- package/src/button/edit.js +1 -0
- package/src/button/style.scss +9 -7
- package/src/buttons/edit.js +1 -5
- package/src/calendar/edit.js +11 -4
- package/src/calendar/index.php +2 -2
- package/src/categories/block.json +14 -1
- package/src/categories/edit.js +2 -2
- package/src/code/block.json +4 -2
- package/src/column/block.json +13 -0
- package/src/columns/block.json +13 -0
- package/src/columns/deprecated.js +10 -4
- package/src/columns/edit.js +7 -3
- package/src/columns/edit.native.js +11 -5
- package/src/comment-author-name/block.json +5 -1
- package/src/comment-content/block.json +5 -1
- package/src/comment-date/block.json +1 -0
- package/src/comment-edit-link/block.json +5 -1
- package/src/comment-reply-link/block.json +5 -1
- package/src/comment-template/block.json +14 -1
- package/src/comments/block.json +19 -1
- package/src/comments/edit/comments-legacy.js +71 -0
- package/src/comments/edit/index.js +35 -0
- package/src/comments/edit/placeholder.js +124 -0
- package/src/comments/{edit.js → edit/template.js} +1 -28
- package/src/comments/editor.scss +9 -0
- package/src/comments/index.php +220 -0
- package/src/comments/save.js +8 -7
- package/src/{post-comments → comments}/style.scss +7 -0
- package/src/comments-pagination/block.json +13 -0
- package/src/comments-pagination-next/block.json +4 -2
- package/src/comments-pagination-numbers/block.json +14 -1
- package/src/comments-pagination-numbers/edit.js +12 -3
- package/src/comments-pagination-previous/block.json +4 -2
- package/src/comments-title/block.json +4 -2
- package/src/common.scss +2 -0
- package/src/cover/block.json +13 -0
- package/src/cover/deprecated.js +11 -4
- package/src/cover/edit/resizable-cover.js +6 -0
- package/src/cover/index.php +2 -2
- package/src/cover/shared.js +2 -1
- package/src/cover/style.scss +2 -2
- package/src/cover/transforms.js +2 -2
- package/src/editor-elements.scss +10 -0
- package/src/editor.scss +2 -1
- package/src/embed/embed-placeholder.native.js +2 -3
- package/src/embed/icons.js +1 -1
- package/src/file/test/__snapshots__/edit.native.js.snap +32 -4
- package/src/gallery/block.json +5 -0
- package/src/gallery/deprecated.js +4 -2
- package/src/gallery/edit.js +26 -4
- package/src/gallery/style.scss +10 -1
- package/src/gallery/transforms.js +18 -5
- package/src/gallery/use-get-media.native.js +44 -0
- package/src/gallery/utils.js +11 -7
- package/src/group/block.json +11 -2
- package/src/group/deprecated.js +89 -2
- package/src/group/edit.js +15 -2
- package/src/group/editor.scss +28 -3
- package/src/group/transforms.js +7 -0
- package/src/group/variations.js +6 -5
- package/src/heading/block.json +3 -1
- package/src/heading/deprecated.js +4 -2
- package/src/home-link/edit.js +19 -20
- package/src/home-link/index.php +8 -17
- package/src/image/block.json +20 -8
- package/src/image/deprecated.js +86 -0
- package/src/image/edit.js +25 -2
- package/src/image/edit.native.js +18 -7
- package/src/image/editor.scss +48 -7
- package/src/image/image.js +26 -16
- package/src/image/index.php +1 -1
- package/src/image/save.js +10 -1
- package/src/image/style.scss +39 -3
- package/src/image/test/edit.native.js +6 -10
- package/src/index.js +0 -2
- package/src/index.native.js +26 -17
- package/src/latest-posts/editor.scss +5 -0
- package/src/list/index.js +1 -1
- package/src/list/test/__snapshots__/edit.native.js.snap +133 -0
- package/src/list/test/edit.native.js +511 -7
- package/src/list/transforms.js +0 -47
- package/src/list/v2/edit.js +12 -4
- package/src/list/v2/tag-name.js +13 -0
- package/src/list/v2/tag-name.native.js +12 -0
- package/src/list/v2/transforms.js +3 -49
- package/src/list-item/edit.js +13 -14
- package/src/list-item/edit.native.js +148 -0
- package/src/list-item/hooks/index.js +2 -1
- package/src/list-item/hooks/use-copy.js +36 -0
- package/src/list-item/hooks/use-merge.js +141 -0
- package/src/list-item/hooks/use-outdent-list-item.js +72 -74
- package/src/list-item/icons.native.js +34 -0
- package/src/list-item/list-style-type.native.js +146 -0
- package/src/list-item/style.native.scss +49 -0
- package/src/list-item/utils.js +27 -3
- package/src/media-text/block.json +13 -0
- package/src/media-text/deprecated.js +584 -290
- package/src/media-text/edit.js +3 -1
- package/src/media-text/media-container.js +3 -1
- package/src/media-text/save.js +18 -0
- package/src/media-text/test/media-container.js +24 -0
- package/src/more/save.js +3 -6
- package/src/navigation/deprecated.js +4 -2
- package/src/navigation/edit/index.js +234 -237
- package/src/navigation/edit/navigation-menu-selector.js +12 -26
- package/src/navigation/edit/placeholder/index.js +4 -2
- package/src/navigation/edit/responsive-wrapper.js +24 -3
- package/src/navigation/edit/unsaved-inner-blocks.js +3 -1
- package/src/navigation/edit/use-convert-classic-menu-to-block-menu.js +31 -37
- package/src/navigation/edit/use-create-navigation-menu.js +4 -0
- package/src/navigation/edit/use-inner-blocks.js +39 -0
- package/src/navigation/edit/utils.js +30 -0
- package/src/navigation/editor.scss +3 -2
- package/src/navigation/index.php +17 -16
- package/src/navigation/menu-items-to-blocks.js +3 -6
- package/src/navigation/style.scss +13 -22
- package/src/navigation/use-navigation-menu.js +20 -13
- package/src/navigation-link/edit.js +13 -16
- package/src/navigation-link/index.php +1 -1
- package/src/navigation-submenu/edit.js +10 -13
- package/src/navigation-submenu/index.php +1 -1
- package/src/page-list/edit.js +15 -2
- package/src/page-list/index.php +4 -4
- package/src/paragraph/block.json +5 -0
- package/src/paragraph/deprecated.js +33 -35
- package/src/paragraph/edit.js +9 -14
- package/src/paragraph/editor.scss +5 -3
- package/src/post-author/block.json +4 -2
- package/src/post-author/edit.js +6 -3
- package/src/post-author-biography/block.json +1 -0
- package/src/post-author-biography/edit.js +4 -1
- package/src/post-author-name/block.json +5 -1
- package/src/post-comments-count/block.json +4 -1
- package/src/post-comments-count/edit.js +10 -2
- package/src/post-comments-form/edit.js +2 -71
- package/src/post-comments-form/form.js +80 -5
- package/src/post-comments-form/index.php +1 -1
- package/src/post-comments-form/style.scss +0 -1
- package/src/post-comments-link/block.json +4 -2
- package/src/post-content/edit.js +4 -4
- package/src/post-date/block.json +9 -0
- package/src/post-date/edit.js +12 -2
- package/src/post-date/index.php +10 -2
- package/src/post-date/style.scss +4 -0
- package/src/post-featured-image/block.json +21 -0
- package/src/post-featured-image/edit.js +66 -14
- package/src/post-featured-image/editor.scss +44 -53
- package/src/post-featured-image/index.php +64 -5
- package/src/post-featured-image/style.scss +1 -0
- package/src/post-navigation-link/block.json +3 -2
- package/src/post-template/block.json +15 -1
- package/src/post-template/edit.js +6 -1
- package/src/post-template/index.php +7 -4
- package/src/post-terms/block.json +5 -3
- package/src/post-terms/edit.js +3 -2
- package/src/post-title/block.json +2 -1
- package/src/post-title/index.php +2 -1
- package/src/post-title/style.scss +2 -0
- package/src/preformatted/block.json +4 -2
- package/src/preformatted/test/__snapshots__/edit.native.js.snap +16 -2
- package/src/pullquote/block.json +11 -4
- package/src/pullquote/deprecated.js +490 -412
- package/src/pullquote/edit.js +1 -1
- package/src/pullquote/edit.native.js +0 -1
- package/src/pullquote/editor.scss +0 -16
- package/src/pullquote/index.js +1 -3
- package/src/pullquote/save.js +1 -1
- package/src/pullquote/style.scss +0 -11
- package/src/pullquote/transforms.js +17 -33
- package/src/query/deprecated.js +4 -9
- package/src/query/edit/index.js +28 -15
- package/src/query/edit/inspector-controls/index.js +129 -65
- package/src/query/edit/inspector-controls/taxonomy-controls.js +18 -11
- package/src/query/edit/query-placeholder.js +17 -2
- package/src/query/editor.scss +9 -0
- package/src/query/utils.js +29 -7
- package/src/query-no-results/edit.js +3 -6
- package/src/query-pagination/style.scss +14 -0
- package/src/query-pagination-next/edit.js +1 -0
- package/src/query-pagination-previous/edit.js +1 -0
- package/src/query-title/block.json +11 -2
- package/src/query-title/edit.js +51 -7
- package/src/query-title/index.php +28 -2
- package/src/query-title/style.scss +4 -0
- package/src/query-title/variations.js +13 -0
- package/src/quote/deprecated.js +215 -100
- package/src/quote/edit.js +77 -52
- package/src/quote/index.js +10 -33
- package/src/quote/save.js +5 -5
- package/src/quote/{v2/test → test}/migrate.js +2 -7
- package/src/quote/transforms.js +98 -146
- package/src/search/index.php +1 -1
- package/src/search/style.scss +2 -0
- package/src/search/test/__snapshots__/edit.native.js.snap +56 -7
- package/src/separator/block.json +1 -0
- package/src/separator/deprecated.js +2 -3
- package/src/separator/edit.js +1 -1
- package/src/separator/test/edit.js +5 -3
- package/src/site-logo/editor.scss +8 -66
- package/src/site-title/index.php +8 -9
- package/src/social-link/editor.scss +3 -0
- package/src/social-link/icons/index.js +1 -0
- package/src/social-link/icons/reddit.js +1 -1
- package/src/social-link/icons/whatsapp.js +10 -0
- package/src/social-link/index.php +6 -2
- package/src/social-link/socials-with-bg.scss +6 -1
- package/src/social-link/socials-without-bg.scss +6 -1
- package/src/social-link/variations.js +7 -0
- package/src/social-links/edit.js +2 -0
- package/src/spacer/block.json +7 -1
- package/src/style.scss +3 -2
- package/src/table/block.json +4 -0
- package/src/table/state.js +21 -19
- package/src/table-of-contents/block.json +11 -1
- package/src/tag-cloud/block.json +5 -1
- package/src/tag-cloud/style.scss +1 -0
- package/src/template-part/edit/index.js +40 -27
- package/src/template-part/edit/selection-modal.js +68 -40
- package/src/template-part/edit/utils/search.js +76 -0
- package/src/template-part/editor.scss +21 -9
- package/src/template-part/index.js +3 -2
- package/src/template-part/index.php +56 -2
- package/src/term-description/block.json +4 -0
- package/src/text-columns/edit.js +2 -2
- package/src/text-columns/save.js +2 -2
- package/src/verse/block.json +1 -0
- package/src/video/block.json +4 -0
- package/src/video/style.scss +2 -0
- package/build/comments/edit.js.map +0 -1
- package/build/list-item/hooks/use-backspace.js +0 -59
- package/build/list-item/hooks/use-backspace.js.map +0 -1
- package/build/post-comments/edit.js +0 -184
- package/build/post-comments/edit.js.map +0 -1
- package/build/post-comments/index.js +0 -72
- package/build/post-comments/index.js.map +0 -1
- package/build/quote/v2/deprecated.js +0 -133
- package/build/quote/v2/deprecated.js.map +0 -1
- package/build/quote/v2/edit.js +0 -139
- package/build/quote/v2/edit.js.map +0 -1
- package/build/quote/v2/index.js +0 -49
- package/build/quote/v2/index.js.map +0 -1
- package/build/quote/v2/save.js +0 -43
- package/build/quote/v2/save.js.map +0 -1
- package/build/quote/v2/transforms.js +0 -156
- package/build/quote/v2/transforms.js.map +0 -1
- package/build-module/comments/edit.js +0 -59
- package/build-module/comments/edit.js.map +0 -1
- package/build-module/list-item/hooks/use-backspace.js +0 -44
- package/build-module/list-item/hooks/use-backspace.js.map +0 -1
- package/build-module/post-comments/edit.js +0 -171
- package/build-module/post-comments/edit.js.map +0 -1
- package/build-module/post-comments/index.js +0 -59
- package/build-module/post-comments/index.js.map +0 -1
- package/build-module/quote/v2/deprecated.js +0 -116
- package/build-module/quote/v2/deprecated.js.map +0 -1
- package/build-module/quote/v2/edit.js +0 -122
- package/build-module/quote/v2/edit.js.map +0 -1
- package/build-module/quote/v2/index.js +0 -33
- package/build-module/quote/v2/index.js.map +0 -1
- package/build-module/quote/v2/save.js +0 -30
- package/build-module/quote/v2/save.js.map +0 -1
- package/build-module/quote/v2/transforms.js +0 -147
- package/build-module/quote/v2/transforms.js.map +0 -1
- package/src/list-item/hooks/use-backspace.js +0 -51
- package/src/post-comments/block.json +0 -45
- package/src/post-comments/edit.js +0 -247
- package/src/post-comments/editor.scss +0 -3
- package/src/post-comments/index.js +0 -18
- package/src/post-comments/index.php +0 -87
- package/src/quote/v2/deprecated.js +0 -107
- package/src/quote/v2/edit.js +0 -139
- package/src/quote/v2/index.js +0 -36
- package/src/quote/v2/save.js +0 -26
- package/src/quote/v2/transforms.js +0 -155
package/src/gallery/block.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
-
import { map, some
|
|
5
|
+
import { map, some } from 'lodash';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* WordPress dependencies
|
|
@@ -95,9 +95,11 @@ function runV2Migration( attributes ) {
|
|
|
95
95
|
return getImageBlock( image, attributes.sizeSlug, linkTo );
|
|
96
96
|
} );
|
|
97
97
|
|
|
98
|
+
const { images, ids, ...restAttributes } = attributes;
|
|
99
|
+
|
|
98
100
|
return [
|
|
99
101
|
{
|
|
100
|
-
...
|
|
102
|
+
...restAttributes,
|
|
101
103
|
linkTo,
|
|
102
104
|
allowResize: false,
|
|
103
105
|
},
|
package/src/gallery/edit.js
CHANGED
|
@@ -187,10 +187,30 @@ function GalleryEdit( props ) {
|
|
|
187
187
|
? `is-style-${ preferredStyle }`
|
|
188
188
|
: undefined;
|
|
189
189
|
}
|
|
190
|
+
|
|
191
|
+
let newLinkTarget;
|
|
192
|
+
if ( imageAttributes.linkTarget || imageAttributes.rel ) {
|
|
193
|
+
// When transformed from image blocks, the link destination and rel attributes are inherited.
|
|
194
|
+
newLinkTarget = {
|
|
195
|
+
linkTarget: imageAttributes.linkTarget,
|
|
196
|
+
rel: imageAttributes.rel,
|
|
197
|
+
};
|
|
198
|
+
} else {
|
|
199
|
+
// When an image is added, update the link destination and rel attributes according to the gallery settings
|
|
200
|
+
newLinkTarget = getUpdatedLinkTargetSettings(
|
|
201
|
+
linkTarget,
|
|
202
|
+
attributes
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
190
206
|
return {
|
|
191
207
|
...pickRelevantMediaFiles( image, sizeSlug ),
|
|
192
|
-
...getHrefAndDestination(
|
|
193
|
-
|
|
208
|
+
...getHrefAndDestination(
|
|
209
|
+
image,
|
|
210
|
+
linkTo,
|
|
211
|
+
imageAttributes?.linkDestination
|
|
212
|
+
),
|
|
213
|
+
...newLinkTarget,
|
|
194
214
|
className: newClassName,
|
|
195
215
|
sizeSlug,
|
|
196
216
|
caption: imageAttributes.caption || image.caption?.raw,
|
|
@@ -414,8 +434,10 @@ function GalleryEdit( props ) {
|
|
|
414
434
|
|
|
415
435
|
const hasImages = !! images.length;
|
|
416
436
|
const hasImageIds = hasImages && images.some( ( image ) => !! image.id );
|
|
417
|
-
const imagesUploading = images.some(
|
|
418
|
-
|
|
437
|
+
const imagesUploading = images.some( ( img ) =>
|
|
438
|
+
! Platform.isNative
|
|
439
|
+
? ! img.id && img.url?.indexOf( 'blob:' ) === 0
|
|
440
|
+
: img.url?.indexOf( 'file:' ) === 0
|
|
419
441
|
);
|
|
420
442
|
|
|
421
443
|
// MediaPlaceholder props are different between web and native hence, we provide a platform-specific set.
|
package/src/gallery/style.scss
CHANGED
|
@@ -22,6 +22,10 @@ figure.wp-block-gallery.has-nested-images {
|
|
|
22
22
|
position: relative;
|
|
23
23
|
flex-direction: column;
|
|
24
24
|
max-width: 100%;
|
|
25
|
+
// Prevents theme.json and global styles borders that apply to the outer
|
|
26
|
+
// wrapper from incorrectly enlarging gallery images to a point they
|
|
27
|
+
// result in a single column gallery.
|
|
28
|
+
box-sizing: border-box;
|
|
25
29
|
|
|
26
30
|
> div,
|
|
27
31
|
> a {
|
|
@@ -63,7 +67,12 @@ figure.wp-block-gallery.has-nested-images {
|
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
69
|
|
|
66
|
-
&.
|
|
70
|
+
&.has-custom-border img {
|
|
71
|
+
box-sizing: border-box;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.is-style-rounded,
|
|
75
|
+
&.has-custom-border {
|
|
67
76
|
> div,
|
|
68
77
|
> a {
|
|
69
78
|
flex: 1 1 auto;
|
|
@@ -144,6 +144,9 @@ const transforms = {
|
|
|
144
144
|
|
|
145
145
|
if ( isGalleryV2Enabled() ) {
|
|
146
146
|
const innerBlocks = validImages.map( ( image ) => {
|
|
147
|
+
// Gallery images can't currently be resized so make sure height and width are undefined.
|
|
148
|
+
image.width = undefined;
|
|
149
|
+
image.height = undefined;
|
|
147
150
|
return createBlock( 'core/image', image );
|
|
148
151
|
} );
|
|
149
152
|
|
|
@@ -302,26 +305,36 @@ const transforms = {
|
|
|
302
305
|
return innerBlocks.map(
|
|
303
306
|
( {
|
|
304
307
|
attributes: {
|
|
305
|
-
id,
|
|
306
308
|
url,
|
|
307
309
|
alt,
|
|
308
310
|
caption,
|
|
311
|
+
title,
|
|
312
|
+
href,
|
|
313
|
+
rel,
|
|
314
|
+
linkClass,
|
|
315
|
+
id,
|
|
309
316
|
sizeSlug: imageSizeSlug,
|
|
310
317
|
linkDestination,
|
|
311
|
-
href,
|
|
312
318
|
linkTarget,
|
|
319
|
+
anchor,
|
|
320
|
+
className,
|
|
313
321
|
},
|
|
314
322
|
} ) =>
|
|
315
323
|
createBlock( 'core/image', {
|
|
316
|
-
|
|
324
|
+
align,
|
|
317
325
|
url,
|
|
318
326
|
alt,
|
|
319
327
|
caption,
|
|
328
|
+
title,
|
|
329
|
+
href,
|
|
330
|
+
rel,
|
|
331
|
+
linkClass,
|
|
332
|
+
id,
|
|
320
333
|
sizeSlug: imageSizeSlug,
|
|
321
|
-
align,
|
|
322
334
|
linkDestination,
|
|
323
|
-
href,
|
|
324
335
|
linkTarget,
|
|
336
|
+
anchor,
|
|
337
|
+
className,
|
|
325
338
|
} )
|
|
326
339
|
);
|
|
327
340
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { useSelect } from '@wordpress/data';
|
|
5
|
+
import { store as coreStore } from '@wordpress/core-data';
|
|
6
|
+
|
|
7
|
+
const EMPTY_IMAGE_MEDIA = [];
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the extended media info for each gallery image from the store. This is used to
|
|
11
|
+
* determine which image size options are available for the current gallery.
|
|
12
|
+
*
|
|
13
|
+
* @param {Array} innerBlockImages An array of the innerBlock images currently in the gallery.
|
|
14
|
+
*
|
|
15
|
+
* @return {Array} An array of media info options for each gallery image.
|
|
16
|
+
*/
|
|
17
|
+
export default function useGetMedia( innerBlockImages ) {
|
|
18
|
+
return useSelect(
|
|
19
|
+
( select ) => {
|
|
20
|
+
const imagesUploading = innerBlockImages.some(
|
|
21
|
+
( { attributes } ) => attributes?.url?.indexOf( 'file:' ) === 0
|
|
22
|
+
);
|
|
23
|
+
const imageIds = innerBlockImages
|
|
24
|
+
.filter( ( { attributes } ) => {
|
|
25
|
+
const { id, url } = attributes;
|
|
26
|
+
return id !== undefined && url?.indexOf( 'file:' ) !== 0;
|
|
27
|
+
} )
|
|
28
|
+
.map( ( imageBlock ) => imageBlock.attributes.id );
|
|
29
|
+
|
|
30
|
+
if ( imageIds.length === 0 || imagesUploading ) {
|
|
31
|
+
return EMPTY_IMAGE_MEDIA;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
select( coreStore ).getMediaItems( {
|
|
36
|
+
include: imageIds.join( ',' ),
|
|
37
|
+
per_page: imageIds.length,
|
|
38
|
+
orderby: 'include',
|
|
39
|
+
} ) ?? EMPTY_IMAGE_MEDIA
|
|
40
|
+
);
|
|
41
|
+
},
|
|
42
|
+
[ innerBlockImages ]
|
|
43
|
+
);
|
|
44
|
+
}
|
package/src/gallery/utils.js
CHANGED
|
@@ -15,18 +15,22 @@ import {
|
|
|
15
15
|
} from '../image/constants';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Determines new href and linkDestination values for an
|
|
19
|
-
* supplied Gallery link destination.
|
|
18
|
+
* Determines new href and linkDestination values for an Image block from the
|
|
19
|
+
* supplied Gallery link destination, or falls back to the Image blocks link.
|
|
20
20
|
*
|
|
21
|
-
* @param {Object} image
|
|
22
|
-
* @param {string}
|
|
21
|
+
* @param {Object} image Gallery image.
|
|
22
|
+
* @param {string} galleryDestination Gallery's selected link destination.
|
|
23
|
+
* @param {Object} imageDestination Image blocks attributes.
|
|
23
24
|
* @return {Object} New attributes to assign to image block.
|
|
24
25
|
*/
|
|
25
|
-
export function getHrefAndDestination(
|
|
26
|
+
export function getHrefAndDestination(
|
|
27
|
+
image,
|
|
28
|
+
galleryDestination,
|
|
29
|
+
imageDestination
|
|
30
|
+
) {
|
|
26
31
|
// Gutenberg and WordPress use different constants so if image_default_link_type
|
|
27
32
|
// option is set we need to map from the WP Core values.
|
|
28
|
-
|
|
29
|
-
switch ( destination ) {
|
|
33
|
+
switch ( imageDestination ? imageDestination : galleryDestination ) {
|
|
30
34
|
case LINK_DESTINATION_MEDIA_WP_CORE:
|
|
31
35
|
case LINK_DESTINATION_MEDIA:
|
|
32
36
|
return {
|
package/src/group/block.json
CHANGED
|
@@ -15,9 +15,16 @@
|
|
|
15
15
|
"templateLock": {
|
|
16
16
|
"type": [ "string", "boolean" ],
|
|
17
17
|
"enum": [ "all", "insert", false ]
|
|
18
|
+
},
|
|
19
|
+
"layout": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"default": {
|
|
22
|
+
"type": "constrained"
|
|
23
|
+
}
|
|
18
24
|
}
|
|
19
25
|
},
|
|
20
26
|
"supports": {
|
|
27
|
+
"__experimentalOnEnter": true,
|
|
21
28
|
"__experimentalSettings": true,
|
|
22
29
|
"align": [ "wide", "full" ],
|
|
23
30
|
"anchor": true,
|
|
@@ -55,10 +62,12 @@
|
|
|
55
62
|
"typography": {
|
|
56
63
|
"fontSize": true,
|
|
57
64
|
"lineHeight": true,
|
|
58
|
-
"
|
|
65
|
+
"__experimentalFontFamily": true,
|
|
59
66
|
"__experimentalFontWeight": true,
|
|
60
|
-
"
|
|
67
|
+
"__experimentalFontStyle": true,
|
|
61
68
|
"__experimentalTextTransform": true,
|
|
69
|
+
"__experimentalTextDecoration": true,
|
|
70
|
+
"__experimentalLetterSpacing": true,
|
|
62
71
|
"__experimentalDefaultControls": {
|
|
63
72
|
"fontSize": true
|
|
64
73
|
}
|
package/src/group/deprecated.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
-
import { omit } from 'lodash';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* WordPress dependencies
|
|
@@ -11,6 +10,7 @@ import {
|
|
|
11
10
|
InnerBlocks,
|
|
12
11
|
getColorClassName,
|
|
13
12
|
useBlockProps,
|
|
13
|
+
useInnerBlocksProps,
|
|
14
14
|
} from '@wordpress/block-editor';
|
|
15
15
|
|
|
16
16
|
const migrateAttributes = ( attributes ) => {
|
|
@@ -31,13 +31,100 @@ const migrateAttributes = ( attributes ) => {
|
|
|
31
31
|
if ( attributes.customBackgroundColor ) {
|
|
32
32
|
style.color.background = attributes.customBackgroundColor;
|
|
33
33
|
}
|
|
34
|
+
|
|
35
|
+
const { customTextColor, customBackgroundColor, ...restAttributes } =
|
|
36
|
+
attributes;
|
|
37
|
+
|
|
34
38
|
return {
|
|
35
|
-
...
|
|
39
|
+
...restAttributes,
|
|
36
40
|
style,
|
|
37
41
|
};
|
|
38
42
|
};
|
|
39
43
|
|
|
40
44
|
const deprecated = [
|
|
45
|
+
// Version with default layout.
|
|
46
|
+
{
|
|
47
|
+
attributes: {
|
|
48
|
+
tagName: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
default: 'div',
|
|
51
|
+
},
|
|
52
|
+
templateLock: {
|
|
53
|
+
type: 'string',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
supports: {
|
|
57
|
+
__experimentalOnEnter: true,
|
|
58
|
+
__experimentalSettings: true,
|
|
59
|
+
align: [ 'wide', 'full' ],
|
|
60
|
+
anchor: true,
|
|
61
|
+
ariaLabel: true,
|
|
62
|
+
html: false,
|
|
63
|
+
color: {
|
|
64
|
+
gradients: true,
|
|
65
|
+
link: true,
|
|
66
|
+
__experimentalDefaultControls: {
|
|
67
|
+
background: true,
|
|
68
|
+
text: true,
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
spacing: {
|
|
72
|
+
margin: [ 'top', 'bottom' ],
|
|
73
|
+
padding: true,
|
|
74
|
+
blockGap: true,
|
|
75
|
+
__experimentalDefaultControls: {
|
|
76
|
+
padding: true,
|
|
77
|
+
blockGap: true,
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
__experimentalBorder: {
|
|
81
|
+
color: true,
|
|
82
|
+
radius: true,
|
|
83
|
+
style: true,
|
|
84
|
+
width: true,
|
|
85
|
+
__experimentalDefaultControls: {
|
|
86
|
+
color: true,
|
|
87
|
+
radius: true,
|
|
88
|
+
style: true,
|
|
89
|
+
width: true,
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
typography: {
|
|
93
|
+
fontSize: true,
|
|
94
|
+
lineHeight: true,
|
|
95
|
+
__experimentalFontStyle: true,
|
|
96
|
+
__experimentalFontWeight: true,
|
|
97
|
+
__experimentalLetterSpacing: true,
|
|
98
|
+
__experimentalTextTransform: true,
|
|
99
|
+
__experimentalDefaultControls: {
|
|
100
|
+
fontSize: true,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
__experimentalLayout: true,
|
|
104
|
+
},
|
|
105
|
+
save( { attributes: { tagName: Tag } } ) {
|
|
106
|
+
return (
|
|
107
|
+
<Tag { ...useInnerBlocksProps.save( useBlockProps.save() ) } />
|
|
108
|
+
);
|
|
109
|
+
},
|
|
110
|
+
isEligible: ( { layout } ) =>
|
|
111
|
+
! layout || layout.inherit || layout.contentSize,
|
|
112
|
+
migrate: ( attributes ) => {
|
|
113
|
+
const { layout = null } = attributes;
|
|
114
|
+
if ( ! layout ) {
|
|
115
|
+
return attributes;
|
|
116
|
+
}
|
|
117
|
+
if ( layout.inherit || layout.contentSize ) {
|
|
118
|
+
return {
|
|
119
|
+
...attributes,
|
|
120
|
+
layout: {
|
|
121
|
+
...layout,
|
|
122
|
+
type: 'constrained',
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
},
|
|
41
128
|
// Version of the block with the double div.
|
|
42
129
|
{
|
|
43
130
|
attributes: {
|
package/src/group/edit.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { useSelect } from '@wordpress/data';
|
|
4
|
+
import { useSelect, useDispatch } from '@wordpress/data';
|
|
5
|
+
import { useEffect } from '@wordpress/element';
|
|
5
6
|
import {
|
|
6
7
|
InnerBlocks,
|
|
7
8
|
useBlockProps,
|
|
@@ -48,7 +49,9 @@ function GroupEdit( { attributes, setAttributes, clientId } ) {
|
|
|
48
49
|
);
|
|
49
50
|
const defaultLayout = useSetting( 'layout' ) || {};
|
|
50
51
|
const { tagName: TagName = 'div', templateLock, layout = {} } = attributes;
|
|
51
|
-
const usedLayout =
|
|
52
|
+
const usedLayout = ! layout?.type
|
|
53
|
+
? { ...defaultLayout, ...layout, type: 'default' }
|
|
54
|
+
: { ...defaultLayout, ...layout };
|
|
52
55
|
const { type = 'default' } = usedLayout;
|
|
53
56
|
const layoutSupportEnabled = themeSupportsLayout || type !== 'default';
|
|
54
57
|
|
|
@@ -67,6 +70,16 @@ function GroupEdit( { attributes, setAttributes, clientId } ) {
|
|
|
67
70
|
}
|
|
68
71
|
);
|
|
69
72
|
|
|
73
|
+
const { __unstableMarkNextChangeAsNotPersistent } =
|
|
74
|
+
useDispatch( blockEditorStore );
|
|
75
|
+
const { type: layoutType = null } = layout;
|
|
76
|
+
useEffect( () => {
|
|
77
|
+
if ( layoutType ) {
|
|
78
|
+
__unstableMarkNextChangeAsNotPersistent();
|
|
79
|
+
setAttributes( { layout: { ...layout, type: layoutType } } );
|
|
80
|
+
}
|
|
81
|
+
}, [ layoutType ] );
|
|
82
|
+
|
|
70
83
|
return (
|
|
71
84
|
<>
|
|
72
85
|
<InspectorControls __experimentalGroup="advanced">
|
package/src/group/editor.scss
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// Affect the appender of the Row and Stack variants.
|
|
27
|
-
.is-layout-flex.block-editor-block-list__block .block-list-appender:only-child {
|
|
27
|
+
.wp-block-group.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child {
|
|
28
28
|
gap: inherit;
|
|
29
29
|
|
|
30
30
|
&,
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
border: $border-width dashed currentColor;
|
|
43
43
|
opacity: 0.4;
|
|
44
44
|
border-radius: $radius-block-ui;
|
|
45
|
-
flex: 1;
|
|
45
|
+
flex: 1 0 $grid-unit-60;
|
|
46
46
|
pointer-events: none;
|
|
47
|
-
min-height: $grid-unit-60;
|
|
47
|
+
min-height: $grid-unit-60 - $border-width - $border-width;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
// Let the parent be selectable in the placeholder area.
|
|
@@ -53,3 +53,28 @@
|
|
|
53
53
|
pointer-events: all;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
+
|
|
57
|
+
// Show an unselected empty group button as a dashed outline instead of the appender button.
|
|
58
|
+
// This effectively adds a selectable-to-delete state.
|
|
59
|
+
.is-layout-flow.block-editor-block-list__block:not(.is-selected) {
|
|
60
|
+
> .block-list-appender:only-child {
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
|
|
63
|
+
&::after {
|
|
64
|
+
content: "";
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 0;
|
|
67
|
+
right: 0;
|
|
68
|
+
bottom: 0;
|
|
69
|
+
left: 0;
|
|
70
|
+
border: $border-width dashed currentColor;
|
|
71
|
+
opacity: 0.4;
|
|
72
|
+
border-radius: $radius-block-ui;
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.block-editor-inserter {
|
|
77
|
+
visibility: hidden;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
package/src/group/transforms.js
CHANGED
package/src/group/variations.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { __ } from '@wordpress/i18n';
|
|
4
|
+
import { __, _x } from '@wordpress/i18n';
|
|
5
5
|
import { group, row, stack } from '@wordpress/icons';
|
|
6
6
|
|
|
7
7
|
const variations = [
|
|
8
8
|
{
|
|
9
9
|
name: 'group',
|
|
10
10
|
title: __( 'Group' ),
|
|
11
|
-
description: __( 'Gather blocks in a
|
|
12
|
-
attributes: { layout: { type: '
|
|
11
|
+
description: __( 'Gather blocks in a container.' ),
|
|
12
|
+
attributes: { layout: { type: 'constrained' } },
|
|
13
13
|
scope: [ 'transform' ],
|
|
14
14
|
isActive: ( blockAttributes ) =>
|
|
15
15
|
! blockAttributes.layout ||
|
|
16
16
|
! blockAttributes.layout?.type ||
|
|
17
|
-
blockAttributes.layout?.type === 'default'
|
|
17
|
+
blockAttributes.layout?.type === 'default' ||
|
|
18
|
+
blockAttributes.layout?.type === 'constrained',
|
|
18
19
|
icon: group,
|
|
19
20
|
},
|
|
20
21
|
{
|
|
21
22
|
name: 'group-row',
|
|
22
|
-
title:
|
|
23
|
+
title: _x( 'Row', 'single horizontal line' ),
|
|
23
24
|
description: __( 'Arrange blocks horizontally.' ),
|
|
24
25
|
attributes: { layout: { type: 'flex', flexWrap: 'nowrap' } },
|
|
25
26
|
scope: [ 'inserter', 'transform' ],
|
package/src/heading/block.json
CHANGED
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"anchor": true,
|
|
32
32
|
"className": false,
|
|
33
33
|
"color": {
|
|
34
|
+
"gradients": true,
|
|
34
35
|
"link": true,
|
|
35
36
|
"__experimentalDefaultControls": {
|
|
36
37
|
"background": true,
|
|
@@ -38,7 +39,8 @@
|
|
|
38
39
|
}
|
|
39
40
|
},
|
|
40
41
|
"spacing": {
|
|
41
|
-
"margin": true
|
|
42
|
+
"margin": true,
|
|
43
|
+
"padding": true
|
|
42
44
|
},
|
|
43
45
|
"typography": {
|
|
44
46
|
"fontSize": true,
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
-
import { omit } from 'lodash';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* WordPress dependencies
|
|
@@ -46,8 +45,11 @@ const migrateCustomColors = ( attributes ) => {
|
|
|
46
45
|
text: attributes.customTextColor,
|
|
47
46
|
},
|
|
48
47
|
};
|
|
48
|
+
|
|
49
|
+
const { customTextColor, ...restAttributes } = attributes;
|
|
50
|
+
|
|
49
51
|
return {
|
|
50
|
-
...
|
|
52
|
+
...restAttributes,
|
|
51
53
|
style,
|
|
52
54
|
};
|
|
53
55
|
};
|
package/src/home-link/edit.js
CHANGED
|
@@ -6,31 +6,29 @@ import classnames from 'classnames';
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
RichText,
|
|
11
|
+
useBlockProps,
|
|
12
|
+
store as blockEditorStore,
|
|
13
|
+
} from '@wordpress/block-editor';
|
|
10
14
|
import { __ } from '@wordpress/i18n';
|
|
11
|
-
import { useSelect } from '@wordpress/data';
|
|
15
|
+
import { useSelect, useDispatch } from '@wordpress/data';
|
|
12
16
|
import { store as coreStore } from '@wordpress/core-data';
|
|
13
17
|
import { useEffect } from '@wordpress/element';
|
|
14
18
|
|
|
15
19
|
const preventDefault = ( event ) => event.preventDefault();
|
|
16
20
|
|
|
17
|
-
export default function HomeEdit( {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return {
|
|
29
|
-
homeUrl: getUnstableBase()?.home,
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
[ clientId ]
|
|
33
|
-
);
|
|
21
|
+
export default function HomeEdit( { attributes, setAttributes, context } ) {
|
|
22
|
+
const { homeUrl } = useSelect( ( select ) => {
|
|
23
|
+
const {
|
|
24
|
+
getUnstableBase, // Site index.
|
|
25
|
+
} = select( coreStore );
|
|
26
|
+
return {
|
|
27
|
+
homeUrl: getUnstableBase()?.home,
|
|
28
|
+
};
|
|
29
|
+
}, [] );
|
|
30
|
+
const { __unstableMarkNextChangeAsNotPersistent } =
|
|
31
|
+
useDispatch( blockEditorStore );
|
|
34
32
|
|
|
35
33
|
const { textColor, backgroundColor, style } = context;
|
|
36
34
|
const blockProps = useBlockProps( {
|
|
@@ -50,9 +48,10 @@ export default function HomeEdit( {
|
|
|
50
48
|
|
|
51
49
|
useEffect( () => {
|
|
52
50
|
if ( label === undefined ) {
|
|
51
|
+
__unstableMarkNextChangeAsNotPersistent();
|
|
53
52
|
setAttributes( { label: __( 'Home' ) } );
|
|
54
53
|
}
|
|
55
|
-
}, [
|
|
54
|
+
}, [ label ] );
|
|
56
55
|
|
|
57
56
|
return (
|
|
58
57
|
<>
|
package/src/home-link/index.php
CHANGED
|
@@ -89,7 +89,7 @@ function block_core_home_link_build_css_font_sizes( $context ) {
|
|
|
89
89
|
* Builds an array with classes and style for the li wrapper
|
|
90
90
|
*
|
|
91
91
|
* @param array $context Home link block context.
|
|
92
|
-
* @return
|
|
92
|
+
* @return string The li wrapper attributes.
|
|
93
93
|
*/
|
|
94
94
|
function block_core_home_link_build_li_wrapper_attributes( $context ) {
|
|
95
95
|
$colors = block_core_home_link_build_css_colors( $context );
|
|
@@ -125,24 +125,15 @@ function render_block_core_home_link( $attributes, $content, $block ) {
|
|
|
125
125
|
return '';
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
$wrapper_attributes = block_core_home_link_build_li_wrapper_attributes( $block->context );
|
|
129
|
-
|
|
130
128
|
$aria_current = is_home() || ( is_front_page() && 'page' === get_option( 'show_on_front' ) ) ? ' aria-current="page"' : '';
|
|
131
129
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
if ( isset( $attributes['label'] ) ) {
|
|
141
|
-
$html .= wp_kses_post( $attributes['label'] );
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
$html .= '</a></li>';
|
|
145
|
-
return $html;
|
|
130
|
+
return sprintf(
|
|
131
|
+
'<li %1$s><a class="wp-block-home-link__content wp-block-navigation-item__content" href="%2$s" "rel="home"%3$s>%4$s</a><li>',
|
|
132
|
+
block_core_home_link_build_li_wrapper_attributes( $block->context ),
|
|
133
|
+
esc_url( home_url() ),
|
|
134
|
+
$aria_current,
|
|
135
|
+
wp_kses_post( $attributes['label'] )
|
|
136
|
+
);
|
|
146
137
|
}
|
|
147
138
|
|
|
148
139
|
/**
|