@wordpress/edit-site 7.1.0 → 7.2.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 (386) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +0 -7
  3. package/build/components/add-new-pattern/index.cjs.map +2 -2
  4. package/build/components/add-new-post/index.cjs.map +2 -2
  5. package/build/components/add-new-template/add-custom-generic-template-modal-content.cjs.map +2 -2
  6. package/build/components/add-new-template/add-custom-template-modal-content.cjs.map +2 -2
  7. package/build/components/add-new-template/index.cjs.map +2 -2
  8. package/build/components/add-new-template/utils.cjs.map +2 -2
  9. package/build/components/add-new-template-legacy/add-custom-generic-template-modal-content.cjs.map +2 -2
  10. package/build/components/add-new-template-legacy/add-custom-template-modal-content.cjs.map +2 -2
  11. package/build/components/add-new-template-legacy/index.cjs.map +2 -2
  12. package/build/components/add-new-template-legacy/utils.cjs.map +2 -2
  13. package/build/components/app/index.cjs.map +2 -2
  14. package/build/components/block-editor/use-editor-iframe-props.cjs.map +2 -2
  15. package/build/components/block-editor/use-navigate-to-entity-record.cjs.map +2 -2
  16. package/build/components/block-editor/use-site-editor-settings.cjs.map +2 -2
  17. package/build/components/block-editor/use-viewport-sync.cjs.map +2 -2
  18. package/build/components/canvas-loader/index.cjs.map +2 -2
  19. package/build/components/dataviews-actions/index.cjs.map +2 -2
  20. package/build/components/editor/index.cjs +6 -5
  21. package/build/components/editor/index.cjs.map +3 -3
  22. package/build/components/editor/site-preview.cjs.map +2 -2
  23. package/build/components/editor/use-adapt-editor-to-canvas.cjs.map +2 -2
  24. package/build/components/editor/use-editor-title.cjs.map +2 -2
  25. package/build/components/editor/use-resolve-edited-entity.cjs.map +2 -2
  26. package/build/components/editor/use-revisions-url-sync.cjs +122 -0
  27. package/build/components/editor/use-revisions-url-sync.cjs.map +7 -0
  28. package/build/components/layout/animation.cjs.map +2 -2
  29. package/build/components/layout/hooks.cjs.map +2 -2
  30. package/build/components/layout/index.cjs +0 -1
  31. package/build/components/layout/index.cjs.map +2 -2
  32. package/build/components/media/index.cjs.map +2 -2
  33. package/build/components/more-menu/index.cjs.map +2 -2
  34. package/build/components/more-menu/site-export.cjs.map +2 -2
  35. package/build/components/more-menu/welcome-guide-menu-item.cjs.map +2 -2
  36. package/build/components/page-patterns/actions.cjs.map +2 -2
  37. package/build/components/page-patterns/delete-category-menu-item.cjs.map +2 -2
  38. package/build/components/page-patterns/fields.cjs.map +2 -2
  39. package/build/components/page-patterns/index.cjs.map +2 -2
  40. package/build/components/page-patterns/rename-category-menu-item.cjs.map +2 -2
  41. package/build/components/page-patterns/search-items.cjs.map +2 -2
  42. package/build/components/page-patterns/use-pattern-settings.cjs.map +2 -2
  43. package/build/components/page-patterns/use-patterns.cjs.map +2 -2
  44. package/build/components/page-templates/fields.cjs.map +2 -2
  45. package/build/components/page-templates/hooks.cjs.map +2 -2
  46. package/build/components/page-templates/index-legacy.cjs.map +2 -2
  47. package/build/components/page-templates/index.cjs.map +2 -2
  48. package/build/components/pagination/index.cjs.map +2 -2
  49. package/build/components/plugin-template-setting-panel/index.cjs.map +2 -2
  50. package/build/components/post-list/index.cjs.map +2 -2
  51. package/build/components/post-list/quick-edit-modal.cjs.map +2 -2
  52. package/build/components/post-list/use-notes-count.cjs.map +2 -2
  53. package/build/components/resizable-frame/index.cjs.map +2 -2
  54. package/build/components/routes/use-title.cjs.map +2 -2
  55. package/build/components/save-button/index.cjs.map +2 -2
  56. package/build/components/save-hub/index.cjs.map +2 -2
  57. package/build/components/save-keyboard-shortcut/index.cjs.map +2 -2
  58. package/build/components/save-panel/index.cjs.map +2 -2
  59. package/build/components/sidebar/index.cjs.map +2 -2
  60. package/build/components/sidebar-button/index.cjs.map +2 -2
  61. package/build/components/sidebar-dataviews/index.cjs.map +2 -2
  62. package/build/components/sidebar-global-styles/index.cjs.map +2 -2
  63. package/build/components/sidebar-identity/index.cjs +5 -2
  64. package/build/components/sidebar-identity/index.cjs.map +2 -2
  65. package/build/components/sidebar-navigation-item/index.cjs.map +2 -2
  66. package/build/components/sidebar-navigation-screen/index.cjs.map +2 -2
  67. package/build/components/sidebar-navigation-screen-details-footer/index.cjs.map +2 -2
  68. package/build/components/sidebar-navigation-screen-global-styles/content.cjs.map +2 -2
  69. package/build/components/sidebar-navigation-screen-global-styles/index.cjs.map +2 -2
  70. package/build/components/sidebar-navigation-screen-identity/index.cjs.map +2 -2
  71. package/build/components/sidebar-navigation-screen-main/index.cjs.map +2 -2
  72. package/build/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.cjs.map +2 -2
  73. package/build/components/sidebar-navigation-screen-navigation-menu/index.cjs.map +2 -2
  74. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.cjs.map +2 -2
  75. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.cjs.map +2 -2
  76. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.cjs.map +2 -2
  77. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.cjs.map +2 -2
  78. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.cjs.map +2 -2
  79. package/build/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.cjs.map +2 -2
  80. package/build/components/sidebar-navigation-screen-navigation-menus/index.cjs.map +2 -2
  81. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.cjs +24 -25
  82. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.cjs.map +2 -2
  83. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.cjs.map +2 -2
  84. package/build/components/sidebar-navigation-screen-patterns/category-item.cjs.map +2 -2
  85. package/build/components/sidebar-navigation-screen-patterns/index.cjs.map +2 -2
  86. package/build/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.cjs.map +2 -2
  87. package/build/components/sidebar-navigation-screen-patterns/use-pattern-categories.cjs.map +2 -2
  88. package/build/components/sidebar-navigation-screen-patterns/use-template-part-areas.cjs.map +2 -2
  89. package/build/components/sidebar-navigation-screen-patterns/use-theme-patterns.cjs.map +2 -2
  90. package/build/components/sidebar-navigation-screen-templates-browse/content-legacy.cjs.map +2 -2
  91. package/build/components/sidebar-navigation-screen-templates-browse/content.cjs +1 -1
  92. package/build/components/sidebar-navigation-screen-templates-browse/content.cjs.map +2 -2
  93. package/build/components/sidebar-navigation-screen-templates-browse/index.cjs.map +2 -2
  94. package/build/components/sidebar-navigation-screen-unsupported/index.cjs.map +2 -2
  95. package/build/components/site-editor-routes/home.cjs.map +2 -2
  96. package/build/components/site-editor-routes/identity.cjs.map +2 -2
  97. package/build/components/site-editor-routes/index.cjs.map +2 -2
  98. package/build/components/site-editor-routes/navigation-item.cjs.map +2 -2
  99. package/build/components/site-editor-routes/navigation.cjs.map +2 -2
  100. package/build/components/site-editor-routes/notfound.cjs.map +2 -2
  101. package/build/components/site-editor-routes/page-item.cjs.map +2 -2
  102. package/build/components/site-editor-routes/pages.cjs.map +2 -2
  103. package/build/components/site-editor-routes/pattern-item.cjs.map +2 -2
  104. package/build/components/site-editor-routes/patterns.cjs.map +2 -2
  105. package/build/components/site-editor-routes/stylebook.cjs.map +2 -2
  106. package/build/components/site-editor-routes/styles.cjs.map +2 -2
  107. package/build/components/site-editor-routes/template-item.cjs.map +2 -2
  108. package/build/components/site-editor-routes/template-part-item.cjs.map +2 -2
  109. package/build/components/site-editor-routes/templates.cjs.map +2 -2
  110. package/build/components/site-hub/index.cjs.map +2 -2
  111. package/build/components/welcome-guide/editor.cjs.map +2 -2
  112. package/build/components/welcome-guide/index.cjs.map +2 -2
  113. package/build/components/welcome-guide/page.cjs.map +2 -2
  114. package/build/components/welcome-guide/template.cjs.map +2 -2
  115. package/build/deprecated.cjs.map +2 -2
  116. package/build/hooks/commands/use-common-commands.cjs.map +2 -2
  117. package/build/hooks/commands/use-set-command-context.cjs.map +2 -2
  118. package/build/index.cjs.map +2 -2
  119. package/build/lock-unlock.cjs.map +2 -2
  120. package/build/store/actions.cjs.map +2 -2
  121. package/build/store/index.cjs.map +2 -2
  122. package/build/store/reducer.cjs.map +2 -2
  123. package/build/store/selectors.cjs.map +2 -2
  124. package/build/utils/constants.cjs.map +2 -2
  125. package/build/utils/get-filtered-template-parts.cjs.map +2 -2
  126. package/build/utils/is-previewing-theme.cjs.map +2 -2
  127. package/build/utils/is-template-removable.cjs.map +2 -2
  128. package/build/utils/is-template-revertable.cjs.map +2 -2
  129. package/build/utils/use-activate-theme.cjs.map +2 -2
  130. package/build/utils/use-actual-current-theme.cjs.map +2 -2
  131. package/build-module/components/add-new-pattern/index.mjs.map +2 -2
  132. package/build-module/components/add-new-post/index.mjs.map +2 -2
  133. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.mjs.map +2 -2
  134. package/build-module/components/add-new-template/add-custom-template-modal-content.mjs.map +2 -2
  135. package/build-module/components/add-new-template/index.mjs.map +2 -2
  136. package/build-module/components/add-new-template/utils.mjs.map +2 -2
  137. package/build-module/components/add-new-template-legacy/add-custom-generic-template-modal-content.mjs.map +2 -2
  138. package/build-module/components/add-new-template-legacy/add-custom-template-modal-content.mjs.map +2 -2
  139. package/build-module/components/add-new-template-legacy/index.mjs.map +2 -2
  140. package/build-module/components/add-new-template-legacy/utils.mjs.map +2 -2
  141. package/build-module/components/app/index.mjs.map +2 -2
  142. package/build-module/components/block-editor/use-editor-iframe-props.mjs.map +2 -2
  143. package/build-module/components/block-editor/use-navigate-to-entity-record.mjs.map +2 -2
  144. package/build-module/components/block-editor/use-site-editor-settings.mjs.map +2 -2
  145. package/build-module/components/block-editor/use-viewport-sync.mjs.map +2 -2
  146. package/build-module/components/canvas-loader/index.mjs.map +2 -2
  147. package/build-module/components/dataviews-actions/index.mjs.map +2 -2
  148. package/build-module/components/editor/index.mjs +6 -5
  149. package/build-module/components/editor/index.mjs.map +2 -2
  150. package/build-module/components/editor/site-preview.mjs.map +2 -2
  151. package/build-module/components/editor/use-adapt-editor-to-canvas.mjs.map +2 -2
  152. package/build-module/components/editor/use-editor-title.mjs.map +2 -2
  153. package/build-module/components/editor/use-resolve-edited-entity.mjs.map +2 -2
  154. package/build-module/components/editor/use-revisions-url-sync.mjs +101 -0
  155. package/build-module/components/editor/use-revisions-url-sync.mjs.map +7 -0
  156. package/build-module/components/layout/animation.mjs.map +2 -2
  157. package/build-module/components/layout/hooks.mjs.map +2 -2
  158. package/build-module/components/layout/index.mjs +0 -1
  159. package/build-module/components/layout/index.mjs.map +2 -2
  160. package/build-module/components/media/index.mjs.map +2 -2
  161. package/build-module/components/more-menu/index.mjs.map +2 -2
  162. package/build-module/components/more-menu/site-export.mjs.map +2 -2
  163. package/build-module/components/more-menu/welcome-guide-menu-item.mjs.map +2 -2
  164. package/build-module/components/page-patterns/actions.mjs.map +2 -2
  165. package/build-module/components/page-patterns/delete-category-menu-item.mjs.map +2 -2
  166. package/build-module/components/page-patterns/fields.mjs.map +2 -2
  167. package/build-module/components/page-patterns/index.mjs.map +2 -2
  168. package/build-module/components/page-patterns/rename-category-menu-item.mjs.map +2 -2
  169. package/build-module/components/page-patterns/search-items.mjs.map +2 -2
  170. package/build-module/components/page-patterns/use-pattern-settings.mjs.map +2 -2
  171. package/build-module/components/page-patterns/use-patterns.mjs.map +2 -2
  172. package/build-module/components/page-templates/fields.mjs.map +2 -2
  173. package/build-module/components/page-templates/hooks.mjs.map +2 -2
  174. package/build-module/components/page-templates/index-legacy.mjs.map +2 -2
  175. package/build-module/components/page-templates/index.mjs.map +2 -2
  176. package/build-module/components/pagination/index.mjs.map +2 -2
  177. package/build-module/components/plugin-template-setting-panel/index.mjs.map +2 -2
  178. package/build-module/components/post-list/index.mjs.map +2 -2
  179. package/build-module/components/post-list/quick-edit-modal.mjs.map +2 -2
  180. package/build-module/components/post-list/use-notes-count.mjs.map +2 -2
  181. package/build-module/components/resizable-frame/index.mjs.map +2 -2
  182. package/build-module/components/routes/use-title.mjs.map +2 -2
  183. package/build-module/components/save-button/index.mjs.map +2 -2
  184. package/build-module/components/save-hub/index.mjs.map +2 -2
  185. package/build-module/components/save-keyboard-shortcut/index.mjs.map +2 -2
  186. package/build-module/components/save-panel/index.mjs.map +2 -2
  187. package/build-module/components/sidebar/index.mjs.map +2 -2
  188. package/build-module/components/sidebar-button/index.mjs.map +2 -2
  189. package/build-module/components/sidebar-dataviews/index.mjs.map +2 -2
  190. package/build-module/components/sidebar-global-styles/index.mjs.map +2 -2
  191. package/build-module/components/sidebar-identity/index.mjs +5 -2
  192. package/build-module/components/sidebar-identity/index.mjs.map +2 -2
  193. package/build-module/components/sidebar-navigation-item/index.mjs.map +2 -2
  194. package/build-module/components/sidebar-navigation-screen/index.mjs.map +2 -2
  195. package/build-module/components/sidebar-navigation-screen-details-footer/index.mjs.map +2 -2
  196. package/build-module/components/sidebar-navigation-screen-global-styles/content.mjs.map +2 -2
  197. package/build-module/components/sidebar-navigation-screen-global-styles/index.mjs.map +2 -2
  198. package/build-module/components/sidebar-navigation-screen-identity/index.mjs.map +2 -2
  199. package/build-module/components/sidebar-navigation-screen-main/index.mjs.map +2 -2
  200. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.mjs.map +2 -2
  201. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.mjs.map +2 -2
  202. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.mjs.map +2 -2
  203. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.mjs.map +2 -2
  204. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.mjs.map +2 -2
  205. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.mjs.map +2 -2
  206. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.mjs.map +2 -2
  207. package/build-module/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.mjs.map +2 -2
  208. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.mjs.map +2 -2
  209. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.mjs +24 -25
  210. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.mjs.map +2 -2
  211. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.mjs.map +2 -2
  212. package/build-module/components/sidebar-navigation-screen-patterns/category-item.mjs.map +2 -2
  213. package/build-module/components/sidebar-navigation-screen-patterns/index.mjs.map +2 -2
  214. package/build-module/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.mjs.map +2 -2
  215. package/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.mjs.map +2 -2
  216. package/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.mjs.map +2 -2
  217. package/build-module/components/sidebar-navigation-screen-patterns/use-theme-patterns.mjs.map +2 -2
  218. package/build-module/components/sidebar-navigation-screen-templates-browse/content-legacy.mjs.map +2 -2
  219. package/build-module/components/sidebar-navigation-screen-templates-browse/content.mjs +1 -1
  220. package/build-module/components/sidebar-navigation-screen-templates-browse/content.mjs.map +2 -2
  221. package/build-module/components/sidebar-navigation-screen-templates-browse/index.mjs.map +2 -2
  222. package/build-module/components/sidebar-navigation-screen-unsupported/index.mjs.map +2 -2
  223. package/build-module/components/site-editor-routes/home.mjs.map +2 -2
  224. package/build-module/components/site-editor-routes/identity.mjs.map +2 -2
  225. package/build-module/components/site-editor-routes/index.mjs.map +2 -2
  226. package/build-module/components/site-editor-routes/navigation-item.mjs.map +2 -2
  227. package/build-module/components/site-editor-routes/navigation.mjs.map +2 -2
  228. package/build-module/components/site-editor-routes/notfound.mjs.map +2 -2
  229. package/build-module/components/site-editor-routes/page-item.mjs.map +2 -2
  230. package/build-module/components/site-editor-routes/pages.mjs.map +2 -2
  231. package/build-module/components/site-editor-routes/pattern-item.mjs.map +2 -2
  232. package/build-module/components/site-editor-routes/patterns.mjs.map +2 -2
  233. package/build-module/components/site-editor-routes/stylebook.mjs.map +2 -2
  234. package/build-module/components/site-editor-routes/styles.mjs.map +2 -2
  235. package/build-module/components/site-editor-routes/template-item.mjs.map +2 -2
  236. package/build-module/components/site-editor-routes/template-part-item.mjs.map +2 -2
  237. package/build-module/components/site-editor-routes/templates.mjs.map +2 -2
  238. package/build-module/components/site-hub/index.mjs.map +2 -2
  239. package/build-module/components/welcome-guide/editor.mjs.map +2 -2
  240. package/build-module/components/welcome-guide/index.mjs.map +2 -2
  241. package/build-module/components/welcome-guide/page.mjs.map +2 -2
  242. package/build-module/components/welcome-guide/template.mjs.map +2 -2
  243. package/build-module/deprecated.mjs.map +2 -2
  244. package/build-module/hooks/commands/use-common-commands.mjs.map +2 -2
  245. package/build-module/hooks/commands/use-set-command-context.mjs.map +2 -2
  246. package/build-module/index.mjs.map +2 -2
  247. package/build-module/lock-unlock.mjs.map +2 -2
  248. package/build-module/store/actions.mjs.map +2 -2
  249. package/build-module/store/index.mjs.map +2 -2
  250. package/build-module/store/reducer.mjs.map +2 -2
  251. package/build-module/store/selectors.mjs.map +2 -2
  252. package/build-module/utils/constants.mjs.map +2 -2
  253. package/build-module/utils/get-filtered-template-parts.mjs.map +2 -2
  254. package/build-module/utils/is-previewing-theme.mjs.map +2 -2
  255. package/build-module/utils/is-template-removable.mjs.map +2 -2
  256. package/build-module/utils/is-template-revertable.mjs.map +2 -2
  257. package/build-module/utils/use-activate-theme.mjs.map +2 -2
  258. package/build-module/utils/use-actual-current-theme.mjs.map +2 -2
  259. package/build-style/style-rtl.css +60 -14
  260. package/build-style/style.css +60 -14
  261. package/package.json +48 -48
  262. package/src/components/add-new-pattern/index.js +0 -7
  263. package/src/components/add-new-post/index.js +0 -3
  264. package/src/components/add-new-template/add-custom-generic-template-modal-content.js +0 -7
  265. package/src/components/add-new-template/add-custom-template-modal-content.js +0 -7
  266. package/src/components/add-new-template/index.js +0 -15
  267. package/src/components/add-new-template/utils.js +0 -7
  268. package/src/components/add-new-template-legacy/add-custom-generic-template-modal-content.js +0 -7
  269. package/src/components/add-new-template-legacy/add-custom-template-modal-content.js +0 -7
  270. package/src/components/add-new-template-legacy/index.js +0 -15
  271. package/src/components/add-new-template-legacy/utils.js +0 -7
  272. package/src/components/app/index.js +0 -7
  273. package/src/components/block-editor/use-editor-iframe-props.js +0 -11
  274. package/src/components/block-editor/use-navigate-to-entity-record.js +0 -7
  275. package/src/components/block-editor/use-site-editor-settings.js +0 -7
  276. package/src/components/block-editor/use-viewport-sync.js +0 -7
  277. package/src/components/canvas-loader/index.js +0 -7
  278. package/src/components/dataviews-actions/index.js +0 -7
  279. package/src/components/editor/index.js +6 -12
  280. package/src/components/editor/site-preview.js +0 -3
  281. package/src/components/editor/use-adapt-editor-to-canvas.js +0 -7
  282. package/src/components/editor/use-editor-title.js +0 -7
  283. package/src/components/editor/use-resolve-edited-entity.js +0 -7
  284. package/src/components/editor/use-revisions-url-sync.js +132 -0
  285. package/src/components/layout/animation.js +0 -7
  286. package/src/components/layout/hooks.js +0 -3
  287. package/src/components/layout/index.js +0 -12
  288. package/src/components/media/index.js +0 -3
  289. package/src/components/more-menu/index.js +0 -7
  290. package/src/components/more-menu/site-export.js +0 -3
  291. package/src/components/more-menu/welcome-guide-menu-item.js +0 -3
  292. package/src/components/page-patterns/actions.js +0 -7
  293. package/src/components/page-patterns/delete-category-menu-item.js +0 -7
  294. package/src/components/page-patterns/fields.js +0 -7
  295. package/src/components/page-patterns/index.js +0 -7
  296. package/src/components/page-patterns/rename-category-menu-item.js +0 -10
  297. package/src/components/page-patterns/search-items.js +0 -12
  298. package/src/components/page-patterns/style.scss +3 -0
  299. package/src/components/page-patterns/use-pattern-settings.js +0 -7
  300. package/src/components/page-patterns/use-patterns.js +0 -7
  301. package/src/components/page-templates/fields.js +0 -11
  302. package/src/components/page-templates/hooks.js +0 -7
  303. package/src/components/page-templates/index-legacy.js +0 -7
  304. package/src/components/page-templates/index.js +0 -7
  305. package/src/components/pagination/index.js +0 -7
  306. package/src/components/plugin-template-setting-panel/index.js +0 -4
  307. package/src/components/post-list/index.js +0 -9
  308. package/src/components/post-list/quick-edit-modal.js +0 -7
  309. package/src/components/post-list/use-notes-count.js +0 -3
  310. package/src/components/resizable-frame/index.js +0 -11
  311. package/src/components/routes/use-title.js +0 -7
  312. package/src/components/save-button/index.js +0 -7
  313. package/src/components/save-hub/index.js +0 -7
  314. package/src/components/save-keyboard-shortcut/index.js +0 -7
  315. package/src/components/save-panel/index.js +0 -11
  316. package/src/components/sidebar/index.js +0 -7
  317. package/src/components/sidebar-button/index.js +0 -7
  318. package/src/components/sidebar-dataviews/index.js +0 -7
  319. package/src/components/sidebar-global-styles/index.js +0 -7
  320. package/src/components/sidebar-identity/index.js +3 -3
  321. package/src/components/sidebar-navigation-item/index.js +0 -11
  322. package/src/components/sidebar-navigation-item/style.scss +3 -10
  323. package/src/components/sidebar-navigation-screen/index.js +0 -11
  324. package/src/components/sidebar-navigation-screen-details-footer/index.js +0 -7
  325. package/src/components/sidebar-navigation-screen-global-styles/content.js +0 -7
  326. package/src/components/sidebar-navigation-screen-global-styles/index.js +0 -7
  327. package/src/components/sidebar-navigation-screen-identity/index.js +0 -7
  328. package/src/components/sidebar-navigation-screen-main/index.js +0 -7
  329. package/src/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js +0 -3
  330. package/src/components/sidebar-navigation-screen-navigation-menu/index.js +0 -7
  331. package/src/components/sidebar-navigation-screen-navigation-menu/more-menu.js +0 -7
  332. package/src/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +0 -7
  333. package/src/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +0 -3
  334. package/src/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +0 -6
  335. package/src/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +0 -7
  336. package/src/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js +0 -3
  337. package/src/components/sidebar-navigation-screen-navigation-menus/index.js +0 -8
  338. package/src/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +38 -48
  339. package/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +0 -7
  340. package/src/components/sidebar-navigation-screen-patterns/category-item.js +0 -3
  341. package/src/components/sidebar-navigation-screen-patterns/index.js +0 -7
  342. package/src/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js +0 -7
  343. package/src/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +0 -7
  344. package/src/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +0 -7
  345. package/src/components/sidebar-navigation-screen-patterns/use-theme-patterns.js +0 -7
  346. package/src/components/sidebar-navigation-screen-templates-browse/content-legacy.js +0 -7
  347. package/src/components/sidebar-navigation-screen-templates-browse/content.js +1 -8
  348. package/src/components/sidebar-navigation-screen-templates-browse/index.js +0 -7
  349. package/src/components/sidebar-navigation-screen-unsupported/index.js +0 -3
  350. package/src/components/site-editor-routes/home.js +0 -3
  351. package/src/components/site-editor-routes/identity.js +0 -3
  352. package/src/components/site-editor-routes/index.js +0 -7
  353. package/src/components/site-editor-routes/navigation-item.js +0 -3
  354. package/src/components/site-editor-routes/navigation.js +0 -3
  355. package/src/components/site-editor-routes/notfound.js +0 -7
  356. package/src/components/site-editor-routes/page-item.js +0 -7
  357. package/src/components/site-editor-routes/pages.js +0 -7
  358. package/src/components/site-editor-routes/pattern-item.js +0 -3
  359. package/src/components/site-editor-routes/patterns.js +0 -3
  360. package/src/components/site-editor-routes/stylebook.js +0 -7
  361. package/src/components/site-editor-routes/styles.js +0 -7
  362. package/src/components/site-editor-routes/template-item.js +0 -3
  363. package/src/components/site-editor-routes/template-part-item.js +0 -3
  364. package/src/components/site-editor-routes/templates.js +0 -7
  365. package/src/components/site-hub/index.js +0 -7
  366. package/src/components/welcome-guide/editor.js +0 -7
  367. package/src/components/welcome-guide/index.js +0 -3
  368. package/src/components/welcome-guide/page.js +0 -3
  369. package/src/components/welcome-guide/template.js +0 -3
  370. package/src/deprecated.js +0 -3
  371. package/src/hooks/commands/use-common-commands.js +0 -7
  372. package/src/hooks/commands/use-set-command-context.js +0 -7
  373. package/src/index.js +0 -7
  374. package/src/lock-unlock.js +0 -3
  375. package/src/store/actions.js +0 -7
  376. package/src/store/index.js +0 -7
  377. package/src/store/reducer.js +0 -3
  378. package/src/store/selectors.js +0 -7
  379. package/src/utils/constants.js +0 -7
  380. package/src/utils/get-filtered-template-parts.js +0 -3
  381. package/src/utils/is-previewing-theme.js +0 -3
  382. package/src/utils/is-template-removable.js +0 -3
  383. package/src/utils/is-template-revertable.js +0 -3
  384. package/src/utils/test/get-filtered-template-parts.js +0 -3
  385. package/src/utils/use-activate-theme.js +0 -7
  386. package/src/utils/use-actual-current-theme.js +0 -3
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/store/index.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { createReduxStore, register } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport reducer from './reducer';\nimport * as actions from './actions';\nimport * as privateActions from './private-actions';\nimport * as selectors from './selectors';\nimport * as privateSelectors from './private-selectors';\nimport { STORE_NAME } from './constants';\nimport { unlock } from '../lock-unlock';\n\nexport const storeConfig = {\n\treducer,\n\tactions,\n\tselectors,\n};\n\nexport const store = createReduxStore( STORE_NAME, storeConfig );\nregister( store );\nunlock( store ).registerPrivateSelectors( privateSelectors );\nunlock( store ).registerPrivateActions( privateActions );\n"],
5
- "mappings": ";AAGA,SAAS,kBAAkB,gBAAgB;AAK3C,OAAO,aAAa;AACpB,YAAY,aAAa;AACzB,YAAY,oBAAoB;AAChC,YAAY,eAAe;AAC3B,YAAY,sBAAsB;AAClC,SAAS,kBAAkB;AAC3B,SAAS,cAAc;AAEhB,IAAM,cAAc;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AACD;AAEO,IAAM,QAAQ,iBAAkB,YAAY,WAAY;AAC/D,SAAU,KAAM;AAChB,OAAQ,KAAM,EAAE,yBAA0B,gBAAiB;AAC3D,OAAQ,KAAM,EAAE,uBAAwB,cAAe;",
4
+ "sourcesContent": ["import { createReduxStore, register } from '@wordpress/data';\nimport reducer from './reducer';\nimport * as actions from './actions';\nimport * as privateActions from './private-actions';\nimport * as selectors from './selectors';\nimport * as privateSelectors from './private-selectors';\nimport { STORE_NAME } from './constants';\nimport { unlock } from '../lock-unlock';\n\nexport const storeConfig = {\n\treducer,\n\tactions,\n\tselectors,\n};\n\nexport const store = createReduxStore( STORE_NAME, storeConfig );\nregister( store );\nunlock( store ).registerPrivateSelectors( privateSelectors );\nunlock( store ).registerPrivateActions( privateActions );\n"],
5
+ "mappings": ";AAAA,SAAS,kBAAkB,gBAAgB;AAC3C,OAAO,aAAa;AACpB,YAAY,aAAa;AACzB,YAAY,oBAAoB;AAChC,YAAY,eAAe;AAC3B,YAAY,sBAAsB;AAClC,SAAS,kBAAkB;AAC3B,SAAS,cAAc;AAEhB,IAAM,cAAc;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AACD;AAEO,IAAM,QAAQ,iBAAkB,YAAY,WAAY;AAC/D,SAAU,KAAM;AAChB,OAAQ,KAAM,EAAE,yBAA0B,gBAAiB;AAC3D,OAAQ,KAAM,EAAE,uBAAwB,cAAe;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/store/reducer.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { combineReducers } from '@wordpress/data';\n\n/**\n * Reducer returning the settings.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport function settings( state = {}, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'UPDATE_SETTINGS':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t...action.settings,\n\t\t\t};\n\t}\n\n\treturn state;\n}\n\n/**\n * Reducer keeping track of the currently edited Post Type,\n * Post Id and the context provided to fill the content of the block editor.\n *\n * @param {Object} state Current edited post.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport function editedPost( state = {}, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'SET_EDITED_POST':\n\t\t\treturn {\n\t\t\t\tpostType: action.postType,\n\t\t\t\tid: action.id,\n\t\t\t\tcontext: action.context,\n\t\t\t};\n\t\tcase 'SET_EDITED_POST_CONTEXT':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tcontext: action.context,\n\t\t\t};\n\t}\n\n\treturn state;\n}\n\n/**\n * Reducer to set the save view panel open or closed.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n */\nexport function saveViewPanel( state = false, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'SET_IS_SAVE_VIEW_OPENED':\n\t\t\treturn action.isOpen;\n\t}\n\treturn state;\n}\n\nfunction routes( state = [], action ) {\n\tswitch ( action.type ) {\n\t\tcase 'REGISTER_ROUTE':\n\t\t\treturn [ ...state, action.route ];\n\t\tcase 'UNREGISTER_ROUTE':\n\t\t\treturn state.filter( ( route ) => route.name !== action.name );\n\t}\n\n\treturn state;\n}\n\nexport default combineReducers( {\n\tsettings,\n\teditedPost,\n\tsaveViewPanel,\n\troutes,\n} );\n"],
5
- "mappings": ";AAGA,SAAS,uBAAuB;AAUzB,SAAS,SAAU,QAAQ,CAAC,GAAG,QAAS;AAC9C,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK;AACJ,aAAO;AAAA,QACN,GAAG;AAAA,QACH,GAAG,OAAO;AAAA,MACX;AAAA,EACF;AAEA,SAAO;AACR;AAWO,SAAS,WAAY,QAAQ,CAAC,GAAG,QAAS;AAChD,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK;AACJ,aAAO;AAAA,QACN,UAAU,OAAO;AAAA,QACjB,IAAI,OAAO;AAAA,QACX,SAAS,OAAO;AAAA,MACjB;AAAA,IACD,KAAK;AACJ,aAAO;AAAA,QACN,GAAG;AAAA,QACH,SAAS,OAAO;AAAA,MACjB;AAAA,EACF;AAEA,SAAO;AACR;AAQO,SAAS,cAAe,QAAQ,OAAO,QAAS;AACtD,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK;AACJ,aAAO,OAAO;AAAA,EAChB;AACA,SAAO;AACR;AAEA,SAAS,OAAQ,QAAQ,CAAC,GAAG,QAAS;AACrC,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK;AACJ,aAAO,CAAE,GAAG,OAAO,OAAO,KAAM;AAAA,IACjC,KAAK;AACJ,aAAO,MAAM,OAAQ,CAAE,UAAW,MAAM,SAAS,OAAO,IAAK;AAAA,EAC/D;AAEA,SAAO;AACR;AAEA,IAAO,kBAAQ,gBAAiB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,CAAE;",
4
+ "sourcesContent": ["import { combineReducers } from '@wordpress/data';\n\n/**\n * Reducer returning the settings.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport function settings( state = {}, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'UPDATE_SETTINGS':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t...action.settings,\n\t\t\t};\n\t}\n\n\treturn state;\n}\n\n/**\n * Reducer keeping track of the currently edited Post Type,\n * Post Id and the context provided to fill the content of the block editor.\n *\n * @param {Object} state Current edited post.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport function editedPost( state = {}, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'SET_EDITED_POST':\n\t\t\treturn {\n\t\t\t\tpostType: action.postType,\n\t\t\t\tid: action.id,\n\t\t\t\tcontext: action.context,\n\t\t\t};\n\t\tcase 'SET_EDITED_POST_CONTEXT':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tcontext: action.context,\n\t\t\t};\n\t}\n\n\treturn state;\n}\n\n/**\n * Reducer to set the save view panel open or closed.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n */\nexport function saveViewPanel( state = false, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'SET_IS_SAVE_VIEW_OPENED':\n\t\t\treturn action.isOpen;\n\t}\n\treturn state;\n}\n\nfunction routes( state = [], action ) {\n\tswitch ( action.type ) {\n\t\tcase 'REGISTER_ROUTE':\n\t\t\treturn [ ...state, action.route ];\n\t\tcase 'UNREGISTER_ROUTE':\n\t\t\treturn state.filter( ( route ) => route.name !== action.name );\n\t}\n\n\treturn state;\n}\n\nexport default combineReducers( {\n\tsettings,\n\teditedPost,\n\tsaveViewPanel,\n\troutes,\n} );\n"],
5
+ "mappings": ";AAAA,SAAS,uBAAuB;AAUzB,SAAS,SAAU,QAAQ,CAAC,GAAG,QAAS;AAC9C,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK;AACJ,aAAO;AAAA,QACN,GAAG;AAAA,QACH,GAAG,OAAO;AAAA,MACX;AAAA,EACF;AAEA,SAAO;AACR;AAWO,SAAS,WAAY,QAAQ,CAAC,GAAG,QAAS;AAChD,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK;AACJ,aAAO;AAAA,QACN,UAAU,OAAO;AAAA,QACjB,IAAI,OAAO;AAAA,QACX,SAAS,OAAO;AAAA,MACjB;AAAA,IACD,KAAK;AACJ,aAAO;AAAA,QACN,GAAG;AAAA,QACH,SAAS,OAAO;AAAA,MACjB;AAAA,EACF;AAEA,SAAO;AACR;AAQO,SAAS,cAAe,QAAQ,OAAO,QAAS;AACtD,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK;AACJ,aAAO,OAAO;AAAA,EAChB;AACA,SAAO;AACR;AAEA,SAAS,OAAQ,QAAQ,CAAC,GAAG,QAAS;AACrC,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK;AACJ,aAAO,CAAE,GAAG,OAAO,OAAO,KAAM;AAAA,IACjC,KAAK;AACJ,aAAO,MAAM,OAAQ,CAAE,UAAW,MAAM,SAAS,OAAO,IAAK;AAAA,EAC/D;AAEA,SAAO;AACR;AAEA,IAAO,kBAAQ,gBAAiB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,CAAE;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/store/selectors.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { store as coreDataStore } from '@wordpress/core-data';\nimport { createRegistrySelector, createSelector } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { store as editorStore } from '@wordpress/editor';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../lock-unlock';\nimport { TEMPLATE_PART_POST_TYPE } from '../utils/constants';\nimport getFilteredTemplatePartBlocks from '../utils/get-filtered-template-parts';\n\n/**\n * @typedef {'template'|'template_type'} TemplateType Template type.\n */\n\n/**\n * Returns whether the given feature is enabled or not.\n *\n * @deprecated\n * @param {Object} state Global application state.\n * @param {string} featureName Feature slug.\n *\n * @return {boolean} Is active.\n */\nexport const isFeatureActive = createRegistrySelector(\n\t( select ) => ( _, featureName ) => {\n\t\tdeprecated( `select( 'core/edit-site' ).isFeatureActive`, {\n\t\t\tsince: '6.0',\n\t\t\talternative: `select( 'core/preferences' ).get`,\n\t\t} );\n\n\t\treturn !! select( preferencesStore ).get(\n\t\t\t'core/edit-site',\n\t\t\tfeatureName\n\t\t);\n\t}\n);\n\n/**\n * Returns the current editing canvas device type.\n *\n * @deprecated\n *\n * @param {Object} state Global application state.\n *\n * @return {string} Device type.\n */\nexport const __experimentalGetPreviewDeviceType = createRegistrySelector(\n\t( select ) => () => {\n\t\tdeprecated(\n\t\t\t`select( 'core/edit-site' ).__experimentalGetPreviewDeviceType`,\n\t\t\t{\n\t\t\t\tsince: '6.5',\n\t\t\t\tversion: '6.7',\n\t\t\t\talternative: `select( 'core/editor' ).getDeviceType`,\n\t\t\t}\n\t\t);\n\t\treturn select( editorStore ).getDeviceType();\n\t}\n);\n\n/**\n * Returns whether the current user can create media or not.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Whether the current user can create media or not.\n */\nexport const getCanUserCreateMedia = createRegistrySelector(\n\t( select ) => () => {\n\t\tdeprecated(\n\t\t\t`wp.data.select( 'core/edit-site' ).getCanUserCreateMedia()`,\n\t\t\t{\n\t\t\t\tsince: '6.7',\n\t\t\t\talternative: `wp.data.select( 'core' ).canUser( 'create', { kind: 'postType', type: 'attachment' } )`,\n\t\t\t}\n\t\t);\n\n\t\treturn select( coreDataStore ).canUser( 'create', 'media' );\n\t}\n);\n\n/**\n * Returns any available Reusable blocks.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} The available reusable blocks.\n */\nexport const getReusableBlocks = createRegistrySelector( ( select ) => () => {\n\tdeprecated( `select( 'core/edit-site' ).getReusableBlocks()`, {\n\t\tsince: '6.5',\n\t\tversion: '6.8',\n\t\talternative: `select( 'core/core' ).getEntityRecords( 'postType', 'wp_block' )`,\n\t} );\n\treturn select( coreDataStore ).getEntityRecords( 'postType', 'wp_block', {\n\t\tper_page: -1,\n\t} );\n} );\n\n/**\n * Returns the site editor settings.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Settings.\n */\nexport function getSettings( state ) {\n\t// It is important that we don't inject anything into these settings locally.\n\t// The reason for this is that we have an effect in place that calls setSettings based on the previous value of getSettings.\n\t// If we add computed settings here, we'll be adding these computed settings to the state which is very unexpected.\n\treturn state.settings;\n}\n\n/**\n * @deprecated\n */\nexport function getHomeTemplateId() {\n\tdeprecated( \"select( 'core/edit-site' ).getHomeTemplateId\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n}\n\n/**\n * Returns the current edited post type (wp_template or wp_template_part).\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {?TemplateType} Template type.\n */\nexport function getEditedPostType( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getEditedPostType\", {\n\t\tsince: '6.8',\n\t\talternative: \"select( 'core/editor' ).getCurrentPostType\",\n\t} );\n\treturn state.editedPost.postType;\n}\n\n/**\n * Returns the ID of the currently edited template or template part.\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {?string} Post ID.\n */\nexport function getEditedPostId( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getEditedPostId\", {\n\t\tsince: '6.8',\n\t\talternative: \"select( 'core/editor' ).getCurrentPostId\",\n\t} );\n\treturn state.editedPost.id;\n}\n\n/**\n * Returns the edited post's context object.\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {Object} Page.\n */\nexport function getEditedPostContext( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getEditedPostContext\", {\n\t\tsince: '6.8',\n\t} );\n\n\treturn state.editedPost.context;\n}\n\n/**\n * Returns the current page object.\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {Object} Page.\n */\nexport function getPage( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getPage\", {\n\t\tsince: '6.8',\n\t} );\n\n\treturn { context: state.editedPost.context };\n}\n\n/**\n * Returns true if the inserter is opened.\n *\n * @deprecated\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the inserter is opened.\n */\nexport const isInserterOpened = createRegistrySelector( ( select ) => () => {\n\tdeprecated( `select( 'core/edit-site' ).isInserterOpened`, {\n\t\tsince: '6.5',\n\t\talternative: `select( 'core/editor' ).isInserterOpened`,\n\t} );\n\treturn select( editorStore ).isInserterOpened();\n} );\n\n/**\n * Get the insertion point for the inserter.\n *\n * @deprecated\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} The root client ID, index to insert at and starting filter value.\n */\nexport const __experimentalGetInsertionPoint = createRegistrySelector(\n\t( select ) => () => {\n\t\tdeprecated(\n\t\t\t`select( 'core/edit-site' ).__experimentalGetInsertionPoint`,\n\t\t\t{\n\t\t\t\tsince: '6.5',\n\t\t\t\tversion: '6.7',\n\t\t\t}\n\t\t);\n\t\treturn unlock( select( editorStore ) ).getInserter();\n\t}\n);\n\n/**\n * Returns true if the list view is opened.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the list view is opened.\n */\nexport const isListViewOpened = createRegistrySelector( ( select ) => () => {\n\tdeprecated( `select( 'core/edit-site' ).isListViewOpened`, {\n\t\tsince: '6.5',\n\t\talternative: `select( 'core/editor' ).isListViewOpened`,\n\t} );\n\treturn select( editorStore ).isListViewOpened();\n} );\n\n/**\n * Returns the current opened/closed state of the save panel.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} True if the save panel should be open; false if closed.\n */\nexport function isSaveViewOpened( state ) {\n\treturn state.saveViewPanel;\n}\n\nfunction getBlocksAndTemplateParts( select ) {\n\tconst templateParts = select( coreDataStore ).getEntityRecords(\n\t\t'postType',\n\t\tTEMPLATE_PART_POST_TYPE,\n\t\t{ per_page: -1 }\n\t);\n\n\tconst { getBlocksByName, getBlocksByClientId } = select( blockEditorStore );\n\n\tconst clientIds = getBlocksByName( 'core/template-part' );\n\tconst blocks = getBlocksByClientId( clientIds );\n\treturn [ blocks, templateParts ];\n}\n\n/**\n * Returns the template parts and their blocks for the current edited template.\n *\n * @deprecated\n * @param {Object} state Global application state.\n * @return {Array} Template parts and their blocks in an array.\n */\nexport const getCurrentTemplateTemplateParts = createRegistrySelector(\n\t( select ) =>\n\t\tcreateSelector(\n\t\t\t() => {\n\t\t\t\tdeprecated(\n\t\t\t\t\t`select( 'core/edit-site' ).getCurrentTemplateTemplateParts()`,\n\t\t\t\t\t{\n\t\t\t\t\t\tsince: '6.7',\n\t\t\t\t\t\tversion: '6.9',\n\t\t\t\t\t\talternative: `select( 'core/block-editor' ).getBlocksByName( 'core/template-part' )`,\n\t\t\t\t\t}\n\t\t\t\t);\n\n\t\t\t\treturn getFilteredTemplatePartBlocks(\n\t\t\t\t\t...getBlocksAndTemplateParts( select )\n\t\t\t\t);\n\t\t\t},\n\t\t\t() => getBlocksAndTemplateParts( select )\n\t\t)\n);\n\n/**\n * Returns the current editing mode.\n *\n * @param {Object} state Global application state.\n *\n * @return {string} Editing mode.\n */\nexport const getEditorMode = createRegistrySelector( ( select ) => () => {\n\treturn select( preferencesStore ).get( 'core', 'editorMode' );\n} );\n\n/**\n * @deprecated\n */\nexport function getCurrentTemplateNavigationPanelSubMenu() {\n\tdeprecated(\n\t\t\"dispatch( 'core/edit-site' ).getCurrentTemplateNavigationPanelSubMenu\",\n\t\t{\n\t\t\tsince: '6.2',\n\t\t\tversion: '6.4',\n\t\t}\n\t);\n}\n\n/**\n * @deprecated\n */\nexport function getNavigationPanelActiveMenu() {\n\tdeprecated( \"dispatch( 'core/edit-site' ).getNavigationPanelActiveMenu\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n}\n\n/**\n * @deprecated\n */\nexport function isNavigationOpened() {\n\tdeprecated( \"dispatch( 'core/edit-site' ).isNavigationOpened\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n}\n\n/**\n * Whether or not the editor has a page loaded into it.\n *\n * @see setPage\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether or not the editor has a page loaded into it.\n */\nexport function isPage( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).isPage\", {\n\t\tsince: '6.8',\n\t\talternative: \"select( 'core/editor' ).getCurrentPostType\",\n\t} );\n\n\treturn !! state.editedPost.context?.postId;\n}\n\n/**\n * Whether or not the editor allows only page content to be edited.\n *\n * @deprecated\n *\n * @return {boolean} Whether or not focus is on editing page content.\n */\nexport function hasPageContentFocus() {\n\tdeprecated( `select( 'core/edit-site' ).hasPageContentFocus`, {\n\t\tsince: '6.5',\n\t} );\n\n\treturn false;\n}\n"],
5
- "mappings": "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",
4
+ "sourcesContent": ["import { store as coreDataStore } from '@wordpress/core-data';\nimport { createRegistrySelector, createSelector } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { store as editorStore } from '@wordpress/editor';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { unlock } from '../lock-unlock';\nimport { TEMPLATE_PART_POST_TYPE } from '../utils/constants';\nimport getFilteredTemplatePartBlocks from '../utils/get-filtered-template-parts';\n\n/**\n * @typedef {'template'|'template_type'} TemplateType Template type.\n */\n\n/**\n * Returns whether the given feature is enabled or not.\n *\n * @deprecated\n * @param {Object} state Global application state.\n * @param {string} featureName Feature slug.\n *\n * @return {boolean} Is active.\n */\nexport const isFeatureActive = createRegistrySelector(\n\t( select ) => ( _, featureName ) => {\n\t\tdeprecated( `select( 'core/edit-site' ).isFeatureActive`, {\n\t\t\tsince: '6.0',\n\t\t\talternative: `select( 'core/preferences' ).get`,\n\t\t} );\n\n\t\treturn !! select( preferencesStore ).get(\n\t\t\t'core/edit-site',\n\t\t\tfeatureName\n\t\t);\n\t}\n);\n\n/**\n * Returns the current editing canvas device type.\n *\n * @deprecated\n *\n * @param {Object} state Global application state.\n *\n * @return {string} Device type.\n */\nexport const __experimentalGetPreviewDeviceType = createRegistrySelector(\n\t( select ) => () => {\n\t\tdeprecated(\n\t\t\t`select( 'core/edit-site' ).__experimentalGetPreviewDeviceType`,\n\t\t\t{\n\t\t\t\tsince: '6.5',\n\t\t\t\tversion: '6.7',\n\t\t\t\talternative: `select( 'core/editor' ).getDeviceType`,\n\t\t\t}\n\t\t);\n\t\treturn select( editorStore ).getDeviceType();\n\t}\n);\n\n/**\n * Returns whether the current user can create media or not.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Whether the current user can create media or not.\n */\nexport const getCanUserCreateMedia = createRegistrySelector(\n\t( select ) => () => {\n\t\tdeprecated(\n\t\t\t`wp.data.select( 'core/edit-site' ).getCanUserCreateMedia()`,\n\t\t\t{\n\t\t\t\tsince: '6.7',\n\t\t\t\talternative: `wp.data.select( 'core' ).canUser( 'create', { kind: 'postType', type: 'attachment' } )`,\n\t\t\t}\n\t\t);\n\n\t\treturn select( coreDataStore ).canUser( 'create', 'media' );\n\t}\n);\n\n/**\n * Returns any available Reusable blocks.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} The available reusable blocks.\n */\nexport const getReusableBlocks = createRegistrySelector( ( select ) => () => {\n\tdeprecated( `select( 'core/edit-site' ).getReusableBlocks()`, {\n\t\tsince: '6.5',\n\t\tversion: '6.8',\n\t\talternative: `select( 'core/core' ).getEntityRecords( 'postType', 'wp_block' )`,\n\t} );\n\treturn select( coreDataStore ).getEntityRecords( 'postType', 'wp_block', {\n\t\tper_page: -1,\n\t} );\n} );\n\n/**\n * Returns the site editor settings.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Settings.\n */\nexport function getSettings( state ) {\n\t// It is important that we don't inject anything into these settings locally.\n\t// The reason for this is that we have an effect in place that calls setSettings based on the previous value of getSettings.\n\t// If we add computed settings here, we'll be adding these computed settings to the state which is very unexpected.\n\treturn state.settings;\n}\n\n/**\n * @deprecated\n */\nexport function getHomeTemplateId() {\n\tdeprecated( \"select( 'core/edit-site' ).getHomeTemplateId\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n}\n\n/**\n * Returns the current edited post type (wp_template or wp_template_part).\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {?TemplateType} Template type.\n */\nexport function getEditedPostType( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getEditedPostType\", {\n\t\tsince: '6.8',\n\t\talternative: \"select( 'core/editor' ).getCurrentPostType\",\n\t} );\n\treturn state.editedPost.postType;\n}\n\n/**\n * Returns the ID of the currently edited template or template part.\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {?string} Post ID.\n */\nexport function getEditedPostId( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getEditedPostId\", {\n\t\tsince: '6.8',\n\t\talternative: \"select( 'core/editor' ).getCurrentPostId\",\n\t} );\n\treturn state.editedPost.id;\n}\n\n/**\n * Returns the edited post's context object.\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {Object} Page.\n */\nexport function getEditedPostContext( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getEditedPostContext\", {\n\t\tsince: '6.8',\n\t} );\n\n\treturn state.editedPost.context;\n}\n\n/**\n * Returns the current page object.\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {Object} Page.\n */\nexport function getPage( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getPage\", {\n\t\tsince: '6.8',\n\t} );\n\n\treturn { context: state.editedPost.context };\n}\n\n/**\n * Returns true if the inserter is opened.\n *\n * @deprecated\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the inserter is opened.\n */\nexport const isInserterOpened = createRegistrySelector( ( select ) => () => {\n\tdeprecated( `select( 'core/edit-site' ).isInserterOpened`, {\n\t\tsince: '6.5',\n\t\talternative: `select( 'core/editor' ).isInserterOpened`,\n\t} );\n\treturn select( editorStore ).isInserterOpened();\n} );\n\n/**\n * Get the insertion point for the inserter.\n *\n * @deprecated\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} The root client ID, index to insert at and starting filter value.\n */\nexport const __experimentalGetInsertionPoint = createRegistrySelector(\n\t( select ) => () => {\n\t\tdeprecated(\n\t\t\t`select( 'core/edit-site' ).__experimentalGetInsertionPoint`,\n\t\t\t{\n\t\t\t\tsince: '6.5',\n\t\t\t\tversion: '6.7',\n\t\t\t}\n\t\t);\n\t\treturn unlock( select( editorStore ) ).getInserter();\n\t}\n);\n\n/**\n * Returns true if the list view is opened.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the list view is opened.\n */\nexport const isListViewOpened = createRegistrySelector( ( select ) => () => {\n\tdeprecated( `select( 'core/edit-site' ).isListViewOpened`, {\n\t\tsince: '6.5',\n\t\talternative: `select( 'core/editor' ).isListViewOpened`,\n\t} );\n\treturn select( editorStore ).isListViewOpened();\n} );\n\n/**\n * Returns the current opened/closed state of the save panel.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} True if the save panel should be open; false if closed.\n */\nexport function isSaveViewOpened( state ) {\n\treturn state.saveViewPanel;\n}\n\nfunction getBlocksAndTemplateParts( select ) {\n\tconst templateParts = select( coreDataStore ).getEntityRecords(\n\t\t'postType',\n\t\tTEMPLATE_PART_POST_TYPE,\n\t\t{ per_page: -1 }\n\t);\n\n\tconst { getBlocksByName, getBlocksByClientId } = select( blockEditorStore );\n\n\tconst clientIds = getBlocksByName( 'core/template-part' );\n\tconst blocks = getBlocksByClientId( clientIds );\n\treturn [ blocks, templateParts ];\n}\n\n/**\n * Returns the template parts and their blocks for the current edited template.\n *\n * @deprecated\n * @param {Object} state Global application state.\n * @return {Array} Template parts and their blocks in an array.\n */\nexport const getCurrentTemplateTemplateParts = createRegistrySelector(\n\t( select ) =>\n\t\tcreateSelector(\n\t\t\t() => {\n\t\t\t\tdeprecated(\n\t\t\t\t\t`select( 'core/edit-site' ).getCurrentTemplateTemplateParts()`,\n\t\t\t\t\t{\n\t\t\t\t\t\tsince: '6.7',\n\t\t\t\t\t\tversion: '6.9',\n\t\t\t\t\t\talternative: `select( 'core/block-editor' ).getBlocksByName( 'core/template-part' )`,\n\t\t\t\t\t}\n\t\t\t\t);\n\n\t\t\t\treturn getFilteredTemplatePartBlocks(\n\t\t\t\t\t...getBlocksAndTemplateParts( select )\n\t\t\t\t);\n\t\t\t},\n\t\t\t() => getBlocksAndTemplateParts( select )\n\t\t)\n);\n\n/**\n * Returns the current editing mode.\n *\n * @param {Object} state Global application state.\n *\n * @return {string} Editing mode.\n */\nexport const getEditorMode = createRegistrySelector( ( select ) => () => {\n\treturn select( preferencesStore ).get( 'core', 'editorMode' );\n} );\n\n/**\n * @deprecated\n */\nexport function getCurrentTemplateNavigationPanelSubMenu() {\n\tdeprecated(\n\t\t\"dispatch( 'core/edit-site' ).getCurrentTemplateNavigationPanelSubMenu\",\n\t\t{\n\t\t\tsince: '6.2',\n\t\t\tversion: '6.4',\n\t\t}\n\t);\n}\n\n/**\n * @deprecated\n */\nexport function getNavigationPanelActiveMenu() {\n\tdeprecated( \"dispatch( 'core/edit-site' ).getNavigationPanelActiveMenu\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n}\n\n/**\n * @deprecated\n */\nexport function isNavigationOpened() {\n\tdeprecated( \"dispatch( 'core/edit-site' ).isNavigationOpened\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n}\n\n/**\n * Whether or not the editor has a page loaded into it.\n *\n * @see setPage\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether or not the editor has a page loaded into it.\n */\nexport function isPage( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).isPage\", {\n\t\tsince: '6.8',\n\t\talternative: \"select( 'core/editor' ).getCurrentPostType\",\n\t} );\n\n\treturn !! state.editedPost.context?.postId;\n}\n\n/**\n * Whether or not the editor allows only page content to be edited.\n *\n * @deprecated\n *\n * @return {boolean} Whether or not focus is on editing page content.\n */\nexport function hasPageContentFocus() {\n\tdeprecated( `select( 'core/edit-site' ).hasPageContentFocus`, {\n\t\tsince: '6.5',\n\t} );\n\n\treturn false;\n}\n"],
5
+ "mappings": "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",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/utils/constants.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { privateApis as patternPrivateApis } from '@wordpress/patterns';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../lock-unlock';\n\n// Attachments / media\nexport const ATTACHMENT_POST_TYPE = 'attachment';\n\n// Navigation\nexport const NAVIGATION_POST_TYPE = 'wp_navigation';\n\n// Templates.\nexport const TEMPLATE_POST_TYPE = 'wp_template';\nexport const TEMPLATE_PART_POST_TYPE = 'wp_template_part';\nexport const TEMPLATE_ORIGINS = {\n\tcustom: 'custom',\n\ttheme: 'theme',\n\tplugin: 'plugin',\n};\nexport const TEMPLATE_PART_AREA_DEFAULT_CATEGORY = 'uncategorized';\nexport const TEMPLATE_PART_ALL_AREAS_CATEGORY = 'all-parts';\n\n// Patterns.\nexport const {\n\tPATTERN_TYPES,\n\tPATTERN_DEFAULT_CATEGORY,\n\tPATTERN_USER_CATEGORY,\n\tEXCLUDED_PATTERN_SOURCES,\n\tPATTERN_SYNC_TYPES,\n} = unlock( patternPrivateApis );\n\n// Entities that are editable in focus mode.\nexport const FOCUSABLE_ENTITIES = [\n\tTEMPLATE_PART_POST_TYPE,\n\tNAVIGATION_POST_TYPE,\n\tPATTERN_TYPES.user,\n];\n\nexport const POST_TYPE_LABELS = {\n\t[ TEMPLATE_POST_TYPE ]: __( 'Template' ),\n\t[ TEMPLATE_PART_POST_TYPE ]: __( 'Template part' ),\n\t[ PATTERN_TYPES.user ]: __( 'Pattern' ),\n\t[ NAVIGATION_POST_TYPE ]: __( 'Navigation' ),\n};\n\n// DataViews constants\nexport const LAYOUT_GRID = 'grid';\nexport const LAYOUT_TABLE = 'table';\nexport const LAYOUT_LIST = 'list';\n\nexport const OPERATOR_IS = 'is';\nexport const OPERATOR_IS_NOT = 'isNot';\nexport const OPERATOR_IS_ANY = 'isAny';\nexport const OPERATOR_IS_NONE = 'isNone';\nexport const OPERATOR_BEFORE = 'before';\nexport const OPERATOR_AFTER = 'after';\n"],
5
- "mappings": ";AAGA,SAAS,UAAU;AACnB,SAAS,eAAe,0BAA0B;AAKlD,SAAS,cAAc;AAGhB,IAAM,uBAAuB;AAG7B,IAAM,uBAAuB;AAG7B,IAAM,qBAAqB;AAC3B,IAAM,0BAA0B;AAChC,IAAM,mBAAmB;AAAA,EAC/B,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AACT;AACO,IAAM,sCAAsC;AAC5C,IAAM,mCAAmC;AAGzC,IAAM;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,IAAI,OAAQ,kBAAmB;AAGxB,IAAM,qBAAqB;AAAA,EACjC;AAAA,EACA;AAAA,EACA,cAAc;AACf;AAEO,IAAM,mBAAmB;AAAA,EAC/B,CAAE,kBAAmB,GAAG,GAAI,UAAW;AAAA,EACvC,CAAE,uBAAwB,GAAG,GAAI,eAAgB;AAAA,EACjD,CAAE,cAAc,IAAK,GAAG,GAAI,SAAU;AAAA,EACtC,CAAE,oBAAqB,GAAG,GAAI,YAAa;AAC5C;AAGO,IAAM,cAAc;AACpB,IAAM,eAAe;AACrB,IAAM,cAAc;AAEpB,IAAM,cAAc;AACpB,IAAM,kBAAkB;AACxB,IAAM,kBAAkB;AACxB,IAAM,mBAAmB;AACzB,IAAM,kBAAkB;AACxB,IAAM,iBAAiB;",
4
+ "sourcesContent": ["import { __ } from '@wordpress/i18n';\nimport { privateApis as patternPrivateApis } from '@wordpress/patterns';\nimport { unlock } from '../lock-unlock';\n\n// Attachments / media\nexport const ATTACHMENT_POST_TYPE = 'attachment';\n\n// Navigation\nexport const NAVIGATION_POST_TYPE = 'wp_navigation';\n\n// Templates.\nexport const TEMPLATE_POST_TYPE = 'wp_template';\nexport const TEMPLATE_PART_POST_TYPE = 'wp_template_part';\nexport const TEMPLATE_ORIGINS = {\n\tcustom: 'custom',\n\ttheme: 'theme',\n\tplugin: 'plugin',\n};\nexport const TEMPLATE_PART_AREA_DEFAULT_CATEGORY = 'uncategorized';\nexport const TEMPLATE_PART_ALL_AREAS_CATEGORY = 'all-parts';\n\n// Patterns.\nexport const {\n\tPATTERN_TYPES,\n\tPATTERN_DEFAULT_CATEGORY,\n\tPATTERN_USER_CATEGORY,\n\tEXCLUDED_PATTERN_SOURCES,\n\tPATTERN_SYNC_TYPES,\n} = unlock( patternPrivateApis );\n\n// Entities that are editable in focus mode.\nexport const FOCUSABLE_ENTITIES = [\n\tTEMPLATE_PART_POST_TYPE,\n\tNAVIGATION_POST_TYPE,\n\tPATTERN_TYPES.user,\n];\n\nexport const POST_TYPE_LABELS = {\n\t[ TEMPLATE_POST_TYPE ]: __( 'Template' ),\n\t[ TEMPLATE_PART_POST_TYPE ]: __( 'Template part' ),\n\t[ PATTERN_TYPES.user ]: __( 'Pattern' ),\n\t[ NAVIGATION_POST_TYPE ]: __( 'Navigation' ),\n};\n\n// DataViews constants\nexport const LAYOUT_GRID = 'grid';\nexport const LAYOUT_TABLE = 'table';\nexport const LAYOUT_LIST = 'list';\n\nexport const OPERATOR_IS = 'is';\nexport const OPERATOR_IS_NOT = 'isNot';\nexport const OPERATOR_IS_ANY = 'isAny';\nexport const OPERATOR_IS_NONE = 'isNone';\nexport const OPERATOR_BEFORE = 'before';\nexport const OPERATOR_AFTER = 'after';\n"],
5
+ "mappings": ";AAAA,SAAS,UAAU;AACnB,SAAS,eAAe,0BAA0B;AAClD,SAAS,cAAc;AAGhB,IAAM,uBAAuB;AAG7B,IAAM,uBAAuB;AAG7B,IAAM,qBAAqB;AAC3B,IAAM,0BAA0B;AAChC,IAAM,mBAAmB;AAAA,EAC/B,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AACT;AACO,IAAM,sCAAsC;AAC5C,IAAM,mCAAmC;AAGzC,IAAM;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,IAAI,OAAQ,kBAAmB;AAGxB,IAAM,qBAAqB;AAAA,EACjC;AAAA,EACA;AAAA,EACA,cAAc;AACf;AAEO,IAAM,mBAAmB;AAAA,EAC/B,CAAE,kBAAmB,GAAG,GAAI,UAAW;AAAA,EACvC,CAAE,uBAAwB,GAAG,GAAI,eAAgB;AAAA,EACjD,CAAE,cAAc,IAAK,GAAG,GAAI,SAAU;AAAA,EACtC,CAAE,oBAAqB,GAAG,GAAI,YAAa;AAC5C;AAGO,IAAM,cAAc;AACpB,IAAM,eAAe;AACrB,IAAM,cAAc;AAEpB,IAAM,cAAc;AACpB,IAAM,kBAAkB;AACxB,IAAM,kBAAkB;AACxB,IAAM,mBAAmB;AACzB,IAAM,kBAAkB;AACxB,IAAM,iBAAiB;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/utils/get-filtered-template-parts.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { isTemplatePart } from '@wordpress/blocks';\n\nconst EMPTY_ARRAY = [];\n\n/**\n * Get a flattened and filtered list of template parts and the matching block for that template part.\n *\n * Takes a list of blocks defined within a template, and a list of template parts, and returns a\n * flattened list of template parts and the matching block for that template part.\n *\n * @param {Array} blocks Blocks to flatten.\n * @param {?Array} templateParts Available template parts.\n * @return {Array} An array of template parts and their blocks.\n */\nexport default function getFilteredTemplatePartBlocks(\n\tblocks = EMPTY_ARRAY,\n\ttemplateParts\n) {\n\tconst templatePartsById = templateParts\n\t\t? // Key template parts by their ID.\n\t\t templateParts.reduce(\n\t\t\t\t( newTemplateParts, part ) => ( {\n\t\t\t\t\t...newTemplateParts,\n\t\t\t\t\t[ part.id ]: part,\n\t\t\t\t} ),\n\t\t\t\t{}\n\t\t )\n\t\t: {};\n\n\tconst result = [];\n\n\t// Iterate over all blocks, recursing into inner blocks.\n\t// Output will be based on a depth-first traversal.\n\tconst stack = [ ...blocks ];\n\twhile ( stack.length ) {\n\t\tconst { innerBlocks, ...block } = stack.shift();\n\t\t// Place inner blocks at the beginning of the stack to preserve order.\n\t\tstack.unshift( ...innerBlocks );\n\n\t\tif ( isTemplatePart( block ) ) {\n\t\t\tconst {\n\t\t\t\tattributes: { theme, slug },\n\t\t\t} = block;\n\t\t\tconst templatePartId = `${ theme }//${ slug }`;\n\t\t\tconst templatePart = templatePartsById[ templatePartId ];\n\n\t\t\t// Only add to output if the found template part block is in the list of available template parts.\n\t\t\tif ( templatePart ) {\n\t\t\t\tresult.push( {\n\t\t\t\t\ttemplatePart,\n\t\t\t\t\tblock,\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result;\n}\n"],
5
- "mappings": ";AAGA,SAAS,sBAAsB;AAE/B,IAAM,cAAc,CAAC;AAYN,SAAR,8BACN,SAAS,aACT,eACC;AACD,QAAM,oBAAoB;AAAA;AAAA,IAEvB,cAAc;AAAA,MACd,CAAE,kBAAkB,UAAY;AAAA,QAC/B,GAAG;AAAA,QACH,CAAE,KAAK,EAAG,GAAG;AAAA,MACd;AAAA,MACA,CAAC;AAAA,IACD;AAAA,MACA,CAAC;AAEJ,QAAM,SAAS,CAAC;AAIhB,QAAM,QAAQ,CAAE,GAAG,MAAO;AAC1B,SAAQ,MAAM,QAAS;AACtB,UAAM,EAAE,aAAa,GAAG,MAAM,IAAI,MAAM,MAAM;AAE9C,UAAM,QAAS,GAAG,WAAY;AAE9B,QAAK,eAAgB,KAAM,GAAI;AAC9B,YAAM;AAAA,QACL,YAAY,EAAE,OAAO,KAAK;AAAA,MAC3B,IAAI;AACJ,YAAM,iBAAiB,GAAI,KAAM,KAAM,IAAK;AAC5C,YAAM,eAAe,kBAAmB,cAAe;AAGvD,UAAK,cAAe;AACnB,eAAO,KAAM;AAAA,UACZ;AAAA,UACA;AAAA,QACD,CAAE;AAAA,MACH;AAAA,IACD;AAAA,EACD;AAEA,SAAO;AACR;",
4
+ "sourcesContent": ["import { isTemplatePart } from '@wordpress/blocks';\n\nconst EMPTY_ARRAY = [];\n\n/**\n * Get a flattened and filtered list of template parts and the matching block for that template part.\n *\n * Takes a list of blocks defined within a template, and a list of template parts, and returns a\n * flattened list of template parts and the matching block for that template part.\n *\n * @param {Array} blocks Blocks to flatten.\n * @param {?Array} templateParts Available template parts.\n * @return {Array} An array of template parts and their blocks.\n */\nexport default function getFilteredTemplatePartBlocks(\n\tblocks = EMPTY_ARRAY,\n\ttemplateParts\n) {\n\tconst templatePartsById = templateParts\n\t\t? // Key template parts by their ID.\n\t\t templateParts.reduce(\n\t\t\t\t( newTemplateParts, part ) => ( {\n\t\t\t\t\t...newTemplateParts,\n\t\t\t\t\t[ part.id ]: part,\n\t\t\t\t} ),\n\t\t\t\t{}\n\t\t )\n\t\t: {};\n\n\tconst result = [];\n\n\t// Iterate over all blocks, recursing into inner blocks.\n\t// Output will be based on a depth-first traversal.\n\tconst stack = [ ...blocks ];\n\twhile ( stack.length ) {\n\t\tconst { innerBlocks, ...block } = stack.shift();\n\t\t// Place inner blocks at the beginning of the stack to preserve order.\n\t\tstack.unshift( ...innerBlocks );\n\n\t\tif ( isTemplatePart( block ) ) {\n\t\t\tconst {\n\t\t\t\tattributes: { theme, slug },\n\t\t\t} = block;\n\t\t\tconst templatePartId = `${ theme }//${ slug }`;\n\t\t\tconst templatePart = templatePartsById[ templatePartId ];\n\n\t\t\t// Only add to output if the found template part block is in the list of available template parts.\n\t\t\tif ( templatePart ) {\n\t\t\t\tresult.push( {\n\t\t\t\t\ttemplatePart,\n\t\t\t\t\tblock,\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result;\n}\n"],
5
+ "mappings": ";AAAA,SAAS,sBAAsB;AAE/B,IAAM,cAAc,CAAC;AAYN,SAAR,8BACN,SAAS,aACT,eACC;AACD,QAAM,oBAAoB;AAAA;AAAA,IAEvB,cAAc;AAAA,MACd,CAAE,kBAAkB,UAAY;AAAA,QAC/B,GAAG;AAAA,QACH,CAAE,KAAK,EAAG,GAAG;AAAA,MACd;AAAA,MACA,CAAC;AAAA,IACD;AAAA,MACA,CAAC;AAEJ,QAAM,SAAS,CAAC;AAIhB,QAAM,QAAQ,CAAE,GAAG,MAAO;AAC1B,SAAQ,MAAM,QAAS;AACtB,UAAM,EAAE,aAAa,GAAG,MAAM,IAAI,MAAM,MAAM;AAE9C,UAAM,QAAS,GAAG,WAAY;AAE9B,QAAK,eAAgB,KAAM,GAAI;AAC9B,YAAM;AAAA,QACL,YAAY,EAAE,OAAO,KAAK;AAAA,MAC3B,IAAI;AACJ,YAAM,iBAAiB,GAAI,KAAM,KAAM,IAAK;AAC5C,YAAM,eAAe,kBAAmB,cAAe;AAGvD,UAAK,cAAe;AACnB,eAAO,KAAM;AAAA,UACZ;AAAA,UACA;AAAA,QACD,CAAE;AAAA,MACH;AAAA,IACD;AAAA,EACD;AAEA,SAAO;AACR;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/utils/is-previewing-theme.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { getQueryArg } from '@wordpress/url';\n\nexport function isPreviewingTheme() {\n\treturn !! getQueryArg( window.location.href, 'wp_theme_preview' );\n}\n\nexport function currentlyPreviewingTheme() {\n\tif ( isPreviewingTheme() ) {\n\t\treturn getQueryArg( window.location.href, 'wp_theme_preview' );\n\t}\n\treturn null;\n}\n"],
5
- "mappings": ";AAGA,SAAS,mBAAmB;AAErB,SAAS,oBAAoB;AACnC,SAAO,CAAC,CAAE,YAAa,OAAO,SAAS,MAAM,kBAAmB;AACjE;AAEO,SAAS,2BAA2B;AAC1C,MAAK,kBAAkB,GAAI;AAC1B,WAAO,YAAa,OAAO,SAAS,MAAM,kBAAmB;AAAA,EAC9D;AACA,SAAO;AACR;",
4
+ "sourcesContent": ["import { getQueryArg } from '@wordpress/url';\n\nexport function isPreviewingTheme() {\n\treturn !! getQueryArg( window.location.href, 'wp_theme_preview' );\n}\n\nexport function currentlyPreviewingTheme() {\n\tif ( isPreviewingTheme() ) {\n\t\treturn getQueryArg( window.location.href, 'wp_theme_preview' );\n\t}\n\treturn null;\n}\n"],
5
+ "mappings": ";AAAA,SAAS,mBAAmB;AAErB,SAAS,oBAAoB;AACnC,SAAO,CAAC,CAAE,YAAa,OAAO,SAAS,MAAM,kBAAmB;AACjE;AAEO,SAAS,2BAA2B;AAC1C,MAAK,kBAAkB,GAAI;AAC1B,WAAO,YAAa,OAAO,SAAS,MAAM,kBAAmB;AAAA,EAC9D;AACA,SAAO;AACR;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/utils/is-template-removable.js"],
4
- "sourcesContent": ["/**\n * Internal dependencies\n */\nimport { TEMPLATE_ORIGINS } from './constants';\n\n/**\n * Check if a template is removable.\n *\n * @param {Object} template The template entity to check.\n * @return {boolean} Whether the template is removable.\n */\nexport default function isTemplateRemovable( template ) {\n\tif ( ! template ) {\n\t\treturn false;\n\t}\n\n\treturn (\n\t\ttemplate.source === TEMPLATE_ORIGINS.custom &&\n\t\t! Boolean( template.plugin ) &&\n\t\t! template.has_theme_file\n\t);\n}\n"],
5
- "mappings": ";AAGA,SAAS,wBAAwB;AAQlB,SAAR,oBAAsC,UAAW;AACvD,MAAK,CAAE,UAAW;AACjB,WAAO;AAAA,EACR;AAEA,SACC,SAAS,WAAW,iBAAiB,UACrC,CAAE,QAAS,SAAS,MAAO,KAC3B,CAAE,SAAS;AAEb;",
4
+ "sourcesContent": ["import { TEMPLATE_ORIGINS } from './constants';\n\n/**\n * Check if a template is removable.\n *\n * @param {Object} template The template entity to check.\n * @return {boolean} Whether the template is removable.\n */\nexport default function isTemplateRemovable( template ) {\n\tif ( ! template ) {\n\t\treturn false;\n\t}\n\n\treturn (\n\t\ttemplate.source === TEMPLATE_ORIGINS.custom &&\n\t\t! Boolean( template.plugin ) &&\n\t\t! template.has_theme_file\n\t);\n}\n"],
5
+ "mappings": ";AAAA,SAAS,wBAAwB;AAQlB,SAAR,oBAAsC,UAAW;AACvD,MAAK,CAAE,UAAW;AACjB,WAAO;AAAA,EACR;AAEA,SACC,SAAS,WAAW,iBAAiB,UACrC,CAAE,QAAS,SAAS,MAAO,KAC3B,CAAE,SAAS;AAEb;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/utils/is-template-revertable.js"],
4
- "sourcesContent": ["/**\n * Internal dependencies\n */\nimport { TEMPLATE_ORIGINS } from './constants';\n\n/**\n * Check if a template is revertable to its original theme-provided template file.\n *\n * @param {Object} template The template entity to check.\n * @return {boolean} Whether the template is revertable.\n */\nexport default function isTemplateRevertable( template ) {\n\tif ( ! template ) {\n\t\treturn false;\n\t}\n\n\treturn (\n\t\ttemplate?.source === TEMPLATE_ORIGINS.custom &&\n\t\t( Boolean( template?.plugin ) || template?.has_theme_file )\n\t);\n}\n"],
5
- "mappings": ";AAGA,SAAS,wBAAwB;AAQlB,SAAR,qBAAuC,UAAW;AACxD,MAAK,CAAE,UAAW;AACjB,WAAO;AAAA,EACR;AAEA,SACC,UAAU,WAAW,iBAAiB,WACpC,QAAS,UAAU,MAAO,KAAK,UAAU;AAE7C;",
4
+ "sourcesContent": ["import { TEMPLATE_ORIGINS } from './constants';\n\n/**\n * Check if a template is revertable to its original theme-provided template file.\n *\n * @param {Object} template The template entity to check.\n * @return {boolean} Whether the template is revertable.\n */\nexport default function isTemplateRevertable( template ) {\n\tif ( ! template ) {\n\t\treturn false;\n\t}\n\n\treturn (\n\t\ttemplate?.source === TEMPLATE_ORIGINS.custom &&\n\t\t( Boolean( template?.plugin ) || template?.has_theme_file )\n\t);\n}\n"],
5
+ "mappings": ";AAAA,SAAS,wBAAwB;AAQlB,SAAR,qBAAuC,UAAW;AACxD,MAAK,CAAE,UAAW;AACjB,WAAO;AAAA,EACR;AAEA,SACC,UAAU,WAAW,iBAAiB,WACpC,QAAS,UAAU,MAAO,KAAK,UAAU;AAE7C;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/utils/use-activate-theme.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useDispatch } from '@wordpress/data';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\nimport { addQueryArgs } from '@wordpress/url';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../lock-unlock';\nimport {\n\tisPreviewingTheme,\n\tcurrentlyPreviewingTheme,\n} from './is-previewing-theme';\n\nconst { useHistory, useLocation } = unlock( routerPrivateApis );\n\n/**\n * This should be refactored to use the REST API, once the REST API can activate themes.\n *\n * @return {Function} A function that activates the theme.\n */\nexport function useActivateTheme() {\n\tconst history = useHistory();\n\tconst { path } = useLocation();\n\tconst { startResolution, finishResolution } = useDispatch( coreStore );\n\n\treturn async () => {\n\t\tif ( isPreviewingTheme() ) {\n\t\t\tconst activationURL =\n\t\t\t\t'themes.php?action=activate&stylesheet=' +\n\t\t\t\tcurrentlyPreviewingTheme() +\n\t\t\t\t'&_wpnonce=' +\n\t\t\t\twindow.WP_BLOCK_THEME_ACTIVATE_NONCE;\n\t\t\tstartResolution( 'activateTheme' );\n\t\t\tawait window.fetch( activationURL );\n\t\t\tfinishResolution( 'activateTheme' );\n\t\t\t// Remove the wp_theme_preview query param: we've finished activating\n\t\t\t// the queue and are switching to normal Site Editor.\n\t\t\thistory.navigate( addQueryArgs( path, { wp_theme_preview: '' } ) );\n\t\t}\n\t};\n}\n"],
5
- "mappings": ";AAGA,SAAS,SAAS,iBAAiB;AACnC,SAAS,mBAAmB;AAC5B,SAAS,eAAe,yBAAyB;AACjD,SAAS,oBAAoB;AAK7B,SAAS,cAAc;AACvB;AAAA,EACC;AAAA,EACA;AAAA,OACM;AAEP,IAAM,EAAE,YAAY,YAAY,IAAI,OAAQ,iBAAkB;AAOvD,SAAS,mBAAmB;AAClC,QAAM,UAAU,WAAW;AAC3B,QAAM,EAAE,KAAK,IAAI,YAAY;AAC7B,QAAM,EAAE,iBAAiB,iBAAiB,IAAI,YAAa,SAAU;AAErE,SAAO,YAAY;AAClB,QAAK,kBAAkB,GAAI;AAC1B,YAAM,gBACL,2CACA,yBAAyB,IACzB,eACA,OAAO;AACR,sBAAiB,eAAgB;AACjC,YAAM,OAAO,MAAO,aAAc;AAClC,uBAAkB,eAAgB;AAGlC,cAAQ,SAAU,aAAc,MAAM,EAAE,kBAAkB,GAAG,CAAE,CAAE;AAAA,IAClE;AAAA,EACD;AACD;",
4
+ "sourcesContent": ["import { store as coreStore } from '@wordpress/core-data';\nimport { useDispatch } from '@wordpress/data';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\nimport { addQueryArgs } from '@wordpress/url';\nimport { unlock } from '../lock-unlock';\nimport {\n\tisPreviewingTheme,\n\tcurrentlyPreviewingTheme,\n} from './is-previewing-theme';\n\nconst { useHistory, useLocation } = unlock( routerPrivateApis );\n\n/**\n * This should be refactored to use the REST API, once the REST API can activate themes.\n *\n * @return {Function} A function that activates the theme.\n */\nexport function useActivateTheme() {\n\tconst history = useHistory();\n\tconst { path } = useLocation();\n\tconst { startResolution, finishResolution } = useDispatch( coreStore );\n\n\treturn async () => {\n\t\tif ( isPreviewingTheme() ) {\n\t\t\tconst activationURL =\n\t\t\t\t'themes.php?action=activate&stylesheet=' +\n\t\t\t\tcurrentlyPreviewingTheme() +\n\t\t\t\t'&_wpnonce=' +\n\t\t\t\twindow.WP_BLOCK_THEME_ACTIVATE_NONCE;\n\t\t\tstartResolution( 'activateTheme' );\n\t\t\tawait window.fetch( activationURL );\n\t\t\tfinishResolution( 'activateTheme' );\n\t\t\t// Remove the wp_theme_preview query param: we've finished activating\n\t\t\t// the queue and are switching to normal Site Editor.\n\t\t\thistory.navigate( addQueryArgs( path, { wp_theme_preview: '' } ) );\n\t\t}\n\t};\n}\n"],
5
+ "mappings": ";AAAA,SAAS,SAAS,iBAAiB;AACnC,SAAS,mBAAmB;AAC5B,SAAS,eAAe,yBAAyB;AACjD,SAAS,oBAAoB;AAC7B,SAAS,cAAc;AACvB;AAAA,EACC;AAAA,EACA;AAAA,OACM;AAEP,IAAM,EAAE,YAAY,YAAY,IAAI,OAAQ,iBAAkB;AAOvD,SAAS,mBAAmB;AAClC,QAAM,UAAU,WAAW;AAC3B,QAAM,EAAE,KAAK,IAAI,YAAY;AAC7B,QAAM,EAAE,iBAAiB,iBAAiB,IAAI,YAAa,SAAU;AAErE,SAAO,YAAY;AAClB,QAAK,kBAAkB,GAAI;AAC1B,YAAM,gBACL,2CACA,yBAAyB,IACzB,eACA,OAAO;AACR,sBAAiB,eAAgB;AACjC,YAAM,OAAO,MAAO,aAAc;AAClC,uBAAkB,eAAgB;AAGlC,cAAQ,SAAU,aAAc,MAAM,EAAE,kBAAkB,GAAG,CAAE,CAAE;AAAA,IAClE;AAAA,EACD;AACD;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/utils/use-actual-current-theme.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport apiFetch from '@wordpress/api-fetch';\nimport { useState, useEffect } from '@wordpress/element';\nimport { addQueryArgs } from '@wordpress/url';\n\nconst ACTIVE_THEMES_URL = '/wp/v2/themes?status=active';\n\nexport function useActualCurrentTheme() {\n\tconst [ currentTheme, setCurrentTheme ] = useState();\n\n\tuseEffect( () => {\n\t\t// Set the `wp_theme_preview` to empty string to bypass the createThemePreviewMiddleware.\n\t\tconst path = addQueryArgs( ACTIVE_THEMES_URL, {\n\t\t\tcontext: 'edit',\n\t\t\twp_theme_preview: '',\n\t\t} );\n\n\t\tapiFetch( { path } )\n\t\t\t.then( ( activeThemes ) => setCurrentTheme( activeThemes[ 0 ] ) )\n\t\t\t// Do nothing\n\t\t\t.catch( () => {} );\n\t}, [] );\n\n\treturn currentTheme;\n}\n"],
5
- "mappings": ";AAGA,OAAO,cAAc;AACrB,SAAS,UAAU,iBAAiB;AACpC,SAAS,oBAAoB;AAE7B,IAAM,oBAAoB;AAEnB,SAAS,wBAAwB;AACvC,QAAM,CAAE,cAAc,eAAgB,IAAI,SAAS;AAEnD,YAAW,MAAM;AAEhB,UAAM,OAAO,aAAc,mBAAmB;AAAA,MAC7C,SAAS;AAAA,MACT,kBAAkB;AAAA,IACnB,CAAE;AAEF,aAAU,EAAE,KAAK,CAAE,EACjB,KAAM,CAAE,iBAAkB,gBAAiB,aAAc,CAAE,CAAE,CAAE,EAE/D,MAAO,MAAM;AAAA,IAAC,CAAE;AAAA,EACnB,GAAG,CAAC,CAAE;AAEN,SAAO;AACR;",
4
+ "sourcesContent": ["import apiFetch from '@wordpress/api-fetch';\nimport { useState, useEffect } from '@wordpress/element';\nimport { addQueryArgs } from '@wordpress/url';\n\nconst ACTIVE_THEMES_URL = '/wp/v2/themes?status=active';\n\nexport function useActualCurrentTheme() {\n\tconst [ currentTheme, setCurrentTheme ] = useState();\n\n\tuseEffect( () => {\n\t\t// Set the `wp_theme_preview` to empty string to bypass the createThemePreviewMiddleware.\n\t\tconst path = addQueryArgs( ACTIVE_THEMES_URL, {\n\t\t\tcontext: 'edit',\n\t\t\twp_theme_preview: '',\n\t\t} );\n\n\t\tapiFetch( { path } )\n\t\t\t.then( ( activeThemes ) => setCurrentTheme( activeThemes[ 0 ] ) )\n\t\t\t// Do nothing\n\t\t\t.catch( () => {} );\n\t}, [] );\n\n\treturn currentTheme;\n}\n"],
5
+ "mappings": ";AAAA,OAAO,cAAc;AACrB,SAAS,UAAU,iBAAiB;AACpC,SAAS,oBAAoB;AAE7B,IAAM,oBAAoB;AAEnB,SAAS,wBAAwB;AACvC,QAAM,CAAE,cAAc,eAAgB,IAAI,SAAS;AAEnD,YAAW,MAAM;AAEhB,UAAM,OAAO,aAAc,mBAAmB;AAAA,MAC7C,SAAS;AAAA,MACT,kBAAkB;AAAA,IACnB,CAAE;AAEF,aAAU,EAAE,KAAK,CAAE,EACjB,KAAM,CAAE,iBAAkB,gBAAiB,aAAc,CAAE,CAAE,CAAE,EAE/D,MAAO,MAAM;AAAA,IAAC,CAAE;AAAA,EACnB,GAAG,CAAC,CAAE;AAEN,SAAO;AACR;",
6
6
  "names": []
7
7
  }
@@ -1257,7 +1257,7 @@
1257
1257
  .dataviews-view-grid .dataviews-view-grid__media,
1258
1258
  .dataviews-view-grid-infinite-scroll .dataviews-view-grid__media {
1259
1259
  width: 100%;
1260
- aspect-ratio: 1/1;
1260
+ aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1);
1261
1261
  background-color: var(--wpds-color-background-surface-neutral-strong, #fff);
1262
1262
  border-radius: var(--wpds-border-radius-md, 4px);
1263
1263
  overflow: hidden;
@@ -2004,6 +2004,17 @@ div.dataviews-view-list {
2004
2004
  border-radius: var(--wpds-border-radius-md, 4px);
2005
2005
  }
2006
2006
 
2007
+ .dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media {
2008
+ height: var(--wpds-dimension-size-md, 32px);
2009
+ aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1);
2010
+ min-width: 0;
2011
+ }
2012
+
2013
+ .dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media img {
2014
+ width: 100%;
2015
+ height: 100%;
2016
+ }
2017
+
2007
2018
  .dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),
2008
2019
  .dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) {
2009
2020
  min-width: 15ch;
@@ -2657,11 +2668,6 @@ div.dataviews-view-list {
2657
2668
  align-self: flex-end;
2658
2669
  }
2659
2670
 
2660
- .dataviews-controls__richtext [data-rich-text-placeholder]::after {
2661
- content: attr(data-rich-text-placeholder);
2662
- color: color-mix(in srgb, currentColor, transparent 38%);
2663
- }
2664
-
2665
2671
  .dataviews-controls__datetime {
2666
2672
  border: none;
2667
2673
  padding: 0;
@@ -2694,6 +2700,51 @@ div.dataviews-view-list {
2694
2700
  background-color: var(--wpds-color-background-interactive-neutral-strong-active, #1e1e1e);
2695
2701
  }
2696
2702
 
2703
+ .dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop {
2704
+ --wp-components-color-accent: #cc1818;
2705
+ border-color: #cc1818;
2706
+ }
2707
+
2708
+ .dataviews-validated-control__indicator {
2709
+ display: flex;
2710
+ align-items: flex-start;
2711
+ gap: 4px;
2712
+ margin: 8px 0 0;
2713
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2714
+ font-size: 12px;
2715
+ line-height: 16px;
2716
+ color: #757575;
2717
+ animation: dataviews-validated-control__indicator-jump 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
2718
+ }
2719
+
2720
+ .dataviews-validated-control__indicator.is-invalid {
2721
+ color: #cc1818;
2722
+ }
2723
+
2724
+ .dataviews-validated-control__indicator.is-valid {
2725
+ color: color-mix(in srgb, #000 30%, #4ab866);
2726
+ }
2727
+
2728
+ .dataviews-validated-control__indicator-icon {
2729
+ flex-shrink: 0;
2730
+ }
2731
+
2732
+ .dataviews-validated-control__indicator-spinner {
2733
+ margin: 2px;
2734
+ width: 12px;
2735
+ height: 12px;
2736
+ }
2737
+
2738
+ @keyframes dataviews-validated-control__indicator-jump {
2739
+ 0% {
2740
+ transform: translateY(-4px);
2741
+ opacity: 0;
2742
+ }
2743
+ 100% {
2744
+ transform: translateY(0);
2745
+ opacity: 1;
2746
+ }
2747
+ }
2697
2748
  .dataforms-layouts-panel__field-trigger {
2698
2749
  position: relative;
2699
2750
  color: inherit;
@@ -4559,6 +4610,7 @@ button.font-library__upload-area {
4559
4610
  .edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.fields-field__pattern-sync-status-fully) {
4560
4611
  background: rgba(var(--wp-block-synced-color--rgb), 0.04);
4561
4612
  color: var(--wp-block-synced-color);
4613
+ border-color: currentColor;
4562
4614
  }
4563
4615
 
4564
4616
  .dataviews-action-modal__duplicate-pattern [role=dialog] > [role=document] {
@@ -4899,7 +4951,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
4899
4951
 
4900
4952
  .edit-site-layout__snackbar {
4901
4953
  position: fixed;
4902
- bottom: 24px;
4954
+ bottom: var(--wpds-dimension-size-md, 32px);
4903
4955
  right: 0;
4904
4956
  left: 0;
4905
4957
  padding-inline: 16px;
@@ -5045,12 +5097,9 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
5045
5097
  border: none;
5046
5098
  min-height: 40px;
5047
5099
  }
5048
- .edit-site-sidebar-navigation-item.components-item:hover, .edit-site-sidebar-navigation-item.components-item:focus, .edit-site-sidebar-navigation-item.components-item[aria-current=true] {
5100
+ .edit-site-sidebar-navigation-item.components-item:focus, .edit-site-sidebar-navigation-item.components-item[aria-current=true], .edit-site-sidebar-navigation-item.components-item.edit-site-sidebar-navigation-item.components-item:hover {
5049
5101
  color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
5050
5102
  }
5051
- .edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator, .edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator, .edit-site-sidebar-navigation-item.components-item[aria-current=true] .edit-site-sidebar-navigation-item__drilldown-indicator {
5052
- fill: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
5053
- }
5054
5103
  .edit-site-sidebar-navigation-item.components-item[aria-current=true] {
5055
5104
  background: var(--wpds-color-background-interactive-neutral-weak-active, #ededed);
5056
5105
  color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
@@ -5060,9 +5109,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
5060
5109
  --wp-components-color-accent: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
5061
5110
  transform: translateZ(0);
5062
5111
  }
5063
- .edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator {
5064
- fill: var(--wpds-color-foreground-interactive-neutral-weak, #707070);
5065
- }
5066
5112
  .edit-site-sidebar-navigation-item.components-item.with-suffix {
5067
5113
  padding-left: 16px;
5068
5114
  }
@@ -1257,7 +1257,7 @@
1257
1257
  .dataviews-view-grid .dataviews-view-grid__media,
1258
1258
  .dataviews-view-grid-infinite-scroll .dataviews-view-grid__media {
1259
1259
  width: 100%;
1260
- aspect-ratio: 1/1;
1260
+ aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1);
1261
1261
  background-color: var(--wpds-color-background-surface-neutral-strong, #fff);
1262
1262
  border-radius: var(--wpds-border-radius-md, 4px);
1263
1263
  overflow: hidden;
@@ -2004,6 +2004,17 @@ div.dataviews-view-list {
2004
2004
  border-radius: var(--wpds-border-radius-md, 4px);
2005
2005
  }
2006
2006
 
2007
+ .dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media {
2008
+ height: var(--wpds-dimension-size-md, 32px);
2009
+ aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1);
2010
+ min-width: 0;
2011
+ }
2012
+
2013
+ .dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media img {
2014
+ width: 100%;
2015
+ height: 100%;
2016
+ }
2017
+
2007
2018
  .dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),
2008
2019
  .dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) {
2009
2020
  min-width: 15ch;
@@ -2657,11 +2668,6 @@ div.dataviews-view-list {
2657
2668
  align-self: flex-end;
2658
2669
  }
2659
2670
 
2660
- .dataviews-controls__richtext [data-rich-text-placeholder]::after {
2661
- content: attr(data-rich-text-placeholder);
2662
- color: color-mix(in srgb, currentColor, transparent 38%);
2663
- }
2664
-
2665
2671
  .dataviews-controls__datetime {
2666
2672
  border: none;
2667
2673
  padding: 0;
@@ -2694,6 +2700,51 @@ div.dataviews-view-list {
2694
2700
  background-color: var(--wpds-color-background-interactive-neutral-strong-active, #1e1e1e);
2695
2701
  }
2696
2702
 
2703
+ .dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop {
2704
+ --wp-components-color-accent: #cc1818;
2705
+ border-color: #cc1818;
2706
+ }
2707
+
2708
+ .dataviews-validated-control__indicator {
2709
+ display: flex;
2710
+ align-items: flex-start;
2711
+ gap: 4px;
2712
+ margin: 8px 0 0;
2713
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2714
+ font-size: 12px;
2715
+ line-height: 16px;
2716
+ color: #757575;
2717
+ animation: dataviews-validated-control__indicator-jump 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
2718
+ }
2719
+
2720
+ .dataviews-validated-control__indicator.is-invalid {
2721
+ color: #cc1818;
2722
+ }
2723
+
2724
+ .dataviews-validated-control__indicator.is-valid {
2725
+ color: color-mix(in srgb, #000 30%, #4ab866);
2726
+ }
2727
+
2728
+ .dataviews-validated-control__indicator-icon {
2729
+ flex-shrink: 0;
2730
+ }
2731
+
2732
+ .dataviews-validated-control__indicator-spinner {
2733
+ margin: 2px;
2734
+ width: 12px;
2735
+ height: 12px;
2736
+ }
2737
+
2738
+ @keyframes dataviews-validated-control__indicator-jump {
2739
+ 0% {
2740
+ transform: translateY(-4px);
2741
+ opacity: 0;
2742
+ }
2743
+ 100% {
2744
+ transform: translateY(0);
2745
+ opacity: 1;
2746
+ }
2747
+ }
2697
2748
  .dataforms-layouts-panel__field-trigger {
2698
2749
  position: relative;
2699
2750
  color: inherit;
@@ -4561,6 +4612,7 @@ button.font-library__upload-area {
4561
4612
  .edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.fields-field__pattern-sync-status-fully) {
4562
4613
  background: rgba(var(--wp-block-synced-color--rgb), 0.04);
4563
4614
  color: var(--wp-block-synced-color);
4615
+ border-color: currentColor;
4564
4616
  }
4565
4617
 
4566
4618
  .dataviews-action-modal__duplicate-pattern [role=dialog] > [role=document] {
@@ -4901,7 +4953,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
4901
4953
 
4902
4954
  .edit-site-layout__snackbar {
4903
4955
  position: fixed;
4904
- bottom: 24px;
4956
+ bottom: var(--wpds-dimension-size-md, 32px);
4905
4957
  left: 0;
4906
4958
  right: 0;
4907
4959
  padding-inline: 16px;
@@ -5047,12 +5099,9 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
5047
5099
  border: none;
5048
5100
  min-height: 40px;
5049
5101
  }
5050
- .edit-site-sidebar-navigation-item.components-item:hover, .edit-site-sidebar-navigation-item.components-item:focus, .edit-site-sidebar-navigation-item.components-item[aria-current=true] {
5102
+ .edit-site-sidebar-navigation-item.components-item:focus, .edit-site-sidebar-navigation-item.components-item[aria-current=true], .edit-site-sidebar-navigation-item.components-item.edit-site-sidebar-navigation-item.components-item:hover {
5051
5103
  color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
5052
5104
  }
5053
- .edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator, .edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator, .edit-site-sidebar-navigation-item.components-item[aria-current=true] .edit-site-sidebar-navigation-item__drilldown-indicator {
5054
- fill: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
5055
- }
5056
5105
  .edit-site-sidebar-navigation-item.components-item[aria-current=true] {
5057
5106
  background: var(--wpds-color-background-interactive-neutral-weak-active, #ededed);
5058
5107
  color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
@@ -5062,9 +5111,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
5062
5111
  --wp-components-color-accent: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
5063
5112
  transform: translateZ(0);
5064
5113
  }
5065
- .edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator {
5066
- fill: var(--wpds-color-foreground-interactive-neutral-weak, #707070);
5067
- }
5068
5114
  .edit-site-sidebar-navigation-item.components-item.with-suffix {
5069
5115
  padding-right: 16px;
5070
5116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "7.1.0",
3
+ "version": "7.2.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,52 +47,52 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@react-spring/web": "^9.4.5",
50
- "@wordpress/a11y": "^4.52.0",
51
- "@wordpress/admin-ui": "^2.7.0",
52
- "@wordpress/api-fetch": "^7.52.0",
53
- "@wordpress/base-styles": "^12.0.0",
54
- "@wordpress/blob": "^4.52.0",
55
- "@wordpress/block-editor": "^16.1.0",
56
- "@wordpress/block-library": "^10.3.0",
57
- "@wordpress/blocks": "^15.25.0",
58
- "@wordpress/commands": "^1.52.0",
59
- "@wordpress/components": "^38.0.0",
60
- "@wordpress/compose": "^8.5.0",
61
- "@wordpress/core-data": "^7.52.0",
62
- "@wordpress/data": "^10.52.0",
63
- "@wordpress/dataviews": "^17.3.0",
64
- "@wordpress/date": "^5.52.0",
65
- "@wordpress/deprecated": "^4.52.0",
66
- "@wordpress/dom": "^4.52.0",
67
- "@wordpress/editor": "^14.52.0",
68
- "@wordpress/element": "^8.4.0",
69
- "@wordpress/escape-html": "^3.52.0",
70
- "@wordpress/fields": "^0.44.0",
71
- "@wordpress/global-styles-engine": "^1.19.0",
72
- "@wordpress/global-styles-ui": "^1.19.0",
73
- "@wordpress/hooks": "^4.52.0",
74
- "@wordpress/html-entities": "^4.52.0",
75
- "@wordpress/i18n": "^6.25.0",
76
- "@wordpress/icons": "^15.3.0",
77
- "@wordpress/keyboard-shortcuts": "^5.52.0",
78
- "@wordpress/keycodes": "^4.52.0",
79
- "@wordpress/media-utils": "^5.52.0",
80
- "@wordpress/notices": "^5.52.0",
81
- "@wordpress/patterns": "^2.52.0",
82
- "@wordpress/plugins": "^7.52.0",
83
- "@wordpress/preferences": "^4.52.0",
84
- "@wordpress/primitives": "^4.52.0",
85
- "@wordpress/private-apis": "^1.52.0",
86
- "@wordpress/reusable-blocks": "^5.52.0",
87
- "@wordpress/router": "^1.52.0",
88
- "@wordpress/style-engine": "^2.52.0",
89
- "@wordpress/theme": "^1.1.0",
90
- "@wordpress/ui": "^0.19.0",
91
- "@wordpress/url": "^4.52.0",
92
- "@wordpress/viewport": "^6.52.0",
93
- "@wordpress/views": "^1.19.0",
94
- "@wordpress/widgets": "^4.52.0",
95
- "@wordpress/wordcount": "^4.52.0",
50
+ "@wordpress/a11y": "^4.53.0",
51
+ "@wordpress/admin-ui": "^2.8.0",
52
+ "@wordpress/api-fetch": "^7.53.0",
53
+ "@wordpress/base-styles": "^12.1.0",
54
+ "@wordpress/blob": "^4.53.0",
55
+ "@wordpress/block-editor": "^16.2.0",
56
+ "@wordpress/block-library": "^10.4.0",
57
+ "@wordpress/blocks": "^15.26.0",
58
+ "@wordpress/commands": "^1.53.0",
59
+ "@wordpress/components": "^39.0.0",
60
+ "@wordpress/compose": "^8.6.0",
61
+ "@wordpress/core-data": "^7.53.0",
62
+ "@wordpress/data": "^10.53.0",
63
+ "@wordpress/dataviews": "^18.0.0",
64
+ "@wordpress/date": "^5.53.0",
65
+ "@wordpress/deprecated": "^4.53.0",
66
+ "@wordpress/dom": "^4.53.0",
67
+ "@wordpress/editor": "^14.53.0",
68
+ "@wordpress/element": "^8.5.0",
69
+ "@wordpress/escape-html": "^3.53.0",
70
+ "@wordpress/fields": "^0.45.0",
71
+ "@wordpress/global-styles-engine": "^1.20.0",
72
+ "@wordpress/global-styles-ui": "^1.20.0",
73
+ "@wordpress/hooks": "^4.53.0",
74
+ "@wordpress/html-entities": "^4.53.0",
75
+ "@wordpress/i18n": "^6.26.0",
76
+ "@wordpress/icons": "^15.4.0",
77
+ "@wordpress/keyboard-shortcuts": "^5.53.0",
78
+ "@wordpress/keycodes": "^4.53.0",
79
+ "@wordpress/media-utils": "^5.53.0",
80
+ "@wordpress/notices": "^5.53.0",
81
+ "@wordpress/patterns": "^2.53.0",
82
+ "@wordpress/plugins": "^7.53.0",
83
+ "@wordpress/preferences": "^4.53.0",
84
+ "@wordpress/primitives": "^4.53.0",
85
+ "@wordpress/private-apis": "^1.53.0",
86
+ "@wordpress/reusable-blocks": "^5.53.0",
87
+ "@wordpress/router": "^1.53.0",
88
+ "@wordpress/style-engine": "^2.53.0",
89
+ "@wordpress/theme": "^1.2.0",
90
+ "@wordpress/ui": "^0.20.0",
91
+ "@wordpress/url": "^4.53.0",
92
+ "@wordpress/viewport": "^6.53.0",
93
+ "@wordpress/views": "^1.20.0",
94
+ "@wordpress/widgets": "^4.53.0",
95
+ "@wordpress/wordcount": "^4.53.0",
96
96
  "change-case": "^4.1.2",
97
97
  "clsx": "^2.1.1",
98
98
  "colord": "^2.9.3",
@@ -106,5 +106,5 @@
106
106
  "publishConfig": {
107
107
  "access": "public"
108
108
  },
109
- "gitHead": "7e8b17a983f9391d3ebc7717af2a1c9ed7efc7ab"
109
+ "gitHead": "989764d42ff93e33684aaf0b96a5b7f3d9bbff52"
110
110
  }
@@ -1,6 +1,3 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { DropdownMenu } from '@wordpress/components';
5
2
  import { useState, useRef } from '@wordpress/element';
6
3
  import { __, sprintf } from '@wordpress/i18n';
@@ -14,10 +11,6 @@ import {
14
11
  import { store as noticesStore } from '@wordpress/notices';
15
12
  import { store as coreStore } from '@wordpress/core-data';
16
13
  import { privateApis as editorPrivateApis } from '@wordpress/editor';
17
-
18
- /**
19
- * Internal dependencies
20
- */
21
14
  import { unlock } from '../../lock-unlock';
22
15
  import {
23
16
  PATTERN_TYPES,
@@ -1,6 +1,3 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import {
5
2
  Button,
6
3
  Modal,