@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/site-logo/edit.js
CHANGED
|
@@ -348,14 +348,29 @@ const SiteLogo = ( {
|
|
|
348
348
|
|
|
349
349
|
// This is a light wrapper around MediaReplaceFlow because the block has two
|
|
350
350
|
// different MediaReplaceFlows, one for the inspector and one for the toolbar.
|
|
351
|
-
function SiteLogoReplaceFlow( {
|
|
351
|
+
function SiteLogoReplaceFlow( {
|
|
352
|
+
mediaURL,
|
|
353
|
+
onRemoveLogo,
|
|
354
|
+
...mediaReplaceProps
|
|
355
|
+
} ) {
|
|
352
356
|
return (
|
|
353
357
|
<MediaReplaceFlow
|
|
354
358
|
{ ...mediaReplaceProps }
|
|
355
359
|
allowedTypes={ ALLOWED_MEDIA_TYPES }
|
|
356
360
|
accept={ ACCEPT_MEDIA_STRING }
|
|
357
361
|
>
|
|
358
|
-
|
|
362
|
+
{ ( { onClose } ) =>
|
|
363
|
+
mediaURL && (
|
|
364
|
+
<MenuItem
|
|
365
|
+
onClick={ () => {
|
|
366
|
+
onRemoveLogo();
|
|
367
|
+
onClose();
|
|
368
|
+
} }
|
|
369
|
+
>
|
|
370
|
+
{ __( 'Reset' ) }
|
|
371
|
+
</MenuItem>
|
|
372
|
+
)
|
|
373
|
+
}
|
|
359
374
|
</MediaReplaceFlow>
|
|
360
375
|
);
|
|
361
376
|
}
|
|
@@ -392,7 +407,6 @@ export default function LogoEdit( {
|
|
|
392
407
|
isSelected,
|
|
393
408
|
} ) {
|
|
394
409
|
const { width, shouldSyncIcon } = attributes;
|
|
395
|
-
|
|
396
410
|
const {
|
|
397
411
|
siteLogoId,
|
|
398
412
|
canUserEdit,
|
|
@@ -515,16 +529,18 @@ export default function LogoEdit( {
|
|
|
515
529
|
onInitialSelectLogo( image );
|
|
516
530
|
},
|
|
517
531
|
onError: onUploadError,
|
|
532
|
+
onRemoveLogo,
|
|
518
533
|
} );
|
|
519
534
|
};
|
|
520
535
|
|
|
521
536
|
const mediaReplaceFlowProps = {
|
|
522
537
|
mediaURL: logoUrl,
|
|
538
|
+
name: ! logoUrl ? __( 'Choose logo' ) : __( 'Replace' ),
|
|
523
539
|
onSelect: onSelectLogo,
|
|
524
540
|
onError: onUploadError,
|
|
525
541
|
onRemoveLogo,
|
|
526
542
|
};
|
|
527
|
-
const controls = canUserEdit &&
|
|
543
|
+
const controls = canUserEdit && (
|
|
528
544
|
<BlockControls group="other">
|
|
529
545
|
<SiteLogoReplaceFlow { ...mediaReplaceFlowProps } />
|
|
530
546
|
</BlockControls>
|
|
@@ -590,8 +606,6 @@ export default function LogoEdit( {
|
|
|
590
606
|
|
|
591
607
|
const blockProps = useBlockProps( { className: classes } );
|
|
592
608
|
|
|
593
|
-
const label = __( 'Add a site logo' );
|
|
594
|
-
|
|
595
609
|
const mediaInspectorPanel = ( canUserEdit || logoUrl ) && (
|
|
596
610
|
<InspectorControls>
|
|
597
611
|
<PanelBody title={ __( 'Media' ) }>
|
|
@@ -631,7 +645,7 @@ export default function LogoEdit( {
|
|
|
631
645
|
{ isLoading ? (
|
|
632
646
|
<Spinner />
|
|
633
647
|
) : (
|
|
634
|
-
__( '
|
|
648
|
+
__( 'Choose logo' )
|
|
635
649
|
) }
|
|
636
650
|
</Button>
|
|
637
651
|
<DropZone onFilesDrop={ onFilesDrop } />
|
|
@@ -671,9 +685,9 @@ export default function LogoEdit( {
|
|
|
671
685
|
<Button
|
|
672
686
|
icon={ upload }
|
|
673
687
|
variant="primary"
|
|
674
|
-
label={
|
|
688
|
+
label={ __( 'Choose logo' ) }
|
|
675
689
|
showTooltip
|
|
676
|
-
tooltipPosition="
|
|
690
|
+
tooltipPosition="middle right"
|
|
677
691
|
onClick={ () => {
|
|
678
692
|
open();
|
|
679
693
|
} }
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
"level": {
|
|
15
15
|
"type": "number",
|
|
16
16
|
"default": 0
|
|
17
|
+
},
|
|
18
|
+
"levelOptions": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"default": [ 0, 1, 2, 3, 4, 5, 6 ]
|
|
17
21
|
}
|
|
18
22
|
},
|
|
19
23
|
"example": {
|
|
@@ -56,7 +60,14 @@
|
|
|
56
60
|
},
|
|
57
61
|
"interactivity": {
|
|
58
62
|
"clientNavigation": true
|
|
63
|
+
},
|
|
64
|
+
"__experimentalBorder": {
|
|
65
|
+
"radius": true,
|
|
66
|
+
"color": true,
|
|
67
|
+
"width": true,
|
|
68
|
+
"style": true
|
|
59
69
|
}
|
|
60
70
|
},
|
|
61
|
-
"editorStyle": "wp-block-site-tagline-editor"
|
|
71
|
+
"editorStyle": "wp-block-site-tagline-editor",
|
|
72
|
+
"style": "wp-block-site-tagline"
|
|
62
73
|
}
|
package/src/site-tagline/edit.js
CHANGED
|
@@ -18,14 +18,12 @@ import {
|
|
|
18
18
|
import { __ } from '@wordpress/i18n';
|
|
19
19
|
import { createBlock, getDefaultBlockName } from '@wordpress/blocks';
|
|
20
20
|
|
|
21
|
-
const HEADING_LEVELS = [ 0, 1, 2, 3, 4, 5, 6 ];
|
|
22
|
-
|
|
23
21
|
export default function SiteTaglineEdit( {
|
|
24
22
|
attributes,
|
|
25
23
|
setAttributes,
|
|
26
24
|
insertBlocksAfter,
|
|
27
25
|
} ) {
|
|
28
|
-
const { textAlign, level } = attributes;
|
|
26
|
+
const { textAlign, level, levelOptions } = attributes;
|
|
29
27
|
const { canUserEdit, tagline } = useSelect( ( select ) => {
|
|
30
28
|
const { canUser, getEntityRecord, getEditedEntityRecord } =
|
|
31
29
|
select( coreStore );
|
|
@@ -82,8 +80,8 @@ export default function SiteTaglineEdit( {
|
|
|
82
80
|
<>
|
|
83
81
|
<BlockControls group="block">
|
|
84
82
|
<HeadingLevelDropdown
|
|
85
|
-
options={ HEADING_LEVELS }
|
|
86
83
|
value={ level }
|
|
84
|
+
options={ levelOptions }
|
|
87
85
|
onChange={ ( newLevel ) =>
|
|
88
86
|
setAttributes( { level: newLevel } )
|
|
89
87
|
}
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"type": "number",
|
|
12
12
|
"default": 1
|
|
13
13
|
},
|
|
14
|
+
"levelOptions": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"default": [ 0, 1, 2, 3, 4, 5, 6 ]
|
|
17
|
+
},
|
|
14
18
|
"textAlign": {
|
|
15
19
|
"type": "string"
|
|
16
20
|
},
|
|
@@ -62,6 +66,12 @@
|
|
|
62
66
|
},
|
|
63
67
|
"interactivity": {
|
|
64
68
|
"clientNavigation": true
|
|
69
|
+
},
|
|
70
|
+
"__experimentalBorder": {
|
|
71
|
+
"radius": true,
|
|
72
|
+
"color": true,
|
|
73
|
+
"width": true,
|
|
74
|
+
"style": true
|
|
65
75
|
}
|
|
66
76
|
},
|
|
67
77
|
"editorStyle": "wp-block-site-title-editor",
|
package/src/site-title/edit.js
CHANGED
|
@@ -21,14 +21,12 @@ import { ToggleControl, PanelBody } from '@wordpress/components';
|
|
|
21
21
|
import { createBlock, getDefaultBlockName } from '@wordpress/blocks';
|
|
22
22
|
import { decodeEntities } from '@wordpress/html-entities';
|
|
23
23
|
|
|
24
|
-
const HEADING_LEVELS = [ 0, 1, 2, 3, 4, 5, 6 ];
|
|
25
|
-
|
|
26
24
|
export default function SiteTitleEdit( {
|
|
27
25
|
attributes,
|
|
28
26
|
setAttributes,
|
|
29
27
|
insertBlocksAfter,
|
|
30
28
|
} ) {
|
|
31
|
-
const { level, textAlign, isLink, linkTarget } = attributes;
|
|
29
|
+
const { level, levelOptions, textAlign, isLink, linkTarget } = attributes;
|
|
32
30
|
const { canUserEdit, title } = useSelect( ( select ) => {
|
|
33
31
|
const { canUser, getEntityRecord, getEditedEntityRecord } =
|
|
34
32
|
select( coreStore );
|
|
@@ -97,8 +95,8 @@ export default function SiteTitleEdit( {
|
|
|
97
95
|
<>
|
|
98
96
|
<BlockControls group="block">
|
|
99
97
|
<HeadingLevelDropdown
|
|
100
|
-
options={ HEADING_LEVELS }
|
|
101
98
|
value={ level }
|
|
99
|
+
options={ levelOptions }
|
|
102
100
|
onChange={ ( newLevel ) =>
|
|
103
101
|
setAttributes( { level: newLevel } )
|
|
104
102
|
}
|
package/src/social-link/edit.js
CHANGED
|
@@ -58,7 +58,6 @@ const SocialLinkURLPopover = ( {
|
|
|
58
58
|
>
|
|
59
59
|
<div className="block-editor-url-input">
|
|
60
60
|
<URLInput
|
|
61
|
-
__nextHasNoMarginBottom
|
|
62
61
|
value={ url }
|
|
63
62
|
onChange={ ( nextURL ) =>
|
|
64
63
|
setAttributes( { url: nextURL } )
|
|
@@ -140,6 +139,7 @@ const SocialLinkEdit = ( {
|
|
|
140
139
|
<PanelBody title={ __( 'Settings' ) }>
|
|
141
140
|
<PanelRow>
|
|
142
141
|
<TextControl
|
|
142
|
+
__next40pxDefaultSize
|
|
143
143
|
__nextHasNoMarginBottom
|
|
144
144
|
label={ __( 'Text' ) }
|
|
145
145
|
help={ __(
|
|
@@ -156,6 +156,7 @@ const SocialLinkEdit = ( {
|
|
|
156
156
|
</InspectorControls>
|
|
157
157
|
<InspectorControls group="advanced">
|
|
158
158
|
<TextControl
|
|
159
|
+
__next40pxDefaultSize
|
|
159
160
|
__nextHasNoMarginBottom
|
|
160
161
|
label={ __( 'Link rel' ) }
|
|
161
162
|
value={ rel || '' }
|
package/src/spacer/controls.js
CHANGED
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
privateApis as blockEditorPrivateApis,
|
|
11
11
|
} from '@wordpress/block-editor';
|
|
12
12
|
import {
|
|
13
|
-
BaseControl,
|
|
14
13
|
PanelBody,
|
|
15
14
|
__experimentalUseCustomUnits as useCustomUnits,
|
|
16
15
|
__experimentalUnitControl as UnitControl,
|
|
@@ -57,19 +56,17 @@ function DimensionInput( { label, onChange, isResizing, value = '' } ) {
|
|
|
57
56
|
return (
|
|
58
57
|
<>
|
|
59
58
|
{ ( ! spacingSizes || spacingSizes?.length === 0 ) && (
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
</BaseControl>
|
|
59
|
+
<UnitControl
|
|
60
|
+
id={ inputId }
|
|
61
|
+
isResetValueOnUnitChange
|
|
62
|
+
min={ MIN_SPACER_SIZE }
|
|
63
|
+
onChange={ handleOnChange }
|
|
64
|
+
value={ computedValue }
|
|
65
|
+
units={ units }
|
|
66
|
+
label={ label }
|
|
67
|
+
__next40pxDefaultSize
|
|
68
|
+
/>
|
|
71
69
|
) }
|
|
72
|
-
|
|
73
70
|
{ spacingSizes?.length > 0 && (
|
|
74
71
|
<View className="tools-panel-item-spacing">
|
|
75
72
|
<SpacingSizesControl
|
package/src/style.scss
CHANGED
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
@import "./comments/style.scss";
|
|
11
11
|
@import "./comments-pagination/style.scss";
|
|
12
12
|
@import "./comment-template/style.scss";
|
|
13
|
+
@import "./comment-date/style.scss";
|
|
14
|
+
@import "./comment-content/style.scss";
|
|
15
|
+
@import "./comment-author-name/style.scss";
|
|
13
16
|
@import "./cover/style.scss";
|
|
14
17
|
@import "./details/style.scss";
|
|
15
18
|
@import "./embed/style.scss";
|
|
@@ -22,13 +25,16 @@
|
|
|
22
25
|
@import "./latest-comments/style.scss";
|
|
23
26
|
@import "./latest-posts/style.scss";
|
|
24
27
|
@import "./list/style.scss";
|
|
28
|
+
@import "./loginout/style.scss";
|
|
25
29
|
@import "./media-text/style.scss";
|
|
26
30
|
@import "./navigation/style.scss";
|
|
27
31
|
@import "./navigation-link/style.scss";
|
|
28
32
|
@import "./page-list/style.scss";
|
|
29
33
|
@import "./paragraph/style.scss";
|
|
30
34
|
@import "./post-author/style.scss";
|
|
35
|
+
@import "./post-author-biography/style.scss";
|
|
31
36
|
@import "./post-comments-form/style.scss";
|
|
37
|
+
@import "./post-content/style.scss";
|
|
32
38
|
@import "./post-date/style.scss";
|
|
33
39
|
@import "./post-excerpt/style.scss";
|
|
34
40
|
@import "./post-featured-image/style.scss";
|
|
@@ -36,6 +42,7 @@
|
|
|
36
42
|
@import "./post-terms/style.scss";
|
|
37
43
|
@import "./post-time-to-read/style.scss";
|
|
38
44
|
@import "./post-title/style.scss";
|
|
45
|
+
@import "./post-author-name/style.scss";
|
|
39
46
|
@import "./preformatted/style.scss";
|
|
40
47
|
@import "./pullquote/style.scss";
|
|
41
48
|
@import "./post-template/style.scss";
|
|
@@ -47,11 +54,13 @@
|
|
|
47
54
|
@import "./search/style.scss";
|
|
48
55
|
@import "./separator/style.scss";
|
|
49
56
|
@import "./site-logo/style.scss";
|
|
57
|
+
@import "./site-tagline/style.scss";
|
|
50
58
|
@import "./site-title/style.scss";
|
|
51
59
|
@import "./social-links/style.scss";
|
|
52
60
|
@import "./spacer/style.scss";
|
|
53
61
|
@import "./tag-cloud/style.scss";
|
|
54
62
|
@import "./table/style.scss";
|
|
63
|
+
@import "./table-of-contents/style.scss";
|
|
55
64
|
@import "./term-description/style.scss";
|
|
56
65
|
@import "./text-columns/style.scss";
|
|
57
66
|
@import "./verse/style.scss";
|
package/src/table/edit.js
CHANGED
|
@@ -95,7 +95,7 @@ function TableEdit( {
|
|
|
95
95
|
attributes,
|
|
96
96
|
setAttributes,
|
|
97
97
|
insertBlocksAfter,
|
|
98
|
-
isSelected,
|
|
98
|
+
isSelected: isSingleSelected,
|
|
99
99
|
} ) {
|
|
100
100
|
const { hasFixedLayout, head, foot } = attributes;
|
|
101
101
|
const [ initialRowCount, setInitialRowCount ] = useState( 2 );
|
|
@@ -340,10 +340,10 @@ function TableEdit( {
|
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
useEffect( () => {
|
|
343
|
-
if ( !
|
|
343
|
+
if ( ! isSingleSelected ) {
|
|
344
344
|
setSelectedCell();
|
|
345
345
|
}
|
|
346
|
-
}, [
|
|
346
|
+
}, [ isSingleSelected ] );
|
|
347
347
|
|
|
348
348
|
useEffect( () => {
|
|
349
349
|
if ( hasTableCreated ) {
|
|
@@ -565,9 +565,10 @@ function TableEdit( {
|
|
|
565
565
|
<Caption
|
|
566
566
|
attributes={ attributes }
|
|
567
567
|
setAttributes={ setAttributes }
|
|
568
|
-
isSelected={
|
|
568
|
+
isSelected={ isSingleSelected }
|
|
569
569
|
insertBlocksAfter={ insertBlocksAfter }
|
|
570
570
|
label={ __( 'Table caption text' ) }
|
|
571
|
+
showToolbarButton={ isSingleSelected }
|
|
571
572
|
/>
|
|
572
573
|
) }
|
|
573
574
|
</figure>
|
|
@@ -48,7 +48,20 @@
|
|
|
48
48
|
},
|
|
49
49
|
"interactivity": {
|
|
50
50
|
"clientNavigation": true
|
|
51
|
+
},
|
|
52
|
+
"__experimentalBorder": {
|
|
53
|
+
"radius": true,
|
|
54
|
+
"color": true,
|
|
55
|
+
"width": true,
|
|
56
|
+
"style": true,
|
|
57
|
+
"__experimentalDefaultControls": {
|
|
58
|
+
"radius": true,
|
|
59
|
+
"color": true,
|
|
60
|
+
"width": true,
|
|
61
|
+
"style": true
|
|
62
|
+
}
|
|
51
63
|
}
|
|
52
64
|
},
|
|
53
|
-
"example": {}
|
|
65
|
+
"example": {},
|
|
66
|
+
"style": "wp-block-table-of-contents"
|
|
54
67
|
}
|
package/src/tag-cloud/block.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "core/tag-cloud",
|
|
5
5
|
"title": "Tag Cloud",
|
|
6
6
|
"category": "widgets",
|
|
7
|
-
"description": "A cloud of
|
|
7
|
+
"description": "A cloud of popular keywords, each sized by how often it appears.",
|
|
8
8
|
"textdomain": "default",
|
|
9
9
|
"attributes": {
|
|
10
10
|
"numberOfTags": {
|
|
@@ -51,6 +51,18 @@
|
|
|
51
51
|
},
|
|
52
52
|
"interactivity": {
|
|
53
53
|
"clientNavigation": true
|
|
54
|
+
},
|
|
55
|
+
"__experimentalBorder": {
|
|
56
|
+
"radius": true,
|
|
57
|
+
"color": true,
|
|
58
|
+
"width": true,
|
|
59
|
+
"style": true,
|
|
60
|
+
"__experimentalDefaultControls": {
|
|
61
|
+
"radius": true,
|
|
62
|
+
"color": true,
|
|
63
|
+
"width": true,
|
|
64
|
+
"style": true
|
|
65
|
+
}
|
|
54
66
|
}
|
|
55
67
|
},
|
|
56
68
|
"editorStyle": "wp-block-tag-cloud-editor"
|
package/src/tag-cloud/edit.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
__experimentalUnitControl as UnitControl,
|
|
12
12
|
__experimentalUseCustomUnits as useCustomUnits,
|
|
13
13
|
__experimentalParseQuantityAndUnitFromRawValue as parseQuantityAndUnitFromRawValue,
|
|
14
|
+
__experimentalVStack as VStack,
|
|
14
15
|
Disabled,
|
|
15
16
|
} from '@wordpress/components';
|
|
16
17
|
import { useSelect } from '@wordpress/data';
|
|
@@ -106,64 +107,87 @@ function TagCloudEdit( { attributes, setAttributes } ) {
|
|
|
106
107
|
setAttributes( updateObj );
|
|
107
108
|
};
|
|
108
109
|
|
|
110
|
+
// Remove border styles from the server-side attributes to prevent duplicate border.
|
|
111
|
+
const serverSideAttributes = {
|
|
112
|
+
...attributes,
|
|
113
|
+
style: {
|
|
114
|
+
...attributes?.style,
|
|
115
|
+
border: undefined,
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
|
|
109
119
|
const inspectorControls = (
|
|
110
120
|
<InspectorControls>
|
|
111
121
|
<PanelBody title={ __( 'Settings' ) }>
|
|
112
|
-
<
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
<
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
122
|
+
<VStack
|
|
123
|
+
spacing={ 4 }
|
|
124
|
+
className="wp-block-tag-cloud__inspector-settings"
|
|
125
|
+
>
|
|
126
|
+
<SelectControl
|
|
127
|
+
__nextHasNoMarginBottom
|
|
128
|
+
__next40pxDefaultSize
|
|
129
|
+
label={ __( 'Taxonomy' ) }
|
|
130
|
+
options={ getTaxonomyOptions() }
|
|
131
|
+
value={ taxonomy }
|
|
132
|
+
onChange={ ( selectedTaxonomy ) =>
|
|
133
|
+
setAttributes( { taxonomy: selectedTaxonomy } )
|
|
134
|
+
}
|
|
135
|
+
/>
|
|
136
|
+
<Flex gap={ 4 }>
|
|
137
|
+
<FlexItem isBlock>
|
|
138
|
+
<UnitControl
|
|
139
|
+
label={ __( 'Smallest size' ) }
|
|
140
|
+
value={ smallestFontSize }
|
|
141
|
+
onChange={ ( value ) => {
|
|
142
|
+
onFontSizeChange(
|
|
143
|
+
'smallestFontSize',
|
|
144
|
+
value
|
|
145
|
+
);
|
|
146
|
+
} }
|
|
147
|
+
units={ units }
|
|
148
|
+
min={ MIN_FONT_SIZE }
|
|
149
|
+
max={ MAX_FONT_SIZE }
|
|
150
|
+
size="__unstable-large"
|
|
151
|
+
/>
|
|
152
|
+
</FlexItem>
|
|
153
|
+
<FlexItem isBlock>
|
|
154
|
+
<UnitControl
|
|
155
|
+
label={ __( 'Largest size' ) }
|
|
156
|
+
value={ largestFontSize }
|
|
157
|
+
onChange={ ( value ) => {
|
|
158
|
+
onFontSizeChange(
|
|
159
|
+
'largestFontSize',
|
|
160
|
+
value
|
|
161
|
+
);
|
|
162
|
+
} }
|
|
163
|
+
units={ units }
|
|
164
|
+
min={ MIN_FONT_SIZE }
|
|
165
|
+
max={ MAX_FONT_SIZE }
|
|
166
|
+
size="__unstable-large"
|
|
167
|
+
/>
|
|
168
|
+
</FlexItem>
|
|
169
|
+
</Flex>
|
|
170
|
+
<RangeControl
|
|
171
|
+
__nextHasNoMarginBottom
|
|
172
|
+
__next40pxDefaultSize
|
|
173
|
+
label={ __( 'Number of tags' ) }
|
|
174
|
+
value={ numberOfTags }
|
|
175
|
+
onChange={ ( value ) =>
|
|
176
|
+
setAttributes( { numberOfTags: value } )
|
|
177
|
+
}
|
|
178
|
+
min={ MIN_TAGS }
|
|
179
|
+
max={ MAX_TAGS }
|
|
180
|
+
required
|
|
181
|
+
/>
|
|
182
|
+
<ToggleControl
|
|
183
|
+
__nextHasNoMarginBottom
|
|
184
|
+
label={ __( 'Show tag counts' ) }
|
|
185
|
+
checked={ showTagCounts }
|
|
186
|
+
onChange={ () =>
|
|
187
|
+
setAttributes( { showTagCounts: ! showTagCounts } )
|
|
188
|
+
}
|
|
189
|
+
/>
|
|
190
|
+
</VStack>
|
|
167
191
|
</PanelBody>
|
|
168
192
|
</InspectorControls>
|
|
169
193
|
);
|
|
@@ -176,7 +200,7 @@ function TagCloudEdit( { attributes, setAttributes } ) {
|
|
|
176
200
|
<ServerSideRender
|
|
177
201
|
skipBlockSupportAttributes
|
|
178
202
|
block="core/tag-cloud"
|
|
179
|
-
attributes={
|
|
203
|
+
attributes={ serverSideAttributes }
|
|
180
204
|
/>
|
|
181
205
|
</Disabled>
|
|
182
206
|
</div>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// The following styles are to prevent duplicate spacing and border for the tag cloud
|
|
2
|
+
// block in the editor given it uses server side rendering. The specificity
|
|
3
|
+
// must be higher than `0-1-0` to override global styles. Targeting the
|
|
4
|
+
// inner use of the .wp-block-tag-cloud class should minimize impact on
|
|
5
|
+
// other 3rd party styles targeting the block.
|
|
6
|
+
.wp-block-tag-cloud .wp-block-tag-cloud {
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
border: none;
|
|
10
|
+
border-radius: inherit;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.wp-block-tag-cloud__inspector-settings {
|
|
14
|
+
.components-base-control,
|
|
15
|
+
.components-base-control:last-child {
|
|
16
|
+
// Cancel out extra margins added by block inspector
|
|
17
|
+
margin-bottom: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -73,6 +73,7 @@ export function TemplatePartAdvancedControls( {
|
|
|
73
73
|
{ isEntityAvailable && (
|
|
74
74
|
<>
|
|
75
75
|
<TextControl
|
|
76
|
+
__next40pxDefaultSize
|
|
76
77
|
__nextHasNoMarginBottom
|
|
77
78
|
label={ __( 'Title' ) }
|
|
78
79
|
value={ title }
|
|
@@ -83,6 +84,7 @@ export function TemplatePartAdvancedControls( {
|
|
|
83
84
|
/>
|
|
84
85
|
|
|
85
86
|
<SelectControl
|
|
87
|
+
__next40pxDefaultSize
|
|
86
88
|
__nextHasNoMarginBottom
|
|
87
89
|
label={ __( 'Area' ) }
|
|
88
90
|
labelPosition="top"
|
|
@@ -128,7 +128,7 @@ export default function TemplatePartEdit( {
|
|
|
128
128
|
area,
|
|
129
129
|
onNavigateToEntityRecord,
|
|
130
130
|
title,
|
|
131
|
-
|
|
131
|
+
canUserEdit,
|
|
132
132
|
} = useSelect(
|
|
133
133
|
( select ) => {
|
|
134
134
|
const { getEditedEntityRecord, hasFinishedResolution } =
|
|
@@ -151,10 +151,13 @@ export default function TemplatePartEdit( {
|
|
|
151
151
|
)
|
|
152
152
|
: false;
|
|
153
153
|
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
const _canUserEdit = hasResolvedEntity
|
|
155
|
+
? select( coreStore ).canUser( 'update', {
|
|
156
|
+
kind: 'postType',
|
|
157
|
+
name: 'wp_template_part',
|
|
158
|
+
id: templatePartId,
|
|
159
|
+
} )
|
|
160
|
+
: false;
|
|
158
161
|
|
|
159
162
|
return {
|
|
160
163
|
hasInnerBlocks: getBlockCount( clientId ) > 0,
|
|
@@ -167,7 +170,7 @@ export default function TemplatePartEdit( {
|
|
|
167
170
|
onNavigateToEntityRecord:
|
|
168
171
|
getSettings().onNavigateToEntityRecord,
|
|
169
172
|
title: entityRecord?.title,
|
|
170
|
-
|
|
173
|
+
canUserEdit: !! _canUserEdit,
|
|
171
174
|
};
|
|
172
175
|
},
|
|
173
176
|
[ templatePartId, attributes.area, clientId ]
|
|
@@ -237,7 +240,7 @@ export default function TemplatePartEdit( {
|
|
|
237
240
|
<RecursionProvider uniqueId={ templatePartId }>
|
|
238
241
|
{ isEntityAvailable &&
|
|
239
242
|
onNavigateToEntityRecord &&
|
|
240
|
-
|
|
243
|
+
canUserEdit && (
|
|
241
244
|
<BlockControls group="other">
|
|
242
245
|
<ToolbarButton
|
|
243
246
|
onClick={ () =>
|
|
@@ -129,15 +129,17 @@ export default function TemplatePartInnerBlocks( {
|
|
|
129
129
|
return {
|
|
130
130
|
canViewTemplatePart: !! select( coreStore ).canUser( 'read', {
|
|
131
131
|
kind: 'postType',
|
|
132
|
-
name: '
|
|
132
|
+
name: 'wp_template_part',
|
|
133
|
+
id,
|
|
133
134
|
} ),
|
|
134
|
-
canEditTemplatePart: !! select( coreStore ).canUser( '
|
|
135
|
+
canEditTemplatePart: !! select( coreStore ).canUser( 'update', {
|
|
135
136
|
kind: 'postType',
|
|
136
|
-
name: '
|
|
137
|
+
name: 'wp_template_part',
|
|
138
|
+
id,
|
|
137
139
|
} ),
|
|
138
140
|
};
|
|
139
141
|
},
|
|
140
|
-
[]
|
|
142
|
+
[ id ]
|
|
141
143
|
);
|
|
142
144
|
|
|
143
145
|
if ( ! canViewTemplatePart ) {
|