@wordpress/edit-site 5.11.0 → 5.12.1

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 (1056) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/components/add-new-page/index.js +105 -0
  3. package/build/components/add-new-page/index.js.map +1 -0
  4. package/build/components/add-new-pattern/index.js +99 -0
  5. package/build/components/add-new-pattern/index.js.map +1 -0
  6. package/build/components/add-new-template/add-custom-generic-template-modal-content.js +4 -5
  7. package/build/components/add-new-template/add-custom-generic-template-modal-content.js.map +1 -1
  8. package/build/components/add-new-template/add-custom-template-modal-content.js +27 -44
  9. package/build/components/add-new-template/add-custom-template-modal-content.js.map +1 -1
  10. package/build/components/add-new-template/index.js +6 -15
  11. package/build/components/add-new-template/index.js.map +1 -1
  12. package/build/components/add-new-template/new-template.js +26 -35
  13. package/build/components/add-new-template/new-template.js.map +1 -1
  14. package/build/components/add-new-template/utils.js +71 -120
  15. package/build/components/add-new-template/utils.js.map +1 -1
  16. package/build/components/app/index.js +2 -2
  17. package/build/components/app/index.js.map +1 -1
  18. package/build/components/block-editor/back-button.js +6 -6
  19. package/build/components/block-editor/back-button.js.map +1 -1
  20. package/build/components/block-editor/block-inspector-button.js +3 -4
  21. package/build/components/block-editor/block-inspector-button.js.map +1 -1
  22. package/build/components/block-editor/constants.js +9 -0
  23. package/build/components/block-editor/constants.js.map +1 -0
  24. package/build/components/block-editor/editor-canvas.js +14 -15
  25. package/build/components/block-editor/editor-canvas.js.map +1 -1
  26. package/build/components/block-editor/get-block-editor-provider.js +42 -0
  27. package/build/components/block-editor/get-block-editor-provider.js.map +1 -0
  28. package/build/components/block-editor/index.js +6 -129
  29. package/build/components/block-editor/index.js.map +1 -1
  30. package/build/components/block-editor/inserter-media-categories.js +25 -42
  31. package/build/components/block-editor/inserter-media-categories.js.map +1 -1
  32. package/build/components/block-editor/providers/default-block-editor-provider.js +58 -0
  33. package/build/components/block-editor/providers/default-block-editor-provider.js.map +1 -0
  34. package/build/components/block-editor/providers/navigation-block-editor-provider.js +117 -0
  35. package/build/components/block-editor/providers/navigation-block-editor-provider.js.map +1 -0
  36. package/build/components/block-editor/resizable-editor.js +6 -7
  37. package/build/components/block-editor/resizable-editor.js.map +1 -1
  38. package/build/components/block-editor/resize-handle.js +5 -7
  39. package/build/components/block-editor/resize-handle.js.map +1 -1
  40. package/build/components/block-editor/site-editor-canvas.js +137 -0
  41. package/build/components/block-editor/site-editor-canvas.js.map +1 -0
  42. package/build/components/block-editor/use-site-editor-settings.js +82 -0
  43. package/build/components/block-editor/use-site-editor-settings.js.map +1 -0
  44. package/build/components/canvas-spinner/index.js +18 -1
  45. package/build/components/canvas-spinner/index.js.map +1 -1
  46. package/build/components/code-editor/code-editor-text-area.js +5 -6
  47. package/build/components/code-editor/code-editor-text-area.js.map +1 -1
  48. package/build/components/create-pattern-modal/index.js +125 -0
  49. package/build/components/create-pattern-modal/index.js.map +1 -0
  50. package/build/components/create-template-part-modal/index.js +73 -33
  51. package/build/components/create-template-part-modal/index.js.map +1 -1
  52. package/build/components/editor/index.js +43 -24
  53. package/build/components/editor/index.js.map +1 -1
  54. package/build/components/editor-canvas-container/index.js +29 -12
  55. package/build/components/editor-canvas-container/index.js.map +1 -1
  56. package/build/components/error-boundary/warning.js +8 -10
  57. package/build/components/error-boundary/warning.js.map +1 -1
  58. package/build/components/global-styles/block-preview-panel.js +7 -10
  59. package/build/components/global-styles/block-preview-panel.js.map +1 -1
  60. package/build/components/global-styles/color-indicator-wrapper.js +7 -9
  61. package/build/components/global-styles/color-indicator-wrapper.js.map +1 -1
  62. package/build/components/global-styles/color-palette-panel.js +5 -6
  63. package/build/components/global-styles/color-palette-panel.js.map +1 -1
  64. package/build/components/global-styles/dimensions-panel.js +3 -5
  65. package/build/components/global-styles/dimensions-panel.js.map +1 -1
  66. package/build/components/global-styles/global-styles-provider.js +20 -26
  67. package/build/components/global-styles/global-styles-provider.js.map +1 -1
  68. package/build/components/global-styles/gradients-palette-panel.js +5 -6
  69. package/build/components/global-styles/gradients-palette-panel.js.map +1 -1
  70. package/build/components/global-styles/header.js +4 -5
  71. package/build/components/global-styles/header.js.map +1 -1
  72. package/build/components/global-styles/hooks.js +3 -3
  73. package/build/components/global-styles/hooks.js.map +1 -1
  74. package/build/components/global-styles/icon-with-current-color.js +7 -9
  75. package/build/components/global-styles/icon-with-current-color.js.map +1 -1
  76. package/build/components/global-styles/navigation-button.js +15 -17
  77. package/build/components/global-styles/navigation-button.js.map +1 -1
  78. package/build/components/global-styles/palette.js +12 -16
  79. package/build/components/global-styles/palette.js.map +1 -1
  80. package/build/components/global-styles/preview.js +43 -53
  81. package/build/components/global-styles/preview.js.map +1 -1
  82. package/build/components/global-styles/root-menu.js +2 -2
  83. package/build/components/global-styles/root-menu.js.map +1 -1
  84. package/build/components/global-styles/screen-block-list.js +6 -9
  85. package/build/components/global-styles/screen-block-list.js.map +1 -1
  86. package/build/components/global-styles/screen-block.js +11 -12
  87. package/build/components/global-styles/screen-block.js.map +1 -1
  88. package/build/components/global-styles/screen-color-palette.js +3 -4
  89. package/build/components/global-styles/screen-color-palette.js.map +1 -1
  90. package/build/components/global-styles/screen-colors.js +2 -2
  91. package/build/components/global-styles/screen-colors.js.map +1 -1
  92. package/build/components/global-styles/screen-css.js +2 -2
  93. package/build/components/global-styles/screen-css.js.map +1 -1
  94. package/build/components/global-styles/screen-layout.js +2 -2
  95. package/build/components/global-styles/screen-layout.js.map +1 -1
  96. package/build/components/global-styles/screen-revisions/index.js +12 -12
  97. package/build/components/global-styles/screen-revisions/index.js.map +1 -1
  98. package/build/components/global-styles/screen-revisions/revisions-buttons.js +14 -19
  99. package/build/components/global-styles/screen-revisions/revisions-buttons.js.map +1 -1
  100. package/build/components/global-styles/screen-revisions/use-global-styles-revisions.js +7 -13
  101. package/build/components/global-styles/screen-revisions/use-global-styles-revisions.js.map +1 -1
  102. package/build/components/global-styles/screen-root.js +5 -5
  103. package/build/components/global-styles/screen-root.js.map +1 -1
  104. package/build/components/global-styles/screen-typography-element.js +3 -4
  105. package/build/components/global-styles/screen-typography-element.js.map +1 -1
  106. package/build/components/global-styles/screen-typography.js +8 -9
  107. package/build/components/global-styles/screen-typography.js.map +1 -1
  108. package/build/components/global-styles/style-variations-container.js +15 -8
  109. package/build/components/global-styles/style-variations-container.js.map +1 -1
  110. package/build/components/global-styles/subtitle.js +4 -5
  111. package/build/components/global-styles/subtitle.js.map +1 -1
  112. package/build/components/global-styles/typography-panel.js +6 -7
  113. package/build/components/global-styles/typography-panel.js.map +1 -1
  114. package/build/components/global-styles/typography-preview.js +7 -8
  115. package/build/components/global-styles/typography-preview.js.map +1 -1
  116. package/build/components/global-styles/ui.js +123 -50
  117. package/build/components/global-styles/ui.js.map +1 -1
  118. package/build/components/global-styles/variations-panel.js +5 -6
  119. package/build/components/global-styles/variations-panel.js.map +1 -1
  120. package/build/components/global-styles-renderer/index.js +2 -2
  121. package/build/components/global-styles-renderer/index.js.map +1 -1
  122. package/build/components/header-edit-mode/document-actions/index.js +136 -24
  123. package/build/components/header-edit-mode/document-actions/index.js.map +1 -1
  124. package/build/components/header-edit-mode/index.js +8 -14
  125. package/build/components/header-edit-mode/index.js.map +1 -1
  126. package/build/components/header-edit-mode/more-menu/index.js +49 -53
  127. package/build/components/header-edit-mode/more-menu/index.js.map +1 -1
  128. package/build/components/header-edit-mode/plugin-sidebar-more-menu-item/index.js +4 -7
  129. package/build/components/header-edit-mode/plugin-sidebar-more-menu-item/index.js.map +1 -1
  130. package/build/components/header-edit-mode/tools-more-menu-group/index.js +5 -14
  131. package/build/components/header-edit-mode/tools-more-menu-group/index.js.map +1 -1
  132. package/build/components/header-edit-mode/undo-redo/redo.js +2 -6
  133. package/build/components/header-edit-mode/undo-redo/redo.js.map +1 -1
  134. package/build/components/header-edit-mode/undo-redo/undo.js +2 -6
  135. package/build/components/header-edit-mode/undo-redo/undo.js.map +1 -1
  136. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +3 -4
  137. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
  138. package/build/components/keyboard-shortcut-help-modal/index.js +42 -51
  139. package/build/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  140. package/build/components/keyboard-shortcut-help-modal/shortcut.js +10 -12
  141. package/build/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
  142. package/build/components/keyboard-shortcuts/edit-mode.js +7 -2
  143. package/build/components/keyboard-shortcuts/edit-mode.js.map +1 -1
  144. package/build/components/keyboard-shortcuts/index.js +7 -2
  145. package/build/components/keyboard-shortcuts/index.js.map +1 -1
  146. package/build/components/keyboard-shortcuts/register.js +1 -1
  147. package/build/components/keyboard-shortcuts/register.js.map +1 -1
  148. package/build/components/layout/hooks.js +21 -0
  149. package/build/components/layout/hooks.js.map +1 -1
  150. package/build/components/layout/index.js +44 -34
  151. package/build/components/layout/index.js.map +1 -1
  152. package/build/components/list/added-by.js +13 -23
  153. package/build/components/list/added-by.js.map +1 -1
  154. package/build/components/list/header.js +4 -7
  155. package/build/components/list/header.js.map +1 -1
  156. package/build/components/list/index.js +4 -6
  157. package/build/components/list/index.js.map +1 -1
  158. package/build/components/list/table.js +35 -40
  159. package/build/components/list/table.js.map +1 -1
  160. package/build/components/page/header.js +41 -0
  161. package/build/components/page/header.js.map +1 -0
  162. package/build/components/page/index.js +49 -0
  163. package/build/components/page/index.js.map +1 -0
  164. package/build/components/page-actions/delete-page-menu-item.js +70 -0
  165. package/build/components/page-actions/delete-page-menu-item.js.map +1 -0
  166. package/build/components/page-actions/index.js +43 -0
  167. package/build/components/page-actions/index.js.map +1 -0
  168. package/build/components/page-content-focus-manager/back-to-page-notification.js +67 -0
  169. package/build/components/page-content-focus-manager/back-to-page-notification.js.map +1 -0
  170. package/build/components/page-content-focus-manager/constants.js +9 -0
  171. package/build/components/page-content-focus-manager/constants.js.map +1 -0
  172. package/build/components/page-content-focus-manager/disable-non-page-content-blocks.js +60 -0
  173. package/build/components/page-content-focus-manager/disable-non-page-content-blocks.js.map +1 -0
  174. package/build/components/page-content-focus-manager/edit-template-notification.js +121 -0
  175. package/build/components/page-content-focus-manager/edit-template-notification.js.map +1 -0
  176. package/build/components/page-content-focus-manager/index.js +37 -0
  177. package/build/components/page-content-focus-manager/index.js.map +1 -0
  178. package/build/components/page-library/grid-item.js +165 -0
  179. package/build/components/page-library/grid-item.js.map +1 -0
  180. package/build/components/page-library/grid.js +49 -0
  181. package/build/components/page-library/grid.js.map +1 -0
  182. package/build/components/page-library/index.js +61 -0
  183. package/build/components/page-library/index.js.map +1 -0
  184. package/build/components/page-library/no-patterns.js +20 -0
  185. package/build/components/page-library/no-patterns.js.map +1 -0
  186. package/build/components/page-library/patterns-list.js +108 -0
  187. package/build/components/page-library/patterns-list.js.map +1 -0
  188. package/build/components/page-library/search-items.js +172 -0
  189. package/build/components/page-library/search-items.js.map +1 -0
  190. package/build/components/page-library/use-library-settings.js +53 -0
  191. package/build/components/page-library/use-library-settings.js.map +1 -0
  192. package/build/components/page-library/use-patterns.js +194 -0
  193. package/build/components/page-library/use-patterns.js.map +1 -0
  194. package/build/components/page-library/utils.js +30 -0
  195. package/build/components/page-library/utils.js.map +1 -0
  196. package/build/components/page-main/index.js +46 -0
  197. package/build/components/page-main/index.js.map +1 -0
  198. package/build/components/page-templates/index.js +101 -0
  199. package/build/components/page-templates/index.js.map +1 -0
  200. package/build/components/preferences-modal/enable-feature.js +4 -7
  201. package/build/components/preferences-modal/enable-feature.js.map +1 -1
  202. package/build/components/preferences-modal/index.js +4 -5
  203. package/build/components/preferences-modal/index.js.map +1 -1
  204. package/build/components/resizable-frame/index.js +25 -15
  205. package/build/components/resizable-frame/index.js.map +1 -1
  206. package/build/components/revisions/index.js +14 -17
  207. package/build/components/revisions/index.js.map +1 -1
  208. package/build/components/routes/link.js +15 -22
  209. package/build/components/routes/link.js.map +1 -1
  210. package/build/components/routes/use-title.js +3 -7
  211. package/build/components/routes/use-title.js.map +1 -1
  212. package/build/components/save-button/index.js +23 -13
  213. package/build/components/save-button/index.js.map +1 -1
  214. package/build/components/save-hub/index.js +97 -5
  215. package/build/components/save-hub/index.js.map +1 -1
  216. package/build/components/save-panel/index.js +63 -19
  217. package/build/components/save-panel/index.js.map +1 -1
  218. package/build/components/secondary-sidebar/inserter-sidebar.js +4 -8
  219. package/build/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
  220. package/build/components/secondary-sidebar/list-view-sidebar.js +51 -9
  221. package/build/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
  222. package/build/components/sidebar/index.js +14 -8
  223. package/build/components/sidebar/index.js.map +1 -1
  224. package/build/components/sidebar-button/index.js +2 -4
  225. package/build/components/sidebar-button/index.js.map +1 -1
  226. package/build/components/sidebar-edit-mode/default-sidebar.js +11 -12
  227. package/build/components/sidebar-edit-mode/default-sidebar.js.map +1 -1
  228. package/build/components/sidebar-edit-mode/global-styles-sidebar.js +22 -8
  229. package/build/components/sidebar-edit-mode/global-styles-sidebar.js.map +1 -1
  230. package/build/components/sidebar-edit-mode/index.js +13 -10
  231. package/build/components/sidebar-edit-mode/index.js.map +1 -1
  232. package/build/components/sidebar-edit-mode/page-panels/edit-template.js +84 -0
  233. package/build/components/sidebar-edit-mode/page-panels/edit-template.js.map +1 -0
  234. package/build/components/sidebar-edit-mode/page-panels/index.js +99 -0
  235. package/build/components/sidebar-edit-mode/page-panels/index.js.map +1 -0
  236. package/build/components/sidebar-edit-mode/page-panels/page-content.js +35 -0
  237. package/build/components/sidebar-edit-mode/page-panels/page-content.js.map +1 -0
  238. package/build/components/sidebar-edit-mode/page-panels/page-status.js +192 -0
  239. package/build/components/sidebar-edit-mode/page-panels/page-status.js.map +1 -0
  240. package/build/components/sidebar-edit-mode/page-panels/page-summary.js +45 -0
  241. package/build/components/sidebar-edit-mode/page-panels/page-summary.js.map +1 -0
  242. package/build/components/sidebar-edit-mode/page-panels/publish-date.js +98 -0
  243. package/build/components/sidebar-edit-mode/page-panels/publish-date.js.map +1 -0
  244. package/build/components/sidebar-edit-mode/plugin-sidebar/index.js +8 -12
  245. package/build/components/sidebar-edit-mode/plugin-sidebar/index.js.map +1 -1
  246. package/build/components/sidebar-edit-mode/settings-header/index.js +52 -21
  247. package/build/components/sidebar-edit-mode/settings-header/index.js.map +1 -1
  248. package/build/components/sidebar-edit-mode/sidebar-card/index.js +46 -0
  249. package/build/components/sidebar-edit-mode/sidebar-card/index.js.map +1 -0
  250. package/build/components/sidebar-edit-mode/sidebar-fixed-bottom.js +5 -6
  251. package/build/components/sidebar-edit-mode/sidebar-fixed-bottom.js.map +1 -1
  252. package/build/components/sidebar-edit-mode/{template-card → template-panel}/index.js +30 -22
  253. package/build/components/sidebar-edit-mode/template-panel/index.js.map +1 -0
  254. package/build/components/sidebar-edit-mode/{template-revisions/index.js → template-panel/last-revision.js} +7 -8
  255. package/{build-module/components/sidebar-edit-mode/template-revisions/index.js.map → build/components/sidebar-edit-mode/template-panel/last-revision.js.map} +1 -1
  256. package/build/components/sidebar-edit-mode/{template-card → template-panel}/template-actions.js +12 -16
  257. package/build/components/sidebar-edit-mode/template-panel/template-actions.js.map +1 -0
  258. package/build/components/sidebar-edit-mode/{template-card → template-panel}/template-areas.js +15 -19
  259. package/build/components/sidebar-edit-mode/template-panel/template-areas.js.map +1 -0
  260. package/build/components/sidebar-navigation-item/index.js +17 -14
  261. package/build/components/sidebar-navigation-item/index.js.map +1 -1
  262. package/build/components/sidebar-navigation-screen/index.js +38 -20
  263. package/build/components/sidebar-navigation-screen/index.js.map +1 -1
  264. package/build/components/sidebar-navigation-screen-details-footer/index.js +36 -0
  265. package/build/components/sidebar-navigation-screen-details-footer/index.js.map +1 -0
  266. package/build/components/sidebar-navigation-screen-details-panel/index.js +58 -0
  267. package/build/components/sidebar-navigation-screen-details-panel/index.js.map +1 -0
  268. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js +22 -0
  269. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js.map +1 -0
  270. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js +35 -0
  271. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js.map +1 -0
  272. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js +22 -0
  273. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js.map +1 -0
  274. package/build/components/sidebar-navigation-screen-global-styles/index.js +114 -24
  275. package/build/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
  276. package/build/components/sidebar-navigation-screen-library/category-item.js +48 -0
  277. package/build/components/sidebar-navigation-screen-library/category-item.js.map +1 -0
  278. package/build/components/sidebar-navigation-screen-library/index.js +112 -0
  279. package/build/components/sidebar-navigation-screen-library/index.js.map +1 -0
  280. package/build/components/sidebar-navigation-screen-library/use-default-pattern-categories.js +36 -0
  281. package/build/components/sidebar-navigation-screen-library/use-default-pattern-categories.js.map +1 -0
  282. package/build/components/sidebar-navigation-screen-library/use-pattern-categories.js +76 -0
  283. package/build/components/sidebar-navigation-screen-library/use-pattern-categories.js.map +1 -0
  284. package/build/components/sidebar-navigation-screen-library/use-template-part-areas.js +41 -0
  285. package/build/components/sidebar-navigation-screen-library/use-template-part-areas.js.map +1 -0
  286. package/build/components/sidebar-navigation-screen-library/use-theme-patterns.js +40 -0
  287. package/build/components/sidebar-navigation-screen-library/use-theme-patterns.js.map +1 -0
  288. package/build/components/sidebar-navigation-screen-main/index.js +12 -13
  289. package/build/components/sidebar-navigation-screen-main/index.js.map +1 -1
  290. package/build/components/sidebar-navigation-screen-navigation-item/index.js +5 -7
  291. package/build/components/sidebar-navigation-screen-navigation-item/index.js.map +1 -1
  292. package/build/components/sidebar-navigation-screen-navigation-menu/delete-modal.js +42 -0
  293. package/build/components/sidebar-navigation-screen-navigation-menu/delete-modal.js.map +1 -0
  294. package/build/components/sidebar-navigation-screen-navigation-menu/edit-button.js +41 -0
  295. package/build/components/sidebar-navigation-screen-navigation-menu/edit-button.js.map +1 -0
  296. package/build/components/sidebar-navigation-screen-navigation-menu/index.js +49 -97
  297. package/build/components/sidebar-navigation-screen-navigation-menu/index.js.map +1 -1
  298. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js +84 -0
  299. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -0
  300. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +71 -0
  301. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js.map +1 -0
  302. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +54 -0
  303. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js.map +1 -0
  304. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +49 -0
  305. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +1 -0
  306. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +163 -0
  307. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -0
  308. package/build/components/sidebar-navigation-screen-navigation-menus/constants.js +3 -1
  309. package/build/components/sidebar-navigation-screen-navigation-menus/constants.js.map +1 -1
  310. package/build/components/sidebar-navigation-screen-navigation-menus/index.js +59 -26
  311. package/build/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  312. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +75 -31
  313. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +1 -1
  314. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +23 -53
  315. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +1 -1
  316. package/build/components/sidebar-navigation-screen-page/index.js +63 -12
  317. package/build/components/sidebar-navigation-screen-page/index.js.map +1 -1
  318. package/build/components/sidebar-navigation-screen-page/page-details.js +150 -0
  319. package/build/components/sidebar-navigation-screen-page/page-details.js.map +1 -0
  320. package/build/components/sidebar-navigation-screen-page/status-label.js +111 -0
  321. package/build/components/sidebar-navigation-screen-page/status-label.js.map +1 -0
  322. package/build/components/sidebar-navigation-screen-pages/index.js +133 -21
  323. package/build/components/sidebar-navigation-screen-pages/index.js.map +1 -1
  324. package/build/components/sidebar-navigation-screen-pattern/index.js +66 -0
  325. package/build/components/sidebar-navigation-screen-pattern/index.js.map +1 -0
  326. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js +41 -0
  327. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js.map +1 -0
  328. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list.js +33 -0
  329. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list.js.map +1 -0
  330. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js +40 -0
  331. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js.map +1 -0
  332. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js +47 -0
  333. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js.map +1 -0
  334. package/build/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js +82 -0
  335. package/build/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js.map +1 -0
  336. package/build/components/sidebar-navigation-screen-pattern/use-pattern-details.js +80 -0
  337. package/build/components/sidebar-navigation-screen-pattern/use-pattern-details.js.map +1 -0
  338. package/build/components/sidebar-navigation-screen-template/home-template-details.js +212 -0
  339. package/build/components/sidebar-navigation-screen-template/home-template-details.js.map +1 -0
  340. package/build/components/sidebar-navigation-screen-template/index.js +43 -23
  341. package/build/components/sidebar-navigation-screen-template/index.js.map +1 -1
  342. package/build/components/sidebar-navigation-screen-templates/index.js +23 -28
  343. package/build/components/sidebar-navigation-screen-templates/index.js.map +1 -1
  344. package/build/components/site-hub/index.js +29 -24
  345. package/build/components/site-hub/index.js.map +1 -1
  346. package/build/components/site-icon/index.js +4 -5
  347. package/build/components/site-icon/index.js.map +1 -1
  348. package/build/components/start-template-options/index.js +15 -21
  349. package/build/components/start-template-options/index.js.map +1 -1
  350. package/build/components/style-book/index.js +45 -50
  351. package/build/components/style-book/index.js.map +1 -1
  352. package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js +16 -6
  353. package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
  354. package/build/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +4 -4
  355. package/build/components/sync-state-with-url/use-sync-canvas-mode-with-url.js.map +1 -1
  356. package/build/components/sync-state-with-url/use-sync-path-with-url.js +21 -12
  357. package/build/components/sync-state-with-url/use-sync-path-with-url.js.map +1 -1
  358. package/build/components/table/index.js +29 -0
  359. package/build/components/table/index.js.map +1 -0
  360. package/build/components/{list/actions → template-actions}/index.js +34 -31
  361. package/build/components/template-actions/index.js.map +1 -0
  362. package/build/components/{list/actions → template-actions}/rename-menu-item.js +4 -5
  363. package/build/components/template-actions/rename-menu-item.js.map +1 -0
  364. package/build/components/template-part-converter/convert-to-regular.js +4 -5
  365. package/build/components/template-part-converter/convert-to-regular.js.map +1 -1
  366. package/build/components/template-part-converter/convert-to-template-part.js +7 -27
  367. package/build/components/template-part-converter/convert-to-template-part.js.map +1 -1
  368. package/build/components/template-part-converter/index.js +12 -18
  369. package/build/components/template-part-converter/index.js.map +1 -1
  370. package/build/components/welcome-guide/editor.js +1 -1
  371. package/build/components/welcome-guide/editor.js.map +1 -1
  372. package/build/components/welcome-guide/image.js +4 -5
  373. package/build/components/welcome-guide/image.js.map +1 -1
  374. package/build/components/welcome-guide/styles.js +4 -3
  375. package/build/components/welcome-guide/styles.js.map +1 -1
  376. package/build/hooks/commands/use-common-commands.js +190 -0
  377. package/build/hooks/commands/use-common-commands.js.map +1 -0
  378. package/build/hooks/commands/use-edit-mode-commands.js +71 -29
  379. package/build/hooks/commands/use-edit-mode-commands.js.map +1 -1
  380. package/build/hooks/index.js +2 -0
  381. package/build/hooks/index.js.map +1 -1
  382. package/build/hooks/navigation-menu-edit.js +95 -0
  383. package/build/hooks/navigation-menu-edit.js.map +1 -0
  384. package/build/hooks/push-changes-to-global-styles/index.js +15 -10
  385. package/build/hooks/push-changes-to-global-styles/index.js.map +1 -1
  386. package/build/hooks/template-part-edit.js +11 -15
  387. package/build/hooks/template-part-edit.js.map +1 -1
  388. package/build/index.js +3 -6
  389. package/build/index.js.map +1 -1
  390. package/build/{private-apis.js → lock-unlock.js} +1 -1
  391. package/build/lock-unlock.js.map +1 -0
  392. package/build/store/actions.js +165 -125
  393. package/build/store/actions.js.map +1 -1
  394. package/build/store/index.js +3 -3
  395. package/build/store/index.js.map +1 -1
  396. package/build/store/private-actions.js +7 -10
  397. package/build/store/private-actions.js.map +1 -1
  398. package/build/store/reducer.js +33 -33
  399. package/build/store/reducer.js.map +1 -1
  400. package/build/store/selectors.js +70 -22
  401. package/build/store/selectors.js.map +1 -1
  402. package/build/store/utils.js +1 -3
  403. package/build/store/utils.js.map +1 -1
  404. package/build/utils/get-is-list-page.js +13 -7
  405. package/build/utils/get-is-list-page.js.map +1 -1
  406. package/build/utils/is-previewing-theme.js +2 -4
  407. package/build/utils/is-previewing-theme.js.map +1 -1
  408. package/build/utils/is-template-revertable.js +1 -1
  409. package/build/utils/is-template-revertable.js.map +1 -1
  410. package/build/utils/use-activate-theme.js +3 -3
  411. package/build/utils/use-activate-theme.js.map +1 -1
  412. package/build/utils/use-debounced-input.js +26 -0
  413. package/build/utils/use-debounced-input.js.map +1 -0
  414. package/build-module/components/add-new-page/index.js +93 -0
  415. package/build-module/components/add-new-page/index.js.map +1 -0
  416. package/build-module/components/add-new-pattern/index.js +82 -0
  417. package/build-module/components/add-new-pattern/index.js.map +1 -0
  418. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js +4 -5
  419. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js.map +1 -1
  420. package/build-module/components/add-new-template/add-custom-template-modal-content.js +25 -41
  421. package/build-module/components/add-new-template/add-custom-template-modal-content.js.map +1 -1
  422. package/build-module/components/add-new-template/index.js +6 -13
  423. package/build-module/components/add-new-template/index.js.map +1 -1
  424. package/build-module/components/add-new-template/new-template.js +22 -31
  425. package/build-module/components/add-new-template/new-template.js.map +1 -1
  426. package/build-module/components/add-new-template/utils.js +71 -120
  427. package/build-module/components/add-new-template/utils.js.map +1 -1
  428. package/build-module/components/app/index.js +1 -1
  429. package/build-module/components/app/index.js.map +1 -1
  430. package/build-module/components/block-editor/back-button.js +5 -5
  431. package/build-module/components/block-editor/back-button.js.map +1 -1
  432. package/build-module/components/block-editor/block-inspector-button.js +3 -4
  433. package/build-module/components/block-editor/block-inspector-button.js.map +1 -1
  434. package/build-module/components/block-editor/constants.js +2 -0
  435. package/build-module/components/block-editor/constants.js.map +1 -0
  436. package/build-module/components/block-editor/editor-canvas.js +12 -12
  437. package/build-module/components/block-editor/editor-canvas.js.map +1 -1
  438. package/build-module/components/block-editor/get-block-editor-provider.js +31 -0
  439. package/build-module/components/block-editor/get-block-editor-provider.js.map +1 -0
  440. package/build-module/components/block-editor/index.js +9 -125
  441. package/build-module/components/block-editor/index.js.map +1 -1
  442. package/build-module/components/block-editor/inserter-media-categories.js +25 -42
  443. package/build-module/components/block-editor/inserter-media-categories.js.map +1 -1
  444. package/build-module/components/block-editor/providers/default-block-editor-provider.js +42 -0
  445. package/build-module/components/block-editor/providers/default-block-editor-provider.js.map +1 -0
  446. package/build-module/components/block-editor/providers/navigation-block-editor-provider.js +102 -0
  447. package/build-module/components/block-editor/providers/navigation-block-editor-provider.js.map +1 -0
  448. package/build-module/components/block-editor/resizable-editor.js +6 -7
  449. package/build-module/components/block-editor/resizable-editor.js.map +1 -1
  450. package/build-module/components/block-editor/resize-handle.js +5 -7
  451. package/build-module/components/block-editor/resize-handle.js.map +1 -1
  452. package/build-module/components/block-editor/site-editor-canvas.js +115 -0
  453. package/build-module/components/block-editor/site-editor-canvas.js.map +1 -0
  454. package/build-module/components/block-editor/use-site-editor-settings.js +67 -0
  455. package/build-module/components/block-editor/use-site-editor-settings.js.map +1 -0
  456. package/build-module/components/canvas-spinner/index.js +15 -1
  457. package/build-module/components/canvas-spinner/index.js.map +1 -1
  458. package/build-module/components/code-editor/code-editor-text-area.js +5 -6
  459. package/build-module/components/code-editor/code-editor-text-area.js.map +1 -1
  460. package/build-module/components/create-pattern-modal/index.js +113 -0
  461. package/build-module/components/create-pattern-modal/index.js.map +1 -0
  462. package/build-module/components/create-template-part-modal/index.js +70 -34
  463. package/build-module/components/create-template-part-modal/index.js.map +1 -1
  464. package/build-module/components/editor/index.js +43 -24
  465. package/build-module/components/editor/index.js.map +1 -1
  466. package/build-module/components/editor-canvas-container/index.js +26 -10
  467. package/build-module/components/editor-canvas-container/index.js.map +1 -1
  468. package/build-module/components/error-boundary/warning.js +8 -10
  469. package/build-module/components/error-boundary/warning.js.map +1 -1
  470. package/build-module/components/global-styles/block-preview-panel.js +7 -10
  471. package/build-module/components/global-styles/block-preview-panel.js.map +1 -1
  472. package/build-module/components/global-styles/color-indicator-wrapper.js +7 -8
  473. package/build-module/components/global-styles/color-indicator-wrapper.js.map +1 -1
  474. package/build-module/components/global-styles/color-palette-panel.js +4 -5
  475. package/build-module/components/global-styles/color-palette-panel.js.map +1 -1
  476. package/build-module/components/global-styles/dimensions-panel.js +2 -4
  477. package/build-module/components/global-styles/dimensions-panel.js.map +1 -1
  478. package/build-module/components/global-styles/global-styles-provider.js +18 -25
  479. package/build-module/components/global-styles/global-styles-provider.js.map +1 -1
  480. package/build-module/components/global-styles/gradients-palette-panel.js +4 -5
  481. package/build-module/components/global-styles/gradients-palette-panel.js.map +1 -1
  482. package/build-module/components/global-styles/header.js +4 -5
  483. package/build-module/components/global-styles/header.js.map +1 -1
  484. package/build-module/components/global-styles/hooks.js +1 -1
  485. package/build-module/components/global-styles/hooks.js.map +1 -1
  486. package/build-module/components/global-styles/icon-with-current-color.js +7 -8
  487. package/build-module/components/global-styles/icon-with-current-color.js.map +1 -1
  488. package/build-module/components/global-styles/navigation-button.js +15 -14
  489. package/build-module/components/global-styles/navigation-button.js.map +1 -1
  490. package/build-module/components/global-styles/palette.js +11 -15
  491. package/build-module/components/global-styles/palette.js.map +1 -1
  492. package/build-module/components/global-styles/preview.js +42 -52
  493. package/build-module/components/global-styles/preview.js.map +1 -1
  494. package/build-module/components/global-styles/root-menu.js +1 -1
  495. package/build-module/components/global-styles/root-menu.js.map +1 -1
  496. package/build-module/components/global-styles/screen-block-list.js +5 -8
  497. package/build-module/components/global-styles/screen-block-list.js.map +1 -1
  498. package/build-module/components/global-styles/screen-block.js +10 -11
  499. package/build-module/components/global-styles/screen-block.js.map +1 -1
  500. package/build-module/components/global-styles/screen-color-palette.js +3 -4
  501. package/build-module/components/global-styles/screen-color-palette.js.map +1 -1
  502. package/build-module/components/global-styles/screen-colors.js +1 -1
  503. package/build-module/components/global-styles/screen-colors.js.map +1 -1
  504. package/build-module/components/global-styles/screen-css.js +1 -1
  505. package/build-module/components/global-styles/screen-css.js.map +1 -1
  506. package/build-module/components/global-styles/screen-layout.js +1 -1
  507. package/build-module/components/global-styles/screen-layout.js.map +1 -1
  508. package/build-module/components/global-styles/screen-revisions/index.js +9 -9
  509. package/build-module/components/global-styles/screen-revisions/index.js.map +1 -1
  510. package/build-module/components/global-styles/screen-revisions/revisions-buttons.js +14 -19
  511. package/build-module/components/global-styles/screen-revisions/revisions-buttons.js.map +1 -1
  512. package/build-module/components/global-styles/screen-revisions/use-global-styles-revisions.js +6 -11
  513. package/build-module/components/global-styles/screen-revisions/use-global-styles-revisions.js.map +1 -1
  514. package/build-module/components/global-styles/screen-root.js +4 -4
  515. package/build-module/components/global-styles/screen-root.js.map +1 -1
  516. package/build-module/components/global-styles/screen-typography-element.js +3 -4
  517. package/build-module/components/global-styles/screen-typography-element.js.map +1 -1
  518. package/build-module/components/global-styles/screen-typography.js +6 -7
  519. package/build-module/components/global-styles/screen-typography.js.map +1 -1
  520. package/build-module/components/global-styles/style-variations-container.js +15 -8
  521. package/build-module/components/global-styles/style-variations-container.js.map +1 -1
  522. package/build-module/components/global-styles/subtitle.js +4 -5
  523. package/build-module/components/global-styles/subtitle.js.map +1 -1
  524. package/build-module/components/global-styles/typography-panel.js +5 -6
  525. package/build-module/components/global-styles/typography-panel.js.map +1 -1
  526. package/build-module/components/global-styles/typography-preview.js +6 -7
  527. package/build-module/components/global-styles/typography-preview.js.map +1 -1
  528. package/build-module/components/global-styles/ui.js +123 -50
  529. package/build-module/components/global-styles/ui.js.map +1 -1
  530. package/build-module/components/global-styles/variations-panel.js +5 -6
  531. package/build-module/components/global-styles/variations-panel.js.map +1 -1
  532. package/build-module/components/global-styles-renderer/index.js +1 -1
  533. package/build-module/components/global-styles-renderer/index.js.map +1 -1
  534. package/build-module/components/header-edit-mode/document-actions/index.js +136 -25
  535. package/build-module/components/header-edit-mode/document-actions/index.js.map +1 -1
  536. package/build-module/components/header-edit-mode/index.js +6 -12
  537. package/build-module/components/header-edit-mode/index.js.map +1 -1
  538. package/build-module/components/header-edit-mode/more-menu/index.js +49 -53
  539. package/build-module/components/header-edit-mode/more-menu/index.js.map +1 -1
  540. package/build-module/components/header-edit-mode/plugin-sidebar-more-menu-item/index.js +4 -4
  541. package/build-module/components/header-edit-mode/plugin-sidebar-more-menu-item/index.js.map +1 -1
  542. package/build-module/components/header-edit-mode/tools-more-menu-group/index.js +5 -13
  543. package/build-module/components/header-edit-mode/tools-more-menu-group/index.js.map +1 -1
  544. package/build-module/components/header-edit-mode/undo-redo/redo.js +2 -3
  545. package/build-module/components/header-edit-mode/undo-redo/redo.js.map +1 -1
  546. package/build-module/components/header-edit-mode/undo-redo/undo.js +2 -3
  547. package/build-module/components/header-edit-mode/undo-redo/undo.js.map +1 -1
  548. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +3 -4
  549. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
  550. package/build-module/components/keyboard-shortcut-help-modal/index.js +40 -49
  551. package/build-module/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  552. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +10 -12
  553. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
  554. package/build-module/components/keyboard-shortcuts/edit-mode.js +7 -2
  555. package/build-module/components/keyboard-shortcuts/edit-mode.js.map +1 -1
  556. package/build-module/components/keyboard-shortcuts/index.js +7 -2
  557. package/build-module/components/keyboard-shortcuts/index.js.map +1 -1
  558. package/build-module/components/keyboard-shortcuts/register.js +1 -1
  559. package/build-module/components/keyboard-shortcuts/register.js.map +1 -1
  560. package/build-module/components/layout/hooks.js +21 -0
  561. package/build-module/components/layout/hooks.js.map +1 -1
  562. package/build-module/components/layout/index.js +37 -28
  563. package/build-module/components/layout/index.js.map +1 -1
  564. package/build-module/components/list/added-by.js +13 -23
  565. package/build-module/components/list/added-by.js.map +1 -1
  566. package/build-module/components/list/header.js +4 -7
  567. package/build-module/components/list/header.js.map +1 -1
  568. package/build-module/components/list/index.js +3 -5
  569. package/build-module/components/list/index.js.map +1 -1
  570. package/build-module/components/list/table.js +34 -39
  571. package/build-module/components/list/table.js.map +1 -1
  572. package/build-module/components/page/header.js +33 -0
  573. package/build-module/components/page/header.js.map +1 -0
  574. package/build-module/components/page/index.js +37 -0
  575. package/build-module/components/page/index.js.map +1 -0
  576. package/build-module/components/page-actions/delete-page-menu-item.js +58 -0
  577. package/build-module/components/page-actions/delete-page-menu-item.js.map +1 -0
  578. package/build-module/components/page-actions/index.js +30 -0
  579. package/build-module/components/page-actions/index.js.map +1 -0
  580. package/build-module/components/page-content-focus-manager/back-to-page-notification.js +53 -0
  581. package/build-module/components/page-content-focus-manager/back-to-page-notification.js.map +1 -0
  582. package/build-module/components/page-content-focus-manager/constants.js +2 -0
  583. package/build-module/components/page-content-focus-manager/constants.js.map +1 -0
  584. package/build-module/components/page-content-focus-manager/disable-non-page-content-blocks.js +45 -0
  585. package/build-module/components/page-content-focus-manager/disable-non-page-content-blocks.js.map +1 -0
  586. package/build-module/components/page-content-focus-manager/edit-template-notification.js +110 -0
  587. package/build-module/components/page-content-focus-manager/edit-template-notification.js.map +1 -0
  588. package/build-module/components/page-content-focus-manager/index.js +23 -0
  589. package/build-module/components/page-content-focus-manager/index.js.map +1 -0
  590. package/build-module/components/page-library/grid-item.js +145 -0
  591. package/build-module/components/page-library/grid-item.js.map +1 -0
  592. package/build-module/components/page-library/grid.js +38 -0
  593. package/build-module/components/page-library/grid.js.map +1 -0
  594. package/build-module/components/page-library/index.js +43 -0
  595. package/build-module/components/page-library/index.js.map +1 -0
  596. package/build-module/components/page-library/no-patterns.js +12 -0
  597. package/build-module/components/page-library/no-patterns.js.map +1 -0
  598. package/build-module/components/page-library/patterns-list.js +87 -0
  599. package/build-module/components/page-library/patterns-list.js.map +1 -0
  600. package/build-module/components/page-library/search-items.js +156 -0
  601. package/build-module/components/page-library/search-items.js.map +1 -0
  602. package/build-module/components/page-library/use-library-settings.js +40 -0
  603. package/build-module/components/page-library/use-library-settings.js.map +1 -0
  604. package/build-module/components/page-library/use-patterns.js +176 -0
  605. package/build-module/components/page-library/use-patterns.js.map +1 -0
  606. package/build-module/components/page-library/utils.js +13 -0
  607. package/build-module/components/page-library/utils.js.map +1 -0
  608. package/build-module/components/page-main/index.js +32 -0
  609. package/build-module/components/page-main/index.js.map +1 -0
  610. package/build-module/components/page-templates/index.js +80 -0
  611. package/build-module/components/page-templates/index.js.map +1 -0
  612. package/build-module/components/preferences-modal/enable-feature.js +4 -4
  613. package/build-module/components/preferences-modal/enable-feature.js.map +1 -1
  614. package/build-module/components/preferences-modal/index.js +4 -5
  615. package/build-module/components/preferences-modal/index.js.map +1 -1
  616. package/build-module/components/resizable-frame/index.js +24 -14
  617. package/build-module/components/resizable-frame/index.js.map +1 -1
  618. package/build-module/components/revisions/index.js +12 -14
  619. package/build-module/components/revisions/index.js.map +1 -1
  620. package/build-module/components/routes/link.js +14 -18
  621. package/build-module/components/routes/link.js.map +1 -1
  622. package/build-module/components/routes/use-title.js +2 -6
  623. package/build-module/components/routes/use-title.js.map +1 -1
  624. package/build-module/components/save-button/index.js +23 -13
  625. package/build-module/components/save-button/index.js.map +1 -1
  626. package/build-module/components/save-hub/index.js +95 -8
  627. package/build-module/components/save-hub/index.js.map +1 -1
  628. package/build-module/components/save-panel/index.js +62 -20
  629. package/build-module/components/save-panel/index.js.map +1 -1
  630. package/build-module/components/secondary-sidebar/inserter-sidebar.js +4 -5
  631. package/build-module/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
  632. package/build-module/components/secondary-sidebar/list-view-sidebar.js +48 -8
  633. package/build-module/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
  634. package/build-module/components/sidebar/index.js +11 -7
  635. package/build-module/components/sidebar/index.js.map +1 -1
  636. package/build-module/components/sidebar-button/index.js +2 -3
  637. package/build-module/components/sidebar-button/index.js.map +1 -1
  638. package/build-module/components/sidebar-edit-mode/default-sidebar.js +11 -12
  639. package/build-module/components/sidebar-edit-mode/default-sidebar.js.map +1 -1
  640. package/build-module/components/sidebar-edit-mode/global-styles-sidebar.js +19 -6
  641. package/build-module/components/sidebar-edit-mode/global-styles-sidebar.js.map +1 -1
  642. package/build-module/components/sidebar-edit-mode/index.js +14 -11
  643. package/build-module/components/sidebar-edit-mode/index.js.map +1 -1
  644. package/build-module/components/sidebar-edit-mode/page-panels/edit-template.js +71 -0
  645. package/build-module/components/sidebar-edit-mode/page-panels/edit-template.js.map +1 -0
  646. package/build-module/components/sidebar-edit-mode/page-panels/index.js +78 -0
  647. package/build-module/components/sidebar-edit-mode/page-panels/index.js.map +1 -0
  648. package/build-module/components/sidebar-edit-mode/page-panels/page-content.js +23 -0
  649. package/build-module/components/sidebar-edit-mode/page-panels/page-content.js.map +1 -0
  650. package/build-module/components/sidebar-edit-mode/page-panels/page-status.js +176 -0
  651. package/build-module/components/sidebar-edit-mode/page-panels/page-status.js.map +1 -0
  652. package/build-module/components/sidebar-edit-mode/page-panels/page-summary.js +33 -0
  653. package/build-module/components/sidebar-edit-mode/page-panels/page-summary.js.map +1 -0
  654. package/build-module/components/sidebar-edit-mode/page-panels/publish-date.js +85 -0
  655. package/build-module/components/sidebar-edit-mode/page-panels/publish-date.js.map +1 -0
  656. package/build-module/components/sidebar-edit-mode/plugin-sidebar/index.js +8 -9
  657. package/build-module/components/sidebar-edit-mode/plugin-sidebar/index.js.map +1 -1
  658. package/build-module/components/sidebar-edit-mode/settings-header/index.js +50 -23
  659. package/build-module/components/sidebar-edit-mode/settings-header/index.js.map +1 -1
  660. package/build-module/components/sidebar-edit-mode/sidebar-card/index.js +35 -0
  661. package/build-module/components/sidebar-edit-mode/sidebar-card/index.js.map +1 -0
  662. package/build-module/components/sidebar-edit-mode/sidebar-fixed-bottom.js +4 -5
  663. package/build-module/components/sidebar-edit-mode/sidebar-fixed-bottom.js.map +1 -1
  664. package/build-module/components/sidebar-edit-mode/template-panel/index.js +72 -0
  665. package/build-module/components/sidebar-edit-mode/template-panel/index.js.map +1 -0
  666. package/build-module/components/sidebar-edit-mode/{template-revisions/index.js → template-panel/last-revision.js} +7 -8
  667. package/build-module/components/sidebar-edit-mode/template-panel/last-revision.js.map +1 -0
  668. package/build-module/components/sidebar-edit-mode/{template-card → template-panel}/template-actions.js +12 -16
  669. package/build-module/components/sidebar-edit-mode/template-panel/template-actions.js.map +1 -0
  670. package/build-module/components/sidebar-edit-mode/{template-card → template-panel}/template-areas.js +15 -19
  671. package/build-module/components/sidebar-edit-mode/template-panel/template-areas.js.map +1 -0
  672. package/build-module/components/sidebar-navigation-item/index.js +17 -14
  673. package/build-module/components/sidebar-navigation-item/index.js.map +1 -1
  674. package/build-module/components/sidebar-navigation-screen/index.js +39 -21
  675. package/build-module/components/sidebar-navigation-screen/index.js.map +1 -1
  676. package/build-module/components/sidebar-navigation-screen-details-footer/index.js +27 -0
  677. package/build-module/components/sidebar-navigation-screen-details-footer/index.js.map +1 -0
  678. package/build-module/components/sidebar-navigation-screen-details-panel/index.js +30 -0
  679. package/build-module/components/sidebar-navigation-screen-details-panel/index.js.map +1 -0
  680. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js +14 -0
  681. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js.map +1 -0
  682. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js +24 -0
  683. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js.map +1 -0
  684. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js +14 -0
  685. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js.map +1 -0
  686. package/build-module/components/sidebar-navigation-screen-global-styles/index.js +112 -21
  687. package/build-module/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
  688. package/build-module/components/sidebar-navigation-screen-library/category-item.js +37 -0
  689. package/build-module/components/sidebar-navigation-screen-library/category-item.js.map +1 -0
  690. package/build-module/components/sidebar-navigation-screen-library/index.js +87 -0
  691. package/build-module/components/sidebar-navigation-screen-library/index.js.map +1 -0
  692. package/build-module/components/sidebar-navigation-screen-library/use-default-pattern-categories.js +25 -0
  693. package/build-module/components/sidebar-navigation-screen-library/use-default-pattern-categories.js.map +1 -0
  694. package/build-module/components/sidebar-navigation-screen-library/use-pattern-categories.js +61 -0
  695. package/build-module/components/sidebar-navigation-screen-library/use-pattern-categories.js.map +1 -0
  696. package/build-module/components/sidebar-navigation-screen-library/use-template-part-areas.js +34 -0
  697. package/build-module/components/sidebar-navigation-screen-library/use-template-part-areas.js.map +1 -0
  698. package/build-module/components/sidebar-navigation-screen-library/use-theme-patterns.js +27 -0
  699. package/build-module/components/sidebar-navigation-screen-library/use-theme-patterns.js.map +1 -0
  700. package/build-module/components/sidebar-navigation-screen-main/index.js +13 -13
  701. package/build-module/components/sidebar-navigation-screen-main/index.js.map +1 -1
  702. package/build-module/components/sidebar-navigation-screen-navigation-item/index.js +4 -6
  703. package/build-module/components/sidebar-navigation-screen-navigation-item/index.js.map +1 -1
  704. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-modal.js +33 -0
  705. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-modal.js.map +1 -0
  706. package/build-module/components/sidebar-navigation-screen-navigation-menu/edit-button.js +26 -0
  707. package/build-module/components/sidebar-navigation-screen-navigation-menu/edit-button.js.map +1 -0
  708. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js +47 -95
  709. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js.map +1 -1
  710. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js +70 -0
  711. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -0
  712. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +58 -0
  713. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js.map +1 -0
  714. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +46 -0
  715. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js.map +1 -0
  716. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +35 -0
  717. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +1 -0
  718. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +151 -0
  719. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -0
  720. package/build-module/components/sidebar-navigation-screen-navigation-menus/constants.js +3 -1
  721. package/build-module/components/sidebar-navigation-screen-navigation-menus/constants.js.map +1 -1
  722. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js +58 -26
  723. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  724. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +73 -28
  725. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +1 -1
  726. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +24 -53
  727. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +1 -1
  728. package/build-module/components/sidebar-navigation-screen-page/index.js +59 -14
  729. package/build-module/components/sidebar-navigation-screen-page/index.js.map +1 -1
  730. package/build-module/components/sidebar-navigation-screen-page/page-details.js +131 -0
  731. package/build-module/components/sidebar-navigation-screen-page/page-details.js.map +1 -0
  732. package/build-module/components/sidebar-navigation-screen-page/status-label.js +98 -0
  733. package/build-module/components/sidebar-navigation-screen-page/status-label.js.map +1 -0
  734. package/build-module/components/sidebar-navigation-screen-pages/index.js +130 -22
  735. package/build-module/components/sidebar-navigation-screen-pages/index.js.map +1 -1
  736. package/build-module/components/sidebar-navigation-screen-pattern/index.js +46 -0
  737. package/build-module/components/sidebar-navigation-screen-pattern/index.js.map +1 -0
  738. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js +28 -0
  739. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js.map +1 -0
  740. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list.js +22 -0
  741. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list.js.map +1 -0
  742. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js +27 -0
  743. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js.map +1 -0
  744. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js +34 -0
  745. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js.map +1 -0
  746. package/build-module/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js +71 -0
  747. package/build-module/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js.map +1 -0
  748. package/build-module/components/sidebar-navigation-screen-pattern/use-pattern-details.js +64 -0
  749. package/build-module/components/sidebar-navigation-screen-pattern/use-pattern-details.js.map +1 -0
  750. package/build-module/components/sidebar-navigation-screen-template/home-template-details.js +192 -0
  751. package/build-module/components/sidebar-navigation-screen-template/home-template-details.js.map +1 -0
  752. package/build-module/components/sidebar-navigation-screen-template/index.js +40 -23
  753. package/build-module/components/sidebar-navigation-screen-template/index.js.map +1 -1
  754. package/build-module/components/sidebar-navigation-screen-templates/index.js +23 -27
  755. package/build-module/components/sidebar-navigation-screen-templates/index.js.map +1 -1
  756. package/build-module/components/site-hub/index.js +28 -22
  757. package/build-module/components/site-hub/index.js.map +1 -1
  758. package/build-module/components/site-icon/index.js +4 -5
  759. package/build-module/components/site-icon/index.js.map +1 -1
  760. package/build-module/components/start-template-options/index.js +15 -21
  761. package/build-module/components/start-template-options/index.js.map +1 -1
  762. package/build-module/components/style-book/index.js +44 -48
  763. package/build-module/components/style-book/index.js.map +1 -1
  764. package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js +15 -5
  765. package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
  766. package/build-module/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +1 -1
  767. package/build-module/components/sync-state-with-url/use-sync-canvas-mode-with-url.js.map +1 -1
  768. package/build-module/components/sync-state-with-url/use-sync-path-with-url.js +20 -11
  769. package/build-module/components/sync-state-with-url/use-sync-path-with-url.js.map +1 -1
  770. package/build-module/components/table/index.js +21 -0
  771. package/build-module/components/table/index.js.map +1 -0
  772. package/build-module/components/{list/actions → template-actions}/index.js +34 -31
  773. package/build-module/components/template-actions/index.js.map +1 -0
  774. package/build-module/components/{list/actions → template-actions}/rename-menu-item.js +4 -5
  775. package/build-module/components/template-actions/rename-menu-item.js.map +1 -0
  776. package/build-module/components/template-part-converter/convert-to-regular.js +4 -5
  777. package/build-module/components/template-part-converter/convert-to-regular.js.map +1 -1
  778. package/build-module/components/template-part-converter/convert-to-template-part.js +8 -26
  779. package/build-module/components/template-part-converter/convert-to-template-part.js.map +1 -1
  780. package/build-module/components/template-part-converter/index.js +12 -18
  781. package/build-module/components/template-part-converter/index.js.map +1 -1
  782. package/build-module/components/welcome-guide/editor.js +1 -1
  783. package/build-module/components/welcome-guide/editor.js.map +1 -1
  784. package/build-module/components/welcome-guide/image.js +4 -5
  785. package/build-module/components/welcome-guide/image.js.map +1 -1
  786. package/build-module/components/welcome-guide/styles.js +5 -3
  787. package/build-module/components/welcome-guide/styles.js.map +1 -1
  788. package/build-module/hooks/commands/use-common-commands.js +172 -0
  789. package/build-module/hooks/commands/use-common-commands.js.map +1 -0
  790. package/build-module/hooks/commands/use-edit-mode-commands.js +72 -30
  791. package/build-module/hooks/commands/use-edit-mode-commands.js.map +1 -1
  792. package/build-module/hooks/index.js +1 -0
  793. package/build-module/hooks/index.js.map +1 -1
  794. package/build-module/hooks/navigation-menu-edit.js +77 -0
  795. package/build-module/hooks/navigation-menu-edit.js.map +1 -0
  796. package/build-module/hooks/push-changes-to-global-styles/index.js +14 -9
  797. package/build-module/hooks/push-changes-to-global-styles/index.js.map +1 -1
  798. package/build-module/hooks/template-part-edit.js +10 -11
  799. package/build-module/hooks/template-part-edit.js.map +1 -1
  800. package/build-module/index.js +3 -6
  801. package/build-module/index.js.map +1 -1
  802. package/build-module/{private-apis.js → lock-unlock.js} +1 -1
  803. package/build-module/lock-unlock.js.map +1 -0
  804. package/build-module/store/actions.js +157 -126
  805. package/build-module/store/actions.js.map +1 -1
  806. package/build-module/store/index.js +1 -1
  807. package/build-module/store/index.js.map +1 -1
  808. package/build-module/store/private-actions.js +7 -10
  809. package/build-module/store/private-actions.js.map +1 -1
  810. package/build-module/store/reducer.js +31 -33
  811. package/build-module/store/reducer.js.map +1 -1
  812. package/build-module/store/selectors.js +62 -21
  813. package/build-module/store/selectors.js.map +1 -1
  814. package/build-module/store/utils.js +1 -3
  815. package/build-module/store/utils.js.map +1 -1
  816. package/build-module/utils/get-is-list-page.js +13 -7
  817. package/build-module/utils/get-is-list-page.js.map +1 -1
  818. package/build-module/utils/is-previewing-theme.js +2 -4
  819. package/build-module/utils/is-previewing-theme.js.map +1 -1
  820. package/build-module/utils/is-template-revertable.js +1 -1
  821. package/build-module/utils/is-template-revertable.js.map +1 -1
  822. package/build-module/utils/use-activate-theme.js +2 -2
  823. package/build-module/utils/use-activate-theme.js.map +1 -1
  824. package/build-module/utils/use-debounced-input.js +17 -0
  825. package/build-module/utils/use-debounced-input.js.map +1 -0
  826. package/build-style/style-rtl.css +587 -71
  827. package/build-style/style.css +587 -71
  828. package/package.json +44 -37
  829. package/src/components/add-new-page/index.js +105 -0
  830. package/src/components/add-new-pattern/index.js +94 -0
  831. package/src/components/add-new-template/add-custom-template-modal-content.js +1 -13
  832. package/src/components/add-new-template/index.js +0 -3
  833. package/src/components/add-new-template/new-template.js +3 -3
  834. package/src/components/app/index.js +1 -1
  835. package/src/components/block-editor/back-button.js +5 -2
  836. package/src/components/block-editor/constants.js +1 -0
  837. package/src/components/block-editor/editor-canvas.js +1 -1
  838. package/src/components/block-editor/get-block-editor-provider.js +29 -0
  839. package/src/components/block-editor/index.js +15 -188
  840. package/src/components/block-editor/providers/default-block-editor-provider.js +44 -0
  841. package/src/components/block-editor/providers/navigation-block-editor-provider.js +114 -0
  842. package/src/components/block-editor/site-editor-canvas.js +155 -0
  843. package/src/components/block-editor/style.scss +6 -0
  844. package/src/components/block-editor/use-site-editor-settings.js +91 -0
  845. package/src/components/canvas-spinner/index.js +11 -1
  846. package/src/components/create-pattern-modal/index.js +134 -0
  847. package/src/components/create-pattern-modal/style.scss +3 -0
  848. package/src/components/create-template-part-modal/index.js +63 -3
  849. package/src/components/editor/index.js +32 -17
  850. package/src/components/editor/style.scss +6 -11
  851. package/src/components/editor-canvas-container/index.js +21 -4
  852. package/src/components/global-styles/color-palette-panel.js +1 -1
  853. package/src/components/global-styles/dimensions-panel.js +1 -1
  854. package/src/components/global-styles/global-styles-provider.js +10 -14
  855. package/src/components/global-styles/gradients-palette-panel.js +1 -1
  856. package/src/components/global-styles/hooks.js +1 -1
  857. package/src/components/global-styles/palette.js +2 -2
  858. package/src/components/global-styles/preview.js +1 -1
  859. package/src/components/global-styles/root-menu.js +1 -1
  860. package/src/components/global-styles/screen-block-list.js +1 -1
  861. package/src/components/global-styles/screen-block.js +1 -1
  862. package/src/components/global-styles/screen-colors.js +1 -1
  863. package/src/components/global-styles/screen-css.js +1 -1
  864. package/src/components/global-styles/screen-layout.js +1 -1
  865. package/src/components/global-styles/screen-revisions/index.js +1 -1
  866. package/src/components/global-styles/screen-revisions/use-global-styles-revisions.js +8 -6
  867. package/src/components/global-styles/screen-root.js +1 -1
  868. package/src/components/global-styles/screen-typography.js +1 -1
  869. package/src/components/global-styles/stories/index.js +1 -1
  870. package/src/components/global-styles/style-variations-container.js +13 -3
  871. package/src/components/global-styles/style.scss +11 -0
  872. package/src/components/global-styles/typography-panel.js +1 -1
  873. package/src/components/global-styles/typography-preview.js +1 -1
  874. package/src/components/global-styles/ui.js +132 -45
  875. package/src/components/global-styles-renderer/index.js +1 -1
  876. package/src/components/header-edit-mode/document-actions/index.js +155 -36
  877. package/src/components/header-edit-mode/document-actions/style.scss +72 -13
  878. package/src/components/header-edit-mode/index.js +4 -4
  879. package/src/components/header-edit-mode/tools-more-menu-group/index.js +1 -6
  880. package/src/components/keyboard-shortcuts/edit-mode.js +5 -1
  881. package/src/components/keyboard-shortcuts/index.js +5 -1
  882. package/src/components/keyboard-shortcuts/register.js +1 -1
  883. package/src/components/layout/hooks.js +21 -0
  884. package/src/components/layout/index.js +92 -70
  885. package/src/components/layout/style.scss +7 -0
  886. package/src/components/list/index.js +1 -1
  887. package/src/components/list/table.js +6 -2
  888. package/src/components/page/header.js +38 -0
  889. package/src/components/page/index.js +38 -0
  890. package/src/components/page/style.scss +38 -0
  891. package/src/components/page-actions/delete-page-menu-item.js +71 -0
  892. package/src/components/page-actions/index.js +36 -0
  893. package/src/components/page-content-focus-manager/back-to-page-notification.js +65 -0
  894. package/src/components/page-content-focus-manager/constants.js +5 -0
  895. package/src/components/page-content-focus-manager/disable-non-page-content-blocks.js +52 -0
  896. package/src/components/page-content-focus-manager/edit-template-notification.js +108 -0
  897. package/src/components/page-content-focus-manager/index.js +26 -0
  898. package/src/components/page-library/grid-item.js +179 -0
  899. package/src/components/page-library/grid.js +39 -0
  900. package/src/components/page-library/index.js +39 -0
  901. package/src/components/page-library/no-patterns.js +12 -0
  902. package/src/components/page-library/patterns-list.js +114 -0
  903. package/src/components/page-library/search-items.js +171 -0
  904. package/src/components/page-library/style.scss +105 -0
  905. package/src/components/page-library/use-library-settings.js +51 -0
  906. package/src/components/page-library/use-patterns.js +238 -0
  907. package/src/components/page-library/utils.js +21 -0
  908. package/src/components/page-main/index.js +27 -0
  909. package/src/components/page-templates/index.js +104 -0
  910. package/src/components/resizable-frame/index.js +18 -6
  911. package/src/components/resizable-frame/style.scss +20 -18
  912. package/src/components/revisions/index.js +7 -8
  913. package/src/components/routes/link.js +2 -2
  914. package/src/components/routes/use-title.js +1 -1
  915. package/src/components/save-button/index.js +16 -7
  916. package/src/components/save-hub/index.js +143 -38
  917. package/src/components/save-hub/style.scss +6 -0
  918. package/src/components/save-panel/index.js +63 -16
  919. package/src/components/secondary-sidebar/list-view-sidebar.js +56 -2
  920. package/src/components/sidebar/index.js +13 -7
  921. package/src/components/sidebar/style.scss +3 -4
  922. package/src/components/sidebar-edit-mode/global-styles-sidebar.js +42 -29
  923. package/src/components/sidebar-edit-mode/index.js +16 -14
  924. package/src/components/sidebar-edit-mode/page-panels/edit-template.js +69 -0
  925. package/src/components/sidebar-edit-mode/page-panels/index.js +89 -0
  926. package/src/components/sidebar-edit-mode/page-panels/page-content.js +27 -0
  927. package/src/components/sidebar-edit-mode/page-panels/page-status.js +233 -0
  928. package/src/components/sidebar-edit-mode/page-panels/page-summary.js +35 -0
  929. package/src/components/sidebar-edit-mode/page-panels/publish-date.js +94 -0
  930. package/src/components/sidebar-edit-mode/page-panels/style.scss +41 -0
  931. package/src/components/sidebar-edit-mode/settings-header/index.js +61 -29
  932. package/src/components/sidebar-edit-mode/sidebar-card/index.js +34 -0
  933. package/src/components/sidebar-edit-mode/sidebar-card/style.scss +34 -0
  934. package/src/components/sidebar-edit-mode/sidebar-fixed-bottom.js +1 -1
  935. package/src/components/sidebar-edit-mode/template-panel/index.js +65 -0
  936. package/src/components/sidebar-edit-mode/{template-card → template-panel}/style.scss +2 -32
  937. package/src/components/sidebar-navigation-item/index.js +6 -2
  938. package/src/components/sidebar-navigation-item/style.scss +7 -0
  939. package/src/components/sidebar-navigation-screen/index.js +89 -53
  940. package/src/components/sidebar-navigation-screen/style.scss +66 -5
  941. package/src/components/sidebar-navigation-screen-details-footer/index.js +45 -0
  942. package/src/components/sidebar-navigation-screen-details-footer/style.scss +5 -0
  943. package/src/components/sidebar-navigation-screen-details-panel/index.js +40 -0
  944. package/src/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js +14 -0
  945. package/src/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js +29 -0
  946. package/src/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js +14 -0
  947. package/src/components/sidebar-navigation-screen-details-panel/style.scss +25 -0
  948. package/src/components/sidebar-navigation-screen-global-styles/index.js +126 -14
  949. package/src/components/sidebar-navigation-screen-global-styles/style.scss +12 -0
  950. package/src/components/sidebar-navigation-screen-library/category-item.js +43 -0
  951. package/src/components/sidebar-navigation-screen-library/index.js +136 -0
  952. package/src/components/sidebar-navigation-screen-library/style.scss +7 -0
  953. package/src/components/sidebar-navigation-screen-library/use-default-pattern-categories.js +32 -0
  954. package/src/components/sidebar-navigation-screen-library/use-pattern-categories.js +64 -0
  955. package/src/components/sidebar-navigation-screen-library/use-template-part-areas.js +33 -0
  956. package/src/components/sidebar-navigation-screen-library/use-theme-patterns.js +44 -0
  957. package/src/components/sidebar-navigation-screen-main/index.js +11 -14
  958. package/src/components/sidebar-navigation-screen-navigation-item/index.js +1 -1
  959. package/src/components/sidebar-navigation-screen-navigation-menu/delete-modal.js +45 -0
  960. package/src/components/sidebar-navigation-screen-navigation-menu/edit-button.js +24 -0
  961. package/src/components/sidebar-navigation-screen-navigation-menu/index.js +50 -96
  962. package/src/components/sidebar-navigation-screen-navigation-menu/more-menu.js +89 -0
  963. package/src/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +51 -0
  964. package/src/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +51 -0
  965. package/src/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +39 -0
  966. package/src/components/sidebar-navigation-screen-navigation-menu/style.scss +15 -0
  967. package/src/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +175 -0
  968. package/src/components/sidebar-navigation-screen-navigation-menus/constants.js +3 -1
  969. package/src/components/sidebar-navigation-screen-navigation-menus/index.js +43 -7
  970. package/src/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +61 -2
  971. package/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +25 -47
  972. package/src/components/sidebar-navigation-screen-navigation-menus/style.scss +5 -1
  973. package/src/components/sidebar-navigation-screen-page/index.js +98 -24
  974. package/src/components/sidebar-navigation-screen-page/page-details.js +166 -0
  975. package/src/components/sidebar-navigation-screen-page/status-label.js +105 -0
  976. package/src/components/sidebar-navigation-screen-page/style.scss +63 -0
  977. package/src/components/sidebar-navigation-screen-pages/index.js +181 -44
  978. package/src/components/sidebar-navigation-screen-pattern/index.js +44 -0
  979. package/src/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js +28 -0
  980. package/src/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list.js +21 -0
  981. package/src/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js +30 -0
  982. package/src/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js +33 -0
  983. package/src/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js +71 -0
  984. package/src/components/sidebar-navigation-screen-pattern/use-pattern-details.js +86 -0
  985. package/src/components/sidebar-navigation-screen-template/home-template-details.js +230 -0
  986. package/src/components/sidebar-navigation-screen-template/index.js +44 -27
  987. package/src/components/sidebar-navigation-screen-template/style.scss +23 -0
  988. package/src/components/sidebar-navigation-screen-templates/index.js +19 -26
  989. package/src/components/site-hub/index.js +26 -7
  990. package/src/components/site-hub/style.scss +26 -0
  991. package/src/components/style-book/index.js +1 -1
  992. package/src/components/sync-state-with-url/use-init-edited-entity-from-url.js +16 -3
  993. package/src/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +1 -1
  994. package/src/components/sync-state-with-url/use-sync-path-with-url.js +11 -1
  995. package/src/components/table/index.js +33 -0
  996. package/src/components/table/style.scss +37 -0
  997. package/src/components/{list/actions → template-actions}/index.js +19 -6
  998. package/src/components/template-part-converter/convert-to-template-part.js +4 -27
  999. package/src/components/welcome-guide/editor.js +1 -1
  1000. package/src/components/welcome-guide/styles.js +5 -3
  1001. package/src/hooks/commands/use-common-commands.js +167 -0
  1002. package/src/hooks/commands/use-edit-mode-commands.js +61 -25
  1003. package/src/hooks/index.js +1 -0
  1004. package/src/hooks/navigation-menu-edit.js +95 -0
  1005. package/src/hooks/push-changes-to-global-styles/index.js +14 -8
  1006. package/src/hooks/template-part-edit.js +1 -1
  1007. package/src/store/actions.js +52 -1
  1008. package/src/store/index.js +1 -1
  1009. package/src/store/reducer.js +21 -0
  1010. package/src/store/selectors.js +54 -5
  1011. package/src/store/test/actions.js +31 -0
  1012. package/src/store/test/reducer.js +44 -0
  1013. package/src/store/test/selectors.js +57 -0
  1014. package/src/style.scss +17 -4
  1015. package/src/utils/get-is-list-page.js +16 -4
  1016. package/src/utils/is-previewing-theme.js +2 -3
  1017. package/src/utils/use-activate-theme.js +3 -2
  1018. package/src/utils/use-debounced-input.js +17 -0
  1019. package/build/components/add-new-template/new-template-part.js +0 -116
  1020. package/build/components/add-new-template/new-template-part.js.map +0 -1
  1021. package/build/components/list/actions/index.js.map +0 -1
  1022. package/build/components/list/actions/rename-menu-item.js.map +0 -1
  1023. package/build/components/sidebar-edit-mode/template-card/index.js.map +0 -1
  1024. package/build/components/sidebar-edit-mode/template-card/template-actions.js.map +0 -1
  1025. package/build/components/sidebar-edit-mode/template-card/template-areas.js.map +0 -1
  1026. package/build/components/sidebar-edit-mode/template-revisions/index.js.map +0 -1
  1027. package/build/components/sidebar-navigation-screen-navigation-menus/navigator-button.js +0 -53
  1028. package/build/components/sidebar-navigation-screen-navigation-menus/navigator-button.js.map +0 -1
  1029. package/build/components/sidebar-navigation-subtitle/index.js +0 -18
  1030. package/build/components/sidebar-navigation-subtitle/index.js.map +0 -1
  1031. package/build/private-apis.js.map +0 -1
  1032. package/build-module/components/add-new-template/new-template-part.js +0 -96
  1033. package/build-module/components/add-new-template/new-template-part.js.map +0 -1
  1034. package/build-module/components/list/actions/index.js.map +0 -1
  1035. package/build-module/components/list/actions/rename-menu-item.js.map +0 -1
  1036. package/build-module/components/sidebar-edit-mode/template-card/index.js +0 -68
  1037. package/build-module/components/sidebar-edit-mode/template-card/index.js.map +0 -1
  1038. package/build-module/components/sidebar-edit-mode/template-card/template-actions.js.map +0 -1
  1039. package/build-module/components/sidebar-edit-mode/template-card/template-areas.js.map +0 -1
  1040. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigator-button.js +0 -40
  1041. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigator-button.js.map +0 -1
  1042. package/build-module/components/sidebar-navigation-subtitle/index.js +0 -10
  1043. package/build-module/components/sidebar-navigation-subtitle/index.js.map +0 -1
  1044. package/build-module/private-apis.js.map +0 -1
  1045. package/src/components/add-new-template/new-template-part.js +0 -109
  1046. package/src/components/sidebar-edit-mode/template-card/index.js +0 -59
  1047. package/src/components/sidebar-navigation-screen-navigation-menus/navigator-button.js +0 -47
  1048. package/src/components/sidebar-navigation-screen-pages/style.scss +0 -4
  1049. package/src/components/sidebar-navigation-screen-templates/style.scss +0 -4
  1050. package/src/components/sidebar-navigation-subtitle/index.js +0 -5
  1051. package/src/components/sidebar-navigation-subtitle/style.scss +0 -7
  1052. /package/src/components/sidebar-edit-mode/{template-revisions/index.js → template-panel/last-revision.js} +0 -0
  1053. /package/src/components/sidebar-edit-mode/{template-card → template-panel}/template-actions.js +0 -0
  1054. /package/src/components/sidebar-edit-mode/{template-card → template-panel}/template-areas.js +0 -0
  1055. /package/src/components/{list/actions → template-actions}/rename-menu-item.js +0 -0
  1056. /package/src/{private-apis.js → lock-unlock.js} +0 -0
@@ -10,7 +10,7 @@ var _element = require("@wordpress/element");
10
10
 
11
11
  var _components = require("@wordpress/components");
12
12
 
13
- var _privateApis = require("../../private-apis");
13
+ var _lockUnlock = require("../../lock-unlock");
14
14
 
15
15
  /**
16
16
  * WordPress dependencies
@@ -21,7 +21,7 @@ var _privateApis = require("../../private-apis");
21
21
  */
22
22
  const {
23
23
  createPrivateSlotFill
24
- } = (0, _privateApis.unlock)(_components.privateApis);
24
+ } = (0, _lockUnlock.unlock)(_components.privateApis);
25
25
  const SIDEBAR_FIXED_BOTTOM_SLOT_FILL_NAME = 'SidebarFixedBottom';
26
26
  const {
27
27
  Slot: SidebarFixedBottomSlot,
@@ -29,10 +29,9 @@ const {
29
29
  } = createPrivateSlotFill(SIDEBAR_FIXED_BOTTOM_SLOT_FILL_NAME);
30
30
  exports.SidebarFixedBottomSlot = SidebarFixedBottomSlot;
31
31
 
32
- function SidebarFixedBottom(_ref) {
33
- let {
34
- children
35
- } = _ref;
32
+ function SidebarFixedBottom({
33
+ children
34
+ }) {
36
35
  return (0, _element.createElement)(SidebarFixedBottomFill, null, (0, _element.createElement)("div", {
37
36
  className: "edit-site-sidebar-fixed-bottom-slot"
38
37
  }, children));
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar-edit-mode/sidebar-fixed-bottom.js"],"names":["createPrivateSlotFill","componentsPrivateApis","SIDEBAR_FIXED_BOTTOM_SLOT_FILL_NAME","Slot","SidebarFixedBottomSlot","Fill","SidebarFixedBottomFill","SidebarFixedBottom","children"],"mappings":";;;;;;;;;;AAGA;;AAKA;;AARA;AACA;AACA;;AAGA;AACA;AACA;AAGA,MAAM;AAAEA,EAAAA;AAAF,IAA4B,yBAAQC,uBAAR,CAAlC;AACA,MAAMC,mCAAmC,GAAG,oBAA5C;AACA,MAAM;AAAEC,EAAAA,IAAI,EAAEC,sBAAR;AAAgCC,EAAAA,IAAI,EAAEC;AAAtC,IACLN,qBAAqB,CAAEE,mCAAF,CADtB;;;AAGe,SAASK,kBAAT,OAA4C;AAAA,MAAf;AAAEC,IAAAA;AAAF,GAAe;AAC1D,SACC,4BAAC,sBAAD,QACC;AAAK,IAAA,SAAS,EAAC;AAAf,KACGA,QADH,CADD,CADD;AAOA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { privateApis as componentsPrivateApis } from '@wordpress/components';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../private-apis';\n\nconst { createPrivateSlotFill } = unlock( componentsPrivateApis );\nconst SIDEBAR_FIXED_BOTTOM_SLOT_FILL_NAME = 'SidebarFixedBottom';\nconst { Slot: SidebarFixedBottomSlot, Fill: SidebarFixedBottomFill } =\n\tcreatePrivateSlotFill( SIDEBAR_FIXED_BOTTOM_SLOT_FILL_NAME );\n\nexport default function SidebarFixedBottom( { children } ) {\n\treturn (\n\t\t<SidebarFixedBottomFill>\n\t\t\t<div className=\"edit-site-sidebar-fixed-bottom-slot\">\n\t\t\t\t{ children }\n\t\t\t</div>\n\t\t</SidebarFixedBottomFill>\n\t);\n}\n\nexport { SidebarFixedBottomSlot };\n"]}
1
+ {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar-edit-mode/sidebar-fixed-bottom.js"],"names":["createPrivateSlotFill","componentsPrivateApis","SIDEBAR_FIXED_BOTTOM_SLOT_FILL_NAME","Slot","SidebarFixedBottomSlot","Fill","SidebarFixedBottomFill","SidebarFixedBottom","children"],"mappings":";;;;;;;;;;AAGA;;AAKA;;AARA;AACA;AACA;;AAGA;AACA;AACA;AAGA,MAAM;AAAEA,EAAAA;AAAF,IAA4B,wBAAQC,uBAAR,CAAlC;AACA,MAAMC,mCAAmC,GAAG,oBAA5C;AACA,MAAM;AAAEC,EAAAA,IAAI,EAAEC,sBAAR;AAAgCC,EAAAA,IAAI,EAAEC;AAAtC,IACLN,qBAAqB,CAAEE,mCAAF,CADtB;;;AAGe,SAASK,kBAAT,CAA6B;AAAEC,EAAAA;AAAF,CAA7B,EAA4C;AAC1D,SACC,4BAAC,sBAAD,QACC;AAAK,IAAA,SAAS,EAAC;AAAf,KACGA,QADH,CADD,CADD;AAOA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { privateApis as componentsPrivateApis } from '@wordpress/components';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\n\nconst { createPrivateSlotFill } = unlock( componentsPrivateApis );\nconst SIDEBAR_FIXED_BOTTOM_SLOT_FILL_NAME = 'SidebarFixedBottom';\nconst { Slot: SidebarFixedBottomSlot, Fill: SidebarFixedBottomFill } =\n\tcreatePrivateSlotFill( SIDEBAR_FIXED_BOTTOM_SLOT_FILL_NAME );\n\nexport default function SidebarFixedBottom( { children } ) {\n\treturn (\n\t\t<SidebarFixedBottomFill>\n\t\t\t<div className=\"edit-site-sidebar-fixed-bottom-slot\">\n\t\t\t\t{ children }\n\t\t\t</div>\n\t\t</SidebarFixedBottomFill>\n\t);\n}\n\nexport { SidebarFixedBottomSlot };\n"]}
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.default = TemplateCard;
8
+ exports.default = TemplatePanel;
9
9
 
10
10
  var _element = require("@wordpress/element");
11
11
 
@@ -19,12 +19,20 @@ var _coreData = require("@wordpress/core-data");
19
19
 
20
20
  var _htmlEntities = require("@wordpress/html-entities");
21
21
 
22
+ var _i18n = require("@wordpress/i18n");
23
+
24
+ var _icons = require("@wordpress/icons");
25
+
22
26
  var _store = require("../../../store");
23
27
 
24
28
  var _templateActions = _interopRequireDefault(require("./template-actions"));
25
29
 
26
30
  var _templateAreas = _interopRequireDefault(require("./template-areas"));
27
31
 
32
+ var _lastRevision = _interopRequireDefault(require("./last-revision"));
33
+
34
+ var _sidebarCard = _interopRequireDefault(require("../sidebar-card"));
35
+
28
36
  /**
29
37
  * WordPress dependencies
30
38
  */
@@ -32,14 +40,14 @@ var _templateAreas = _interopRequireDefault(require("./template-areas"));
32
40
  /**
33
41
  * Internal dependencies
34
42
  */
35
- function TemplateCard() {
43
+ function TemplatePanel() {
36
44
  const {
37
45
  info: {
38
46
  title,
39
47
  description,
40
48
  icon
41
49
  },
42
- template
50
+ record
43
51
  } = (0, _data.useSelect)(select => {
44
52
  const {
45
53
  getEditedPostType,
@@ -53,11 +61,13 @@ function TemplateCard() {
53
61
  } = select(_editor.store);
54
62
  const postType = getEditedPostType();
55
63
  const postId = getEditedPostId();
56
- const record = getEditedEntityRecord('postType', postType, postId);
57
- const info = record ? getTemplateInfo(record) : {};
64
+
65
+ const _record = getEditedEntityRecord('postType', postType, postId);
66
+
67
+ const info = _record ? getTemplateInfo(_record) : {};
58
68
  return {
59
69
  info,
60
- template: record
70
+ record: _record
61
71
  };
62
72
  }, []);
63
73
 
@@ -65,21 +75,19 @@ function TemplateCard() {
65
75
  return null;
66
76
  }
67
77
 
68
- return (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)("div", {
69
- className: "edit-site-template-card"
70
- }, (0, _element.createElement)(_components.Icon, {
71
- className: "edit-site-template-card__icon",
72
- icon: icon
73
- }), (0, _element.createElement)("div", {
74
- className: "edit-site-template-card__content"
75
- }, (0, _element.createElement)("div", {
76
- className: "edit-site-template-card__header"
77
- }, (0, _element.createElement)("h2", {
78
- className: "edit-site-template-card__title"
79
- }, (0, _htmlEntities.decodeEntities)(title)), (0, _element.createElement)(_templateActions.default, {
80
- template: template
81
- })), (0, _element.createElement)("div", {
82
- className: "edit-site-template-card__description"
83
- }, (0, _htmlEntities.decodeEntities)(description)), (0, _element.createElement)(_templateAreas.default, null))));
78
+ return (0, _element.createElement)(_components.PanelBody, {
79
+ className: "edit-site-template-panel"
80
+ }, (0, _element.createElement)(_sidebarCard.default, {
81
+ className: "edit-site-template-card",
82
+ title: (0, _htmlEntities.decodeEntities)(title),
83
+ icon: record?.type === 'wp_navigation' ? _icons.navigation : icon,
84
+ description: (0, _htmlEntities.decodeEntities)(description),
85
+ actions: (0, _element.createElement)(_templateActions.default, {
86
+ template: record
87
+ })
88
+ }, (0, _element.createElement)(_templateAreas.default, null)), (0, _element.createElement)(_components.PanelRow, {
89
+ header: (0, _i18n.__)('Editing history'),
90
+ className: "edit-site-template-revisions"
91
+ }, (0, _element.createElement)(_lastRevision.default, null)));
84
92
  }
85
93
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar-edit-mode/template-panel/index.js"],"names":["TemplatePanel","info","title","description","icon","record","select","getEditedPostType","getEditedPostId","editSiteStore","getEditedEntityRecord","coreStore","__experimentalGetTemplateInfo","getTemplateInfo","editorStore","postType","postId","_record","type","navigationIcon"],"mappings":";;;;;;;;;;;AAGA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAKA;;AACA;;AACA;;AACA;;AACA;;AAlBA;AACA;AACA;;AASA;AACA;AACA;AAOe,SAASA,aAAT,GAAyB;AACvC,QAAM;AACLC,IAAAA,IAAI,EAAE;AAAEC,MAAAA,KAAF;AAASC,MAAAA,WAAT;AAAsBC,MAAAA;AAAtB,KADD;AAELC,IAAAA;AAFK,MAGF,qBAAaC,MAAF,IAAc;AAC5B,UAAM;AAAEC,MAAAA,iBAAF;AAAqBC,MAAAA;AAArB,QAAyCF,MAAM,CAAEG,YAAF,CAArD;AACA,UAAM;AAAEC,MAAAA;AAAF,QAA4BJ,MAAM,CAAEK,eAAF,CAAxC;AACA,UAAM;AAAEC,MAAAA,6BAA6B,EAAEC;AAAjC,QACLP,MAAM,CAAEQ,aAAF,CADP;AAGA,UAAMC,QAAQ,GAAGR,iBAAiB,EAAlC;AACA,UAAMS,MAAM,GAAGR,eAAe,EAA9B;;AACA,UAAMS,OAAO,GAAGP,qBAAqB,CAAE,UAAF,EAAcK,QAAd,EAAwBC,MAAxB,CAArC;;AAEA,UAAMf,IAAI,GAAGgB,OAAO,GAAGJ,eAAe,CAAEI,OAAF,CAAlB,GAAgC,EAApD;AAEA,WAAO;AAAEhB,MAAAA,IAAF;AAAQI,MAAAA,MAAM,EAAEY;AAAhB,KAAP;AACA,GAbG,EAaD,EAbC,CAHJ;;AAkBA,MAAK,CAAEf,KAAF,IAAW,CAAEC,WAAlB,EAAgC;AAC/B,WAAO,IAAP;AACA;;AAED,SACC,4BAAC,qBAAD;AAAW,IAAA,SAAS,EAAC;AAArB,KACC,4BAAC,oBAAD;AACC,IAAA,SAAS,EAAC,yBADX;AAEC,IAAA,KAAK,EAAG,kCAAgBD,KAAhB,CAFT;AAGC,IAAA,IAAI,EACHG,MAAM,EAAEa,IAAR,KAAiB,eAAjB,GAAmCC,iBAAnC,GAAoDf,IAJtD;AAMC,IAAA,WAAW,EAAG,kCAAgBD,WAAhB,CANf;AAOC,IAAA,OAAO,EAAG,4BAAC,wBAAD;AAAiB,MAAA,QAAQ,EAAGE;AAA5B;AAPX,KASC,4BAAC,sBAAD,OATD,CADD,EAYC,4BAAC,oBAAD;AACC,IAAA,MAAM,EAAG,cAAI,iBAAJ,CADV;AAEC,IAAA,SAAS,EAAC;AAFX,KAIC,4BAAC,qBAAD,OAJD,CAZD,CADD;AAqBA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport { PanelRow, PanelBody } from '@wordpress/components';\nimport { store as editorStore } from '@wordpress/editor';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { decodeEntities } from '@wordpress/html-entities';\nimport { __ } from '@wordpress/i18n';\nimport { navigation as navigationIcon } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport { store as editSiteStore } from '../../../store';\nimport TemplateActions from './template-actions';\nimport TemplateAreas from './template-areas';\nimport LastRevision from './last-revision';\nimport SidebarCard from '../sidebar-card';\n\nexport default function TemplatePanel() {\n\tconst {\n\t\tinfo: { title, description, icon },\n\t\trecord,\n\t} = useSelect( ( select ) => {\n\t\tconst { getEditedPostType, getEditedPostId } = select( editSiteStore );\n\t\tconst { getEditedEntityRecord } = select( coreStore );\n\t\tconst { __experimentalGetTemplateInfo: getTemplateInfo } =\n\t\t\tselect( editorStore );\n\n\t\tconst postType = getEditedPostType();\n\t\tconst postId = getEditedPostId();\n\t\tconst _record = getEditedEntityRecord( 'postType', postType, postId );\n\n\t\tconst info = _record ? getTemplateInfo( _record ) : {};\n\n\t\treturn { info, record: _record };\n\t}, [] );\n\n\tif ( ! title && ! description ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PanelBody className=\"edit-site-template-panel\">\n\t\t\t<SidebarCard\n\t\t\t\tclassName=\"edit-site-template-card\"\n\t\t\t\ttitle={ decodeEntities( title ) }\n\t\t\t\ticon={\n\t\t\t\t\trecord?.type === 'wp_navigation' ? navigationIcon : icon\n\t\t\t\t}\n\t\t\t\tdescription={ decodeEntities( description ) }\n\t\t\t\tactions={ <TemplateActions template={ record } /> }\n\t\t\t>\n\t\t\t\t<TemplateAreas />\n\t\t\t</SidebarCard>\n\t\t\t<PanelRow\n\t\t\t\theader={ __( 'Editing history' ) }\n\t\t\t\tclassName=\"edit-site-template-revisions\"\n\t\t\t>\n\t\t\t\t<LastRevision />\n\t\t\t</PanelRow>\n\t\t</PanelBody>\n\t);\n}\n"]}
@@ -29,13 +29,13 @@ var _useEditedEntityRecord = _interopRequireDefault(require("../../use-edited-en
29
29
  * Internal dependencies
30
30
  */
31
31
  const useRevisionData = () => {
32
- var _currentTemplate$_lin, _currentTemplate$_lin2, _currentTemplate$_lin3, _currentTemplate$_lin4, _currentTemplate$_lin5, _currentTemplate$_lin6, _currentTemplate$_lin7, _currentTemplate$_lin8;
32
+ var _currentTemplate$_lin, _currentTemplate$_lin2;
33
33
 
34
34
  const {
35
35
  record: currentTemplate
36
36
  } = (0, _useEditedEntityRecord.default)();
37
- const lastRevisionId = (_currentTemplate$_lin = currentTemplate === null || currentTemplate === void 0 ? void 0 : (_currentTemplate$_lin2 = currentTemplate._links) === null || _currentTemplate$_lin2 === void 0 ? void 0 : (_currentTemplate$_lin3 = _currentTemplate$_lin2['predecessor-version']) === null || _currentTemplate$_lin3 === void 0 ? void 0 : (_currentTemplate$_lin4 = _currentTemplate$_lin3[0]) === null || _currentTemplate$_lin4 === void 0 ? void 0 : _currentTemplate$_lin4.id) !== null && _currentTemplate$_lin !== void 0 ? _currentTemplate$_lin : null;
38
- const revisionsCount = (_currentTemplate$_lin5 = currentTemplate === null || currentTemplate === void 0 ? void 0 : (_currentTemplate$_lin6 = currentTemplate._links) === null || _currentTemplate$_lin6 === void 0 ? void 0 : (_currentTemplate$_lin7 = _currentTemplate$_lin6['version-history']) === null || _currentTemplate$_lin7 === void 0 ? void 0 : (_currentTemplate$_lin8 = _currentTemplate$_lin7[0]) === null || _currentTemplate$_lin8 === void 0 ? void 0 : _currentTemplate$_lin8.count) !== null && _currentTemplate$_lin5 !== void 0 ? _currentTemplate$_lin5 : 0;
37
+ const lastRevisionId = (_currentTemplate$_lin = currentTemplate?._links?.['predecessor-version']?.[0]?.id) !== null && _currentTemplate$_lin !== void 0 ? _currentTemplate$_lin : null;
38
+ const revisionsCount = (_currentTemplate$_lin2 = currentTemplate?._links?.['version-history']?.[0]?.count) !== null && _currentTemplate$_lin2 !== void 0 ? _currentTemplate$_lin2 : 0;
39
39
  return {
40
40
  currentTemplate,
41
41
  lastRevisionId,
@@ -43,10 +43,9 @@ const useRevisionData = () => {
43
43
  };
44
44
  };
45
45
 
46
- function PostLastRevisionCheck(_ref) {
47
- let {
48
- children
49
- } = _ref;
46
+ function PostLastRevisionCheck({
47
+ children
48
+ }) {
50
49
  const {
51
50
  lastRevisionId,
52
51
  revisionsCount
@@ -81,4 +80,4 @@ const PostLastRevision = () => {
81
80
  function LastRevision() {
82
81
  return (0, _element.createElement)(PostLastRevisionCheck, null, (0, _element.createElement)(PostLastRevision, null));
83
82
  }
84
- //# sourceMappingURL=index.js.map
83
+ //# sourceMappingURL=last-revision.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar-edit-mode/template-revisions/index.js"],"names":["Button","sprintf","_n","backup","addQueryArgs","PostTypeSupportCheck","useEditedEntityRecord","useRevisionData","record","currentTemplate","lastRevisionId","_links","id","revisionsCount","count","PostLastRevisionCheck","children","PostLastRevision","revision","gutenberg","LastRevision"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,MAAT,QAAuB,uBAAvB;AACA,SAASC,OAAT,EAAkBC,EAAlB,QAA4B,iBAA5B;AACA,SAASC,MAAT,QAAuB,kBAAvB;AACA,SAASC,YAAT,QAA6B,gBAA7B;AACA,SAASC,oBAAT,QAAqC,mBAArC;AAEA;AACA;AACA;;AACA,OAAOC,qBAAP,MAAkC,gCAAlC;;AAEA,MAAMC,eAAe,GAAG,MAAM;AAAA;;AAC7B,QAAM;AAAEC,IAAAA,MAAM,EAAEC;AAAV,MAA8BH,qBAAqB,EAAzD;AAEA,QAAMI,cAAc,4BACnBD,eADmB,aACnBA,eADmB,iDACnBA,eAAe,CAAEE,MADE,qFACnB,uBAA2B,qBAA3B,CADmB,qFACnB,uBAAsD,CAAtD,CADmB,2DACnB,uBAA2DC,EADxC,yEAC8C,IADlE;AAGA,QAAMC,cAAc,6BACnBJ,eADmB,aACnBA,eADmB,iDACnBA,eAAe,CAAEE,MADE,qFACnB,uBAA2B,iBAA3B,CADmB,qFACnB,uBAAkD,CAAlD,CADmB,2DACnB,uBAAuDG,KADpC,2EAC6C,CADjE;AAGA,SAAO;AACNL,IAAAA,eADM;AAENC,IAAAA,cAFM;AAGNG,IAAAA;AAHM,GAAP;AAKA,CAdD;;AAgBA,SAASE,qBAAT,OAA+C;AAAA,MAAf;AAAEC,IAAAA;AAAF,GAAe;AAC9C,QAAM;AAAEN,IAAAA,cAAF;AAAkBG,IAAAA;AAAlB,MAAqCN,eAAe,EAA1D;;AAEA,MAAK,CAAEG,cAAF,IAAoBG,cAAc,GAAG,CAA1C,EAA8C;AAC7C,WAAO,IAAP;AACA;;AAED,SACC,cAAC,oBAAD;AAAsB,IAAA,WAAW,EAAC;AAAlC,KACGG,QADH,CADD;AAKA;;AAED,MAAMC,gBAAgB,GAAG,MAAM;AAC9B,QAAM;AAAEP,IAAAA,cAAF;AAAkBG,IAAAA;AAAlB,MAAqCN,eAAe,EAA1D;AAEA,SACC,cAAC,qBAAD,QACC,cAAC,MAAD;AACC,IAAA,IAAI,EAAGH,YAAY,CAAE,cAAF,EAAkB;AACpCc,MAAAA,QAAQ,EAAER,cAD0B;AAEpCS,MAAAA,SAAS,EAAE;AAFyB,KAAlB,CADpB;AAKC,IAAA,SAAS,EAAC,yCALX;AAMC,IAAA,IAAI,EAAGhB;AANR,KAQGF,OAAO;AACR;AACAC,EAAAA,EAAE,CAAE,aAAF,EAAiB,cAAjB,EAAiCW,cAAjC,CAFM,EAGRA,cAHQ,CARV,CADD,CADD;AAkBA,CArBD;;AAuBA,eAAe,SAASO,YAAT,GAAwB;AACtC,SACC,cAAC,qBAAD,QACC,cAAC,gBAAD,OADD,CADD;AAKA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Button } from '@wordpress/components';\nimport { sprintf, _n } from '@wordpress/i18n';\nimport { backup } from '@wordpress/icons';\nimport { addQueryArgs } from '@wordpress/url';\nimport { PostTypeSupportCheck } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport useEditedEntityRecord from '../../use-edited-entity-record';\n\nconst useRevisionData = () => {\n\tconst { record: currentTemplate } = useEditedEntityRecord();\n\n\tconst lastRevisionId =\n\t\tcurrentTemplate?._links?.[ 'predecessor-version' ]?.[ 0 ]?.id ?? null;\n\n\tconst revisionsCount =\n\t\tcurrentTemplate?._links?.[ 'version-history' ]?.[ 0 ]?.count ?? 0;\n\n\treturn {\n\t\tcurrentTemplate,\n\t\tlastRevisionId,\n\t\trevisionsCount,\n\t};\n};\n\nfunction PostLastRevisionCheck( { children } ) {\n\tconst { lastRevisionId, revisionsCount } = useRevisionData();\n\n\tif ( ! lastRevisionId || revisionsCount < 2 ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PostTypeSupportCheck supportKeys=\"revisions\">\n\t\t\t{ children }\n\t\t</PostTypeSupportCheck>\n\t);\n}\n\nconst PostLastRevision = () => {\n\tconst { lastRevisionId, revisionsCount } = useRevisionData();\n\n\treturn (\n\t\t<PostLastRevisionCheck>\n\t\t\t<Button\n\t\t\t\thref={ addQueryArgs( 'revision.php', {\n\t\t\t\t\trevision: lastRevisionId,\n\t\t\t\t\tgutenberg: true,\n\t\t\t\t} ) }\n\t\t\t\tclassName=\"edit-site-template-last-revision__title\"\n\t\t\t\ticon={ backup }\n\t\t\t>\n\t\t\t\t{ sprintf(\n\t\t\t\t\t/* translators: %d: number of revisions */\n\t\t\t\t\t_n( '%d Revision', '%d Revisions', revisionsCount ),\n\t\t\t\t\trevisionsCount\n\t\t\t\t) }\n\t\t\t</Button>\n\t\t</PostLastRevisionCheck>\n\t);\n};\n\nexport default function LastRevision() {\n\treturn (\n\t\t<PostLastRevisionCheck>\n\t\t\t<PostLastRevision />\n\t\t</PostLastRevisionCheck>\n\t);\n}\n"]}
1
+ {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar-edit-mode/template-panel/last-revision.js"],"names":["useRevisionData","record","currentTemplate","lastRevisionId","_links","id","revisionsCount","count","PostLastRevisionCheck","children","PostLastRevision","revision","gutenberg","backup","LastRevision"],"mappings":";;;;;;;;;;;AAGA;;AACA;;AACA;;AACA;;AACA;;AAKA;;AAZA;AACA;AACA;;AAOA;AACA;AACA;AAGA,MAAMA,eAAe,GAAG,MAAM;AAAA;;AAC7B,QAAM;AAAEC,IAAAA,MAAM,EAAEC;AAAV,MAA8B,qCAApC;AAEA,QAAMC,cAAc,4BACnBD,eAAe,EAAEE,MAAjB,GAA2B,qBAA3B,IAAsD,CAAtD,GAA2DC,EADxC,yEAC8C,IADlE;AAGA,QAAMC,cAAc,6BACnBJ,eAAe,EAAEE,MAAjB,GAA2B,iBAA3B,IAAkD,CAAlD,GAAuDG,KADpC,2EAC6C,CADjE;AAGA,SAAO;AACNL,IAAAA,eADM;AAENC,IAAAA,cAFM;AAGNG,IAAAA;AAHM,GAAP;AAKA,CAdD;;AAgBA,SAASE,qBAAT,CAAgC;AAAEC,EAAAA;AAAF,CAAhC,EAA+C;AAC9C,QAAM;AAAEN,IAAAA,cAAF;AAAkBG,IAAAA;AAAlB,MAAqCN,eAAe,EAA1D;;AAEA,MAAK,CAAEG,cAAF,IAAoBG,cAAc,GAAG,CAA1C,EAA8C;AAC7C,WAAO,IAAP;AACA;;AAED,SACC,4BAAC,4BAAD;AAAsB,IAAA,WAAW,EAAC;AAAlC,KACGG,QADH,CADD;AAKA;;AAED,MAAMC,gBAAgB,GAAG,MAAM;AAC9B,QAAM;AAAEP,IAAAA,cAAF;AAAkBG,IAAAA;AAAlB,MAAqCN,eAAe,EAA1D;AAEA,SACC,4BAAC,qBAAD,QACC,4BAAC,kBAAD;AACC,IAAA,IAAI,EAAG,uBAAc,cAAd,EAA8B;AACpCW,MAAAA,QAAQ,EAAER,cAD0B;AAEpCS,MAAAA,SAAS,EAAE;AAFyB,KAA9B,CADR;AAKC,IAAA,SAAS,EAAC,yCALX;AAMC,IAAA,IAAI,EAAGC;AANR,KAQG;AACD;AACA,gBAAI,aAAJ,EAAmB,cAAnB,EAAmCP,cAAnC,CAFC,EAGDA,cAHC,CARH,CADD,CADD;AAkBA,CArBD;;AAuBe,SAASQ,YAAT,GAAwB;AACtC,SACC,4BAAC,qBAAD,QACC,4BAAC,gBAAD,OADD,CADD;AAKA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Button } from '@wordpress/components';\nimport { sprintf, _n } from '@wordpress/i18n';\nimport { backup } from '@wordpress/icons';\nimport { addQueryArgs } from '@wordpress/url';\nimport { PostTypeSupportCheck } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport useEditedEntityRecord from '../../use-edited-entity-record';\n\nconst useRevisionData = () => {\n\tconst { record: currentTemplate } = useEditedEntityRecord();\n\n\tconst lastRevisionId =\n\t\tcurrentTemplate?._links?.[ 'predecessor-version' ]?.[ 0 ]?.id ?? null;\n\n\tconst revisionsCount =\n\t\tcurrentTemplate?._links?.[ 'version-history' ]?.[ 0 ]?.count ?? 0;\n\n\treturn {\n\t\tcurrentTemplate,\n\t\tlastRevisionId,\n\t\trevisionsCount,\n\t};\n};\n\nfunction PostLastRevisionCheck( { children } ) {\n\tconst { lastRevisionId, revisionsCount } = useRevisionData();\n\n\tif ( ! lastRevisionId || revisionsCount < 2 ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PostTypeSupportCheck supportKeys=\"revisions\">\n\t\t\t{ children }\n\t\t</PostTypeSupportCheck>\n\t);\n}\n\nconst PostLastRevision = () => {\n\tconst { lastRevisionId, revisionsCount } = useRevisionData();\n\n\treturn (\n\t\t<PostLastRevisionCheck>\n\t\t\t<Button\n\t\t\t\thref={ addQueryArgs( 'revision.php', {\n\t\t\t\t\trevision: lastRevisionId,\n\t\t\t\t\tgutenberg: true,\n\t\t\t\t} ) }\n\t\t\t\tclassName=\"edit-site-template-last-revision__title\"\n\t\t\t\ticon={ backup }\n\t\t\t>\n\t\t\t\t{ sprintf(\n\t\t\t\t\t/* translators: %d: number of revisions */\n\t\t\t\t\t_n( '%d Revision', '%d Revisions', revisionsCount ),\n\t\t\t\t\trevisionsCount\n\t\t\t\t) }\n\t\t\t</Button>\n\t\t</PostLastRevisionCheck>\n\t);\n};\n\nexport default function LastRevision() {\n\treturn (\n\t\t<PostLastRevisionCheck>\n\t\t\t<PostLastRevision />\n\t\t</PostLastRevisionCheck>\n\t);\n}\n"]}
@@ -28,10 +28,9 @@ var _isTemplateRevertable = _interopRequireDefault(require("../../../utils/is-te
28
28
  /**
29
29
  * Internal dependencies
30
30
  */
31
- function Actions(_ref) {
32
- let {
33
- template
34
- } = _ref;
31
+ function Actions({
32
+ template
33
+ }) {
35
34
  const {
36
35
  revertTemplate
37
36
  } = (0, _data.useDispatch)(_store.store);
@@ -48,17 +47,14 @@ function Actions(_ref) {
48
47
  toggleProps: {
49
48
  isSmall: true
50
49
  }
51
- }, _ref2 => {
52
- let {
53
- onClose
54
- } = _ref2;
55
- return (0, _element.createElement)(_components.MenuGroup, null, (0, _element.createElement)(_components.MenuItem, {
56
- info: (0, _i18n.__)('Use the template as supplied by the theme.'),
57
- onClick: () => {
58
- revertTemplate(template);
59
- onClose();
60
- }
61
- }, (0, _i18n.__)('Clear customizations')));
62
- });
50
+ }, ({
51
+ onClose
52
+ }) => (0, _element.createElement)(_components.MenuGroup, null, (0, _element.createElement)(_components.MenuItem, {
53
+ info: (0, _i18n.__)('Use the template as supplied by the theme.'),
54
+ onClick: () => {
55
+ revertTemplate(template);
56
+ onClose();
57
+ }
58
+ }, (0, _i18n.__)('Clear customizations'))));
63
59
  }
64
60
  //# sourceMappingURL=template-actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar-edit-mode/template-panel/template-actions.js"],"names":["Actions","template","revertTemplate","editSiteStore","isRevertable","moreVertical","isSmall","onClose"],"mappings":";;;;;;;;;;;AAGA;;AACA;;AACA;;AACA;;AAKA;;AACA;;AAZA;AACA;AACA;;AAMA;AACA;AACA;AAIe,SAASA,OAAT,CAAkB;AAAEC,EAAAA;AAAF,CAAlB,EAAiC;AAC/C,QAAM;AAAEC,IAAAA;AAAF,MAAqB,uBAAaC,YAAb,CAA3B;AACA,QAAMC,YAAY,GAAG,mCAAsBH,QAAtB,CAArB;;AACA,MAAK,CAAEG,YAAP,EAAsB;AACrB,WAAO,IAAP;AACA;;AACD,SACC,4BAAC,wBAAD;AACC,IAAA,IAAI,EAAGC,mBADR;AAEC,IAAA,KAAK,EAAG,cAAI,SAAJ,CAFT;AAGC,IAAA,SAAS,EAAC,kCAHX;AAIC,IAAA,WAAW,EAAG;AAAEC,MAAAA,OAAO,EAAE;AAAX;AAJf,KAMG,CAAE;AAAEC,IAAAA;AAAF,GAAF,KACD,4BAAC,qBAAD,QACC,4BAAC,oBAAD;AACC,IAAA,IAAI,EAAG,cACN,4CADM,CADR;AAIC,IAAA,OAAO,EAAG,MAAM;AACfL,MAAAA,cAAc,CAAED,QAAF,CAAd;AACAM,MAAAA,OAAO;AACP;AAPF,KASG,cAAI,sBAAJ,CATH,CADD,CAPF,CADD;AAwBA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useDispatch } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { DropdownMenu, MenuGroup, MenuItem } from '@wordpress/components';\nimport { moreVertical } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport { store as editSiteStore } from '../../../store';\nimport isTemplateRevertable from '../../../utils/is-template-revertable';\n\nexport default function Actions( { template } ) {\n\tconst { revertTemplate } = useDispatch( editSiteStore );\n\tconst isRevertable = isTemplateRevertable( template );\n\tif ( ! isRevertable ) {\n\t\treturn null;\n\t}\n\treturn (\n\t\t<DropdownMenu\n\t\t\ticon={ moreVertical }\n\t\t\tlabel={ __( 'Actions' ) }\n\t\t\tclassName=\"edit-site-template-card__actions\"\n\t\t\ttoggleProps={ { isSmall: true } }\n\t\t>\n\t\t\t{ ( { onClose } ) => (\n\t\t\t\t<MenuGroup>\n\t\t\t\t\t<MenuItem\n\t\t\t\t\t\tinfo={ __(\n\t\t\t\t\t\t\t'Use the template as supplied by the theme.'\n\t\t\t\t\t\t) }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\trevertTemplate( template );\n\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t} }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Clear customizations' ) }\n\t\t\t\t\t</MenuItem>\n\t\t\t\t</MenuGroup>\n\t\t\t) }\n\t\t</DropdownMenu>\n\t);\n}\n"]}
@@ -26,11 +26,10 @@ var _store = require("../../../store");
26
26
  /**
27
27
  * Internal dependencies
28
28
  */
29
- function TemplateAreaItem(_ref) {
30
- let {
31
- area,
32
- clientId
33
- } = _ref;
29
+ function TemplateAreaItem({
30
+ area,
31
+ clientId
32
+ }) {
34
33
  const {
35
34
  selectBlock,
36
35
  toggleBlockHighlight
@@ -47,7 +46,7 @@ function TemplateAreaItem(_ref) {
47
46
 
48
47
  return (0, _element.createElement)(_components.Button, {
49
48
  className: "edit-site-template-card__template-areas-item",
50
- icon: templatePartArea === null || templatePartArea === void 0 ? void 0 : templatePartArea.icon,
49
+ icon: templatePartArea?.icon,
51
50
  onMouseOver: highlightBlock,
52
51
  onMouseLeave: cancelHighlightBlock,
53
52
  onFocus: highlightBlock,
@@ -55,7 +54,7 @@ function TemplateAreaItem(_ref) {
55
54
  onClick: () => {
56
55
  selectBlock(clientId);
57
56
  }
58
- }, templatePartArea === null || templatePartArea === void 0 ? void 0 : templatePartArea.label);
57
+ }, templatePartArea?.label);
59
58
  }
60
59
 
61
60
  function TemplateAreas() {
@@ -72,17 +71,14 @@ function TemplateAreas() {
72
71
  className: "edit-site-template-card__template-areas-title"
73
72
  }, (0, _i18n.__)('Areas')), (0, _element.createElement)("ul", {
74
73
  className: "edit-site-template-card__template-areas-list"
75
- }, templateParts.map(_ref2 => {
76
- let {
77
- templatePart,
78
- block
79
- } = _ref2;
80
- return (0, _element.createElement)("li", {
81
- key: templatePart.slug
82
- }, (0, _element.createElement)(TemplateAreaItem, {
83
- area: templatePart.area,
84
- clientId: block.clientId
85
- }));
86
- })));
74
+ }, templateParts.map(({
75
+ templatePart,
76
+ block
77
+ }) => (0, _element.createElement)("li", {
78
+ key: templatePart.slug
79
+ }, (0, _element.createElement)(TemplateAreaItem, {
80
+ area: templatePart.area,
81
+ clientId: block.clientId
82
+ })))));
87
83
  }
88
84
  //# sourceMappingURL=template-areas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar-edit-mode/template-panel/template-areas.js"],"names":["TemplateAreaItem","area","clientId","selectBlock","toggleBlockHighlight","blockEditorStore","templatePartArea","select","defaultAreas","editorStore","__experimentalGetDefaultTemplatePartAreas","find","defaultArea","highlightBlock","cancelHighlightBlock","icon","label","TemplateAreas","templateParts","editSiteStore","getCurrentTemplateTemplateParts","length","map","templatePart","block","slug"],"mappings":";;;;;;;;;AAGA;;AACA;;AAIA;;AACA;;AACA;;AAKA;;AAfA;AACA;AACA;;AAUA;AACA;AACA;AAGA,SAASA,gBAAT,CAA2B;AAAEC,EAAAA,IAAF;AAAQC,EAAAA;AAAR,CAA3B,EAAgD;AAC/C,QAAM;AAAEC,IAAAA,WAAF;AAAeC,IAAAA;AAAf,MACL,uBAAaC,kBAAb,CADD;AAEA,QAAMC,gBAAgB,GAAG,qBACtBC,MAAF,IAAc;AACb,UAAMC,YAAY,GACjBD,MAAM,CACLE,aADK,CAAN,CAEEC,yCAFF,EADD;;AAKA,WAAOF,YAAY,CAACG,IAAb,CACJC,WAAF,IAAmBA,WAAW,CAACX,IAAZ,KAAqBA,IADlC,CAAP;AAGA,GAVuB,EAWxB,CAAEA,IAAF,CAXwB,CAAzB;;AAcA,QAAMY,cAAc,GAAG,MAAMT,oBAAoB,CAAEF,QAAF,EAAY,IAAZ,CAAjD;;AACA,QAAMY,oBAAoB,GAAG,MAAMV,oBAAoB,CAAEF,QAAF,EAAY,KAAZ,CAAvD;;AAEA,SACC,4BAAC,kBAAD;AACC,IAAA,SAAS,EAAC,8CADX;AAEC,IAAA,IAAI,EAAGI,gBAAgB,EAAES,IAF1B;AAGC,IAAA,WAAW,EAAGF,cAHf;AAIC,IAAA,YAAY,EAAGC,oBAJhB;AAKC,IAAA,OAAO,EAAGD,cALX;AAMC,IAAA,MAAM,EAAGC,oBANV;AAOC,IAAA,OAAO,EAAG,MAAM;AACfX,MAAAA,WAAW,CAAED,QAAF,CAAX;AACA;AATF,KAWGI,gBAAgB,EAAEU,KAXrB,CADD;AAeA;;AAEc,SAASC,aAAT,GAAyB;AACvC,QAAMC,aAAa,GAAG,qBACnBX,MAAF,IAAcA,MAAM,CAAEY,YAAF,CAAN,CAAwBC,+BAAxB,EADO,EAErB,EAFqB,CAAtB;;AAKA,MAAK,CAAEF,aAAa,CAACG,MAArB,EAA8B;AAC7B,WAAO,IAAP;AACA;;AAED,SACC;AAAS,IAAA,SAAS,EAAC;AAAnB,KACC,4BAAC,iCAAD;AACC,IAAA,KAAK,EAAG,CADT;AAEC,IAAA,SAAS,EAAC;AAFX,KAIG,cAAI,OAAJ,CAJH,CADD,EAQC;AAAI,IAAA,SAAS,EAAC;AAAd,KACGH,aAAa,CAACI,GAAd,CAAmB,CAAE;AAAEC,IAAAA,YAAF;AAAgBC,IAAAA;AAAhB,GAAF,KACpB;AAAI,IAAA,GAAG,EAAGD,YAAY,CAACE;AAAvB,KACC,4BAAC,gBAAD;AACC,IAAA,IAAI,EAAGF,YAAY,CAACtB,IADrB;AAEC,IAAA,QAAQ,EAAGuB,KAAK,CAACtB;AAFlB,IADD,CADC,CADH,CARD,CADD;AAqBA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport {\n\tButton,\n\t__experimentalHeading as Heading,\n} from '@wordpress/components';\nimport { store as editorStore } from '@wordpress/editor';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport { store as editSiteStore } from '../../../store';\n\nfunction TemplateAreaItem( { area, clientId } ) {\n\tconst { selectBlock, toggleBlockHighlight } =\n\t\tuseDispatch( blockEditorStore );\n\tconst templatePartArea = useSelect(\n\t\t( select ) => {\n\t\t\tconst defaultAreas =\n\t\t\t\tselect(\n\t\t\t\t\teditorStore\n\t\t\t\t).__experimentalGetDefaultTemplatePartAreas();\n\n\t\t\treturn defaultAreas.find(\n\t\t\t\t( defaultArea ) => defaultArea.area === area\n\t\t\t);\n\t\t},\n\t\t[ area ]\n\t);\n\n\tconst highlightBlock = () => toggleBlockHighlight( clientId, true );\n\tconst cancelHighlightBlock = () => toggleBlockHighlight( clientId, false );\n\n\treturn (\n\t\t<Button\n\t\t\tclassName=\"edit-site-template-card__template-areas-item\"\n\t\t\ticon={ templatePartArea?.icon }\n\t\t\tonMouseOver={ highlightBlock }\n\t\t\tonMouseLeave={ cancelHighlightBlock }\n\t\t\tonFocus={ highlightBlock }\n\t\t\tonBlur={ cancelHighlightBlock }\n\t\t\tonClick={ () => {\n\t\t\t\tselectBlock( clientId );\n\t\t\t} }\n\t\t>\n\t\t\t{ templatePartArea?.label }\n\t\t</Button>\n\t);\n}\n\nexport default function TemplateAreas() {\n\tconst templateParts = useSelect(\n\t\t( select ) => select( editSiteStore ).getCurrentTemplateTemplateParts(),\n\t\t[]\n\t);\n\n\tif ( ! templateParts.length ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<section className=\"edit-site-template-card__template-areas\">\n\t\t\t<Heading\n\t\t\t\tlevel={ 3 }\n\t\t\t\tclassName=\"edit-site-template-card__template-areas-title\"\n\t\t\t>\n\t\t\t\t{ __( 'Areas' ) }\n\t\t\t</Heading>\n\n\t\t\t<ul className=\"edit-site-template-card__template-areas-list\">\n\t\t\t\t{ templateParts.map( ( { templatePart, block } ) => (\n\t\t\t\t\t<li key={ templatePart.slug }>\n\t\t\t\t\t\t<TemplateAreaItem\n\t\t\t\t\t\t\tarea={ templatePart.area }\n\t\t\t\t\t\t\tclientId={ block.clientId }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</li>\n\t\t\t\t) ) }\n\t\t\t</ul>\n\t\t</section>\n\t);\n}\n"]}
@@ -9,12 +9,12 @@ exports.default = SidebarNavigationItem;
9
9
 
10
10
  var _element = require("@wordpress/element");
11
11
 
12
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
-
14
12
  var _classnames = _interopRequireDefault(require("classnames"));
15
13
 
16
14
  var _components = require("@wordpress/components");
17
15
 
16
+ var _i18n = require("@wordpress/i18n");
17
+
18
18
  var _icons = require("@wordpress/icons");
19
19
 
20
20
  /**
@@ -24,17 +24,20 @@ var _icons = require("@wordpress/icons");
24
24
  /**
25
25
  * WordPress dependencies
26
26
  */
27
- function SidebarNavigationItem(_ref) {
28
- let {
29
- className,
30
- icon,
31
- withChevron = false,
32
- children,
27
+ function SidebarNavigationItem({
28
+ className,
29
+ icon,
30
+ withChevron = false,
31
+ suffix,
32
+ children,
33
+ ...props
34
+ }) {
35
+ return (0, _element.createElement)(_components.__experimentalItem, {
36
+ className: (0, _classnames.default)('edit-site-sidebar-navigation-item', {
37
+ 'with-suffix': !withChevron && suffix
38
+ }, className),
33
39
  ...props
34
- } = _ref;
35
- return (0, _element.createElement)(_components.__experimentalItem, (0, _extends2.default)({
36
- className: (0, _classnames.default)('edit-site-sidebar-navigation-item', className)
37
- }, props), (0, _element.createElement)(_components.__experimentalHStack, {
40
+ }, (0, _element.createElement)(_components.__experimentalHStack, {
38
41
  justify: "flex-start"
39
42
  }, icon && (0, _element.createElement)(_icons.Icon, {
40
43
  style: {
@@ -43,9 +46,9 @@ function SidebarNavigationItem(_ref) {
43
46
  icon: icon,
44
47
  size: 24
45
48
  }), (0, _element.createElement)(_components.FlexBlock, null, children), withChevron && (0, _element.createElement)(_icons.Icon, {
46
- icon: _icons.chevronRightSmall,
49
+ icon: (0, _i18n.isRTL)() ? _icons.chevronLeftSmall : _icons.chevronRightSmall,
47
50
  className: "edit-site-sidebar-navigation-item__drilldown-indicator",
48
51
  size: 24
49
- })));
52
+ }), !withChevron && suffix));
50
53
  }
51
54
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar-navigation-item/index.js"],"names":["SidebarNavigationItem","className","icon","withChevron","children","props","fill","chevronRightSmall"],"mappings":";;;;;;;;;;;;;AAGA;;AAKA;;AAKA;;AAbA;AACA;AACA;;AAGA;AACA;AACA;AAQe,SAASA,qBAAT,OAMX;AAAA,MAN2C;AAC9CC,IAAAA,SAD8C;AAE9CC,IAAAA,IAF8C;AAG9CC,IAAAA,WAAW,GAAG,KAHgC;AAI9CC,IAAAA,QAJ8C;AAK9C,OAAGC;AAL2C,GAM3C;AACH,SACC,4BAAC,8BAAD;AACC,IAAA,SAAS,EAAG,yBACX,mCADW,EAEXJ,SAFW;AADb,KAKMI,KALN,GAOC,4BAAC,gCAAD;AAAQ,IAAA,OAAO,EAAC;AAAhB,KACGH,IAAI,IACL,4BAAC,WAAD;AACC,IAAA,KAAK,EAAG;AAAEI,MAAAA,IAAI,EAAE;AAAR,KADT;AAEC,IAAA,IAAI,EAAGJ,IAFR;AAGC,IAAA,IAAI,EAAG;AAHR,IAFF,EAQC,4BAAC,qBAAD,QAAaE,QAAb,CARD,EASGD,WAAW,IACZ,4BAAC,WAAD;AACC,IAAA,IAAI,EAAGI,wBADR;AAEC,IAAA,SAAS,EAAC,wDAFX;AAGC,IAAA,IAAI,EAAG;AAHR,IAVF,CAPD,CADD;AA2BA","sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalItem as Item,\n\t__experimentalHStack as HStack,\n\tFlexBlock,\n} from '@wordpress/components';\nimport { chevronRightSmall, Icon } from '@wordpress/icons';\n\nexport default function SidebarNavigationItem( {\n\tclassName,\n\ticon,\n\twithChevron = false,\n\tchildren,\n\t...props\n} ) {\n\treturn (\n\t\t<Item\n\t\t\tclassName={ classnames(\n\t\t\t\t'edit-site-sidebar-navigation-item',\n\t\t\t\tclassName\n\t\t\t) }\n\t\t\t{ ...props }\n\t\t>\n\t\t\t<HStack justify=\"flex-start\">\n\t\t\t\t{ icon && (\n\t\t\t\t\t<Icon\n\t\t\t\t\t\tstyle={ { fill: 'currentcolor' } }\n\t\t\t\t\t\ticon={ icon }\n\t\t\t\t\t\tsize={ 24 }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t\t<FlexBlock>{ children }</FlexBlock>\n\t\t\t\t{ withChevron && (\n\t\t\t\t\t<Icon\n\t\t\t\t\t\ticon={ chevronRightSmall }\n\t\t\t\t\t\tclassName=\"edit-site-sidebar-navigation-item__drilldown-indicator\"\n\t\t\t\t\t\tsize={ 24 }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t</HStack>\n\t\t</Item>\n\t);\n}\n"]}
1
+ {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar-navigation-item/index.js"],"names":["SidebarNavigationItem","className","icon","withChevron","suffix","children","props","fill","chevronLeftSmall","chevronRightSmall"],"mappings":";;;;;;;;;;;AAGA;;AAKA;;AAKA;;AACA;;AAdA;AACA;AACA;;AAGA;AACA;AACA;AASe,SAASA,qBAAT,CAAgC;AAC9CC,EAAAA,SAD8C;AAE9CC,EAAAA,IAF8C;AAG9CC,EAAAA,WAAW,GAAG,KAHgC;AAI9CC,EAAAA,MAJ8C;AAK9CC,EAAAA,QAL8C;AAM9C,KAAGC;AAN2C,CAAhC,EAOX;AACH,SACC,4BAAC,8BAAD;AACC,IAAA,SAAS,EAAG,yBACX,mCADW,EAEX;AAAE,qBAAe,CAAEH,WAAF,IAAiBC;AAAlC,KAFW,EAGXH,SAHW,CADb;AAAA,OAMMK;AANN,KAQC,4BAAC,gCAAD;AAAQ,IAAA,OAAO,EAAC;AAAhB,KACGJ,IAAI,IACL,4BAAC,WAAD;AACC,IAAA,KAAK,EAAG;AAAEK,MAAAA,IAAI,EAAE;AAAR,KADT;AAEC,IAAA,IAAI,EAAGL,IAFR;AAGC,IAAA,IAAI,EAAG;AAHR,IAFF,EAQC,4BAAC,qBAAD,QAAaG,QAAb,CARD,EASGF,WAAW,IACZ,4BAAC,WAAD;AACC,IAAA,IAAI,EAAG,qBAAUK,uBAAV,GAA6BC,wBADrC;AAEC,IAAA,SAAS,EAAC,wDAFX;AAGC,IAAA,IAAI,EAAG;AAHR,IAVF,EAgBG,CAAEN,WAAF,IAAiBC,MAhBpB,CARD,CADD;AA6BA","sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalItem as Item,\n\t__experimentalHStack as HStack,\n\tFlexBlock,\n} from '@wordpress/components';\nimport { isRTL } from '@wordpress/i18n';\nimport { chevronRightSmall, chevronLeftSmall, Icon } from '@wordpress/icons';\n\nexport default function SidebarNavigationItem( {\n\tclassName,\n\ticon,\n\twithChevron = false,\n\tsuffix,\n\tchildren,\n\t...props\n} ) {\n\treturn (\n\t\t<Item\n\t\t\tclassName={ classnames(\n\t\t\t\t'edit-site-sidebar-navigation-item',\n\t\t\t\t{ 'with-suffix': ! withChevron && suffix },\n\t\t\t\tclassName\n\t\t\t) }\n\t\t\t{ ...props }\n\t\t>\n\t\t\t<HStack justify=\"flex-start\">\n\t\t\t\t{ icon && (\n\t\t\t\t\t<Icon\n\t\t\t\t\t\tstyle={ { fill: 'currentcolor' } }\n\t\t\t\t\t\ticon={ icon }\n\t\t\t\t\t\tsize={ 24 }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t\t<FlexBlock>{ children }</FlexBlock>\n\t\t\t\t{ withChevron && (\n\t\t\t\t\t<Icon\n\t\t\t\t\t\ticon={ isRTL() ? chevronLeftSmall : chevronRightSmall }\n\t\t\t\t\t\tclassName=\"edit-site-sidebar-navigation-item__drilldown-indicator\"\n\t\t\t\t\t\tsize={ 24 }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t\t{ ! withChevron && suffix }\n\t\t\t</HStack>\n\t\t</Item>\n\t);\n}\n"]}
@@ -21,7 +21,7 @@ var _data = require("@wordpress/data");
21
21
 
22
22
  var _store = require("../../store");
23
23
 
24
- var _privateApis = require("../../private-apis");
24
+ var _lockUnlock = require("../../lock-unlock");
25
25
 
26
26
  var _sidebarButton = _interopRequireDefault(require("../sidebar-button"));
27
27
 
@@ -34,22 +34,22 @@ var _isPreviewingTheme = require("../../utils/is-previewing-theme");
34
34
  /**
35
35
  * Internal dependencies
36
36
  */
37
- function SidebarNavigationScreen(_ref) {
38
- var _theme$name;
39
-
40
- let {
41
- isRoot,
42
- title,
43
- actions,
44
- content,
45
- description
46
- } = _ref;
37
+ function SidebarNavigationScreen({
38
+ isRoot,
39
+ title,
40
+ actions,
41
+ meta,
42
+ content,
43
+ footer,
44
+ description,
45
+ backPath
46
+ }) {
47
47
  const {
48
48
  dashboardLink
49
49
  } = (0, _data.useSelect)(select => {
50
50
  const {
51
51
  getSettings
52
- } = (0, _privateApis.unlock)(select(_store.store));
52
+ } = (0, _lockUnlock.unlock)(select(_store.store));
53
53
  return {
54
54
  dashboardLink: getSettings().__experimentalDashboardLink
55
55
  };
@@ -57,30 +57,48 @@ function SidebarNavigationScreen(_ref) {
57
57
  const {
58
58
  getTheme
59
59
  } = (0, _data.useSelect)(_coreData.store);
60
+ const {
61
+ goTo
62
+ } = (0, _components.__experimentalUseNavigator)();
60
63
  const theme = getTheme((0, _isPreviewingTheme.currentlyPreviewingTheme)());
61
- return (0, _element.createElement)(_components.__experimentalVStack, {
62
- spacing: 2
64
+ const icon = (0, _i18n.isRTL)() ? _icons.chevronRight : _icons.chevronLeft;
65
+ return (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)(_components.__experimentalVStack, {
66
+ className: "edit-site-sidebar-navigation-screen__main",
67
+ spacing: 0,
68
+ justify: "flex-start"
63
69
  }, (0, _element.createElement)(_components.__experimentalHStack, {
64
70
  spacing: 4,
65
71
  alignment: "flex-start",
66
72
  className: "edit-site-sidebar-navigation-screen__title-icon"
67
- }, !isRoot ? (0, _element.createElement)(_components.__experimentalNavigatorToParentButton, {
73
+ }, !isRoot && !backPath && (0, _element.createElement)(_components.__experimentalNavigatorToParentButton, {
68
74
  as: _sidebarButton.default,
69
75
  icon: (0, _i18n.isRTL)() ? _icons.chevronRight : _icons.chevronLeft,
76
+ "aria-label": (0, _i18n.__)('Back')
77
+ }), !isRoot && backPath && (0, _element.createElement)(_sidebarButton.default, {
78
+ onClick: () => goTo(backPath, {
79
+ isBack: true
80
+ }),
81
+ icon: icon,
70
82
  label: (0, _i18n.__)('Back')
71
- }) : (0, _element.createElement)(_sidebarButton.default, {
72
- icon: (0, _i18n.isRTL)() ? _icons.chevronRight : _icons.chevronLeft,
83
+ }), isRoot && (0, _element.createElement)(_sidebarButton.default, {
84
+ icon: icon,
73
85
  label: !(0, _isPreviewingTheme.isPreviewingTheme)() ? (0, _i18n.__)('Go back to the Dashboard') : (0, _i18n.__)('Go back to the theme showcase'),
74
86
  href: !(0, _isPreviewingTheme.isPreviewingTheme)() ? dashboardLink || 'index.php' : 'themes.php'
75
87
  }), (0, _element.createElement)(_components.__experimentalHeading, {
76
88
  className: "edit-site-sidebar-navigation-screen__title",
77
89
  color: 'white',
78
- level: 2,
90
+ level: 1,
79
91
  size: 20
80
- }, !(0, _isPreviewingTheme.isPreviewingTheme)() ? title : (0, _i18n.sprintf)('Previewing %1$s: %2$s', theme === null || theme === void 0 ? void 0 : (_theme$name = theme.name) === null || _theme$name === void 0 ? void 0 : _theme$name.rendered, title)), actions), (0, _element.createElement)("nav", {
92
+ }, !(0, _isPreviewingTheme.isPreviewingTheme)() ? title : (0, _i18n.sprintf)('Previewing %1$s: %2$s', theme?.name?.rendered, title)), actions && (0, _element.createElement)("div", {
93
+ className: "edit-site-sidebar-navigation-screen__actions"
94
+ }, actions)), meta && (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)("div", {
95
+ className: "edit-site-sidebar-navigation-screen__meta"
96
+ }, meta)), (0, _element.createElement)("div", {
81
97
  className: "edit-site-sidebar-navigation-screen__content"
82
98
  }, description && (0, _element.createElement)("p", {
83
99
  className: "edit-site-sidebar-navigation-screen__description"
84
- }, description), content));
100
+ }, description), content)), footer && (0, _element.createElement)("footer", {
101
+ className: "edit-site-sidebar-navigation-screen__footer"
102
+ }, footer));
85
103
  }
86
104
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen/index.js"],"names":["SidebarNavigationScreen","isRoot","title","actions","content","description","dashboardLink","select","getSettings","editSiteStore","__experimentalDashboardLink","getTheme","coreStore","theme","SidebarButton","chevronRight","chevronLeft","name","rendered"],"mappings":";;;;;;;;;;;AAGA;;AAMA;;AACA;;AACA;;AACA;;AAKA;;AACA;;AACA;;AACA;;AApBA;AACA;AACA;;AAYA;AACA;AACA;AASe,SAASA,uBAAT,OAMX;AAAA;;AAAA,MAN6C;AAChDC,IAAAA,MADgD;AAEhDC,IAAAA,KAFgD;AAGhDC,IAAAA,OAHgD;AAIhDC,IAAAA,OAJgD;AAKhDC,IAAAA;AALgD,GAM7C;AACH,QAAM;AAAEC,IAAAA;AAAF,MAAoB,qBAAaC,MAAF,IAAc;AAClD,UAAM;AAAEC,MAAAA;AAAF,QAAkB,yBAAQD,MAAM,CAAEE,YAAF,CAAd,CAAxB;AACA,WAAO;AACNH,MAAAA,aAAa,EAAEE,WAAW,GAAGE;AADvB,KAAP;AAGA,GALyB,EAKvB,EALuB,CAA1B;AAMA,QAAM;AAAEC,IAAAA;AAAF,MAAe,qBAAWC,eAAX,CAArB;AACA,QAAMC,KAAK,GAAGF,QAAQ,CAAE,kDAAF,CAAtB;AAEA,SACC,4BAAC,gCAAD;AAAQ,IAAA,OAAO,EAAG;AAAlB,KACC,4BAAC,gCAAD;AACC,IAAA,OAAO,EAAG,CADX;AAEC,IAAA,SAAS,EAAC,YAFX;AAGC,IAAA,SAAS,EAAC;AAHX,KAKG,CAAEV,MAAF,GACD,4BAAC,iDAAD;AACC,IAAA,EAAE,EAAGa,sBADN;AAEC,IAAA,IAAI,EAAG,qBAAUC,mBAAV,GAAyBC,kBAFjC;AAGC,IAAA,KAAK,EAAG,cAAI,MAAJ;AAHT,IADC,GAOD,4BAAC,sBAAD;AACC,IAAA,IAAI,EAAG,qBAAUD,mBAAV,GAAyBC,kBADjC;AAEC,IAAA,KAAK,EACJ,CAAE,2CAAF,GACG,cAAI,0BAAJ,CADH,GAEG,cAAI,+BAAJ,CALL;AAOC,IAAA,IAAI,EACH,CAAE,2CAAF,GACGV,aAAa,IAAI,WADpB,GAEG;AAVL,IAZF,EA0BC,4BAAC,iCAAD;AACC,IAAA,SAAS,EAAC,4CADX;AAEC,IAAA,KAAK,EAAG,OAFT;AAGC,IAAA,KAAK,EAAG,CAHT;AAIC,IAAA,IAAI,EAAG;AAJR,KAMG,CAAE,2CAAF,GACCJ,KADD,GAEC,mBACA,uBADA,EAEAW,KAFA,aAEAA,KAFA,sCAEAA,KAAK,CAAEI,IAFP,gDAEA,YAAaC,QAFb,EAGAhB,KAHA,CARJ,CA1BD,EAwCGC,OAxCH,CADD,EA4CC;AAAK,IAAA,SAAS,EAAC;AAAf,KACGE,WAAW,IACZ;AAAG,IAAA,SAAS,EAAC;AAAb,KACGA,WADH,CAFF,EAMGD,OANH,CA5CD,CADD;AAuDA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalHStack as HStack,\n\t__experimentalVStack as VStack,\n\t__experimentalNavigatorToParentButton as NavigatorToParentButton,\n\t__experimentalHeading as Heading,\n} from '@wordpress/components';\nimport { isRTL, __, sprintf } from '@wordpress/i18n';\nimport { chevronRight, chevronLeft } from '@wordpress/icons';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { store as editSiteStore } from '../../store';\nimport { unlock } from '../../private-apis';\nimport SidebarButton from '../sidebar-button';\nimport {\n\tisPreviewingTheme,\n\tcurrentlyPreviewingTheme,\n} from '../../utils/is-previewing-theme';\n\nexport default function SidebarNavigationScreen( {\n\tisRoot,\n\ttitle,\n\tactions,\n\tcontent,\n\tdescription,\n} ) {\n\tconst { dashboardLink } = useSelect( ( select ) => {\n\t\tconst { getSettings } = unlock( select( editSiteStore ) );\n\t\treturn {\n\t\t\tdashboardLink: getSettings().__experimentalDashboardLink,\n\t\t};\n\t}, [] );\n\tconst { getTheme } = useSelect( coreStore );\n\tconst theme = getTheme( currentlyPreviewingTheme() );\n\n\treturn (\n\t\t<VStack spacing={ 2 }>\n\t\t\t<HStack\n\t\t\t\tspacing={ 4 }\n\t\t\t\talignment=\"flex-start\"\n\t\t\t\tclassName=\"edit-site-sidebar-navigation-screen__title-icon\"\n\t\t\t>\n\t\t\t\t{ ! isRoot ? (\n\t\t\t\t\t<NavigatorToParentButton\n\t\t\t\t\t\tas={ SidebarButton }\n\t\t\t\t\t\ticon={ isRTL() ? chevronRight : chevronLeft }\n\t\t\t\t\t\tlabel={ __( 'Back' ) }\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\t<SidebarButton\n\t\t\t\t\t\ticon={ isRTL() ? chevronRight : chevronLeft }\n\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t! isPreviewingTheme()\n\t\t\t\t\t\t\t\t? __( 'Go back to the Dashboard' )\n\t\t\t\t\t\t\t\t: __( 'Go back to the theme showcase' )\n\t\t\t\t\t\t}\n\t\t\t\t\t\thref={\n\t\t\t\t\t\t\t! isPreviewingTheme()\n\t\t\t\t\t\t\t\t? dashboardLink || 'index.php'\n\t\t\t\t\t\t\t\t: 'themes.php'\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t\t<Heading\n\t\t\t\t\tclassName=\"edit-site-sidebar-navigation-screen__title\"\n\t\t\t\t\tcolor={ 'white' }\n\t\t\t\t\tlevel={ 2 }\n\t\t\t\t\tsize={ 20 }\n\t\t\t\t>\n\t\t\t\t\t{ ! isPreviewingTheme()\n\t\t\t\t\t\t? title\n\t\t\t\t\t\t: sprintf(\n\t\t\t\t\t\t\t\t'Previewing %1$s: %2$s',\n\t\t\t\t\t\t\t\ttheme?.name?.rendered,\n\t\t\t\t\t\t\t\ttitle\n\t\t\t\t\t\t ) }\n\t\t\t\t</Heading>\n\t\t\t\t{ actions }\n\t\t\t</HStack>\n\n\t\t\t<nav className=\"edit-site-sidebar-navigation-screen__content\">\n\t\t\t\t{ description && (\n\t\t\t\t\t<p className=\"edit-site-sidebar-navigation-screen__description\">\n\t\t\t\t\t\t{ description }\n\t\t\t\t\t</p>\n\t\t\t\t) }\n\t\t\t\t{ content }\n\t\t\t</nav>\n\t\t</VStack>\n\t);\n}\n"]}
1
+ {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen/index.js"],"names":["SidebarNavigationScreen","isRoot","title","actions","meta","content","footer","description","backPath","dashboardLink","select","getSettings","editSiteStore","__experimentalDashboardLink","getTheme","coreStore","goTo","theme","icon","chevronRight","chevronLeft","SidebarButton","isBack","name","rendered"],"mappings":";;;;;;;;;;;AAGA;;AAOA;;AACA;;AACA;;AACA;;AAKA;;AACA;;AACA;;AACA;;AArBA;AACA;AACA;;AAaA;AACA;AACA;AASe,SAASA,uBAAT,CAAkC;AAChDC,EAAAA,MADgD;AAEhDC,EAAAA,KAFgD;AAGhDC,EAAAA,OAHgD;AAIhDC,EAAAA,IAJgD;AAKhDC,EAAAA,OALgD;AAMhDC,EAAAA,MANgD;AAOhDC,EAAAA,WAPgD;AAQhDC,EAAAA;AARgD,CAAlC,EASX;AACH,QAAM;AAAEC,IAAAA;AAAF,MAAoB,qBAAaC,MAAF,IAAc;AAClD,UAAM;AAAEC,MAAAA;AAAF,QAAkB,wBAAQD,MAAM,CAAEE,YAAF,CAAd,CAAxB;AACA,WAAO;AACNH,MAAAA,aAAa,EAAEE,WAAW,GAAGE;AADvB,KAAP;AAGA,GALyB,EAKvB,EALuB,CAA1B;AAMA,QAAM;AAAEC,IAAAA;AAAF,MAAe,qBAAWC,eAAX,CAArB;AACA,QAAM;AAAEC,IAAAA;AAAF,MAAW,6CAAjB;AACA,QAAMC,KAAK,GAAGH,QAAQ,CAAE,kDAAF,CAAtB;AACA,QAAMI,IAAI,GAAG,qBAAUC,mBAAV,GAAyBC,kBAAtC;AAEA,SACC,qDACC,4BAAC,gCAAD;AACC,IAAA,SAAS,EAAC,2CADX;AAEC,IAAA,OAAO,EAAG,CAFX;AAGC,IAAA,OAAO,EAAC;AAHT,KAKC,4BAAC,gCAAD;AACC,IAAA,OAAO,EAAG,CADX;AAEC,IAAA,SAAS,EAAC,YAFX;AAGC,IAAA,SAAS,EAAC;AAHX,KAKG,CAAEnB,MAAF,IAAY,CAAEO,QAAd,IACD,4BAAC,iDAAD;AACC,IAAA,EAAE,EAAGa,sBADN;AAEC,IAAA,IAAI,EAAG,qBAAUF,mBAAV,GAAyBC,kBAFjC;AAGC,kBAAa,cAAI,MAAJ;AAHd,IANF,EAYG,CAAEnB,MAAF,IAAYO,QAAZ,IACD,4BAAC,sBAAD;AACC,IAAA,OAAO,EAAG,MAAMQ,IAAI,CAAER,QAAF,EAAY;AAAEc,MAAAA,MAAM,EAAE;AAAV,KAAZ,CADrB;AAEC,IAAA,IAAI,EAAGJ,IAFR;AAGC,IAAA,KAAK,EAAG,cAAI,MAAJ;AAHT,IAbF,EAmBGjB,MAAM,IACP,4BAAC,sBAAD;AACC,IAAA,IAAI,EAAGiB,IADR;AAEC,IAAA,KAAK,EACJ,CAAE,2CAAF,GACG,cAAI,0BAAJ,CADH,GAEG,cAAI,+BAAJ,CALL;AAOC,IAAA,IAAI,EACH,CAAE,2CAAF,GACGT,aAAa,IAAI,WADpB,GAEG;AAVL,IApBF,EAkCC,4BAAC,iCAAD;AACC,IAAA,SAAS,EAAC,4CADX;AAEC,IAAA,KAAK,EAAG,OAFT;AAGC,IAAA,KAAK,EAAG,CAHT;AAIC,IAAA,IAAI,EAAG;AAJR,KAMG,CAAE,2CAAF,GACCP,KADD,GAEC,mBACA,uBADA,EAEAe,KAAK,EAAEM,IAAP,EAAaC,QAFb,EAGAtB,KAHA,CARJ,CAlCD,EAgDGC,OAAO,IACR;AAAK,IAAA,SAAS,EAAC;AAAf,KACGA,OADH,CAjDF,CALD,EA2DGC,IAAI,IACL,qDACC;AAAK,IAAA,SAAS,EAAC;AAAf,KACGA,IADH,CADD,CA5DF,EAmEC;AAAK,IAAA,SAAS,EAAC;AAAf,KACGG,WAAW,IACZ;AAAG,IAAA,SAAS,EAAC;AAAb,KACGA,WADH,CAFF,EAMGF,OANH,CAnED,CADD,EA6EGC,MAAM,IACP;AAAQ,IAAA,SAAS,EAAC;AAAlB,KACGA,MADH,CA9EF,CADD;AAqFA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalHStack as HStack,\n\t__experimentalHeading as Heading,\n\t__experimentalNavigatorToParentButton as NavigatorToParentButton,\n\t__experimentalUseNavigator as useNavigator,\n\t__experimentalVStack as VStack,\n} from '@wordpress/components';\nimport { isRTL, __, sprintf } from '@wordpress/i18n';\nimport { chevronRight, chevronLeft } from '@wordpress/icons';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { store as editSiteStore } from '../../store';\nimport { unlock } from '../../lock-unlock';\nimport SidebarButton from '../sidebar-button';\nimport {\n\tisPreviewingTheme,\n\tcurrentlyPreviewingTheme,\n} from '../../utils/is-previewing-theme';\n\nexport default function SidebarNavigationScreen( {\n\tisRoot,\n\ttitle,\n\tactions,\n\tmeta,\n\tcontent,\n\tfooter,\n\tdescription,\n\tbackPath,\n} ) {\n\tconst { dashboardLink } = useSelect( ( select ) => {\n\t\tconst { getSettings } = unlock( select( editSiteStore ) );\n\t\treturn {\n\t\t\tdashboardLink: getSettings().__experimentalDashboardLink,\n\t\t};\n\t}, [] );\n\tconst { getTheme } = useSelect( coreStore );\n\tconst { goTo } = useNavigator();\n\tconst theme = getTheme( currentlyPreviewingTheme() );\n\tconst icon = isRTL() ? chevronRight : chevronLeft;\n\n\treturn (\n\t\t<>\n\t\t\t<VStack\n\t\t\t\tclassName=\"edit-site-sidebar-navigation-screen__main\"\n\t\t\t\tspacing={ 0 }\n\t\t\t\tjustify=\"flex-start\"\n\t\t\t>\n\t\t\t\t<HStack\n\t\t\t\t\tspacing={ 4 }\n\t\t\t\t\talignment=\"flex-start\"\n\t\t\t\t\tclassName=\"edit-site-sidebar-navigation-screen__title-icon\"\n\t\t\t\t>\n\t\t\t\t\t{ ! isRoot && ! backPath && (\n\t\t\t\t\t\t<NavigatorToParentButton\n\t\t\t\t\t\t\tas={ SidebarButton }\n\t\t\t\t\t\t\ticon={ isRTL() ? chevronRight : chevronLeft }\n\t\t\t\t\t\t\taria-label={ __( 'Back' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t\t{ ! isRoot && backPath && (\n\t\t\t\t\t\t<SidebarButton\n\t\t\t\t\t\t\tonClick={ () => goTo( backPath, { isBack: true } ) }\n\t\t\t\t\t\t\ticon={ icon }\n\t\t\t\t\t\t\tlabel={ __( 'Back' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t\t{ isRoot && (\n\t\t\t\t\t\t<SidebarButton\n\t\t\t\t\t\t\ticon={ icon }\n\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t! isPreviewingTheme()\n\t\t\t\t\t\t\t\t\t? __( 'Go back to the Dashboard' )\n\t\t\t\t\t\t\t\t\t: __( 'Go back to the theme showcase' )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\thref={\n\t\t\t\t\t\t\t\t! isPreviewingTheme()\n\t\t\t\t\t\t\t\t\t? dashboardLink || 'index.php'\n\t\t\t\t\t\t\t\t\t: 'themes.php'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t\t<Heading\n\t\t\t\t\t\tclassName=\"edit-site-sidebar-navigation-screen__title\"\n\t\t\t\t\t\tcolor={ 'white' }\n\t\t\t\t\t\tlevel={ 1 }\n\t\t\t\t\t\tsize={ 20 }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ ! isPreviewingTheme()\n\t\t\t\t\t\t\t? title\n\t\t\t\t\t\t\t: sprintf(\n\t\t\t\t\t\t\t\t\t'Previewing %1$s: %2$s',\n\t\t\t\t\t\t\t\t\ttheme?.name?.rendered,\n\t\t\t\t\t\t\t\t\ttitle\n\t\t\t\t\t\t\t ) }\n\t\t\t\t\t</Heading>\n\t\t\t\t\t{ actions && (\n\t\t\t\t\t\t<div className=\"edit-site-sidebar-navigation-screen__actions\">\n\t\t\t\t\t\t\t{ actions }\n\t\t\t\t\t\t</div>\n\t\t\t\t\t) }\n\t\t\t\t</HStack>\n\t\t\t\t{ meta && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<div className=\"edit-site-sidebar-navigation-screen__meta\">\n\t\t\t\t\t\t\t{ meta }\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</>\n\t\t\t\t) }\n\n\t\t\t\t<div className=\"edit-site-sidebar-navigation-screen__content\">\n\t\t\t\t\t{ description && (\n\t\t\t\t\t\t<p className=\"edit-site-sidebar-navigation-screen__description\">\n\t\t\t\t\t\t\t{ description }\n\t\t\t\t\t\t</p>\n\t\t\t\t\t) }\n\t\t\t\t\t{ content }\n\t\t\t\t</div>\n\t\t\t</VStack>\n\t\t\t{ footer && (\n\t\t\t\t<footer className=\"edit-site-sidebar-navigation-screen__footer\">\n\t\t\t\t\t{ footer }\n\t\t\t\t</footer>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"]}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = SidebarNavigationScreenDetailsFooter;
7
+
8
+ var _element = require("@wordpress/element");
9
+
10
+ var _i18n = require("@wordpress/i18n");
11
+
12
+ var _date = require("@wordpress/date");
13
+
14
+ var _sidebarNavigationScreenDetailsPanel = require("../sidebar-navigation-screen-details-panel");
15
+
16
+ /**
17
+ * WordPress dependencies
18
+ */
19
+
20
+ /**
21
+ * Internal dependencies
22
+ */
23
+ function SidebarNavigationScreenDetailsFooter({
24
+ lastModifiedDateTime
25
+ }) {
26
+ return (0, _element.createElement)(_element.Fragment, null, lastModifiedDateTime && (0, _element.createElement)(_sidebarNavigationScreenDetailsPanel.SidebarNavigationScreenDetailsPanelRow, {
27
+ className: "edit-site-sidebar-navigation-screen-details-footer"
28
+ }, (0, _element.createElement)(_sidebarNavigationScreenDetailsPanel.SidebarNavigationScreenDetailsPanelLabel, null, (0, _i18n.__)('Last modified')), (0, _element.createElement)(_sidebarNavigationScreenDetailsPanel.SidebarNavigationScreenDetailsPanelValue, null, (0, _element.createInterpolateElement)((0, _i18n.sprintf)(
29
+ /* translators: %s: is the relative time when the post was last modified. */
30
+ (0, _i18n.__)('<time>%s</time>'), (0, _date.humanTimeDiff)(lastModifiedDateTime)), {
31
+ time: (0, _element.createElement)("time", {
32
+ dateTime: lastModifiedDateTime
33
+ })
34
+ }))));
35
+ }
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-details-footer/index.js"],"names":["SidebarNavigationScreenDetailsFooter","lastModifiedDateTime","time"],"mappings":";;;;;;;AAKA;;AAFA;;AACA;;AAMA;;AAVA;AACA;AACA;;AAKA;AACA;AACA;AAOe,SAASA,oCAAT,CAA+C;AAC7DC,EAAAA;AAD6D,CAA/C,EAEX;AACH,SACC,qDACGA,oBAAoB,IACrB,4BAAC,2EAAD;AAAwC,IAAA,SAAS,EAAC;AAAlD,KACC,4BAAC,6EAAD,QACG,cAAI,eAAJ,CADH,CADD,EAIC,4BAAC,6EAAD,QACG,uCACD;AACC;AACA,gBAAI,iBAAJ,CAFD,EAGC,yBAAeA,oBAAf,CAHD,CADC,EAMD;AACCC,IAAAA,IAAI,EACH;AAAM,MAAA,QAAQ,EAAGD;AAAjB;AAFF,GANC,CADH,CAJD,CAFF,CADD;AAyBA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { humanTimeDiff } from '@wordpress/date';\nimport { createInterpolateElement } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport {\n\tSidebarNavigationScreenDetailsPanelRow,\n\tSidebarNavigationScreenDetailsPanelLabel,\n\tSidebarNavigationScreenDetailsPanelValue,\n} from '../sidebar-navigation-screen-details-panel';\n\nexport default function SidebarNavigationScreenDetailsFooter( {\n\tlastModifiedDateTime,\n} ) {\n\treturn (\n\t\t<>\n\t\t\t{ lastModifiedDateTime && (\n\t\t\t\t<SidebarNavigationScreenDetailsPanelRow className=\"edit-site-sidebar-navigation-screen-details-footer\">\n\t\t\t\t\t<SidebarNavigationScreenDetailsPanelLabel>\n\t\t\t\t\t\t{ __( 'Last modified' ) }\n\t\t\t\t\t</SidebarNavigationScreenDetailsPanelLabel>\n\t\t\t\t\t<SidebarNavigationScreenDetailsPanelValue>\n\t\t\t\t\t\t{ createInterpolateElement(\n\t\t\t\t\t\t\tsprintf(\n\t\t\t\t\t\t\t\t/* translators: %s: is the relative time when the post was last modified. */\n\t\t\t\t\t\t\t\t__( '<time>%s</time>' ),\n\t\t\t\t\t\t\t\thumanTimeDiff( lastModifiedDateTime )\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttime: (\n\t\t\t\t\t\t\t\t\t<time dateTime={ lastModifiedDateTime } />\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t) }\n\t\t\t\t\t</SidebarNavigationScreenDetailsPanelValue>\n\t\t\t\t</SidebarNavigationScreenDetailsPanelRow>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"]}