@wordpress/edit-site 7.3.0 → 7.4.1-next.v.202609031004.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 (450) hide show
  1. package/CHANGELOG.md +22 -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 +4 -2
  9. package/build/components/add-new-template/add-custom-template-modal-content.cjs.map +3 -3
  10. package/build/components/add-new-template/index.cjs +7 -5
  11. package/build/components/add-new-template/index.cjs.map +3 -3
  12. package/build/components/add-new-template/utils.cjs +84 -9
  13. package/build/components/add-new-template/utils.cjs.map +2 -2
  14. package/build/components/app/index.cjs +1 -1
  15. package/build/components/app/index.cjs.map +1 -1
  16. package/build/components/canvas-loader/index.cjs +1 -1
  17. package/build/components/canvas-loader/index.cjs.map +1 -1
  18. package/build/components/dataviews-actions/index.cjs +2 -55
  19. package/build/components/dataviews-actions/index.cjs.map +3 -3
  20. package/build/components/editor/index.cjs +1 -1
  21. package/build/components/editor/index.cjs.map +1 -1
  22. package/build/components/editor/site-preview.cjs +1 -1
  23. package/build/components/editor/site-preview.cjs.map +1 -1
  24. package/build/components/editor/use-adapt-editor-to-canvas.cjs +0 -11
  25. package/build/components/editor/use-adapt-editor-to-canvas.cjs.map +3 -3
  26. package/build/components/layout/index.cjs +2 -2
  27. package/build/components/layout/index.cjs.map +3 -3
  28. package/build/components/media/index.cjs +1 -1
  29. package/build/components/media/index.cjs.map +1 -1
  30. package/build/components/more-menu/index.cjs +1 -1
  31. package/build/components/more-menu/index.cjs.map +1 -1
  32. package/build/components/more-menu/welcome-guide-menu-item.cjs +11 -3
  33. package/build/components/more-menu/welcome-guide-menu-item.cjs.map +4 -4
  34. package/build/components/page-patterns/actions.cjs +1 -1
  35. package/build/components/page-patterns/actions.cjs.map +1 -1
  36. package/build/components/page-patterns/delete-category-menu-item.cjs +1 -1
  37. package/build/components/page-patterns/delete-category-menu-item.cjs.map +1 -1
  38. package/build/components/page-patterns/fields.cjs +1 -1
  39. package/build/components/page-patterns/fields.cjs.map +1 -1
  40. package/build/components/page-patterns/index.cjs +1 -1
  41. package/build/components/page-patterns/index.cjs.map +1 -1
  42. package/build/components/page-patterns/rename-category-menu-item.cjs +1 -1
  43. package/build/components/page-patterns/rename-category-menu-item.cjs.map +1 -1
  44. package/build/components/page-templates/fields.cjs +3 -127
  45. package/build/components/page-templates/fields.cjs.map +4 -4
  46. package/build/components/page-templates/index.cjs +47 -231
  47. package/build/components/page-templates/index.cjs.map +4 -4
  48. package/build/components/pagination/index.cjs +1 -1
  49. package/build/components/pagination/index.cjs.map +1 -1
  50. package/build/components/plugin-template-setting-panel/index.cjs +1 -1
  51. package/build/components/plugin-template-setting-panel/index.cjs.map +1 -1
  52. package/build/components/post-list/index.cjs +1 -1
  53. package/build/components/post-list/index.cjs.map +1 -1
  54. package/build/components/post-list/quick-edit-modal.cjs +1 -1
  55. package/build/components/post-list/quick-edit-modal.cjs.map +1 -1
  56. package/build/components/resizable-frame/index.cjs +1 -1
  57. package/build/components/resizable-frame/index.cjs.map +1 -1
  58. package/build/components/save-button/index.cjs +1 -1
  59. package/build/components/save-button/index.cjs.map +1 -1
  60. package/build/components/save-hub/index.cjs +1 -1
  61. package/build/components/save-hub/index.cjs.map +1 -1
  62. package/build/components/save-panel/index.cjs +1 -1
  63. package/build/components/save-panel/index.cjs.map +1 -1
  64. package/build/components/sidebar/index.cjs +1 -1
  65. package/build/components/sidebar/index.cjs.map +1 -1
  66. package/build/components/sidebar-button/index.cjs +1 -1
  67. package/build/components/sidebar-button/index.cjs.map +1 -1
  68. package/build/components/sidebar-dataviews/index.cjs +1 -1
  69. package/build/components/sidebar-dataviews/index.cjs.map +1 -1
  70. package/build/components/sidebar-global-styles/index.cjs +3 -3
  71. package/build/components/sidebar-global-styles/index.cjs.map +3 -3
  72. package/build/components/sidebar-identity/index.cjs +8 -16
  73. package/build/components/sidebar-identity/index.cjs.map +3 -3
  74. package/build/components/sidebar-navigation-item/index.cjs +2 -9
  75. package/build/components/sidebar-navigation-item/index.cjs.map +3 -3
  76. package/build/components/sidebar-navigation-screen/index.cjs +1 -1
  77. package/build/components/sidebar-navigation-screen/index.cjs.map +1 -1
  78. package/build/components/sidebar-navigation-screen-details-footer/index.cjs +1 -1
  79. package/build/components/sidebar-navigation-screen-details-footer/index.cjs.map +1 -1
  80. package/build/components/sidebar-navigation-screen-global-styles/content.cjs +1 -1
  81. package/build/components/sidebar-navigation-screen-global-styles/content.cjs.map +1 -1
  82. package/build/components/sidebar-navigation-screen-global-styles/index.cjs +1 -1
  83. package/build/components/sidebar-navigation-screen-global-styles/index.cjs.map +1 -1
  84. package/build/components/sidebar-navigation-screen-identity/index.cjs +1 -1
  85. package/build/components/sidebar-navigation-screen-identity/index.cjs.map +1 -1
  86. package/build/components/sidebar-navigation-screen-main/index.cjs +1 -1
  87. package/build/components/sidebar-navigation-screen-main/index.cjs.map +1 -1
  88. package/build/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.cjs +1 -1
  89. package/build/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.cjs.map +1 -1
  90. package/build/components/sidebar-navigation-screen-navigation-menu/index.cjs +1 -1
  91. package/build/components/sidebar-navigation-screen-navigation-menu/index.cjs.map +1 -1
  92. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.cjs +1 -1
  93. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.cjs.map +1 -1
  94. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.cjs +1 -1
  95. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.cjs.map +1 -1
  96. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.cjs +1 -1
  97. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.cjs.map +1 -1
  98. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.cjs +1 -1
  99. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.cjs.map +1 -1
  100. package/build/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.cjs.map +1 -1
  101. package/build/components/sidebar-navigation-screen-navigation-menus/index.cjs +1 -1
  102. package/build/components/sidebar-navigation-screen-navigation-menus/index.cjs.map +2 -2
  103. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.cjs +1 -1
  104. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.cjs.map +1 -1
  105. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.cjs +1 -1
  106. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.cjs.map +2 -2
  107. package/build/components/sidebar-navigation-screen-patterns/category-item.cjs +1 -1
  108. package/build/components/sidebar-navigation-screen-patterns/category-item.cjs.map +1 -1
  109. package/build/components/sidebar-navigation-screen-patterns/index.cjs +1 -1
  110. package/build/components/sidebar-navigation-screen-patterns/index.cjs.map +1 -1
  111. package/build/components/sidebar-navigation-screen-templates-browse/content.cjs +35 -73
  112. package/build/components/sidebar-navigation-screen-templates-browse/content.cjs.map +4 -4
  113. package/build/components/sidebar-navigation-screen-templates-browse/index.cjs +2 -3
  114. package/build/components/sidebar-navigation-screen-templates-browse/index.cjs.map +4 -4
  115. package/build/components/sidebar-navigation-screen-unsupported/index.cjs +1 -1
  116. package/build/components/sidebar-navigation-screen-unsupported/index.cjs.map +1 -1
  117. package/build/components/site-editor-routes/home.cjs +1 -1
  118. package/build/components/site-editor-routes/home.cjs.map +1 -1
  119. package/build/components/site-editor-routes/identity.cjs +1 -1
  120. package/build/components/site-editor-routes/identity.cjs.map +1 -1
  121. package/build/components/site-editor-routes/navigation-item.cjs +1 -1
  122. package/build/components/site-editor-routes/navigation-item.cjs.map +1 -1
  123. package/build/components/site-editor-routes/navigation.cjs +1 -1
  124. package/build/components/site-editor-routes/navigation.cjs.map +1 -1
  125. package/build/components/site-editor-routes/notfound.cjs +1 -1
  126. package/build/components/site-editor-routes/notfound.cjs.map +1 -1
  127. package/build/components/site-editor-routes/page-item.cjs +1 -1
  128. package/build/components/site-editor-routes/page-item.cjs.map +1 -1
  129. package/build/components/site-editor-routes/pages.cjs +1 -1
  130. package/build/components/site-editor-routes/pages.cjs.map +1 -1
  131. package/build/components/site-editor-routes/pattern-item.cjs +1 -1
  132. package/build/components/site-editor-routes/pattern-item.cjs.map +1 -1
  133. package/build/components/site-editor-routes/patterns.cjs +1 -1
  134. package/build/components/site-editor-routes/patterns.cjs.map +1 -1
  135. package/build/components/site-editor-routes/stylebook.cjs +1 -1
  136. package/build/components/site-editor-routes/stylebook.cjs.map +1 -1
  137. package/build/components/site-editor-routes/styles.cjs +1 -1
  138. package/build/components/site-editor-routes/styles.cjs.map +1 -1
  139. package/build/components/site-editor-routes/template-item.cjs +1 -1
  140. package/build/components/site-editor-routes/template-item.cjs.map +1 -1
  141. package/build/components/site-editor-routes/template-part-item.cjs +1 -1
  142. package/build/components/site-editor-routes/template-part-item.cjs.map +1 -1
  143. package/build/components/site-editor-routes/templates.cjs +3 -5
  144. package/build/components/site-editor-routes/templates.cjs.map +4 -4
  145. package/build/components/site-hub/index.cjs +1 -1
  146. package/build/components/site-hub/index.cjs.map +1 -1
  147. package/build/components/welcome-guide/editor.cjs +1 -1
  148. package/build/components/welcome-guide/editor.cjs.map +1 -1
  149. package/build/components/welcome-guide/image.cjs +1 -1
  150. package/build/components/welcome-guide/image.cjs.map +1 -1
  151. package/build/components/welcome-guide/index.cjs +1 -1
  152. package/build/components/welcome-guide/index.cjs.map +1 -1
  153. package/build/components/welcome-guide/page.cjs +1 -1
  154. package/build/components/welcome-guide/page.cjs.map +1 -1
  155. package/build/components/welcome-guide/template.cjs +1 -1
  156. package/build/components/welcome-guide/template.cjs.map +1 -1
  157. package/build/deprecated.cjs +1 -1
  158. package/build/deprecated.cjs.map +1 -1
  159. package/build/index.cjs +1 -1
  160. package/build/index.cjs.map +1 -1
  161. package/build-module/components/add-new-pattern/index.mjs +1 -1
  162. package/build-module/components/add-new-pattern/index.mjs.map +1 -1
  163. package/build-module/components/add-new-post/index.mjs +1 -1
  164. package/build-module/components/add-new-post/index.mjs.map +1 -1
  165. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.mjs +1 -1
  166. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.mjs.map +1 -1
  167. package/build-module/components/add-new-template/add-custom-template-modal-content.mjs +4 -2
  168. package/build-module/components/add-new-template/add-custom-template-modal-content.mjs.map +3 -3
  169. package/build-module/components/add-new-template/index.mjs +8 -5
  170. package/build-module/components/add-new-template/index.mjs.map +3 -3
  171. package/build-module/components/add-new-template/utils.mjs +84 -9
  172. package/build-module/components/add-new-template/utils.mjs.map +2 -2
  173. package/build-module/components/app/index.mjs +1 -1
  174. package/build-module/components/app/index.mjs.map +1 -1
  175. package/build-module/components/canvas-loader/index.mjs +1 -1
  176. package/build-module/components/canvas-loader/index.mjs.map +1 -1
  177. package/build-module/components/dataviews-actions/index.mjs +1 -53
  178. package/build-module/components/dataviews-actions/index.mjs.map +2 -2
  179. package/build-module/components/editor/index.mjs +1 -1
  180. package/build-module/components/editor/index.mjs.map +1 -1
  181. package/build-module/components/editor/site-preview.mjs +1 -1
  182. package/build-module/components/editor/site-preview.mjs.map +1 -1
  183. package/build-module/components/editor/use-adapt-editor-to-canvas.mjs +0 -11
  184. package/build-module/components/editor/use-adapt-editor-to-canvas.mjs.map +2 -2
  185. package/build-module/components/layout/index.mjs +2 -2
  186. package/build-module/components/layout/index.mjs.map +3 -3
  187. package/build-module/components/media/index.mjs +1 -1
  188. package/build-module/components/media/index.mjs.map +1 -1
  189. package/build-module/components/more-menu/index.mjs +1 -1
  190. package/build-module/components/more-menu/index.mjs.map +1 -1
  191. package/build-module/components/more-menu/welcome-guide-menu-item.mjs +11 -3
  192. package/build-module/components/more-menu/welcome-guide-menu-item.mjs.map +3 -3
  193. package/build-module/components/page-patterns/actions.mjs +1 -1
  194. package/build-module/components/page-patterns/actions.mjs.map +1 -1
  195. package/build-module/components/page-patterns/delete-category-menu-item.mjs +1 -1
  196. package/build-module/components/page-patterns/delete-category-menu-item.mjs.map +1 -1
  197. package/build-module/components/page-patterns/fields.mjs +1 -1
  198. package/build-module/components/page-patterns/fields.mjs.map +1 -1
  199. package/build-module/components/page-patterns/index.mjs +1 -1
  200. package/build-module/components/page-patterns/index.mjs.map +1 -1
  201. package/build-module/components/page-patterns/rename-category-menu-item.mjs +1 -1
  202. package/build-module/components/page-patterns/rename-category-menu-item.mjs.map +1 -1
  203. package/build-module/components/page-templates/fields.mjs +4 -130
  204. package/build-module/components/page-templates/fields.mjs.map +4 -4
  205. package/build-module/components/page-templates/index.mjs +53 -254
  206. package/build-module/components/page-templates/index.mjs.map +3 -3
  207. package/build-module/components/pagination/index.mjs +1 -1
  208. package/build-module/components/pagination/index.mjs.map +1 -1
  209. package/build-module/components/plugin-template-setting-panel/index.mjs +1 -1
  210. package/build-module/components/plugin-template-setting-panel/index.mjs.map +1 -1
  211. package/build-module/components/post-list/index.mjs +1 -1
  212. package/build-module/components/post-list/index.mjs.map +1 -1
  213. package/build-module/components/post-list/quick-edit-modal.mjs +1 -1
  214. package/build-module/components/post-list/quick-edit-modal.mjs.map +1 -1
  215. package/build-module/components/resizable-frame/index.mjs +1 -1
  216. package/build-module/components/resizable-frame/index.mjs.map +1 -1
  217. package/build-module/components/save-button/index.mjs +1 -1
  218. package/build-module/components/save-button/index.mjs.map +1 -1
  219. package/build-module/components/save-hub/index.mjs +1 -1
  220. package/build-module/components/save-hub/index.mjs.map +1 -1
  221. package/build-module/components/save-panel/index.mjs +1 -1
  222. package/build-module/components/save-panel/index.mjs.map +1 -1
  223. package/build-module/components/sidebar/index.mjs +1 -1
  224. package/build-module/components/sidebar/index.mjs.map +1 -1
  225. package/build-module/components/sidebar-button/index.mjs +1 -1
  226. package/build-module/components/sidebar-button/index.mjs.map +1 -1
  227. package/build-module/components/sidebar-dataviews/index.mjs +1 -1
  228. package/build-module/components/sidebar-dataviews/index.mjs.map +1 -1
  229. package/build-module/components/sidebar-global-styles/index.mjs +3 -3
  230. package/build-module/components/sidebar-global-styles/index.mjs.map +3 -3
  231. package/build-module/components/sidebar-identity/index.mjs +8 -16
  232. package/build-module/components/sidebar-identity/index.mjs.map +3 -3
  233. package/build-module/components/sidebar-navigation-item/index.mjs +2 -9
  234. package/build-module/components/sidebar-navigation-item/index.mjs.map +3 -3
  235. package/build-module/components/sidebar-navigation-screen/index.mjs +1 -1
  236. package/build-module/components/sidebar-navigation-screen/index.mjs.map +1 -1
  237. package/build-module/components/sidebar-navigation-screen-details-footer/index.mjs +1 -1
  238. package/build-module/components/sidebar-navigation-screen-details-footer/index.mjs.map +1 -1
  239. package/build-module/components/sidebar-navigation-screen-global-styles/content.mjs +1 -1
  240. package/build-module/components/sidebar-navigation-screen-global-styles/content.mjs.map +1 -1
  241. package/build-module/components/sidebar-navigation-screen-global-styles/index.mjs +1 -1
  242. package/build-module/components/sidebar-navigation-screen-global-styles/index.mjs.map +1 -1
  243. package/build-module/components/sidebar-navigation-screen-identity/index.mjs +1 -1
  244. package/build-module/components/sidebar-navigation-screen-identity/index.mjs.map +1 -1
  245. package/build-module/components/sidebar-navigation-screen-main/index.mjs +1 -1
  246. package/build-module/components/sidebar-navigation-screen-main/index.mjs.map +1 -1
  247. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.mjs +1 -1
  248. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.mjs.map +1 -1
  249. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.mjs +1 -1
  250. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.mjs.map +1 -1
  251. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.mjs +1 -1
  252. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.mjs.map +1 -1
  253. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.mjs +1 -1
  254. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.mjs.map +1 -1
  255. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.mjs +1 -1
  256. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.mjs.map +1 -1
  257. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.mjs +1 -1
  258. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.mjs.map +1 -1
  259. package/build-module/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.mjs.map +1 -1
  260. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.mjs +1 -1
  261. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.mjs.map +2 -2
  262. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.mjs +1 -1
  263. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.mjs.map +1 -1
  264. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.mjs +1 -1
  265. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.mjs.map +2 -2
  266. package/build-module/components/sidebar-navigation-screen-patterns/category-item.mjs +1 -1
  267. package/build-module/components/sidebar-navigation-screen-patterns/category-item.mjs.map +1 -1
  268. package/build-module/components/sidebar-navigation-screen-patterns/index.mjs +1 -1
  269. package/build-module/components/sidebar-navigation-screen-patterns/index.mjs.map +1 -1
  270. package/build-module/components/sidebar-navigation-screen-templates-browse/content.mjs +43 -76
  271. package/build-module/components/sidebar-navigation-screen-templates-browse/content.mjs.map +3 -3
  272. package/build-module/components/sidebar-navigation-screen-templates-browse/index.mjs +2 -3
  273. package/build-module/components/sidebar-navigation-screen-templates-browse/index.mjs.map +3 -3
  274. package/build-module/components/sidebar-navigation-screen-unsupported/index.mjs +1 -1
  275. package/build-module/components/sidebar-navigation-screen-unsupported/index.mjs.map +1 -1
  276. package/build-module/components/site-editor-routes/home.mjs +1 -1
  277. package/build-module/components/site-editor-routes/home.mjs.map +1 -1
  278. package/build-module/components/site-editor-routes/identity.mjs +1 -1
  279. package/build-module/components/site-editor-routes/identity.mjs.map +1 -1
  280. package/build-module/components/site-editor-routes/navigation-item.mjs +1 -1
  281. package/build-module/components/site-editor-routes/navigation-item.mjs.map +1 -1
  282. package/build-module/components/site-editor-routes/navigation.mjs +1 -1
  283. package/build-module/components/site-editor-routes/navigation.mjs.map +1 -1
  284. package/build-module/components/site-editor-routes/notfound.mjs +1 -1
  285. package/build-module/components/site-editor-routes/notfound.mjs.map +1 -1
  286. package/build-module/components/site-editor-routes/page-item.mjs +1 -1
  287. package/build-module/components/site-editor-routes/page-item.mjs.map +1 -1
  288. package/build-module/components/site-editor-routes/pages.mjs +1 -1
  289. package/build-module/components/site-editor-routes/pages.mjs.map +1 -1
  290. package/build-module/components/site-editor-routes/pattern-item.mjs +1 -1
  291. package/build-module/components/site-editor-routes/pattern-item.mjs.map +1 -1
  292. package/build-module/components/site-editor-routes/patterns.mjs +1 -1
  293. package/build-module/components/site-editor-routes/patterns.mjs.map +1 -1
  294. package/build-module/components/site-editor-routes/stylebook.mjs +1 -1
  295. package/build-module/components/site-editor-routes/stylebook.mjs.map +1 -1
  296. package/build-module/components/site-editor-routes/styles.mjs +1 -1
  297. package/build-module/components/site-editor-routes/styles.mjs.map +1 -1
  298. package/build-module/components/site-editor-routes/template-item.mjs +1 -1
  299. package/build-module/components/site-editor-routes/template-item.mjs.map +1 -1
  300. package/build-module/components/site-editor-routes/template-part-item.mjs +1 -1
  301. package/build-module/components/site-editor-routes/template-part-item.mjs.map +1 -1
  302. package/build-module/components/site-editor-routes/templates.mjs +3 -5
  303. package/build-module/components/site-editor-routes/templates.mjs.map +3 -3
  304. package/build-module/components/site-hub/index.mjs +1 -1
  305. package/build-module/components/site-hub/index.mjs.map +1 -1
  306. package/build-module/components/welcome-guide/editor.mjs +1 -1
  307. package/build-module/components/welcome-guide/editor.mjs.map +1 -1
  308. package/build-module/components/welcome-guide/image.mjs +1 -1
  309. package/build-module/components/welcome-guide/image.mjs.map +1 -1
  310. package/build-module/components/welcome-guide/index.mjs +1 -1
  311. package/build-module/components/welcome-guide/index.mjs.map +1 -1
  312. package/build-module/components/welcome-guide/page.mjs +1 -1
  313. package/build-module/components/welcome-guide/page.mjs.map +1 -1
  314. package/build-module/components/welcome-guide/template.mjs +1 -1
  315. package/build-module/components/welcome-guide/template.mjs.map +1 -1
  316. package/build-module/deprecated.mjs +1 -1
  317. package/build-module/deprecated.mjs.map +1 -1
  318. package/build-module/index.mjs +1 -1
  319. package/build-module/index.mjs.map +1 -1
  320. package/build-style/style-rtl.css +31 -64
  321. package/build-style/style.css +31 -64
  322. package/package.json +42 -52
  323. package/src/components/add-new-template/style.scss +8 -21
  324. package/src/components/add-new-template/utils.js +118 -9
  325. package/src/components/dataviews-actions/index.js +0 -61
  326. package/src/components/editor/use-adapt-editor-to-canvas.js +0 -21
  327. package/src/components/layout/{index.js → index.jsx} +2 -1
  328. package/src/components/more-menu/{welcome-guide-menu-item.js → welcome-guide-menu-item.jsx} +8 -3
  329. package/src/components/page-templates/fields.jsx +51 -0
  330. package/src/components/page-templates/{index-legacy.js → index.jsx} +1 -1
  331. package/src/components/sidebar-global-styles/{index.js → index.jsx} +7 -5
  332. package/src/components/sidebar-global-styles/style.scss +6 -0
  333. package/src/components/sidebar-identity/{index.js → index.jsx} +9 -11
  334. package/src/components/sidebar-identity/style.scss +7 -0
  335. package/src/components/sidebar-navigation-item/{index.js → index.jsx} +1 -7
  336. package/src/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js +1 -1
  337. package/src/components/sidebar-navigation-screen-navigation-menus/{index.js → index.jsx} +1 -1
  338. package/src/components/sidebar-navigation-screen-navigation-menus/{navigation-menu-content.js → navigation-menu-content.jsx} +1 -1
  339. package/src/components/sidebar-navigation-screen-templates-browse/{index.js → index.jsx} +1 -8
  340. package/src/components/site-editor-routes/{templates.js → templates.jsx} +2 -19
  341. package/src/components/welcome-guide/style.scss +1 -1
  342. package/src/style.scss +1 -1
  343. package/src/utils/test/get-filtered-template-parts.js +1 -0
  344. package/build/components/add-new-template-legacy/add-custom-generic-template-modal-content.cjs +0 -107
  345. package/build/components/add-new-template-legacy/add-custom-generic-template-modal-content.cjs.map +0 -7
  346. package/build/components/add-new-template-legacy/add-custom-template-modal-content.cjs +0 -327
  347. package/build/components/add-new-template-legacy/add-custom-template-modal-content.cjs.map +0 -7
  348. package/build/components/add-new-template-legacy/index.cjs +0 -390
  349. package/build/components/add-new-template-legacy/index.cjs.map +0 -7
  350. package/build/components/add-new-template-legacy/utils.cjs +0 -623
  351. package/build/components/add-new-template-legacy/utils.cjs.map +0 -7
  352. package/build/components/page-templates/hooks.cjs +0 -94
  353. package/build/components/page-templates/hooks.cjs.map +0 -7
  354. package/build/components/page-templates/index-legacy.cjs +0 -167
  355. package/build/components/page-templates/index-legacy.cjs.map +0 -7
  356. package/build/components/page-templates/view-utils.cjs +0 -79
  357. package/build/components/page-templates/view-utils.cjs.map +0 -7
  358. package/build/components/sidebar-navigation-screen-templates-browse/content-legacy.cjs +0 -78
  359. package/build/components/sidebar-navigation-screen-templates-browse/content-legacy.cjs.map +0 -7
  360. package/build-module/components/add-new-template-legacy/add-custom-generic-template-modal-content.mjs +0 -91
  361. package/build-module/components/add-new-template-legacy/add-custom-generic-template-modal-content.mjs.map +0 -7
  362. package/build-module/components/add-new-template-legacy/add-custom-template-modal-content.mjs +0 -315
  363. package/build-module/components/add-new-template-legacy/add-custom-template-modal-content.mjs.map +0 -7
  364. package/build-module/components/add-new-template-legacy/index.mjs +0 -391
  365. package/build-module/components/add-new-template-legacy/index.mjs.map +0 -7
  366. package/build-module/components/add-new-template-legacy/utils.mjs +0 -592
  367. package/build-module/components/add-new-template-legacy/utils.mjs.map +0 -7
  368. package/build-module/components/page-templates/hooks.mjs +0 -74
  369. package/build-module/components/page-templates/hooks.mjs.map +0 -7
  370. package/build-module/components/page-templates/index-legacy.mjs +0 -136
  371. package/build-module/components/page-templates/index-legacy.mjs.map +0 -7
  372. package/build-module/components/page-templates/view-utils.mjs +0 -52
  373. package/build-module/components/page-templates/view-utils.mjs.map +0 -7
  374. package/build-module/components/sidebar-navigation-screen-templates-browse/content-legacy.mjs +0 -52
  375. package/build-module/components/sidebar-navigation-screen-templates-browse/content-legacy.mjs.map +0 -7
  376. package/src/components/add-new-template/add-custom-generic-template-modal-content.js +0 -85
  377. package/src/components/add-new-template/add-custom-template-modal-content.js +0 -304
  378. package/src/components/add-new-template/index.js +0 -435
  379. package/src/components/add-new-template-legacy/utils.js +0 -757
  380. package/src/components/page-templates/fields.js +0 -195
  381. package/src/components/page-templates/hooks.js +0 -93
  382. package/src/components/page-templates/index.js +0 -369
  383. package/src/components/page-templates/view-utils.js +0 -50
  384. package/src/components/sidebar-navigation-screen-templates-browse/content.js +0 -87
  385. package/src/components/sidebar-navigation-screen-templates-browse/style.scss +0 -6
  386. /package/src/components/add-new-pattern/{index.js → index.jsx} +0 -0
  387. /package/src/components/add-new-post/{index.js → index.jsx} +0 -0
  388. /package/src/components/{add-new-template-legacy/add-custom-generic-template-modal-content.js → add-new-template/add-custom-generic-template-modal-content.jsx} +0 -0
  389. /package/src/components/{add-new-template-legacy/add-custom-template-modal-content.js → add-new-template/add-custom-template-modal-content.jsx} +0 -0
  390. /package/src/components/{add-new-template-legacy/index.js → add-new-template/index.jsx} +0 -0
  391. /package/src/components/app/{index.js → index.jsx} +0 -0
  392. /package/src/components/canvas-loader/{index.js → index.jsx} +0 -0
  393. /package/src/components/editor/{index.js → index.jsx} +0 -0
  394. /package/src/components/editor/{site-preview.js → site-preview.jsx} +0 -0
  395. /package/src/components/media/{index.js → index.jsx} +0 -0
  396. /package/src/components/more-menu/{index.js → index.jsx} +0 -0
  397. /package/src/components/page-patterns/{actions.js → actions.jsx} +0 -0
  398. /package/src/components/page-patterns/{delete-category-menu-item.js → delete-category-menu-item.jsx} +0 -0
  399. /package/src/components/page-patterns/{fields.js → fields.jsx} +0 -0
  400. /package/src/components/page-patterns/{index.js → index.jsx} +0 -0
  401. /package/src/components/page-patterns/{rename-category-menu-item.js → rename-category-menu-item.jsx} +0 -0
  402. /package/src/components/pagination/{index.js → index.jsx} +0 -0
  403. /package/src/components/plugin-template-setting-panel/{index.js → index.jsx} +0 -0
  404. /package/src/components/post-list/{index.js → index.jsx} +0 -0
  405. /package/src/components/post-list/{quick-edit-modal.js → quick-edit-modal.jsx} +0 -0
  406. /package/src/components/resizable-frame/{index.js → index.jsx} +0 -0
  407. /package/src/components/save-button/{index.js → index.jsx} +0 -0
  408. /package/src/components/save-hub/{index.js → index.jsx} +0 -0
  409. /package/src/components/save-panel/{index.js → index.jsx} +0 -0
  410. /package/src/components/sidebar/{index.js → index.jsx} +0 -0
  411. /package/src/components/sidebar-button/{index.js → index.jsx} +0 -0
  412. /package/src/components/sidebar-dataviews/{index.js → index.jsx} +0 -0
  413. /package/src/components/sidebar-navigation-screen/{index.js → index.jsx} +0 -0
  414. /package/src/components/sidebar-navigation-screen-details-footer/{index.js → index.jsx} +0 -0
  415. /package/src/components/sidebar-navigation-screen-global-styles/{content.js → content.jsx} +0 -0
  416. /package/src/components/sidebar-navigation-screen-global-styles/{index.js → index.jsx} +0 -0
  417. /package/src/components/sidebar-navigation-screen-identity/{index.js → index.jsx} +0 -0
  418. /package/src/components/sidebar-navigation-screen-main/{index.js → index.jsx} +0 -0
  419. /package/src/components/sidebar-navigation-screen-navigation-menu/{delete-confirm-dialog.js → delete-confirm-dialog.jsx} +0 -0
  420. /package/src/components/sidebar-navigation-screen-navigation-menu/{index.js → index.jsx} +0 -0
  421. /package/src/components/sidebar-navigation-screen-navigation-menu/{more-menu.js → more-menu.jsx} +0 -0
  422. /package/src/components/sidebar-navigation-screen-navigation-menu/{navigation-menu-editor.js → navigation-menu-editor.jsx} +0 -0
  423. /package/src/components/sidebar-navigation-screen-navigation-menu/{rename-modal.js → rename-modal.jsx} +0 -0
  424. /package/src/components/sidebar-navigation-screen-navigation-menu/{single-navigation-menu.js → single-navigation-menu.jsx} +0 -0
  425. /package/src/components/sidebar-navigation-screen-navigation-menus/{leaf-more-menu.js → leaf-more-menu.jsx} +0 -0
  426. /package/src/components/sidebar-navigation-screen-patterns/{category-item.js → category-item.jsx} +0 -0
  427. /package/src/components/sidebar-navigation-screen-patterns/{index.js → index.jsx} +0 -0
  428. /package/src/components/sidebar-navigation-screen-templates-browse/{content-legacy.js → content.jsx} +0 -0
  429. /package/src/components/sidebar-navigation-screen-unsupported/{index.js → index.jsx} +0 -0
  430. /package/src/components/site-editor-routes/{home.js → home.jsx} +0 -0
  431. /package/src/components/site-editor-routes/{identity.js → identity.jsx} +0 -0
  432. /package/src/components/site-editor-routes/{navigation-item.js → navigation-item.jsx} +0 -0
  433. /package/src/components/site-editor-routes/{navigation.js → navigation.jsx} +0 -0
  434. /package/src/components/site-editor-routes/{notfound.js → notfound.jsx} +0 -0
  435. /package/src/components/site-editor-routes/{page-item.js → page-item.jsx} +0 -0
  436. /package/src/components/site-editor-routes/{pages.js → pages.jsx} +0 -0
  437. /package/src/components/site-editor-routes/{pattern-item.js → pattern-item.jsx} +0 -0
  438. /package/src/components/site-editor-routes/{patterns.js → patterns.jsx} +0 -0
  439. /package/src/components/site-editor-routes/{stylebook.js → stylebook.jsx} +0 -0
  440. /package/src/components/site-editor-routes/{styles.js → styles.jsx} +0 -0
  441. /package/src/components/site-editor-routes/{template-item.js → template-item.jsx} +0 -0
  442. /package/src/components/site-editor-routes/{template-part-item.js → template-part-item.jsx} +0 -0
  443. /package/src/components/site-hub/{index.js → index.jsx} +0 -0
  444. /package/src/components/welcome-guide/{editor.js → editor.jsx} +0 -0
  445. /package/src/components/welcome-guide/{image.js → image.jsx} +0 -0
  446. /package/src/components/welcome-guide/{index.js → index.jsx} +0 -0
  447. /package/src/components/welcome-guide/{page.js → page.jsx} +0 -0
  448. /package/src/components/welcome-guide/{template.js → template.jsx} +0 -0
  449. /package/src/{deprecated.js → deprecated.jsx} +0 -0
  450. /package/src/{index.js → index.jsx} +0 -0
@@ -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";
@@ -6,7 +6,6 @@ import Editor from "../editor/index.mjs";
6
6
  import SidebarNavigationScreenTemplatesBrowse from "../sidebar-navigation-screen-templates-browse/index.mjs";
7
7
  import SidebarNavigationScreenUnsupported from "../sidebar-navigation-screen-unsupported/index.mjs";
8
8
  import PageTemplates from "../page-templates/index.mjs";
9
- import PageTemplatesLegacy from "../page-templates/index-legacy.mjs";
10
9
  import { unlock } from "../../lock-unlock.mjs";
11
10
  import { isThemeDataLoaded } from "./utils.mjs";
12
11
  import { Fragment, jsx } from "react/jsx-runtime";
@@ -42,7 +41,7 @@ var templatesRoute = {
42
41
  if (!isBlockTheme) {
43
42
  return void 0;
44
43
  }
45
- return window?.__experimentalTemplateActivate ? /* @__PURE__ */ jsx(PageTemplates, {}) : /* @__PURE__ */ jsx(PageTemplatesLegacy, {});
44
+ return /* @__PURE__ */ jsx(PageTemplates, {});
46
45
  },
47
46
  async preview({ query, siteData }) {
48
47
  const isBlockTheme = siteData.currentTheme?.is_block_theme;
@@ -66,8 +65,7 @@ var templatesRoute = {
66
65
  if (!isBlockTheme) {
67
66
  return void 0;
68
67
  }
69
- const isTemplateActivateEnabled = typeof window !== "undefined" && window.__experimentalTemplateActivate;
70
- return isTemplateActivateEnabled ? /* @__PURE__ */ jsx(PageTemplates, {}) : /* @__PURE__ */ jsx(PageTemplatesLegacy, {});
68
+ return /* @__PURE__ */ jsx(PageTemplates, {});
71
69
  }
72
70
  },
73
71
  widths: {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/site-editor-routes/templates.js"],
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
- "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;",
3
+ "sources": ["../../../src/components/site-editor-routes/templates.jsx"],
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 { 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\treturn <PageTemplates />;\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\treturn <PageTemplates />;\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
+ "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,SAAS,cAAc;AACvB,SAAS,yBAAyB;AA8B9B,SAsBO,UAtBP;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;AACA,aAAO,oBAAC,iBAAc;AAAA,IACvB;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;AACA,aAAO,oBAAC,iBAAc;AAAA,IACvB;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": []
7
7
  }
@@ -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"]