@wordpress/edit-site 7.3.0 → 7.3.2-next.v.202608281122.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 (415) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/build/components/add-new-pattern/index.cjs +1 -1
  3. package/build/components/add-new-pattern/index.cjs.map +1 -1
  4. package/build/components/add-new-post/index.cjs +1 -1
  5. package/build/components/add-new-post/index.cjs.map +1 -1
  6. package/build/components/add-new-template/add-custom-generic-template-modal-content.cjs +1 -1
  7. package/build/components/add-new-template/add-custom-generic-template-modal-content.cjs.map +1 -1
  8. package/build/components/add-new-template/add-custom-template-modal-content.cjs +1 -1
  9. package/build/components/add-new-template/add-custom-template-modal-content.cjs.map +1 -1
  10. package/build/components/add-new-template/index.cjs +1 -1
  11. package/build/components/add-new-template/index.cjs.map +1 -1
  12. package/build/components/add-new-template-legacy/add-custom-generic-template-modal-content.cjs +1 -1
  13. package/build/components/add-new-template-legacy/add-custom-generic-template-modal-content.cjs.map +1 -1
  14. package/build/components/add-new-template-legacy/add-custom-template-modal-content.cjs +1 -1
  15. package/build/components/add-new-template-legacy/add-custom-template-modal-content.cjs.map +1 -1
  16. package/build/components/add-new-template-legacy/index.cjs +1 -1
  17. package/build/components/add-new-template-legacy/index.cjs.map +1 -1
  18. package/build/components/app/index.cjs +1 -1
  19. package/build/components/app/index.cjs.map +1 -1
  20. package/build/components/canvas-loader/index.cjs +1 -1
  21. package/build/components/canvas-loader/index.cjs.map +1 -1
  22. package/build/components/editor/index.cjs +1 -1
  23. package/build/components/editor/index.cjs.map +1 -1
  24. package/build/components/editor/site-preview.cjs +1 -1
  25. package/build/components/editor/site-preview.cjs.map +1 -1
  26. package/build/components/editor/use-adapt-editor-to-canvas.cjs +0 -11
  27. package/build/components/editor/use-adapt-editor-to-canvas.cjs.map +3 -3
  28. package/build/components/layout/index.cjs +1 -1
  29. package/build/components/layout/index.cjs.map +1 -1
  30. package/build/components/media/index.cjs +1 -1
  31. package/build/components/media/index.cjs.map +1 -1
  32. package/build/components/more-menu/index.cjs +1 -1
  33. package/build/components/more-menu/index.cjs.map +1 -1
  34. package/build/components/more-menu/welcome-guide-menu-item.cjs +1 -1
  35. package/build/components/more-menu/welcome-guide-menu-item.cjs.map +1 -1
  36. package/build/components/page-patterns/actions.cjs +1 -1
  37. package/build/components/page-patterns/actions.cjs.map +1 -1
  38. package/build/components/page-patterns/delete-category-menu-item.cjs +1 -1
  39. package/build/components/page-patterns/delete-category-menu-item.cjs.map +1 -1
  40. package/build/components/page-patterns/fields.cjs +1 -1
  41. package/build/components/page-patterns/fields.cjs.map +1 -1
  42. package/build/components/page-patterns/index.cjs +1 -1
  43. package/build/components/page-patterns/index.cjs.map +1 -1
  44. package/build/components/page-patterns/rename-category-menu-item.cjs +1 -1
  45. package/build/components/page-patterns/rename-category-menu-item.cjs.map +1 -1
  46. package/build/components/page-templates/fields.cjs +1 -1
  47. package/build/components/page-templates/fields.cjs.map +1 -1
  48. package/build/components/page-templates/index-legacy.cjs +1 -1
  49. package/build/components/page-templates/index-legacy.cjs.map +1 -1
  50. package/build/components/page-templates/index.cjs +1 -1
  51. package/build/components/page-templates/index.cjs.map +1 -1
  52. package/build/components/pagination/index.cjs +1 -1
  53. package/build/components/pagination/index.cjs.map +1 -1
  54. package/build/components/plugin-template-setting-panel/index.cjs +1 -1
  55. package/build/components/plugin-template-setting-panel/index.cjs.map +1 -1
  56. package/build/components/post-list/index.cjs +1 -1
  57. package/build/components/post-list/index.cjs.map +1 -1
  58. package/build/components/post-list/quick-edit-modal.cjs +1 -1
  59. package/build/components/post-list/quick-edit-modal.cjs.map +1 -1
  60. package/build/components/resizable-frame/index.cjs +1 -1
  61. package/build/components/resizable-frame/index.cjs.map +1 -1
  62. package/build/components/save-button/index.cjs +1 -1
  63. package/build/components/save-button/index.cjs.map +1 -1
  64. package/build/components/save-hub/index.cjs +1 -1
  65. package/build/components/save-hub/index.cjs.map +1 -1
  66. package/build/components/save-panel/index.cjs +1 -1
  67. package/build/components/save-panel/index.cjs.map +1 -1
  68. package/build/components/sidebar/index.cjs +1 -1
  69. package/build/components/sidebar/index.cjs.map +1 -1
  70. package/build/components/sidebar-button/index.cjs +1 -1
  71. package/build/components/sidebar-button/index.cjs.map +1 -1
  72. package/build/components/sidebar-dataviews/index.cjs +1 -1
  73. package/build/components/sidebar-dataviews/index.cjs.map +1 -1
  74. package/build/components/sidebar-global-styles/index.cjs +1 -1
  75. package/build/components/sidebar-global-styles/index.cjs.map +1 -1
  76. package/build/components/sidebar-identity/index.cjs +1 -1
  77. package/build/components/sidebar-identity/index.cjs.map +1 -1
  78. package/build/components/sidebar-navigation-item/index.cjs +1 -1
  79. package/build/components/sidebar-navigation-item/index.cjs.map +1 -1
  80. package/build/components/sidebar-navigation-screen/index.cjs +1 -1
  81. package/build/components/sidebar-navigation-screen/index.cjs.map +1 -1
  82. package/build/components/sidebar-navigation-screen-details-footer/index.cjs +1 -1
  83. package/build/components/sidebar-navigation-screen-details-footer/index.cjs.map +1 -1
  84. package/build/components/sidebar-navigation-screen-global-styles/content.cjs +1 -1
  85. package/build/components/sidebar-navigation-screen-global-styles/content.cjs.map +1 -1
  86. package/build/components/sidebar-navigation-screen-global-styles/index.cjs +1 -1
  87. package/build/components/sidebar-navigation-screen-global-styles/index.cjs.map +1 -1
  88. package/build/components/sidebar-navigation-screen-identity/index.cjs +1 -1
  89. package/build/components/sidebar-navigation-screen-identity/index.cjs.map +1 -1
  90. package/build/components/sidebar-navigation-screen-main/index.cjs +1 -1
  91. package/build/components/sidebar-navigation-screen-main/index.cjs.map +1 -1
  92. package/build/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.cjs +1 -1
  93. package/build/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.cjs.map +1 -1
  94. package/build/components/sidebar-navigation-screen-navigation-menu/index.cjs +1 -1
  95. package/build/components/sidebar-navigation-screen-navigation-menu/index.cjs.map +1 -1
  96. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.cjs +1 -1
  97. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.cjs.map +1 -1
  98. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.cjs +1 -1
  99. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.cjs.map +1 -1
  100. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.cjs +1 -1
  101. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.cjs.map +1 -1
  102. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.cjs +1 -1
  103. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.cjs.map +1 -1
  104. package/build/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.cjs.map +1 -1
  105. package/build/components/sidebar-navigation-screen-navigation-menus/index.cjs +1 -1
  106. package/build/components/sidebar-navigation-screen-navigation-menus/index.cjs.map +2 -2
  107. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.cjs +1 -1
  108. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.cjs.map +1 -1
  109. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.cjs +1 -1
  110. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.cjs.map +2 -2
  111. package/build/components/sidebar-navigation-screen-patterns/category-item.cjs +1 -1
  112. package/build/components/sidebar-navigation-screen-patterns/category-item.cjs.map +1 -1
  113. package/build/components/sidebar-navigation-screen-patterns/index.cjs +1 -1
  114. package/build/components/sidebar-navigation-screen-patterns/index.cjs.map +1 -1
  115. package/build/components/sidebar-navigation-screen-templates-browse/content-legacy.cjs +1 -1
  116. package/build/components/sidebar-navigation-screen-templates-browse/content-legacy.cjs.map +1 -1
  117. package/build/components/sidebar-navigation-screen-templates-browse/content.cjs +1 -1
  118. package/build/components/sidebar-navigation-screen-templates-browse/content.cjs.map +1 -1
  119. package/build/components/sidebar-navigation-screen-templates-browse/index.cjs +1 -1
  120. package/build/components/sidebar-navigation-screen-templates-browse/index.cjs.map +1 -1
  121. package/build/components/sidebar-navigation-screen-unsupported/index.cjs +1 -1
  122. package/build/components/sidebar-navigation-screen-unsupported/index.cjs.map +1 -1
  123. package/build/components/site-editor-routes/home.cjs +1 -1
  124. package/build/components/site-editor-routes/home.cjs.map +1 -1
  125. package/build/components/site-editor-routes/identity.cjs +1 -1
  126. package/build/components/site-editor-routes/identity.cjs.map +1 -1
  127. package/build/components/site-editor-routes/navigation-item.cjs +1 -1
  128. package/build/components/site-editor-routes/navigation-item.cjs.map +1 -1
  129. package/build/components/site-editor-routes/navigation.cjs +1 -1
  130. package/build/components/site-editor-routes/navigation.cjs.map +1 -1
  131. package/build/components/site-editor-routes/notfound.cjs +1 -1
  132. package/build/components/site-editor-routes/notfound.cjs.map +1 -1
  133. package/build/components/site-editor-routes/page-item.cjs +1 -1
  134. package/build/components/site-editor-routes/page-item.cjs.map +1 -1
  135. package/build/components/site-editor-routes/pages.cjs +1 -1
  136. package/build/components/site-editor-routes/pages.cjs.map +1 -1
  137. package/build/components/site-editor-routes/pattern-item.cjs +1 -1
  138. package/build/components/site-editor-routes/pattern-item.cjs.map +1 -1
  139. package/build/components/site-editor-routes/patterns.cjs +1 -1
  140. package/build/components/site-editor-routes/patterns.cjs.map +1 -1
  141. package/build/components/site-editor-routes/stylebook.cjs +1 -1
  142. package/build/components/site-editor-routes/stylebook.cjs.map +1 -1
  143. package/build/components/site-editor-routes/styles.cjs +1 -1
  144. package/build/components/site-editor-routes/styles.cjs.map +1 -1
  145. package/build/components/site-editor-routes/template-item.cjs +1 -1
  146. package/build/components/site-editor-routes/template-item.cjs.map +1 -1
  147. package/build/components/site-editor-routes/template-part-item.cjs +1 -1
  148. package/build/components/site-editor-routes/template-part-item.cjs.map +1 -1
  149. package/build/components/site-editor-routes/templates.cjs +1 -1
  150. package/build/components/site-editor-routes/templates.cjs.map +1 -1
  151. package/build/components/site-hub/index.cjs +1 -1
  152. package/build/components/site-hub/index.cjs.map +1 -1
  153. package/build/components/welcome-guide/editor.cjs +1 -1
  154. package/build/components/welcome-guide/editor.cjs.map +1 -1
  155. package/build/components/welcome-guide/image.cjs +1 -1
  156. package/build/components/welcome-guide/image.cjs.map +1 -1
  157. package/build/components/welcome-guide/index.cjs +1 -1
  158. package/build/components/welcome-guide/index.cjs.map +1 -1
  159. package/build/components/welcome-guide/page.cjs +1 -1
  160. package/build/components/welcome-guide/page.cjs.map +1 -1
  161. package/build/components/welcome-guide/template.cjs +1 -1
  162. package/build/components/welcome-guide/template.cjs.map +1 -1
  163. package/build/deprecated.cjs +1 -1
  164. package/build/deprecated.cjs.map +1 -1
  165. package/build/index.cjs +1 -1
  166. package/build/index.cjs.map +1 -1
  167. package/build-module/components/add-new-pattern/index.mjs +1 -1
  168. package/build-module/components/add-new-pattern/index.mjs.map +1 -1
  169. package/build-module/components/add-new-post/index.mjs +1 -1
  170. package/build-module/components/add-new-post/index.mjs.map +1 -1
  171. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.mjs +1 -1
  172. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.mjs.map +1 -1
  173. package/build-module/components/add-new-template/add-custom-template-modal-content.mjs +1 -1
  174. package/build-module/components/add-new-template/add-custom-template-modal-content.mjs.map +1 -1
  175. package/build-module/components/add-new-template/index.mjs +1 -1
  176. package/build-module/components/add-new-template/index.mjs.map +1 -1
  177. package/build-module/components/add-new-template-legacy/add-custom-generic-template-modal-content.mjs +1 -1
  178. package/build-module/components/add-new-template-legacy/add-custom-generic-template-modal-content.mjs.map +1 -1
  179. package/build-module/components/add-new-template-legacy/add-custom-template-modal-content.mjs +1 -1
  180. package/build-module/components/add-new-template-legacy/add-custom-template-modal-content.mjs.map +1 -1
  181. package/build-module/components/add-new-template-legacy/index.mjs +1 -1
  182. package/build-module/components/add-new-template-legacy/index.mjs.map +1 -1
  183. package/build-module/components/app/index.mjs +1 -1
  184. package/build-module/components/app/index.mjs.map +1 -1
  185. package/build-module/components/canvas-loader/index.mjs +1 -1
  186. package/build-module/components/canvas-loader/index.mjs.map +1 -1
  187. package/build-module/components/editor/index.mjs +1 -1
  188. package/build-module/components/editor/index.mjs.map +1 -1
  189. package/build-module/components/editor/site-preview.mjs +1 -1
  190. package/build-module/components/editor/site-preview.mjs.map +1 -1
  191. package/build-module/components/editor/use-adapt-editor-to-canvas.mjs +0 -11
  192. package/build-module/components/editor/use-adapt-editor-to-canvas.mjs.map +2 -2
  193. package/build-module/components/layout/index.mjs +1 -1
  194. package/build-module/components/layout/index.mjs.map +1 -1
  195. package/build-module/components/media/index.mjs +1 -1
  196. package/build-module/components/media/index.mjs.map +1 -1
  197. package/build-module/components/more-menu/index.mjs +1 -1
  198. package/build-module/components/more-menu/index.mjs.map +1 -1
  199. package/build-module/components/more-menu/welcome-guide-menu-item.mjs +1 -1
  200. package/build-module/components/more-menu/welcome-guide-menu-item.mjs.map +1 -1
  201. package/build-module/components/page-patterns/actions.mjs +1 -1
  202. package/build-module/components/page-patterns/actions.mjs.map +1 -1
  203. package/build-module/components/page-patterns/delete-category-menu-item.mjs +1 -1
  204. package/build-module/components/page-patterns/delete-category-menu-item.mjs.map +1 -1
  205. package/build-module/components/page-patterns/fields.mjs +1 -1
  206. package/build-module/components/page-patterns/fields.mjs.map +1 -1
  207. package/build-module/components/page-patterns/index.mjs +1 -1
  208. package/build-module/components/page-patterns/index.mjs.map +1 -1
  209. package/build-module/components/page-patterns/rename-category-menu-item.mjs +1 -1
  210. package/build-module/components/page-patterns/rename-category-menu-item.mjs.map +1 -1
  211. package/build-module/components/page-templates/fields.mjs +1 -1
  212. package/build-module/components/page-templates/fields.mjs.map +1 -1
  213. package/build-module/components/page-templates/index-legacy.mjs +1 -1
  214. package/build-module/components/page-templates/index-legacy.mjs.map +1 -1
  215. package/build-module/components/page-templates/index.mjs +1 -1
  216. package/build-module/components/page-templates/index.mjs.map +1 -1
  217. package/build-module/components/pagination/index.mjs +1 -1
  218. package/build-module/components/pagination/index.mjs.map +1 -1
  219. package/build-module/components/plugin-template-setting-panel/index.mjs +1 -1
  220. package/build-module/components/plugin-template-setting-panel/index.mjs.map +1 -1
  221. package/build-module/components/post-list/index.mjs +1 -1
  222. package/build-module/components/post-list/index.mjs.map +1 -1
  223. package/build-module/components/post-list/quick-edit-modal.mjs +1 -1
  224. package/build-module/components/post-list/quick-edit-modal.mjs.map +1 -1
  225. package/build-module/components/resizable-frame/index.mjs +1 -1
  226. package/build-module/components/resizable-frame/index.mjs.map +1 -1
  227. package/build-module/components/save-button/index.mjs +1 -1
  228. package/build-module/components/save-button/index.mjs.map +1 -1
  229. package/build-module/components/save-hub/index.mjs +1 -1
  230. package/build-module/components/save-hub/index.mjs.map +1 -1
  231. package/build-module/components/save-panel/index.mjs +1 -1
  232. package/build-module/components/save-panel/index.mjs.map +1 -1
  233. package/build-module/components/sidebar/index.mjs +1 -1
  234. package/build-module/components/sidebar/index.mjs.map +1 -1
  235. package/build-module/components/sidebar-button/index.mjs +1 -1
  236. package/build-module/components/sidebar-button/index.mjs.map +1 -1
  237. package/build-module/components/sidebar-dataviews/index.mjs +1 -1
  238. package/build-module/components/sidebar-dataviews/index.mjs.map +1 -1
  239. package/build-module/components/sidebar-global-styles/index.mjs +1 -1
  240. package/build-module/components/sidebar-global-styles/index.mjs.map +1 -1
  241. package/build-module/components/sidebar-identity/index.mjs +1 -1
  242. package/build-module/components/sidebar-identity/index.mjs.map +1 -1
  243. package/build-module/components/sidebar-navigation-item/index.mjs +1 -1
  244. package/build-module/components/sidebar-navigation-item/index.mjs.map +1 -1
  245. package/build-module/components/sidebar-navigation-screen/index.mjs +1 -1
  246. package/build-module/components/sidebar-navigation-screen/index.mjs.map +1 -1
  247. package/build-module/components/sidebar-navigation-screen-details-footer/index.mjs +1 -1
  248. package/build-module/components/sidebar-navigation-screen-details-footer/index.mjs.map +1 -1
  249. package/build-module/components/sidebar-navigation-screen-global-styles/content.mjs +1 -1
  250. package/build-module/components/sidebar-navigation-screen-global-styles/content.mjs.map +1 -1
  251. package/build-module/components/sidebar-navigation-screen-global-styles/index.mjs +1 -1
  252. package/build-module/components/sidebar-navigation-screen-global-styles/index.mjs.map +1 -1
  253. package/build-module/components/sidebar-navigation-screen-identity/index.mjs +1 -1
  254. package/build-module/components/sidebar-navigation-screen-identity/index.mjs.map +1 -1
  255. package/build-module/components/sidebar-navigation-screen-main/index.mjs +1 -1
  256. package/build-module/components/sidebar-navigation-screen-main/index.mjs.map +1 -1
  257. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.mjs +1 -1
  258. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.mjs.map +1 -1
  259. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.mjs +1 -1
  260. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.mjs.map +1 -1
  261. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.mjs +1 -1
  262. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.mjs.map +1 -1
  263. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.mjs +1 -1
  264. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.mjs.map +1 -1
  265. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.mjs +1 -1
  266. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.mjs.map +1 -1
  267. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.mjs +1 -1
  268. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.mjs.map +1 -1
  269. package/build-module/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.mjs.map +1 -1
  270. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.mjs +1 -1
  271. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.mjs.map +2 -2
  272. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.mjs +1 -1
  273. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.mjs.map +1 -1
  274. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.mjs +1 -1
  275. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.mjs.map +2 -2
  276. package/build-module/components/sidebar-navigation-screen-patterns/category-item.mjs +1 -1
  277. package/build-module/components/sidebar-navigation-screen-patterns/category-item.mjs.map +1 -1
  278. package/build-module/components/sidebar-navigation-screen-patterns/index.mjs +1 -1
  279. package/build-module/components/sidebar-navigation-screen-patterns/index.mjs.map +1 -1
  280. package/build-module/components/sidebar-navigation-screen-templates-browse/content-legacy.mjs +1 -1
  281. package/build-module/components/sidebar-navigation-screen-templates-browse/content-legacy.mjs.map +1 -1
  282. package/build-module/components/sidebar-navigation-screen-templates-browse/content.mjs +1 -1
  283. package/build-module/components/sidebar-navigation-screen-templates-browse/content.mjs.map +1 -1
  284. package/build-module/components/sidebar-navigation-screen-templates-browse/index.mjs +1 -1
  285. package/build-module/components/sidebar-navigation-screen-templates-browse/index.mjs.map +1 -1
  286. package/build-module/components/sidebar-navigation-screen-unsupported/index.mjs +1 -1
  287. package/build-module/components/sidebar-navigation-screen-unsupported/index.mjs.map +1 -1
  288. package/build-module/components/site-editor-routes/home.mjs +1 -1
  289. package/build-module/components/site-editor-routes/home.mjs.map +1 -1
  290. package/build-module/components/site-editor-routes/identity.mjs +1 -1
  291. package/build-module/components/site-editor-routes/identity.mjs.map +1 -1
  292. package/build-module/components/site-editor-routes/navigation-item.mjs +1 -1
  293. package/build-module/components/site-editor-routes/navigation-item.mjs.map +1 -1
  294. package/build-module/components/site-editor-routes/navigation.mjs +1 -1
  295. package/build-module/components/site-editor-routes/navigation.mjs.map +1 -1
  296. package/build-module/components/site-editor-routes/notfound.mjs +1 -1
  297. package/build-module/components/site-editor-routes/notfound.mjs.map +1 -1
  298. package/build-module/components/site-editor-routes/page-item.mjs +1 -1
  299. package/build-module/components/site-editor-routes/page-item.mjs.map +1 -1
  300. package/build-module/components/site-editor-routes/pages.mjs +1 -1
  301. package/build-module/components/site-editor-routes/pages.mjs.map +1 -1
  302. package/build-module/components/site-editor-routes/pattern-item.mjs +1 -1
  303. package/build-module/components/site-editor-routes/pattern-item.mjs.map +1 -1
  304. package/build-module/components/site-editor-routes/patterns.mjs +1 -1
  305. package/build-module/components/site-editor-routes/patterns.mjs.map +1 -1
  306. package/build-module/components/site-editor-routes/stylebook.mjs +1 -1
  307. package/build-module/components/site-editor-routes/stylebook.mjs.map +1 -1
  308. package/build-module/components/site-editor-routes/styles.mjs +1 -1
  309. package/build-module/components/site-editor-routes/styles.mjs.map +1 -1
  310. package/build-module/components/site-editor-routes/template-item.mjs +1 -1
  311. package/build-module/components/site-editor-routes/template-item.mjs.map +1 -1
  312. package/build-module/components/site-editor-routes/template-part-item.mjs +1 -1
  313. package/build-module/components/site-editor-routes/template-part-item.mjs.map +1 -1
  314. package/build-module/components/site-editor-routes/templates.mjs +1 -1
  315. package/build-module/components/site-editor-routes/templates.mjs.map +1 -1
  316. package/build-module/components/site-hub/index.mjs +1 -1
  317. package/build-module/components/site-hub/index.mjs.map +1 -1
  318. package/build-module/components/welcome-guide/editor.mjs +1 -1
  319. package/build-module/components/welcome-guide/editor.mjs.map +1 -1
  320. package/build-module/components/welcome-guide/image.mjs +1 -1
  321. package/build-module/components/welcome-guide/image.mjs.map +1 -1
  322. package/build-module/components/welcome-guide/index.mjs +1 -1
  323. package/build-module/components/welcome-guide/index.mjs.map +1 -1
  324. package/build-module/components/welcome-guide/page.mjs +1 -1
  325. package/build-module/components/welcome-guide/page.mjs.map +1 -1
  326. package/build-module/components/welcome-guide/template.mjs +1 -1
  327. package/build-module/components/welcome-guide/template.mjs.map +1 -1
  328. package/build-module/deprecated.mjs +1 -1
  329. package/build-module/deprecated.mjs.map +1 -1
  330. package/build-module/index.mjs +1 -1
  331. package/build-module/index.mjs.map +1 -1
  332. package/package.json +39 -52
  333. package/src/components/editor/use-adapt-editor-to-canvas.js +0 -21
  334. package/src/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js +1 -1
  335. package/src/components/sidebar-navigation-screen-navigation-menus/{index.js → index.jsx} +1 -1
  336. package/src/components/sidebar-navigation-screen-navigation-menus/{navigation-menu-content.js → navigation-menu-content.jsx} +1 -1
  337. /package/src/components/add-new-pattern/{index.js → index.jsx} +0 -0
  338. /package/src/components/add-new-post/{index.js → index.jsx} +0 -0
  339. /package/src/components/add-new-template/{add-custom-generic-template-modal-content.js → add-custom-generic-template-modal-content.jsx} +0 -0
  340. /package/src/components/add-new-template/{add-custom-template-modal-content.js → add-custom-template-modal-content.jsx} +0 -0
  341. /package/src/components/add-new-template/{index.js → index.jsx} +0 -0
  342. /package/src/components/add-new-template-legacy/{add-custom-generic-template-modal-content.js → add-custom-generic-template-modal-content.jsx} +0 -0
  343. /package/src/components/add-new-template-legacy/{add-custom-template-modal-content.js → add-custom-template-modal-content.jsx} +0 -0
  344. /package/src/components/add-new-template-legacy/{index.js → index.jsx} +0 -0
  345. /package/src/components/app/{index.js → index.jsx} +0 -0
  346. /package/src/components/canvas-loader/{index.js → index.jsx} +0 -0
  347. /package/src/components/editor/{index.js → index.jsx} +0 -0
  348. /package/src/components/editor/{site-preview.js → site-preview.jsx} +0 -0
  349. /package/src/components/layout/{index.js → index.jsx} +0 -0
  350. /package/src/components/media/{index.js → index.jsx} +0 -0
  351. /package/src/components/more-menu/{index.js → index.jsx} +0 -0
  352. /package/src/components/more-menu/{welcome-guide-menu-item.js → welcome-guide-menu-item.jsx} +0 -0
  353. /package/src/components/page-patterns/{actions.js → actions.jsx} +0 -0
  354. /package/src/components/page-patterns/{delete-category-menu-item.js → delete-category-menu-item.jsx} +0 -0
  355. /package/src/components/page-patterns/{fields.js → fields.jsx} +0 -0
  356. /package/src/components/page-patterns/{index.js → index.jsx} +0 -0
  357. /package/src/components/page-patterns/{rename-category-menu-item.js → rename-category-menu-item.jsx} +0 -0
  358. /package/src/components/page-templates/{fields.js → fields.jsx} +0 -0
  359. /package/src/components/page-templates/{index-legacy.js → index-legacy.jsx} +0 -0
  360. /package/src/components/page-templates/{index.js → index.jsx} +0 -0
  361. /package/src/components/pagination/{index.js → index.jsx} +0 -0
  362. /package/src/components/plugin-template-setting-panel/{index.js → index.jsx} +0 -0
  363. /package/src/components/post-list/{index.js → index.jsx} +0 -0
  364. /package/src/components/post-list/{quick-edit-modal.js → quick-edit-modal.jsx} +0 -0
  365. /package/src/components/resizable-frame/{index.js → index.jsx} +0 -0
  366. /package/src/components/save-button/{index.js → index.jsx} +0 -0
  367. /package/src/components/save-hub/{index.js → index.jsx} +0 -0
  368. /package/src/components/save-panel/{index.js → index.jsx} +0 -0
  369. /package/src/components/sidebar/{index.js → index.jsx} +0 -0
  370. /package/src/components/sidebar-button/{index.js → index.jsx} +0 -0
  371. /package/src/components/sidebar-dataviews/{index.js → index.jsx} +0 -0
  372. /package/src/components/sidebar-global-styles/{index.js → index.jsx} +0 -0
  373. /package/src/components/sidebar-identity/{index.js → index.jsx} +0 -0
  374. /package/src/components/sidebar-navigation-item/{index.js → index.jsx} +0 -0
  375. /package/src/components/sidebar-navigation-screen/{index.js → index.jsx} +0 -0
  376. /package/src/components/sidebar-navigation-screen-details-footer/{index.js → index.jsx} +0 -0
  377. /package/src/components/sidebar-navigation-screen-global-styles/{content.js → content.jsx} +0 -0
  378. /package/src/components/sidebar-navigation-screen-global-styles/{index.js → index.jsx} +0 -0
  379. /package/src/components/sidebar-navigation-screen-identity/{index.js → index.jsx} +0 -0
  380. /package/src/components/sidebar-navigation-screen-main/{index.js → index.jsx} +0 -0
  381. /package/src/components/sidebar-navigation-screen-navigation-menu/{delete-confirm-dialog.js → delete-confirm-dialog.jsx} +0 -0
  382. /package/src/components/sidebar-navigation-screen-navigation-menu/{index.js → index.jsx} +0 -0
  383. /package/src/components/sidebar-navigation-screen-navigation-menu/{more-menu.js → more-menu.jsx} +0 -0
  384. /package/src/components/sidebar-navigation-screen-navigation-menu/{navigation-menu-editor.js → navigation-menu-editor.jsx} +0 -0
  385. /package/src/components/sidebar-navigation-screen-navigation-menu/{rename-modal.js → rename-modal.jsx} +0 -0
  386. /package/src/components/sidebar-navigation-screen-navigation-menu/{single-navigation-menu.js → single-navigation-menu.jsx} +0 -0
  387. /package/src/components/sidebar-navigation-screen-navigation-menus/{leaf-more-menu.js → leaf-more-menu.jsx} +0 -0
  388. /package/src/components/sidebar-navigation-screen-patterns/{category-item.js → category-item.jsx} +0 -0
  389. /package/src/components/sidebar-navigation-screen-patterns/{index.js → index.jsx} +0 -0
  390. /package/src/components/sidebar-navigation-screen-templates-browse/{content-legacy.js → content-legacy.jsx} +0 -0
  391. /package/src/components/sidebar-navigation-screen-templates-browse/{content.js → content.jsx} +0 -0
  392. /package/src/components/sidebar-navigation-screen-templates-browse/{index.js → index.jsx} +0 -0
  393. /package/src/components/sidebar-navigation-screen-unsupported/{index.js → index.jsx} +0 -0
  394. /package/src/components/site-editor-routes/{home.js → home.jsx} +0 -0
  395. /package/src/components/site-editor-routes/{identity.js → identity.jsx} +0 -0
  396. /package/src/components/site-editor-routes/{navigation-item.js → navigation-item.jsx} +0 -0
  397. /package/src/components/site-editor-routes/{navigation.js → navigation.jsx} +0 -0
  398. /package/src/components/site-editor-routes/{notfound.js → notfound.jsx} +0 -0
  399. /package/src/components/site-editor-routes/{page-item.js → page-item.jsx} +0 -0
  400. /package/src/components/site-editor-routes/{pages.js → pages.jsx} +0 -0
  401. /package/src/components/site-editor-routes/{pattern-item.js → pattern-item.jsx} +0 -0
  402. /package/src/components/site-editor-routes/{patterns.js → patterns.jsx} +0 -0
  403. /package/src/components/site-editor-routes/{stylebook.js → stylebook.jsx} +0 -0
  404. /package/src/components/site-editor-routes/{styles.js → styles.jsx} +0 -0
  405. /package/src/components/site-editor-routes/{template-item.js → template-item.jsx} +0 -0
  406. /package/src/components/site-editor-routes/{template-part-item.js → template-part-item.jsx} +0 -0
  407. /package/src/components/site-editor-routes/{templates.js → templates.jsx} +0 -0
  408. /package/src/components/site-hub/{index.js → index.jsx} +0 -0
  409. /package/src/components/welcome-guide/{editor.js → editor.jsx} +0 -0
  410. /package/src/components/welcome-guide/{image.js → image.jsx} +0 -0
  411. /package/src/components/welcome-guide/{index.js → index.jsx} +0 -0
  412. /package/src/components/welcome-guide/{page.js → page.jsx} +0 -0
  413. /package/src/components/welcome-guide/{template.js → template.jsx} +0 -0
  414. /package/src/{deprecated.js → deprecated.jsx} +0 -0
  415. /package/src/{index.js → index.jsx} +0 -0
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/site-editor-routes/notfound.js
1
+ // packages/edit-site/src/components/site-editor-routes/notfound.jsx
2
2
  import { __ } from "@wordpress/i18n";
3
3
  import { Notice, __experimentalSpacer as Spacer } from "@wordpress/components";
4
4
  import SidebarNavigationScreenMain from "../sidebar-navigation-screen-main/index.mjs";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/site-editor-routes/notfound.js"],
3
+ "sources": ["../../../src/components/site-editor-routes/notfound.jsx"],
4
4
  "sourcesContent": ["import { __ } from '@wordpress/i18n';\nimport { Notice, __experimentalSpacer as Spacer } from '@wordpress/components';\nimport SidebarNavigationScreenMain from '../sidebar-navigation-screen-main';\n\nfunction NotFoundError() {\n\treturn (\n\t\t<Notice status=\"error\" isDismissible={ false }>\n\t\t\t{ __(\n\t\t\t\t'The requested page could not be found. Please check the URL.'\n\t\t\t) }\n\t\t</Notice>\n\t);\n}\n\nexport const notFoundRoute = {\n\tname: 'notfound',\n\tpath: '*',\n\tareas: {\n\t\tsidebar: <SidebarNavigationScreenMain />,\n\t\tmobileSidebar: (\n\t\t\t<SidebarNavigationScreenMain\n\t\t\t\tcustomDescription={ <NotFoundError /> }\n\t\t\t/>\n\t\t),\n\t\tcontent: (\n\t\t\t<Spacer padding={ 2 }>\n\t\t\t\t<NotFoundError />\n\t\t\t</Spacer>\n\t\t),\n\t},\n};\n"],
5
5
  "mappings": ";AAAA,SAAS,UAAU;AACnB,SAAS,QAAQ,wBAAwB,cAAc;AACvD,OAAO,iCAAiC;AAItC;AAFF,SAAS,gBAAgB;AACxB,SACC,oBAAC,UAAO,QAAO,SAAQ,eAAgB,OACpC;AAAA,IACD;AAAA,EACD,GACD;AAEF;AAEO,IAAM,gBAAgB;AAAA,EAC5B,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,IACN,SAAS,oBAAC,+BAA4B;AAAA,IACtC,eACC;AAAA,MAAC;AAAA;AAAA,QACA,mBAAoB,oBAAC,iBAAc;AAAA;AAAA,IACpC;AAAA,IAED,SACC,oBAAC,UAAO,SAAU,GACjB,8BAAC,iBAAc,GAChB;AAAA,EAEF;AACD;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/site-editor-routes/page-item.js
1
+ // packages/edit-site/src/components/site-editor-routes/page-item.jsx
2
2
  import { __ } from "@wordpress/i18n";
3
3
  import Editor from "../editor/index.mjs";
4
4
  import DataViewsSidebarContent from "../sidebar-dataviews/index.mjs";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/site-editor-routes/page-item.js"],
3
+ "sources": ["../../../src/components/site-editor-routes/page-item.jsx"],
4
4
  "sourcesContent": ["import { __ } from '@wordpress/i18n';\nimport Editor from '../editor';\nimport DataViewsSidebarContent from '../sidebar-dataviews';\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport SidebarNavigationScreenUnsupported from '../sidebar-navigation-screen-unsupported';\nimport { isThemeDataLoaded } from './utils';\n\nexport const pageItemRoute = {\n\tname: 'page-item',\n\tpath: '/page/:postId',\n\tareas: {\n\t\tsidebar( { siteData } ) {\n\t\t\tif ( ! isThemeDataLoaded( siteData ) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn siteData.currentTheme.is_block_theme ? (\n\t\t\t\t<SidebarNavigationScreen\n\t\t\t\t\ttitle={ __( 'Pages' ) }\n\t\t\t\t\tbackPath=\"/\"\n\t\t\t\t\tcontent={ <DataViewsSidebarContent postType=\"page\" /> }\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<SidebarNavigationScreenUnsupported />\n\t\t\t);\n\t\t},\n\t\t// Also rendered on mobile, where this route is only reached at canvas=edit.\n\t\tpreview( { siteData } ) {\n\t\t\tif ( ! isThemeDataLoaded( siteData ) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn siteData.currentTheme.is_block_theme ? (\n\t\t\t\t<Editor />\n\t\t\t) : (\n\t\t\t\t<SidebarNavigationScreenUnsupported />\n\t\t\t);\n\t\t},\n\t},\n};\n"],
5
5
  "mappings": ";AAAA,SAAS,UAAU;AACnB,OAAO,YAAY;AACnB,OAAO,6BAA6B;AACpC,OAAO,6BAA6B;AACpC,OAAO,wCAAwC;AAC/C,SAAS,yBAAyB;AAcnB;AAZR,IAAM,gBAAgB;AAAA,EAC5B,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,IACN,QAAS,EAAE,SAAS,GAAI;AACvB,UAAK,CAAE,kBAAmB,QAAS,GAAI;AACtC,eAAO;AAAA,MACR;AACA,aAAO,SAAS,aAAa,iBAC5B;AAAA,QAAC;AAAA;AAAA,UACA,OAAQ,GAAI,OAAQ;AAAA,UACpB,UAAS;AAAA,UACT,SAAU,oBAAC,2BAAwB,UAAS,QAAO;AAAA;AAAA,MACpD,IAEA,oBAAC,sCAAmC;AAAA,IAEtC;AAAA;AAAA,IAEA,QAAS,EAAE,SAAS,GAAI;AACvB,UAAK,CAAE,kBAAmB,QAAS,GAAI;AACtC,eAAO;AAAA,MACR;AACA,aAAO,SAAS,aAAa,iBAC5B,oBAAC,UAAO,IAER,oBAAC,sCAAmC;AAAA,IAEtC;AAAA,EACD;AACD;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/site-editor-routes/pages.js
1
+ // packages/edit-site/src/components/site-editor-routes/pages.jsx
2
2
  import { __ } from "@wordpress/i18n";
3
3
  import { resolveSelect } from "@wordpress/data";
4
4
  import { store as coreStore } from "@wordpress/core-data";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/site-editor-routes/pages.js"],
3
+ "sources": ["../../../src/components/site-editor-routes/pages.jsx"],
4
4
  "sourcesContent": ["import { __ } from '@wordpress/i18n';\nimport { resolveSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { loadView } from '@wordpress/views';\nimport Editor from '../editor';\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport SidebarNavigationScreenUnsupported from '../sidebar-navigation-screen-unsupported';\nimport DataViewsSidebarContent from '../sidebar-dataviews';\nimport PostList from '../post-list';\nimport { unlock } from '../../lock-unlock';\nimport { isThemeDataLoaded } from './utils';\n\nasync function isListView( query ) {\n\tconst { activeView = 'all' } = query;\n\tconst config = await unlock( resolveSelect( coreStore ) ).getViewConfig(\n\t\t'postType',\n\t\t'page'\n\t);\n\tconst defaultView = config?.default_view;\n\tconst defaultLayouts = config?.default_layouts;\n\tconst viewEntry = config?.view_list?.find( ( v ) => v.slug === activeView );\n\tconst view = await loadView( {\n\t\tkind: 'postType',\n\t\tname: 'page',\n\t\tslug: 'default',\n\t\tdefaultView,\n\t\tdefaultLayouts,\n\t\tactiveViewOverrides: viewEntry?.view ?? {},\n\t} );\n\treturn view.type === 'list';\n}\n\nexport const pagesRoute = {\n\tname: 'pages',\n\tpath: '/page',\n\tareas: {\n\t\tsidebar( { siteData } ) {\n\t\t\tif ( ! isThemeDataLoaded( siteData ) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn siteData.currentTheme.is_block_theme ? (\n\t\t\t\t<SidebarNavigationScreen\n\t\t\t\t\ttitle={ __( 'Pages' ) }\n\t\t\t\t\tdescription={ __(\n\t\t\t\t\t\t'Manage or edit the pages that make up your site, and their appearance.'\n\t\t\t\t\t) }\n\t\t\t\t\tbackPath=\"/\"\n\t\t\t\t\tcontent={ <DataViewsSidebarContent postType=\"page\" /> }\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<SidebarNavigationScreenUnsupported />\n\t\t\t);\n\t\t},\n\t\tcontent( { siteData } ) {\n\t\t\tconst isBlockTheme = siteData.currentTheme?.is_block_theme;\n\t\t\treturn isBlockTheme ? <PostList postType=\"page\" /> : undefined;\n\t\t},\n\t\tasync preview( { query, siteData } ) {\n\t\t\tconst isBlockTheme = siteData.currentTheme?.is_block_theme;\n\t\t\tif ( ! isBlockTheme ) {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\tconst isList = await isListView( query );\n\t\t\treturn isList ? <Editor /> : undefined;\n\t\t},\n\t\tmobileSidebar( { siteData } ) {\n\t\t\tif ( ! isThemeDataLoaded( siteData ) ) {\n\t\t\t\treturn <></>;\n\t\t\t}\n\t\t\treturn siteData.currentTheme.is_block_theme ? undefined : (\n\t\t\t\t<SidebarNavigationScreenUnsupported />\n\t\t\t);\n\t\t},\n\t\tmobileContent( { siteData } ) {\n\t\t\tconst isBlockTheme = siteData.currentTheme?.is_block_theme;\n\t\t\treturn isBlockTheme ? <PostList postType=\"page\" /> : undefined;\n\t\t},\n\t},\n\twidths: {\n\t\tasync content( { query } ) {\n\t\t\tconst isList = await isListView( query );\n\t\t\treturn isList ? 380 : undefined;\n\t\t},\n\t},\n};\n"],
5
5
  "mappings": ";AAAA,SAAS,UAAU;AACnB,SAAS,qBAAqB;AAC9B,SAAS,SAAS,iBAAiB;AACnC,SAAS,gBAAgB;AACzB,OAAO,YAAY;AACnB,OAAO,6BAA6B;AACpC,OAAO,wCAAwC;AAC/C,OAAO,6BAA6B;AACpC,OAAO,cAAc;AACrB,SAAS,cAAc;AACvB,SAAS,yBAAyB;AAqCnB,SAoBJ,UApBI;AAnCf,eAAe,WAAY,OAAQ;AAClC,QAAM,EAAE,aAAa,MAAM,IAAI;AAC/B,QAAM,SAAS,MAAM,OAAQ,cAAe,SAAU,CAAE,EAAE;AAAA,IACzD;AAAA,IACA;AAAA,EACD;AACA,QAAM,cAAc,QAAQ;AAC5B,QAAM,iBAAiB,QAAQ;AAC/B,QAAM,YAAY,QAAQ,WAAW,KAAM,CAAE,MAAO,EAAE,SAAS,UAAW;AAC1E,QAAM,OAAO,MAAM,SAAU;AAAA,IAC5B,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA,qBAAqB,WAAW,QAAQ,CAAC;AAAA,EAC1C,CAAE;AACF,SAAO,KAAK,SAAS;AACtB;AAEO,IAAM,aAAa;AAAA,EACzB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,IACN,QAAS,EAAE,SAAS,GAAI;AACvB,UAAK,CAAE,kBAAmB,QAAS,GAAI;AACtC,eAAO;AAAA,MACR;AACA,aAAO,SAAS,aAAa,iBAC5B;AAAA,QAAC;AAAA;AAAA,UACA,OAAQ,GAAI,OAAQ;AAAA,UACpB,aAAc;AAAA,YACb;AAAA,UACD;AAAA,UACA,UAAS;AAAA,UACT,SAAU,oBAAC,2BAAwB,UAAS,QAAO;AAAA;AAAA,MACpD,IAEA,oBAAC,sCAAmC;AAAA,IAEtC;AAAA,IACA,QAAS,EAAE,SAAS,GAAI;AACvB,YAAM,eAAe,SAAS,cAAc;AAC5C,aAAO,eAAe,oBAAC,YAAS,UAAS,QAAO,IAAK;AAAA,IACtD;AAAA,IACA,MAAM,QAAS,EAAE,OAAO,SAAS,GAAI;AACpC,YAAM,eAAe,SAAS,cAAc;AAC5C,UAAK,CAAE,cAAe;AACrB,eAAO;AAAA,MACR;AACA,YAAM,SAAS,MAAM,WAAY,KAAM;AACvC,aAAO,SAAS,oBAAC,UAAO,IAAK;AAAA,IAC9B;AAAA,IACA,cAAe,EAAE,SAAS,GAAI;AAC7B,UAAK,CAAE,kBAAmB,QAAS,GAAI;AACtC,eAAO,gCAAE;AAAA,MACV;AACA,aAAO,SAAS,aAAa,iBAAiB,SAC7C,oBAAC,sCAAmC;AAAA,IAEtC;AAAA,IACA,cAAe,EAAE,SAAS,GAAI;AAC7B,YAAM,eAAe,SAAS,cAAc;AAC5C,aAAO,eAAe,oBAAC,YAAS,UAAS,QAAO,IAAK;AAAA,IACtD;AAAA,EACD;AAAA,EACA,QAAQ;AAAA,IACP,MAAM,QAAS,EAAE,MAAM,GAAI;AAC1B,YAAM,SAAS,MAAM,WAAY,KAAM;AACvC,aAAO,SAAS,MAAM;AAAA,IACvB;AAAA,EACD;AACD;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/site-editor-routes/pattern-item.js
1
+ // packages/edit-site/src/components/site-editor-routes/pattern-item.jsx
2
2
  import Editor from "../editor/index.mjs";
3
3
  import SidebarNavigationScreenPatterns from "../sidebar-navigation-screen-patterns/index.mjs";
4
4
  import { isClassicThemeWithStyleBookSupport } from "./utils.mjs";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/site-editor-routes/pattern-item.js"],
3
+ "sources": ["../../../src/components/site-editor-routes/pattern-item.jsx"],
4
4
  "sourcesContent": ["import Editor from '../editor';\nimport SidebarNavigationScreenPatterns from '../sidebar-navigation-screen-patterns';\nimport { isClassicThemeWithStyleBookSupport } from './utils';\n\nexport const patternItemRoute = {\n\tname: 'pattern-item',\n\tpath: '/wp_block/:postId',\n\tareas: {\n\t\tsidebar( { siteData } ) {\n\t\t\tconst isBlockTheme = siteData.currentTheme?.is_block_theme;\n\t\t\tconst backPath =\n\t\t\t\tisBlockTheme || isClassicThemeWithStyleBookSupport( siteData )\n\t\t\t\t\t? '/'\n\t\t\t\t\t: undefined;\n\t\t\treturn <SidebarNavigationScreenPatterns backPath={ backPath } />;\n\t\t},\n\t\t// Also rendered on mobile, where this route is only reached at canvas=edit.\n\t\tpreview: <Editor />,\n\t},\n};\n"],
5
5
  "mappings": ";AAAA,OAAO,YAAY;AACnB,OAAO,qCAAqC;AAC5C,SAAS,0CAA0C;AAYzC;AAVH,IAAM,mBAAmB;AAAA,EAC/B,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,IACN,QAAS,EAAE,SAAS,GAAI;AACvB,YAAM,eAAe,SAAS,cAAc;AAC5C,YAAM,WACL,gBAAgB,mCAAoC,QAAS,IAC1D,MACA;AACJ,aAAO,oBAAC,mCAAgC,UAAsB;AAAA,IAC/D;AAAA;AAAA,IAEA,SAAS,oBAAC,UAAO;AAAA,EAClB;AACD;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/site-editor-routes/patterns.js
1
+ // packages/edit-site/src/components/site-editor-routes/patterns.jsx
2
2
  import SidebarNavigationScreenPatterns from "../sidebar-navigation-screen-patterns/index.mjs";
3
3
  import PagePatterns from "../page-patterns/index.mjs";
4
4
  import { isClassicThemeWithStyleBookSupport } from "./utils.mjs";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/site-editor-routes/patterns.js"],
3
+ "sources": ["../../../src/components/site-editor-routes/patterns.jsx"],
4
4
  "sourcesContent": ["import SidebarNavigationScreenPatterns from '../sidebar-navigation-screen-patterns';\nimport PagePatterns from '../page-patterns';\nimport { isClassicThemeWithStyleBookSupport } from './utils';\n\nexport const patternsRoute = {\n\tname: 'patterns',\n\tpath: '/pattern',\n\tareas: {\n\t\tsidebar( { siteData } ) {\n\t\t\tconst isBlockTheme = siteData.currentTheme?.is_block_theme;\n\t\t\tconst backPath =\n\t\t\t\tisBlockTheme || isClassicThemeWithStyleBookSupport( siteData )\n\t\t\t\t\t? '/'\n\t\t\t\t\t: undefined;\n\t\t\treturn <SidebarNavigationScreenPatterns backPath={ backPath } />;\n\t\t},\n\t\tcontent: <PagePatterns />,\n\t\tmobileSidebar( { siteData, query } ) {\n\t\t\tif ( query.categoryId ) {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\tconst isBlockTheme = siteData.currentTheme?.is_block_theme;\n\t\t\tconst backPath =\n\t\t\t\tisBlockTheme || isClassicThemeWithStyleBookSupport( siteData )\n\t\t\t\t\t? '/'\n\t\t\t\t\t: undefined;\n\t\t\treturn <SidebarNavigationScreenPatterns backPath={ backPath } />;\n\t\t},\n\t\tmobileContent( { query } ) {\n\t\t\treturn query.categoryId ? <PagePatterns /> : undefined;\n\t\t},\n\t},\n};\n"],
5
5
  "mappings": ";AAAA,OAAO,qCAAqC;AAC5C,OAAO,kBAAkB;AACzB,SAAS,0CAA0C;AAYzC;AAVH,IAAM,gBAAgB;AAAA,EAC5B,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,IACN,QAAS,EAAE,SAAS,GAAI;AACvB,YAAM,eAAe,SAAS,cAAc;AAC5C,YAAM,WACL,gBAAgB,mCAAoC,QAAS,IAC1D,MACA;AACJ,aAAO,oBAAC,mCAAgC,UAAsB;AAAA,IAC/D;AAAA,IACA,SAAS,oBAAC,gBAAa;AAAA,IACvB,cAAe,EAAE,UAAU,MAAM,GAAI;AACpC,UAAK,MAAM,YAAa;AACvB,eAAO;AAAA,MACR;AACA,YAAM,eAAe,SAAS,cAAc;AAC5C,YAAM,WACL,gBAAgB,mCAAoC,QAAS,IAC1D,MACA;AACJ,aAAO,oBAAC,mCAAgC,UAAsB;AAAA,IAC/D;AAAA,IACA,cAAe,EAAE,MAAM,GAAI;AAC1B,aAAO,MAAM,aAAa,oBAAC,gBAAa,IAAK;AAAA,IAC9C;AAAA,EACD;AACD;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/site-editor-routes/stylebook.js
1
+ // packages/edit-site/src/components/site-editor-routes/stylebook.jsx
2
2
  import { __ } from "@wordpress/i18n";
3
3
  import { privateApis as editorPrivateApis } from "@wordpress/editor";
4
4
  import SidebarNavigationScreen from "../sidebar-navigation-screen/index.mjs";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/site-editor-routes/stylebook.js"],
3
+ "sources": ["../../../src/components/site-editor-routes/stylebook.jsx"],
4
4
  "sourcesContent": ["import { __ } from '@wordpress/i18n';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport SidebarNavigationScreenUnsupported from '../sidebar-navigation-screen-unsupported';\nimport { unlock } from '../../lock-unlock';\nimport { isClassicThemeWithStyleBookSupport, isThemeDataLoaded } from './utils';\n\nconst { StyleBookPreview } = unlock( editorPrivateApis );\n\nexport const stylebookRoute = {\n\tname: 'stylebook',\n\tpath: '/stylebook',\n\tareas: {\n\t\tsidebar( { siteData } ) {\n\t\t\tif ( ! isThemeDataLoaded( siteData ) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn isClassicThemeWithStyleBookSupport( siteData ) ? (\n\t\t\t\t<SidebarNavigationScreen\n\t\t\t\t\ttitle={ __( 'Styles' ) }\n\t\t\t\t\tbackPath=\"/\"\n\t\t\t\t\tdescription={ __(\n\t\t\t\t\t\t`Preview your website's visual identity: colors, typography, and blocks.`\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<SidebarNavigationScreenUnsupported />\n\t\t\t);\n\t\t},\n\t\tpreview( { siteData } ) {\n\t\t\treturn isClassicThemeWithStyleBookSupport( siteData ) ? (\n\t\t\t\t<StyleBookPreview\n\t\t\t\t\tisStatic\n\t\t\t\t\tsettings={ siteData.editorSettings }\n\t\t\t\t/>\n\t\t\t) : undefined;\n\t\t},\n\t\tmobileContent( { siteData } ) {\n\t\t\treturn isClassicThemeWithStyleBookSupport( siteData ) ? (\n\t\t\t\t<StyleBookPreview\n\t\t\t\t\tisStatic\n\t\t\t\t\tsettings={ siteData.editorSettings }\n\t\t\t\t/>\n\t\t\t) : undefined;\n\t\t},\n\t},\n};\n"],
5
5
  "mappings": ";AAAA,SAAS,UAAU;AACnB,SAAS,eAAe,yBAAyB;AACjD,OAAO,6BAA6B;AACpC,OAAO,wCAAwC;AAC/C,SAAS,cAAc;AACvB,SAAS,oCAAoC,yBAAyB;AAalE;AAXJ,IAAM,EAAE,iBAAiB,IAAI,OAAQ,iBAAkB;AAEhD,IAAM,iBAAiB;AAAA,EAC7B,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,IACN,QAAS,EAAE,SAAS,GAAI;AACvB,UAAK,CAAE,kBAAmB,QAAS,GAAI;AACtC,eAAO;AAAA,MACR;AACA,aAAO,mCAAoC,QAAS,IACnD;AAAA,QAAC;AAAA;AAAA,UACA,OAAQ,GAAI,QAAS;AAAA,UACrB,UAAS;AAAA,UACT,aAAc;AAAA,YACb;AAAA,UACD;AAAA;AAAA,MACD,IAEA,oBAAC,sCAAmC;AAAA,IAEtC;AAAA,IACA,QAAS,EAAE,SAAS,GAAI;AACvB,aAAO,mCAAoC,QAAS,IACnD;AAAA,QAAC;AAAA;AAAA,UACA,UAAQ;AAAA,UACR,UAAW,SAAS;AAAA;AAAA,MACrB,IACG;AAAA,IACL;AAAA,IACA,cAAe,EAAE,SAAS,GAAI;AAC7B,aAAO,mCAAoC,QAAS,IACnD;AAAA,QAAC;AAAA;AAAA,UACA,UAAQ;AAAA,UACR,UAAW,SAAS;AAAA;AAAA,MACrB,IACG;AAAA,IACL;AAAA,EACD;AACD;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/site-editor-routes/styles.js
1
+ // packages/edit-site/src/components/site-editor-routes/styles.jsx
2
2
  import { privateApis as routerPrivateApis } from "@wordpress/router";
3
3
  import { privateApis as editorPrivateApis } from "@wordpress/editor";
4
4
  import { addQueryArgs } from "@wordpress/url";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/site-editor-routes/styles.js"],
3
+ "sources": ["../../../src/components/site-editor-routes/styles.jsx"],
4
4
  "sourcesContent": ["import { privateApis as routerPrivateApis } from '@wordpress/router';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\nimport { addQueryArgs } from '@wordpress/url';\nimport Editor from '../editor';\nimport { unlock } from '../../lock-unlock';\nimport SidebarNavigationScreenGlobalStyles from '../sidebar-navigation-screen-global-styles';\nimport SidebarGlobalStyles from '../sidebar-global-styles';\n\nconst { useLocation, useHistory } = unlock( routerPrivateApis );\nconst { StyleBookPreview, useGlobalStyles } = unlock( editorPrivateApis );\n\nfunction StyleBookPreviewArea( { siteData } ) {\n\tconst { path, query } = useLocation();\n\tconst history = useHistory();\n\tconst { user: userConfig } = useGlobalStyles();\n\n\t// Get section from URL query params\n\tconst section = query.section ?? '/';\n\tconst onChangeSection = ( updatedSection ) => {\n\t\thistory.navigate(\n\t\t\taddQueryArgs( path, {\n\t\t\t\tsection: updatedSection,\n\t\t\t} )\n\t\t);\n\t};\n\n\treturn (\n\t\t<StyleBookPreview\n\t\t\tpath={ section }\n\t\t\tonPathChange={ onChangeSection }\n\t\t\tsettings={ siteData.editorSettings }\n\t\t\t// Without userConfig the preview falls back to the static `settings` styles and unsaved global styles edits are not shown.\n\t\t\tuserConfig={ userConfig }\n\t\t/>\n\t);\n}\n\nfunction StylesPreviewArea( { siteData } ) {\n\tconst { query } = useLocation();\n\n\tif ( query.preview === 'stylebook' ) {\n\t\treturn <StyleBookPreviewArea siteData={ siteData } />;\n\t}\n\n\treturn <Editor />;\n}\n\nexport const stylesRoute = {\n\tname: 'styles',\n\tpath: '/styles',\n\tareas: {\n\t\tcontent: <SidebarGlobalStyles />,\n\t\tsidebar: <SidebarNavigationScreenGlobalStyles backPath=\"/\" />,\n\t\tpreview: ( { siteData } ) => (\n\t\t\t<StylesPreviewArea siteData={ siteData } />\n\t\t),\n\t\tmobileContent: <SidebarGlobalStyles />,\n\t},\n\twidths: {\n\t\tcontent: 380,\n\t},\n};\n"],
5
5
  "mappings": ";AAAA,SAAS,eAAe,yBAAyB;AACjD,SAAS,eAAe,yBAAyB;AACjD,SAAS,oBAAoB;AAC7B,OAAO,YAAY;AACnB,SAAS,cAAc;AACvB,OAAO,yCAAyC;AAChD,OAAO,yBAAyB;AAqB9B;AAnBF,IAAM,EAAE,aAAa,WAAW,IAAI,OAAQ,iBAAkB;AAC9D,IAAM,EAAE,kBAAkB,gBAAgB,IAAI,OAAQ,iBAAkB;AAExE,SAAS,qBAAsB,EAAE,SAAS,GAAI;AAC7C,QAAM,EAAE,MAAM,MAAM,IAAI,YAAY;AACpC,QAAM,UAAU,WAAW;AAC3B,QAAM,EAAE,MAAM,WAAW,IAAI,gBAAgB;AAG7C,QAAM,UAAU,MAAM,WAAW;AACjC,QAAM,kBAAkB,CAAE,mBAAoB;AAC7C,YAAQ;AAAA,MACP,aAAc,MAAM;AAAA,QACnB,SAAS;AAAA,MACV,CAAE;AAAA,IACH;AAAA,EACD;AAEA,SACC;AAAA,IAAC;AAAA;AAAA,MACA,MAAO;AAAA,MACP,cAAe;AAAA,MACf,UAAW,SAAS;AAAA,MAEpB;AAAA;AAAA,EACD;AAEF;AAEA,SAAS,kBAAmB,EAAE,SAAS,GAAI;AAC1C,QAAM,EAAE,MAAM,IAAI,YAAY;AAE9B,MAAK,MAAM,YAAY,aAAc;AACpC,WAAO,oBAAC,wBAAqB,UAAsB;AAAA,EACpD;AAEA,SAAO,oBAAC,UAAO;AAChB;AAEO,IAAM,cAAc;AAAA,EAC1B,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,IACN,SAAS,oBAAC,uBAAoB;AAAA,IAC9B,SAAS,oBAAC,uCAAoC,UAAS,KAAI;AAAA,IAC3D,SAAS,CAAE,EAAE,SAAS,MACrB,oBAAC,qBAAkB,UAAsB;AAAA,IAE1C,eAAe,oBAAC,uBAAoB;AAAA,EACrC;AAAA,EACA,QAAQ;AAAA,IACP,SAAS;AAAA,EACV;AACD;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/site-editor-routes/template-item.js
1
+ // packages/edit-site/src/components/site-editor-routes/template-item.jsx
2
2
  import Editor from "../editor/index.mjs";
3
3
  import SidebarNavigationScreenTemplatesBrowse from "../sidebar-navigation-screen-templates-browse/index.mjs";
4
4
  import SidebarNavigationScreenUnsupported from "../sidebar-navigation-screen-unsupported/index.mjs";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/site-editor-routes/template-item.js"],
3
+ "sources": ["../../../src/components/site-editor-routes/template-item.jsx"],
4
4
  "sourcesContent": ["import Editor from '../editor';\nimport SidebarNavigationScreenTemplatesBrowse from '../sidebar-navigation-screen-templates-browse';\nimport SidebarNavigationScreenUnsupported from '../sidebar-navigation-screen-unsupported';\nimport { isThemeDataLoaded } from './utils';\n\nconst areas = {\n\tsidebar( { siteData } ) {\n\t\tif ( ! isThemeDataLoaded( siteData ) ) {\n\t\t\treturn null;\n\t\t}\n\t\treturn siteData.currentTheme.is_block_theme ? (\n\t\t\t<SidebarNavigationScreenTemplatesBrowse backPath=\"/\" />\n\t\t) : (\n\t\t\t<SidebarNavigationScreenUnsupported />\n\t\t);\n\t},\n\t// Also rendered on mobile, where this route is only reached at canvas=edit.\n\tpreview( { siteData } ) {\n\t\tif ( ! isThemeDataLoaded( siteData ) ) {\n\t\t\treturn null;\n\t\t}\n\t\treturn siteData.currentTheme.is_block_theme ? (\n\t\t\t<Editor />\n\t\t) : (\n\t\t\t<SidebarNavigationScreenUnsupported />\n\t\t);\n\t},\n};\n\nexport const templateItemRoute = {\n\tname: 'template-item',\n\tpath: '/wp_template/*postId',\n\tareas,\n};\n"],
5
5
  "mappings": ";AAAA,OAAO,YAAY;AACnB,OAAO,4CAA4C;AACnD,OAAO,wCAAwC;AAC/C,SAAS,yBAAyB;AAQ/B;AANH,IAAM,QAAQ;AAAA,EACb,QAAS,EAAE,SAAS,GAAI;AACvB,QAAK,CAAE,kBAAmB,QAAS,GAAI;AACtC,aAAO;AAAA,IACR;AACA,WAAO,SAAS,aAAa,iBAC5B,oBAAC,0CAAuC,UAAS,KAAI,IAErD,oBAAC,sCAAmC;AAAA,EAEtC;AAAA;AAAA,EAEA,QAAS,EAAE,SAAS,GAAI;AACvB,QAAK,CAAE,kBAAmB,QAAS,GAAI;AACtC,aAAO;AAAA,IACR;AACA,WAAO,SAAS,aAAa,iBAC5B,oBAAC,UAAO,IAER,oBAAC,sCAAmC;AAAA,EAEtC;AACD;AAEO,IAAM,oBAAoB;AAAA,EAChC,MAAM;AAAA,EACN,MAAM;AAAA,EACN;AACD;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/site-editor-routes/template-part-item.js
1
+ // packages/edit-site/src/components/site-editor-routes/template-part-item.jsx
2
2
  import Editor from "../editor/index.mjs";
3
3
  import SidebarNavigationScreenPatterns from "../sidebar-navigation-screen-patterns/index.mjs";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/site-editor-routes/template-part-item.js"],
3
+ "sources": ["../../../src/components/site-editor-routes/template-part-item.jsx"],
4
4
  "sourcesContent": ["import Editor from '../editor';\nimport SidebarNavigationScreenPatterns from '../sidebar-navigation-screen-patterns';\n\nexport const templatePartItemRoute = {\n\tname: 'template-part-item',\n\tpath: '/wp_template_part/*postId',\n\tareas: {\n\t\tsidebar: <SidebarNavigationScreenPatterns backPath=\"/\" />,\n\t\t// Also rendered on mobile, where this route is only reached at canvas=edit.\n\t\tpreview: <Editor />,\n\t},\n};\n"],
5
5
  "mappings": ";AAAA,OAAO,YAAY;AACnB,OAAO,qCAAqC;AAMjC;AAJJ,IAAM,wBAAwB;AAAA,EACpC,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,IACN,SAAS,oBAAC,mCAAgC,UAAS,KAAI;AAAA;AAAA,IAEvD,SAAS,oBAAC,UAAO;AAAA,EAClB;AACD;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/site-editor-routes/templates.js
1
+ // packages/edit-site/src/components/site-editor-routes/templates.jsx
2
2
  import { resolveSelect } from "@wordpress/data";
3
3
  import { store as coreStore } from "@wordpress/core-data";
4
4
  import { loadView } from "@wordpress/views";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/site-editor-routes/templates.js"],
3
+ "sources": ["../../../src/components/site-editor-routes/templates.jsx"],
4
4
  "sourcesContent": ["import { resolveSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { loadView } from '@wordpress/views';\nimport Editor from '../editor';\nimport SidebarNavigationScreenTemplatesBrowse from '../sidebar-navigation-screen-templates-browse';\nimport SidebarNavigationScreenUnsupported from '../sidebar-navigation-screen-unsupported';\nimport PageTemplates from '../page-templates';\nimport PageTemplatesLegacy from '../page-templates/index-legacy';\nimport { unlock } from '../../lock-unlock';\nimport { isThemeDataLoaded } from './utils';\n\nasync function isTemplateListView( query ) {\n\tconst { activeView = 'active' } = query;\n\tconst config = await unlock( resolveSelect( coreStore ) ).getViewConfig(\n\t\t'postType',\n\t\t'wp_template'\n\t);\n\tconst defaultView = config?.default_view;\n\tconst activeViewOverrides =\n\t\tconfig?.view_list?.find( ( v ) => v.slug === activeView )?.view ?? {};\n\tconst view = await loadView( {\n\t\tkind: 'postType',\n\t\tname: 'wp_template',\n\t\tslug: 'default',\n\t\tdefaultView,\n\t\tactiveViewOverrides,\n\t} );\n\treturn view.type === 'list';\n}\n\nexport const templatesRoute = {\n\tname: 'templates',\n\tpath: '/template',\n\tareas: {\n\t\tsidebar( { siteData } ) {\n\t\t\tif ( ! isThemeDataLoaded( siteData ) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn siteData.currentTheme.is_block_theme ? (\n\t\t\t\t<SidebarNavigationScreenTemplatesBrowse backPath=\"/\" />\n\t\t\t) : (\n\t\t\t\t<SidebarNavigationScreenUnsupported />\n\t\t\t);\n\t\t},\n\t\tcontent( { siteData } ) {\n\t\t\tconst isBlockTheme = siteData.currentTheme?.is_block_theme;\n\t\t\tif ( ! isBlockTheme ) {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\t// Use the new template activation system if experiment is enabled,\n\t\t\t// otherwise use the legacy simple template list.\n\t\t\treturn window?.__experimentalTemplateActivate ? (\n\t\t\t\t<PageTemplates />\n\t\t\t) : (\n\t\t\t\t<PageTemplatesLegacy />\n\t\t\t);\n\t\t},\n\t\tasync preview( { query, siteData } ) {\n\t\t\tconst isBlockTheme = siteData.currentTheme?.is_block_theme;\n\t\t\tif ( ! isBlockTheme ) {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\tconst isListView = await isTemplateListView( query );\n\t\t\treturn isListView ? <Editor /> : undefined;\n\t\t},\n\t\tmobileSidebar( { siteData } ) {\n\t\t\tif ( ! isThemeDataLoaded( siteData ) ) {\n\t\t\t\treturn <></>;\n\t\t\t}\n\t\t\tif ( ! siteData.currentTheme.is_block_theme ) {\n\t\t\t\treturn <SidebarNavigationScreenUnsupported />;\n\t\t\t}\n\t\t\treturn undefined;\n\t\t},\n\t\tmobileContent( { siteData } ) {\n\t\t\tconst isBlockTheme = siteData.currentTheme?.is_block_theme;\n\t\t\tif ( ! isBlockTheme ) {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\t// Check if the template activation experiment is enabled.\n\t\t\tconst isTemplateActivateEnabled =\n\t\t\t\ttypeof window !== 'undefined' &&\n\t\t\t\twindow.__experimentalTemplateActivate;\n\t\t\t// Use the new template activation system if experiment is enabled,\n\t\t\t// otherwise use the legacy simple template list.\n\t\t\treturn isTemplateActivateEnabled ? (\n\t\t\t\t<PageTemplates />\n\t\t\t) : (\n\t\t\t\t<PageTemplatesLegacy />\n\t\t\t);\n\t\t},\n\t},\n\twidths: {\n\t\tasync content( { query } ) {\n\t\t\tconst isListView = await isTemplateListView( query );\n\t\t\treturn isListView ? 380 : undefined;\n\t\t},\n\t},\n};\n"],
5
5
  "mappings": ";AAAA,SAAS,qBAAqB;AAC9B,SAAS,SAAS,iBAAiB;AACnC,SAAS,gBAAgB;AACzB,OAAO,YAAY;AACnB,OAAO,4CAA4C;AACnD,OAAO,wCAAwC;AAC/C,OAAO,mBAAmB;AAC1B,OAAO,yBAAyB;AAChC,SAAS,cAAc;AACvB,SAAS,yBAAyB;AA8B9B,SA4BO,UA5BP;AA5BJ,eAAe,mBAAoB,OAAQ;AAC1C,QAAM,EAAE,aAAa,SAAS,IAAI;AAClC,QAAM,SAAS,MAAM,OAAQ,cAAe,SAAU,CAAE,EAAE;AAAA,IACzD;AAAA,IACA;AAAA,EACD;AACA,QAAM,cAAc,QAAQ;AAC5B,QAAM,sBACL,QAAQ,WAAW,KAAM,CAAE,MAAO,EAAE,SAAS,UAAW,GAAG,QAAQ,CAAC;AACrE,QAAM,OAAO,MAAM,SAAU;AAAA,IAC5B,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,IACN;AAAA,IACA;AAAA,EACD,CAAE;AACF,SAAO,KAAK,SAAS;AACtB;AAEO,IAAM,iBAAiB;AAAA,EAC7B,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,IACN,QAAS,EAAE,SAAS,GAAI;AACvB,UAAK,CAAE,kBAAmB,QAAS,GAAI;AACtC,eAAO;AAAA,MACR;AACA,aAAO,SAAS,aAAa,iBAC5B,oBAAC,0CAAuC,UAAS,KAAI,IAErD,oBAAC,sCAAmC;AAAA,IAEtC;AAAA,IACA,QAAS,EAAE,SAAS,GAAI;AACvB,YAAM,eAAe,SAAS,cAAc;AAC5C,UAAK,CAAE,cAAe;AACrB,eAAO;AAAA,MACR;AAGA,aAAO,QAAQ,iCACd,oBAAC,iBAAc,IAEf,oBAAC,uBAAoB;AAAA,IAEvB;AAAA,IACA,MAAM,QAAS,EAAE,OAAO,SAAS,GAAI;AACpC,YAAM,eAAe,SAAS,cAAc;AAC5C,UAAK,CAAE,cAAe;AACrB,eAAO;AAAA,MACR;AACA,YAAM,aAAa,MAAM,mBAAoB,KAAM;AACnD,aAAO,aAAa,oBAAC,UAAO,IAAK;AAAA,IAClC;AAAA,IACA,cAAe,EAAE,SAAS,GAAI;AAC7B,UAAK,CAAE,kBAAmB,QAAS,GAAI;AACtC,eAAO,gCAAE;AAAA,MACV;AACA,UAAK,CAAE,SAAS,aAAa,gBAAiB;AAC7C,eAAO,oBAAC,sCAAmC;AAAA,MAC5C;AACA,aAAO;AAAA,IACR;AAAA,IACA,cAAe,EAAE,SAAS,GAAI;AAC7B,YAAM,eAAe,SAAS,cAAc;AAC5C,UAAK,CAAE,cAAe;AACrB,eAAO;AAAA,MACR;AAEA,YAAM,4BACL,OAAO,WAAW,eAClB,OAAO;AAGR,aAAO,4BACN,oBAAC,iBAAc,IAEf,oBAAC,uBAAoB;AAAA,IAEvB;AAAA,EACD;AAAA,EACA,QAAQ;AAAA,IACP,MAAM,QAAS,EAAE,MAAM,GAAI;AAC1B,YAAM,aAAa,MAAM,mBAAoB,KAAM;AACnD,aAAO,aAAa,MAAM;AAAA,IAC3B;AAAA,EACD;AACD;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/site-hub/index.js
1
+ // packages/edit-site/src/components/site-hub/index.jsx
2
2
  import { useSelect } from "@wordpress/data";
3
3
  import { Button } from "@wordpress/components";
4
4
  import { __, isRTL } from "@wordpress/i18n";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/site-hub/index.js"],
3
+ "sources": ["../../../src/components/site-hub/index.jsx"],
4
4
  "sourcesContent": ["import { useSelect } from '@wordpress/data';\nimport { Button } from '@wordpress/components';\nimport { __, isRTL } from '@wordpress/i18n';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { memo, forwardRef, useContext } from '@wordpress/element';\nimport { chevronLeft, chevronRight } from '@wordpress/icons';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\nimport { store as editSiteStore } from '../../store';\nimport { unlock } from '../../lock-unlock';\nimport { SidebarNavigationContext } from '../sidebar';\nconst { useLocation, useHistory } = unlock( routerPrivateApis );\n\nexport const SiteHubMobile = memo(\n\tforwardRef( ( props, ref ) => {\n\t\tconst { path } = useLocation();\n\t\tconst history = useHistory();\n\t\tconst { navigate } = useContext( SidebarNavigationContext );\n\n\t\tconst {\n\t\t\tdashboardLink,\n\t\t\tisBlockTheme,\n\t\t\tisClassicThemeWithStyleBookSupport,\n\t\t} = useSelect( ( select ) => {\n\t\t\tconst { getSettings } = unlock( select( editSiteStore ) );\n\t\t\tconst { getCurrentTheme } = select( coreStore );\n\t\t\tconst currentTheme = getCurrentTheme();\n\t\t\tconst settings = getSettings();\n\t\t\tconst supportsEditorStyles =\n\t\t\t\tcurrentTheme?.theme_supports[ 'editor-styles' ];\n\t\t\t// This is a temp solution until the has_theme_json value is available for the current theme.\n\t\t\tconst hasThemeJson = settings.supportsLayout;\n\n\t\t\treturn {\n\t\t\t\tdashboardLink: settings.__experimentalDashboardLink,\n\t\t\t\tisBlockTheme: currentTheme?.is_block_theme,\n\t\t\t\tisClassicThemeWithStyleBookSupport:\n\t\t\t\t\t! currentTheme?.is_block_theme &&\n\t\t\t\t\t( supportsEditorStyles || hasThemeJson ),\n\t\t\t};\n\t\t}, [] );\n\n\t\tlet backPath;\n\n\t\t// If the current path is not the root page, find a page to back to.\n\t\tif ( path !== '/' ) {\n\t\t\tif ( isBlockTheme || isClassicThemeWithStyleBookSupport ) {\n\t\t\t\t// If the current theme is a block theme or a classic theme that supports StyleBook,\n\t\t\t\t// back to the Design screen.\n\t\t\t\tbackPath = '/';\n\t\t\t} else if ( path !== '/pattern' ) {\n\t\t\t\t// If the current theme is a classic theme that does not support StyleBook,\n\t\t\t\t// back to the Patterns page.\n\t\t\t\tbackPath = '/pattern';\n\t\t\t}\n\t\t}\n\n\t\tconst backButtonProps = {\n\t\t\thref: !! backPath ? undefined : dashboardLink,\n\t\t\tlabel: !! backPath\n\t\t\t\t? __( 'Go to Site Editor' )\n\t\t\t\t: __( 'Go to the Dashboard' ),\n\t\t\tonClick: !! backPath\n\t\t\t\t? () => {\n\t\t\t\t\t\thistory.navigate( backPath );\n\t\t\t\t\t\tnavigate( 'back' );\n\t\t\t\t }\n\t\t\t\t: undefined,\n\t\t};\n\n\t\treturn (\n\t\t\t<div className=\"edit-site-site-hub\">\n\t\t\t\t<Button\n\t\t\t\t\tsize=\"compact\"\n\t\t\t\t\tref={ ref }\n\t\t\t\t\tclassName=\"edit-site-site-hub__back-button\"\n\t\t\t\t\ticon={ isRTL() ? chevronRight : chevronLeft }\n\t\t\t\t\t{ ...backButtonProps }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t} )\n);\n"],
5
5
  "mappings": ";AAAA,SAAS,iBAAiB;AAC1B,SAAS,cAAc;AACvB,SAAS,IAAI,aAAa;AAC1B,SAAS,SAAS,iBAAiB;AACnC,SAAS,MAAM,YAAY,kBAAkB;AAC7C,SAAS,aAAa,oBAAoB;AAC1C,SAAS,eAAe,yBAAyB;AACjD,SAAS,SAAS,qBAAqB;AACvC,SAAS,cAAc;AACvB,SAAS,gCAAgC;AA8DrC;AA7DJ,IAAM,EAAE,aAAa,WAAW,IAAI,OAAQ,iBAAkB;AAEvD,IAAM,gBAAgB;AAAA,EAC5B,WAAY,CAAE,OAAO,QAAS;AAC7B,UAAM,EAAE,KAAK,IAAI,YAAY;AAC7B,UAAM,UAAU,WAAW;AAC3B,UAAM,EAAE,SAAS,IAAI,WAAY,wBAAyB;AAE1D,UAAM;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,IACD,IAAI,UAAW,CAAE,WAAY;AAC5B,YAAM,EAAE,YAAY,IAAI,OAAQ,OAAQ,aAAc,CAAE;AACxD,YAAM,EAAE,gBAAgB,IAAI,OAAQ,SAAU;AAC9C,YAAM,eAAe,gBAAgB;AACrC,YAAM,WAAW,YAAY;AAC7B,YAAM,uBACL,cAAc,eAAgB,eAAgB;AAE/C,YAAM,eAAe,SAAS;AAE9B,aAAO;AAAA,QACN,eAAe,SAAS;AAAA,QACxB,cAAc,cAAc;AAAA,QAC5B,oCACC,CAAE,cAAc,mBACd,wBAAwB;AAAA,MAC5B;AAAA,IACD,GAAG,CAAC,CAAE;AAEN,QAAI;AAGJ,QAAK,SAAS,KAAM;AACnB,UAAK,gBAAgB,oCAAqC;AAGzD,mBAAW;AAAA,MACZ,WAAY,SAAS,YAAa;AAGjC,mBAAW;AAAA,MACZ;AAAA,IACD;AAEA,UAAM,kBAAkB;AAAA,MACvB,MAAM,CAAC,CAAE,WAAW,SAAY;AAAA,MAChC,OAAO,CAAC,CAAE,WACP,GAAI,mBAAoB,IACxB,GAAI,qBAAsB;AAAA,MAC7B,SAAS,CAAC,CAAE,WACT,MAAM;AACN,gBAAQ,SAAU,QAAS;AAC3B,iBAAU,MAAO;AAAA,MACjB,IACA;AAAA,IACJ;AAEA,WACC,oBAAC,SAAI,WAAU,sBACd;AAAA,MAAC;AAAA;AAAA,QACA,MAAK;AAAA,QACL;AAAA,QACA,WAAU;AAAA,QACV,MAAO,MAAM,IAAI,eAAe;AAAA,QAC9B,GAAG;AAAA;AAAA,IACN,GACD;AAAA,EAEF,CAAE;AACH;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/welcome-guide/editor.js
1
+ // packages/edit-site/src/components/welcome-guide/editor.jsx
2
2
  import { useDispatch, useSelect } from "@wordpress/data";
3
3
  import { Guide } from "@wordpress/components";
4
4
  import { __ } from "@wordpress/i18n";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/welcome-guide/editor.js"],
3
+ "sources": ["../../../src/components/welcome-guide/editor.jsx"],
4
4
  "sourcesContent": ["import { useDispatch, useSelect } from '@wordpress/data';\nimport { Guide } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { createInterpolateElement } from '@wordpress/element';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { store as coreStore } from '@wordpress/core-data';\nimport WelcomeGuideImage from './image';\n\nexport default function WelcomeGuideEditor() {\n\tconst { toggle } = useDispatch( preferencesStore );\n\n\tconst { isActive, isBlockBasedTheme } = useSelect( ( select ) => {\n\t\treturn {\n\t\t\tisActive: !! select( preferencesStore ).get(\n\t\t\t\t'core/edit-site',\n\t\t\t\t'welcomeGuide'\n\t\t\t),\n\t\t\tisBlockBasedTheme:\n\t\t\t\tselect( coreStore ).getCurrentTheme()?.is_block_theme,\n\t\t};\n\t}, [] );\n\n\tif ( ! isActive || ! isBlockBasedTheme ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<Guide\n\t\t\tclassName=\"edit-site-welcome-guide guide-editor\"\n\t\t\tcontentLabel={ __( 'Welcome to the site editor' ) }\n\t\t\tfinishButtonText={ __( 'Get started' ) }\n\t\t\tonFinish={ () => toggle( 'core/edit-site', 'welcomeGuide' ) }\n\t\t\tpages={ [\n\t\t\t\t{\n\t\t\t\t\timage: (\n\t\t\t\t\t\t<WelcomeGuideImage\n\t\t\t\t\t\t\tnonAnimatedSrc=\"https://s.w.org/images/block-editor/edit-your-site.svg?1\"\n\t\t\t\t\t\t\tanimatedSrc=\"https://s.w.org/images/block-editor/edit-your-site.gif?1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t),\n\t\t\t\t\tcontent: (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<h1 className=\"edit-site-welcome-guide__heading\">\n\t\t\t\t\t\t\t\t{ __( 'Edit your site' ) }\n\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t<p className=\"edit-site-welcome-guide__text\">\n\t\t\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t\t\t'Design everything on your site — from the header right down to the footer — using blocks.'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p className=\"edit-site-welcome-guide__text\">\n\t\t\t\t\t\t\t\t{ createInterpolateElement(\n\t\t\t\t\t\t\t\t\t__(\n\t\t\t\t\t\t\t\t\t\t'Click <StylesIconImage /> to start designing your blocks, and choose your typography, layout, and colors.'\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tStylesIconImage: (\n\t\t\t\t\t\t\t\t\t\t\t<img\n\t\t\t\t\t\t\t\t\t\t\t\talt={ __( 'styles' ) }\n\t\t\t\t\t\t\t\t\t\t\t\tsrc=\"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' fill='%231E1E1E'/%3E%3C/svg%3E%0A\"\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t),\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</p>\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/>\n\t);\n}\n"],
5
5
  "mappings": ";AAAA,SAAS,aAAa,iBAAiB;AACvC,SAAS,aAAa;AACtB,SAAS,UAAU;AACnB,SAAS,gCAAgC;AACzC,SAAS,SAAS,wBAAwB;AAC1C,SAAS,SAAS,iBAAiB;AACnC,OAAO,uBAAuB;AA6BxB,SAMA,UANA,KAMA,YANA;AA3BS,SAAR,qBAAsC;AAC5C,QAAM,EAAE,OAAO,IAAI,YAAa,gBAAiB;AAEjD,QAAM,EAAE,UAAU,kBAAkB,IAAI,UAAW,CAAE,WAAY;AAChE,WAAO;AAAA,MACN,UAAU,CAAC,CAAE,OAAQ,gBAAiB,EAAE;AAAA,QACvC;AAAA,QACA;AAAA,MACD;AAAA,MACA,mBACC,OAAQ,SAAU,EAAE,gBAAgB,GAAG;AAAA,IACzC;AAAA,EACD,GAAG,CAAC,CAAE;AAEN,MAAK,CAAE,YAAY,CAAE,mBAAoB;AACxC,WAAO;AAAA,EACR;AAEA,SACC;AAAA,IAAC;AAAA;AAAA,MACA,WAAU;AAAA,MACV,cAAe,GAAI,4BAA6B;AAAA,MAChD,kBAAmB,GAAI,aAAc;AAAA,MACrC,UAAW,MAAM,OAAQ,kBAAkB,cAAe;AAAA,MAC1D,OAAQ;AAAA,QACP;AAAA,UACC,OACC;AAAA,YAAC;AAAA;AAAA,cACA,gBAAe;AAAA,cACf,aAAY;AAAA;AAAA,UACb;AAAA,UAED,SACC,iCACC;AAAA,gCAAC,QAAG,WAAU,oCACX,aAAI,gBAAiB,GACxB;AAAA,YACA,oBAAC,OAAE,WAAU,iCACV;AAAA,cACD;AAAA,YACD,GACD;AAAA,YACA,oBAAC,OAAE,WAAU,iCACV;AAAA,cACD;AAAA,gBACC;AAAA,cACD;AAAA,cACA;AAAA,gBACC,iBACC;AAAA,kBAAC;AAAA;AAAA,oBACA,KAAM,GAAI,QAAS;AAAA,oBACnB,KAAI;AAAA;AAAA,gBACL;AAAA,cAEF;AAAA,YACD,GACD;AAAA,aACD;AAAA,QAEF;AAAA,MACD;AAAA;AAAA,EACD;AAEF;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/welcome-guide/image.js
1
+ // packages/edit-site/src/components/welcome-guide/image.jsx
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  function WelcomeGuideImage({ nonAnimatedSrc, animatedSrc }) {
4
4
  return /* @__PURE__ */ jsxs("picture", { className: "edit-site-welcome-guide__image", children: [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/welcome-guide/image.js"],
3
+ "sources": ["../../../src/components/welcome-guide/image.jsx"],
4
4
  "sourcesContent": ["export default function WelcomeGuideImage( { nonAnimatedSrc, animatedSrc } ) {\n\treturn (\n\t\t<picture className=\"edit-site-welcome-guide__image\">\n\t\t\t<source\n\t\t\t\tsrcSet={ nonAnimatedSrc }\n\t\t\t\tmedia=\"(prefers-reduced-motion: reduce)\"\n\t\t\t/>\n\t\t\t<img src={ animatedSrc } width=\"312\" height=\"240\" alt=\"\" />\n\t\t</picture>\n\t);\n}\n"],
5
5
  "mappings": ";AAEE,SACC,KADD;AAFa,SAAR,kBAAoC,EAAE,gBAAgB,YAAY,GAAI;AAC5E,SACC,qBAAC,aAAQ,WAAU,kCAClB;AAAA;AAAA,MAAC;AAAA;AAAA,QACA,QAAS;AAAA,QACT,OAAM;AAAA;AAAA,IACP;AAAA,IACA,oBAAC,SAAI,KAAM,aAAc,OAAM,OAAM,QAAO,OAAM,KAAI,IAAG;AAAA,KAC1D;AAEF;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/welcome-guide/index.js
1
+ // packages/edit-site/src/components/welcome-guide/index.jsx
2
2
  import WelcomeGuideEditor from "./editor.mjs";
3
3
  import WelcomeGuidePage from "./page.mjs";
4
4
  import WelcomeGuideTemplate from "./template.mjs";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/welcome-guide/index.js"],
3
+ "sources": ["../../../src/components/welcome-guide/index.jsx"],
4
4
  "sourcesContent": ["import WelcomeGuideEditor from './editor';\nimport WelcomeGuidePage from './page';\nimport WelcomeGuideTemplate from './template';\n\nexport default function WelcomeGuide( { postType } ) {\n\treturn (\n\t\t<>\n\t\t\t<WelcomeGuideEditor />\n\t\t\t{ postType === 'page' && <WelcomeGuidePage /> }\n\t\t\t{ postType === 'wp_template' && <WelcomeGuideTemplate /> }\n\t\t</>\n\t);\n}\n"],
5
5
  "mappings": ";AAAA,OAAO,wBAAwB;AAC/B,OAAO,sBAAsB;AAC7B,OAAO,0BAA0B;AAI/B,mBACC,KADD;AAFa,SAAR,aAA+B,EAAE,SAAS,GAAI;AACpD,SACC,iCACC;AAAA,wBAAC,sBAAmB;AAAA,IAClB,aAAa,UAAU,oBAAC,oBAAiB;AAAA,IACzC,aAAa,iBAAiB,oBAAC,wBAAqB;AAAA,KACvD;AAEF;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/welcome-guide/page.js
1
+ // packages/edit-site/src/components/welcome-guide/page.jsx
2
2
  import { useDispatch, useSelect } from "@wordpress/data";
3
3
  import { Guide } from "@wordpress/components";
4
4
  import { __ } from "@wordpress/i18n";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/welcome-guide/page.js"],
3
+ "sources": ["../../../src/components/welcome-guide/page.jsx"],
4
4
  "sourcesContent": ["import { useDispatch, useSelect } from '@wordpress/data';\nimport { Guide } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\nexport default function WelcomeGuidePage() {\n\tconst { toggle } = useDispatch( preferencesStore );\n\n\tconst isVisible = useSelect( ( select ) => {\n\t\tconst isPageActive = !! select( preferencesStore ).get(\n\t\t\t'core/edit-site',\n\t\t\t'welcomeGuidePage'\n\t\t);\n\t\tconst isEditorActive = !! select( preferencesStore ).get(\n\t\t\t'core/edit-site',\n\t\t\t'welcomeGuide'\n\t\t);\n\t\treturn isPageActive && ! isEditorActive;\n\t}, [] );\n\n\tif ( ! isVisible ) {\n\t\treturn null;\n\t}\n\n\tconst heading = __( 'Editing a page' );\n\n\treturn (\n\t\t<Guide\n\t\t\tclassName=\"edit-site-welcome-guide guide-page\"\n\t\t\tcontentLabel={ heading }\n\t\t\tfinishButtonText={ __( 'Continue' ) }\n\t\t\tonFinish={ () => toggle( 'core/edit-site', 'welcomeGuidePage' ) }\n\t\t\tpages={ [\n\t\t\t\t{\n\t\t\t\t\timage: (\n\t\t\t\t\t\t<video\n\t\t\t\t\t\t\tclassName=\"edit-site-welcome-guide__video\"\n\t\t\t\t\t\t\tautoPlay\n\t\t\t\t\t\t\tloop\n\t\t\t\t\t\t\tmuted\n\t\t\t\t\t\t\twidth=\"312\"\n\t\t\t\t\t\t\theight=\"240\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<source\n\t\t\t\t\t\t\t\tsrc=\"https://s.w.org/images/block-editor/editing-your-page.mp4\"\n\t\t\t\t\t\t\t\ttype=\"video/mp4\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</video>\n\t\t\t\t\t),\n\t\t\t\t\tcontent: (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<h1 className=\"edit-site-welcome-guide__heading\">\n\t\t\t\t\t\t\t\t{ heading }\n\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t<p className=\"edit-site-welcome-guide__text\">\n\t\t\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t\t\t// eslint-disable-next-line no-restricted-syntax -- 'sidebar' is a common web design term for layouts\n\t\t\t\t\t\t\t\t\t'It’s now possible to edit page content in the site editor. To customize other parts of the page like the header and footer switch to editing the template using the settings sidebar.'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</p>\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/>\n\t);\n}\n"],
5
5
  "mappings": ";AAAA,SAAS,aAAa,iBAAiB;AACvC,SAAS,aAAa;AACtB,SAAS,UAAU;AACnB,SAAS,SAAS,wBAAwB;AAwCnC,SAOD,UAPC,KAOD,YAPC;AAtCQ,SAAR,mBAAoC;AAC1C,QAAM,EAAE,OAAO,IAAI,YAAa,gBAAiB;AAEjD,QAAM,YAAY,UAAW,CAAE,WAAY;AAC1C,UAAM,eAAe,CAAC,CAAE,OAAQ,gBAAiB,EAAE;AAAA,MAClD;AAAA,MACA;AAAA,IACD;AACA,UAAM,iBAAiB,CAAC,CAAE,OAAQ,gBAAiB,EAAE;AAAA,MACpD;AAAA,MACA;AAAA,IACD;AACA,WAAO,gBAAgB,CAAE;AAAA,EAC1B,GAAG,CAAC,CAAE;AAEN,MAAK,CAAE,WAAY;AAClB,WAAO;AAAA,EACR;AAEA,QAAM,UAAU,GAAI,gBAAiB;AAErC,SACC;AAAA,IAAC;AAAA;AAAA,MACA,WAAU;AAAA,MACV,cAAe;AAAA,MACf,kBAAmB,GAAI,UAAW;AAAA,MAClC,UAAW,MAAM,OAAQ,kBAAkB,kBAAmB;AAAA,MAC9D,OAAQ;AAAA,QACP;AAAA,UACC,OACC;AAAA,YAAC;AAAA;AAAA,cACA,WAAU;AAAA,cACV,UAAQ;AAAA,cACR,MAAI;AAAA,cACJ,OAAK;AAAA,cACL,OAAM;AAAA,cACN,QAAO;AAAA,cAEP;AAAA,gBAAC;AAAA;AAAA,kBACA,KAAI;AAAA,kBACJ,MAAK;AAAA;AAAA,cACN;AAAA;AAAA,UACD;AAAA,UAED,SACC,iCACC;AAAA,gCAAC,QAAG,WAAU,oCACX,mBACH;AAAA,YACA,oBAAC,OAAE,WAAU,iCACV;AAAA;AAAA,cAED;AAAA,YACD,GACD;AAAA,aACD;AAAA,QAEF;AAAA,MACD;AAAA;AAAA,EACD;AAEF;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/components/welcome-guide/template.js
1
+ // packages/edit-site/src/components/welcome-guide/template.jsx
2
2
  import { useDispatch, useSelect } from "@wordpress/data";
3
3
  import { Guide } from "@wordpress/components";
4
4
  import { __ } from "@wordpress/i18n";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/welcome-guide/template.js"],
3
+ "sources": ["../../../src/components/welcome-guide/template.jsx"],
4
4
  "sourcesContent": ["import { useDispatch, useSelect } from '@wordpress/data';\nimport { Guide } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { store as editorStore } from '@wordpress/editor';\n\nexport default function WelcomeGuideTemplate() {\n\tconst { toggle } = useDispatch( preferencesStore );\n\n\tconst { isActive, hasPreviousEntity } = useSelect( ( select ) => {\n\t\tconst { getEditorSettings } = select( editorStore );\n\t\tconst { get } = select( preferencesStore );\n\t\treturn {\n\t\t\tisActive: get( 'core/edit-site', 'welcomeGuideTemplate' ),\n\t\t\thasPreviousEntity:\n\t\t\t\t!! getEditorSettings().onNavigateToPreviousEntityRecord,\n\t\t};\n\t}, [] );\n\tconst isVisible = isActive && hasPreviousEntity;\n\n\tif ( ! isVisible ) {\n\t\treturn null;\n\t}\n\n\tconst heading = __( 'Editing a template' );\n\n\treturn (\n\t\t<Guide\n\t\t\tclassName=\"edit-site-welcome-guide guide-template\"\n\t\t\tcontentLabel={ heading }\n\t\t\tfinishButtonText={ __( 'Continue' ) }\n\t\t\tonFinish={ () =>\n\t\t\t\ttoggle( 'core/edit-site', 'welcomeGuideTemplate' )\n\t\t\t}\n\t\t\tpages={ [\n\t\t\t\t{\n\t\t\t\t\timage: (\n\t\t\t\t\t\t<video\n\t\t\t\t\t\t\tclassName=\"edit-site-welcome-guide__video\"\n\t\t\t\t\t\t\tautoPlay\n\t\t\t\t\t\t\tloop\n\t\t\t\t\t\t\tmuted\n\t\t\t\t\t\t\twidth=\"312\"\n\t\t\t\t\t\t\theight=\"240\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<source\n\t\t\t\t\t\t\t\tsrc=\"https://s.w.org/images/block-editor/editing-your-template.mp4\"\n\t\t\t\t\t\t\t\ttype=\"video/mp4\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</video>\n\t\t\t\t\t),\n\t\t\t\t\tcontent: (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<h1 className=\"edit-site-welcome-guide__heading\">\n\t\t\t\t\t\t\t\t{ heading }\n\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t<p className=\"edit-site-welcome-guide__text\">\n\t\t\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t\t\t'Note that the same template can be used by multiple pages, so any changes made here may affect other pages on the site. To switch back to editing the page content click the ‘Back’ button in the toolbar.'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</p>\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/>\n\t);\n}\n"],
5
5
  "mappings": ";AAAA,SAAS,aAAa,iBAAiB;AACvC,SAAS,aAAa;AACtB,SAAS,UAAU;AACnB,SAAS,SAAS,wBAAwB;AAC1C,SAAS,SAAS,mBAAmB;AAyC9B,SAOD,UAPC,KAOD,YAPC;AAvCQ,SAAR,uBAAwC;AAC9C,QAAM,EAAE,OAAO,IAAI,YAAa,gBAAiB;AAEjD,QAAM,EAAE,UAAU,kBAAkB,IAAI,UAAW,CAAE,WAAY;AAChE,UAAM,EAAE,kBAAkB,IAAI,OAAQ,WAAY;AAClD,UAAM,EAAE,IAAI,IAAI,OAAQ,gBAAiB;AACzC,WAAO;AAAA,MACN,UAAU,IAAK,kBAAkB,sBAAuB;AAAA,MACxD,mBACC,CAAC,CAAE,kBAAkB,EAAE;AAAA,IACzB;AAAA,EACD,GAAG,CAAC,CAAE;AACN,QAAM,YAAY,YAAY;AAE9B,MAAK,CAAE,WAAY;AAClB,WAAO;AAAA,EACR;AAEA,QAAM,UAAU,GAAI,oBAAqB;AAEzC,SACC;AAAA,IAAC;AAAA;AAAA,MACA,WAAU;AAAA,MACV,cAAe;AAAA,MACf,kBAAmB,GAAI,UAAW;AAAA,MAClC,UAAW,MACV,OAAQ,kBAAkB,sBAAuB;AAAA,MAElD,OAAQ;AAAA,QACP;AAAA,UACC,OACC;AAAA,YAAC;AAAA;AAAA,cACA,WAAU;AAAA,cACV,UAAQ;AAAA,cACR,MAAI;AAAA,cACJ,OAAK;AAAA,cACL,OAAM;AAAA,cACN,QAAO;AAAA,cAEP;AAAA,gBAAC;AAAA;AAAA,kBACA,KAAI;AAAA,kBACJ,MAAK;AAAA;AAAA,cACN;AAAA;AAAA,UACD;AAAA,UAED,SACC,iCACC;AAAA,gCAAC,QAAG,WAAU,oCACX,mBACH;AAAA,YACA,oBAAC,OAAE,WAAU,iCACV;AAAA,cACD;AAAA,YACD,GACD;AAAA,aACD;AAAA,QAEF;AAAA,MACD;AAAA;AAAA,EACD;AAEF;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/deprecated.js
1
+ // packages/edit-site/src/deprecated.jsx
2
2
  import {
3
3
  PluginMoreMenuItem as EditorPluginMoreMenuItem,
4
4
  PluginSidebar as EditorPluginSidebar,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/deprecated.js"],
3
+ "sources": ["../src/deprecated.jsx"],
4
4
  "sourcesContent": ["import {\n\tPluginMoreMenuItem as EditorPluginMoreMenuItem,\n\tPluginSidebar as EditorPluginSidebar,\n\tPluginSidebarMoreMenuItem as EditorPluginSidebarMoreMenuItem,\n} from '@wordpress/editor';\nimport { getPath } from '@wordpress/url';\nimport deprecated from '@wordpress/deprecated';\n\nconst isSiteEditor = getPath( window.location.href )?.includes(\n\t'site-editor.php'\n);\n\nconst deprecateSlot = ( name ) => {\n\tdeprecated( `wp.editPost.${ name }`, {\n\t\tsince: '6.6',\n\t\talternative: `wp.editor.${ name }`,\n\t} );\n};\n\n/* eslint-disable jsdoc/require-param */\n/**\n * @see PluginMoreMenuItem in @wordpress/editor package.\n */\nexport function PluginMoreMenuItem( props ) {\n\tif ( ! isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginMoreMenuItem' );\n\treturn <EditorPluginMoreMenuItem { ...props } />;\n}\n\n/**\n * @see PluginSidebar in @wordpress/editor package.\n */\nexport function PluginSidebar( props ) {\n\tif ( ! isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginSidebar' );\n\treturn <EditorPluginSidebar { ...props } />;\n}\n\n/**\n * @see PluginSidebarMoreMenuItem in @wordpress/editor package.\n */\nexport function PluginSidebarMoreMenuItem( props ) {\n\tif ( ! isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginSidebarMoreMenuItem' );\n\treturn <EditorPluginSidebarMoreMenuItem { ...props } />;\n}\n/* eslint-enable jsdoc/require-param */\n"],
5
5
  "mappings": ";AAAA;AAAA,EACC,sBAAsB;AAAA,EACtB,iBAAiB;AAAA,EACjB,6BAA6B;AAAA,OACvB;AACP,SAAS,eAAe;AACxB,OAAO,gBAAgB;AAsBf;AApBR,IAAM,eAAe,QAAS,OAAO,SAAS,IAAK,GAAG;AAAA,EACrD;AACD;AAEA,IAAM,gBAAgB,CAAE,SAAU;AACjC,aAAY,eAAgB,IAAK,IAAI;AAAA,IACpC,OAAO;AAAA,IACP,aAAa,aAAc,IAAK;AAAA,EACjC,CAAE;AACH;AAMO,SAAS,mBAAoB,OAAQ;AAC3C,MAAK,CAAE,cAAe;AACrB,WAAO;AAAA,EACR;AACA,gBAAe,oBAAqB;AACpC,SAAO,oBAAC,4BAA2B,GAAG,OAAQ;AAC/C;AAKO,SAAS,cAAe,OAAQ;AACtC,MAAK,CAAE,cAAe;AACrB,WAAO;AAAA,EACR;AACA,gBAAe,eAAgB;AAC/B,SAAO,oBAAC,uBAAsB,GAAG,OAAQ;AAC1C;AAKO,SAAS,0BAA2B,OAAQ;AAClD,MAAK,CAAE,cAAe;AACrB,WAAO;AAAA,EACR;AACA,gBAAe,2BAA4B;AAC3C,SAAO,oBAAC,mCAAkC,GAAG,OAAQ;AACtD;",
6
6
  "names": []
@@ -1,4 +1,4 @@
1
- // packages/edit-site/src/index.js
1
+ // packages/edit-site/src/index.jsx
2
2
  import { store as blocksStore } from "@wordpress/blocks";
3
3
  import {
4
4
  registerCoreBlocks,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/index.js"],
3
+ "sources": ["../src/index.jsx"],
4
4
  "sourcesContent": ["import { store as blocksStore } from '@wordpress/blocks';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalGetCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport { dispatch } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { createRoot, StrictMode } from '@wordpress/element';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\nimport { store as editSiteStore } from './store';\nimport { unlock } from './lock-unlock';\nimport App from './components/app';\n\nconst { registerCoreBlockBindingsSources } = unlock( editorPrivateApis );\n\n/**\n * Initializes the site editor screen.\n *\n * @param {string} id ID of the root element to render the screen in.\n * @param {Object} settings Editor settings.\n */\nexport function initializeEditor( id, settings ) {\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tdispatch( blocksStore ).reapplyBlockTypeFilters();\n\tconst coreBlocks = __experimentalGetCoreBlocks().filter(\n\t\t( { name } ) => name !== 'core/freeform'\n\t);\n\tregisterCoreBlocks( coreBlocks );\n\tregisterCoreBlockBindingsSources();\n\tdispatch( blocksStore ).setFreeformFallbackBlockName( 'core/html' );\n\tregisterLegacyWidgetBlock( { inserter: false } );\n\tregisterWidgetGroupBlock( { inserter: false } );\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: true,\n\t\t} );\n\t}\n\n\t// We dispatch actions and update the store synchronously before rendering\n\t// so that we won't trigger unnecessary re-renders with useEffect.\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-site', {\n\t\twelcomeGuide: true,\n\t\twelcomeGuideStyles: true,\n\t\twelcomeGuidePage: true,\n\t\twelcomeGuideTemplate: true,\n\t} );\n\n\tdispatch( preferencesStore ).setDefaults( 'core', {\n\t\tallowRightClickOverrides: true,\n\t\tdistractionFree: false,\n\t\teditorMode: 'visual',\n\t\teditorTool: 'edit',\n\t\tfixedToolbar: false,\n\t\tfocusMode: false,\n\t\tinactivePanels: [],\n\t\tkeepCaretInsideBlock: false,\n\t\topenPanels: [ 'post-status' ],\n\t\tshowBlockBreadcrumbs: true,\n\t\tshowListViewByDefault: false,\n\t\tenableChoosePatternModal: true,\n\t\tshowCollaborationCursor: false,\n\t\tshowCollaborationJoinNotifications: true,\n\t\tshowCollaborationLeaveNotifications: true,\n\t\tshowCollaborationPostSaveNotifications: true,\n\t} );\n\n\tif ( window.__clientSideMediaProcessing ) {\n\t\tdispatch( preferencesStore ).setDefaults( 'core/media', {\n\t\t\trequireApproval: true,\n\t\t\toptimizeOnUpload: true,\n\t\t} );\n\t}\n\n\tdispatch( editSiteStore ).updateSettings( settings );\n\n\t// Prevent the default browser action for files dropped outside of dropzones.\n\twindow.addEventListener( 'dragover', ( e ) => e.preventDefault(), false );\n\twindow.addEventListener( 'drop', ( e ) => e.preventDefault(), false );\n\n\troot.render(\n\t\t<StrictMode>\n\t\t\t<App />\n\t\t</StrictMode>\n\t);\n\n\treturn root;\n}\n\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editSite.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\nexport { default as PluginTemplateSettingPanel } from './components/plugin-template-setting-panel';\nexport { store } from './store';\nexport * from './deprecated';\n"],
5
5
  "mappings": ";AAAA,SAAS,SAAS,mBAAmB;AACrC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,SAAS,gBAAgB;AACzB,OAAO,gBAAgB;AACvB,SAAS,YAAY,kBAAkB;AACvC,SAAS,eAAe,yBAAyB;AACjD,SAAS,SAAS,wBAAwB;AAC1C;AAAA,EACC;AAAA,EACA;AAAA,OACM;AACP,SAAS,SAAS,qBAAqB;AACvC,SAAS,cAAc;AACvB,OAAO,SAAS;AAsFhB,SAAoB,WAAXA,gBAA6C;AACtD,SAAS,aAAa;AACtB,cAAc;AAhBX;AAtEH,IAAM,EAAE,iCAAiC,IAAI,OAAQ,iBAAkB;AAQhE,SAAS,iBAAkB,IAAI,UAAW;AAChD,QAAM,SAAS,SAAS,eAAgB,EAAG;AAC3C,QAAM,OAAO,WAAY,MAAO;AAEhC,WAAU,WAAY,EAAE,wBAAwB;AAChD,QAAM,aAAa,4BAA4B,EAAE;AAAA,IAChD,CAAE,EAAE,KAAK,MAAO,SAAS;AAAA,EAC1B;AACA,qBAAoB,UAAW;AAC/B,mCAAiC;AACjC,WAAU,WAAY,EAAE,6BAA8B,WAAY;AAClE,4BAA2B,EAAE,UAAU,MAAM,CAAE;AAC/C,2BAA0B,EAAE,UAAU,MAAM,CAAE;AAC9C,MAAK,WAAW,qBAAsB;AACrC,iDAA8C;AAAA,MAC7C,iBAAiB;AAAA,IAClB,CAAE;AAAA,EACH;AAIA,WAAU,gBAAiB,EAAE,YAAa,kBAAkB;AAAA,IAC3D,cAAc;AAAA,IACd,oBAAoB;AAAA,IACpB,kBAAkB;AAAA,IAClB,sBAAsB;AAAA,EACvB,CAAE;AAEF,WAAU,gBAAiB,EAAE,YAAa,QAAQ;AAAA,IACjD,0BAA0B;AAAA,IAC1B,iBAAiB;AAAA,IACjB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,WAAW;AAAA,IACX,gBAAgB,CAAC;AAAA,IACjB,sBAAsB;AAAA,IACtB,YAAY,CAAE,aAAc;AAAA,IAC5B,sBAAsB;AAAA,IACtB,uBAAuB;AAAA,IACvB,0BAA0B;AAAA,IAC1B,yBAAyB;AAAA,IACzB,oCAAoC;AAAA,IACpC,qCAAqC;AAAA,IACrC,wCAAwC;AAAA,EACzC,CAAE;AAEF,MAAK,OAAO,6BAA8B;AACzC,aAAU,gBAAiB,EAAE,YAAa,cAAc;AAAA,MACvD,iBAAiB;AAAA,MACjB,kBAAkB;AAAA,IACnB,CAAE;AAAA,EACH;AAEA,WAAU,aAAc,EAAE,eAAgB,QAAS;AAGnD,SAAO,iBAAkB,YAAY,CAAE,MAAO,EAAE,eAAe,GAAG,KAAM;AACxE,SAAO,iBAAkB,QAAQ,CAAE,MAAO,EAAE,eAAe,GAAG,KAAM;AAEpE,OAAK;AAAA,IACJ,oBAAC,cACA,8BAAC,OAAI,GACN;AAAA,EACD;AAEA,SAAO;AACR;AAEO,SAAS,qBAAqB;AACpC,aAAY,kCAAkC;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EACV,CAAE;AACH;",
6
6
  "names": ["default"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "7.3.0",
3
+ "version": "7.3.2-next.v.202608281122.0",
4
4
  "description": "Edit Site Page module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -47,57 +47,44 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@react-spring/web": "^9.4.5",
50
- "@wordpress/a11y": "^4.54.0",
51
- "@wordpress/admin-ui": "^2.9.0",
52
- "@wordpress/api-fetch": "^7.54.0",
53
- "@wordpress/base-styles": "^13.0.0",
54
- "@wordpress/blob": "^4.54.0",
55
- "@wordpress/block-editor": "^17.0.0",
56
- "@wordpress/block-library": "^10.5.0",
57
- "@wordpress/blocks": "^15.27.0",
58
- "@wordpress/commands": "^1.54.0",
59
- "@wordpress/components": "^40.0.0",
60
- "@wordpress/compose": "^8.7.0",
61
- "@wordpress/core-data": "^7.54.0",
62
- "@wordpress/data": "^10.54.0",
63
- "@wordpress/dataviews": "^18.1.0",
64
- "@wordpress/date": "^5.54.0",
65
- "@wordpress/deprecated": "^4.54.0",
66
- "@wordpress/dom": "^4.54.0",
67
- "@wordpress/editor": "^14.54.0",
68
- "@wordpress/element": "^8.6.0",
69
- "@wordpress/escape-html": "^3.54.0",
70
- "@wordpress/fields": "^0.46.0",
71
- "@wordpress/global-styles-engine": "^1.21.0",
72
- "@wordpress/global-styles-ui": "^1.21.0",
73
- "@wordpress/hooks": "^4.54.0",
74
- "@wordpress/html-entities": "^4.54.0",
75
- "@wordpress/i18n": "^6.27.0",
76
- "@wordpress/icons": "^15.5.0",
77
- "@wordpress/keyboard-shortcuts": "^5.54.0",
78
- "@wordpress/keycodes": "^4.54.0",
79
- "@wordpress/media-utils": "^5.54.0",
80
- "@wordpress/notices": "^5.54.0",
81
- "@wordpress/patterns": "^2.54.0",
82
- "@wordpress/plugins": "^7.54.0",
83
- "@wordpress/preferences": "^4.54.0",
84
- "@wordpress/primitives": "^4.54.0",
85
- "@wordpress/private-apis": "^1.54.0",
86
- "@wordpress/reusable-blocks": "^5.54.0",
87
- "@wordpress/router": "^1.54.0",
88
- "@wordpress/style-engine": "^2.54.0",
89
- "@wordpress/theme": "^2.0.0",
90
- "@wordpress/ui": "^0.21.0",
91
- "@wordpress/url": "^4.54.0",
92
- "@wordpress/viewport": "^6.54.0",
93
- "@wordpress/views": "^1.21.0",
94
- "@wordpress/widgets": "^4.54.0",
95
- "@wordpress/wordcount": "^4.54.0",
50
+ "@wordpress/a11y": "^4.54.1-next.v.202608281122.0",
51
+ "@wordpress/admin-ui": "^2.9.1-next.v.202608281122.0",
52
+ "@wordpress/api-fetch": "^7.54.1-next.v.202608281122.0",
53
+ "@wordpress/base-styles": "^13.0.1-next.v.202608281122.0",
54
+ "@wordpress/block-editor": "^17.0.2-next.v.202608281122.0",
55
+ "@wordpress/block-library": "^10.5.2-next.v.202608281122.0",
56
+ "@wordpress/blocks": "^16.0.1-next.v.202608281122.0",
57
+ "@wordpress/commands": "^1.54.2-next.v.202608281122.0",
58
+ "@wordpress/components": "^40.1.1-next.v.202608281122.0",
59
+ "@wordpress/compose": "^8.7.2-next.v.202608281122.0",
60
+ "@wordpress/core-data": "^7.54.2-next.v.202608281122.0",
61
+ "@wordpress/data": "^10.54.2-next.v.202608281122.0",
62
+ "@wordpress/dataviews": "^18.1.2-next.v.202608281122.0",
63
+ "@wordpress/deprecated": "^4.54.1-next.v.202608281122.0",
64
+ "@wordpress/dom": "^4.54.1-next.v.202608281122.0",
65
+ "@wordpress/editor": "^14.54.2-next.v.202608281122.0",
66
+ "@wordpress/element": "^8.6.2-next.v.202608281122.0",
67
+ "@wordpress/fields": "^0.46.2-next.v.202608281122.0",
68
+ "@wordpress/global-styles-engine": "^1.21.1-next.v.202608281122.0",
69
+ "@wordpress/global-styles-ui": "^1.21.2-next.v.202608281122.0",
70
+ "@wordpress/html-entities": "^4.54.1-next.v.202608281122.0",
71
+ "@wordpress/i18n": "^6.27.1-next.v.202608281122.0",
72
+ "@wordpress/icons": "^15.5.1-next.v.202608281122.0",
73
+ "@wordpress/keyboard-shortcuts": "^5.54.1-next.v.202608281122.0",
74
+ "@wordpress/keycodes": "^4.54.1-next.v.202608281122.0",
75
+ "@wordpress/notices": "^5.54.1-next.v.202608281122.0",
76
+ "@wordpress/patterns": "^2.54.2-next.v.202608281122.0",
77
+ "@wordpress/plugins": "^7.54.1-next.v.202608281122.0",
78
+ "@wordpress/preferences": "^4.54.2-next.v.202608281122.0",
79
+ "@wordpress/private-apis": "^1.54.1-next.v.202608281122.0",
80
+ "@wordpress/router": "^1.54.1-next.v.202608281122.0",
81
+ "@wordpress/theme": "^2.1.1-next.v.202608281122.0",
82
+ "@wordpress/ui": "^0.22.1-next.v.202608281122.0",
83
+ "@wordpress/url": "^4.54.1-next.v.202608281122.0",
84
+ "@wordpress/views": "^1.21.1-next.v.202608281122.0",
85
+ "@wordpress/widgets": "^4.54.2-next.v.202608281122.0",
96
86
  "change-case": "^4.1.2",
97
- "clsx": "^2.1.1",
98
- "colord": "^2.9.3",
99
- "fast-deep-equal": "^3.1.3",
100
- "react-autosize-textarea": "^7.1.0"
87
+ "clsx": "^2.1.1"
101
88
  },
102
89
  "peerDependencies": {
103
90
  "react": "^18 || ^19",
@@ -106,5 +93,5 @@
106
93
  "publishConfig": {
107
94
  "access": "public"
108
95
  },
109
- "gitHead": "5ef24f60261976bb198ad035db24bf81c1fb92b4"
96
+ "gitHead": "de479d415171765f7b573c81aeec5334ff506a12"
110
97
  }
@@ -2,7 +2,6 @@ import { useDispatch, useSelect, useRegistry } from '@wordpress/data';
2
2
  import { store as blockEditorStore } from '@wordpress/block-editor';
3
3
  import { store as editorStore } from '@wordpress/editor';
4
4
  import { useLayoutEffect } from '@wordpress/element';
5
- import { store as preferencesStore } from '@wordpress/preferences';
6
5
  import { DEFAULT_DEVICE_TYPE } from '../block-editor/viewport';
7
6
 
8
7
  export function useAdaptEditorToCanvas( canvas ) {
@@ -11,15 +10,11 @@ export function useAdaptEditorToCanvas( canvas ) {
11
10
  editPost,
12
11
  setDeviceType,
13
12
  closePublishSidebar,
14
- setIsListViewOpened,
15
13
  setIsInserterOpened,
16
14
  } = useDispatch( editorStore );
17
- const { get: getPreference } = useSelect( preferencesStore );
18
15
  const { getCurrentPost } = useSelect( editorStore );
19
16
  const registry = useRegistry();
20
17
  useLayoutEffect( () => {
21
- const isMediumOrBigger =
22
- window.matchMedia( '(min-width: 782px)' ).matches;
23
18
  registry.batch( () => {
24
19
  clearSelectedBlock();
25
20
  if ( getCurrentPost()?.type ) {
@@ -28,20 +23,6 @@ export function useAdaptEditorToCanvas( canvas ) {
28
23
  setDeviceType( DEFAULT_DEVICE_TYPE );
29
24
  closePublishSidebar();
30
25
  setIsInserterOpened( false );
31
-
32
- // Check if the block list view should be open by default.
33
- // If `distractionFree` mode is enabled, the block list view should not be open.
34
- // This behavior is disabled for small viewports.
35
- if (
36
- isMediumOrBigger &&
37
- canvas === 'edit' &&
38
- getPreference( 'core', 'showListViewByDefault' ) &&
39
- ! getPreference( 'core', 'distractionFree' )
40
- ) {
41
- setIsListViewOpened( true );
42
- } else {
43
- setIsListViewOpened( false );
44
- }
45
26
  } );
46
27
  }, [
47
28
  canvas,
@@ -51,8 +32,6 @@ export function useAdaptEditorToCanvas( canvas ) {
51
32
  setDeviceType,
52
33
  closePublishSidebar,
53
34
  setIsInserterOpened,
54
- setIsListViewOpened,
55
- getPreference,
56
35
  getCurrentPost,
57
36
  ] );
58
37
  }
@@ -1,7 +1,7 @@
1
1
  import { __, _x, sprintf } from '@wordpress/i18n';
2
2
  import { decodeEntities } from '@wordpress/html-entities';
3
3
 
4
- // Copied from packages/block-library/src/navigation/edit/navigation-menu-selector.js.
4
+ // Copied from packages/block-library/src/navigation/edit/navigation-menu-selector.jsx.
5
5
  export default function buildNavigationLabel( title, id, status ) {
6
6
  if ( ! title?.rendered ) {
7
7
  /* translators: %s: the index of the menu in the list of menus. */
@@ -15,7 +15,7 @@ import useNavigationMenuHandlers from '../sidebar-navigation-screen-navigation-m
15
15
  import { unlock } from '../../lock-unlock';
16
16
  import { NAVIGATION_POST_TYPE } from '../../utils/constants';
17
17
 
18
- // Copied from packages/block-library/src/navigation/edit/navigation-menu-selector.js.
18
+ // Copied from packages/block-library/src/navigation/edit/navigation-menu-selector.jsx.
19
19
  function buildMenuLabel( title, id, status ) {
20
20
  if ( ! title ) {
21
21
  /* translators: %s: the index of the menu in the list of menus. */
@@ -14,7 +14,7 @@ import LeafMoreMenu from './leaf-more-menu';
14
14
  const { PrivateListView } = unlock( blockEditorPrivateApis );
15
15
  const { NavigationLinkUI } = unlock( blockLibraryPrivateApis );
16
16
 
17
- // Needs to be kept in sync with the query used at packages/block-library/src/page-list/edit.js.
17
+ // Needs to be kept in sync with the query used at packages/block-library/src/page-list/edit.jsx.
18
18
  const MAX_PAGE_COUNT = 100;
19
19
  const PAGES_QUERY = [
20
20
  'postType',