@wordpress/block-library 7.12.0 → 7.13.1-next.957ca95e4c.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 +7 -1
- package/build/archives/index.js +5 -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/button/deprecated.js +14 -5
- package/build/button/deprecated.js.map +1 -1
- package/build/button/index.js +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 +6 -2
- 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/columns/transforms.js +10 -1
- package/build/columns/transforms.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/index.js +13 -0
- package/build/comments/index.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/block-controls.js +9 -2
- package/build/cover/edit/block-controls.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/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 +15 -2
- package/build/gallery/edit.js.map +1 -1
- package/build/gallery/gap-styles.js +5 -4
- package/build/gallery/gap-styles.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/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 +10 -2
- package/build/group/index.js.map +1 -1
- package/build/group/variations.js +8 -8
- 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/home-link/index.js +14 -1
- package/build/home-link/index.js.map +1 -1
- package/build/image/edit.js +16 -2
- package/build/image/edit.js.map +1 -1
- package/build/image/index.js +13 -7
- package/build/image/index.js.map +1 -1
- package/build/image/use-client-width.js +3 -1
- package/build/image/use-client-width.js.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/index.native.js +9 -18
- package/build/index.native.js.map +1 -1
- package/build/latest-posts/deprecated.js +14 -1
- package/build/latest-posts/deprecated.js.map +1 -1
- package/build/latest-posts/index.js +14 -1
- package/build/latest-posts/index.js.map +1 -1
- package/build/list/deprecated.js +84 -1
- package/build/list/deprecated.js.map +1 -1
- package/build/list/edit.js +153 -134
- package/build/list/edit.js.map +1 -1
- package/build/list/index.js +33 -34
- package/build/list/index.js.map +1 -1
- package/build/list/save.js +1 -5
- package/build/list/save.js.map +1 -1
- package/build/list/{v2/tag-name.js → tag-name.js} +0 -0
- package/build/list/tag-name.js.map +1 -0
- package/build/list/{v2/tag-name.native.js → tag-name.native.js} +0 -0
- package/build/list/tag-name.native.js.map +1 -0
- package/build/list/transforms.js +61 -95
- package/build/list/transforms.js.map +1 -1
- package/build/list/{v2/migrate.js → utils.js} +3 -2
- package/build/list/utils.js.map +1 -0
- package/build/list-item/edit.js +3 -1
- package/build/list-item/edit.js.map +1 -1
- package/build/list-item/edit.native.js +21 -3
- package/build/list-item/edit.native.js.map +1 -1
- package/build/list-item/hooks/index.js +8 -0
- package/build/list-item/hooks/index.js.map +1 -1
- package/build/list-item/hooks/use-copy.js +44 -0
- package/build/list-item/hooks/use-copy.js.map +1 -0
- package/build/list-item/hooks/use-merge.js +0 -1
- package/build/list-item/hooks/use-merge.js.map +1 -1
- package/build/list-item/hooks/use-outdent-list-item.js +0 -1
- package/build/list-item/hooks/use-outdent-list-item.js.map +1 -1
- package/build/list-item/hooks/use-space.js +10 -1
- package/build/list-item/hooks/use-space.js.map +1 -1
- package/build/list-item/index.js +0 -1
- package/build/list-item/index.js.map +1 -1
- package/build/list-item/list-style-type.native.js +4 -1
- package/build/list-item/list-style-type.native.js.map +1 -1
- package/build/list-item/utils.js +4 -1
- package/build/list-item/utils.js.map +1 -1
- package/build/media-text/deprecated.js +5 -1
- package/build/media-text/deprecated.js.map +1 -1
- package/build/media-text/index.js +17 -0
- package/build/media-text/index.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 +125 -41
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/responsive-wrapper.js +6 -4
- package/build/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build/navigation/edit/unsaved-inner-blocks.js +6 -16
- 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/index.js +1 -0
- package/build/navigation/index.js.map +1 -1
- 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 +8 -7
- package/build/navigation/use-navigation-menu.js.map +1 -1
- package/build/navigation-link/edit.js +6 -8
- package/build/navigation-link/edit.js.map +1 -1
- package/build/navigation-submenu/edit.js +4 -6
- package/build/navigation-submenu/edit.js.map +1 -1
- package/build/page-list/edit.js +7 -3
- 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 +1 -0
- package/build/paragraph/edit.js.map +1 -1
- package/build/paragraph/index.js +7 -0
- package/build/paragraph/index.js.map +1 -1
- package/build/paragraph/transforms.js +7 -0
- package/build/paragraph/transforms.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/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-link/index.js +4 -2
- package/build/post-comments-link/index.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-excerpt/index.js +4 -2
- package/build/post-excerpt/index.js.map +1 -1
- package/build/post-featured-image/edit.js +27 -12
- package/build/post-featured-image/edit.js.map +1 -1
- package/build/post-featured-image/index.js +12 -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 +0 -1
- 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-terms/use-post-terms.js +4 -24
- package/build/post-terms/use-post-terms.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/taxonomy-controls.js +1 -0
- 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 +1 -1
- package/build/query-no-results/edit.js.map +1 -1
- package/build/query-no-results/index.js +13 -0
- package/build/query-no-results/index.js.map +1 -1
- package/build/query-pagination-numbers/index.js +4 -2
- package/build/query-pagination-numbers/index.js.map +1 -1
- package/build/query-title/edit.js +10 -1
- package/build/query-title/edit.js.map +1 -1
- package/build/query-title/index.js +8 -2
- package/build/query-title/index.js.map +1 -1
- package/build/quote/deprecated.js +13 -6
- package/build/quote/deprecated.js.map +1 -1
- package/build/quote/index.js +4 -2
- package/build/quote/index.js.map +1 -1
- package/build/quote/transforms.js +22 -37
- 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/index.js +1 -0
- package/build/separator/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-links/edit.js +43 -9
- package/build/social-links/edit.js.map +1 -1
- package/build/social-links/index.js +9 -0
- package/build/social-links/index.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 +24 -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/index.js +2 -2
- package/build/template-part/index.js.map +1 -1
- package/build/term-description/index.js +10 -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 +2 -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/index.js +5 -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/button/deprecated.js +14 -4
- package/build-module/button/deprecated.js.map +1 -1
- package/build-module/button/index.js +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 +7 -3
- 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/columns/transforms.js +10 -1
- package/build-module/columns/transforms.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/index.js +13 -0
- package/build-module/comments/index.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/block-controls.js +10 -3
- package/build-module/cover/edit/block-controls.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/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 +15 -2
- package/build-module/gallery/edit.js.map +1 -1
- package/build-module/gallery/gap-styles.js +6 -5
- package/build-module/gallery/gap-styles.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/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 +10 -2
- package/build-module/group/index.js.map +1 -1
- package/build-module/group/variations.js +8 -8
- 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/home-link/index.js +14 -1
- package/build-module/home-link/index.js.map +1 -1
- package/build-module/image/edit.js +18 -4
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/index.js +13 -7
- package/build-module/image/index.js.map +1 -1
- package/build-module/image/use-client-width.js +3 -1
- package/build-module/image/use-client-width.js.map +1 -1
- package/build-module/index.js +1 -1
- package/build-module/index.js.map +1 -1
- package/build-module/index.native.js +9 -17
- package/build-module/index.native.js.map +1 -1
- package/build-module/latest-posts/deprecated.js +14 -1
- package/build-module/latest-posts/deprecated.js.map +1 -1
- package/build-module/latest-posts/index.js +14 -1
- package/build-module/latest-posts/index.js.map +1 -1
- package/build-module/list/deprecated.js +83 -1
- package/build-module/list/deprecated.js.map +1 -1
- package/build-module/list/edit.js +151 -134
- package/build-module/list/edit.js.map +1 -1
- package/build-module/list/index.js +33 -29
- package/build-module/list/index.js.map +1 -1
- package/build-module/list/save.js +2 -6
- package/build-module/list/save.js.map +1 -1
- package/build-module/list/{v2/tag-name.js → tag-name.js} +0 -0
- package/build-module/list/tag-name.js.map +1 -0
- package/build-module/list/{v2/tag-name.native.js → tag-name.native.js} +0 -0
- package/build-module/list/tag-name.native.js.map +1 -0
- package/build-module/list/transforms.js +62 -97
- package/build-module/list/transforms.js.map +1 -1
- package/build-module/list/{v2/migrate.js → utils.js} +3 -2
- package/build-module/list/utils.js.map +1 -0
- package/build-module/list-item/edit.js +4 -2
- package/build-module/list-item/edit.js.map +1 -1
- package/build-module/list-item/edit.native.js +19 -3
- package/build-module/list-item/edit.native.js.map +1 -1
- package/build-module/list-item/hooks/index.js +1 -0
- package/build-module/list-item/hooks/index.js.map +1 -1
- package/build-module/list-item/hooks/use-copy.js +34 -0
- package/build-module/list-item/hooks/use-copy.js.map +1 -0
- package/build-module/list-item/hooks/use-merge.js +0 -1
- package/build-module/list-item/hooks/use-merge.js.map +1 -1
- package/build-module/list-item/hooks/use-outdent-list-item.js +0 -1
- package/build-module/list-item/hooks/use-outdent-list-item.js.map +1 -1
- package/build-module/list-item/hooks/use-space.js +10 -1
- package/build-module/list-item/hooks/use-space.js.map +1 -1
- package/build-module/list-item/index.js +0 -1
- package/build-module/list-item/index.js.map +1 -1
- package/build-module/list-item/list-style-type.native.js +3 -1
- package/build-module/list-item/list-style-type.native.js.map +1 -1
- package/build-module/list-item/utils.js +4 -1
- package/build-module/list-item/utils.js.map +1 -1
- package/build-module/media-text/deprecated.js +6 -2
- package/build-module/media-text/deprecated.js.map +1 -1
- package/build-module/media-text/index.js +17 -0
- package/build-module/media-text/index.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 +125 -43
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/responsive-wrapper.js +6 -4
- package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build-module/navigation/edit/unsaved-inner-blocks.js +7 -16
- 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/index.js +1 -0
- package/build-module/navigation/index.js.map +1 -1
- 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 +8 -7
- package/build-module/navigation/use-navigation-menu.js.map +1 -1
- package/build-module/navigation-link/edit.js +7 -9
- package/build-module/navigation-link/edit.js.map +1 -1
- package/build-module/navigation-submenu/edit.js +5 -7
- package/build-module/navigation-submenu/edit.js.map +1 -1
- package/build-module/page-list/edit.js +7 -2
- 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 +1 -0
- package/build-module/paragraph/edit.js.map +1 -1
- package/build-module/paragraph/index.js +7 -0
- package/build-module/paragraph/index.js.map +1 -1
- package/build-module/paragraph/transforms.js +7 -0
- package/build-module/paragraph/transforms.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/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-link/index.js +4 -2
- package/build-module/post-comments-link/index.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-excerpt/index.js +4 -2
- package/build-module/post-excerpt/index.js.map +1 -1
- package/build-module/post-featured-image/edit.js +28 -13
- package/build-module/post-featured-image/edit.js.map +1 -1
- package/build-module/post-featured-image/index.js +12 -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 +0 -1
- 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-terms/use-post-terms.js +5 -25
- package/build-module/post-terms/use-post-terms.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/taxonomy-controls.js +1 -0
- 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 +1 -1
- package/build-module/query-no-results/edit.js.map +1 -1
- package/build-module/query-no-results/index.js +13 -0
- package/build-module/query-no-results/index.js.map +1 -1
- package/build-module/query-pagination-numbers/index.js +4 -2
- package/build-module/query-pagination-numbers/index.js.map +1 -1
- package/build-module/query-title/edit.js +10 -1
- package/build-module/query-title/edit.js.map +1 -1
- package/build-module/query-title/index.js +8 -2
- package/build-module/query-title/index.js.map +1 -1
- package/build-module/quote/deprecated.js +13 -5
- package/build-module/quote/deprecated.js.map +1 -1
- package/build-module/quote/index.js +4 -2
- package/build-module/quote/index.js.map +1 -1
- package/build-module/quote/transforms.js +23 -38
- 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/index.js +1 -0
- package/build-module/separator/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-links/edit.js +45 -12
- package/build-module/social-links/edit.js.map +1 -1
- package/build-module/social-links/index.js +9 -0
- package/build-module/social-links/index.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 +24 -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/index.js +2 -2
- package/build-module/template-part/index.js.map +1 -1
- package/build-module/term-description/index.js +10 -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 +2 -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 -10
- package/build-style/button/style.css +7 -10
- package/build-style/code/editor-rtl.css +79 -0
- package/build-style/code/editor.css +79 -0
- package/build-style/cover/editor-rtl.css +0 -3
- package/build-style/cover/editor.css +0 -3
- package/build-style/editor-rtl.css +94 -146
- package/build-style/editor.css +94 -146
- package/build-style/group/editor-rtl.css +9 -10
- package/build-style/group/editor.css +9 -10
- package/build-style/image/editor-rtl.css +21 -2
- package/build-style/image/editor.css +21 -2
- package/build-style/media-text/style-rtl.css +1 -0
- package/build-style/media-text/style.css +1 -0
- package/build-style/navigation/editor-rtl.css +11 -23
- package/build-style/navigation/editor.css +11 -23
- package/build-style/navigation/style-rtl.css +10 -3
- package/build-style/navigation/style.css +10 -3
- package/build-style/paragraph/editor-rtl.css +1 -1
- package/build-style/paragraph/editor.css +1 -1
- package/build-style/post-date/style-rtl.css +79 -0
- package/build-style/post-date/style.css +79 -0
- 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-title/style-rtl.css +79 -0
- package/build-style/query-title/style.css +79 -0
- package/build-style/site-logo/editor-rtl.css +3 -52
- package/build-style/site-logo/editor.css +3 -52
- package/build-style/social-links/style-rtl.css +2 -2
- package/build-style/social-links/style.css +2 -2
- package/build-style/style-rtl.css +37 -23
- package/build-style/style.css +37 -23
- package/build-style/video/style-rtl.css +3 -0
- package/build-style/video/style.css +3 -0
- package/package.json +30 -29
- package/src/archives/block.json +5 -1
- package/src/audio/block.json +4 -0
- package/src/audio/style.scss +2 -0
- package/src/button/block.json +1 -1
- package/src/button/deprecated.js +21 -22
- package/src/button/style.scss +7 -14
- 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/code/editor.scss +3 -0
- 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 +7 -3
- package/src/columns/transforms.js +17 -3
- 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 +13 -0
- package/src/comments/index.php +6 -5
- 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/cover/block.json +13 -0
- package/src/cover/deprecated.js +11 -4
- package/src/cover/edit/block-controls.js +15 -3
- package/src/cover/editor.scss +0 -4
- package/src/cover/shared.js +2 -1
- package/src/editor.scss +1 -0
- package/src/embed/icons.js +1 -1
- package/src/gallery/block.json +5 -0
- package/src/gallery/deprecated.js +4 -2
- package/src/gallery/edit.js +22 -2
- package/src/gallery/gap-styles.js +10 -6
- package/src/gallery/index.php +23 -2
- package/src/gallery/transforms.js +18 -5
- package/src/gallery/utils.js +11 -7
- package/src/group/block.json +10 -2
- package/src/group/deprecated.js +89 -2
- package/src/group/edit.js +15 -2
- package/src/group/editor.scss +4 -6
- package/src/group/variations.js +4 -3
- package/src/heading/block.json +3 -1
- package/src/heading/deprecated.js +4 -2
- package/src/home-link/block.json +14 -1
- package/src/home-link/edit.js +19 -20
- package/src/image/block.json +13 -7
- package/src/image/edit.js +22 -4
- package/src/image/editor.scss +39 -3
- package/src/image/index.php +1 -1
- package/src/image/use-client-width.js +1 -1
- package/src/index.js +1 -4
- package/src/index.native.js +17 -23
- package/src/latest-posts/block.json +14 -1
- package/src/list/block.json +4 -0
- package/src/list/deprecated.js +71 -1
- package/src/list/edit.js +146 -133
- package/src/list/index.js +25 -24
- package/src/list/save.js +3 -4
- package/src/list/{v2/tag-name.js → tag-name.js} +0 -0
- package/src/list/{v2/tag-name.native.js → tag-name.native.js} +0 -0
- package/src/list/test/__snapshots__/edit.native.js.snap +14 -2
- package/src/list/test/edit.native.js +0 -154
- package/src/list/transforms.js +57 -111
- package/src/list/{v2/migrate.js → utils.js} +2 -2
- package/src/list-item/block.json +0 -1
- package/src/list-item/edit.js +2 -1
- package/src/list-item/edit.native.js +32 -2
- package/src/list-item/hooks/index.js +1 -0
- package/src/list-item/hooks/use-copy.js +38 -0
- package/src/list-item/hooks/use-space.js +10 -2
- package/src/list-item/list-style-type.native.js +8 -1
- package/src/list-item/style.native.scss +12 -0
- package/src/media-text/block.json +17 -0
- package/src/media-text/deprecated.js +3 -2
- package/src/media-text/style.scss +2 -0
- package/src/navigation/block.json +1 -0
- package/src/navigation/deprecated.js +4 -2
- package/src/navigation/edit/index.js +173 -85
- package/src/navigation/edit/responsive-wrapper.js +8 -3
- package/src/navigation/edit/unsaved-inner-blocks.js +17 -25
- package/src/navigation/edit/use-convert-classic-menu-to-block-menu.js +31 -37
- package/src/navigation/editor.scss +5 -25
- package/src/navigation/index.php +24 -24
- package/src/navigation/menu-items-to-blocks.js +3 -6
- package/src/navigation/style.scss +14 -4
- package/src/navigation/test/use-navigation-menu.js +18 -1
- package/src/navigation/use-navigation-menu.js +11 -8
- package/src/navigation-link/edit.js +9 -13
- package/src/navigation-submenu/edit.js +9 -13
- package/src/page-list/edit.js +6 -2
- package/src/paragraph/block.json +7 -0
- package/src/paragraph/deprecated.js +33 -35
- package/src/paragraph/edit.js +1 -0
- package/src/paragraph/editor.scss +5 -3
- package/src/post-author/block.json +4 -2
- package/src/post-author-biography/block.json +1 -0
- 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-link/block.json +4 -2
- 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-excerpt/block.json +4 -2
- package/src/post-featured-image/block.json +12 -0
- package/src/post-featured-image/edit.js +43 -13
- package/src/post-featured-image/editor.scss +44 -53
- package/src/post-featured-image/index.php +61 -4
- 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 +0 -1
- package/src/post-terms/use-post-terms.js +10 -15
- package/src/post-title/block.json +2 -1
- package/src/post-title/style.scss +2 -0
- package/src/preformatted/block.json +4 -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/taxonomy-controls.js +1 -1
- package/src/query/edit/query-placeholder.js +17 -2
- package/src/query/utils.js +29 -7
- package/src/query-no-results/block.json +13 -0
- package/src/query-no-results/edit.js +1 -1
- package/src/query-pagination-numbers/block.json +4 -2
- package/src/query-title/block.json +8 -2
- package/src/query-title/edit.js +19 -2
- package/src/query-title/index.php +11 -1
- package/src/query-title/style.scss +4 -0
- package/src/quote/block.json +4 -2
- package/src/quote/deprecated.js +6 -5
- package/src/quote/transforms.js +4 -18
- package/src/search/index.php +1 -1
- package/src/separator/block.json +1 -0
- package/src/separator/deprecated.js +2 -3
- package/src/site-logo/editor.scss +8 -66
- package/src/social-link/icons/reddit.js +1 -1
- package/src/social-link/index.php +1 -1
- package/src/social-link/socials-with-bg.scss +1 -1
- package/src/social-link/socials-without-bg.scss +1 -1
- package/src/social-links/block.json +9 -0
- package/src/social-links/edit.js +47 -19
- package/src/spacer/block.json +7 -1
- package/src/style.scss +2 -0
- package/src/table/block.json +4 -0
- package/src/table/state.js +21 -19
- package/src/table-of-contents/block.json +24 -1
- package/src/tag-cloud/block.json +5 -1
- package/src/template-part/index.js +3 -2
- package/src/term-description/block.json +10 -0
- package/src/text-columns/edit.js +2 -2
- package/src/text-columns/save.js +2 -2
- package/src/verse/block.json +2 -0
- package/src/video/block.json +4 -0
- package/src/video/style.scss +2 -0
- package/build/list/v2/deprecated.js +0 -117
- package/build/list/v2/deprecated.js.map +0 -1
- package/build/list/v2/edit.js +0 -200
- package/build/list/v2/edit.js.map +0 -1
- package/build/list/v2/index.js +0 -36
- package/build/list/v2/index.js.map +0 -1
- package/build/list/v2/migrate.js.map +0 -1
- package/build/list/v2/save.js +0 -34
- package/build/list/v2/save.js.map +0 -1
- package/build/list/v2/tag-name.js.map +0 -1
- package/build/list/v2/tag-name.native.js.map +0 -1
- package/build/list/v2/transforms.js +0 -137
- package/build/list/v2/transforms.js.map +0 -1
- package/build-module/list/v2/deprecated.js +0 -104
- package/build-module/list/v2/deprecated.js.map +0 -1
- package/build-module/list/v2/edit.js +0 -179
- package/build-module/list/v2/edit.js.map +0 -1
- package/build-module/list/v2/index.js +0 -21
- package/build-module/list/v2/index.js.map +0 -1
- package/build-module/list/v2/migrate.js.map +0 -1
- package/build-module/list/v2/save.js +0 -23
- package/build-module/list/v2/save.js.map +0 -1
- package/build-module/list/v2/tag-name.js.map +0 -1
- package/build-module/list/v2/tag-name.native.js.map +0 -1
- package/build-module/list/v2/transforms.js +0 -127
- package/build-module/list/v2/transforms.js.map +0 -1
- package/src/list/test/migrate.js +0 -158
- package/src/list/v2/deprecated.js +0 -89
- package/src/list/v2/edit.js +0 -192
- package/src/list/v2/index.js +0 -22
- package/src/list/v2/save.js +0 -18
- package/src/list/v2/transforms.js +0 -120
|
@@ -29,9 +29,23 @@ const transforms = {
|
|
|
29
29
|
createBlocksFromInnerBlocksTemplate( innerBlocksTemplate )
|
|
30
30
|
);
|
|
31
31
|
},
|
|
32
|
-
isMatch: ( { length: selectedBlocksLength } ) =>
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
isMatch: ( { length: selectedBlocksLength }, blocks ) => {
|
|
33
|
+
// If a user is trying to transform a single Columns block, skip
|
|
34
|
+
// the transformation. Enabling this functiontionality creates
|
|
35
|
+
// nested Columns blocks resulting in an unintuitive user experience.
|
|
36
|
+
// Multiple Columns blocks can still be transformed.
|
|
37
|
+
if (
|
|
38
|
+
blocks.length === 1 &&
|
|
39
|
+
blocks[ 0 ].name === 'core/columns'
|
|
40
|
+
) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
selectedBlocksLength &&
|
|
46
|
+
selectedBlocksLength <= MAXIMUM_SELECTED_BLOCKS
|
|
47
|
+
);
|
|
48
|
+
},
|
|
35
49
|
},
|
|
36
50
|
{
|
|
37
51
|
type: 'block',
|
|
@@ -43,7 +43,11 @@
|
|
|
43
43
|
"__experimentalFontWeight": true,
|
|
44
44
|
"__experimentalFontStyle": true,
|
|
45
45
|
"__experimentalTextTransform": true,
|
|
46
|
-
"
|
|
46
|
+
"__experimentalTextDecoration": true,
|
|
47
|
+
"__experimentalLetterSpacing": true,
|
|
48
|
+
"__experimentalDefaultControls": {
|
|
49
|
+
"fontSize": true
|
|
50
|
+
}
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
53
|
}
|
|
@@ -29,7 +29,11 @@
|
|
|
29
29
|
"__experimentalFontWeight": true,
|
|
30
30
|
"__experimentalFontStyle": true,
|
|
31
31
|
"__experimentalTextTransform": true,
|
|
32
|
-
"
|
|
32
|
+
"__experimentalTextDecoration": true,
|
|
33
|
+
"__experimentalLetterSpacing": true,
|
|
34
|
+
"__experimentalDefaultControls": {
|
|
35
|
+
"fontSize": true
|
|
36
|
+
}
|
|
33
37
|
},
|
|
34
38
|
"spacing": {
|
|
35
39
|
"padding": [ "horizontal", "vertical" ],
|
|
@@ -35,7 +35,11 @@
|
|
|
35
35
|
"__experimentalFontWeight": true,
|
|
36
36
|
"__experimentalFontStyle": true,
|
|
37
37
|
"__experimentalTextTransform": true,
|
|
38
|
-
"
|
|
38
|
+
"__experimentalTextDecoration": true,
|
|
39
|
+
"__experimentalLetterSpacing": true,
|
|
40
|
+
"__experimentalDefaultControls": {
|
|
41
|
+
"fontSize": true
|
|
42
|
+
}
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
}
|
|
@@ -30,7 +30,11 @@
|
|
|
30
30
|
"__experimentalFontWeight": true,
|
|
31
31
|
"__experimentalFontStyle": true,
|
|
32
32
|
"__experimentalTextTransform": true,
|
|
33
|
-
"
|
|
33
|
+
"__experimentalTextDecoration": true,
|
|
34
|
+
"__experimentalLetterSpacing": true,
|
|
35
|
+
"__experimentalDefaultControls": {
|
|
36
|
+
"fontSize": true
|
|
37
|
+
}
|
|
34
38
|
},
|
|
35
39
|
"html": false
|
|
36
40
|
}
|
|
@@ -11,7 +11,20 @@
|
|
|
11
11
|
"supports": {
|
|
12
12
|
"reusable": false,
|
|
13
13
|
"html": false,
|
|
14
|
-
"align": true
|
|
14
|
+
"align": true,
|
|
15
|
+
"typography": {
|
|
16
|
+
"fontSize": true,
|
|
17
|
+
"lineHeight": true,
|
|
18
|
+
"__experimentalFontFamily": true,
|
|
19
|
+
"__experimentalFontWeight": true,
|
|
20
|
+
"__experimentalFontStyle": true,
|
|
21
|
+
"__experimentalTextTransform": true,
|
|
22
|
+
"__experimentalTextDecoration": true,
|
|
23
|
+
"__experimentalLetterSpacing": true,
|
|
24
|
+
"__experimentalDefaultControls": {
|
|
25
|
+
"fontSize": true
|
|
26
|
+
}
|
|
27
|
+
}
|
|
15
28
|
},
|
|
16
29
|
"style": "wp-block-comment-template"
|
|
17
30
|
}
|
package/src/comments/block.json
CHANGED
|
@@ -27,6 +27,19 @@
|
|
|
27
27
|
"text": true,
|
|
28
28
|
"link": true
|
|
29
29
|
}
|
|
30
|
+
},
|
|
31
|
+
"typography": {
|
|
32
|
+
"fontSize": true,
|
|
33
|
+
"lineHeight": true,
|
|
34
|
+
"__experimentalFontFamily": true,
|
|
35
|
+
"__experimentalFontWeight": true,
|
|
36
|
+
"__experimentalFontStyle": true,
|
|
37
|
+
"__experimentalTextTransform": true,
|
|
38
|
+
"__experimentalTextDecoration": true,
|
|
39
|
+
"__experimentalLetterSpacing": true,
|
|
40
|
+
"__experimentalDefaultControls": {
|
|
41
|
+
"fontSize": true
|
|
42
|
+
}
|
|
30
43
|
}
|
|
31
44
|
},
|
|
32
45
|
"editorStyle": "wp-block-comments-editor",
|
package/src/comments/index.php
CHANGED
|
@@ -24,11 +24,6 @@
|
|
|
24
24
|
function render_block_core_comments( $attributes, $content, $block ) {
|
|
25
25
|
global $post;
|
|
26
26
|
|
|
27
|
-
$is_legacy = 'core/post-comments' === $block->name || ! empty( $attributes['legacy'] );
|
|
28
|
-
if ( ! $is_legacy ) {
|
|
29
|
-
return $block->render( array( 'dynamic' => false ) );
|
|
30
|
-
}
|
|
31
|
-
|
|
32
27
|
$post_id = $block->context['postId'];
|
|
33
28
|
if ( ! isset( $post_id ) ) {
|
|
34
29
|
return '';
|
|
@@ -44,6 +39,12 @@ function render_block_core_comments( $attributes, $content, $block ) {
|
|
|
44
39
|
return '';
|
|
45
40
|
}
|
|
46
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
|
+
|
|
47
48
|
$post_before = $post;
|
|
48
49
|
$post = get_post( $post_id );
|
|
49
50
|
setup_postdata( $post );
|
|
@@ -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/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,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
__experimentalBlockAlignmentMatrixControl as BlockAlignmentMatrixControl,
|
|
10
10
|
__experimentalBlockFullHeightAligmentControl as FullHeightAlignmentControl,
|
|
11
11
|
} from '@wordpress/block-editor';
|
|
12
|
-
import { __ } from '@wordpress/i18n';
|
|
12
|
+
import { __, isRTL } from '@wordpress/i18n';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Internal dependencies
|
|
@@ -58,15 +58,27 @@ export default function CoverBlockControls( {
|
|
|
58
58
|
} );
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
+
// Flip value horizontally to match the physical direction indicated by
|
|
62
|
+
// AlignmentMatrixControl with the logical direction indicated by cover
|
|
63
|
+
// block in RTL languages.
|
|
64
|
+
const flipHorizontalPosition = ( ltrContentPosition ) => {
|
|
65
|
+
return isRTL()
|
|
66
|
+
? ltrContentPosition.replace( /left|right/, ( match ) =>
|
|
67
|
+
match === 'left' ? 'right' : 'left'
|
|
68
|
+
)
|
|
69
|
+
: ltrContentPosition;
|
|
70
|
+
};
|
|
71
|
+
|
|
61
72
|
return (
|
|
62
73
|
<>
|
|
63
74
|
<BlockControls group="block">
|
|
64
75
|
<BlockAlignmentMatrixControl
|
|
65
76
|
label={ __( 'Change content position' ) }
|
|
66
|
-
value={ contentPosition }
|
|
77
|
+
value={ flipHorizontalPosition( contentPosition ) }
|
|
67
78
|
onChange={ ( nextPosition ) =>
|
|
68
79
|
setAttributes( {
|
|
69
|
-
contentPosition:
|
|
80
|
+
contentPosition:
|
|
81
|
+
flipHorizontalPosition( nextPosition ),
|
|
70
82
|
} )
|
|
71
83
|
}
|
|
72
84
|
isDisabled={ ! hasInnerBlocks }
|
package/src/cover/editor.scss
CHANGED
|
@@ -47,10 +47,6 @@
|
|
|
47
47
|
margin: 0;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.block-editor-block-list__layout {
|
|
51
|
-
width: 100%;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
50
|
// The .wp-block-cover class is used just to increase selector specificity.
|
|
55
51
|
.wp-block-cover__inner-container {
|
|
56
52
|
// Avoid text align inherit from cover image align.
|
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/editor.scss
CHANGED
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 = {
|
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,
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
BlockList,
|
|
6
|
+
__experimentalGetGapCSSValue as getGapCSSValue,
|
|
7
|
+
} from '@wordpress/block-editor';
|
|
5
8
|
import { useContext, createPortal } from '@wordpress/element';
|
|
6
9
|
|
|
7
10
|
export default function GapStyles( { blockGap, clientId } ) {
|
|
@@ -17,17 +20,18 @@ export default function GapStyles( { blockGap, clientId } ) {
|
|
|
17
20
|
if ( !! blockGap ) {
|
|
18
21
|
row =
|
|
19
22
|
typeof blockGap === 'string'
|
|
20
|
-
? blockGap
|
|
21
|
-
: blockGap?.top || fallbackValue;
|
|
23
|
+
? getGapCSSValue( blockGap )
|
|
24
|
+
: getGapCSSValue( blockGap?.top ) || fallbackValue;
|
|
22
25
|
column =
|
|
23
26
|
typeof blockGap === 'string'
|
|
24
|
-
? blockGap
|
|
25
|
-
: blockGap?.left || fallbackValue;
|
|
27
|
+
? getGapCSSValue( blockGap )
|
|
28
|
+
: getGapCSSValue( blockGap?.left ) || fallbackValue;
|
|
26
29
|
gapValue = row === column ? row : `${ row } ${ column }`;
|
|
27
30
|
}
|
|
28
31
|
|
|
32
|
+
// The unstable gallery gap calculation requires a real value (such as `0px`) and not `0`.
|
|
29
33
|
const gap = `#block-${ clientId } {
|
|
30
|
-
--wp--style--unstable-gallery-gap: ${ column };
|
|
34
|
+
--wp--style--unstable-gallery-gap: ${ column === '0' ? '0px' : column };
|
|
31
35
|
gap: ${ gapValue }
|
|
32
36
|
}`;
|
|
33
37
|
|
package/src/gallery/index.php
CHANGED
|
@@ -51,13 +51,29 @@ function block_core_gallery_render( $attributes, $content ) {
|
|
|
51
51
|
if ( is_array( $gap ) ) {
|
|
52
52
|
foreach ( $gap as $key => $value ) {
|
|
53
53
|
// Make sure $value is a string to avoid PHP 8.1 deprecation error in preg_match() when the value is null.
|
|
54
|
-
$value
|
|
55
|
-
$
|
|
54
|
+
$value = is_string( $value ) ? $value : '';
|
|
55
|
+
$value = $value && preg_match( '%[\\\(&=}]|/\*%', $value ) ? null : $value;
|
|
56
|
+
|
|
57
|
+
// Get spacing CSS variable from preset value if provided.
|
|
58
|
+
if ( is_string( $value ) && str_contains( $value, 'var:preset|spacing|' ) ) {
|
|
59
|
+
$index_to_splice = strrpos( $value, '|' ) + 1;
|
|
60
|
+
$slug = _wp_to_kebab_case( substr( $value, $index_to_splice ) );
|
|
61
|
+
$value = "var(--wp--preset--spacing--$slug)";
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
$gap[ $key ] = $value;
|
|
56
65
|
}
|
|
57
66
|
} else {
|
|
58
67
|
// Make sure $gap is a string to avoid PHP 8.1 deprecation error in preg_match() when the value is null.
|
|
59
68
|
$gap = is_string( $gap ) ? $gap : '';
|
|
60
69
|
$gap = $gap && preg_match( '%[\\\(&=}]|/\*%', $gap ) ? null : $gap;
|
|
70
|
+
|
|
71
|
+
// Get spacing CSS variable from preset value if provided.
|
|
72
|
+
if ( is_string( $gap ) && str_contains( $gap, 'var:preset|spacing|' ) ) {
|
|
73
|
+
$index_to_splice = strrpos( $gap, '|' ) + 1;
|
|
74
|
+
$slug = _wp_to_kebab_case( substr( $gap, $index_to_splice ) );
|
|
75
|
+
$gap = "var(--wp--preset--spacing--$slug)";
|
|
76
|
+
}
|
|
61
77
|
}
|
|
62
78
|
|
|
63
79
|
$class = wp_unique_id( 'wp-block-gallery-' );
|
|
@@ -80,6 +96,11 @@ function block_core_gallery_render( $attributes, $content ) {
|
|
|
80
96
|
$gap_value = $gap_row === $gap_column ? $gap_row : $gap_row . ' ' . $gap_column;
|
|
81
97
|
}
|
|
82
98
|
|
|
99
|
+
// The unstable gallery gap calculation requires a real value (such as `0px`) and not `0`.
|
|
100
|
+
if ( '0' === $gap_column ) {
|
|
101
|
+
$gap_column = '0px';
|
|
102
|
+
}
|
|
103
|
+
|
|
83
104
|
// Set the CSS variable to the column value, and the `gap` property to the combined gap value.
|
|
84
105
|
$style = '.wp-block-gallery.' . $class . '{ --wp--style--unstable-gallery-gap: ' . $gap_column . '; gap: ' . $gap_value . '}';
|
|
85
106
|
|
|
@@ -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
|
}
|