@wordpress/block-library 9.35.1-next.dc3f6d3c1.0 → 9.36.1-next.6deb34194.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 (315) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/accordion/view.js +46 -4
  3. package/build/accordion/view.js.map +2 -2
  4. package/build/accordion-heading/block.json +1 -1
  5. package/build/accordion-heading/deprecated.js +1 -1
  6. package/build/accordion-heading/deprecated.js.map +2 -2
  7. package/build/accordion-panel/block.json +1 -1
  8. package/build/audio/index.js +13 -10
  9. package/build/audio/index.js.map +3 -3
  10. package/build/avatar/edit.js +13 -38
  11. package/build/avatar/edit.js.map +2 -2
  12. package/build/breadcrumbs/block.json +3 -2
  13. package/build/breadcrumbs/edit.js +18 -18
  14. package/build/breadcrumbs/edit.js.map +2 -2
  15. package/build/button/index.js +14 -11
  16. package/build/button/index.js.map +3 -3
  17. package/build/code/index.js +10 -7
  18. package/build/code/index.js.map +3 -3
  19. package/build/comments-pagination-numbers/block.json +7 -0
  20. package/build/cover/edit/block-controls.js +37 -3
  21. package/build/cover/edit/block-controls.js.map +3 -3
  22. package/build/cover/edit/cover-placeholder.js +0 -1
  23. package/build/cover/edit/cover-placeholder.js.map +2 -2
  24. package/build/cover/edit/embed-video-url-input.js +83 -0
  25. package/build/cover/edit/embed-video-url-input.js.map +7 -0
  26. package/build/cover/edit/index.js +60 -0
  27. package/build/cover/edit/index.js.map +2 -2
  28. package/build/cover/embed-video-utils.js +151 -0
  29. package/build/cover/embed-video-utils.js.map +7 -0
  30. package/build/cover/index.js +11 -5
  31. package/build/cover/index.js.map +3 -3
  32. package/build/cover/save.js +12 -0
  33. package/build/cover/save.js.map +2 -2
  34. package/build/cover/shared.js +3 -0
  35. package/build/cover/shared.js.map +2 -2
  36. package/build/details/index.js +10 -7
  37. package/build/details/index.js.map +3 -3
  38. package/build/file/index.js +15 -15
  39. package/build/file/index.js.map +3 -3
  40. package/build/freeform/block.json +1 -1
  41. package/build/gallery/edit.js +1 -3
  42. package/build/gallery/edit.js.map +2 -2
  43. package/build/gallery/transforms.js +7 -3
  44. package/build/gallery/transforms.js.map +2 -2
  45. package/build/heading/index.js +10 -7
  46. package/build/heading/index.js.map +3 -3
  47. package/build/html/modal.js +141 -121
  48. package/build/html/modal.js.map +3 -3
  49. package/build/image/edit.js +0 -1
  50. package/build/image/edit.js.map +2 -2
  51. package/build/image/image.js +0 -1
  52. package/build/image/image.js.map +2 -2
  53. package/build/image/index.js +19 -19
  54. package/build/image/index.js.map +3 -3
  55. package/build/index.js +9 -3
  56. package/build/index.js.map +2 -2
  57. package/build/list-item/index.js +9 -7
  58. package/build/list-item/index.js.map +3 -3
  59. package/build/math/block.json +28 -1
  60. package/build/math/edit.js +17 -2
  61. package/build/math/edit.js.map +2 -2
  62. package/build/media-text/index.js +16 -9
  63. package/build/media-text/index.js.map +3 -3
  64. package/build/media-text/media-container.js +0 -2
  65. package/build/media-text/media-container.js.map +2 -2
  66. package/build/missing/block.json +1 -1
  67. package/build/missing/edit.js +2 -2
  68. package/build/missing/edit.js.map +1 -1
  69. package/build/more/index.js +10 -7
  70. package/build/more/index.js.map +3 -3
  71. package/build/navigation-link/edit.js +36 -11
  72. package/build/navigation-link/edit.js.map +2 -2
  73. package/build/navigation-link/index.js +12 -9
  74. package/build/navigation-link/index.js.map +3 -3
  75. package/build/navigation-submenu/index.js +12 -9
  76. package/build/navigation-submenu/index.js.map +3 -3
  77. package/build/page-list-item/edit.js +4 -3
  78. package/build/page-list-item/edit.js.map +2 -2
  79. package/build/paragraph/deprecated-attributes.js +68 -0
  80. package/build/paragraph/deprecated-attributes.js.map +7 -0
  81. package/build/paragraph/edit.js +2 -0
  82. package/build/paragraph/edit.js.map +3 -3
  83. package/build/paragraph/index.js +10 -7
  84. package/build/paragraph/index.js.map +3 -3
  85. package/build/pattern/block.json +1 -1
  86. package/build/post-title/edit.js +6 -4
  87. package/build/post-title/edit.js.map +2 -2
  88. package/build/preformatted/index.js +10 -7
  89. package/build/preformatted/index.js.map +3 -3
  90. package/build/pullquote/index.js +12 -12
  91. package/build/pullquote/index.js.map +3 -3
  92. package/build/search/index.js +15 -17
  93. package/build/search/index.js.map +3 -3
  94. package/build/social-link/index.js +12 -9
  95. package/build/social-link/index.js.map +3 -3
  96. package/build/template-part/edit/index.js +37 -7
  97. package/build/template-part/edit/index.js.map +2 -2
  98. package/build/template-part/edit/utils/get-template-part-icon.js +9 -4
  99. package/build/template-part/edit/utils/get-template-part-icon.js.map +3 -3
  100. package/build/template-part/edit/utils/hooks.js +2 -3
  101. package/build/template-part/edit/utils/hooks.js.map +2 -2
  102. package/build/term-count/index.js +1 -0
  103. package/build/term-count/index.js.map +2 -2
  104. package/build/term-name/index.js +1 -0
  105. package/build/term-name/index.js.map +2 -2
  106. package/build/verse/index.js +10 -7
  107. package/build/verse/index.js.map +3 -3
  108. package/build/video/index.js +13 -10
  109. package/build/video/index.js.map +3 -3
  110. package/build-module/accordion/view.js +46 -4
  111. package/build-module/accordion/view.js.map +2 -2
  112. package/build-module/accordion-heading/block.json +1 -1
  113. package/build-module/accordion-heading/deprecated.js +1 -1
  114. package/build-module/accordion-heading/deprecated.js.map +2 -2
  115. package/build-module/accordion-panel/block.json +1 -1
  116. package/build-module/audio/index.js +13 -10
  117. package/build-module/audio/index.js.map +2 -2
  118. package/build-module/avatar/edit.js +13 -38
  119. package/build-module/avatar/edit.js.map +2 -2
  120. package/build-module/breadcrumbs/block.json +3 -2
  121. package/build-module/breadcrumbs/edit.js +18 -18
  122. package/build-module/breadcrumbs/edit.js.map +2 -2
  123. package/build-module/button/index.js +14 -11
  124. package/build-module/button/index.js.map +2 -2
  125. package/build-module/code/index.js +10 -7
  126. package/build-module/code/index.js.map +2 -2
  127. package/build-module/comments-pagination-numbers/block.json +7 -0
  128. package/build-module/cover/edit/block-controls.js +27 -3
  129. package/build-module/cover/edit/block-controls.js.map +2 -2
  130. package/build-module/cover/edit/cover-placeholder.js +0 -1
  131. package/build-module/cover/edit/cover-placeholder.js.map +2 -2
  132. package/build-module/cover/edit/embed-video-url-input.js +67 -0
  133. package/build-module/cover/edit/embed-video-url-input.js.map +7 -0
  134. package/build-module/cover/edit/index.js +61 -0
  135. package/build-module/cover/edit/index.js.map +2 -2
  136. package/build-module/cover/embed-video-utils.js +122 -0
  137. package/build-module/cover/embed-video-utils.js.map +7 -0
  138. package/build-module/cover/index.js +11 -5
  139. package/build-module/cover/index.js.map +2 -2
  140. package/build-module/cover/save.js +13 -0
  141. package/build-module/cover/save.js.map +2 -2
  142. package/build-module/cover/shared.js +2 -0
  143. package/build-module/cover/shared.js.map +2 -2
  144. package/build-module/details/index.js +10 -7
  145. package/build-module/details/index.js.map +2 -2
  146. package/build-module/file/index.js +15 -15
  147. package/build-module/file/index.js.map +2 -2
  148. package/build-module/freeform/block.json +1 -1
  149. package/build-module/gallery/edit.js +1 -3
  150. package/build-module/gallery/edit.js.map +2 -2
  151. package/build-module/gallery/transforms.js +7 -3
  152. package/build-module/gallery/transforms.js.map +2 -2
  153. package/build-module/heading/index.js +10 -7
  154. package/build-module/heading/index.js.map +2 -2
  155. package/build-module/html/modal.js +143 -122
  156. package/build-module/html/modal.js.map +2 -2
  157. package/build-module/image/edit.js +0 -1
  158. package/build-module/image/edit.js.map +2 -2
  159. package/build-module/image/image.js +0 -1
  160. package/build-module/image/image.js.map +2 -2
  161. package/build-module/image/index.js +19 -19
  162. package/build-module/image/index.js.map +2 -2
  163. package/build-module/index.js +9 -3
  164. package/build-module/index.js.map +2 -2
  165. package/build-module/list-item/index.js +9 -7
  166. package/build-module/list-item/index.js.map +2 -2
  167. package/build-module/math/block.json +28 -1
  168. package/build-module/math/edit.js +18 -3
  169. package/build-module/math/edit.js.map +2 -2
  170. package/build-module/media-text/index.js +16 -9
  171. package/build-module/media-text/index.js.map +2 -2
  172. package/build-module/media-text/media-container.js +0 -2
  173. package/build-module/media-text/media-container.js.map +2 -2
  174. package/build-module/missing/block.json +1 -1
  175. package/build-module/missing/edit.js +2 -2
  176. package/build-module/missing/edit.js.map +1 -1
  177. package/build-module/more/index.js +10 -7
  178. package/build-module/more/index.js.map +2 -2
  179. package/build-module/navigation-link/edit.js +37 -12
  180. package/build-module/navigation-link/edit.js.map +2 -2
  181. package/build-module/navigation-link/index.js +12 -9
  182. package/build-module/navigation-link/index.js.map +2 -2
  183. package/build-module/navigation-submenu/index.js +12 -9
  184. package/build-module/navigation-submenu/index.js.map +2 -2
  185. package/build-module/page-list-item/edit.js +4 -3
  186. package/build-module/page-list-item/edit.js.map +2 -2
  187. package/build-module/paragraph/deprecated-attributes.js +37 -0
  188. package/build-module/paragraph/deprecated-attributes.js.map +7 -0
  189. package/build-module/paragraph/edit.js +2 -0
  190. package/build-module/paragraph/edit.js.map +2 -2
  191. package/build-module/paragraph/index.js +10 -7
  192. package/build-module/paragraph/index.js.map +2 -2
  193. package/build-module/pattern/block.json +1 -1
  194. package/build-module/post-title/edit.js +6 -4
  195. package/build-module/post-title/edit.js.map +2 -2
  196. package/build-module/preformatted/index.js +10 -7
  197. package/build-module/preformatted/index.js.map +2 -2
  198. package/build-module/pullquote/index.js +12 -12
  199. package/build-module/pullquote/index.js.map +2 -2
  200. package/build-module/search/index.js +15 -17
  201. package/build-module/search/index.js.map +2 -2
  202. package/build-module/social-link/index.js +12 -9
  203. package/build-module/social-link/index.js.map +2 -2
  204. package/build-module/template-part/edit/index.js +37 -7
  205. package/build-module/template-part/edit/index.js.map +2 -2
  206. package/build-module/template-part/edit/utils/get-template-part-icon.js +10 -4
  207. package/build-module/template-part/edit/utils/get-template-part-icon.js.map +2 -2
  208. package/build-module/template-part/edit/utils/hooks.js +2 -3
  209. package/build-module/template-part/edit/utils/hooks.js.map +2 -2
  210. package/build-module/term-count/index.js +1 -0
  211. package/build-module/term-count/index.js.map +2 -2
  212. package/build-module/term-name/index.js +1 -0
  213. package/build-module/term-name/index.js.map +2 -2
  214. package/build-module/verse/index.js +10 -7
  215. package/build-module/verse/index.js.map +2 -2
  216. package/build-module/video/index.js +13 -10
  217. package/build-module/video/index.js.map +2 -2
  218. package/build-style/accordion/style-rtl.css +3 -0
  219. package/build-style/accordion/style.css +3 -0
  220. package/build-style/accordion-heading/style-rtl.css +2 -19
  221. package/build-style/accordion-heading/style.css +2 -19
  222. package/build-style/accordion-item/style-rtl.css +0 -7
  223. package/build-style/accordion-item/style.css +0 -7
  224. package/build-style/accordion-panel/style-rtl.css +1 -4
  225. package/build-style/accordion-panel/style.css +1 -4
  226. package/build-style/classic-rtl.css +24 -0
  227. package/build-style/classic.css +24 -0
  228. package/build-style/common-rtl.css +4 -4
  229. package/build-style/common.css +4 -0
  230. package/build-style/cover/style-rtl.css +47 -0
  231. package/build-style/cover/style.css +47 -0
  232. package/build-style/editor-rtl.css +11 -13
  233. package/build-style/editor.css +11 -13
  234. package/build-style/html/editor-rtl.css +11 -13
  235. package/build-style/html/editor.css +11 -13
  236. package/build-style/style-rtl.css +59 -33
  237. package/build-style/style.css +59 -29
  238. package/build-style/verse/style-rtl.css +2 -0
  239. package/build-style/verse/style.css +2 -0
  240. package/package.json +40 -38
  241. package/src/accordion/style.scss +4 -0
  242. package/src/accordion/view.js +60 -3
  243. package/src/accordion-heading/block.json +1 -1
  244. package/src/accordion-heading/deprecated.js +1 -1
  245. package/src/accordion-heading/style.scss +2 -38
  246. package/src/accordion-item/index.php +1 -0
  247. package/src/accordion-item/style.scss +2 -9
  248. package/src/accordion-panel/block.json +1 -1
  249. package/src/accordion-panel/style.scss +1 -5
  250. package/src/audio/index.js +14 -10
  251. package/src/avatar/edit.js +68 -83
  252. package/src/breadcrumbs/block.json +3 -2
  253. package/src/breadcrumbs/edit.js +18 -18
  254. package/src/breadcrumbs/index.php +103 -93
  255. package/src/button/index.js +15 -11
  256. package/src/classic.scss +38 -0
  257. package/src/code/index.js +11 -7
  258. package/src/comments-pagination-numbers/block.json +7 -0
  259. package/src/common.scss +4 -0
  260. package/src/cover/edit/block-controls.js +26 -2
  261. package/src/cover/edit/cover-placeholder.js +0 -1
  262. package/src/cover/edit/embed-video-url-input.js +74 -0
  263. package/src/cover/edit/index.js +81 -0
  264. package/src/cover/embed-video-utils.js +196 -0
  265. package/src/cover/index.js +12 -5
  266. package/src/cover/index.php +106 -0
  267. package/src/cover/save.js +14 -0
  268. package/src/cover/shared.js +1 -0
  269. package/src/cover/style.scss +47 -0
  270. package/src/details/index.js +11 -7
  271. package/src/file/index.js +16 -15
  272. package/src/freeform/block.json +1 -1
  273. package/src/gallery/edit.js +4 -3
  274. package/src/gallery/transforms.js +6 -2
  275. package/src/heading/index.js +11 -7
  276. package/src/html/editor.scss +10 -15
  277. package/src/html/modal.js +54 -30
  278. package/src/image/edit.js +0 -1
  279. package/src/image/image.js +0 -1
  280. package/src/image/index.js +20 -19
  281. package/src/image/index.php +1 -0
  282. package/src/index.js +9 -3
  283. package/src/list-item/index.js +10 -7
  284. package/src/math/block.json +28 -1
  285. package/src/math/edit.js +18 -3
  286. package/src/media-text/index.js +17 -9
  287. package/src/media-text/media-container.js +0 -2
  288. package/src/missing/block.json +1 -1
  289. package/src/missing/edit.js +2 -2
  290. package/src/more/index.js +11 -7
  291. package/src/navigation-link/edit.js +72 -26
  292. package/src/navigation-link/index.js +13 -9
  293. package/src/navigation-submenu/index.js +13 -9
  294. package/src/page-list/index.php +3 -4
  295. package/src/page-list-item/edit.js +4 -3
  296. package/src/paragraph/deprecated-attributes.js +45 -0
  297. package/src/paragraph/edit.js +2 -0
  298. package/src/paragraph/index.js +11 -7
  299. package/src/pattern/block.json +1 -1
  300. package/src/post-title/edit.js +8 -4
  301. package/src/post-title/index.php +1 -1
  302. package/src/preformatted/index.js +11 -7
  303. package/src/pullquote/index.js +13 -12
  304. package/src/search/index.js +15 -16
  305. package/src/social-link/index.js +13 -9
  306. package/src/style.scss +1 -0
  307. package/src/template-part/edit/index.js +44 -6
  308. package/src/template-part/edit/utils/get-template-part-icon.js +23 -4
  309. package/src/template-part/edit/utils/hooks.js +2 -4
  310. package/src/term-count/index.js +1 -0
  311. package/src/term-name/index.js +1 -0
  312. package/src/verse/index.js +11 -7
  313. package/src/verse/style.scss +4 -0
  314. package/src/video/index.js +14 -10
  315. package/tsconfig.tsbuildinfo +1 -1
@@ -91,19 +91,20 @@
91
91
  right: 0;
92
92
  }
93
93
 
94
- .block-library-html__modal .components-modal__content {
95
- display: flex;
96
- flex-direction: column;
97
- padding: 0;
98
- min-height: 70vh;
94
+ .block-library-html__modal {
95
+ height: 100%;
99
96
  }
100
97
  .block-library-html__modal .components-modal__children-container {
101
98
  height: 100%;
102
- padding: 16px;
103
99
  }
104
100
 
105
101
  .block-library-html__modal-tabs {
106
- height: 100%;
102
+ overflow-y: auto;
103
+ }
104
+
105
+ .block-library-html__modal-content {
106
+ flex: 1;
107
+ min-height: 0;
107
108
  }
108
109
 
109
110
  .block-library-html__modal-tab {
@@ -143,10 +144,7 @@
143
144
  display: flex;
144
145
  align-items: center;
145
146
  justify-content: center;
146
- padding: 48px;
147
- }
148
-
149
- .block-library-html__modal-actions {
150
- margin-top: 16px;
151
- padding: 0 32px 32px;
147
+ padding: 16px;
148
+ flex: 1;
149
+ min-height: 0;
152
150
  }
@@ -91,19 +91,20 @@
91
91
  left: 0;
92
92
  }
93
93
 
94
- .block-library-html__modal .components-modal__content {
95
- display: flex;
96
- flex-direction: column;
97
- padding: 0;
98
- min-height: 70vh;
94
+ .block-library-html__modal {
95
+ height: 100%;
99
96
  }
100
97
  .block-library-html__modal .components-modal__children-container {
101
98
  height: 100%;
102
- padding: 16px;
103
99
  }
104
100
 
105
101
  .block-library-html__modal-tabs {
106
- height: 100%;
102
+ overflow-y: auto;
103
+ }
104
+
105
+ .block-library-html__modal-content {
106
+ flex: 1;
107
+ min-height: 0;
107
108
  }
108
109
 
109
110
  .block-library-html__modal-tab {
@@ -144,10 +145,7 @@
144
145
  display: flex;
145
146
  align-items: center;
146
147
  justify-content: center;
147
- padding: 48px;
148
- }
149
-
150
- .block-library-html__modal-actions {
151
- margin-top: 16px;
152
- padding: 0 32px 32px;
148
+ padding: 16px;
149
+ flex: 1;
150
+ min-height: 0;
153
151
  }
@@ -1,11 +1,8 @@
1
1
  @charset "UTF-8";
2
- .wp-block-accordion-item {
3
- display: grid;
4
- grid-template-rows: max-content 0fr;
5
- }
6
- .wp-block-accordion-item.is-open {
7
- grid-template-rows: max-content 1fr;
2
+ .wp-block-accordion {
3
+ box-sizing: border-box;
8
4
  }
5
+
9
6
  .wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
10
7
  transform: rotate(-45deg);
11
8
  }
@@ -21,11 +18,6 @@
21
18
  }
22
19
  }
23
20
 
24
- .wp-block-accordion-heading.wp-block-accordion-heading {
25
- min-width: 100%;
26
- margin: 0;
27
- }
28
-
29
21
  .wp-block-accordion-heading__toggle {
30
22
  font-family: inherit;
31
23
  font-size: inherit;
@@ -36,7 +28,9 @@
36
28
  text-decoration: inherit;
37
29
  word-spacing: inherit;
38
30
  font-style: inherit;
31
+ background: none;
39
32
  border: none;
33
+ color: inherit;
40
34
  padding: var(--wp--preset--spacing--20, 1em) 0;
41
35
  cursor: pointer;
42
36
  overflow: hidden;
@@ -44,24 +38,10 @@
44
38
  align-items: center;
45
39
  text-align: inherit;
46
40
  width: 100%;
47
- background-color: inherit !important;
48
- color: inherit !important;
49
41
  }
50
42
  .wp-block-accordion-heading__toggle:not(:focus-visible) {
51
43
  outline: none;
52
44
  }
53
- .wp-block-accordion-heading__toggle:hover, .wp-block-accordion-heading__toggle:focus {
54
- text-decoration: none;
55
- background-color: inherit !important;
56
- box-shadow: none;
57
- color: inherit;
58
- border: none;
59
- padding: var(--wp--preset--spacing--20, 1em) 0;
60
- }
61
- .wp-block-accordion-heading__toggle:focus-visible {
62
- outline: auto;
63
- outline-offset: 0;
64
- }
65
45
  .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
66
46
  text-decoration: underline;
67
47
  }
@@ -78,10 +58,7 @@
78
58
  justify-content: center;
79
59
  }
80
60
 
81
- .wp-block-accordion-panel.wp-block-accordion-panel {
82
- min-width: 100%;
83
- }
84
- .wp-block-accordion-panel.wp-block-accordion-panel[inert], .wp-block-accordion-panel.wp-block-accordion-panel[aria-hidden=true] {
61
+ .wp-block-accordion-panel[inert], .wp-block-accordion-panel[aria-hidden=true] {
85
62
  display: none;
86
63
  margin-block-start: 0;
87
64
  }
@@ -1018,6 +995,50 @@
1018
995
  border: none;
1019
996
  box-shadow: none;
1020
997
  }
998
+ .wp-block-cover-image .wp-block-cover__embed-background,
999
+ .wp-block-cover .wp-block-cover__embed-background {
1000
+ position: absolute;
1001
+ top: 0;
1002
+ right: 0;
1003
+ left: 0;
1004
+ bottom: 0;
1005
+ margin: 0;
1006
+ padding: 0;
1007
+ width: 100%;
1008
+ height: 100%;
1009
+ max-width: none;
1010
+ max-height: none;
1011
+ outline: none;
1012
+ border: none;
1013
+ box-shadow: none;
1014
+ pointer-events: none;
1015
+ }
1016
+ .wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper,
1017
+ .wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper {
1018
+ position: absolute;
1019
+ top: 0;
1020
+ right: 0;
1021
+ left: 0;
1022
+ bottom: 0;
1023
+ margin: 0;
1024
+ padding: 0;
1025
+ width: 100%;
1026
+ height: 100%;
1027
+ }
1028
+ .wp-block-cover-image .wp-block-cover__embed-background iframe,
1029
+ .wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper iframe,
1030
+ .wp-block-cover .wp-block-cover__embed-background iframe,
1031
+ .wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper iframe {
1032
+ position: absolute;
1033
+ top: 50%;
1034
+ right: 50%;
1035
+ width: 100vw;
1036
+ height: 100vh;
1037
+ min-width: 100%;
1038
+ min-height: 100%;
1039
+ transform: translate(50%, -50%);
1040
+ pointer-events: none;
1041
+ }
1021
1042
 
1022
1043
  .wp-block-cover-image.has-parallax,
1023
1044
  .wp-block-cover.has-parallax,
@@ -1127,6 +1148,9 @@ section.wp-block-cover-image > h2,
1127
1148
  body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__video-background {
1128
1149
  z-index: 0;
1129
1150
  }
1151
+ body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__embed-background {
1152
+ z-index: 0;
1153
+ }
1130
1154
  body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__image-background {
1131
1155
  z-index: 0;
1132
1156
  }
@@ -4490,6 +4514,8 @@ ul.wp-block-rss.is-grid li {
4490
4514
  pre.wp-block-verse {
4491
4515
  overflow: auto;
4492
4516
  white-space: pre-wrap;
4517
+ min-width: 1em;
4518
+ word-break: break-word;
4493
4519
  }
4494
4520
 
4495
4521
  :where(pre.wp-block-verse) {
@@ -4709,7 +4735,7 @@ html :where([style*=border-top-color]) {
4709
4735
  }
4710
4736
 
4711
4737
  html :where([style*=border-right-color]) {
4712
- border-left-style: solid;
4738
+ border-right-style: solid;
4713
4739
  }
4714
4740
 
4715
4741
  html :where([style*=border-bottom-color]) {
@@ -4717,7 +4743,7 @@ html :where([style*=border-bottom-color]) {
4717
4743
  }
4718
4744
 
4719
4745
  html :where([style*=border-left-color]) {
4720
- border-right-style: solid;
4746
+ border-left-style: solid;
4721
4747
  }
4722
4748
 
4723
4749
  html :where([style*=border-width]) {
@@ -4729,7 +4755,7 @@ html :where([style*=border-top-width]) {
4729
4755
  }
4730
4756
 
4731
4757
  html :where([style*=border-right-width]) {
4732
- border-left-style: solid;
4758
+ border-right-style: solid;
4733
4759
  }
4734
4760
 
4735
4761
  html :where([style*=border-bottom-width]) {
@@ -4737,7 +4763,7 @@ html :where([style*=border-bottom-width]) {
4737
4763
  }
4738
4764
 
4739
4765
  html :where([style*=border-left-width]) {
4740
- border-right-style: solid;
4766
+ border-left-style: solid;
4741
4767
  }
4742
4768
 
4743
4769
  /**
@@ -1,11 +1,8 @@
1
1
  @charset "UTF-8";
2
- .wp-block-accordion-item {
3
- display: grid;
4
- grid-template-rows: max-content 0fr;
5
- }
6
- .wp-block-accordion-item.is-open {
7
- grid-template-rows: max-content 1fr;
2
+ .wp-block-accordion {
3
+ box-sizing: border-box;
8
4
  }
5
+
9
6
  .wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
10
7
  transform: rotate(45deg);
11
8
  }
@@ -21,11 +18,6 @@
21
18
  }
22
19
  }
23
20
 
24
- .wp-block-accordion-heading.wp-block-accordion-heading {
25
- min-width: 100%;
26
- margin: 0;
27
- }
28
-
29
21
  .wp-block-accordion-heading__toggle {
30
22
  font-family: inherit;
31
23
  font-size: inherit;
@@ -36,7 +28,9 @@
36
28
  text-decoration: inherit;
37
29
  word-spacing: inherit;
38
30
  font-style: inherit;
31
+ background: none;
39
32
  border: none;
33
+ color: inherit;
40
34
  padding: var(--wp--preset--spacing--20, 1em) 0;
41
35
  cursor: pointer;
42
36
  overflow: hidden;
@@ -44,24 +38,10 @@
44
38
  align-items: center;
45
39
  text-align: inherit;
46
40
  width: 100%;
47
- background-color: inherit !important;
48
- color: inherit !important;
49
41
  }
50
42
  .wp-block-accordion-heading__toggle:not(:focus-visible) {
51
43
  outline: none;
52
44
  }
53
- .wp-block-accordion-heading__toggle:hover, .wp-block-accordion-heading__toggle:focus {
54
- text-decoration: none;
55
- background-color: inherit !important;
56
- box-shadow: none;
57
- color: inherit;
58
- border: none;
59
- padding: var(--wp--preset--spacing--20, 1em) 0;
60
- }
61
- .wp-block-accordion-heading__toggle:focus-visible {
62
- outline: auto;
63
- outline-offset: 0;
64
- }
65
45
  .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
66
46
  text-decoration: underline;
67
47
  }
@@ -78,10 +58,7 @@
78
58
  justify-content: center;
79
59
  }
80
60
 
81
- .wp-block-accordion-panel.wp-block-accordion-panel {
82
- min-width: 100%;
83
- }
84
- .wp-block-accordion-panel.wp-block-accordion-panel[inert], .wp-block-accordion-panel.wp-block-accordion-panel[aria-hidden=true] {
61
+ .wp-block-accordion-panel[inert], .wp-block-accordion-panel[aria-hidden=true] {
85
62
  display: none;
86
63
  margin-block-start: 0;
87
64
  }
@@ -1025,6 +1002,50 @@
1025
1002
  border: none;
1026
1003
  box-shadow: none;
1027
1004
  }
1005
+ .wp-block-cover-image .wp-block-cover__embed-background,
1006
+ .wp-block-cover .wp-block-cover__embed-background {
1007
+ position: absolute;
1008
+ top: 0;
1009
+ left: 0;
1010
+ right: 0;
1011
+ bottom: 0;
1012
+ margin: 0;
1013
+ padding: 0;
1014
+ width: 100%;
1015
+ height: 100%;
1016
+ max-width: none;
1017
+ max-height: none;
1018
+ outline: none;
1019
+ border: none;
1020
+ box-shadow: none;
1021
+ pointer-events: none;
1022
+ }
1023
+ .wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper,
1024
+ .wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper {
1025
+ position: absolute;
1026
+ top: 0;
1027
+ left: 0;
1028
+ right: 0;
1029
+ bottom: 0;
1030
+ margin: 0;
1031
+ padding: 0;
1032
+ width: 100%;
1033
+ height: 100%;
1034
+ }
1035
+ .wp-block-cover-image .wp-block-cover__embed-background iframe,
1036
+ .wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper iframe,
1037
+ .wp-block-cover .wp-block-cover__embed-background iframe,
1038
+ .wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper iframe {
1039
+ position: absolute;
1040
+ top: 50%;
1041
+ left: 50%;
1042
+ width: 100vw;
1043
+ height: 100vh;
1044
+ min-width: 100%;
1045
+ min-height: 100%;
1046
+ transform: translate(-50%, -50%);
1047
+ pointer-events: none;
1048
+ }
1028
1049
 
1029
1050
  .wp-block-cover-image.has-parallax,
1030
1051
  .wp-block-cover.has-parallax,
@@ -1134,6 +1155,9 @@ section.wp-block-cover-image > h2,
1134
1155
  body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__video-background {
1135
1156
  z-index: 0;
1136
1157
  }
1158
+ body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__embed-background {
1159
+ z-index: 0;
1160
+ }
1137
1161
  body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__image-background {
1138
1162
  z-index: 0;
1139
1163
  }
@@ -4523,6 +4547,8 @@ ul.wp-block-rss.is-grid li {
4523
4547
  pre.wp-block-verse {
4524
4548
  overflow: auto;
4525
4549
  white-space: pre-wrap;
4550
+ min-width: 1em;
4551
+ word-break: break-word;
4526
4552
  }
4527
4553
 
4528
4554
  :where(pre.wp-block-verse) {
@@ -4744,6 +4770,7 @@ html :where([style*=border-top-color]) {
4744
4770
  }
4745
4771
 
4746
4772
  html :where([style*=border-right-color]) {
4773
+ /*rtl:ignore*/
4747
4774
  border-right-style: solid;
4748
4775
  }
4749
4776
 
@@ -4752,6 +4779,7 @@ html :where([style*=border-bottom-color]) {
4752
4779
  }
4753
4780
 
4754
4781
  html :where([style*=border-left-color]) {
4782
+ /*rtl:ignore*/
4755
4783
  border-left-style: solid;
4756
4784
  }
4757
4785
 
@@ -4764,6 +4792,7 @@ html :where([style*=border-top-width]) {
4764
4792
  }
4765
4793
 
4766
4794
  html :where([style*=border-right-width]) {
4795
+ /*rtl:ignore*/
4767
4796
  border-right-style: solid;
4768
4797
  }
4769
4798
 
@@ -4772,6 +4801,7 @@ html :where([style*=border-bottom-width]) {
4772
4801
  }
4773
4802
 
4774
4803
  html :where([style*=border-left-width]) {
4804
+ /*rtl:ignore*/
4775
4805
  border-left-style: solid;
4776
4806
  }
4777
4807
 
@@ -1,6 +1,8 @@
1
1
  pre.wp-block-verse {
2
2
  overflow: auto;
3
3
  white-space: pre-wrap;
4
+ min-width: 1em;
5
+ word-break: break-word;
4
6
  }
5
7
 
6
8
  :where(pre.wp-block-verse) {
@@ -1,6 +1,8 @@
1
1
  pre.wp-block-verse {
2
2
  overflow: auto;
3
3
  white-space: pre-wrap;
4
+ min-width: 1em;
5
+ word-break: break-word;
4
6
  }
5
7
 
6
8
  :where(pre.wp-block-verse) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "9.35.1-next.dc3f6d3c1.0",
3
+ "version": "9.36.1-next.6deb34194.0",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -79,44 +79,46 @@
79
79
  "sideEffects": [
80
80
  "build-style/**",
81
81
  "src/**/*.scss",
82
- "{src,build,build-module}/*/init.js"
82
+ "src/*/init.js",
83
+ "build/*/init.js",
84
+ "build-module/*/init.js"
83
85
  ],
84
86
  "dependencies": {
85
- "@wordpress/a11y": "^4.35.1-next.dc3f6d3c1.0",
86
- "@wordpress/api-fetch": "^7.35.1-next.dc3f6d3c1.0",
87
- "@wordpress/autop": "^4.35.1-next.dc3f6d3c1.0",
88
- "@wordpress/base-styles": "^6.11.1-next.dc3f6d3c1.0",
89
- "@wordpress/blob": "^4.35.1-next.dc3f6d3c1.0",
90
- "@wordpress/block-editor": "^15.8.1-next.dc3f6d3c1.0",
91
- "@wordpress/blocks": "^15.8.1-next.dc3f6d3c1.0",
92
- "@wordpress/components": "^30.8.2-next.dc3f6d3c1.0",
93
- "@wordpress/compose": "^7.35.1-next.dc3f6d3c1.0",
94
- "@wordpress/core-data": "^7.35.1-next.dc3f6d3c1.0",
95
- "@wordpress/data": "^10.35.1-next.dc3f6d3c1.0",
96
- "@wordpress/date": "^5.35.1-next.dc3f6d3c1.0",
97
- "@wordpress/deprecated": "^4.35.1-next.dc3f6d3c1.0",
98
- "@wordpress/dom": "^4.35.1-next.dc3f6d3c1.0",
99
- "@wordpress/element": "^6.35.1-next.dc3f6d3c1.0",
100
- "@wordpress/escape-html": "^3.35.1-next.dc3f6d3c1.0",
101
- "@wordpress/hooks": "^4.35.1-next.dc3f6d3c1.0",
102
- "@wordpress/html-entities": "^4.35.1-next.dc3f6d3c1.0",
103
- "@wordpress/i18n": "^6.8.1-next.dc3f6d3c1.0",
104
- "@wordpress/icons": "^11.2.1-next.dc3f6d3c1.0",
105
- "@wordpress/interactivity": "^6.35.1-next.dc3f6d3c1.0",
106
- "@wordpress/interactivity-router": "^2.35.1-next.dc3f6d3c1.0",
107
- "@wordpress/keyboard-shortcuts": "^5.35.1-next.dc3f6d3c1.0",
108
- "@wordpress/keycodes": "^4.35.1-next.dc3f6d3c1.0",
109
- "@wordpress/latex-to-mathml": "^1.3.1-next.dc3f6d3c1.0",
110
- "@wordpress/notices": "^5.35.1-next.dc3f6d3c1.0",
111
- "@wordpress/patterns": "^2.35.1-next.dc3f6d3c1.0",
112
- "@wordpress/primitives": "^4.35.1-next.dc3f6d3c1.0",
113
- "@wordpress/private-apis": "^1.35.1-next.dc3f6d3c1.0",
114
- "@wordpress/reusable-blocks": "^5.35.1-next.dc3f6d3c1.0",
115
- "@wordpress/rich-text": "^7.35.1-next.dc3f6d3c1.0",
116
- "@wordpress/server-side-render": "^6.11.1-next.dc3f6d3c1.0",
117
- "@wordpress/url": "^4.35.1-next.dc3f6d3c1.0",
118
- "@wordpress/viewport": "^6.35.1-next.dc3f6d3c1.0",
119
- "@wordpress/wordcount": "^4.35.1-next.dc3f6d3c1.0",
87
+ "@wordpress/a11y": "^4.36.1-next.6deb34194.0",
88
+ "@wordpress/api-fetch": "^7.36.1-next.6deb34194.0",
89
+ "@wordpress/autop": "^4.36.1-next.6deb34194.0",
90
+ "@wordpress/base-styles": "^6.12.1-next.6deb34194.0",
91
+ "@wordpress/blob": "^4.36.1-next.6deb34194.0",
92
+ "@wordpress/block-editor": "^15.9.1-next.6deb34194.0",
93
+ "@wordpress/blocks": "^15.9.1-next.6deb34194.0",
94
+ "@wordpress/components": "^31.0.1-next.6deb34194.0",
95
+ "@wordpress/compose": "^7.36.1-next.6deb34194.0",
96
+ "@wordpress/core-data": "^7.36.1-next.6deb34194.0",
97
+ "@wordpress/data": "^10.36.1-next.6deb34194.0",
98
+ "@wordpress/date": "^5.36.1-next.6deb34194.0",
99
+ "@wordpress/deprecated": "^4.36.1-next.6deb34194.0",
100
+ "@wordpress/dom": "^4.36.1-next.6deb34194.0",
101
+ "@wordpress/element": "^6.36.1-next.6deb34194.0",
102
+ "@wordpress/escape-html": "^3.36.1-next.6deb34194.0",
103
+ "@wordpress/hooks": "^4.36.1-next.6deb34194.0",
104
+ "@wordpress/html-entities": "^4.36.1-next.6deb34194.0",
105
+ "@wordpress/i18n": "^6.9.1-next.6deb34194.0",
106
+ "@wordpress/icons": "^11.3.1-next.6deb34194.0",
107
+ "@wordpress/interactivity": "^6.36.1-next.6deb34194.0",
108
+ "@wordpress/interactivity-router": "^2.36.1-next.6deb34194.0",
109
+ "@wordpress/keyboard-shortcuts": "^5.36.1-next.6deb34194.0",
110
+ "@wordpress/keycodes": "^4.36.1-next.6deb34194.0",
111
+ "@wordpress/latex-to-mathml": "^1.4.1-next.6deb34194.0",
112
+ "@wordpress/notices": "^5.36.1-next.6deb34194.0",
113
+ "@wordpress/patterns": "^2.36.1-next.6deb34194.0",
114
+ "@wordpress/primitives": "^4.36.1-next.6deb34194.0",
115
+ "@wordpress/private-apis": "^1.36.1-next.6deb34194.0",
116
+ "@wordpress/reusable-blocks": "^5.36.1-next.6deb34194.0",
117
+ "@wordpress/rich-text": "^7.36.1-next.6deb34194.0",
118
+ "@wordpress/server-side-render": "^6.12.1-next.6deb34194.0",
119
+ "@wordpress/url": "^4.36.1-next.6deb34194.0",
120
+ "@wordpress/viewport": "^6.36.1-next.6deb34194.0",
121
+ "@wordpress/wordcount": "^4.36.1-next.6deb34194.0",
120
122
  "change-case": "^4.1.2",
121
123
  "clsx": "^2.1.1",
122
124
  "colord": "^2.7.0",
@@ -134,5 +136,5 @@
134
136
  "publishConfig": {
135
137
  "access": "public"
136
138
  },
137
- "gitHead": "f73b5e69b34fbaccfb8c47783f4f993059ff1a41"
139
+ "gitHead": "457096e9e9b3896d2d4fe54fc19d7fb571ee9a44"
138
140
  }
@@ -0,0 +1,4 @@
1
+ .wp-block-accordion {
2
+ // This block has customizable padding, border-box makes that more predictable.
3
+ box-sizing: border-box;
4
+ }
@@ -3,7 +3,11 @@
3
3
  */
4
4
  import { store, getContext, withSyncEvent } from '@wordpress/interactivity';
5
5
 
6
- store(
6
+ // Whether the hash has been handled for the current page load.
7
+ // This is used to prevent the hash from being handled multiple times.
8
+ let hashHandled = false;
9
+
10
+ const { actions } = store(
7
11
  'core/accordion',
8
12
  {
9
13
  state: {
@@ -75,15 +79,68 @@ store(
75
79
  nextButton.focus();
76
80
  }
77
81
  } ),
82
+ openPanelByHash: () => {
83
+ if ( hashHandled || ! window.location?.hash?.length ) {
84
+ return;
85
+ }
86
+
87
+ const context = getContext();
88
+ const { id, accordionItems, autoclose } = context;
89
+ const hash = decodeURIComponent(
90
+ window.location.hash.slice( 1 )
91
+ );
92
+ const targetElement = window.document.getElementById( hash );
93
+
94
+ if ( ! targetElement ) {
95
+ return;
96
+ }
97
+
98
+ const panelElement = window.document.querySelector(
99
+ '.wp-block-accordion-panel[aria-labelledby="' + id + '"]'
100
+ );
101
+
102
+ if (
103
+ ! panelElement ||
104
+ ! panelElement.contains( targetElement )
105
+ ) {
106
+ return;
107
+ }
108
+
109
+ hashHandled = true;
110
+
111
+ if ( autoclose ) {
112
+ accordionItems.forEach( ( item ) => {
113
+ item.isOpen = item.id === id;
114
+ } );
115
+ } else {
116
+ const targetItem = accordionItems.find(
117
+ ( item ) => item.id === id
118
+ );
119
+
120
+ if ( targetItem ) {
121
+ targetItem.isOpen = true;
122
+ }
123
+ }
124
+
125
+ // Wait for the panel to be opened before scrolling to it.
126
+ window.setTimeout( () => {
127
+ targetElement.scrollIntoView();
128
+ }, 0 );
129
+ },
78
130
  },
79
131
  callbacks: {
80
132
  initAccordionItems: () => {
81
133
  const context = getContext();
82
- const { id, openByDefault } = context;
83
- context.accordionItems.push( {
134
+ const { id, openByDefault, accordionItems } = context;
135
+ accordionItems.push( {
84
136
  id,
85
137
  isOpen: openByDefault,
86
138
  } );
139
+ actions.openPanelByHash();
140
+ },
141
+ hashChange: () => {
142
+ hashHandled = false;
143
+ actions.openPanelByHash();
87
144
  },
88
145
  },
89
146
  },
@@ -57,7 +57,7 @@
57
57
  }
58
58
  },
59
59
  "shadow": true,
60
- "blockVisibility": false,
60
+ "visibility": false,
61
61
  "lock": false
62
62
  },
63
63
  "selectors": {
@@ -74,7 +74,7 @@ const v1 = {
74
74
  },
75
75
  },
76
76
  shadow: true,
77
- blockVisibility: false,
77
+ visibility: false,
78
78
  },
79
79
  save( { attributes } ) {
80
80
  const { level, title, iconPosition, showIcon } = attributes;