@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
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Server-side rendering of the `core/comments` block.
|
|
4
|
+
*
|
|
5
|
+
* @package WordPress
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Renders the `core/comments` block on the server.
|
|
10
|
+
*
|
|
11
|
+
* This render callback is mainly for rendering a dynamic, legacy version of
|
|
12
|
+
* this block (the old `core/post-comments`). It uses the `comments_template()`
|
|
13
|
+
* function to generate the output, in the same way as classic PHP themes.
|
|
14
|
+
*
|
|
15
|
+
* As this callback will always run during SSR, first we need to check whether
|
|
16
|
+
* the block is in legacy mode. If not, the HTML generated in the editor is
|
|
17
|
+
* returned instead.
|
|
18
|
+
*
|
|
19
|
+
* @param array $attributes Block attributes.
|
|
20
|
+
* @param string $content Block default content.
|
|
21
|
+
* @param WP_Block $block Block instance.
|
|
22
|
+
* @return string Returns the filtered post comments for the current post wrapped inside "p" tags.
|
|
23
|
+
*/
|
|
24
|
+
function render_block_core_comments( $attributes, $content, $block ) {
|
|
25
|
+
global $post;
|
|
26
|
+
|
|
27
|
+
$post_id = $block->context['postId'];
|
|
28
|
+
if ( ! isset( $post_id ) ) {
|
|
29
|
+
return '';
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
$comment_args = array(
|
|
33
|
+
'post_id' => $post_id,
|
|
34
|
+
'count' => true,
|
|
35
|
+
'status' => 'approve',
|
|
36
|
+
);
|
|
37
|
+
// Return early if there are no comments and comments are closed.
|
|
38
|
+
if ( ! comments_open( $post_id ) && get_comments( $comment_args ) === 0 ) {
|
|
39
|
+
return '';
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// If this isn't the legacy block, we need to render the static version of this block.
|
|
43
|
+
$is_legacy = 'core/post-comments' === $block->name || ! empty( $attributes['legacy'] );
|
|
44
|
+
if ( ! $is_legacy ) {
|
|
45
|
+
return $block->render( array( 'dynamic' => false ) );
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
$post_before = $post;
|
|
49
|
+
$post = get_post( $post_id );
|
|
50
|
+
setup_postdata( $post );
|
|
51
|
+
|
|
52
|
+
ob_start();
|
|
53
|
+
|
|
54
|
+
/*
|
|
55
|
+
* There's a deprecation warning generated by WP Core.
|
|
56
|
+
* Ideally this deprecation is removed from Core.
|
|
57
|
+
* In the meantime, this removes it from the output.
|
|
58
|
+
*/
|
|
59
|
+
add_filter( 'deprecated_file_trigger_error', '__return_false' );
|
|
60
|
+
comments_template();
|
|
61
|
+
remove_filter( 'deprecated_file_trigger_error', '__return_false' );
|
|
62
|
+
|
|
63
|
+
$output = ob_get_clean();
|
|
64
|
+
$post = $post_before;
|
|
65
|
+
|
|
66
|
+
$classnames = array();
|
|
67
|
+
// Adds the old class name for styles' backwards compatibility.
|
|
68
|
+
if ( isset( $attributes['legacy'] ) ) {
|
|
69
|
+
$classnames[] = 'wp-block-post-comments';
|
|
70
|
+
}
|
|
71
|
+
if ( isset( $attributes['textAlign'] ) ) {
|
|
72
|
+
$classnames[] = 'has-text-align-' . $attributes['textAlign'];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
$wrapper_attributes = get_block_wrapper_attributes(
|
|
76
|
+
array( 'class' => implode( ' ', $classnames ) )
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
/*
|
|
80
|
+
* Enqueues scripts and styles required only for the legacy version. That is
|
|
81
|
+
* why they are not defined in `block.json`.
|
|
82
|
+
*/
|
|
83
|
+
wp_enqueue_script( 'comment-reply' );
|
|
84
|
+
enqueue_legacy_post_comments_block_styles( $block->name );
|
|
85
|
+
|
|
86
|
+
return sprintf( '<div %1$s>%2$s</div>', $wrapper_attributes, $output );
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Registers the `core/comments` block on the server.
|
|
91
|
+
*/
|
|
92
|
+
function register_block_core_comments() {
|
|
93
|
+
register_block_type_from_metadata(
|
|
94
|
+
__DIR__ . '/comments',
|
|
95
|
+
array(
|
|
96
|
+
'render_callback' => 'render_block_core_comments',
|
|
97
|
+
'skip_inner_blocks' => true,
|
|
98
|
+
)
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
add_action( 'init', 'register_block_core_comments' );
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Use the button block classes for the form-submit button.
|
|
105
|
+
*
|
|
106
|
+
* @param array $fields The default comment form arguments.
|
|
107
|
+
*
|
|
108
|
+
* @return array Returns the modified fields.
|
|
109
|
+
*/
|
|
110
|
+
function comments_block_form_defaults( $fields ) {
|
|
111
|
+
if ( wp_is_block_theme() ) {
|
|
112
|
+
$fields['submit_button'] = '<input name="%1$s" type="submit" id="%2$s" class="%3$s wp-block-button__link ' . WP_Theme_JSON_Gutenberg::get_element_class_name( 'button' ) . '" value="%4$s" />';
|
|
113
|
+
$fields['submit_field'] = '<p class="form-submit wp-block-button">%1$s %2$s</p>';
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return $fields;
|
|
117
|
+
}
|
|
118
|
+
add_filter( 'comment_form_defaults', 'comments_block_form_defaults' );
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Enqueues styles from the legacy `core/post-comments` block. These styles are
|
|
122
|
+
* required only by the block's fallback.
|
|
123
|
+
*
|
|
124
|
+
* @param string $block_name Name of the new block type.
|
|
125
|
+
*/
|
|
126
|
+
function enqueue_legacy_post_comments_block_styles( $block_name ) {
|
|
127
|
+
static $are_styles_enqueued = false;
|
|
128
|
+
|
|
129
|
+
if ( ! $are_styles_enqueued ) {
|
|
130
|
+
$handles = array(
|
|
131
|
+
'wp-block-post-comments',
|
|
132
|
+
'wp-block-buttons',
|
|
133
|
+
'wp-block-button',
|
|
134
|
+
);
|
|
135
|
+
foreach ( $handles as $handle ) {
|
|
136
|
+
wp_enqueue_block_style( $block_name, array( 'handle' => $handle ) );
|
|
137
|
+
}
|
|
138
|
+
$are_styles_enqueued = true;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Ensures backwards compatibility for any users running the Gutenberg plugin
|
|
144
|
+
* who have used Post Comments before it was merged into Comments Query Loop.
|
|
145
|
+
*
|
|
146
|
+
* The same approach was followed when core/query-loop was renamed to
|
|
147
|
+
* core/post-template.
|
|
148
|
+
*
|
|
149
|
+
* @see https://github.com/WordPress/gutenberg/pull/41807
|
|
150
|
+
* @see https://github.com/WordPress/gutenberg/pull/32514
|
|
151
|
+
*/
|
|
152
|
+
function register_legacy_post_comments_block() {
|
|
153
|
+
$registry = WP_Block_Type_Registry::get_instance();
|
|
154
|
+
|
|
155
|
+
/*
|
|
156
|
+
* Remove the old `post-comments` block if it was already registered, as it
|
|
157
|
+
* is about to be replaced by the type defined below.
|
|
158
|
+
*/
|
|
159
|
+
if ( $registry->is_registered( 'core/post-comments' ) ) {
|
|
160
|
+
unregister_block_type( 'core/post-comments' );
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// Recreate the legacy block metadata.
|
|
164
|
+
$metadata = array(
|
|
165
|
+
'name' => 'core/post-comments',
|
|
166
|
+
'category' => 'theme',
|
|
167
|
+
'attributes' => array(
|
|
168
|
+
'textAlign' => array(
|
|
169
|
+
'type' => 'string',
|
|
170
|
+
),
|
|
171
|
+
),
|
|
172
|
+
'uses_context' => array(
|
|
173
|
+
'postId',
|
|
174
|
+
'postType',
|
|
175
|
+
),
|
|
176
|
+
'supports' => array(
|
|
177
|
+
'html' => false,
|
|
178
|
+
'align' => array( 'wide', 'full' ),
|
|
179
|
+
'typography' => array(
|
|
180
|
+
'fontSize' => true,
|
|
181
|
+
'lineHeight' => true,
|
|
182
|
+
'__experimentalFontStyle' => true,
|
|
183
|
+
'__experimentalFontWeight' => true,
|
|
184
|
+
'__experimentalLetterSpacing' => true,
|
|
185
|
+
'__experimentalTextTransform' => true,
|
|
186
|
+
'__experimentalDefaultControls' => array(
|
|
187
|
+
'fontSize' => true,
|
|
188
|
+
),
|
|
189
|
+
),
|
|
190
|
+
'color' => array(
|
|
191
|
+
'gradients' => true,
|
|
192
|
+
'link' => true,
|
|
193
|
+
'__experimentalDefaultControls' => array(
|
|
194
|
+
'background' => true,
|
|
195
|
+
'text' => true,
|
|
196
|
+
),
|
|
197
|
+
),
|
|
198
|
+
'inserter' => false,
|
|
199
|
+
),
|
|
200
|
+
'style' => array(
|
|
201
|
+
'wp-block-post-comments',
|
|
202
|
+
'wp-block-buttons',
|
|
203
|
+
'wp-block-button',
|
|
204
|
+
),
|
|
205
|
+
'editorStyle' => 'wp-block-post-comments-editor',
|
|
206
|
+
'render_callback' => 'render_block_core_comments',
|
|
207
|
+
'skip_inner_blocks' => true,
|
|
208
|
+
);
|
|
209
|
+
|
|
210
|
+
/*
|
|
211
|
+
* Filters the metadata object, the same way it's done inside
|
|
212
|
+
* `register_block_type_from_metadata()`. This applies some default filters,
|
|
213
|
+
* like `_wp_multiple_block_styles`, which is required in this case because
|
|
214
|
+
* the block has multiple styles.
|
|
215
|
+
*/
|
|
216
|
+
$metadata = apply_filters( 'block_type_metadata', $metadata );
|
|
217
|
+
|
|
218
|
+
register_block_type( 'core/post-comments', $metadata );
|
|
219
|
+
}
|
|
220
|
+
add_action( 'init', 'register_legacy_post_comments_block', 21 );
|
package/src/comments/save.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { useInnerBlocksProps, useBlockProps } from '@wordpress/block-editor';
|
|
5
5
|
|
|
6
|
-
export default function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
export default function save( { attributes: { tagName: Tag, legacy } } ) {
|
|
7
|
+
const blockProps = useBlockProps.save();
|
|
8
|
+
const innerBlocksProps = useInnerBlocksProps.save( blockProps );
|
|
9
|
+
|
|
10
|
+
// The legacy version is dynamic (i.e. PHP rendered) and doesn't allow inner
|
|
11
|
+
// blocks, so nothing is saved in that case.
|
|
12
|
+
return legacy ? null : <Tag { ...innerBlocksProps } />;
|
|
12
13
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/* Styles for backwards compatibility with the legacy `post-comments` block */
|
|
1
2
|
.wp-block-post-comments {
|
|
3
|
+
|
|
2
4
|
/* utility classes */
|
|
3
5
|
.alignleft {
|
|
4
6
|
float: left;
|
|
@@ -7,6 +9,7 @@
|
|
|
7
9
|
.alignright {
|
|
8
10
|
float: right;
|
|
9
11
|
}
|
|
12
|
+
|
|
10
13
|
/* end utility classes */
|
|
11
14
|
|
|
12
15
|
.navigation {
|
|
@@ -62,9 +65,11 @@
|
|
|
62
65
|
.comment-meta {
|
|
63
66
|
font-size: 0.875em;
|
|
64
67
|
line-height: 1.5;
|
|
68
|
+
|
|
65
69
|
b {
|
|
66
70
|
font-weight: normal;
|
|
67
71
|
}
|
|
72
|
+
|
|
68
73
|
.comment-awaiting-moderation {
|
|
69
74
|
margin-top: 1em;
|
|
70
75
|
margin-bottom: 1em;
|
|
@@ -87,6 +92,7 @@
|
|
|
87
92
|
}
|
|
88
93
|
|
|
89
94
|
.comment-form {
|
|
95
|
+
|
|
90
96
|
textarea,
|
|
91
97
|
input:not([type="submit"]):not([type="checkbox"]) {
|
|
92
98
|
display: block;
|
|
@@ -106,6 +112,7 @@
|
|
|
106
112
|
|
|
107
113
|
.comment-reply-title {
|
|
108
114
|
margin-bottom: 0;
|
|
115
|
+
|
|
109
116
|
:where(small) {
|
|
110
117
|
font-size: var(--wp--preset--font-size--medium, smaller);
|
|
111
118
|
margin-left: 0.5em;
|
|
@@ -35,6 +35,19 @@
|
|
|
35
35
|
"default": {
|
|
36
36
|
"type": "flex"
|
|
37
37
|
}
|
|
38
|
+
},
|
|
39
|
+
"typography": {
|
|
40
|
+
"fontSize": true,
|
|
41
|
+
"lineHeight": true,
|
|
42
|
+
"__experimentalFontFamily": true,
|
|
43
|
+
"__experimentalFontWeight": true,
|
|
44
|
+
"__experimentalFontStyle": true,
|
|
45
|
+
"__experimentalTextTransform": true,
|
|
46
|
+
"__experimentalTextDecoration": true,
|
|
47
|
+
"__experimentalLetterSpacing": true,
|
|
48
|
+
"__experimentalDefaultControls": {
|
|
49
|
+
"fontSize": true
|
|
50
|
+
}
|
|
38
51
|
}
|
|
39
52
|
},
|
|
40
53
|
"editorStyle": "wp-block-comments-pagination-editor",
|
|
@@ -26,10 +26,12 @@
|
|
|
26
26
|
"typography": {
|
|
27
27
|
"fontSize": true,
|
|
28
28
|
"lineHeight": true,
|
|
29
|
-
"
|
|
29
|
+
"__experimentalFontFamily": true,
|
|
30
30
|
"__experimentalFontWeight": true,
|
|
31
|
-
"
|
|
31
|
+
"__experimentalFontStyle": true,
|
|
32
32
|
"__experimentalTextTransform": true,
|
|
33
|
+
"__experimentalTextDecoration": true,
|
|
34
|
+
"__experimentalLetterSpacing": true,
|
|
33
35
|
"__experimentalDefaultControls": {
|
|
34
36
|
"fontSize": true
|
|
35
37
|
}
|
|
@@ -10,6 +10,19 @@
|
|
|
10
10
|
"usesContext": [ "postId" ],
|
|
11
11
|
"supports": {
|
|
12
12
|
"reusable": false,
|
|
13
|
-
"html": false
|
|
13
|
+
"html": false,
|
|
14
|
+
"typography": {
|
|
15
|
+
"fontSize": true,
|
|
16
|
+
"lineHeight": true,
|
|
17
|
+
"__experimentalFontFamily": true,
|
|
18
|
+
"__experimentalFontWeight": true,
|
|
19
|
+
"__experimentalFontStyle": true,
|
|
20
|
+
"__experimentalTextTransform": true,
|
|
21
|
+
"__experimentalTextDecoration": true,
|
|
22
|
+
"__experimentalLetterSpacing": true,
|
|
23
|
+
"__experimentalDefaultControls": {
|
|
24
|
+
"fontSize": true
|
|
25
|
+
}
|
|
26
|
+
}
|
|
14
27
|
}
|
|
15
28
|
}
|
|
@@ -3,9 +3,18 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { useBlockProps } from '@wordpress/block-editor';
|
|
5
5
|
|
|
6
|
-
const PaginationItem = ( { content, tag: Tag = 'a', extraClass = '' } ) =>
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const PaginationItem = ( { content, tag: Tag = 'a', extraClass = '' } ) =>
|
|
7
|
+
Tag === 'a' ? (
|
|
8
|
+
<Tag
|
|
9
|
+
className={ `page-numbers ${ extraClass }` }
|
|
10
|
+
href="#comments-pagination-numbers-pseudo-link"
|
|
11
|
+
onClick={ ( event ) => event.preventDefault() }
|
|
12
|
+
>
|
|
13
|
+
{ content }
|
|
14
|
+
</Tag>
|
|
15
|
+
) : (
|
|
16
|
+
<Tag className={ `page-numbers ${ extraClass }` }>{ content }</Tag>
|
|
17
|
+
);
|
|
9
18
|
|
|
10
19
|
export default function CommentsPaginationNumbersEdit() {
|
|
11
20
|
return (
|
|
@@ -26,10 +26,12 @@
|
|
|
26
26
|
"typography": {
|
|
27
27
|
"fontSize": true,
|
|
28
28
|
"lineHeight": true,
|
|
29
|
-
"
|
|
29
|
+
"__experimentalFontFamily": true,
|
|
30
30
|
"__experimentalFontWeight": true,
|
|
31
|
-
"
|
|
31
|
+
"__experimentalFontStyle": true,
|
|
32
32
|
"__experimentalTextTransform": true,
|
|
33
|
+
"__experimentalTextDecoration": true,
|
|
34
|
+
"__experimentalLetterSpacing": true,
|
|
33
35
|
"__experimentalDefaultControls": {
|
|
34
36
|
"fontSize": true
|
|
35
37
|
}
|
|
@@ -49,10 +49,12 @@
|
|
|
49
49
|
"typography": {
|
|
50
50
|
"fontSize": true,
|
|
51
51
|
"lineHeight": true,
|
|
52
|
-
"__experimentalFontStyle": true,
|
|
53
|
-
"__experimentalFontWeight": true,
|
|
54
52
|
"__experimentalFontFamily": true,
|
|
53
|
+
"__experimentalFontWeight": true,
|
|
54
|
+
"__experimentalFontStyle": true,
|
|
55
55
|
"__experimentalTextTransform": true,
|
|
56
|
+
"__experimentalTextDecoration": true,
|
|
57
|
+
"__experimentalLetterSpacing": true,
|
|
56
58
|
"__experimentalDefaultControls": {
|
|
57
59
|
"fontSize": true,
|
|
58
60
|
"__experimentalFontFamily": true,
|
package/src/common.scss
CHANGED
package/src/cover/block.json
CHANGED
|
@@ -92,6 +92,19 @@
|
|
|
92
92
|
"__experimentalDuotone": "> .wp-block-cover__image-background, > .wp-block-cover__video-background",
|
|
93
93
|
"text": false,
|
|
94
94
|
"background": false
|
|
95
|
+
},
|
|
96
|
+
"typography": {
|
|
97
|
+
"fontSize": true,
|
|
98
|
+
"lineHeight": true,
|
|
99
|
+
"__experimentalFontFamily": true,
|
|
100
|
+
"__experimentalFontWeight": true,
|
|
101
|
+
"__experimentalFontStyle": true,
|
|
102
|
+
"__experimentalTextTransform": true,
|
|
103
|
+
"__experimentalTextDecoration": true,
|
|
104
|
+
"__experimentalLetterSpacing": true,
|
|
105
|
+
"__experimentalDefaultControls": {
|
|
106
|
+
"fontSize": true
|
|
107
|
+
}
|
|
95
108
|
}
|
|
96
109
|
},
|
|
97
110
|
"editorStyle": "wp-block-cover-editor",
|
package/src/cover/deprecated.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { omit } from 'lodash';
|
|
5
4
|
import classnames from 'classnames';
|
|
6
5
|
|
|
7
6
|
/**
|
|
@@ -1120,8 +1119,10 @@ const v3 = {
|
|
|
1120
1119
|
dimRatio: ! attributes.url ? 100 : attributes.dimRatio,
|
|
1121
1120
|
};
|
|
1122
1121
|
|
|
1122
|
+
const { title, contentAlign, ...restAttributes } = newAttribs;
|
|
1123
|
+
|
|
1123
1124
|
return [
|
|
1124
|
-
|
|
1125
|
+
restAttributes,
|
|
1125
1126
|
[
|
|
1126
1127
|
createBlock( 'core/paragraph', {
|
|
1127
1128
|
content: attributes.title,
|
|
@@ -1202,8 +1203,11 @@ const v2 = {
|
|
|
1202
1203
|
...attributes,
|
|
1203
1204
|
dimRatio: ! attributes.url ? 100 : attributes.dimRatio,
|
|
1204
1205
|
};
|
|
1206
|
+
|
|
1207
|
+
const { title, contentAlign, align, ...restAttributes } = newAttribs;
|
|
1208
|
+
|
|
1205
1209
|
return [
|
|
1206
|
-
|
|
1210
|
+
restAttributes,
|
|
1207
1211
|
[
|
|
1208
1212
|
createBlock( 'core/paragraph', {
|
|
1209
1213
|
content: attributes.title,
|
|
@@ -1259,8 +1263,11 @@ const v1 = {
|
|
|
1259
1263
|
...attributes,
|
|
1260
1264
|
dimRatio: ! attributes.url ? 100 : attributes.dimRatio,
|
|
1261
1265
|
};
|
|
1266
|
+
|
|
1267
|
+
const { title, contentAlign, align, ...restAttributes } = newAttribs;
|
|
1268
|
+
|
|
1262
1269
|
return [
|
|
1263
|
-
|
|
1270
|
+
restAttributes,
|
|
1264
1271
|
[
|
|
1265
1272
|
createBlock( 'core/paragraph', {
|
|
1266
1273
|
content: attributes.title,
|
|
@@ -49,6 +49,12 @@ export default function ResizableCover( {
|
|
|
49
49
|
onResizeStop( elt.clientHeight );
|
|
50
50
|
setIsResizing( false );
|
|
51
51
|
} }
|
|
52
|
+
__experimentalShowTooltip
|
|
53
|
+
__experimentalTooltipProps={ {
|
|
54
|
+
axis: 'y',
|
|
55
|
+
position: 'bottom',
|
|
56
|
+
isVisible: isResizing,
|
|
57
|
+
} }
|
|
52
58
|
{ ...props }
|
|
53
59
|
/>
|
|
54
60
|
);
|
package/src/cover/index.php
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* Renders the `core/cover` block on server.
|
|
10
10
|
*
|
|
11
|
-
* @param array
|
|
12
|
-
* @param
|
|
11
|
+
* @param array $attributes The block attributes.
|
|
12
|
+
* @param string $content The block rendered content.
|
|
13
13
|
*
|
|
14
14
|
* @return string Returns the cover block markup, if useFeaturedImage is true.
|
|
15
15
|
*/
|
package/src/cover/shared.js
CHANGED
|
@@ -72,8 +72,9 @@ export function attributesFromMedia( setAttributes, dimRatio ) {
|
|
|
72
72
|
id: media.id,
|
|
73
73
|
alt: media?.alt,
|
|
74
74
|
backgroundType: mediaType,
|
|
75
|
+
focalPoint: undefined,
|
|
75
76
|
...( mediaType === VIDEO_BACKGROUND_TYPE
|
|
76
|
-
? {
|
|
77
|
+
? { hasParallax: undefined }
|
|
77
78
|
: {} ),
|
|
78
79
|
} );
|
|
79
80
|
};
|
package/src/cover/style.scss
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
.wp-block-cover-image,
|
|
2
2
|
.wp-block-cover {
|
|
3
3
|
position: relative;
|
|
4
|
-
background-size: cover;
|
|
5
4
|
background-position: center center;
|
|
6
5
|
min-height: 430px;
|
|
7
|
-
width: 100%;
|
|
8
6
|
display: flex;
|
|
9
7
|
justify-content: center;
|
|
10
8
|
align-items: center;
|
|
@@ -201,6 +199,8 @@
|
|
|
201
199
|
video.wp-block-cover__video-background {
|
|
202
200
|
&.has-parallax {
|
|
203
201
|
background-attachment: fixed;
|
|
202
|
+
background-size: cover;
|
|
203
|
+
background-repeat: no-repeat;
|
|
204
204
|
|
|
205
205
|
// Mobile Safari does not support fixed background attachment properly.
|
|
206
206
|
// See also https://stackoverflow.com/questions/24154666/background-size-cover-not-working-on-ios
|
package/src/cover/transforms.js
CHANGED
|
@@ -206,10 +206,10 @@ const transforms = {
|
|
|
206
206
|
{
|
|
207
207
|
type: 'block',
|
|
208
208
|
blocks: [ 'core/group' ],
|
|
209
|
-
isMatch: ( { url } ) => {
|
|
209
|
+
isMatch: ( { url, useFeaturedImage } ) => {
|
|
210
210
|
// If the Cover block uses background media, skip this transform,
|
|
211
211
|
// and instead use the Group block's default transform.
|
|
212
|
-
if ( url ) {
|
|
212
|
+
if ( url || useFeaturedImage ) {
|
|
213
213
|
return false;
|
|
214
214
|
}
|
|
215
215
|
return true;
|
package/src/editor.scss
CHANGED
|
@@ -49,9 +49,10 @@
|
|
|
49
49
|
@import "./query-pagination/editor.scss";
|
|
50
50
|
@import "./query-pagination-numbers/editor.scss";
|
|
51
51
|
@import "./post-featured-image/editor.scss";
|
|
52
|
-
@import "./post-comments/editor.scss";
|
|
53
52
|
@import "./post-comments-form/editor.scss";
|
|
54
53
|
|
|
54
|
+
@import "./editor-elements.scss";
|
|
55
|
+
|
|
55
56
|
:root .editor-styles-wrapper {
|
|
56
57
|
@include background-colors-deprecated();
|
|
57
58
|
@include foreground-colors-deprecated();
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import { View, Text, TouchableWithoutFeedback } from 'react-native';
|
|
5
|
-
import { compact } from 'lodash';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* WordPress dependencies
|
|
@@ -68,11 +67,11 @@ const EmbedPlaceholder = ( {
|
|
|
68
67
|
},
|
|
69
68
|
};
|
|
70
69
|
|
|
71
|
-
const options =
|
|
70
|
+
const options = [
|
|
72
71
|
cannotEmbed && errorPickerOptions.retry,
|
|
73
72
|
cannotEmbed && errorPickerOptions.convertToLink,
|
|
74
73
|
cannotEmbed && errorPickerOptions.editLink,
|
|
75
|
-
] );
|
|
74
|
+
].filter( Boolean );
|
|
76
75
|
|
|
77
76
|
function onPickerSelect( value ) {
|
|
78
77
|
const selectedItem = options.find( ( item ) => item.value === value );
|
package/src/embed/icons.js
CHANGED
|
@@ -91,7 +91,7 @@ export const embedVimeoIcon = {
|
|
|
91
91
|
};
|
|
92
92
|
export const embedRedditIcon = (
|
|
93
93
|
<SVG viewBox="0 0 24 24">
|
|
94
|
-
<Path d="M22
|
|
94
|
+
<Path d="M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z" />
|
|
95
95
|
</SVG>
|
|
96
96
|
);
|
|
97
97
|
export const embedTumblrIcon = {
|
|
@@ -54,7 +54,14 @@ exports[`File block renders file error state without crashing 1`] = `
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
>
|
|
57
|
-
<View
|
|
57
|
+
<View
|
|
58
|
+
style={
|
|
59
|
+
Array [
|
|
60
|
+
undefined,
|
|
61
|
+
undefined,
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
>
|
|
58
65
|
<RCTAztecView
|
|
59
66
|
accessible={true}
|
|
60
67
|
activeFormats={Array []}
|
|
@@ -144,7 +151,14 @@ exports[`File block renders file error state without crashing 1`] = `
|
|
|
144
151
|
]
|
|
145
152
|
}
|
|
146
153
|
>
|
|
147
|
-
<View
|
|
154
|
+
<View
|
|
155
|
+
style={
|
|
156
|
+
Array [
|
|
157
|
+
undefined,
|
|
158
|
+
undefined,
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
>
|
|
148
162
|
<RCTAztecView
|
|
149
163
|
accessible={true}
|
|
150
164
|
activeFormats={Array []}
|
|
@@ -262,7 +276,14 @@ exports[`File block renders file without crashing 1`] = `
|
|
|
262
276
|
}
|
|
263
277
|
}
|
|
264
278
|
>
|
|
265
|
-
<View
|
|
279
|
+
<View
|
|
280
|
+
style={
|
|
281
|
+
Array [
|
|
282
|
+
undefined,
|
|
283
|
+
undefined,
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
>
|
|
266
287
|
<RCTAztecView
|
|
267
288
|
accessible={true}
|
|
268
289
|
activeFormats={Array []}
|
|
@@ -334,7 +355,14 @@ exports[`File block renders file without crashing 1`] = `
|
|
|
334
355
|
]
|
|
335
356
|
}
|
|
336
357
|
>
|
|
337
|
-
<View
|
|
358
|
+
<View
|
|
359
|
+
style={
|
|
360
|
+
Array [
|
|
361
|
+
undefined,
|
|
362
|
+
undefined,
|
|
363
|
+
]
|
|
364
|
+
}
|
|
365
|
+
>
|
|
338
366
|
<RCTAztecView
|
|
339
367
|
accessible={true}
|
|
340
368
|
activeFormats={Array []}
|