@wordpress/block-library 8.6.0 → 8.7.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.
Files changed (193) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/buttons/index.js +1 -0
  3. package/build/buttons/index.js.map +1 -1
  4. package/build/buttons/transforms.js +1 -0
  5. package/build/buttons/transforms.js.map +1 -1
  6. package/build/columns/edit.js +4 -2
  7. package/build/columns/edit.js.map +1 -1
  8. package/build/columns/index.js +4 -0
  9. package/build/columns/index.js.map +1 -1
  10. package/build/cover/edit/inspector-controls.js +2 -2
  11. package/build/cover/edit/inspector-controls.js.map +1 -1
  12. package/build/gallery/edit.js +8 -5
  13. package/build/gallery/edit.js.map +1 -1
  14. package/build/gallery/use-image-sizes.js +1 -1
  15. package/build/gallery/use-image-sizes.js.map +1 -1
  16. package/build/group/deprecated.js +4 -2
  17. package/build/group/deprecated.js.map +1 -1
  18. package/build/group/edit.js +22 -5
  19. package/build/group/edit.js.map +1 -1
  20. package/build/group/placeholder.js +11 -1
  21. package/build/group/placeholder.js.map +1 -1
  22. package/build/group/variations.js +23 -3
  23. package/build/group/variations.js.map +1 -1
  24. package/build/image/edit.js +1 -1
  25. package/build/image/edit.js.map +1 -1
  26. package/build/image/edit.native.js +1 -1
  27. package/build/image/edit.native.js.map +1 -1
  28. package/build/image/image.js +8 -6
  29. package/build/image/image.js.map +1 -1
  30. package/build/image/index.js +7 -2
  31. package/build/image/index.js.map +1 -1
  32. package/build/latest-posts/edit.js +1 -0
  33. package/build/latest-posts/edit.js.map +1 -1
  34. package/build/media-text/deprecated.js +228 -18
  35. package/build/media-text/deprecated.js.map +1 -1
  36. package/build/media-text/edit.js +3 -3
  37. package/build/media-text/edit.js.map +1 -1
  38. package/build/media-text/index.js +1 -1
  39. package/build/navigation/edit/index.js +1 -12
  40. package/build/navigation/edit/index.js.map +1 -1
  41. package/build/navigation/edit/inner-blocks.js +1 -4
  42. package/build/navigation/edit/inner-blocks.js.map +1 -1
  43. package/build/navigation/index.js +0 -1
  44. package/build/navigation/index.js.map +1 -1
  45. package/build/post-date/edit.js +2 -1
  46. package/build/post-date/edit.js.map +1 -1
  47. package/build/post-date/index.js +4 -1
  48. package/build/post-date/index.js.map +1 -1
  49. package/build/post-date/variations.js +28 -0
  50. package/build/post-date/variations.js.map +1 -0
  51. package/build/post-excerpt/edit.js +39 -10
  52. package/build/post-excerpt/edit.js.map +1 -1
  53. package/build/post-featured-image/dimension-controls.js +2 -2
  54. package/build/post-featured-image/dimension-controls.js.map +1 -1
  55. package/build/post-template/index.js +1 -1
  56. package/build/post-time-to-read/index.js +17 -1
  57. package/build/post-time-to-read/index.js.map +1 -1
  58. package/build/quote/index.js +1 -0
  59. package/build/quote/index.js.map +1 -1
  60. package/build/spacer/edit.js +16 -6
  61. package/build/spacer/edit.js.map +1 -1
  62. package/build-module/buttons/index.js +1 -0
  63. package/build-module/buttons/index.js.map +1 -1
  64. package/build-module/buttons/transforms.js +1 -0
  65. package/build-module/buttons/transforms.js.map +1 -1
  66. package/build-module/columns/edit.js +4 -2
  67. package/build-module/columns/edit.js.map +1 -1
  68. package/build-module/columns/index.js +4 -0
  69. package/build-module/columns/index.js.map +1 -1
  70. package/build-module/cover/edit/inspector-controls.js +2 -2
  71. package/build-module/cover/edit/inspector-controls.js.map +1 -1
  72. package/build-module/gallery/edit.js +8 -5
  73. package/build-module/gallery/edit.js.map +1 -1
  74. package/build-module/gallery/use-image-sizes.js +1 -1
  75. package/build-module/gallery/use-image-sizes.js.map +1 -1
  76. package/build-module/group/deprecated.js +4 -2
  77. package/build-module/group/deprecated.js.map +1 -1
  78. package/build-module/group/edit.js +21 -5
  79. package/build-module/group/edit.js.map +1 -1
  80. package/build-module/group/placeholder.js +11 -1
  81. package/build-module/group/placeholder.js.map +1 -1
  82. package/build-module/group/variations.js +24 -1
  83. package/build-module/group/variations.js.map +1 -1
  84. package/build-module/image/edit.js +1 -1
  85. package/build-module/image/edit.js.map +1 -1
  86. package/build-module/image/edit.native.js +1 -1
  87. package/build-module/image/edit.native.js.map +1 -1
  88. package/build-module/image/image.js +8 -6
  89. package/build-module/image/image.js.map +1 -1
  90. package/build-module/image/index.js +7 -2
  91. package/build-module/image/index.js.map +1 -1
  92. package/build-module/latest-posts/edit.js +1 -0
  93. package/build-module/latest-posts/edit.js.map +1 -1
  94. package/build-module/media-text/deprecated.js +227 -18
  95. package/build-module/media-text/deprecated.js.map +1 -1
  96. package/build-module/media-text/edit.js +3 -3
  97. package/build-module/media-text/edit.js.map +1 -1
  98. package/build-module/media-text/index.js +1 -1
  99. package/build-module/navigation/edit/index.js +1 -12
  100. package/build-module/navigation/edit/index.js.map +1 -1
  101. package/build-module/navigation/edit/inner-blocks.js +1 -4
  102. package/build-module/navigation/edit/inner-blocks.js.map +1 -1
  103. package/build-module/navigation/index.js +0 -1
  104. package/build-module/navigation/index.js.map +1 -1
  105. package/build-module/post-date/edit.js +2 -1
  106. package/build-module/post-date/edit.js.map +1 -1
  107. package/build-module/post-date/index.js +3 -1
  108. package/build-module/post-date/index.js.map +1 -1
  109. package/build-module/post-date/variations.js +18 -0
  110. package/build-module/post-date/variations.js.map +1 -0
  111. package/build-module/post-excerpt/edit.js +38 -11
  112. package/build-module/post-excerpt/edit.js.map +1 -1
  113. package/build-module/post-featured-image/dimension-controls.js +2 -2
  114. package/build-module/post-featured-image/dimension-controls.js.map +1 -1
  115. package/build-module/post-template/index.js +1 -1
  116. package/build-module/post-time-to-read/index.js +17 -1
  117. package/build-module/post-time-to-read/index.js.map +1 -1
  118. package/build-module/quote/index.js +1 -0
  119. package/build-module/quote/index.js.map +1 -1
  120. package/build-module/spacer/edit.js +16 -6
  121. package/build-module/spacer/edit.js.map +1 -1
  122. package/build-style/categories/editor-rtl.css +5 -0
  123. package/build-style/categories/editor.css +5 -0
  124. package/build-style/categories/style-rtl.css +4 -0
  125. package/build-style/categories/style.css +4 -0
  126. package/build-style/editor-rtl.css +6 -0
  127. package/build-style/editor.css +6 -0
  128. package/build-style/navigation/style-rtl.css +2 -0
  129. package/build-style/navigation/style.css +2 -0
  130. package/build-style/post-featured-image/editor-rtl.css +1 -0
  131. package/build-style/post-featured-image/editor.css +1 -0
  132. package/build-style/post-template/style-rtl.css +1 -1
  133. package/build-style/post-template/style.css +1 -1
  134. package/build-style/post-time-to-read/style-rtl.css +91 -0
  135. package/build-style/post-time-to-read/style.css +91 -0
  136. package/build-style/search/style-rtl.css +8 -7
  137. package/build-style/search/style.css +8 -7
  138. package/build-style/style-rtl.css +19 -8
  139. package/build-style/style.css +19 -8
  140. package/package.json +31 -31
  141. package/src/buttons/block.json +1 -0
  142. package/src/categories/editor.scss +5 -0
  143. package/src/categories/style.scss +4 -0
  144. package/src/columns/block.json +4 -0
  145. package/src/columns/edit.js +2 -1
  146. package/src/comments/index.php +1 -0
  147. package/src/cover/edit/inspector-controls.js +4 -5
  148. package/src/cover/test/__snapshots__/transforms.native.js.snap +2 -2
  149. package/src/cover/test/edit.js +324 -0
  150. package/src/gallery/edit.js +5 -2
  151. package/src/gallery/use-image-sizes.js +1 -1
  152. package/src/group/deprecated.js +4 -2
  153. package/src/group/edit.js +27 -9
  154. package/src/group/placeholder.js +13 -1
  155. package/src/group/variations.js +14 -1
  156. package/src/home-link/index.php +2 -2
  157. package/src/image/block.json +7 -2
  158. package/src/image/edit.js +1 -1
  159. package/src/image/edit.native.js +1 -1
  160. package/src/image/image.js +15 -7
  161. package/src/image/index.php +7 -2
  162. package/src/image/test/__snapshots__/transforms.native.js.snap +1 -1
  163. package/src/latest-comments/style.scss +1 -1
  164. package/src/latest-posts/edit.js +3 -0
  165. package/src/media-text/block.json +1 -1
  166. package/src/media-text/deprecated.js +235 -3
  167. package/src/media-text/edit.js +7 -6
  168. package/src/media-text/test/__snapshots__/transforms.native.js.snap +4 -4
  169. package/src/navigation/block.json +0 -1
  170. package/src/navigation/edit/index.js +0 -13
  171. package/src/navigation/edit/inner-blocks.js +0 -3
  172. package/src/navigation/style.scss +6 -4
  173. package/src/navigation-link/index.php +2 -1
  174. package/src/navigation-submenu/index.php +30 -76
  175. package/src/post-author/index.php +1 -1
  176. package/src/post-date/edit.js +4 -1
  177. package/src/post-date/index.js +2 -0
  178. package/src/post-date/variations.js +20 -0
  179. package/src/post-excerpt/edit.js +48 -16
  180. package/src/post-featured-image/dimension-controls.js +2 -2
  181. package/src/post-featured-image/editor.scss +1 -0
  182. package/src/post-template/block.json +1 -1
  183. package/src/post-template/style.scss +1 -1
  184. package/src/post-time-to-read/block.json +17 -1
  185. package/src/post-time-to-read/style.scss +4 -0
  186. package/src/query-title/index.php +2 -5
  187. package/src/quote/block.json +1 -0
  188. package/src/search/style.scss +16 -12
  189. package/src/spacer/edit.js +18 -5
  190. package/src/style.scss +1 -0
  191. package/src/video/test/__snapshots__/transforms.native.js.snap +1 -1
  192. package/tsconfig.tsbuildinfo +1 -1
  193. package/src/cover/test/block-controls.js +0 -62
@@ -102,7 +102,7 @@
102
102
  flex-wrap: wrap;
103
103
  gap: 1.25em;
104
104
  }
105
- .wp-block-post-template.is-flex-container li {
105
+ .wp-block-post-template.is-flex-container > li {
106
106
  margin: 0;
107
107
  width: 100%;
108
108
  }
@@ -102,7 +102,7 @@
102
102
  flex-wrap: wrap;
103
103
  gap: 1.25em;
104
104
  }
105
- .wp-block-post-template.is-flex-container li {
105
+ .wp-block-post-template.is-flex-container > li {
106
106
  margin: 0;
107
107
  width: 100%;
108
108
  }
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Converts a hex value into the rgb equivalent.
3
+ *
4
+ * @param {string} hex - the hexadecimal value to convert
5
+ * @return {string} comma separated rgb values
6
+ */
7
+ /**
8
+ * Colors
9
+ */
10
+ /**
11
+ * Breakpoints & Media Queries
12
+ */
13
+ /**
14
+ * SCSS Variables.
15
+ *
16
+ * Please use variables from this sheet to ensure consistency across the UI.
17
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
18
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
19
+ */
20
+ /**
21
+ * Converts a hex value into the rgb equivalent.
22
+ *
23
+ * @param {string} hex - the hexadecimal value to convert
24
+ * @return {string} comma separated rgb values
25
+ */
26
+ /**
27
+ * Colors
28
+ */
29
+ /**
30
+ * Fonts & basic variables.
31
+ */
32
+ /**
33
+ * Grid System.
34
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
35
+ */
36
+ /**
37
+ * Dimensions.
38
+ */
39
+ /**
40
+ * Shadows.
41
+ */
42
+ /**
43
+ * Editor widths.
44
+ */
45
+ /**
46
+ * Block & Editor UI.
47
+ */
48
+ /**
49
+ * Block paddings.
50
+ */
51
+ /**
52
+ * React Native specific.
53
+ * These variables do not appear to be used anywhere else.
54
+ */
55
+ /**
56
+ * Converts a hex value into the rgb equivalent.
57
+ *
58
+ * @param {string} hex - the hexadecimal value to convert
59
+ * @return {string} comma separated rgb values
60
+ */
61
+ /**
62
+ * Long content fade mixin
63
+ *
64
+ * Creates a fading overlay to signify that the content is longer
65
+ * than the space allows.
66
+ */
67
+ /**
68
+ * Breakpoint mixins
69
+ */
70
+ /**
71
+ * Focus styles.
72
+ */
73
+ /**
74
+ * Applies editor left position to the selector passed as argument
75
+ */
76
+ /**
77
+ * Styles that are reused verbatim in a few places
78
+ */
79
+ /**
80
+ * Allows users to opt-out of animations via OS-level preferences.
81
+ */
82
+ /**
83
+ * Reset default styles for JavaScript UI based pages.
84
+ * This is a WP-admin agnostic reset
85
+ */
86
+ /**
87
+ * Reset the WP Admin page styles for Gutenberg-like pages.
88
+ */
89
+ .wp-block-post-time-to-read {
90
+ box-sizing: border-box;
91
+ }
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Converts a hex value into the rgb equivalent.
3
+ *
4
+ * @param {string} hex - the hexadecimal value to convert
5
+ * @return {string} comma separated rgb values
6
+ */
7
+ /**
8
+ * Colors
9
+ */
10
+ /**
11
+ * Breakpoints & Media Queries
12
+ */
13
+ /**
14
+ * SCSS Variables.
15
+ *
16
+ * Please use variables from this sheet to ensure consistency across the UI.
17
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
18
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
19
+ */
20
+ /**
21
+ * Converts a hex value into the rgb equivalent.
22
+ *
23
+ * @param {string} hex - the hexadecimal value to convert
24
+ * @return {string} comma separated rgb values
25
+ */
26
+ /**
27
+ * Colors
28
+ */
29
+ /**
30
+ * Fonts & basic variables.
31
+ */
32
+ /**
33
+ * Grid System.
34
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
35
+ */
36
+ /**
37
+ * Dimensions.
38
+ */
39
+ /**
40
+ * Shadows.
41
+ */
42
+ /**
43
+ * Editor widths.
44
+ */
45
+ /**
46
+ * Block & Editor UI.
47
+ */
48
+ /**
49
+ * Block paddings.
50
+ */
51
+ /**
52
+ * React Native specific.
53
+ * These variables do not appear to be used anywhere else.
54
+ */
55
+ /**
56
+ * Converts a hex value into the rgb equivalent.
57
+ *
58
+ * @param {string} hex - the hexadecimal value to convert
59
+ * @return {string} comma separated rgb values
60
+ */
61
+ /**
62
+ * Long content fade mixin
63
+ *
64
+ * Creates a fading overlay to signify that the content is longer
65
+ * than the space allows.
66
+ */
67
+ /**
68
+ * Breakpoint mixins
69
+ */
70
+ /**
71
+ * Focus styles.
72
+ */
73
+ /**
74
+ * Applies editor left position to the selector passed as argument
75
+ */
76
+ /**
77
+ * Styles that are reused verbatim in a few places
78
+ */
79
+ /**
80
+ * Allows users to opt-out of animations via OS-level preferences.
81
+ */
82
+ /**
83
+ * Reset default styles for JavaScript UI based pages.
84
+ * This is a WP-admin agnostic reset
85
+ */
86
+ /**
87
+ * Reset the WP Admin page styles for Gutenberg-like pages.
88
+ */
89
+ .wp-block-post-time-to-read {
90
+ box-sizing: border-box;
91
+ }
@@ -87,22 +87,22 @@
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
89
  .wp-block-search__button {
90
- margin-right: 0.625em;
90
+ margin-right: 10px;
91
91
  word-break: normal;
92
92
  }
93
93
  .wp-block-search__button.has-icon {
94
94
  line-height: 0;
95
95
  }
96
96
  .wp-block-search__button svg {
97
- min-width: 1.5em;
98
- min-height: 1.5em;
97
+ min-width: 24px;
98
+ min-height: 24px;
99
99
  fill: currentColor;
100
100
  vertical-align: text-bottom;
101
101
  }
102
102
 
103
103
  :where(.wp-block-search__button) {
104
104
  border: 1px solid #ccc;
105
- padding: 0.375em 0.625em;
105
+ padding: 6px 10px;
106
106
  }
107
107
 
108
108
  .wp-block-search__inside-wrapper {
@@ -121,7 +121,7 @@
121
121
  flex-grow: 1;
122
122
  margin-right: 0;
123
123
  margin-left: 0;
124
- min-width: 3em;
124
+ min-width: 3rem;
125
125
  border: 1px solid #949494;
126
126
  text-decoration: unset !important;
127
127
  }
@@ -133,17 +133,18 @@
133
133
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
134
134
  padding: 4px;
135
135
  border: 1px solid #949494;
136
+ box-sizing: border-box;
136
137
  }
137
138
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
138
139
  border-radius: 0;
139
140
  border: none;
140
- padding: 0 0.25em 0 0;
141
+ padding: 0 4px;
141
142
  }
142
143
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus {
143
144
  outline: none;
144
145
  }
145
146
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button) {
146
- padding: 0.125em 0.5em;
147
+ padding: 4px 8px;
147
148
  }
148
149
 
149
150
  .wp-block-search.aligncenter .wp-block-search__inside-wrapper {
@@ -87,22 +87,22 @@
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
89
  .wp-block-search__button {
90
- margin-left: 0.625em;
90
+ margin-left: 10px;
91
91
  word-break: normal;
92
92
  }
93
93
  .wp-block-search__button.has-icon {
94
94
  line-height: 0;
95
95
  }
96
96
  .wp-block-search__button svg {
97
- min-width: 1.5em;
98
- min-height: 1.5em;
97
+ min-width: 24px;
98
+ min-height: 24px;
99
99
  fill: currentColor;
100
100
  vertical-align: text-bottom;
101
101
  }
102
102
 
103
103
  :where(.wp-block-search__button) {
104
104
  border: 1px solid #ccc;
105
- padding: 0.375em 0.625em;
105
+ padding: 6px 10px;
106
106
  }
107
107
 
108
108
  .wp-block-search__inside-wrapper {
@@ -121,7 +121,7 @@
121
121
  flex-grow: 1;
122
122
  margin-left: 0;
123
123
  margin-right: 0;
124
- min-width: 3em;
124
+ min-width: 3rem;
125
125
  border: 1px solid #949494;
126
126
  text-decoration: unset !important;
127
127
  }
@@ -133,17 +133,18 @@
133
133
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
134
134
  padding: 4px;
135
135
  border: 1px solid #949494;
136
+ box-sizing: border-box;
136
137
  }
137
138
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
138
139
  border-radius: 0;
139
140
  border: none;
140
- padding: 0 0 0 0.25em;
141
+ padding: 0 4px;
141
142
  }
142
143
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus {
143
144
  outline: none;
144
145
  }
145
146
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button) {
146
- padding: 0.125em 0.5em;
147
+ padding: 4px 8px;
147
148
  }
148
149
 
149
150
  .wp-block-search.aligncenter .wp-block-search__inside-wrapper {
@@ -329,6 +329,7 @@
329
329
 
330
330
  .wp-block-categories {
331
331
  box-sizing: border-box;
332
+ /* Only apply the text align on dropdowns, not lists. */
332
333
  }
333
334
  .wp-block-categories.alignleft {
334
335
  margin-right: 2em;
@@ -336,6 +337,9 @@
336
337
  .wp-block-categories.alignright {
337
338
  margin-left: 2em;
338
339
  }
340
+ .wp-block-categories.wp-block-categories-dropdown.aligncenter {
341
+ text-align: center;
342
+ }
339
343
 
340
344
  .wp-block-code {
341
345
  box-sizing: border-box;
@@ -2301,6 +2305,8 @@ button.wp-block-navigation-item__content {
2301
2305
 
2302
2306
  .wp-block-navigation__responsive-close {
2303
2307
  width: 100%;
2308
+ }
2309
+ .has-modal-open .wp-block-navigation__responsive-close {
2304
2310
  max-width: var(--wp--style--global--wide-size, 100%);
2305
2311
  margin-right: auto;
2306
2312
  margin-left: auto;
@@ -2594,6 +2600,10 @@ p.has-background {
2594
2600
  white-space: pre-wrap;
2595
2601
  }
2596
2602
 
2603
+ .wp-block-post-time-to-read {
2604
+ box-sizing: border-box;
2605
+ }
2606
+
2597
2607
  .wp-block-post-title {
2598
2608
  word-break: break-word;
2599
2609
  box-sizing: border-box;
@@ -2679,7 +2689,7 @@ p.has-background {
2679
2689
  flex-wrap: wrap;
2680
2690
  gap: 1.25em;
2681
2691
  }
2682
- .wp-block-post-template.is-flex-container li {
2692
+ .wp-block-post-template.is-flex-container > li {
2683
2693
  margin: 0;
2684
2694
  width: 100%;
2685
2695
  }
@@ -2820,22 +2830,22 @@ ul.wp-block-rss.is-grid li {
2820
2830
  }
2821
2831
 
2822
2832
  .wp-block-search__button {
2823
- margin-right: 0.625em;
2833
+ margin-right: 10px;
2824
2834
  word-break: normal;
2825
2835
  }
2826
2836
  .wp-block-search__button.has-icon {
2827
2837
  line-height: 0;
2828
2838
  }
2829
2839
  .wp-block-search__button svg {
2830
- min-width: 1.5em;
2831
- min-height: 1.5em;
2840
+ min-width: 24px;
2841
+ min-height: 24px;
2832
2842
  fill: currentColor;
2833
2843
  vertical-align: text-bottom;
2834
2844
  }
2835
2845
 
2836
2846
  :where(.wp-block-search__button) {
2837
2847
  border: 1px solid #ccc;
2838
- padding: 0.375em 0.625em;
2848
+ padding: 6px 10px;
2839
2849
  }
2840
2850
 
2841
2851
  .wp-block-search__inside-wrapper {
@@ -2854,7 +2864,7 @@ ul.wp-block-rss.is-grid li {
2854
2864
  flex-grow: 1;
2855
2865
  margin-right: 0;
2856
2866
  margin-left: 0;
2857
- min-width: 3em;
2867
+ min-width: 3rem;
2858
2868
  border: 1px solid #949494;
2859
2869
  text-decoration: unset !important;
2860
2870
  }
@@ -2866,17 +2876,18 @@ ul.wp-block-rss.is-grid li {
2866
2876
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
2867
2877
  padding: 4px;
2868
2878
  border: 1px solid #949494;
2879
+ box-sizing: border-box;
2869
2880
  }
2870
2881
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
2871
2882
  border-radius: 0;
2872
2883
  border: none;
2873
- padding: 0 0.25em 0 0;
2884
+ padding: 0 4px;
2874
2885
  }
2875
2886
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus {
2876
2887
  outline: none;
2877
2888
  }
2878
2889
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button) {
2879
- padding: 0.125em 0.5em;
2890
+ padding: 4px 8px;
2880
2891
  }
2881
2892
 
2882
2893
  .wp-block-search.aligncenter .wp-block-search__inside-wrapper {
@@ -330,6 +330,7 @@
330
330
 
331
331
  .wp-block-categories {
332
332
  box-sizing: border-box;
333
+ /* Only apply the text align on dropdowns, not lists. */
333
334
  }
334
335
  .wp-block-categories.alignleft {
335
336
  /*rtl:ignore*/
@@ -339,6 +340,9 @@
339
340
  /*rtl:ignore*/
340
341
  margin-left: 2em;
341
342
  }
343
+ .wp-block-categories.wp-block-categories-dropdown.aligncenter {
344
+ text-align: center;
345
+ }
342
346
 
343
347
  .wp-block-code {
344
348
  box-sizing: border-box;
@@ -2331,6 +2335,8 @@ button.wp-block-navigation-item__content {
2331
2335
 
2332
2336
  .wp-block-navigation__responsive-close {
2333
2337
  width: 100%;
2338
+ }
2339
+ .has-modal-open .wp-block-navigation__responsive-close {
2334
2340
  max-width: var(--wp--style--global--wide-size, 100%);
2335
2341
  margin-left: auto;
2336
2342
  margin-right: auto;
@@ -2624,6 +2630,10 @@ p.has-background {
2624
2630
  white-space: pre-wrap;
2625
2631
  }
2626
2632
 
2633
+ .wp-block-post-time-to-read {
2634
+ box-sizing: border-box;
2635
+ }
2636
+
2627
2637
  .wp-block-post-title {
2628
2638
  word-break: break-word;
2629
2639
  box-sizing: border-box;
@@ -2709,7 +2719,7 @@ p.has-background {
2709
2719
  flex-wrap: wrap;
2710
2720
  gap: 1.25em;
2711
2721
  }
2712
- .wp-block-post-template.is-flex-container li {
2722
+ .wp-block-post-template.is-flex-container > li {
2713
2723
  margin: 0;
2714
2724
  width: 100%;
2715
2725
  }
@@ -2854,22 +2864,22 @@ ul.wp-block-rss.is-grid li {
2854
2864
  }
2855
2865
 
2856
2866
  .wp-block-search__button {
2857
- margin-left: 0.625em;
2867
+ margin-left: 10px;
2858
2868
  word-break: normal;
2859
2869
  }
2860
2870
  .wp-block-search__button.has-icon {
2861
2871
  line-height: 0;
2862
2872
  }
2863
2873
  .wp-block-search__button svg {
2864
- min-width: 1.5em;
2865
- min-height: 1.5em;
2874
+ min-width: 24px;
2875
+ min-height: 24px;
2866
2876
  fill: currentColor;
2867
2877
  vertical-align: text-bottom;
2868
2878
  }
2869
2879
 
2870
2880
  :where(.wp-block-search__button) {
2871
2881
  border: 1px solid #ccc;
2872
- padding: 0.375em 0.625em;
2882
+ padding: 6px 10px;
2873
2883
  }
2874
2884
 
2875
2885
  .wp-block-search__inside-wrapper {
@@ -2888,7 +2898,7 @@ ul.wp-block-rss.is-grid li {
2888
2898
  flex-grow: 1;
2889
2899
  margin-left: 0;
2890
2900
  margin-right: 0;
2891
- min-width: 3em;
2901
+ min-width: 3rem;
2892
2902
  border: 1px solid #949494;
2893
2903
  text-decoration: unset !important;
2894
2904
  }
@@ -2900,17 +2910,18 @@ ul.wp-block-rss.is-grid li {
2900
2910
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
2901
2911
  padding: 4px;
2902
2912
  border: 1px solid #949494;
2913
+ box-sizing: border-box;
2903
2914
  }
2904
2915
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
2905
2916
  border-radius: 0;
2906
2917
  border: none;
2907
- padding: 0 0 0 0.25em;
2918
+ padding: 0 4px;
2908
2919
  }
2909
2920
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus {
2910
2921
  outline: none;
2911
2922
  }
2912
2923
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button) {
2913
- padding: 0.125em 0.5em;
2924
+ padding: 4px 8px;
2914
2925
  }
2915
2926
 
2916
2927
  .wp-block-search.aligncenter .wp-block-search__inside-wrapper {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "8.6.0",
3
+ "version": "8.7.0",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -31,35 +31,35 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.16.0",
34
- "@wordpress/a11y": "^3.29.0",
35
- "@wordpress/api-fetch": "^6.26.0",
36
- "@wordpress/autop": "^3.29.0",
37
- "@wordpress/blob": "^3.29.0",
38
- "@wordpress/block-editor": "^11.6.0",
39
- "@wordpress/blocks": "^12.6.0",
40
- "@wordpress/components": "^23.6.0",
41
- "@wordpress/compose": "^6.6.0",
42
- "@wordpress/core-data": "^6.6.0",
43
- "@wordpress/data": "^8.6.0",
44
- "@wordpress/date": "^4.29.0",
45
- "@wordpress/deprecated": "^3.29.0",
46
- "@wordpress/dom": "^3.29.0",
47
- "@wordpress/element": "^5.6.0",
48
- "@wordpress/escape-html": "^2.29.0",
49
- "@wordpress/hooks": "^3.29.0",
50
- "@wordpress/html-entities": "^3.29.0",
51
- "@wordpress/i18n": "^4.29.0",
52
- "@wordpress/icons": "^9.20.0",
53
- "@wordpress/keycodes": "^3.29.0",
54
- "@wordpress/notices": "^3.29.0",
55
- "@wordpress/primitives": "^3.27.0",
56
- "@wordpress/private-apis": "^0.11.0",
57
- "@wordpress/reusable-blocks": "^4.6.0",
58
- "@wordpress/rich-text": "^6.6.0",
59
- "@wordpress/server-side-render": "^4.6.0",
60
- "@wordpress/url": "^3.30.0",
61
- "@wordpress/viewport": "^5.6.0",
62
- "@wordpress/wordcount": "^3.29.0",
34
+ "@wordpress/a11y": "^3.30.0",
35
+ "@wordpress/api-fetch": "^6.27.0",
36
+ "@wordpress/autop": "^3.30.0",
37
+ "@wordpress/blob": "^3.30.0",
38
+ "@wordpress/block-editor": "^11.7.0",
39
+ "@wordpress/blocks": "^12.7.0",
40
+ "@wordpress/components": "^23.7.0",
41
+ "@wordpress/compose": "^6.7.0",
42
+ "@wordpress/core-data": "^6.7.0",
43
+ "@wordpress/data": "^9.0.0",
44
+ "@wordpress/date": "^4.30.0",
45
+ "@wordpress/deprecated": "^3.30.0",
46
+ "@wordpress/dom": "^3.30.0",
47
+ "@wordpress/element": "^5.7.0",
48
+ "@wordpress/escape-html": "^2.30.0",
49
+ "@wordpress/hooks": "^3.30.0",
50
+ "@wordpress/html-entities": "^3.30.0",
51
+ "@wordpress/i18n": "^4.30.0",
52
+ "@wordpress/icons": "^9.21.0",
53
+ "@wordpress/keycodes": "^3.30.0",
54
+ "@wordpress/notices": "^3.30.0",
55
+ "@wordpress/primitives": "^3.28.0",
56
+ "@wordpress/private-apis": "^0.12.0",
57
+ "@wordpress/reusable-blocks": "^4.7.0",
58
+ "@wordpress/rich-text": "^6.7.0",
59
+ "@wordpress/server-side-render": "^4.7.0",
60
+ "@wordpress/url": "^3.31.0",
61
+ "@wordpress/viewport": "^5.7.0",
62
+ "@wordpress/wordcount": "^3.30.0",
63
63
  "change-case": "^4.1.2",
64
64
  "classnames": "^2.3.1",
65
65
  "colord": "^2.7.0",
@@ -78,5 +78,5 @@
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "gitHead": "9534a7b3bbf07c1d40b94fdb7a3d091f297bfb06"
81
+ "gitHead": "d5c28a67b11e91e3e4b8e90346bfcb90909364d6"
82
82
  }
@@ -10,6 +10,7 @@
10
10
  "supports": {
11
11
  "anchor": true,
12
12
  "align": [ "wide", "full" ],
13
+ "html": false,
13
14
  "__experimentalExposeControlsToChildren": true,
14
15
  "spacing": {
15
16
  "blockGap": true,
@@ -5,3 +5,8 @@
5
5
  margin-top: 6px;
6
6
  }
7
7
  }
8
+
9
+ /* Center alignment for classic themes. */
10
+ [data-align="center"] .wp-block-categories {
11
+ text-align: center;
12
+ }
@@ -10,4 +10,8 @@
10
10
  /*rtl:ignore*/
11
11
  margin-left: 2em;
12
12
  }
13
+ /* Only apply the text align on dropdowns, not lists. */
14
+ &.wp-block-categories-dropdown.aligncenter {
15
+ text-align: center;
16
+ }
13
17
  }
@@ -13,6 +13,10 @@
13
13
  "isStackedOnMobile": {
14
14
  "type": "boolean",
15
15
  "default": true
16
+ },
17
+ "templateLock": {
18
+ "type": [ "string", "boolean" ],
19
+ "enum": [ "all", "insert", "contentOnly", false ]
16
20
  }
17
21
  },
18
22
  "supports": {
@@ -58,7 +58,7 @@ function ColumnsEditContainer( {
58
58
  updateColumns,
59
59
  clientId,
60
60
  } ) {
61
- const { isStackedOnMobile, verticalAlignment } = attributes;
61
+ const { isStackedOnMobile, verticalAlignment, templateLock } = attributes;
62
62
 
63
63
  const { count, canInsertColumnBlock } = useSelect(
64
64
  ( select ) => {
@@ -84,6 +84,7 @@ function ColumnsEditContainer( {
84
84
  allowedBlocks: ALLOWED_BLOCKS,
85
85
  orientation: 'horizontal',
86
86
  renderAppender: false,
87
+ templateLock,
87
88
  } );
88
89
 
89
90
  return (
@@ -212,6 +212,7 @@ function register_legacy_post_comments_block() {
212
212
  * like `_wp_multiple_block_styles`, which is required in this case because
213
213
  * the block has multiple styles.
214
214
  */
215
+ /** This filter is documented in wp-includes/blocks.php */
215
216
  $metadata = apply_filters( 'block_type_metadata', $metadata );
216
217
 
217
218
  register_block_type( 'core/post-comments', $metadata );