@wordpress/edit-site 5.3.2 → 5.4.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 (339) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/build/components/add-new-template/new-template-part.js +8 -5
  3. package/build/components/add-new-template/new-template-part.js.map +1 -1
  4. package/build/components/add-new-template/new-template.js +9 -25
  5. package/build/components/add-new-template/new-template.js.map +1 -1
  6. package/build/components/app/index.js.map +1 -1
  7. package/build/components/block-editor/editor-canvas.js +4 -3
  8. package/build/components/block-editor/editor-canvas.js.map +1 -1
  9. package/build/components/block-editor/index.js +3 -3
  10. package/build/components/block-editor/index.js.map +1 -1
  11. package/build/components/editor/index.js +28 -24
  12. package/build/components/editor/index.js.map +1 -1
  13. package/build/components/global-styles/border-panel.js +6 -6
  14. package/build/components/global-styles/border-panel.js.map +1 -1
  15. package/build/components/global-styles/color-palette-panel.js +7 -4
  16. package/build/components/global-styles/color-palette-panel.js.map +1 -1
  17. package/build/components/global-styles/color-utils.js +1 -1
  18. package/build/components/global-styles/color-utils.js.map +1 -1
  19. package/build/components/global-styles/context-menu.js +16 -3
  20. package/build/components/global-styles/context-menu.js.map +1 -1
  21. package/build/components/global-styles/custom-css.js +3 -3
  22. package/build/components/global-styles/custom-css.js.map +1 -1
  23. package/build/components/global-styles/dimensions-panel.js +10 -9
  24. package/build/components/global-styles/dimensions-panel.js.map +1 -1
  25. package/build/components/global-styles/global-styles-provider.js +2 -2
  26. package/build/components/global-styles/global-styles-provider.js.map +1 -1
  27. package/build/components/global-styles/gradients-palette-panel.js +10 -5
  28. package/build/components/global-styles/gradients-palette-panel.js.map +1 -1
  29. package/build/components/global-styles/header.js +4 -2
  30. package/build/components/global-styles/header.js.map +1 -1
  31. package/build/components/global-styles/hooks.js +16 -53
  32. package/build/components/global-styles/hooks.js.map +1 -1
  33. package/build/components/global-styles/navigation-button.js +1 -1
  34. package/build/components/global-styles/navigation-button.js.map +1 -1
  35. package/build/components/global-styles/palette.js +5 -3
  36. package/build/components/global-styles/palette.js.map +1 -1
  37. package/build/components/global-styles/preview.js +2 -2
  38. package/build/components/global-styles/preview.js.map +1 -1
  39. package/build/components/global-styles/screen-background-color.js +5 -4
  40. package/build/components/global-styles/screen-background-color.js.map +1 -1
  41. package/build/components/global-styles/screen-block-list.js +14 -3
  42. package/build/components/global-styles/screen-block-list.js.map +1 -1
  43. package/build/components/global-styles/screen-button-color.js +9 -7
  44. package/build/components/global-styles/screen-button-color.js.map +1 -1
  45. package/build/components/global-styles/screen-colors.js +10 -8
  46. package/build/components/global-styles/screen-colors.js.map +1 -1
  47. package/build/components/global-styles/screen-css.js +5 -5
  48. package/build/components/global-styles/screen-css.js.map +1 -1
  49. package/build/components/global-styles/screen-heading-color.js +10 -8
  50. package/build/components/global-styles/screen-heading-color.js.map +1 -1
  51. package/build/components/global-styles/screen-link-color.js +5 -4
  52. package/build/components/global-styles/screen-link-color.js.map +1 -1
  53. package/build/components/global-styles/screen-root.js +2 -2
  54. package/build/components/global-styles/screen-root.js.map +1 -1
  55. package/build/components/global-styles/screen-style-variations.js +2 -2
  56. package/build/components/global-styles/screen-style-variations.js.map +1 -1
  57. package/build/components/global-styles/screen-text-color.js +5 -4
  58. package/build/components/global-styles/screen-text-color.js.map +1 -1
  59. package/build/components/global-styles/screen-typography.js +5 -3
  60. package/build/components/global-styles/screen-typography.js.map +1 -1
  61. package/build/components/global-styles/shadow-panel.js +4 -5
  62. package/build/components/global-styles/shadow-panel.js.map +1 -1
  63. package/build/components/global-styles/subtitle.js +3 -2
  64. package/build/components/global-styles/subtitle.js.map +1 -1
  65. package/build/components/global-styles/typography-panel.js +24 -301
  66. package/build/components/global-styles/typography-panel.js.map +1 -1
  67. package/build/components/global-styles/typography-preview.js +2 -2
  68. package/build/components/global-styles/typography-preview.js.map +1 -1
  69. package/build/components/global-styles/ui.js +3 -10
  70. package/build/components/global-styles/ui.js.map +1 -1
  71. package/build/components/global-styles-renderer/index.js +2 -2
  72. package/build/components/global-styles-renderer/index.js.map +1 -1
  73. package/build/components/header-edit-mode/index.js +6 -3
  74. package/build/components/header-edit-mode/index.js.map +1 -1
  75. package/build/components/keyboard-shortcut-help-modal/config.js +1 -1
  76. package/build/components/keyboard-shortcut-help-modal/config.js.map +1 -1
  77. package/build/components/layout/index.js +10 -23
  78. package/build/components/layout/index.js.map +1 -1
  79. package/build/components/list/actions/rename-menu-item.js +1 -1
  80. package/build/components/list/actions/rename-menu-item.js.map +1 -1
  81. package/build/components/list/table.js +1 -0
  82. package/build/components/list/table.js.map +1 -1
  83. package/build/components/navigation-inspector/index.js +0 -29
  84. package/build/components/navigation-inspector/index.js.map +1 -1
  85. package/build/components/navigation-inspector/navigation-menu.js +6 -4
  86. package/build/components/navigation-inspector/navigation-menu.js.map +1 -1
  87. package/build/components/save-panel/index.js +4 -3
  88. package/build/components/save-panel/index.js.map +1 -1
  89. package/build/components/sidebar/index.js +18 -23
  90. package/build/components/sidebar/index.js.map +1 -1
  91. package/build/components/sidebar-edit-mode/index.js +1 -1
  92. package/build/components/sidebar-edit-mode/index.js.map +1 -1
  93. package/build/components/sidebar-edit-mode/template-card/index.js +9 -2
  94. package/build/components/sidebar-edit-mode/template-card/index.js.map +1 -1
  95. package/build/components/sidebar-edit-mode/template-card/last-revision.js +84 -0
  96. package/build/components/sidebar-edit-mode/template-card/last-revision.js.map +1 -0
  97. package/build/components/sidebar-navigation-screen/index.js +28 -7
  98. package/build/components/sidebar-navigation-screen/index.js.map +1 -1
  99. package/build/components/sidebar-navigation-screen-navigation-item/index.js +72 -0
  100. package/build/components/sidebar-navigation-screen-navigation-item/index.js.map +1 -0
  101. package/build/components/sidebar-navigation-screen-navigation-menus/index.js +2 -2
  102. package/build/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  103. package/build/components/sidebar-navigation-screen-template/index.js +70 -0
  104. package/build/components/sidebar-navigation-screen-template/index.js.map +1 -0
  105. package/build/components/sidebar-navigation-screen-templates/index.js +32 -82
  106. package/build/components/sidebar-navigation-screen-templates/index.js.map +1 -1
  107. package/build/components/sidebar-navigation-screen-templates-browse/index.js +43 -0
  108. package/build/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -0
  109. package/build/components/site-hub/index.js +14 -49
  110. package/build/components/site-hub/index.js.map +1 -1
  111. package/build/components/start-template-options/index.js +175 -0
  112. package/build/components/start-template-options/index.js.map +1 -0
  113. package/build/components/style-book/index.js +10 -3
  114. package/build/components/style-book/index.js.map +1 -1
  115. package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js +55 -20
  116. package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
  117. package/build/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +3 -3
  118. package/build/components/sync-state-with-url/use-sync-canvas-mode-with-url.js.map +1 -1
  119. package/build/components/sync-state-with-url/{use-sync-sidebar-path-with-url.js → use-sync-path-with-url.js} +12 -12
  120. package/build/components/sync-state-with-url/use-sync-path-with-url.js.map +1 -0
  121. package/build/components/use-edited-entity-record/index.js +6 -2
  122. package/build/components/use-edited-entity-record/index.js.map +1 -1
  123. package/build/hooks/push-changes-to-global-styles/index.js +7 -6
  124. package/build/hooks/push-changes-to-global-styles/index.js.map +1 -1
  125. package/build/{experiments.js → private-apis.js} +3 -3
  126. package/build/private-apis.js.map +1 -0
  127. package/build/store/index.js +3 -3
  128. package/build/store/index.js.map +1 -1
  129. package/build/utils/get-is-list-page.js +5 -6
  130. package/build/utils/get-is-list-page.js.map +1 -1
  131. package/build-module/components/add-new-template/new-template-part.js +7 -4
  132. package/build-module/components/add-new-template/new-template-part.js.map +1 -1
  133. package/build-module/components/add-new-template/new-template.js +8 -22
  134. package/build-module/components/add-new-template/new-template.js.map +1 -1
  135. package/build-module/components/app/index.js.map +1 -1
  136. package/build-module/components/block-editor/editor-canvas.js +2 -1
  137. package/build-module/components/block-editor/editor-canvas.js.map +1 -1
  138. package/build-module/components/block-editor/index.js +3 -3
  139. package/build-module/components/block-editor/index.js.map +1 -1
  140. package/build-module/components/editor/index.js +27 -25
  141. package/build-module/components/editor/index.js.map +1 -1
  142. package/build-module/components/global-styles/border-panel.js +8 -8
  143. package/build-module/components/global-styles/border-panel.js.map +1 -1
  144. package/build-module/components/global-styles/color-palette-panel.js +8 -5
  145. package/build-module/components/global-styles/color-palette-panel.js.map +1 -1
  146. package/build-module/components/global-styles/color-utils.js +2 -2
  147. package/build-module/components/global-styles/color-utils.js.map +1 -1
  148. package/build-module/components/global-styles/context-menu.js +13 -2
  149. package/build-module/components/global-styles/context-menu.js.map +1 -1
  150. package/build-module/components/global-styles/custom-css.js +4 -4
  151. package/build-module/components/global-styles/custom-css.js.map +1 -1
  152. package/build-module/components/global-styles/dimensions-panel.js +12 -11
  153. package/build-module/components/global-styles/dimensions-panel.js.map +1 -1
  154. package/build-module/components/global-styles/global-styles-provider.js +3 -3
  155. package/build-module/components/global-styles/global-styles-provider.js.map +1 -1
  156. package/build-module/components/global-styles/gradients-palette-panel.js +11 -6
  157. package/build-module/components/global-styles/gradients-palette-panel.js.map +1 -1
  158. package/build-module/components/global-styles/header.js +5 -3
  159. package/build-module/components/global-styles/header.js.map +1 -1
  160. package/build-module/components/global-styles/hooks.js +15 -52
  161. package/build-module/components/global-styles/hooks.js.map +1 -1
  162. package/build-module/components/global-styles/navigation-button.js +2 -2
  163. package/build-module/components/global-styles/navigation-button.js.map +1 -1
  164. package/build-module/components/global-styles/palette.js +6 -4
  165. package/build-module/components/global-styles/palette.js.map +1 -1
  166. package/build-module/components/global-styles/preview.js +3 -3
  167. package/build-module/components/global-styles/preview.js.map +1 -1
  168. package/build-module/components/global-styles/screen-background-color.js +7 -6
  169. package/build-module/components/global-styles/screen-background-color.js.map +1 -1
  170. package/build-module/components/global-styles/screen-block-list.js +12 -3
  171. package/build-module/components/global-styles/screen-block-list.js.map +1 -1
  172. package/build-module/components/global-styles/screen-button-color.js +11 -9
  173. package/build-module/components/global-styles/screen-button-color.js.map +1 -1
  174. package/build-module/components/global-styles/screen-colors.js +12 -10
  175. package/build-module/components/global-styles/screen-colors.js.map +1 -1
  176. package/build-module/components/global-styles/screen-css.js +5 -5
  177. package/build-module/components/global-styles/screen-css.js.map +1 -1
  178. package/build-module/components/global-styles/screen-heading-color.js +12 -10
  179. package/build-module/components/global-styles/screen-heading-color.js.map +1 -1
  180. package/build-module/components/global-styles/screen-link-color.js +7 -6
  181. package/build-module/components/global-styles/screen-link-color.js.map +1 -1
  182. package/build-module/components/global-styles/screen-root.js +3 -3
  183. package/build-module/components/global-styles/screen-root.js.map +1 -1
  184. package/build-module/components/global-styles/screen-style-variations.js +3 -3
  185. package/build-module/components/global-styles/screen-style-variations.js.map +1 -1
  186. package/build-module/components/global-styles/screen-text-color.js +7 -6
  187. package/build-module/components/global-styles/screen-text-color.js.map +1 -1
  188. package/build-module/components/global-styles/screen-typography.js +6 -4
  189. package/build-module/components/global-styles/screen-typography.js.map +1 -1
  190. package/build-module/components/global-styles/shadow-panel.js +6 -7
  191. package/build-module/components/global-styles/shadow-panel.js.map +1 -1
  192. package/build-module/components/global-styles/subtitle.js +3 -2
  193. package/build-module/components/global-styles/subtitle.js.map +1 -1
  194. package/build-module/components/global-styles/typography-panel.js +29 -302
  195. package/build-module/components/global-styles/typography-panel.js.map +1 -1
  196. package/build-module/components/global-styles/typography-preview.js +3 -3
  197. package/build-module/components/global-styles/typography-preview.js.map +1 -1
  198. package/build-module/components/global-styles/ui.js +4 -11
  199. package/build-module/components/global-styles/ui.js.map +1 -1
  200. package/build-module/components/global-styles-renderer/index.js +3 -3
  201. package/build-module/components/global-styles-renderer/index.js.map +1 -1
  202. package/build-module/components/header-edit-mode/index.js +6 -3
  203. package/build-module/components/header-edit-mode/index.js.map +1 -1
  204. package/build-module/components/keyboard-shortcut-help-modal/config.js +1 -1
  205. package/build-module/components/keyboard-shortcut-help-modal/config.js.map +1 -1
  206. package/build-module/components/layout/index.js +10 -23
  207. package/build-module/components/layout/index.js.map +1 -1
  208. package/build-module/components/list/actions/rename-menu-item.js +1 -1
  209. package/build-module/components/list/actions/rename-menu-item.js.map +1 -1
  210. package/build-module/components/list/table.js +1 -0
  211. package/build-module/components/list/table.js.map +1 -1
  212. package/build-module/components/navigation-inspector/index.js +0 -27
  213. package/build-module/components/navigation-inspector/index.js.map +1 -1
  214. package/build-module/components/navigation-inspector/navigation-menu.js +7 -5
  215. package/build-module/components/navigation-inspector/navigation-menu.js.map +1 -1
  216. package/build-module/components/save-panel/index.js +3 -2
  217. package/build-module/components/save-panel/index.js.map +1 -1
  218. package/build-module/components/sidebar/index.js +15 -21
  219. package/build-module/components/sidebar/index.js.map +1 -1
  220. package/build-module/components/sidebar-edit-mode/index.js +1 -1
  221. package/build-module/components/sidebar-edit-mode/index.js.map +1 -1
  222. package/build-module/components/sidebar-edit-mode/template-card/index.js +9 -4
  223. package/build-module/components/sidebar-edit-mode/template-card/index.js.map +1 -1
  224. package/build-module/components/sidebar-edit-mode/template-card/last-revision.js +70 -0
  225. package/build-module/components/sidebar-edit-mode/template-card/last-revision.js.map +1 -0
  226. package/build-module/components/sidebar-navigation-screen/index.js +27 -9
  227. package/build-module/components/sidebar-navigation-screen/index.js.map +1 -1
  228. package/build-module/components/sidebar-navigation-screen-navigation-item/index.js +55 -0
  229. package/build-module/components/sidebar-navigation-screen-navigation-item/index.js.map +1 -0
  230. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js +2 -2
  231. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  232. package/build-module/components/sidebar-navigation-screen-template/index.js +53 -0
  233. package/build-module/components/sidebar-navigation-screen-template/index.js.map +1 -0
  234. package/build-module/components/sidebar-navigation-screen-templates/index.js +34 -81
  235. package/build-module/components/sidebar-navigation-screen-templates/index.js.map +1 -1
  236. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js +31 -0
  237. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -0
  238. package/build-module/components/site-hub/index.js +14 -46
  239. package/build-module/components/site-hub/index.js.map +1 -1
  240. package/build-module/components/start-template-options/index.js +156 -0
  241. package/build-module/components/start-template-options/index.js.map +1 -0
  242. package/build-module/components/style-book/index.js +11 -4
  243. package/build-module/components/style-book/index.js.map +1 -1
  244. package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js +55 -21
  245. package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
  246. package/build-module/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +1 -1
  247. package/build-module/components/sync-state-with-url/use-sync-canvas-mode-with-url.js.map +1 -1
  248. package/build-module/components/sync-state-with-url/{use-sync-sidebar-path-with-url.js → use-sync-path-with-url.js} +11 -11
  249. package/build-module/components/sync-state-with-url/use-sync-path-with-url.js.map +1 -0
  250. package/build-module/components/use-edited-entity-record/index.js +6 -2
  251. package/build-module/components/use-edited-entity-record/index.js.map +1 -1
  252. package/build-module/hooks/push-changes-to-global-styles/index.js +9 -8
  253. package/build-module/hooks/push-changes-to-global-styles/index.js.map +1 -1
  254. package/build-module/{experiments.js → private-apis.js} +2 -2
  255. package/build-module/private-apis.js.map +1 -0
  256. package/build-module/store/index.js +1 -1
  257. package/build-module/store/index.js.map +1 -1
  258. package/build-module/utils/get-is-list-page.js +5 -6
  259. package/build-module/utils/get-is-list-page.js.map +1 -1
  260. package/build-style/style-rtl.css +91 -41
  261. package/build-style/style.css +91 -41
  262. package/package.json +31 -31
  263. package/src/components/add-new-template/new-template-part.js +7 -4
  264. package/src/components/add-new-template/new-template.js +9 -22
  265. package/src/components/app/index.js +0 -1
  266. package/src/components/block-editor/editor-canvas.js +2 -1
  267. package/src/components/block-editor/index.js +3 -3
  268. package/src/components/editor/index.js +31 -28
  269. package/src/components/global-styles/border-panel.js +8 -8
  270. package/src/components/global-styles/color-palette-panel.js +6 -3
  271. package/src/components/global-styles/color-utils.js +2 -3
  272. package/src/components/global-styles/context-menu.js +17 -2
  273. package/src/components/global-styles/custom-css.js +4 -4
  274. package/src/components/global-styles/dimensions-panel.js +15 -11
  275. package/src/components/global-styles/global-styles-provider.js +3 -3
  276. package/src/components/global-styles/gradients-palette-panel.js +7 -4
  277. package/src/components/global-styles/header.js +9 -3
  278. package/src/components/global-styles/hooks.js +20 -93
  279. package/src/components/global-styles/navigation-button.js +4 -2
  280. package/src/components/global-styles/palette.js +4 -4
  281. package/src/components/global-styles/preview.js +3 -3
  282. package/src/components/global-styles/screen-background-color.js +6 -5
  283. package/src/components/global-styles/screen-block-list.js +19 -3
  284. package/src/components/global-styles/screen-button-color.js +11 -9
  285. package/src/components/global-styles/screen-colors.js +10 -10
  286. package/src/components/global-styles/screen-css.js +14 -7
  287. package/src/components/global-styles/screen-heading-color.js +12 -10
  288. package/src/components/global-styles/screen-link-color.js +6 -5
  289. package/src/components/global-styles/screen-root.js +3 -3
  290. package/src/components/global-styles/screen-style-variations.js +3 -3
  291. package/src/components/global-styles/screen-text-color.js +6 -5
  292. package/src/components/global-styles/screen-typography.js +4 -4
  293. package/src/components/global-styles/shadow-panel.js +9 -6
  294. package/src/components/global-styles/style.scss +7 -1
  295. package/src/components/global-styles/subtitle.js +5 -2
  296. package/src/components/global-styles/typography-panel.js +31 -395
  297. package/src/components/global-styles/typography-preview.js +3 -3
  298. package/src/components/global-styles/ui.js +3 -8
  299. package/src/components/global-styles-renderer/index.js +3 -3
  300. package/src/components/header-edit-mode/index.js +6 -3
  301. package/src/components/keyboard-shortcut-help-modal/config.js +1 -1
  302. package/src/components/layout/index.js +35 -48
  303. package/src/components/layout/style.scss +11 -23
  304. package/src/components/list/actions/rename-menu-item.js +1 -1
  305. package/src/components/list/table.js +4 -0
  306. package/src/components/navigation-inspector/index.js +0 -32
  307. package/src/components/navigation-inspector/navigation-menu.js +10 -4
  308. package/src/components/save-panel/index.js +4 -1
  309. package/src/components/sidebar/index.js +14 -19
  310. package/src/components/sidebar-edit-mode/index.js +1 -1
  311. package/src/components/sidebar-edit-mode/template-card/index.js +24 -14
  312. package/src/components/sidebar-edit-mode/template-card/last-revision.js +75 -0
  313. package/src/components/sidebar-edit-mode/template-card/style.scss +4 -0
  314. package/src/components/sidebar-navigation-screen/index.js +27 -11
  315. package/src/components/sidebar-navigation-screen/style.scss +4 -6
  316. package/src/components/sidebar-navigation-screen-navigation-item/index.js +52 -0
  317. package/src/components/sidebar-navigation-screen-navigation-menus/index.js +1 -1
  318. package/src/components/sidebar-navigation-screen-navigation-menus/style.scss +0 -4
  319. package/src/components/sidebar-navigation-screen-template/index.js +52 -0
  320. package/src/components/sidebar-navigation-screen-templates/index.js +49 -83
  321. package/src/components/sidebar-navigation-screen-templates-browse/index.js +31 -0
  322. package/src/components/site-hub/index.js +67 -122
  323. package/src/components/site-hub/style.scss +1 -11
  324. package/src/components/start-template-options/index.js +171 -0
  325. package/src/components/start-template-options/style.scss +76 -0
  326. package/src/components/style-book/index.js +11 -7
  327. package/src/components/sync-state-with-url/use-init-edited-entity-from-url.js +48 -14
  328. package/src/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +1 -1
  329. package/src/components/sync-state-with-url/{use-sync-sidebar-path-with-url.js → use-sync-path-with-url.js} +10 -10
  330. package/src/components/use-edited-entity-record/index.js +6 -2
  331. package/src/hooks/push-changes-to-global-styles/index.js +29 -24
  332. package/src/{experiments.js → private-apis.js} +1 -1
  333. package/src/store/index.js +1 -1
  334. package/src/style.scss +1 -0
  335. package/src/utils/get-is-list-page.js +5 -5
  336. package/build/components/sync-state-with-url/use-sync-sidebar-path-with-url.js.map +0 -1
  337. package/build/experiments.js.map +0 -1
  338. package/build-module/components/sync-state-with-url/use-sync-sidebar-path-with-url.js.map +0 -1
  339. package/build-module/experiments.js.map +0 -1
@@ -1005,6 +1005,10 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
1005
1005
  padding: 0 16px;
1006
1006
  }
1007
1007
 
1008
+ .edit-site-global-styles-header {
1009
+ margin-bottom: 0 !important;
1010
+ }
1011
+
1008
1012
  .edit-site-global-styles-subtitle {
1009
1013
  margin-bottom: 0 !important;
1010
1014
  text-transform: uppercase;
@@ -1114,7 +1118,8 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
1114
1118
  }
1115
1119
 
1116
1120
  .edit-site-global-styles-screen-css-help-link {
1117
- padding-right: 16px;
1121
+ display: block;
1122
+ margin-top: 8px;
1118
1123
  }
1119
1124
 
1120
1125
  .edit-site-global-styles-screen-variations {
@@ -1832,6 +1837,10 @@ body.is-fullscreen-mode .edit-site-list-header {
1832
1837
  min-width: auto;
1833
1838
  }
1834
1839
 
1840
+ .edit-site-template-revisions {
1841
+ margin-right: -4px;
1842
+ }
1843
+
1835
1844
  h3.edit-site-template-card__template-areas-title {
1836
1845
  font-weight: 500;
1837
1846
  margin: 0 0 8px;
@@ -2087,6 +2096,71 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2087
2096
  vertical-align: text-top;
2088
2097
  }
2089
2098
 
2099
+ @media (min-width: 600px) {
2100
+ .edit-site-start-template-options__modal.components-modal__frame {
2101
+ width: calc(100% - 32px);
2102
+ height: calc(100% - 120px);
2103
+ }
2104
+ }
2105
+ @media (min-width: 782px) {
2106
+ .edit-site-start-template-options__modal.components-modal__frame {
2107
+ width: 50%;
2108
+ }
2109
+ }
2110
+ @media (min-width: 960px) {
2111
+ .edit-site-start-template-options__modal.components-modal__frame {
2112
+ height: -moz-fit-content;
2113
+ height: fit-content;
2114
+ }
2115
+ }
2116
+
2117
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list {
2118
+ display: grid;
2119
+ width: 100%;
2120
+ margin-top: 4px;
2121
+ gap: 24px;
2122
+ grid-template-columns: repeat(auto-fit, minmax(min(100% / 2, max(240px, 100% / 10)), 1fr));
2123
+ }
2124
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
2125
+ break-inside: avoid-column;
2126
+ margin-bottom: 0;
2127
+ width: 100%;
2128
+ aspect-ratio: 3/4;
2129
+ }
2130
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container {
2131
+ height: 100%;
2132
+ box-shadow: 0 0 0 1px #ddd;
2133
+ }
2134
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content {
2135
+ width: 100%;
2136
+ position: absolute;
2137
+ }
2138
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title {
2139
+ display: none;
2140
+ }
2141
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:hover .block-editor-block-preview__container {
2142
+ box-shadow: 0 0 0 2px var(--wp-admin-theme-color);
2143
+ }
2144
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:focus .block-editor-block-preview__container {
2145
+ box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
2146
+ outline: 2px solid transparent;
2147
+ }
2148
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:nth-last-child(2) .block-editor-block-preview__container {
2149
+ position: absolute;
2150
+ padding: 0;
2151
+ background: #f0f0f0;
2152
+ }
2153
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:nth-last-child(2) .block-editor-block-preview__container::after {
2154
+ width: 100%;
2155
+ top: 50%;
2156
+ margin-top: -1em;
2157
+ content: var(--wp-edit-site-start-template-options-start-blank);
2158
+ text-align: center;
2159
+ }
2160
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:nth-last-child(2) iframe {
2161
+ display: none;
2162
+ }
2163
+
2090
2164
  .edit-site-keyboard-shortcut-help-modal__section {
2091
2165
  margin: 0 0 2rem 0;
2092
2166
  }
@@ -2145,23 +2219,23 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2145
2219
 
2146
2220
  .edit-site-layout__hub {
2147
2221
  position: fixed;
2148
- top: 24px;
2149
- right: 24px;
2222
+ top: 0;
2223
+ right: 0;
2150
2224
  width: calc(100vw - 48px);
2151
- height: 68px;
2225
+ height: 60px;
2152
2226
  z-index: 3;
2153
- background: #000;
2154
- padding: 16px;
2155
- padding-right: 0;
2156
- border-radius: 8px;
2157
- box-shadow: 0 0.7px 1px rgba(0, 0, 0, 0.15), 0 2.7px 3.8px -0.2px rgba(0, 0, 0, 0.15), 0 5.5px 7.8px -0.3px rgba(0, 0, 0, 0.15), -0.1px 11.5px 16.4px -0.5px rgba(0, 0, 0, 0.15);
2227
+ }
2228
+ .edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub {
2229
+ width: auto;
2230
+ padding-left: 0;
2231
+ }
2232
+ @media (min-width: 782px) {
2233
+ .edit-site-layout__hub {
2234
+ width: calc(360px - 48px);
2235
+ }
2158
2236
  }
2159
2237
  .edit-site-layout.is-full-canvas .edit-site-layout__hub {
2160
- top: 0;
2161
- right: 0;
2162
- padding: 0;
2163
2238
  padding-left: 16px;
2164
- height: 60px;
2165
2239
  border-radius: 0;
2166
2240
  width: 100vw;
2167
2241
  box-shadow: none;
@@ -2172,15 +2246,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2172
2246
  padding-left: 0;
2173
2247
  }
2174
2248
  }
2175
- .edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub {
2176
- width: auto;
2177
- padding-left: 0;
2178
- }
2179
- @media (min-width: 782px) {
2180
- .edit-site-layout__hub {
2181
- width: calc(360px - 48px);
2182
- }
2183
- }
2184
2249
 
2185
2250
  .edit-site-layout__header {
2186
2251
  height: 60px;
@@ -2430,13 +2495,14 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2430
2495
 
2431
2496
  .edit-site-sidebar-navigation-screen__content {
2432
2497
  margin: 0 36px 16px 16px;
2498
+ color: #949494;
2433
2499
  }
2434
2500
 
2435
2501
  .edit-site-sidebar-navigation-screen__title-icon {
2436
2502
  position: sticky;
2437
2503
  top: 0;
2438
2504
  background: #1e1e1e;
2439
- padding-top: 164px;
2505
+ padding-top: 108px;
2440
2506
  box-shadow: 0 8px 16px #1e1e1e;
2441
2507
  margin-bottom: 8px;
2442
2508
  padding-bottom: 8px;
@@ -2454,14 +2520,10 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2454
2520
  .edit-site-sidebar-navigation-screen__back {
2455
2521
  color: #e0e0e0;
2456
2522
  }
2457
- .edit-site-sidebar-navigation-screen__back:hover {
2523
+ .edit-site-sidebar-navigation-screen__back:hover, .edit-site-sidebar-navigation-screen__back:not([aria-disabled=true]):active {
2458
2524
  color: #fff;
2459
2525
  }
2460
2526
 
2461
- .edit-site-sidebar-navigation-screen__icon-placeholder {
2462
- width: 36px;
2463
- }
2464
-
2465
2527
  .edit-site-sidebar-navigation-screen-templates__see-all {
2466
2528
  /* Overrides the margin that comes from the Item component */
2467
2529
  margin-top: 16px !important;
@@ -2479,11 +2541,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2479
2541
  gap: 8px;
2480
2542
  }
2481
2543
 
2482
- .edit-site-site-hub__edit-button {
2483
- height: 32px;
2484
- color: #fff;
2485
- }
2486
-
2487
2544
  .edit-site-site-hub__post-type {
2488
2545
  opacity: 0.6;
2489
2546
  }
@@ -2492,10 +2549,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2492
2549
  height: 60px;
2493
2550
  width: 64px;
2494
2551
  flex-shrink: 0;
2495
- }
2496
-
2497
- .edit-site-layout.is-edit-mode .edit-site-site-hub__view-mode-toggle-container {
2498
- width: 60px;
2552
+ background: #1e1e1e;
2499
2553
  }
2500
2554
 
2501
2555
  .edit-site-site-hub__text-content {
@@ -2508,10 +2562,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2508
2562
  overflow: hidden;
2509
2563
  }
2510
2564
 
2511
- .edit-site-sidebar-navigation-screen-navigation-menus .block-editor-list-view-block__menu-edit,
2512
- .edit-site-sidebar-navigation-screen-navigation-menus .edit-site-navigation-inspector__select-menu {
2513
- display: none;
2514
- }
2515
2565
  .edit-site-sidebar-navigation-screen-navigation-menus .offcanvas-editor-list-view-leaf {
2516
2566
  max-width: calc(100% - 4px);
2517
2567
  }
@@ -1005,6 +1005,10 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
1005
1005
  padding: 0 16px;
1006
1006
  }
1007
1007
 
1008
+ .edit-site-global-styles-header {
1009
+ margin-bottom: 0 !important;
1010
+ }
1011
+
1008
1012
  .edit-site-global-styles-subtitle {
1009
1013
  margin-bottom: 0 !important;
1010
1014
  text-transform: uppercase;
@@ -1114,7 +1118,8 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
1114
1118
  }
1115
1119
 
1116
1120
  .edit-site-global-styles-screen-css-help-link {
1117
- padding-left: 16px;
1121
+ display: block;
1122
+ margin-top: 8px;
1118
1123
  }
1119
1124
 
1120
1125
  .edit-site-global-styles-screen-variations {
@@ -1832,6 +1837,10 @@ body.is-fullscreen-mode .edit-site-list-header {
1832
1837
  min-width: auto;
1833
1838
  }
1834
1839
 
1840
+ .edit-site-template-revisions {
1841
+ margin-left: -4px;
1842
+ }
1843
+
1835
1844
  h3.edit-site-template-card__template-areas-title {
1836
1845
  font-weight: 500;
1837
1846
  margin: 0 0 8px;
@@ -2087,6 +2096,71 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2087
2096
  vertical-align: text-top;
2088
2097
  }
2089
2098
 
2099
+ @media (min-width: 600px) {
2100
+ .edit-site-start-template-options__modal.components-modal__frame {
2101
+ width: calc(100% - 32px);
2102
+ height: calc(100% - 120px);
2103
+ }
2104
+ }
2105
+ @media (min-width: 782px) {
2106
+ .edit-site-start-template-options__modal.components-modal__frame {
2107
+ width: 50%;
2108
+ }
2109
+ }
2110
+ @media (min-width: 960px) {
2111
+ .edit-site-start-template-options__modal.components-modal__frame {
2112
+ height: -moz-fit-content;
2113
+ height: fit-content;
2114
+ }
2115
+ }
2116
+
2117
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list {
2118
+ display: grid;
2119
+ width: 100%;
2120
+ margin-top: 4px;
2121
+ gap: 24px;
2122
+ grid-template-columns: repeat(auto-fit, minmax(min(100% / 2, max(240px, 100% / 10)), 1fr));
2123
+ }
2124
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
2125
+ break-inside: avoid-column;
2126
+ margin-bottom: 0;
2127
+ width: 100%;
2128
+ aspect-ratio: 3/4;
2129
+ }
2130
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container {
2131
+ height: 100%;
2132
+ box-shadow: 0 0 0 1px #ddd;
2133
+ }
2134
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content {
2135
+ width: 100%;
2136
+ position: absolute;
2137
+ }
2138
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title {
2139
+ display: none;
2140
+ }
2141
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:hover .block-editor-block-preview__container {
2142
+ box-shadow: 0 0 0 2px var(--wp-admin-theme-color);
2143
+ }
2144
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:focus .block-editor-block-preview__container {
2145
+ box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
2146
+ outline: 2px solid transparent;
2147
+ }
2148
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:nth-last-child(2) .block-editor-block-preview__container {
2149
+ position: absolute;
2150
+ padding: 0;
2151
+ background: #f0f0f0;
2152
+ }
2153
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:nth-last-child(2) .block-editor-block-preview__container::after {
2154
+ width: 100%;
2155
+ top: 50%;
2156
+ margin-top: -1em;
2157
+ content: var(--wp-edit-site-start-template-options-start-blank);
2158
+ text-align: center;
2159
+ }
2160
+ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:nth-last-child(2) iframe {
2161
+ display: none;
2162
+ }
2163
+
2090
2164
  .edit-site-keyboard-shortcut-help-modal__section {
2091
2165
  margin: 0 0 2rem 0;
2092
2166
  }
@@ -2145,23 +2219,23 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2145
2219
 
2146
2220
  .edit-site-layout__hub {
2147
2221
  position: fixed;
2148
- top: 24px;
2149
- left: 24px;
2222
+ top: 0;
2223
+ left: 0;
2150
2224
  width: calc(100vw - 48px);
2151
- height: 68px;
2225
+ height: 60px;
2152
2226
  z-index: 3;
2153
- background: #000;
2154
- padding: 16px;
2155
- padding-left: 0;
2156
- border-radius: 8px;
2157
- box-shadow: 0 0.7px 1px rgba(0, 0, 0, 0.15), 0 2.7px 3.8px -0.2px rgba(0, 0, 0, 0.15), 0 5.5px 7.8px -0.3px rgba(0, 0, 0, 0.15), 0.1px 11.5px 16.4px -0.5px rgba(0, 0, 0, 0.15);
2227
+ }
2228
+ .edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub {
2229
+ width: auto;
2230
+ padding-right: 0;
2231
+ }
2232
+ @media (min-width: 782px) {
2233
+ .edit-site-layout__hub {
2234
+ width: calc(360px - 48px);
2235
+ }
2158
2236
  }
2159
2237
  .edit-site-layout.is-full-canvas .edit-site-layout__hub {
2160
- top: 0;
2161
- left: 0;
2162
- padding: 0;
2163
2238
  padding-right: 16px;
2164
- height: 60px;
2165
2239
  border-radius: 0;
2166
2240
  width: 100vw;
2167
2241
  box-shadow: none;
@@ -2172,15 +2246,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2172
2246
  padding-right: 0;
2173
2247
  }
2174
2248
  }
2175
- .edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub {
2176
- width: auto;
2177
- padding-right: 0;
2178
- }
2179
- @media (min-width: 782px) {
2180
- .edit-site-layout__hub {
2181
- width: calc(360px - 48px);
2182
- }
2183
- }
2184
2249
 
2185
2250
  .edit-site-layout__header {
2186
2251
  height: 60px;
@@ -2430,13 +2495,14 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2430
2495
 
2431
2496
  .edit-site-sidebar-navigation-screen__content {
2432
2497
  margin: 0 16px 16px 36px;
2498
+ color: #949494;
2433
2499
  }
2434
2500
 
2435
2501
  .edit-site-sidebar-navigation-screen__title-icon {
2436
2502
  position: sticky;
2437
2503
  top: 0;
2438
2504
  background: #1e1e1e;
2439
- padding-top: 164px;
2505
+ padding-top: 108px;
2440
2506
  box-shadow: 0 8px 16px #1e1e1e;
2441
2507
  margin-bottom: 8px;
2442
2508
  padding-bottom: 8px;
@@ -2454,14 +2520,10 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2454
2520
  .edit-site-sidebar-navigation-screen__back {
2455
2521
  color: #e0e0e0;
2456
2522
  }
2457
- .edit-site-sidebar-navigation-screen__back:hover {
2523
+ .edit-site-sidebar-navigation-screen__back:hover, .edit-site-sidebar-navigation-screen__back:not([aria-disabled=true]):active {
2458
2524
  color: #fff;
2459
2525
  }
2460
2526
 
2461
- .edit-site-sidebar-navigation-screen__icon-placeholder {
2462
- width: 36px;
2463
- }
2464
-
2465
2527
  .edit-site-sidebar-navigation-screen-templates__see-all {
2466
2528
  /* Overrides the margin that comes from the Item component */
2467
2529
  margin-top: 16px !important;
@@ -2479,11 +2541,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2479
2541
  gap: 8px;
2480
2542
  }
2481
2543
 
2482
- .edit-site-site-hub__edit-button {
2483
- height: 32px;
2484
- color: #fff;
2485
- }
2486
-
2487
2544
  .edit-site-site-hub__post-type {
2488
2545
  opacity: 0.6;
2489
2546
  }
@@ -2492,10 +2549,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2492
2549
  height: 60px;
2493
2550
  width: 64px;
2494
2551
  flex-shrink: 0;
2495
- }
2496
-
2497
- .edit-site-layout.is-edit-mode .edit-site-site-hub__view-mode-toggle-container {
2498
- width: 60px;
2552
+ background: #1e1e1e;
2499
2553
  }
2500
2554
 
2501
2555
  .edit-site-site-hub__text-content {
@@ -2508,10 +2562,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2508
2562
  overflow: hidden;
2509
2563
  }
2510
2564
 
2511
- .edit-site-sidebar-navigation-screen-navigation-menus .block-editor-list-view-block__menu-edit,
2512
- .edit-site-sidebar-navigation-screen-navigation-menus .edit-site-navigation-inspector__select-menu {
2513
- display: none;
2514
- }
2515
2565
  .edit-site-sidebar-navigation-screen-navigation-menus .offcanvas-editor-list-view-leaf {
2516
2566
  max-width: calc(100% - 4px);
2517
2567
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "5.3.2",
3
+ "version": "5.4.0",
4
4
  "description": "Edit Site Page module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -27,35 +27,35 @@
27
27
  "react-native": "src/index",
28
28
  "dependencies": {
29
29
  "@babel/runtime": "^7.16.0",
30
- "@wordpress/a11y": "^3.26.1",
31
- "@wordpress/api-fetch": "^6.23.1",
32
- "@wordpress/block-editor": "^11.3.2",
33
- "@wordpress/block-library": "^8.3.2",
34
- "@wordpress/blocks": "^12.3.1",
35
- "@wordpress/components": "^23.3.1",
36
- "@wordpress/compose": "^6.3.1",
37
- "@wordpress/core-data": "^6.3.1",
38
- "@wordpress/data": "^8.3.1",
39
- "@wordpress/deprecated": "^3.26.1",
40
- "@wordpress/editor": "^13.3.2",
41
- "@wordpress/element": "^5.3.1",
42
- "@wordpress/experiments": "^0.8.1",
43
- "@wordpress/hooks": "^3.26.1",
44
- "@wordpress/html-entities": "^3.26.1",
45
- "@wordpress/i18n": "^4.26.1",
46
- "@wordpress/icons": "^9.17.1",
47
- "@wordpress/interface": "^5.3.2",
48
- "@wordpress/keyboard-shortcuts": "^4.3.1",
49
- "@wordpress/keycodes": "^3.26.1",
50
- "@wordpress/media-utils": "^4.17.1",
51
- "@wordpress/notices": "^3.26.1",
52
- "@wordpress/plugins": "^5.3.1",
53
- "@wordpress/preferences": "^3.3.1",
54
- "@wordpress/reusable-blocks": "^4.3.2",
55
- "@wordpress/style-engine": "^1.9.1",
56
- "@wordpress/url": "^3.27.1",
57
- "@wordpress/viewport": "^5.3.1",
58
- "@wordpress/widgets": "^3.3.2",
30
+ "@wordpress/a11y": "^3.27.0",
31
+ "@wordpress/api-fetch": "^6.24.0",
32
+ "@wordpress/block-editor": "^11.4.0",
33
+ "@wordpress/block-library": "^8.4.0",
34
+ "@wordpress/blocks": "^12.4.0",
35
+ "@wordpress/components": "^23.4.0",
36
+ "@wordpress/compose": "^6.4.0",
37
+ "@wordpress/core-data": "^6.4.0",
38
+ "@wordpress/data": "^8.4.0",
39
+ "@wordpress/deprecated": "^3.27.0",
40
+ "@wordpress/editor": "^13.4.0",
41
+ "@wordpress/element": "^5.4.0",
42
+ "@wordpress/hooks": "^3.27.0",
43
+ "@wordpress/html-entities": "^3.27.0",
44
+ "@wordpress/i18n": "^4.27.0",
45
+ "@wordpress/icons": "^9.18.0",
46
+ "@wordpress/interface": "^5.4.0",
47
+ "@wordpress/keyboard-shortcuts": "^4.4.0",
48
+ "@wordpress/keycodes": "^3.27.0",
49
+ "@wordpress/media-utils": "^4.18.0",
50
+ "@wordpress/notices": "^3.27.0",
51
+ "@wordpress/plugins": "^5.4.0",
52
+ "@wordpress/preferences": "^3.4.0",
53
+ "@wordpress/private-apis": "^0.9.0",
54
+ "@wordpress/reusable-blocks": "^4.4.0",
55
+ "@wordpress/style-engine": "^1.10.0",
56
+ "@wordpress/url": "^3.28.0",
57
+ "@wordpress/viewport": "^5.4.0",
58
+ "@wordpress/widgets": "^3.4.0",
59
59
  "classnames": "^2.3.1",
60
60
  "colord": "^2.9.2",
61
61
  "downloadjs": "^1.4.7",
@@ -73,5 +73,5 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "3eb2c536278d5a17f698b9c378fe3db746a89622"
76
+ "gitHead": "c25ff895413bad4354c55c0c2d732552618b0d56"
77
77
  }
@@ -20,7 +20,7 @@ import {
20
20
  getUniqueTemplatePartTitle,
21
21
  getCleanTemplatePartSlug,
22
22
  } from '../../utils/template-part-create';
23
- import { unlock } from '../../experiments';
23
+ import { unlock } from '../../private-apis';
24
24
 
25
25
  export default function NewTemplatePart( {
26
26
  postType,
@@ -67,9 +67,12 @@ export default function NewTemplatePart( {
67
67
  setCanvasMode( 'edit' );
68
68
 
69
69
  // Navigate to the created template part editor.
70
- history.push( {
71
- postId: templatePart.id,
72
- postType: templatePart.type,
70
+ window.queueMicrotask( () => {
71
+ history.push( {
72
+ postId: templatePart.id,
73
+ postType: 'wp_template_part',
74
+ path: '/template-parts/single',
75
+ } );
73
76
  } );
74
77
 
75
78
  // TODO: Add a success notice?
@@ -1,8 +1,6 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import apiFetch from '@wordpress/api-fetch';
5
- import { addQueryArgs } from '@wordpress/url';
6
4
  import {
7
5
  DropdownMenu,
8
6
  MenuGroup,
@@ -48,7 +46,7 @@ import AddCustomGenericTemplateModal from './add-custom-generic-template-modal';
48
46
  import TemplateActionsLoadingScreen from './template-actions-loading-screen';
49
47
  import { useHistory } from '../routes';
50
48
  import { store as editSiteStore } from '../../store';
51
- import { unlock } from '../../experiments';
49
+ import { unlock } from '../../private-apis';
52
50
 
53
51
  const DEFAULT_TEMPLATE_SLUGS = [
54
52
  'front-page',
@@ -102,26 +100,13 @@ export default function NewTemplate( {
102
100
  const { setTemplate, setCanvasMode } = unlock(
103
101
  useDispatch( editSiteStore )
104
102
  );
105
-
106
103
  async function createTemplate( template, isWPSuggestion = true ) {
107
104
  if ( isCreatingTemplate ) {
108
105
  return;
109
106
  }
110
107
  setIsCreatingTemplate( true );
111
108
  try {
112
- const { title, description, slug, templatePrefix } = template;
113
- let templateContent = template.content;
114
- // Try to find fallback content from existing templates.
115
- if ( ! templateContent ) {
116
- const fallbackTemplate = await apiFetch( {
117
- path: addQueryArgs( '/wp/v2/templates/lookup', {
118
- slug,
119
- is_custom: ! isWPSuggestion,
120
- template_prefix: templatePrefix,
121
- } ),
122
- } );
123
- templateContent = fallbackTemplate.content.raw;
124
- }
109
+ const { title, description, slug } = template;
125
110
  const newTemplate = await saveEntityRecord(
126
111
  'postType',
127
112
  'wp_template',
@@ -131,7 +116,6 @@ export default function NewTemplate( {
131
116
  slug: slug.toString(),
132
117
  status: 'publish',
133
118
  title,
134
- content: templateContent,
135
119
  // This adds a post meta field in template that is part of `is_custom` value calculation.
136
120
  is_wp_suggestion: isWPSuggestion,
137
121
  },
@@ -140,15 +124,18 @@ export default function NewTemplate( {
140
124
 
141
125
  // Set template before navigating away to avoid initial stale value.
142
126
  setTemplate( newTemplate.id, newTemplate.slug );
143
-
144
127
  // Switch to edit mode.
145
128
  setCanvasMode( 'edit' );
146
129
 
147
130
  // Navigate to the created template editor.
148
- history.push( {
149
- postId: newTemplate.id,
150
- postType: newTemplate.type,
131
+ window.queueMicrotask( () => {
132
+ history.push( {
133
+ postId: newTemplate.id,
134
+ postType: newTemplate.type,
135
+ path: '/templates/single',
136
+ } );
151
137
  } );
138
+
152
139
  createSuccessNotice(
153
140
  sprintf(
154
141
  // translators: %s: Title of the created template e.g: "Category".
@@ -35,7 +35,6 @@ export default function App() {
35
35
  <SlotFillProvider>
36
36
  <Popover.Slot />
37
37
  <UnsavedChangesWarning />
38
-
39
38
  <Routes>
40
39
  <Layout />
41
40
  <PluginArea onError={ onPluginAreaError } />
@@ -13,7 +13,7 @@ import { useSelect, useDispatch } from '@wordpress/data';
13
13
  /**
14
14
  * Internal dependencies
15
15
  */
16
- import { unlock } from '../../experiments';
16
+ import { unlock } from '../../private-apis';
17
17
  import { store as editSiteStore } from '../../store';
18
18
 
19
19
  function EditorCanvas( { enableResizing, settings, children, ...props } ) {
@@ -33,6 +33,7 @@ function EditorCanvas( { enableResizing, settings, children, ...props } ) {
33
33
  const mouseMoveTypingRef = useMouseMoveTypingReset();
34
34
  return (
35
35
  <Iframe
36
+ expand={ isZoomOutMode }
36
37
  scale={ ( isZoomOutMode && 0.45 ) || undefined }
37
38
  frameSize={ isZoomOutMode ? 100 : undefined }
38
39
  style={ enableResizing ? {} : deviceStyles }
@@ -17,7 +17,7 @@ import {
17
17
  __unstableUseTypingObserver as useTypingObserver,
18
18
  BlockEditorKeyboardShortcuts,
19
19
  store as blockEditorStore,
20
- experiments as blockEditorExperiments,
20
+ privateApis as blockEditorPrivateApis,
21
21
  } from '@wordpress/block-editor';
22
22
  import {
23
23
  useMergeRefs,
@@ -37,9 +37,9 @@ import BackButton from './back-button';
37
37
  import ResizableEditor from './resizable-editor';
38
38
  import EditorCanvas from './editor-canvas';
39
39
  import StyleBook from '../style-book';
40
- import { unlock } from '../../experiments';
40
+ import { unlock } from '../../private-apis';
41
41
 
42
- const { ExperimentalBlockEditorProvider } = unlock( blockEditorExperiments );
42
+ const { ExperimentalBlockEditorProvider } = unlock( blockEditorPrivateApis );
43
43
 
44
44
  const LAYOUT = {
45
45
  type: 'default',