@wordpress/edit-site 7.0.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 (399) hide show
  1. package/CHANGELOG.md +8 -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 +8 -3
  19. package/build/components/canvas-loader/index.cjs.map +3 -3
  20. package/build/components/dataviews-actions/index.cjs.map +2 -2
  21. package/build/components/editor/index.cjs +6 -5
  22. package/build/components/editor/index.cjs.map +3 -3
  23. package/build/components/editor/site-preview.cjs.map +2 -2
  24. package/build/components/editor/use-adapt-editor-to-canvas.cjs.map +2 -2
  25. package/build/components/editor/use-editor-title.cjs +1 -2
  26. package/build/components/editor/use-editor-title.cjs.map +3 -3
  27. package/build/components/editor/use-resolve-edited-entity.cjs.map +2 -2
  28. package/build/components/editor/use-revisions-url-sync.cjs +122 -0
  29. package/build/components/editor/use-revisions-url-sync.cjs.map +7 -0
  30. package/build/components/layout/animation.cjs.map +2 -2
  31. package/build/components/layout/hooks.cjs.map +2 -2
  32. package/build/components/layout/index.cjs +0 -1
  33. package/build/components/layout/index.cjs.map +2 -2
  34. package/build/components/media/index.cjs.map +2 -2
  35. package/build/components/more-menu/index.cjs.map +2 -2
  36. package/build/components/more-menu/site-export.cjs.map +2 -2
  37. package/build/components/more-menu/welcome-guide-menu-item.cjs.map +2 -2
  38. package/build/components/page-patterns/actions.cjs.map +2 -2
  39. package/build/components/page-patterns/delete-category-menu-item.cjs.map +2 -2
  40. package/build/components/page-patterns/fields.cjs.map +2 -2
  41. package/build/components/page-patterns/index.cjs.map +2 -2
  42. package/build/components/page-patterns/rename-category-menu-item.cjs.map +2 -2
  43. package/build/components/page-patterns/search-items.cjs.map +2 -2
  44. package/build/components/page-patterns/use-pattern-settings.cjs.map +2 -2
  45. package/build/components/page-patterns/use-patterns.cjs.map +2 -2
  46. package/build/components/page-templates/fields.cjs.map +2 -2
  47. package/build/components/page-templates/hooks.cjs.map +2 -2
  48. package/build/components/page-templates/index-legacy.cjs.map +2 -2
  49. package/build/components/page-templates/index.cjs.map +2 -2
  50. package/build/components/pagination/index.cjs.map +2 -2
  51. package/build/components/plugin-template-setting-panel/index.cjs.map +2 -2
  52. package/build/components/post-list/index.cjs.map +2 -2
  53. package/build/components/post-list/quick-edit-modal.cjs.map +2 -2
  54. package/build/components/post-list/use-notes-count.cjs.map +2 -2
  55. package/build/components/resizable-frame/index.cjs.map +2 -2
  56. package/build/components/routes/use-title.cjs.map +2 -2
  57. package/build/components/save-button/index.cjs +3 -3
  58. package/build/components/save-button/index.cjs.map +3 -3
  59. package/build/components/save-hub/index.cjs.map +2 -2
  60. package/build/components/save-keyboard-shortcut/index.cjs.map +2 -2
  61. package/build/components/save-panel/index.cjs +7 -4
  62. package/build/components/save-panel/index.cjs.map +3 -3
  63. package/build/components/sidebar/index.cjs.map +2 -2
  64. package/build/components/sidebar-button/index.cjs.map +2 -2
  65. package/build/components/sidebar-dataviews/index.cjs.map +2 -2
  66. package/build/components/sidebar-global-styles/index.cjs.map +2 -2
  67. package/build/components/sidebar-identity/index.cjs +5 -2
  68. package/build/components/sidebar-identity/index.cjs.map +2 -2
  69. package/build/components/sidebar-navigation-item/index.cjs.map +2 -2
  70. package/build/components/sidebar-navigation-screen/index.cjs.map +2 -2
  71. package/build/components/sidebar-navigation-screen-details-footer/index.cjs.map +2 -2
  72. package/build/components/sidebar-navigation-screen-global-styles/content.cjs.map +2 -2
  73. package/build/components/sidebar-navigation-screen-global-styles/index.cjs.map +2 -2
  74. package/build/components/sidebar-navigation-screen-identity/index.cjs.map +2 -2
  75. package/build/components/sidebar-navigation-screen-main/index.cjs.map +2 -2
  76. package/build/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.cjs.map +2 -2
  77. package/build/components/sidebar-navigation-screen-navigation-menu/index.cjs.map +2 -2
  78. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.cjs.map +2 -2
  79. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.cjs.map +2 -2
  80. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.cjs.map +2 -2
  81. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.cjs.map +2 -2
  82. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.cjs.map +2 -2
  83. package/build/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.cjs.map +2 -2
  84. package/build/components/sidebar-navigation-screen-navigation-menus/index.cjs.map +2 -2
  85. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.cjs +24 -25
  86. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.cjs.map +2 -2
  87. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.cjs.map +2 -2
  88. package/build/components/sidebar-navigation-screen-patterns/category-item.cjs.map +2 -2
  89. package/build/components/sidebar-navigation-screen-patterns/index.cjs +3 -2
  90. package/build/components/sidebar-navigation-screen-patterns/index.cjs.map +3 -3
  91. package/build/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.cjs.map +2 -2
  92. package/build/components/sidebar-navigation-screen-patterns/use-pattern-categories.cjs.map +2 -2
  93. package/build/components/sidebar-navigation-screen-patterns/use-template-part-areas.cjs.map +2 -2
  94. package/build/components/sidebar-navigation-screen-patterns/use-theme-patterns.cjs.map +2 -2
  95. package/build/components/sidebar-navigation-screen-templates-browse/content-legacy.cjs.map +2 -2
  96. package/build/components/sidebar-navigation-screen-templates-browse/content.cjs +1 -1
  97. package/build/components/sidebar-navigation-screen-templates-browse/content.cjs.map +2 -2
  98. package/build/components/sidebar-navigation-screen-templates-browse/index.cjs.map +2 -2
  99. package/build/components/sidebar-navigation-screen-unsupported/index.cjs.map +2 -2
  100. package/build/components/site-editor-routes/home.cjs.map +2 -2
  101. package/build/components/site-editor-routes/identity.cjs.map +2 -2
  102. package/build/components/site-editor-routes/index.cjs.map +2 -2
  103. package/build/components/site-editor-routes/navigation-item.cjs.map +2 -2
  104. package/build/components/site-editor-routes/navigation.cjs.map +2 -2
  105. package/build/components/site-editor-routes/notfound.cjs.map +2 -2
  106. package/build/components/site-editor-routes/page-item.cjs.map +2 -2
  107. package/build/components/site-editor-routes/pages.cjs.map +2 -2
  108. package/build/components/site-editor-routes/pattern-item.cjs.map +2 -2
  109. package/build/components/site-editor-routes/patterns.cjs.map +2 -2
  110. package/build/components/site-editor-routes/stylebook.cjs.map +2 -2
  111. package/build/components/site-editor-routes/styles.cjs +17 -12
  112. package/build/components/site-editor-routes/styles.cjs.map +2 -2
  113. package/build/components/site-editor-routes/template-item.cjs.map +2 -2
  114. package/build/components/site-editor-routes/template-part-item.cjs.map +2 -2
  115. package/build/components/site-editor-routes/templates.cjs.map +2 -2
  116. package/build/components/site-hub/index.cjs.map +2 -2
  117. package/build/components/welcome-guide/editor.cjs.map +2 -2
  118. package/build/components/welcome-guide/index.cjs.map +2 -2
  119. package/build/components/welcome-guide/page.cjs.map +2 -2
  120. package/build/components/welcome-guide/template.cjs.map +2 -2
  121. package/build/deprecated.cjs.map +2 -2
  122. package/build/hooks/commands/use-common-commands.cjs.map +2 -2
  123. package/build/hooks/commands/use-set-command-context.cjs.map +2 -2
  124. package/build/index.cjs.map +2 -2
  125. package/build/lock-unlock.cjs.map +2 -2
  126. package/build/store/actions.cjs.map +2 -2
  127. package/build/store/index.cjs.map +2 -2
  128. package/build/store/reducer.cjs.map +2 -2
  129. package/build/store/selectors.cjs.map +2 -2
  130. package/build/utils/constants.cjs.map +2 -2
  131. package/build/utils/get-filtered-template-parts.cjs.map +2 -2
  132. package/build/utils/is-previewing-theme.cjs.map +2 -2
  133. package/build/utils/is-template-removable.cjs.map +2 -2
  134. package/build/utils/is-template-revertable.cjs.map +2 -2
  135. package/build/utils/use-activate-theme.cjs.map +2 -2
  136. package/build/utils/use-actual-current-theme.cjs.map +2 -2
  137. package/build-module/components/add-new-pattern/index.mjs.map +2 -2
  138. package/build-module/components/add-new-post/index.mjs.map +2 -2
  139. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.mjs.map +2 -2
  140. package/build-module/components/add-new-template/add-custom-template-modal-content.mjs.map +2 -2
  141. package/build-module/components/add-new-template/index.mjs.map +2 -2
  142. package/build-module/components/add-new-template/utils.mjs.map +2 -2
  143. package/build-module/components/add-new-template-legacy/add-custom-generic-template-modal-content.mjs.map +2 -2
  144. package/build-module/components/add-new-template-legacy/add-custom-template-modal-content.mjs.map +2 -2
  145. package/build-module/components/add-new-template-legacy/index.mjs.map +2 -2
  146. package/build-module/components/add-new-template-legacy/utils.mjs.map +2 -2
  147. package/build-module/components/app/index.mjs.map +2 -2
  148. package/build-module/components/block-editor/use-editor-iframe-props.mjs.map +2 -2
  149. package/build-module/components/block-editor/use-navigate-to-entity-record.mjs.map +2 -2
  150. package/build-module/components/block-editor/use-site-editor-settings.mjs.map +2 -2
  151. package/build-module/components/block-editor/use-viewport-sync.mjs.map +2 -2
  152. package/build-module/components/canvas-loader/index.mjs +9 -7
  153. package/build-module/components/canvas-loader/index.mjs.map +2 -2
  154. package/build-module/components/dataviews-actions/index.mjs.map +2 -2
  155. package/build-module/components/editor/index.mjs +6 -5
  156. package/build-module/components/editor/index.mjs.map +2 -2
  157. package/build-module/components/editor/site-preview.mjs.map +2 -2
  158. package/build-module/components/editor/use-adapt-editor-to-canvas.mjs.map +2 -2
  159. package/build-module/components/editor/use-editor-title.mjs +5 -3
  160. package/build-module/components/editor/use-editor-title.mjs.map +2 -2
  161. package/build-module/components/editor/use-resolve-edited-entity.mjs.map +2 -2
  162. package/build-module/components/editor/use-revisions-url-sync.mjs +101 -0
  163. package/build-module/components/editor/use-revisions-url-sync.mjs.map +7 -0
  164. package/build-module/components/layout/animation.mjs.map +2 -2
  165. package/build-module/components/layout/hooks.mjs.map +2 -2
  166. package/build-module/components/layout/index.mjs +0 -1
  167. package/build-module/components/layout/index.mjs.map +2 -2
  168. package/build-module/components/media/index.mjs.map +2 -2
  169. package/build-module/components/more-menu/index.mjs.map +2 -2
  170. package/build-module/components/more-menu/site-export.mjs.map +2 -2
  171. package/build-module/components/more-menu/welcome-guide-menu-item.mjs.map +2 -2
  172. package/build-module/components/page-patterns/actions.mjs.map +2 -2
  173. package/build-module/components/page-patterns/delete-category-menu-item.mjs.map +2 -2
  174. package/build-module/components/page-patterns/fields.mjs.map +2 -2
  175. package/build-module/components/page-patterns/index.mjs.map +2 -2
  176. package/build-module/components/page-patterns/rename-category-menu-item.mjs.map +2 -2
  177. package/build-module/components/page-patterns/search-items.mjs.map +2 -2
  178. package/build-module/components/page-patterns/use-pattern-settings.mjs.map +2 -2
  179. package/build-module/components/page-patterns/use-patterns.mjs.map +2 -2
  180. package/build-module/components/page-templates/fields.mjs.map +2 -2
  181. package/build-module/components/page-templates/hooks.mjs.map +2 -2
  182. package/build-module/components/page-templates/index-legacy.mjs.map +2 -2
  183. package/build-module/components/page-templates/index.mjs.map +2 -2
  184. package/build-module/components/pagination/index.mjs.map +2 -2
  185. package/build-module/components/plugin-template-setting-panel/index.mjs.map +2 -2
  186. package/build-module/components/post-list/index.mjs.map +2 -2
  187. package/build-module/components/post-list/quick-edit-modal.mjs.map +2 -2
  188. package/build-module/components/post-list/use-notes-count.mjs.map +2 -2
  189. package/build-module/components/resizable-frame/index.mjs.map +2 -2
  190. package/build-module/components/routes/use-title.mjs.map +2 -2
  191. package/build-module/components/save-button/index.mjs +6 -6
  192. package/build-module/components/save-button/index.mjs.map +2 -2
  193. package/build-module/components/save-hub/index.mjs.map +2 -2
  194. package/build-module/components/save-keyboard-shortcut/index.mjs.map +2 -2
  195. package/build-module/components/save-panel/index.mjs +9 -7
  196. package/build-module/components/save-panel/index.mjs.map +2 -2
  197. package/build-module/components/sidebar/index.mjs.map +2 -2
  198. package/build-module/components/sidebar-button/index.mjs.map +2 -2
  199. package/build-module/components/sidebar-dataviews/index.mjs.map +2 -2
  200. package/build-module/components/sidebar-global-styles/index.mjs.map +2 -2
  201. package/build-module/components/sidebar-identity/index.mjs +5 -2
  202. package/build-module/components/sidebar-identity/index.mjs.map +2 -2
  203. package/build-module/components/sidebar-navigation-item/index.mjs.map +2 -2
  204. package/build-module/components/sidebar-navigation-screen/index.mjs.map +2 -2
  205. package/build-module/components/sidebar-navigation-screen-details-footer/index.mjs.map +2 -2
  206. package/build-module/components/sidebar-navigation-screen-global-styles/content.mjs.map +2 -2
  207. package/build-module/components/sidebar-navigation-screen-global-styles/index.mjs.map +2 -2
  208. package/build-module/components/sidebar-navigation-screen-identity/index.mjs.map +2 -2
  209. package/build-module/components/sidebar-navigation-screen-main/index.mjs.map +2 -2
  210. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.mjs.map +2 -2
  211. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.mjs.map +2 -2
  212. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.mjs.map +2 -2
  213. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.mjs.map +2 -2
  214. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.mjs.map +2 -2
  215. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.mjs.map +2 -2
  216. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.mjs.map +2 -2
  217. package/build-module/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.mjs.map +2 -2
  218. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.mjs.map +2 -2
  219. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.mjs +24 -25
  220. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.mjs.map +2 -2
  221. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.mjs.map +2 -2
  222. package/build-module/components/sidebar-navigation-screen-patterns/category-item.mjs.map +2 -2
  223. package/build-module/components/sidebar-navigation-screen-patterns/index.mjs +2 -1
  224. package/build-module/components/sidebar-navigation-screen-patterns/index.mjs.map +2 -2
  225. package/build-module/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.mjs.map +2 -2
  226. package/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.mjs.map +2 -2
  227. package/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.mjs.map +2 -2
  228. package/build-module/components/sidebar-navigation-screen-patterns/use-theme-patterns.mjs.map +2 -2
  229. package/build-module/components/sidebar-navigation-screen-templates-browse/content-legacy.mjs.map +2 -2
  230. package/build-module/components/sidebar-navigation-screen-templates-browse/content.mjs +1 -1
  231. package/build-module/components/sidebar-navigation-screen-templates-browse/content.mjs.map +2 -2
  232. package/build-module/components/sidebar-navigation-screen-templates-browse/index.mjs.map +2 -2
  233. package/build-module/components/sidebar-navigation-screen-unsupported/index.mjs.map +2 -2
  234. package/build-module/components/site-editor-routes/home.mjs.map +2 -2
  235. package/build-module/components/site-editor-routes/identity.mjs.map +2 -2
  236. package/build-module/components/site-editor-routes/index.mjs.map +2 -2
  237. package/build-module/components/site-editor-routes/navigation-item.mjs.map +2 -2
  238. package/build-module/components/site-editor-routes/navigation.mjs.map +2 -2
  239. package/build-module/components/site-editor-routes/notfound.mjs.map +2 -2
  240. package/build-module/components/site-editor-routes/page-item.mjs.map +2 -2
  241. package/build-module/components/site-editor-routes/pages.mjs.map +2 -2
  242. package/build-module/components/site-editor-routes/pattern-item.mjs.map +2 -2
  243. package/build-module/components/site-editor-routes/patterns.mjs.map +2 -2
  244. package/build-module/components/site-editor-routes/stylebook.mjs.map +2 -2
  245. package/build-module/components/site-editor-routes/styles.mjs +17 -12
  246. package/build-module/components/site-editor-routes/styles.mjs.map +2 -2
  247. package/build-module/components/site-editor-routes/template-item.mjs.map +2 -2
  248. package/build-module/components/site-editor-routes/template-part-item.mjs.map +2 -2
  249. package/build-module/components/site-editor-routes/templates.mjs.map +2 -2
  250. package/build-module/components/site-hub/index.mjs.map +2 -2
  251. package/build-module/components/welcome-guide/editor.mjs.map +2 -2
  252. package/build-module/components/welcome-guide/index.mjs.map +2 -2
  253. package/build-module/components/welcome-guide/page.mjs.map +2 -2
  254. package/build-module/components/welcome-guide/template.mjs.map +2 -2
  255. package/build-module/deprecated.mjs.map +2 -2
  256. package/build-module/hooks/commands/use-common-commands.mjs.map +2 -2
  257. package/build-module/hooks/commands/use-set-command-context.mjs.map +2 -2
  258. package/build-module/index.mjs.map +2 -2
  259. package/build-module/lock-unlock.mjs.map +2 -2
  260. package/build-module/store/actions.mjs.map +2 -2
  261. package/build-module/store/index.mjs.map +2 -2
  262. package/build-module/store/reducer.mjs.map +2 -2
  263. package/build-module/store/selectors.mjs.map +2 -2
  264. package/build-module/utils/constants.mjs.map +2 -2
  265. package/build-module/utils/get-filtered-template-parts.mjs.map +2 -2
  266. package/build-module/utils/is-previewing-theme.mjs.map +2 -2
  267. package/build-module/utils/is-template-removable.mjs.map +2 -2
  268. package/build-module/utils/is-template-revertable.mjs.map +2 -2
  269. package/build-module/utils/use-activate-theme.mjs.map +2 -2
  270. package/build-module/utils/use-actual-current-theme.mjs.map +2 -2
  271. package/build-style/style-rtl.css +79 -22
  272. package/build-style/style.css +79 -22
  273. package/package.json +48 -49
  274. package/src/components/add-new-pattern/index.js +0 -7
  275. package/src/components/add-new-post/index.js +0 -3
  276. package/src/components/add-new-template/add-custom-generic-template-modal-content.js +0 -7
  277. package/src/components/add-new-template/add-custom-template-modal-content.js +0 -7
  278. package/src/components/add-new-template/index.js +0 -15
  279. package/src/components/add-new-template/utils.js +0 -7
  280. package/src/components/add-new-template-legacy/add-custom-generic-template-modal-content.js +0 -7
  281. package/src/components/add-new-template-legacy/add-custom-template-modal-content.js +0 -7
  282. package/src/components/add-new-template-legacy/index.js +0 -15
  283. package/src/components/add-new-template-legacy/utils.js +0 -7
  284. package/src/components/app/index.js +0 -7
  285. package/src/components/block-editor/use-editor-iframe-props.js +0 -11
  286. package/src/components/block-editor/use-navigate-to-entity-record.js +0 -7
  287. package/src/components/block-editor/use-site-editor-settings.js +0 -7
  288. package/src/components/block-editor/use-viewport-sync.js +0 -7
  289. package/src/components/canvas-loader/index.js +6 -17
  290. package/src/components/canvas-loader/style.scss +3 -4
  291. package/src/components/dataviews-actions/index.js +0 -7
  292. package/src/components/editor/index.js +6 -12
  293. package/src/components/editor/site-preview.js +0 -3
  294. package/src/components/editor/use-adapt-editor-to-canvas.js +0 -7
  295. package/src/components/editor/use-editor-title.js +5 -10
  296. package/src/components/editor/use-resolve-edited-entity.js +0 -7
  297. package/src/components/editor/use-revisions-url-sync.js +132 -0
  298. package/src/components/layout/animation.js +0 -7
  299. package/src/components/layout/hooks.js +0 -3
  300. package/src/components/layout/index.js +0 -12
  301. package/src/components/media/index.js +0 -3
  302. package/src/components/more-menu/index.js +0 -7
  303. package/src/components/more-menu/site-export.js +0 -3
  304. package/src/components/more-menu/welcome-guide-menu-item.js +0 -3
  305. package/src/components/page-patterns/actions.js +0 -7
  306. package/src/components/page-patterns/delete-category-menu-item.js +0 -7
  307. package/src/components/page-patterns/fields.js +0 -7
  308. package/src/components/page-patterns/index.js +0 -7
  309. package/src/components/page-patterns/rename-category-menu-item.js +0 -10
  310. package/src/components/page-patterns/search-items.js +0 -12
  311. package/src/components/page-patterns/style.scss +3 -0
  312. package/src/components/page-patterns/use-pattern-settings.js +0 -7
  313. package/src/components/page-patterns/use-patterns.js +0 -7
  314. package/src/components/page-templates/fields.js +0 -11
  315. package/src/components/page-templates/hooks.js +0 -7
  316. package/src/components/page-templates/index-legacy.js +0 -7
  317. package/src/components/page-templates/index.js +0 -7
  318. package/src/components/pagination/index.js +0 -7
  319. package/src/components/plugin-template-setting-panel/index.js +0 -4
  320. package/src/components/post-list/index.js +0 -9
  321. package/src/components/post-list/quick-edit-modal.js +0 -7
  322. package/src/components/post-list/use-notes-count.js +0 -3
  323. package/src/components/resizable-frame/index.js +0 -11
  324. package/src/components/routes/use-title.js +0 -7
  325. package/src/components/save-button/index.js +6 -13
  326. package/src/components/save-hub/index.js +0 -7
  327. package/src/components/save-keyboard-shortcut/index.js +0 -7
  328. package/src/components/save-panel/index.js +9 -18
  329. package/src/components/sidebar/index.js +0 -7
  330. package/src/components/sidebar-button/index.js +0 -7
  331. package/src/components/sidebar-dataviews/index.js +0 -7
  332. package/src/components/sidebar-global-styles/index.js +0 -7
  333. package/src/components/sidebar-identity/index.js +3 -3
  334. package/src/components/sidebar-navigation-item/index.js +0 -11
  335. package/src/components/sidebar-navigation-item/style.scss +3 -10
  336. package/src/components/sidebar-navigation-screen/index.js +0 -11
  337. package/src/components/sidebar-navigation-screen-details-footer/index.js +0 -7
  338. package/src/components/sidebar-navigation-screen-global-styles/content.js +0 -7
  339. package/src/components/sidebar-navigation-screen-global-styles/index.js +0 -7
  340. package/src/components/sidebar-navigation-screen-identity/index.js +0 -7
  341. package/src/components/sidebar-navigation-screen-main/index.js +0 -7
  342. package/src/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js +0 -3
  343. package/src/components/sidebar-navigation-screen-navigation-menu/index.js +0 -7
  344. package/src/components/sidebar-navigation-screen-navigation-menu/more-menu.js +0 -7
  345. package/src/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +0 -7
  346. package/src/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +0 -3
  347. package/src/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +0 -6
  348. package/src/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +0 -7
  349. package/src/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js +0 -3
  350. package/src/components/sidebar-navigation-screen-navigation-menus/index.js +0 -8
  351. package/src/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +38 -48
  352. package/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +0 -7
  353. package/src/components/sidebar-navigation-screen-patterns/category-item.js +0 -3
  354. package/src/components/sidebar-navigation-screen-patterns/index.js +2 -8
  355. package/src/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js +0 -7
  356. package/src/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +0 -7
  357. package/src/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +0 -7
  358. package/src/components/sidebar-navigation-screen-patterns/use-theme-patterns.js +0 -7
  359. package/src/components/sidebar-navigation-screen-templates-browse/content-legacy.js +0 -7
  360. package/src/components/sidebar-navigation-screen-templates-browse/content.js +1 -8
  361. package/src/components/sidebar-navigation-screen-templates-browse/index.js +0 -7
  362. package/src/components/sidebar-navigation-screen-unsupported/index.js +0 -3
  363. package/src/components/site-editor-routes/home.js +0 -3
  364. package/src/components/site-editor-routes/identity.js +0 -3
  365. package/src/components/site-editor-routes/index.js +0 -7
  366. package/src/components/site-editor-routes/navigation-item.js +0 -3
  367. package/src/components/site-editor-routes/navigation.js +0 -3
  368. package/src/components/site-editor-routes/notfound.js +0 -7
  369. package/src/components/site-editor-routes/page-item.js +0 -7
  370. package/src/components/site-editor-routes/pages.js +0 -7
  371. package/src/components/site-editor-routes/pattern-item.js +0 -3
  372. package/src/components/site-editor-routes/patterns.js +0 -3
  373. package/src/components/site-editor-routes/stylebook.js +0 -7
  374. package/src/components/site-editor-routes/styles.js +19 -18
  375. package/src/components/site-editor-routes/template-item.js +0 -3
  376. package/src/components/site-editor-routes/template-part-item.js +0 -3
  377. package/src/components/site-editor-routes/templates.js +0 -7
  378. package/src/components/site-hub/index.js +0 -7
  379. package/src/components/welcome-guide/editor.js +0 -7
  380. package/src/components/welcome-guide/index.js +0 -3
  381. package/src/components/welcome-guide/page.js +0 -3
  382. package/src/components/welcome-guide/template.js +0 -3
  383. package/src/deprecated.js +0 -3
  384. package/src/hooks/commands/use-common-commands.js +0 -7
  385. package/src/hooks/commands/use-set-command-context.js +0 -7
  386. package/src/index.js +0 -7
  387. package/src/lock-unlock.js +0 -3
  388. package/src/store/actions.js +0 -7
  389. package/src/store/index.js +0 -7
  390. package/src/store/reducer.js +0 -3
  391. package/src/store/selectors.js +0 -7
  392. package/src/utils/constants.js +0 -7
  393. package/src/utils/get-filtered-template-parts.js +0 -3
  394. package/src/utils/is-previewing-theme.js +0 -3
  395. package/src/utils/is-template-removable.js +0 -3
  396. package/src/utils/is-template-revertable.js +0 -3
  397. package/src/utils/test/get-filtered-template-parts.js +0 -3
  398. package/src/utils/use-activate-theme.js +0 -7
  399. package/src/utils/use-actual-current-theme.js +0 -3
@@ -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
  }
@@ -238,6 +238,10 @@
238
238
  transition: padding ease-out 0.1s;
239
239
  }
240
240
  }
241
+ .dataviews__search {
242
+ flex-grow: 1;
243
+ }
244
+
241
245
  .dataviews-no-results,
242
246
  .dataviews-loading {
243
247
  padding: 0 var(--wpds-dimension-padding-2xl, 24px);
@@ -562,6 +566,7 @@
562
566
  font-weight: var(--wpds-typography-font-weight-default, 400);
563
567
  font-size: 13px;
564
568
  line-height: 20px;
569
+ color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e);
565
570
  }
566
571
 
567
572
  .dataviews-filters__search-widget-listitem:last-child {
@@ -570,6 +575,7 @@
570
575
 
571
576
  .dataviews-filters__search-widget-listitem:hover, .dataviews-filters__search-widget-listitem[data-active-item], .dataviews-filters__search-widget-listitem:focus {
572
577
  background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white));
578
+ color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e);
573
579
  }
574
580
 
575
581
  .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection {
@@ -592,6 +598,10 @@
592
598
  background: var(--wpds-color-background-interactive-brand-strong-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 93%, black));
593
599
  }
594
600
 
601
+ .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description {
602
+ color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
603
+ }
604
+
595
605
  .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-value {
596
606
  overflow: hidden;
597
607
  text-overflow: ellipsis;
@@ -605,7 +615,7 @@
605
615
  text-overflow: ellipsis;
606
616
  font-size: var(--wpds-typography-font-size-sm, 12px);
607
617
  line-height: 16px;
608
- color: var(--wpds-color-foreground-content-neutral-weak, #707070);
618
+ color: var(--wpds-color-foreground-interactive-neutral-weak, #707070);
609
619
  }
610
620
 
611
621
  .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection {
@@ -944,8 +954,7 @@
944
954
  }
945
955
 
946
956
  .dataviews-search {
947
- width: -moz-fit-content;
948
- width: fit-content;
957
+ flex-basis: 210px;
949
958
  }
950
959
 
951
960
  .dataviews-filters__user-input-widget {
@@ -1248,7 +1257,7 @@
1248
1257
  .dataviews-view-grid .dataviews-view-grid__media,
1249
1258
  .dataviews-view-grid-infinite-scroll .dataviews-view-grid__media {
1250
1259
  width: 100%;
1251
- aspect-ratio: 1/1;
1260
+ aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1);
1252
1261
  background-color: var(--wpds-color-background-surface-neutral-strong, #fff);
1253
1262
  border-radius: var(--wpds-border-radius-md, 4px);
1254
1263
  overflow: hidden;
@@ -1718,7 +1727,7 @@ div.dataviews-view-list {
1718
1727
  font-size: var(--wpds-typography-font-size-lg, 15px);
1719
1728
  font-weight: var(--wpds-typography-font-weight-emphasis, 600);
1720
1729
  color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
1721
- margin: 0 0 var(--wpds-dimension-gap-sm, 8px) 0;
1730
+ margin: 0 0 var(--wpds-dimension-gap-lg, 16px) 0;
1722
1731
  padding: 0 var(--wpds-dimension-padding-2xl, 24px);
1723
1732
  }
1724
1733
 
@@ -1995,6 +2004,17 @@ div.dataviews-view-list {
1995
2004
  border-radius: var(--wpds-border-radius-md, 4px);
1996
2005
  }
1997
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
+
1998
2018
  .dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),
1999
2019
  .dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) {
2000
2020
  min-width: 15ch;
@@ -2648,11 +2668,6 @@ div.dataviews-view-list {
2648
2668
  align-self: flex-end;
2649
2669
  }
2650
2670
 
2651
- .dataviews-controls__richtext [data-rich-text-placeholder]::after {
2652
- content: attr(data-rich-text-placeholder);
2653
- color: color-mix(in srgb, currentColor, transparent 38%);
2654
- }
2655
-
2656
2671
  .dataviews-controls__datetime {
2657
2672
  border: none;
2658
2673
  padding: 0;
@@ -2685,6 +2700,51 @@ div.dataviews-view-list {
2685
2700
  background-color: var(--wpds-color-background-interactive-neutral-strong-active, #1e1e1e);
2686
2701
  }
2687
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
+ }
2688
2748
  .dataforms-layouts-panel__field-trigger {
2689
2749
  position: relative;
2690
2750
  color: inherit;
@@ -3688,11 +3748,15 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
3688
3748
  }
3689
3749
 
3690
3750
  @media (min-width: 600px) {
3691
- .font-library__page-selection .font-library__page-selection-trigger {
3751
+ .font-library__page-selection .components-select-control__input {
3692
3752
  font-size: 11px !important;
3693
3753
  font-weight: var(--wpds-typography-font-weight-emphasis, 600);
3694
3754
  }
3695
3755
  }
3756
+ .font-library__search {
3757
+ width: 240px;
3758
+ }
3759
+
3696
3760
  .font-library__fonts-title {
3697
3761
  text-transform: uppercase;
3698
3762
  font-size: 11px;
@@ -4461,6 +4525,7 @@ button.font-library__upload-area {
4461
4525
  }
4462
4526
 
4463
4527
  .edit-site-canvas-loader {
4528
+ --wp-components-color-foreground: var(--color);
4464
4529
  width: 100%;
4465
4530
  height: 100%;
4466
4531
  display: flex;
@@ -4477,9 +4542,6 @@ button.font-library__upload-area {
4477
4542
  animation-fill-mode: forwards;
4478
4543
  }
4479
4544
  }
4480
- .edit-site-canvas-loader > div {
4481
- width: 160px;
4482
- }
4483
4545
 
4484
4546
  @keyframes edit-site-canvas-loader__fade-in-animation {
4485
4547
  from {
@@ -4548,6 +4610,7 @@ button.font-library__upload-area {
4548
4610
  .edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.fields-field__pattern-sync-status-fully) {
4549
4611
  background: rgba(var(--wp-block-synced-color--rgb), 0.04);
4550
4612
  color: var(--wp-block-synced-color);
4613
+ border-color: currentColor;
4551
4614
  }
4552
4615
 
4553
4616
  .dataviews-action-modal__duplicate-pattern [role=dialog] > [role=document] {
@@ -4888,7 +4951,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
4888
4951
 
4889
4952
  .edit-site-layout__snackbar {
4890
4953
  position: fixed;
4891
- bottom: 24px;
4954
+ bottom: var(--wpds-dimension-size-md, 32px);
4892
4955
  right: 0;
4893
4956
  left: 0;
4894
4957
  padding-inline: 16px;
@@ -5034,12 +5097,9 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
5034
5097
  border: none;
5035
5098
  min-height: 40px;
5036
5099
  }
5037
- .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 {
5038
5101
  color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
5039
5102
  }
5040
- .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 {
5041
- fill: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
5042
- }
5043
5103
  .edit-site-sidebar-navigation-item.components-item[aria-current=true] {
5044
5104
  background: var(--wpds-color-background-interactive-neutral-weak-active, #ededed);
5045
5105
  color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
@@ -5049,9 +5109,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
5049
5109
  --wp-components-color-accent: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
5050
5110
  transform: translateZ(0);
5051
5111
  }
5052
- .edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator {
5053
- fill: var(--wpds-color-foreground-interactive-neutral-weak, #707070);
5054
- }
5055
5112
  .edit-site-sidebar-navigation-item.components-item.with-suffix {
5056
5113
  padding-left: 16px;
5057
5114
  }
@@ -238,6 +238,10 @@
238
238
  transition: padding ease-out 0.1s;
239
239
  }
240
240
  }
241
+ .dataviews__search {
242
+ flex-grow: 1;
243
+ }
244
+
241
245
  .dataviews-no-results,
242
246
  .dataviews-loading {
243
247
  padding: 0 var(--wpds-dimension-padding-2xl, 24px);
@@ -562,6 +566,7 @@
562
566
  font-weight: var(--wpds-typography-font-weight-default, 400);
563
567
  font-size: 13px;
564
568
  line-height: 20px;
569
+ color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e);
565
570
  }
566
571
 
567
572
  .dataviews-filters__search-widget-listitem:last-child {
@@ -570,6 +575,7 @@
570
575
 
571
576
  .dataviews-filters__search-widget-listitem:hover, .dataviews-filters__search-widget-listitem[data-active-item], .dataviews-filters__search-widget-listitem:focus {
572
577
  background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white));
578
+ color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e);
573
579
  }
574
580
 
575
581
  .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection {
@@ -592,6 +598,10 @@
592
598
  background: var(--wpds-color-background-interactive-brand-strong-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 93%, black));
593
599
  }
594
600
 
601
+ .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description {
602
+ color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
603
+ }
604
+
595
605
  .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-value {
596
606
  overflow: hidden;
597
607
  text-overflow: ellipsis;
@@ -605,7 +615,7 @@
605
615
  text-overflow: ellipsis;
606
616
  font-size: var(--wpds-typography-font-size-sm, 12px);
607
617
  line-height: 16px;
608
- color: var(--wpds-color-foreground-content-neutral-weak, #707070);
618
+ color: var(--wpds-color-foreground-interactive-neutral-weak, #707070);
609
619
  }
610
620
 
611
621
  .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection {
@@ -944,8 +954,7 @@
944
954
  }
945
955
 
946
956
  .dataviews-search {
947
- width: -moz-fit-content;
948
- width: fit-content;
957
+ flex-basis: 210px;
949
958
  }
950
959
 
951
960
  .dataviews-filters__user-input-widget {
@@ -1248,7 +1257,7 @@
1248
1257
  .dataviews-view-grid .dataviews-view-grid__media,
1249
1258
  .dataviews-view-grid-infinite-scroll .dataviews-view-grid__media {
1250
1259
  width: 100%;
1251
- aspect-ratio: 1/1;
1260
+ aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1);
1252
1261
  background-color: var(--wpds-color-background-surface-neutral-strong, #fff);
1253
1262
  border-radius: var(--wpds-border-radius-md, 4px);
1254
1263
  overflow: hidden;
@@ -1718,7 +1727,7 @@ div.dataviews-view-list {
1718
1727
  font-size: var(--wpds-typography-font-size-lg, 15px);
1719
1728
  font-weight: var(--wpds-typography-font-weight-emphasis, 600);
1720
1729
  color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
1721
- margin: 0 0 var(--wpds-dimension-gap-sm, 8px) 0;
1730
+ margin: 0 0 var(--wpds-dimension-gap-lg, 16px) 0;
1722
1731
  padding: 0 var(--wpds-dimension-padding-2xl, 24px);
1723
1732
  }
1724
1733
 
@@ -1995,6 +2004,17 @@ div.dataviews-view-list {
1995
2004
  border-radius: var(--wpds-border-radius-md, 4px);
1996
2005
  }
1997
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
+
1998
2018
  .dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),
1999
2019
  .dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) {
2000
2020
  min-width: 15ch;
@@ -2648,11 +2668,6 @@ div.dataviews-view-list {
2648
2668
  align-self: flex-end;
2649
2669
  }
2650
2670
 
2651
- .dataviews-controls__richtext [data-rich-text-placeholder]::after {
2652
- content: attr(data-rich-text-placeholder);
2653
- color: color-mix(in srgb, currentColor, transparent 38%);
2654
- }
2655
-
2656
2671
  .dataviews-controls__datetime {
2657
2672
  border: none;
2658
2673
  padding: 0;
@@ -2685,6 +2700,51 @@ div.dataviews-view-list {
2685
2700
  background-color: var(--wpds-color-background-interactive-neutral-strong-active, #1e1e1e);
2686
2701
  }
2687
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
+ }
2688
2748
  .dataforms-layouts-panel__field-trigger {
2689
2749
  position: relative;
2690
2750
  color: inherit;
@@ -3688,11 +3748,15 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
3688
3748
  }
3689
3749
 
3690
3750
  @media (min-width: 600px) {
3691
- .font-library__page-selection .font-library__page-selection-trigger {
3751
+ .font-library__page-selection .components-select-control__input {
3692
3752
  font-size: 11px !important;
3693
3753
  font-weight: var(--wpds-typography-font-weight-emphasis, 600);
3694
3754
  }
3695
3755
  }
3756
+ .font-library__search {
3757
+ width: 240px;
3758
+ }
3759
+
3696
3760
  .font-library__fonts-title {
3697
3761
  text-transform: uppercase;
3698
3762
  font-size: 11px;
@@ -4463,6 +4527,7 @@ button.font-library__upload-area {
4463
4527
  }
4464
4528
 
4465
4529
  .edit-site-canvas-loader {
4530
+ --wp-components-color-foreground: var(--color);
4466
4531
  width: 100%;
4467
4532
  height: 100%;
4468
4533
  display: flex;
@@ -4479,9 +4544,6 @@ button.font-library__upload-area {
4479
4544
  animation-fill-mode: forwards;
4480
4545
  }
4481
4546
  }
4482
- .edit-site-canvas-loader > div {
4483
- width: 160px;
4484
- }
4485
4547
 
4486
4548
  @keyframes edit-site-canvas-loader__fade-in-animation {
4487
4549
  from {
@@ -4550,6 +4612,7 @@ button.font-library__upload-area {
4550
4612
  .edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.fields-field__pattern-sync-status-fully) {
4551
4613
  background: rgba(var(--wp-block-synced-color--rgb), 0.04);
4552
4614
  color: var(--wp-block-synced-color);
4615
+ border-color: currentColor;
4553
4616
  }
4554
4617
 
4555
4618
  .dataviews-action-modal__duplicate-pattern [role=dialog] > [role=document] {
@@ -4890,7 +4953,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
4890
4953
 
4891
4954
  .edit-site-layout__snackbar {
4892
4955
  position: fixed;
4893
- bottom: 24px;
4956
+ bottom: var(--wpds-dimension-size-md, 32px);
4894
4957
  left: 0;
4895
4958
  right: 0;
4896
4959
  padding-inline: 16px;
@@ -5036,12 +5099,9 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
5036
5099
  border: none;
5037
5100
  min-height: 40px;
5038
5101
  }
5039
- .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 {
5040
5103
  color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
5041
5104
  }
5042
- .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 {
5043
- fill: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
5044
- }
5045
5105
  .edit-site-sidebar-navigation-item.components-item[aria-current=true] {
5046
5106
  background: var(--wpds-color-background-interactive-neutral-weak-active, #ededed);
5047
5107
  color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
@@ -5051,9 +5111,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
5051
5111
  --wp-components-color-accent: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
5052
5112
  transform: translateZ(0);
5053
5113
  }
5054
- .edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator {
5055
- fill: var(--wpds-color-foreground-interactive-neutral-weak, #707070);
5056
- }
5057
5114
  .edit-site-sidebar-navigation-item.components-item.with-suffix {
5058
5115
  padding-right: 16px;
5059
5116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "7.0.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,57 +47,56 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@react-spring/web": "^9.4.5",
50
- "@wordpress/a11y": "^4.51.0",
51
- "@wordpress/admin-ui": "^2.6.0",
52
- "@wordpress/api-fetch": "^7.51.0",
53
- "@wordpress/base-styles": "^11.0.0",
54
- "@wordpress/blob": "^4.51.0",
55
- "@wordpress/block-editor": "^16.0.0",
56
- "@wordpress/block-library": "^10.2.0",
57
- "@wordpress/blocks": "^15.24.0",
58
- "@wordpress/commands": "^1.51.0",
59
- "@wordpress/components": "^37.0.0",
60
- "@wordpress/compose": "^8.4.0",
61
- "@wordpress/core-data": "^7.51.0",
62
- "@wordpress/data": "^10.51.0",
63
- "@wordpress/dataviews": "^17.2.0",
64
- "@wordpress/date": "^5.51.0",
65
- "@wordpress/deprecated": "^4.51.0",
66
- "@wordpress/dom": "^4.51.0",
67
- "@wordpress/editor": "^14.51.0",
68
- "@wordpress/element": "^8.3.0",
69
- "@wordpress/escape-html": "^3.51.0",
70
- "@wordpress/fields": "^0.43.0",
71
- "@wordpress/global-styles-engine": "^1.18.0",
72
- "@wordpress/global-styles-ui": "^1.18.0",
73
- "@wordpress/hooks": "^4.51.0",
74
- "@wordpress/html-entities": "^4.51.0",
75
- "@wordpress/i18n": "^6.24.0",
76
- "@wordpress/icons": "^15.2.0",
77
- "@wordpress/keyboard-shortcuts": "^5.51.0",
78
- "@wordpress/keycodes": "^4.51.0",
79
- "@wordpress/media-utils": "^5.51.0",
80
- "@wordpress/notices": "^5.51.0",
81
- "@wordpress/patterns": "^2.51.0",
82
- "@wordpress/plugins": "^7.51.0",
83
- "@wordpress/preferences": "^4.51.0",
84
- "@wordpress/primitives": "^4.51.0",
85
- "@wordpress/private-apis": "^1.51.0",
86
- "@wordpress/reusable-blocks": "^5.51.0",
87
- "@wordpress/router": "^1.51.0",
88
- "@wordpress/style-engine": "^2.51.0",
89
- "@wordpress/theme": "^1.0.0",
90
- "@wordpress/ui": "^0.18.0",
91
- "@wordpress/url": "^4.51.0",
92
- "@wordpress/viewport": "^6.51.0",
93
- "@wordpress/views": "^1.18.0",
94
- "@wordpress/widgets": "^4.51.0",
95
- "@wordpress/wordcount": "^4.51.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",
99
99
  "fast-deep-equal": "^3.1.3",
100
- "memize": "^2.1.0",
101
100
  "react-autosize-textarea": "^7.1.0"
102
101
  },
103
102
  "peerDependencies": {
@@ -107,5 +106,5 @@
107
106
  "publishConfig": {
108
107
  "access": "public"
109
108
  },
110
- "gitHead": "e9a74f9c14095a34398ecd4d1f7a908e55051205"
109
+ "gitHead": "989764d42ff93e33684aaf0b96a5b7f3d9bbff52"
111
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,
@@ -1,11 +1,4 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import { paramCase as kebabCase } from 'change-case';
5
-
6
- /**
7
- * WordPress dependencies
8
- */
9
2
  import { useState, useEffect, useRef } from '@wordpress/element';
10
3
  import { __ } from '@wordpress/i18n';
11
4
  import {
@@ -1,6 +1,3 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { useState, useMemo, useEffect } from '@wordpress/element';
5
2
  import { __ } from '@wordpress/i18n';
6
3
  import {
@@ -18,10 +15,6 @@ import { decodeEntities } from '@wordpress/html-entities';
18
15
  import { useDebouncedInput } from '@wordpress/compose';
19
16
  import { focus } from '@wordpress/dom';
20
17
  import { safeDecodeURI } from '@wordpress/url';
21
-
22
- /**
23
- * Internal dependencies
24
- */
25
18
  import { mapToIHasNameAndId } from './utils';
26
19
 
27
20
  const EMPTY_ARRAY = [];