@wordpress/edit-site 5.34.0 → 5.35.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 (371) hide show
  1. package/CHANGELOG.md +9 -3
  2. package/build/components/add-new-template/index.js +2 -2
  3. package/build/components/add-new-template/index.js.map +1 -1
  4. package/build/components/app/index.js +4 -2
  5. package/build/components/app/index.js.map +1 -1
  6. package/build/components/block-editor/editor-canvas.js +4 -18
  7. package/build/components/block-editor/editor-canvas.js.map +1 -1
  8. package/build/components/block-editor/site-editor-canvas.js +2 -2
  9. package/build/components/block-editor/site-editor-canvas.js.map +1 -1
  10. package/build/components/dataviews-actions/index.js +46 -0
  11. package/build/components/dataviews-actions/index.js.map +1 -0
  12. package/build/components/editor/index.js +68 -12
  13. package/build/components/editor/index.js.map +1 -1
  14. package/build/components/global-styles/background-panel.js +13 -1
  15. package/build/components/global-styles/background-panel.js.map +1 -1
  16. package/build/components/global-styles/color-indicator-wrapper.js +2 -2
  17. package/build/components/global-styles/color-indicator-wrapper.js.map +1 -1
  18. package/build/components/global-styles/color-palette-panel.js +5 -2
  19. package/build/components/global-styles/color-palette-panel.js.map +1 -1
  20. package/build/components/global-styles/gradients-palette-panel.js +1 -2
  21. package/build/components/global-styles/gradients-palette-panel.js.map +1 -1
  22. package/build/components/global-styles/hooks.js +5 -2
  23. package/build/components/global-styles/hooks.js.map +1 -1
  24. package/build/components/global-styles/icon-with-current-color.js +2 -2
  25. package/build/components/global-styles/icon-with-current-color.js.map +1 -1
  26. package/build/components/global-styles/preset-colors.js +29 -0
  27. package/build/components/global-styles/preset-colors.js.map +1 -0
  28. package/build/components/global-styles/preview-colors.js +3 -7
  29. package/build/components/global-styles/preview-colors.js.map +1 -1
  30. package/build/components/global-styles/screen-color-palette.js +5 -5
  31. package/build/components/global-styles/screen-color-palette.js.map +1 -1
  32. package/build/components/global-styles/screen-colors.js +1 -4
  33. package/build/components/global-styles/screen-colors.js.map +1 -1
  34. package/build/components/global-styles/screen-revisions/revisions-buttons.js +2 -2
  35. package/build/components/global-styles/screen-revisions/revisions-buttons.js.map +1 -1
  36. package/build/components/global-styles/typography-example.js +5 -2
  37. package/build/components/global-styles/typography-example.js.map +1 -1
  38. package/build/components/global-styles/ui.js +4 -1
  39. package/build/components/global-styles/ui.js.map +1 -1
  40. package/build/components/global-styles/variations/variation.js +12 -6
  41. package/build/components/global-styles/variations/variation.js.map +1 -1
  42. package/build/components/global-styles/variations/variations-color.js +5 -5
  43. package/build/components/global-styles/variations/variations-color.js.map +1 -1
  44. package/build/components/global-styles-sidebar/default-sidebar.js.map +1 -0
  45. package/build/components/{sidebar-edit-mode/global-styles-sidebar.js → global-styles-sidebar/index.js} +8 -5
  46. package/build/components/global-styles-sidebar/index.js.map +1 -0
  47. package/build/components/header-edit-mode/index.js +20 -120
  48. package/build/components/header-edit-mode/index.js.map +1 -1
  49. package/build/components/layout/index.js +3 -6
  50. package/build/components/layout/index.js.map +1 -1
  51. package/build/components/layout/router.js +69 -14
  52. package/build/components/layout/router.js.map +1 -1
  53. package/build/components/page/index.js +2 -2
  54. package/build/components/page/index.js.map +1 -1
  55. package/build/components/page-pages/index.js +4 -15
  56. package/build/components/page-pages/index.js.map +1 -1
  57. package/build/components/page-patterns/dataviews-pattern-actions.js +4 -80
  58. package/build/components/page-patterns/dataviews-pattern-actions.js.map +1 -1
  59. package/build/components/page-patterns/index.js +9 -20
  60. package/build/components/page-patterns/index.js.map +1 -1
  61. package/build/components/page-templates/index.js +6 -14
  62. package/build/components/page-templates/index.js.map +1 -1
  63. package/build/components/pagination/index.js +2 -2
  64. package/build/components/pagination/index.js.map +1 -1
  65. package/build/components/resizable-frame/index.js +11 -3
  66. package/build/components/resizable-frame/index.js.map +1 -1
  67. package/build/components/revisions/index.js +5 -2
  68. package/build/components/revisions/index.js.map +1 -1
  69. package/build/components/save-panel/index.js +4 -4
  70. package/build/components/save-panel/index.js.map +1 -1
  71. package/build/components/sidebar/index.js +61 -31
  72. package/build/components/sidebar/index.js.map +1 -1
  73. package/build/components/sidebar-button/index.js +2 -2
  74. package/build/components/sidebar-button/index.js.map +1 -1
  75. package/build/components/sidebar-dataviews/dataview-item.js +2 -2
  76. package/build/components/sidebar-dataviews/dataview-item.js.map +1 -1
  77. package/build/components/sidebar-navigation-item/index.js +5 -3
  78. package/build/components/sidebar-navigation-item/index.js.map +1 -1
  79. package/build/components/sidebar-navigation-screen/index.js +6 -32
  80. package/build/components/sidebar-navigation-screen/index.js.map +1 -1
  81. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js +2 -2
  82. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js.map +1 -1
  83. package/build/components/sidebar-navigation-screen-global-styles/index.js +4 -1
  84. package/build/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
  85. package/build/components/sidebar-navigation-screen-navigation-menu/index.js +10 -3
  86. package/build/components/sidebar-navigation-screen-navigation-menu/index.js.map +1 -1
  87. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js +16 -1
  88. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
  89. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +3 -0
  90. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +1 -1
  91. package/build/components/sidebar-navigation-screen-navigation-menus/index.js +16 -6
  92. package/build/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  93. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +2 -9
  94. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +1 -1
  95. package/build/components/sidebar-navigation-screen-page/status-label.js +2 -2
  96. package/build/components/sidebar-navigation-screen-page/status-label.js.map +1 -1
  97. package/build/components/sidebar-navigation-screen-pattern/index.js +4 -9
  98. package/build/components/sidebar-navigation-screen-pattern/index.js.map +1 -1
  99. package/build/components/sidebar-navigation-screen-patterns/index.js +4 -14
  100. package/build/components/sidebar-navigation-screen-patterns/index.js.map +1 -1
  101. package/build/components/sidebar-navigation-screen-template/index.js +4 -1
  102. package/build/components/sidebar-navigation-screen-template/index.js.map +1 -1
  103. package/build/components/sidebar-navigation-screen-templates-browse/index.js +4 -1
  104. package/build/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
  105. package/build/components/site-hub/index.js +3 -3
  106. package/build/components/site-hub/index.js.map +1 -1
  107. package/build/components/site-icon/index.js +2 -2
  108. package/build/components/site-icon/index.js.map +1 -1
  109. package/build/components/style-book/index.js +10 -7
  110. package/build/components/style-book/index.js.map +1 -1
  111. package/build/components/template-part-converter/index.js +18 -1
  112. package/build/components/template-part-converter/index.js.map +1 -1
  113. package/build/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +5 -2
  114. package/build/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js.map +1 -1
  115. package/build/utils/get-is-list-page.js +1 -1
  116. package/build/utils/get-is-list-page.js.map +1 -1
  117. package/build/utils/use-activate-theme.js +9 -6
  118. package/build/utils/use-activate-theme.js.map +1 -1
  119. package/build-module/components/add-new-template/index.js +2 -2
  120. package/build-module/components/add-new-template/index.js.map +1 -1
  121. package/build-module/components/app/index.js +4 -2
  122. package/build-module/components/app/index.js.map +1 -1
  123. package/build-module/components/block-editor/editor-canvas.js +4 -18
  124. package/build-module/components/block-editor/editor-canvas.js.map +1 -1
  125. package/build-module/components/block-editor/site-editor-canvas.js +2 -2
  126. package/build-module/components/block-editor/site-editor-canvas.js.map +1 -1
  127. package/build-module/components/dataviews-actions/index.js +38 -0
  128. package/build-module/components/dataviews-actions/index.js.map +1 -0
  129. package/build-module/components/editor/index.js +69 -13
  130. package/build-module/components/editor/index.js.map +1 -1
  131. package/build-module/components/global-styles/background-panel.js +12 -1
  132. package/build-module/components/global-styles/background-panel.js.map +1 -1
  133. package/build-module/components/global-styles/color-indicator-wrapper.js +2 -2
  134. package/build-module/components/global-styles/color-indicator-wrapper.js.map +1 -1
  135. package/build-module/components/global-styles/color-palette-panel.js +4 -2
  136. package/build-module/components/global-styles/color-palette-panel.js.map +1 -1
  137. package/build-module/components/global-styles/gradients-palette-panel.js +1 -2
  138. package/build-module/components/global-styles/gradients-palette-panel.js.map +1 -1
  139. package/build-module/components/global-styles/hooks.js +4 -1
  140. package/build-module/components/global-styles/hooks.js.map +1 -1
  141. package/build-module/components/global-styles/icon-with-current-color.js +2 -2
  142. package/build-module/components/global-styles/icon-with-current-color.js.map +1 -1
  143. package/build-module/components/global-styles/preset-colors.js +22 -0
  144. package/build-module/components/global-styles/preset-colors.js.map +1 -0
  145. package/build-module/components/global-styles/preview-colors.js +3 -7
  146. package/build-module/components/global-styles/preview-colors.js.map +1 -1
  147. package/build-module/components/global-styles/screen-color-palette.js +5 -5
  148. package/build-module/components/global-styles/screen-color-palette.js.map +1 -1
  149. package/build-module/components/global-styles/screen-colors.js +1 -4
  150. package/build-module/components/global-styles/screen-colors.js.map +1 -1
  151. package/build-module/components/global-styles/screen-revisions/revisions-buttons.js +2 -2
  152. package/build-module/components/global-styles/screen-revisions/revisions-buttons.js.map +1 -1
  153. package/build-module/components/global-styles/typography-example.js +4 -1
  154. package/build-module/components/global-styles/typography-example.js.map +1 -1
  155. package/build-module/components/global-styles/ui.js +4 -1
  156. package/build-module/components/global-styles/ui.js.map +1 -1
  157. package/build-module/components/global-styles/variations/variation.js +11 -5
  158. package/build-module/components/global-styles/variations/variation.js.map +1 -1
  159. package/build-module/components/global-styles/variations/variations-color.js +6 -6
  160. package/build-module/components/global-styles/variations/variations-color.js.map +1 -1
  161. package/build-module/components/global-styles-sidebar/default-sidebar.js.map +1 -0
  162. package/build-module/components/{sidebar-edit-mode/global-styles-sidebar.js → global-styles-sidebar/index.js} +8 -5
  163. package/build-module/components/global-styles-sidebar/index.js.map +1 -0
  164. package/build-module/components/header-edit-mode/index.js +20 -120
  165. package/build-module/components/header-edit-mode/index.js.map +1 -1
  166. package/build-module/components/layout/index.js +3 -6
  167. package/build-module/components/layout/index.js.map +1 -1
  168. package/build-module/components/layout/router.js +69 -15
  169. package/build-module/components/layout/router.js.map +1 -1
  170. package/build-module/components/page/index.js +2 -2
  171. package/build-module/components/page/index.js.map +1 -1
  172. package/build-module/components/page-pages/index.js +4 -15
  173. package/build-module/components/page-pages/index.js.map +1 -1
  174. package/build-module/components/page-patterns/dataviews-pattern-actions.js +4 -80
  175. package/build-module/components/page-patterns/dataviews-pattern-actions.js.map +1 -1
  176. package/build-module/components/page-patterns/index.js +10 -21
  177. package/build-module/components/page-patterns/index.js.map +1 -1
  178. package/build-module/components/page-templates/index.js +6 -14
  179. package/build-module/components/page-templates/index.js.map +1 -1
  180. package/build-module/components/pagination/index.js +2 -2
  181. package/build-module/components/pagination/index.js.map +1 -1
  182. package/build-module/components/resizable-frame/index.js +12 -4
  183. package/build-module/components/resizable-frame/index.js.map +1 -1
  184. package/build-module/components/revisions/index.js +4 -1
  185. package/build-module/components/revisions/index.js.map +1 -1
  186. package/build-module/components/save-panel/index.js +4 -4
  187. package/build-module/components/save-panel/index.js.map +1 -1
  188. package/build-module/components/sidebar/index.js +62 -32
  189. package/build-module/components/sidebar/index.js.map +1 -1
  190. package/build-module/components/sidebar-button/index.js +2 -2
  191. package/build-module/components/sidebar-button/index.js.map +1 -1
  192. package/build-module/components/sidebar-dataviews/dataview-item.js +2 -2
  193. package/build-module/components/sidebar-dataviews/dataview-item.js.map +1 -1
  194. package/build-module/components/sidebar-navigation-item/index.js +5 -3
  195. package/build-module/components/sidebar-navigation-item/index.js.map +1 -1
  196. package/build-module/components/sidebar-navigation-screen/index.js +6 -32
  197. package/build-module/components/sidebar-navigation-screen/index.js.map +1 -1
  198. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js +2 -2
  199. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js.map +1 -1
  200. package/build-module/components/sidebar-navigation-screen-global-styles/index.js +4 -1
  201. package/build-module/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
  202. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js +10 -3
  203. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js.map +1 -1
  204. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js +16 -1
  205. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
  206. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +3 -0
  207. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +1 -1
  208. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js +16 -6
  209. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  210. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +2 -9
  211. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +1 -1
  212. package/build-module/components/sidebar-navigation-screen-page/status-label.js +2 -2
  213. package/build-module/components/sidebar-navigation-screen-page/status-label.js.map +1 -1
  214. package/build-module/components/sidebar-navigation-screen-pattern/index.js +4 -9
  215. package/build-module/components/sidebar-navigation-screen-pattern/index.js.map +1 -1
  216. package/build-module/components/sidebar-navigation-screen-patterns/index.js +4 -14
  217. package/build-module/components/sidebar-navigation-screen-patterns/index.js.map +1 -1
  218. package/build-module/components/sidebar-navigation-screen-template/index.js +4 -1
  219. package/build-module/components/sidebar-navigation-screen-template/index.js.map +1 -1
  220. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js +4 -1
  221. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
  222. package/build-module/components/site-hub/index.js +3 -3
  223. package/build-module/components/site-hub/index.js.map +1 -1
  224. package/build-module/components/site-icon/index.js +2 -2
  225. package/build-module/components/site-icon/index.js.map +1 -1
  226. package/build-module/components/style-book/index.js +9 -6
  227. package/build-module/components/style-book/index.js.map +1 -1
  228. package/build-module/components/template-part-converter/index.js +18 -1
  229. package/build-module/components/template-part-converter/index.js.map +1 -1
  230. package/build-module/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +4 -1
  231. package/build-module/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js.map +1 -1
  232. package/build-module/utils/get-is-list-page.js +1 -1
  233. package/build-module/utils/get-is-list-page.js.map +1 -1
  234. package/build-module/utils/use-activate-theme.js +9 -6
  235. package/build-module/utils/use-activate-theme.js.map +1 -1
  236. package/build-style/style-rtl.css +144 -374
  237. package/build-style/style.css +144 -374
  238. package/package.json +43 -45
  239. package/src/components/add-new-template/index.js +2 -2
  240. package/src/components/app/index.js +5 -2
  241. package/src/components/block-editor/editor-canvas.js +6 -26
  242. package/src/components/block-editor/site-editor-canvas.js +2 -2
  243. package/src/components/block-editor/style.scss +2 -2
  244. package/src/components/dataviews-actions/index.js +38 -0
  245. package/src/components/editor/index.js +76 -16
  246. package/src/components/editor/style.scss +0 -4
  247. package/src/components/global-styles/background-panel.js +17 -2
  248. package/src/components/global-styles/color-indicator-wrapper.js +2 -2
  249. package/src/components/global-styles/color-palette-panel.js +3 -4
  250. package/src/components/global-styles/gradients-palette-panel.js +1 -4
  251. package/src/components/global-styles/hooks.js +2 -1
  252. package/src/components/global-styles/icon-with-current-color.js +2 -2
  253. package/src/components/global-styles/preset-colors.js +18 -0
  254. package/src/components/global-styles/preview-colors.js +4 -7
  255. package/src/components/global-styles/screen-color-palette.js +4 -4
  256. package/src/components/global-styles/screen-colors.js +0 -2
  257. package/src/components/global-styles/screen-revisions/revisions-buttons.js +2 -2
  258. package/src/components/global-styles/stories/index.story.js +2 -1
  259. package/src/components/global-styles/typography-example.js +2 -1
  260. package/src/components/global-styles/ui.js +5 -1
  261. package/src/components/global-styles/variations/style.scss +15 -31
  262. package/src/components/global-styles/variations/variation.js +13 -10
  263. package/src/components/global-styles/variations/variations-color.js +5 -8
  264. package/src/components/{sidebar-edit-mode/global-styles-sidebar.js → global-styles-sidebar/index.js} +7 -2
  265. package/src/components/{sidebar-edit-mode → global-styles-sidebar}/style.scss +0 -11
  266. package/src/components/header-edit-mode/index.js +25 -164
  267. package/src/components/header-edit-mode/style.scss +1 -199
  268. package/src/components/layout/index.js +3 -8
  269. package/src/components/layout/router.js +65 -15
  270. package/src/components/layout/style.scss +2 -1
  271. package/src/components/page/index.js +2 -2
  272. package/src/components/page-pages/index.js +8 -38
  273. package/src/components/page-pages/style.scss +0 -11
  274. package/src/components/page-patterns/dataviews-pattern-actions.js +3 -92
  275. package/src/components/page-patterns/index.js +16 -35
  276. package/src/components/page-templates/index.js +10 -29
  277. package/src/components/pagination/index.js +2 -2
  278. package/src/components/resizable-frame/index.js +16 -4
  279. package/src/components/revisions/index.js +2 -1
  280. package/src/components/save-panel/index.js +4 -4
  281. package/src/components/sidebar/index.js +61 -37
  282. package/src/components/sidebar-button/index.js +2 -5
  283. package/src/components/sidebar-dataviews/dataview-item.js +4 -7
  284. package/src/components/sidebar-navigation-item/index.js +3 -3
  285. package/src/components/sidebar-navigation-screen/index.js +7 -31
  286. package/src/components/sidebar-navigation-screen/style.scss +11 -9
  287. package/src/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js +2 -2
  288. package/src/components/sidebar-navigation-screen-global-styles/index.js +2 -1
  289. package/src/components/sidebar-navigation-screen-navigation-menu/index.js +6 -1
  290. package/src/components/sidebar-navigation-screen-navigation-menu/more-menu.js +18 -1
  291. package/src/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +3 -0
  292. package/src/components/sidebar-navigation-screen-navigation-menus/index.js +8 -4
  293. package/src/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +0 -10
  294. package/src/components/sidebar-navigation-screen-page/status-label.js +2 -2
  295. package/src/components/sidebar-navigation-screen-pattern/index.js +2 -8
  296. package/src/components/sidebar-navigation-screen-patterns/index.js +2 -13
  297. package/src/components/sidebar-navigation-screen-template/index.js +2 -1
  298. package/src/components/sidebar-navigation-screen-templates-browse/index.js +2 -1
  299. package/src/components/site-hub/index.js +3 -3
  300. package/src/components/site-icon/index.js +2 -2
  301. package/src/components/style-book/index.js +7 -6
  302. package/src/components/template-part-converter/index.js +16 -3
  303. package/src/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +2 -1
  304. package/src/style.scss +1 -11
  305. package/src/utils/get-is-list-page.js +1 -3
  306. package/src/utils/use-activate-theme.js +4 -4
  307. package/build/components/global-styles/global-styles-provider.js +0 -129
  308. package/build/components/global-styles/global-styles-provider.js.map +0 -1
  309. package/build/components/header-edit-mode/document-tools/index.js +0 -68
  310. package/build/components/header-edit-mode/document-tools/index.js.map +0 -1
  311. package/build/components/sidebar-edit-mode/default-sidebar.js.map +0 -1
  312. package/build/components/sidebar-edit-mode/global-styles-sidebar.js.map +0 -1
  313. package/build/components/sidebar-edit-mode/index.js +0 -147
  314. package/build/components/sidebar-edit-mode/index.js.map +0 -1
  315. package/build/components/sidebar-edit-mode/page-panels/index.js +0 -129
  316. package/build/components/sidebar-edit-mode/page-panels/index.js.map +0 -1
  317. package/build/components/sidebar-edit-mode/page-panels/page-content.js +0 -34
  318. package/build/components/sidebar-edit-mode/page-panels/page-content.js.map +0 -1
  319. package/build/components/sidebar-edit-mode/page-panels/page-summary.js +0 -46
  320. package/build/components/sidebar-edit-mode/page-panels/page-summary.js.map +0 -1
  321. package/build/components/sidebar-edit-mode/settings-header/index.js +0 -42
  322. package/build/components/sidebar-edit-mode/settings-header/index.js.map +0 -1
  323. package/build/components/sidebar-edit-mode/template-panel/hooks.js +0 -86
  324. package/build/components/sidebar-edit-mode/template-panel/hooks.js.map +0 -1
  325. package/build/components/sidebar-edit-mode/template-panel/index.js +0 -127
  326. package/build/components/sidebar-edit-mode/template-panel/index.js.map +0 -1
  327. package/build/components/start-template-options/index.js +0 -191
  328. package/build/components/start-template-options/index.js.map +0 -1
  329. package/build/utils/math.js +0 -98
  330. package/build/utils/math.js.map +0 -1
  331. package/build-module/components/global-styles/global-styles-provider.js +0 -120
  332. package/build-module/components/global-styles/global-styles-provider.js.map +0 -1
  333. package/build-module/components/header-edit-mode/document-tools/index.js +0 -61
  334. package/build-module/components/header-edit-mode/document-tools/index.js.map +0 -1
  335. package/build-module/components/sidebar-edit-mode/default-sidebar.js.map +0 -1
  336. package/build-module/components/sidebar-edit-mode/global-styles-sidebar.js.map +0 -1
  337. package/build-module/components/sidebar-edit-mode/index.js +0 -138
  338. package/build-module/components/sidebar-edit-mode/index.js.map +0 -1
  339. package/build-module/components/sidebar-edit-mode/page-panels/index.js +0 -121
  340. package/build-module/components/sidebar-edit-mode/page-panels/index.js.map +0 -1
  341. package/build-module/components/sidebar-edit-mode/page-panels/page-content.js +0 -27
  342. package/build-module/components/sidebar-edit-mode/page-panels/page-content.js.map +0 -1
  343. package/build-module/components/sidebar-edit-mode/page-panels/page-summary.js +0 -39
  344. package/build-module/components/sidebar-edit-mode/page-panels/page-summary.js.map +0 -1
  345. package/build-module/components/sidebar-edit-mode/settings-header/index.js +0 -35
  346. package/build-module/components/sidebar-edit-mode/settings-header/index.js.map +0 -1
  347. package/build-module/components/sidebar-edit-mode/template-panel/hooks.js +0 -79
  348. package/build-module/components/sidebar-edit-mode/template-panel/hooks.js.map +0 -1
  349. package/build-module/components/sidebar-edit-mode/template-panel/index.js +0 -119
  350. package/build-module/components/sidebar-edit-mode/template-panel/index.js.map +0 -1
  351. package/build-module/components/start-template-options/index.js +0 -184
  352. package/build-module/components/start-template-options/index.js.map +0 -1
  353. package/build-module/utils/math.js +0 -92
  354. package/build-module/utils/math.js.map +0 -1
  355. package/src/components/global-styles/global-styles-provider.js +0 -162
  356. package/src/components/header-edit-mode/document-tools/index.js +0 -68
  357. package/src/components/sidebar-edit-mode/index.js +0 -173
  358. package/src/components/sidebar-edit-mode/page-panels/index.js +0 -133
  359. package/src/components/sidebar-edit-mode/page-panels/page-content.js +0 -29
  360. package/src/components/sidebar-edit-mode/page-panels/page-summary.js +0 -61
  361. package/src/components/sidebar-edit-mode/settings-header/index.js +0 -43
  362. package/src/components/sidebar-edit-mode/settings-header/style.scss +0 -14
  363. package/src/components/sidebar-edit-mode/template-panel/hooks.js +0 -114
  364. package/src/components/sidebar-edit-mode/template-panel/index.js +0 -134
  365. package/src/components/sidebar-edit-mode/template-panel/style.scss +0 -16
  366. package/src/components/start-template-options/index.js +0 -231
  367. package/src/components/start-template-options/style.scss +0 -55
  368. package/src/utils/math.js +0 -93
  369. /package/build/components/{sidebar-edit-mode → global-styles-sidebar}/default-sidebar.js +0 -0
  370. /package/build-module/components/{sidebar-edit-mode → global-styles-sidebar}/default-sidebar.js +0 -0
  371. /package/src/components/{sidebar-edit-mode → global-styles-sidebar}/default-sidebar.js +0 -0
@@ -22,7 +22,7 @@ const { useLocation } = unlock( routerPrivateApis );
22
22
 
23
23
  export const postType = `wp_navigation`;
24
24
 
25
- export default function SidebarNavigationScreenNavigationMenu() {
25
+ export default function SidebarNavigationScreenNavigationMenu( { backPath } ) {
26
26
  const {
27
27
  params: { postId },
28
28
  } = useLocation();
@@ -67,6 +67,7 @@ export default function SidebarNavigationScreenNavigationMenu() {
67
67
  description={ __(
68
68
  'Navigation Menus are a curated collection of blocks that allow visitors to get around your site.'
69
69
  ) }
70
+ backPath={ backPath }
70
71
  >
71
72
  <Spinner className="edit-site-sidebar-navigation-screen-navigation-menus__loading" />
72
73
  </SidebarNavigationScreenWrapper>
@@ -77,6 +78,7 @@ export default function SidebarNavigationScreenNavigationMenu() {
77
78
  return (
78
79
  <SidebarNavigationScreenWrapper
79
80
  description={ __( 'Navigation Menu missing.' ) }
81
+ backPath={ backPath }
80
82
  />
81
83
  );
82
84
  }
@@ -86,12 +88,14 @@ export default function SidebarNavigationScreenNavigationMenu() {
86
88
  <SidebarNavigationScreenWrapper
87
89
  actions={
88
90
  <ScreenNavigationMoreMenu
91
+ menuId={ navigationMenu?.id }
89
92
  menuTitle={ decodeEntities( menuTitle ) }
90
93
  onDelete={ _handleDelete }
91
94
  onSave={ _handleSave }
92
95
  onDuplicate={ _handleDuplicate }
93
96
  />
94
97
  }
98
+ backPath={ backPath }
95
99
  title={ buildNavigationLabel(
96
100
  navigationMenu?.title,
97
101
  navigationMenu?.id,
@@ -105,6 +109,7 @@ export default function SidebarNavigationScreenNavigationMenu() {
105
109
  return (
106
110
  <SingleNavigationMenu
107
111
  navigationMenu={ navigationMenu }
112
+ backPath={ backPath }
108
113
  handleDelete={ _handleDelete }
109
114
  handleSave={ _handleSave }
110
115
  handleDuplicate={ _handleDuplicate }
@@ -5,24 +5,30 @@ import { DropdownMenu, MenuItem, MenuGroup } from '@wordpress/components';
5
5
  import { moreVertical } from '@wordpress/icons';
6
6
  import { __ } from '@wordpress/i18n';
7
7
  import { useState } from '@wordpress/element';
8
+ import { privateApis as routerPrivateApis } from '@wordpress/router';
8
9
 
9
10
  /**
10
11
  * Internal dependencies
11
12
  */
12
13
  import RenameModal from './rename-modal';
13
14
  import DeleteConfirmDialog from './delete-confirm-dialog';
15
+ import { unlock } from '../../lock-unlock';
16
+
17
+ const { useHistory } = unlock( routerPrivateApis );
14
18
 
15
19
  const POPOVER_PROPS = {
16
20
  position: 'bottom right',
17
21
  };
18
22
 
19
23
  export default function ScreenNavigationMoreMenu( props ) {
20
- const { onDelete, onSave, onDuplicate, menuTitle } = props;
24
+ const { onDelete, onSave, onDuplicate, menuTitle, menuId } = props;
21
25
 
22
26
  const [ renameModalOpen, setRenameModalOpen ] = useState( false );
23
27
  const [ deleteConfirmDialogOpen, setDeleteConfirmDialogOpen ] =
24
28
  useState( false );
25
29
 
30
+ const history = useHistory();
31
+
26
32
  const closeModals = () => {
27
33
  setRenameModalOpen( false );
28
34
  setDeleteConfirmDialogOpen( false );
@@ -50,6 +56,17 @@ export default function ScreenNavigationMoreMenu( props ) {
50
56
  >
51
57
  { __( 'Rename' ) }
52
58
  </MenuItem>
59
+ <MenuItem
60
+ onClick={ () => {
61
+ history.push( {
62
+ postId: menuId,
63
+ postType: 'wp_navigation',
64
+ canvas: 'edit',
65
+ } );
66
+ } }
67
+ >
68
+ { __( 'Edit' ) }
69
+ </MenuItem>
53
70
  <MenuItem
54
71
  onClick={ () => {
55
72
  onDuplicate();
@@ -13,6 +13,7 @@ import buildNavigationLabel from '../sidebar-navigation-screen-navigation-menus/
13
13
 
14
14
  export default function SingleNavigationMenu( {
15
15
  navigationMenu,
16
+ backPath,
16
17
  handleDelete,
17
18
  handleDuplicate,
18
19
  handleSave,
@@ -24,6 +25,7 @@ export default function SingleNavigationMenu( {
24
25
  actions={
25
26
  <>
26
27
  <ScreenNavigationMoreMenu
28
+ menuId={ navigationMenu?.id }
27
29
  menuTitle={ decodeEntities( menuTitle ) }
28
30
  onDelete={ handleDelete }
29
31
  onSave={ handleSave }
@@ -31,6 +33,7 @@ export default function SingleNavigationMenu( {
31
33
  />
32
34
  </>
33
35
  }
36
+ backPath={ backPath }
34
37
  title={ buildNavigationLabel(
35
38
  navigationMenu?.title,
36
39
  navigationMenu?.id,
@@ -46,7 +46,7 @@ function buildMenuLabel( title, id, status ) {
46
46
  // Save a boolean to prevent us creating a fallback more than once per session.
47
47
  let hasCreatedFallback = false;
48
48
 
49
- export default function SidebarNavigationScreenNavigationMenus() {
49
+ export default function SidebarNavigationScreenNavigationMenus( { backPath } ) {
50
50
  const {
51
51
  records: navigationMenus,
52
52
  isResolving: isResolvingNavigationMenus,
@@ -87,7 +87,7 @@ export default function SidebarNavigationScreenNavigationMenus() {
87
87
 
88
88
  if ( isLoading ) {
89
89
  return (
90
- <SidebarNavigationScreenWrapper>
90
+ <SidebarNavigationScreenWrapper backPath={ backPath }>
91
91
  <Spinner className="edit-site-sidebar-navigation-screen-navigation-menus__loading" />
92
92
  </SidebarNavigationScreenWrapper>
93
93
  );
@@ -97,6 +97,7 @@ export default function SidebarNavigationScreenNavigationMenus() {
97
97
  return (
98
98
  <SidebarNavigationScreenWrapper
99
99
  description={ __( 'No Navigation Menus found.' ) }
100
+ backPath={ backPath }
100
101
  />
101
102
  );
102
103
  }
@@ -106,6 +107,7 @@ export default function SidebarNavigationScreenNavigationMenus() {
106
107
  return (
107
108
  <SingleNavigationMenu
108
109
  navigationMenu={ firstNavigationMenu }
110
+ backPath={ backPath }
109
111
  handleDelete={ () => handleDelete( firstNavigationMenu ) }
110
112
  handleDuplicate={ () => handleDuplicate( firstNavigationMenu ) }
111
113
  handleSave={ ( edits ) =>
@@ -116,7 +118,7 @@ export default function SidebarNavigationScreenNavigationMenus() {
116
118
  }
117
119
 
118
120
  return (
119
- <SidebarNavigationScreenWrapper>
121
+ <SidebarNavigationScreenWrapper backPath={ backPath }>
120
122
  <ItemGroup>
121
123
  { navigationMenus?.map( ( { id, title, status }, index ) => (
122
124
  <NavMenuItem
@@ -138,12 +140,14 @@ export function SidebarNavigationScreenWrapper( {
138
140
  actions,
139
141
  title,
140
142
  description,
143
+ backPath,
141
144
  } ) {
142
145
  return (
143
146
  <SidebarNavigationScreen
144
147
  title={ title || __( 'Navigation' ) }
145
148
  actions={ actions }
146
149
  description={ description || __( 'Manage your Navigation Menus.' ) }
150
+ backPath={ backPath }
147
151
  content={ children }
148
152
  />
149
153
  );
@@ -152,7 +156,7 @@ export function SidebarNavigationScreenWrapper( {
152
156
  const NavMenuItem = ( { postId, ...props } ) => {
153
157
  const linkInfo = useLink( {
154
158
  postId,
155
- postType: NAVIGATION_POST_TYPE,
159
+ path: '/navigation',
156
160
  } );
157
161
  return <SidebarNavigationItem { ...linkInfo } { ...props } />;
158
162
  };
@@ -18,10 +18,6 @@ const POPOVER_PROPS = {
18
18
  /**
19
19
  * Internal dependencies
20
20
  */
21
- import {
22
- isPreviewingTheme,
23
- currentlyPreviewingTheme,
24
- } from '../../utils/is-previewing-theme';
25
21
  import { unlock } from '../../lock-unlock';
26
22
 
27
23
  const { useLocation, useHistory } = unlock( routerPrivateApis );
@@ -68,9 +64,6 @@ export default function LeafMoreMenu( props ) {
68
64
  {
69
65
  postType: attributes.type,
70
66
  postId: attributes.id,
71
- ...( isPreviewingTheme() && {
72
- wp_theme_preview: currentlyPreviewingTheme(),
73
- } ),
74
67
  },
75
68
  {
76
69
  backPath: params,
@@ -82,9 +75,6 @@ export default function LeafMoreMenu( props ) {
82
75
  {
83
76
  postType: 'page',
84
77
  postId: attributes.id,
85
- ...( isPreviewingTheme() && {
86
- wp_theme_preview: currentlyPreviewingTheme(),
87
- } ),
88
78
  },
89
79
  {
90
80
  backPath: params,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import classnames from 'classnames';
4
+ import clsx from 'clsx';
5
5
 
6
6
  /**
7
7
  * WordPress dependencies
@@ -58,7 +58,7 @@ export default function StatusLabel( { status, date, short } ) {
58
58
 
59
59
  return (
60
60
  <div
61
- className={ classnames(
61
+ className={ clsx(
62
62
  'edit-site-sidebar-navigation-screen-page__status',
63
63
  {
64
64
  [ `has-status has-${ status }-status` ]: !! status,
@@ -19,11 +19,11 @@ import TemplateActions from '../template-actions';
19
19
 
20
20
  const { useLocation, useHistory } = unlock( routerPrivateApis );
21
21
 
22
- export default function SidebarNavigationScreenPattern() {
22
+ export default function SidebarNavigationScreenPattern( { backPath } ) {
23
23
  const history = useHistory();
24
24
  const location = useLocation();
25
25
  const {
26
- params: { postType, postId, categoryId, categoryType },
26
+ params: { postType, postId },
27
27
  } = location;
28
28
  const { setCanvasMode } = unlock( useDispatch( editSiteStore ) );
29
29
 
@@ -31,12 +31,6 @@ export default function SidebarNavigationScreenPattern() {
31
31
 
32
32
  const patternDetails = usePatternDetails( postType, postId );
33
33
 
34
- const backPath = {
35
- categoryId,
36
- categoryType,
37
- path: '/patterns',
38
- };
39
-
40
34
  return (
41
35
  <SidebarNavigationScreen
42
36
  actions={
@@ -110,7 +110,7 @@ function CategoriesGroup( {
110
110
  );
111
111
  }
112
112
 
113
- export default function SidebarNavigationScreenPatterns() {
113
+ export default function SidebarNavigationScreenPatterns( { backPath } ) {
114
114
  const {
115
115
  params: { categoryType, categoryId, path },
116
116
  } = useLocation();
@@ -125,18 +125,6 @@ export default function SidebarNavigationScreenPatterns() {
125
125
  []
126
126
  );
127
127
 
128
- /**
129
- * This sidebar needs to temporarily accomodate two different "URLs":
130
- *
131
- * 1. path = /patterns
132
- * Block based themes. Also classic themes can access this URL, though it's not linked anywhere.
133
- *
134
- * 2. path = /wp_template_part/all
135
- * Classic themes with support for block-template-parts. We need to list only Template Parts in this case.
136
- * The URL is accessible from the Appearance > Template Parts menu.
137
- *
138
- * This is temporary. We aim to consolidate to /patterns.
139
- */
140
128
  return (
141
129
  <SidebarNavigationScreen
142
130
  isRoot={ ! isBlockBasedTheme }
@@ -144,6 +132,7 @@ export default function SidebarNavigationScreenPatterns() {
144
132
  description={ __(
145
133
  'Manage what patterns are available when editing the site.'
146
134
  ) }
135
+ backPath={ backPath }
147
136
  actions={ <AddNewPattern /> }
148
137
  content={
149
138
  <>
@@ -94,7 +94,7 @@ function useTemplateDetails( postType, postId ) {
94
94
  return { title, description, content, footer };
95
95
  }
96
96
 
97
- export default function SidebarNavigationScreenTemplate() {
97
+ export default function SidebarNavigationScreenTemplate( { backPath } ) {
98
98
  const history = useHistory();
99
99
  const {
100
100
  params: { postType, postId },
@@ -108,6 +108,7 @@ export default function SidebarNavigationScreenTemplate() {
108
108
  return (
109
109
  <SidebarNavigationScreen
110
110
  title={ title }
111
+ backPath={ backPath }
111
112
  actions={
112
113
  <>
113
114
  <TemplateActions
@@ -13,7 +13,7 @@ import DataviewsTemplatesSidebarContent from './content';
13
13
 
14
14
  const { useLocation } = unlock( routerPrivateApis );
15
15
 
16
- export default function SidebarNavigationScreenTemplatesBrowse() {
16
+ export default function SidebarNavigationScreenTemplatesBrowse( { backPath } ) {
17
17
  const {
18
18
  params: { activeView = 'all' },
19
19
  } = useLocation();
@@ -24,6 +24,7 @@ export default function SidebarNavigationScreenTemplatesBrowse() {
24
24
  description={ __(
25
25
  'Create new templates, or reset any customizations made to the templates supplied by your theme.'
26
26
  ) }
27
+ backPath={ backPath }
27
28
  content={
28
29
  <DataviewsTemplatesSidebarContent
29
30
  activeView={ activeView }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import classnames from 'classnames';
4
+ import clsx from 'clsx';
5
5
 
6
6
  /**
7
7
  * WordPress dependencies
@@ -87,7 +87,7 @@ const SiteHub = memo( ( { isTransparent, className } ) => {
87
87
 
88
88
  return (
89
89
  <motion.div
90
- className={ classnames( 'edit-site-site-hub', className ) }
90
+ className={ clsx( 'edit-site-site-hub', className ) }
91
91
  variants={ {
92
92
  isDistractionFree: { x: '-100%' },
93
93
  isDistractionFreeHovering: { x: 0 },
@@ -103,7 +103,7 @@ const SiteHub = memo( ( { isTransparent, className } ) => {
103
103
  >
104
104
  <HStack justify="flex-start" spacing="0">
105
105
  <motion.div
106
- className={ classnames(
106
+ className={ clsx(
107
107
  'edit-site-site-hub__view-mode-toggle-container',
108
108
  {
109
109
  'has-transparent-background': isTransparent,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import classnames from 'classnames';
4
+ import clsx from 'clsx';
5
5
 
6
6
  /**
7
7
  * WordPress dependencies
@@ -42,7 +42,7 @@ function SiteIcon( { className } ) {
42
42
  );
43
43
 
44
44
  return (
45
- <div className={ classnames( className, 'edit-site-site-icon' ) }>
45
+ <div className={ clsx( className, 'edit-site-site-icon' ) }>
46
46
  { icon }
47
47
  </div>
48
48
  );
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import classnames from 'classnames';
4
+ import clsx from 'clsx';
5
5
 
6
6
  /**
7
7
  * WordPress dependencies
@@ -24,6 +24,7 @@ import {
24
24
  __unstableEditorStyles as EditorStyles,
25
25
  __unstableIframe as Iframe,
26
26
  } from '@wordpress/block-editor';
27
+ import { privateApis as editorPrivateApis } from '@wordpress/editor';
27
28
  import { useSelect } from '@wordpress/data';
28
29
  import { useResizeObserver } from '@wordpress/compose';
29
30
  import { useMemo, useState, memo, useContext } from '@wordpress/element';
@@ -34,7 +35,6 @@ import { ENTER, SPACE } from '@wordpress/keycodes';
34
35
  */
35
36
  import { unlock } from '../../lock-unlock';
36
37
  import EditorCanvasContainer from '../editor-canvas-container';
37
- import { mergeBaseAndUserConfigs } from '../global-styles/global-styles-provider';
38
38
 
39
39
  const {
40
40
  ExperimentalBlockEditorProvider,
@@ -42,6 +42,7 @@ const {
42
42
  GlobalStylesContext,
43
43
  useGlobalStylesOutputWithConfig,
44
44
  } = unlock( blockEditorPrivateApis );
45
+ const { mergeBaseAndUserConfigs } = unlock( editorPrivateApis );
45
46
 
46
47
  const {
47
48
  CompositeV2: Composite,
@@ -240,7 +241,7 @@ function StyleBook( {
240
241
  closeButtonLabel={ showCloseButton ? __( 'Close' ) : null }
241
242
  >
242
243
  <div
243
- className={ classnames( 'edit-site-style-book', {
244
+ className={ clsx( 'edit-site-style-book', {
244
245
  'is-wide': sizes.width > 600,
245
246
  'is-button': !! onClick,
246
247
  } ) }
@@ -343,7 +344,7 @@ const StyleBookBody = ( {
343
344
 
344
345
  return (
345
346
  <Iframe
346
- className={ classnames( 'edit-site-style-book__iframe', {
347
+ className={ clsx( 'edit-site-style-book__iframe', {
347
348
  'is-focused': isFocused && !! onClick,
348
349
  'is-button': !! onClick,
349
350
  } ) }
@@ -363,7 +364,7 @@ const StyleBookBody = ( {
363
364
  }
364
365
  </style>
365
366
  <Examples
366
- className={ classnames( 'edit-site-style-book__examples', {
367
+ className={ clsx( 'edit-site-style-book__examples', {
367
368
  'is-wide': sizes.width > 600,
368
369
  } ) }
369
370
  examples={ examples }
@@ -441,7 +442,7 @@ const Example = ( { id, title, blocks, isSelected, onClick } ) => {
441
442
  <div role="row">
442
443
  <div role="gridcell">
443
444
  <CompositeItem
444
- className={ classnames( 'edit-site-style-book__example', {
445
+ className={ clsx( 'edit-site-style-book__example', {
445
446
  'is-selected': isSelected,
446
447
  } ) }
447
448
  id={ id }
@@ -27,12 +27,25 @@ export default function TemplatePartConverter() {
27
27
  }
28
28
 
29
29
  function TemplatePartConverterMenuItem( { clientIds, onClose } ) {
30
- const blocks = useSelect(
31
- ( select ) =>
32
- select( blockEditorStore ).getBlocksByClientId( clientIds ),
30
+ const { isContentOnly, blocks } = useSelect(
31
+ ( select ) => {
32
+ const { getBlocksByClientId, getBlockEditingMode } =
33
+ select( blockEditorStore );
34
+ return {
35
+ blocks: getBlocksByClientId( clientIds ),
36
+ isContentOnly:
37
+ clientIds.length === 1 &&
38
+ getBlockEditingMode( clientIds[ 0 ] ) === 'contentOnly',
39
+ };
40
+ },
33
41
  [ clientIds ]
34
42
  );
35
43
 
44
+ // Do not show the convert button if the block is in content-only mode.
45
+ if ( isContentOnly ) {
46
+ return null;
47
+ }
48
+
36
49
  // Allow converting a single template part to standard blocks.
37
50
  if ( blocks.length === 1 && blocks[ 0 ]?.name === 'core/template-part' ) {
38
51
  return (
@@ -5,16 +5,17 @@ import { useSelect } from '@wordpress/data';
5
5
  import { store as coreStore } from '@wordpress/core-data';
6
6
  import { useContext, useMemo } from '@wordpress/element';
7
7
  import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
8
+ import { privateApis as editorPrivateApis } from '@wordpress/editor';
8
9
  import { __ } from '@wordpress/i18n';
9
10
 
10
11
  /**
11
12
  * Internal dependencies
12
13
  */
13
- import { mergeBaseAndUserConfigs } from '../../components/global-styles/global-styles-provider';
14
14
  import cloneDeep from '../../utils/clone-deep';
15
15
  import { unlock } from '../../lock-unlock';
16
16
 
17
17
  const { GlobalStylesContext } = unlock( blockEditorPrivateApis );
18
+ const { mergeBaseAndUserConfigs } = unlock( editorPrivateApis );
18
19
 
19
20
  /**
20
21
  * Removes all instances of a property from an object.
package/src/style.scss CHANGED
@@ -6,19 +6,16 @@
6
6
  @import "./components/code-editor/style.scss";
7
7
  @import "./components/global-styles/style.scss";
8
8
  @import "./components/global-styles/screen-revisions/style.scss";
9
+ @import "./components/global-styles-sidebar/style.scss";
9
10
  @import "./components/header-edit-mode/style.scss";
10
11
  @import "./components/page/style.scss";
11
12
  @import "./components/page-pages/style.scss";
12
13
  @import "./components/page-patterns/style.scss";
13
14
  @import "./components/page-templates/style.scss";
14
15
  @import "./components/table/style.scss";
15
- @import "./components/sidebar-edit-mode/style.scss";
16
- @import "./components/sidebar-edit-mode/settings-header/style.scss";
17
- @import "./components/sidebar-edit-mode/template-panel/style.scss";
18
16
  @import "./components/editor/style.scss";
19
17
  @import "./components/create-template-part-modal/style.scss";
20
18
  @import "./components/welcome-guide/style.scss";
21
- @import "./components/start-template-options/style.scss";
22
19
  @import "./components/layout/style.scss";
23
20
  @import "./components/save-hub/style.scss";
24
21
  @import "./components/save-panel/style.scss";
@@ -85,13 +82,6 @@ body.js.site-editor-php {
85
82
  .interface-interface-skeleton {
86
83
  top: 0;
87
84
  }
88
-
89
- // Todo: Remove this rule when edit site gets support
90
- // for opening unpinned sidebar items.
91
- .interface-complementary-area__pin-unpin-item.components-button {
92
- display: none;
93
- }
94
-
95
85
  }
96
86
 
97
87
  /**
@@ -14,9 +14,7 @@ export default function getIsListPage(
14
14
  isMobileViewport
15
15
  ) {
16
16
  return (
17
- [ '/wp_template', '/wp_template_part/all', '/pages' ].includes(
18
- path
19
- ) ||
17
+ [ '/wp_template', '/pages' ].includes( path ) ||
20
18
  ( path === '/patterns' &&
21
19
  // Don't treat "/patterns" without categoryType and categoryId as a
22
20
  // list page in mobile because the sidebar covers the whole page.
@@ -23,7 +23,7 @@ const { useHistory, useLocation } = unlock( routerPrivateApis );
23
23
  */
24
24
  export function useActivateTheme() {
25
25
  const history = useHistory();
26
- const location = useLocation();
26
+ const { params } = useLocation();
27
27
  const { startResolution, finishResolution } = useDispatch( coreStore );
28
28
 
29
29
  return async () => {
@@ -36,9 +36,9 @@ export function useActivateTheme() {
36
36
  startResolution( 'activateTheme' );
37
37
  await window.fetch( activationURL );
38
38
  finishResolution( 'activateTheme' );
39
- const { wp_theme_preview: themePreview, ...params } =
40
- location.params;
41
- history.replace( params );
39
+ // Remove the wp_theme_preview query param: we've finished activating
40
+ // the queue and are switching to normal Site Editor.
41
+ history.replace( { ...params, wp_theme_preview: undefined } );
42
42
  }
43
43
  };
44
44
  }