@wordpress/block-library 7.4.0 → 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.
Files changed (269) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/audio/edit.js +3 -15
  3. package/build/audio/edit.js.map +1 -1
  4. package/build/button/edit.native.js +7 -3
  5. package/build/button/edit.native.js.map +1 -1
  6. package/build/comment-template/edit.js +1 -3
  7. package/build/comment-template/edit.js.map +1 -1
  8. package/build/{comments-query-loop → comments}/edit/comments-inspector-controls.js +0 -0
  9. package/{build-module/comments-query-loop → build/comments}/edit/comments-inspector-controls.js.map +1 -1
  10. package/build/{comments-query-loop → comments}/edit.js +3 -3
  11. package/build/comments/edit.js.map +1 -0
  12. package/build/{comments-query-loop → comments}/index.js +1 -1
  13. package/build/comments/index.js.map +1 -0
  14. package/build/{comments-query-loop → comments}/save.js +2 -2
  15. package/build/comments/save.js.map +1 -0
  16. package/build/comments-title/edit.js +7 -5
  17. package/build/comments-title/edit.js.map +1 -1
  18. package/build/cover/edit.js +4 -71
  19. package/build/cover/edit.js.map +1 -1
  20. package/build/cover/edit.native.js +36 -15
  21. package/build/cover/edit.native.js.map +1 -1
  22. package/build/cover/transforms.js +77 -6
  23. package/build/cover/transforms.js.map +1 -1
  24. package/build/cover/use-cover-is-dark.js +81 -0
  25. package/build/cover/use-cover-is-dark.js.map +1 -0
  26. package/build/cover/use-cover-is-dark.native.js +60 -0
  27. package/build/cover/use-cover-is-dark.native.js.map +1 -0
  28. package/build/group/index.js +1 -0
  29. package/build/group/index.js.map +1 -1
  30. package/build/heading/transforms.js +8 -4
  31. package/build/heading/transforms.js.map +1 -1
  32. package/build/index.js +4 -6
  33. package/build/index.js.map +1 -1
  34. package/build/latest-posts/edit.native.js +49 -0
  35. package/build/latest-posts/edit.native.js.map +1 -1
  36. package/build/navigation/edit/index.js +5 -28
  37. package/build/navigation/edit/index.js.map +1 -1
  38. package/build/navigation/edit/inner-blocks.js +5 -7
  39. package/build/navigation/edit/inner-blocks.js.map +1 -1
  40. package/build/navigation/index.js +0 -1
  41. package/build/navigation/index.js.map +1 -1
  42. package/build/navigation/view-modal.js +25 -0
  43. package/build/navigation/view-modal.js.map +1 -1
  44. package/build/navigation-link/edit.js +29 -30
  45. package/build/navigation-link/edit.js.map +1 -1
  46. package/build/navigation-submenu/edit.js +14 -14
  47. package/build/navigation-submenu/edit.js.map +1 -1
  48. package/build/paragraph/edit.js +10 -0
  49. package/build/paragraph/edit.js.map +1 -1
  50. package/build/paragraph/use-enter.js +94 -0
  51. package/build/paragraph/use-enter.js.map +1 -0
  52. package/build/post-comment/index.js +1 -1
  53. package/build/post-comments/edit.js +120 -35
  54. package/build/post-comments/edit.js.map +1 -1
  55. package/build/post-comments/index.js +3 -2
  56. package/build/post-comments/index.js.map +1 -1
  57. package/build/post-comments-form/edit.js +38 -4
  58. package/build/post-comments-form/edit.js.map +1 -1
  59. package/build/post-comments-form/form.js +48 -0
  60. package/build/post-comments-form/form.js.map +1 -0
  61. package/build/post-comments-form/index.js +1 -0
  62. package/build/post-comments-form/index.js.map +1 -1
  63. package/build/post-content/edit.js +1 -1
  64. package/build/post-content/edit.js.map +1 -1
  65. package/build/post-excerpt/edit.js +1 -1
  66. package/build/post-excerpt/edit.js.map +1 -1
  67. package/build/post-terms/edit.js +25 -3
  68. package/build/post-terms/edit.js.map +1 -1
  69. package/build/post-terms/index.js +8 -0
  70. package/build/post-terms/index.js.map +1 -1
  71. package/build/query-no-results/edit.js +1 -1
  72. package/build/query-no-results/edit.js.map +1 -1
  73. package/build/quote/index.js +1 -0
  74. package/build/quote/index.js.map +1 -1
  75. package/build/separator/index.js +3 -0
  76. package/build/separator/index.js.map +1 -1
  77. package/build/video/edit.js +3 -7
  78. package/build/video/edit.js.map +1 -1
  79. package/build-module/audio/edit.js +3 -15
  80. package/build-module/audio/edit.js.map +1 -1
  81. package/build-module/button/edit.native.js +7 -3
  82. package/build-module/button/edit.native.js.map +1 -1
  83. package/build-module/comment-template/edit.js +1 -3
  84. package/build-module/comment-template/edit.js.map +1 -1
  85. package/build-module/{comments-query-loop → comments}/edit/comments-inspector-controls.js +0 -0
  86. package/build-module/comments/edit/comments-inspector-controls.js.map +1 -0
  87. package/build-module/{comments-query-loop → comments}/edit.js +2 -2
  88. package/build-module/comments/edit.js.map +1 -0
  89. package/build-module/{comments-query-loop → comments}/index.js +1 -1
  90. package/build-module/comments/index.js.map +1 -0
  91. package/build-module/{comments-query-loop → comments}/save.js +1 -1
  92. package/build-module/comments/save.js.map +1 -0
  93. package/build-module/comments-title/edit.js +7 -5
  94. package/build-module/comments-title/edit.js.map +1 -1
  95. package/build-module/cover/edit.js +4 -71
  96. package/build-module/cover/edit.js.map +1 -1
  97. package/build-module/cover/edit.native.js +35 -16
  98. package/build-module/cover/edit.native.js.map +1 -1
  99. package/build-module/cover/transforms.js +74 -6
  100. package/build-module/cover/transforms.js.map +1 -1
  101. package/build-module/cover/use-cover-is-dark.js +70 -0
  102. package/build-module/cover/use-cover-is-dark.js.map +1 -0
  103. package/build-module/cover/use-cover-is-dark.native.js +51 -0
  104. package/build-module/cover/use-cover-is-dark.native.js.map +1 -0
  105. package/build-module/group/index.js +1 -0
  106. package/build-module/group/index.js.map +1 -1
  107. package/build-module/heading/transforms.js +8 -4
  108. package/build-module/heading/transforms.js.map +1 -1
  109. package/build-module/index.js +3 -4
  110. package/build-module/index.js.map +1 -1
  111. package/build-module/latest-posts/edit.native.js +51 -2
  112. package/build-module/latest-posts/edit.native.js.map +1 -1
  113. package/build-module/navigation/edit/index.js +6 -28
  114. package/build-module/navigation/edit/index.js.map +1 -1
  115. package/build-module/navigation/edit/inner-blocks.js +5 -7
  116. package/build-module/navigation/edit/inner-blocks.js.map +1 -1
  117. package/build-module/navigation/index.js +0 -1
  118. package/build-module/navigation/index.js.map +1 -1
  119. package/build-module/navigation/view-modal.js +24 -0
  120. package/build-module/navigation/view-modal.js.map +1 -1
  121. package/build-module/navigation-link/edit.js +29 -30
  122. package/build-module/navigation-link/edit.js.map +1 -1
  123. package/build-module/navigation-submenu/edit.js +14 -14
  124. package/build-module/navigation-submenu/edit.js.map +1 -1
  125. package/build-module/paragraph/edit.js +9 -0
  126. package/build-module/paragraph/edit.js.map +1 -1
  127. package/build-module/paragraph/use-enter.js +81 -0
  128. package/build-module/paragraph/use-enter.js.map +1 -0
  129. package/build-module/post-comment/index.js +1 -1
  130. package/build-module/post-comments/edit.js +120 -37
  131. package/build-module/post-comments/edit.js.map +1 -1
  132. package/build-module/post-comments/index.js +3 -2
  133. package/build-module/post-comments/index.js.map +1 -1
  134. package/build-module/post-comments-form/edit.js +38 -6
  135. package/build-module/post-comments-form/edit.js.map +1 -1
  136. package/build-module/post-comments-form/form.js +39 -0
  137. package/build-module/post-comments-form/form.js.map +1 -0
  138. package/build-module/post-comments-form/index.js +1 -0
  139. package/build-module/post-comments-form/index.js.map +1 -1
  140. package/build-module/post-content/edit.js +1 -1
  141. package/build-module/post-content/edit.js.map +1 -1
  142. package/build-module/post-excerpt/edit.js +1 -1
  143. package/build-module/post-excerpt/edit.js.map +1 -1
  144. package/build-module/post-terms/edit.js +26 -4
  145. package/build-module/post-terms/edit.js.map +1 -1
  146. package/build-module/post-terms/index.js +8 -0
  147. package/build-module/post-terms/index.js.map +1 -1
  148. package/build-module/query-no-results/edit.js +1 -1
  149. package/build-module/query-no-results/edit.js.map +1 -1
  150. package/build-module/quote/index.js +1 -0
  151. package/build-module/quote/index.js.map +1 -1
  152. package/build-module/separator/index.js +3 -0
  153. package/build-module/separator/index.js.map +1 -1
  154. package/build-module/video/edit.js +3 -7
  155. package/build-module/video/edit.js.map +1 -1
  156. package/build-style/comment-content/style-rtl.css +81 -0
  157. package/build-style/comment-content/style.css +81 -0
  158. package/build-style/{comments-query-loop → comments}/editor-rtl.css +0 -0
  159. package/build-style/{comments-query-loop → comments}/editor.css +0 -0
  160. package/build-style/cover/style-rtl.css +1 -5
  161. package/build-style/cover/style.css +1 -5
  162. package/build-style/editor-rtl.css +12 -4
  163. package/build-style/editor.css +12 -4
  164. package/build-style/latest-posts/style-rtl.css +2 -0
  165. package/build-style/latest-posts/style.css +4 -0
  166. package/build-style/navigation/style-rtl.css +3 -0
  167. package/build-style/navigation/style.css +3 -0
  168. package/build-style/post-comments/editor-rtl.css +79 -0
  169. package/build-style/post-comments/editor.css +79 -0
  170. package/build-style/post-comments/style-rtl.css +6 -4
  171. package/build-style/post-comments/style.css +6 -4
  172. package/build-style/post-comments-form/editor-rtl.css +79 -0
  173. package/build-style/post-comments-form/editor.css +79 -0
  174. package/build-style/style-rtl.css +12 -9
  175. package/build-style/style.css +14 -9
  176. package/package.json +28 -28
  177. package/src/audio/edit.js +2 -7
  178. package/src/button/edit.native.js +6 -3
  179. package/src/comment-author-name/index.php +7 -5
  180. package/src/comment-content/index.php +25 -3
  181. package/src/comment-content/style.scss +5 -0
  182. package/src/comment-edit-link/index.php +1 -4
  183. package/src/comment-reply-link/index.php +1 -4
  184. package/src/comment-template/edit.js +1 -5
  185. package/src/comment-template/index.php +4 -0
  186. package/src/{comments-query-loop → comments}/block.json +1 -1
  187. package/src/{comments-query-loop → comments}/edit/comments-inspector-controls.js +0 -0
  188. package/src/{comments-query-loop → comments}/edit.js +2 -1
  189. package/src/{comments-query-loop → comments}/editor.scss +0 -0
  190. package/src/{comments-query-loop → comments}/index.js +0 -0
  191. package/src/{comments-query-loop → comments}/save.js +1 -3
  192. package/src/comments-pagination/index.php +4 -0
  193. package/src/comments-title/edit.js +20 -4
  194. package/src/comments-title/index.php +18 -7
  195. package/src/cover/edit.js +2 -67
  196. package/src/cover/edit.native.js +40 -13
  197. package/src/cover/index.php +1 -1
  198. package/src/cover/style.native.scss +4 -0
  199. package/src/cover/style.scss +1 -5
  200. package/src/cover/test/__snapshots__/edit.native.js.snap +6 -6
  201. package/src/cover/test/transforms.js +301 -0
  202. package/src/cover/transforms.js +112 -7
  203. package/src/cover/use-cover-is-dark.js +71 -0
  204. package/src/cover/use-cover-is-dark.native.js +51 -0
  205. package/src/editor.scss +3 -1
  206. package/src/group/block.json +1 -0
  207. package/src/heading/transforms.js +4 -3
  208. package/src/index.js +3 -6
  209. package/src/latest-posts/edit.native.js +56 -1
  210. package/src/latest-posts/style.scss +4 -0
  211. package/src/navigation/block.json +0 -1
  212. package/src/navigation/edit/index.js +6 -36
  213. package/src/navigation/edit/inner-blocks.js +5 -7
  214. package/src/navigation/style.scss +3 -0
  215. package/src/navigation/view-modal.js +32 -0
  216. package/src/navigation-link/edit.js +40 -43
  217. package/src/navigation-submenu/edit.js +13 -17
  218. package/src/paragraph/edit.js +6 -0
  219. package/src/paragraph/use-enter.js +103 -0
  220. package/src/post-author/index.php +1 -1
  221. package/src/post-comment/block.json +1 -1
  222. package/src/post-comments/block.json +3 -2
  223. package/src/post-comments/edit.js +174 -44
  224. package/src/post-comments/editor.scss +3 -0
  225. package/src/post-comments/index.php +2 -0
  226. package/src/post-comments/style.scss +6 -7
  227. package/src/post-comments-form/block.json +1 -0
  228. package/src/post-comments-form/edit.js +52 -23
  229. package/src/post-comments-form/editor.scss +3 -0
  230. package/src/post-comments-form/form.js +43 -0
  231. package/src/post-comments-form/index.php +9 -2
  232. package/src/post-content/edit.js +15 -1
  233. package/src/post-excerpt/edit.js +14 -1
  234. package/src/post-terms/block.json +8 -0
  235. package/src/post-terms/edit.js +28 -1
  236. package/src/post-terms/index.php +12 -2
  237. package/src/query-no-results/edit.js +1 -1
  238. package/src/quote/block.json +1 -0
  239. package/src/separator/block.json +3 -0
  240. package/src/video/edit.js +3 -4
  241. package/build/comments-query-loop/edit/comments-inspector-controls.js.map +0 -1
  242. package/build/comments-query-loop/edit.js.map +0 -1
  243. package/build/comments-query-loop/index.js.map +0 -1
  244. package/build/comments-query-loop/save.js.map +0 -1
  245. package/build/navigation-area/edit.js +0 -110
  246. package/build/navigation-area/edit.js.map +0 -1
  247. package/build/navigation-area/index.js +0 -62
  248. package/build/navigation-area/index.js.map +0 -1
  249. package/build/navigation-area/inner-blocks.js +0 -34
  250. package/build/navigation-area/inner-blocks.js.map +0 -1
  251. package/build/navigation-area/save.js +0 -18
  252. package/build/navigation-area/save.js.map +0 -1
  253. package/build-module/comments-query-loop/edit.js.map +0 -1
  254. package/build-module/comments-query-loop/index.js.map +0 -1
  255. package/build-module/comments-query-loop/save.js.map +0 -1
  256. package/build-module/navigation-area/edit.js +0 -94
  257. package/build-module/navigation-area/edit.js.map +0 -1
  258. package/build-module/navigation-area/index.js +0 -48
  259. package/build-module/navigation-area/index.js.map +0 -1
  260. package/build-module/navigation-area/inner-blocks.js +0 -26
  261. package/build-module/navigation-area/inner-blocks.js.map +0 -1
  262. package/build-module/navigation-area/save.js +0 -10
  263. package/build-module/navigation-area/save.js.map +0 -1
  264. package/src/navigation-area/block.json +0 -23
  265. package/src/navigation-area/edit.js +0 -111
  266. package/src/navigation-area/index.js +0 -26
  267. package/src/navigation-area/index.php +0 -22
  268. package/src/navigation-area/inner-blocks.js +0 -24
  269. package/src/navigation-area/save.js +0 -8
@@ -150,9 +150,11 @@
150
150
  }
151
151
  .wp-block-latest-posts__featured-image.alignleft {
152
152
  margin-right: 1em;
153
+ float: left;
153
154
  }
154
155
  .wp-block-latest-posts__featured-image.alignright {
155
156
  margin-left: 1em;
157
+ float: right;
156
158
  }
157
159
  .wp-block-latest-posts__featured-image.aligncenter {
158
160
  margin-bottom: 1em;
@@ -153,10 +153,14 @@
153
153
  .wp-block-latest-posts__featured-image.alignleft {
154
154
  /*rtl:ignore*/
155
155
  margin-right: 1em;
156
+ /*rtl:ignore*/
157
+ float: left;
156
158
  }
157
159
  .wp-block-latest-posts__featured-image.alignright {
158
160
  /*rtl:ignore*/
159
161
  margin-left: 1em;
162
+ /*rtl:ignore*/
163
+ float: right;
160
164
  }
161
165
  .wp-block-latest-posts__featured-image.aligncenter {
162
166
  margin-bottom: 1em;
@@ -271,6 +271,9 @@ button.wp-block-navigation-item__content {
271
271
  font-size: inherit;
272
272
  font-family: inherit;
273
273
  line-height: inherit;
274
+ font-style: inherit;
275
+ font-weight: inherit;
276
+ text-transform: inherit;
274
277
  text-align: right;
275
278
  }
276
279
 
@@ -271,6 +271,9 @@ button.wp-block-navigation-item__content {
271
271
  font-size: inherit;
272
272
  font-family: inherit;
273
273
  line-height: inherit;
274
+ font-style: inherit;
275
+ font-weight: inherit;
276
+ text-transform: inherit;
274
277
  text-align: left;
275
278
  }
276
279
 
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Colors
3
+ */
4
+ /**
5
+ * Breakpoints & Media Queries
6
+ */
7
+ /**
8
+ * SCSS Variables.
9
+ *
10
+ * Please use variables from this sheet to ensure consistency across the UI.
11
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
12
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
13
+ */
14
+ /**
15
+ * Colors
16
+ */
17
+ /**
18
+ * Fonts & basic variables.
19
+ */
20
+ /**
21
+ * Grid System.
22
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
23
+ */
24
+ /**
25
+ * Dimensions.
26
+ */
27
+ /**
28
+ * Shadows.
29
+ */
30
+ /**
31
+ * Editor widths.
32
+ */
33
+ /**
34
+ * Block & Editor UI.
35
+ */
36
+ /**
37
+ * Block paddings.
38
+ */
39
+ /**
40
+ * React Native specific.
41
+ * These variables do not appear to be used anywhere else.
42
+ */
43
+ /**
44
+ * Converts a hex value into the rgb equivalent.
45
+ *
46
+ * @param {string} hex - the hexadecimal value to convert
47
+ * @return {string} comma separated rgb values
48
+ */
49
+ /**
50
+ * Breakpoint mixins
51
+ */
52
+ /**
53
+ * Long content fade mixin
54
+ *
55
+ * Creates a fading overlay to signify that the content is longer
56
+ * than the space allows.
57
+ */
58
+ /**
59
+ * Focus styles.
60
+ */
61
+ /**
62
+ * Applies editor left position to the selector passed as argument
63
+ */
64
+ /**
65
+ * Styles that are reused verbatim in a few places
66
+ */
67
+ /**
68
+ * Allows users to opt-out of animations via OS-level preferences.
69
+ */
70
+ /**
71
+ * Reset default styles for JavaScript UI based pages.
72
+ * This is a WP-admin agnostic reset
73
+ */
74
+ /**
75
+ * Reset the WP Admin page styles for Gutenberg-like pages.
76
+ */
77
+ .wp-block-post-comments__placeholder * {
78
+ pointer-events: none;
79
+ }
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Colors
3
+ */
4
+ /**
5
+ * Breakpoints & Media Queries
6
+ */
7
+ /**
8
+ * SCSS Variables.
9
+ *
10
+ * Please use variables from this sheet to ensure consistency across the UI.
11
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
12
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
13
+ */
14
+ /**
15
+ * Colors
16
+ */
17
+ /**
18
+ * Fonts & basic variables.
19
+ */
20
+ /**
21
+ * Grid System.
22
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
23
+ */
24
+ /**
25
+ * Dimensions.
26
+ */
27
+ /**
28
+ * Shadows.
29
+ */
30
+ /**
31
+ * Editor widths.
32
+ */
33
+ /**
34
+ * Block & Editor UI.
35
+ */
36
+ /**
37
+ * Block paddings.
38
+ */
39
+ /**
40
+ * React Native specific.
41
+ * These variables do not appear to be used anywhere else.
42
+ */
43
+ /**
44
+ * Converts a hex value into the rgb equivalent.
45
+ *
46
+ * @param {string} hex - the hexadecimal value to convert
47
+ * @return {string} comma separated rgb values
48
+ */
49
+ /**
50
+ * Breakpoint mixins
51
+ */
52
+ /**
53
+ * Long content fade mixin
54
+ *
55
+ * Creates a fading overlay to signify that the content is longer
56
+ * than the space allows.
57
+ */
58
+ /**
59
+ * Focus styles.
60
+ */
61
+ /**
62
+ * Applies editor left position to the selector passed as argument
63
+ */
64
+ /**
65
+ * Styles that are reused verbatim in a few places
66
+ */
67
+ /**
68
+ * Allows users to opt-out of animations via OS-level preferences.
69
+ */
70
+ /**
71
+ * Reset default styles for JavaScript UI based pages.
72
+ * This is a WP-admin agnostic reset
73
+ */
74
+ /**
75
+ * Reset the WP Admin page styles for Gutenberg-like pages.
76
+ */
77
+ .wp-block-post-comments__placeholder * {
78
+ pointer-events: none;
79
+ }
@@ -74,10 +74,8 @@
74
74
  /**
75
75
  * Reset the WP Admin page styles for Gutenberg-like pages.
76
76
  */
77
- .wp-block-post-comments > h3:first-of-type {
78
- margin-top: 0;
79
- }
80
77
  .wp-block-post-comments .commentlist {
78
+ clear: both;
81
79
  list-style: none;
82
80
  margin: 0;
83
81
  padding: 0;
@@ -114,11 +112,15 @@
114
112
  .wp-block-post-comments .comment-meta {
115
113
  font-size: 0.875em;
116
114
  line-height: 1.5;
117
- margin-right: -3.25em;
118
115
  }
119
116
  .wp-block-post-comments .comment-meta b {
120
117
  font-weight: normal;
121
118
  }
119
+ .wp-block-post-comments .comment-meta .comment-awaiting-moderation {
120
+ margin-top: 1em;
121
+ margin-bottom: 1em;
122
+ display: block;
123
+ }
122
124
  .wp-block-post-comments .comment-body .commentmetadata {
123
125
  font-size: 0.875em;
124
126
  }
@@ -74,10 +74,8 @@
74
74
  /**
75
75
  * Reset the WP Admin page styles for Gutenberg-like pages.
76
76
  */
77
- .wp-block-post-comments > h3:first-of-type {
78
- margin-top: 0;
79
- }
80
77
  .wp-block-post-comments .commentlist {
78
+ clear: both;
81
79
  list-style: none;
82
80
  margin: 0;
83
81
  padding: 0;
@@ -114,11 +112,15 @@
114
112
  .wp-block-post-comments .comment-meta {
115
113
  font-size: 0.875em;
116
114
  line-height: 1.5;
117
- margin-left: -3.25em;
118
115
  }
119
116
  .wp-block-post-comments .comment-meta b {
120
117
  font-weight: normal;
121
118
  }
119
+ .wp-block-post-comments .comment-meta .comment-awaiting-moderation {
120
+ margin-top: 1em;
121
+ margin-bottom: 1em;
122
+ display: block;
123
+ }
122
124
  .wp-block-post-comments .comment-body .commentmetadata {
123
125
  font-size: 0.875em;
124
126
  }
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Colors
3
+ */
4
+ /**
5
+ * Breakpoints & Media Queries
6
+ */
7
+ /**
8
+ * SCSS Variables.
9
+ *
10
+ * Please use variables from this sheet to ensure consistency across the UI.
11
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
12
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
13
+ */
14
+ /**
15
+ * Colors
16
+ */
17
+ /**
18
+ * Fonts & basic variables.
19
+ */
20
+ /**
21
+ * Grid System.
22
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
23
+ */
24
+ /**
25
+ * Dimensions.
26
+ */
27
+ /**
28
+ * Shadows.
29
+ */
30
+ /**
31
+ * Editor widths.
32
+ */
33
+ /**
34
+ * Block & Editor UI.
35
+ */
36
+ /**
37
+ * Block paddings.
38
+ */
39
+ /**
40
+ * React Native specific.
41
+ * These variables do not appear to be used anywhere else.
42
+ */
43
+ /**
44
+ * Converts a hex value into the rgb equivalent.
45
+ *
46
+ * @param {string} hex - the hexadecimal value to convert
47
+ * @return {string} comma separated rgb values
48
+ */
49
+ /**
50
+ * Breakpoint mixins
51
+ */
52
+ /**
53
+ * Long content fade mixin
54
+ *
55
+ * Creates a fading overlay to signify that the content is longer
56
+ * than the space allows.
57
+ */
58
+ /**
59
+ * Focus styles.
60
+ */
61
+ /**
62
+ * Applies editor left position to the selector passed as argument
63
+ */
64
+ /**
65
+ * Styles that are reused verbatim in a few places
66
+ */
67
+ /**
68
+ * Allows users to opt-out of animations via OS-level preferences.
69
+ */
70
+ /**
71
+ * Reset default styles for JavaScript UI based pages.
72
+ * This is a WP-admin agnostic reset
73
+ */
74
+ /**
75
+ * Reset the WP Admin page styles for Gutenberg-like pages.
76
+ */
77
+ .wp-block-post-comments-form * {
78
+ pointer-events: none;
79
+ }
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Colors
3
+ */
4
+ /**
5
+ * Breakpoints & Media Queries
6
+ */
7
+ /**
8
+ * SCSS Variables.
9
+ *
10
+ * Please use variables from this sheet to ensure consistency across the UI.
11
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
12
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
13
+ */
14
+ /**
15
+ * Colors
16
+ */
17
+ /**
18
+ * Fonts & basic variables.
19
+ */
20
+ /**
21
+ * Grid System.
22
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
23
+ */
24
+ /**
25
+ * Dimensions.
26
+ */
27
+ /**
28
+ * Shadows.
29
+ */
30
+ /**
31
+ * Editor widths.
32
+ */
33
+ /**
34
+ * Block & Editor UI.
35
+ */
36
+ /**
37
+ * Block paddings.
38
+ */
39
+ /**
40
+ * React Native specific.
41
+ * These variables do not appear to be used anywhere else.
42
+ */
43
+ /**
44
+ * Converts a hex value into the rgb equivalent.
45
+ *
46
+ * @param {string} hex - the hexadecimal value to convert
47
+ * @return {string} comma separated rgb values
48
+ */
49
+ /**
50
+ * Breakpoint mixins
51
+ */
52
+ /**
53
+ * Long content fade mixin
54
+ *
55
+ * Creates a fading overlay to signify that the content is longer
56
+ * than the space allows.
57
+ */
58
+ /**
59
+ * Focus styles.
60
+ */
61
+ /**
62
+ * Applies editor left position to the selector passed as argument
63
+ */
64
+ /**
65
+ * Styles that are reused verbatim in a few places
66
+ */
67
+ /**
68
+ * Allows users to opt-out of animations via OS-level preferences.
69
+ */
70
+ /**
71
+ * Reset default styles for JavaScript UI based pages.
72
+ * This is a WP-admin agnostic reset
73
+ */
74
+ /**
75
+ * Reset the WP Admin page styles for Gutenberg-like pages.
76
+ */
77
+ .wp-block-post-comments-form * {
78
+ pointer-events: none;
79
+ }
@@ -417,7 +417,7 @@
417
417
  .wp-block-cover.has-parallax {
418
418
  background-attachment: fixed;
419
419
  }
420
- @supports (-webkit-overflow-scrolling: touch) {
420
+ @supports (-webkit-touch-callout: inherit) {
421
421
  .wp-block-cover-image.has-parallax,
422
422
  .wp-block-cover.has-parallax {
423
423
  background-attachment: scroll;
@@ -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 {
@@ -1435,9 +1431,11 @@ ol.wp-block-latest-comments {
1435
1431
  }
1436
1432
  .wp-block-latest-posts__featured-image.alignleft {
1437
1433
  margin-right: 1em;
1434
+ float: left;
1438
1435
  }
1439
1436
  .wp-block-latest-posts__featured-image.alignright {
1440
1437
  margin-left: 1em;
1438
+ float: right;
1441
1439
  }
1442
1440
  .wp-block-latest-posts__featured-image.aligncenter {
1443
1441
  margin-bottom: 1em;
@@ -1751,6 +1749,9 @@ button.wp-block-navigation-item__content {
1751
1749
  font-size: inherit;
1752
1750
  font-family: inherit;
1753
1751
  line-height: inherit;
1752
+ font-style: inherit;
1753
+ font-weight: inherit;
1754
+ text-transform: inherit;
1754
1755
  text-align: right;
1755
1756
  }
1756
1757
 
@@ -2099,10 +2100,8 @@ p.has-background {
2099
2100
  margin: 0;
2100
2101
  }
2101
2102
 
2102
- .wp-block-post-comments > h3:first-of-type {
2103
- margin-top: 0;
2104
- }
2105
2103
  .wp-block-post-comments .commentlist {
2104
+ clear: both;
2106
2105
  list-style: none;
2107
2106
  margin: 0;
2108
2107
  padding: 0;
@@ -2139,11 +2138,15 @@ p.has-background {
2139
2138
  .wp-block-post-comments .comment-meta {
2140
2139
  font-size: 0.875em;
2141
2140
  line-height: 1.5;
2142
- margin-right: -3.25em;
2143
2141
  }
2144
2142
  .wp-block-post-comments .comment-meta b {
2145
2143
  font-weight: normal;
2146
2144
  }
2145
+ .wp-block-post-comments .comment-meta .comment-awaiting-moderation {
2146
+ margin-top: 1em;
2147
+ margin-bottom: 1em;
2148
+ display: block;
2149
+ }
2147
2150
  .wp-block-post-comments .comment-body .commentmetadata {
2148
2151
  font-size: 0.875em;
2149
2152
  }
@@ -422,7 +422,7 @@
422
422
  .wp-block-cover.has-parallax {
423
423
  background-attachment: fixed;
424
424
  }
425
- @supports (-webkit-overflow-scrolling: touch) {
425
+ @supports (-webkit-touch-callout: inherit) {
426
426
  .wp-block-cover-image.has-parallax,
427
427
  .wp-block-cover.has-parallax {
428
428
  background-attachment: scroll;
@@ -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 {
@@ -1448,10 +1444,14 @@ ol.wp-block-latest-comments {
1448
1444
  .wp-block-latest-posts__featured-image.alignleft {
1449
1445
  /*rtl:ignore*/
1450
1446
  margin-right: 1em;
1447
+ /*rtl:ignore*/
1448
+ float: left;
1451
1449
  }
1452
1450
  .wp-block-latest-posts__featured-image.alignright {
1453
1451
  /*rtl:ignore*/
1454
1452
  margin-left: 1em;
1453
+ /*rtl:ignore*/
1454
+ float: right;
1455
1455
  }
1456
1456
  .wp-block-latest-posts__featured-image.aligncenter {
1457
1457
  margin-bottom: 1em;
@@ -1775,6 +1775,9 @@ button.wp-block-navigation-item__content {
1775
1775
  font-size: inherit;
1776
1776
  font-family: inherit;
1777
1777
  line-height: inherit;
1778
+ font-style: inherit;
1779
+ font-weight: inherit;
1780
+ text-transform: inherit;
1778
1781
  text-align: left;
1779
1782
  }
1780
1783
 
@@ -2123,10 +2126,8 @@ p.has-background {
2123
2126
  margin: 0;
2124
2127
  }
2125
2128
 
2126
- .wp-block-post-comments > h3:first-of-type {
2127
- margin-top: 0;
2128
- }
2129
2129
  .wp-block-post-comments .commentlist {
2130
+ clear: both;
2130
2131
  list-style: none;
2131
2132
  margin: 0;
2132
2133
  padding: 0;
@@ -2163,11 +2164,15 @@ p.has-background {
2163
2164
  .wp-block-post-comments .comment-meta {
2164
2165
  font-size: 0.875em;
2165
2166
  line-height: 1.5;
2166
- margin-left: -3.25em;
2167
2167
  }
2168
2168
  .wp-block-post-comments .comment-meta b {
2169
2169
  font-weight: normal;
2170
2170
  }
2171
+ .wp-block-post-comments .comment-meta .comment-awaiting-moderation {
2172
+ margin-top: 1em;
2173
+ margin-bottom: 1em;
2174
+ display: block;
2175
+ }
2171
2176
  .wp-block-post-comments .comment-body .commentmetadata {
2172
2177
  font-size: 0.875em;
2173
2178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "7.4.0",
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.7.0",
37
- "@wordpress/api-fetch": "^6.4.0",
38
- "@wordpress/autop": "^3.7.0",
39
- "@wordpress/blob": "^3.7.0",
40
- "@wordpress/block-editor": "^8.6.0",
41
- "@wordpress/blocks": "^11.6.0",
42
- "@wordpress/components": "^19.9.0",
43
- "@wordpress/compose": "^5.5.0",
44
- "@wordpress/core-data": "^4.5.0",
45
- "@wordpress/data": "^6.7.0",
46
- "@wordpress/date": "^4.7.0",
47
- "@wordpress/deprecated": "^3.7.0",
48
- "@wordpress/dom": "^3.7.0",
49
- "@wordpress/element": "^4.5.0",
50
- "@wordpress/hooks": "^3.7.0",
51
- "@wordpress/html-entities": "^3.7.0",
52
- "@wordpress/i18n": "^4.7.0",
53
- "@wordpress/icons": "^8.3.0",
54
- "@wordpress/keycodes": "^3.7.0",
55
- "@wordpress/notices": "^3.7.0",
56
- "@wordpress/primitives": "^3.5.0",
57
- "@wordpress/reusable-blocks": "^3.5.0",
58
- "@wordpress/rich-text": "^5.5.0",
59
- "@wordpress/server-side-render": "^3.5.0",
60
- "@wordpress/url": "^3.8.0",
61
- "@wordpress/viewport": "^4.5.0",
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": "1ba52312b56db563df2d8d4fba5b00613fb46d8c"
77
+ "gitHead": "4631d515033397fcfeda77e5755960253caef9bf"
78
78
  }
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: ( [ { id: mediaId, url } ] ) => {
66
- setAttributes( { id: mediaId, src: url } );
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
  }
@@ -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
- if ( editorSidebarOpened || isLinkSheetVisible ) {
138
- if ( Platform.OS === 'android' && richTextRef?.current ) {
139
- richTextRef.current.blur();
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 ] );