@wordpress/block-library 6.0.20 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/LICENSE.md +1 -1
- package/build/archives/index.js +1 -0
- package/build/archives/index.js.map +1 -1
- package/build/audio/edit.js +19 -4
- package/build/audio/edit.js.map +1 -1
- package/build/audio/index.js +1 -0
- package/build/audio/index.js.map +1 -1
- package/build/block/index.js +1 -0
- package/build/block/index.js.map +1 -1
- package/build/button/edit.native.js +1 -1
- package/build/button/edit.native.js.map +1 -1
- package/build/button/index.js +5 -1
- package/build/button/index.js.map +1 -1
- package/build/buttons/edit.js +6 -0
- package/build/buttons/edit.js.map +1 -1
- package/build/buttons/edit.native.js +16 -6
- package/build/buttons/edit.native.js.map +1 -1
- package/build/buttons/index.js +1 -0
- package/build/buttons/index.js.map +1 -1
- package/build/buttons/transforms.js +1 -0
- package/build/buttons/transforms.js.map +1 -1
- package/build/calendar/index.js +1 -0
- package/build/calendar/index.js.map +1 -1
- package/build/categories/index.js +1 -0
- package/build/categories/index.js.map +1 -1
- package/build/code/index.js +6 -1
- package/build/code/index.js.map +1 -1
- package/build/column/index.js +1 -0
- package/build/column/index.js.map +1 -1
- package/build/columns/index.js +11 -0
- package/build/columns/index.js.map +1 -1
- package/build/comment-author-avatar/edit.js +5 -2
- package/build/comment-author-avatar/edit.js.map +1 -1
- package/build/comment-author-avatar/index.js +7 -2
- package/build/comment-author-avatar/index.js.map +1 -1
- package/build/comment-author-name/index.js +1 -0
- package/build/comment-author-name/index.js.map +1 -1
- package/build/comment-content/index.js +1 -0
- 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 +2 -1
- package/build/comment-edit-link/index.js.map +1 -1
- package/build/comment-reply-link/index.js +1 -0
- package/build/comment-reply-link/index.js.map +1 -1
- package/build/comment-template/edit.js +117 -26
- package/build/comment-template/edit.js.map +1 -1
- package/build/comment-template/index.js +4 -2
- package/build/comment-template/index.js.map +1 -1
- package/build/comment-template/util.js +68 -0
- package/build/comment-template/util.js.map +1 -0
- package/build/comments-pagination/comments-pagination-arrow-controls.js +39 -0
- package/build/comments-pagination/comments-pagination-arrow-controls.js.map +1 -0
- package/build/comments-pagination/edit.js +79 -0
- package/build/comments-pagination/edit.js.map +1 -0
- package/build/comments-pagination/index.js +71 -0
- package/build/comments-pagination/index.js.map +1 -0
- package/build/comments-pagination/save.js +18 -0
- package/build/comments-pagination/save.js.map +1 -0
- package/build/comments-pagination-next/edit.js +54 -0
- package/build/comments-pagination-next/edit.js.map +1 -0
- package/build/comments-pagination-next/index.js +66 -0
- package/build/comments-pagination-next/index.js.map +1 -0
- package/build/comments-pagination-numbers/edit.js +47 -0
- package/build/comments-pagination-numbers/edit.js.map +1 -0
- package/build/comments-pagination-numbers/index.js +46 -0
- package/build/comments-pagination-numbers/index.js.map +1 -0
- package/build/comments-pagination-previous/edit.js +54 -0
- package/build/comments-pagination-previous/edit.js.map +1 -0
- package/build/comments-pagination-previous/index.js +66 -0
- package/build/comments-pagination-previous/index.js.map +1 -0
- package/build/comments-query-loop/edit/comments-inspector-controls.js +102 -0
- package/build/comments-query-loop/edit/comments-inspector-controls.js.map +1 -0
- package/build/comments-query-loop/edit.js +23 -28
- package/build/comments-query-loop/edit.js.map +1 -1
- package/build/comments-query-loop/index.js +15 -7
- package/build/comments-query-loop/index.js.map +1 -1
- package/build/cover/edit.js +2 -1
- package/build/cover/edit.js.map +1 -1
- package/build/cover/edit.native.js +40 -32
- package/build/cover/edit.native.js.map +1 -1
- package/build/cover/index.js +1 -0
- package/build/cover/index.js.map +1 -1
- package/build/cover/overlay-color-settings.native.js +11 -1
- package/build/cover/overlay-color-settings.native.js.map +1 -1
- package/build/embed/deprecated.js +1 -0
- package/build/embed/deprecated.js.map +1 -1
- package/build/embed/edit.native.js +23 -20
- package/build/embed/edit.native.js.map +1 -1
- package/build/embed/embed-controls.native.js +69 -0
- package/build/embed/embed-controls.native.js.map +1 -0
- package/build/embed/embed-link-settings.native.js +101 -0
- package/build/embed/embed-link-settings.native.js.map +1 -0
- package/build/embed/embed-loading.js +1 -3
- package/build/embed/embed-loading.js.map +1 -1
- package/build/embed/embed-placeholder.native.js +9 -2
- package/build/embed/embed-placeholder.native.js.map +1 -1
- package/build/embed/index.js +1 -0
- package/build/embed/index.js.map +1 -1
- package/build/embed/transforms.js +1 -0
- package/build/embed/transforms.js.map +1 -1
- package/build/embed/util.js +1 -0
- package/build/embed/util.js.map +1 -1
- package/build/file/edit.native.js +5 -2
- package/build/file/edit.native.js.map +1 -1
- package/build/file/index.js +1 -0
- package/build/file/index.js.map +1 -1
- package/build/freeform/index.js +1 -0
- package/build/freeform/index.js.map +1 -1
- package/build/gallery/deprecated.js +4 -0
- package/build/gallery/deprecated.js.map +1 -1
- package/build/gallery/edit.js +31 -12
- package/build/gallery/edit.js.map +1 -1
- package/build/gallery/gallery.native.js +1 -1
- package/build/gallery/gallery.native.js.map +1 -1
- package/build/gallery/index.js +1 -0
- package/build/gallery/index.js.map +1 -1
- package/build/group/index.js +19 -1
- package/build/group/index.js.map +1 -1
- package/build/heading/edit.js +2 -0
- package/build/heading/edit.js.map +1 -1
- package/build/heading/index.js +1 -0
- package/build/heading/index.js.map +1 -1
- package/build/heading/transforms.js +1 -0
- package/build/heading/transforms.js.map +1 -1
- package/build/home-link/index.js +1 -0
- package/build/home-link/index.js.map +1 -1
- package/build/html/index.js +1 -0
- package/build/html/index.js.map +1 -1
- package/build/image/edit.js +56 -5
- package/build/image/edit.js.map +1 -1
- package/build/image/edit.native.js +4 -4
- package/build/image/edit.native.js.map +1 -1
- package/build/image/image.js +15 -4
- package/build/image/image.js.map +1 -1
- package/build/image/index.js +5 -1
- package/build/image/index.js.map +1 -1
- package/build/index.js +12 -2
- package/build/index.js.map +1 -1
- package/build/latest-comments/index.js +1 -0
- package/build/latest-comments/index.js.map +1 -1
- package/build/latest-posts/deprecated.js +1 -0
- package/build/latest-posts/deprecated.js.map +1 -1
- package/build/latest-posts/edit.js +1 -1
- package/build/latest-posts/edit.js.map +1 -1
- package/build/latest-posts/index.js +1 -0
- package/build/latest-posts/index.js.map +1 -1
- package/build/list/index.js +1 -0
- package/build/list/index.js.map +1 -1
- package/build/loginout/index.js +1 -0
- package/build/loginout/index.js.map +1 -1
- package/build/media-text/index.js +1 -0
- package/build/media-text/index.js.map +1 -1
- package/build/missing/index.js +1 -0
- package/build/missing/index.js.map +1 -1
- package/build/more/index.js +1 -0
- package/build/more/index.js.map +1 -1
- package/build/navigation/edit/index.js +45 -11
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/inner-blocks.js +3 -1
- package/build/navigation/edit/inner-blocks.js.map +1 -1
- package/build/navigation/edit/navigation-menu-selector.js +42 -4
- package/build/navigation/edit/navigation-menu-selector.js.map +1 -1
- package/build/navigation/edit/overlay-menu-icon.js +36 -0
- package/build/navigation/edit/overlay-menu-icon.js.map +1 -0
- package/build/navigation/edit/placeholder/index.js +17 -48
- package/build/navigation/edit/placeholder/index.js.map +1 -1
- package/build/navigation/edit/responsive-wrapper.js +11 -22
- package/build/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build/navigation/index.js +10 -1
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/menu-items-to-blocks.js +4 -1
- package/build/navigation/menu-items-to-blocks.js.map +1 -1
- package/build/navigation/use-convert-classic-menu.js +59 -0
- package/build/navigation/use-convert-classic-menu.js.map +1 -0
- package/build/navigation/use-navigation-entities.js +6 -3
- package/build/navigation/use-navigation-entities.js.map +1 -1
- package/build/navigation-area/edit.js +2 -1
- package/build/navigation-area/edit.js.map +1 -1
- package/build/navigation-area/index.js +2 -1
- package/build/navigation-area/index.js.map +1 -1
- package/build/navigation-link/edit.js +7 -0
- package/build/navigation-link/edit.js.map +1 -1
- package/build/navigation-link/index.js +1 -0
- package/build/navigation-link/index.js.map +1 -1
- package/build/navigation-submenu/edit.js +4 -1
- package/build/navigation-submenu/edit.js.map +1 -1
- package/build/navigation-submenu/index.js +1 -0
- package/build/navigation-submenu/index.js.map +1 -1
- package/build/nextpage/index.js +1 -0
- package/build/nextpage/index.js.map +1 -1
- package/build/page-list/edit.js +37 -10
- package/build/page-list/edit.js.map +1 -1
- package/build/page-list/index.js +6 -1
- package/build/page-list/index.js.map +1 -1
- package/build/paragraph/edit.js +12 -2
- package/build/paragraph/edit.js.map +1 -1
- package/build/paragraph/index.js +2 -1
- package/build/paragraph/index.js.map +1 -1
- package/build/paragraph/transforms.js +2 -1
- package/build/paragraph/transforms.js.map +1 -1
- package/build/pattern/index.js +1 -0
- package/build/pattern/index.js.map +1 -1
- package/build/post-author/index.js +2 -1
- package/build/post-author/index.js.map +1 -1
- package/build/post-author-name/edit.js +98 -0
- package/build/post-author-name/edit.js.map +1 -0
- package/build/post-author-name/index.js +70 -0
- package/build/post-author-name/index.js.map +1 -0
- package/build/post-comment/index.js +1 -0
- package/build/post-comment/index.js.map +1 -1
- package/build/post-comments/index.js +1 -0
- package/build/post-comments/index.js.map +1 -1
- package/build/post-comments-count/index.js +1 -0
- package/build/post-comments-count/index.js.map +1 -1
- package/build/post-comments-form/index.js +1 -0
- package/build/post-comments-form/index.js.map +1 -1
- package/build/post-comments-link/index.js +1 -0
- package/build/post-comments-link/index.js.map +1 -1
- package/build/post-content/index.js +1 -0
- package/build/post-content/index.js.map +1 -1
- package/build/post-date/index.js +1 -0
- package/build/post-date/index.js.map +1 -1
- package/build/post-excerpt/edit.js +2 -1
- package/build/post-excerpt/edit.js.map +1 -1
- package/build/post-excerpt/index.js +4 -0
- package/build/post-excerpt/index.js.map +1 -1
- package/build/post-excerpt/transforms.js +27 -0
- package/build/post-excerpt/transforms.js.map +1 -0
- package/build/post-featured-image/dimension-controls.js +74 -32
- package/build/post-featured-image/dimension-controls.js.map +1 -1
- package/build/post-featured-image/edit.js +52 -20
- package/build/post-featured-image/edit.js.map +1 -1
- package/build/post-featured-image/index.js +4 -0
- package/build/post-featured-image/index.js.map +1 -1
- package/build/post-navigation-link/index.js +1 -0
- package/build/post-navigation-link/index.js.map +1 -1
- package/build/post-template/edit.js +34 -7
- package/build/post-template/edit.js.map +1 -1
- package/build/post-template/index.js +2 -1
- package/build/post-template/index.js.map +1 -1
- package/build/post-terms/index.js +1 -0
- package/build/post-terms/index.js.map +1 -1
- package/build/post-title/index.js +1 -0
- package/build/post-title/index.js.map +1 -1
- package/build/preformatted/edit.native.js +3 -6
- package/build/preformatted/edit.native.js.map +1 -1
- package/build/preformatted/index.js +1 -0
- package/build/preformatted/index.js.map +1 -1
- package/build/pullquote/index.js +8 -1
- package/build/pullquote/index.js.map +1 -1
- package/build/query/deprecated.js +96 -3
- package/build/query/deprecated.js.map +1 -1
- package/build/query/edit/index.js +4 -4
- package/build/query/edit/index.js.map +1 -1
- package/build/query/edit/inspector-controls/author-control.js +102 -0
- package/build/query/edit/inspector-controls/author-control.js.map +1 -0
- package/build/query/edit/inspector-controls/index.js +166 -0
- package/build/query/edit/inspector-controls/index.js.map +1 -0
- package/build/query/edit/inspector-controls/order-control.js +55 -0
- package/build/query/edit/inspector-controls/order-control.js.map +1 -0
- package/build/query/edit/inspector-controls/taxonomy-controls.js +158 -0
- package/build/query/edit/inspector-controls/taxonomy-controls.js.map +1 -0
- package/build/query/index.js +3 -3
- package/build/query/utils.js +49 -38
- package/build/query/utils.js.map +1 -1
- package/build/query/variations.js +0 -4
- package/build/query/variations.js.map +1 -1
- package/build/query-pagination/index.js +2 -1
- package/build/query-pagination/index.js.map +1 -1
- package/build/query-pagination-next/index.js +2 -1
- package/build/query-pagination-next/index.js.map +1 -1
- package/build/query-pagination-numbers/index.js +2 -1
- package/build/query-pagination-numbers/index.js.map +1 -1
- package/build/query-pagination-previous/index.js +2 -1
- package/build/query-pagination-previous/index.js.map +1 -1
- package/build/query-title/index.js +1 -0
- package/build/query-title/index.js.map +1 -1
- package/build/quote/index.js +1 -0
- package/build/quote/index.js.map +1 -1
- package/build/rss/index.js +1 -0
- package/build/rss/index.js.map +1 -1
- package/build/search/edit.js +5 -3
- package/build/search/edit.js.map +1 -1
- package/build/search/edit.native.js +2 -2
- package/build/search/edit.native.js.map +1 -1
- package/build/search/index.js +8 -1
- package/build/search/index.js.map +1 -1
- package/build/separator/index.js +1 -0
- package/build/separator/index.js.map +1 -1
- package/build/shortcode/index.js +1 -0
- package/build/shortcode/index.js.map +1 -1
- package/build/site-logo/edit.js +0 -25
- package/build/site-logo/edit.js.map +1 -1
- package/build/site-logo/index.js +5 -1
- package/build/site-logo/index.js.map +1 -1
- package/build/site-logo/transforms.js +31 -0
- package/build/site-logo/transforms.js.map +1 -0
- package/build/site-tagline/index.js +2 -1
- package/build/site-tagline/index.js.map +1 -1
- package/build/site-title/index.js +4 -0
- package/build/site-title/index.js.map +1 -1
- package/build/site-title/transforms.js +31 -0
- package/build/site-title/transforms.js.map +1 -0
- package/build/social-link/index.js +2 -1
- package/build/social-link/index.js.map +1 -1
- package/build/social-links/edit.js +29 -23
- package/build/social-links/edit.js.map +1 -1
- package/build/social-links/index.js +2 -1
- package/build/social-links/index.js.map +1 -1
- package/build/spacer/controls.js +111 -0
- package/build/spacer/controls.js.map +1 -0
- package/build/spacer/controls.native.js +95 -0
- package/build/spacer/controls.native.js.map +1 -0
- package/build/spacer/deprecated.js +53 -0
- package/build/spacer/deprecated.js.map +1 -0
- package/build/spacer/edit.js +117 -98
- package/build/spacer/edit.js.map +1 -1
- package/build/spacer/edit.native.js +76 -0
- package/build/spacer/edit.native.js.map +1 -0
- package/build/spacer/index.js +8 -4
- package/build/spacer/index.js.map +1 -1
- package/build/spacer/save.js +6 -3
- package/build/spacer/save.js.map +1 -1
- package/build/table/index.js +7 -1
- package/build/table/index.js.map +1 -1
- package/build/table-of-contents/index.js +1 -0
- package/build/table-of-contents/index.js.map +1 -1
- package/build/tag-cloud/index.js +1 -0
- package/build/tag-cloud/index.js.map +1 -1
- package/build/template-part/index.js +1 -0
- package/build/template-part/index.js.map +1 -1
- package/build/term-description/index.js +1 -0
- package/build/term-description/index.js.map +1 -1
- package/build/text-columns/index.js +1 -0
- package/build/text-columns/index.js.map +1 -1
- package/build/verse/index.js +1 -0
- package/build/verse/index.js.map +1 -1
- package/build/video/index.js +1 -0
- package/build/video/index.js.map +1 -1
- package/build-module/archives/index.js +1 -0
- package/build-module/archives/index.js.map +1 -1
- package/build-module/audio/edit.js +17 -5
- package/build-module/audio/edit.js.map +1 -1
- package/build-module/audio/index.js +1 -0
- package/build-module/audio/index.js.map +1 -1
- package/build-module/block/index.js +1 -0
- package/build-module/block/index.js.map +1 -1
- package/build-module/button/edit.native.js +1 -1
- package/build-module/button/edit.native.js.map +1 -1
- package/build-module/button/index.js +5 -1
- package/build-module/button/index.js.map +1 -1
- package/build-module/buttons/edit.js +6 -0
- package/build-module/buttons/edit.js.map +1 -1
- package/build-module/buttons/edit.native.js +17 -7
- package/build-module/buttons/edit.native.js.map +1 -1
- package/build-module/buttons/index.js +1 -0
- package/build-module/buttons/index.js.map +1 -1
- package/build-module/buttons/transforms.js +1 -0
- package/build-module/buttons/transforms.js.map +1 -1
- package/build-module/calendar/index.js +1 -0
- package/build-module/calendar/index.js.map +1 -1
- package/build-module/categories/index.js +1 -0
- package/build-module/categories/index.js.map +1 -1
- package/build-module/code/index.js +6 -1
- package/build-module/code/index.js.map +1 -1
- package/build-module/column/index.js +1 -0
- package/build-module/column/index.js.map +1 -1
- package/build-module/columns/index.js +11 -0
- package/build-module/columns/index.js.map +1 -1
- package/build-module/comment-author-avatar/edit.js +6 -3
- package/build-module/comment-author-avatar/edit.js.map +1 -1
- package/build-module/comment-author-avatar/index.js +7 -2
- package/build-module/comment-author-avatar/index.js.map +1 -1
- package/build-module/comment-author-name/index.js +1 -0
- package/build-module/comment-author-name/index.js.map +1 -1
- package/build-module/comment-content/index.js +1 -0
- 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 +2 -1
- package/build-module/comment-edit-link/index.js.map +1 -1
- package/build-module/comment-reply-link/index.js +1 -0
- package/build-module/comment-reply-link/index.js.map +1 -1
- package/build-module/comment-template/edit.js +116 -26
- package/build-module/comment-template/edit.js.map +1 -1
- package/build-module/comment-template/index.js +4 -2
- package/build-module/comment-template/index.js.map +1 -1
- package/build-module/comment-template/util.js +59 -0
- package/build-module/comment-template/util.js.map +1 -0
- package/build-module/comments-pagination/comments-pagination-arrow-controls.js +30 -0
- package/build-module/comments-pagination/comments-pagination-arrow-controls.js.map +1 -0
- package/build-module/comments-pagination/edit.js +66 -0
- package/build-module/comments-pagination/edit.js.map +1 -0
- package/build-module/comments-pagination/index.js +57 -0
- package/build-module/comments-pagination/index.js.map +1 -0
- package/build-module/comments-pagination/save.js +10 -0
- package/build-module/comments-pagination/save.js.map +1 -0
- package/build-module/comments-pagination-next/edit.js +41 -0
- package/build-module/comments-pagination-next/edit.js.map +1 -0
- package/build-module/comments-pagination-next/index.js +53 -0
- package/build-module/comments-pagination-next/index.js.map +1 -0
- package/build-module/comments-pagination-numbers/edit.js +40 -0
- package/build-module/comments-pagination-numbers/edit.js.map +1 -0
- package/build-module/comments-pagination-numbers/index.js +33 -0
- package/build-module/comments-pagination-numbers/index.js.map +1 -0
- package/build-module/comments-pagination-previous/edit.js +41 -0
- package/build-module/comments-pagination-previous/edit.js.map +1 -0
- package/build-module/comments-pagination-previous/index.js +53 -0
- package/build-module/comments-pagination-previous/index.js.map +1 -0
- package/build-module/comments-query-loop/edit/comments-inspector-controls.js +91 -0
- package/build-module/comments-query-loop/edit/comments-inspector-controls.js.map +1 -0
- package/build-module/comments-query-loop/edit.js +24 -28
- package/build-module/comments-query-loop/edit.js.map +1 -1
- package/build-module/comments-query-loop/index.js +15 -7
- package/build-module/comments-query-loop/index.js.map +1 -1
- package/build-module/cover/edit.js +2 -1
- package/build-module/cover/edit.js.map +1 -1
- package/build-module/cover/edit.native.js +41 -34
- package/build-module/cover/edit.native.js.map +1 -1
- package/build-module/cover/index.js +1 -0
- package/build-module/cover/index.js.map +1 -1
- package/build-module/cover/overlay-color-settings.native.js +11 -1
- package/build-module/cover/overlay-color-settings.native.js.map +1 -1
- package/build-module/embed/deprecated.js +1 -0
- package/build-module/embed/deprecated.js.map +1 -1
- package/build-module/embed/edit.native.js +24 -21
- package/build-module/embed/edit.native.js.map +1 -1
- package/build-module/embed/embed-controls.native.js +54 -0
- package/build-module/embed/embed-controls.native.js.map +1 -0
- package/build-module/embed/embed-link-settings.native.js +90 -0
- package/build-module/embed/embed-link-settings.native.js.map +1 -0
- package/build-module/embed/embed-loading.js +1 -2
- package/build-module/embed/embed-loading.js.map +1 -1
- package/build-module/embed/embed-placeholder.native.js +9 -2
- package/build-module/embed/embed-placeholder.native.js.map +1 -1
- package/build-module/embed/index.js +1 -0
- package/build-module/embed/index.js.map +1 -1
- package/build-module/embed/transforms.js +1 -0
- package/build-module/embed/transforms.js.map +1 -1
- package/build-module/embed/util.js +1 -0
- package/build-module/embed/util.js.map +1 -1
- package/build-module/file/edit.native.js +4 -2
- package/build-module/file/edit.native.js.map +1 -1
- package/build-module/file/index.js +1 -0
- package/build-module/file/index.js.map +1 -1
- package/build-module/freeform/index.js +1 -0
- package/build-module/freeform/index.js.map +1 -1
- package/build-module/gallery/deprecated.js +4 -0
- package/build-module/gallery/deprecated.js.map +1 -1
- package/build-module/gallery/edit.js +32 -13
- package/build-module/gallery/edit.js.map +1 -1
- package/build-module/gallery/gallery.native.js +1 -1
- package/build-module/gallery/gallery.native.js.map +1 -1
- package/build-module/gallery/index.js +1 -0
- package/build-module/gallery/index.js.map +1 -1
- package/build-module/group/index.js +19 -1
- package/build-module/group/index.js.map +1 -1
- package/build-module/heading/edit.js +3 -1
- package/build-module/heading/edit.js.map +1 -1
- package/build-module/heading/index.js +1 -0
- package/build-module/heading/index.js.map +1 -1
- package/build-module/heading/transforms.js +1 -0
- package/build-module/heading/transforms.js.map +1 -1
- package/build-module/home-link/index.js +1 -0
- package/build-module/home-link/index.js.map +1 -1
- package/build-module/html/index.js +1 -0
- package/build-module/html/index.js.map +1 -1
- package/build-module/image/edit.js +52 -4
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/edit.native.js +4 -4
- package/build-module/image/edit.native.js.map +1 -1
- package/build-module/image/image.js +16 -5
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/index.js +5 -1
- package/build-module/image/index.js.map +1 -1
- package/build-module/index.js +7 -2
- package/build-module/index.js.map +1 -1
- package/build-module/latest-comments/index.js +1 -0
- package/build-module/latest-comments/index.js.map +1 -1
- package/build-module/latest-posts/deprecated.js +1 -0
- package/build-module/latest-posts/deprecated.js.map +1 -1
- package/build-module/latest-posts/edit.js +1 -1
- package/build-module/latest-posts/edit.js.map +1 -1
- package/build-module/latest-posts/index.js +1 -0
- package/build-module/latest-posts/index.js.map +1 -1
- package/build-module/list/index.js +1 -0
- package/build-module/list/index.js.map +1 -1
- package/build-module/loginout/index.js +1 -0
- package/build-module/loginout/index.js.map +1 -1
- package/build-module/media-text/index.js +1 -0
- package/build-module/media-text/index.js.map +1 -1
- package/build-module/missing/index.js +1 -0
- package/build-module/missing/index.js.map +1 -1
- package/build-module/more/index.js +1 -0
- package/build-module/more/index.js.map +1 -1
- package/build-module/navigation/edit/index.js +43 -11
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/inner-blocks.js +3 -1
- package/build-module/navigation/edit/inner-blocks.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-selector.js +39 -4
- package/build-module/navigation/edit/navigation-menu-selector.js.map +1 -1
- package/build-module/navigation/edit/overlay-menu-icon.js +28 -0
- package/build-module/navigation/edit/overlay-menu-icon.js.map +1 -0
- package/build-module/navigation/edit/placeholder/index.js +16 -48
- package/build-module/navigation/edit/placeholder/index.js.map +1 -1
- package/build-module/navigation/edit/responsive-wrapper.js +10 -21
- package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build-module/navigation/index.js +10 -1
- package/build-module/navigation/index.js.map +1 -1
- package/build-module/navigation/menu-items-to-blocks.js +4 -1
- package/build-module/navigation/menu-items-to-blocks.js.map +1 -1
- package/build-module/navigation/use-convert-classic-menu.js +47 -0
- package/build-module/navigation/use-convert-classic-menu.js.map +1 -0
- package/build-module/navigation/use-navigation-entities.js +6 -3
- package/build-module/navigation/use-navigation-entities.js.map +1 -1
- package/build-module/navigation-area/edit.js +2 -1
- package/build-module/navigation-area/edit.js.map +1 -1
- package/build-module/navigation-area/index.js +2 -1
- package/build-module/navigation-area/index.js.map +1 -1
- package/build-module/navigation-link/edit.js +7 -0
- package/build-module/navigation-link/edit.js.map +1 -1
- package/build-module/navigation-link/index.js +1 -0
- package/build-module/navigation-link/index.js.map +1 -1
- package/build-module/navigation-submenu/edit.js +4 -1
- package/build-module/navigation-submenu/edit.js.map +1 -1
- package/build-module/navigation-submenu/index.js +1 -0
- package/build-module/navigation-submenu/index.js.map +1 -1
- package/build-module/nextpage/index.js +1 -0
- package/build-module/nextpage/index.js.map +1 -1
- package/build-module/page-list/edit.js +38 -11
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/page-list/index.js +6 -1
- package/build-module/page-list/index.js.map +1 -1
- package/build-module/paragraph/edit.js +13 -3
- package/build-module/paragraph/edit.js.map +1 -1
- package/build-module/paragraph/index.js +2 -1
- package/build-module/paragraph/index.js.map +1 -1
- package/build-module/paragraph/transforms.js +2 -1
- package/build-module/paragraph/transforms.js.map +1 -1
- package/build-module/pattern/index.js +1 -0
- package/build-module/pattern/index.js.map +1 -1
- package/build-module/post-author/index.js +2 -1
- package/build-module/post-author/index.js.map +1 -1
- package/build-module/post-author-name/edit.js +85 -0
- package/build-module/post-author-name/edit.js.map +1 -0
- package/build-module/post-author-name/index.js +61 -0
- package/build-module/post-author-name/index.js.map +1 -0
- package/build-module/post-comment/index.js +1 -0
- package/build-module/post-comment/index.js.map +1 -1
- package/build-module/post-comments/index.js +1 -0
- package/build-module/post-comments/index.js.map +1 -1
- package/build-module/post-comments-count/index.js +1 -0
- package/build-module/post-comments-count/index.js.map +1 -1
- package/build-module/post-comments-form/index.js +1 -0
- package/build-module/post-comments-form/index.js.map +1 -1
- package/build-module/post-comments-link/index.js +1 -0
- package/build-module/post-comments-link/index.js.map +1 -1
- package/build-module/post-content/index.js +1 -0
- package/build-module/post-content/index.js.map +1 -1
- package/build-module/post-date/index.js +1 -0
- package/build-module/post-date/index.js.map +1 -1
- package/build-module/post-excerpt/edit.js +2 -1
- package/build-module/post-excerpt/edit.js.map +1 -1
- package/build-module/post-excerpt/index.js +3 -0
- package/build-module/post-excerpt/index.js.map +1 -1
- package/build-module/post-excerpt/transforms.js +18 -0
- package/build-module/post-excerpt/transforms.js.map +1 -0
- package/build-module/post-featured-image/dimension-controls.js +76 -31
- package/build-module/post-featured-image/dimension-controls.js.map +1 -1
- package/build-module/post-featured-image/edit.js +54 -22
- package/build-module/post-featured-image/edit.js.map +1 -1
- package/build-module/post-featured-image/index.js +4 -0
- package/build-module/post-featured-image/index.js.map +1 -1
- package/build-module/post-navigation-link/index.js +1 -0
- package/build-module/post-navigation-link/index.js.map +1 -1
- package/build-module/post-template/edit.js +34 -7
- package/build-module/post-template/edit.js.map +1 -1
- package/build-module/post-template/index.js +2 -1
- package/build-module/post-template/index.js.map +1 -1
- package/build-module/post-terms/index.js +1 -0
- package/build-module/post-terms/index.js.map +1 -1
- package/build-module/post-title/index.js +1 -0
- package/build-module/post-title/index.js.map +1 -1
- package/build-module/preformatted/edit.native.js +3 -3
- package/build-module/preformatted/edit.native.js.map +1 -1
- package/build-module/preformatted/index.js +1 -0
- package/build-module/preformatted/index.js.map +1 -1
- package/build-module/pullquote/index.js +8 -1
- package/build-module/pullquote/index.js.map +1 -1
- package/build-module/query/deprecated.js +95 -4
- package/build-module/query/deprecated.js.map +1 -1
- package/build-module/query/edit/index.js +3 -3
- package/build-module/query/edit/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/author-control.js +89 -0
- package/build-module/query/edit/inspector-controls/author-control.js.map +1 -0
- package/build-module/query/edit/inspector-controls/index.js +149 -0
- package/build-module/query/edit/inspector-controls/index.js.map +1 -0
- package/build-module/query/edit/inspector-controls/order-control.js +45 -0
- package/build-module/query/edit/inspector-controls/order-control.js.map +1 -0
- package/build-module/query/edit/inspector-controls/taxonomy-controls.js +145 -0
- package/build-module/query/edit/inspector-controls/taxonomy-controls.js.map +1 -0
- package/build-module/query/index.js +3 -3
- package/build-module/query/utils.js +43 -35
- package/build-module/query/utils.js.map +1 -1
- package/build-module/query/variations.js +0 -4
- package/build-module/query/variations.js.map +1 -1
- package/build-module/query-pagination/index.js +2 -1
- package/build-module/query-pagination/index.js.map +1 -1
- package/build-module/query-pagination-next/index.js +2 -1
- package/build-module/query-pagination-next/index.js.map +1 -1
- package/build-module/query-pagination-numbers/index.js +2 -1
- package/build-module/query-pagination-numbers/index.js.map +1 -1
- package/build-module/query-pagination-previous/index.js +2 -1
- package/build-module/query-pagination-previous/index.js.map +1 -1
- package/build-module/query-title/index.js +1 -0
- package/build-module/query-title/index.js.map +1 -1
- package/build-module/quote/index.js +1 -0
- package/build-module/quote/index.js.map +1 -1
- package/build-module/rss/index.js +1 -0
- package/build-module/rss/index.js.map +1 -1
- package/build-module/search/edit.js +5 -3
- package/build-module/search/edit.js.map +1 -1
- package/build-module/search/edit.native.js +2 -2
- package/build-module/search/edit.native.js.map +1 -1
- package/build-module/search/index.js +8 -1
- package/build-module/search/index.js.map +1 -1
- package/build-module/separator/index.js +1 -0
- package/build-module/separator/index.js.map +1 -1
- package/build-module/shortcode/index.js +1 -0
- package/build-module/shortcode/index.js.map +1 -1
- package/build-module/site-logo/edit.js +0 -25
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/site-logo/index.js +4 -1
- package/build-module/site-logo/index.js.map +1 -1
- package/build-module/site-logo/transforms.js +22 -0
- package/build-module/site-logo/transforms.js.map +1 -0
- package/build-module/site-tagline/index.js +2 -1
- package/build-module/site-tagline/index.js.map +1 -1
- package/build-module/site-title/index.js +3 -0
- package/build-module/site-title/index.js.map +1 -1
- package/build-module/site-title/transforms.js +22 -0
- package/build-module/site-title/transforms.js.map +1 -0
- package/build-module/social-link/index.js +2 -1
- package/build-module/social-link/index.js.map +1 -1
- package/build-module/social-links/edit.js +29 -23
- package/build-module/social-links/edit.js.map +1 -1
- package/build-module/social-links/index.js +2 -1
- package/build-module/social-links/index.js.map +1 -1
- package/build-module/spacer/controls.js +101 -0
- package/build-module/spacer/controls.js.map +1 -0
- package/build-module/spacer/controls.native.js +82 -0
- package/build-module/spacer/controls.native.js.map +1 -0
- package/build-module/spacer/deprecated.js +44 -0
- package/build-module/spacer/deprecated.js.map +1 -0
- package/build-module/spacer/edit.js +114 -95
- package/build-module/spacer/edit.js.map +1 -1
- package/build-module/spacer/edit.native.js +61 -0
- package/build-module/spacer/edit.native.js.map +1 -0
- package/build-module/spacer/index.js +7 -4
- package/build-module/spacer/index.js.map +1 -1
- package/build-module/spacer/save.js +6 -3
- package/build-module/spacer/save.js.map +1 -1
- package/build-module/table/index.js +7 -1
- package/build-module/table/index.js.map +1 -1
- package/build-module/table-of-contents/index.js +1 -0
- package/build-module/table-of-contents/index.js.map +1 -1
- package/build-module/tag-cloud/index.js +1 -0
- package/build-module/tag-cloud/index.js.map +1 -1
- package/build-module/template-part/index.js +1 -0
- package/build-module/template-part/index.js.map +1 -1
- package/build-module/term-description/index.js +1 -0
- package/build-module/term-description/index.js.map +1 -1
- package/build-module/text-columns/index.js +1 -0
- package/build-module/text-columns/index.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 +1 -0
- package/build-module/video/index.js.map +1 -1
- package/build-style/audio/editor-rtl.css +11 -0
- package/build-style/audio/editor.css +11 -0
- package/build-style/code/theme-rtl.css +5 -3
- package/build-style/code/theme.css +5 -3
- package/build-style/columns/editor-rtl.css +0 -10
- package/build-style/columns/editor.css +0 -10
- package/build-style/columns/style-rtl.css +8 -21
- package/build-style/columns/style.css +8 -21
- package/build-style/comment-template/style-rtl.css +91 -0
- package/build-style/comment-template/style.css +91 -0
- package/build-style/{home-link/style.css → comments-pagination/editor-rtl.css} +18 -22
- package/build-style/comments-pagination/editor.css +102 -0
- package/build-style/{home-link → comments-pagination}/style-rtl.css +21 -21
- package/build-style/comments-pagination/style.css +106 -0
- package/build-style/comments-pagination-numbers/editor-rtl.css +85 -0
- package/build-style/comments-pagination-numbers/editor.css +86 -0
- package/build-style/comments-query-loop/editor-rtl.css +79 -0
- package/build-style/comments-query-loop/editor.css +79 -0
- package/build-style/common-rtl.css +19 -0
- package/build-style/common.css +19 -0
- package/build-style/cover/style-rtl.css +4 -0
- package/build-style/cover/style.css +4 -0
- package/build-style/editor-rtl.css +96 -58
- package/build-style/editor.css +99 -58
- package/build-style/embed/editor-rtl.css +0 -12
- package/build-style/embed/editor.css +0 -12
- package/build-style/gallery/editor-rtl.css +7 -18
- package/build-style/gallery/editor.css +7 -18
- package/build-style/gallery/style-rtl.css +3 -0
- package/build-style/gallery/style.css +3 -0
- package/build-style/group/theme-rtl.css +1 -1
- package/build-style/group/theme.css +1 -1
- package/build-style/latest-posts/editor-rtl.css +7 -0
- package/build-style/latest-posts/editor.css +7 -0
- package/build-style/latest-posts/style-rtl.css +0 -9
- package/build-style/latest-posts/style.css +0 -9
- package/build-style/navigation/editor-rtl.css +16 -2
- package/build-style/navigation/editor.css +16 -2
- package/build-style/navigation/style-rtl.css +18 -7
- package/build-style/navigation/style.css +18 -7
- package/build-style/page-list/editor-rtl.css +9 -5
- package/build-style/page-list/editor.css +9 -5
- package/build-style/post-comments/style-rtl.css +9 -4
- package/build-style/post-comments/style.css +9 -4
- package/build-style/post-featured-image/editor-rtl.css +0 -7
- package/build-style/post-featured-image/editor.css +0 -7
- package/build-style/post-featured-image/style-rtl.css +1 -1
- package/build-style/post-featured-image/style.css +1 -1
- package/build-style/post-template/style-rtl.css +4 -0
- package/build-style/post-template/style.css +4 -0
- package/build-style/post-title/style-rtl.css +3 -0
- package/build-style/post-title/style.css +3 -0
- package/build-style/pullquote/style-rtl.css +1 -0
- package/build-style/pullquote/style.css +1 -0
- package/build-style/query-pagination/editor-rtl.css +0 -4
- package/build-style/query-pagination/editor.css +0 -4
- package/build-style/social-links/editor-rtl.css +3 -0
- package/build-style/social-links/editor.css +3 -0
- package/build-style/social-links/style-rtl.css +1 -0
- package/build-style/social-links/style.css +1 -0
- package/build-style/spacer/editor-rtl.css +4 -0
- package/build-style/spacer/editor.css +4 -0
- package/build-style/style-rtl.css +141 -87
- package/build-style/style.css +143 -87
- package/build-style/table/style-rtl.css +1 -0
- package/build-style/table/style.css +1 -0
- package/build-style/tag-cloud/style-rtl.css +8 -0
- package/build-style/tag-cloud/style.css +8 -0
- package/build-style/theme-rtl.css +6 -4
- package/build-style/theme.css +6 -4
- package/package.json +31 -31
- package/src/archives/block.json +1 -0
- package/src/archives/index.php +5 -9
- package/src/audio/block.json +1 -0
- package/src/audio/edit.js +18 -2
- package/src/audio/editor.scss +14 -0
- package/src/audio/test/__snapshots__/edit.native.js.snap +22 -0
- package/src/audio/test/edit.native.js +24 -11
- package/src/block/block.json +1 -0
- package/src/block/index.php +7 -2
- package/src/block/test/edit.native.js +10 -12
- package/src/button/block.json +5 -1
- package/src/button/edit.native.js +1 -1
- package/src/buttons/block.json +2 -1
- package/src/buttons/edit.js +17 -0
- package/src/buttons/edit.native.js +17 -5
- package/src/buttons/test/__snapshots__/edit.native.js.snap +27 -0
- package/src/buttons/test/edit.native.js +75 -45
- package/src/calendar/block.json +1 -0
- package/src/calendar/index.php +35 -39
- package/src/categories/block.json +1 -0
- package/src/categories/index.php +1 -1
- package/src/code/block.json +6 -1
- package/src/code/theme.scss +6 -4
- package/src/column/block.json +1 -0
- package/src/columns/block.json +11 -0
- package/src/columns/editor.scss +0 -15
- package/src/columns/style.scss +15 -36
- package/src/comment-author-avatar/block.json +7 -2
- package/src/comment-author-avatar/edit.js +9 -2
- package/src/comment-author-avatar/index.php +25 -6
- package/src/comment-author-name/block.json +1 -0
- package/src/comment-content/block.json +1 -0
- package/src/comment-date/block.json +1 -0
- package/src/comment-date/index.php +2 -2
- package/src/comment-edit-link/block.json +1 -0
- package/src/comment-edit-link/index.js +1 -1
- package/src/comment-reply-link/block.json +1 -0
- package/src/comment-template/block.json +4 -2
- package/src/comment-template/edit.js +127 -42
- package/src/comment-template/index.php +46 -19
- package/src/comment-template/style.scss +17 -0
- package/src/comment-template/test/index.js +45 -0
- package/src/comment-template/util.js +56 -0
- package/src/comments-pagination/block.json +37 -0
- package/src/comments-pagination/comments-pagination-arrow-controls.js +44 -0
- package/src/comments-pagination/edit.js +83 -0
- package/src/comments-pagination/editor.scss +34 -0
- package/src/comments-pagination/index.js +20 -0
- package/src/comments-pagination/index.php +39 -0
- package/src/comments-pagination/save.js +8 -0
- package/src/comments-pagination/style.scss +38 -0
- package/src/comments-pagination-next/block.json +35 -0
- package/src/comments-pagination-next/edit.js +44 -0
- package/src/comments-pagination-next/index.js +18 -0
- package/src/comments-pagination-next/index.php +62 -0
- package/src/comments-pagination-numbers/block.json +15 -0
- package/src/comments-pagination-numbers/edit.js +22 -0
- package/src/comments-pagination-numbers/editor.scss +12 -0
- package/src/comments-pagination-numbers/index.js +18 -0
- package/src/comments-pagination-numbers/index.php +69 -0
- package/src/comments-pagination-previous/block.json +35 -0
- package/src/comments-pagination-previous/edit.js +44 -0
- package/src/comments-pagination-previous/index.js +18 -0
- package/src/comments-pagination-previous/index.php +52 -0
- package/src/comments-query-loop/block.json +15 -7
- package/src/comments-query-loop/edit/comments-inspector-controls.js +93 -0
- package/src/comments-query-loop/edit.js +22 -27
- package/src/comments-query-loop/editor.scss +3 -0
- package/src/common.scss +19 -0
- package/src/cover/block.json +1 -0
- package/src/cover/edit.js +1 -0
- package/src/cover/edit.native.js +35 -19
- package/src/cover/overlay-color-settings.native.js +10 -0
- package/src/cover/style.scss +4 -0
- package/src/cover/test/__snapshots__/edit.native.js.snap +33 -0
- package/src/cover/test/edit.native.js +280 -17
- package/src/editor.scss +3 -0
- package/src/embed/block.json +1 -0
- package/src/embed/edit.native.js +23 -18
- package/src/embed/editor.scss +0 -15
- package/src/embed/embed-controls.native.js +65 -0
- package/src/embed/embed-link-settings.native.js +100 -0
- package/src/embed/embed-loading.js +0 -2
- package/src/embed/embed-placeholder.native.js +8 -0
- package/src/embed/test/__snapshots__/index.native.js.snap +10 -0
- package/src/embed/test/index.native.js +236 -95
- package/src/file/block.json +1 -0
- package/src/file/edit.native.js +6 -2
- package/src/file/index.php +2 -2
- package/src/file/test/__snapshots__/edit.native.js.snap +18 -5
- package/src/file/test/edit.native.js +30 -12
- package/src/freeform/block.json +1 -0
- package/src/gallery/block.json +1 -0
- package/src/gallery/deprecated.js +4 -0
- package/src/gallery/edit.js +42 -11
- package/src/gallery/editor.scss +8 -22
- package/src/gallery/gallery.native.js +1 -1
- package/src/gallery/style.scss +4 -0
- package/src/gallery/test/use-get-new-images.js +93 -0
- package/src/group/block.json +19 -1
- package/src/group/theme.scss +4 -5
- package/src/heading/block.json +1 -0
- package/src/heading/edit.js +2 -1
- package/src/home-link/block.json +1 -0
- package/src/home-link/index.php +3 -3
- package/src/html/block.json +1 -0
- package/src/image/block.json +5 -1
- package/src/image/edit.js +44 -0
- package/src/image/edit.native.js +4 -4
- package/src/image/image.js +14 -3
- package/src/image/index.php +2 -2
- package/src/image/test/edit.native.js +27 -7
- package/src/index.js +10 -0
- package/src/latest-comments/block.json +1 -0
- package/src/latest-comments/index.php +5 -5
- package/src/latest-posts/block.json +1 -0
- package/src/latest-posts/edit.js +1 -1
- package/src/latest-posts/editor.scss +10 -0
- package/src/latest-posts/index.php +14 -12
- package/src/latest-posts/style.scss +0 -12
- package/src/list/block.json +1 -0
- package/src/list/test/edit.native.js +3 -3
- package/src/loginout/block.json +1 -0
- package/src/media-text/block.json +1 -0
- package/src/missing/block.json +1 -0
- package/src/missing/test/__snapshots__/edit.native.js.snap +5 -0
- package/src/missing/test/edit-integration.native.js +2 -2
- package/src/missing/test/edit.native.js +26 -30
- package/src/more/block.json +1 -0
- package/src/navigation/README.md +13 -0
- package/src/navigation/block.json +12 -10
- package/src/navigation/edit/index.js +80 -22
- package/src/navigation/edit/inner-blocks.js +3 -1
- package/src/navigation/edit/navigation-menu-selector.js +65 -15
- package/src/navigation/edit/overlay-menu-icon.js +21 -0
- package/src/navigation/edit/placeholder/index.js +29 -53
- package/src/navigation/edit/responsive-wrapper.js +12 -13
- package/src/navigation/editor.scss +18 -3
- package/src/navigation/index.php +17 -10
- package/src/navigation/menu-items-to-blocks.js +2 -1
- package/src/navigation/style.scss +24 -7
- package/src/navigation/use-convert-classic-menu.js +58 -0
- package/src/navigation/use-navigation-entities.js +3 -1
- package/src/navigation-area/block.json +3 -7
- package/src/navigation-area/edit.js +2 -1
- package/src/navigation-link/block.json +2 -3
- package/src/navigation-link/edit.js +5 -0
- package/src/navigation-link/index.php +3 -3
- package/src/navigation-submenu/block.json +2 -3
- package/src/navigation-submenu/edit.js +3 -1
- package/src/navigation-submenu/index.php +7 -7
- package/src/nextpage/block.json +1 -0
- package/src/page-list/block.json +4 -0
- package/src/page-list/edit.js +47 -9
- package/src/page-list/editor.scss +8 -5
- package/src/page-list/index.php +15 -10
- package/src/paragraph/block.json +2 -1
- package/src/paragraph/edit.js +12 -4
- package/src/paragraph/test/edit.native.js +4 -13
- package/src/pattern/block.json +1 -0
- package/src/post-author/block.json +2 -1
- package/src/post-author/index.php +1 -1
- package/src/post-author-name/block.json +43 -0
- package/src/post-author-name/edit.js +95 -0
- package/src/post-author-name/index.js +18 -0
- package/src/post-author-name/index.php +49 -0
- package/src/post-comment/block.json +1 -0
- package/src/post-comments/block.json +1 -0
- package/src/post-comments/style.scss +10 -4
- package/src/post-comments-count/block.json +1 -0
- package/src/post-comments-form/block.json +6 -1
- package/src/post-comments-link/block.json +1 -0
- package/src/post-comments-link/index.php +7 -7
- package/src/post-content/block.json +1 -0
- package/src/post-content/index.php +1 -1
- package/src/post-date/block.json +1 -0
- package/src/post-date/index.php +2 -2
- package/src/post-excerpt/block.json +1 -0
- package/src/post-excerpt/edit.js +1 -0
- package/src/post-excerpt/index.js +2 -0
- package/src/post-excerpt/index.php +1 -1
- package/src/post-excerpt/transforms.js +23 -0
- package/src/post-featured-image/block.json +4 -0
- package/src/post-featured-image/dimension-controls.js +103 -51
- package/src/post-featured-image/edit.js +61 -22
- package/src/post-featured-image/editor.scss +0 -8
- package/src/post-featured-image/index.php +3 -2
- package/src/post-featured-image/style.scss +1 -1
- package/src/post-navigation-link/block.json +1 -0
- package/src/post-navigation-link/index.php +4 -4
- package/src/post-template/block.json +2 -1
- package/src/post-template/edit.js +27 -7
- package/src/post-template/index.php +2 -2
- package/src/post-template/style.scss +5 -0
- package/src/post-terms/block.json +1 -0
- package/src/post-terms/index.php +1 -1
- package/src/post-title/block.json +1 -0
- package/src/post-title/index.php +1 -1
- package/src/post-title/style.scss +6 -2
- package/src/preformatted/block.json +1 -0
- package/src/preformatted/edit.native.js +4 -4
- package/src/preformatted/test/__snapshots__/edit.native.js.snap +53 -14
- package/src/preformatted/test/edit.native.js +11 -10
- package/src/pullquote/block.json +8 -1
- package/src/pullquote/style.scss +1 -0
- package/src/query/block.json +3 -3
- package/src/query/deprecated.js +80 -3
- package/src/query/edit/index.js +3 -3
- package/src/query/edit/inspector-controls/author-control.js +78 -0
- package/src/query/edit/inspector-controls/index.js +163 -0
- package/src/query/edit/inspector-controls/order-control.js +41 -0
- package/src/query/edit/inspector-controls/taxonomy-controls.js +118 -0
- package/src/query/test/utils.js +6 -4
- package/src/query/utils.js +45 -35
- package/src/query/variations.js +0 -4
- package/src/query-pagination/block.json +2 -1
- package/src/query-pagination/editor.scss +0 -4
- package/src/query-pagination-next/block.json +2 -1
- package/src/query-pagination-next/index.php +2 -1
- package/src/query-pagination-numbers/block.json +2 -1
- package/src/query-pagination-previous/block.json +2 -1
- package/src/query-pagination-previous/index.php +2 -1
- package/src/query-title/block.json +1 -0
- package/src/quote/block.json +1 -0
- package/src/rss/block.json +1 -0
- package/src/search/block.json +8 -1
- package/src/search/edit.js +2 -1
- package/src/search/edit.native.js +2 -5
- package/src/search/index.php +21 -11
- package/src/search/test/__snapshots__/edit.native.js.snap +7 -15
- package/src/search/test/edit.native.js +32 -24
- package/src/separator/block.json +1 -0
- package/src/shortcode/block.json +1 -0
- package/src/site-logo/block.json +1 -0
- package/src/site-logo/edit.js +1 -32
- package/src/site-logo/index.js +2 -0
- package/src/site-logo/index.php +1 -1
- package/src/site-logo/transforms.js +21 -0
- package/src/site-tagline/block.json +2 -1
- package/src/site-tagline/index.php +1 -1
- package/src/site-title/block.json +1 -0
- package/src/site-title/index.js +2 -0
- package/src/site-title/index.php +4 -4
- package/src/site-title/transforms.js +21 -0
- package/src/social-link/block.json +2 -1
- package/src/social-link/index.php +3 -3
- package/src/social-links/block.json +3 -8
- package/src/social-links/edit.js +29 -26
- package/src/social-links/editor.scss +7 -0
- package/src/social-links/style.scss +3 -0
- package/src/spacer/block.json +4 -3
- package/src/spacer/controls.js +108 -0
- package/src/spacer/controls.native.js +82 -0
- package/src/spacer/deprecated.js +41 -0
- package/src/spacer/edit.js +133 -132
- package/src/spacer/edit.native.js +68 -0
- package/src/spacer/editor.scss +6 -0
- package/src/spacer/index.js +2 -0
- package/src/spacer/save.js +5 -2
- package/src/style.scss +3 -2
- package/src/table/block.json +7 -1
- package/src/table/style.scss +1 -0
- package/src/table-of-contents/block.json +1 -0
- package/src/table-of-contents/index.php +3 -3
- package/src/tag-cloud/block.json +1 -0
- package/src/tag-cloud/index.php +9 -0
- package/src/tag-cloud/style.scss +9 -0
- package/src/template-part/block.json +1 -0
- package/src/template-part/index.php +6 -6
- package/src/term-description/block.json +1 -0
- package/src/text-columns/block.json +1 -0
- package/src/verse/block.json +1 -0
- package/src/verse/test/edit.native.js +7 -10
- package/src/video/block.json +1 -0
- package/build/comments-query-loop/toolbar.js +0 -58
- package/build/comments-query-loop/toolbar.js.map +0 -1
- package/build/embed/embed-bottom-sheet.native.js +0 -85
- package/build/embed/embed-bottom-sheet.native.js.map +0 -1
- package/build/query/edit/query-inspector-controls.js +0 -275
- package/build/query/edit/query-inspector-controls.js.map +0 -1
- package/build-module/comments-query-loop/toolbar.js +0 -48
- package/build-module/comments-query-loop/toolbar.js.map +0 -1
- package/build-module/embed/embed-bottom-sheet.native.js +0 -74
- package/build-module/embed/embed-bottom-sheet.native.js.map +0 -1
- package/build-module/query/edit/query-inspector-controls.js +0 -261
- package/build-module/query/edit/query-inspector-controls.js.map +0 -1
- package/src/comments-query-loop/toolbar.js +0 -57
- package/src/embed/embed-bottom-sheet.native.js +0 -78
- package/src/home-link/style.scss +0 -51
- package/src/query/edit/query-inspector-controls.js +0 -281
|
@@ -154,14 +154,15 @@ function menuItemToBlockAttributes( {
|
|
|
154
154
|
classes.join( ' ' ).trim() && {
|
|
155
155
|
className: classes.join( ' ' ).trim(),
|
|
156
156
|
} ),
|
|
157
|
+
/* eslint-disable camelcase */
|
|
157
158
|
...( attr_title?.length && {
|
|
158
159
|
title: attr_title,
|
|
159
160
|
} ),
|
|
160
|
-
// eslint-disable-next-line camelcase
|
|
161
161
|
...( object_id &&
|
|
162
162
|
'custom' !== object && {
|
|
163
163
|
id: object_id,
|
|
164
164
|
} ),
|
|
165
|
+
/* eslint-enable camelcase */
|
|
165
166
|
...( description?.length && {
|
|
166
167
|
description,
|
|
167
168
|
} ),
|
|
@@ -306,11 +306,14 @@ button.wp-block-navigation-item__content {
|
|
|
306
306
|
*/
|
|
307
307
|
|
|
308
308
|
// Menu items with no background.
|
|
309
|
+
.wp-block-navigation__responsive-container,
|
|
310
|
+
.wp-block-navigation__responsive-close,
|
|
311
|
+
.wp-block-navigation__responsive-dialog,
|
|
309
312
|
.wp-block-navigation,
|
|
310
313
|
.wp-block-navigation .wp-block-page-list,
|
|
311
314
|
.wp-block-navigation__container,
|
|
312
315
|
.wp-block-navigation__responsive-container-content {
|
|
313
|
-
gap:
|
|
316
|
+
gap: inherit;
|
|
314
317
|
}
|
|
315
318
|
|
|
316
319
|
// Menu items with background.
|
|
@@ -321,7 +324,7 @@ button.wp-block-navigation-item__content {
|
|
|
321
324
|
&,
|
|
322
325
|
.wp-block-navigation .wp-block-page-list,
|
|
323
326
|
.wp-block-navigation__container {
|
|
324
|
-
gap:
|
|
327
|
+
gap: inherit;
|
|
325
328
|
}
|
|
326
329
|
}
|
|
327
330
|
|
|
@@ -452,7 +455,7 @@ button.wp-block-navigation-item__content {
|
|
|
452
455
|
background-color: inherit;
|
|
453
456
|
|
|
454
457
|
// Use em units to apply padding, so themes can more easily style this in various ways.
|
|
455
|
-
padding:
|
|
458
|
+
padding: 2rem;
|
|
456
459
|
|
|
457
460
|
// Allow modal to scroll.
|
|
458
461
|
overflow: auto;
|
|
@@ -462,7 +465,7 @@ button.wp-block-navigation-item__content {
|
|
|
462
465
|
|
|
463
466
|
.wp-block-navigation__responsive-container-content {
|
|
464
467
|
// Add padding above to accommodate close button.
|
|
465
|
-
padding-top: calc(
|
|
468
|
+
padding-top: calc(2rem + #{ $navigation-icon-size });
|
|
466
469
|
|
|
467
470
|
// Don't crop the focus style.
|
|
468
471
|
overflow: visible;
|
|
@@ -502,14 +505,14 @@ button.wp-block-navigation-item__content {
|
|
|
502
505
|
// Position and style.
|
|
503
506
|
position: static;
|
|
504
507
|
border: none;
|
|
505
|
-
padding-left:
|
|
506
|
-
padding-right:
|
|
508
|
+
padding-left: 2rem;
|
|
509
|
+
padding-right: 2rem;
|
|
507
510
|
}
|
|
508
511
|
|
|
509
512
|
// Space unfolded items using gap and padding for submenus.
|
|
510
513
|
.wp-block-navigation__submenu-container,
|
|
511
514
|
.wp-block-navigation__container {
|
|
512
|
-
gap:
|
|
515
|
+
gap: inherit;
|
|
513
516
|
}
|
|
514
517
|
|
|
515
518
|
// Apply top padding to nested submenus.
|
|
@@ -580,6 +583,12 @@ button.wp-block-navigation-item__content {
|
|
|
580
583
|
color: #000;
|
|
581
584
|
}
|
|
582
585
|
|
|
586
|
+
// Overlay menu toggle button label
|
|
587
|
+
.wp-block-navigation__toggle_button_label {
|
|
588
|
+
font-size: 1rem;
|
|
589
|
+
font-weight: bold;
|
|
590
|
+
}
|
|
591
|
+
|
|
583
592
|
// Menu and close buttons.
|
|
584
593
|
.wp-block-navigation__responsive-container-open,
|
|
585
594
|
.wp-block-navigation__responsive-container-close {
|
|
@@ -622,6 +631,14 @@ button.wp-block-navigation-item__content {
|
|
|
622
631
|
// The menu adds wrapping containers.
|
|
623
632
|
.wp-block-navigation__responsive-close {
|
|
624
633
|
width: 100%;
|
|
634
|
+
|
|
635
|
+
// This element is not keyboard accessible, and is focusable only using the mouse.
|
|
636
|
+
// It is part of the MicroModal library that adds a scrim outside of a modal dialog that is not fullscreen,
|
|
637
|
+
// where clicking that scrim closes the overlay just like the close button.
|
|
638
|
+
// It should not have a visible focus rectangle.
|
|
639
|
+
&:focus {
|
|
640
|
+
outline: none;
|
|
641
|
+
}
|
|
625
642
|
}
|
|
626
643
|
|
|
627
644
|
.is-menu-open .wp-block-navigation__responsive-close,
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { useCallback, useState, useEffect } from '@wordpress/element';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Internal dependencies
|
|
8
|
+
*/
|
|
9
|
+
import useNavigationEntities from './use-navigation-entities';
|
|
10
|
+
import menuItemsToBlocks from './menu-items-to-blocks';
|
|
11
|
+
|
|
12
|
+
export default function useConvertClassicMenu( onFinish ) {
|
|
13
|
+
const [ selectedMenu, setSelectedMenu ] = useState();
|
|
14
|
+
const [
|
|
15
|
+
isAwaitingMenuItemResolution,
|
|
16
|
+
setIsAwaitingMenuItemResolution,
|
|
17
|
+
] = useState( false );
|
|
18
|
+
const [ menuName, setMenuName ] = useState( '' );
|
|
19
|
+
|
|
20
|
+
const { menuItems, hasResolvedMenuItems } = useNavigationEntities(
|
|
21
|
+
selectedMenu
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
const createFromMenu = useCallback(
|
|
25
|
+
( name ) => {
|
|
26
|
+
const { innerBlocks: blocks } = menuItemsToBlocks( menuItems );
|
|
27
|
+
onFinish( blocks, name );
|
|
28
|
+
},
|
|
29
|
+
[ menuItems, menuItemsToBlocks, onFinish ]
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
useEffect( () => {
|
|
33
|
+
// If the user selected a menu but we had to wait for menu items to
|
|
34
|
+
// finish resolving, then create the block once resolution finishes.
|
|
35
|
+
if ( isAwaitingMenuItemResolution && hasResolvedMenuItems ) {
|
|
36
|
+
createFromMenu( menuName );
|
|
37
|
+
setIsAwaitingMenuItemResolution( false );
|
|
38
|
+
}
|
|
39
|
+
}, [ isAwaitingMenuItemResolution, hasResolvedMenuItems, menuName ] );
|
|
40
|
+
|
|
41
|
+
return useCallback(
|
|
42
|
+
( id, name ) => {
|
|
43
|
+
setSelectedMenu( id );
|
|
44
|
+
|
|
45
|
+
// If we have menu items, create the block right away.
|
|
46
|
+
if ( hasResolvedMenuItems ) {
|
|
47
|
+
createFromMenu( name );
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Otherwise, create the block when resolution finishes.
|
|
52
|
+
setIsAwaitingMenuItemResolution( true );
|
|
53
|
+
// Store the name to use later.
|
|
54
|
+
setMenuName( name );
|
|
55
|
+
},
|
|
56
|
+
[ hasResolvedMenuItems, createFromMenu ]
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -40,7 +40,7 @@ function useMenuEntities() {
|
|
|
40
40
|
coreStore
|
|
41
41
|
);
|
|
42
42
|
|
|
43
|
-
const menusParameters = [ { per_page: -1 } ];
|
|
43
|
+
const menusParameters = [ { per_page: -1, context: 'view' } ];
|
|
44
44
|
|
|
45
45
|
return {
|
|
46
46
|
menus: getMenus( ...menusParameters ),
|
|
@@ -73,6 +73,7 @@ function useMenuItemEntities( menuId ) {
|
|
|
73
73
|
{
|
|
74
74
|
menus: menuId,
|
|
75
75
|
per_page: -1,
|
|
76
|
+
context: 'view',
|
|
76
77
|
},
|
|
77
78
|
]
|
|
78
79
|
: undefined;
|
|
@@ -115,6 +116,7 @@ function usePageEntities() {
|
|
|
115
116
|
order: 'asc',
|
|
116
117
|
orderby: 'id',
|
|
117
118
|
per_page: -1,
|
|
119
|
+
context: 'view',
|
|
118
120
|
},
|
|
119
121
|
];
|
|
120
122
|
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
2
3
|
"apiVersion": 2,
|
|
3
4
|
"name": "core/navigation-area",
|
|
4
5
|
"title": "Navigation Area",
|
|
5
6
|
"category": "theme",
|
|
6
7
|
"description": "Define a navigation area for your theme. The navigation block associated with this area will be automatically displayed.",
|
|
7
|
-
"keywords": [
|
|
8
|
-
"menu",
|
|
9
|
-
"navigation",
|
|
10
|
-
"links",
|
|
11
|
-
"location"
|
|
12
|
-
],
|
|
8
|
+
"keywords": [ "menu", "navigation", "links", "location" ],
|
|
13
9
|
"textdomain": "default",
|
|
14
10
|
"attributes": {
|
|
15
11
|
"area": {
|
|
@@ -22,6 +18,6 @@
|
|
|
22
18
|
},
|
|
23
19
|
"supports": {
|
|
24
20
|
"html": false,
|
|
25
|
-
"inserter":
|
|
21
|
+
"inserter": false
|
|
26
22
|
}
|
|
27
23
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
2
3
|
"apiVersion": 2,
|
|
3
4
|
"name": "core/navigation-link",
|
|
4
5
|
"title": "Custom Link",
|
|
5
6
|
"category": "design",
|
|
6
|
-
"parent": [
|
|
7
|
-
"core/navigation"
|
|
8
|
-
],
|
|
7
|
+
"parent": [ "core/navigation" ],
|
|
9
8
|
"description": "Add a page, link, or another item to your navigation.",
|
|
10
9
|
"textdomain": "default",
|
|
11
10
|
"attributes": {
|
|
@@ -286,6 +286,10 @@ function navStripHTML( html ) {
|
|
|
286
286
|
*/
|
|
287
287
|
|
|
288
288
|
function LinkControlTransforms( { block, transforms, replace } ) {
|
|
289
|
+
if ( ! transforms?.length ) {
|
|
290
|
+
return null;
|
|
291
|
+
}
|
|
292
|
+
|
|
289
293
|
return (
|
|
290
294
|
<div className="link-control-transform">
|
|
291
295
|
<h3 className="link-control-transform__subheading">
|
|
@@ -722,6 +726,7 @@ export default function NavigationLinkEdit( {
|
|
|
722
726
|
>
|
|
723
727
|
<LinkControl
|
|
724
728
|
hasTextControl
|
|
729
|
+
hasRichPreviews
|
|
725
730
|
className="wp-block-navigation-link__inline-link-input"
|
|
726
731
|
value={ link }
|
|
727
732
|
showInitialSuggestions={ true }
|
|
@@ -116,9 +116,9 @@ function block_core_navigation_link_render_submenu_icon() {
|
|
|
116
116
|
/**
|
|
117
117
|
* Renders the `core/navigation-link` block.
|
|
118
118
|
*
|
|
119
|
-
* @param array
|
|
120
|
-
* @param
|
|
121
|
-
* @param
|
|
119
|
+
* @param array $attributes The block attributes.
|
|
120
|
+
* @param string $content The saved content.
|
|
121
|
+
* @param WP_Block $block The parsed block.
|
|
122
122
|
*
|
|
123
123
|
* @return string Returns the post content with the legacy widget added.
|
|
124
124
|
*/
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
2
3
|
"apiVersion": 2,
|
|
3
4
|
"name": "core/navigation-submenu",
|
|
4
5
|
"title": "Submenu",
|
|
5
6
|
"category": "design",
|
|
6
|
-
"parent": [
|
|
7
|
-
"core/navigation"
|
|
8
|
-
],
|
|
7
|
+
"parent": [ "core/navigation" ],
|
|
9
8
|
"description": "Add a submenu to your navigation.",
|
|
10
9
|
"textdomain": "default",
|
|
11
10
|
"attributes": {
|
|
@@ -50,7 +50,9 @@ import { name } from './block.json';
|
|
|
50
50
|
|
|
51
51
|
const ALLOWED_BLOCKS = [ 'core/navigation-link', 'core/navigation-submenu' ];
|
|
52
52
|
|
|
53
|
-
const DEFAULT_BLOCK =
|
|
53
|
+
const DEFAULT_BLOCK = {
|
|
54
|
+
name: 'core/navigation-link',
|
|
55
|
+
};
|
|
54
56
|
|
|
55
57
|
const MAX_NESTING = 5;
|
|
56
58
|
|
|
@@ -116,9 +116,9 @@ function block_core_navigation_submenu_render_submenu_icon() {
|
|
|
116
116
|
/**
|
|
117
117
|
* Renders the `core/navigation-submenu` block.
|
|
118
118
|
*
|
|
119
|
-
* @param array
|
|
120
|
-
* @param string
|
|
121
|
-
* @param
|
|
119
|
+
* @param array $attributes The block attributes.
|
|
120
|
+
* @param string $content The saved content.
|
|
121
|
+
* @param WP_Block $block The parsed block.
|
|
122
122
|
*
|
|
123
123
|
* @return string Returns the post content with the legacy widget added.
|
|
124
124
|
*/
|
|
@@ -199,9 +199,9 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) {
|
|
|
199
199
|
// If Submenus open on hover, we render an anchor tag with attributes.
|
|
200
200
|
// If submenu icons are set to show, we also render a submenu button, so the submenu can be opened on click.
|
|
201
201
|
if ( ! $open_on_click ) {
|
|
202
|
-
$item_url = isset( $attributes['url'] ) ?
|
|
202
|
+
$item_url = isset( $attributes['url'] ) ? $attributes['url'] : '';
|
|
203
203
|
// Start appending HTML attributes to anchor tag.
|
|
204
|
-
$html .= '<a class="wp-block-navigation-item__content" href="' . $item_url . '"';
|
|
204
|
+
$html .= '<a class="wp-block-navigation-item__content" href="' . esc_url( $item_url ) . '"';
|
|
205
205
|
|
|
206
206
|
if ( $is_active ) {
|
|
207
207
|
$html .= ' aria-current="page"';
|
|
@@ -232,11 +232,11 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) {
|
|
|
232
232
|
if ( $show_submenu_indicators ) {
|
|
233
233
|
// The submenu icon is rendered in a button here
|
|
234
234
|
// so that there's a clickable element to open the submenu.
|
|
235
|
-
$html .= '<button aria-label="' . $aria_label . '" class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false">' . block_core_navigation_submenu_render_submenu_icon() . '</button>';
|
|
235
|
+
$html .= '<button aria-label="' . esc_attr( $aria_label ) . '" class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false">' . block_core_navigation_submenu_render_submenu_icon() . '</button>';
|
|
236
236
|
}
|
|
237
237
|
} else {
|
|
238
238
|
// If menus open on click, we render the parent as a button.
|
|
239
|
-
$html .= '<button aria-label="' . $aria_label . '" class="wp-block-navigation-item__content wp-block-navigation-submenu__toggle" aria-expanded="false">';
|
|
239
|
+
$html .= '<button aria-label="' . esc_attr( $aria_label ) . '" class="wp-block-navigation-item__content wp-block-navigation-submenu__toggle" aria-expanded="false">';
|
|
240
240
|
|
|
241
241
|
// Wrap title with span to isolate it from submenu icon.
|
|
242
242
|
$html .= '<span class="wp-block-navigation-item__label">';
|
package/src/nextpage/block.json
CHANGED
package/src/page-list/block.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
2
3
|
"apiVersion": 2,
|
|
3
4
|
"name": "core/page-list",
|
|
4
5
|
"title": "Page List",
|
|
@@ -7,6 +8,9 @@
|
|
|
7
8
|
"keywords": [ "menu", "navigation" ],
|
|
8
9
|
"textdomain": "default",
|
|
9
10
|
"attributes": {
|
|
11
|
+
"__unstableMaxPages": {
|
|
12
|
+
"type": "number"
|
|
13
|
+
}
|
|
10
14
|
},
|
|
11
15
|
"usesContext": [
|
|
12
16
|
"textColor",
|
package/src/page-list/edit.js
CHANGED
|
@@ -12,7 +12,12 @@ import {
|
|
|
12
12
|
useBlockProps,
|
|
13
13
|
getColorClassName,
|
|
14
14
|
} from '@wordpress/block-editor';
|
|
15
|
-
import {
|
|
15
|
+
import {
|
|
16
|
+
ToolbarButton,
|
|
17
|
+
Placeholder,
|
|
18
|
+
Spinner,
|
|
19
|
+
Notice,
|
|
20
|
+
} from '@wordpress/components';
|
|
16
21
|
import { __ } from '@wordpress/i18n';
|
|
17
22
|
import { useMemo, useState, memo } from '@wordpress/element';
|
|
18
23
|
import { useSelect } from '@wordpress/data';
|
|
@@ -29,7 +34,7 @@ import { ItemSubmenuIcon } from '../navigation-link/icons';
|
|
|
29
34
|
const MAX_PAGE_COUNT = 100;
|
|
30
35
|
|
|
31
36
|
export default function PageListEdit( { context, clientId } ) {
|
|
32
|
-
const { pagesByParentId, totalPages } =
|
|
37
|
+
const { pagesByParentId, totalPages, hasResolvedPages } = usePageData();
|
|
33
38
|
|
|
34
39
|
const isNavigationChild = 'showSubmenuIcon' in context;
|
|
35
40
|
const allowConvertToLinks =
|
|
@@ -70,16 +75,29 @@ export default function PageListEdit( { context, clientId } ) {
|
|
|
70
75
|
clientId={ clientId }
|
|
71
76
|
/>
|
|
72
77
|
) }
|
|
73
|
-
{
|
|
78
|
+
{ ! hasResolvedPages && (
|
|
74
79
|
<div { ...blockProps }>
|
|
75
80
|
<Placeholder>
|
|
76
81
|
<Spinner />
|
|
77
82
|
</Placeholder>
|
|
78
83
|
</div>
|
|
79
84
|
) }
|
|
85
|
+
|
|
86
|
+
{ hasResolvedPages && totalPages === null && (
|
|
87
|
+
<div { ...blockProps }>
|
|
88
|
+
<div { ...blockProps }>
|
|
89
|
+
<Notice status={ 'warning' } isDismissible={ false }>
|
|
90
|
+
{ __( 'Page List: Cannot retrieve Pages.' ) }
|
|
91
|
+
</Notice>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
) }
|
|
95
|
+
|
|
80
96
|
{ totalPages === 0 && (
|
|
81
97
|
<div { ...blockProps }>
|
|
82
|
-
<
|
|
98
|
+
<Notice status={ 'info' } isDismissible={ false }>
|
|
99
|
+
{ __( 'Page List: Cannot retrieve Pages.' ) }
|
|
100
|
+
</Notice>
|
|
83
101
|
</div>
|
|
84
102
|
) }
|
|
85
103
|
{ totalPages > 0 && (
|
|
@@ -94,9 +112,16 @@ export default function PageListEdit( { context, clientId } ) {
|
|
|
94
112
|
);
|
|
95
113
|
}
|
|
96
114
|
|
|
97
|
-
function
|
|
98
|
-
|
|
99
|
-
const
|
|
115
|
+
function useFrontPageId() {
|
|
116
|
+
return useSelect( ( select ) => {
|
|
117
|
+
const site = select( coreStore ).getEntityRecord( 'root', 'site' );
|
|
118
|
+
return site?.show_on_front === 'page' && site?.page_on_front;
|
|
119
|
+
}, [] );
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function usePageData() {
|
|
123
|
+
const { pages, hasResolvedPages } = useSelect( ( select ) => {
|
|
124
|
+
const { getEntityRecords, hasFinishedResolution } = select( coreStore );
|
|
100
125
|
|
|
101
126
|
return {
|
|
102
127
|
pages: getEntityRecords( 'postType', 'page', {
|
|
@@ -105,6 +130,16 @@ function usePagesByParentId() {
|
|
|
105
130
|
_fields: [ 'id', 'link', 'parent', 'title', 'menu_order' ],
|
|
106
131
|
per_page: -1,
|
|
107
132
|
} ),
|
|
133
|
+
hasResolvedPages: hasFinishedResolution( 'getEntityRecords', [
|
|
134
|
+
'postType',
|
|
135
|
+
'page',
|
|
136
|
+
{
|
|
137
|
+
orderby: 'menu_order',
|
|
138
|
+
order: 'asc',
|
|
139
|
+
_fields: [ 'id', 'link', 'parent', 'title', 'menu_order' ],
|
|
140
|
+
per_page: -1,
|
|
141
|
+
},
|
|
142
|
+
] ),
|
|
108
143
|
};
|
|
109
144
|
}, [] );
|
|
110
145
|
|
|
@@ -125,9 +160,10 @@ function usePagesByParentId() {
|
|
|
125
160
|
|
|
126
161
|
return {
|
|
127
162
|
pagesByParentId,
|
|
128
|
-
|
|
163
|
+
hasResolvedPages,
|
|
164
|
+
totalPages: pages?.length ?? null,
|
|
129
165
|
};
|
|
130
|
-
}, [ pages ] );
|
|
166
|
+
}, [ pages, hasResolvedPages ] );
|
|
131
167
|
}
|
|
132
168
|
|
|
133
169
|
const PageItems = memo( function PageItems( {
|
|
@@ -137,6 +173,7 @@ const PageItems = memo( function PageItems( {
|
|
|
137
173
|
depth = 0,
|
|
138
174
|
} ) {
|
|
139
175
|
const pages = pagesByParentId.get( parentId );
|
|
176
|
+
const frontPageId = useFrontPageId();
|
|
140
177
|
|
|
141
178
|
if ( ! pages?.length ) {
|
|
142
179
|
return [];
|
|
@@ -155,6 +192,7 @@ const PageItems = memo( function PageItems( {
|
|
|
155
192
|
'open-on-hover-click':
|
|
156
193
|
! context.openSubmenusOnClick &&
|
|
157
194
|
context.showSubmenuIcon,
|
|
195
|
+
'menu-item-home': page.id === frontPageId,
|
|
158
196
|
} ) }
|
|
159
197
|
>
|
|
160
198
|
{ hasChildren && context.openSubmenusOnClick ? (
|
|
@@ -39,16 +39,15 @@
|
|
|
39
39
|
|
|
40
40
|
// Modal that shows conversion option.
|
|
41
41
|
.wp-block-page-list-modal {
|
|
42
|
-
|
|
42
|
+
@include break-small() {
|
|
43
|
+
max-width: $break-mobile;
|
|
44
|
+
}
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
.wp-block-page-list-modal-buttons {
|
|
46
48
|
display: flex;
|
|
47
49
|
justify-content: flex-end;
|
|
48
|
-
|
|
49
|
-
.components-button {
|
|
50
|
-
margin-left: $grid-unit-15;
|
|
51
|
-
}
|
|
50
|
+
gap: $grid-unit-15;
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
// Simulate open on click behaviour in the editor by opening on focus instead.
|
|
@@ -64,3 +63,7 @@
|
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
65
|
}
|
|
66
|
+
|
|
67
|
+
.wp-block-page-list .components-notice {
|
|
68
|
+
margin-left: 0;
|
|
69
|
+
}
|
package/src/page-list/index.php
CHANGED
|
@@ -173,6 +173,11 @@ function block_core_page_list_render_nested_page_list( $open_submenus_on_click,
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
+
$front_page_id = (int) get_option( 'page_on_front' );
|
|
177
|
+
if ( (int) $page['page_id'] === $front_page_id ) {
|
|
178
|
+
$css_class .= ' menu-item-home';
|
|
179
|
+
}
|
|
180
|
+
|
|
176
181
|
$title = wp_kses( $page['title'], wp_kses_allowed_html( 'post' ) );
|
|
177
182
|
$aria_label = sprintf(
|
|
178
183
|
/* translators: Accessibility text. %s: Parent page title. */
|
|
@@ -180,18 +185,18 @@ function block_core_page_list_render_nested_page_list( $open_submenus_on_click,
|
|
|
180
185
|
wp_strip_all_tags( $title )
|
|
181
186
|
);
|
|
182
187
|
|
|
183
|
-
$markup .= '<li class="wp-block-pages-list__item' . $css_class . '"' . $style_attribute . '>';
|
|
188
|
+
$markup .= '<li class="wp-block-pages-list__item' . esc_attr( $css_class ) . '"' . $style_attribute . '>';
|
|
184
189
|
|
|
185
190
|
if ( isset( $page['children'] ) && $is_navigation_child && $open_submenus_on_click ) {
|
|
186
|
-
$markup .= '<button aria-label="' . $aria_label . '" class="' . $navigation_child_content_class . ' wp-block-navigation-submenu__toggle" aria-expanded="false">' . $title . '<span class="wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" role="img" aria-hidden="true" focusable="false"><path d="M1.50002 4L6.00002 8L10.5 4" stroke-width="1.5"></path></svg></span>' .
|
|
191
|
+
$markup .= '<button aria-label="' . esc_attr( $aria_label ) . '" class="' . esc_attr( $navigation_child_content_class ) . ' wp-block-navigation-submenu__toggle" aria-expanded="false">' . esc_html( $title ) . '<span class="wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" role="img" aria-hidden="true" focusable="false"><path d="M1.50002 4L6.00002 8L10.5 4" stroke-width="1.5"></path></svg></span>' .
|
|
187
192
|
'</button>';
|
|
188
193
|
} else {
|
|
189
|
-
$markup .= '<a class="wp-block-pages-list__item__link' . $navigation_child_content_class . '" href="' . esc_url( $page['link'] ) . '"' . $aria_current . '>' . $title . '</a>';
|
|
194
|
+
$markup .= '<a class="wp-block-pages-list__item__link' . esc_attr( $navigation_child_content_class ) . '" href="' . esc_url( $page['link'] ) . '"' . $aria_current . '>' . esc_html( $title ) . '</a>';
|
|
190
195
|
}
|
|
191
196
|
|
|
192
197
|
if ( isset( $page['children'] ) ) {
|
|
193
198
|
if ( $is_navigation_child && $show_submenu_icons && ! $open_submenus_on_click ) {
|
|
194
|
-
$markup .= '<button aria-label="' . $aria_label . '" class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false">';
|
|
199
|
+
$markup .= '<button aria-label="' . esc_attr( $aria_label ) . '" class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false">';
|
|
195
200
|
$markup .= '<span class="wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" role="img" aria-hidden="true" focusable="false"><path d="M1.50002 4L6.00002 8L10.5 4" stroke-width="1.5"></path></svg></span>';
|
|
196
201
|
$markup .= '</button>';
|
|
197
202
|
}
|
|
@@ -230,9 +235,9 @@ function block_core_page_list_nest_pages( $current_level, $children ) {
|
|
|
230
235
|
/**
|
|
231
236
|
* Renders the `core/page-list` block on server.
|
|
232
237
|
*
|
|
233
|
-
* @param array
|
|
234
|
-
* @param
|
|
235
|
-
* @param
|
|
238
|
+
* @param array $attributes The block attributes.
|
|
239
|
+
* @param string $content The saved content.
|
|
240
|
+
* @param WP_Block $block The parsed block.
|
|
236
241
|
*
|
|
237
242
|
* @return string Returns the page list markup.
|
|
238
243
|
*/
|
|
@@ -247,7 +252,7 @@ function render_block_core_page_list( $attributes, $content, $block ) {
|
|
|
247
252
|
)
|
|
248
253
|
);
|
|
249
254
|
|
|
250
|
-
// If
|
|
255
|
+
// If there are no pages, there is nothing to show.
|
|
251
256
|
if ( empty( $all_pages ) ) {
|
|
252
257
|
return;
|
|
253
258
|
}
|
|
@@ -311,8 +316,8 @@ function render_block_core_page_list( $attributes, $content, $block ) {
|
|
|
311
316
|
|
|
312
317
|
$wrapper_attributes = get_block_wrapper_attributes(
|
|
313
318
|
array(
|
|
314
|
-
'class' => $css_classes,
|
|
315
|
-
'style' => $style_attribute,
|
|
319
|
+
'class' => esc_attr( $css_classes ),
|
|
320
|
+
'style' => esc_attr( $style_attribute ),
|
|
316
321
|
)
|
|
317
322
|
);
|
|
318
323
|
|
package/src/paragraph/block.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
2
3
|
"apiVersion": 2,
|
|
3
4
|
"name": "core/paragraph",
|
|
4
5
|
"title": "Paragraph",
|
|
5
6
|
"category": "text",
|
|
6
|
-
"description": "Start with the building block of all narrative.",
|
|
7
|
+
"description": "Start with the basic building block of all narrative.",
|
|
7
8
|
"keywords": [ "text" ],
|
|
8
9
|
"textdomain": "default",
|
|
9
10
|
"attributes": {
|
package/src/paragraph/edit.js
CHANGED
|
@@ -9,8 +9,8 @@ import classnames from 'classnames';
|
|
|
9
9
|
import { __, _x, isRTL } from '@wordpress/i18n';
|
|
10
10
|
import {
|
|
11
11
|
ToolbarDropdownMenu,
|
|
12
|
-
PanelBody,
|
|
13
12
|
ToggleControl,
|
|
13
|
+
__experimentalToolsPanelItem as ToolsPanelItem,
|
|
14
14
|
} from '@wordpress/components';
|
|
15
15
|
import {
|
|
16
16
|
AlignmentControl,
|
|
@@ -81,8 +81,16 @@ function ParagraphBlock( {
|
|
|
81
81
|
/>
|
|
82
82
|
</BlockControls>
|
|
83
83
|
{ isDropCapFeatureEnabled && (
|
|
84
|
-
<InspectorControls>
|
|
85
|
-
<
|
|
84
|
+
<InspectorControls __experimentalGroup="typography">
|
|
85
|
+
<ToolsPanelItem
|
|
86
|
+
hasValue={ () => !! dropCap }
|
|
87
|
+
label={ __( 'Drop cap' ) }
|
|
88
|
+
onDeselect={ () =>
|
|
89
|
+
setAttributes( { dropCap: undefined } )
|
|
90
|
+
}
|
|
91
|
+
resetAllFilter={ () => ( { dropCap: undefined } ) }
|
|
92
|
+
panelId={ clientId }
|
|
93
|
+
>
|
|
86
94
|
<ToggleControl
|
|
87
95
|
label={ __( 'Drop cap' ) }
|
|
88
96
|
checked={ !! dropCap }
|
|
@@ -97,7 +105,7 @@ function ParagraphBlock( {
|
|
|
97
105
|
)
|
|
98
106
|
}
|
|
99
107
|
/>
|
|
100
|
-
</
|
|
108
|
+
</ToolsPanelItem>
|
|
101
109
|
</InspectorControls>
|
|
102
110
|
) }
|
|
103
111
|
<RichText
|
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { render } from 'test/helpers';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
8
8
|
*/
|
|
9
9
|
import Paragraph from '../edit';
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* WordPress dependencies
|
|
13
|
-
*/
|
|
14
|
-
jest.mock( '@wordpress/blocks' );
|
|
15
|
-
jest.mock( '../../../../data/src/components/use-select', () => () => ( {
|
|
16
|
-
attributes: () => {},
|
|
17
|
-
settingsColors: [],
|
|
18
|
-
} ) );
|
|
19
|
-
|
|
20
11
|
const getTestComponentWithContent = ( content ) => {
|
|
21
|
-
return
|
|
12
|
+
return render(
|
|
22
13
|
<Paragraph
|
|
23
14
|
attributes={ { content } }
|
|
24
15
|
setAttributes={ jest.fn() }
|
|
@@ -30,7 +21,7 @@ const getTestComponentWithContent = ( content ) => {
|
|
|
30
21
|
|
|
31
22
|
describe( 'Paragraph block', () => {
|
|
32
23
|
it( 'renders without crashing', () => {
|
|
33
|
-
const
|
|
34
|
-
expect(
|
|
24
|
+
const screen = getTestComponentWithContent( '' );
|
|
25
|
+
expect( screen.container ).toBeTruthy();
|
|
35
26
|
} );
|
|
36
27
|
} );
|