@wordpress/edit-site 5.19.6 → 5.20.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 (725) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/components/add-new-page/index.js +9 -8
  3. package/build/components/add-new-page/index.js.map +1 -1
  4. package/build/components/add-new-pattern/index.js +6 -5
  5. package/build/components/add-new-pattern/index.js.map +1 -1
  6. package/build/components/add-new-template/add-custom-generic-template-modal-content.js +8 -7
  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 +20 -19
  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 +2 -2
  11. package/build/components/add-new-template/index.js.map +1 -1
  12. package/build/components/add-new-template/new-template.js +17 -16
  13. package/build/components/add-new-template/new-template.js.map +1 -1
  14. package/build/components/add-new-template/template-actions-loading-screen.js +4 -4
  15. package/build/components/add-new-template/template-actions-loading-screen.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 +2 -2
  19. package/build/components/block-editor/back-button.js.map +1 -1
  20. package/build/components/block-editor/block-editor-provider/default-block-editor-provider.js +10 -6
  21. package/build/components/block-editor/block-editor-provider/default-block-editor-provider.js.map +1 -1
  22. package/build/components/block-editor/block-editor-provider/index.js +3 -3
  23. package/build/components/block-editor/block-editor-provider/index.js.map +1 -1
  24. package/build/components/block-editor/block-editor-provider/navigation-block-editor-provider.js +3 -2
  25. package/build/components/block-editor/block-editor-provider/navigation-block-editor-provider.js.map +1 -1
  26. package/build/components/block-editor/block-editor-provider/use-page-content-blocks.js +19 -11
  27. package/build/components/block-editor/block-editor-provider/use-page-content-blocks.js.map +1 -1
  28. package/build/components/block-editor/block-inspector-button.js +2 -2
  29. package/build/components/block-editor/block-inspector-button.js.map +1 -1
  30. package/build/components/block-editor/editor-canvas.js +4 -3
  31. package/build/components/block-editor/editor-canvas.js.map +1 -1
  32. package/build/components/block-editor/index.js +2 -2
  33. package/build/components/block-editor/index.js.map +1 -1
  34. package/build/components/block-editor/resizable-editor.js +4 -3
  35. package/build/components/block-editor/resizable-editor.js.map +1 -1
  36. package/build/components/block-editor/resize-handle.js +3 -3
  37. package/build/components/block-editor/resize-handle.js.map +1 -1
  38. package/build/components/block-editor/site-editor-canvas.js +8 -7
  39. package/build/components/block-editor/site-editor-canvas.js.map +1 -1
  40. package/build/components/canvas-loader/index.js +4 -4
  41. package/build/components/canvas-loader/index.js.map +1 -1
  42. package/build/components/code-editor/index.js +8 -7
  43. package/build/components/code-editor/index.js.map +1 -1
  44. package/build/components/create-template-part-modal/index.js +17 -16
  45. package/build/components/create-template-part-modal/index.js.map +1 -1
  46. package/build/components/dataviews/dataviews.js +61 -0
  47. package/build/components/dataviews/dataviews.js.map +1 -0
  48. package/build/components/dataviews/index.js +21 -0
  49. package/build/components/dataviews/index.js.map +1 -0
  50. package/build/components/dataviews/list-view.js +89 -0
  51. package/build/components/dataviews/list-view.js.map +1 -0
  52. package/build/components/dataviews/pagination.js +89 -0
  53. package/build/components/dataviews/pagination.js.map +1 -0
  54. package/build/components/dataviews/text-filter.js +44 -0
  55. package/build/components/dataviews/text-filter.js.map +1 -0
  56. package/build/components/dataviews/view-actions.js +189 -0
  57. package/build/components/dataviews/view-actions.js.map +1 -0
  58. package/build/components/editor/index.js +15 -14
  59. package/build/components/editor/index.js.map +1 -1
  60. package/build/components/editor-canvas-container/index.js +4 -3
  61. package/build/components/editor-canvas-container/index.js.map +1 -1
  62. package/build/components/error-boundary/index.js +2 -1
  63. package/build/components/error-boundary/index.js.map +1 -1
  64. package/build/components/error-boundary/warning.js +4 -4
  65. package/build/components/error-boundary/warning.js.map +1 -1
  66. package/build/components/global-styles/block-preview-panel.js +5 -4
  67. package/build/components/global-styles/block-preview-panel.js.map +1 -1
  68. package/build/components/global-styles/color-indicator-wrapper.js +2 -2
  69. package/build/components/global-styles/color-indicator-wrapper.js.map +1 -1
  70. package/build/components/global-styles/color-palette-panel.js +5 -5
  71. package/build/components/global-styles/color-palette-panel.js.map +1 -1
  72. package/build/components/global-styles/dimensions-panel.js +3 -2
  73. package/build/components/global-styles/dimensions-panel.js.map +1 -1
  74. package/build/components/global-styles/font-families.js +14 -14
  75. package/build/components/global-styles/font-families.js.map +1 -1
  76. package/build/components/global-styles/font-family-item.js +6 -5
  77. package/build/components/global-styles/font-family-item.js.map +1 -1
  78. package/build/components/global-styles/font-library-modal/collection-font-details.js +6 -6
  79. package/build/components/global-styles/font-library-modal/collection-font-details.js.map +1 -1
  80. package/build/components/global-styles/font-library-modal/collection-font-variant.js +5 -5
  81. package/build/components/global-styles/font-library-modal/collection-font-variant.js.map +1 -1
  82. package/build/components/global-styles/font-library-modal/confirm-delete-dialog.js +2 -2
  83. package/build/components/global-styles/font-library-modal/confirm-delete-dialog.js.map +1 -1
  84. package/build/components/global-styles/font-library-modal/context.js +2 -1
  85. package/build/components/global-styles/font-library-modal/context.js.map +1 -1
  86. package/build/components/global-styles/font-library-modal/font-card.js +7 -7
  87. package/build/components/global-styles/font-library-modal/font-card.js.map +1 -1
  88. package/build/components/global-styles/font-library-modal/font-collection.js +17 -16
  89. package/build/components/global-styles/font-library-modal/font-collection.js.map +1 -1
  90. package/build/components/global-styles/font-library-modal/font-demo.js +5 -4
  91. package/build/components/global-styles/font-library-modal/font-demo.js.map +1 -1
  92. package/build/components/global-styles/font-library-modal/font-variant.js +7 -7
  93. package/build/components/global-styles/font-library-modal/font-variant.js.map +1 -1
  94. package/build/components/global-styles/font-library-modal/fonts-grid.js +8 -7
  95. package/build/components/global-styles/font-library-modal/fonts-grid.js.map +1 -1
  96. package/build/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js +9 -9
  97. package/build/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js.map +1 -1
  98. package/build/components/global-styles/font-library-modal/index.js +7 -6
  99. package/build/components/global-styles/font-library-modal/index.js.map +1 -1
  100. package/build/components/global-styles/font-library-modal/installed-fonts.js +17 -16
  101. package/build/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
  102. package/build/components/global-styles/font-library-modal/library-font-card.js +3 -2
  103. package/build/components/global-styles/font-library-modal/library-font-card.js.map +1 -1
  104. package/build/components/global-styles/font-library-modal/library-font-details.js +6 -6
  105. package/build/components/global-styles/font-library-modal/library-font-details.js.map +1 -1
  106. package/build/components/global-styles/font-library-modal/library-font-variant.js +5 -4
  107. package/build/components/global-styles/font-library-modal/library-font-variant.js.map +1 -1
  108. package/build/components/global-styles/font-library-modal/local-fonts.js +12 -11
  109. package/build/components/global-styles/font-library-modal/local-fonts.js.map +1 -1
  110. package/build/components/global-styles/font-library-modal/tab-layout.js +9 -9
  111. package/build/components/global-styles/font-library-modal/tab-layout.js.map +1 -1
  112. package/build/components/global-styles/font-library-modal/upload-fonts.js +3 -3
  113. package/build/components/global-styles/font-library-modal/upload-fonts.js.map +1 -1
  114. package/build/components/global-styles/global-styles-provider.js +3 -2
  115. package/build/components/global-styles/global-styles-provider.js.map +1 -1
  116. package/build/components/global-styles/gradients-palette-panel.js +8 -8
  117. package/build/components/global-styles/gradients-palette-panel.js.map +1 -1
  118. package/build/components/global-styles/header.js +7 -7
  119. package/build/components/global-styles/header.js.map +1 -1
  120. package/build/components/global-styles/icon-with-current-color.js +2 -2
  121. package/build/components/global-styles/icon-with-current-color.js.map +1 -1
  122. package/build/components/global-styles/navigation-button.js +7 -7
  123. package/build/components/global-styles/navigation-button.js.map +1 -1
  124. package/build/components/global-styles/palette.js +11 -10
  125. package/build/components/global-styles/palette.js.map +1 -1
  126. package/build/components/global-styles/preview.js +17 -16
  127. package/build/components/global-styles/preview.js.map +1 -1
  128. package/build/components/global-styles/root-menu.js +4 -4
  129. package/build/components/global-styles/root-menu.js.map +1 -1
  130. package/build/components/global-styles/screen-block-list.js +10 -9
  131. package/build/components/global-styles/screen-block-list.js.map +1 -1
  132. package/build/components/global-styles/screen-block.js +17 -16
  133. package/build/components/global-styles/screen-block.js.map +1 -1
  134. package/build/components/global-styles/screen-color-palette.js +5 -5
  135. package/build/components/global-styles/screen-color-palette.js.map +1 -1
  136. package/build/components/global-styles/screen-colors.js +5 -5
  137. package/build/components/global-styles/screen-colors.js.map +1 -1
  138. package/build/components/global-styles/screen-css.js +5 -5
  139. package/build/components/global-styles/screen-css.js.map +1 -1
  140. package/build/components/global-styles/screen-layout.js +3 -3
  141. package/build/components/global-styles/screen-layout.js.map +1 -1
  142. package/build/components/global-styles/screen-revisions/index.js +10 -9
  143. package/build/components/global-styles/screen-revisions/index.js.map +1 -1
  144. package/build/components/global-styles/screen-revisions/revisions-buttons.js +10 -10
  145. package/build/components/global-styles/screen-revisions/revisions-buttons.js.map +1 -1
  146. package/build/components/global-styles/screen-root.js +14 -14
  147. package/build/components/global-styles/screen-root.js.map +1 -1
  148. package/build/components/global-styles/screen-style-variations.js +5 -4
  149. package/build/components/global-styles/screen-style-variations.js.map +1 -1
  150. package/build/components/global-styles/screen-typography-element.js +15 -14
  151. package/build/components/global-styles/screen-typography-element.js.map +1 -1
  152. package/build/components/global-styles/screen-typography.js +5 -5
  153. package/build/components/global-styles/screen-typography.js.map +1 -1
  154. package/build/components/global-styles/style-variations-container.js +8 -7
  155. package/build/components/global-styles/style-variations-container.js.map +1 -1
  156. package/build/components/global-styles/subtitle.js +2 -2
  157. package/build/components/global-styles/subtitle.js.map +1 -1
  158. package/build/components/global-styles/typography-panel.js +2 -2
  159. package/build/components/global-styles/typography-panel.js.map +1 -1
  160. package/build/components/global-styles/typography-preview.js +2 -2
  161. package/build/components/global-styles/typography-preview.js.map +1 -1
  162. package/build/components/global-styles/typogrphy-elements.js +13 -13
  163. package/build/components/global-styles/typogrphy-elements.js.map +1 -1
  164. package/build/components/global-styles/ui.js +41 -40
  165. package/build/components/global-styles/ui.js.map +1 -1
  166. package/build/components/global-styles/variations-panel.js +3 -3
  167. package/build/components/global-styles/variations-panel.js.map +1 -1
  168. package/build/components/header-edit-mode/document-actions/index.js +16 -15
  169. package/build/components/header-edit-mode/document-actions/index.js.map +1 -1
  170. package/build/components/header-edit-mode/index.js +20 -19
  171. package/build/components/header-edit-mode/index.js.map +1 -1
  172. package/build/components/header-edit-mode/mode-switcher/index.js +3 -3
  173. package/build/components/header-edit-mode/mode-switcher/index.js.map +1 -1
  174. package/build/components/header-edit-mode/more-menu/copy-content-menu-item.js +2 -2
  175. package/build/components/header-edit-mode/more-menu/copy-content-menu-item.js.map +1 -1
  176. package/build/components/header-edit-mode/more-menu/index.js +14 -14
  177. package/build/components/header-edit-mode/more-menu/index.js.map +1 -1
  178. package/build/components/header-edit-mode/more-menu/site-export.js +2 -2
  179. package/build/components/header-edit-mode/more-menu/site-export.js.map +1 -1
  180. package/build/components/header-edit-mode/more-menu/welcome-guide-menu-item.js +2 -2
  181. package/build/components/header-edit-mode/more-menu/welcome-guide-menu-item.js.map +1 -1
  182. package/build/components/header-edit-mode/plugin-more-menu-item/index.js +1 -1
  183. package/build/components/header-edit-mode/plugin-more-menu-item/index.js.map +1 -1
  184. package/build/components/header-edit-mode/plugin-sidebar-more-menu-item/index.js +3 -3
  185. package/build/components/header-edit-mode/plugin-sidebar-more-menu-item/index.js.map +1 -1
  186. package/build/components/header-edit-mode/tools-more-menu-group/index.js +2 -2
  187. package/build/components/header-edit-mode/tools-more-menu-group/index.js.map +1 -1
  188. package/build/components/header-edit-mode/undo-redo/redo.js +3 -2
  189. package/build/components/header-edit-mode/undo-redo/redo.js.map +1 -1
  190. package/build/components/header-edit-mode/undo-redo/undo.js +3 -2
  191. package/build/components/header-edit-mode/undo-redo/undo.js.map +1 -1
  192. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +2 -2
  193. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
  194. package/build/components/keyboard-shortcut-help-modal/index.js +15 -15
  195. package/build/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  196. package/build/components/keyboard-shortcut-help-modal/shortcut.js +8 -7
  197. package/build/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
  198. package/build/components/layout/index.js +15 -14
  199. package/build/components/layout/index.js.map +1 -1
  200. package/build/components/list/added-by.js +9 -8
  201. package/build/components/list/added-by.js.map +1 -1
  202. package/build/components/list/header.js +5 -5
  203. package/build/components/list/header.js.map +1 -1
  204. package/build/components/list/index.js +5 -5
  205. package/build/components/list/index.js.map +1 -1
  206. package/build/components/list/table.js +15 -15
  207. package/build/components/list/table.js.map +1 -1
  208. package/build/components/page/header.js +6 -6
  209. package/build/components/page/header.js.map +1 -1
  210. package/build/components/page/index.js +5 -5
  211. package/build/components/page/index.js.map +1 -1
  212. package/build/components/page-actions/index.js +3 -3
  213. package/build/components/page-actions/index.js.map +1 -1
  214. package/build/components/page-actions/trash-page-menu-item.js +2 -2
  215. package/build/components/page-actions/trash-page-menu-item.js.map +1 -1
  216. package/build/components/page-content-focus-manager/disable-non-page-content-blocks.js +3 -2
  217. package/build/components/page-content-focus-manager/disable-non-page-content-blocks.js.map +1 -1
  218. package/build/components/page-content-focus-manager/edit-template-notification.js +3 -2
  219. package/build/components/page-content-focus-manager/edit-template-notification.js.map +1 -1
  220. package/build/components/page-content-focus-manager/index.js +35 -4
  221. package/build/components/page-content-focus-manager/index.js.map +1 -1
  222. package/build/components/page-main/index.js +7 -4
  223. package/build/components/page-main/index.js.map +1 -1
  224. package/build/components/page-pages/index.js +174 -0
  225. package/build/components/page-pages/index.js.map +1 -0
  226. package/build/components/page-patterns/duplicate-menu-item.js +2 -2
  227. package/build/components/page-patterns/duplicate-menu-item.js.map +1 -1
  228. package/build/components/page-patterns/grid-item.js +21 -20
  229. package/build/components/page-patterns/grid-item.js.map +1 -1
  230. package/build/components/page-patterns/grid.js +3 -3
  231. package/build/components/page-patterns/grid.js.map +1 -1
  232. package/build/components/page-patterns/header.js +4 -4
  233. package/build/components/page-patterns/header.js.map +1 -1
  234. package/build/components/page-patterns/index.js +4 -4
  235. package/build/components/page-patterns/index.js.map +1 -1
  236. package/build/components/page-patterns/no-patterns.js +2 -2
  237. package/build/components/page-patterns/no-patterns.js.map +1 -1
  238. package/build/components/page-patterns/pagination.js +10 -10
  239. package/build/components/page-patterns/pagination.js.map +1 -1
  240. package/build/components/page-patterns/patterns-list.js +15 -14
  241. package/build/components/page-patterns/patterns-list.js.map +1 -1
  242. package/build/components/page-patterns/rename-menu-item.js +10 -9
  243. package/build/components/page-patterns/rename-menu-item.js.map +1 -1
  244. package/build/components/page-template-parts/add-new-template-part.js +4 -3
  245. package/build/components/page-template-parts/add-new-template-part.js.map +1 -1
  246. package/build/components/page-template-parts/index.js +9 -9
  247. package/build/components/page-template-parts/index.js.map +1 -1
  248. package/build/components/page-templates/index.js +10 -10
  249. package/build/components/page-templates/index.js.map +1 -1
  250. package/build/components/plugin-template-setting-panel/index.js +1 -1
  251. package/build/components/plugin-template-setting-panel/index.js.map +1 -1
  252. package/build/components/preferences-modal/enable-feature.js +2 -2
  253. package/build/components/preferences-modal/enable-feature.js.map +1 -1
  254. package/build/components/preferences-modal/index.js +12 -11
  255. package/build/components/preferences-modal/index.js.map +1 -1
  256. package/build/components/resizable-frame/index.js +7 -6
  257. package/build/components/resizable-frame/index.js.map +1 -1
  258. package/build/components/revisions/index.js +9 -8
  259. package/build/components/revisions/index.js.map +1 -1
  260. package/build/components/routes/link.js +2 -2
  261. package/build/components/routes/link.js.map +1 -1
  262. package/build/components/save-button/index.js +2 -2
  263. package/build/components/save-button/index.js.map +1 -1
  264. package/build/components/save-hub/index.js +4 -4
  265. package/build/components/save-hub/index.js.map +1 -1
  266. package/build/components/save-panel/index.js +11 -11
  267. package/build/components/save-panel/index.js.map +1 -1
  268. package/build/components/secondary-sidebar/inserter-sidebar.js +7 -6
  269. package/build/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
  270. package/build/components/secondary-sidebar/list-view-sidebar.js +7 -6
  271. package/build/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
  272. package/build/components/sidebar/index.js +23 -14
  273. package/build/components/sidebar/index.js.map +1 -1
  274. package/build/components/sidebar-button/index.js +2 -2
  275. package/build/components/sidebar-button/index.js.map +1 -1
  276. package/build/components/sidebar-edit-mode/default-sidebar.js +3 -3
  277. package/build/components/sidebar-edit-mode/default-sidebar.js.map +1 -1
  278. package/build/components/sidebar-edit-mode/global-styles-sidebar.js +8 -7
  279. package/build/components/sidebar-edit-mode/global-styles-sidebar.js.map +1 -1
  280. package/build/components/sidebar-edit-mode/index.js +6 -5
  281. package/build/components/sidebar-edit-mode/index.js.map +1 -1
  282. package/build/components/sidebar-edit-mode/page-panels/edit-template.js +20 -10
  283. package/build/components/sidebar-edit-mode/page-panels/edit-template.js.map +1 -1
  284. package/build/components/sidebar-edit-mode/page-panels/index.js +7 -7
  285. package/build/components/sidebar-edit-mode/page-panels/index.js.map +1 -1
  286. package/build/components/sidebar-edit-mode/page-panels/page-content.js +3 -2
  287. package/build/components/sidebar-edit-mode/page-panels/page-content.js.map +1 -1
  288. package/build/components/sidebar-edit-mode/page-panels/page-status.js +21 -20
  289. package/build/components/sidebar-edit-mode/page-panels/page-status.js.map +1 -1
  290. package/build/components/sidebar-edit-mode/page-panels/page-summary.js +4 -4
  291. package/build/components/sidebar-edit-mode/page-panels/page-summary.js.map +1 -1
  292. package/build/components/sidebar-edit-mode/page-panels/publish-date.js +7 -6
  293. package/build/components/sidebar-edit-mode/page-panels/publish-date.js.map +1 -1
  294. package/build/components/sidebar-edit-mode/page-panels/reset-default-template.js +2 -2
  295. package/build/components/sidebar-edit-mode/page-panels/reset-default-template.js.map +1 -1
  296. package/build/components/sidebar-edit-mode/page-panels/swap-template-button.js +7 -6
  297. package/build/components/sidebar-edit-mode/page-panels/swap-template-button.js.map +1 -1
  298. package/build/components/sidebar-edit-mode/plugin-sidebar/index.js +2 -2
  299. package/build/components/sidebar-edit-mode/plugin-sidebar/index.js.map +1 -1
  300. package/build/components/sidebar-edit-mode/settings-header/index.js +3 -3
  301. package/build/components/sidebar-edit-mode/settings-header/index.js.map +1 -1
  302. package/build/components/sidebar-edit-mode/sidebar-card/index.js +7 -7
  303. package/build/components/sidebar-edit-mode/sidebar-card/index.js.map +1 -1
  304. package/build/components/sidebar-edit-mode/sidebar-fixed-bottom.js +2 -2
  305. package/build/components/sidebar-edit-mode/sidebar-fixed-bottom.js.map +1 -1
  306. package/build/components/sidebar-edit-mode/template-panel/index.js +5 -5
  307. package/build/components/sidebar-edit-mode/template-panel/index.js.map +1 -1
  308. package/build/components/sidebar-edit-mode/template-panel/last-revision.js +5 -5
  309. package/build/components/sidebar-edit-mode/template-panel/last-revision.js.map +1 -1
  310. package/build/components/sidebar-edit-mode/template-panel/pattern-categories.js +4 -3
  311. package/build/components/sidebar-edit-mode/template-panel/pattern-categories.js.map +1 -1
  312. package/build/components/sidebar-edit-mode/template-panel/replace-template-button.js +7 -6
  313. package/build/components/sidebar-edit-mode/template-panel/replace-template-button.js.map +1 -1
  314. package/build/components/sidebar-edit-mode/template-panel/template-actions.js +4 -4
  315. package/build/components/sidebar-edit-mode/template-panel/template-actions.js.map +1 -1
  316. package/build/components/sidebar-edit-mode/template-panel/template-areas.js +7 -7
  317. package/build/components/sidebar-edit-mode/template-panel/template-areas.js.map +1 -1
  318. package/build/components/sidebar-navigation-item/index.js +5 -5
  319. package/build/components/sidebar-navigation-item/index.js.map +1 -1
  320. package/build/components/sidebar-navigation-screen/index.js +11 -11
  321. package/build/components/sidebar-navigation-screen/index.js.map +1 -1
  322. package/build/components/sidebar-navigation-screen-details-footer/index.js +8 -7
  323. package/build/components/sidebar-navigation-screen-details-footer/index.js.map +1 -1
  324. package/build/components/sidebar-navigation-screen-details-panel/index.js +3 -3
  325. package/build/components/sidebar-navigation-screen-details-panel/index.js.map +1 -1
  326. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js +2 -2
  327. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js.map +1 -1
  328. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js +2 -2
  329. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js.map +1 -1
  330. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js +2 -2
  331. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js.map +1 -1
  332. package/build/components/sidebar-navigation-screen-global-styles/index.js +12 -11
  333. package/build/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
  334. package/build/components/sidebar-navigation-screen-main/index.js +9 -8
  335. package/build/components/sidebar-navigation-screen-main/index.js.map +1 -1
  336. package/build/components/sidebar-navigation-screen-main/template-part-hint.js +2 -2
  337. package/build/components/sidebar-navigation-screen-main/template-part-hint.js.map +1 -1
  338. package/build/components/sidebar-navigation-screen-navigation-item/index.js +4 -4
  339. package/build/components/sidebar-navigation-screen-navigation-item/index.js.map +1 -1
  340. package/build/components/sidebar-navigation-screen-navigation-menu/delete-modal.js +2 -2
  341. package/build/components/sidebar-navigation-screen-navigation-menu/delete-modal.js.map +1 -1
  342. package/build/components/sidebar-navigation-screen-navigation-menu/edit-button.js +2 -2
  343. package/build/components/sidebar-navigation-screen-navigation-menu/edit-button.js.map +1 -1
  344. package/build/components/sidebar-navigation-screen-navigation-menu/index.js +7 -7
  345. package/build/components/sidebar-navigation-screen-navigation-menu/index.js.map +1 -1
  346. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js +8 -7
  347. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
  348. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +4 -3
  349. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js.map +1 -1
  350. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +9 -8
  351. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js.map +1 -1
  352. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +5 -5
  353. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +1 -1
  354. package/build/components/sidebar-navigation-screen-navigation-menus/index.js +8 -8
  355. package/build/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  356. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +7 -6
  357. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +1 -1
  358. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +5 -4
  359. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +1 -1
  360. package/build/components/sidebar-navigation-screen-page/index.js +11 -11
  361. package/build/components/sidebar-navigation-screen-page/index.js.map +1 -1
  362. package/build/components/sidebar-navigation-screen-page/page-details.js +6 -6
  363. package/build/components/sidebar-navigation-screen-page/page-details.js.map +1 -1
  364. package/build/components/sidebar-navigation-screen-page/status-label.js +5 -4
  365. package/build/components/sidebar-navigation-screen-page/status-label.js.map +1 -1
  366. package/build/components/sidebar-navigation-screen-pages/index.js +26 -17
  367. package/build/components/sidebar-navigation-screen-pages/index.js.map +1 -1
  368. package/build/components/sidebar-navigation-screen-pattern/index.js +4 -4
  369. package/build/components/sidebar-navigation-screen-pattern/index.js.map +1 -1
  370. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js +4 -4
  371. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js.map +1 -1
  372. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list.js +3 -3
  373. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list.js.map +1 -1
  374. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js +6 -5
  375. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js.map +1 -1
  376. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js +4 -4
  377. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js.map +1 -1
  378. package/build/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js +2 -2
  379. package/build/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js.map +1 -1
  380. package/build/components/sidebar-navigation-screen-pattern/use-pattern-details.js +7 -7
  381. package/build/components/sidebar-navigation-screen-pattern/use-pattern-details.js.map +1 -1
  382. package/build/components/sidebar-navigation-screen-patterns/category-item.js +3 -3
  383. package/build/components/sidebar-navigation-screen-patterns/category-item.js.map +1 -1
  384. package/build/components/sidebar-navigation-screen-patterns/index.js +14 -14
  385. package/build/components/sidebar-navigation-screen-patterns/index.js.map +1 -1
  386. package/build/components/sidebar-navigation-screen-template/home-template-details.js +13 -12
  387. package/build/components/sidebar-navigation-screen-template/home-template-details.js.map +1 -1
  388. package/build/components/sidebar-navigation-screen-template/index.js +12 -12
  389. package/build/components/sidebar-navigation-screen-template/index.js.map +1 -1
  390. package/build/components/sidebar-navigation-screen-templates/index.js +6 -6
  391. package/build/components/sidebar-navigation-screen-templates/index.js.map +1 -1
  392. package/build/components/sidebar-navigation-screen-templates-browse/index.js +2 -2
  393. package/build/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
  394. package/build/components/site-hub/index.js +12 -11
  395. package/build/components/site-hub/index.js.map +1 -1
  396. package/build/components/site-icon/index.js +5 -5
  397. package/build/components/site-icon/index.js.map +1 -1
  398. package/build/components/start-template-options/index.js +10 -9
  399. package/build/components/start-template-options/index.js.map +1 -1
  400. package/build/components/style-book/index.js +19 -18
  401. package/build/components/style-book/index.js.map +1 -1
  402. package/build/components/table/index.js +6 -6
  403. package/build/components/table/index.js.map +1 -1
  404. package/build/components/template-actions/index.js +8 -7
  405. package/build/components/template-actions/index.js.map +1 -1
  406. package/build/components/template-actions/rename-menu-item.js +10 -9
  407. package/build/components/template-actions/rename-menu-item.js.map +1 -1
  408. package/build/components/template-part-converter/convert-to-regular.js +2 -2
  409. package/build/components/template-part-converter/convert-to-regular.js.map +1 -1
  410. package/build/components/template-part-converter/convert-to-template-part.js +4 -3
  411. package/build/components/template-part-converter/convert-to-template-part.js.map +1 -1
  412. package/build/components/template-part-converter/index.js +5 -5
  413. package/build/components/template-part-converter/index.js.map +1 -1
  414. package/build/components/welcome-guide/editor.js +8 -7
  415. package/build/components/welcome-guide/editor.js.map +1 -1
  416. package/build/components/welcome-guide/image.js +4 -4
  417. package/build/components/welcome-guide/image.js.map +1 -1
  418. package/build/components/welcome-guide/index.js +2 -2
  419. package/build/components/welcome-guide/index.js.map +1 -1
  420. package/build/components/welcome-guide/page.js +6 -6
  421. package/build/components/welcome-guide/page.js.map +1 -1
  422. package/build/components/welcome-guide/styles.js +15 -15
  423. package/build/components/welcome-guide/styles.js.map +1 -1
  424. package/build/components/welcome-guide/template.js +6 -6
  425. package/build/components/welcome-guide/template.js.map +1 -1
  426. package/build/hooks/commands/use-common-commands.js +2 -2
  427. package/build/hooks/commands/use-common-commands.js.map +1 -1
  428. package/build/hooks/navigation-menu-edit.js +5 -5
  429. package/build/hooks/navigation-menu-edit.js.map +1 -1
  430. package/build/hooks/push-changes-to-global-styles/index.js +6 -5
  431. package/build/hooks/push-changes-to-global-styles/index.js.map +1 -1
  432. package/build/hooks/template-part-edit.js +5 -5
  433. package/build/hooks/template-part-edit.js.map +1 -1
  434. package/build/index.js +3 -2
  435. package/build/index.js.map +1 -1
  436. package/build/lock-unlock.js +1 -1
  437. package/build/lock-unlock.js.map +1 -1
  438. package/build/store/selectors.js +5 -4
  439. package/build/store/selectors.js.map +1 -1
  440. package/build/utils/get-is-list-page.js +1 -1
  441. package/build/utils/get-is-list-page.js.map +1 -1
  442. package/build-module/components/add-new-page/index.js +1 -1
  443. package/build-module/components/add-new-pattern/index.js +1 -1
  444. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js +1 -1
  445. package/build-module/components/add-new-template/add-custom-template-modal-content.js +1 -1
  446. package/build-module/components/add-new-template/index.js +1 -1
  447. package/build-module/components/add-new-template/new-template.js +1 -1
  448. package/build-module/components/add-new-template/template-actions-loading-screen.js +1 -1
  449. package/build-module/components/app/index.js +1 -1
  450. package/build-module/components/block-editor/back-button.js +1 -1
  451. package/build-module/components/block-editor/block-editor-provider/default-block-editor-provider.js +9 -5
  452. package/build-module/components/block-editor/block-editor-provider/default-block-editor-provider.js.map +1 -1
  453. package/build-module/components/block-editor/block-editor-provider/index.js +1 -1
  454. package/build-module/components/block-editor/block-editor-provider/navigation-block-editor-provider.js +1 -1
  455. package/build-module/components/block-editor/block-editor-provider/use-page-content-blocks.js +19 -11
  456. package/build-module/components/block-editor/block-editor-provider/use-page-content-blocks.js.map +1 -1
  457. package/build-module/components/block-editor/block-inspector-button.js +1 -1
  458. package/build-module/components/block-editor/editor-canvas.js +1 -1
  459. package/build-module/components/block-editor/index.js +1 -1
  460. package/build-module/components/block-editor/resizable-editor.js +1 -1
  461. package/build-module/components/block-editor/resize-handle.js +1 -1
  462. package/build-module/components/block-editor/site-editor-canvas.js +1 -1
  463. package/build-module/components/canvas-loader/index.js +1 -1
  464. package/build-module/components/code-editor/index.js +1 -1
  465. package/build-module/components/create-template-part-modal/index.js +1 -1
  466. package/build-module/components/dataviews/dataviews.js +53 -0
  467. package/build-module/components/dataviews/dataviews.js.map +1 -0
  468. package/build-module/components/dataviews/index.js +3 -0
  469. package/build-module/components/dataviews/index.js.map +1 -0
  470. package/build-module/components/dataviews/list-view.js +80 -0
  471. package/build-module/components/dataviews/list-view.js.map +1 -0
  472. package/build-module/components/dataviews/pagination.js +83 -0
  473. package/build-module/components/dataviews/pagination.js.map +1 -0
  474. package/build-module/components/dataviews/text-filter.js +36 -0
  475. package/build-module/components/dataviews/text-filter.js.map +1 -0
  476. package/build-module/components/dataviews/view-actions.js +179 -0
  477. package/build-module/components/dataviews/view-actions.js.map +1 -0
  478. package/build-module/components/editor/index.js +1 -1
  479. package/build-module/components/editor-canvas-container/index.js +1 -1
  480. package/build-module/components/error-boundary/index.js +1 -1
  481. package/build-module/components/error-boundary/warning.js +1 -1
  482. package/build-module/components/global-styles/block-preview-panel.js +1 -1
  483. package/build-module/components/global-styles/color-indicator-wrapper.js +1 -1
  484. package/build-module/components/global-styles/color-palette-panel.js +1 -1
  485. package/build-module/components/global-styles/dimensions-panel.js +1 -1
  486. package/build-module/components/global-styles/font-families.js +3 -4
  487. package/build-module/components/global-styles/font-families.js.map +1 -1
  488. package/build-module/components/global-styles/font-family-item.js +1 -1
  489. package/build-module/components/global-styles/font-library-modal/collection-font-details.js +1 -1
  490. package/build-module/components/global-styles/font-library-modal/collection-font-variant.js +1 -1
  491. package/build-module/components/global-styles/font-library-modal/confirm-delete-dialog.js +1 -1
  492. package/build-module/components/global-styles/font-library-modal/context.js +1 -1
  493. package/build-module/components/global-styles/font-library-modal/font-card.js +1 -1
  494. package/build-module/components/global-styles/font-library-modal/font-collection.js +1 -1
  495. package/build-module/components/global-styles/font-library-modal/font-demo.js +1 -1
  496. package/build-module/components/global-styles/font-library-modal/font-variant.js +1 -1
  497. package/build-module/components/global-styles/font-library-modal/fonts-grid.js +1 -1
  498. package/build-module/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js +1 -1
  499. package/build-module/components/global-styles/font-library-modal/index.js +1 -1
  500. package/build-module/components/global-styles/font-library-modal/installed-fonts.js +1 -1
  501. package/build-module/components/global-styles/font-library-modal/library-font-card.js +1 -1
  502. package/build-module/components/global-styles/font-library-modal/library-font-details.js +1 -1
  503. package/build-module/components/global-styles/font-library-modal/library-font-variant.js +1 -1
  504. package/build-module/components/global-styles/font-library-modal/local-fonts.js +1 -1
  505. package/build-module/components/global-styles/font-library-modal/tab-layout.js +1 -1
  506. package/build-module/components/global-styles/font-library-modal/upload-fonts.js +1 -1
  507. package/build-module/components/global-styles/global-styles-provider.js +1 -1
  508. package/build-module/components/global-styles/gradients-palette-panel.js +1 -1
  509. package/build-module/components/global-styles/header.js +1 -1
  510. package/build-module/components/global-styles/icon-with-current-color.js +1 -1
  511. package/build-module/components/global-styles/navigation-button.js +1 -1
  512. package/build-module/components/global-styles/palette.js +1 -1
  513. package/build-module/components/global-styles/preview.js +1 -1
  514. package/build-module/components/global-styles/root-menu.js +1 -1
  515. package/build-module/components/global-styles/screen-block-list.js +1 -1
  516. package/build-module/components/global-styles/screen-block.js +1 -1
  517. package/build-module/components/global-styles/screen-color-palette.js +1 -1
  518. package/build-module/components/global-styles/screen-colors.js +1 -1
  519. package/build-module/components/global-styles/screen-css.js +1 -1
  520. package/build-module/components/global-styles/screen-layout.js +1 -1
  521. package/build-module/components/global-styles/screen-revisions/index.js +1 -1
  522. package/build-module/components/global-styles/screen-revisions/revisions-buttons.js +1 -1
  523. package/build-module/components/global-styles/screen-root.js +1 -1
  524. package/build-module/components/global-styles/screen-style-variations.js +1 -1
  525. package/build-module/components/global-styles/screen-typography-element.js +1 -1
  526. package/build-module/components/global-styles/screen-typography.js +2 -2
  527. package/build-module/components/global-styles/screen-typography.js.map +1 -1
  528. package/build-module/components/global-styles/style-variations-container.js +1 -1
  529. package/build-module/components/global-styles/subtitle.js +1 -1
  530. package/build-module/components/global-styles/typography-panel.js +1 -1
  531. package/build-module/components/global-styles/typography-preview.js +1 -1
  532. package/build-module/components/global-styles/typogrphy-elements.js +1 -1
  533. package/build-module/components/global-styles/ui.js +1 -1
  534. package/build-module/components/global-styles/variations-panel.js +1 -1
  535. package/build-module/components/header-edit-mode/document-actions/index.js +1 -1
  536. package/build-module/components/header-edit-mode/index.js +1 -1
  537. package/build-module/components/header-edit-mode/mode-switcher/index.js +1 -1
  538. package/build-module/components/header-edit-mode/more-menu/copy-content-menu-item.js +1 -1
  539. package/build-module/components/header-edit-mode/more-menu/index.js +1 -1
  540. package/build-module/components/header-edit-mode/more-menu/site-export.js +1 -1
  541. package/build-module/components/header-edit-mode/more-menu/welcome-guide-menu-item.js +1 -1
  542. package/build-module/components/header-edit-mode/plugin-more-menu-item/index.js +1 -1
  543. package/build-module/components/header-edit-mode/plugin-more-menu-item/index.js.map +1 -1
  544. package/build-module/components/header-edit-mode/plugin-sidebar-more-menu-item/index.js +2 -2
  545. package/build-module/components/header-edit-mode/plugin-sidebar-more-menu-item/index.js.map +1 -1
  546. package/build-module/components/header-edit-mode/tools-more-menu-group/index.js +1 -1
  547. package/build-module/components/header-edit-mode/undo-redo/redo.js +1 -1
  548. package/build-module/components/header-edit-mode/undo-redo/undo.js +1 -1
  549. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +1 -1
  550. package/build-module/components/keyboard-shortcut-help-modal/index.js +1 -1
  551. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +1 -1
  552. package/build-module/components/layout/index.js +1 -1
  553. package/build-module/components/list/added-by.js +1 -1
  554. package/build-module/components/list/header.js +1 -1
  555. package/build-module/components/list/index.js +1 -1
  556. package/build-module/components/list/table.js +1 -1
  557. package/build-module/components/page/header.js +1 -1
  558. package/build-module/components/page/index.js +1 -1
  559. package/build-module/components/page-actions/index.js +1 -1
  560. package/build-module/components/page-actions/trash-page-menu-item.js +1 -1
  561. package/build-module/components/page-content-focus-manager/disable-non-page-content-blocks.js +1 -1
  562. package/build-module/components/page-content-focus-manager/edit-template-notification.js +1 -1
  563. package/build-module/components/page-content-focus-manager/index.js +34 -4
  564. package/build-module/components/page-content-focus-manager/index.js.map +1 -1
  565. package/build-module/components/page-main/index.js +4 -1
  566. package/build-module/components/page-main/index.js.map +1 -1
  567. package/build-module/components/page-pages/index.js +166 -0
  568. package/build-module/components/page-pages/index.js.map +1 -0
  569. package/build-module/components/page-patterns/duplicate-menu-item.js +1 -1
  570. package/build-module/components/page-patterns/grid-item.js +1 -1
  571. package/build-module/components/page-patterns/grid.js +1 -1
  572. package/build-module/components/page-patterns/header.js +1 -1
  573. package/build-module/components/page-patterns/index.js +1 -1
  574. package/build-module/components/page-patterns/no-patterns.js +1 -1
  575. package/build-module/components/page-patterns/pagination.js +1 -1
  576. package/build-module/components/page-patterns/patterns-list.js +1 -1
  577. package/build-module/components/page-patterns/rename-menu-item.js +1 -1
  578. package/build-module/components/page-template-parts/add-new-template-part.js +1 -1
  579. package/build-module/components/page-template-parts/index.js +1 -1
  580. package/build-module/components/page-templates/index.js +1 -1
  581. package/build-module/components/plugin-template-setting-panel/index.js +1 -1
  582. package/build-module/components/plugin-template-setting-panel/index.js.map +1 -1
  583. package/build-module/components/preferences-modal/enable-feature.js +1 -1
  584. package/build-module/components/preferences-modal/index.js +1 -1
  585. package/build-module/components/resizable-frame/index.js +1 -1
  586. package/build-module/components/revisions/index.js +1 -1
  587. package/build-module/components/routes/link.js +1 -1
  588. package/build-module/components/save-button/index.js +1 -1
  589. package/build-module/components/save-hub/index.js +1 -1
  590. package/build-module/components/save-panel/index.js +1 -1
  591. package/build-module/components/secondary-sidebar/inserter-sidebar.js +1 -1
  592. package/build-module/components/secondary-sidebar/list-view-sidebar.js +1 -1
  593. package/build-module/components/sidebar/index.js +10 -2
  594. package/build-module/components/sidebar/index.js.map +1 -1
  595. package/build-module/components/sidebar-button/index.js +1 -1
  596. package/build-module/components/sidebar-edit-mode/default-sidebar.js +1 -1
  597. package/build-module/components/sidebar-edit-mode/global-styles-sidebar.js +1 -1
  598. package/build-module/components/sidebar-edit-mode/index.js +1 -1
  599. package/build-module/components/sidebar-edit-mode/page-panels/edit-template.js +15 -5
  600. package/build-module/components/sidebar-edit-mode/page-panels/edit-template.js.map +1 -1
  601. package/build-module/components/sidebar-edit-mode/page-panels/index.js +1 -1
  602. package/build-module/components/sidebar-edit-mode/page-panels/page-content.js +1 -1
  603. package/build-module/components/sidebar-edit-mode/page-panels/page-status.js +1 -1
  604. package/build-module/components/sidebar-edit-mode/page-panels/page-summary.js +1 -1
  605. package/build-module/components/sidebar-edit-mode/page-panels/publish-date.js +1 -1
  606. package/build-module/components/sidebar-edit-mode/page-panels/reset-default-template.js +1 -1
  607. package/build-module/components/sidebar-edit-mode/page-panels/swap-template-button.js +1 -1
  608. package/build-module/components/sidebar-edit-mode/plugin-sidebar/index.js +1 -1
  609. package/build-module/components/sidebar-edit-mode/settings-header/index.js +1 -1
  610. package/build-module/components/sidebar-edit-mode/sidebar-card/index.js +1 -1
  611. package/build-module/components/sidebar-edit-mode/sidebar-fixed-bottom.js +1 -1
  612. package/build-module/components/sidebar-edit-mode/template-panel/index.js +1 -1
  613. package/build-module/components/sidebar-edit-mode/template-panel/last-revision.js +1 -1
  614. package/build-module/components/sidebar-edit-mode/template-panel/pattern-categories.js +1 -1
  615. package/build-module/components/sidebar-edit-mode/template-panel/replace-template-button.js +1 -1
  616. package/build-module/components/sidebar-edit-mode/template-panel/template-actions.js +1 -1
  617. package/build-module/components/sidebar-edit-mode/template-panel/template-areas.js +1 -1
  618. package/build-module/components/sidebar-navigation-item/index.js +1 -1
  619. package/build-module/components/sidebar-navigation-screen/index.js +1 -1
  620. package/build-module/components/sidebar-navigation-screen-details-footer/index.js +1 -1
  621. package/build-module/components/sidebar-navigation-screen-details-panel/index.js +1 -1
  622. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js +1 -1
  623. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js +1 -1
  624. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js +1 -1
  625. package/build-module/components/sidebar-navigation-screen-global-styles/index.js +1 -1
  626. package/build-module/components/sidebar-navigation-screen-main/index.js +1 -1
  627. package/build-module/components/sidebar-navigation-screen-main/template-part-hint.js +1 -1
  628. package/build-module/components/sidebar-navigation-screen-navigation-item/index.js +1 -1
  629. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-modal.js +1 -1
  630. package/build-module/components/sidebar-navigation-screen-navigation-menu/edit-button.js +1 -1
  631. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js +1 -1
  632. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js +1 -1
  633. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +1 -1
  634. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +1 -1
  635. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +1 -1
  636. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js +1 -1
  637. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +1 -1
  638. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +1 -1
  639. package/build-module/components/sidebar-navigation-screen-page/index.js +1 -1
  640. package/build-module/components/sidebar-navigation-screen-page/page-details.js +1 -1
  641. package/build-module/components/sidebar-navigation-screen-page/status-label.js +1 -1
  642. package/build-module/components/sidebar-navigation-screen-pages/index.js +13 -5
  643. package/build-module/components/sidebar-navigation-screen-pages/index.js.map +1 -1
  644. package/build-module/components/sidebar-navigation-screen-pattern/index.js +1 -1
  645. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js +3 -3
  646. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js.map +1 -1
  647. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list.js +1 -1
  648. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js +4 -3
  649. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js.map +1 -1
  650. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js +1 -1
  651. package/build-module/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js +1 -1
  652. package/build-module/components/sidebar-navigation-screen-pattern/use-pattern-details.js +1 -1
  653. package/build-module/components/sidebar-navigation-screen-patterns/category-item.js +1 -1
  654. package/build-module/components/sidebar-navigation-screen-patterns/index.js +1 -1
  655. package/build-module/components/sidebar-navigation-screen-template/home-template-details.js +1 -1
  656. package/build-module/components/sidebar-navigation-screen-template/index.js +1 -1
  657. package/build-module/components/sidebar-navigation-screen-templates/index.js +1 -1
  658. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js +1 -1
  659. package/build-module/components/site-hub/index.js +1 -1
  660. package/build-module/components/site-icon/index.js +1 -1
  661. package/build-module/components/start-template-options/index.js +4 -4
  662. package/build-module/components/start-template-options/index.js.map +1 -1
  663. package/build-module/components/style-book/index.js +1 -1
  664. package/build-module/components/table/index.js +1 -1
  665. package/build-module/components/template-actions/index.js +1 -1
  666. package/build-module/components/template-actions/rename-menu-item.js +1 -1
  667. package/build-module/components/template-part-converter/convert-to-regular.js +1 -1
  668. package/build-module/components/template-part-converter/convert-to-template-part.js +1 -1
  669. package/build-module/components/template-part-converter/index.js +1 -1
  670. package/build-module/components/welcome-guide/editor.js +1 -1
  671. package/build-module/components/welcome-guide/image.js +1 -1
  672. package/build-module/components/welcome-guide/index.js +1 -1
  673. package/build-module/components/welcome-guide/page.js +1 -1
  674. package/build-module/components/welcome-guide/styles.js +1 -1
  675. package/build-module/components/welcome-guide/template.js +1 -1
  676. package/build-module/hooks/commands/use-common-commands.js +4 -4
  677. package/build-module/hooks/commands/use-common-commands.js.map +1 -1
  678. package/build-module/hooks/navigation-menu-edit.js +1 -1
  679. package/build-module/hooks/push-changes-to-global-styles/index.js +1 -1
  680. package/build-module/hooks/template-part-edit.js +1 -1
  681. package/build-module/index.js +1 -1
  682. package/build-module/lock-unlock.js +1 -1
  683. package/build-module/lock-unlock.js.map +1 -1
  684. package/build-module/store/selectors.js +5 -4
  685. package/build-module/store/selectors.js.map +1 -1
  686. package/build-module/utils/get-is-list-page.js +1 -1
  687. package/build-module/utils/get-is-list-page.js.map +1 -1
  688. package/build-style/style-rtl.css +58 -21
  689. package/build-style/style.css +58 -21
  690. package/package.json +41 -40
  691. package/src/components/block-editor/block-editor-provider/default-block-editor-provider.js +10 -5
  692. package/src/components/block-editor/block-editor-provider/test/use-page-content-blocks.js +33 -4
  693. package/src/components/block-editor/block-editor-provider/use-page-content-blocks.js +27 -14
  694. package/src/components/dataviews/dataviews.js +60 -0
  695. package/src/components/dataviews/index.js +2 -0
  696. package/src/components/dataviews/list-view.js +106 -0
  697. package/src/components/dataviews/pagination.js +118 -0
  698. package/src/components/dataviews/style.scss +36 -0
  699. package/src/components/dataviews/text-filter.js +37 -0
  700. package/src/components/dataviews/view-actions.js +246 -0
  701. package/src/components/global-styles/font-families.js +1 -5
  702. package/src/components/global-styles/screen-typography.js +3 -4
  703. package/src/components/header-edit-mode/plugin-more-menu-item/index.js +1 -1
  704. package/src/components/header-edit-mode/plugin-sidebar-more-menu-item/index.js +1 -1
  705. package/src/components/page-content-focus-manager/index.js +29 -4
  706. package/src/components/page-main/index.js +3 -0
  707. package/src/components/page-pages/index.js +190 -0
  708. package/src/components/plugin-template-setting-panel/index.js +1 -1
  709. package/src/components/sidebar/index.js +11 -0
  710. package/src/components/sidebar-edit-mode/page-panels/edit-template.js +31 -16
  711. package/src/components/sidebar-navigation-screen/style.scss +0 -13
  712. package/src/components/sidebar-navigation-screen-pages/index.js +11 -4
  713. package/src/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js +7 -2
  714. package/src/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js +8 -2
  715. package/src/components/start-template-options/index.js +3 -3
  716. package/src/hooks/commands/use-common-commands.js +12 -4
  717. package/src/lock-unlock.js +1 -1
  718. package/src/store/selectors.js +10 -9
  719. package/src/style.scss +1 -0
  720. package/src/utils/get-is-list-page.js +3 -2
  721. package/build/components/sidebar-navigation-screen-pattern/use-navigation-menu-title.js +0 -29
  722. package/build/components/sidebar-navigation-screen-pattern/use-navigation-menu-title.js.map +0 -1
  723. package/build-module/components/sidebar-navigation-screen-pattern/use-navigation-menu-title.js +0 -22
  724. package/build-module/components/sidebar-navigation-screen-pattern/use-navigation-menu-title.js.map +0 -1
  725. package/src/components/sidebar-navigation-screen-pattern/use-navigation-menu-title.js +0 -32
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = SidebarNavigationScreen;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _components = require("@wordpress/components");
11
11
  var _i18n = require("@wordpress/i18n");
@@ -61,17 +61,17 @@ function SidebarNavigationScreen({
61
61
  const navigator = (0, _components.__experimentalUseNavigator)();
62
62
  const theme = getTheme((0, _isPreviewingTheme.currentlyPreviewingTheme)());
63
63
  const icon = (0, _i18n.isRTL)() ? _icons.chevronRight : _icons.chevronLeft;
64
- return (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)(_components.__experimentalVStack, {
64
+ return (0, _react.createElement)(_react.Fragment, null, (0, _react.createElement)(_components.__experimentalVStack, {
65
65
  className: (0, _classnames.default)('edit-site-sidebar-navigation-screen__main', {
66
66
  'has-footer': !!footer
67
67
  }),
68
68
  spacing: 0,
69
69
  justify: "flex-start"
70
- }, (0, _element.createElement)(_components.__experimentalHStack, {
70
+ }, (0, _react.createElement)(_components.__experimentalHStack, {
71
71
  spacing: 4,
72
72
  alignment: "flex-start",
73
73
  className: "edit-site-sidebar-navigation-screen__title-icon"
74
- }, !isRoot && (0, _element.createElement)(_sidebarButton.default, {
74
+ }, !isRoot && (0, _react.createElement)(_sidebarButton.default, {
75
75
  onClick: () => {
76
76
  const backPath = backPathProp !== null && backPathProp !== void 0 ? backPathProp : location.state?.backPath;
77
77
  if (backPath) {
@@ -85,24 +85,24 @@ function SidebarNavigationScreen({
85
85
  icon: icon,
86
86
  label: (0, _i18n.__)('Back'),
87
87
  showTooltip: false
88
- }), isRoot && (0, _element.createElement)(_sidebarButton.default, {
88
+ }), isRoot && (0, _react.createElement)(_sidebarButton.default, {
89
89
  icon: icon,
90
90
  label: dashboardLinkText || (0, _i18n.__)('Go to the Dashboard'),
91
91
  href: dashboardLink || 'index.php'
92
- }), (0, _element.createElement)(_components.__experimentalHeading, {
92
+ }), (0, _react.createElement)(_components.__experimentalHeading, {
93
93
  className: "edit-site-sidebar-navigation-screen__title",
94
94
  color: '#e0e0e0' /* $gray-200 */,
95
95
  level: 1,
96
96
  size: 20
97
- }, !(0, _isPreviewingTheme.isPreviewingTheme)() ? title : (0, _i18n.sprintf)('Previewing %1$s: %2$s', theme?.name?.rendered, title)), actions && (0, _element.createElement)("div", {
97
+ }, !(0, _isPreviewingTheme.isPreviewingTheme)() ? title : (0, _i18n.sprintf)('Previewing %1$s: %2$s', theme?.name?.rendered, title)), actions && (0, _react.createElement)("div", {
98
98
  className: "edit-site-sidebar-navigation-screen__actions"
99
- }, actions)), meta && (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)("div", {
99
+ }, actions)), meta && (0, _react.createElement)(_react.Fragment, null, (0, _react.createElement)("div", {
100
100
  className: "edit-site-sidebar-navigation-screen__meta"
101
- }, meta)), (0, _element.createElement)("div", {
101
+ }, meta)), (0, _react.createElement)("div", {
102
102
  className: "edit-site-sidebar-navigation-screen__content"
103
- }, description && (0, _element.createElement)("p", {
103
+ }, description && (0, _react.createElement)("p", {
104
104
  className: "edit-site-sidebar-navigation-screen__description"
105
- }, description), content)), footer && (0, _element.createElement)("footer", {
105
+ }, description), content)), footer && (0, _react.createElement)("footer", {
106
106
  className: "edit-site-sidebar-navigation-screen__footer"
107
107
  }, footer));
108
108
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_classnames","_interopRequireDefault","require","_components","_i18n","_icons","_coreData","_data","_router","_store","_lockUnlock","_sidebarButton","_isPreviewingTheme","useLocation","unlock","routerPrivateApis","SidebarNavigationScreen","isRoot","title","actions","meta","content","footer","description","backPath","backPathProp","dashboardLink","dashboardLinkText","useSelect","select","getSettings","editSiteStore","__experimentalDashboardLink","__experimentalDashboardLinkText","getTheme","coreStore","location","navigator","useNavigator","theme","currentlyPreviewingTheme","icon","isRTL","chevronRight","chevronLeft","_element","createElement","Fragment","__experimentalVStack","className","classnames","spacing","justify","__experimentalHStack","alignment","default","onClick","state","goTo","isBack","goToParent","label","__","showTooltip","href","__experimentalHeading","color","level","size","isPreviewingTheme","sprintf","name","rendered"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalHStack as HStack,\n\t__experimentalHeading as Heading,\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';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\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\nconst { useLocation } = unlock( routerPrivateApis );\n\nexport default function SidebarNavigationScreen( {\n\tisRoot,\n\ttitle,\n\tactions,\n\tmeta,\n\tcontent,\n\tfooter,\n\tdescription,\n\tbackPath: backPathProp,\n} ) {\n\tconst { dashboardLink, dashboardLinkText } = useSelect( ( select ) => {\n\t\tconst { getSettings } = unlock( select( editSiteStore ) );\n\t\treturn {\n\t\t\tdashboardLink: getSettings().__experimentalDashboardLink,\n\t\t\tdashboardLinkText: getSettings().__experimentalDashboardLinkText,\n\t\t};\n\t}, [] );\n\tconst { getTheme } = useSelect( coreStore );\n\tconst location = useLocation();\n\tconst navigator = 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={ classnames(\n\t\t\t\t\t'edit-site-sidebar-navigation-screen__main',\n\t\t\t\t\t{\n\t\t\t\t\t\t'has-footer': !! footer,\n\t\t\t\t\t}\n\t\t\t\t) }\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 && (\n\t\t\t\t\t\t<SidebarButton\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tconst backPath =\n\t\t\t\t\t\t\t\t\tbackPathProp ?? location.state?.backPath;\n\t\t\t\t\t\t\t\tif ( backPath ) {\n\t\t\t\t\t\t\t\t\tnavigator.goTo( backPath, {\n\t\t\t\t\t\t\t\t\t\tisBack: true,\n\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnavigator.goToParent();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} }\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\tshowTooltip={ false }\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\tdashboardLinkText || __( 'Go to the Dashboard' )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\thref={ dashboardLink || 'index.php' }\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={ '#e0e0e0' /* $gray-200 */ }\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"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,WAAA,GAAAD,OAAA;AAMA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAKA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,cAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,kBAAA,GAAAV,OAAA;AA1BA;AACA;AACA;;AAGA;AACA;AACA;;AAaA;AACA;AACA;;AASA,MAAM;EAAEW;AAAY,CAAC,GAAG,IAAAC,kBAAM,EAAEC,mBAAkB,CAAC;AAEpC,SAASC,uBAAuBA,CAAE;EA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;EAA2C,GACvD7B,IACE,CACJ,CACF,EAED,IAAAyB,QAAA,CAAAC,aAAA;IAAKG,SAAS,EAAC;EAA8C,GAC1D1B,WAAW,IACZ,IAAAsB,QAAA,CAAAC,aAAA;IAAGG,SAAS,EAAC;EAAkD,GAC5D1B,WACA,CACH,EACCF,OACE,CACE,CAAC,EACPC,MAAM,IACP,IAAAuB,QAAA,CAAAC,aAAA;IAAQG,SAAS,EAAC;EAA6C,GAC5D3B,MACK,CAER,CAAC;AAEL"}
1
+ {"version":3,"names":["_classnames","_interopRequireDefault","require","_components","_i18n","_icons","_coreData","_data","_router","_store","_lockUnlock","_sidebarButton","_isPreviewingTheme","useLocation","unlock","routerPrivateApis","SidebarNavigationScreen","isRoot","title","actions","meta","content","footer","description","backPath","backPathProp","dashboardLink","dashboardLinkText","useSelect","select","getSettings","editSiteStore","__experimentalDashboardLink","__experimentalDashboardLinkText","getTheme","coreStore","location","navigator","useNavigator","theme","currentlyPreviewingTheme","icon","isRTL","chevronRight","chevronLeft","_react","createElement","Fragment","__experimentalVStack","className","classnames","spacing","justify","__experimentalHStack","alignment","default","onClick","state","goTo","isBack","goToParent","label","__","showTooltip","href","__experimentalHeading","color","level","size","isPreviewingTheme","sprintf","name","rendered"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalHStack as HStack,\n\t__experimentalHeading as Heading,\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';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\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\nconst { useLocation } = unlock( routerPrivateApis );\n\nexport default function SidebarNavigationScreen( {\n\tisRoot,\n\ttitle,\n\tactions,\n\tmeta,\n\tcontent,\n\tfooter,\n\tdescription,\n\tbackPath: backPathProp,\n} ) {\n\tconst { dashboardLink, dashboardLinkText } = useSelect( ( select ) => {\n\t\tconst { getSettings } = unlock( select( editSiteStore ) );\n\t\treturn {\n\t\t\tdashboardLink: getSettings().__experimentalDashboardLink,\n\t\t\tdashboardLinkText: getSettings().__experimentalDashboardLinkText,\n\t\t};\n\t}, [] );\n\tconst { getTheme } = useSelect( coreStore );\n\tconst location = useLocation();\n\tconst navigator = 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={ classnames(\n\t\t\t\t\t'edit-site-sidebar-navigation-screen__main',\n\t\t\t\t\t{\n\t\t\t\t\t\t'has-footer': !! footer,\n\t\t\t\t\t}\n\t\t\t\t) }\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 && (\n\t\t\t\t\t\t<SidebarButton\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tconst backPath =\n\t\t\t\t\t\t\t\t\tbackPathProp ?? location.state?.backPath;\n\t\t\t\t\t\t\t\tif ( backPath ) {\n\t\t\t\t\t\t\t\t\tnavigator.goTo( backPath, {\n\t\t\t\t\t\t\t\t\t\tisBack: true,\n\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnavigator.goToParent();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} }\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\tshowTooltip={ false }\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\tdashboardLinkText || __( 'Go to the Dashboard' )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\thref={ dashboardLink || 'index.php' }\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={ '#e0e0e0' /* $gray-200 */ }\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"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,WAAA,GAAAD,OAAA;AAMA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAKA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,cAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,kBAAA,GAAAV,OAAA;AA1BA;AACA;AACA;;AAGA;AACA;AACA;;AAaA;AACA;AACA;;AASA,MAAM;EAAEW;AAAY,CAAC,GAAG,IAAAC,kBAAM,EAAEC,mBAAkB,CAAC;AAEpC,SAASC,uBAAuBA,CAAE;EAChDC,MAAM;EACNC,KAAK;EACLC,OAAO;EACPC,IAAI;EACJC,OAAO;EACPC,MAAM;EACNC,WAAW;EACXC,QAAQ,EAAEC;AACX,CAAC,EAAG;EACH,MAAM;IAAEC,aAAa;IAAEC;EAAkB,CAAC,GAAG,IAAAC,eAAS,EAAIC,MAAM,IAAM;IACrE,MAAM;MAAEC;IAAY,CAAC,GAAG,IAAAhB,kBAAM,EAAEe,MAAM,CAAEE,YAAc,CAAE,CAAC;IACzD,OAAO;MACNL,aAAa,EAAEI,WAAW,CAAC,CAAC,CAACE,2BAA2B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
5
  value: true
6
6
  });
7
7
  exports.default = SidebarNavigationScreenDetailsFooter;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _i18n = require("@wordpress/i18n");
10
10
  var _date = require("@wordpress/date");
11
+ var _element = require("@wordpress/element");
11
12
  var _url = require("@wordpress/url");
12
13
  var _components = require("@wordpress/components");
13
14
  var _icons = require("@wordpress/icons");
@@ -38,20 +39,20 @@ function SidebarNavigationScreenDetailsFooter({
38
39
  });
39
40
  hrefProps.as = 'a';
40
41
  }
41
- return (0, _element.createElement)(_components.__experimentalItemGroup, {
42
+ return (0, _react.createElement)(_components.__experimentalItemGroup, {
42
43
  className: "edit-site-sidebar-navigation-screen-details-footer"
43
- }, (0, _element.createElement)(_sidebarNavigationItem.default, {
44
+ }, (0, _react.createElement)(_sidebarNavigationItem.default, {
44
45
  label: (0, _i18n.__)('Revisions'),
45
46
  ...hrefProps,
46
47
  ...otherProps
47
- }, (0, _element.createElement)(_sidebarNavigationScreenDetailsPanel.SidebarNavigationScreenDetailsPanelRow, {
48
+ }, (0, _react.createElement)(_sidebarNavigationScreenDetailsPanel.SidebarNavigationScreenDetailsPanelRow, {
48
49
  justify: "space-between"
49
- }, (0, _element.createElement)(_sidebarNavigationScreenDetailsPanel.SidebarNavigationScreenDetailsPanelLabel, null, (0, _i18n.__)('Last modified')), (0, _element.createElement)(_sidebarNavigationScreenDetailsPanel.SidebarNavigationScreenDetailsPanelValue, null, (0, _element.createInterpolateElement)((0, _i18n.sprintf)( /* translators: %s: is the relative time when the post was last modified. */
50
+ }, (0, _react.createElement)(_sidebarNavigationScreenDetailsPanel.SidebarNavigationScreenDetailsPanelLabel, null, (0, _i18n.__)('Last modified')), (0, _react.createElement)(_sidebarNavigationScreenDetailsPanel.SidebarNavigationScreenDetailsPanelValue, null, (0, _element.createInterpolateElement)((0, _i18n.sprintf)( /* translators: %s: is the relative time when the post was last modified. */
50
51
  (0, _i18n.__)('<time>%s</time>'), (0, _date.humanTimeDiff)(record.modified)), {
51
- time: (0, _element.createElement)("time", {
52
+ time: (0, _react.createElement)("time", {
52
53
  dateTime: record.modified
53
54
  })
54
- })), (0, _element.createElement)(_components.Icon, {
55
+ })), (0, _react.createElement)(_components.Icon, {
55
56
  className: "edit-site-sidebar-navigation-screen-details-footer__icon",
56
57
  icon: _icons.backup
57
58
  }))));
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_i18n","_date","_url","_components","_icons","_sidebarNavigationScreenDetailsPanel","_sidebarNavigationItem","_interopRequireDefault","SidebarNavigationScreenDetailsFooter","record","otherProps","hrefProps","_links","id","href","addQueryArgs","revision","as","createElement","__experimentalItemGroup","className","default","label","__","SidebarNavigationScreenDetailsPanelRow","justify","SidebarNavigationScreenDetailsPanelLabel","SidebarNavigationScreenDetailsPanelValue","createInterpolateElement","sprintf","humanTimeDiff","modified","time","dateTime","Icon","icon","backup"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-details-footer/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { humanTimeDiff } from '@wordpress/date';\nimport { createInterpolateElement } from '@wordpress/element';\nimport { addQueryArgs } from '@wordpress/url';\nimport {\n\tIcon,\n\t__experimentalItemGroup as ItemGroup,\n} from '@wordpress/components';\nimport { backup } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport {\n\tSidebarNavigationScreenDetailsPanelRow,\n\tSidebarNavigationScreenDetailsPanelLabel,\n\tSidebarNavigationScreenDetailsPanelValue,\n} from '../sidebar-navigation-screen-details-panel';\nimport SidebarNavigationItem from '../sidebar-navigation-item';\n\nexport default function SidebarNavigationScreenDetailsFooter( {\n\trecord,\n\t...otherProps\n} ) {\n\t/*\n\t * There might be other items in the future,\n\t * but for now it's just modified date.\n\t * Later we might render a list of items and isolate\n\t * the following logic.\n\t */\n\tconst hrefProps = {};\n\tif ( record?._links?.[ 'predecessor-version' ]?.[ 0 ]?.id ) {\n\t\threfProps.href = addQueryArgs( 'revision.php', {\n\t\t\trevision: record?._links[ 'predecessor-version' ][ 0 ].id,\n\t\t} );\n\t\threfProps.as = 'a';\n\t}\n\n\treturn (\n\t\t<ItemGroup className=\"edit-site-sidebar-navigation-screen-details-footer\">\n\t\t\t<SidebarNavigationItem\n\t\t\t\tlabel={ __( 'Revisions' ) }\n\t\t\t\t{ ...hrefProps }\n\t\t\t\t{ ...otherProps }\n\t\t\t>\n\t\t\t\t<SidebarNavigationScreenDetailsPanelRow justify=\"space-between\">\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( record.modified )\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: <time dateTime={ record.modified } />,\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\t<Icon\n\t\t\t\t\t\tclassName=\"edit-site-sidebar-navigation-screen-details-footer__icon\"\n\t\t\t\t\t\ticon={ backup }\n\t\t\t\t\t/>\n\t\t\t\t</SidebarNavigationScreenDetailsPanelRow>\n\t\t\t</SidebarNavigationItem>\n\t\t</ItemGroup>\n\t);\n}\n"],"mappings":";;;;;;;AAKA,IAAAA,QAAA,GAAAC,OAAA;AAFA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAEA,IAAAG,IAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAIA,IAAAK,MAAA,GAAAL,OA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AE,IAAAlC,QAAA,CAAAoB,aAAA;MAAMe,QAAQ,EAAGxB,MAAM,CAACsB;IAAU,CAAE;EAC3C,CACD,CACyC,CAAC,EAC3C,IAAAjC,QAAA,CAAAoB,aAAA,EAACf,WAAA,CAAA+B,IAAI;IACJd,SAAS,EAAC,0DAA0D;IACpEe,IAAI,EAAGC;EAAQ,CACf,CACsC,CAClB,CACb,CAAC;AAEd"}
1
+ {"version":3,"names":["_i18n","require","_date","_element","_url","_components","_icons","_sidebarNavigationScreenDetailsPanel","_sidebarNavigationItem","_interopRequireDefault","SidebarNavigationScreenDetailsFooter","record","otherProps","hrefProps","_links","id","href","addQueryArgs","revision","as","_react","createElement","__experimentalItemGroup","className","default","label","__","SidebarNavigationScreenDetailsPanelRow","justify","SidebarNavigationScreenDetailsPanelLabel","SidebarNavigationScreenDetailsPanelValue","createInterpolateElement","sprintf","humanTimeDiff","modified","time","dateTime","Icon","icon","backup"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-details-footer/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { humanTimeDiff } from '@wordpress/date';\nimport { createInterpolateElement } from '@wordpress/element';\nimport { addQueryArgs } from '@wordpress/url';\nimport {\n\tIcon,\n\t__experimentalItemGroup as ItemGroup,\n} from '@wordpress/components';\nimport { backup } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport {\n\tSidebarNavigationScreenDetailsPanelRow,\n\tSidebarNavigationScreenDetailsPanelLabel,\n\tSidebarNavigationScreenDetailsPanelValue,\n} from '../sidebar-navigation-screen-details-panel';\nimport SidebarNavigationItem from '../sidebar-navigation-item';\n\nexport default function SidebarNavigationScreenDetailsFooter( {\n\trecord,\n\t...otherProps\n} ) {\n\t/*\n\t * There might be other items in the future,\n\t * but for now it's just modified date.\n\t * Later we might render a list of items and isolate\n\t * the following logic.\n\t */\n\tconst hrefProps = {};\n\tif ( record?._links?.[ 'predecessor-version' ]?.[ 0 ]?.id ) {\n\t\threfProps.href = addQueryArgs( 'revision.php', {\n\t\t\trevision: record?._links[ 'predecessor-version' ][ 0 ].id,\n\t\t} );\n\t\threfProps.as = 'a';\n\t}\n\n\treturn (\n\t\t<ItemGroup className=\"edit-site-sidebar-navigation-screen-details-footer\">\n\t\t\t<SidebarNavigationItem\n\t\t\t\tlabel={ __( 'Revisions' ) }\n\t\t\t\t{ ...hrefProps }\n\t\t\t\t{ ...otherProps }\n\t\t\t>\n\t\t\t\t<SidebarNavigationScreenDetailsPanelRow justify=\"space-between\">\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( record.modified )\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: <time dateTime={ record.modified } />,\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\t<Icon\n\t\t\t\t\t\tclassName=\"edit-site-sidebar-navigation-screen-details-footer__icon\"\n\t\t\t\t\t\ticon={ backup }\n\t\t\t\t\t/>\n\t\t\t\t</SidebarNavigationScreenDetailsPanelRow>\n\t\t\t</SidebarNavigationItem>\n\t\t</ItemGroup>\n\t);\n}\n"],"mappings":";;;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,IAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OA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AC,EACD;IACCC,IAAI,EAAE,IAAAf,MAAA,CAAAC,aAAA;MAAMe,QAAQ,EAAGzB,MAAM,CAACuB;IAAU,CAAE;EAC3C,CACD,CACyC,CAAC,EAC3C,IAAAd,MAAA,CAAAC,aAAA,EAAChB,WAAA,CAAAgC,IAAI;IACJd,SAAS,EAAC,0DAA0D;IACpEe,IAAI,EAAGC;EAAQ,CACf,CACsC,CAClB,CACb,CAAC;AAEd"}
@@ -23,7 +23,7 @@ Object.defineProperty(exports, "SidebarNavigationScreenDetailsPanelValue", {
23
23
  return _sidebarNavigationScreenDetailsPanelValue.default;
24
24
  }
25
25
  });
26
- var _element = require("@wordpress/element");
26
+ var _react = require("react");
27
27
  var _components = require("@wordpress/components");
28
28
  var _sidebarNavigationScreenDetailsPanelLabel = _interopRequireDefault(require("./sidebar-navigation-screen-details-panel-label"));
29
29
  var _sidebarNavigationScreenDetailsPanelRow = _interopRequireDefault(require("./sidebar-navigation-screen-details-panel-row"));
@@ -41,10 +41,10 @@ function SidebarNavigationScreenDetailsPanel({
41
41
  children,
42
42
  spacing
43
43
  }) {
44
- return (0, _element.createElement)(_components.__experimentalVStack, {
44
+ return (0, _react.createElement)(_components.__experimentalVStack, {
45
45
  className: "edit-site-sidebar-navigation-details-screen-panel",
46
46
  spacing: spacing
47
- }, title && (0, _element.createElement)(_components.__experimentalHeading, {
47
+ }, title && (0, _react.createElement)(_components.__experimentalHeading, {
48
48
  className: "edit-site-sidebar-navigation-details-screen-panel__heading",
49
49
  level: 2
50
50
  }, title), children);
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","_sidebarNavigationScreenDetailsPanelLabel","_interopRequireDefault","_sidebarNavigationScreenDetailsPanelRow","_sidebarNavigationScreenDetailsPanelValue","SidebarNavigationScreenDetailsPanel","title","children","spacing","_element","createElement","__experimentalVStack","className","__experimentalHeading","level"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-details-panel/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalVStack as VStack,\n\t__experimentalHeading as Heading,\n} from '@wordpress/components';\n\n/**\n * Internal dependencies\n */\nimport SidebarNavigationScreenDetailsPanelLabel from './sidebar-navigation-screen-details-panel-label';\nimport SidebarNavigationScreenDetailsPanelRow from './sidebar-navigation-screen-details-panel-row';\nimport SidebarNavigationScreenDetailsPanelValue from './sidebar-navigation-screen-details-panel-value';\n\nfunction SidebarNavigationScreenDetailsPanel( { title, children, spacing } ) {\n\treturn (\n\t\t<VStack\n\t\t\tclassName=\"edit-site-sidebar-navigation-details-screen-panel\"\n\t\t\tspacing={ spacing }\n\t\t>\n\t\t\t{ title && (\n\t\t\t\t<Heading\n\t\t\t\t\tclassName=\"edit-site-sidebar-navigation-details-screen-panel__heading\"\n\t\t\t\t\tlevel={ 2 }\n\t\t\t\t>\n\t\t\t\t\t{ title }\n\t\t\t\t</Heading>\n\t\t\t) }\n\t\t\t{ children }\n\t\t</VStack>\n\t);\n}\n\nexport {\n\tSidebarNavigationScreenDetailsPanel,\n\tSidebarNavigationScreenDetailsPanelRow,\n\tSidebarNavigationScreenDetailsPanelLabel,\n\tSidebarNavigationScreenDetailsPanelValue,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AAQA,IAAAC,yCAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,uCAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,yCAAA,GAAAF,sBAAA,CAAAF,OAAA;AAbA;AACA;AACA;;AAMA;AACA;AACA;;AAKA,SAASK,mCAAmCA,CAAE;EAAEC,KAAK;EAAEC,QAAQ;EAAEC;AAAQ,CAAC,EAAG;EAC5E,OACC,IAAAC,QAAA,CAAAC,aAAA,EAACX,WAAA,CAAAY,oBAAM;IACNC,SAAS,EAAC,mDAAmD;IAC7DJ,OAAO,EAAGA;EAAS,GAEjBF,KAAK,IACN,IAAAG,QAAA,CAAAC,aAAA,EAACX,WAAA,CAAAc,qBAAO;IACPD,SAAS,EAAC,4DAA4D;IACtEE,KAAK,EAAG;EAAG,GAETR,KACM,CACT,EACCC,QACK,CAAC;AAEX"}
1
+ {"version":3,"names":["_components","require","_sidebarNavigationScreenDetailsPanelLabel","_interopRequireDefault","_sidebarNavigationScreenDetailsPanelRow","_sidebarNavigationScreenDetailsPanelValue","SidebarNavigationScreenDetailsPanel","title","children","spacing","_react","createElement","__experimentalVStack","className","__experimentalHeading","level"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-details-panel/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalVStack as VStack,\n\t__experimentalHeading as Heading,\n} from '@wordpress/components';\n\n/**\n * Internal dependencies\n */\nimport SidebarNavigationScreenDetailsPanelLabel from './sidebar-navigation-screen-details-panel-label';\nimport SidebarNavigationScreenDetailsPanelRow from './sidebar-navigation-screen-details-panel-row';\nimport SidebarNavigationScreenDetailsPanelValue from './sidebar-navigation-screen-details-panel-value';\n\nfunction SidebarNavigationScreenDetailsPanel( { title, children, spacing } ) {\n\treturn (\n\t\t<VStack\n\t\t\tclassName=\"edit-site-sidebar-navigation-details-screen-panel\"\n\t\t\tspacing={ spacing }\n\t\t>\n\t\t\t{ title && (\n\t\t\t\t<Heading\n\t\t\t\t\tclassName=\"edit-site-sidebar-navigation-details-screen-panel__heading\"\n\t\t\t\t\tlevel={ 2 }\n\t\t\t\t>\n\t\t\t\t\t{ title }\n\t\t\t\t</Heading>\n\t\t\t) }\n\t\t\t{ children }\n\t\t</VStack>\n\t);\n}\n\nexport {\n\tSidebarNavigationScreenDetailsPanel,\n\tSidebarNavigationScreenDetailsPanelRow,\n\tSidebarNavigationScreenDetailsPanelLabel,\n\tSidebarNavigationScreenDetailsPanelValue,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AAQA,IAAAC,yCAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,uCAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,yCAAA,GAAAF,sBAAA,CAAAF,OAAA;AAbA;AACA;AACA;;AAMA;AACA;AACA;;AAKA,SAASK,mCAAmCA,CAAE;EAAEC,KAAK;EAAEC,QAAQ;EAAEC;AAAQ,CAAC,EAAG;EAC5E,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACX,WAAA,CAAAY,oBAAM;IACNC,SAAS,EAAC,mDAAmD;IAC7DJ,OAAO,EAAGA;EAAS,GAEjBF,KAAK,IACN,IAAAG,MAAA,CAAAC,aAAA,EAACX,WAAA,CAAAc,qBAAO;IACPD,SAAS,EAAC,4DAA4D;IACtEE,KAAK,EAAG;EAAG,GAETR,KACM,CACT,EACCC,QACK,CAAC;AAEX"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = SidebarNavigationScreenDetailsPanelLabel;
7
- var _element = require("@wordpress/element");
7
+ var _react = require("react");
8
8
  var _components = require("@wordpress/components");
9
9
  /**
10
10
  * WordPress dependencies
@@ -13,7 +13,7 @@ var _components = require("@wordpress/components");
13
13
  function SidebarNavigationScreenDetailsPanelLabel({
14
14
  children
15
15
  }) {
16
- return (0, _element.createElement)(_components.__experimentalText, {
16
+ return (0, _react.createElement)(_components.__experimentalText, {
17
17
  className: "edit-site-sidebar-navigation-details-screen-panel__label"
18
18
  }, children);
19
19
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","SidebarNavigationScreenDetailsPanelLabel","children","_element","createElement","__experimentalText","className"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __experimentalText as Text } from '@wordpress/components';\n\nexport default function SidebarNavigationScreenDetailsPanelLabel( {\n\tchildren,\n} ) {\n\treturn (\n\t\t<Text className=\"edit-site-sidebar-navigation-details-screen-panel__label\">\n\t\t\t{ children }\n\t\t</Text>\n\t);\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGe,SAASC,wCAAwCA,CAAE;EACjEC;AACD,CAAC,EAAG;EACH,OACC,IAAAC,QAAA,CAAAC,aAAA,EAACL,WAAA,CAAAM,kBAAI;IAACC,SAAS,EAAC;EAA0D,GACvEJ,QACG,CAAC;AAET"}
1
+ {"version":3,"names":["_components","require","SidebarNavigationScreenDetailsPanelLabel","children","_react","createElement","__experimentalText","className"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __experimentalText as Text } from '@wordpress/components';\n\nexport default function SidebarNavigationScreenDetailsPanelLabel( {\n\tchildren,\n} ) {\n\treturn (\n\t\t<Text className=\"edit-site-sidebar-navigation-details-screen-panel__label\">\n\t\t\t{ children }\n\t\t</Text>\n\t);\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGe,SAASC,wCAAwCA,CAAE;EACjEC;AACD,CAAC,EAAG;EACH,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACL,WAAA,CAAAM,kBAAI;IAACC,SAAS,EAAC;EAA0D,GACvEJ,QACG,CAAC;AAET"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = SidebarNavigationScreenDetailsPanelRow;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _components = require("@wordpress/components");
11
11
  /**
@@ -22,7 +22,7 @@ function SidebarNavigationScreenDetailsPanelRow({
22
22
  className,
23
23
  ...extraProps
24
24
  }) {
25
- return (0, _element.createElement)(_components.__experimentalHStack, {
25
+ return (0, _react.createElement)(_components.__experimentalHStack, {
26
26
  key: label,
27
27
  spacing: 5,
28
28
  alignment: "left",
@@ -1 +1 @@
1
- {"version":3,"names":["_classnames","_interopRequireDefault","require","_components","SidebarNavigationScreenDetailsPanelRow","label","children","className","extraProps","_element","createElement","__experimentalHStack","key","spacing","alignment","classnames"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { __experimentalHStack as HStack } from '@wordpress/components';\n\nexport default function SidebarNavigationScreenDetailsPanelRow( {\n\tlabel,\n\tchildren,\n\tclassName,\n\t...extraProps\n} ) {\n\treturn (\n\t\t<HStack\n\t\t\tkey={ label }\n\t\t\tspacing={ 5 }\n\t\t\talignment=\"left\"\n\t\t\tclassName={ classnames(\n\t\t\t\t'edit-site-sidebar-navigation-details-screen-panel__row',\n\t\t\t\tclassName\n\t\t\t) }\n\t\t\t{ ...extraProps }\n\t\t>\n\t\t\t{ children }\n\t\t</HStack>\n\t);\n}\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,WAAA,GAAAD,OAAA;AARA;AACA;AACA;;AAGA;AACA;AACA;;AAGe,SAASE,sCAAsCA,CAAE;EAC/DC,KAAK;EACLC,QAAQ;EACRC,SAAS;EACT,GAAGC;AACJ,CAAC,EAAG;EACH,OACC,IAAAC,QAAA,CAAAC,aAAA,EAACP,WAAA,CAAAQ,oBAAM;IACNC,GAAG,EAAGP,KAAO;IACbQ,OAAO,EAAG,CAAG;IACbC,SAAS,EAAC,MAAM;IAChBP,SAAS,EAAG,IAAAQ,mBAAU,EACrB,wDAAwD,EACxDR,SACD,CAAG;IAAA,GACEC;EAAU,GAEbF,QACK,CAAC;AAEX"}
1
+ {"version":3,"names":["_classnames","_interopRequireDefault","require","_components","SidebarNavigationScreenDetailsPanelRow","label","children","className","extraProps","_react","createElement","__experimentalHStack","key","spacing","alignment","classnames"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { __experimentalHStack as HStack } from '@wordpress/components';\n\nexport default function SidebarNavigationScreenDetailsPanelRow( {\n\tlabel,\n\tchildren,\n\tclassName,\n\t...extraProps\n} ) {\n\treturn (\n\t\t<HStack\n\t\t\tkey={ label }\n\t\t\tspacing={ 5 }\n\t\t\talignment=\"left\"\n\t\t\tclassName={ classnames(\n\t\t\t\t'edit-site-sidebar-navigation-details-screen-panel__row',\n\t\t\t\tclassName\n\t\t\t) }\n\t\t\t{ ...extraProps }\n\t\t>\n\t\t\t{ children }\n\t\t</HStack>\n\t);\n}\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,WAAA,GAAAD,OAAA;AARA;AACA;AACA;;AAGA;AACA;AACA;;AAGe,SAASE,sCAAsCA,CAAE;EAC/DC,KAAK;EACLC,QAAQ;EACRC,SAAS;EACT,GAAGC;AACJ,CAAC,EAAG;EACH,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACP,WAAA,CAAAQ,oBAAM;IACNC,GAAG,EAAGP,KAAO;IACbQ,OAAO,EAAG,CAAG;IACbC,SAAS,EAAC,MAAM;IAChBP,SAAS,EAAG,IAAAQ,mBAAU,EACrB,wDAAwD,EACxDR,SACD,CAAG;IAAA,GACEC;EAAU,GAEbF,QACK,CAAC;AAEX"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = SidebarNavigationScreenDetailsPanelValue;
7
- var _element = require("@wordpress/element");
7
+ var _react = require("react");
8
8
  var _components = require("@wordpress/components");
9
9
  /**
10
10
  * WordPress dependencies
@@ -13,7 +13,7 @@ var _components = require("@wordpress/components");
13
13
  function SidebarNavigationScreenDetailsPanelValue({
14
14
  children
15
15
  }) {
16
- return (0, _element.createElement)(_components.__experimentalText, {
16
+ return (0, _react.createElement)(_components.__experimentalText, {
17
17
  className: "edit-site-sidebar-navigation-details-screen-panel__value"
18
18
  }, children);
19
19
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","SidebarNavigationScreenDetailsPanelValue","children","_element","createElement","__experimentalText","className"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __experimentalText as Text } from '@wordpress/components';\n\nexport default function SidebarNavigationScreenDetailsPanelValue( {\n\tchildren,\n} ) {\n\treturn (\n\t\t<Text className=\"edit-site-sidebar-navigation-details-screen-panel__value\">\n\t\t\t{ children }\n\t\t</Text>\n\t);\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGe,SAASC,wCAAwCA,CAAE;EACjEC;AACD,CAAC,EAAG;EACH,OACC,IAAAC,QAAA,CAAAC,aAAA,EAACL,WAAA,CAAAM,kBAAI;IAACC,SAAS,EAAC;EAA0D,GACvEJ,QACG,CAAC;AAET"}
1
+ {"version":3,"names":["_components","require","SidebarNavigationScreenDetailsPanelValue","children","_react","createElement","__experimentalText","className"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __experimentalText as Text } from '@wordpress/components';\n\nexport default function SidebarNavigationScreenDetailsPanelValue( {\n\tchildren,\n} ) {\n\treturn (\n\t\t<Text className=\"edit-site-sidebar-navigation-details-screen-panel__value\">\n\t\t\t{ children }\n\t\t</Text>\n\t);\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGe,SAASC,wCAAwCA,CAAE;EACjEC;AACD,CAAC,EAAG;EACH,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACL,WAAA,CAAAM,kBAAI;IAACC,SAAS,EAAC;EAA0D,GACvEJ,QACG,CAAC;AAET"}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.SidebarNavigationItemGlobalStyles = SidebarNavigationItemGlobalStyles;
8
8
  exports.default = SidebarNavigationScreenGlobalStyles;
9
- var _element = require("@wordpress/element");
9
+ var _react = require("react");
10
10
  var _i18n = require("@wordpress/i18n");
11
11
  var _icons = require("@wordpress/icons");
12
12
  var _data = require("@wordpress/data");
@@ -14,6 +14,7 @@ var _coreData = require("@wordpress/core-data");
14
14
  var _components = require("@wordpress/components");
15
15
  var _compose = require("@wordpress/compose");
16
16
  var _blockEditor = require("@wordpress/block-editor");
17
+ var _element = require("@wordpress/element");
17
18
  var _sidebarNavigationScreen = _interopRequireDefault(require("../sidebar-navigation-screen"));
18
19
  var _styleVariationsContainer = _interopRequireDefault(require("../global-styles/style-variations-container"));
19
20
  var _lockUnlock = require("../../lock-unlock");
@@ -41,13 +42,13 @@ function SidebarNavigationItemGlobalStyles(props) {
41
42
  } = (0, _lockUnlock.unlock)((0, _data.useDispatch)(_store.store));
42
43
  const hasGlobalStyleVariations = (0, _data.useSelect)(select => !!select(_coreData.store).__experimentalGetCurrentThemeGlobalStylesVariations()?.length, []);
43
44
  if (hasGlobalStyleVariations) {
44
- return (0, _element.createElement)(_components.__experimentalNavigatorButton, {
45
+ return (0, _react.createElement)(_components.__experimentalNavigatorButton, {
45
46
  ...props,
46
47
  as: _sidebarNavigationItem.default,
47
48
  path: "/wp_global_styles"
48
49
  });
49
50
  }
50
- return (0, _element.createElement)(_sidebarNavigationItem.default, {
51
+ return (0, _react.createElement)(_sidebarNavigationItem.default, {
51
52
  ...props,
52
53
  onClick: () => {
53
54
  // Switch to edit mode.
@@ -74,11 +75,11 @@ function SidebarNavigationScreenGlobalStylesContent() {
74
75
  // the block editor store's `__internalIsInitialized` is true before
75
76
  // rendering the iframe. Without this, the iframe previews will not render
76
77
  // in mobile viewport sizes, where the editor canvas is hidden.
77
- return (0, _element.createElement)(_blockEditor.BlockEditorProvider, {
78
+ return (0, _react.createElement)(_blockEditor.BlockEditorProvider, {
78
79
  settings: storedSettings,
79
80
  onChange: noop,
80
81
  onInput: noop
81
- }, (0, _element.createElement)(_styleVariationsContainer.default, null));
82
+ }, (0, _react.createElement)(_styleVariationsContainer.default, null));
82
83
  }
83
84
  function SidebarNavigationScreenGlobalStyles() {
84
85
  const {
@@ -140,25 +141,25 @@ function SidebarNavigationScreenGlobalStyles() {
140
141
  const hasRevisions = revisionsCount > 0;
141
142
  const modifiedDateTime = revisions?.[0]?.modified;
142
143
  const shouldShowGlobalStylesFooter = hasRevisions && !isLoadingRevisions && modifiedDateTime;
143
- return (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)(_sidebarNavigationScreen.default, {
144
+ return (0, _react.createElement)(_react.Fragment, null, (0, _react.createElement)(_sidebarNavigationScreen.default, {
144
145
  title: (0, _i18n.__)('Styles'),
145
146
  description: (0, _i18n.__)('Choose a different style combination for the theme styles.'),
146
- content: (0, _element.createElement)(SidebarNavigationScreenGlobalStylesContent, null),
147
- footer: shouldShowGlobalStylesFooter && (0, _element.createElement)(_sidebarNavigationScreenDetailsFooter.default, {
147
+ content: (0, _react.createElement)(SidebarNavigationScreenGlobalStylesContent, null),
148
+ footer: shouldShowGlobalStylesFooter && (0, _react.createElement)(_sidebarNavigationScreenDetailsFooter.default, {
148
149
  record: revisions?.[0],
149
150
  onClick: openRevisions
150
151
  }),
151
- actions: (0, _element.createElement)(_element.Fragment, null, !isMobileViewport && (0, _element.createElement)(_sidebarButton.default, {
152
+ actions: (0, _react.createElement)(_react.Fragment, null, !isMobileViewport && (0, _react.createElement)(_sidebarButton.default, {
152
153
  icon: _icons.seen,
153
154
  label: (0, _i18n.__)('Style Book'),
154
155
  onClick: () => setEditorCanvasContainerView(!isStyleBookOpened ? 'style-book' : undefined),
155
156
  isPressed: isStyleBookOpened
156
- }), (0, _element.createElement)(_sidebarButton.default, {
157
+ }), (0, _react.createElement)(_sidebarButton.default, {
157
158
  icon: _icons.edit,
158
159
  label: (0, _i18n.__)('Edit styles'),
159
160
  onClick: async () => await openGlobalStyles()
160
161
  }))
161
- }), isStyleBookOpened && !isMobileViewport && isViewMode && (0, _element.createElement)(_styleBook.default, {
162
+ }), isStyleBookOpened && !isMobileViewport && isViewMode && (0, _react.createElement)(_styleBook.default, {
162
163
  enableResizing: false,
163
164
  isSelected: () => false,
164
165
  onClick: openStyleBook,
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_i18n","_icons","_data","_coreData","_components","_compose","_blockEditor","_sidebarNavigationScreen","_interopRequireDefault","_styleVariationsContainer","_lockUnlock","_store","_sidebarButton","_sidebarNavigationItem","_styleBook","_useGlobalStylesRevisions","_sidebarNavigationScreenDetailsFooter","noop","SidebarNavigationItemGlobalStyles","props","openGeneralSidebar","useDispatch","editSiteStore","setCanvasMode","unlock","hasGlobalStyleVariations","useSelect","select","coreStore","__experimentalGetCurrentThemeGlobalStylesVariations","length","createElement","__experimentalNavigatorButton","as","SidebarNavigationItem","path","default","onClick","SidebarNavigationScreenGlobalStylesContent","storedSettings","getSettings","BlockEditorProvider","settings","onChange","onInput","SidebarNavigationScreenGlobalStyles","revisions","isLoading","isLoadingRevisions","useGlobalStylesRevisions","setIsListViewOpened","isMobileViewport","useViewportMatch","setEditorCanvasContainerView","isViewMode","isStyleBookOpened","revisionsCount","_globalStyles$_links$","getCanvasMode","getEditorCanvasContainerView","getEntityRecord","__experimentalGetCurrentGlobalStylesId","globalStylesId","globalStyles","undefined","_links","count","openGlobalStyles","useCallback","Promise","all","openStyleBook","openRevisions","hasRevisions","modifiedDateTime","modified","shouldShowGlobalStylesFooter","Fragment","title","__","description","content","footer","record","actions","icon","seen","label","isPressed","edit","enableResizing","isSelected","onSelect","showCloseButton","showTabs"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-global-styles/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { edit, seen } from '@wordpress/icons';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { __experimentalNavigatorButton as NavigatorButton } from '@wordpress/components';\nimport { useViewportMatch } from '@wordpress/compose';\nimport { BlockEditorProvider } from '@wordpress/block-editor';\nimport { useCallback } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport StyleVariationsContainer from '../global-styles/style-variations-container';\nimport { unlock } from '../../lock-unlock';\nimport { store as editSiteStore } from '../../store';\nimport SidebarButton from '../sidebar-button';\nimport SidebarNavigationItem from '../sidebar-navigation-item';\nimport StyleBook from '../style-book';\nimport useGlobalStylesRevisions from '../global-styles/screen-revisions/use-global-styles-revisions';\nimport SidebarNavigationScreenDetailsFooter from '../sidebar-navigation-screen-details-footer';\n\nconst noop = () => {};\n\nexport function SidebarNavigationItemGlobalStyles( props ) {\n\tconst { openGeneralSidebar } = useDispatch( editSiteStore );\n\tconst { setCanvasMode } = unlock( useDispatch( editSiteStore ) );\n\n\tconst hasGlobalStyleVariations = useSelect(\n\t\t( select ) =>\n\t\t\t!! select(\n\t\t\t\tcoreStore\n\t\t\t).__experimentalGetCurrentThemeGlobalStylesVariations()?.length,\n\t\t[]\n\t);\n\tif ( hasGlobalStyleVariations ) {\n\t\treturn (\n\t\t\t<NavigatorButton\n\t\t\t\t{ ...props }\n\t\t\t\tas={ SidebarNavigationItem }\n\t\t\t\tpath=\"/wp_global_styles\"\n\t\t\t/>\n\t\t);\n\t}\n\treturn (\n\t\t<SidebarNavigationItem\n\t\t\t{ ...props }\n\t\t\tonClick={ () => {\n\t\t\t\t// Switch to edit mode.\n\t\t\t\tsetCanvasMode( 'edit' );\n\t\t\t\t// Open global styles sidebar.\n\t\t\t\topenGeneralSidebar( 'edit-site/global-styles' );\n\t\t\t} }\n\t\t/>\n\t);\n}\n\nfunction SidebarNavigationScreenGlobalStylesContent() {\n\tconst { storedSettings } = useSelect( ( select ) => {\n\t\tconst { getSettings } = unlock( select( editSiteStore ) );\n\n\t\treturn {\n\t\t\tstoredSettings: getSettings( false ),\n\t\t};\n\t}, [] );\n\n\t// Wrap in a BlockEditorProvider to ensure that the Iframe's dependencies are\n\t// loaded. This is necessary because the Iframe component waits until\n\t// the block editor store's `__internalIsInitialized` is true before\n\t// rendering the iframe. Without this, the iframe previews will not render\n\t// in mobile viewport sizes, where the editor canvas is hidden.\n\treturn (\n\t\t<BlockEditorProvider\n\t\t\tsettings={ storedSettings }\n\t\t\tonChange={ noop }\n\t\t\tonInput={ noop }\n\t\t>\n\t\t\t<StyleVariationsContainer />\n\t\t</BlockEditorProvider>\n\t);\n}\n\nexport default function SidebarNavigationScreenGlobalStyles() {\n\tconst { revisions, isLoading: isLoadingRevisions } =\n\t\tuseGlobalStylesRevisions();\n\tconst { openGeneralSidebar, setIsListViewOpened } =\n\t\tuseDispatch( editSiteStore );\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst { setCanvasMode, setEditorCanvasContainerView } = unlock(\n\t\tuseDispatch( editSiteStore )\n\t);\n\tconst { isViewMode, isStyleBookOpened, revisionsCount } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getCanvasMode, getEditorCanvasContainerView } = unlock(\n\t\t\t\tselect( editSiteStore )\n\t\t\t);\n\t\t\tconst { getEntityRecord, __experimentalGetCurrentGlobalStylesId } =\n\t\t\t\tselect( coreStore );\n\t\t\tconst globalStylesId = __experimentalGetCurrentGlobalStylesId();\n\t\t\tconst globalStyles = globalStylesId\n\t\t\t\t? getEntityRecord( 'root', 'globalStyles', globalStylesId )\n\t\t\t\t: undefined;\n\t\t\treturn {\n\t\t\t\tisViewMode: 'view' === getCanvasMode(),\n\t\t\t\tisStyleBookOpened:\n\t\t\t\t\t'style-book' === getEditorCanvasContainerView(),\n\t\t\t\trevisionsCount:\n\t\t\t\t\tglobalStyles?._links?.[ 'version-history' ]?.[ 0 ]?.count ??\n\t\t\t\t\t0,\n\t\t\t};\n\t\t},\n\t\t[]\n\t);\n\n\tconst openGlobalStyles = useCallback( async () => {\n\t\treturn Promise.all( [\n\t\t\tsetCanvasMode( 'edit' ),\n\t\t\topenGeneralSidebar( 'edit-site/global-styles' ),\n\t\t] );\n\t}, [ setCanvasMode, openGeneralSidebar ] );\n\n\tconst openStyleBook = useCallback( async () => {\n\t\tawait openGlobalStyles();\n\t\t// Open the Style Book once the canvas mode is set to edit,\n\t\t// and the global styles sidebar is open. This ensures that\n\t\t// the Style Book is not prematurely closed.\n\t\tsetEditorCanvasContainerView( 'style-book' );\n\t\tsetIsListViewOpened( false );\n\t}, [\n\t\topenGlobalStyles,\n\t\tsetEditorCanvasContainerView,\n\t\tsetIsListViewOpened,\n\t] );\n\n\tconst openRevisions = useCallback( async () => {\n\t\tawait openGlobalStyles();\n\t\t// Open the global styles revisions once the canvas mode is set to edit,\n\t\t// and the global styles sidebar is open. The global styles UI is responsible\n\t\t// for redirecting to the revisions screen once the editor canvas container\n\t\t// has been set to 'global-styles-revisions'.\n\t\tsetEditorCanvasContainerView( 'global-styles-revisions' );\n\t}, [ openGlobalStyles, setEditorCanvasContainerView ] );\n\n\t// If there are no revisions, do not render a footer.\n\tconst hasRevisions = revisionsCount > 0;\n\tconst modifiedDateTime = revisions?.[ 0 ]?.modified;\n\tconst shouldShowGlobalStylesFooter =\n\t\thasRevisions && ! isLoadingRevisions && modifiedDateTime;\n\n\treturn (\n\t\t<>\n\t\t\t<SidebarNavigationScreen\n\t\t\t\ttitle={ __( 'Styles' ) }\n\t\t\t\tdescription={ __(\n\t\t\t\t\t'Choose a different style combination for the theme styles.'\n\t\t\t\t) }\n\t\t\t\tcontent={ <SidebarNavigationScreenGlobalStylesContent /> }\n\t\t\t\tfooter={\n\t\t\t\t\tshouldShowGlobalStylesFooter && (\n\t\t\t\t\t\t<SidebarNavigationScreenDetailsFooter\n\t\t\t\t\t\t\trecord={ revisions?.[ 0 ] }\n\t\t\t\t\t\t\tonClick={ openRevisions }\n\t\t\t\t\t\t/>\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tactions={\n\t\t\t\t\t<>\n\t\t\t\t\t\t{ ! isMobileViewport && (\n\t\t\t\t\t\t\t<SidebarButton\n\t\t\t\t\t\t\t\ticon={ seen }\n\t\t\t\t\t\t\t\tlabel={ __( 'Style Book' ) }\n\t\t\t\t\t\t\t\tonClick={ () =>\n\t\t\t\t\t\t\t\t\tsetEditorCanvasContainerView(\n\t\t\t\t\t\t\t\t\t\t! isStyleBookOpened\n\t\t\t\t\t\t\t\t\t\t\t? 'style-book'\n\t\t\t\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tisPressed={ isStyleBookOpened }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t\t<SidebarButton\n\t\t\t\t\t\t\ticon={ edit }\n\t\t\t\t\t\t\tlabel={ __( 'Edit styles' ) }\n\t\t\t\t\t\t\tonClick={ async () => await openGlobalStyles() }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</>\n\t\t\t\t}\n\t\t\t/>\n\t\t\t{ isStyleBookOpened && ! isMobileViewport && isViewMode && (\n\t\t\t\t<StyleBook\n\t\t\t\t\tenableResizing={ false }\n\t\t\t\t\tisSelected={ () => false }\n\t\t\t\t\tonClick={ openStyleBook }\n\t\t\t\t\tonSelect={ openStyleBook }\n\t\t\t\t\tshowCloseButton={ false }\n\t\t\t\t\tshowTabs={ false }\n\t\t\t\t/>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],"mappings":";;;;;;;;AAUA,IAAAA,QAAA,GAAAC,OAAA;AAPA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA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AK,EAAG,IAAAR,QAAE,EAAE,aAAc,CAAG;MAC7B1C,OAAO,EAAG,MAAAA,CAAA,KAAY,MAAM8B,gBAAgB,CAAC;IAAG,CAChD,CACA;EACF,CACD,CAAC,EACAZ,iBAAiB,IAAI,CAAEJ,gBAAgB,IAAIG,UAAU,IACtD,IAAAxD,QAAA,CAAAiC,aAAA,EAACjB,UAAA,CAAAsB,OAAS;IACTsD,cAAc,EAAG,KAAO;IACxBC,UAAU,EAAGA,CAAA,KAAM,KAAO;IAC1BtD,OAAO,EAAGkC,aAAe;IACzBqB,QAAQ,EAAGrB,aAAe;IAC1BsB,eAAe,EAAG,KAAO;IACzBC,QAAQ,EAAG;EAAO,CAClB,CAED,CAAC;AAEL"}
1
+ {"version":3,"names":["_i18n","require","_icons","_data","_coreData","_components","_compose","_blockEditor","_element","_sidebarNavigationScreen","_interopRequireDefault","_styleVariationsContainer","_lockUnlock","_store","_sidebarButton","_sidebarNavigationItem","_styleBook","_useGlobalStylesRevisions","_sidebarNavigationScreenDetailsFooter","noop","SidebarNavigationItemGlobalStyles","props","openGeneralSidebar","useDispatch","editSiteStore","setCanvasMode","unlock","hasGlobalStyleVariations","useSelect","select","coreStore","__experimentalGetCurrentThemeGlobalStylesVariations","length","_react","createElement","__experimentalNavigatorButton","as","SidebarNavigationItem","path","default","onClick","SidebarNavigationScreenGlobalStylesContent","storedSettings","getSettings","BlockEditorProvider","settings","onChange","onInput","SidebarNavigationScreenGlobalStyles","revisions","isLoading","isLoadingRevisions","useGlobalStylesRevisions","setIsListViewOpened","isMobileViewport","useViewportMatch","setEditorCanvasContainerView","isViewMode","isStyleBookOpened","revisionsCount","_globalStyles$_links$","getCanvasMode","getEditorCanvasContainerView","getEntityRecord","__experimentalGetCurrentGlobalStylesId","globalStylesId","globalStyles","undefined","_links","count","openGlobalStyles","useCallback","Promise","all","openStyleBook","openRevisions","hasRevisions","modifiedDateTime","modified","shouldShowGlobalStylesFooter","Fragment","title","__","description","content","footer","record","actions","icon","seen","label","isPressed","edit","enableResizing","isSelected","onSelect","showCloseButton","showTabs"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-global-styles/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { edit, seen } from '@wordpress/icons';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { __experimentalNavigatorButton as NavigatorButton } from '@wordpress/components';\nimport { useViewportMatch } from '@wordpress/compose';\nimport { BlockEditorProvider } from '@wordpress/block-editor';\nimport { useCallback } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport StyleVariationsContainer from '../global-styles/style-variations-container';\nimport { unlock } from '../../lock-unlock';\nimport { store as editSiteStore } from '../../store';\nimport SidebarButton from '../sidebar-button';\nimport SidebarNavigationItem from '../sidebar-navigation-item';\nimport StyleBook from '../style-book';\nimport useGlobalStylesRevisions from '../global-styles/screen-revisions/use-global-styles-revisions';\nimport SidebarNavigationScreenDetailsFooter from '../sidebar-navigation-screen-details-footer';\n\nconst noop = () => {};\n\nexport function SidebarNavigationItemGlobalStyles( props ) {\n\tconst { openGeneralSidebar } = useDispatch( editSiteStore );\n\tconst { setCanvasMode } = unlock( useDispatch( editSiteStore ) );\n\n\tconst hasGlobalStyleVariations = useSelect(\n\t\t( select ) =>\n\t\t\t!! select(\n\t\t\t\tcoreStore\n\t\t\t).__experimentalGetCurrentThemeGlobalStylesVariations()?.length,\n\t\t[]\n\t);\n\tif ( hasGlobalStyleVariations ) {\n\t\treturn (\n\t\t\t<NavigatorButton\n\t\t\t\t{ ...props }\n\t\t\t\tas={ SidebarNavigationItem }\n\t\t\t\tpath=\"/wp_global_styles\"\n\t\t\t/>\n\t\t);\n\t}\n\treturn (\n\t\t<SidebarNavigationItem\n\t\t\t{ ...props }\n\t\t\tonClick={ () => {\n\t\t\t\t// Switch to edit mode.\n\t\t\t\tsetCanvasMode( 'edit' );\n\t\t\t\t// Open global styles sidebar.\n\t\t\t\topenGeneralSidebar( 'edit-site/global-styles' );\n\t\t\t} }\n\t\t/>\n\t);\n}\n\nfunction SidebarNavigationScreenGlobalStylesContent() {\n\tconst { storedSettings } = useSelect( ( select ) => {\n\t\tconst { getSettings } = unlock( select( editSiteStore ) );\n\n\t\treturn {\n\t\t\tstoredSettings: getSettings( false ),\n\t\t};\n\t}, [] );\n\n\t// Wrap in a BlockEditorProvider to ensure that the Iframe's dependencies are\n\t// loaded. This is necessary because the Iframe component waits until\n\t// the block editor store's `__internalIsInitialized` is true before\n\t// rendering the iframe. Without this, the iframe previews will not render\n\t// in mobile viewport sizes, where the editor canvas is hidden.\n\treturn (\n\t\t<BlockEditorProvider\n\t\t\tsettings={ storedSettings }\n\t\t\tonChange={ noop }\n\t\t\tonInput={ noop }\n\t\t>\n\t\t\t<StyleVariationsContainer />\n\t\t</BlockEditorProvider>\n\t);\n}\n\nexport default function SidebarNavigationScreenGlobalStyles() {\n\tconst { revisions, isLoading: isLoadingRevisions } =\n\t\tuseGlobalStylesRevisions();\n\tconst { openGeneralSidebar, setIsListViewOpened } =\n\t\tuseDispatch( editSiteStore );\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst { setCanvasMode, setEditorCanvasContainerView } = unlock(\n\t\tuseDispatch( editSiteStore )\n\t);\n\tconst { isViewMode, isStyleBookOpened, revisionsCount } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getCanvasMode, getEditorCanvasContainerView } = unlock(\n\t\t\t\tselect( editSiteStore )\n\t\t\t);\n\t\t\tconst { getEntityRecord, __experimentalGetCurrentGlobalStylesId } =\n\t\t\t\tselect( coreStore );\n\t\t\tconst globalStylesId = __experimentalGetCurrentGlobalStylesId();\n\t\t\tconst globalStyles = globalStylesId\n\t\t\t\t? getEntityRecord( 'root', 'globalStyles', globalStylesId )\n\t\t\t\t: undefined;\n\t\t\treturn {\n\t\t\t\tisViewMode: 'view' === getCanvasMode(),\n\t\t\t\tisStyleBookOpened:\n\t\t\t\t\t'style-book' === getEditorCanvasContainerView(),\n\t\t\t\trevisionsCount:\n\t\t\t\t\tglobalStyles?._links?.[ 'version-history' ]?.[ 0 ]?.count ??\n\t\t\t\t\t0,\n\t\t\t};\n\t\t},\n\t\t[]\n\t);\n\n\tconst openGlobalStyles = useCallback( async () => {\n\t\treturn Promise.all( [\n\t\t\tsetCanvasMode( 'edit' ),\n\t\t\topenGeneralSidebar( 'edit-site/global-styles' ),\n\t\t] );\n\t}, [ setCanvasMode, openGeneralSidebar ] );\n\n\tconst openStyleBook = useCallback( async () => {\n\t\tawait openGlobalStyles();\n\t\t// Open the Style Book once the canvas mode is set to edit,\n\t\t// and the global styles sidebar is open. This ensures that\n\t\t// the Style Book is not prematurely closed.\n\t\tsetEditorCanvasContainerView( 'style-book' );\n\t\tsetIsListViewOpened( false );\n\t}, [\n\t\topenGlobalStyles,\n\t\tsetEditorCanvasContainerView,\n\t\tsetIsListViewOpened,\n\t] );\n\n\tconst openRevisions = useCallback( async () => {\n\t\tawait openGlobalStyles();\n\t\t// Open the global styles revisions once the canvas mode is set to edit,\n\t\t// and the global styles sidebar is open. The global styles UI is responsible\n\t\t// for redirecting to the revisions screen once the editor canvas container\n\t\t// has been set to 'global-styles-revisions'.\n\t\tsetEditorCanvasContainerView( 'global-styles-revisions' );\n\t}, [ openGlobalStyles, setEditorCanvasContainerView ] );\n\n\t// If there are no revisions, do not render a footer.\n\tconst hasRevisions = revisionsCount > 0;\n\tconst modifiedDateTime = revisions?.[ 0 ]?.modified;\n\tconst shouldShowGlobalStylesFooter =\n\t\thasRevisions && ! isLoadingRevisions && modifiedDateTime;\n\n\treturn (\n\t\t<>\n\t\t\t<SidebarNavigationScreen\n\t\t\t\ttitle={ __( 'Styles' ) }\n\t\t\t\tdescription={ __(\n\t\t\t\t\t'Choose a different style combination for the theme styles.'\n\t\t\t\t) }\n\t\t\t\tcontent={ <SidebarNavigationScreenGlobalStylesContent /> }\n\t\t\t\tfooter={\n\t\t\t\t\tshouldShowGlobalStylesFooter && (\n\t\t\t\t\t\t<SidebarNavigationScreenDetailsFooter\n\t\t\t\t\t\t\trecord={ revisions?.[ 0 ] }\n\t\t\t\t\t\t\tonClick={ openRevisions }\n\t\t\t\t\t\t/>\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tactions={\n\t\t\t\t\t<>\n\t\t\t\t\t\t{ ! isMobileViewport && (\n\t\t\t\t\t\t\t<SidebarButton\n\t\t\t\t\t\t\t\ticon={ seen }\n\t\t\t\t\t\t\t\tlabel={ __( 'Style Book' ) }\n\t\t\t\t\t\t\t\tonClick={ () =>\n\t\t\t\t\t\t\t\t\tsetEditorCanvasContainerView(\n\t\t\t\t\t\t\t\t\t\t! isStyleBookOpened\n\t\t\t\t\t\t\t\t\t\t\t? 'style-book'\n\t\t\t\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tisPressed={ isStyleBookOpened }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t\t<SidebarButton\n\t\t\t\t\t\t\ticon={ edit }\n\t\t\t\t\t\t\tlabel={ __( 'Edit styles' ) }\n\t\t\t\t\t\t\tonClick={ async () => await openGlobalStyles() }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</>\n\t\t\t\t}\n\t\t\t/>\n\t\t\t{ isStyleBookOpened && ! isMobileViewport && isViewMode && (\n\t\t\t\t<StyleBook\n\t\t\t\t\tenableResizing={ false }\n\t\t\t\t\tisSelected={ () => false }\n\t\t\t\t\tonClick={ openStyleBook }\n\t\t\t\t\tonSelect={ openStyleBook }\n\t\t\t\t\tshowCloseButton={ false }\n\t\t\t\t\tshowTabs={ false }\n\t\t\t\t/>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],"mappings":";;;;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GA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D,IAAAzB,MAAA,CAAAC,aAAA,EAACpB,cAAA,CAAAyB,OAAa;MACbiD,IAAI,EAAGI,WAAM;MACbF,KAAK,EAAG,IAAAR,QAAE,EAAE,aAAc,CAAG;MAC7B1C,OAAO,EAAG,MAAAA,CAAA,KAAY,MAAM8B,gBAAgB,CAAC;IAAG,CAChD,CACA;EACF,CACD,CAAC,EACAZ,iBAAiB,IAAI,CAAEJ,gBAAgB,IAAIG,UAAU,IACtD,IAAAxB,MAAA,CAAAC,aAAA,EAAClB,UAAA,CAAAuB,OAAS;IACTsD,cAAc,EAAG,KAAO;IACxBC,UAAU,EAAGA,CAAA,KAAM,KAAO;IAC1BtD,OAAO,EAAGkC,aAAe;IACzBqB,QAAQ,EAAGrB,aAAe;IAC1BsB,eAAe,EAAG,KAAO;IACzBC,QAAQ,EAAG;EAAO,CAClB,CAED,CAAC;AAEL"}
@@ -5,11 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = SidebarNavigationScreenMain;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _components = require("@wordpress/components");
10
10
  var _i18n = require("@wordpress/i18n");
11
11
  var _icons = require("@wordpress/icons");
12
12
  var _data = require("@wordpress/data");
13
+ var _element = require("@wordpress/element");
13
14
  var _sidebarNavigationScreen = _interopRequireDefault(require("../sidebar-navigation-screen"));
14
15
  var _sidebarNavigationItem = _interopRequireDefault(require("../sidebar-navigation-item"));
15
16
  var _sidebarNavigationScreenGlobalStyles = require("../sidebar-navigation-screen-global-styles");
@@ -38,34 +39,34 @@ function SidebarNavigationScreenMain() {
38
39
  setEditorCanvasContainerView(undefined);
39
40
  }
40
41
  }, [setEditorCanvasContainerView, location?.path]);
41
- return (0, _element.createElement)(_sidebarNavigationScreen.default, {
42
+ return (0, _react.createElement)(_sidebarNavigationScreen.default, {
42
43
  isRoot: true,
43
44
  title: (0, _i18n.__)('Design'),
44
45
  description: (0, _i18n.__)('Customize the appearance of your website using the block editor.'),
45
- content: (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)(_components.__experimentalItemGroup, null, (0, _element.createElement)(_components.__experimentalNavigatorButton, {
46
+ content: (0, _react.createElement)(_react.Fragment, null, (0, _react.createElement)(_components.__experimentalItemGroup, null, (0, _react.createElement)(_components.__experimentalNavigatorButton, {
46
47
  as: _sidebarNavigationItem.default,
47
48
  path: "/navigation",
48
49
  withChevron: true,
49
50
  icon: _icons.navigation
50
- }, (0, _i18n.__)('Navigation')), (0, _element.createElement)(_sidebarNavigationScreenGlobalStyles.SidebarNavigationItemGlobalStyles, {
51
+ }, (0, _i18n.__)('Navigation')), (0, _react.createElement)(_sidebarNavigationScreenGlobalStyles.SidebarNavigationItemGlobalStyles, {
51
52
  withChevron: true,
52
53
  icon: _icons.styles
53
- }, (0, _i18n.__)('Styles')), (0, _element.createElement)(_components.__experimentalNavigatorButton, {
54
+ }, (0, _i18n.__)('Styles')), (0, _react.createElement)(_components.__experimentalNavigatorButton, {
54
55
  as: _sidebarNavigationItem.default,
55
56
  path: "/page",
56
57
  withChevron: true,
57
58
  icon: _icons.page
58
- }, (0, _i18n.__)('Pages')), (0, _element.createElement)(_components.__experimentalNavigatorButton, {
59
+ }, (0, _i18n.__)('Pages')), (0, _react.createElement)(_components.__experimentalNavigatorButton, {
59
60
  as: _sidebarNavigationItem.default,
60
61
  path: "/wp_template",
61
62
  withChevron: true,
62
63
  icon: _icons.layout
63
- }, (0, _i18n.__)('Templates')), (0, _element.createElement)(_components.__experimentalNavigatorButton, {
64
+ }, (0, _i18n.__)('Templates')), (0, _react.createElement)(_components.__experimentalNavigatorButton, {
64
65
  as: _sidebarNavigationItem.default,
65
66
  path: "/patterns",
66
67
  withChevron: true,
67
68
  icon: _icons.symbol
68
- }, (0, _i18n.__)('Patterns'))), (0, _element.createElement)(_templatePartHint.default, null))
69
+ }, (0, _i18n.__)('Patterns'))), (0, _react.createElement)(_templatePartHint.default, null))
69
70
  });
70
71
  }
71
72
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_components","_i18n","_icons","_data","_sidebarNavigationScreen","_interopRequireDefault","_sidebarNavigationItem","_sidebarNavigationScreenGlobalStyles","_lockUnlock","_store","_templatePartHint","SidebarNavigationScreenMain","location","useNavigator","setEditorCanvasContainerView","unlock","useDispatch","editSiteStore","useEffect","path","undefined","createElement","default","isRoot","title","__","description","content","Fragment","__experimentalItemGroup","__experimentalNavigatorButton","as","SidebarNavigationItem","withChevron","icon","navigation","SidebarNavigationItemGlobalStyles","styles","page","layout","symbol"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-main/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalItemGroup as ItemGroup,\n\t__experimentalNavigatorButton as NavigatorButton,\n\t__experimentalUseNavigator as useNavigator,\n} from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { layout, symbol, navigation, styles, page } from '@wordpress/icons';\nimport { useDispatch } from '@wordpress/data';\n\nimport { useEffect } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport SidebarNavigationItem from '../sidebar-navigation-item';\nimport { SidebarNavigationItemGlobalStyles } from '../sidebar-navigation-screen-global-styles';\nimport { unlock } from '../../lock-unlock';\nimport { store as editSiteStore } from '../../store';\nimport TemplatePartHint from './template-part-hint';\n\nexport default function SidebarNavigationScreenMain() {\n\tconst { location } = useNavigator();\n\tconst { setEditorCanvasContainerView } = unlock(\n\t\tuseDispatch( editSiteStore )\n\t);\n\n\t// Clear the editor canvas container view when accessing the main navigation screen.\n\tuseEffect( () => {\n\t\tif ( location?.path === '/' ) {\n\t\t\tsetEditorCanvasContainerView( undefined );\n\t\t}\n\t}, [ setEditorCanvasContainerView, location?.path ] );\n\n\treturn (\n\t\t<SidebarNavigationScreen\n\t\t\tisRoot\n\t\t\ttitle={ __( 'Design' ) }\n\t\t\tdescription={ __(\n\t\t\t\t'Customize the appearance of your website using the block editor.'\n\t\t\t) }\n\t\t\tcontent={\n\t\t\t\t<>\n\t\t\t\t\t<ItemGroup>\n\t\t\t\t\t\t<NavigatorButton\n\t\t\t\t\t\t\tas={ SidebarNavigationItem }\n\t\t\t\t\t\t\tpath=\"/navigation\"\n\t\t\t\t\t\t\twithChevron\n\t\t\t\t\t\t\ticon={ navigation }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Navigation' ) }\n\t\t\t\t\t\t</NavigatorButton>\n\t\t\t\t\t\t<SidebarNavigationItemGlobalStyles\n\t\t\t\t\t\t\twithChevron\n\t\t\t\t\t\t\ticon={ styles }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Styles' ) }\n\t\t\t\t\t\t</SidebarNavigationItemGlobalStyles>\n\t\t\t\t\t\t<NavigatorButton\n\t\t\t\t\t\t\tas={ SidebarNavigationItem }\n\t\t\t\t\t\t\tpath=\"/page\"\n\t\t\t\t\t\t\twithChevron\n\t\t\t\t\t\t\ticon={ page }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Pages' ) }\n\t\t\t\t\t\t</NavigatorButton>\n\t\t\t\t\t\t<NavigatorButton\n\t\t\t\t\t\t\tas={ SidebarNavigationItem }\n\t\t\t\t\t\t\tpath=\"/wp_template\"\n\t\t\t\t\t\t\twithChevron\n\t\t\t\t\t\t\ticon={ layout }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Templates' ) }\n\t\t\t\t\t\t</NavigatorButton>\n\t\t\t\t\t\t<NavigatorButton\n\t\t\t\t\t\t\tas={ SidebarNavigationItem }\n\t\t\t\t\t\t\tpath=\"/patterns\"\n\t\t\t\t\t\t\twithChevron\n\t\t\t\t\t\t\ticon={ symbol }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Patterns' ) }\n\t\t\t\t\t\t</NavigatorButton>\n\t\t\t\t\t</ItemGroup>\n\t\t\t\t\t<TemplateP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/B,QAAA,CAAAuB,aAAA,EAACrB,WAAA,CAAA8B,6BAAe;MACfC,EAAE,EAAGC,8BAAuB;MAC5Bb,IAAI,EAAC,aAAa;MAClBc,WAAW;MACXC,IAAI,EAAGC;IAAY,GAEjB,IAAAV,QAAE,EAAE,YAAa,CACH,CAAC,EAClB,IAAA3B,QAAA,CAAAuB,aAAA,EAACd,oCAAA,CAAA6B,iCAAiC;MACjCH,WAAW;MACXC,IAAI,EAAGG;IAAQ,GAEb,IAAAZ,QAAE,EAAE,QAAS,CACmB,CAAC,EACpC,IAAA3B,QAAA,CAAAuB,aAAA,EAACrB,WAAA,CAAA8B,6BAAe;MACfC,EAAE,EAAGC,8BAAuB;MAC5Bb,IAAI,EAAC,OAAO;MACZc,WAAW;MACXC,IAAI,EAAGI;IAAM,GAEX,IAAAb,QAAE,EAAE,OAAQ,CACE,CAAC,EAClB,IAAA3B,QAAA,CAAAuB,aAAA,EAACrB,WAAA,CAAA8B,6BAAe;MACfC,EAAE,EAAGC,8BAAuB;MAC5Bb,IAAI,EAAC,cAAc;MACnBc,WAAW;MACXC,IAAI,EAAGK;IAAQ,GAEb,IAAAd,QAAE,EAAE,WAAY,CACF,CAAC,EAClB,IAAA3B,QAAA,CAAAuB,aAAA,EAACrB,WAAA,CAAA8B,6BAAe;MACfC,EAAE,EAAGC,8BAAuB;MAC5Bb,IAAI,EAAC,WAAW;MAChBc,WAAW;MACXC,IAAI,EAAGM;IAAQ,GAEb,IAAAf,QAAE,EAAE,UAAW,CACD,CACP,CAAC,EACZ,IAAA3B,QAAA,CAAAuB,aAAA,EAACX,iBAAA,CAAAY,OAAgB,MAAE,CAClB;EACF,CACD,CAAC;AAEJ"}
1
+ {"version":3,"names":["_components","require","_i18n","_icons","_data","_element","_sidebarNavigationScreen","_interopRequireDefault","_sidebarNavigationItem","_sidebarNavigationScreenGlobalStyles","_lockUnlock","_store","_templatePartHint","SidebarNavigationScreenMain","location","useNavigator","setEditorCanvasContainerView","unlock","useDispatch","editSiteStore","useEffect","path","undefined","_react","createElement","default","isRoot","title","__","description","content","Fragment","__experimentalItemGroup","__experimentalNavigatorButton","as","SidebarNavigationItem","withChevron","icon","navigation","SidebarNavigationItemGlobalStyles","styles","page","layout","symbol"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-main/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalItemGroup as ItemGroup,\n\t__experimentalNavigatorButton as NavigatorButton,\n\t__experimentalUseNavigator as useNavigator,\n} from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { layout, symbol, navigation, styles, page } from '@wordpress/icons';\nimport { useDispatch } from '@wordpress/data';\n\nimport { useEffect } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport SidebarNavigationItem from '../sidebar-navigation-item';\nimport { SidebarNavigationItemGlobalStyles } from '../sidebar-navigation-screen-global-styles';\nimport { unlock } from '../../lock-unlock';\nimport { store as editSiteStore } from '../../store';\nimport TemplatePartHint from './template-part-hint';\n\nexport default function SidebarNavigationScreenMain() {\n\tconst { location } = useNavigator();\n\tconst { setEditorCanvasContainerView } = unlock(\n\t\tuseDispatch( editSiteStore )\n\t);\n\n\t// Clear the editor canvas container view when accessing the main navigation screen.\n\tuseEffect( () => {\n\t\tif ( location?.path === '/' ) {\n\t\t\tsetEditorCanvasContainerView( undefined );\n\t\t}\n\t}, [ setEditorCanvasContainerView, location?.path ] );\n\n\treturn (\n\t\t<SidebarNavigationScreen\n\t\t\tisRoot\n\t\t\ttitle={ __( 'Design' ) }\n\t\t\tdescription={ __(\n\t\t\t\t'Customize the appearance of your website using the block editor.'\n\t\t\t) }\n\t\t\tcontent={\n\t\t\t\t<>\n\t\t\t\t\t<ItemGroup>\n\t\t\t\t\t\t<NavigatorButton\n\t\t\t\t\t\t\tas={ SidebarNavigationItem }\n\t\t\t\t\t\t\tpath=\"/navigation\"\n\t\t\t\t\t\t\twithChevron\n\t\t\t\t\t\t\ticon={ navigation }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Navigation' ) }\n\t\t\t\t\t\t</NavigatorButton>\n\t\t\t\t\t\t<SidebarNavigationItemGlobalStyles\n\t\t\t\t\t\t\twithChevron\n\t\t\t\t\t\t\ticon={ styles }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Styles' ) }\n\t\t\t\t\t\t</SidebarNavigationItemGlobalStyles>\n\t\t\t\t\t\t<NavigatorButton\n\t\t\t\t\t\t\tas={ SidebarNavigationItem }\n\t\t\t\t\t\t\tpath=\"/page\"\n\t\t\t\t\t\t\twithChevron\n\t\t\t\t\t\t\ticon={ page }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Pages' ) }\n\t\t\t\t\t\t</NavigatorButton>\n\t\t\t\t\t\t<NavigatorButton\n\t\t\t\t\t\t\tas={ SidebarNavigationItem }\n\t\t\t\t\t\t\tpath=\"/wp_template\"\n\t\t\t\t\t\t\twithChevron\n\t\t\t\t\t\t\ticon={ layout }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Templates' ) }\n\t\t\t\t\t\t</NavigatorButton>\n\t\t\t\t\t\t<NavigatorButton\n\t\t\t\t\t\t\tas={ SidebarNavigationItem }\n\t\t\t\t\t\t\tpath=\"/patterns\"\n\t\t\t\t\t\t\twithChevron\n\t\t\t\t\t\t\ticon={ symbol }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Patterns' ) }\n\t\t\t\t\t\t</NavigatorButton>\n\t\t\t\t\t</ItemGroup>\n\t\t\t\t\t<TemplatePartHint />\n\t\t\t\t</>\n\t\t\t}\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AAEA,IAAAI,QAA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,EAACf,oCAAA,CAAA8B,iCAAiC;MACjCH,WAAW;MACXC,IAAI,EAAGG;IAAQ,GAEb,IAAAZ,QAAE,EAAE,QAAS,CACmB,CAAC,EACpC,IAAAL,MAAA,CAAAC,aAAA,EAACxB,WAAA,CAAAiC,6BAAe;MACfC,EAAE,EAAGC,8BAAuB;MAC5Bd,IAAI,EAAC,OAAO;MACZe,WAAW;MACXC,IAAI,EAAGI;IAAM,GAEX,IAAAb,QAAE,EAAE,OAAQ,CACE,CAAC,EAClB,IAAAL,MAAA,CAAAC,aAAA,EAACxB,WAAA,CAAAiC,6BAAe;MACfC,EAAE,EAAGC,8BAAuB;MAC5Bd,IAAI,EAAC,cAAc;MACnBe,WAAW;MACXC,IAAI,EAAGK;IAAQ,GAEb,IAAAd,QAAE,EAAE,WAAY,CACF,CAAC,EAClB,IAAAL,MAAA,CAAAC,aAAA,EAACxB,WAAA,CAAAiC,6BAAe;MACfC,EAAE,EAAGC,8BAAuB;MAC5Bd,IAAI,EAAC,WAAW;MAChBe,WAAW;MACXC,IAAI,EAAGM;IAAQ,GAEb,IAAAf,QAAE,EAAE,UAAW,CACD,CACP,CAAC,EACZ,IAAAL,MAAA,CAAAC,aAAA,EAACZ,iBAAA,CAAAa,OAAgB,MAAE,CAClB;EACF,CACD,CAAC;AAEJ"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = TemplatePartHint;
7
- var _element = require("@wordpress/element");
7
+ var _react = require("react");
8
8
  var _components = require("@wordpress/components");
9
9
  var _data = require("@wordpress/data");
10
10
  var _i18n = require("@wordpress/i18n");
@@ -25,7 +25,7 @@ function TemplatePartHint() {
25
25
  if (!showTemplatePartHint) {
26
26
  return null;
27
27
  }
28
- return (0, _element.createElement)(_components.Notice, {
28
+ return (0, _react.createElement)(_components.Notice, {
29
29
  politeness: "polite",
30
30
  className: "edit-site-sidebar__notice",
31
31
  onRemove: () => {
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","_data","_i18n","_preferences","PREFERENCE_NAME","TemplatePartHint","showTemplatePartHint","useSelect","select","_select$get","preferencesStore","get","set","setPreference","useDispatch","_element","createElement","Notice","politeness","className","onRemove","__"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-main/template-part-hint.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Notice } from '@wordpress/components';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\nconst PREFERENCE_NAME = 'isTemplatePartMoveHintVisible';\n\nexport default function TemplatePartHint() {\n\tconst showTemplatePartHint = useSelect(\n\t\t( select ) =>\n\t\t\tselect( preferencesStore ).get( 'core', PREFERENCE_NAME ) ?? true,\n\t\t[]\n\t);\n\n\tconst { set: setPreference } = useDispatch( preferencesStore );\n\tif ( ! showTemplatePartHint ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<Notice\n\t\t\tpoliteness=\"polite\"\n\t\t\tclassName=\"edit-site-sidebar__notice\"\n\t\t\tonRemove={ () => {\n\t\t\t\tsetPreference( 'core', PREFERENCE_NAME, false );\n\t\t\t} }\n\t\t>\n\t\t\t{ __( 'Looking for template parts? Find them in \"Patterns\".' ) }\n\t\t</Notice>\n\t);\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AANA;AACA;AACA;;AAMA,MAAMI,eAAe,GAAG,+BAA+B;AAExC,SAASC,gBAAgBA,CAAA,EAAG;EAC1C,MAAMC,oBAAoB,GAAG,IAAAC,eAAS,EACnCC,MAAM;IAAA,IAAAC,WAAA;IAAA,QAAAA,WAAA,GACPD,MAAM,CAAEE,kBAAiB,CAAC,CAACC,GAAG,CAAE,MAAM,EAAEP,eAAgB,CAAC,cAAAK,WAAA,cAAAA,WAAA,GAAI,IAAI;EAAA,GAClE,EACD,CAAC;EAED,MAAM;IAAEG,GAAG,EAAEC;EAAc,CAAC,GAAG,IAAAC,iBAAW,EAAEJ,kBAAiB,CAAC;EAC9D,IAAK,CAAEJ,oBAAoB,EAAG;IAC7B,OAAO,IAAI;EACZ;EAEA,OACC,IAAAS,QAAA,CAAAC,aAAA,EAACjB,WAAA,CAAAkB,MAAM;IACNC,UAAU,EAAC,QAAQ;IACnBC,SAAS,EAAC,2BAA2B;IACrCC,QAAQ,EAAGA,CAAA,KAAM;MAChBP,aAAa,CAAE,MAAM,EAAET,eAAe,EAAE,KAAM,CAAC;IAChD;EAAG,GAED,IAAAiB,QAAE,EAAE,sDAAuD,CACtD,CAAC;AAEX"}
1
+ {"version":3,"names":["_components","require","_data","_i18n","_preferences","PREFERENCE_NAME","TemplatePartHint","showTemplatePartHint","useSelect","select","_select$get","preferencesStore","get","set","setPreference","useDispatch","_react","createElement","Notice","politeness","className","onRemove","__"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-main/template-part-hint.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Notice } from '@wordpress/components';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\nconst PREFERENCE_NAME = 'isTemplatePartMoveHintVisible';\n\nexport default function TemplatePartHint() {\n\tconst showTemplatePartHint = useSelect(\n\t\t( select ) =>\n\t\t\tselect( preferencesStore ).get( 'core', PREFERENCE_NAME ) ?? true,\n\t\t[]\n\t);\n\n\tconst { set: setPreference } = useDispatch( preferencesStore );\n\tif ( ! showTemplatePartHint ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<Notice\n\t\t\tpoliteness=\"polite\"\n\t\t\tclassName=\"edit-site-sidebar__notice\"\n\t\t\tonRemove={ () => {\n\t\t\t\tsetPreference( 'core', PREFERENCE_NAME, false );\n\t\t\t} }\n\t\t>\n\t\t\t{ __( 'Looking for template parts? Find them in \"Patterns\".' ) }\n\t\t</Notice>\n\t);\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AANA;AACA;AACA;;AAMA,MAAMI,eAAe,GAAG,+BAA+B;AAExC,SAASC,gBAAgBA,CAAA,EAAG;EAC1C,MAAMC,oBAAoB,GAAG,IAAAC,eAAS,EACnCC,MAAM;IAAA,IAAAC,WAAA;IAAA,QAAAA,WAAA,GACPD,MAAM,CAAEE,kBAAiB,CAAC,CAACC,GAAG,CAAE,MAAM,EAAEP,eAAgB,CAAC,cAAAK,WAAA,cAAAA,WAAA,GAAI,IAAI;EAAA,GAClE,EACD,CAAC;EAED,MAAM;IAAEG,GAAG,EAAEC;EAAc,CAAC,GAAG,IAAAC,iBAAW,EAAEJ,kBAAiB,CAAC;EAC9D,IAAK,CAAEJ,oBAAoB,EAAG;IAC7B,OAAO,IAAI;EACZ;EAEA,OACC,IAAAS,MAAA,CAAAC,aAAA,EAACjB,WAAA,CAAAkB,MAAM;IACNC,UAAU,EAAC,QAAQ;IACnBC,SAAS,EAAC,2BAA2B;IACrCC,QAAQ,EAAGA,CAAA,KAAM;MAChBP,aAAa,CAAE,MAAM,EAAET,eAAe,EAAE,KAAM,CAAC;IAChD;EAAG,GAED,IAAAiB,QAAE,EAAE,sDAAuD,CACtD,CAAC;AAEX"}