@wordpress/edit-site 6.13.0 → 6.13.1-next.cd6172eb0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (442) hide show
  1. package/build/components/add-new-pattern/index.js +3 -16
  2. package/build/components/add-new-pattern/index.js.map +1 -1
  3. package/build/components/add-new-template/index.js +1 -5
  4. package/build/components/add-new-template/index.js.map +1 -1
  5. package/build/components/app/index.js +31 -29
  6. package/build/components/app/index.js.map +1 -1
  7. package/build/components/block-editor/use-editor-iframe-props.js +8 -8
  8. package/build/components/block-editor/use-editor-iframe-props.js.map +1 -1
  9. package/build/components/block-editor/use-navigate-to-entity-record.js +1 -5
  10. package/build/components/block-editor/use-navigate-to-entity-record.js.map +1 -1
  11. package/build/components/block-editor/use-site-editor-settings.js +4 -4
  12. package/build/components/block-editor/use-site-editor-settings.js.map +1 -1
  13. package/build/components/dataviews-actions/index.js +1 -5
  14. package/build/components/dataviews-actions/index.js.map +1 -1
  15. package/build/components/editor/index.js +38 -22
  16. package/build/components/editor/index.js.map +1 -1
  17. package/build/components/editor/use-editor-title.js +5 -0
  18. package/build/components/editor/use-editor-title.js.map +1 -1
  19. package/build/components/editor/use-resolve-edited-entity.js +19 -4
  20. package/build/components/editor/use-resolve-edited-entity.js.map +1 -1
  21. package/build/components/global-styles/font-library-modal/context.js +0 -1
  22. package/build/components/global-styles/font-library-modal/context.js.map +1 -1
  23. package/build/components/global-styles/font-library-modal/font-collection.js +36 -26
  24. package/build/components/global-styles/font-library-modal/font-collection.js.map +1 -1
  25. package/build/components/global-styles/font-library-modal/installed-fonts.js +0 -1
  26. package/build/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
  27. package/build/components/global-styles/font-library-modal/upload-fonts.js +0 -1
  28. package/build/components/global-styles/font-library-modal/upload-fonts.js.map +1 -1
  29. package/build/components/global-styles-sidebar/index.js +5 -5
  30. package/build/components/global-styles-sidebar/index.js.map +1 -1
  31. package/build/components/layout/index.js +31 -13
  32. package/build/components/layout/index.js.map +1 -1
  33. package/build/components/page-patterns/delete-category-menu-item.js +1 -4
  34. package/build/components/page-patterns/delete-category-menu-item.js.map +1 -1
  35. package/build/components/page-patterns/fields.js +6 -11
  36. package/build/components/page-patterns/fields.js.map +1 -1
  37. package/build/components/page-patterns/index.js +14 -16
  38. package/build/components/page-patterns/index.js.map +1 -1
  39. package/build/components/page-templates/fields.js +8 -17
  40. package/build/components/page-templates/fields.js.map +1 -1
  41. package/build/components/page-templates/index.js +13 -12
  42. package/build/components/page-templates/index.js.map +1 -1
  43. package/build/components/post-edit/index.js +38 -3
  44. package/build/components/post-edit/index.js.map +1 -1
  45. package/build/components/post-list/index.js +25 -39
  46. package/build/components/post-list/index.js.map +1 -1
  47. package/build/components/posts-app/index.js +10 -16
  48. package/build/components/posts-app/index.js.map +1 -1
  49. package/build/components/posts-app-routes/index.js +3 -7
  50. package/build/components/posts-app-routes/index.js.map +1 -1
  51. package/build/components/posts-app-routes/{posts-edit.js → post-item.js} +9 -13
  52. package/build/components/posts-app-routes/post-item.js.map +1 -0
  53. package/build/components/posts-app-routes/posts.js +89 -0
  54. package/build/components/posts-app-routes/posts.js.map +1 -0
  55. package/build/components/resizable-frame/index.js +6 -5
  56. package/build/components/resizable-frame/index.js.map +1 -1
  57. package/build/components/save-panel/index.js +9 -6
  58. package/build/components/save-panel/index.js.map +1 -1
  59. package/build/components/sidebar-dataviews/add-new-view.js +7 -8
  60. package/build/components/sidebar-dataviews/add-new-view.js.map +1 -1
  61. package/build/components/sidebar-dataviews/dataview-item.js +5 -8
  62. package/build/components/sidebar-dataviews/dataview-item.js.map +1 -1
  63. package/build/components/sidebar-dataviews/index.js +4 -3
  64. package/build/components/sidebar-dataviews/index.js.map +1 -1
  65. package/build/components/sidebar-global-styles-wrapper/index.js +18 -18
  66. package/build/components/sidebar-global-styles-wrapper/index.js.map +1 -1
  67. package/build/components/sidebar-navigation-item/index.js +8 -5
  68. package/build/components/sidebar-navigation-item/index.js.map +1 -1
  69. package/build/components/sidebar-navigation-screen/index.js +2 -2
  70. package/build/components/sidebar-navigation-screen/index.js.map +1 -1
  71. package/build/components/sidebar-navigation-screen-global-styles/index.js +8 -19
  72. package/build/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
  73. package/build/components/sidebar-navigation-screen-main/index.js +6 -14
  74. package/build/components/sidebar-navigation-screen-main/index.js.map +1 -1
  75. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js +1 -5
  76. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
  77. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +2 -7
  78. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -1
  79. package/build/components/sidebar-navigation-screen-navigation-menus/index.js +1 -6
  80. package/build/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  81. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +14 -20
  82. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +1 -1
  83. package/build/components/sidebar-navigation-screen-patterns/category-item.js +5 -7
  84. package/build/components/sidebar-navigation-screen-patterns/category-item.js.map +1 -1
  85. package/build/components/sidebar-navigation-screen-patterns/index.js +4 -5
  86. package/build/components/sidebar-navigation-screen-patterns/index.js.map +1 -1
  87. package/build/components/sidebar-navigation-screen-templates-browse/content.js +25 -16
  88. package/build/components/sidebar-navigation-screen-templates-browse/content.js.map +1 -1
  89. package/build/components/sidebar-navigation-screen-templates-browse/index.js +1 -14
  90. package/build/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
  91. package/build/components/site-editor-routes/{home-view.js → home.js} +7 -8
  92. package/build/components/site-editor-routes/home.js.map +1 -0
  93. package/build/components/site-editor-routes/index.js +12 -18
  94. package/build/components/site-editor-routes/index.js.map +1 -1
  95. package/build/components/site-editor-routes/navigation-item.js +49 -0
  96. package/build/components/site-editor-routes/navigation-item.js.map +1 -0
  97. package/build/components/{posts-app-routes/home.js → site-editor-routes/navigation.js} +16 -18
  98. package/build/components/site-editor-routes/navigation.js.map +1 -0
  99. package/build/components/site-editor-routes/{pages-edit.js → page-item.js} +10 -17
  100. package/build/components/site-editor-routes/page-item.js.map +1 -0
  101. package/build/components/site-editor-routes/pages.js +87 -0
  102. package/build/components/site-editor-routes/pages.js.map +1 -0
  103. package/build/components/site-editor-routes/{home-edit.js → pattern-item.js} +11 -11
  104. package/build/components/site-editor-routes/pattern-item.js.map +1 -0
  105. package/build/components/site-editor-routes/{patterns-view.js → patterns.js} +6 -9
  106. package/build/components/site-editor-routes/patterns.js.map +1 -0
  107. package/build/components/site-editor-routes/{styles-view.js → styles.js} +28 -9
  108. package/build/components/site-editor-routes/styles.js.map +1 -0
  109. package/build/components/site-editor-routes/{templates-edit.js → template-item.js} +6 -11
  110. package/build/components/site-editor-routes/template-item.js.map +1 -0
  111. package/build/components/site-editor-routes/{patterns-edit.js → template-part-item.js} +6 -11
  112. package/build/components/site-editor-routes/template-part-item.js.map +1 -0
  113. package/build/components/site-editor-routes/{templates-list-view.js → templates.js} +20 -13
  114. package/build/components/site-editor-routes/templates.js.map +1 -0
  115. package/build/components/site-hub/index.js +3 -3
  116. package/build/components/site-hub/index.js.map +1 -1
  117. package/build/components/style-book/constants.js +8 -19
  118. package/build/components/style-book/constants.js.map +1 -1
  119. package/build/components/style-book/index.js +5 -0
  120. package/build/components/style-book/index.js.map +1 -1
  121. package/build/hooks/commands/use-common-commands.js +12 -48
  122. package/build/hooks/commands/use-common-commands.js.map +1 -1
  123. package/build/hooks/commands/use-set-command-context.js +2 -2
  124. package/build/hooks/commands/use-set-command-context.js.map +1 -1
  125. package/build/store/private-actions.js +7 -0
  126. package/build/store/private-actions.js.map +1 -1
  127. package/build/store/reducer.js +2 -0
  128. package/build/store/reducer.js.map +1 -1
  129. package/build/utils/is-previewing-theme.js +1 -1
  130. package/build/utils/is-previewing-theme.js.map +1 -1
  131. package/build/utils/use-activate-theme.js +9 -8
  132. package/build/utils/use-activate-theme.js.map +1 -1
  133. package/build-module/components/add-new-pattern/index.js +3 -16
  134. package/build-module/components/add-new-pattern/index.js.map +1 -1
  135. package/build-module/components/add-new-template/index.js +1 -5
  136. package/build-module/components/add-new-template/index.js.map +1 -1
  137. package/build-module/components/app/index.js +33 -31
  138. package/build-module/components/app/index.js.map +1 -1
  139. package/build-module/components/block-editor/use-editor-iframe-props.js +8 -8
  140. package/build-module/components/block-editor/use-editor-iframe-props.js.map +1 -1
  141. package/build-module/components/block-editor/use-navigate-to-entity-record.js +1 -5
  142. package/build-module/components/block-editor/use-navigate-to-entity-record.js.map +1 -1
  143. package/build-module/components/block-editor/use-site-editor-settings.js +4 -4
  144. package/build-module/components/block-editor/use-site-editor-settings.js.map +1 -1
  145. package/build-module/components/dataviews-actions/index.js +1 -5
  146. package/build-module/components/dataviews-actions/index.js.map +1 -1
  147. package/build-module/components/editor/index.js +38 -22
  148. package/build-module/components/editor/index.js.map +1 -1
  149. package/build-module/components/editor/use-editor-title.js +5 -0
  150. package/build-module/components/editor/use-editor-title.js.map +1 -1
  151. package/build-module/components/editor/use-resolve-edited-entity.js +19 -4
  152. package/build-module/components/editor/use-resolve-edited-entity.js.map +1 -1
  153. package/build-module/components/global-styles/font-library-modal/context.js +0 -1
  154. package/build-module/components/global-styles/font-library-modal/context.js.map +1 -1
  155. package/build-module/components/global-styles/font-library-modal/font-collection.js +37 -27
  156. package/build-module/components/global-styles/font-library-modal/font-collection.js.map +1 -1
  157. package/build-module/components/global-styles/font-library-modal/installed-fonts.js +0 -1
  158. package/build-module/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
  159. package/build-module/components/global-styles/font-library-modal/upload-fonts.js +0 -1
  160. package/build-module/components/global-styles/font-library-modal/upload-fonts.js.map +1 -1
  161. package/build-module/components/global-styles-sidebar/index.js +5 -5
  162. package/build-module/components/global-styles-sidebar/index.js.map +1 -1
  163. package/build-module/components/layout/index.js +33 -15
  164. package/build-module/components/layout/index.js.map +1 -1
  165. package/build-module/components/page-patterns/delete-category-menu-item.js +1 -4
  166. package/build-module/components/page-patterns/delete-category-menu-item.js.map +1 -1
  167. package/build-module/components/page-patterns/fields.js +6 -11
  168. package/build-module/components/page-patterns/fields.js.map +1 -1
  169. package/build-module/components/page-patterns/index.js +14 -16
  170. package/build-module/components/page-patterns/index.js.map +1 -1
  171. package/build-module/components/page-templates/fields.js +7 -14
  172. package/build-module/components/page-templates/fields.js.map +1 -1
  173. package/build-module/components/page-templates/index.js +13 -12
  174. package/build-module/components/page-templates/index.js.map +1 -1
  175. package/build-module/components/post-edit/index.js +38 -3
  176. package/build-module/components/post-edit/index.js.map +1 -1
  177. package/build-module/components/post-list/index.js +25 -39
  178. package/build-module/components/post-list/index.js.map +1 -1
  179. package/build-module/components/posts-app/index.js +11 -17
  180. package/build-module/components/posts-app/index.js.map +1 -1
  181. package/build-module/components/posts-app-routes/index.js +3 -7
  182. package/build-module/components/posts-app-routes/index.js.map +1 -1
  183. package/build-module/components/posts-app-routes/{posts-edit.js → post-item.js} +8 -12
  184. package/build-module/components/posts-app-routes/post-item.js.map +1 -0
  185. package/build-module/components/posts-app-routes/posts.js +81 -0
  186. package/build-module/components/posts-app-routes/posts.js.map +1 -0
  187. package/build-module/components/resizable-frame/index.js +6 -5
  188. package/build-module/components/resizable-frame/index.js.map +1 -1
  189. package/build-module/components/save-panel/index.js +9 -6
  190. package/build-module/components/save-panel/index.js.map +1 -1
  191. package/build-module/components/sidebar-dataviews/add-new-view.js +7 -8
  192. package/build-module/components/sidebar-dataviews/add-new-view.js.map +1 -1
  193. package/build-module/components/sidebar-dataviews/dataview-item.js +5 -8
  194. package/build-module/components/sidebar-dataviews/dataview-item.js.map +1 -1
  195. package/build-module/components/sidebar-dataviews/index.js +4 -3
  196. package/build-module/components/sidebar-dataviews/index.js.map +1 -1
  197. package/build-module/components/sidebar-global-styles-wrapper/index.js +18 -18
  198. package/build-module/components/sidebar-global-styles-wrapper/index.js.map +1 -1
  199. package/build-module/components/sidebar-navigation-item/index.js +8 -5
  200. package/build-module/components/sidebar-navigation-item/index.js.map +1 -1
  201. package/build-module/components/sidebar-navigation-screen/index.js +2 -2
  202. package/build-module/components/sidebar-navigation-screen/index.js.map +1 -1
  203. package/build-module/components/sidebar-navigation-screen-global-styles/index.js +9 -20
  204. package/build-module/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
  205. package/build-module/components/sidebar-navigation-screen-main/index.js +6 -14
  206. package/build-module/components/sidebar-navigation-screen-main/index.js.map +1 -1
  207. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js +1 -5
  208. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
  209. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +2 -7
  210. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -1
  211. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js +1 -6
  212. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  213. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +14 -20
  214. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +1 -1
  215. package/build-module/components/sidebar-navigation-screen-patterns/category-item.js +5 -7
  216. package/build-module/components/sidebar-navigation-screen-patterns/category-item.js.map +1 -1
  217. package/build-module/components/sidebar-navigation-screen-patterns/index.js +4 -5
  218. package/build-module/components/sidebar-navigation-screen-patterns/index.js.map +1 -1
  219. package/build-module/components/sidebar-navigation-screen-templates-browse/content.js +25 -16
  220. package/build-module/components/sidebar-navigation-screen-templates-browse/content.js.map +1 -1
  221. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js +1 -14
  222. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
  223. package/build-module/components/site-editor-routes/{home-edit.js → home.js} +5 -7
  224. package/build-module/components/site-editor-routes/home.js.map +1 -0
  225. package/build-module/components/site-editor-routes/index.js +12 -18
  226. package/build-module/components/site-editor-routes/index.js.map +1 -1
  227. package/build-module/components/site-editor-routes/navigation-item.js +41 -0
  228. package/build-module/components/site-editor-routes/navigation-item.js.map +1 -0
  229. package/build-module/components/site-editor-routes/navigation.js +38 -0
  230. package/build-module/components/site-editor-routes/navigation.js.map +1 -0
  231. package/build-module/components/site-editor-routes/{pages-edit.js → page-item.js} +9 -16
  232. package/build-module/components/site-editor-routes/page-item.js.map +1 -0
  233. package/build-module/components/site-editor-routes/pages.js +79 -0
  234. package/build-module/components/site-editor-routes/pages.js.map +1 -0
  235. package/build-module/components/site-editor-routes/pattern-item.js +18 -0
  236. package/build-module/components/site-editor-routes/pattern-item.js.map +1 -0
  237. package/build-module/components/site-editor-routes/{patterns-view.js → patterns.js} +5 -8
  238. package/build-module/components/site-editor-routes/patterns.js.map +1 -0
  239. package/build-module/components/site-editor-routes/styles.js +44 -0
  240. package/build-module/components/site-editor-routes/styles.js.map +1 -0
  241. package/build-module/components/site-editor-routes/{templates-edit.js → template-item.js} +5 -10
  242. package/build-module/components/site-editor-routes/template-item.js.map +1 -0
  243. package/build-module/components/site-editor-routes/template-part-item.js +18 -0
  244. package/build-module/components/site-editor-routes/template-part-item.js.map +1 -0
  245. package/build-module/components/site-editor-routes/templates.js +33 -0
  246. package/build-module/components/site-editor-routes/templates.js.map +1 -0
  247. package/build-module/components/site-hub/index.js +3 -3
  248. package/build-module/components/site-hub/index.js.map +1 -1
  249. package/build-module/components/style-book/constants.js +8 -19
  250. package/build-module/components/style-book/constants.js.map +1 -1
  251. package/build-module/components/style-book/index.js +5 -0
  252. package/build-module/components/style-book/index.js.map +1 -1
  253. package/build-module/hooks/commands/use-common-commands.js +12 -48
  254. package/build-module/hooks/commands/use-common-commands.js.map +1 -1
  255. package/build-module/hooks/commands/use-set-command-context.js +2 -2
  256. package/build-module/hooks/commands/use-set-command-context.js.map +1 -1
  257. package/build-module/store/private-actions.js +6 -0
  258. package/build-module/store/private-actions.js.map +1 -1
  259. package/build-module/store/reducer.js +2 -0
  260. package/build-module/store/reducer.js.map +1 -1
  261. package/build-module/utils/is-previewing-theme.js +1 -1
  262. package/build-module/utils/is-previewing-theme.js.map +1 -1
  263. package/build-module/utils/use-activate-theme.js +9 -8
  264. package/build-module/utils/use-activate-theme.js.map +1 -1
  265. package/build-style/style-rtl.css +94 -12
  266. package/build-style/style.css +94 -12
  267. package/package.json +40 -40
  268. package/src/components/add-new-pattern/index.js +9 -17
  269. package/src/components/add-new-template/index.js +3 -5
  270. package/src/components/app/index.js +34 -35
  271. package/src/components/block-editor/use-editor-iframe-props.js +5 -4
  272. package/src/components/block-editor/use-navigate-to-entity-record.js +3 -1
  273. package/src/components/block-editor/use-site-editor-settings.js +6 -6
  274. package/src/components/dataviews-actions/index.js +1 -5
  275. package/src/components/editor/index.js +64 -29
  276. package/src/components/editor/use-editor-title.js +4 -0
  277. package/src/components/editor/use-resolve-edited-entity.js +17 -2
  278. package/src/components/global-styles/font-library-modal/font-collection.js +40 -27
  279. package/src/components/global-styles/font-library-modal/style.scss +12 -5
  280. package/src/components/global-styles/style.scss +4 -0
  281. package/src/components/global-styles-sidebar/index.js +4 -4
  282. package/src/components/layout/index.js +36 -6
  283. package/src/components/page-patterns/delete-category-menu-item.js +3 -4
  284. package/src/components/page-patterns/fields.js +12 -11
  285. package/src/components/page-patterns/index.js +16 -14
  286. package/src/components/page-templates/fields.js +4 -15
  287. package/src/components/page-templates/index.js +18 -13
  288. package/src/components/post-edit/index.js +36 -2
  289. package/src/components/post-list/index.js +43 -39
  290. package/src/components/posts-app/index.js +9 -18
  291. package/src/components/posts-app-routes/index.js +3 -14
  292. package/src/components/posts-app-routes/{posts-edit.js → post-item.js} +5 -9
  293. package/src/components/posts-app-routes/posts.js +66 -0
  294. package/src/components/resizable-frame/index.js +6 -7
  295. package/src/components/save-panel/index.js +11 -5
  296. package/src/components/sidebar-dataviews/add-new-view.js +9 -9
  297. package/src/components/sidebar-dataviews/dataview-item.js +5 -8
  298. package/src/components/sidebar-dataviews/index.js +2 -2
  299. package/src/components/sidebar-dataviews/style.scss +2 -2
  300. package/src/components/sidebar-global-styles-wrapper/index.js +24 -30
  301. package/src/components/sidebar-navigation-item/index.js +7 -5
  302. package/src/components/sidebar-navigation-item/style.scss +1 -2
  303. package/src/components/sidebar-navigation-screen/index.js +2 -2
  304. package/src/components/sidebar-navigation-screen/style.scss +2 -2
  305. package/src/components/sidebar-navigation-screen-global-styles/index.js +13 -34
  306. package/src/components/sidebar-navigation-screen-main/index.js +6 -10
  307. package/src/components/sidebar-navigation-screen-navigation-menu/more-menu.js +3 -5
  308. package/src/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +2 -2
  309. package/src/components/sidebar-navigation-screen-navigation-menus/index.js +6 -6
  310. package/src/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +9 -21
  311. package/src/components/sidebar-navigation-screen-patterns/category-item.js +5 -20
  312. package/src/components/sidebar-navigation-screen-patterns/index.js +3 -4
  313. package/src/components/sidebar-navigation-screen-templates-browse/content.js +24 -18
  314. package/src/components/sidebar-navigation-screen-templates-browse/index.js +1 -14
  315. package/src/components/site-editor-routes/{home-view.js → home.js} +4 -5
  316. package/src/components/site-editor-routes/index.js +22 -34
  317. package/src/components/site-editor-routes/navigation-item.js +39 -0
  318. package/src/components/site-editor-routes/navigation.js +34 -0
  319. package/src/components/site-editor-routes/{pages-edit.js → page-item.js} +6 -14
  320. package/src/components/site-editor-routes/pages.js +66 -0
  321. package/src/components/site-editor-routes/pattern-item.js +15 -0
  322. package/src/components/site-editor-routes/patterns.js +15 -0
  323. package/src/components/site-editor-routes/styles.js +39 -0
  324. package/src/components/site-editor-routes/template-item.js +15 -0
  325. package/src/components/site-editor-routes/template-part-item.js +15 -0
  326. package/src/components/site-editor-routes/templates.js +26 -0
  327. package/src/components/site-hub/index.js +3 -6
  328. package/src/components/style-book/constants.ts +8 -19
  329. package/src/components/style-book/index.js +5 -0
  330. package/src/hooks/commands/use-common-commands.js +14 -72
  331. package/src/hooks/commands/use-set-command-context.js +2 -2
  332. package/src/store/private-actions.js +7 -0
  333. package/src/store/reducer.js +2 -0
  334. package/src/utils/is-previewing-theme.js +1 -3
  335. package/src/utils/use-activate-theme.js +4 -3
  336. package/build/components/layout/router.js +0 -92
  337. package/build/components/layout/router.js.map +0 -1
  338. package/build/components/posts-app-routes/home.js.map +0 -1
  339. package/build/components/posts-app-routes/posts-edit.js.map +0 -1
  340. package/build/components/posts-app-routes/posts-list-view-quick-edit.js +0 -63
  341. package/build/components/posts-app-routes/posts-list-view-quick-edit.js.map +0 -1
  342. package/build/components/posts-app-routes/posts-list-view.js +0 -48
  343. package/build/components/posts-app-routes/posts-list-view.js.map +0 -1
  344. package/build/components/posts-app-routes/posts-view-quick-edit.js +0 -60
  345. package/build/components/posts-app-routes/posts-view-quick-edit.js.map +0 -1
  346. package/build/components/posts-app-routes/posts-view.js +0 -41
  347. package/build/components/posts-app-routes/posts-view.js.map +0 -1
  348. package/build/components/routes/link.js +0 -69
  349. package/build/components/routes/link.js.map +0 -1
  350. package/build/components/site-editor-routes/home-edit.js.map +0 -1
  351. package/build/components/site-editor-routes/home-view.js.map +0 -1
  352. package/build/components/site-editor-routes/navigation-edit.js +0 -29
  353. package/build/components/site-editor-routes/navigation-edit.js.map +0 -1
  354. package/build/components/site-editor-routes/navigation-item-edit.js +0 -31
  355. package/build/components/site-editor-routes/navigation-item-edit.js.map +0 -1
  356. package/build/components/site-editor-routes/navigation-item-view.js +0 -30
  357. package/build/components/site-editor-routes/navigation-item-view.js.map +0 -1
  358. package/build/components/site-editor-routes/navigation-view.js +0 -28
  359. package/build/components/site-editor-routes/navigation-view.js.map +0 -1
  360. package/build/components/site-editor-routes/pages-edit.js.map +0 -1
  361. package/build/components/site-editor-routes/pages-list-view-quick-edit.js +0 -64
  362. package/build/components/site-editor-routes/pages-list-view-quick-edit.js.map +0 -1
  363. package/build/components/site-editor-routes/pages-list-view.js +0 -47
  364. package/build/components/site-editor-routes/pages-list-view.js.map +0 -1
  365. package/build/components/site-editor-routes/pages-view-quick-edit.js +0 -61
  366. package/build/components/site-editor-routes/pages-view-quick-edit.js.map +0 -1
  367. package/build/components/site-editor-routes/pages-view.js +0 -42
  368. package/build/components/site-editor-routes/pages-view.js.map +0 -1
  369. package/build/components/site-editor-routes/patterns-edit.js.map +0 -1
  370. package/build/components/site-editor-routes/patterns-view.js.map +0 -1
  371. package/build/components/site-editor-routes/styles-view.js.map +0 -1
  372. package/build/components/site-editor-routes/templates-edit.js.map +0 -1
  373. package/build/components/site-editor-routes/templates-list-view.js.map +0 -1
  374. package/build/components/site-editor-routes/templates-view.js +0 -29
  375. package/build/components/site-editor-routes/templates-view.js.map +0 -1
  376. package/build-module/components/layout/router.js +0 -84
  377. package/build-module/components/layout/router.js.map +0 -1
  378. package/build-module/components/posts-app-routes/home.js +0 -40
  379. package/build-module/components/posts-app-routes/home.js.map +0 -1
  380. package/build-module/components/posts-app-routes/posts-edit.js.map +0 -1
  381. package/build-module/components/posts-app-routes/posts-list-view-quick-edit.js +0 -55
  382. package/build-module/components/posts-app-routes/posts-list-view-quick-edit.js.map +0 -1
  383. package/build-module/components/posts-app-routes/posts-list-view.js +0 -40
  384. package/build-module/components/posts-app-routes/posts-list-view.js.map +0 -1
  385. package/build-module/components/posts-app-routes/posts-view-quick-edit.js +0 -52
  386. package/build-module/components/posts-app-routes/posts-view-quick-edit.js.map +0 -1
  387. package/build-module/components/posts-app-routes/posts-view.js +0 -33
  388. package/build-module/components/posts-app-routes/posts-view.js.map +0 -1
  389. package/build-module/components/routes/link.js +0 -61
  390. package/build-module/components/routes/link.js.map +0 -1
  391. package/build-module/components/site-editor-routes/home-edit.js.map +0 -1
  392. package/build-module/components/site-editor-routes/home-view.js +0 -17
  393. package/build-module/components/site-editor-routes/home-view.js.map +0 -1
  394. package/build-module/components/site-editor-routes/navigation-edit.js +0 -21
  395. package/build-module/components/site-editor-routes/navigation-edit.js.map +0 -1
  396. package/build-module/components/site-editor-routes/navigation-item-edit.js +0 -23
  397. package/build-module/components/site-editor-routes/navigation-item-edit.js.map +0 -1
  398. package/build-module/components/site-editor-routes/navigation-item-view.js +0 -22
  399. package/build-module/components/site-editor-routes/navigation-item-view.js.map +0 -1
  400. package/build-module/components/site-editor-routes/navigation-view.js +0 -20
  401. package/build-module/components/site-editor-routes/navigation-view.js.map +0 -1
  402. package/build-module/components/site-editor-routes/pages-edit.js.map +0 -1
  403. package/build-module/components/site-editor-routes/pages-list-view-quick-edit.js +0 -56
  404. package/build-module/components/site-editor-routes/pages-list-view-quick-edit.js.map +0 -1
  405. package/build-module/components/site-editor-routes/pages-list-view.js +0 -39
  406. package/build-module/components/site-editor-routes/pages-list-view.js.map +0 -1
  407. package/build-module/components/site-editor-routes/pages-view-quick-edit.js +0 -53
  408. package/build-module/components/site-editor-routes/pages-view-quick-edit.js.map +0 -1
  409. package/build-module/components/site-editor-routes/pages-view.js +0 -34
  410. package/build-module/components/site-editor-routes/pages-view.js.map +0 -1
  411. package/build-module/components/site-editor-routes/patterns-edit.js +0 -23
  412. package/build-module/components/site-editor-routes/patterns-edit.js.map +0 -1
  413. package/build-module/components/site-editor-routes/patterns-view.js.map +0 -1
  414. package/build-module/components/site-editor-routes/styles-view.js +0 -25
  415. package/build-module/components/site-editor-routes/styles-view.js.map +0 -1
  416. package/build-module/components/site-editor-routes/templates-edit.js.map +0 -1
  417. package/build-module/components/site-editor-routes/templates-list-view.js +0 -26
  418. package/build-module/components/site-editor-routes/templates-list-view.js.map +0 -1
  419. package/build-module/components/site-editor-routes/templates-view.js +0 -21
  420. package/build-module/components/site-editor-routes/templates-view.js.map +0 -1
  421. package/src/components/layout/router.js +0 -86
  422. package/src/components/posts-app-routes/home.js +0 -36
  423. package/src/components/posts-app-routes/posts-list-view-quick-edit.js +0 -52
  424. package/src/components/posts-app-routes/posts-list-view.js +0 -40
  425. package/src/components/posts-app-routes/posts-view-quick-edit.js +0 -49
  426. package/src/components/posts-app-routes/posts-view.js +0 -35
  427. package/src/components/routes/link.js +0 -68
  428. package/src/components/site-editor-routes/home-edit.js +0 -17
  429. package/src/components/site-editor-routes/navigation-edit.js +0 -22
  430. package/src/components/site-editor-routes/navigation-item-edit.js +0 -26
  431. package/src/components/site-editor-routes/navigation-item-view.js +0 -25
  432. package/src/components/site-editor-routes/navigation-view.js +0 -21
  433. package/src/components/site-editor-routes/pages-list-view-quick-edit.js +0 -56
  434. package/src/components/site-editor-routes/pages-list-view.js +0 -44
  435. package/src/components/site-editor-routes/pages-view-quick-edit.js +0 -53
  436. package/src/components/site-editor-routes/pages-view.js +0 -39
  437. package/src/components/site-editor-routes/patterns-edit.js +0 -24
  438. package/src/components/site-editor-routes/patterns-view.js +0 -22
  439. package/src/components/site-editor-routes/styles-view.js +0 -26
  440. package/src/components/site-editor-routes/templates-edit.js +0 -22
  441. package/src/components/site-editor-routes/templates-list-view.js +0 -28
  442. package/src/components/site-editor-routes/templates-view.js +0 -22
@@ -1,40 +0,0 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
- import { __ } from '@wordpress/i18n';
5
-
6
- /**
7
- * Internal dependencies
8
- */
9
- import PostList from '../post-list';
10
- import DataViewsSidebarContent from '../sidebar-dataviews';
11
- import SidebarNavigationScreen from '../sidebar-navigation-screen';
12
- import Editor from '../editor';
13
- import { jsx as _jsx } from "react/jsx-runtime";
14
- export const postsListViewRoute = {
15
- name: 'posts-list-view',
16
- match: params => {
17
- var _params$layout;
18
- return params.isCustom !== 'true' && ((_params$layout = params.layout) !== null && _params$layout !== void 0 ? _params$layout : 'list') === 'list' && !params.quickEdit && params.postType === 'post' && params.canvas !== 'edit';
19
- },
20
- areas: {
21
- sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreen, {
22
- title: __('Posts'),
23
- isRoot: true,
24
- content: /*#__PURE__*/_jsx(DataViewsSidebarContent, {})
25
- }),
26
- content: /*#__PURE__*/_jsx(PostList, {
27
- postType: "post"
28
- }),
29
- preview: /*#__PURE__*/_jsx(Editor, {
30
- isPostsList: true
31
- }),
32
- mobile: /*#__PURE__*/_jsx(PostList, {
33
- postType: "post"
34
- })
35
- },
36
- widths: {
37
- content: 380
38
- }
39
- };
40
- //# sourceMappingURL=posts-list-view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__","PostList","DataViewsSidebarContent","SidebarNavigationScreen","Editor","jsx","_jsx","postsListViewRoute","name","match","params","_params$layout","isCustom","layout","quickEdit","postType","canvas","areas","sidebar","title","isRoot","content","preview","isPostsList","mobile","widths"],"sources":["@wordpress/edit-site/src/components/posts-app-routes/posts-list-view.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport PostList from '../post-list';\nimport DataViewsSidebarContent from '../sidebar-dataviews';\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport Editor from '../editor';\n\nexport const postsListViewRoute = {\n\tname: 'posts-list-view',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\tparams.isCustom !== 'true' &&\n\t\t\t( params.layout ?? 'list' ) === 'list' &&\n\t\t\t! params.quickEdit &&\n\t\t\tparams.postType === 'post' &&\n\t\t\tparams.canvas !== 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: (\n\t\t\t<SidebarNavigationScreen\n\t\t\t\ttitle={ __( 'Posts' ) }\n\t\t\t\tisRoot\n\t\t\t\tcontent={ <DataViewsSidebarContent /> }\n\t\t\t/>\n\t\t),\n\t\tcontent: <PostList postType=\"post\" />,\n\t\tpreview: <Editor isPostsList />,\n\t\tmobile: <PostList postType=\"post\" />,\n\t},\n\twidths: {\n\t\tcontent: 380,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;AACA,OAAOC,QAAQ,MAAM,cAAc;AACnC,OAAOC,uBAAuB,MAAM,sBAAsB;AAC1D,OAAOC,uBAAuB,MAAM,8BAA8B;AAClE,OAAOC,MAAM,MAAM,WAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE/B,OAAO,MAAMC,kBAAkB,GAAG;EACjCC,IAAI,EAAE,iBAAiB;EACvBC,KAAK,EAAIC,MAAM,IAAM;IAAA,IAAAC,cAAA;IACpB,OACCD,MAAM,CAACE,QAAQ,KAAK,MAAM,IAC1B,EAAAD,cAAA,GAAED,MAAM,CAACG,MAAM,cAAAF,cAAA,cAAAA,cAAA,GAAI,MAAM,MAAO,MAAM,IACtC,CAAED,MAAM,CAACI,SAAS,IAClBJ,MAAM,CAACK,QAAQ,KAAK,MAAM,IAC1BL,MAAM,CAACM,MAAM,KAAK,MAAM;EAE1B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eACNZ,IAAA,CAACH,uBAAuB;MACvBgB,KAAK,EAAGnB,EAAE,CAAE,OAAQ,CAAG;MACvBoB,MAAM;MACNC,OAAO,eAAGf,IAAA,CAACJ,uBAAuB,IAAE;IAAG,CACvC,CACD;IACDmB,OAAO,eAAEf,IAAA,CAACL,QAAQ;MAACc,QAAQ,EAAC;IAAM,CAAE,CAAC;IACrCO,OAAO,eAAEhB,IAAA,CAACF,MAAM;MAACmB,WAAW;IAAA,CAAE,CAAC;IAC/BC,MAAM,eAAElB,IAAA,CAACL,QAAQ;MAACc,QAAQ,EAAC;IAAM,CAAE;EACpC,CAAC;EACDU,MAAM,EAAE;IACPJ,OAAO,EAAE;EACV;AACD,CAAC","ignoreList":[]}
@@ -1,52 +0,0 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
- import { __ } from '@wordpress/i18n';
5
- import { privateApis as routerPrivateApis } from '@wordpress/router';
6
-
7
- /**
8
- * Internal dependencies
9
- */
10
- import PostList from '../post-list';
11
- import DataViewsSidebarContent from '../sidebar-dataviews';
12
- import SidebarNavigationScreen from '../sidebar-navigation-screen';
13
- import { unlock } from '../../lock-unlock';
14
- import { PostEdit } from '../post-edit';
15
- import { jsx as _jsx } from "react/jsx-runtime";
16
- const {
17
- useLocation
18
- } = unlock(routerPrivateApis);
19
- function PostQuickEdit() {
20
- const {
21
- params
22
- } = useLocation();
23
- return /*#__PURE__*/_jsx(PostEdit, {
24
- postType: "post",
25
- postId: params.postId
26
- });
27
- }
28
- export const postsViewQuickEditRoute = {
29
- name: 'posts-view-quick-edit',
30
- match: params => {
31
- var _params$layout;
32
- return (params.isCustom === 'true' || ((_params$layout = params.layout) !== null && _params$layout !== void 0 ? _params$layout : 'list') !== 'list') && !!params.quickEdit && params.postType === 'post' && params.canvas !== 'edit';
33
- },
34
- areas: {
35
- sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreen, {
36
- title: __('Posts'),
37
- isRoot: true,
38
- content: /*#__PURE__*/_jsx(DataViewsSidebarContent, {})
39
- }),
40
- content: /*#__PURE__*/_jsx(PostList, {
41
- postType: "post"
42
- }),
43
- mobile: /*#__PURE__*/_jsx(PostList, {
44
- postType: "post"
45
- }),
46
- edit: /*#__PURE__*/_jsx(PostQuickEdit, {})
47
- },
48
- widths: {
49
- edit: 380
50
- }
51
- };
52
- //# sourceMappingURL=posts-view-quick-edit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__","privateApis","routerPrivateApis","PostList","DataViewsSidebarContent","SidebarNavigationScreen","unlock","PostEdit","jsx","_jsx","useLocation","PostQuickEdit","params","postType","postId","postsViewQuickEditRoute","name","match","_params$layout","isCustom","layout","quickEdit","canvas","areas","sidebar","title","isRoot","content","mobile","edit","widths"],"sources":["@wordpress/edit-site/src/components/posts-app-routes/posts-view-quick-edit.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\n\n/**\n * Internal dependencies\n */\nimport PostList from '../post-list';\nimport DataViewsSidebarContent from '../sidebar-dataviews';\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport { unlock } from '../../lock-unlock';\nimport { PostEdit } from '../post-edit';\n\nconst { useLocation } = unlock( routerPrivateApis );\n\nfunction PostQuickEdit() {\n\tconst { params } = useLocation();\n\treturn <PostEdit postType=\"post\" postId={ params.postId } />;\n}\n\nexport const postsViewQuickEditRoute = {\n\tname: 'posts-view-quick-edit',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\t( params.isCustom === 'true' ||\n\t\t\t\t( params.layout ?? 'list' ) !== 'list' ) &&\n\t\t\t!! params.quickEdit &&\n\t\t\tparams.postType === 'post' &&\n\t\t\tparams.canvas !== 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: (\n\t\t\t<SidebarNavigationScreen\n\t\t\t\ttitle={ __( 'Posts' ) }\n\t\t\t\tisRoot\n\t\t\t\tcontent={ <DataViewsSidebarContent /> }\n\t\t\t/>\n\t\t),\n\t\tcontent: <PostList postType=\"post\" />,\n\t\tmobile: <PostList postType=\"post\" />,\n\t\tedit: <PostQuickEdit />,\n\t},\n\twidths: {\n\t\tedit: 380,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;AACpC,SAASC,WAAW,IAAIC,iBAAiB,QAAQ,mBAAmB;;AAEpE;AACA;AACA;AACA,OAAOC,QAAQ,MAAM,cAAc;AACnC,OAAOC,uBAAuB,MAAM,sBAAsB;AAC1D,OAAOC,uBAAuB,MAAM,8BAA8B;AAClE,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,QAAQ,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAExC,MAAM;EAAEC;AAAY,CAAC,GAAGJ,MAAM,CAAEJ,iBAAkB,CAAC;AAEnD,SAASS,aAAaA,CAAA,EAAG;EACxB,MAAM;IAAEC;EAAO,CAAC,GAAGF,WAAW,CAAC,CAAC;EAChC,oBAAOD,IAAA,CAACF,QAAQ;IAACM,QAAQ,EAAC,MAAM;IAACC,MAAM,EAAGF,MAAM,CAACE;EAAQ,CAAE,CAAC;AAC7D;AAEA,OAAO,MAAMC,uBAAuB,GAAG;EACtCC,IAAI,EAAE,uBAAuB;EAC7BC,KAAK,EAAIL,MAAM,IAAM;IAAA,IAAAM,cAAA;IACpB,OACC,CAAEN,MAAM,CAACO,QAAQ,KAAK,MAAM,IAC3B,EAAAD,cAAA,GAAEN,MAAM,CAACQ,MAAM,cAAAF,cAAA,cAAAA,cAAA,GAAI,MAAM,MAAO,MAAM,KACvC,CAAC,CAAEN,MAAM,CAACS,SAAS,IACnBT,MAAM,CAACC,QAAQ,KAAK,MAAM,IAC1BD,MAAM,CAACU,MAAM,KAAK,MAAM;EAE1B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eACNf,IAAA,CAACJ,uBAAuB;MACvBoB,KAAK,EAAGzB,EAAE,CAAE,OAAQ,CAAG;MACvB0B,MAAM;MACNC,OAAO,eAAGlB,IAAA,CAACL,uBAAuB,IAAE;IAAG,CACvC,CACD;IACDuB,OAAO,eAAElB,IAAA,CAACN,QAAQ;MAACU,QAAQ,EAAC;IAAM,CAAE,CAAC;IACrCe,MAAM,eAAEnB,IAAA,CAACN,QAAQ;MAACU,QAAQ,EAAC;IAAM,CAAE,CAAC;IACpCgB,IAAI,eAAEpB,IAAA,CAACE,aAAa,IAAE;EACvB,CAAC;EACDmB,MAAM,EAAE;IACPD,IAAI,EAAE;EACP;AACD,CAAC","ignoreList":[]}
@@ -1,33 +0,0 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
- import { __ } from '@wordpress/i18n';
5
-
6
- /**
7
- * Internal dependencies
8
- */
9
- import PostList from '../post-list';
10
- import DataViewsSidebarContent from '../sidebar-dataviews';
11
- import SidebarNavigationScreen from '../sidebar-navigation-screen';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- export const postsViewRoute = {
14
- name: 'posts-view',
15
- match: params => {
16
- var _params$layout;
17
- return (params.isCustom === 'true' || ((_params$layout = params.layout) !== null && _params$layout !== void 0 ? _params$layout : 'list') !== 'list') && !params.quickEdit && params.postType === 'post' && params.canvas !== 'edit';
18
- },
19
- areas: {
20
- sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreen, {
21
- title: __('Posts'),
22
- isRoot: true,
23
- content: /*#__PURE__*/_jsx(DataViewsSidebarContent, {})
24
- }),
25
- content: /*#__PURE__*/_jsx(PostList, {
26
- postType: "post"
27
- }),
28
- mobile: /*#__PURE__*/_jsx(PostList, {
29
- postType: "post"
30
- })
31
- }
32
- };
33
- //# sourceMappingURL=posts-view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__","PostList","DataViewsSidebarContent","SidebarNavigationScreen","jsx","_jsx","postsViewRoute","name","match","params","_params$layout","isCustom","layout","quickEdit","postType","canvas","areas","sidebar","title","isRoot","content","mobile"],"sources":["@wordpress/edit-site/src/components/posts-app-routes/posts-view.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport PostList from '../post-list';\nimport DataViewsSidebarContent from '../sidebar-dataviews';\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\n\nexport const postsViewRoute = {\n\tname: 'posts-view',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\t( params.isCustom === 'true' ||\n\t\t\t\t( params.layout ?? 'list' ) !== 'list' ) &&\n\t\t\t! params.quickEdit &&\n\t\t\tparams.postType === 'post' &&\n\t\t\tparams.canvas !== 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: (\n\t\t\t<SidebarNavigationScreen\n\t\t\t\ttitle={ __( 'Posts' ) }\n\t\t\t\tisRoot\n\t\t\t\tcontent={ <DataViewsSidebarContent /> }\n\t\t\t/>\n\t\t),\n\t\tcontent: <PostList postType=\"post\" />,\n\t\tmobile: <PostList postType=\"post\" />,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;AACA,OAAOC,QAAQ,MAAM,cAAc;AACnC,OAAOC,uBAAuB,MAAM,sBAAsB;AAC1D,OAAOC,uBAAuB,MAAM,8BAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnE,OAAO,MAAMC,cAAc,GAAG;EAC7BC,IAAI,EAAE,YAAY;EAClBC,KAAK,EAAIC,MAAM,IAAM;IAAA,IAAAC,cAAA;IACpB,OACC,CAAED,MAAM,CAACE,QAAQ,KAAK,MAAM,IAC3B,EAAAD,cAAA,GAAED,MAAM,CAACG,MAAM,cAAAF,cAAA,cAAAA,cAAA,GAAI,MAAM,MAAO,MAAM,KACvC,CAAED,MAAM,CAACI,SAAS,IAClBJ,MAAM,CAACK,QAAQ,KAAK,MAAM,IAC1BL,MAAM,CAACM,MAAM,KAAK,MAAM;EAE1B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eACNZ,IAAA,CAACF,uBAAuB;MACvBe,KAAK,EAAGlB,EAAE,CAAE,OAAQ,CAAG;MACvBmB,MAAM;MACNC,OAAO,eAAGf,IAAA,CAACH,uBAAuB,IAAE;IAAG,CACvC,CACD;IACDkB,OAAO,eAAEf,IAAA,CAACJ,QAAQ;MAACa,QAAQ,EAAC;IAAM,CAAE,CAAC;IACrCO,MAAM,eAAEhB,IAAA,CAACJ,QAAQ;MAACa,QAAQ,EAAC;IAAM,CAAE;EACpC;AACD,CAAC","ignoreList":[]}
@@ -1,61 +0,0 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
- import { addQueryArgs, getQueryArgs, removeQueryArgs } from '@wordpress/url';
5
- import { privateApis as routerPrivateApis } from '@wordpress/router';
6
-
7
- /**
8
- * Internal dependencies
9
- */
10
- import { unlock } from '../../lock-unlock';
11
- import { isPreviewingTheme, currentlyPreviewingTheme } from '../../utils/is-previewing-theme';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- const {
14
- useHistory
15
- } = unlock(routerPrivateApis);
16
- export function useLink(params, state, shouldReplace = false) {
17
- const history = useHistory();
18
- function onClick(event) {
19
- event?.preventDefault();
20
- if (shouldReplace) {
21
- history.replace(params, state);
22
- } else {
23
- history.push(params, state);
24
- }
25
- }
26
- const currentArgs = getQueryArgs(window.location.href);
27
- const currentUrlWithoutArgs = removeQueryArgs(window.location.href, ...Object.keys(currentArgs));
28
- let extraParams = {};
29
- if (isPreviewingTheme()) {
30
- extraParams = {
31
- wp_theme_preview: currentlyPreviewingTheme()
32
- };
33
- }
34
- const newUrl = addQueryArgs(currentUrlWithoutArgs, {
35
- ...params,
36
- ...extraParams
37
- });
38
- return {
39
- href: newUrl,
40
- onClick
41
- };
42
- }
43
- export default function Link({
44
- params = {},
45
- state,
46
- replace: shouldReplace = false,
47
- children,
48
- ...props
49
- }) {
50
- const {
51
- href,
52
- onClick
53
- } = useLink(params, state, shouldReplace);
54
- return /*#__PURE__*/_jsx("a", {
55
- href: href,
56
- onClick: onClick,
57
- ...props,
58
- children: children
59
- });
60
- }
61
- //# sourceMappingURL=link.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["addQueryArgs","getQueryArgs","removeQueryArgs","privateApis","routerPrivateApis","unlock","isPreviewingTheme","currentlyPreviewingTheme","jsx","_jsx","useHistory","useLink","params","state","shouldReplace","history","onClick","event","preventDefault","replace","push","currentArgs","window","location","href","currentUrlWithoutArgs","Object","keys","extraParams","wp_theme_preview","newUrl","Link","children","props"],"sources":["@wordpress/edit-site/src/components/routes/link.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { addQueryArgs, getQueryArgs, removeQueryArgs } from '@wordpress/url';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\nimport {\n\tisPreviewingTheme,\n\tcurrentlyPreviewingTheme,\n} from '../../utils/is-previewing-theme';\n\nconst { useHistory } = unlock( routerPrivateApis );\n\nexport function useLink( params, state, shouldReplace = false ) {\n\tconst history = useHistory();\n\tfunction onClick( event ) {\n\t\tevent?.preventDefault();\n\n\t\tif ( shouldReplace ) {\n\t\t\thistory.replace( params, state );\n\t\t} else {\n\t\t\thistory.push( params, state );\n\t\t}\n\t}\n\n\tconst currentArgs = getQueryArgs( window.location.href );\n\tconst currentUrlWithoutArgs = removeQueryArgs(\n\t\twindow.location.href,\n\t\t...Object.keys( currentArgs )\n\t);\n\n\tlet extraParams = {};\n\tif ( isPreviewingTheme() ) {\n\t\textraParams = {\n\t\t\twp_theme_preview: currentlyPreviewingTheme(),\n\t\t};\n\t}\n\n\tconst newUrl = addQueryArgs( currentUrlWithoutArgs, {\n\t\t...params,\n\t\t...extraParams,\n\t} );\n\n\treturn {\n\t\thref: newUrl,\n\t\tonClick,\n\t};\n}\n\nexport default function Link( {\n\tparams = {},\n\tstate,\n\treplace: shouldReplace = false,\n\tchildren,\n\t...props\n} ) {\n\tconst { href, onClick } = useLink( params, state, shouldReplace );\n\n\treturn (\n\t\t<a href={ href } onClick={ onClick } { ...props }>\n\t\t\t{ children }\n\t\t</a>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,YAAY,EAAEC,YAAY,EAAEC,eAAe,QAAQ,gBAAgB;AAC5E,SAASC,WAAW,IAAIC,iBAAiB,QAAQ,mBAAmB;;AAEpE;AACA;AACA;AACA,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SACCC,iBAAiB,EACjBC,wBAAwB,QAClB,iCAAiC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEzC,MAAM;EAAEC;AAAW,CAAC,GAAGL,MAAM,CAAED,iBAAkB,CAAC;AAElD,OAAO,SAASO,OAAOA,CAAEC,MAAM,EAAEC,KAAK,EAAEC,aAAa,GAAG,KAAK,EAAG;EAC/D,MAAMC,OAAO,GAAGL,UAAU,CAAC,CAAC;EAC5B,SAASM,OAAOA,CAAEC,KAAK,EAAG;IACzBA,KAAK,EAAEC,cAAc,CAAC,CAAC;IAEvB,IAAKJ,aAAa,EAAG;MACpBC,OAAO,CAACI,OAAO,CAAEP,MAAM,EAAEC,KAAM,CAAC;IACjC,CAAC,MAAM;MACNE,OAAO,CAACK,IAAI,CAAER,MAAM,EAAEC,KAAM,CAAC;IAC9B;EACD;EAEA,MAAMQ,WAAW,GAAGpB,YAAY,CAAEqB,MAAM,CAACC,QAAQ,CAACC,IAAK,CAAC;EACxD,MAAMC,qBAAqB,GAAGvB,eAAe,CAC5CoB,MAAM,CAACC,QAAQ,CAACC,IAAI,EACpB,GAAGE,MAAM,CAACC,IAAI,CAAEN,WAAY,CAC7B,CAAC;EAED,IAAIO,WAAW,GAAG,CAAC,CAAC;EACpB,IAAKtB,iBAAiB,CAAC,CAAC,EAAG;IAC1BsB,WAAW,GAAG;MACbC,gBAAgB,EAAEtB,wBAAwB,CAAC;IAC5C,CAAC;EACF;EAEA,MAAMuB,MAAM,GAAG9B,YAAY,CAAEyB,qBAAqB,EAAE;IACnD,GAAGb,MAAM;IACT,GAAGgB;EACJ,CAAE,CAAC;EAEH,OAAO;IACNJ,IAAI,EAAEM,MAAM;IACZd;EACD,CAAC;AACF;AAEA,eAAe,SAASe,IAAIA,CAAE;EAC7BnB,MAAM,GAAG,CAAC,CAAC;EACXC,KAAK;EACLM,OAAO,EAAEL,aAAa,GAAG,KAAK;EAC9BkB,QAAQ;EACR,GAAGC;AACJ,CAAC,EAAG;EACH,MAAM;IAAET,IAAI;IAAER;EAAQ,CAAC,GAAGL,OAAO,CAAEC,MAAM,EAAEC,KAAK,EAAEC,aAAc,CAAC;EAEjE,oBACCL,IAAA;IAAGe,IAAI,EAAGA,IAAM;IAACR,OAAO,EAAGA,OAAS;IAAA,GAAMiB,KAAK;IAAAD,QAAA,EAC5CA;EAAQ,CACR,CAAC;AAEN","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["Editor","SidebarNavigationScreenMain","jsx","_jsx","homeEditRoute","name","match","params","canvas","areas","sidebar","preview","mobile"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/home-edit.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport Editor from '../editor';\nimport SidebarNavigationScreenMain from '../sidebar-navigation-screen-main';\n\nexport const homeEditRoute = {\n\tname: 'home-edit',\n\tmatch: ( params ) => {\n\t\treturn params.canvas === 'edit';\n\t},\n\tareas: {\n\t\tsidebar: <SidebarNavigationScreenMain />,\n\t\tpreview: <Editor />,\n\t\tmobile: <Editor />,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,MAAM,MAAM,WAAW;AAC9B,OAAOC,2BAA2B,MAAM,mCAAmC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5E,OAAO,MAAMC,aAAa,GAAG;EAC5BC,IAAI,EAAE,WAAW;EACjBC,KAAK,EAAIC,MAAM,IAAM;IACpB,OAAOA,MAAM,CAACC,MAAM,KAAK,MAAM;EAChC,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eAAEP,IAAA,CAACF,2BAA2B,IAAE,CAAC;IACxCU,OAAO,eAAER,IAAA,CAACH,MAAM,IAAE,CAAC;IACnBY,MAAM,eAAET,IAAA,CAACH,MAAM,IAAE;EAClB;AACD,CAAC","ignoreList":[]}
@@ -1,17 +0,0 @@
1
- /**
2
- * Internal dependencies
3
- */
4
- import Editor from '../editor';
5
- import SidebarNavigationScreenMain from '../sidebar-navigation-screen-main';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- export const homeViewRoute = {
8
- name: 'home-view',
9
- match: params => {
10
- return params.canvas !== 'edit';
11
- },
12
- areas: {
13
- sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreenMain, {}),
14
- preview: /*#__PURE__*/_jsx(Editor, {})
15
- }
16
- };
17
- //# sourceMappingURL=home-view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Editor","SidebarNavigationScreenMain","jsx","_jsx","homeViewRoute","name","match","params","canvas","areas","sidebar","preview"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/home-view.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport Editor from '../editor';\nimport SidebarNavigationScreenMain from '../sidebar-navigation-screen-main';\n\nexport const homeViewRoute = {\n\tname: 'home-view',\n\tmatch: ( params ) => {\n\t\treturn params.canvas !== 'edit';\n\t},\n\tareas: {\n\t\tsidebar: <SidebarNavigationScreenMain />,\n\t\tpreview: <Editor />,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,MAAM,MAAM,WAAW;AAC9B,OAAOC,2BAA2B,MAAM,mCAAmC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5E,OAAO,MAAMC,aAAa,GAAG;EAC5BC,IAAI,EAAE,WAAW;EACjBC,KAAK,EAAIC,MAAM,IAAM;IACpB,OAAOA,MAAM,CAACC,MAAM,KAAK,MAAM;EAChC,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eAAEP,IAAA,CAACF,2BAA2B,IAAE,CAAC;IACxCU,OAAO,eAAER,IAAA,CAACH,MAAM,IAAE;EACnB;AACD,CAAC","ignoreList":[]}
@@ -1,21 +0,0 @@
1
- /**
2
- * Internal dependencies
3
- */
4
- import { NAVIGATION_POST_TYPE } from '../../utils/constants';
5
- import Editor from '../editor';
6
- import SidebarNavigationScreenNavigationMenus from '../sidebar-navigation-screen-navigation-menus';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- export const navigationEditRoute = {
9
- name: 'navigation-edit',
10
- match: params => {
11
- return params.postType === NAVIGATION_POST_TYPE && !params.postId && params.canvas === 'edit';
12
- },
13
- areas: {
14
- sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreenNavigationMenus, {
15
- backPath: {}
16
- }),
17
- preview: /*#__PURE__*/_jsx(Editor, {}),
18
- mobile: /*#__PURE__*/_jsx(Editor, {})
19
- }
20
- };
21
- //# sourceMappingURL=navigation-edit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["NAVIGATION_POST_TYPE","Editor","SidebarNavigationScreenNavigationMenus","jsx","_jsx","navigationEditRoute","name","match","params","postType","postId","canvas","areas","sidebar","backPath","preview","mobile"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/navigation-edit.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport { NAVIGATION_POST_TYPE } from '../../utils/constants';\nimport Editor from '../editor';\nimport SidebarNavigationScreenNavigationMenus from '../sidebar-navigation-screen-navigation-menus';\n\nexport const navigationEditRoute = {\n\tname: 'navigation-edit',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\tparams.postType === NAVIGATION_POST_TYPE &&\n\t\t\t! params.postId &&\n\t\t\tparams.canvas === 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: <SidebarNavigationScreenNavigationMenus backPath={ {} } />,\n\t\tpreview: <Editor />,\n\t\tmobile: <Editor />,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,oBAAoB,QAAQ,uBAAuB;AAC5D,OAAOC,MAAM,MAAM,WAAW;AAC9B,OAAOC,sCAAsC,MAAM,+CAA+C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnG,OAAO,MAAMC,mBAAmB,GAAG;EAClCC,IAAI,EAAE,iBAAiB;EACvBC,KAAK,EAAIC,MAAM,IAAM;IACpB,OACCA,MAAM,CAACC,QAAQ,KAAKT,oBAAoB,IACxC,CAAEQ,MAAM,CAACE,MAAM,IACfF,MAAM,CAACG,MAAM,KAAK,MAAM;EAE1B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eAAET,IAAA,CAACF,sCAAsC;MAACY,QAAQ,EAAG,CAAC;IAAG,CAAE,CAAC;IACnEC,OAAO,eAAEX,IAAA,CAACH,MAAM,IAAE,CAAC;IACnBe,MAAM,eAAEZ,IAAA,CAACH,MAAM,IAAE;EAClB;AACD,CAAC","ignoreList":[]}
@@ -1,23 +0,0 @@
1
- /**
2
- * Internal dependencies
3
- */
4
- import { NAVIGATION_POST_TYPE } from '../../utils/constants';
5
- import Editor from '../editor';
6
- import SidebarNavigationScreenNavigationMenu from '../sidebar-navigation-screen-navigation-menu';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- export const navigationItemEditRoute = {
9
- name: 'navigation-item-edit',
10
- match: params => {
11
- return params.postType === NAVIGATION_POST_TYPE && !!params.postId && params.canvas === 'edit';
12
- },
13
- areas: {
14
- sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreenNavigationMenu, {
15
- backPath: {
16
- postType: NAVIGATION_POST_TYPE
17
- }
18
- }),
19
- preview: /*#__PURE__*/_jsx(Editor, {}),
20
- mobile: /*#__PURE__*/_jsx(Editor, {})
21
- }
22
- };
23
- //# sourceMappingURL=navigation-item-edit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["NAVIGATION_POST_TYPE","Editor","SidebarNavigationScreenNavigationMenu","jsx","_jsx","navigationItemEditRoute","name","match","params","postType","postId","canvas","areas","sidebar","backPath","preview","mobile"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/navigation-item-edit.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport { NAVIGATION_POST_TYPE } from '../../utils/constants';\nimport Editor from '../editor';\nimport SidebarNavigationScreenNavigationMenu from '../sidebar-navigation-screen-navigation-menu';\n\nexport const navigationItemEditRoute = {\n\tname: 'navigation-item-edit',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\tparams.postType === NAVIGATION_POST_TYPE &&\n\t\t\t!! params.postId &&\n\t\t\tparams.canvas === 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: (\n\t\t\t<SidebarNavigationScreenNavigationMenu\n\t\t\t\tbackPath={ { postType: NAVIGATION_POST_TYPE } }\n\t\t\t/>\n\t\t),\n\t\tpreview: <Editor />,\n\t\tmobile: <Editor />,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,oBAAoB,QAAQ,uBAAuB;AAC5D,OAAOC,MAAM,MAAM,WAAW;AAC9B,OAAOC,qCAAqC,MAAM,8CAA8C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEjG,OAAO,MAAMC,uBAAuB,GAAG;EACtCC,IAAI,EAAE,sBAAsB;EAC5BC,KAAK,EAAIC,MAAM,IAAM;IACpB,OACCA,MAAM,CAACC,QAAQ,KAAKT,oBAAoB,IACxC,CAAC,CAAEQ,MAAM,CAACE,MAAM,IAChBF,MAAM,CAACG,MAAM,KAAK,MAAM;EAE1B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eACNT,IAAA,CAACF,qCAAqC;MACrCY,QAAQ,EAAG;QAAEL,QAAQ,EAAET;MAAqB;IAAG,CAC/C,CACD;IACDe,OAAO,eAAEX,IAAA,CAACH,MAAM,IAAE,CAAC;IACnBe,MAAM,eAAEZ,IAAA,CAACH,MAAM,IAAE;EAClB;AACD,CAAC","ignoreList":[]}
@@ -1,22 +0,0 @@
1
- /**
2
- * Internal dependencies
3
- */
4
- import { NAVIGATION_POST_TYPE } from '../../utils/constants';
5
- import Editor from '../editor';
6
- import SidebarNavigationScreenNavigationMenu from '../sidebar-navigation-screen-navigation-menu';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- export const navigationItemViewRoute = {
9
- name: 'navigation-item-view',
10
- match: params => {
11
- return params.postType === NAVIGATION_POST_TYPE && !!params.postId && params.canvas !== 'edit';
12
- },
13
- areas: {
14
- sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreenNavigationMenu, {
15
- backPath: {
16
- postType: NAVIGATION_POST_TYPE
17
- }
18
- }),
19
- preview: /*#__PURE__*/_jsx(Editor, {})
20
- }
21
- };
22
- //# sourceMappingURL=navigation-item-view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["NAVIGATION_POST_TYPE","Editor","SidebarNavigationScreenNavigationMenu","jsx","_jsx","navigationItemViewRoute","name","match","params","postType","postId","canvas","areas","sidebar","backPath","preview"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/navigation-item-view.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport { NAVIGATION_POST_TYPE } from '../../utils/constants';\nimport Editor from '../editor';\nimport SidebarNavigationScreenNavigationMenu from '../sidebar-navigation-screen-navigation-menu';\n\nexport const navigationItemViewRoute = {\n\tname: 'navigation-item-view',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\tparams.postType === NAVIGATION_POST_TYPE &&\n\t\t\t!! params.postId &&\n\t\t\tparams.canvas !== 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: (\n\t\t\t<SidebarNavigationScreenNavigationMenu\n\t\t\t\tbackPath={ { postType: NAVIGATION_POST_TYPE } }\n\t\t\t/>\n\t\t),\n\t\tpreview: <Editor />,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,oBAAoB,QAAQ,uBAAuB;AAC5D,OAAOC,MAAM,MAAM,WAAW;AAC9B,OAAOC,qCAAqC,MAAM,8CAA8C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEjG,OAAO,MAAMC,uBAAuB,GAAG;EACtCC,IAAI,EAAE,sBAAsB;EAC5BC,KAAK,EAAIC,MAAM,IAAM;IACpB,OACCA,MAAM,CAACC,QAAQ,KAAKT,oBAAoB,IACxC,CAAC,CAAEQ,MAAM,CAACE,MAAM,IAChBF,MAAM,CAACG,MAAM,KAAK,MAAM;EAE1B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eACNT,IAAA,CAACF,qCAAqC;MACrCY,QAAQ,EAAG;QAAEL,QAAQ,EAAET;MAAqB;IAAG,CAC/C,CACD;IACDe,OAAO,eAAEX,IAAA,CAACH,MAAM,IAAE;EACnB;AACD,CAAC","ignoreList":[]}
@@ -1,20 +0,0 @@
1
- /**
2
- * Internal dependencies
3
- */
4
- import { NAVIGATION_POST_TYPE } from '../../utils/constants';
5
- import Editor from '../editor';
6
- import SidebarNavigationScreenNavigationMenus from '../sidebar-navigation-screen-navigation-menus';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- export const navigationViewRoute = {
9
- name: 'navigation-view',
10
- match: params => {
11
- return params.postType === NAVIGATION_POST_TYPE && !params.postId && params.canvas !== 'edit';
12
- },
13
- areas: {
14
- sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreenNavigationMenus, {
15
- backPath: {}
16
- }),
17
- preview: /*#__PURE__*/_jsx(Editor, {})
18
- }
19
- };
20
- //# sourceMappingURL=navigation-view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["NAVIGATION_POST_TYPE","Editor","SidebarNavigationScreenNavigationMenus","jsx","_jsx","navigationViewRoute","name","match","params","postType","postId","canvas","areas","sidebar","backPath","preview"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/navigation-view.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport { NAVIGATION_POST_TYPE } from '../../utils/constants';\nimport Editor from '../editor';\nimport SidebarNavigationScreenNavigationMenus from '../sidebar-navigation-screen-navigation-menus';\n\nexport const navigationViewRoute = {\n\tname: 'navigation-view',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\tparams.postType === NAVIGATION_POST_TYPE &&\n\t\t\t! params.postId &&\n\t\t\tparams.canvas !== 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: <SidebarNavigationScreenNavigationMenus backPath={ {} } />,\n\t\tpreview: <Editor />,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,oBAAoB,QAAQ,uBAAuB;AAC5D,OAAOC,MAAM,MAAM,WAAW;AAC9B,OAAOC,sCAAsC,MAAM,+CAA+C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnG,OAAO,MAAMC,mBAAmB,GAAG;EAClCC,IAAI,EAAE,iBAAiB;EACvBC,KAAK,EAAIC,MAAM,IAAM;IACpB,OACCA,MAAM,CAACC,QAAQ,KAAKT,oBAAoB,IACxC,CAAEQ,MAAM,CAACE,MAAM,IACfF,MAAM,CAACG,MAAM,KAAK,MAAM;EAE1B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eAAET,IAAA,CAACF,sCAAsC;MAACY,QAAQ,EAAG,CAAC;IAAG,CAAE,CAAC;IACnEC,OAAO,eAAEX,IAAA,CAACH,MAAM,IAAE;EACnB;AACD,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["__","PostList","DataViewsSidebarContent","SidebarNavigationScreen","Editor","jsx","_jsx","PageList","postType","pagesEditRoute","name","match","params","canvas","areas","sidebar","title","backPath","content","mobile","preview"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/pages-edit.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport PostList from '../post-list';\nimport DataViewsSidebarContent from '../sidebar-dataviews';\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport Editor from '../editor';\n\nfunction PageList() {\n\treturn <PostList postType=\"page\" />;\n}\n\nexport const pagesEditRoute = {\n\tname: 'pages-edit',\n\tmatch: ( params ) => {\n\t\treturn params.postType === 'page' && params.canvas === 'edit';\n\t},\n\tareas: {\n\t\tsidebar: (\n\t\t\t<SidebarNavigationScreen\n\t\t\t\ttitle={ __( 'Pages' ) }\n\t\t\t\tbackPath={ {} }\n\t\t\t\tcontent={ <DataViewsSidebarContent /> }\n\t\t\t/>\n\t\t),\n\t\tcontent: <PageList />,\n\t\tmobile: <Editor />,\n\t\tpreview: <Editor />,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;AACA,OAAOC,QAAQ,MAAM,cAAc;AACnC,OAAOC,uBAAuB,MAAM,sBAAsB;AAC1D,OAAOC,uBAAuB,MAAM,8BAA8B;AAClE,OAAOC,MAAM,MAAM,WAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE/B,SAASC,QAAQA,CAAA,EAAG;EACnB,oBAAOD,IAAA,CAACL,QAAQ;IAACO,QAAQ,EAAC;EAAM,CAAE,CAAC;AACpC;AAEA,OAAO,MAAMC,cAAc,GAAG;EAC7BC,IAAI,EAAE,YAAY;EAClBC,KAAK,EAAIC,MAAM,IAAM;IACpB,OAAOA,MAAM,CAACJ,QAAQ,KAAK,MAAM,IAAII,MAAM,CAACC,MAAM,KAAK,MAAM;EAC9D,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eACNT,IAAA,CAACH,uBAAuB;MACvBa,KAAK,EAAGhB,EAAE,CAAE,OAAQ,CAAG;MACvBiB,QAAQ,EAAG,CAAC,CAAG;MACfC,OAAO,eAAGZ,IAAA,CAACJ,uBAAuB,IAAE;IAAG,CACvC,CACD;IACDgB,OAAO,eAAEZ,IAAA,CAACC,QAAQ,IAAE,CAAC;IACrBY,MAAM,eAAEb,IAAA,CAACF,MAAM,IAAE,CAAC;IAClBgB,OAAO,eAAEd,IAAA,CAACF,MAAM,IAAE;EACnB;AACD,CAAC","ignoreList":[]}
@@ -1,56 +0,0 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
- import { __ } from '@wordpress/i18n';
5
- import { privateApis as routerPrivateApis } from '@wordpress/router';
6
-
7
- /**
8
- * Internal dependencies
9
- */
10
- import PostList from '../post-list';
11
- import DataViewsSidebarContent from '../sidebar-dataviews';
12
- import SidebarNavigationScreen from '../sidebar-navigation-screen';
13
- import { unlock } from '../../lock-unlock';
14
- import { PostEdit } from '../post-edit';
15
- import Editor from '../editor';
16
- import { jsx as _jsx } from "react/jsx-runtime";
17
- const {
18
- useLocation
19
- } = unlock(routerPrivateApis);
20
- function PageList() {
21
- return /*#__PURE__*/_jsx(PostList, {
22
- postType: "page"
23
- });
24
- }
25
- function PageQuickEdit() {
26
- const {
27
- params
28
- } = useLocation();
29
- return /*#__PURE__*/_jsx(PostEdit, {
30
- postType: "page",
31
- postId: params.postId
32
- });
33
- }
34
- export const pagesListViewQuickEditRoute = {
35
- name: 'pages-list-view-quick-edit',
36
- match: params => {
37
- var _params$layout;
38
- return params.isCustom !== 'true' && ((_params$layout = params.layout) !== null && _params$layout !== void 0 ? _params$layout : 'list') === 'list' && !!params.quickEdit && params.postType === 'page' && params.canvas !== 'edit';
39
- },
40
- areas: {
41
- sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreen, {
42
- title: __('Pages'),
43
- backPath: {},
44
- content: /*#__PURE__*/_jsx(DataViewsSidebarContent, {})
45
- }),
46
- content: /*#__PURE__*/_jsx(PageList, {}),
47
- mobile: /*#__PURE__*/_jsx(PageList, {}),
48
- preview: /*#__PURE__*/_jsx(Editor, {}),
49
- edit: /*#__PURE__*/_jsx(PageQuickEdit, {})
50
- },
51
- widths: {
52
- content: 380,
53
- edit: 380
54
- }
55
- };
56
- //# sourceMappingURL=pages-list-view-quick-edit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__","privateApis","routerPrivateApis","PostList","DataViewsSidebarContent","SidebarNavigationScreen","unlock","PostEdit","Editor","jsx","_jsx","useLocation","PageList","postType","PageQuickEdit","params","postId","pagesListViewQuickEditRoute","name","match","_params$layout","isCustom","layout","quickEdit","canvas","areas","sidebar","title","backPath","content","mobile","preview","edit","widths"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/pages-list-view-quick-edit.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\n\n/**\n * Internal dependencies\n */\nimport PostList from '../post-list';\nimport DataViewsSidebarContent from '../sidebar-dataviews';\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport { unlock } from '../../lock-unlock';\nimport { PostEdit } from '../post-edit';\nimport Editor from '../editor';\n\nconst { useLocation } = unlock( routerPrivateApis );\n\nfunction PageList() {\n\treturn <PostList postType=\"page\" />;\n}\n\nfunction PageQuickEdit() {\n\tconst { params } = useLocation();\n\treturn <PostEdit postType=\"page\" postId={ params.postId } />;\n}\n\nexport const pagesListViewQuickEditRoute = {\n\tname: 'pages-list-view-quick-edit',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\tparams.isCustom !== 'true' &&\n\t\t\t( params.layout ?? 'list' ) === 'list' &&\n\t\t\t!! params.quickEdit &&\n\t\t\tparams.postType === 'page' &&\n\t\t\tparams.canvas !== 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: (\n\t\t\t<SidebarNavigationScreen\n\t\t\t\ttitle={ __( 'Pages' ) }\n\t\t\t\tbackPath={ {} }\n\t\t\t\tcontent={ <DataViewsSidebarContent /> }\n\t\t\t/>\n\t\t),\n\t\tcontent: <PageList />,\n\t\tmobile: <PageList />,\n\t\tpreview: <Editor />,\n\t\tedit: <PageQuickEdit />,\n\t},\n\twidths: {\n\t\tcontent: 380,\n\t\tedit: 380,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;AACpC,SAASC,WAAW,IAAIC,iBAAiB,QAAQ,mBAAmB;;AAEpE;AACA;AACA;AACA,OAAOC,QAAQ,MAAM,cAAc;AACnC,OAAOC,uBAAuB,MAAM,sBAAsB;AAC1D,OAAOC,uBAAuB,MAAM,8BAA8B;AAClE,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,QAAQ,QAAQ,cAAc;AACvC,OAAOC,MAAM,MAAM,WAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE/B,MAAM;EAAEC;AAAY,CAAC,GAAGL,MAAM,CAAEJ,iBAAkB,CAAC;AAEnD,SAASU,QAAQA,CAAA,EAAG;EACnB,oBAAOF,IAAA,CAACP,QAAQ;IAACU,QAAQ,EAAC;EAAM,CAAE,CAAC;AACpC;AAEA,SAASC,aAAaA,CAAA,EAAG;EACxB,MAAM;IAAEC;EAAO,CAAC,GAAGJ,WAAW,CAAC,CAAC;EAChC,oBAAOD,IAAA,CAACH,QAAQ;IAACM,QAAQ,EAAC,MAAM;IAACG,MAAM,EAAGD,MAAM,CAACC;EAAQ,CAAE,CAAC;AAC7D;AAEA,OAAO,MAAMC,2BAA2B,GAAG;EAC1CC,IAAI,EAAE,4BAA4B;EAClCC,KAAK,EAAIJ,MAAM,IAAM;IAAA,IAAAK,cAAA;IACpB,OACCL,MAAM,CAACM,QAAQ,KAAK,MAAM,IAC1B,EAAAD,cAAA,GAAEL,MAAM,CAACO,MAAM,cAAAF,cAAA,cAAAA,cAAA,GAAI,MAAM,MAAO,MAAM,IACtC,CAAC,CAAEL,MAAM,CAACQ,SAAS,IACnBR,MAAM,CAACF,QAAQ,KAAK,MAAM,IAC1BE,MAAM,CAACS,MAAM,KAAK,MAAM;EAE1B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eACNhB,IAAA,CAACL,uBAAuB;MACvBsB,KAAK,EAAG3B,EAAE,CAAE,OAAQ,CAAG;MACvB4B,QAAQ,EAAG,CAAC,CAAG;MACfC,OAAO,eAAGnB,IAAA,CAACN,uBAAuB,IAAE;IAAG,CACvC,CACD;IACDyB,OAAO,eAAEnB,IAAA,CAACE,QAAQ,IAAE,CAAC;IACrBkB,MAAM,eAAEpB,IAAA,CAACE,QAAQ,IAAE,CAAC;IACpBmB,OAAO,eAAErB,IAAA,CAACF,MAAM,IAAE,CAAC;IACnBwB,IAAI,eAAEtB,IAAA,CAACI,aAAa,IAAE;EACvB,CAAC;EACDmB,MAAM,EAAE;IACPJ,OAAO,EAAE,GAAG;IACZG,IAAI,EAAE;EACP;AACD,CAAC","ignoreList":[]}
@@ -1,39 +0,0 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
- import { __ } from '@wordpress/i18n';
5
-
6
- /**
7
- * Internal dependencies
8
- */
9
- import PostList from '../post-list';
10
- import DataViewsSidebarContent from '../sidebar-dataviews';
11
- import SidebarNavigationScreen from '../sidebar-navigation-screen';
12
- import Editor from '../editor';
13
- import { jsx as _jsx } from "react/jsx-runtime";
14
- function PageList() {
15
- return /*#__PURE__*/_jsx(PostList, {
16
- postType: "page"
17
- });
18
- }
19
- export const pagesListViewRoute = {
20
- name: 'pages-list-view',
21
- match: params => {
22
- var _params$layout;
23
- return params.isCustom !== 'true' && ((_params$layout = params.layout) !== null && _params$layout !== void 0 ? _params$layout : 'list') === 'list' && !params.quickEdit && params.postType === 'page' && params.canvas !== 'edit';
24
- },
25
- areas: {
26
- sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreen, {
27
- title: __('Pages'),
28
- backPath: {},
29
- content: /*#__PURE__*/_jsx(DataViewsSidebarContent, {})
30
- }),
31
- content: /*#__PURE__*/_jsx(PageList, {}),
32
- preview: /*#__PURE__*/_jsx(Editor, {}),
33
- mobile: /*#__PURE__*/_jsx(PageList, {})
34
- },
35
- widths: {
36
- content: 380
37
- }
38
- };
39
- //# sourceMappingURL=pages-list-view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__","PostList","DataViewsSidebarContent","SidebarNavigationScreen","Editor","jsx","_jsx","PageList","postType","pagesListViewRoute","name","match","params","_params$layout","isCustom","layout","quickEdit","canvas","areas","sidebar","title","backPath","content","preview","mobile","widths"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/pages-list-view.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport PostList from '../post-list';\nimport DataViewsSidebarContent from '../sidebar-dataviews';\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport Editor from '../editor';\n\nfunction PageList() {\n\treturn <PostList postType=\"page\" />;\n}\n\nexport const pagesListViewRoute = {\n\tname: 'pages-list-view',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\tparams.isCustom !== 'true' &&\n\t\t\t( params.layout ?? 'list' ) === 'list' &&\n\t\t\t! params.quickEdit &&\n\t\t\tparams.postType === 'page' &&\n\t\t\tparams.canvas !== 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: (\n\t\t\t<SidebarNavigationScreen\n\t\t\t\ttitle={ __( 'Pages' ) }\n\t\t\t\tbackPath={ {} }\n\t\t\t\tcontent={ <DataViewsSidebarContent /> }\n\t\t\t/>\n\t\t),\n\t\tcontent: <PageList />,\n\t\tpreview: <Editor />,\n\t\tmobile: <PageList />,\n\t},\n\twidths: {\n\t\tcontent: 380,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;AACA,OAAOC,QAAQ,MAAM,cAAc;AACnC,OAAOC,uBAAuB,MAAM,sBAAsB;AAC1D,OAAOC,uBAAuB,MAAM,8BAA8B;AAClE,OAAOC,MAAM,MAAM,WAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE/B,SAASC,QAAQA,CAAA,EAAG;EACnB,oBAAOD,IAAA,CAACL,QAAQ;IAACO,QAAQ,EAAC;EAAM,CAAE,CAAC;AACpC;AAEA,OAAO,MAAMC,kBAAkB,GAAG;EACjCC,IAAI,EAAE,iBAAiB;EACvBC,KAAK,EAAIC,MAAM,IAAM;IAAA,IAAAC,cAAA;IACpB,OACCD,MAAM,CAACE,QAAQ,KAAK,MAAM,IAC1B,EAAAD,cAAA,GAAED,MAAM,CAACG,MAAM,cAAAF,cAAA,cAAAA,cAAA,GAAI,MAAM,MAAO,MAAM,IACtC,CAAED,MAAM,CAACI,SAAS,IAClBJ,MAAM,CAACJ,QAAQ,KAAK,MAAM,IAC1BI,MAAM,CAACK,MAAM,KAAK,MAAM;EAE1B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eACNb,IAAA,CAACH,uBAAuB;MACvBiB,KAAK,EAAGpB,EAAE,CAAE,OAAQ,CAAG;MACvBqB,QAAQ,EAAG,CAAC,CAAG;MACfC,OAAO,eAAGhB,IAAA,CAACJ,uBAAuB,IAAE;IAAG,CACvC,CACD;IACDoB,OAAO,eAAEhB,IAAA,CAACC,QAAQ,IAAE,CAAC;IACrBgB,OAAO,eAAEjB,IAAA,CAACF,MAAM,IAAE,CAAC;IACnBoB,MAAM,eAAElB,IAAA,CAACC,QAAQ,IAAE;EACpB,CAAC;EACDkB,MAAM,EAAE;IACPH,OAAO,EAAE;EACV;AACD,CAAC","ignoreList":[]}
@@ -1,53 +0,0 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
- import { __ } from '@wordpress/i18n';
5
- import { privateApis as routerPrivateApis } from '@wordpress/router';
6
-
7
- /**
8
- * Internal dependencies
9
- */
10
- import PostList from '../post-list';
11
- import DataViewsSidebarContent from '../sidebar-dataviews';
12
- import SidebarNavigationScreen from '../sidebar-navigation-screen';
13
- import { unlock } from '../../lock-unlock';
14
- import { PostEdit } from '../post-edit';
15
- import { jsx as _jsx } from "react/jsx-runtime";
16
- const {
17
- useLocation
18
- } = unlock(routerPrivateApis);
19
- function PageList() {
20
- return /*#__PURE__*/_jsx(PostList, {
21
- postType: "page"
22
- });
23
- }
24
- function PageQuickEdit() {
25
- const {
26
- params
27
- } = useLocation();
28
- return /*#__PURE__*/_jsx(PostEdit, {
29
- postType: "page",
30
- postId: params.postId
31
- });
32
- }
33
- export const pagesViewQuickEditRoute = {
34
- name: 'pages-view-quick-edit',
35
- match: params => {
36
- var _params$layout;
37
- return (params.isCustom === 'true' || ((_params$layout = params.layout) !== null && _params$layout !== void 0 ? _params$layout : 'list') !== 'list') && !!params.quickEdit && params.postType === 'page' && params.canvas !== 'edit';
38
- },
39
- areas: {
40
- sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreen, {
41
- title: __('Pages'),
42
- backPath: {},
43
- content: /*#__PURE__*/_jsx(DataViewsSidebarContent, {})
44
- }),
45
- content: /*#__PURE__*/_jsx(PageList, {}),
46
- mobile: /*#__PURE__*/_jsx(PageList, {}),
47
- edit: /*#__PURE__*/_jsx(PageQuickEdit, {})
48
- },
49
- widths: {
50
- edit: 380
51
- }
52
- };
53
- //# sourceMappingURL=pages-view-quick-edit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__","privateApis","routerPrivateApis","PostList","DataViewsSidebarContent","SidebarNavigationScreen","unlock","PostEdit","jsx","_jsx","useLocation","PageList","postType","PageQuickEdit","params","postId","pagesViewQuickEditRoute","name","match","_params$layout","isCustom","layout","quickEdit","canvas","areas","sidebar","title","backPath","content","mobile","edit","widths"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/pages-view-quick-edit.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\n\n/**\n * Internal dependencies\n */\nimport PostList from '../post-list';\nimport DataViewsSidebarContent from '../sidebar-dataviews';\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport { unlock } from '../../lock-unlock';\nimport { PostEdit } from '../post-edit';\n\nconst { useLocation } = unlock( routerPrivateApis );\n\nfunction PageList() {\n\treturn <PostList postType=\"page\" />;\n}\n\nfunction PageQuickEdit() {\n\tconst { params } = useLocation();\n\treturn <PostEdit postType=\"page\" postId={ params.postId } />;\n}\n\nexport const pagesViewQuickEditRoute = {\n\tname: 'pages-view-quick-edit',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\t( params.isCustom === 'true' ||\n\t\t\t\t( params.layout ?? 'list' ) !== 'list' ) &&\n\t\t\t!! params.quickEdit &&\n\t\t\tparams.postType === 'page' &&\n\t\t\tparams.canvas !== 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: (\n\t\t\t<SidebarNavigationScreen\n\t\t\t\ttitle={ __( 'Pages' ) }\n\t\t\t\tbackPath={ {} }\n\t\t\t\tcontent={ <DataViewsSidebarContent /> }\n\t\t\t/>\n\t\t),\n\t\tcontent: <PageList />,\n\t\tmobile: <PageList />,\n\t\tedit: <PageQuickEdit />,\n\t},\n\twidths: {\n\t\tedit: 380,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;AACpC,SAASC,WAAW,IAAIC,iBAAiB,QAAQ,mBAAmB;;AAEpE;AACA;AACA;AACA,OAAOC,QAAQ,MAAM,cAAc;AACnC,OAAOC,uBAAuB,MAAM,sBAAsB;AAC1D,OAAOC,uBAAuB,MAAM,8BAA8B;AAClE,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,QAAQ,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAExC,MAAM;EAAEC;AAAY,CAAC,GAAGJ,MAAM,CAAEJ,iBAAkB,CAAC;AAEnD,SAASS,QAAQA,CAAA,EAAG;EACnB,oBAAOF,IAAA,CAACN,QAAQ;IAACS,QAAQ,EAAC;EAAM,CAAE,CAAC;AACpC;AAEA,SAASC,aAAaA,CAAA,EAAG;EACxB,MAAM;IAAEC;EAAO,CAAC,GAAGJ,WAAW,CAAC,CAAC;EAChC,oBAAOD,IAAA,CAACF,QAAQ;IAACK,QAAQ,EAAC,MAAM;IAACG,MAAM,EAAGD,MAAM,CAACC;EAAQ,CAAE,CAAC;AAC7D;AAEA,OAAO,MAAMC,uBAAuB,GAAG;EACtCC,IAAI,EAAE,uBAAuB;EAC7BC,KAAK,EAAIJ,MAAM,IAAM;IAAA,IAAAK,cAAA;IACpB,OACC,CAAEL,MAAM,CAACM,QAAQ,KAAK,MAAM,IAC3B,EAAAD,cAAA,GAAEL,MAAM,CAACO,MAAM,cAAAF,cAAA,cAAAA,cAAA,GAAI,MAAM,MAAO,MAAM,KACvC,CAAC,CAAEL,MAAM,CAACQ,SAAS,IACnBR,MAAM,CAACF,QAAQ,KAAK,MAAM,IAC1BE,MAAM,CAACS,MAAM,KAAK,MAAM;EAE1B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eACNhB,IAAA,CAACJ,uBAAuB;MACvBqB,KAAK,EAAG1B,EAAE,CAAE,OAAQ,CAAG;MACvB2B,QAAQ,EAAG,CAAC,CAAG;MACfC,OAAO,eAAGnB,IAAA,CAACL,uBAAuB,IAAE;IAAG,CACvC,CACD;IACDwB,OAAO,eAAEnB,IAAA,CAACE,QAAQ,IAAE,CAAC;IACrBkB,MAAM,eAAEpB,IAAA,CAACE,QAAQ,IAAE,CAAC;IACpBmB,IAAI,eAAErB,IAAA,CAACI,aAAa,IAAE;EACvB,CAAC;EACDkB,MAAM,EAAE;IACPD,IAAI,EAAE;EACP;AACD,CAAC","ignoreList":[]}
@@ -1,34 +0,0 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
- import { __ } from '@wordpress/i18n';
5
-
6
- /**
7
- * Internal dependencies
8
- */
9
- import PostList from '../post-list';
10
- import DataViewsSidebarContent from '../sidebar-dataviews';
11
- import SidebarNavigationScreen from '../sidebar-navigation-screen';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- function PageList() {
14
- return /*#__PURE__*/_jsx(PostList, {
15
- postType: "page"
16
- });
17
- }
18
- export const pagesViewRoute = {
19
- name: 'pages-view',
20
- match: params => {
21
- var _params$layout;
22
- return (params.isCustom === 'true' || ((_params$layout = params.layout) !== null && _params$layout !== void 0 ? _params$layout : 'list') !== 'list') && !params.quickEdit && params.postType === 'page' && params.canvas !== 'edit';
23
- },
24
- areas: {
25
- sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreen, {
26
- title: __('Pages'),
27
- backPath: {},
28
- content: /*#__PURE__*/_jsx(DataViewsSidebarContent, {})
29
- }),
30
- content: /*#__PURE__*/_jsx(PageList, {}),
31
- mobile: /*#__PURE__*/_jsx(PageList, {})
32
- }
33
- };
34
- //# sourceMappingURL=pages-view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__","PostList","DataViewsSidebarContent","SidebarNavigationScreen","jsx","_jsx","PageList","postType","pagesViewRoute","name","match","params","_params$layout","isCustom","layout","quickEdit","canvas","areas","sidebar","title","backPath","content","mobile"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/pages-view.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport PostList from '../post-list';\nimport DataViewsSidebarContent from '../sidebar-dataviews';\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\n\nfunction PageList() {\n\treturn <PostList postType=\"page\" />;\n}\n\nexport const pagesViewRoute = {\n\tname: 'pages-view',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\t( params.isCustom === 'true' ||\n\t\t\t\t( params.layout ?? 'list' ) !== 'list' ) &&\n\t\t\t! params.quickEdit &&\n\t\t\tparams.postType === 'page' &&\n\t\t\tparams.canvas !== 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: (\n\t\t\t<SidebarNavigationScreen\n\t\t\t\ttitle={ __( 'Pages' ) }\n\t\t\t\tbackPath={ {} }\n\t\t\t\tcontent={ <DataViewsSidebarContent /> }\n\t\t\t/>\n\t\t),\n\t\tcontent: <PageList />,\n\t\tmobile: <PageList />,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;AACA,OAAOC,QAAQ,MAAM,cAAc;AACnC,OAAOC,uBAAuB,MAAM,sBAAsB;AAC1D,OAAOC,uBAAuB,MAAM,8BAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnE,SAASC,QAAQA,CAAA,EAAG;EACnB,oBAAOD,IAAA,CAACJ,QAAQ;IAACM,QAAQ,EAAC;EAAM,CAAE,CAAC;AACpC;AAEA,OAAO,MAAMC,cAAc,GAAG;EAC7BC,IAAI,EAAE,YAAY;EAClBC,KAAK,EAAIC,MAAM,IAAM;IAAA,IAAAC,cAAA;IACpB,OACC,CAAED,MAAM,CAACE,QAAQ,KAAK,MAAM,IAC3B,EAAAD,cAAA,GAAED,MAAM,CAACG,MAAM,cAAAF,cAAA,cAAAA,cAAA,GAAI,MAAM,MAAO,MAAM,KACvC,CAAED,MAAM,CAACI,SAAS,IAClBJ,MAAM,CAACJ,QAAQ,KAAK,MAAM,IAC1BI,MAAM,CAACK,MAAM,KAAK,MAAM;EAE1B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eACNb,IAAA,CAACF,uBAAuB;MACvBgB,KAAK,EAAGnB,EAAE,CAAE,OAAQ,CAAG;MACvBoB,QAAQ,EAAG,CAAC,CAAG;MACfC,OAAO,eAAGhB,IAAA,CAACH,uBAAuB,IAAE;IAAG,CACvC,CACD;IACDmB,OAAO,eAAEhB,IAAA,CAACC,QAAQ,IAAE,CAAC;IACrBgB,MAAM,eAAEjB,IAAA,CAACC,QAAQ,IAAE;EACpB;AACD,CAAC","ignoreList":[]}
@@ -1,23 +0,0 @@
1
- /**
2
- * Internal dependencies
3
- */
4
- import Editor from '../editor';
5
- import SidebarNavigationScreenPatterns from '../sidebar-navigation-screen-patterns';
6
- import PagePatterns from '../page-patterns';
7
- import { PATTERN_TYPES, TEMPLATE_PART_POST_TYPE } from '../../utils/constants';
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- export const patternsEditRoute = {
10
- name: 'patterns-edit',
11
- match: params => {
12
- return [TEMPLATE_PART_POST_TYPE, PATTERN_TYPES.user].includes(params.postType) && params.canvas === 'edit';
13
- },
14
- areas: {
15
- sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreenPatterns, {
16
- backPath: {}
17
- }),
18
- content: /*#__PURE__*/_jsx(PagePatterns, {}),
19
- mobile: /*#__PURE__*/_jsx(Editor, {}),
20
- preview: /*#__PURE__*/_jsx(Editor, {})
21
- }
22
- };
23
- //# sourceMappingURL=patterns-edit.js.map