@wordpress/block-library 9.10.0 → 9.12.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/README.md +10 -5
- package/build/archives/index.js +6 -0
- package/build/archives/index.js.map +1 -1
- package/build/avatar/hooks.js +2 -3
- package/build/avatar/hooks.js.map +1 -1
- package/build/button/get-updated-link-attributes.js +1 -1
- package/build/button/get-updated-link-attributes.js.map +1 -1
- package/build/button/index.js +1 -1
- package/build/button/index.js.map +1 -1
- package/build/comments/index.js +12 -0
- package/build/comments/index.js.map +1 -1
- package/build/cover/constants.js +8 -0
- package/build/cover/constants.js.map +1 -0
- package/build/cover/deprecated.js +140 -4
- package/build/cover/deprecated.js.map +1 -1
- package/build/cover/edit/block-controls.js +1 -1
- package/build/cover/edit/block-controls.js.map +1 -1
- package/build/cover/edit/cover-placeholder.js +1 -2
- package/build/cover/edit/cover-placeholder.js.map +1 -1
- package/build/cover/edit/index.js +42 -21
- package/build/cover/edit/index.js.map +1 -1
- package/build/cover/edit/inspector-controls.js +40 -2
- package/build/cover/edit/inspector-controls.js.map +1 -1
- package/build/cover/index.js +3 -0
- package/build/cover/index.js.map +1 -1
- package/build/cover/save.js +16 -14
- package/build/cover/save.js.map +1 -1
- package/build/details/index.js +1 -0
- package/build/details/index.js.map +1 -1
- package/build/file/edit.js +2 -3
- package/build/file/edit.js.map +1 -1
- package/build/gallery/constants.js +2 -1
- package/build/gallery/constants.js.map +1 -1
- package/build/gallery/edit.js +12 -3
- package/build/gallery/edit.js.map +1 -1
- package/build/gallery/utils.js +26 -5
- package/build/gallery/utils.js.map +1 -1
- package/build/html/edit.js +5 -1
- package/build/html/edit.js.map +1 -1
- package/build/html/preview.js +2 -2
- package/build/html/preview.js.map +1 -1
- package/build/image/edit.js +1 -1
- package/build/image/edit.js.map +1 -1
- package/build/image/image.js +144 -78
- package/build/image/image.js.map +1 -1
- package/build/image/index.js +1 -1
- package/build/latest-posts/edit.js +3 -9
- package/build/latest-posts/edit.js.map +1 -1
- package/build/lock-unlock.js.map +1 -1
- package/build/navigation/edit/menu-inspector-controls.js +1 -1
- package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
- package/build/navigation/edit/navigation-menu-selector.js +2 -2
- package/build/navigation/edit/navigation-menu-selector.js.map +1 -1
- package/build/paragraph/edit.js +2 -2
- package/build/paragraph/edit.js.map +1 -1
- package/build/post-content/index.js +13 -0
- package/build/post-content/index.js.map +1 -1
- package/build/post-featured-image/edit.js +1 -1
- package/build/post-featured-image/edit.js.map +1 -1
- package/build/post-template/edit.js +11 -0
- package/build/post-template/edit.js.map +1 -1
- package/build/post-template/index.js +1 -1
- package/build/post-time-to-read/edit.js +2 -2
- package/build/post-time-to-read/edit.js.map +1 -1
- package/build/query/edit/inspector-controls/index.js +2 -2
- package/build/query/edit/inspector-controls/index.js.map +1 -1
- package/build/query/edit/inspector-controls/order-control.js +2 -2
- package/build/query/edit/inspector-controls/order-control.js.map +1 -1
- package/build/query/edit/pattern-selection-modal.js +0 -3
- package/build/query/edit/pattern-selection-modal.js.map +1 -1
- package/build/query/edit/query-content.js +10 -12
- package/build/query/edit/query-content.js.map +1 -1
- package/build/query/index.js +1 -1
- package/build/query/utils.js +32 -1
- package/build/query/utils.js.map +1 -1
- package/build/query-title/edit.js +1 -1
- package/build/query-title/edit.js.map +1 -1
- package/build/search/edit.js +19 -14
- package/build/search/edit.js.map +1 -1
- package/build/separator/transforms.js +12 -0
- package/build/separator/transforms.js.map +1 -1
- package/build/social-links/edit.js +0 -1
- package/build/social-links/edit.js.map +1 -1
- package/build/spacer/index.js +2 -0
- package/build/spacer/index.js.map +1 -1
- package/build/spacer/transforms.js +27 -0
- package/build/spacer/transforms.js.map +1 -0
- package/build/table/edit.js +0 -1
- package/build/table/edit.js.map +1 -1
- package/build/table-of-contents/edit.js +2 -7
- package/build/table-of-contents/edit.js.map +1 -1
- package/build/template-part/edit/index.js +2 -5
- package/build/template-part/edit/index.js.map +1 -1
- package/build/template-part/edit/selection-modal.js +0 -3
- package/build/template-part/edit/selection-modal.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 +1 -3
- package/build/video/tracks-editor.js.map +1 -1
- package/build-module/archives/index.js +6 -0
- package/build-module/archives/index.js.map +1 -1
- package/build-module/avatar/hooks.js +2 -3
- package/build-module/avatar/hooks.js.map +1 -1
- package/build-module/button/get-updated-link-attributes.js +1 -1
- package/build-module/button/get-updated-link-attributes.js.map +1 -1
- package/build-module/button/index.js +1 -1
- package/build-module/button/index.js.map +1 -1
- package/build-module/comments/index.js +12 -0
- package/build-module/comments/index.js.map +1 -1
- package/build-module/cover/constants.js +2 -0
- package/build-module/cover/constants.js.map +1 -0
- package/build-module/cover/deprecated.js +140 -4
- package/build-module/cover/deprecated.js.map +1 -1
- package/build-module/cover/edit/block-controls.js +1 -1
- package/build-module/cover/edit/block-controls.js.map +1 -1
- package/build-module/cover/edit/cover-placeholder.js +1 -2
- package/build-module/cover/edit/cover-placeholder.js.map +1 -1
- package/build-module/cover/edit/index.js +42 -21
- package/build-module/cover/edit/index.js.map +1 -1
- package/build-module/cover/edit/inspector-controls.js +41 -3
- package/build-module/cover/edit/inspector-controls.js.map +1 -1
- package/build-module/cover/index.js +3 -0
- package/build-module/cover/index.js.map +1 -1
- package/build-module/cover/save.js +16 -14
- package/build-module/cover/save.js.map +1 -1
- package/build-module/details/index.js +1 -0
- package/build-module/details/index.js.map +1 -1
- package/build-module/file/edit.js +2 -3
- package/build-module/file/edit.js.map +1 -1
- package/build-module/gallery/constants.js +1 -0
- package/build-module/gallery/constants.js.map +1 -1
- package/build-module/gallery/edit.js +15 -6
- package/build-module/gallery/edit.js.map +1 -1
- package/build-module/gallery/utils.js +27 -6
- package/build-module/gallery/utils.js.map +1 -1
- package/build-module/html/edit.js +6 -2
- package/build-module/html/edit.js.map +1 -1
- package/build-module/html/preview.js +2 -2
- package/build-module/html/preview.js.map +1 -1
- package/build-module/image/edit.js +1 -1
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/image.js +149 -83
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/index.js +1 -1
- package/build-module/latest-posts/edit.js +3 -9
- package/build-module/latest-posts/edit.js.map +1 -1
- package/build-module/lock-unlock.js.map +1 -1
- package/build-module/navigation/edit/menu-inspector-controls.js +1 -3
- package/build-module/navigation/edit/menu-inspector-controls.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-selector.js +2 -2
- package/build-module/navigation/edit/navigation-menu-selector.js.map +1 -1
- package/build-module/paragraph/edit.js +2 -2
- package/build-module/paragraph/edit.js.map +1 -1
- package/build-module/post-content/index.js +13 -0
- package/build-module/post-content/index.js.map +1 -1
- package/build-module/post-featured-image/edit.js +1 -1
- package/build-module/post-featured-image/edit.js.map +1 -1
- package/build-module/post-template/edit.js +11 -0
- package/build-module/post-template/edit.js.map +1 -1
- package/build-module/post-template/index.js +1 -1
- package/build-module/post-time-to-read/edit.js +2 -2
- package/build-module/post-time-to-read/edit.js.map +1 -1
- package/build-module/query/edit/inspector-controls/index.js +2 -2
- package/build-module/query/edit/inspector-controls/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/order-control.js +2 -2
- package/build-module/query/edit/inspector-controls/order-control.js.map +1 -1
- package/build-module/query/edit/pattern-selection-modal.js +0 -3
- package/build-module/query/edit/pattern-selection-modal.js.map +1 -1
- package/build-module/query/edit/query-content.js +10 -12
- package/build-module/query/edit/query-content.js.map +1 -1
- package/build-module/query/index.js +1 -1
- package/build-module/query/utils.js +29 -0
- package/build-module/query/utils.js.map +1 -1
- package/build-module/query-title/edit.js +2 -2
- package/build-module/query-title/edit.js.map +1 -1
- package/build-module/search/edit.js +20 -15
- package/build-module/search/edit.js.map +1 -1
- package/build-module/separator/transforms.js +12 -0
- package/build-module/separator/transforms.js.map +1 -1
- package/build-module/social-links/edit.js +0 -1
- package/build-module/social-links/edit.js.map +1 -1
- package/build-module/spacer/index.js +2 -0
- package/build-module/spacer/index.js.map +1 -1
- package/build-module/spacer/transforms.js +20 -0
- package/build-module/spacer/transforms.js.map +1 -0
- package/build-module/table/edit.js +0 -1
- package/build-module/table/edit.js.map +1 -1
- package/build-module/table-of-contents/edit.js +2 -7
- package/build-module/table-of-contents/edit.js.map +1 -1
- package/build-module/template-part/edit/index.js +2 -5
- package/build-module/template-part/edit/index.js.map +1 -1
- package/build-module/template-part/edit/selection-modal.js +0 -3
- package/build-module/template-part/edit/selection-modal.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 +2 -4
- package/build-module/video/tracks-editor.js.map +1 -1
- package/build-style/archives/editor-rtl.css +5 -0
- package/build-style/archives/editor.css +5 -0
- package/build-style/button/style-rtl.css +3 -0
- package/build-style/button/style.css +3 -0
- package/build-style/comments/editor-rtl.css +4 -0
- package/build-style/comments/editor.css +4 -0
- package/build-style/comments/style-rtl.css +4 -0
- package/build-style/comments/style.css +4 -0
- package/build-style/cover/editor-rtl.css +3 -5
- package/build-style/cover/editor.css +3 -5
- package/build-style/cover/style-rtl.css +19 -10
- package/build-style/cover/style.css +19 -10
- package/build-style/editor-rtl.css +17 -12
- package/build-style/editor.css +17 -12
- package/build-style/image/editor-rtl.css +4 -0
- package/build-style/image/editor.css +4 -0
- package/build-style/latest-posts/editor-rtl.css +0 -7
- package/build-style/latest-posts/editor.css +0 -7
- package/build-style/media-text/style-rtl.css +1 -1
- package/build-style/media-text/style.css +1 -1
- package/build-style/navigation/editor-rtl.css +1 -0
- package/build-style/navigation/editor.css +1 -0
- package/build-style/style-rtl.css +27 -11
- package/build-style/style.css +27 -11
- package/build-types/lock-unlock.d.ts +2 -0
- package/build-types/lock-unlock.d.ts.map +1 -0
- package/package.json +41 -40
- package/src/archives/block.json +6 -0
- package/src/archives/editor.scss +8 -0
- package/src/avatar/hooks.js +2 -3
- package/src/avatar/index.php +4 -5
- package/src/button/get-updated-link-attributes.js +1 -1
- package/src/button/index.js +1 -1
- package/src/button/style.scss +3 -0
- package/src/button/test/get-updated-link-attributes.js +15 -0
- package/src/comment-author-avatar/index.php +1 -1
- package/src/comments/block.json +12 -0
- package/src/comments/style.scss +4 -1
- package/src/cover/block.json +3 -0
- package/src/cover/constants.js +1 -0
- package/src/cover/deprecated.js +182 -4
- package/src/cover/edit/block-controls.js +1 -1
- package/src/cover/edit/cover-placeholder.js +0 -3
- package/src/cover/edit/index.js +57 -24
- package/src/cover/edit/inspector-controls.js +46 -1
- package/src/cover/editor.scss +4 -5
- package/src/cover/save.js +29 -20
- package/src/cover/style.scss +40 -10
- package/src/cover/test/__snapshots__/edit.native.js.snap +9 -9
- package/src/cover/test/__snapshots__/transforms.native.js.snap +4 -4
- package/src/cover/test/edit.js +1 -3
- package/src/cover/test/edit.native.js +4 -4
- package/src/cover/test/transforms.native.js +4 -4
- package/src/details/block.json +1 -0
- package/src/file/edit.js +2 -3
- package/src/gallery/constants.js +1 -0
- package/src/gallery/edit.js +26 -3
- package/src/gallery/utils.js +23 -2
- package/src/html/edit.js +7 -1
- package/src/html/preview.js +3 -2
- package/src/image/block.json +1 -1
- package/src/image/edit.js +1 -1
- package/src/image/editor.scss +4 -0
- package/src/image/image.js +200 -109
- package/src/image/test/__snapshots__/transforms.native.js.snap +1 -1
- package/src/latest-posts/edit.js +3 -8
- package/src/latest-posts/editor.scss +0 -11
- package/src/latest-posts/index.php +1 -1
- package/src/media-text/style.scss +1 -1
- package/src/media-text/test/__snapshots__/transforms.native.js.snap +2 -2
- package/src/navigation/edit/menu-inspector-controls.js +2 -2
- package/src/navigation/edit/navigation-menu-selector.js +2 -2
- package/src/navigation/editor.scss +1 -0
- package/src/navigation/index.php +1 -1
- package/src/paragraph/edit.js +2 -2
- package/src/post-content/block.json +14 -1
- package/src/post-featured-image/edit.js +1 -1
- package/src/post-template/block.json +2 -1
- package/src/post-template/edit.js +19 -0
- package/src/post-time-to-read/edit.js +2 -2
- package/src/post-time-to-read/index.php +1 -1
- package/src/query/block.json +1 -1
- package/src/query/edit/inspector-controls/index.js +2 -2
- package/src/query/edit/inspector-controls/order-control.js +2 -2
- package/src/query/edit/pattern-selection-modal.js +0 -3
- package/src/query/edit/query-content.js +9 -17
- package/src/query/test/utils.js +59 -1
- package/src/query/utils.js +29 -0
- package/src/query-title/edit.js +2 -2
- package/src/rss/index.php +1 -1
- package/src/search/edit.js +28 -25
- package/src/search/index.php +2 -2
- package/src/separator/test/__snapshots__/transforms.native.js.snap +6 -0
- package/src/separator/test/transforms.native.js +1 -1
- package/src/separator/transforms.js +11 -0
- package/src/social-links/edit.js +0 -1
- package/src/spacer/index.js +2 -0
- package/src/spacer/test/__snapshots__/transforms.native.js.snap +6 -0
- package/src/spacer/test/transforms.native.js +1 -1
- package/src/spacer/transforms.js +20 -0
- package/src/table/edit.js +0 -1
- package/src/table-of-contents/edit.js +2 -6
- package/src/template-part/edit/index.js +2 -5
- package/src/template-part/edit/selection-modal.js +0 -3
- package/src/video/edit.js +1 -1
- package/src/video/test/__snapshots__/transforms.native.js.snap +1 -1
- package/src/video/tracks-editor.js +2 -4
- package/tsconfig.tsbuildinfo +1 -1
- /package/src/{lock-unlock.js → lock-unlock.ts} +0 -0
|
@@ -136,6 +136,9 @@
|
|
|
136
136
|
text-align: center;
|
|
137
137
|
word-break: break-word;
|
|
138
138
|
box-sizing: border-box;
|
|
139
|
+
height: 100%;
|
|
140
|
+
width: 100%;
|
|
141
|
+
align-content: center;
|
|
139
142
|
}
|
|
140
143
|
.wp-block-button__link.aligncenter {
|
|
141
144
|
text-align: center;
|
|
@@ -532,6 +535,10 @@
|
|
|
532
535
|
border: none;
|
|
533
536
|
}
|
|
534
537
|
|
|
538
|
+
.wp-block-comments {
|
|
539
|
+
box-sizing: border-box;
|
|
540
|
+
}
|
|
541
|
+
|
|
535
542
|
.wp-block-comments-pagination > .wp-block-comments-pagination-next,
|
|
536
543
|
.wp-block-comments-pagination > .wp-block-comments-pagination-previous,
|
|
537
544
|
.wp-block-comments-pagination > .wp-block-comments-pagination-numbers {
|
|
@@ -665,7 +672,6 @@
|
|
|
665
672
|
right: 0;
|
|
666
673
|
bottom: 0;
|
|
667
674
|
left: 0;
|
|
668
|
-
z-index: 1;
|
|
669
675
|
opacity: 0.5;
|
|
670
676
|
}
|
|
671
677
|
.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before,
|
|
@@ -828,8 +834,8 @@
|
|
|
828
834
|
}
|
|
829
835
|
.wp-block-cover-image .wp-block-cover__inner-container,
|
|
830
836
|
.wp-block-cover .wp-block-cover__inner-container {
|
|
837
|
+
position: relative;
|
|
831
838
|
width: 100%;
|
|
832
|
-
z-index: 1;
|
|
833
839
|
color: inherit; direction: rtl;
|
|
834
840
|
}
|
|
835
841
|
.wp-block-cover-image.is-position-top-left,
|
|
@@ -944,14 +950,6 @@ video.wp-block-cover__video-background.is-repeated {
|
|
|
944
950
|
background-size: auto;
|
|
945
951
|
}
|
|
946
952
|
|
|
947
|
-
.wp-block-cover__video-background {
|
|
948
|
-
z-index: 0;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
.wp-block-cover__image-background {
|
|
952
|
-
z-index: 0;
|
|
953
|
-
}
|
|
954
|
-
|
|
955
953
|
section.wp-block-cover-image h2,
|
|
956
954
|
.wp-block-cover-image-text,
|
|
957
955
|
.wp-block-cover-text {
|
|
@@ -1025,6 +1023,24 @@ section.wp-block-cover-image > h2,
|
|
|
1025
1023
|
color: inherit;
|
|
1026
1024
|
}
|
|
1027
1025
|
|
|
1026
|
+
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__video-background {
|
|
1027
|
+
z-index: 0;
|
|
1028
|
+
}
|
|
1029
|
+
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__image-background {
|
|
1030
|
+
z-index: 0;
|
|
1031
|
+
}
|
|
1032
|
+
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)).has-background-dim:not(.has-background-gradient)::before,
|
|
1033
|
+
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__background,
|
|
1034
|
+
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__gradient-background {
|
|
1035
|
+
z-index: 1;
|
|
1036
|
+
}
|
|
1037
|
+
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__inner-container {
|
|
1038
|
+
z-index: 1;
|
|
1039
|
+
}
|
|
1040
|
+
.has-modal-open body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__inner-container {
|
|
1041
|
+
z-index: auto;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1028
1044
|
.wp-block-details {
|
|
1029
1045
|
box-sizing: border-box;
|
|
1030
1046
|
}
|
|
@@ -2119,7 +2135,7 @@ ul {
|
|
|
2119
2135
|
}
|
|
2120
2136
|
|
|
2121
2137
|
.wp-block-media-text__media a {
|
|
2122
|
-
display:
|
|
2138
|
+
display: block;
|
|
2123
2139
|
}
|
|
2124
2140
|
|
|
2125
2141
|
.wp-block-media-text__media img,
|
package/build-style/style.css
CHANGED
|
@@ -136,6 +136,9 @@
|
|
|
136
136
|
text-align: center;
|
|
137
137
|
word-break: break-word;
|
|
138
138
|
box-sizing: border-box;
|
|
139
|
+
height: 100%;
|
|
140
|
+
width: 100%;
|
|
141
|
+
align-content: center;
|
|
139
142
|
}
|
|
140
143
|
.wp-block-button__link.aligncenter {
|
|
141
144
|
text-align: center;
|
|
@@ -537,6 +540,10 @@
|
|
|
537
540
|
border: none;
|
|
538
541
|
}
|
|
539
542
|
|
|
543
|
+
.wp-block-comments {
|
|
544
|
+
box-sizing: border-box;
|
|
545
|
+
}
|
|
546
|
+
|
|
540
547
|
.wp-block-comments-pagination > .wp-block-comments-pagination-next,
|
|
541
548
|
.wp-block-comments-pagination > .wp-block-comments-pagination-previous,
|
|
542
549
|
.wp-block-comments-pagination > .wp-block-comments-pagination-numbers {
|
|
@@ -673,7 +680,6 @@
|
|
|
673
680
|
left: 0;
|
|
674
681
|
bottom: 0;
|
|
675
682
|
right: 0;
|
|
676
|
-
z-index: 1;
|
|
677
683
|
opacity: 0.5;
|
|
678
684
|
}
|
|
679
685
|
.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before,
|
|
@@ -836,8 +842,8 @@
|
|
|
836
842
|
}
|
|
837
843
|
.wp-block-cover-image .wp-block-cover__inner-container,
|
|
838
844
|
.wp-block-cover .wp-block-cover__inner-container {
|
|
845
|
+
position: relative;
|
|
839
846
|
width: 100%;
|
|
840
|
-
z-index: 1;
|
|
841
847
|
color: inherit;
|
|
842
848
|
/*rtl:raw: direction: rtl; */
|
|
843
849
|
}
|
|
@@ -953,14 +959,6 @@ video.wp-block-cover__video-background.is-repeated {
|
|
|
953
959
|
background-size: auto;
|
|
954
960
|
}
|
|
955
961
|
|
|
956
|
-
.wp-block-cover__video-background {
|
|
957
|
-
z-index: 0;
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
.wp-block-cover__image-background {
|
|
961
|
-
z-index: 0;
|
|
962
|
-
}
|
|
963
|
-
|
|
964
962
|
section.wp-block-cover-image h2,
|
|
965
963
|
.wp-block-cover-image-text,
|
|
966
964
|
.wp-block-cover-text {
|
|
@@ -1034,6 +1032,24 @@ section.wp-block-cover-image > h2,
|
|
|
1034
1032
|
color: inherit;
|
|
1035
1033
|
}
|
|
1036
1034
|
|
|
1035
|
+
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__video-background {
|
|
1036
|
+
z-index: 0;
|
|
1037
|
+
}
|
|
1038
|
+
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__image-background {
|
|
1039
|
+
z-index: 0;
|
|
1040
|
+
}
|
|
1041
|
+
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)).has-background-dim:not(.has-background-gradient)::before,
|
|
1042
|
+
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__background,
|
|
1043
|
+
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__gradient-background {
|
|
1044
|
+
z-index: 1;
|
|
1045
|
+
}
|
|
1046
|
+
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__inner-container {
|
|
1047
|
+
z-index: 1;
|
|
1048
|
+
}
|
|
1049
|
+
.has-modal-open body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__inner-container {
|
|
1050
|
+
z-index: auto;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1037
1053
|
.wp-block-details {
|
|
1038
1054
|
box-sizing: border-box;
|
|
1039
1055
|
}
|
|
@@ -2151,7 +2167,7 @@ ul {
|
|
|
2151
2167
|
}
|
|
2152
2168
|
|
|
2153
2169
|
.wp-block-media-text__media a {
|
|
2154
|
-
display:
|
|
2170
|
+
display: block;
|
|
2155
2171
|
}
|
|
2156
2172
|
|
|
2157
2173
|
.wp-block-media-text__media img,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lock-unlock.d.ts","sourceRoot":"","sources":["../src/lock-unlock.ts"],"names":[],"mappings":"AAKA,eAAO,MAAQ,IAAI,mEAAE,MAAM,0CAIzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.12.0",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -25,11 +25,7 @@
|
|
|
25
25
|
"main": "build/index.js",
|
|
26
26
|
"module": "build-module/index.js",
|
|
27
27
|
"react-native": "src/index",
|
|
28
|
-
"
|
|
29
|
-
"build-style/**",
|
|
30
|
-
"src/**/*.scss",
|
|
31
|
-
"{src,build,build-module}/*/init.js"
|
|
32
|
-
],
|
|
28
|
+
"wpScript": true,
|
|
33
29
|
"wpScriptModuleExports": {
|
|
34
30
|
"./file/view": "./build-module/file/view.js",
|
|
35
31
|
"./image/view": "./build-module/image/view.js",
|
|
@@ -37,41 +33,46 @@
|
|
|
37
33
|
"./query/view": "./build-module/query/view.js",
|
|
38
34
|
"./search/view": "./build-module/search/view.js"
|
|
39
35
|
},
|
|
36
|
+
"sideEffects": [
|
|
37
|
+
"build-style/**",
|
|
38
|
+
"src/**/*.scss",
|
|
39
|
+
"{src,build,build-module}/*/init.js"
|
|
40
|
+
],
|
|
40
41
|
"dependencies": {
|
|
41
42
|
"@babel/runtime": "7.25.7",
|
|
42
|
-
"@wordpress/a11y": "
|
|
43
|
-
"@wordpress/api-fetch": "
|
|
44
|
-
"@wordpress/autop": "
|
|
45
|
-
"@wordpress/blob": "
|
|
46
|
-
"@wordpress/block-editor": "
|
|
47
|
-
"@wordpress/blocks": "
|
|
48
|
-
"@wordpress/components": "
|
|
49
|
-
"@wordpress/compose": "
|
|
50
|
-
"@wordpress/core-data": "
|
|
51
|
-
"@wordpress/data": "
|
|
52
|
-
"@wordpress/date": "
|
|
53
|
-
"@wordpress/deprecated": "
|
|
54
|
-
"@wordpress/dom": "
|
|
55
|
-
"@wordpress/element": "
|
|
56
|
-
"@wordpress/escape-html": "
|
|
57
|
-
"@wordpress/hooks": "
|
|
58
|
-
"@wordpress/html-entities": "
|
|
59
|
-
"@wordpress/i18n": "
|
|
60
|
-
"@wordpress/icons": "
|
|
61
|
-
"@wordpress/interactivity": "
|
|
62
|
-
"@wordpress/interactivity-router": "
|
|
63
|
-
"@wordpress/keyboard-shortcuts": "
|
|
64
|
-
"@wordpress/keycodes": "
|
|
65
|
-
"@wordpress/notices": "
|
|
66
|
-
"@wordpress/patterns": "
|
|
67
|
-
"@wordpress/primitives": "
|
|
68
|
-
"@wordpress/private-apis": "
|
|
69
|
-
"@wordpress/reusable-blocks": "
|
|
70
|
-
"@wordpress/rich-text": "
|
|
71
|
-
"@wordpress/server-side-render": "
|
|
72
|
-
"@wordpress/url": "
|
|
73
|
-
"@wordpress/viewport": "
|
|
74
|
-
"@wordpress/wordcount": "
|
|
43
|
+
"@wordpress/a11y": "*",
|
|
44
|
+
"@wordpress/api-fetch": "*",
|
|
45
|
+
"@wordpress/autop": "*",
|
|
46
|
+
"@wordpress/blob": "*",
|
|
47
|
+
"@wordpress/block-editor": "*",
|
|
48
|
+
"@wordpress/blocks": "*",
|
|
49
|
+
"@wordpress/components": "*",
|
|
50
|
+
"@wordpress/compose": "*",
|
|
51
|
+
"@wordpress/core-data": "*",
|
|
52
|
+
"@wordpress/data": "*",
|
|
53
|
+
"@wordpress/date": "*",
|
|
54
|
+
"@wordpress/deprecated": "*",
|
|
55
|
+
"@wordpress/dom": "*",
|
|
56
|
+
"@wordpress/element": "*",
|
|
57
|
+
"@wordpress/escape-html": "*",
|
|
58
|
+
"@wordpress/hooks": "*",
|
|
59
|
+
"@wordpress/html-entities": "*",
|
|
60
|
+
"@wordpress/i18n": "*",
|
|
61
|
+
"@wordpress/icons": "*",
|
|
62
|
+
"@wordpress/interactivity": "*",
|
|
63
|
+
"@wordpress/interactivity-router": "*",
|
|
64
|
+
"@wordpress/keyboard-shortcuts": "*",
|
|
65
|
+
"@wordpress/keycodes": "*",
|
|
66
|
+
"@wordpress/notices": "*",
|
|
67
|
+
"@wordpress/patterns": "*",
|
|
68
|
+
"@wordpress/primitives": "*",
|
|
69
|
+
"@wordpress/private-apis": "*",
|
|
70
|
+
"@wordpress/reusable-blocks": "*",
|
|
71
|
+
"@wordpress/rich-text": "*",
|
|
72
|
+
"@wordpress/server-side-render": "*",
|
|
73
|
+
"@wordpress/url": "*",
|
|
74
|
+
"@wordpress/viewport": "*",
|
|
75
|
+
"@wordpress/wordcount": "*",
|
|
75
76
|
"change-case": "^4.1.2",
|
|
76
77
|
"clsx": "^2.1.1",
|
|
77
78
|
"colord": "^2.7.0",
|
|
@@ -89,5 +90,5 @@
|
|
|
89
90
|
"publishConfig": {
|
|
90
91
|
"access": "public"
|
|
91
92
|
},
|
|
92
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "510540d99f3d222a96f08d3d7b66c9e7a726f705"
|
|
93
94
|
}
|
package/src/archives/block.json
CHANGED
package/src/archives/editor.scss
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
ul.wp-block-archives {
|
|
2
2
|
padding-left: 2.5em;
|
|
3
3
|
}
|
|
4
|
+
|
|
5
|
+
// The following styles are to prevent duplicate spacing and borders for the archives
|
|
6
|
+
// block in the editor given it uses server side rendering.
|
|
7
|
+
// See https://github.com/WordPress/gutenberg/pull/63400
|
|
8
|
+
.wp-block-archives .wp-block-archives {
|
|
9
|
+
margin: 0;
|
|
10
|
+
border: 0;
|
|
11
|
+
}
|
package/src/avatar/hooks.js
CHANGED
|
@@ -47,9 +47,8 @@ export function useCommentAvatar( { commentId } ) {
|
|
|
47
47
|
src: avatarUrls ? avatarUrls[ avatarUrls.length - 1 ] : defaultAvatar,
|
|
48
48
|
minSize,
|
|
49
49
|
maxSize,
|
|
50
|
-
// translators: %s is the Author name.
|
|
51
50
|
alt: authorName
|
|
52
|
-
? // translators: %s
|
|
51
|
+
? // translators: %s: Author name.
|
|
53
52
|
sprintf( __( '%s Avatar' ), authorName )
|
|
54
53
|
: __( 'Default Avatar' ),
|
|
55
54
|
};
|
|
@@ -89,7 +88,7 @@ export function useUserAvatar( { userId, postId, postType } ) {
|
|
|
89
88
|
minSize,
|
|
90
89
|
maxSize,
|
|
91
90
|
alt: authorDetails
|
|
92
|
-
? // translators: %s
|
|
91
|
+
? // translators: %s: Author name.
|
|
93
92
|
sprintf( __( '%s Avatar' ), authorDetails?.name )
|
|
94
93
|
: __( 'Default Avatar' ),
|
|
95
94
|
};
|
package/src/avatar/index.php
CHANGED
|
@@ -46,7 +46,7 @@ function render_block_core_avatar( $attributes, $content, $block ) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
$author_name = get_the_author_meta( 'display_name', $author_id );
|
|
49
|
-
// translators: %s
|
|
49
|
+
// translators: %s: Author name.
|
|
50
50
|
$alt = sprintf( __( '%s Avatar' ), $author_name );
|
|
51
51
|
$avatar_block = get_avatar(
|
|
52
52
|
$author_id,
|
|
@@ -64,7 +64,7 @@ function render_block_core_avatar( $attributes, $content, $block ) {
|
|
|
64
64
|
// translators: %s is the Author name.
|
|
65
65
|
$label = 'aria-label="' . esc_attr( sprintf( __( '(%s author archive, opens in a new tab)' ), $author_name ) ) . '"';
|
|
66
66
|
}
|
|
67
|
-
// translators:
|
|
67
|
+
// translators: 1: Author archive link. 2: Link target. %3$s Aria label. %4$s Avatar image.
|
|
68
68
|
$avatar_block = sprintf( '<a href="%1$s" target="%2$s" %3$s class="wp-block-avatar__link">%4$s</a>', esc_url( get_author_posts_url( $author_id ) ), esc_attr( $attributes['linkTarget'] ), $label, $avatar_block );
|
|
69
69
|
}
|
|
70
70
|
return sprintf( '<div %1s>%2s</div>', $wrapper_attributes, $avatar_block );
|
|
@@ -73,7 +73,7 @@ function render_block_core_avatar( $attributes, $content, $block ) {
|
|
|
73
73
|
if ( ! $comment ) {
|
|
74
74
|
return '';
|
|
75
75
|
}
|
|
76
|
-
/* translators: %s
|
|
76
|
+
/* translators: %s: Author name. */
|
|
77
77
|
$alt = sprintf( __( '%s Avatar' ), $comment->comment_author );
|
|
78
78
|
$avatar_block = get_avatar(
|
|
79
79
|
$comment,
|
|
@@ -88,10 +88,9 @@ function render_block_core_avatar( $attributes, $content, $block ) {
|
|
|
88
88
|
if ( isset( $attributes['isLink'] ) && $attributes['isLink'] && isset( $comment->comment_author_url ) && '' !== $comment->comment_author_url ) {
|
|
89
89
|
$label = '';
|
|
90
90
|
if ( '_blank' === $attributes['linkTarget'] ) {
|
|
91
|
-
// translators: %s
|
|
91
|
+
// translators: %s: Comment author name.
|
|
92
92
|
$label = 'aria-label="' . esc_attr( sprintf( __( '(%s website link, opens in a new tab)' ), $comment->comment_author ) ) . '"';
|
|
93
93
|
}
|
|
94
|
-
// translators: %1$s: Comment Author website link. %2$s: Link target. %3$s Aria label. %4$s Avatar image.
|
|
95
94
|
$avatar_block = sprintf( '<a href="%1$s" target="%2$s" %3$s class="wp-block-avatar__link">%4$s</a>', esc_url( $comment->comment_author_url ), esc_attr( $attributes['linkTarget'] ), $label, $avatar_block );
|
|
96
95
|
}
|
|
97
96
|
return sprintf( '<div %1s>%2s</div>', $wrapper_attributes, $avatar_block );
|
|
@@ -40,7 +40,7 @@ export function getUpdatedLinkAttributes( {
|
|
|
40
40
|
if ( nofollow ) {
|
|
41
41
|
updatedRel = updatedRel?.includes( NOFOLLOW_REL )
|
|
42
42
|
? updatedRel
|
|
43
|
-
: updatedRel + ` ${ NOFOLLOW_REL }
|
|
43
|
+
: ( updatedRel + ` ${ NOFOLLOW_REL }` ).trim();
|
|
44
44
|
} else {
|
|
45
45
|
const relRegex = new RegExp( `\\b${ NOFOLLOW_REL }\\s*`, 'g' );
|
|
46
46
|
updatedRel = updatedRel?.replace( relRegex, '' ).trim();
|
package/src/button/index.js
CHANGED
package/src/button/style.scss
CHANGED
|
@@ -9,6 +9,9 @@ $blocks-block__margin: 0.5em;
|
|
|
9
9
|
text-align: center;
|
|
10
10
|
word-break: break-word; // overflow-wrap doesn't work well if a link is wrapped in the div, so use word-break here.
|
|
11
11
|
box-sizing: border-box;
|
|
12
|
+
height: 100%;
|
|
13
|
+
width: 100%;
|
|
14
|
+
align-content: center;
|
|
12
15
|
|
|
13
16
|
&.aligncenter {
|
|
14
17
|
text-align: center;
|
|
@@ -79,6 +79,21 @@ describe( 'getUpdatedLinkAttributes method', () => {
|
|
|
79
79
|
expect( result.rel ).toEqual( 'rel_value nofollow' );
|
|
80
80
|
} );
|
|
81
81
|
|
|
82
|
+
it( 'should correctly update link attributes with nofollow without spacing', () => {
|
|
83
|
+
const options = {
|
|
84
|
+
url: 'example.com',
|
|
85
|
+
opensInNewTab: false,
|
|
86
|
+
nofollow: true,
|
|
87
|
+
rel: '',
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const result = getUpdatedLinkAttributes( options );
|
|
91
|
+
|
|
92
|
+
expect( result.url ).toEqual( 'http://example.com' );
|
|
93
|
+
expect( result.linkTarget ).toEqual( undefined );
|
|
94
|
+
expect( result.rel ).toEqual( 'nofollow' );
|
|
95
|
+
} );
|
|
96
|
+
|
|
82
97
|
it( 'should correctly handle rel with existing nofollow values and remove duplicates', () => {
|
|
83
98
|
const options = {
|
|
84
99
|
url: 'example.com',
|
|
@@ -46,7 +46,7 @@ function render_block_core_comment_author_avatar( $attributes, $content, $block
|
|
|
46
46
|
$styles = isset( $wrapper_attributes['style'] ) ? $wrapper_attributes['style'] : '';
|
|
47
47
|
$classes = isset( $wrapper_attributes['class'] ) ? $wrapper_attributes['class'] : '';
|
|
48
48
|
|
|
49
|
-
/* translators: %s
|
|
49
|
+
/* translators: %s: Author name. */
|
|
50
50
|
$alt = sprintf( __( '%s Avatar' ), $comment->comment_author );
|
|
51
51
|
|
|
52
52
|
$avatar_block = get_avatar(
|
package/src/comments/block.json
CHANGED
|
@@ -45,6 +45,18 @@
|
|
|
45
45
|
"__experimentalDefaultControls": {
|
|
46
46
|
"fontSize": true
|
|
47
47
|
}
|
|
48
|
+
},
|
|
49
|
+
"__experimentalBorder": {
|
|
50
|
+
"radius": true,
|
|
51
|
+
"color": true,
|
|
52
|
+
"width": true,
|
|
53
|
+
"style": true,
|
|
54
|
+
"__experimentalDefaultControls": {
|
|
55
|
+
"radius": true,
|
|
56
|
+
"color": true,
|
|
57
|
+
"width": true,
|
|
58
|
+
"style": true
|
|
59
|
+
}
|
|
48
60
|
}
|
|
49
61
|
},
|
|
50
62
|
"editorStyle": "wp-block-comments-editor",
|
package/src/comments/style.scss
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* end utility classes */
|
|
16
|
-
|
|
17
16
|
.navigation {
|
|
18
17
|
&::after {
|
|
19
18
|
content: "";
|
|
@@ -146,3 +145,7 @@
|
|
|
146
145
|
:where(.wp-block-post-comments input[type="submit"]) {
|
|
147
146
|
border: none;
|
|
148
147
|
}
|
|
148
|
+
|
|
149
|
+
.wp-block-comments {
|
|
150
|
+
box-sizing: border-box;
|
|
151
|
+
}
|
package/src/cover/block.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const DEFAULT_MEDIA_SIZE_SLUG = 'full';
|