@wordpress/block-library 6.0.12 → 6.0.17-next.33ec3857e2.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/build/archives/index.js +1 -0
- package/build/archives/index.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/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 +1 -0
- package/build/columns/index.js.map +1 -1
- package/build/comment-author-avatar/edit.js +2 -1
- 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 +98 -23
- 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 +66 -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 +80 -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-numbers/edit.js +47 -0
- package/build/comments-pagination-numbers/edit.js.map +1 -0
- package/build/comments-pagination-numbers/index.js +47 -0
- package/build/comments-pagination-numbers/index.js.map +1 -0
- package/build/comments-query-loop/edit.js +2 -2
- package/build/comments-query-loop/edit.js.map +1 -1
- package/build/comments-query-loop/index.js +4 -7
- package/build/comments-query-loop/index.js.map +1 -1
- package/build/comments-query-loop/toolbar.js +3 -3
- package/build/comments-query-loop/toolbar.js.map +1 -1
- package/build/cover/edit.js +2 -1
- package/build/cover/edit.js.map +1 -1
- package/build/cover/index.js +1 -0
- package/build/cover/index.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-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/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/edit.js +5 -1
- package/build/gallery/edit.js.map +1 -1
- package/build/gallery/index.js +1 -0
- package/build/gallery/index.js.map +1 -1
- package/build/group/index.js +8 -1
- package/build/group/index.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 +1 -1
- package/build/image/edit.native.js.map +1 -1
- package/build/image/image.js +45 -10
- 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 +5 -1
- 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/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 +27 -8
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/navigation-menu-selector.js +7 -1
- package/build/navigation/edit/navigation-menu-selector.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 +8 -2
- package/build/navigation/menu-items-to-blocks.js.map +1 -1
- package/build/navigation/view.js +2 -2
- package/build/navigation/view.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 +2 -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/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 +1 -0
- package/build/paragraph/index.js.map +1 -1
- package/build/paragraph/transforms.js +1 -0
- 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 +1 -0
- package/build/post-author/index.js.map +1 -1
- package/build/post-comment/index.js +1 -0
- package/build/post-comment/index.js.map +1 -1
- package/build/post-comments/index.js +2 -1
- 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/index.js +1 -0
- package/build/post-excerpt/index.js.map +1 -1
- package/build/post-featured-image/dimension-controls.js +50 -30
- package/build/post-featured-image/dimension-controls.js.map +1 -1
- package/build/post-featured-image/edit.js +7 -3
- package/build/post-featured-image/edit.js.map +1 -1
- package/build/post-featured-image/index.js +1 -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 +54 -13
- package/build/post-template/edit.js.map +1 -1
- package/build/post-template/index.js +1 -0
- 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 +2 -1
- 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/index.js +1 -0
- package/build/query/index.js.map +1 -1
- package/build/query-pagination/index.js +1 -0
- package/build/query-pagination/index.js.map +1 -1
- package/build/query-pagination-next/index.js +1 -0
- package/build/query-pagination-next/index.js.map +1 -1
- package/build/query-pagination-numbers/index.js +1 -0
- package/build/query-pagination-numbers/index.js.map +1 -1
- package/build/query-pagination-previous/index.js +1 -0
- 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/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/index.js +1 -0
- package/build/site-logo/index.js.map +1 -1
- package/build/site-tagline/index.js +2 -1
- package/build/site-tagline/index.js.map +1 -1
- package/build/site-title/index.js +1 -0
- package/build/site-title/index.js.map +1 -1
- package/build/social-link/index.js +2 -1
- package/build/social-link/index.js.map +1 -1
- package/build/social-links/index.js +2 -1
- package/build/social-links/index.js.map +1 -1
- package/build/spacer/index.js +1 -0
- package/build/spacer/index.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/edit/index.js +7 -1
- package/build/template-part/edit/index.js.map +1 -1
- package/build/template-part/index.js +26 -9
- 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/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/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 +1 -0
- package/build-module/columns/index.js.map +1 -1
- package/build-module/comment-author-avatar/edit.js +3 -2
- 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 +97 -23
- 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 +57 -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 +67 -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-numbers/edit.js +40 -0
- package/build-module/comments-pagination-numbers/edit.js.map +1 -0
- package/build-module/comments-pagination-numbers/index.js +34 -0
- package/build-module/comments-pagination-numbers/index.js.map +1 -0
- package/build-module/comments-query-loop/edit.js +2 -2
- package/build-module/comments-query-loop/edit.js.map +1 -1
- package/build-module/comments-query-loop/index.js +4 -7
- package/build-module/comments-query-loop/index.js.map +1 -1
- package/build-module/comments-query-loop/toolbar.js +3 -3
- package/build-module/comments-query-loop/toolbar.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/index.js +1 -0
- package/build-module/cover/index.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-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/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/edit.js +5 -1
- package/build-module/gallery/edit.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 +8 -1
- package/build-module/group/index.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 +1 -1
- package/build-module/image/edit.native.js.map +1 -1
- package/build-module/image/image.js +47 -12
- 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 +3 -1
- 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/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 +26 -8
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-selector.js +6 -1
- package/build-module/navigation/edit/navigation-menu-selector.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 +7 -2
- package/build-module/navigation/menu-items-to-blocks.js.map +1 -1
- package/build-module/navigation/view.js +2 -2
- package/build-module/navigation/view.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 +2 -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/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 +1 -0
- package/build-module/paragraph/index.js.map +1 -1
- package/build-module/paragraph/transforms.js +1 -0
- 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 +1 -0
- package/build-module/post-author/index.js.map +1 -1
- 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 +2 -1
- 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/index.js +1 -0
- package/build-module/post-excerpt/index.js.map +1 -1
- package/build-module/post-featured-image/dimension-controls.js +52 -29
- package/build-module/post-featured-image/dimension-controls.js.map +1 -1
- package/build-module/post-featured-image/edit.js +8 -4
- package/build-module/post-featured-image/edit.js.map +1 -1
- package/build-module/post-featured-image/index.js +1 -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 +54 -15
- package/build-module/post-template/edit.js.map +1 -1
- package/build-module/post-template/index.js +1 -0
- 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 +2 -1
- 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/index.js +1 -0
- package/build-module/query/index.js.map +1 -1
- package/build-module/query-pagination/index.js +1 -0
- package/build-module/query-pagination/index.js.map +1 -1
- package/build-module/query-pagination-next/index.js +1 -0
- package/build-module/query-pagination-next/index.js.map +1 -1
- package/build-module/query-pagination-numbers/index.js +1 -0
- package/build-module/query-pagination-numbers/index.js.map +1 -1
- package/build-module/query-pagination-previous/index.js +1 -0
- 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/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/index.js +1 -0
- package/build-module/site-logo/index.js.map +1 -1
- 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 +1 -0
- package/build-module/site-title/index.js.map +1 -1
- package/build-module/social-link/index.js +2 -1
- package/build-module/social-link/index.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/index.js +1 -0
- package/build-module/spacer/index.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/edit/index.js +6 -1
- package/build-module/template-part/edit/index.js.map +1 -1
- package/build-module/template-part/index.js +26 -9
- 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/columns/style-rtl.css +4 -3
- package/build-style/columns/style.css +4 -3
- 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/common-rtl.css +29 -0
- package/build-style/common.css +29 -0
- package/build-style/cover/style-rtl.css +4 -0
- package/build-style/cover/style.css +4 -0
- package/build-style/editor-rtl.css +70 -23
- package/build-style/editor.css +73 -23
- package/build-style/gallery/editor-rtl.css +0 -12
- package/build-style/gallery/editor.css +0 -12
- 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/image/editor-rtl.css +16 -0
- package/build-style/image/editor.css +16 -0
- package/build-style/navigation/editor-rtl.css +9 -0
- package/build-style/navigation/editor.css +9 -0
- package/build-style/navigation/style-rtl.css +13 -7
- package/build-style/navigation/style.css +13 -7
- package/build-style/post-comments/style-rtl.css +3 -1
- package/build-style/post-comments/style.css +3 -1
- package/build-style/post-comments-form/style-rtl.css +2 -2
- package/build-style/post-comments-form/style.css +2 -2
- 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-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/query-pagination/style-rtl.css +6 -2
- package/build-style/query-pagination/style.css +6 -2
- package/build-style/style-rtl.css +131 -61
- package/build-style/style.css +133 -61
- package/build-style/table/style-rtl.css +1 -0
- package/build-style/table/style.css +1 -0
- package/build-style/theme-rtl.css +1 -1
- package/build-style/theme.css +1 -1
- package/package.json +31 -31
- package/src/archives/block.json +1 -0
- package/src/audio/block.json +1 -0
- package/src/block/block.json +1 -0
- package/src/button/block.json +5 -1
- package/src/button/edit.native.js +1 -1
- package/src/buttons/block.json +2 -1
- package/src/calendar/block.json +1 -0
- package/src/calendar/index.php +35 -39
- package/src/categories/block.json +1 -0
- package/src/code/block.json +6 -1
- package/src/column/block.json +1 -0
- package/src/columns/block.json +1 -0
- package/src/columns/style.scss +8 -5
- package/src/comment-author-avatar/block.json +7 -2
- package/src/comment-author-avatar/edit.js +7 -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-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 +111 -37
- 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 +78 -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-numbers/block.json +16 -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-query-loop/block.json +4 -7
- package/src/comments-query-loop/edit.js +2 -5
- package/src/comments-query-loop/toolbar.js +3 -3
- package/src/common.scss +31 -0
- package/src/cover/block.json +1 -0
- package/src/cover/edit.js +1 -0
- package/src/cover/style.scss +4 -0
- package/src/editor.scss +14 -0
- package/src/embed/block.json +1 -0
- package/src/embed/edit.native.js +23 -18
- package/src/embed/embed-controls.native.js +65 -0
- package/src/embed/embed-link-settings.native.js +100 -0
- 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 +228 -88
- package/src/file/block.json +1 -0
- package/src/freeform/block.json +1 -0
- package/src/gallery/block.json +1 -0
- package/src/gallery/edit.js +13 -0
- package/src/gallery/editor.scss +0 -14
- package/src/gallery/index.php +7 -8
- package/src/gallery/style.scss +4 -0
- package/src/gallery/test/use-get-new-images.js +93 -0
- package/src/group/block.json +8 -1
- package/src/group/theme.scss +4 -5
- package/src/heading/block.json +1 -0
- package/src/home-link/block.json +1 -0
- package/src/home-link/index.php +4 -4
- 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 +1 -1
- package/src/image/editor.scss +18 -0
- package/src/image/image.js +46 -11
- package/src/image/index.php +1 -1
- package/src/index.js +4 -0
- package/src/latest-comments/block.json +1 -0
- package/src/latest-posts/block.json +1 -0
- package/src/list/block.json +1 -0
- package/src/loginout/block.json +1 -0
- package/src/media-text/block.json +1 -0
- package/src/missing/block.json +1 -0
- package/src/more/block.json +1 -0
- package/src/navigation/README.md +13 -0
- package/src/navigation/block.json +4 -16
- package/src/navigation/edit/index.js +51 -28
- package/src/navigation/edit/navigation-menu-selector.js +8 -0
- package/src/navigation/editor.scss +12 -0
- package/src/navigation/index.php +4 -4
- package/src/navigation/menu-items-to-blocks.js +9 -2
- package/src/navigation/style.scss +26 -14
- package/src/navigation/view.js +2 -2
- 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 +4 -4
- package/src/navigation-submenu/block.json +2 -3
- package/src/navigation-submenu/edit.js +1 -1
- package/src/navigation-submenu/index.php +12 -6
- package/src/nextpage/block.json +1 -0
- package/src/page-list/block.json +4 -0
- package/src/page-list/index.php +12 -7
- package/src/paragraph/block.json +1 -0
- package/src/paragraph/edit.js +12 -4
- package/src/pattern/block.json +1 -0
- package/src/post-author/block.json +1 -0
- package/src/post-comment/block.json +1 -0
- package/src/post-comments/block.json +6 -1
- package/src/post-comments/index.php +17 -0
- package/src/post-comments/style.scss +7 -3
- package/src/post-comments-count/block.json +1 -0
- package/src/post-comments-form/block.json +6 -1
- package/src/post-comments-form/index.php +6 -4
- package/src/post-comments-form/style.scss +7 -5
- package/src/post-comments-link/block.json +1 -0
- package/src/post-content/block.json +1 -0
- package/src/post-date/block.json +1 -0
- package/src/post-excerpt/block.json +1 -0
- package/src/post-featured-image/block.json +1 -0
- package/src/post-featured-image/dimension-controls.js +75 -50
- package/src/post-featured-image/edit.js +12 -5
- package/src/post-featured-image/editor.scss +0 -8
- package/src/post-featured-image/style.scss +1 -1
- package/src/post-navigation-link/block.json +1 -0
- package/src/post-template/block.json +1 -0
- package/src/post-template/edit.js +54 -17
- package/src/post-terms/block.json +1 -0
- package/src/post-title/block.json +1 -0
- package/src/post-title/style.scss +6 -2
- package/src/preformatted/block.json +1 -0
- package/src/preformatted/edit.native.js +3 -1
- package/src/pullquote/block.json +8 -1
- package/src/pullquote/style.scss +1 -0
- package/src/query/block.json +1 -0
- package/src/query-pagination/block.json +1 -0
- package/src/query-pagination/editor.scss +0 -4
- package/src/query-pagination/style.scss +12 -2
- package/src/query-pagination-next/block.json +1 -0
- package/src/query-pagination-next/index.php +42 -19
- package/src/query-pagination-numbers/block.json +1 -0
- package/src/query-pagination-previous/block.json +1 -0
- package/src/query-pagination-previous/index.php +45 -13
- 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/index.php +20 -10
- 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-tagline/block.json +2 -1
- package/src/site-title/block.json +1 -0
- package/src/social-link/block.json +2 -1
- package/src/social-links/block.json +3 -8
- package/src/spacer/block.json +1 -0
- 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/tag-cloud/block.json +1 -0
- package/src/template-part/block.json +1 -8
- package/src/template-part/edit/index.js +6 -1
- package/src/template-part/index.js +28 -0
- package/src/template-part/index.php +5 -2
- 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/video/block.json +1 -0
- package/build/embed/embed-bottom-sheet.native.js +0 -85
- package/build/embed/embed-bottom-sheet.native.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/src/embed/embed-bottom-sheet.native.js +0 -78
- package/src/home-link/style.scss +0 -51
|
@@ -5,6 +5,7 @@ import { MenuGroup, MenuItem, MenuItemsChoice } from '@wordpress/components';
|
|
|
5
5
|
import { useEntityId } from '@wordpress/core-data';
|
|
6
6
|
import { __, sprintf } from '@wordpress/i18n';
|
|
7
7
|
import { decodeEntities } from '@wordpress/html-entities';
|
|
8
|
+
import { addQueryArgs } from '@wordpress/url';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Internal dependencies
|
|
@@ -45,6 +46,13 @@ export default function NavigationMenuSelector( { onSelect, onCreateNew } ) {
|
|
|
45
46
|
<MenuItem onClick={ onCreateNew }>
|
|
46
47
|
{ __( 'Create new menu' ) }
|
|
47
48
|
</MenuItem>
|
|
49
|
+
<MenuItem
|
|
50
|
+
href={ addQueryArgs( 'edit.php', {
|
|
51
|
+
post_type: 'wp_navigation',
|
|
52
|
+
} ) }
|
|
53
|
+
>
|
|
54
|
+
{ __( 'Manage menus' ) }
|
|
55
|
+
</MenuItem>
|
|
48
56
|
</MenuGroup>
|
|
49
57
|
</>
|
|
50
58
|
);
|
|
@@ -96,6 +96,18 @@
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
// Show even when a child is selected. This is an edgecase just for navigation submenus.
|
|
100
|
+
.is-editing > .wp-block-navigation__submenu-container > .block-list-appender {
|
|
101
|
+
display: block;
|
|
102
|
+
position: static;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Hide when hovering.
|
|
106
|
+
.wp-block-navigation__submenu-container .block-list-appender {
|
|
107
|
+
display: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
99
111
|
/**
|
|
100
112
|
* Colors Selector component
|
|
101
113
|
*/
|
package/src/navigation/index.php
CHANGED
|
@@ -351,9 +351,9 @@ function block_core_navigation_get_fallback_blocks() {
|
|
|
351
351
|
/**
|
|
352
352
|
* Renders the `core/navigation` block on server.
|
|
353
353
|
*
|
|
354
|
-
* @param array
|
|
355
|
-
* @param array
|
|
356
|
-
* @param
|
|
354
|
+
* @param array $attributes The block attributes.
|
|
355
|
+
* @param array $content The saved content.
|
|
356
|
+
* @param WP_Block $block The parsed block.
|
|
357
357
|
*
|
|
358
358
|
* @return string Returns the post content with the legacy widget added.
|
|
359
359
|
*/
|
|
@@ -558,8 +558,8 @@ function render_block_core_navigation( $attributes, $content, $block ) {
|
|
|
558
558
|
/**
|
|
559
559
|
* Register the navigation block.
|
|
560
560
|
*
|
|
561
|
-
* @throws WP_Error An WP_Error exception parsing the block definition.
|
|
562
561
|
* @uses render_block_core_navigation()
|
|
562
|
+
* @throws WP_Error An WP_Error exception parsing the block definition.
|
|
563
563
|
*/
|
|
564
564
|
function register_block_core_navigation() {
|
|
565
565
|
register_block_type_from_metadata(
|
|
@@ -7,6 +7,7 @@ import { sortBy } from 'lodash';
|
|
|
7
7
|
* WordPress dependencies
|
|
8
8
|
*/
|
|
9
9
|
import { createBlock, parse } from '@wordpress/blocks';
|
|
10
|
+
import { applyFilters } from '@wordpress/hooks';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Convert a flat menu item structure to a nested blocks structure.
|
|
@@ -21,7 +22,12 @@ export default function menuItemsToBlocks( menuItems ) {
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
const menuTree = createDataTree( menuItems );
|
|
24
|
-
|
|
25
|
+
const blocks = mapMenuItemsToBlocks( menuTree );
|
|
26
|
+
return applyFilters(
|
|
27
|
+
'blocks.navigation.__unstableMenuItemsToBlocks',
|
|
28
|
+
blocks,
|
|
29
|
+
menuItems
|
|
30
|
+
);
|
|
25
31
|
}
|
|
26
32
|
|
|
27
33
|
/**
|
|
@@ -148,14 +154,15 @@ function menuItemToBlockAttributes( {
|
|
|
148
154
|
classes.join( ' ' ).trim() && {
|
|
149
155
|
className: classes.join( ' ' ).trim(),
|
|
150
156
|
} ),
|
|
157
|
+
/* eslint-disable camelcase */
|
|
151
158
|
...( attr_title?.length && {
|
|
152
159
|
title: attr_title,
|
|
153
160
|
} ),
|
|
154
|
-
// eslint-disable-next-line camelcase
|
|
155
161
|
...( object_id &&
|
|
156
162
|
'custom' !== object && {
|
|
157
163
|
id: object_id,
|
|
158
164
|
} ),
|
|
165
|
+
/* eslint-enable camelcase */
|
|
159
166
|
...( description?.length && {
|
|
160
167
|
description,
|
|
161
168
|
} ),
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
// - .wp-block-navigation-item targets the menu item itself.
|
|
7
7
|
// - .wp-block-navigation-item__content targets the link inside a menu item.
|
|
8
8
|
// - .wp-block-navigation__submenu-icon targets the chevron icon indicating submenus.
|
|
9
|
+
|
|
10
|
+
// Size of burger and close icons.
|
|
11
|
+
$navigation-icon-size: 24px;
|
|
12
|
+
|
|
9
13
|
.wp-block-navigation {
|
|
10
14
|
position: relative;
|
|
11
15
|
|
|
@@ -405,6 +409,10 @@ button.wp-block-navigation-item__content {
|
|
|
405
409
|
&.is-menu-open {
|
|
406
410
|
display: flex; // Needs to be set to override "none".
|
|
407
411
|
flex-direction: column;
|
|
412
|
+
background-color: inherit;
|
|
413
|
+
|
|
414
|
+
// Use em units to apply padding, so themes can more easily style this in various ways.
|
|
415
|
+
padding: 2em;
|
|
408
416
|
|
|
409
417
|
// Allow modal to scroll.
|
|
410
418
|
overflow: auto;
|
|
@@ -412,11 +420,13 @@ button.wp-block-navigation-item__content {
|
|
|
412
420
|
// Give it a z-index just higher than the adminbar.
|
|
413
421
|
z-index: 100000;
|
|
414
422
|
|
|
415
|
-
// Add extra top padding so items don't conflict with close button.
|
|
416
|
-
padding: 72px 24px 24px 24px;
|
|
417
|
-
background-color: inherit;
|
|
418
|
-
|
|
419
423
|
.wp-block-navigation__responsive-container-content {
|
|
424
|
+
// Add padding above to accommodate close button.
|
|
425
|
+
padding-top: calc(2em + #{ $navigation-icon-size });
|
|
426
|
+
|
|
427
|
+
// Don't crop the focus style.
|
|
428
|
+
overflow: visible;
|
|
429
|
+
|
|
420
430
|
// Override the container flex layout settings
|
|
421
431
|
// because we want overlay menu to always display
|
|
422
432
|
// as a column.
|
|
@@ -427,14 +437,11 @@ button.wp-block-navigation-item__content {
|
|
|
427
437
|
|
|
428
438
|
// Always align the contents of the menu to the top.
|
|
429
439
|
&,
|
|
440
|
+
.wp-block-page-list,
|
|
430
441
|
.wp-block-navigation__container {
|
|
431
442
|
justify-content: flex-start;
|
|
432
443
|
}
|
|
433
444
|
|
|
434
|
-
// Allow menu to scroll.
|
|
435
|
-
overflow: auto;
|
|
436
|
-
padding: 0;
|
|
437
|
-
|
|
438
445
|
.wp-block-navigation__submenu-icon {
|
|
439
446
|
display: none;
|
|
440
447
|
}
|
|
@@ -547,8 +554,8 @@ button.wp-block-navigation-item__content {
|
|
|
547
554
|
fill: currentColor;
|
|
548
555
|
pointer-events: none;
|
|
549
556
|
display: block;
|
|
550
|
-
width:
|
|
551
|
-
height:
|
|
557
|
+
width: $navigation-icon-size;
|
|
558
|
+
height: $navigation-icon-size;
|
|
552
559
|
}
|
|
553
560
|
}
|
|
554
561
|
|
|
@@ -566,24 +573,29 @@ button.wp-block-navigation-item__content {
|
|
|
566
573
|
// Button to close the menus.
|
|
567
574
|
.wp-block-navigation__responsive-container-close {
|
|
568
575
|
position: absolute;
|
|
569
|
-
top:
|
|
570
|
-
right:
|
|
576
|
+
top: 0;
|
|
577
|
+
right: 0;
|
|
571
578
|
z-index: 2; // Needs to be above the modal z index itself.
|
|
572
579
|
}
|
|
573
580
|
|
|
574
581
|
// The menu adds wrapping containers.
|
|
575
582
|
.wp-block-navigation__responsive-close {
|
|
576
583
|
width: 100%;
|
|
584
|
+
height: 100%;
|
|
577
585
|
}
|
|
578
586
|
|
|
579
587
|
.is-menu-open .wp-block-navigation__responsive-close,
|
|
580
588
|
.is-menu-open .wp-block-navigation__responsive-dialog,
|
|
581
589
|
.is-menu-open .wp-block-navigation__responsive-container-content {
|
|
582
|
-
|
|
590
|
+
box-sizing: border-box;
|
|
583
591
|
height: 100%;
|
|
584
592
|
}
|
|
585
593
|
|
|
594
|
+
.wp-block-navigation__responsive-dialog {
|
|
595
|
+
position: relative;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
// Prevent scrolling of the parent content when the modal is open.
|
|
586
599
|
html.has-modal-open {
|
|
587
600
|
overflow: hidden;
|
|
588
601
|
}
|
|
589
|
-
|
package/src/navigation/view.js
CHANGED
|
@@ -58,7 +58,7 @@ function toggleSubmenuOnClick( event ) {
|
|
|
58
58
|
|
|
59
59
|
// Necessary for some themes such as TT1 Blocks, where
|
|
60
60
|
// scripts could be loaded before the body.
|
|
61
|
-
window.
|
|
61
|
+
window.addEventListener( 'load', () => {
|
|
62
62
|
MicroModal.init( {
|
|
63
63
|
onShow: navigationToggleModal,
|
|
64
64
|
onClose: navigationToggleModal,
|
|
@@ -95,4 +95,4 @@ window.onload = () => {
|
|
|
95
95
|
}
|
|
96
96
|
} );
|
|
97
97
|
} );
|
|
98
|
-
};
|
|
98
|
+
} );
|
|
@@ -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 }
|
|
@@ -98,7 +98,7 @@ function block_core_navigation_link_build_css_font_sizes( $context ) {
|
|
|
98
98
|
$font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] );
|
|
99
99
|
} elseif ( $has_custom_font_size ) {
|
|
100
100
|
// Add the custom font size inline style.
|
|
101
|
-
$font_sizes['inline_styles'] = sprintf( 'font-size: %
|
|
101
|
+
$font_sizes['inline_styles'] = sprintf( 'font-size: %s;', $context['style']['typography']['fontSize'] );
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
return $font_sizes;
|
|
@@ -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 array
|
|
121
|
-
* @param
|
|
119
|
+
* @param array $attributes The block attributes.
|
|
120
|
+
* @param array $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": {
|
|
@@ -520,7 +520,7 @@ export default function NavigationSubmenuEdit( {
|
|
|
520
520
|
! selectedBlockHasDescendants ) ||
|
|
521
521
|
// Show the appender while dragging to allow inserting element between item and the appender.
|
|
522
522
|
hasDescendants
|
|
523
|
-
? InnerBlocks.
|
|
523
|
+
? InnerBlocks.ButtonBlockAppender
|
|
524
524
|
: false,
|
|
525
525
|
}
|
|
526
526
|
);
|
|
@@ -98,7 +98,7 @@ function block_core_navigation_submenu_build_css_font_sizes( $context ) {
|
|
|
98
98
|
$font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] );
|
|
99
99
|
} elseif ( $has_custom_font_size ) {
|
|
100
100
|
// Add the custom font size inline style.
|
|
101
|
-
$font_sizes['inline_styles'] = sprintf( 'font-size: %
|
|
101
|
+
$font_sizes['inline_styles'] = sprintf( 'font-size: %s;', $context['style']['typography']['fontSize'] );
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
return $font_sizes;
|
|
@@ -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
|
*/
|
|
@@ -188,6 +188,12 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) {
|
|
|
188
188
|
);
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
$aria_label = sprintf(
|
|
192
|
+
/* translators: Accessibility text. %s: Parent page title. */
|
|
193
|
+
__( '%s submenu' ),
|
|
194
|
+
$label
|
|
195
|
+
);
|
|
196
|
+
|
|
191
197
|
$html = '<li ' . $wrapper_attributes . '>';
|
|
192
198
|
|
|
193
199
|
// If Submenus open on hover, we render an anchor tag with attributes.
|
|
@@ -226,11 +232,11 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) {
|
|
|
226
232
|
if ( $show_submenu_indicators ) {
|
|
227
233
|
// The submenu icon is rendered in a button here
|
|
228
234
|
// so that there's a clickable elment to open the submenu.
|
|
229
|
-
$html .= '<button aria-label="' . $
|
|
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>';
|
|
230
236
|
}
|
|
231
237
|
} else {
|
|
232
238
|
// If menus open on click, we render the parent as a button.
|
|
233
|
-
$html .= '<button aria-label="' . $
|
|
239
|
+
$html .= '<button aria-label="' . $aria_label . '" class="wp-block-navigation-item__content wp-block-navigation-submenu__toggle" aria-expanded="false">';
|
|
234
240
|
|
|
235
241
|
// Wrap title with span to isolate it from submenu icon.
|
|
236
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/index.php
CHANGED
|
@@ -119,7 +119,7 @@ function block_core_page_list_build_css_font_sizes( $context ) {
|
|
|
119
119
|
$font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] );
|
|
120
120
|
} elseif ( $has_custom_font_size ) {
|
|
121
121
|
// Add the custom font size inline style.
|
|
122
|
-
$font_sizes['inline_styles'] = sprintf( 'font-size: %
|
|
122
|
+
$font_sizes['inline_styles'] = sprintf( 'font-size: %s;', $context['style']['typography']['fontSize'] );
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
return $font_sizes;
|
|
@@ -173,12 +173,17 @@ function block_core_page_list_render_nested_page_list( $open_submenus_on_click,
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
$title
|
|
176
|
+
$title = wp_kses( $page['title'], wp_kses_allowed_html( 'post' ) );
|
|
177
|
+
$aria_label = sprintf(
|
|
178
|
+
/* translators: Accessibility text. %s: Parent page title. */
|
|
179
|
+
__( '%s submenu' ),
|
|
180
|
+
$title
|
|
181
|
+
);
|
|
177
182
|
|
|
178
183
|
$markup .= '<li class="wp-block-pages-list__item' . $css_class . '"' . $style_attribute . '>';
|
|
179
184
|
|
|
180
185
|
if ( isset( $page['children'] ) && $is_navigation_child && $open_submenus_on_click ) {
|
|
181
|
-
$markup .= '<button aria-label="' . $
|
|
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>' .
|
|
182
187
|
'</button>';
|
|
183
188
|
} else {
|
|
184
189
|
$markup .= '<a class="wp-block-pages-list__item__link' . $navigation_child_content_class . '" href="' . esc_url( $page['link'] ) . '"' . $aria_current . '>' . $title . '</a>';
|
|
@@ -186,7 +191,7 @@ function block_core_page_list_render_nested_page_list( $open_submenus_on_click,
|
|
|
186
191
|
|
|
187
192
|
if ( isset( $page['children'] ) ) {
|
|
188
193
|
if ( $is_navigation_child && $show_submenu_icons && ! $open_submenus_on_click ) {
|
|
189
|
-
$markup .= '<button aria-label="' . $
|
|
194
|
+
$markup .= '<button aria-label="' . $aria_label . '" class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false">';
|
|
190
195
|
$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>';
|
|
191
196
|
$markup .= '</button>';
|
|
192
197
|
}
|
|
@@ -225,9 +230,9 @@ function block_core_page_list_nest_pages( $current_level, $children ) {
|
|
|
225
230
|
/**
|
|
226
231
|
* Renders the `core/page-list` block on server.
|
|
227
232
|
*
|
|
228
|
-
* @param array
|
|
229
|
-
* @param array
|
|
230
|
-
* @param
|
|
233
|
+
* @param array $attributes The block attributes.
|
|
234
|
+
* @param array $content The saved content.
|
|
235
|
+
* @param WP_Block $block The parsed block.
|
|
231
236
|
*
|
|
232
237
|
* @return string Returns the page list markup.
|
|
233
238
|
*/
|
package/src/paragraph/block.json
CHANGED
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
|
package/src/pattern/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/post-comments",
|
|
4
5
|
"title": "Post Comments",
|
|
@@ -30,5 +31,9 @@
|
|
|
30
31
|
"link": true
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
|
-
"style":
|
|
34
|
+
"style": [
|
|
35
|
+
"wp-block-post-comments",
|
|
36
|
+
"wp-block-buttons",
|
|
37
|
+
"wp-block-button"
|
|
38
|
+
]
|
|
34
39
|
}
|
|
@@ -66,3 +66,20 @@ function register_block_core_post_comments() {
|
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
68
|
add_action( 'init', 'register_block_core_post_comments' );
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Use the button block classes for the form-submit button.
|
|
72
|
+
*
|
|
73
|
+
* @param array $fields The default comment form arguments.
|
|
74
|
+
*
|
|
75
|
+
* @return array Returns the modified fields.
|
|
76
|
+
*/
|
|
77
|
+
function post_comments_block_form_defaults( $fields ) {
|
|
78
|
+
if ( wp_is_block_theme() ) {
|
|
79
|
+
$fields['submit_button'] = '<input name="%1$s" type="submit" id="%2$s" class="%3$s wp-block-button__link" value="%4$s" />';
|
|
80
|
+
$fields['submit_field'] = '<p class="form-submit wp-block-button">%1$s %2$s</p>';
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return $fields;
|
|
84
|
+
}
|
|
85
|
+
add_filter( 'comment_form_defaults', 'post_comments_block_form_defaults' );
|
|
@@ -64,9 +64,13 @@
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
.comment-form
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
.comment-form {
|
|
68
|
+
textarea,
|
|
69
|
+
input:not([type="submit"]):not([type="checkbox"]) {
|
|
70
|
+
display: block;
|
|
71
|
+
box-sizing: border-box;
|
|
72
|
+
width: 100%;
|
|
73
|
+
}
|
|
70
74
|
}
|
|
71
75
|
|
|
72
76
|
.comment-form-cookies-consent {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
2
3
|
"apiVersion": 2,
|
|
3
4
|
"name": "core/post-comments-form",
|
|
4
5
|
"title": "Post Comments Form",
|
|
@@ -29,5 +30,9 @@
|
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
|
-
"style": [
|
|
33
|
+
"style": [
|
|
34
|
+
"wp-block-post-comments-form",
|
|
35
|
+
"wp-block-buttons",
|
|
36
|
+
"wp-block-button"
|
|
37
|
+
]
|
|
33
38
|
}
|
|
@@ -54,10 +54,12 @@ add_action( 'init', 'register_block_core_post_comments_form' );
|
|
|
54
54
|
*
|
|
55
55
|
* @return array Returns the modified fields.
|
|
56
56
|
*/
|
|
57
|
-
function
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
function post_comments_form_block_form_defaults( $fields ) {
|
|
58
|
+
if ( wp_is_block_theme() ) {
|
|
59
|
+
$fields['submit_button'] = '<input name="%1$s" type="submit" id="%2$s" class="%3$s wp-block-button__link" value="%4$s" />';
|
|
60
|
+
$fields['submit_field'] = '<p class="form-submit wp-block-button">%1$s %2$s</p>';
|
|
61
|
+
}
|
|
60
62
|
|
|
61
63
|
return $fields;
|
|
62
64
|
}
|
|
63
|
-
add_filter( 'comment_form_defaults', '
|
|
65
|
+
add_filter( 'comment_form_defaults', 'post_comments_form_block_form_defaults' );
|
|
@@ -41,13 +41,15 @@
|
|
|
41
41
|
padding: calc(0.667em + 2px); // The extra 2px is added to match outline buttons.
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.comment-form
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
.comment-form {
|
|
45
|
+
textarea,
|
|
46
|
+
input:not([type="submit"]):not([type="checkbox"]) {
|
|
47
|
+
display: block;
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
width: 100%;
|
|
50
|
+
}
|
|
48
51
|
}
|
|
49
52
|
|
|
50
|
-
.comment-form-comment,
|
|
51
53
|
.comment-form-author,
|
|
52
54
|
.comment-form-email,
|
|
53
55
|
.comment-form-url {
|