@wordpress/block-library 9.7.0 → 9.7.1-next.5368f64a9.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 (238) hide show
  1. package/build/archives/edit.js +1 -1
  2. package/build/archives/edit.js.map +1 -1
  3. package/build/block/edit.js +2 -3
  4. package/build/block/edit.js.map +1 -1
  5. package/build/buttons/index.js +1 -1
  6. package/build/comments/edit/comments-legacy.js +2 -4
  7. package/build/comments/edit/comments-legacy.js.map +1 -1
  8. package/build/cover/deprecated.js +1 -1
  9. package/build/cover/deprecated.js.map +1 -1
  10. package/build/cover/edit/index.js +4 -2
  11. package/build/cover/edit/index.js.map +1 -1
  12. package/build/embed/edit.js +5 -11
  13. package/build/embed/edit.js.map +1 -1
  14. package/build/embed/embed-placeholder.js +4 -8
  15. package/build/embed/embed-placeholder.js.map +1 -1
  16. package/build/embed/embed-preview.js +16 -4
  17. package/build/embed/embed-preview.js.map +1 -1
  18. package/build/file/transforms.js +18 -4
  19. package/build/file/transforms.js.map +1 -1
  20. package/build/freeform/modal.js +6 -12
  21. package/build/freeform/modal.js.map +1 -1
  22. package/build/image/edit.js +55 -15
  23. package/build/image/edit.js.map +1 -1
  24. package/build/image/image.js +23 -20
  25. package/build/image/image.js.map +1 -1
  26. package/build/image/transforms.js +0 -13
  27. package/build/image/transforms.js.map +1 -1
  28. package/build/image/use-max-width-observer.js +35 -0
  29. package/build/image/use-max-width-observer.js.map +1 -0
  30. package/build/image/utils.js +11 -0
  31. package/build/image/utils.js.map +1 -1
  32. package/build/latest-posts/edit.js +1 -1
  33. package/build/latest-posts/edit.js.map +1 -1
  34. package/build/missing/edit.js +2 -4
  35. package/build/missing/edit.js.map +1 -1
  36. package/build/navigation/edit/deleted-navigation-warning.js +14 -10
  37. package/build/navigation/edit/deleted-navigation-warning.js.map +1 -1
  38. package/build/navigation/edit/index.js +2 -4
  39. package/build/navigation/edit/index.js.map +1 -1
  40. package/build/navigation/edit/menu-inspector-controls.js +2 -1
  41. package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
  42. package/build/navigation/edit/navigation-menu-delete-control.js +2 -4
  43. package/build/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  44. package/build/navigation/edit/placeholder/index.js +2 -4
  45. package/build/navigation/edit/placeholder/index.js.map +1 -1
  46. package/build/navigation/edit/responsive-wrapper.js +4 -8
  47. package/build/navigation/edit/responsive-wrapper.js.map +1 -1
  48. package/build/navigation-link/link-ui.js +2 -4
  49. package/build/navigation-link/link-ui.js.map +1 -1
  50. package/build/page-list/convert-to-links-modal.js +4 -8
  51. package/build/page-list/convert-to-links-modal.js.map +1 -1
  52. package/build/page-list/edit.js +2 -4
  53. package/build/page-list/edit.js.map +1 -1
  54. package/build/post-comments-form/form.js +2 -4
  55. package/build/post-comments-form/form.js.map +1 -1
  56. package/build/post-featured-image/edit.js +2 -4
  57. package/build/post-featured-image/edit.js.map +1 -1
  58. package/build/post-title/index.js +4 -1
  59. package/build/post-title/index.js.map +1 -1
  60. package/build/query/edit/enhanced-pagination-modal.js +4 -6
  61. package/build/query/edit/enhanced-pagination-modal.js.map +1 -1
  62. package/build/query/edit/inspector-controls/enhanced-pagination-control.js +3 -3
  63. package/build/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  64. package/build/query/edit/inspector-controls/index.js +2 -10
  65. package/build/query/edit/inspector-controls/index.js.map +1 -1
  66. package/build/query/edit/query-content.js +9 -3
  67. package/build/query/edit/query-content.js.map +1 -1
  68. package/build/query/edit/query-placeholder.js +4 -8
  69. package/build/query/edit/query-placeholder.js.map +1 -1
  70. package/build/site-logo/edit.js +4 -8
  71. package/build/site-logo/edit.js.map +1 -1
  72. package/build/site-title/index.js +4 -1
  73. package/build/site-title/index.js.map +1 -1
  74. package/build/social-link/edit.js +1 -1
  75. package/build/social-link/edit.js.map +1 -1
  76. package/build/template-part/edit/inner-blocks.js +10 -1
  77. package/build/template-part/edit/inner-blocks.js.map +1 -1
  78. package/build/template-part/edit/placeholder.js +4 -8
  79. package/build/template-part/edit/placeholder.js.map +1 -1
  80. package/build/video/edit.js +4 -8
  81. package/build/video/edit.js.map +1 -1
  82. package/build/video/tracks-editor.js +6 -12
  83. package/build/video/tracks-editor.js.map +1 -1
  84. package/build-module/archives/edit.js +1 -1
  85. package/build-module/archives/edit.js.map +1 -1
  86. package/build-module/block/edit.js +2 -3
  87. package/build-module/block/edit.js.map +1 -1
  88. package/build-module/buttons/index.js +1 -1
  89. package/build-module/comments/edit/comments-legacy.js +2 -4
  90. package/build-module/comments/edit/comments-legacy.js.map +1 -1
  91. package/build-module/cover/deprecated.js +1 -1
  92. package/build-module/cover/deprecated.js.map +1 -1
  93. package/build-module/cover/edit/index.js +4 -2
  94. package/build-module/cover/edit/index.js.map +1 -1
  95. package/build-module/embed/edit.js +6 -12
  96. package/build-module/embed/edit.js.map +1 -1
  97. package/build-module/embed/embed-placeholder.js +4 -8
  98. package/build-module/embed/embed-placeholder.js.map +1 -1
  99. package/build-module/embed/embed-preview.js +16 -4
  100. package/build-module/embed/embed-preview.js.map +1 -1
  101. package/build-module/file/transforms.js +18 -4
  102. package/build-module/file/transforms.js.map +1 -1
  103. package/build-module/freeform/modal.js +6 -12
  104. package/build-module/freeform/modal.js.map +1 -1
  105. package/build-module/image/edit.js +58 -18
  106. package/build-module/image/edit.js.map +1 -1
  107. package/build-module/image/image.js +23 -20
  108. package/build-module/image/image.js.map +1 -1
  109. package/build-module/image/transforms.js +0 -13
  110. package/build-module/image/transforms.js.map +1 -1
  111. package/build-module/image/use-max-width-observer.js +29 -0
  112. package/build-module/image/use-max-width-observer.js.map +1 -0
  113. package/build-module/image/utils.js +11 -1
  114. package/build-module/image/utils.js.map +1 -1
  115. package/build-module/latest-posts/edit.js +1 -1
  116. package/build-module/latest-posts/edit.js.map +1 -1
  117. package/build-module/missing/edit.js +2 -4
  118. package/build-module/missing/edit.js.map +1 -1
  119. package/build-module/navigation/edit/deleted-navigation-warning.js +15 -11
  120. package/build-module/navigation/edit/deleted-navigation-warning.js.map +1 -1
  121. package/build-module/navigation/edit/index.js +2 -4
  122. package/build-module/navigation/edit/index.js.map +1 -1
  123. package/build-module/navigation/edit/menu-inspector-controls.js +2 -1
  124. package/build-module/navigation/edit/menu-inspector-controls.js.map +1 -1
  125. package/build-module/navigation/edit/navigation-menu-delete-control.js +2 -4
  126. package/build-module/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  127. package/build-module/navigation/edit/placeholder/index.js +2 -4
  128. package/build-module/navigation/edit/placeholder/index.js.map +1 -1
  129. package/build-module/navigation/edit/responsive-wrapper.js +4 -8
  130. package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
  131. package/build-module/navigation-link/link-ui.js +2 -4
  132. package/build-module/navigation-link/link-ui.js.map +1 -1
  133. package/build-module/page-list/convert-to-links-modal.js +4 -8
  134. package/build-module/page-list/convert-to-links-modal.js.map +1 -1
  135. package/build-module/page-list/edit.js +2 -4
  136. package/build-module/page-list/edit.js.map +1 -1
  137. package/build-module/post-comments-form/form.js +2 -4
  138. package/build-module/post-comments-form/form.js.map +1 -1
  139. package/build-module/post-featured-image/edit.js +2 -4
  140. package/build-module/post-featured-image/edit.js.map +1 -1
  141. package/build-module/post-title/index.js +4 -1
  142. package/build-module/post-title/index.js.map +1 -1
  143. package/build-module/query/edit/enhanced-pagination-modal.js +4 -6
  144. package/build-module/query/edit/enhanced-pagination-modal.js.map +1 -1
  145. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js +3 -3
  146. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  147. package/build-module/query/edit/inspector-controls/index.js +2 -10
  148. package/build-module/query/edit/inspector-controls/index.js.map +1 -1
  149. package/build-module/query/edit/query-content.js +10 -4
  150. package/build-module/query/edit/query-content.js.map +1 -1
  151. package/build-module/query/edit/query-placeholder.js +4 -8
  152. package/build-module/query/edit/query-placeholder.js.map +1 -1
  153. package/build-module/site-logo/edit.js +4 -8
  154. package/build-module/site-logo/edit.js.map +1 -1
  155. package/build-module/site-title/index.js +4 -1
  156. package/build-module/site-title/index.js.map +1 -1
  157. package/build-module/social-link/edit.js +1 -1
  158. package/build-module/social-link/edit.js.map +1 -1
  159. package/build-module/template-part/edit/inner-blocks.js +10 -1
  160. package/build-module/template-part/edit/inner-blocks.js.map +1 -1
  161. package/build-module/template-part/edit/placeholder.js +4 -8
  162. package/build-module/template-part/edit/placeholder.js.map +1 -1
  163. package/build-module/video/edit.js +4 -8
  164. package/build-module/video/edit.js.map +1 -1
  165. package/build-module/video/tracks-editor.js +6 -12
  166. package/build-module/video/tracks-editor.js.map +1 -1
  167. package/build-style/buttons/editor-rtl.css +2 -2
  168. package/build-style/buttons/editor.css +2 -2
  169. package/build-style/buttons/style-rtl.css +2 -2
  170. package/build-style/buttons/style.css +2 -2
  171. package/build-style/common-rtl.css +2 -2
  172. package/build-style/common.css +2 -2
  173. package/build-style/editor-rtl.css +11 -31
  174. package/build-style/editor.css +11 -31
  175. package/build-style/image/editor-rtl.css +6 -26
  176. package/build-style/image/editor.css +6 -26
  177. package/build-style/navigation/editor-rtl.css +1 -1
  178. package/build-style/navigation/editor.css +1 -1
  179. package/build-style/post-title/style-rtl.css +21 -0
  180. package/build-style/post-title/style.css +21 -0
  181. package/build-style/site-title/style-rtl.css +21 -0
  182. package/build-style/site-title/style.css +21 -0
  183. package/build-style/style-rtl.css +46 -4
  184. package/build-style/style.css +46 -4
  185. package/package.json +42 -35
  186. package/src/archives/edit.js +1 -1
  187. package/src/block/edit.js +3 -7
  188. package/src/buttons/block.json +1 -1
  189. package/src/buttons/editor.scss +2 -2
  190. package/src/buttons/style.scss +2 -2
  191. package/src/comments/edit/comments-legacy.js +1 -2
  192. package/src/cover/deprecated.js +3 -2
  193. package/src/cover/edit/index.js +5 -1
  194. package/src/embed/edit.js +0 -7
  195. package/src/embed/embed-placeholder.js +2 -4
  196. package/src/embed/embed-preview.js +22 -2
  197. package/src/file/index.php +1 -1
  198. package/src/file/transforms.js +26 -6
  199. package/src/freeform/modal.js +3 -6
  200. package/src/image/edit.js +91 -20
  201. package/src/image/editor.scss +7 -38
  202. package/src/image/image.js +31 -20
  203. package/src/image/index.php +1 -1
  204. package/src/image/transforms.js +0 -23
  205. package/src/image/use-max-width-observer.js +32 -0
  206. package/src/image/utils.js +13 -1
  207. package/src/latest-posts/edit.js +1 -1
  208. package/src/missing/edit.js +1 -2
  209. package/src/navigation/edit/deleted-navigation-warning.js +23 -20
  210. package/src/navigation/edit/index.js +1 -2
  211. package/src/navigation/edit/menu-inspector-controls.js +3 -1
  212. package/src/navigation/edit/navigation-menu-delete-control.js +1 -2
  213. package/src/navigation/edit/placeholder/index.js +1 -2
  214. package/src/navigation/edit/responsive-wrapper.js +2 -4
  215. package/src/navigation/editor.scss +5 -1
  216. package/src/navigation/index.php +1 -1
  217. package/src/navigation-link/link-ui.js +1 -2
  218. package/src/page-list/convert-to-links-modal.js +2 -4
  219. package/src/page-list/edit.js +1 -2
  220. package/src/post-comments-form/form.js +1 -2
  221. package/src/post-featured-image/edit.js +1 -2
  222. package/src/post-title/block.json +4 -1
  223. package/src/post-title/style.scss +24 -0
  224. package/src/query/edit/enhanced-pagination-modal.js +3 -4
  225. package/src/query/edit/inspector-controls/enhanced-pagination-control.js +3 -3
  226. package/src/query/edit/inspector-controls/index.js +2 -9
  227. package/src/query/edit/query-content.js +7 -0
  228. package/src/query/edit/query-placeholder.js +2 -4
  229. package/src/query/index.php +1 -1
  230. package/src/search/index.php +1 -1
  231. package/src/site-logo/edit.js +2 -4
  232. package/src/site-title/block.json +4 -1
  233. package/src/site-title/style.scss +24 -0
  234. package/src/social-link/edit.js +1 -1
  235. package/src/template-part/edit/inner-blocks.js +20 -1
  236. package/src/template-part/edit/placeholder.js +2 -4
  237. package/src/video/edit.js +2 -4
  238. package/src/video/tracks-editor.js +3 -6
@@ -205,7 +205,7 @@
205
205
  }
206
206
 
207
207
  .wp-block-buttons {
208
- /* stylelint-disable indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
208
+ /* stylelint-disable @stylistic/indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
209
209
  }
210
210
  .wp-block-buttons.is-vertical {
211
211
  flex-direction: column;
@@ -245,7 +245,7 @@
245
245
  .is-content-justification-right,
246
246
  .is-content-justification-left,
247
247
  .is-content-justification-center) .wp-block-button.aligncenter {
248
- /* stylelint-enable indentation */
248
+ /* stylelint-enable @stylistic/indentation */
249
249
  margin-right: auto;
250
250
  margin-left: auto;
251
251
  width: 100%;
@@ -3014,6 +3014,27 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
3014
3014
  word-break: break-word;
3015
3015
  box-sizing: border-box;
3016
3016
  }
3017
+ .wp-block-post-title[style*=font-weight] :where(a) {
3018
+ font-weight: inherit;
3019
+ }
3020
+ .wp-block-post-title[class*=-font-family] :where(a), .wp-block-post-title[style*=font-family] :where(a) {
3021
+ font-family: inherit;
3022
+ }
3023
+ .wp-block-post-title[class*=-font-size] :where(a), .wp-block-post-title[style*=font-size] :where(a) {
3024
+ font-size: inherit;
3025
+ }
3026
+ .wp-block-post-title[style*=line-height] :where(a) {
3027
+ line-height: inherit;
3028
+ }
3029
+ .wp-block-post-title[style*=font-style] :where(a) {
3030
+ font-style: inherit;
3031
+ }
3032
+ .wp-block-post-title[style*=letter-spacing] :where(a) {
3033
+ letter-spacing: inherit;
3034
+ }
3035
+ .wp-block-post-title[style*=text-decoration] :where(a) {
3036
+ text-decoration: inherit;
3037
+ }
3017
3038
  .wp-block-post-title a {
3018
3039
  display: inline-block;
3019
3040
  }
@@ -3438,6 +3459,27 @@ ul.wp-block-rss.is-grid li {
3438
3459
  .wp-block-site-title {
3439
3460
  box-sizing: border-box;
3440
3461
  }
3462
+ .wp-block-site-title[style*=font-weight] :where(a) {
3463
+ font-weight: inherit;
3464
+ }
3465
+ .wp-block-site-title[class*=-font-family] :where(a), .wp-block-site-title[style*=font-family] :where(a) {
3466
+ font-family: inherit;
3467
+ }
3468
+ .wp-block-site-title[class*=-font-size] :where(a), .wp-block-site-title[style*=font-size] :where(a) {
3469
+ font-size: inherit;
3470
+ }
3471
+ .wp-block-site-title[style*=line-height] :where(a) {
3472
+ line-height: inherit;
3473
+ }
3474
+ .wp-block-site-title[style*=font-style] :where(a) {
3475
+ font-style: inherit;
3476
+ }
3477
+ .wp-block-site-title[style*=letter-spacing] :where(a) {
3478
+ letter-spacing: inherit;
3479
+ }
3480
+ .wp-block-site-title[style*=text-decoration] :where(a) {
3481
+ text-decoration: inherit;
3482
+ }
3441
3483
  .wp-block-site-title :where(a) {
3442
3484
  color: inherit;
3443
3485
  }
@@ -4130,8 +4172,8 @@ a[data-fn].fn::after {
4130
4172
  }
4131
4173
 
4132
4174
  :root {
4133
- /* stylelint-disable function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
4134
- /* stylelint-enable function-comma-space-after */
4175
+ /* stylelint-disable @stylistic/function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
4176
+ /* stylelint-enable @stylistic/function-comma-space-after */
4135
4177
  --wp--preset--font-size--normal: 16px;
4136
4178
  --wp--preset--font-size--huge: 42px;
4137
4179
  }
@@ -206,7 +206,7 @@
206
206
  }
207
207
 
208
208
  .wp-block-buttons {
209
- /* stylelint-disable indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
209
+ /* stylelint-disable @stylistic/indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
210
210
  }
211
211
  .wp-block-buttons.is-vertical {
212
212
  flex-direction: column;
@@ -246,7 +246,7 @@
246
246
  .is-content-justification-right,
247
247
  .is-content-justification-left,
248
248
  .is-content-justification-center) .wp-block-button.aligncenter {
249
- /* stylelint-enable indentation */
249
+ /* stylelint-enable @stylistic/indentation */
250
250
  margin-left: auto;
251
251
  margin-right: auto;
252
252
  width: 100%;
@@ -3044,6 +3044,27 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
3044
3044
  word-break: break-word;
3045
3045
  box-sizing: border-box;
3046
3046
  }
3047
+ .wp-block-post-title[style*=font-weight] :where(a) {
3048
+ font-weight: inherit;
3049
+ }
3050
+ .wp-block-post-title[class*=-font-family] :where(a), .wp-block-post-title[style*=font-family] :where(a) {
3051
+ font-family: inherit;
3052
+ }
3053
+ .wp-block-post-title[class*=-font-size] :where(a), .wp-block-post-title[style*=font-size] :where(a) {
3054
+ font-size: inherit;
3055
+ }
3056
+ .wp-block-post-title[style*=line-height] :where(a) {
3057
+ line-height: inherit;
3058
+ }
3059
+ .wp-block-post-title[style*=font-style] :where(a) {
3060
+ font-style: inherit;
3061
+ }
3062
+ .wp-block-post-title[style*=letter-spacing] :where(a) {
3063
+ letter-spacing: inherit;
3064
+ }
3065
+ .wp-block-post-title[style*=text-decoration] :where(a) {
3066
+ text-decoration: inherit;
3067
+ }
3047
3068
  .wp-block-post-title a {
3048
3069
  display: inline-block;
3049
3070
  }
@@ -3471,6 +3492,27 @@ ul.wp-block-rss.is-grid li {
3471
3492
  .wp-block-site-title {
3472
3493
  box-sizing: border-box;
3473
3494
  }
3495
+ .wp-block-site-title[style*=font-weight] :where(a) {
3496
+ font-weight: inherit;
3497
+ }
3498
+ .wp-block-site-title[class*=-font-family] :where(a), .wp-block-site-title[style*=font-family] :where(a) {
3499
+ font-family: inherit;
3500
+ }
3501
+ .wp-block-site-title[class*=-font-size] :where(a), .wp-block-site-title[style*=font-size] :where(a) {
3502
+ font-size: inherit;
3503
+ }
3504
+ .wp-block-site-title[style*=line-height] :where(a) {
3505
+ line-height: inherit;
3506
+ }
3507
+ .wp-block-site-title[style*=font-style] :where(a) {
3508
+ font-style: inherit;
3509
+ }
3510
+ .wp-block-site-title[style*=letter-spacing] :where(a) {
3511
+ letter-spacing: inherit;
3512
+ }
3513
+ .wp-block-site-title[style*=text-decoration] :where(a) {
3514
+ text-decoration: inherit;
3515
+ }
3474
3516
  .wp-block-site-title :where(a) {
3475
3517
  color: inherit;
3476
3518
  }
@@ -4163,8 +4205,8 @@ a[data-fn].fn::after {
4163
4205
  }
4164
4206
 
4165
4207
  :root {
4166
- /* stylelint-disable function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
4167
- /* stylelint-enable function-comma-space-after */
4208
+ /* stylelint-disable @stylistic/function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
4209
+ /* stylelint-enable @stylistic/function-comma-space-after */
4168
4210
  --wp--preset--font-size--normal: 16px;
4169
4211
  --wp--preset--font-size--huge: 42px;
4170
4212
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "9.7.0",
3
+ "version": "9.7.1-next.5368f64a9.0",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -30,41 +30,48 @@
30
30
  "src/**/*.scss",
31
31
  "{src,build,build-module}/*/init.js"
32
32
  ],
33
+ "wpScriptModuleExports": {
34
+ "./file/view": "./build-module/file/view.js",
35
+ "./image/view": "./build-module/image/view.js",
36
+ "./navigation/view": "./build-module/navigation/view.js",
37
+ "./query/view": "./build-module/query/view.js",
38
+ "./search/view": "./build-module/search/view.js"
39
+ },
33
40
  "dependencies": {
34
41
  "@babel/runtime": "^7.16.0",
35
- "@wordpress/a11y": "^4.7.0",
36
- "@wordpress/api-fetch": "^7.7.0",
37
- "@wordpress/autop": "^4.7.0",
38
- "@wordpress/blob": "^4.7.0",
39
- "@wordpress/block-editor": "^14.2.0",
40
- "@wordpress/blocks": "^13.7.0",
41
- "@wordpress/components": "^28.7.0",
42
- "@wordpress/compose": "^7.7.0",
43
- "@wordpress/core-data": "^7.7.0",
44
- "@wordpress/data": "^10.7.0",
45
- "@wordpress/date": "^5.7.0",
46
- "@wordpress/deprecated": "^4.7.0",
47
- "@wordpress/dom": "^4.7.0",
48
- "@wordpress/element": "^6.7.0",
49
- "@wordpress/escape-html": "^3.7.0",
50
- "@wordpress/hooks": "^4.7.0",
51
- "@wordpress/html-entities": "^4.7.0",
52
- "@wordpress/i18n": "^5.7.0",
53
- "@wordpress/icons": "^10.7.0",
54
- "@wordpress/interactivity": "^6.7.0",
55
- "@wordpress/interactivity-router": "^2.7.0",
56
- "@wordpress/keyboard-shortcuts": "^5.7.0",
57
- "@wordpress/keycodes": "^4.7.0",
58
- "@wordpress/notices": "^5.7.0",
59
- "@wordpress/patterns": "^2.7.0",
60
- "@wordpress/primitives": "^4.7.0",
61
- "@wordpress/private-apis": "^1.7.0",
62
- "@wordpress/reusable-blocks": "^5.7.0",
63
- "@wordpress/rich-text": "^7.7.0",
64
- "@wordpress/server-side-render": "^5.7.0",
65
- "@wordpress/url": "^4.7.0",
66
- "@wordpress/viewport": "^6.7.0",
67
- "@wordpress/wordcount": "^4.7.0",
42
+ "@wordpress/a11y": "^4.7.1-next.5368f64a9.0",
43
+ "@wordpress/api-fetch": "^7.7.1-next.5368f64a9.0",
44
+ "@wordpress/autop": "^4.7.1-next.5368f64a9.0",
45
+ "@wordpress/blob": "^4.7.1-next.5368f64a9.0",
46
+ "@wordpress/block-editor": "^14.2.1-next.5368f64a9.0",
47
+ "@wordpress/blocks": "^13.7.1-next.5368f64a9.0",
48
+ "@wordpress/components": "^28.8.1-next.5368f64a9.0",
49
+ "@wordpress/compose": "^7.8.1-next.5368f64a9.0",
50
+ "@wordpress/core-data": "^7.7.1-next.5368f64a9.0",
51
+ "@wordpress/data": "^10.7.1-next.5368f64a9.0",
52
+ "@wordpress/date": "^5.7.1-next.5368f64a9.0",
53
+ "@wordpress/deprecated": "^4.7.1-next.5368f64a9.0",
54
+ "@wordpress/dom": "^4.7.1-next.5368f64a9.0",
55
+ "@wordpress/element": "^6.7.1-next.5368f64a9.0",
56
+ "@wordpress/escape-html": "^3.7.1-next.5368f64a9.0",
57
+ "@wordpress/hooks": "^4.7.1-next.5368f64a9.0",
58
+ "@wordpress/html-entities": "^4.7.1-next.5368f64a9.0",
59
+ "@wordpress/i18n": "^5.7.1-next.5368f64a9.0",
60
+ "@wordpress/icons": "^10.7.1-next.5368f64a9.0",
61
+ "@wordpress/interactivity": "^6.7.2-next.5368f64a9.0",
62
+ "@wordpress/interactivity-router": "^2.7.1-next.5368f64a9.0",
63
+ "@wordpress/keyboard-shortcuts": "^5.7.1-next.5368f64a9.0",
64
+ "@wordpress/keycodes": "^4.7.1-next.5368f64a9.0",
65
+ "@wordpress/notices": "^5.7.1-next.5368f64a9.0",
66
+ "@wordpress/patterns": "^2.7.1-next.5368f64a9.0",
67
+ "@wordpress/primitives": "^4.7.1-next.5368f64a9.0",
68
+ "@wordpress/private-apis": "^1.7.1-next.5368f64a9.0",
69
+ "@wordpress/reusable-blocks": "^5.7.1-next.5368f64a9.0",
70
+ "@wordpress/rich-text": "^7.7.1-next.5368f64a9.0",
71
+ "@wordpress/server-side-render": "^5.7.1-next.5368f64a9.0",
72
+ "@wordpress/url": "^4.7.1-next.5368f64a9.0",
73
+ "@wordpress/viewport": "^6.7.1-next.5368f64a9.0",
74
+ "@wordpress/wordcount": "^4.7.1-next.5368f64a9.0",
68
75
  "change-case": "^4.1.2",
69
76
  "clsx": "^2.1.1",
70
77
  "colord": "^2.7.0",
@@ -82,5 +89,5 @@
82
89
  "publishConfig": {
83
90
  "access": "public"
84
91
  },
85
- "gitHead": "c90d920de07c53dff82c5914635b56fafa503b7f"
92
+ "gitHead": "24934a1f5251bbee15045d1fd953d9c5650317cd"
86
93
  }
@@ -53,7 +53,7 @@ export default function ArchivesEdit( { attributes, setAttributes } ) {
53
53
  <SelectControl
54
54
  __next40pxDefaultSize
55
55
  __nextHasNoMarginBottom
56
- label={ __( 'Group by:' ) }
56
+ label={ __( 'Group by' ) }
57
57
  options={ [
58
58
  { label: __( 'Year' ), value: 'yearly' },
59
59
  { label: __( 'Month' ), value: 'monthly' },
package/src/block/edit.js CHANGED
@@ -194,19 +194,15 @@ function ReusableBlockEdit( {
194
194
  hasPatternOverridesSource,
195
195
  } = useSelect(
196
196
  ( select ) => {
197
- const {
198
- getBlocks,
199
- getSettings,
200
- getBlockEditingMode: _getBlockEditingMode,
201
- } = select( blockEditorStore );
197
+ const { getBlocks, getSettings, getBlockEditingMode } =
198
+ select( blockEditorStore );
202
199
  const { getBlockBindingsSource } = unlock( select( blocksStore ) );
203
200
  // For editing link to the site editor if the theme and user permissions support it.
204
201
  return {
205
202
  innerBlocks: getBlocks( patternClientId ),
206
- getBlockEditingMode: _getBlockEditingMode,
207
203
  onNavigateToEntityRecord:
208
204
  getSettings().onNavigateToEntityRecord,
209
- editingMode: _getBlockEditingMode( patternClientId ),
205
+ editingMode: getBlockEditingMode( patternClientId ),
210
206
  hasPatternOverridesSource: !! getBlockBindingsSource(
211
207
  'core/pattern-overrides'
212
208
  ),
@@ -21,7 +21,7 @@
21
21
  }
22
22
  },
23
23
  "spacing": {
24
- "blockGap": true,
24
+ "blockGap": [ "horizontal", "vertical" ],
25
25
  "padding": true,
26
26
  "margin": [ "top", "bottom" ],
27
27
  "__experimentalDefaultControls": {
@@ -33,14 +33,14 @@ $blocks-block__margin: 0.5em;
33
33
  //
34
34
  // This back compat rule is ignored if the user decides to use the
35
35
  // newer justification options on the button block, hence the :not.
36
- /* stylelint-disable indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
36
+ /* stylelint-disable @stylistic/indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
37
37
  &:not(
38
38
  .is-content-justification-space-between,
39
39
  .is-content-justification-right,
40
40
  .is-content-justification-left,
41
41
  .is-content-justification-center
42
42
  ) .wp-block[data-align="center"] {
43
- /* stylelint-enable indentation */
43
+ /* stylelint-enable @stylistic/indentation */
44
44
  margin-left: auto;
45
45
  margin-right: auto;
46
46
  margin-top: 0;
@@ -55,14 +55,14 @@ $blocks-block__margin: 0.5em;
55
55
  //
56
56
  // This back compat rule is ignored if the user decides to use the
57
57
  // newer justification options on the button block, hence the :not.
58
- /* stylelint-disable indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
58
+ /* stylelint-disable @stylistic/indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
59
59
  &:not(
60
60
  .is-content-justification-space-between,
61
61
  .is-content-justification-right,
62
62
  .is-content-justification-left,
63
63
  .is-content-justification-center
64
64
  ) .wp-block-button.aligncenter {
65
- /* stylelint-enable indentation */
65
+ /* stylelint-enable @stylistic/indentation */
66
66
  margin-left: auto;
67
67
  margin-right: auto;
68
68
  width: 100%;
@@ -29,8 +29,7 @@ export default function CommentsLegacy( {
29
29
 
30
30
  const actions = [
31
31
  <Button
32
- // TODO: Switch to `true` (40px size) if possible
33
- __next40pxDefaultSize={ false }
32
+ __next40pxDefaultSize
34
33
  key="convert"
35
34
  onClick={ () => void setAttributes( { legacy: false } ) }
36
35
  variant="primary"
@@ -400,8 +400,9 @@ const v12 = {
400
400
  supports: v12BlockSupports,
401
401
  isEligible( attributes ) {
402
402
  return (
403
- attributes.customOverlayColor !== undefined ||
404
- attributes.overlayColor !== undefined
403
+ ( attributes.customOverlayColor !== undefined ||
404
+ attributes.overlayColor !== undefined ) &&
405
+ attributes.isUserOverlayColor === undefined
405
406
  );
406
407
  },
407
408
  migrate( attributes ) {
@@ -143,7 +143,10 @@ function CoverEdit( {
143
143
  averageBackgroundColor
144
144
  );
145
145
  __unstableMarkNextChangeAsNotPersistent();
146
- setAttributes( { isDark: newIsDark } );
146
+ setAttributes( {
147
+ isDark: newIsDark,
148
+ isUserOverlayColor: isUserOverlayColor || false,
149
+ } );
147
150
  } )();
148
151
  // Disable reason: Update the block only when the featured image changes.
149
152
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -201,6 +204,7 @@ function CoverEdit( {
201
204
  useFeaturedImage: undefined,
202
205
  dimRatio: newDimRatio,
203
206
  isDark: newIsDark,
207
+ isUserOverlayColor: isUserOverlayColor || false,
204
208
  } );
205
209
  };
206
210
 
package/src/embed/edit.js CHANGED
@@ -14,7 +14,6 @@ import { embedContentIcon } from './icons';
14
14
  import EmbedLoading from './embed-loading';
15
15
  import EmbedPlaceholder from './embed-placeholder';
16
16
  import EmbedPreview from './embed-preview';
17
- import { Caption } from '../utils/caption';
18
17
 
19
18
  /**
20
19
  * External dependencies
@@ -277,14 +276,8 @@ const EmbedEdit = ( props ) => {
277
276
  icon={ icon }
278
277
  label={ label }
279
278
  insertBlocksAfter={ insertBlocksAfter }
280
- />
281
- <Caption
282
279
  attributes={ attributes }
283
280
  setAttributes={ setAttributes }
284
- isSelected={ isSelected }
285
- insertBlocksAfter={ insertBlocksAfter }
286
- label={ __( 'Embed caption text' ) }
287
- showToolbarButton={ isSelected }
288
281
  />
289
282
  </View>
290
283
  </>
@@ -66,16 +66,14 @@ const EmbedPlaceholder = ( {
66
66
  justify="flex-start"
67
67
  >
68
68
  <Button
69
- // TODO: Switch to `true` (40px size) if possible
70
- __next40pxDefaultSize={ false }
69
+ __next40pxDefaultSize
71
70
  variant="secondary"
72
71
  onClick={ tryAgain }
73
72
  >
74
73
  { _x( 'Try again', 'button label' ) }
75
74
  </Button>{ ' ' }
76
75
  <Button
77
- // TODO: Switch to `true` (40px size) if possible
78
- __next40pxDefaultSize={ false }
76
+ __next40pxDefaultSize
79
77
  variant="secondary"
80
78
  onClick={ fallback }
81
79
  >
@@ -21,6 +21,7 @@ import { getAuthority } from '@wordpress/url';
21
21
  * Internal dependencies
22
22
  */
23
23
  import WpEmbedPreview from './wp-embed-preview';
24
+ import { Caption } from '../utils/caption';
24
25
 
25
26
  class EmbedPreview extends Component {
26
27
  constructor() {
@@ -52,8 +53,19 @@ class EmbedPreview extends Component {
52
53
  }
53
54
 
54
55
  render() {
55
- const { preview, previewable, url, type, className, icon, label } =
56
- this.props;
56
+ const {
57
+ preview,
58
+ previewable,
59
+ url,
60
+ type,
61
+ className,
62
+ icon,
63
+ label,
64
+ insertBlocksAfter,
65
+ attributes,
66
+ setAttributes,
67
+ isSelected,
68
+ } = this.props;
57
69
  const { scripts } = preview;
58
70
  const { interactive } = this.state;
59
71
 
@@ -123,6 +135,14 @@ class EmbedPreview extends Component {
123
135
  </p>
124
136
  </Placeholder>
125
137
  ) }
138
+ <Caption
139
+ attributes={ attributes }
140
+ setAttributes={ setAttributes }
141
+ isSelected={ isSelected }
142
+ insertBlocksAfter={ insertBlocksAfter }
143
+ label={ __( 'Embed caption text' ) }
144
+ showToolbarButton={ isSelected }
145
+ />
126
146
  </figure>
127
147
  );
128
148
  }
@@ -21,7 +21,7 @@ function render_block_core_file( $attributes, $content ) {
21
21
  if ( ! empty( $attributes['displayPreview'] ) ) {
22
22
  $suffix = wp_scripts_get_suffix();
23
23
  if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
24
- $module_url = gutenberg_url( '/build/interactivity/file.min.js' );
24
+ $module_url = gutenberg_url( '/build-module/block-library/file/view.min.js' );
25
25
  }
26
26
 
27
27
  wp_register_script_module(
@@ -24,12 +24,32 @@ const transforms = {
24
24
  const blobURL = createBlobURL( file );
25
25
 
26
26
  // File will be uploaded in componentDidMount()
27
- blocks.push(
28
- createBlock( 'core/file', {
29
- blob: blobURL,
30
- fileName: file.name,
31
- } )
32
- );
27
+ if ( file.type.startsWith( 'video/' ) ) {
28
+ blocks.push(
29
+ createBlock( 'core/video', {
30
+ blob: createBlobURL( file ),
31
+ } )
32
+ );
33
+ } else if ( file.type.startsWith( 'image/' ) ) {
34
+ blocks.push(
35
+ createBlock( 'core/image', {
36
+ blob: createBlobURL( file ),
37
+ } )
38
+ );
39
+ } else if ( file.type.startsWith( 'audio/' ) ) {
40
+ blocks.push(
41
+ createBlock( 'core/audio', {
42
+ blob: createBlobURL( file ),
43
+ } )
44
+ );
45
+ } else {
46
+ blocks.push(
47
+ createBlock( 'core/file', {
48
+ blob: blobURL,
49
+ fileName: file.name,
50
+ } )
51
+ );
52
+ }
33
53
  } );
34
54
 
35
55
  return blocks;
@@ -25,8 +25,7 @@ function ModalAuxiliaryActions( { onClick, isModalFullScreen } ) {
25
25
 
26
26
  return (
27
27
  <Button
28
- // TODO: Switch to `true` (40px size) if possible
29
- __next40pxDefaultSize={ false }
28
+ size="small"
30
29
  onClick={ onClick }
31
30
  icon={ fullscreen }
32
31
  isPressed={ isModalFullScreen }
@@ -123,8 +122,7 @@ export default function ModalEdit( props ) {
123
122
  >
124
123
  <FlexItem>
125
124
  <Button
126
- // TODO: Switch to `true` (40px size) if possible
127
- __next40pxDefaultSize={ false }
125
+ __next40pxDefaultSize
128
126
  variant="tertiary"
129
127
  onClick={ onClose }
130
128
  >
@@ -133,8 +131,7 @@ export default function ModalEdit( props ) {
133
131
  </FlexItem>
134
132
  <FlexItem>
135
133
  <Button
136
- // TODO: Switch to `true` (40px size) if possible
137
- __next40pxDefaultSize={ false }
134
+ __next40pxDefaultSize
138
135
  variant="primary"
139
136
  onClick={ () => {
140
137
  setAttributes( {