@wordpress/block-library 8.5.0 → 8.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (427) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/build/buttons/edit.native.js +1 -1
  3. package/build/buttons/edit.native.js.map +1 -1
  4. package/build/buttons/index.js +1 -0
  5. package/build/buttons/index.js.map +1 -1
  6. package/build/buttons/transforms.js +1 -0
  7. package/build/buttons/transforms.js.map +1 -1
  8. package/build/columns/edit.js +14 -10
  9. package/build/columns/edit.js.map +1 -1
  10. package/build/columns/edit.native.js +1 -1
  11. package/build/columns/edit.native.js.map +1 -1
  12. package/build/columns/index.js +4 -0
  13. package/build/columns/index.js.map +1 -1
  14. package/build/comments/edit/placeholder.js +8 -5
  15. package/build/comments/edit/placeholder.js.map +1 -1
  16. package/build/cover/edit/inspector-controls.js +2 -2
  17. package/build/cover/edit/inspector-controls.js.map +1 -1
  18. package/build/cover/index.js +13 -4
  19. package/build/cover/index.js.map +1 -1
  20. package/build/cover/variations.js +29 -0
  21. package/build/cover/variations.js.map +1 -0
  22. package/build/embed/edit.js +13 -14
  23. package/build/embed/edit.js.map +1 -1
  24. package/build/embed/edit.native.js +18 -14
  25. package/build/embed/edit.native.js.map +1 -1
  26. package/build/embed/util.js +39 -12
  27. package/build/embed/util.js.map +1 -1
  28. package/build/gallery/edit.js +9 -5
  29. package/build/gallery/edit.js.map +1 -1
  30. package/build/gallery/use-image-sizes.js +1 -1
  31. package/build/gallery/use-image-sizes.js.map +1 -1
  32. package/build/group/deprecated.js +4 -2
  33. package/build/group/deprecated.js.map +1 -1
  34. package/build/group/edit.js +22 -5
  35. package/build/group/edit.js.map +1 -1
  36. package/build/group/placeholder.js +11 -1
  37. package/build/group/placeholder.js.map +1 -1
  38. package/build/group/variations.js +23 -3
  39. package/build/group/variations.js.map +1 -1
  40. package/build/image/edit.js +1 -1
  41. package/build/image/edit.js.map +1 -1
  42. package/build/image/edit.native.js +1 -1
  43. package/build/image/edit.native.js.map +1 -1
  44. package/build/image/image.js +8 -6
  45. package/build/image/image.js.map +1 -1
  46. package/build/image/index.js +7 -2
  47. package/build/image/index.js.map +1 -1
  48. package/build/latest-posts/edit.js +11 -10
  49. package/build/latest-posts/edit.js.map +1 -1
  50. package/build/latest-posts/edit.native.js +3 -3
  51. package/build/latest-posts/edit.native.js.map +1 -1
  52. package/build/media-text/constants.js +17 -1
  53. package/build/media-text/constants.js.map +1 -1
  54. package/build/media-text/deprecated.js +228 -18
  55. package/build/media-text/deprecated.js.map +1 -1
  56. package/build/media-text/edit.js +10 -22
  57. package/build/media-text/edit.js.map +1 -1
  58. package/build/media-text/edit.native.js +6 -5
  59. package/build/media-text/edit.native.js.map +1 -1
  60. package/build/media-text/index.js +1 -1
  61. package/build/media-text/transforms.js +32 -44
  62. package/build/media-text/transforms.js.map +1 -1
  63. package/build/navigation/edit/index.js +55 -96
  64. package/build/navigation/edit/index.js.map +1 -1
  65. package/build/navigation/edit/menu-inspector-controls.js +2 -5
  66. package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
  67. package/build/navigation/edit/navigation-menu-selector.js +26 -22
  68. package/build/navigation/edit/navigation-menu-selector.js.map +1 -1
  69. package/build/navigation/edit/unsaved-inner-blocks.js +14 -1
  70. package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  71. package/build/navigation/edit/use-convert-classic-menu-to-block-menu.js +2 -4
  72. package/build/navigation/edit/use-convert-classic-menu-to-block-menu.js.map +1 -1
  73. package/build/navigation/edit/use-create-navigation-menu.js +1 -1
  74. package/build/navigation/edit/use-create-navigation-menu.js.map +1 -1
  75. package/build/navigation/edit/use-navigation-notice.js +1 -1
  76. package/build/navigation/edit/use-navigation-notice.js.map +1 -1
  77. package/build/navigation/index.js +0 -1
  78. package/build/navigation/index.js.map +1 -1
  79. package/build/navigation-link/edit.js +0 -11
  80. package/build/navigation-link/edit.js.map +1 -1
  81. package/build/navigation-link/link-ui.js +0 -1
  82. package/build/navigation-link/link-ui.js.map +1 -1
  83. package/build/navigation-submenu/edit.js +1 -13
  84. package/build/navigation-submenu/edit.js.map +1 -1
  85. package/build/page-list/edit.js +59 -45
  86. package/build/page-list/edit.js.map +1 -1
  87. package/build/page-list-item/edit.js +3 -2
  88. package/build/page-list-item/edit.js.map +1 -1
  89. package/build/post-content/edit.js +6 -1
  90. package/build/post-content/edit.js.map +1 -1
  91. package/build/post-date/edit.js +2 -1
  92. package/build/post-date/edit.js.map +1 -1
  93. package/build/post-date/index.js +4 -1
  94. package/build/post-date/index.js.map +1 -1
  95. package/build/post-date/variations.js +28 -0
  96. package/build/post-date/variations.js.map +1 -0
  97. package/build/post-excerpt/edit.js +39 -10
  98. package/build/post-excerpt/edit.js.map +1 -1
  99. package/build/post-featured-image/dimension-controls.js +2 -8
  100. package/build/post-featured-image/dimension-controls.js.map +1 -1
  101. package/build/post-featured-image/edit.js +1 -1
  102. package/build/post-featured-image/edit.js.map +1 -1
  103. package/build/post-template/index.js +1 -1
  104. package/build/post-time-to-read/index.js +17 -1
  105. package/build/post-time-to-read/index.js.map +1 -1
  106. package/build/pullquote/deprecated.js +3 -3
  107. package/build/pullquote/deprecated.js.map +1 -1
  108. package/build/query/edit/query-placeholder.js +3 -2
  109. package/build/query/edit/query-placeholder.js.map +1 -1
  110. package/build/query/utils.js +26 -9
  111. package/build/query/utils.js.map +1 -1
  112. package/build/quote/index.js +1 -0
  113. package/build/quote/index.js.map +1 -1
  114. package/build/spacer/edit.js +16 -6
  115. package/build/spacer/edit.js.map +1 -1
  116. package/build/table/state.js +12 -4
  117. package/build/table/state.js.map +1 -1
  118. package/build/template-part/edit/import-controls.js +4 -24
  119. package/build/template-part/edit/import-controls.js.map +1 -1
  120. package/build/template-part/edit/utils/transformers.js +69 -19
  121. package/build/template-part/edit/utils/transformers.js.map +1 -1
  122. package/build/text-columns/edit.js +3 -7
  123. package/build/text-columns/edit.js.map +1 -1
  124. package/build/text-columns/save.js +11 -13
  125. package/build/text-columns/save.js.map +1 -1
  126. package/build-module/buttons/edit.native.js +1 -1
  127. package/build-module/buttons/edit.native.js.map +1 -1
  128. package/build-module/buttons/index.js +1 -0
  129. package/build-module/buttons/index.js.map +1 -1
  130. package/build-module/buttons/transforms.js +1 -0
  131. package/build-module/buttons/transforms.js.map +1 -1
  132. package/build-module/columns/edit.js +14 -9
  133. package/build-module/columns/edit.js.map +1 -1
  134. package/build-module/columns/edit.native.js +1 -1
  135. package/build-module/columns/edit.native.js.map +1 -1
  136. package/build-module/columns/index.js +4 -0
  137. package/build-module/columns/index.js.map +1 -1
  138. package/build-module/comments/edit/placeholder.js +9 -5
  139. package/build-module/comments/edit/placeholder.js.map +1 -1
  140. package/build-module/cover/edit/inspector-controls.js +2 -2
  141. package/build-module/cover/edit/inspector-controls.js.map +1 -1
  142. package/build-module/cover/index.js +12 -4
  143. package/build-module/cover/index.js.map +1 -1
  144. package/build-module/cover/variations.js +19 -0
  145. package/build-module/cover/variations.js.map +1 -0
  146. package/build-module/embed/edit.js +14 -15
  147. package/build-module/embed/edit.js.map +1 -1
  148. package/build-module/embed/edit.native.js +19 -15
  149. package/build-module/embed/edit.native.js.map +1 -1
  150. package/build-module/embed/util.js +34 -10
  151. package/build-module/embed/util.js.map +1 -1
  152. package/build-module/gallery/edit.js +9 -5
  153. package/build-module/gallery/edit.js.map +1 -1
  154. package/build-module/gallery/use-image-sizes.js +1 -1
  155. package/build-module/gallery/use-image-sizes.js.map +1 -1
  156. package/build-module/group/deprecated.js +4 -2
  157. package/build-module/group/deprecated.js.map +1 -1
  158. package/build-module/group/edit.js +21 -5
  159. package/build-module/group/edit.js.map +1 -1
  160. package/build-module/group/placeholder.js +11 -1
  161. package/build-module/group/placeholder.js.map +1 -1
  162. package/build-module/group/variations.js +24 -1
  163. package/build-module/group/variations.js.map +1 -1
  164. package/build-module/image/edit.js +1 -1
  165. package/build-module/image/edit.js.map +1 -1
  166. package/build-module/image/edit.native.js +1 -1
  167. package/build-module/image/edit.native.js.map +1 -1
  168. package/build-module/image/image.js +8 -6
  169. package/build-module/image/image.js.map +1 -1
  170. package/build-module/image/index.js +7 -2
  171. package/build-module/image/index.js.map +1 -1
  172. package/build-module/latest-posts/edit.js +11 -9
  173. package/build-module/latest-posts/edit.js.map +1 -1
  174. package/build-module/latest-posts/edit.native.js +3 -3
  175. package/build-module/latest-posts/edit.native.js.map +1 -1
  176. package/build-module/media-text/constants.js +10 -0
  177. package/build-module/media-text/constants.js.map +1 -1
  178. package/build-module/media-text/deprecated.js +227 -18
  179. package/build-module/media-text/deprecated.js.map +1 -1
  180. package/build-module/media-text/edit.js +5 -17
  181. package/build-module/media-text/edit.js.map +1 -1
  182. package/build-module/media-text/edit.native.js +4 -3
  183. package/build-module/media-text/edit.native.js.map +1 -1
  184. package/build-module/media-text/index.js +1 -1
  185. package/build-module/media-text/transforms.js +32 -44
  186. package/build-module/media-text/transforms.js.map +1 -1
  187. package/build-module/navigation/edit/index.js +57 -98
  188. package/build-module/navigation/edit/index.js.map +1 -1
  189. package/build-module/navigation/edit/menu-inspector-controls.js +2 -5
  190. package/build-module/navigation/edit/menu-inspector-controls.js.map +1 -1
  191. package/build-module/navigation/edit/navigation-menu-selector.js +25 -22
  192. package/build-module/navigation/edit/navigation-menu-selector.js.map +1 -1
  193. package/build-module/navigation/edit/unsaved-inner-blocks.js +14 -1
  194. package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  195. package/build-module/navigation/edit/use-convert-classic-menu-to-block-menu.js +2 -4
  196. package/build-module/navigation/edit/use-convert-classic-menu-to-block-menu.js.map +1 -1
  197. package/build-module/navigation/edit/use-create-navigation-menu.js +1 -1
  198. package/build-module/navigation/edit/use-create-navigation-menu.js.map +1 -1
  199. package/build-module/navigation/edit/use-navigation-notice.js +1 -1
  200. package/build-module/navigation/edit/use-navigation-notice.js.map +1 -1
  201. package/build-module/navigation/index.js +0 -1
  202. package/build-module/navigation/index.js.map +1 -1
  203. package/build-module/navigation-link/edit.js +0 -11
  204. package/build-module/navigation-link/edit.js.map +1 -1
  205. package/build-module/navigation-link/link-ui.js +0 -1
  206. package/build-module/navigation-link/link-ui.js.map +1 -1
  207. package/build-module/navigation-submenu/edit.js +1 -13
  208. package/build-module/navigation-submenu/edit.js.map +1 -1
  209. package/build-module/page-list/edit.js +61 -47
  210. package/build-module/page-list/edit.js.map +1 -1
  211. package/build-module/page-list-item/edit.js +3 -2
  212. package/build-module/page-list-item/edit.js.map +1 -1
  213. package/build-module/post-content/edit.js +6 -1
  214. package/build-module/post-content/edit.js.map +1 -1
  215. package/build-module/post-date/edit.js +2 -1
  216. package/build-module/post-date/edit.js.map +1 -1
  217. package/build-module/post-date/index.js +3 -1
  218. package/build-module/post-date/index.js.map +1 -1
  219. package/build-module/post-date/variations.js +18 -0
  220. package/build-module/post-date/variations.js.map +1 -0
  221. package/build-module/post-excerpt/edit.js +38 -11
  222. package/build-module/post-excerpt/edit.js.map +1 -1
  223. package/build-module/post-featured-image/dimension-controls.js +2 -8
  224. package/build-module/post-featured-image/dimension-controls.js.map +1 -1
  225. package/build-module/post-featured-image/edit.js +1 -1
  226. package/build-module/post-featured-image/edit.js.map +1 -1
  227. package/build-module/post-template/index.js +1 -1
  228. package/build-module/post-time-to-read/index.js +17 -1
  229. package/build-module/post-time-to-read/index.js.map +1 -1
  230. package/build-module/pullquote/deprecated.js +3 -2
  231. package/build-module/pullquote/deprecated.js.map +1 -1
  232. package/build-module/query/edit/query-placeholder.js +4 -3
  233. package/build-module/query/edit/query-placeholder.js.map +1 -1
  234. package/build-module/query/utils.js +21 -6
  235. package/build-module/query/utils.js.map +1 -1
  236. package/build-module/quote/index.js +1 -0
  237. package/build-module/quote/index.js.map +1 -1
  238. package/build-module/spacer/edit.js +16 -6
  239. package/build-module/spacer/edit.js.map +1 -1
  240. package/build-module/table/state.js +13 -5
  241. package/build-module/table/state.js.map +1 -1
  242. package/build-module/template-part/edit/import-controls.js +4 -23
  243. package/build-module/template-part/edit/import-controls.js.map +1 -1
  244. package/build-module/template-part/edit/utils/transformers.js +69 -20
  245. package/build-module/template-part/edit/utils/transformers.js.map +1 -1
  246. package/build-module/text-columns/edit.js +3 -6
  247. package/build-module/text-columns/edit.js.map +1 -1
  248. package/build-module/text-columns/save.js +11 -12
  249. package/build-module/text-columns/save.js.map +1 -1
  250. package/build-style/categories/editor-rtl.css +5 -0
  251. package/build-style/categories/editor.css +5 -0
  252. package/build-style/categories/style-rtl.css +4 -0
  253. package/build-style/categories/style.css +4 -0
  254. package/build-style/cover/style-rtl.css +11 -5
  255. package/build-style/cover/style.css +11 -5
  256. package/build-style/editor-rtl.css +11 -1
  257. package/build-style/editor.css +11 -1
  258. package/build-style/navigation/editor-rtl.css +1 -1
  259. package/build-style/navigation/editor.css +1 -1
  260. package/build-style/navigation/style-rtl.css +2 -0
  261. package/build-style/navigation/style.css +2 -0
  262. package/build-style/page-list/editor-rtl.css +4 -0
  263. package/build-style/page-list/editor.css +4 -0
  264. package/build-style/post-featured-image/editor-rtl.css +1 -0
  265. package/build-style/post-featured-image/editor.css +1 -0
  266. package/build-style/post-featured-image/style-rtl.css +1 -0
  267. package/build-style/post-featured-image/style.css +1 -0
  268. package/build-style/post-template/style-rtl.css +1 -1
  269. package/build-style/post-template/style.css +1 -1
  270. package/build-style/post-time-to-read/style-rtl.css +91 -0
  271. package/build-style/post-time-to-read/style.css +91 -0
  272. package/build-style/search/style-rtl.css +8 -7
  273. package/build-style/search/style.css +8 -7
  274. package/build-style/style-rtl.css +31 -13
  275. package/build-style/style.css +31 -13
  276. package/package.json +31 -31
  277. package/src/audio/test/__snapshots__/edit.native.js.snap +44 -4
  278. package/src/audio/test/__snapshots__/transforms.native.js.snap +25 -0
  279. package/src/audio/test/transforms.native.js +42 -0
  280. package/src/block/test/__snapshots__/transforms.native.js.snap +15 -0
  281. package/src/block/test/transforms.native.js +40 -0
  282. package/src/buttons/block.json +1 -0
  283. package/src/buttons/edit.native.js +1 -1
  284. package/src/buttons/test/__snapshots__/transforms.native.js.snap +31 -0
  285. package/src/buttons/test/transforms.native.js +48 -0
  286. package/src/categories/editor.scss +5 -0
  287. package/src/categories/style.scss +4 -0
  288. package/src/columns/block.json +4 -0
  289. package/src/columns/edit.js +30 -18
  290. package/src/columns/edit.native.js +1 -1
  291. package/src/columns/test/__snapshots__/transforms.native.js.snap +61 -0
  292. package/src/columns/test/transforms.native.js +91 -0
  293. package/src/comment-template/index.php +1 -2
  294. package/src/comments/edit/placeholder.js +16 -4
  295. package/src/comments/index.php +1 -0
  296. package/src/cover/block.json +9 -3
  297. package/src/cover/edit/inspector-controls.js +4 -5
  298. package/src/cover/index.js +2 -0
  299. package/src/cover/style.scss +16 -7
  300. package/src/cover/test/__snapshots__/transforms.native.js.snap +73 -0
  301. package/src/cover/test/edit.js +324 -0
  302. package/src/cover/test/transforms.native.js +112 -0
  303. package/src/cover/variations.js +20 -0
  304. package/src/embed/edit.js +16 -12
  305. package/src/embed/edit.native.js +28 -18
  306. package/src/embed/test/__snapshots__/transforms.native.js.snap +23 -0
  307. package/src/embed/test/index.js +12 -0
  308. package/src/embed/test/transforms.native.js +44 -0
  309. package/src/embed/util.js +29 -8
  310. package/src/file/test/__snapshots__/edit.native.js.snap +18 -2
  311. package/src/file/test/__snapshots__/transforms.native.js.snap +19 -0
  312. package/src/file/test/transforms.native.js +42 -0
  313. package/src/freeform/test/__snapshots__/transforms.native.js.snap +19 -0
  314. package/src/freeform/test/transforms.native.js +39 -0
  315. package/src/gallery/edit.js +8 -2
  316. package/src/gallery/test/__snapshots__/transforms.native.js.snap +53 -0
  317. package/src/gallery/test/transforms.native.js +52 -0
  318. package/src/gallery/use-image-sizes.js +1 -1
  319. package/src/group/deprecated.js +4 -2
  320. package/src/group/edit.js +27 -9
  321. package/src/group/placeholder.js +13 -1
  322. package/src/group/test/__snapshots__/transforms.native.js.snap +35 -0
  323. package/src/group/test/transforms.native.js +75 -0
  324. package/src/group/variations.js +14 -1
  325. package/src/heading/test/__snapshots__/transforms.native.js.snap +47 -0
  326. package/src/heading/test/transforms.native.js +46 -0
  327. package/src/home-link/index.php +2 -2
  328. package/src/image/block.json +7 -2
  329. package/src/image/edit.js +1 -1
  330. package/src/image/edit.native.js +1 -1
  331. package/src/image/image.js +15 -7
  332. package/src/image/index.php +7 -2
  333. package/src/image/test/__snapshots__/transforms.native.js.snap +49 -0
  334. package/src/image/test/transforms.native.js +48 -0
  335. package/src/latest-comments/style.scss +1 -1
  336. package/src/latest-posts/edit.js +14 -16
  337. package/src/latest-posts/edit.native.js +3 -3
  338. package/src/latest-posts/test/__snapshots__/transforms.native.js.snap +15 -0
  339. package/src/latest-posts/test/transforms.native.js +61 -0
  340. package/src/list/test/__snapshots__/transforms.native.js.snap +85 -0
  341. package/src/list/test/transforms.native.js +56 -0
  342. package/src/media-text/block.json +1 -1
  343. package/src/media-text/constants.js +16 -0
  344. package/src/media-text/deprecated.js +235 -3
  345. package/src/media-text/edit.js +15 -24
  346. package/src/media-text/edit.native.js +3 -9
  347. package/src/media-text/test/__snapshots__/transforms.native.js.snap +73 -0
  348. package/src/media-text/test/transforms.native.js +112 -0
  349. package/src/media-text/transforms.js +24 -51
  350. package/src/missing/test/__snapshots__/edit.native.js.snap +20 -2
  351. package/src/more/test/__snapshots__/transforms.native.js.snap +19 -0
  352. package/src/more/test/transforms.native.js +42 -0
  353. package/src/navigation/block.json +0 -1
  354. package/src/navigation/edit/index.js +99 -115
  355. package/src/navigation/edit/menu-inspector-controls.js +2 -7
  356. package/src/navigation/edit/navigation-menu-selector.js +41 -25
  357. package/src/navigation/edit/unsaved-inner-blocks.js +46 -33
  358. package/src/navigation/edit/use-convert-classic-menu-to-block-menu.js +82 -83
  359. package/src/navigation/edit/use-create-navigation-menu.js +1 -1
  360. package/src/navigation/edit/use-navigation-notice.js +1 -1
  361. package/src/navigation/editor.scss +23 -20
  362. package/src/navigation/index.php +18 -39
  363. package/src/navigation/style.scss +6 -4
  364. package/src/navigation-link/edit.js +0 -9
  365. package/src/navigation-link/index.php +7 -9
  366. package/src/navigation-link/link-ui.js +0 -1
  367. package/src/navigation-submenu/edit.js +0 -10
  368. package/src/navigation-submenu/index.php +45 -74
  369. package/src/nextpage/test/__snapshots__/transforms.native.js.snap +19 -0
  370. package/src/nextpage/test/transforms.native.js +42 -0
  371. package/src/page-list/edit.js +78 -44
  372. package/src/page-list/editor.scss +6 -0
  373. package/src/page-list-item/edit.js +2 -3
  374. package/src/paragraph/test/__snapshots__/transforms.native.js.snap +59 -0
  375. package/src/paragraph/test/transforms.native.js +50 -0
  376. package/src/post-author/index.php +1 -1
  377. package/src/post-content/edit.js +5 -1
  378. package/src/post-date/edit.js +4 -1
  379. package/src/post-date/index.js +2 -0
  380. package/src/post-date/variations.js +20 -0
  381. package/src/post-excerpt/edit.js +48 -16
  382. package/src/post-excerpt/index.php +1 -2
  383. package/src/post-featured-image/dimension-controls.js +2 -10
  384. package/src/post-featured-image/edit.js +1 -1
  385. package/src/post-featured-image/editor.scss +1 -0
  386. package/src/post-featured-image/style.scss +1 -0
  387. package/src/post-template/block.json +1 -1
  388. package/src/post-template/style.scss +1 -1
  389. package/src/post-time-to-read/block.json +17 -1
  390. package/src/post-time-to-read/style.scss +4 -0
  391. package/src/preformatted/test/__snapshots__/transforms.native.js.snap +31 -0
  392. package/src/preformatted/test/transforms.native.js +42 -0
  393. package/src/pullquote/deprecated.js +2 -6
  394. package/src/pullquote/test/__snapshots__/transforms.native.js.snap +47 -0
  395. package/src/pullquote/test/transforms.native.js +46 -0
  396. package/src/query/edit/query-placeholder.js +10 -5
  397. package/src/query/test/utils.js +33 -1
  398. package/src/query/utils.js +19 -6
  399. package/src/query-title/index.php +2 -5
  400. package/src/quote/block.json +1 -0
  401. package/src/quote/test/__snapshots__/transforms.native.js.snap +39 -0
  402. package/src/quote/test/transforms.native.js +67 -0
  403. package/src/search/style.scss +16 -12
  404. package/src/search/test/__snapshots__/edit.native.js.snap +11 -1
  405. package/src/search/test/__snapshots__/transforms.native.js.snap +15 -0
  406. package/src/search/test/transforms.native.js +40 -0
  407. package/src/separator/test/__snapshots__/transforms.native.js.snap +19 -0
  408. package/src/separator/test/transforms.native.js +42 -0
  409. package/src/shortcode/test/__snapshots__/transforms.native.js.snap +19 -0
  410. package/src/shortcode/test/transforms.native.js +42 -0
  411. package/src/social-links/test/__snapshots__/transforms.native.js.snap +31 -0
  412. package/src/social-links/test/transforms.native.js +53 -0
  413. package/src/spacer/edit.js +18 -5
  414. package/src/spacer/test/__snapshots__/transforms.native.js.snap +19 -0
  415. package/src/spacer/test/transforms.native.js +42 -0
  416. package/src/style.scss +1 -0
  417. package/src/table/state.js +8 -17
  418. package/src/template-part/edit/import-controls.js +2 -29
  419. package/src/template-part/edit/utils/transformers.js +96 -19
  420. package/src/text-columns/edit.js +1 -6
  421. package/src/text-columns/save.js +1 -6
  422. package/src/verse/test/__snapshots__/transforms.native.js.snap +25 -0
  423. package/src/verse/test/transforms.native.js +42 -0
  424. package/src/video/test/__snapshots__/transforms.native.js.snap +41 -0
  425. package/src/video/test/transforms.native.js +48 -0
  426. package/tsconfig.tsbuildinfo +1 -1
  427. package/src/cover/test/block-controls.js +0 -62
@@ -45,10 +45,6 @@ const MainContent = ( {
45
45
  );
46
46
  const { navigationMenu } = useNavigationMenu( currentMenuId );
47
47
 
48
- if ( currentMenuId && isNavigationMenuMissing ) {
49
- return <p>{ __( 'Select or create a menu' ) }</p>;
50
- }
51
-
52
48
  if ( currentMenuId && isNavigationMenuMissing ) {
53
49
  return <DeletedNavigationWarning onCreateNew={ onCreateNew } />;
54
50
  }
@@ -69,6 +65,7 @@ const MainContent = ( {
69
65
  return (
70
66
  <OffCanvasEditor
71
67
  blocks={ clientIdsTree }
68
+ parentClientId={ clientId }
72
69
  isExpanded={ true }
73
70
  LeafMoreMenu={ LeafMoreMenu }
74
71
  description={ description }
@@ -89,9 +86,7 @@ const MenuInspectorControls = ( props ) => {
89
86
 
90
87
  return (
91
88
  <InspectorControls group="list">
92
- <PanelBody
93
- title={ process.env.IS_GUTENBERG_PLUGIN ? null : __( 'Menu' ) }
94
- >
89
+ <PanelBody title={ null }>
95
90
  <HStack className="wp-block-navigation-off-canvas-editor__header">
96
91
  <Heading
97
92
  className="wp-block-navigation-off-canvas-editor__title"
@@ -11,6 +11,7 @@ import { moreVertical } from '@wordpress/icons';
11
11
  import { __, sprintf } from '@wordpress/i18n';
12
12
  import { decodeEntities } from '@wordpress/html-entities';
13
13
  import { useEffect, useMemo, useState } from '@wordpress/element';
14
+ import { useEntityProp } from '@wordpress/core-data';
14
15
 
15
16
  /**
16
17
  * Internal dependencies
@@ -18,6 +19,14 @@ import { useEffect, useMemo, useState } from '@wordpress/element';
18
19
  import useNavigationMenu from '../use-navigation-menu';
19
20
  import useNavigationEntities from '../use-navigation-entities';
20
21
 
22
+ function buildMenuLabel( title, id ) {
23
+ const label =
24
+ decodeEntities( title?.rendered ) ||
25
+ /* translators: %s is the index of the menu in the list of menus. */
26
+ sprintf( __( '(no title %s)' ), id );
27
+ return label;
28
+ }
29
+
21
30
  function NavigationMenuSelector( {
22
31
  currentMenuId,
23
32
  onSelectNavigationMenu,
@@ -30,7 +39,6 @@ function NavigationMenuSelector( {
30
39
  /* translators: %s: The name of a menu. */
31
40
  const createActionLabel = __( "Create from '%s'" );
32
41
 
33
- const [ selectorLabel, setSelectorLabel ] = useState( '' );
34
42
  const [ isCreatingMenu, setIsCreatingMenu ] = useState( false );
35
43
 
36
44
  actionLabel = actionLabel || createActionLabel;
@@ -39,25 +47,23 @@ function NavigationMenuSelector( {
39
47
 
40
48
  const {
41
49
  navigationMenus,
50
+ isResolvingNavigationMenus,
42
51
  hasResolvedNavigationMenus,
43
52
  canUserCreateNavigationMenu,
44
53
  canSwitchNavigationMenu,
45
54
  } = useNavigationMenu();
46
55
 
56
+ const [ currentTitle ] = useEntityProp(
57
+ 'postType',
58
+ 'wp_navigation',
59
+ 'title'
60
+ );
61
+
47
62
  const menuChoices = useMemo( () => {
48
63
  return (
49
64
  navigationMenus?.map( ( { id, title }, index ) => {
50
- const label =
51
- decodeEntities( title?.rendered ) ||
52
- /* translators: %s is the index of the menu in the list of menus. */
53
- sprintf( __( '(no title %s)' ), index + 1 );
54
-
55
- if ( id === currentMenuId && ! isCreatingMenu ) {
56
- setSelectorLabel(
57
- /* translators: %s is the name of a navigation menu. */
58
- sprintf( __( 'You are currently editing %s' ), label )
59
- );
60
- }
65
+ const label = buildMenuLabel( title, index + 1 );
66
+
61
67
  return {
62
68
  value: id,
63
69
  label,
@@ -65,7 +71,7 @@ function NavigationMenuSelector( {
65
71
  };
66
72
  } ) || []
67
73
  );
68
- }, [ currentMenuId, navigationMenus, actionLabel, isCreatingMenu ] );
74
+ }, [ navigationMenus, actionLabel ] );
69
75
 
70
76
  const hasNavigationMenus = !! navigationMenus?.length;
71
77
  const hasClassicMenus = !! classicMenus?.length;
@@ -77,20 +83,35 @@ function NavigationMenuSelector( {
77
83
  const menuUnavailable =
78
84
  hasResolvedNavigationMenus && currentMenuId === null;
79
85
 
80
- useEffect( () => {
81
- if ( ! hasResolvedNavigationMenus && ! canUserCreateNavigationMenu ) {
82
- setSelectorLabel( __( 'Loading …' ) );
83
- } else if ( noMenuSelected || noBlockMenus || menuUnavailable ) {
84
- setSelectorLabel( __( 'Choose or create a Navigation menu' ) );
85
- }
86
+ let selectorLabel = '';
87
+
88
+ if ( isCreatingMenu || isResolvingNavigationMenus ) {
89
+ selectorLabel = __( 'Loading …' );
90
+ } else if ( noMenuSelected || noBlockMenus || menuUnavailable ) {
91
+ // Note: classic Menus may be available.
92
+ selectorLabel = __( 'Choose or create a Navigation menu' );
93
+ } else {
94
+ // Current Menu's title.
95
+ selectorLabel = currentTitle;
96
+ }
86
97
 
98
+ useEffect( () => {
87
99
  if (
88
100
  isCreatingMenu &&
89
101
  ( createNavigationMenuIsSuccess || createNavigationMenuIsError )
90
102
  ) {
91
103
  setIsCreatingMenu( false );
92
104
  }
93
- }, [ hasResolvedNavigationMenus, createNavigationMenuIsSuccess ] );
105
+ }, [
106
+ hasResolvedNavigationMenus,
107
+ createNavigationMenuIsSuccess,
108
+ canUserCreateNavigationMenu,
109
+ createNavigationMenuIsError,
110
+ isCreatingMenu,
111
+ menuUnavailable,
112
+ noBlockMenus,
113
+ noMenuSelected,
114
+ ] );
94
115
 
95
116
  const NavigationMenuSelectorDropdown = (
96
117
  <DropdownMenu
@@ -105,7 +126,6 @@ function NavigationMenuSelector( {
105
126
  <MenuItemsChoice
106
127
  value={ currentMenuId }
107
128
  onSelect={ ( menuId ) => {
108
- setSelectorLabel( __( 'Loading …' ) );
109
129
  setIsCreatingMenu( true );
110
130
  onSelectNavigationMenu( menuId );
111
131
  onClose();
@@ -122,9 +142,6 @@ function NavigationMenuSelector( {
122
142
  return (
123
143
  <MenuItem
124
144
  onClick={ () => {
125
- setSelectorLabel(
126
- __( 'Loading …' )
127
- );
128
145
  setIsCreatingMenu( true );
129
146
  onSelectClassicMenu( menu );
130
147
  onClose();
@@ -151,7 +168,6 @@ function NavigationMenuSelector( {
151
168
  onClose();
152
169
  onCreateNew();
153
170
  setIsCreatingMenu( true );
154
- setSelectorLabel( __( 'Loading …' ) );
155
171
  } }
156
172
  >
157
173
  { __( 'Create new menu' ) }
@@ -120,40 +120,53 @@ export default function UnsavedInnerBlocks( {
120
120
  const { hasResolvedNavigationMenus } = useNavigationMenu();
121
121
 
122
122
  // Automatically save the uncontrolled blocks.
123
- useEffect( () => {
124
- // The block will be disabled when used in a BlockPreview.
125
- // In this case avoid automatic creation of a wp_navigation post.
126
- // Otherwise the user will be spammed with lots of menus!
127
- //
128
- // Also ensure other navigation menus have loaded so an
129
- // accurate name can be created.
130
- //
131
- // Don't try saving when another save is already
132
- // in progress.
133
- //
134
- // And finally only create the menu when the block is selected,
135
- // which is an indication they want to start editing.
136
- if (
137
- isDisabled ||
138
- isSaving ||
139
- ! hasResolvedDraftNavigationMenus ||
140
- ! hasResolvedNavigationMenus ||
141
- ! hasSelection ||
142
- ! innerBlocksAreDirty
143
- ) {
144
- return;
145
- }
123
+ useEffect(
124
+ () => {
125
+ // The block will be disabled when used in a BlockPreview.
126
+ // In this case avoid automatic creation of a wp_navigation post.
127
+ // Otherwise the user will be spammed with lots of menus!
128
+ //
129
+ // Also ensure other navigation menus have loaded so an
130
+ // accurate name can be created.
131
+ //
132
+ // Don't try saving when another save is already
133
+ // in progress.
134
+ //
135
+ // And finally only create the menu when the block is selected,
136
+ // which is an indication they want to start editing.
137
+ if (
138
+ isDisabled ||
139
+ isSaving ||
140
+ ! hasResolvedDraftNavigationMenus ||
141
+ ! hasResolvedNavigationMenus ||
142
+ ! hasSelection ||
143
+ ! innerBlocksAreDirty
144
+ ) {
145
+ return;
146
+ }
146
147
 
147
- createNavigationMenu( null, blocks );
148
- }, [
149
- createNavigationMenu,
150
- isDisabled,
151
- isSaving,
152
- hasResolvedDraftNavigationMenus,
153
- hasResolvedNavigationMenus,
154
- innerBlocksAreDirty,
155
- hasSelection,
156
- ] );
148
+ createNavigationMenu( null, blocks );
149
+ },
150
+ /* The dependency "blocks" is intentionally omitted here.
151
+ * This is because making blocks a dependency would cause
152
+ * createNavigationMenu to run on every block change whereas
153
+ * we only want it to run when the blocks are first detected
154
+ * as dirty.
155
+ * A better solution might be to add a hard saving lock using
156
+ * a ref to avoid having to disbale theses eslint rules.
157
+ */
158
+ /* eslint-disable react-hooks/exhaustive-deps */
159
+ [
160
+ createNavigationMenu,
161
+ isDisabled,
162
+ isSaving,
163
+ hasResolvedDraftNavigationMenus,
164
+ hasResolvedNavigationMenus,
165
+ innerBlocksAreDirty,
166
+ hasSelection,
167
+ ]
168
+ /* eslint-enable react-hooks/exhaustive-deps */
169
+ );
157
170
 
158
171
  const Wrapper = isSaving ? Disabled : 'div';
159
172
 
@@ -36,89 +36,88 @@ function useConvertClassicToBlockMenu( clientId ) {
36
36
  const [ status, setStatus ] = useState( CLASSIC_MENU_CONVERSION_IDLE );
37
37
  const [ error, setError ] = useState( null );
38
38
 
39
- async function convertClassicMenuToBlockMenu(
40
- menuId,
41
- menuName,
42
- postStatus = 'publish'
43
- ) {
44
- let navigationMenu;
45
- let classicMenuItems;
46
-
47
- // 1. Fetch the classic Menu items.
48
- try {
49
- classicMenuItems = await registry
50
- .resolveSelect( coreStore )
51
- .getMenuItems( {
52
- menus: menuId,
53
- per_page: -1,
54
- context: 'view',
55
- } );
56
- } catch ( err ) {
57
- throw new Error(
58
- sprintf(
59
- // translators: %s: the name of a menu (e.g. Header navigation).
60
- __( `Unable to fetch classic menu "%s" from API.` ),
61
- menuName
62
- ),
63
- {
64
- cause: err,
65
- }
66
- );
67
- }
68
-
69
- // Handle offline response which resolves to `null`.
70
- if ( classicMenuItems === null ) {
71
- throw new Error(
72
- sprintf(
73
- // translators: %s: the name of a menu (e.g. Header navigation).
74
- __( `Unable to fetch classic menu "%s" from API.` ),
75
- menuName
76
- )
77
- );
78
- }
79
-
80
- // 2. Convert the classic items into blocks.
81
- const { innerBlocks } = menuItemsToBlocks( classicMenuItems );
82
-
83
- // 3. Create the `wp_navigation` Post with the blocks.
84
- try {
85
- navigationMenu = await createNavigationMenu(
86
- menuName,
87
- innerBlocks,
88
- postStatus
89
- );
90
-
91
- /**
92
- * Immediately trigger editEntityRecord to change the wp_navigation post status to 'publish'.
93
- * This status change causes the menu to be displayed on the front of the site and sets the post state to be "dirty".
94
- * The problem being solved is if saveEditedEntityRecord was used here, the menu would be updated on the frontend and the editor _automatically_,
95
- * without user interaction.
96
- * If the user abandons the site editor without saving, there would still be a wp_navigation post created as draft.
97
- */
98
- await editEntityRecord(
99
- 'postType',
100
- 'wp_navigation',
101
- navigationMenu.id,
102
- {
103
- status: postStatus,
104
- },
105
- { throwOnError: true }
106
- );
107
- } catch ( err ) {
108
- throw new Error(
109
- sprintf(
110
- // translators: %s: the name of a menu (e.g. Header navigation).
111
- __( `Unable to create Navigation Menu "%s".` ),
112
- menuName
113
- ),
114
- {
115
- cause: err,
116
- }
117
- );
118
- }
119
-
120
- return navigationMenu;
121
- }
39
+ const convertClassicMenuToBlockMenu = useCallback(
40
+ async ( menuId, menuName, postStatus = 'publish' ) => {
41
+ let navigationMenu;
42
+ let classicMenuItems;
43
+
44
+ // 1. Fetch the classic Menu items.
45
+ try {
46
+ classicMenuItems = await registry
47
+ .resolveSelect( coreStore )
48
+ .getMenuItems( {
49
+ menus: menuId,
50
+ per_page: -1,
51
+ context: 'view',
52
+ } );
53
+ } catch ( err ) {
54
+ throw new Error(
55
+ sprintf(
56
+ // translators: %s: the name of a menu (e.g. Header navigation).
57
+ __( `Unable to fetch classic menu "%s" from API.` ),
58
+ menuName
59
+ ),
60
+ {
61
+ cause: err,
62
+ }
63
+ );
64
+ }
65
+
66
+ // Handle offline response which resolves to `null`.
67
+ if ( classicMenuItems === null ) {
68
+ throw new Error(
69
+ sprintf(
70
+ // translators: %s: the name of a menu (e.g. Header navigation).
71
+ __( `Unable to fetch classic menu "%s" from API.` ),
72
+ menuName
73
+ )
74
+ );
75
+ }
76
+
77
+ // 2. Convert the classic items into blocks.
78
+ const { innerBlocks } = menuItemsToBlocks( classicMenuItems );
79
+
80
+ // 3. Create the `wp_navigation` Post with the blocks.
81
+ try {
82
+ navigationMenu = await createNavigationMenu(
83
+ menuName,
84
+ innerBlocks,
85
+ postStatus
86
+ );
87
+
88
+ /**
89
+ * Immediately trigger editEntityRecord to change the wp_navigation post status to 'publish'.
90
+ * This status change causes the menu to be displayed on the front of the site and sets the post state to be "dirty".
91
+ * The problem being solved is if saveEditedEntityRecord was used here, the menu would be updated on the frontend and the editor _automatically_,
92
+ * without user interaction.
93
+ * If the user abandons the site editor without saving, there would still be a wp_navigation post created as draft.
94
+ */
95
+ await editEntityRecord(
96
+ 'postType',
97
+ 'wp_navigation',
98
+ navigationMenu.id,
99
+ {
100
+ status: postStatus,
101
+ },
102
+ { throwOnError: true }
103
+ );
104
+ } catch ( err ) {
105
+ throw new Error(
106
+ sprintf(
107
+ // translators: %s: the name of a menu (e.g. Header navigation).
108
+ __( `Unable to create Navigation Menu "%s".` ),
109
+ menuName
110
+ ),
111
+ {
112
+ cause: err,
113
+ }
114
+ );
115
+ }
116
+
117
+ return navigationMenu;
118
+ },
119
+ [ createNavigationMenu, editEntityRecord, registry ]
120
+ );
122
121
 
123
122
  const convert = useCallback(
124
123
  async ( menuId, menuName, postStatus ) => {
@@ -90,7 +90,7 @@ export default function useCreateNavigationMenu( clientId ) {
90
90
  } );
91
91
  } );
92
92
  },
93
- [ serialize, saveEntityRecord, editEntityRecord, generateDefaultTitle ]
93
+ [ saveEntityRecord, editEntityRecord, generateDefaultTitle ]
94
94
  );
95
95
 
96
96
  return {
@@ -23,7 +23,7 @@ function useNavigationNotice( { name, message = '' } = {} ) {
23
23
  type: 'snackbar',
24
24
  } );
25
25
  },
26
- [ noticeRef, createWarningNotice ]
26
+ [ noticeRef, createWarningNotice, message, name ]
27
27
  );
28
28
 
29
29
  const hideNotice = useCallback( () => {
@@ -39,8 +39,7 @@
39
39
  }
40
40
 
41
41
  // Only show the flyout on hover if the parent menu item is selected.
42
- .wp-block-navigation:not(.is-selected):not(.has-child-selected)
43
- .has-child:hover {
42
+ .wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover {
44
43
  > .wp-block-navigation__submenu-container {
45
44
  opacity: 0;
46
45
  visibility: hidden;
@@ -49,6 +48,7 @@
49
48
 
50
49
  // Styles for submenu flyout.
51
50
  .has-child {
51
+
52
52
  &.is-selected,
53
53
  &.has-child-selected {
54
54
  > .wp-block-navigation__submenu-container {
@@ -76,8 +76,7 @@
76
76
  flex-direction: column;
77
77
  }
78
78
 
79
- .is-dragging-components-draggable
80
- .wp-block-navigation-link > .wp-block-navigation__container {
79
+ .is-dragging-components-draggable .wp-block-navigation-link > .wp-block-navigation__container {
81
80
  // Set opacity to 1 to still be able to show the draggable chip.
82
81
  opacity: 1;
83
82
  visibility: hidden;
@@ -117,6 +116,7 @@
117
116
  */
118
117
 
119
118
  $colors-selector-size: 22px;
119
+
120
120
  .block-library-colors-selector {
121
121
  width: auto;
122
122
 
@@ -151,7 +151,7 @@ $colors-selector-size: 22px;
151
151
  min-width: $colors-selector-size;
152
152
  height: $colors-selector-size;
153
153
  min-height: $colors-selector-size;
154
- line-height: ( $colors-selector-size - 2 );
154
+ line-height: ($colors-selector-size - 2);
155
155
  padding: 2px;
156
156
 
157
157
  > svg {
@@ -161,6 +161,7 @@ $colors-selector-size: 22px;
161
161
 
162
162
  // Styling icon color.
163
163
  &.has-text-color {
164
+
164
165
  > svg,
165
166
  > svg path {
166
167
  color: inherit;
@@ -171,6 +172,7 @@ $colors-selector-size: 22px;
171
172
 
172
173
  // Colors Selector Popover.
173
174
  $color-control-label-height: 20px;
175
+
174
176
  .block-library-colors-selector__popover {
175
177
  .color-palette-controller-container {
176
178
  padding: 16px;
@@ -222,13 +224,16 @@ $color-control-label-height: 20px;
222
224
  0% {
223
225
  opacity: 1;
224
226
  }
227
+
225
228
  50% {
226
229
  opacity: 0.5;
227
230
  }
231
+
228
232
  100% {
229
233
  opacity: 1;
230
234
  }
231
235
  }
236
+
232
237
  // Unstyle some inherited placeholder component styles.
233
238
  .components-placeholder.wp-block-navigation-placeholder {
234
239
  outline: none;
@@ -271,6 +276,7 @@ $color-control-label-height: 20px;
271
276
  // against any background color.
272
277
  color: currentColor;
273
278
  background: transparent;
279
+
274
280
  &::before {
275
281
  content: "";
276
282
  display: block;
@@ -338,6 +344,7 @@ $color-control-label-height: 20px;
338
344
  // Hide the navigation indicator when in small contexts.
339
345
  .is-small &,
340
346
  .is-medium & {
347
+
341
348
  .wp-block-navigation-placeholder__actions__indicator,
342
349
  .wp-block-navigation-placeholder__actions__indicator + hr {
343
350
  display: none;
@@ -427,15 +434,14 @@ $color-control-label-height: 20px;
427
434
  }
428
435
  }
429
436
  }
437
+
430
438
  // Emulate the fullscreen editing inside the editor.
431
439
  // Most of this can be removed when the iframe lands.
432
440
 
433
441
  // When not fullscreen.
434
442
  .wp-block-navigation__responsive-container.is-menu-open {
435
443
  position: fixed;
436
- top:
437
- $admin-bar-height-big + $header-height + $block-toolbar-height +
438
- $border-width;
444
+ top: $admin-bar-height-big + $header-height + $block-toolbar-height + $border-width;
439
445
 
440
446
  @include break-medium() {
441
447
  top: $admin-bar-height + $header-height + $border-width;
@@ -445,6 +451,7 @@ $color-control-label-height: 20px;
445
451
  @include break-medium() {
446
452
  left: $admin-sidebar-width-collapsed;
447
453
  }
454
+
448
455
  @include break-large() {
449
456
  left: $admin-sidebar-width;
450
457
  }
@@ -452,17 +459,13 @@ $color-control-label-height: 20px;
452
459
 
453
460
  .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open {
454
461
  @include break-medium() {
455
- top:
456
- $admin-bar-height + $header-height + $block-toolbar-height +
457
- $border-width;
462
+ top: $admin-bar-height + $header-height + $block-toolbar-height + $border-width;
458
463
  }
459
464
  }
460
465
 
461
466
  .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
462
467
  .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
463
- top:
464
- $admin-bar-height + $header-height + $block-toolbar-height +
465
- $border-width;
468
+ top: $admin-bar-height + $header-height + $block-toolbar-height + $border-width;
466
469
  }
467
470
 
468
471
  .is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open {
@@ -473,9 +476,7 @@ $color-control-label-height: 20px;
473
476
  .is-fullscreen-mode {
474
477
  .wp-block-navigation__responsive-container.is-menu-open {
475
478
  left: 0; // Unset the value from non fullscreen mode.
476
- top:
477
- $admin-bar-height-big + $header-height + $block-toolbar-height +
478
- $border-width;
479
+ top: $admin-bar-height-big + $header-height + $block-toolbar-height + $border-width;
479
480
 
480
481
  @include break-medium() {
481
482
  top: $header-height + $border-width;
@@ -495,8 +496,7 @@ $color-control-label-height: 20px;
495
496
  }
496
497
 
497
498
  // The iframe makes these rules a lot simpler.
498
- body.editor-styles-wrapper
499
- .wp-block-navigation__responsive-container.is-menu-open {
499
+ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open {
500
500
  top: 0;
501
501
  right: 0;
502
502
  bottom: 0;
@@ -536,6 +536,7 @@ body.editor-styles-wrapper
536
536
  .components-heading.wp-block-navigation-off-canvas-editor__title {
537
537
  margin: 0;
538
538
  }
539
+
539
540
  .wp-block-navigation-off-canvas-editor__header {
540
541
  margin-bottom: $grid-unit-10;
541
542
  }
@@ -552,6 +553,7 @@ body.editor-styles-wrapper
552
553
  0% {
553
554
  opacity: 0;
554
555
  }
556
+
555
557
  100% {
556
558
  opacity: 1;
557
559
  }
@@ -559,7 +561,7 @@ body.editor-styles-wrapper
559
561
 
560
562
  // Space spinner to give it breathing
561
563
  // room when block is selected and has focus outline.
562
- .wp-block-navigation .components-spinner {
564
+ .wp-block-navigation__loading-indicator-container {
563
565
  padding: $grid-unit-10 $grid-unit-15;
564
566
  }
565
567
 
@@ -571,6 +573,7 @@ body.editor-styles-wrapper
571
573
  0% {
572
574
  opacity: 1;
573
575
  }
576
+
574
577
  100% {
575
578
  opacity: 0.5;
576
579
  }