@wordpress/block-library 7.3.5 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/build/archives/edit.js +1 -1
- package/build/archives/edit.js.map +1 -1
- package/build/audio/edit.js +4 -16
- package/build/audio/edit.js.map +1 -1
- package/build/audio/edit.native.js +1 -1
- package/build/audio/edit.native.js.map +1 -1
- package/build/button/edit.native.js +7 -3
- package/build/button/edit.native.js.map +1 -1
- package/build/categories/edit.js +8 -3
- package/build/categories/edit.js.map +1 -1
- package/build/categories/index.js +4 -0
- package/build/categories/index.js.map +1 -1
- package/build/column/index.js +10 -0
- package/build/column/index.js.map +1 -1
- package/build/comment-template/edit.js +1 -3
- package/build/comment-template/edit.js.map +1 -1
- package/build/{comments-query-loop → comments}/edit/comments-inspector-controls.js +0 -0
- package/{build-module/comments-query-loop → build/comments}/edit/comments-inspector-controls.js.map +1 -1
- package/build/{comments-query-loop → comments}/edit.js +2 -2
- package/build/comments/edit.js.map +1 -0
- package/build/{comments-query-loop → comments}/index.js +1 -1
- package/build/comments/index.js.map +1 -0
- package/build/{comments-query-loop → comments}/save.js +2 -2
- package/build/comments/save.js.map +1 -0
- package/build/cover/edit.js +4 -71
- package/build/cover/edit.js.map +1 -1
- package/build/cover/edit.native.js +36 -15
- package/build/cover/edit.native.js.map +1 -1
- package/build/cover/transforms.js +77 -6
- package/build/cover/transforms.js.map +1 -1
- package/build/cover/use-cover-is-dark.js +81 -0
- package/build/cover/use-cover-is-dark.js.map +1 -0
- package/build/cover/use-cover-is-dark.native.js +60 -0
- package/build/cover/use-cover-is-dark.native.js.map +1 -0
- package/build/embed/edit.js +12 -18
- package/build/embed/edit.js.map +1 -1
- package/build/embed/edit.native.js +1 -7
- package/build/embed/edit.native.js.map +1 -1
- package/build/embed/util.js +29 -4
- package/build/embed/util.js.map +1 -1
- package/build/file/inspector.js +2 -4
- package/build/file/inspector.js.map +1 -1
- package/build/gallery/edit.js +1 -1
- package/build/gallery/edit.js.map +1 -1
- package/build/gallery/v1/edit.js +1 -1
- package/build/gallery/v1/edit.js.map +1 -1
- package/build/group/index.js +1 -0
- package/build/group/index.js.map +1 -1
- package/build/heading/transforms.js +8 -4
- package/build/heading/transforms.js.map +1 -1
- package/build/html/edit.js +2 -2
- package/build/html/edit.js.map +1 -1
- package/build/image/edit.js +4 -6
- package/build/image/edit.js.map +1 -1
- package/build/image/edit.native.js +1 -1
- package/build/image/edit.native.js.map +1 -1
- package/build/image/image.js +1 -1
- package/build/image/image.js.map +1 -1
- package/build/index.js +4 -6
- package/build/index.js.map +1 -1
- package/build/index.native.js +14 -3
- package/build/index.native.js.map +1 -1
- package/build/latest-comments/edit.js +1 -1
- package/build/latest-comments/edit.js.map +1 -1
- package/build/latest-posts/edit.native.js +49 -0
- package/build/latest-posts/edit.native.js.map +1 -1
- package/build/loginout/edit.js +1 -1
- package/build/loginout/edit.js.map +1 -1
- package/build/media-text/edit.js +1 -2
- package/build/media-text/edit.js.map +1 -1
- package/build/media-text/edit.native.js +1 -1
- package/build/media-text/edit.native.js.map +1 -1
- package/build/navigation/edit/index.js +5 -28
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/unsaved-inner-blocks.js +5 -4
- package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
- package/build/navigation/index.js +1 -2
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/view-modal.js +62 -0
- package/build/navigation/view-modal.js.map +1 -0
- package/build/navigation/view.js +1 -34
- package/build/navigation/view.js.map +1 -1
- package/build/navigation-link/edit.js +1 -1
- package/build/navigation-link/edit.js.map +1 -1
- package/build/paragraph/edit.js +10 -0
- package/build/paragraph/edit.js.map +1 -1
- package/build/paragraph/edit.native.js +6 -2
- package/build/paragraph/edit.native.js.map +1 -1
- package/build/paragraph/use-enter.js +94 -0
- package/build/paragraph/use-enter.js.map +1 -0
- package/build/post-author/edit.js +1 -1
- package/build/post-author/edit.js.map +1 -1
- package/build/post-comment/index.js +1 -1
- package/build/post-comments/edit.js +13 -34
- package/build/post-comments/edit.js.map +1 -1
- package/build/post-comments/index.js +1 -1
- package/build/post-comments-form/edit.js +37 -24
- package/build/post-comments-form/edit.js.map +1 -1
- package/build/post-comments-form/form.js +48 -0
- package/build/post-comments-form/form.js.map +1 -0
- package/build/post-excerpt/edit.js +1 -1
- package/build/post-excerpt/edit.js.map +1 -1
- package/build/post-terms/edit.js +25 -3
- package/build/post-terms/edit.js.map +1 -1
- package/build/post-terms/index.js +8 -0
- package/build/post-terms/index.js.map +1 -1
- package/build/quote/index.js +7 -0
- package/build/quote/index.js.map +1 -1
- package/build/quote/v2/edit.js +11 -3
- package/build/quote/v2/edit.js.map +1 -1
- package/build/rss/edit.js +1 -1
- package/build/rss/edit.js.map +1 -1
- package/build/search/edit.js +11 -9
- package/build/search/edit.js.map +1 -1
- package/build/separator/index.js +3 -0
- package/build/separator/index.js.map +1 -1
- package/build/spacer/constants.js +9 -0
- package/build/spacer/constants.js.map +1 -0
- package/build/spacer/controls.js +3 -3
- package/build/spacer/controls.js.map +1 -1
- package/build/spacer/controls.native.js +2 -2
- package/build/spacer/controls.native.js.map +1 -1
- package/build/spacer/edit.js +5 -6
- package/build/spacer/edit.js.map +1 -1
- package/build/table/edit.js +8 -2
- package/build/table/edit.js.map +1 -1
- package/build/tag-cloud/edit.js +1 -1
- package/build/tag-cloud/edit.js.map +1 -1
- package/build/video/edit.js +4 -8
- package/build/video/edit.js.map +1 -1
- package/build/video/edit.native.js +1 -1
- package/build/video/edit.native.js.map +1 -1
- package/build-module/archives/edit.js +1 -1
- package/build-module/archives/edit.js.map +1 -1
- package/build-module/audio/edit.js +4 -16
- package/build-module/audio/edit.js.map +1 -1
- package/build-module/audio/edit.native.js +1 -1
- package/build-module/audio/edit.native.js.map +1 -1
- package/build-module/button/edit.native.js +7 -3
- package/build-module/button/edit.native.js.map +1 -1
- package/build-module/categories/edit.js +8 -3
- package/build-module/categories/edit.js.map +1 -1
- package/build-module/categories/index.js +4 -0
- package/build-module/categories/index.js.map +1 -1
- package/build-module/column/index.js +10 -0
- package/build-module/column/index.js.map +1 -1
- package/build-module/comment-template/edit.js +1 -3
- package/build-module/comment-template/edit.js.map +1 -1
- package/build-module/{comments-query-loop → comments}/edit/comments-inspector-controls.js +0 -0
- package/build-module/comments/edit/comments-inspector-controls.js.map +1 -0
- package/build-module/{comments-query-loop → comments}/edit.js +1 -1
- package/build-module/comments/edit.js.map +1 -0
- package/build-module/{comments-query-loop → comments}/index.js +1 -1
- package/build-module/comments/index.js.map +1 -0
- package/build-module/{comments-query-loop → comments}/save.js +1 -1
- package/build-module/comments/save.js.map +1 -0
- package/build-module/cover/edit.js +4 -71
- package/build-module/cover/edit.js.map +1 -1
- package/build-module/cover/edit.native.js +35 -16
- package/build-module/cover/edit.native.js.map +1 -1
- package/build-module/cover/transforms.js +74 -6
- package/build-module/cover/transforms.js.map +1 -1
- package/build-module/cover/use-cover-is-dark.js +70 -0
- package/build-module/cover/use-cover-is-dark.js.map +1 -0
- package/build-module/cover/use-cover-is-dark.native.js +51 -0
- package/build-module/cover/use-cover-is-dark.native.js.map +1 -0
- package/build-module/embed/edit.js +13 -19
- package/build-module/embed/edit.js.map +1 -1
- package/build-module/embed/edit.native.js +2 -8
- package/build-module/embed/edit.native.js.map +1 -1
- package/build-module/embed/util.js +25 -3
- package/build-module/embed/util.js.map +1 -1
- package/build-module/file/inspector.js +2 -4
- package/build-module/file/inspector.js.map +1 -1
- package/build-module/gallery/edit.js +1 -1
- package/build-module/gallery/edit.js.map +1 -1
- package/build-module/gallery/v1/edit.js +1 -1
- package/build-module/gallery/v1/edit.js.map +1 -1
- package/build-module/group/index.js +1 -0
- package/build-module/group/index.js.map +1 -1
- package/build-module/heading/transforms.js +8 -4
- package/build-module/heading/transforms.js.map +1 -1
- package/build-module/html/edit.js +2 -2
- package/build-module/html/edit.js.map +1 -1
- package/build-module/image/edit.js +4 -6
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/edit.native.js +1 -1
- package/build-module/image/edit.native.js.map +1 -1
- package/build-module/image/image.js +1 -1
- package/build-module/image/image.js.map +1 -1
- package/build-module/index.js +3 -4
- package/build-module/index.js.map +1 -1
- package/build-module/index.native.js +14 -3
- package/build-module/index.native.js.map +1 -1
- package/build-module/latest-comments/edit.js +1 -1
- package/build-module/latest-comments/edit.js.map +1 -1
- package/build-module/latest-posts/edit.native.js +51 -2
- package/build-module/latest-posts/edit.native.js.map +1 -1
- package/build-module/loginout/edit.js +1 -1
- package/build-module/loginout/edit.js.map +1 -1
- package/build-module/media-text/edit.js +1 -2
- package/build-module/media-text/edit.js.map +1 -1
- package/build-module/media-text/edit.native.js +1 -1
- package/build-module/media-text/edit.native.js.map +1 -1
- package/build-module/navigation/edit/index.js +6 -28
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/unsaved-inner-blocks.js +5 -4
- package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
- package/build-module/navigation/index.js +1 -2
- package/build-module/navigation/index.js.map +1 -1
- package/build-module/navigation/view-modal.js +56 -0
- package/build-module/navigation/view-modal.js.map +1 -0
- package/build-module/navigation/view.js +1 -30
- package/build-module/navigation/view.js.map +1 -1
- package/build-module/navigation-link/edit.js +1 -1
- package/build-module/navigation-link/edit.js.map +1 -1
- package/build-module/paragraph/edit.js +9 -0
- package/build-module/paragraph/edit.js.map +1 -1
- package/build-module/paragraph/edit.native.js +6 -2
- package/build-module/paragraph/edit.native.js.map +1 -1
- package/build-module/paragraph/use-enter.js +81 -0
- package/build-module/paragraph/use-enter.js.map +1 -0
- package/build-module/post-author/edit.js +1 -1
- package/build-module/post-author/edit.js.map +1 -1
- package/build-module/post-comment/index.js +1 -1
- package/build-module/post-comments/edit.js +13 -35
- package/build-module/post-comments/edit.js.map +1 -1
- package/build-module/post-comments/index.js +1 -1
- package/build-module/post-comments-form/edit.js +38 -26
- package/build-module/post-comments-form/edit.js.map +1 -1
- package/build-module/post-comments-form/form.js +39 -0
- package/build-module/post-comments-form/form.js.map +1 -0
- package/build-module/post-excerpt/edit.js +1 -1
- package/build-module/post-excerpt/edit.js.map +1 -1
- package/build-module/post-terms/edit.js +26 -4
- package/build-module/post-terms/edit.js.map +1 -1
- package/build-module/post-terms/index.js +8 -0
- package/build-module/post-terms/index.js.map +1 -1
- package/build-module/quote/index.js +2 -1
- package/build-module/quote/index.js.map +1 -1
- package/build-module/quote/v2/edit.js +10 -3
- package/build-module/quote/v2/edit.js.map +1 -1
- package/build-module/rss/edit.js +1 -1
- package/build-module/rss/edit.js.map +1 -1
- package/build-module/search/edit.js +11 -9
- package/build-module/search/edit.js.map +1 -1
- package/build-module/separator/index.js +3 -0
- package/build-module/separator/index.js.map +1 -1
- package/build-module/spacer/constants.js +2 -0
- package/build-module/spacer/constants.js.map +1 -0
- package/build-module/spacer/controls.js +2 -2
- package/build-module/spacer/controls.js.map +1 -1
- package/build-module/spacer/controls.native.js +1 -1
- package/build-module/spacer/controls.native.js.map +1 -1
- package/build-module/spacer/edit.js +1 -1
- package/build-module/spacer/edit.js.map +1 -1
- package/build-module/table/edit.js +9 -3
- package/build-module/table/edit.js.map +1 -1
- package/build-module/tag-cloud/edit.js +1 -1
- package/build-module/tag-cloud/edit.js.map +1 -1
- package/build-module/video/edit.js +4 -8
- package/build-module/video/edit.js.map +1 -1
- package/build-module/video/edit.native.js +1 -1
- package/build-module/video/edit.native.js.map +1 -1
- package/build-style/{comments-query-loop → comments}/editor-rtl.css +0 -0
- package/build-style/{comments-query-loop → comments}/editor.css +0 -0
- package/build-style/common-rtl.css +32 -0
- package/build-style/common.css +32 -0
- package/build-style/cover/style-rtl.css +0 -4
- package/build-style/cover/style.css +0 -4
- package/build-style/editor-rtl.css +12 -4
- package/build-style/editor.css +12 -4
- package/build-style/navigation/style-rtl.css +3 -0
- package/build-style/navigation/style.css +3 -0
- package/build-style/style-rtl.css +73 -4
- package/build-style/style.css +73 -4
- package/build-style/table/editor-rtl.css +8 -0
- package/build-style/table/editor.css +8 -0
- package/build-style/table/style-rtl.css +38 -0
- package/build-style/table/style.css +38 -0
- package/package.json +28 -28
- package/src/archives/edit.js +1 -1
- package/src/audio/edit.js +3 -8
- package/src/audio/edit.native.js +1 -1
- package/src/button/edit.native.js +6 -3
- package/src/categories/block.json +4 -0
- package/src/categories/edit.js +8 -2
- package/src/categories/index.php +1 -0
- package/src/column/block.json +10 -0
- package/src/comment-template/edit.js +1 -5
- package/src/comment-template/index.php +4 -0
- package/src/{comments-query-loop → comments}/block.json +1 -1
- package/src/{comments-query-loop → comments}/edit/comments-inspector-controls.js +0 -0
- package/src/{comments-query-loop → comments}/edit.js +1 -1
- package/src/{comments-query-loop → comments}/editor.scss +0 -0
- package/src/{comments-query-loop → comments}/index.js +0 -0
- package/src/{comments-query-loop → comments}/save.js +1 -3
- package/src/comments-pagination/index.php +4 -0
- package/src/comments-title/index.php +4 -0
- package/src/common.scss +24 -1
- package/src/cover/edit.js +2 -67
- package/src/cover/edit.native.js +40 -13
- package/src/cover/style.native.scss +4 -0
- package/src/cover/style.scss +0 -4
- package/src/cover/test/__snapshots__/edit.native.js.snap +6 -6
- package/src/cover/test/transforms.js +301 -0
- package/src/cover/transforms.js +112 -7
- package/src/cover/use-cover-is-dark.js +71 -0
- package/src/cover/use-cover-is-dark.native.js +51 -0
- package/src/editor.scss +1 -1
- package/src/embed/edit.js +19 -24
- package/src/embed/edit.native.js +9 -14
- package/src/embed/util.js +34 -2
- package/src/file/inspector.js +1 -3
- package/src/gallery/edit.js +1 -1
- package/src/gallery/v1/edit.js +1 -1
- package/src/group/block.json +1 -0
- package/src/heading/transforms.js +4 -3
- package/src/html/edit.js +2 -2
- package/src/image/edit.js +2 -4
- package/src/image/edit.native.js +1 -1
- package/src/image/image.js +1 -1
- package/src/index.js +2 -5
- package/src/index.native.js +12 -2
- package/src/latest-comments/edit.js +1 -1
- package/src/latest-posts/edit.native.js +56 -1
- package/src/loginout/edit.js +1 -1
- package/src/media-text/edit.js +1 -2
- package/src/media-text/edit.native.js +1 -1
- package/src/navigation/block.json +1 -2
- package/src/navigation/edit/index.js +6 -36
- package/src/navigation/edit/unsaved-inner-blocks.js +5 -4
- package/src/navigation/index.php +5 -0
- package/src/navigation/style.scss +3 -0
- package/src/navigation/view-modal.js +68 -0
- package/src/navigation/view.js +0 -35
- package/src/navigation-link/edit.js +1 -1
- package/src/paragraph/edit.js +6 -0
- package/src/paragraph/edit.native.js +13 -1
- package/src/paragraph/use-enter.js +103 -0
- package/src/post-author/edit.js +1 -1
- package/src/post-author/index.php +1 -1
- package/src/post-comment/block.json +1 -1
- package/src/post-comments/block.json +1 -1
- package/src/post-comments/edit.js +13 -43
- package/src/post-comments/index.php +2 -0
- package/src/post-comments-form/edit.js +50 -58
- package/src/post-comments-form/form.js +43 -0
- package/src/post-comments-form/index.php +5 -1
- package/src/post-excerpt/edit.js +1 -1
- package/src/post-terms/block.json +8 -0
- package/src/post-terms/edit.js +28 -1
- package/src/post-terms/index.php +12 -2
- package/src/quote/block.json +1 -0
- package/src/quote/index.js +1 -1
- package/src/quote/v2/edit.js +3 -0
- package/src/rss/edit.js +1 -1
- package/src/search/edit.js +13 -7
- package/src/search/index.php +84 -33
- package/src/separator/block.json +3 -0
- package/src/spacer/constants.js +1 -0
- package/src/spacer/controls.js +2 -2
- package/src/spacer/controls.native.js +1 -1
- package/src/spacer/edit.js +1 -2
- package/src/table/edit.js +11 -2
- package/src/table/editor.scss +13 -0
- package/src/table/style.scss +52 -0
- package/src/tag-cloud/edit.js +1 -1
- package/src/video/edit.js +4 -5
- package/src/video/edit.native.js +1 -1
- package/build/comments-query-loop/edit/comments-inspector-controls.js.map +0 -1
- package/build/comments-query-loop/edit.js.map +0 -1
- package/build/comments-query-loop/index.js.map +0 -1
- package/build/comments-query-loop/save.js.map +0 -1
- package/build/navigation-area/edit.js +0 -110
- package/build/navigation-area/edit.js.map +0 -1
- package/build/navigation-area/index.js +0 -62
- package/build/navigation-area/index.js.map +0 -1
- package/build/navigation-area/inner-blocks.js +0 -34
- package/build/navigation-area/inner-blocks.js.map +0 -1
- package/build/navigation-area/save.js +0 -18
- package/build/navigation-area/save.js.map +0 -1
- package/build-module/comments-query-loop/edit.js.map +0 -1
- package/build-module/comments-query-loop/index.js.map +0 -1
- package/build-module/comments-query-loop/save.js.map +0 -1
- package/build-module/navigation-area/edit.js +0 -94
- package/build-module/navigation-area/edit.js.map +0 -1
- package/build-module/navigation-area/index.js +0 -48
- package/build-module/navigation-area/index.js.map +0 -1
- package/build-module/navigation-area/inner-blocks.js +0 -26
- package/build-module/navigation-area/inner-blocks.js.map +0 -1
- package/build-module/navigation-area/save.js +0 -10
- package/build-module/navigation-area/save.js.map +0 -1
- package/src/navigation-area/block.json +0 -23
- package/src/navigation-area/edit.js +0 -111
- package/src/navigation-area/index.js +0 -26
- package/src/navigation-area/index.php +0 -22
- package/src/navigation-area/inner-blocks.js +0 -24
- package/src/navigation-area/save.js +0 -8
package/build-style/editor.css
CHANGED
|
@@ -241,6 +241,10 @@ html :where(.wp-block-column) {
|
|
|
241
241
|
margin-bottom: 0;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
+
.block-library-comments-toolbar__popover .components-popover__content {
|
|
245
|
+
min-width: 230px;
|
|
246
|
+
}
|
|
247
|
+
|
|
244
248
|
.wp-block-comment-author-avatar__placeholder {
|
|
245
249
|
border: currentColor 1px dashed;
|
|
246
250
|
width: 100%;
|
|
@@ -249,10 +253,6 @@ html :where(.wp-block-column) {
|
|
|
249
253
|
stroke-dasharray: 3;
|
|
250
254
|
}
|
|
251
255
|
|
|
252
|
-
.block-library-comments-toolbar__popover .components-popover__content {
|
|
253
|
-
min-width: 230px;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
256
|
.wp-block[data-align=center] > .wp-block-comments-pagination {
|
|
257
257
|
justify-content: center;
|
|
258
258
|
}
|
|
@@ -2355,6 +2355,14 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2355
2355
|
.is-dark-theme .wp-block-table figcaption {
|
|
2356
2356
|
color: rgba(255, 255, 255, 0.65);
|
|
2357
2357
|
}
|
|
2358
|
+
.wp-block-table table.has-individual-borders > *,
|
|
2359
|
+
.wp-block-table table.has-individual-borders tr,
|
|
2360
|
+
.wp-block-table table.has-individual-borders th,
|
|
2361
|
+
.wp-block-table table.has-individual-borders td {
|
|
2362
|
+
border-width: 1px;
|
|
2363
|
+
border-style: solid;
|
|
2364
|
+
border-color: currentColor;
|
|
2365
|
+
}
|
|
2358
2366
|
|
|
2359
2367
|
.blocks-table__placeholder-form.blocks-table__placeholder-form {
|
|
2360
2368
|
display: flex;
|
|
@@ -609,10 +609,6 @@
|
|
|
609
609
|
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100 {
|
|
610
610
|
opacity: 1;
|
|
611
611
|
}
|
|
612
|
-
.wp-block-cover-image .block-library-cover__padding-visualizer,
|
|
613
|
-
.wp-block-cover .block-library-cover__padding-visualizer {
|
|
614
|
-
z-index: 2;
|
|
615
|
-
}
|
|
616
612
|
.wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
|
|
617
613
|
.wp-block-cover.alignleft,
|
|
618
614
|
.wp-block-cover.alignright {
|
|
@@ -1753,6 +1749,9 @@ button.wp-block-navigation-item__content {
|
|
|
1753
1749
|
font-size: inherit;
|
|
1754
1750
|
font-family: inherit;
|
|
1755
1751
|
line-height: inherit;
|
|
1752
|
+
font-style: inherit;
|
|
1753
|
+
font-weight: inherit;
|
|
1754
|
+
text-transform: inherit;
|
|
1756
1755
|
text-align: right;
|
|
1757
1756
|
}
|
|
1758
1757
|
|
|
@@ -3091,6 +3090,44 @@ ul.wp-block-rss.is-grid li {
|
|
|
3091
3090
|
.wp-block-table .has-border-color td {
|
|
3092
3091
|
border-color: inherit;
|
|
3093
3092
|
}
|
|
3093
|
+
.wp-block-table table[style*=border-top-color] > *,
|
|
3094
|
+
.wp-block-table table[style*=border-top-color] tr:first-child {
|
|
3095
|
+
border-top-color: inherit;
|
|
3096
|
+
}
|
|
3097
|
+
.wp-block-table table[style*=border-top-color] > * th,
|
|
3098
|
+
.wp-block-table table[style*=border-top-color] > * td,
|
|
3099
|
+
.wp-block-table table[style*=border-top-color] tr:first-child th,
|
|
3100
|
+
.wp-block-table table[style*=border-top-color] tr:first-child td {
|
|
3101
|
+
border-top-color: inherit;
|
|
3102
|
+
}
|
|
3103
|
+
.wp-block-table table[style*=border-top-color] tr:not(:first-child) {
|
|
3104
|
+
border-top-color: currentColor;
|
|
3105
|
+
}
|
|
3106
|
+
.wp-block-table table[style*=border-right-color] > *,
|
|
3107
|
+
.wp-block-table table[style*=border-right-color] tr,
|
|
3108
|
+
.wp-block-table table[style*=border-right-color] th,
|
|
3109
|
+
.wp-block-table table[style*=border-right-color] td:last-child {
|
|
3110
|
+
border-left-color: inherit;
|
|
3111
|
+
}
|
|
3112
|
+
.wp-block-table table[style*=border-bottom-color] > *,
|
|
3113
|
+
.wp-block-table table[style*=border-bottom-color] tr:last-child {
|
|
3114
|
+
border-bottom-color: inherit;
|
|
3115
|
+
}
|
|
3116
|
+
.wp-block-table table[style*=border-bottom-color] > * th,
|
|
3117
|
+
.wp-block-table table[style*=border-bottom-color] > * td,
|
|
3118
|
+
.wp-block-table table[style*=border-bottom-color] tr:last-child th,
|
|
3119
|
+
.wp-block-table table[style*=border-bottom-color] tr:last-child td {
|
|
3120
|
+
border-bottom-color: inherit;
|
|
3121
|
+
}
|
|
3122
|
+
.wp-block-table table[style*=border-bottom-color] tr:not(:last-child) {
|
|
3123
|
+
border-bottom-color: currentColor;
|
|
3124
|
+
}
|
|
3125
|
+
.wp-block-table table[style*=border-left-color] > *,
|
|
3126
|
+
.wp-block-table table[style*=border-left-color] tr,
|
|
3127
|
+
.wp-block-table table[style*=border-left-color] th,
|
|
3128
|
+
.wp-block-table table[style*=border-left-color] td:first-child {
|
|
3129
|
+
border-right-color: inherit;
|
|
3130
|
+
}
|
|
3094
3131
|
.wp-block-table table[style*=border-style] > *,
|
|
3095
3132
|
.wp-block-table table[style*=border-style] tr,
|
|
3096
3133
|
.wp-block-table table[style*=border-style] th,
|
|
@@ -3300,10 +3337,42 @@ html :where(.has-border-color) {
|
|
|
3300
3337
|
border-style: solid;
|
|
3301
3338
|
}
|
|
3302
3339
|
|
|
3340
|
+
html :where([style*="border-top-color"]) {
|
|
3341
|
+
border-top-style: solid;
|
|
3342
|
+
}
|
|
3343
|
+
|
|
3344
|
+
html :where([style*="border-right-color"]) {
|
|
3345
|
+
border-left-style: solid;
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3348
|
+
html :where([style*="border-bottom-color"]) {
|
|
3349
|
+
border-bottom-style: solid;
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
html :where([style*="border-left-color"]) {
|
|
3353
|
+
border-right-style: solid;
|
|
3354
|
+
}
|
|
3355
|
+
|
|
3303
3356
|
html :where([style*="border-width"]) {
|
|
3304
3357
|
border-style: solid;
|
|
3305
3358
|
}
|
|
3306
3359
|
|
|
3360
|
+
html :where([style*="border-top-width"]) {
|
|
3361
|
+
border-top-style: solid;
|
|
3362
|
+
}
|
|
3363
|
+
|
|
3364
|
+
html :where([style*="border-right-width"]) {
|
|
3365
|
+
border-left-style: solid;
|
|
3366
|
+
}
|
|
3367
|
+
|
|
3368
|
+
html :where([style*="border-bottom-width"]) {
|
|
3369
|
+
border-bottom-style: solid;
|
|
3370
|
+
}
|
|
3371
|
+
|
|
3372
|
+
html :where([style*="border-left-width"]) {
|
|
3373
|
+
border-right-style: solid;
|
|
3374
|
+
}
|
|
3375
|
+
|
|
3307
3376
|
/**
|
|
3308
3377
|
* Provide baseline responsiveness for images.
|
|
3309
3378
|
*/
|
package/build-style/style.css
CHANGED
|
@@ -614,10 +614,6 @@
|
|
|
614
614
|
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100 {
|
|
615
615
|
opacity: 1;
|
|
616
616
|
}
|
|
617
|
-
.wp-block-cover-image .block-library-cover__padding-visualizer,
|
|
618
|
-
.wp-block-cover .block-library-cover__padding-visualizer {
|
|
619
|
-
z-index: 2;
|
|
620
|
-
}
|
|
621
617
|
.wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
|
|
622
618
|
.wp-block-cover.alignleft,
|
|
623
619
|
.wp-block-cover.alignright {
|
|
@@ -1779,6 +1775,9 @@ button.wp-block-navigation-item__content {
|
|
|
1779
1775
|
font-size: inherit;
|
|
1780
1776
|
font-family: inherit;
|
|
1781
1777
|
line-height: inherit;
|
|
1778
|
+
font-style: inherit;
|
|
1779
|
+
font-weight: inherit;
|
|
1780
|
+
text-transform: inherit;
|
|
1782
1781
|
text-align: left;
|
|
1783
1782
|
}
|
|
1784
1783
|
|
|
@@ -3122,6 +3121,44 @@ ul.wp-block-rss.is-grid li {
|
|
|
3122
3121
|
.wp-block-table .has-border-color td {
|
|
3123
3122
|
border-color: inherit;
|
|
3124
3123
|
}
|
|
3124
|
+
.wp-block-table table[style*=border-top-color] > *,
|
|
3125
|
+
.wp-block-table table[style*=border-top-color] tr:first-child {
|
|
3126
|
+
border-top-color: inherit;
|
|
3127
|
+
}
|
|
3128
|
+
.wp-block-table table[style*=border-top-color] > * th,
|
|
3129
|
+
.wp-block-table table[style*=border-top-color] > * td,
|
|
3130
|
+
.wp-block-table table[style*=border-top-color] tr:first-child th,
|
|
3131
|
+
.wp-block-table table[style*=border-top-color] tr:first-child td {
|
|
3132
|
+
border-top-color: inherit;
|
|
3133
|
+
}
|
|
3134
|
+
.wp-block-table table[style*=border-top-color] tr:not(:first-child) {
|
|
3135
|
+
border-top-color: currentColor;
|
|
3136
|
+
}
|
|
3137
|
+
.wp-block-table table[style*=border-right-color] > *,
|
|
3138
|
+
.wp-block-table table[style*=border-right-color] tr,
|
|
3139
|
+
.wp-block-table table[style*=border-right-color] th,
|
|
3140
|
+
.wp-block-table table[style*=border-right-color] td:last-child {
|
|
3141
|
+
border-right-color: inherit;
|
|
3142
|
+
}
|
|
3143
|
+
.wp-block-table table[style*=border-bottom-color] > *,
|
|
3144
|
+
.wp-block-table table[style*=border-bottom-color] tr:last-child {
|
|
3145
|
+
border-bottom-color: inherit;
|
|
3146
|
+
}
|
|
3147
|
+
.wp-block-table table[style*=border-bottom-color] > * th,
|
|
3148
|
+
.wp-block-table table[style*=border-bottom-color] > * td,
|
|
3149
|
+
.wp-block-table table[style*=border-bottom-color] tr:last-child th,
|
|
3150
|
+
.wp-block-table table[style*=border-bottom-color] tr:last-child td {
|
|
3151
|
+
border-bottom-color: inherit;
|
|
3152
|
+
}
|
|
3153
|
+
.wp-block-table table[style*=border-bottom-color] tr:not(:last-child) {
|
|
3154
|
+
border-bottom-color: currentColor;
|
|
3155
|
+
}
|
|
3156
|
+
.wp-block-table table[style*=border-left-color] > *,
|
|
3157
|
+
.wp-block-table table[style*=border-left-color] tr,
|
|
3158
|
+
.wp-block-table table[style*=border-left-color] th,
|
|
3159
|
+
.wp-block-table table[style*=border-left-color] td:first-child {
|
|
3160
|
+
border-left-color: inherit;
|
|
3161
|
+
}
|
|
3125
3162
|
.wp-block-table table[style*=border-style] > *,
|
|
3126
3163
|
.wp-block-table table[style*=border-style] tr,
|
|
3127
3164
|
.wp-block-table table[style*=border-style] th,
|
|
@@ -3333,10 +3370,42 @@ html :where(.has-border-color) {
|
|
|
3333
3370
|
border-style: solid;
|
|
3334
3371
|
}
|
|
3335
3372
|
|
|
3373
|
+
html :where([style*="border-top-color"]) {
|
|
3374
|
+
border-top-style: solid;
|
|
3375
|
+
}
|
|
3376
|
+
|
|
3377
|
+
html :where([style*="border-right-color"]) {
|
|
3378
|
+
border-right-style: solid;
|
|
3379
|
+
}
|
|
3380
|
+
|
|
3381
|
+
html :where([style*="border-bottom-color"]) {
|
|
3382
|
+
border-bottom-style: solid;
|
|
3383
|
+
}
|
|
3384
|
+
|
|
3385
|
+
html :where([style*="border-left-color"]) {
|
|
3386
|
+
border-left-style: solid;
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3336
3389
|
html :where([style*="border-width"]) {
|
|
3337
3390
|
border-style: solid;
|
|
3338
3391
|
}
|
|
3339
3392
|
|
|
3393
|
+
html :where([style*="border-top-width"]) {
|
|
3394
|
+
border-top-style: solid;
|
|
3395
|
+
}
|
|
3396
|
+
|
|
3397
|
+
html :where([style*="border-right-width"]) {
|
|
3398
|
+
border-right-style: solid;
|
|
3399
|
+
}
|
|
3400
|
+
|
|
3401
|
+
html :where([style*="border-bottom-width"]) {
|
|
3402
|
+
border-bottom-style: solid;
|
|
3403
|
+
}
|
|
3404
|
+
|
|
3405
|
+
html :where([style*="border-left-width"]) {
|
|
3406
|
+
border-left-style: solid;
|
|
3407
|
+
}
|
|
3408
|
+
|
|
3340
3409
|
/**
|
|
3341
3410
|
* Provide baseline responsiveness for images.
|
|
3342
3411
|
*/
|
|
@@ -113,6 +113,14 @@
|
|
|
113
113
|
.is-dark-theme .wp-block-table figcaption {
|
|
114
114
|
color: rgba(255, 255, 255, 0.65);
|
|
115
115
|
}
|
|
116
|
+
.wp-block-table table.has-individual-borders > *,
|
|
117
|
+
.wp-block-table table.has-individual-borders tr,
|
|
118
|
+
.wp-block-table table.has-individual-borders th,
|
|
119
|
+
.wp-block-table table.has-individual-borders td {
|
|
120
|
+
border-width: 1px;
|
|
121
|
+
border-style: solid;
|
|
122
|
+
border-color: currentColor;
|
|
123
|
+
}
|
|
116
124
|
|
|
117
125
|
.blocks-table__placeholder-form.blocks-table__placeholder-form {
|
|
118
126
|
display: flex;
|
|
@@ -113,6 +113,14 @@
|
|
|
113
113
|
.is-dark-theme .wp-block-table figcaption {
|
|
114
114
|
color: rgba(255, 255, 255, 0.65);
|
|
115
115
|
}
|
|
116
|
+
.wp-block-table table.has-individual-borders > *,
|
|
117
|
+
.wp-block-table table.has-individual-borders tr,
|
|
118
|
+
.wp-block-table table.has-individual-borders th,
|
|
119
|
+
.wp-block-table table.has-individual-borders td {
|
|
120
|
+
border-width: 1px;
|
|
121
|
+
border-style: solid;
|
|
122
|
+
border-color: currentColor;
|
|
123
|
+
}
|
|
116
124
|
|
|
117
125
|
.blocks-table__placeholder-form.blocks-table__placeholder-form {
|
|
118
126
|
display: flex;
|
|
@@ -143,6 +143,44 @@
|
|
|
143
143
|
.wp-block-table .has-border-color td {
|
|
144
144
|
border-color: inherit;
|
|
145
145
|
}
|
|
146
|
+
.wp-block-table table[style*=border-top-color] > *,
|
|
147
|
+
.wp-block-table table[style*=border-top-color] tr:first-child {
|
|
148
|
+
border-top-color: inherit;
|
|
149
|
+
}
|
|
150
|
+
.wp-block-table table[style*=border-top-color] > * th,
|
|
151
|
+
.wp-block-table table[style*=border-top-color] > * td,
|
|
152
|
+
.wp-block-table table[style*=border-top-color] tr:first-child th,
|
|
153
|
+
.wp-block-table table[style*=border-top-color] tr:first-child td {
|
|
154
|
+
border-top-color: inherit;
|
|
155
|
+
}
|
|
156
|
+
.wp-block-table table[style*=border-top-color] tr:not(:first-child) {
|
|
157
|
+
border-top-color: currentColor;
|
|
158
|
+
}
|
|
159
|
+
.wp-block-table table[style*=border-right-color] > *,
|
|
160
|
+
.wp-block-table table[style*=border-right-color] tr,
|
|
161
|
+
.wp-block-table table[style*=border-right-color] th,
|
|
162
|
+
.wp-block-table table[style*=border-right-color] td:last-child {
|
|
163
|
+
border-left-color: inherit;
|
|
164
|
+
}
|
|
165
|
+
.wp-block-table table[style*=border-bottom-color] > *,
|
|
166
|
+
.wp-block-table table[style*=border-bottom-color] tr:last-child {
|
|
167
|
+
border-bottom-color: inherit;
|
|
168
|
+
}
|
|
169
|
+
.wp-block-table table[style*=border-bottom-color] > * th,
|
|
170
|
+
.wp-block-table table[style*=border-bottom-color] > * td,
|
|
171
|
+
.wp-block-table table[style*=border-bottom-color] tr:last-child th,
|
|
172
|
+
.wp-block-table table[style*=border-bottom-color] tr:last-child td {
|
|
173
|
+
border-bottom-color: inherit;
|
|
174
|
+
}
|
|
175
|
+
.wp-block-table table[style*=border-bottom-color] tr:not(:last-child) {
|
|
176
|
+
border-bottom-color: currentColor;
|
|
177
|
+
}
|
|
178
|
+
.wp-block-table table[style*=border-left-color] > *,
|
|
179
|
+
.wp-block-table table[style*=border-left-color] tr,
|
|
180
|
+
.wp-block-table table[style*=border-left-color] th,
|
|
181
|
+
.wp-block-table table[style*=border-left-color] td:first-child {
|
|
182
|
+
border-right-color: inherit;
|
|
183
|
+
}
|
|
146
184
|
.wp-block-table table[style*=border-style] > *,
|
|
147
185
|
.wp-block-table table[style*=border-style] tr,
|
|
148
186
|
.wp-block-table table[style*=border-style] th,
|
|
@@ -143,6 +143,44 @@
|
|
|
143
143
|
.wp-block-table .has-border-color td {
|
|
144
144
|
border-color: inherit;
|
|
145
145
|
}
|
|
146
|
+
.wp-block-table table[style*=border-top-color] > *,
|
|
147
|
+
.wp-block-table table[style*=border-top-color] tr:first-child {
|
|
148
|
+
border-top-color: inherit;
|
|
149
|
+
}
|
|
150
|
+
.wp-block-table table[style*=border-top-color] > * th,
|
|
151
|
+
.wp-block-table table[style*=border-top-color] > * td,
|
|
152
|
+
.wp-block-table table[style*=border-top-color] tr:first-child th,
|
|
153
|
+
.wp-block-table table[style*=border-top-color] tr:first-child td {
|
|
154
|
+
border-top-color: inherit;
|
|
155
|
+
}
|
|
156
|
+
.wp-block-table table[style*=border-top-color] tr:not(:first-child) {
|
|
157
|
+
border-top-color: currentColor;
|
|
158
|
+
}
|
|
159
|
+
.wp-block-table table[style*=border-right-color] > *,
|
|
160
|
+
.wp-block-table table[style*=border-right-color] tr,
|
|
161
|
+
.wp-block-table table[style*=border-right-color] th,
|
|
162
|
+
.wp-block-table table[style*=border-right-color] td:last-child {
|
|
163
|
+
border-right-color: inherit;
|
|
164
|
+
}
|
|
165
|
+
.wp-block-table table[style*=border-bottom-color] > *,
|
|
166
|
+
.wp-block-table table[style*=border-bottom-color] tr:last-child {
|
|
167
|
+
border-bottom-color: inherit;
|
|
168
|
+
}
|
|
169
|
+
.wp-block-table table[style*=border-bottom-color] > * th,
|
|
170
|
+
.wp-block-table table[style*=border-bottom-color] > * td,
|
|
171
|
+
.wp-block-table table[style*=border-bottom-color] tr:last-child th,
|
|
172
|
+
.wp-block-table table[style*=border-bottom-color] tr:last-child td {
|
|
173
|
+
border-bottom-color: inherit;
|
|
174
|
+
}
|
|
175
|
+
.wp-block-table table[style*=border-bottom-color] tr:not(:last-child) {
|
|
176
|
+
border-bottom-color: currentColor;
|
|
177
|
+
}
|
|
178
|
+
.wp-block-table table[style*=border-left-color] > *,
|
|
179
|
+
.wp-block-table table[style*=border-left-color] tr,
|
|
180
|
+
.wp-block-table table[style*=border-left-color] th,
|
|
181
|
+
.wp-block-table table[style*=border-left-color] td:first-child {
|
|
182
|
+
border-left-color: inherit;
|
|
183
|
+
}
|
|
146
184
|
.wp-block-table table[style*=border-style] > *,
|
|
147
185
|
.wp-block-table table[style*=border-style] tr,
|
|
148
186
|
.wp-block-table table[style*=border-style] th,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.0",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -33,32 +33,32 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/runtime": "^7.16.0",
|
|
36
|
-
"@wordpress/a11y": "^3.
|
|
37
|
-
"@wordpress/api-fetch": "^6.
|
|
38
|
-
"@wordpress/autop": "^3.
|
|
39
|
-
"@wordpress/blob": "^3.
|
|
40
|
-
"@wordpress/block-editor": "^
|
|
41
|
-
"@wordpress/blocks": "^11.
|
|
42
|
-
"@wordpress/components": "^19.
|
|
43
|
-
"@wordpress/compose": "^5.
|
|
44
|
-
"@wordpress/core-data": "^4.
|
|
45
|
-
"@wordpress/data": "^6.
|
|
46
|
-
"@wordpress/date": "^4.
|
|
47
|
-
"@wordpress/deprecated": "^3.
|
|
48
|
-
"@wordpress/dom": "^3.
|
|
49
|
-
"@wordpress/element": "^4.
|
|
50
|
-
"@wordpress/hooks": "^3.
|
|
51
|
-
"@wordpress/html-entities": "^3.
|
|
52
|
-
"@wordpress/i18n": "^4.
|
|
53
|
-
"@wordpress/icons": "^8.
|
|
54
|
-
"@wordpress/keycodes": "^3.
|
|
55
|
-
"@wordpress/notices": "^3.
|
|
56
|
-
"@wordpress/primitives": "^3.
|
|
57
|
-
"@wordpress/reusable-blocks": "^3.
|
|
58
|
-
"@wordpress/rich-text": "^5.
|
|
59
|
-
"@wordpress/server-side-render": "^3.
|
|
60
|
-
"@wordpress/url": "^3.
|
|
61
|
-
"@wordpress/viewport": "^4.
|
|
36
|
+
"@wordpress/a11y": "^3.8.0",
|
|
37
|
+
"@wordpress/api-fetch": "^6.5.0",
|
|
38
|
+
"@wordpress/autop": "^3.8.0",
|
|
39
|
+
"@wordpress/blob": "^3.8.0",
|
|
40
|
+
"@wordpress/block-editor": "^9.0.0",
|
|
41
|
+
"@wordpress/blocks": "^11.7.0",
|
|
42
|
+
"@wordpress/components": "^19.10.0",
|
|
43
|
+
"@wordpress/compose": "^5.6.0",
|
|
44
|
+
"@wordpress/core-data": "^4.6.0",
|
|
45
|
+
"@wordpress/data": "^6.8.0",
|
|
46
|
+
"@wordpress/date": "^4.8.0",
|
|
47
|
+
"@wordpress/deprecated": "^3.8.0",
|
|
48
|
+
"@wordpress/dom": "^3.8.0",
|
|
49
|
+
"@wordpress/element": "^4.6.0",
|
|
50
|
+
"@wordpress/hooks": "^3.8.0",
|
|
51
|
+
"@wordpress/html-entities": "^3.8.0",
|
|
52
|
+
"@wordpress/i18n": "^4.8.0",
|
|
53
|
+
"@wordpress/icons": "^8.4.0",
|
|
54
|
+
"@wordpress/keycodes": "^3.8.0",
|
|
55
|
+
"@wordpress/notices": "^3.8.0",
|
|
56
|
+
"@wordpress/primitives": "^3.6.0",
|
|
57
|
+
"@wordpress/reusable-blocks": "^3.6.0",
|
|
58
|
+
"@wordpress/rich-text": "^5.6.0",
|
|
59
|
+
"@wordpress/server-side-render": "^3.6.0",
|
|
60
|
+
"@wordpress/url": "^3.9.0",
|
|
61
|
+
"@wordpress/viewport": "^4.6.0",
|
|
62
62
|
"classnames": "^2.3.1",
|
|
63
63
|
"colord": "^2.7.0",
|
|
64
64
|
"fast-average-color": "4.3.0",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "4631d515033397fcfeda77e5755960253caef9bf"
|
|
78
78
|
}
|
package/src/archives/edit.js
CHANGED
|
@@ -17,7 +17,7 @@ export default function ArchivesEdit( { attributes, setAttributes } ) {
|
|
|
17
17
|
return (
|
|
18
18
|
<>
|
|
19
19
|
<InspectorControls>
|
|
20
|
-
<PanelBody title={ __( '
|
|
20
|
+
<PanelBody title={ __( 'Settings' ) }>
|
|
21
21
|
<ToggleControl
|
|
22
22
|
label={ __( 'Display as dropdown' ) }
|
|
23
23
|
checked={ displayAsDropdown }
|
package/src/audio/edit.js
CHANGED
|
@@ -62,13 +62,8 @@ function AudioEdit( {
|
|
|
62
62
|
if ( file ) {
|
|
63
63
|
mediaUpload( {
|
|
64
64
|
filesList: [ file ],
|
|
65
|
-
onFileChange: ( [
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
onError: ( e ) => {
|
|
69
|
-
setAttributes( { src: undefined, id: undefined } );
|
|
70
|
-
noticeOperations.createErrorNotice( e );
|
|
71
|
-
},
|
|
65
|
+
onFileChange: ( [ media ] ) => onSelectAudio( media ),
|
|
66
|
+
onError: ( e ) => onUploadError( e ),
|
|
72
67
|
allowedTypes: ALLOWED_MEDIA_TYPES,
|
|
73
68
|
} );
|
|
74
69
|
}
|
|
@@ -159,7 +154,7 @@ function AudioEdit( {
|
|
|
159
154
|
/>
|
|
160
155
|
</BlockControls>
|
|
161
156
|
<InspectorControls>
|
|
162
|
-
<PanelBody title={ __( '
|
|
157
|
+
<PanelBody title={ __( 'Settings' ) }>
|
|
163
158
|
<ToggleControl
|
|
164
159
|
label={ __( 'Autoplay' ) }
|
|
165
160
|
onChange={ toggleAttribute( 'autoplay' ) }
|
package/src/audio/edit.native.js
CHANGED
|
@@ -134,10 +134,13 @@ function ButtonEdit( props ) {
|
|
|
134
134
|
useEffect( () => {
|
|
135
135
|
// Blur `RichText` on Android when link settings sheet or button settings sheet is opened,
|
|
136
136
|
// to avoid flashing caret after closing one of them
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
const richText = richTextRef?.current;
|
|
138
|
+
if ( Platform.OS === 'android' && richText ) {
|
|
139
|
+
if ( editorSidebarOpened || isLinkSheetVisible ) {
|
|
140
|
+
richText.blur();
|
|
140
141
|
onToggleButtonFocus( false );
|
|
142
|
+
} else {
|
|
143
|
+
onToggleButtonFocus( true );
|
|
141
144
|
}
|
|
142
145
|
}
|
|
143
146
|
}, [ editorSidebarOpened, isLinkSheetVisible ] );
|
package/src/categories/edit.js
CHANGED
|
@@ -25,11 +25,12 @@ export default function CategoriesEdit( {
|
|
|
25
25
|
showHierarchy,
|
|
26
26
|
showPostCounts,
|
|
27
27
|
showOnlyTopLevel,
|
|
28
|
+
showEmpty,
|
|
28
29
|
},
|
|
29
30
|
setAttributes,
|
|
30
31
|
} ) {
|
|
31
32
|
const selectId = useInstanceId( CategoriesEdit, 'blocks-category-select' );
|
|
32
|
-
const query = { per_page: -1, hide_empty:
|
|
33
|
+
const query = { per_page: -1, hide_empty: ! showEmpty, context: 'view' };
|
|
33
34
|
if ( showOnlyTopLevel ) {
|
|
34
35
|
query.parent = 0;
|
|
35
36
|
}
|
|
@@ -128,7 +129,7 @@ export default function CategoriesEdit( {
|
|
|
128
129
|
return (
|
|
129
130
|
<div { ...useBlockProps() }>
|
|
130
131
|
<InspectorControls>
|
|
131
|
-
<PanelBody title={ __( '
|
|
132
|
+
<PanelBody title={ __( 'Settings' ) }>
|
|
132
133
|
<ToggleControl
|
|
133
134
|
label={ __( 'Display as dropdown' ) }
|
|
134
135
|
checked={ displayAsDropdown }
|
|
@@ -144,6 +145,11 @@ export default function CategoriesEdit( {
|
|
|
144
145
|
checked={ showOnlyTopLevel }
|
|
145
146
|
onChange={ toggleAttribute( 'showOnlyTopLevel' ) }
|
|
146
147
|
/>
|
|
148
|
+
<ToggleControl
|
|
149
|
+
label={ __( 'Show empty categories' ) }
|
|
150
|
+
checked={ showEmpty }
|
|
151
|
+
onChange={ toggleAttribute( 'showEmpty' ) }
|
|
152
|
+
/>
|
|
147
153
|
{ ! showOnlyTopLevel && (
|
|
148
154
|
<ToggleControl
|
|
149
155
|
label={ __( 'Show hierarchy' ) }
|
package/src/categories/index.php
CHANGED
|
@@ -22,6 +22,7 @@ function render_block_core_categories( $attributes ) {
|
|
|
22
22
|
'orderby' => 'name',
|
|
23
23
|
'show_count' => ! empty( $attributes['showPostCounts'] ),
|
|
24
24
|
'title_li' => '',
|
|
25
|
+
'hide_empty' => empty( $attributes['showEmpty'] ),
|
|
25
26
|
);
|
|
26
27
|
if ( ! empty( $attributes['showOnlyTopLevel'] ) && $attributes['showOnlyTopLevel'] ) {
|
|
27
28
|
$args['parent'] = 0;
|
package/src/column/block.json
CHANGED
|
@@ -41,6 +41,16 @@
|
|
|
41
41
|
"padding": true
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
+
"__experimentalBorder": {
|
|
45
|
+
"color": true,
|
|
46
|
+
"style": true,
|
|
47
|
+
"width": true,
|
|
48
|
+
"__experimentalDefaultControls": {
|
|
49
|
+
"color": true,
|
|
50
|
+
"style": true,
|
|
51
|
+
"width": true
|
|
52
|
+
}
|
|
53
|
+
},
|
|
44
54
|
"__experimentalLayout": true
|
|
45
55
|
}
|
|
46
56
|
}
|
|
@@ -288,11 +288,7 @@ export default function CommentTemplateEdit( {
|
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
if ( ! commentTree.length ) {
|
|
291
|
-
return (
|
|
292
|
-
<p { ...blockProps } data-testid="noresults">
|
|
293
|
-
{ __( 'No results found.' ) }
|
|
294
|
-
</p>
|
|
295
|
-
);
|
|
291
|
+
return <p { ...blockProps }>{ __( 'No results found.' ) }</p>;
|
|
296
292
|
}
|
|
297
293
|
|
|
298
294
|
return (
|
|
@@ -79,6 +79,10 @@ function render_block_core_comment_template( $attributes, $content, $block ) {
|
|
|
79
79
|
return '';
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
if ( post_password_required( $block->context['postId'] ) ) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
|
|
82
86
|
$comment_query = new WP_Comment_Query(
|
|
83
87
|
build_comment_query_vars_from_block( $block )
|
|
84
88
|
);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
3
3
|
"apiVersion": 2,
|
|
4
4
|
"name": "core/comments-query-loop",
|
|
5
|
-
"title": "Comments
|
|
5
|
+
"title": "Comments",
|
|
6
6
|
"category": "theme",
|
|
7
7
|
"description": "An advanced block that allows displaying post comments using different visual configurations.",
|
|
8
8
|
"textdomain": "default",
|
|
File without changes
|
|
@@ -68,7 +68,7 @@ const TEMPLATE = [
|
|
|
68
68
|
[ 'core/post-comments-form' ],
|
|
69
69
|
];
|
|
70
70
|
|
|
71
|
-
export default function
|
|
71
|
+
export default function CommentsEdit( { attributes, setAttributes } ) {
|
|
72
72
|
const { tagName: TagName } = attributes;
|
|
73
73
|
|
|
74
74
|
const blockProps = useBlockProps();
|
|
File without changes
|
|
File without changes
|