@wordpress/block-library 9.4.0 → 9.6.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 +8 -0
- package/build/archives/edit.js +1 -0
- package/build/archives/edit.js.map +1 -1
- package/build/audio/edit.js +1 -0
- package/build/audio/edit.js.map +1 -1
- package/build/avatar/edit.js +1 -0
- package/build/avatar/edit.js.map +1 -1
- package/build/avatar/user-control.js +1 -0
- package/build/avatar/user-control.js.map +1 -1
- package/build/button/edit.js +1 -0
- package/build/button/edit.js.map +1 -1
- package/build/categories/index.js +12 -0
- package/build/categories/index.js.map +1 -1
- package/build/column/edit.js +2 -2
- package/build/column/edit.js.map +1 -1
- package/build/column/index.js +2 -0
- package/build/column/index.js.map +1 -1
- package/build/comment-author-name/index.js +14 -1
- package/build/comment-author-name/index.js.map +1 -1
- package/build/comment-content/index.js +14 -1
- package/build/comment-content/index.js.map +1 -1
- package/build/comment-date/index.js +14 -1
- package/build/comment-date/index.js.map +1 -1
- package/build/comment-template/index.js +12 -0
- package/build/comment-template/index.js.map +1 -1
- package/build/comments-pagination/comments-pagination-arrow-controls.js +1 -0
- package/build/comments-pagination/comments-pagination-arrow-controls.js.map +1 -1
- package/build/comments-title/deprecated.js +3 -0
- package/build/comments-title/deprecated.js.map +1 -1
- package/build/comments-title/edit.js +3 -1
- package/build/comments-title/edit.js.map +1 -1
- package/build/comments-title/index.js +3 -0
- package/build/comments-title/index.js.map +1 -1
- package/build/cover/edit/inspector-controls.js +0 -1
- package/build/cover/edit/inspector-controls.js.map +1 -1
- package/build/details/edit.js +1 -0
- package/build/details/edit.js.map +1 -1
- package/build/embed/edit.js +12 -4
- package/build/embed/edit.js.map +1 -1
- package/build/embed/embed-placeholder.js +6 -3
- package/build/embed/embed-placeholder.js.map +1 -1
- package/build/embed/embed-preview.js +4 -18
- package/build/embed/embed-preview.js.map +1 -1
- package/build/file/index.js +12 -0
- package/build/file/index.js.map +1 -1
- package/build/file/inspector.js +1 -0
- package/build/file/inspector.js.map +1 -1
- package/build/form/edit.js +6 -4
- package/build/form/edit.js.map +1 -1
- package/build/form-input/edit.js +2 -0
- package/build/form-input/edit.js.map +1 -1
- package/build/gallery/edit.js +44 -14
- package/build/gallery/edit.js.map +1 -1
- package/build/gallery/gallery.native.js +4 -1
- package/build/gallery/gallery.native.js.map +1 -1
- package/build/gallery/gap-styles.js +1 -9
- package/build/gallery/gap-styles.js.map +1 -1
- package/build/gallery/use-image-sizes.js +2 -2
- package/build/gallery/use-image-sizes.js.map +1 -1
- package/build/group/edit.js +1 -1
- package/build/group/edit.js.map +1 -1
- package/build/group/index.js +27 -30
- package/build/group/index.js.map +1 -1
- package/build/group/variations.js +51 -3
- package/build/group/variations.js.map +1 -1
- package/build/heading/edit.js +2 -0
- package/build/heading/edit.js.map +1 -1
- package/build/heading/index.js +3 -0
- package/build/heading/index.js.map +1 -1
- package/build/image/image.js +6 -1
- package/build/image/image.js.map +1 -1
- package/build/image/transforms.js +4 -0
- package/build/image/transforms.js.map +1 -1
- package/build/image/view.js +1 -1
- package/build/image/view.js.map +1 -1
- package/build/latest-posts/edit.js +38 -11
- package/build/latest-posts/edit.js.map +1 -1
- package/build/list/index.js +10 -1
- package/build/list/index.js.map +1 -1
- package/build/list/ordered-list-settings.js +19 -17
- package/build/list/ordered-list-settings.js.map +1 -1
- package/build/list-item/index.js +11 -3
- package/build/list-item/index.js.map +1 -1
- package/build/loginout/index.js +14 -1
- package/build/loginout/index.js.map +1 -1
- package/build/media-text/edit.js +0 -1
- package/build/media-text/edit.js.map +1 -1
- package/build/missing/edit.js +10 -19
- package/build/missing/edit.js.map +1 -1
- package/build/navigation/edit/index.js +8 -8
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/navigation-menu-name-control.js +1 -0
- package/build/navigation/edit/navigation-menu-name-control.js.map +1 -1
- package/build/navigation/edit/overlay-menu-preview.js +2 -0
- package/build/navigation/edit/overlay-menu-preview.js.map +1 -1
- package/build/post-author/edit.js +60 -53
- package/build/post-author/edit.js.map +1 -1
- package/build/post-author/index.js +13 -0
- package/build/post-author/index.js.map +1 -1
- package/build/post-author-biography/index.js +14 -1
- package/build/post-author-biography/index.js.map +1 -1
- package/build/post-author-name/index.js +14 -1
- package/build/post-author-name/index.js.map +1 -1
- package/build/post-comment/edit.js +2 -0
- package/build/post-comment/edit.js.map +1 -1
- package/build/post-comments-form/index.js +12 -0
- package/build/post-comments-form/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 +12 -0
- package/build/post-date/index.js.map +1 -1
- package/build/post-excerpt/edit.js +1 -0
- package/build/post-excerpt/edit.js.map +1 -1
- package/build/post-excerpt/index.js +12 -0
- package/build/post-excerpt/index.js.map +1 -1
- package/build/post-featured-image/dimension-controls.js +9 -2
- package/build/post-featured-image/dimension-controls.js.map +1 -1
- package/build/post-featured-image/edit.js +1 -0
- package/build/post-featured-image/edit.js.map +1 -1
- package/build/post-navigation-link/edit.js +7 -2
- package/build/post-navigation-link/edit.js.map +1 -1
- package/build/post-terms/edit.js +1 -0
- package/build/post-terms/edit.js.map +1 -1
- package/build/post-terms/index.js +12 -0
- package/build/post-terms/index.js.map +1 -1
- package/build/post-time-to-read/index.js +6 -0
- package/build/post-time-to-read/index.js.map +1 -1
- package/build/post-title/edit.js +5 -2
- package/build/post-title/edit.js.map +1 -1
- package/build/post-title/index.js +15 -0
- package/build/post-title/index.js.map +1 -1
- package/build/preformatted/index.js +12 -0
- package/build/preformatted/index.js.map +1 -1
- package/build/query/edit/inspector-controls/enhanced-pagination-control.js +1 -0
- package/build/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
- package/build/query/edit/inspector-controls/index.js +69 -9
- package/build/query/edit/inspector-controls/index.js.map +1 -1
- package/build/query/edit/inspector-controls/offset-controls.js +37 -0
- package/build/query/edit/inspector-controls/offset-controls.js.map +1 -0
- package/build/query/edit/inspector-controls/pages-control.js +36 -0
- package/build/query/edit/inspector-controls/pages-control.js.map +1 -0
- package/build/query/edit/inspector-controls/parent-control.js +1 -0
- package/build/query/edit/inspector-controls/parent-control.js.map +1 -1
- package/build/query/edit/inspector-controls/per-page-control.js +40 -0
- package/build/query/edit/inspector-controls/per-page-control.js.map +1 -0
- package/build/query/edit/inspector-controls/sticky-control.js +1 -1
- package/build/query/edit/inspector-controls/sticky-control.js.map +1 -1
- package/build/query/edit/query-content.js +1 -1
- package/build/query/edit/query-content.js.map +1 -1
- package/build/query/edit/query-toolbar.js +3 -76
- package/build/query/edit/query-toolbar.js.map +1 -1
- package/build/query/utils.js +10 -5
- package/build/query/utils.js.map +1 -1
- package/build/query-pagination/query-pagination-arrow-controls.js +1 -0
- package/build/query-pagination/query-pagination-arrow-controls.js.map +1 -1
- package/build/query-pagination-numbers/edit.js +1 -0
- package/build/query-pagination-numbers/edit.js.map +1 -1
- package/build/query-title/edit.js +2 -0
- package/build/query-title/edit.js.map +1 -1
- package/build/query-title/index.js +15 -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/quote/transforms.js +4 -0
- package/build/quote/transforms.js.map +1 -1
- package/build/search/edit.js +9 -5
- package/build/search/edit.js.map +1 -1
- package/build/site-logo/edit.js +15 -8
- package/build/site-logo/edit.js.map +1 -1
- package/build/site-tagline/edit.js +3 -3
- package/build/site-tagline/edit.js.map +1 -1
- package/build/site-tagline/index.js +12 -1
- package/build/site-tagline/index.js.map +1 -1
- package/build/site-title/edit.js +2 -2
- package/build/site-title/edit.js.map +1 -1
- package/build/site-title/index.js +10 -0
- package/build/site-title/index.js.map +1 -1
- package/build/social-link/edit.js +2 -1
- package/build/social-link/edit.js.map +1 -1
- package/build/spacer/controls.js +8 -13
- package/build/spacer/controls.js.map +1 -1
- package/build/table/edit.js +6 -5
- package/build/table/edit.js.map +1 -1
- package/build/table-of-contents/index.js +14 -1
- package/build/table-of-contents/index.js.map +1 -1
- package/build/tag-cloud/edit.js +69 -52
- package/build/tag-cloud/edit.js.map +1 -1
- package/build/tag-cloud/index.js +13 -1
- package/build/tag-cloud/index.js.map +1 -1
- package/build/template-part/edit/advanced-controls.js +2 -0
- package/build/template-part/edit/advanced-controls.js.map +1 -1
- package/build/template-part/edit/index.js +7 -6
- package/build/template-part/edit/index.js.map +1 -1
- package/build/template-part/edit/inner-blocks.js +6 -4
- package/build/template-part/edit/inner-blocks.js.map +1 -1
- package/build/video/edit-common-settings.js +1 -0
- package/build/video/edit-common-settings.js.map +1 -1
- package/build/video/edit.js +1 -1
- package/build/video/edit.js.map +1 -1
- package/build/video/tracks-editor.js +3 -0
- package/build/video/tracks-editor.js.map +1 -1
- package/build/video/transforms.js +4 -0
- package/build/video/transforms.js.map +1 -1
- package/build-module/archives/edit.js +1 -0
- package/build-module/archives/edit.js.map +1 -1
- package/build-module/audio/edit.js +1 -0
- package/build-module/audio/edit.js.map +1 -1
- package/build-module/avatar/edit.js +1 -0
- package/build-module/avatar/edit.js.map +1 -1
- package/build-module/avatar/user-control.js +1 -0
- package/build-module/avatar/user-control.js.map +1 -1
- package/build-module/button/edit.js +1 -0
- package/build-module/button/edit.js.map +1 -1
- package/build-module/categories/index.js +12 -0
- package/build-module/categories/index.js.map +1 -1
- package/build-module/column/edit.js +2 -2
- package/build-module/column/edit.js.map +1 -1
- package/build-module/column/index.js +2 -0
- package/build-module/column/index.js.map +1 -1
- package/build-module/comment-author-name/index.js +14 -1
- package/build-module/comment-author-name/index.js.map +1 -1
- package/build-module/comment-content/index.js +14 -1
- package/build-module/comment-content/index.js.map +1 -1
- package/build-module/comment-date/index.js +14 -1
- package/build-module/comment-date/index.js.map +1 -1
- package/build-module/comment-template/index.js +12 -0
- package/build-module/comment-template/index.js.map +1 -1
- package/build-module/comments-pagination/comments-pagination-arrow-controls.js +1 -0
- package/build-module/comments-pagination/comments-pagination-arrow-controls.js.map +1 -1
- package/build-module/comments-title/deprecated.js +3 -0
- package/build-module/comments-title/deprecated.js.map +1 -1
- package/build-module/comments-title/edit.js +3 -1
- package/build-module/comments-title/edit.js.map +1 -1
- package/build-module/comments-title/index.js +3 -0
- package/build-module/comments-title/index.js.map +1 -1
- package/build-module/cover/edit/inspector-controls.js +0 -1
- package/build-module/cover/edit/inspector-controls.js.map +1 -1
- package/build-module/details/edit.js +1 -0
- package/build-module/details/edit.js.map +1 -1
- package/build-module/embed/edit.js +13 -5
- package/build-module/embed/edit.js.map +1 -1
- package/build-module/embed/embed-placeholder.js +7 -4
- package/build-module/embed/embed-placeholder.js.map +1 -1
- package/build-module/embed/embed-preview.js +5 -19
- package/build-module/embed/embed-preview.js.map +1 -1
- package/build-module/file/index.js +12 -0
- package/build-module/file/index.js.map +1 -1
- package/build-module/file/inspector.js +1 -0
- package/build-module/file/inspector.js.map +1 -1
- package/build-module/form/edit.js +6 -4
- package/build-module/form/edit.js.map +1 -1
- package/build-module/form-input/edit.js +2 -0
- package/build-module/form-input/edit.js.map +1 -1
- package/build-module/gallery/edit.js +45 -15
- package/build-module/gallery/edit.js.map +1 -1
- package/build-module/gallery/gallery.native.js +4 -1
- package/build-module/gallery/gallery.native.js.map +1 -1
- package/build-module/gallery/gap-styles.js +1 -9
- package/build-module/gallery/gap-styles.js.map +1 -1
- package/build-module/gallery/use-image-sizes.js +2 -2
- package/build-module/gallery/use-image-sizes.js.map +1 -1
- package/build-module/group/edit.js +1 -1
- package/build-module/group/edit.js.map +1 -1
- package/build-module/group/index.js +27 -30
- package/build-module/group/index.js.map +1 -1
- package/build-module/group/variations.js +51 -3
- package/build-module/group/variations.js.map +1 -1
- package/build-module/heading/edit.js +2 -0
- package/build-module/heading/edit.js.map +1 -1
- package/build-module/heading/index.js +3 -0
- package/build-module/heading/index.js.map +1 -1
- package/build-module/image/image.js +7 -2
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/transforms.js +5 -1
- package/build-module/image/transforms.js.map +1 -1
- package/build-module/image/view.js +1 -1
- package/build-module/image/view.js.map +1 -1
- package/build-module/latest-posts/edit.js +41 -14
- package/build-module/latest-posts/edit.js.map +1 -1
- package/build-module/list/index.js +10 -1
- package/build-module/list/index.js.map +1 -1
- package/build-module/list/ordered-list-settings.js +19 -17
- package/build-module/list/ordered-list-settings.js.map +1 -1
- package/build-module/list-item/index.js +11 -3
- package/build-module/list-item/index.js.map +1 -1
- package/build-module/loginout/index.js +14 -1
- package/build-module/loginout/index.js.map +1 -1
- package/build-module/media-text/edit.js +0 -1
- package/build-module/media-text/edit.js.map +1 -1
- package/build-module/missing/edit.js +10 -19
- package/build-module/missing/edit.js.map +1 -1
- package/build-module/navigation/edit/index.js +8 -8
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-name-control.js +1 -0
- package/build-module/navigation/edit/navigation-menu-name-control.js.map +1 -1
- package/build-module/navigation/edit/overlay-menu-preview.js +2 -0
- package/build-module/navigation/edit/overlay-menu-preview.js.map +1 -1
- package/build-module/post-author/edit.js +61 -54
- package/build-module/post-author/edit.js.map +1 -1
- package/build-module/post-author/index.js +13 -0
- package/build-module/post-author/index.js.map +1 -1
- package/build-module/post-author-biography/index.js +14 -1
- package/build-module/post-author-biography/index.js.map +1 -1
- package/build-module/post-author-name/index.js +14 -1
- package/build-module/post-author-name/index.js.map +1 -1
- package/build-module/post-comment/edit.js +2 -0
- package/build-module/post-comment/edit.js.map +1 -1
- package/build-module/post-comments-form/index.js +12 -0
- package/build-module/post-comments-form/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 +12 -0
- package/build-module/post-date/index.js.map +1 -1
- package/build-module/post-excerpt/edit.js +1 -0
- package/build-module/post-excerpt/edit.js.map +1 -1
- package/build-module/post-excerpt/index.js +12 -0
- package/build-module/post-excerpt/index.js.map +1 -1
- package/build-module/post-featured-image/dimension-controls.js +9 -2
- package/build-module/post-featured-image/dimension-controls.js.map +1 -1
- package/build-module/post-featured-image/edit.js +1 -0
- package/build-module/post-featured-image/edit.js.map +1 -1
- package/build-module/post-navigation-link/edit.js +7 -2
- package/build-module/post-navigation-link/edit.js.map +1 -1
- package/build-module/post-terms/edit.js +1 -0
- package/build-module/post-terms/edit.js.map +1 -1
- package/build-module/post-terms/index.js +12 -0
- package/build-module/post-terms/index.js.map +1 -1
- package/build-module/post-time-to-read/index.js +6 -0
- package/build-module/post-time-to-read/index.js.map +1 -1
- package/build-module/post-title/edit.js +5 -2
- package/build-module/post-title/edit.js.map +1 -1
- package/build-module/post-title/index.js +15 -0
- package/build-module/post-title/index.js.map +1 -1
- package/build-module/preformatted/index.js +12 -0
- package/build-module/preformatted/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js +1 -0
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/index.js +71 -11
- package/build-module/query/edit/inspector-controls/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/offset-controls.js +29 -0
- package/build-module/query/edit/inspector-controls/offset-controls.js.map +1 -0
- package/build-module/query/edit/inspector-controls/pages-control.js +28 -0
- package/build-module/query/edit/inspector-controls/pages-control.js.map +1 -0
- package/build-module/query/edit/inspector-controls/parent-control.js +1 -0
- package/build-module/query/edit/inspector-controls/parent-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/per-page-control.js +33 -0
- package/build-module/query/edit/inspector-controls/per-page-control.js.map +1 -0
- package/build-module/query/edit/inspector-controls/sticky-control.js +1 -1
- package/build-module/query/edit/inspector-controls/sticky-control.js.map +1 -1
- package/build-module/query/edit/query-content.js +1 -1
- package/build-module/query/edit/query-content.js.map +1 -1
- package/build-module/query/edit/query-toolbar.js +4 -78
- package/build-module/query/edit/query-toolbar.js.map +1 -1
- package/build-module/query/utils.js +10 -5
- package/build-module/query/utils.js.map +1 -1
- package/build-module/query-pagination/query-pagination-arrow-controls.js +1 -0
- package/build-module/query-pagination/query-pagination-arrow-controls.js.map +1 -1
- package/build-module/query-pagination-numbers/edit.js +1 -0
- package/build-module/query-pagination-numbers/edit.js.map +1 -1
- package/build-module/query-title/edit.js +2 -0
- package/build-module/query-title/edit.js.map +1 -1
- package/build-module/query-title/index.js +15 -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/quote/transforms.js +4 -0
- package/build-module/quote/transforms.js.map +1 -1
- package/build-module/search/edit.js +10 -6
- package/build-module/search/edit.js.map +1 -1
- package/build-module/site-logo/edit.js +15 -8
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/site-tagline/edit.js +3 -3
- package/build-module/site-tagline/edit.js.map +1 -1
- package/build-module/site-tagline/index.js +12 -1
- package/build-module/site-tagline/index.js.map +1 -1
- package/build-module/site-title/edit.js +2 -2
- package/build-module/site-title/edit.js.map +1 -1
- package/build-module/site-title/index.js +10 -0
- package/build-module/site-title/index.js.map +1 -1
- package/build-module/social-link/edit.js +2 -1
- package/build-module/social-link/edit.js.map +1 -1
- package/build-module/spacer/controls.js +9 -14
- package/build-module/spacer/controls.js.map +1 -1
- package/build-module/table/edit.js +6 -5
- package/build-module/table/edit.js.map +1 -1
- package/build-module/table-of-contents/index.js +14 -1
- package/build-module/table-of-contents/index.js.map +1 -1
- package/build-module/tag-cloud/edit.js +70 -53
- package/build-module/tag-cloud/edit.js.map +1 -1
- package/build-module/tag-cloud/index.js +13 -1
- package/build-module/tag-cloud/index.js.map +1 -1
- package/build-module/template-part/edit/advanced-controls.js +2 -0
- package/build-module/template-part/edit/advanced-controls.js.map +1 -1
- package/build-module/template-part/edit/index.js +7 -6
- package/build-module/template-part/edit/index.js.map +1 -1
- package/build-module/template-part/edit/inner-blocks.js +6 -4
- package/build-module/template-part/edit/inner-blocks.js.map +1 -1
- package/build-module/video/edit-common-settings.js +1 -0
- package/build-module/video/edit-common-settings.js.map +1 -1
- package/build-module/video/edit.js +1 -1
- package/build-module/video/edit.js.map +1 -1
- package/build-module/video/tracks-editor.js +3 -0
- package/build-module/video/tracks-editor.js.map +1 -1
- package/build-module/video/transforms.js +5 -1
- package/build-module/video/transforms.js.map +1 -1
- package/build-style/archives/editor-rtl.css +5 -2
- package/build-style/archives/editor.css +5 -2
- package/build-style/archives/style-rtl.css +5 -2
- package/build-style/archives/style.css +5 -2
- package/build-style/audio/editor-rtl.css +5 -2
- package/build-style/audio/editor.css +5 -2
- package/build-style/audio/style-rtl.css +5 -2
- package/build-style/audio/style.css +5 -2
- package/build-style/audio/theme-rtl.css +5 -2
- package/build-style/audio/theme.css +5 -2
- package/build-style/avatar/editor-rtl.css +5 -2
- package/build-style/avatar/editor.css +5 -2
- package/build-style/avatar/style-rtl.css +5 -2
- package/build-style/avatar/style.css +5 -2
- package/build-style/button/editor-rtl.css +5 -2
- package/build-style/button/editor.css +5 -2
- package/build-style/button/style-rtl.css +5 -2
- package/build-style/button/style.css +5 -2
- package/build-style/buttons/editor-rtl.css +5 -2
- package/build-style/buttons/editor.css +5 -2
- package/build-style/buttons/style-rtl.css +5 -2
- package/build-style/buttons/style.css +5 -2
- package/build-style/calendar/style-rtl.css +5 -2
- package/build-style/calendar/style.css +5 -2
- package/build-style/categories/editor-rtl.css +5 -2
- package/build-style/categories/editor.css +5 -2
- package/build-style/categories/style-rtl.css +5 -2
- package/build-style/categories/style.css +5 -2
- package/build-style/classic-rtl.css +5 -2
- package/build-style/classic.css +5 -2
- package/build-style/code/editor-rtl.css +5 -2
- package/build-style/code/editor.css +5 -2
- package/build-style/code/style-rtl.css +5 -2
- package/build-style/code/style.css +5 -2
- package/build-style/code/theme-rtl.css +5 -2
- package/build-style/code/theme.css +5 -2
- package/build-style/columns/editor-rtl.css +5 -2
- package/build-style/columns/editor.css +5 -2
- package/build-style/columns/style-rtl.css +5 -2
- package/build-style/columns/style.css +5 -2
- package/build-style/comment-author-avatar/editor-rtl.css +5 -2
- package/build-style/comment-author-avatar/editor.css +5 -2
- package/build-style/comment-author-name/style-rtl.css +94 -0
- package/build-style/comment-author-name/style.css +94 -0
- package/build-style/comment-content/style-rtl.css +9 -2
- package/build-style/comment-content/style.css +9 -2
- package/build-style/comment-date/style-rtl.css +94 -0
- package/build-style/comment-date/style.css +94 -0
- package/build-style/comment-template/style-rtl.css +5 -2
- package/build-style/comment-template/style.css +5 -2
- package/build-style/comments/editor-rtl.css +5 -2
- package/build-style/comments/editor.css +5 -2
- package/build-style/comments/style-rtl.css +5 -2
- package/build-style/comments/style.css +5 -2
- package/build-style/comments-pagination/editor-rtl.css +5 -2
- package/build-style/comments-pagination/editor.css +5 -2
- package/build-style/comments-pagination/style-rtl.css +5 -2
- package/build-style/comments-pagination/style.css +5 -2
- package/build-style/comments-pagination-numbers/editor-rtl.css +5 -2
- package/build-style/comments-pagination-numbers/editor.css +5 -2
- package/build-style/comments-title/editor-rtl.css +5 -2
- package/build-style/comments-title/editor.css +5 -2
- package/build-style/common-rtl.css +5 -2
- package/build-style/common.css +5 -2
- package/build-style/cover/editor-rtl.css +5 -2
- package/build-style/cover/editor.css +5 -2
- package/build-style/cover/style-rtl.css +5 -2
- package/build-style/cover/style.css +5 -2
- package/build-style/details/editor-rtl.css +5 -2
- package/build-style/details/editor.css +5 -2
- package/build-style/details/style-rtl.css +5 -2
- package/build-style/details/style.css +5 -2
- package/build-style/editor-elements-rtl.css +5 -2
- package/build-style/editor-elements.css +5 -2
- package/build-style/editor-rtl.css +47 -45
- package/build-style/editor.css +47 -45
- package/build-style/elements-rtl.css +5 -2
- package/build-style/elements.css +5 -2
- package/build-style/embed/editor-rtl.css +8 -2
- package/build-style/embed/editor.css +8 -2
- package/build-style/embed/style-rtl.css +5 -2
- package/build-style/embed/style.css +5 -2
- package/build-style/embed/theme-rtl.css +5 -2
- package/build-style/embed/theme.css +5 -2
- package/build-style/file/editor-rtl.css +5 -2
- package/build-style/file/editor.css +5 -2
- package/build-style/file/style-rtl.css +5 -2
- package/build-style/file/style.css +5 -2
- package/build-style/footnotes/style-rtl.css +5 -2
- package/build-style/footnotes/style.css +5 -2
- package/build-style/form-input/editor-rtl.css +5 -2
- package/build-style/form-input/editor.css +5 -2
- package/build-style/form-input/style-rtl.css +6 -2
- package/build-style/form-input/style.css +6 -2
- package/build-style/form-submission-notification/editor-rtl.css +5 -2
- package/build-style/form-submission-notification/editor.css +5 -2
- package/build-style/form-submit-button/style-rtl.css +5 -2
- package/build-style/form-submit-button/style.css +5 -2
- package/build-style/freeform/editor-rtl.css +5 -2
- package/build-style/freeform/editor.css +5 -2
- package/build-style/gallery/editor-rtl.css +5 -3
- package/build-style/gallery/editor.css +5 -3
- package/build-style/gallery/style-rtl.css +29 -9
- package/build-style/gallery/style.css +29 -9
- package/build-style/gallery/theme-rtl.css +5 -2
- package/build-style/gallery/theme.css +5 -2
- package/build-style/group/editor-rtl.css +5 -13
- package/build-style/group/editor.css +5 -13
- package/build-style/group/style-rtl.css +5 -2
- package/build-style/group/style.css +5 -2
- package/build-style/group/theme-rtl.css +5 -2
- package/build-style/group/theme.css +5 -2
- package/build-style/heading/style-rtl.css +5 -2
- package/build-style/heading/style.css +5 -2
- package/build-style/html/editor-rtl.css +5 -2
- package/build-style/html/editor.css +5 -2
- package/build-style/image/editor-rtl.css +13 -2
- package/build-style/image/editor.css +13 -2
- package/build-style/image/style-rtl.css +5 -2
- package/build-style/image/style.css +5 -2
- package/build-style/image/theme-rtl.css +5 -2
- package/build-style/image/theme.css +5 -2
- package/build-style/latest-comments/style-rtl.css +5 -2
- package/build-style/latest-comments/style.css +5 -2
- package/build-style/latest-posts/editor-rtl.css +12 -9
- package/build-style/latest-posts/editor.css +12 -9
- package/build-style/latest-posts/style-rtl.css +5 -2
- package/build-style/latest-posts/style.css +5 -2
- package/build-style/list/style-rtl.css +5 -2
- package/build-style/list/style.css +5 -2
- package/build-style/loginout/style-rtl.css +94 -0
- package/build-style/loginout/style.css +94 -0
- package/build-style/media-text/editor-rtl.css +5 -2
- package/build-style/media-text/editor.css +5 -2
- package/build-style/media-text/style-rtl.css +5 -2
- package/build-style/media-text/style.css +5 -2
- package/build-style/more/editor-rtl.css +5 -2
- package/build-style/more/editor.css +5 -2
- package/build-style/navigation/editor-rtl.css +9 -14
- package/build-style/navigation/editor.css +9 -14
- package/build-style/navigation/style-rtl.css +5 -2
- package/build-style/navigation/style.css +5 -2
- package/build-style/navigation-link/editor-rtl.css +5 -5
- package/build-style/navigation-link/editor.css +5 -5
- package/build-style/navigation-link/style-rtl.css +5 -2
- package/build-style/navigation-link/style.css +5 -2
- package/build-style/navigation-submenu/editor-rtl.css +5 -2
- package/build-style/navigation-submenu/editor.css +5 -2
- package/build-style/nextpage/editor-rtl.css +5 -2
- package/build-style/nextpage/editor.css +5 -2
- package/build-style/page-list/editor-rtl.css +5 -2
- package/build-style/page-list/editor.css +5 -2
- package/build-style/page-list/style-rtl.css +5 -2
- package/build-style/page-list/style.css +5 -2
- package/build-style/paragraph/editor-rtl.css +5 -2
- package/build-style/paragraph/editor.css +5 -2
- package/build-style/paragraph/style-rtl.css +5 -2
- package/build-style/paragraph/style.css +5 -2
- package/build-style/post-author/editor-rtl.css +95 -0
- package/build-style/post-author/editor.css +95 -0
- package/build-style/post-author/style-rtl.css +6 -2
- package/build-style/post-author/style.css +6 -2
- package/build-style/post-author-biography/style-rtl.css +94 -0
- package/build-style/post-author-biography/style.css +94 -0
- package/build-style/post-author-name/style-rtl.css +94 -0
- package/build-style/post-author-name/style.css +94 -0
- package/build-style/post-comments-form/editor-rtl.css +5 -2
- package/build-style/post-comments-form/editor.css +5 -2
- package/build-style/post-comments-form/style-rtl.css +5 -2
- package/build-style/post-comments-form/style.css +5 -2
- package/build-style/post-content/editor-rtl.css +5 -2
- package/build-style/post-content/editor.css +5 -2
- package/build-style/post-content/style-rtl.css +96 -0
- package/build-style/post-content/style.css +96 -0
- package/build-style/post-date/style-rtl.css +5 -2
- package/build-style/post-date/style.css +5 -2
- package/build-style/post-excerpt/editor-rtl.css +5 -2
- package/build-style/post-excerpt/editor.css +5 -2
- package/build-style/post-excerpt/style-rtl.css +6 -2
- package/build-style/post-excerpt/style.css +6 -2
- package/build-style/post-featured-image/editor-rtl.css +5 -2
- package/build-style/post-featured-image/editor.css +5 -2
- package/build-style/post-featured-image/style-rtl.css +5 -2
- package/build-style/post-featured-image/style.css +5 -2
- package/build-style/post-navigation-link/style-rtl.css +5 -2
- package/build-style/post-navigation-link/style.css +5 -2
- package/build-style/post-template/editor-rtl.css +5 -2
- package/build-style/post-template/editor.css +5 -2
- package/build-style/post-template/style-rtl.css +5 -2
- package/build-style/post-template/style.css +5 -2
- package/build-style/post-terms/style-rtl.css +5 -2
- package/build-style/post-terms/style.css +5 -2
- package/build-style/post-time-to-read/style-rtl.css +5 -2
- package/build-style/post-time-to-read/style.css +5 -2
- package/build-style/post-title/style-rtl.css +5 -2
- package/build-style/post-title/style.css +5 -2
- package/build-style/preformatted/style-rtl.css +5 -2
- package/build-style/preformatted/style.css +5 -2
- package/build-style/pullquote/editor-rtl.css +5 -2
- package/build-style/pullquote/editor.css +5 -2
- package/build-style/pullquote/style-rtl.css +5 -2
- package/build-style/pullquote/style.css +5 -2
- package/build-style/pullquote/theme-rtl.css +5 -2
- package/build-style/pullquote/theme.css +5 -2
- package/build-style/query/editor-rtl.css +5 -2
- package/build-style/query/editor.css +5 -2
- package/build-style/query-pagination/editor-rtl.css +5 -2
- package/build-style/query-pagination/editor.css +5 -2
- package/build-style/query-pagination/style-rtl.css +5 -2
- package/build-style/query-pagination/style.css +5 -2
- package/build-style/query-pagination-numbers/editor-rtl.css +5 -2
- package/build-style/query-pagination-numbers/editor.css +5 -2
- package/build-style/query-title/style-rtl.css +5 -2
- package/build-style/query-title/style.css +5 -2
- package/build-style/quote/style-rtl.css +5 -2
- package/build-style/quote/style.css +5 -2
- package/build-style/quote/theme-rtl.css +8 -5
- package/build-style/quote/theme.css +8 -5
- package/build-style/read-more/style-rtl.css +5 -2
- package/build-style/read-more/style.css +5 -2
- package/build-style/reset-rtl.css +5 -2
- package/build-style/reset.css +5 -2
- package/build-style/rss/editor-rtl.css +5 -2
- package/build-style/rss/editor.css +5 -2
- package/build-style/rss/style-rtl.css +5 -2
- package/build-style/rss/style.css +5 -2
- package/build-style/search/editor-rtl.css +8 -4
- package/build-style/search/editor.css +8 -4
- package/build-style/search/style-rtl.css +5 -2
- package/build-style/search/style.css +5 -2
- package/build-style/search/theme-rtl.css +5 -2
- package/build-style/search/theme.css +5 -2
- package/build-style/separator/editor-rtl.css +5 -2
- package/build-style/separator/editor.css +5 -2
- package/build-style/separator/style-rtl.css +5 -2
- package/build-style/separator/style.css +5 -2
- package/build-style/separator/theme-rtl.css +5 -2
- package/build-style/separator/theme.css +5 -2
- package/build-style/shortcode/editor-rtl.css +5 -2
- package/build-style/shortcode/editor.css +5 -2
- package/build-style/site-logo/editor-rtl.css +5 -2
- package/build-style/site-logo/editor.css +5 -2
- package/build-style/site-logo/style-rtl.css +5 -2
- package/build-style/site-logo/style.css +5 -2
- package/build-style/site-tagline/editor-rtl.css +5 -2
- package/build-style/site-tagline/editor.css +5 -2
- package/build-style/site-tagline/style-rtl.css +94 -0
- package/build-style/site-tagline/style.css +94 -0
- package/build-style/site-title/editor-rtl.css +5 -2
- package/build-style/site-title/editor.css +5 -2
- package/build-style/site-title/style-rtl.css +9 -3
- package/build-style/site-title/style.css +9 -3
- package/build-style/social-link/editor-rtl.css +5 -2
- package/build-style/social-link/editor.css +5 -2
- package/build-style/social-links/editor-rtl.css +5 -2
- package/build-style/social-links/editor.css +5 -2
- package/build-style/social-links/style-rtl.css +5 -2
- package/build-style/social-links/style.css +5 -2
- package/build-style/spacer/editor-rtl.css +5 -2
- package/build-style/spacer/editor.css +5 -2
- package/build-style/spacer/style-rtl.css +5 -2
- package/build-style/spacer/style.css +5 -2
- package/build-style/style-rtl.css +80 -10
- package/build-style/style.css +80 -10
- package/build-style/table/editor-rtl.css +5 -2
- package/build-style/table/editor.css +5 -2
- package/build-style/table/style-rtl.css +5 -2
- package/build-style/table/style.css +5 -2
- package/build-style/table/theme-rtl.css +5 -2
- package/build-style/table/theme.css +5 -2
- package/build-style/table-of-contents/style-rtl.css +94 -0
- package/build-style/table-of-contents/style.css +94 -0
- package/build-style/tag-cloud/editor-rtl.css +102 -0
- package/build-style/tag-cloud/editor.css +102 -0
- package/build-style/tag-cloud/style-rtl.css +5 -2
- package/build-style/tag-cloud/style.css +5 -2
- package/build-style/template-part/editor-rtl.css +5 -6
- package/build-style/template-part/editor.css +5 -6
- package/build-style/template-part/theme-rtl.css +5 -2
- package/build-style/template-part/theme.css +5 -2
- package/build-style/term-description/style-rtl.css +5 -2
- package/build-style/term-description/style.css +5 -2
- package/build-style/text-columns/editor-rtl.css +5 -2
- package/build-style/text-columns/editor.css +5 -2
- package/build-style/text-columns/style-rtl.css +5 -2
- package/build-style/text-columns/style.css +5 -2
- package/build-style/theme-rtl.css +8 -5
- package/build-style/theme.css +8 -5
- package/build-style/verse/style-rtl.css +5 -2
- package/build-style/verse/style.css +5 -2
- package/build-style/video/editor-rtl.css +5 -5
- package/build-style/video/editor.css +5 -5
- package/build-style/video/style-rtl.css +5 -2
- package/build-style/video/style.css +5 -2
- package/build-style/video/theme-rtl.css +5 -2
- package/build-style/video/theme.css +5 -2
- package/package.json +35 -35
- package/src/archives/edit.js +1 -0
- package/src/audio/edit.js +4 -3
- package/src/avatar/edit.js +1 -0
- package/src/avatar/user-control.js +1 -0
- package/src/button/edit.js +1 -0
- package/src/button/index.php +1 -14
- package/src/categories/block.json +12 -0
- package/src/column/block.json +2 -0
- package/src/column/edit.js +2 -2
- package/src/comment-author-name/block.json +14 -1
- package/src/comment-author-name/style.scss +4 -0
- package/src/comment-content/block.json +14 -1
- package/src/comment-content/style.scss +5 -0
- package/src/comment-date/block.json +14 -1
- package/src/comment-date/style.scss +4 -0
- package/src/comment-template/block.json +12 -0
- package/src/comments-pagination/comments-pagination-arrow-controls.js +1 -0
- package/src/comments-title/block.json +3 -0
- package/src/comments-title/edit.js +8 -1
- package/src/cover/edit/inspector-controls.js +0 -1
- package/src/details/edit.js +1 -0
- package/src/editor.scss +2 -0
- package/src/embed/edit.js +10 -1
- package/src/embed/editor.scss +4 -0
- package/src/embed/embed-placeholder.js +7 -4
- package/src/embed/embed-preview.js +3 -37
- package/src/file/block.json +12 -0
- package/src/file/inspector.js +1 -0
- package/src/form/edit.js +5 -2
- package/src/form-input/edit.js +2 -0
- package/src/form-input/style.scss +1 -0
- package/src/gallery/edit.js +80 -22
- package/src/gallery/editor.scss +1 -2
- package/src/gallery/gallery.native.js +2 -1
- package/src/gallery/gap-styles.js +1 -8
- package/src/gallery/style.scss +33 -7
- package/src/gallery/test/__snapshots__/index.native.js.snap +1 -1
- package/src/gallery/test/index.native.js +5 -5
- package/src/gallery/use-image-sizes.js +2 -2
- package/src/group/edit.js +1 -1
- package/src/group/editor.scss +1 -1
- package/src/group/index.js +26 -29
- package/src/group/variations.js +56 -0
- package/src/heading/block.json +3 -0
- package/src/heading/edit.js +3 -1
- package/src/image/editor.scss +12 -0
- package/src/image/image.js +7 -1
- package/src/image/transforms.js +7 -1
- package/src/image/view.js +1 -1
- package/src/latest-posts/edit.js +61 -17
- package/src/latest-posts/editor.scss +11 -10
- package/src/list/block.json +10 -1
- package/src/list/ordered-list-settings.js +20 -18
- package/src/list/test/edit.native.js +1 -3
- package/src/list-item/block.json +11 -3
- package/src/loginout/block.json +14 -1
- package/src/loginout/style.scss +4 -0
- package/src/media-text/edit.js +0 -1
- package/src/media-text/style.native.scss +2 -0
- package/src/missing/edit.js +12 -18
- package/src/navigation/edit/index.js +8 -8
- package/src/navigation/edit/navigation-menu-name-control.js +1 -0
- package/src/navigation/edit/overlay-menu-preview.js +2 -0
- package/src/navigation/editor.scss +5 -1
- package/src/navigation/index.php +10 -27
- package/src/navigation-link/editor.scss +0 -3
- package/src/post-author/block.json +13 -0
- package/src/post-author/edit.js +68 -57
- package/src/post-author/editor.scss +7 -0
- package/src/post-author/style.scss +1 -0
- package/src/post-author-biography/block.json +14 -1
- package/src/post-author-biography/style.scss +4 -0
- package/src/post-author-name/block.json +14 -1
- package/src/post-author-name/style.scss +4 -0
- package/src/post-comment/edit.js +2 -0
- package/src/post-comments-form/block.json +12 -0
- package/src/post-content/block.json +1 -0
- package/src/post-content/style.scss +5 -0
- package/src/post-date/block.json +12 -0
- package/src/post-excerpt/block.json +12 -0
- package/src/post-excerpt/edit.js +1 -0
- package/src/post-excerpt/style.scss +3 -0
- package/src/post-featured-image/dimension-controls.js +5 -0
- package/src/post-featured-image/edit.js +1 -0
- package/src/post-navigation-link/edit.js +8 -2
- package/src/post-terms/block.json +12 -0
- package/src/post-terms/edit.js +1 -0
- package/src/post-time-to-read/block.json +6 -0
- package/src/post-title/block.json +15 -0
- package/src/post-title/edit.js +5 -3
- package/src/preformatted/block.json +12 -0
- package/src/query/edit/inspector-controls/enhanced-pagination-control.js +1 -0
- package/src/query/edit/inspector-controls/index.js +85 -12
- package/src/query/edit/inspector-controls/offset-controls.js +31 -0
- package/src/query/edit/inspector-controls/pages-control.js +27 -0
- package/src/query/edit/inspector-controls/parent-control.js +1 -0
- package/src/query/edit/inspector-controls/per-page-control.js +33 -0
- package/src/query/edit/inspector-controls/sticky-control.js +1 -1
- package/src/query/edit/query-content.js +1 -1
- package/src/query/edit/query-toolbar.js +1 -90
- package/src/query/utils.js +9 -5
- package/src/query-pagination/query-pagination-arrow-controls.js +1 -0
- package/src/query-pagination-numbers/edit.js +1 -0
- package/src/query-title/block.json +15 -0
- package/src/query-title/edit.js +9 -1
- package/src/quote/block.json +1 -0
- package/src/quote/test/transforms.native.js +1 -1
- package/src/quote/theme.scss +5 -3
- package/src/quote/transforms.js +11 -2
- package/src/search/edit.js +9 -9
- package/src/search/editor.scss +5 -2
- package/src/site-logo/edit.js +23 -9
- package/src/site-tagline/block.json +12 -1
- package/src/site-tagline/edit.js +2 -4
- package/src/site-tagline/style.scss +4 -0
- package/src/site-title/block.json +10 -0
- package/src/site-title/edit.js +2 -4
- package/src/site-title/style.scss +7 -2
- package/src/social-link/edit.js +2 -1
- package/src/spacer/controls.js +10 -13
- package/src/style.scss +9 -0
- package/src/table/edit.js +5 -4
- package/src/table-of-contents/block.json +14 -1
- package/src/table-of-contents/style.scss +4 -0
- package/src/tag-cloud/block.json +13 -1
- package/src/tag-cloud/edit.js +80 -56
- package/src/tag-cloud/editor.scss +19 -0
- package/src/template-part/edit/advanced-controls.js +2 -0
- package/src/template-part/edit/index.js +10 -7
- package/src/template-part/edit/inner-blocks.js +6 -4
- package/src/template-part/editor.scss +0 -5
- package/src/video/edit-common-settings.js +1 -0
- package/src/video/edit.js +2 -2
- package/src/video/editor.scss +0 -4
- package/src/video/tracks-editor.js +3 -0
- package/src/video/transforms.js +5 -1
package/src/navigation/index.php
CHANGED
|
@@ -241,13 +241,11 @@ class WP_Navigation_Block_Renderer {
|
|
|
241
241
|
// it encounters whitespace. This code strips it.
|
|
242
242
|
$blocks = block_core_navigation_filter_out_empty_blocks( $parsed_blocks );
|
|
243
243
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
$root_nav_block = parse_blocks( $markup )[0];
|
|
244
|
+
// Run Block Hooks algorithm to inject hooked blocks.
|
|
245
|
+
$markup = block_core_navigation_insert_hooked_blocks( $blocks, $navigation_post );
|
|
246
|
+
$root_nav_block = parse_blocks( $markup )[0];
|
|
248
247
|
|
|
249
|
-
|
|
250
|
-
}
|
|
248
|
+
$blocks = isset( $root_nav_block['innerBlocks'] ) ? $root_nav_block['innerBlocks'] : $blocks;
|
|
251
249
|
|
|
252
250
|
// TODO - this uses the full navigation block attributes for the
|
|
253
251
|
// context which could be refined.
|
|
@@ -1083,15 +1081,13 @@ function block_core_navigation_get_fallback_blocks() {
|
|
|
1083
1081
|
// In this case default to the (Page List) fallback.
|
|
1084
1082
|
$fallback_blocks = ! empty( $maybe_fallback ) ? $maybe_fallback : $fallback_blocks;
|
|
1085
1083
|
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
$blocks = parse_blocks( $markup );
|
|
1084
|
+
// Run Block Hooks algorithm to inject hooked blocks.
|
|
1085
|
+
// We have to run it here because we need the post ID of the Navigation block to track ignored hooked blocks.
|
|
1086
|
+
$markup = block_core_navigation_insert_hooked_blocks( $fallback_blocks, $navigation_post );
|
|
1087
|
+
$blocks = parse_blocks( $markup );
|
|
1091
1088
|
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
}
|
|
1089
|
+
if ( isset( $blocks[0]['innerBlocks'] ) ) {
|
|
1090
|
+
$fallback_blocks = $blocks[0]['innerBlocks'];
|
|
1095
1091
|
}
|
|
1096
1092
|
}
|
|
1097
1093
|
|
|
@@ -1621,26 +1617,15 @@ $rest_insert_wp_navigation_core_callback = 'block_core_navigation_' . 'update_ig
|
|
|
1621
1617
|
/*
|
|
1622
1618
|
* Do not add the `block_core_navigation_update_ignore_hooked_blocks_meta` filter in the following cases:
|
|
1623
1619
|
* - If Core has added the `update_ignored_hooked_blocks_postmeta` filter already (WP >= 6.6);
|
|
1624
|
-
* - or if the `set_ignored_hooked_blocks_metadata` function is unavailable (which is required for the filter to work. It was introduced by WP 6.5 but is not present in Gutenberg's WP 6.5 compatibility layer);
|
|
1625
1620
|
* - or if the `$rest_insert_wp_navigation_core_callback` filter has already been added.
|
|
1626
1621
|
*/
|
|
1627
1622
|
if (
|
|
1628
1623
|
! has_filter( 'rest_pre_insert_wp_navigation', 'update_ignored_hooked_blocks_postmeta' ) &&
|
|
1629
|
-
function_exists( 'set_ignored_hooked_blocks_metadata' ) &&
|
|
1630
1624
|
! has_filter( 'rest_pre_insert_wp_navigation', $rest_insert_wp_navigation_core_callback )
|
|
1631
1625
|
) {
|
|
1632
1626
|
add_filter( 'rest_pre_insert_wp_navigation', 'block_core_navigation_update_ignore_hooked_blocks_meta' );
|
|
1633
1627
|
}
|
|
1634
1628
|
|
|
1635
|
-
/*
|
|
1636
|
-
* Previous versions of Gutenberg were attaching the block_core_navigation_update_ignore_hooked_blocks_meta
|
|
1637
|
-
* function to the `rest_insert_wp_navigation` _action_ (rather than the `rest_pre_insert_wp_navigation` _filter_).
|
|
1638
|
-
* To avoid collisions, we need to remove the filter from that action if it's present.
|
|
1639
|
-
*/
|
|
1640
|
-
if ( has_filter( 'rest_insert_wp_navigation', $rest_insert_wp_navigation_core_callback ) ) {
|
|
1641
|
-
remove_filter( 'rest_insert_wp_navigation', $rest_insert_wp_navigation_core_callback );
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
1629
|
/**
|
|
1645
1630
|
* Hooks into the REST API response for the core/navigation block and adds the first and last inner blocks.
|
|
1646
1631
|
*
|
|
@@ -1678,12 +1663,10 @@ $rest_prepare_wp_navigation_core_callback = 'block_core_navigation_' . 'insert_h
|
|
|
1678
1663
|
/*
|
|
1679
1664
|
* Do not add the `block_core_navigation_insert_hooked_blocks_into_rest_response` filter in the following cases:
|
|
1680
1665
|
* - If Core has added the `insert_hooked_blocks_into_rest_response` filter already (WP >= 6.6);
|
|
1681
|
-
* - or if the `set_ignored_hooked_blocks_metadata` function is unavailable (which is required for the filter to work. It was introduced by WP 6.5 but is not present in Gutenberg's WP 6.5 compatibility layer);
|
|
1682
1666
|
* - or if the `$rest_prepare_wp_navigation_core_callback` filter has already been added.
|
|
1683
1667
|
*/
|
|
1684
1668
|
if (
|
|
1685
1669
|
! has_filter( 'rest_prepare_wp_navigation', 'insert_hooked_blocks_into_rest_response' ) &&
|
|
1686
|
-
function_exists( 'set_ignored_hooked_blocks_metadata' ) &&
|
|
1687
1670
|
! has_filter( 'rest_prepare_wp_navigation', $rest_prepare_wp_navigation_core_callback )
|
|
1688
1671
|
) {
|
|
1689
1672
|
add_filter( 'rest_prepare_wp_navigation', 'block_core_navigation_insert_hooked_blocks_into_rest_response', 10, 3 );
|
|
@@ -87,9 +87,6 @@
|
|
|
87
87
|
$stop2: 64%;
|
|
88
88
|
|
|
89
89
|
--wp-underline-color: var(--wp-admin-theme-color);
|
|
90
|
-
.is-dark-theme & {
|
|
91
|
-
--wp-underline-color: #{ $dark-theme-focus };
|
|
92
|
-
}
|
|
93
90
|
|
|
94
91
|
background-image:
|
|
95
92
|
linear-gradient(45deg, transparent ($stop1 - $blur), var(--wp-underline-color) $stop1, var(--wp-underline-color) ($stop1 + $width), transparent ($stop1 + $width + $blur)),
|
|
@@ -64,7 +64,20 @@
|
|
|
64
64
|
},
|
|
65
65
|
"interactivity": {
|
|
66
66
|
"clientNavigation": true
|
|
67
|
+
},
|
|
68
|
+
"__experimentalBorder": {
|
|
69
|
+
"radius": true,
|
|
70
|
+
"color": true,
|
|
71
|
+
"width": true,
|
|
72
|
+
"style": true,
|
|
73
|
+
"__experimentalDefaultControls": {
|
|
74
|
+
"radius": true,
|
|
75
|
+
"color": true,
|
|
76
|
+
"width": true,
|
|
77
|
+
"style": true
|
|
78
|
+
}
|
|
67
79
|
}
|
|
68
80
|
},
|
|
81
|
+
"editorStyle": "wp-block-post-author-editor",
|
|
69
82
|
"style": "wp-block-post-author"
|
|
70
83
|
}
|
package/src/post-author/edit.js
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
PanelBody,
|
|
19
19
|
SelectControl,
|
|
20
20
|
ToggleControl,
|
|
21
|
+
__experimentalVStack as VStack,
|
|
21
22
|
} from '@wordpress/components';
|
|
22
23
|
import { useSelect, useDispatch } from '@wordpress/data';
|
|
23
24
|
import { __ } from '@wordpress/i18n';
|
|
@@ -100,72 +101,82 @@ function PostAuthorEdit( {
|
|
|
100
101
|
<>
|
|
101
102
|
<InspectorControls>
|
|
102
103
|
<PanelBody title={ __( 'Settings' ) }>
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
104
|
+
<VStack
|
|
105
|
+
spacing={ 4 }
|
|
106
|
+
className="wp-block-post-author__inspector-settings"
|
|
107
|
+
>
|
|
108
|
+
{ showAuthorControl &&
|
|
109
|
+
( ( showCombobox && (
|
|
110
|
+
<ComboboxControl
|
|
111
|
+
__next40pxDefaultSize
|
|
112
|
+
__nextHasNoMarginBottom
|
|
113
|
+
label={ __( 'Author' ) }
|
|
114
|
+
options={ authorOptions }
|
|
115
|
+
value={ authorId }
|
|
116
|
+
onChange={ handleSelect }
|
|
117
|
+
allowReset={ false }
|
|
118
|
+
/>
|
|
119
|
+
) ) || (
|
|
120
|
+
<SelectControl
|
|
121
|
+
__next40pxDefaultSize
|
|
122
|
+
__nextHasNoMarginBottom
|
|
123
|
+
label={ __( 'Author' ) }
|
|
124
|
+
value={ authorId }
|
|
125
|
+
options={ authorOptions }
|
|
126
|
+
onChange={ handleSelect }
|
|
127
|
+
/>
|
|
128
|
+
) ) }
|
|
129
|
+
<ToggleControl
|
|
130
|
+
__nextHasNoMarginBottom
|
|
131
|
+
label={ __( 'Show avatar' ) }
|
|
132
|
+
checked={ showAvatar }
|
|
133
|
+
onChange={ () =>
|
|
134
|
+
setAttributes( { showAvatar: ! showAvatar } )
|
|
135
|
+
}
|
|
136
|
+
/>
|
|
137
|
+
{ showAvatar && (
|
|
114
138
|
<SelectControl
|
|
139
|
+
__next40pxDefaultSize
|
|
115
140
|
__nextHasNoMarginBottom
|
|
116
|
-
label={ __( '
|
|
117
|
-
value={
|
|
118
|
-
options={
|
|
119
|
-
onChange={
|
|
141
|
+
label={ __( 'Avatar size' ) }
|
|
142
|
+
value={ attributes.avatarSize }
|
|
143
|
+
options={ avatarSizes }
|
|
144
|
+
onChange={ ( size ) => {
|
|
145
|
+
setAttributes( {
|
|
146
|
+
avatarSize: Number( size ),
|
|
147
|
+
} );
|
|
148
|
+
} }
|
|
120
149
|
/>
|
|
121
|
-
)
|
|
122
|
-
|
|
123
|
-
__nextHasNoMarginBottom
|
|
124
|
-
label={ __( 'Show avatar' ) }
|
|
125
|
-
checked={ showAvatar }
|
|
126
|
-
onChange={ () =>
|
|
127
|
-
setAttributes( { showAvatar: ! showAvatar } )
|
|
128
|
-
}
|
|
129
|
-
/>
|
|
130
|
-
{ showAvatar && (
|
|
131
|
-
<SelectControl
|
|
150
|
+
) }
|
|
151
|
+
<ToggleControl
|
|
132
152
|
__nextHasNoMarginBottom
|
|
133
|
-
label={ __( '
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
avatarSize: Number( size ),
|
|
139
|
-
} );
|
|
140
|
-
} }
|
|
153
|
+
label={ __( 'Show bio' ) }
|
|
154
|
+
checked={ showBio }
|
|
155
|
+
onChange={ () =>
|
|
156
|
+
setAttributes( { showBio: ! showBio } )
|
|
157
|
+
}
|
|
141
158
|
/>
|
|
142
|
-
) }
|
|
143
|
-
<ToggleControl
|
|
144
|
-
__nextHasNoMarginBottom
|
|
145
|
-
label={ __( 'Show bio' ) }
|
|
146
|
-
checked={ showBio }
|
|
147
|
-
onChange={ () =>
|
|
148
|
-
setAttributes( { showBio: ! showBio } )
|
|
149
|
-
}
|
|
150
|
-
/>
|
|
151
|
-
<ToggleControl
|
|
152
|
-
__nextHasNoMarginBottom
|
|
153
|
-
label={ __( 'Link author name to author page' ) }
|
|
154
|
-
checked={ isLink }
|
|
155
|
-
onChange={ () => setAttributes( { isLink: ! isLink } ) }
|
|
156
|
-
/>
|
|
157
|
-
{ isLink && (
|
|
158
159
|
<ToggleControl
|
|
159
160
|
__nextHasNoMarginBottom
|
|
160
|
-
label={ __( '
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
} )
|
|
161
|
+
label={ __( 'Link author name to author page' ) }
|
|
162
|
+
checked={ isLink }
|
|
163
|
+
onChange={ () =>
|
|
164
|
+
setAttributes( { isLink: ! isLink } )
|
|
165
165
|
}
|
|
166
|
-
checked={ linkTarget === '_blank' }
|
|
167
166
|
/>
|
|
168
|
-
|
|
167
|
+
{ isLink && (
|
|
168
|
+
<ToggleControl
|
|
169
|
+
__nextHasNoMarginBottom
|
|
170
|
+
label={ __( 'Open in new tab' ) }
|
|
171
|
+
onChange={ ( value ) =>
|
|
172
|
+
setAttributes( {
|
|
173
|
+
linkTarget: value ? '_blank' : '_self',
|
|
174
|
+
} )
|
|
175
|
+
}
|
|
176
|
+
checked={ linkTarget === '_blank' }
|
|
177
|
+
/>
|
|
178
|
+
) }
|
|
179
|
+
</VStack>
|
|
169
180
|
</PanelBody>
|
|
170
181
|
</InspectorControls>
|
|
171
182
|
|
|
@@ -43,6 +43,19 @@
|
|
|
43
43
|
},
|
|
44
44
|
"interactivity": {
|
|
45
45
|
"clientNavigation": true
|
|
46
|
+
},
|
|
47
|
+
"__experimentalBorder": {
|
|
48
|
+
"radius": true,
|
|
49
|
+
"color": true,
|
|
50
|
+
"width": true,
|
|
51
|
+
"style": true,
|
|
52
|
+
"__experimentalDefaultControls": {
|
|
53
|
+
"radius": true,
|
|
54
|
+
"color": true,
|
|
55
|
+
"width": true,
|
|
56
|
+
"style": true
|
|
57
|
+
}
|
|
46
58
|
}
|
|
47
|
-
}
|
|
59
|
+
},
|
|
60
|
+
"style": "wp-block-post-author-biography"
|
|
48
61
|
}
|
|
@@ -53,6 +53,19 @@
|
|
|
53
53
|
},
|
|
54
54
|
"interactivity": {
|
|
55
55
|
"clientNavigation": true
|
|
56
|
+
},
|
|
57
|
+
"__experimentalBorder": {
|
|
58
|
+
"radius": true,
|
|
59
|
+
"color": true,
|
|
60
|
+
"width": true,
|
|
61
|
+
"style": true,
|
|
62
|
+
"__experimentalDefaultControls": {
|
|
63
|
+
"radius": true,
|
|
64
|
+
"color": true,
|
|
65
|
+
"width": true,
|
|
66
|
+
"style": true
|
|
67
|
+
}
|
|
56
68
|
}
|
|
57
|
-
}
|
|
69
|
+
},
|
|
70
|
+
"style": "wp-block-post-author-name"
|
|
58
71
|
}
|
package/src/post-comment/edit.js
CHANGED
|
@@ -34,6 +34,7 @@ export default function Edit( { attributes: { commentId }, setAttributes } ) {
|
|
|
34
34
|
) }
|
|
35
35
|
>
|
|
36
36
|
<TextControl
|
|
37
|
+
__next40pxDefaultSize
|
|
37
38
|
__nextHasNoMarginBottom
|
|
38
39
|
value={ commentId }
|
|
39
40
|
onChange={ ( val ) =>
|
|
@@ -42,6 +43,7 @@ export default function Edit( { attributes: { commentId }, setAttributes } ) {
|
|
|
42
43
|
/>
|
|
43
44
|
|
|
44
45
|
<Button
|
|
46
|
+
__next40pxDefaultSize
|
|
45
47
|
variant="primary"
|
|
46
48
|
onClick={ () => {
|
|
47
49
|
setAttributes( { commentId: commentIdInput } );
|
|
@@ -37,6 +37,18 @@
|
|
|
37
37
|
"__experimentalDefaultControls": {
|
|
38
38
|
"fontSize": true
|
|
39
39
|
}
|
|
40
|
+
},
|
|
41
|
+
"__experimentalBorder": {
|
|
42
|
+
"radius": true,
|
|
43
|
+
"color": true,
|
|
44
|
+
"width": true,
|
|
45
|
+
"style": true,
|
|
46
|
+
"__experimentalDefaultControls": {
|
|
47
|
+
"radius": true,
|
|
48
|
+
"color": true,
|
|
49
|
+
"width": true,
|
|
50
|
+
"style": true
|
|
51
|
+
}
|
|
40
52
|
}
|
|
41
53
|
},
|
|
42
54
|
"editorStyle": "wp-block-post-comments-form-editor",
|
package/src/post-date/block.json
CHANGED
|
@@ -56,6 +56,18 @@
|
|
|
56
56
|
},
|
|
57
57
|
"interactivity": {
|
|
58
58
|
"clientNavigation": true
|
|
59
|
+
},
|
|
60
|
+
"__experimentalBorder": {
|
|
61
|
+
"radius": true,
|
|
62
|
+
"color": true,
|
|
63
|
+
"width": true,
|
|
64
|
+
"style": true,
|
|
65
|
+
"__experimentalDefaultControls": {
|
|
66
|
+
"radius": true,
|
|
67
|
+
"color": true,
|
|
68
|
+
"width": true,
|
|
69
|
+
"style": true
|
|
70
|
+
}
|
|
59
71
|
}
|
|
60
72
|
}
|
|
61
73
|
}
|
|
@@ -56,6 +56,18 @@
|
|
|
56
56
|
},
|
|
57
57
|
"interactivity": {
|
|
58
58
|
"clientNavigation": true
|
|
59
|
+
},
|
|
60
|
+
"__experimentalBorder": {
|
|
61
|
+
"radius": true,
|
|
62
|
+
"color": true,
|
|
63
|
+
"width": true,
|
|
64
|
+
"style": true,
|
|
65
|
+
"__experimentalDefaultControls": {
|
|
66
|
+
"radius": true,
|
|
67
|
+
"color": true,
|
|
68
|
+
"width": true,
|
|
69
|
+
"style": true
|
|
70
|
+
}
|
|
59
71
|
}
|
|
60
72
|
},
|
|
61
73
|
"editorStyle": "wp-block-post-excerpt-editor",
|
package/src/post-excerpt/edit.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// Lowest specificity on wrapper margins to avoid overriding layout styles.
|
|
2
2
|
:where(.wp-block-post-excerpt) {
|
|
3
|
+
// This block has customizable padding, border-box makes that more predictable.
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
|
|
3
6
|
margin-top: var(--wp--style--block-gap);
|
|
4
7
|
margin-bottom: var(--wp--style--block-gap);
|
|
5
8
|
}
|
|
@@ -134,6 +134,8 @@ const DimensionControls = ( {
|
|
|
134
134
|
panelId={ clientId }
|
|
135
135
|
>
|
|
136
136
|
<SelectControl
|
|
137
|
+
// TODO: Switch to `true` (40px size) if possible
|
|
138
|
+
__next40pxDefaultSize={ false }
|
|
137
139
|
__nextHasNoMarginBottom
|
|
138
140
|
label={ __( 'Aspect ratio' ) }
|
|
139
141
|
value={ aspectRatio }
|
|
@@ -203,6 +205,7 @@ const DimensionControls = ( {
|
|
|
203
205
|
panelId={ clientId }
|
|
204
206
|
>
|
|
205
207
|
<ToggleGroupControl
|
|
208
|
+
__next40pxDefaultSize
|
|
206
209
|
__nextHasNoMarginBottom
|
|
207
210
|
label={ scaleLabel }
|
|
208
211
|
value={ scale }
|
|
@@ -232,6 +235,8 @@ const DimensionControls = ( {
|
|
|
232
235
|
panelId={ clientId }
|
|
233
236
|
>
|
|
234
237
|
<SelectControl
|
|
238
|
+
// TODO: Switch to `true` (40px size) if possible
|
|
239
|
+
__next40pxDefaultSize={ false }
|
|
235
240
|
__nextHasNoMarginBottom
|
|
236
241
|
label={ __( 'Resolution' ) }
|
|
237
242
|
value={ sizeSlug || DEFAULT_SIZE }
|
|
@@ -49,8 +49,11 @@ export default function PostNavigationLinkEdit( {
|
|
|
49
49
|
const displayArrow = arrowMap[ arrow ];
|
|
50
50
|
|
|
51
51
|
if ( showTitle ) {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
placeholder = isNext
|
|
53
|
+
? /* translators: Label before for next and previous post. There is a space after the colon. */
|
|
54
|
+
__( 'Next: ' ) // eslint-disable-line @wordpress/i18n-no-flanking-whitespace
|
|
55
|
+
: /* translators: Label before for next and previous post. There is a space after the colon. */
|
|
56
|
+
__( 'Previous: ' ); // eslint-disable-line @wordpress/i18n-no-flanking-whitespace
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
const ariaLabel = isNext ? __( 'Next post' ) : __( 'Previous post' );
|
|
@@ -120,6 +123,7 @@ export default function PostNavigationLinkEdit( {
|
|
|
120
123
|
/>
|
|
121
124
|
) }
|
|
122
125
|
<ToggleGroupControl
|
|
126
|
+
__next40pxDefaultSize
|
|
123
127
|
__nextHasNoMarginBottom
|
|
124
128
|
label={ __( 'Arrow' ) }
|
|
125
129
|
value={ arrow }
|
|
@@ -157,6 +161,8 @@ export default function PostNavigationLinkEdit( {
|
|
|
157
161
|
</InspectorControls>
|
|
158
162
|
<InspectorControls group="advanced">
|
|
159
163
|
<SelectControl
|
|
164
|
+
__next40pxDefaultSize
|
|
165
|
+
__nextHasNoMarginBottom
|
|
160
166
|
label={ __( 'Filter by taxonomy' ) }
|
|
161
167
|
value={ taxonomy }
|
|
162
168
|
options={ getTaxonomyOptions() }
|
|
@@ -60,6 +60,18 @@
|
|
|
60
60
|
},
|
|
61
61
|
"interactivity": {
|
|
62
62
|
"clientNavigation": true
|
|
63
|
+
},
|
|
64
|
+
"__experimentalBorder": {
|
|
65
|
+
"radius": true,
|
|
66
|
+
"color": true,
|
|
67
|
+
"width": true,
|
|
68
|
+
"style": true,
|
|
69
|
+
"__experimentalDefaultControls": {
|
|
70
|
+
"radius": true,
|
|
71
|
+
"color": true,
|
|
72
|
+
"width": true,
|
|
73
|
+
"style": true
|
|
74
|
+
}
|
|
63
75
|
}
|
|
64
76
|
},
|
|
65
77
|
"style": "wp-block-post-terms"
|
package/src/post-terms/edit.js
CHANGED
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
"type": "number",
|
|
16
16
|
"default": 2
|
|
17
17
|
},
|
|
18
|
+
"levelOptions": {
|
|
19
|
+
"type": "array"
|
|
20
|
+
},
|
|
18
21
|
"isLink": {
|
|
19
22
|
"type": "boolean",
|
|
20
23
|
"default": false
|
|
@@ -63,6 +66,18 @@
|
|
|
63
66
|
},
|
|
64
67
|
"interactivity": {
|
|
65
68
|
"clientNavigation": true
|
|
69
|
+
},
|
|
70
|
+
"__experimentalBorder": {
|
|
71
|
+
"radius": true,
|
|
72
|
+
"color": true,
|
|
73
|
+
"width": true,
|
|
74
|
+
"style": true,
|
|
75
|
+
"__experimentalDefaultControls": {
|
|
76
|
+
"radius": true,
|
|
77
|
+
"color": true,
|
|
78
|
+
"width": true,
|
|
79
|
+
"style": true
|
|
80
|
+
}
|
|
66
81
|
}
|
|
67
82
|
},
|
|
68
83
|
"style": "wp-block-post-title"
|
package/src/post-title/edit.js
CHANGED
|
@@ -22,7 +22,7 @@ import { useEntityProp, store as coreStore } from '@wordpress/core-data';
|
|
|
22
22
|
import { useSelect } from '@wordpress/data';
|
|
23
23
|
|
|
24
24
|
export default function PostTitleEdit( {
|
|
25
|
-
attributes: { level, textAlign, isLink, rel, linkTarget },
|
|
25
|
+
attributes: { level, levelOptions, textAlign, isLink, rel, linkTarget },
|
|
26
26
|
setAttributes,
|
|
27
27
|
context: { postType, postId, queryId },
|
|
28
28
|
insertBlocksAfter,
|
|
@@ -73,7 +73,7 @@ export default function PostTitleEdit( {
|
|
|
73
73
|
titleElement = userCanEdit ? (
|
|
74
74
|
<PlainText
|
|
75
75
|
tagName={ TagName }
|
|
76
|
-
placeholder={ __( 'No
|
|
76
|
+
placeholder={ __( 'No title' ) }
|
|
77
77
|
value={ rawTitle }
|
|
78
78
|
onChange={ setTitle }
|
|
79
79
|
__experimentalVersion={ 2 }
|
|
@@ -96,7 +96,7 @@ export default function PostTitleEdit( {
|
|
|
96
96
|
href={ link }
|
|
97
97
|
target={ linkTarget }
|
|
98
98
|
rel={ rel }
|
|
99
|
-
placeholder={ ! rawTitle.length ? __( 'No
|
|
99
|
+
placeholder={ ! rawTitle.length ? __( 'No title' ) : null }
|
|
100
100
|
value={ rawTitle }
|
|
101
101
|
onChange={ setTitle }
|
|
102
102
|
__experimentalVersion={ 2 }
|
|
@@ -125,6 +125,7 @@ export default function PostTitleEdit( {
|
|
|
125
125
|
<BlockControls group="block">
|
|
126
126
|
<HeadingLevelDropdown
|
|
127
127
|
value={ level }
|
|
128
|
+
options={ levelOptions }
|
|
128
129
|
onChange={ ( newLevel ) =>
|
|
129
130
|
setAttributes( { level: newLevel } )
|
|
130
131
|
}
|
|
@@ -161,6 +162,7 @@ export default function PostTitleEdit( {
|
|
|
161
162
|
checked={ linkTarget === '_blank' }
|
|
162
163
|
/>
|
|
163
164
|
<TextControl
|
|
165
|
+
__next40pxDefaultSize
|
|
164
166
|
__nextHasNoMarginBottom
|
|
165
167
|
label={ __( 'Link rel' ) }
|
|
166
168
|
value={ rel }
|
|
@@ -43,6 +43,18 @@
|
|
|
43
43
|
},
|
|
44
44
|
"interactivity": {
|
|
45
45
|
"clientNavigation": true
|
|
46
|
+
},
|
|
47
|
+
"__experimentalBorder": {
|
|
48
|
+
"radius": true,
|
|
49
|
+
"color": true,
|
|
50
|
+
"width": true,
|
|
51
|
+
"style": true,
|
|
52
|
+
"__experimentalDefaultControls": {
|
|
53
|
+
"radius": true,
|
|
54
|
+
"color": true,
|
|
55
|
+
"width": true,
|
|
56
|
+
"style": true
|
|
57
|
+
}
|
|
46
58
|
}
|
|
47
59
|
},
|
|
48
60
|
"style": "wp-block-preformatted"
|