@wordpress/edit-site 6.48.0 → 6.48.2-next.v.202606191442.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 (174) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/build/components/editor/use-editor-title.cjs +1 -1
  3. package/build/components/editor/use-editor-title.cjs.map +2 -2
  4. package/build/components/layout/index.cjs +47 -9
  5. package/build/components/layout/index.cjs.map +3 -3
  6. package/build/components/page-templates/index-legacy.cjs +12 -8
  7. package/build/components/page-templates/index-legacy.cjs.map +2 -2
  8. package/build/components/post-list/quick-edit-modal.cjs +0 -1
  9. package/build/components/post-list/quick-edit-modal.cjs.map +2 -2
  10. package/build/components/resizable-frame/index.cjs.map +2 -2
  11. package/build/components/routes/use-title.cjs +1 -1
  12. package/build/components/routes/use-title.cjs.map +2 -2
  13. package/build/components/save-button/index.cjs +2 -2
  14. package/build/components/save-button/index.cjs.map +1 -1
  15. package/build/components/save-hub/index.cjs +3 -3
  16. package/build/components/save-hub/index.cjs.map +3 -3
  17. package/build/components/sidebar-navigation-item/index.cjs +8 -3
  18. package/build/components/sidebar-navigation-item/index.cjs.map +3 -3
  19. package/build/components/sidebar-navigation-screen/index.cjs +0 -1
  20. package/build/components/sidebar-navigation-screen/index.cjs.map +2 -2
  21. package/build/components/sidebar-navigation-screen-global-styles/index.cjs +2 -18
  22. package/build/components/sidebar-navigation-screen-global-styles/index.cjs.map +3 -3
  23. package/build/components/sidebar-navigation-screen-identity/index.cjs +0 -19
  24. package/build/components/sidebar-navigation-screen-identity/index.cjs.map +3 -3
  25. package/build/components/sidebar-navigation-screen-main/index.cjs +25 -25
  26. package/build/components/sidebar-navigation-screen-main/index.cjs.map +2 -2
  27. package/build/components/sidebar-navigation-screen-patterns/index.cjs +1 -1
  28. package/build/components/sidebar-navigation-screen-patterns/index.cjs.map +2 -2
  29. package/build/components/site-editor-routes/home.cjs +1 -1
  30. package/build/components/site-editor-routes/home.cjs.map +2 -2
  31. package/build/components/site-editor-routes/identity.cjs +1 -12
  32. package/build/components/site-editor-routes/identity.cjs.map +3 -3
  33. package/build/components/site-editor-routes/navigation-item.cjs +2 -10
  34. package/build/components/site-editor-routes/navigation-item.cjs.map +3 -3
  35. package/build/components/site-editor-routes/navigation.cjs +2 -10
  36. package/build/components/site-editor-routes/navigation.cjs.map +3 -3
  37. package/build/components/site-editor-routes/notfound.cjs +1 -1
  38. package/build/components/site-editor-routes/notfound.cjs.map +2 -2
  39. package/build/components/site-editor-routes/page-item.cjs +1 -6
  40. package/build/components/site-editor-routes/page-item.cjs.map +2 -2
  41. package/build/components/site-editor-routes/pages.cjs +6 -9
  42. package/build/components/site-editor-routes/pages.cjs.map +3 -3
  43. package/build/components/site-editor-routes/pattern-item.cjs +1 -1
  44. package/build/components/site-editor-routes/pattern-item.cjs.map +2 -2
  45. package/build/components/site-editor-routes/patterns.cjs +8 -3
  46. package/build/components/site-editor-routes/patterns.cjs.map +2 -2
  47. package/build/components/site-editor-routes/stylebook.cjs +1 -1
  48. package/build/components/site-editor-routes/stylebook.cjs.map +2 -2
  49. package/build/components/site-editor-routes/styles.cjs +1 -9
  50. package/build/components/site-editor-routes/styles.cjs.map +2 -2
  51. package/build/components/site-editor-routes/template-item.cjs +1 -6
  52. package/build/components/site-editor-routes/template-item.cjs.map +2 -2
  53. package/build/components/site-editor-routes/template-part-item.cjs +1 -1
  54. package/build/components/site-editor-routes/template-part-item.cjs.map +2 -2
  55. package/build/components/site-editor-routes/templates.cjs +8 -1
  56. package/build/components/site-editor-routes/templates.cjs.map +2 -2
  57. package/build/components/welcome-guide/editor.cjs +1 -1
  58. package/build/components/welcome-guide/editor.cjs.map +1 -1
  59. package/build/components/welcome-guide/page.cjs +1 -1
  60. package/build/components/welcome-guide/page.cjs.map +1 -1
  61. package/build/components/welcome-guide/template.cjs +1 -1
  62. package/build/components/welcome-guide/template.cjs.map +1 -1
  63. package/build/store/selectors.cjs +2 -4
  64. package/build/store/selectors.cjs.map +2 -2
  65. package/build-module/components/editor/use-editor-title.mjs +1 -1
  66. package/build-module/components/editor/use-editor-title.mjs.map +2 -2
  67. package/build-module/components/layout/index.mjs +49 -11
  68. package/build-module/components/layout/index.mjs.map +2 -2
  69. package/build-module/components/page-templates/index-legacy.mjs +13 -9
  70. package/build-module/components/page-templates/index-legacy.mjs.map +2 -2
  71. package/build-module/components/post-list/quick-edit-modal.mjs +0 -1
  72. package/build-module/components/post-list/quick-edit-modal.mjs.map +2 -2
  73. package/build-module/components/resizable-frame/index.mjs.map +2 -2
  74. package/build-module/components/routes/use-title.mjs +1 -1
  75. package/build-module/components/routes/use-title.mjs.map +2 -2
  76. package/build-module/components/save-button/index.mjs +2 -2
  77. package/build-module/components/save-button/index.mjs.map +1 -1
  78. package/build-module/components/save-hub/index.mjs +3 -3
  79. package/build-module/components/save-hub/index.mjs.map +2 -2
  80. package/build-module/components/sidebar-navigation-item/index.mjs +9 -8
  81. package/build-module/components/sidebar-navigation-item/index.mjs.map +2 -2
  82. package/build-module/components/sidebar-navigation-screen/index.mjs +0 -1
  83. package/build-module/components/sidebar-navigation-screen/index.mjs.map +2 -2
  84. package/build-module/components/sidebar-navigation-screen-global-styles/index.mjs +2 -14
  85. package/build-module/components/sidebar-navigation-screen-global-styles/index.mjs.map +2 -2
  86. package/build-module/components/sidebar-navigation-screen-identity/index.mjs +0 -15
  87. package/build-module/components/sidebar-navigation-screen-identity/index.mjs.map +2 -2
  88. package/build-module/components/sidebar-navigation-screen-main/index.mjs +25 -25
  89. package/build-module/components/sidebar-navigation-screen-main/index.mjs.map +2 -2
  90. package/build-module/components/sidebar-navigation-screen-patterns/index.mjs +1 -1
  91. package/build-module/components/sidebar-navigation-screen-patterns/index.mjs.map +2 -2
  92. package/build-module/components/site-editor-routes/home.mjs +1 -1
  93. package/build-module/components/site-editor-routes/home.mjs.map +2 -2
  94. package/build-module/components/site-editor-routes/identity.mjs +1 -12
  95. package/build-module/components/site-editor-routes/identity.mjs.map +2 -2
  96. package/build-module/components/site-editor-routes/navigation-item.mjs +2 -10
  97. package/build-module/components/site-editor-routes/navigation-item.mjs.map +2 -2
  98. package/build-module/components/site-editor-routes/navigation.mjs +2 -10
  99. package/build-module/components/site-editor-routes/navigation.mjs.map +2 -2
  100. package/build-module/components/site-editor-routes/notfound.mjs +1 -1
  101. package/build-module/components/site-editor-routes/notfound.mjs.map +2 -2
  102. package/build-module/components/site-editor-routes/page-item.mjs +2 -7
  103. package/build-module/components/site-editor-routes/page-item.mjs.map +2 -2
  104. package/build-module/components/site-editor-routes/pages.mjs +6 -9
  105. package/build-module/components/site-editor-routes/pages.mjs.map +2 -2
  106. package/build-module/components/site-editor-routes/pattern-item.mjs +1 -1
  107. package/build-module/components/site-editor-routes/pattern-item.mjs.map +2 -2
  108. package/build-module/components/site-editor-routes/patterns.mjs +8 -3
  109. package/build-module/components/site-editor-routes/patterns.mjs.map +2 -2
  110. package/build-module/components/site-editor-routes/stylebook.mjs +1 -1
  111. package/build-module/components/site-editor-routes/stylebook.mjs.map +2 -2
  112. package/build-module/components/site-editor-routes/styles.mjs +1 -9
  113. package/build-module/components/site-editor-routes/styles.mjs.map +2 -2
  114. package/build-module/components/site-editor-routes/template-item.mjs +2 -7
  115. package/build-module/components/site-editor-routes/template-item.mjs.map +2 -2
  116. package/build-module/components/site-editor-routes/template-part-item.mjs +1 -1
  117. package/build-module/components/site-editor-routes/template-part-item.mjs.map +2 -2
  118. package/build-module/components/site-editor-routes/templates.mjs +8 -1
  119. package/build-module/components/site-editor-routes/templates.mjs.map +2 -2
  120. package/build-module/components/welcome-guide/editor.mjs +1 -1
  121. package/build-module/components/welcome-guide/editor.mjs.map +1 -1
  122. package/build-module/components/welcome-guide/page.mjs +1 -1
  123. package/build-module/components/welcome-guide/page.mjs.map +1 -1
  124. package/build-module/components/welcome-guide/template.mjs +1 -1
  125. package/build-module/components/welcome-guide/template.mjs.map +1 -1
  126. package/build-module/store/selectors.mjs +2 -4
  127. package/build-module/store/selectors.mjs.map +2 -2
  128. package/build-style/{experimental-admin-bar-in-editor-rtl.css → experimental-omnibar-rtl.css} +49 -2
  129. package/build-style/{experimental-admin-bar-in-editor.css → experimental-omnibar.css} +49 -2
  130. package/build-style/style-rtl.css +476 -248
  131. package/build-style/style.css +476 -249
  132. package/package.json +49 -49
  133. package/src/components/layout/index.js +64 -18
  134. package/src/components/layout/style.scss +28 -13
  135. package/src/components/page-patterns/style.scss +1 -2
  136. package/src/components/page-templates/index-legacy.js +17 -9
  137. package/src/components/page-templates/style.scss +0 -5
  138. package/src/components/post-list/quick-edit-modal.js +0 -1
  139. package/src/components/resizable-frame/index.js +0 -1
  140. package/src/components/save-hub/index.js +4 -4
  141. package/src/components/save-hub/style.scss +5 -5
  142. package/src/components/sidebar-button/style.scss +2 -4
  143. package/src/components/sidebar-dataviews/style.scss +0 -1
  144. package/src/components/sidebar-global-styles/style.scss +1 -2
  145. package/src/components/sidebar-navigation-item/index.js +11 -9
  146. package/src/components/sidebar-navigation-item/style.scss +6 -7
  147. package/src/components/sidebar-navigation-screen/index.js +0 -1
  148. package/src/components/sidebar-navigation-screen/style.scss +9 -9
  149. package/src/components/sidebar-navigation-screen-global-styles/index.js +2 -15
  150. package/src/components/sidebar-navigation-screen-identity/index.js +0 -15
  151. package/src/components/sidebar-navigation-screen-main/index.js +24 -22
  152. package/src/components/sidebar-navigation-screen-navigation-menu/style.scss +2 -4
  153. package/src/components/sidebar-navigation-screen-navigation-menus/style.scss +15 -5
  154. package/src/components/sidebar-navigation-screen-patterns/style.scss +2 -3
  155. package/src/components/site-editor-routes/README.md +4 -4
  156. package/src/components/site-editor-routes/home.js +1 -1
  157. package/src/components/site-editor-routes/identity.js +1 -20
  158. package/src/components/site-editor-routes/navigation-item.js +2 -21
  159. package/src/components/site-editor-routes/navigation.js +2 -21
  160. package/src/components/site-editor-routes/notfound.js +1 -1
  161. package/src/components/site-editor-routes/page-item.js +1 -10
  162. package/src/components/site-editor-routes/pages.js +6 -14
  163. package/src/components/site-editor-routes/pattern-item.js +1 -1
  164. package/src/components/site-editor-routes/patterns.js +8 -7
  165. package/src/components/site-editor-routes/stylebook.js +1 -1
  166. package/src/components/site-editor-routes/styles.js +1 -12
  167. package/src/components/site-editor-routes/template-item.js +1 -10
  168. package/src/components/site-editor-routes/template-part-item.js +1 -1
  169. package/src/components/site-editor-routes/templates.js +8 -1
  170. package/src/components/site-hub/style.scss +5 -6
  171. package/src/components/welcome-guide/page.js +1 -1
  172. package/src/{experimental-admin-bar-in-editor.scss → experimental-omnibar.scss} +6 -2
  173. package/src/store/selectors.js +3 -7
  174. package/src/style.scss +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "6.48.0",
3
+ "version": "6.48.2-next.v.202606191442.0+17fe7db8a",
4
4
  "description": "Edit Site Page module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -41,61 +41,61 @@
41
41
  },
42
42
  "./package.json": "./package.json"
43
43
  },
44
- "react-native": "src/index",
45
44
  "wpScript": true,
46
45
  "wpScriptExtraDependencies": [
47
46
  "wp-dom-ready"
48
47
  ],
49
48
  "dependencies": {
50
49
  "@react-spring/web": "^9.4.5",
51
- "@wordpress/a11y": "^4.48.0",
52
- "@wordpress/admin-ui": "^2.3.0",
53
- "@wordpress/api-fetch": "^7.48.0",
54
- "@wordpress/base-styles": "^9.1.0",
55
- "@wordpress/blob": "^4.48.0",
56
- "@wordpress/block-editor": "^15.21.0",
57
- "@wordpress/block-library": "^9.48.0",
58
- "@wordpress/blocks": "^15.21.0",
59
- "@wordpress/commands": "^1.48.0",
60
- "@wordpress/components": "^35.0.0",
61
- "@wordpress/compose": "^8.1.0",
62
- "@wordpress/core-data": "^7.48.0",
63
- "@wordpress/data": "^10.48.0",
64
- "@wordpress/dataviews": "^16.0.0",
65
- "@wordpress/date": "^5.48.0",
66
- "@wordpress/deprecated": "^4.48.0",
67
- "@wordpress/dom": "^4.48.0",
68
- "@wordpress/editor": "^14.48.0",
69
- "@wordpress/element": "^8.0.0",
70
- "@wordpress/escape-html": "^3.48.0",
71
- "@wordpress/fields": "^0.40.0",
72
- "@wordpress/global-styles-engine": "^1.15.0",
73
- "@wordpress/global-styles-ui": "^1.15.0",
74
- "@wordpress/hooks": "^4.48.0",
75
- "@wordpress/html-entities": "^4.48.0",
76
- "@wordpress/i18n": "^6.21.0",
77
- "@wordpress/icons": "^13.3.0",
78
- "@wordpress/keyboard-shortcuts": "^5.48.0",
79
- "@wordpress/keycodes": "^4.48.0",
80
- "@wordpress/media-utils": "^5.48.0",
81
- "@wordpress/notices": "^5.48.0",
82
- "@wordpress/patterns": "^2.48.0",
83
- "@wordpress/plugins": "^7.48.0",
84
- "@wordpress/preferences": "^4.48.0",
85
- "@wordpress/primitives": "^4.48.0",
86
- "@wordpress/private-apis": "^1.48.0",
87
- "@wordpress/reusable-blocks": "^5.48.0",
88
- "@wordpress/router": "^1.48.0",
89
- "@wordpress/style-engine": "^2.48.0",
90
- "@wordpress/ui": "^0.15.0",
91
- "@wordpress/url": "^4.48.0",
92
- "@wordpress/viewport": "^6.48.0",
93
- "@wordpress/views": "^1.15.0",
94
- "@wordpress/widgets": "^4.48.0",
95
- "@wordpress/wordcount": "^4.48.0",
50
+ "@wordpress/a11y": "^4.48.2-next.v.202606191442.0+17fe7db8a",
51
+ "@wordpress/admin-ui": "^2.3.2-next.v.202606191442.0+17fe7db8a",
52
+ "@wordpress/api-fetch": "^7.48.2-next.v.202606191442.0+17fe7db8a",
53
+ "@wordpress/base-styles": "^10.0.2-next.v.202606191442.0+17fe7db8a",
54
+ "@wordpress/blob": "^4.48.2-next.v.202606191442.0+17fe7db8a",
55
+ "@wordpress/block-editor": "^15.22.1-next.v.202606191442.0+17fe7db8a",
56
+ "@wordpress/block-library": "^10.0.1-next.v.202606191442.0+17fe7db8a",
57
+ "@wordpress/blocks": "^15.21.3-next.v.202606191442.0+17fe7db8a",
58
+ "@wordpress/commands": "^1.48.2-next.v.202606191442.0+17fe7db8a",
59
+ "@wordpress/components": "^35.1.1-next.v.202606191442.0+17fe7db8a",
60
+ "@wordpress/compose": "^8.1.2-next.v.202606191442.0+17fe7db8a",
61
+ "@wordpress/core-data": "^7.48.2-next.v.202606191442.0+17fe7db8a",
62
+ "@wordpress/data": "^10.48.2-next.v.202606191442.0+17fe7db8a",
63
+ "@wordpress/dataviews": "^17.0.1-next.v.202606191442.0+17fe7db8a",
64
+ "@wordpress/date": "^5.48.2-next.v.202606191442.0+17fe7db8a",
65
+ "@wordpress/deprecated": "^4.48.2-next.v.202606191442.0+17fe7db8a",
66
+ "@wordpress/dom": "^4.48.2-next.v.202606191442.0+17fe7db8a",
67
+ "@wordpress/editor": "^14.48.2-next.v.202606191442.0+17fe7db8a",
68
+ "@wordpress/element": "^8.0.2-next.v.202606191442.0+17fe7db8a",
69
+ "@wordpress/escape-html": "^3.48.2-next.v.202606191442.0+17fe7db8a",
70
+ "@wordpress/fields": "^0.40.2-next.v.202606191442.0+17fe7db8a",
71
+ "@wordpress/global-styles-engine": "^1.15.2-next.v.202606191442.0+17fe7db8a",
72
+ "@wordpress/global-styles-ui": "^1.15.2-next.v.202606191442.0+17fe7db8a",
73
+ "@wordpress/hooks": "^4.48.2-next.v.202606191442.0+17fe7db8a",
74
+ "@wordpress/html-entities": "^4.48.2-next.v.202606191442.0+17fe7db8a",
75
+ "@wordpress/i18n": "^6.21.2-next.v.202606191442.0+17fe7db8a",
76
+ "@wordpress/icons": "^14.0.2-next.v.202606191442.0+17fe7db8a",
77
+ "@wordpress/keyboard-shortcuts": "^5.48.2-next.v.202606191442.0+17fe7db8a",
78
+ "@wordpress/keycodes": "^4.48.2-next.v.202606191442.0+17fe7db8a",
79
+ "@wordpress/media-utils": "^5.48.2-next.v.202606191442.0+17fe7db8a",
80
+ "@wordpress/notices": "^5.48.2-next.v.202606191442.0+17fe7db8a",
81
+ "@wordpress/patterns": "^2.48.2-next.v.202606191442.0+17fe7db8a",
82
+ "@wordpress/plugins": "^7.48.2-next.v.202606191442.0+17fe7db8a",
83
+ "@wordpress/preferences": "^4.48.2-next.v.202606191442.0+17fe7db8a",
84
+ "@wordpress/primitives": "^4.48.2-next.v.202606191442.0+17fe7db8a",
85
+ "@wordpress/private-apis": "^1.48.2-next.v.202606191442.0+17fe7db8a",
86
+ "@wordpress/reusable-blocks": "^5.48.2-next.v.202606191442.0+17fe7db8a",
87
+ "@wordpress/router": "^1.48.2-next.v.202606191442.0+17fe7db8a",
88
+ "@wordpress/style-engine": "^2.49.1-next.v.202606191442.0+17fe7db8a",
89
+ "@wordpress/theme": "^0.16.1-next.v.202606191442.0+17fe7db8a",
90
+ "@wordpress/ui": "^0.16.1-next.v.202606191442.0+17fe7db8a",
91
+ "@wordpress/url": "^4.48.2-next.v.202606191442.0+17fe7db8a",
92
+ "@wordpress/viewport": "^6.48.2-next.v.202606191442.0+17fe7db8a",
93
+ "@wordpress/views": "^1.15.2-next.v.202606191442.0+17fe7db8a",
94
+ "@wordpress/widgets": "^4.48.2-next.v.202606191442.0+17fe7db8a",
95
+ "@wordpress/wordcount": "^4.48.2-next.v.202606191442.0+17fe7db8a",
96
96
  "change-case": "^4.1.2",
97
97
  "clsx": "^2.1.1",
98
- "colord": "^2.9.2",
98
+ "colord": "^2.9.3",
99
99
  "fast-deep-equal": "^3.1.3",
100
100
  "memize": "^2.1.0",
101
101
  "react-autosize-textarea": "^7.1.0"
@@ -107,5 +107,5 @@
107
107
  "publishConfig": {
108
108
  "access": "public"
109
109
  },
110
- "gitHead": "e7856693aeb4e2522d13608cd32c994e4a97cb9c"
110
+ "gitHead": "1b6a19222df5a88f161880b5789efb3171d8f425"
111
111
  }
@@ -6,7 +6,7 @@ import clsx from 'clsx';
6
6
  /**
7
7
  * WordPress dependencies
8
8
  */
9
- import { NavigableRegion } from '@wordpress/admin-ui';
9
+ import { NavigableRegion, getAdminThemeColors } from '@wordpress/admin-ui';
10
10
  import {
11
11
  __unstableMotion as motion,
12
12
  __unstableAnimatePresence as AnimatePresence,
@@ -20,18 +20,18 @@ import {
20
20
  usePrevious,
21
21
  } from '@wordpress/compose';
22
22
  import { __, sprintf } from '@wordpress/i18n';
23
- import { useState, useRef, useEffect } from '@wordpress/element';
23
+ import { useState, useRef, useEffect, useMemo } from '@wordpress/element';
24
24
  import {
25
25
  UnsavedChangesWarning,
26
26
  ErrorBoundary,
27
27
  privateApis as editorPrivateApis,
28
28
  } from '@wordpress/editor';
29
29
  import { privateApis as routerPrivateApis } from '@wordpress/router';
30
+ import { privateApis as themePrivateApis } from '@wordpress/theme';
30
31
  import { PluginArea } from '@wordpress/plugins';
31
32
  import { SnackbarNotices, store as noticesStore } from '@wordpress/notices';
32
33
  import { useDispatch, useSelect } from '@wordpress/data';
33
34
  import { store as preferencesStore } from '@wordpress/preferences';
34
- // eslint-disable-next-line @wordpress/use-recommended-components -- `Tooltip` is not yet on the recommended `@wordpress/ui` allow-list; landing as a migration step ahead of the wider rollout.
35
35
  import { Tooltip } from '@wordpress/ui';
36
36
 
37
37
  /**
@@ -48,9 +48,11 @@ import SaveHub from '../save-hub';
48
48
  import SavePanel from '../save-panel';
49
49
 
50
50
  const { useLocation } = unlock( routerPrivateApis );
51
- const { useStyle } = unlock( editorPrivateApis );
51
+ const { useStyle, UploadProgressSnackbar } = unlock( editorPrivateApis );
52
+ const { ThemeProvider } = unlock( themePrivateApis );
52
53
 
53
54
  const ANIMATION_DURATION = 0.3;
55
+ const CONTENT_COLOR = { background: '#ffffff' };
54
56
 
55
57
  function Layout() {
56
58
  const { query, name: routeKey, areas, widths } = useLocation();
@@ -59,6 +61,8 @@ function Layout() {
59
61
  const hasAdminBarInEditor = window.__experimentalAdminBarInEditor;
60
62
  const showDesktopSiteHub = ! hasAdminBarInEditor;
61
63
  const showMobileSiteHub = ! hasAdminBarInEditor || routeKey !== 'home';
64
+ const hasMobileAreas =
65
+ areas.mobileSidebar || areas.mobileContent || areas.preview;
62
66
  const isMobileViewport = useViewportMatch( 'medium', '<' );
63
67
  const toggleRef = useRef();
64
68
  const navigateRegionsProps = useNavigateRegions();
@@ -111,7 +115,7 @@ function Layout() {
111
115
  The NavigableRegion must always be rendered and not use
112
116
  `inert` otherwise `useNavigateRegions` will fail.
113
117
  */ }
114
- { ( ! isMobileViewport || ! areas.mobile ) && (
118
+ { ( ! isMobileViewport || ! hasMobileAreas ) && (
115
119
  <NavigableRegion
116
120
  ariaLabel={ __( 'Navigation' ) }
117
121
  className="edit-site-layout__sidebar-region"
@@ -164,8 +168,9 @@ function Layout() {
164
168
  ) }
165
169
 
166
170
  <SnackbarNotices className="edit-site-layout__snackbar" />
171
+ <UploadProgressSnackbar />
167
172
 
168
- { isMobileViewport && areas.mobile && (
173
+ { isMobileViewport && hasMobileAreas && (
169
174
  <div className="edit-site-layout__mobile">
170
175
  <SidebarNavigationProvider>
171
176
  { canvas !== 'edit' ? (
@@ -178,18 +183,46 @@ function Layout() {
178
183
  }
179
184
  />
180
185
  ) }
181
- <SidebarContent routeKey={ routeKey }>
182
- <ErrorBoundary>
183
- { areas.mobile }
184
- </ErrorBoundary>
185
- </SidebarContent>
186
+ { areas.mobileContent ? (
187
+ /*
188
+ * ThemeProvider wraps SidebarContent (rather than
189
+ * just the content) so the scroll wrapper it renders
190
+ * inherits the content background tokens. See
191
+ * `.edit-site-sidebar__screen-wrapper` in style.scss.
192
+ */
193
+ <ThemeProvider
194
+ color={ CONTENT_COLOR }
195
+ >
196
+ <SidebarContent
197
+ routeKey={ routeKey }
198
+ >
199
+ <div className="edit-site-layout__mobile-content">
200
+ <ErrorBoundary>
201
+ {
202
+ areas.mobileContent
203
+ }
204
+ </ErrorBoundary>
205
+ </div>
206
+ </SidebarContent>
207
+ </ThemeProvider>
208
+ ) : (
209
+ <SidebarContent
210
+ routeKey={ routeKey }
211
+ >
212
+ <ErrorBoundary>
213
+ { areas.mobileSidebar }
214
+ </ErrorBoundary>
215
+ </SidebarContent>
216
+ ) }
186
217
  <SaveHub />
187
218
  <SavePanel />
188
219
  </>
189
220
  ) : (
190
- <ErrorBoundary>
191
- { areas.mobile }
192
- </ErrorBoundary>
221
+ <ThemeProvider color={ CONTENT_COLOR }>
222
+ <ErrorBoundary>
223
+ { areas.preview }
224
+ </ErrorBoundary>
225
+ </ThemeProvider>
193
226
  ) }
194
227
  </SidebarNavigationProvider>
195
228
  </div>
@@ -204,7 +237,11 @@ function Layout() {
204
237
  maxWidth: widths?.content,
205
238
  } }
206
239
  >
207
- <ErrorBoundary>{ areas.content }</ErrorBoundary>
240
+ <ThemeProvider color={ CONTENT_COLOR }>
241
+ <ErrorBoundary>
242
+ { areas.content }
243
+ </ErrorBoundary>
244
+ </ThemeProvider>
208
245
  </div>
209
246
  ) }
210
247
 
@@ -215,7 +252,9 @@ function Layout() {
215
252
  maxWidth: widths?.edit,
216
253
  } }
217
254
  >
218
- <ErrorBoundary>{ areas.edit }</ErrorBoundary>
255
+ <ThemeProvider color={ CONTENT_COLOR }>
256
+ <ErrorBoundary>{ areas.edit }</ErrorBoundary>
257
+ </ThemeProvider>
219
258
  </div>
220
259
  ) }
221
260
 
@@ -255,7 +294,11 @@ function Layout() {
255
294
  backgroundColor,
256
295
  } }
257
296
  >
258
- { areas.preview }
297
+ <ThemeProvider
298
+ color={ CONTENT_COLOR }
299
+ >
300
+ { areas.preview }
301
+ </ThemeProvider>
259
302
  </ResizableFrame>
260
303
  </ErrorBoundary>
261
304
  </div>
@@ -269,6 +312,7 @@ function Layout() {
269
312
  }
270
313
 
271
314
  export default function LayoutWithGlobalStylesProvider( props ) {
315
+ const themeColors = useMemo( getAdminThemeColors, [] );
272
316
  const { createErrorNotice } = useDispatch( noticesStore );
273
317
  function onPluginAreaError( name ) {
274
318
  createErrorNotice(
@@ -287,7 +331,9 @@ export default function LayoutWithGlobalStylesProvider( props ) {
287
331
  <Tooltip.Provider>
288
332
  { /** This needs to be within the SlotFillProvider */ }
289
333
  <PluginArea onError={ onPluginAreaError } />
290
- <Layout { ...props } />
334
+ <ThemeProvider color={ themeColors }>
335
+ <Layout { ...props } />
336
+ </ThemeProvider>
291
337
  </Tooltip.Provider>
292
338
  </SlotFillProvider>
293
339
  );
@@ -1,18 +1,17 @@
1
- @use "@wordpress/base-styles/colors" as *;
2
1
  @use "@wordpress/base-styles/mixins" as *;
3
2
  @use "@wordpress/base-styles/variables" as *;
4
3
  @use "@wordpress/base-styles/z-index" as *;
5
4
 
6
5
  .edit-site-layout {
7
6
  height: 100%;
8
- background: $gray-900;
9
- color: $gray-400;
7
+ background: var(--wpds-color-background-surface-neutral-weak);
8
+ color: var(--wpds-color-foreground-content-neutral);
10
9
  display: flex;
11
10
  flex-direction: column;
12
11
 
13
12
  // Show a dark background in "frame" mode to avoid edge artifacts.
14
13
  &:not(.is-full-canvas) .editor-visual-editor {
15
- background: $gray-900;
14
+ background: var(--wpds-color-background-surface-neutral-weak);
16
15
  }
17
16
  }
18
17
 
@@ -81,6 +80,20 @@
81
80
  }
82
81
  }
83
82
 
83
+ .edit-site-layout__mobile-content {
84
+ display: flex;
85
+ flex-direction: column;
86
+ flex-grow: 1;
87
+ }
88
+
89
+ // On mobile, the content surface lives on the scroll wrapper
90
+ // (not the inner content element) so it also covers the wrapper's
91
+ // reserved scrollbar gutter, preventing the theme background color from
92
+ // bleeding through.
93
+ .edit-site-sidebar__screen-wrapper:has(.edit-site-layout__mobile-content) {
94
+ background: var(--wpds-color-background-surface-neutral);
95
+ }
96
+
84
97
  .edit-site-layout__canvas-container {
85
98
  position: relative;
86
99
  flex-grow: 1;
@@ -104,7 +117,7 @@
104
117
  }
105
118
 
106
119
  .edit-site-resizable-frame__inner {
107
- color: $gray-900;
120
+ color: var(--wpds-color-foreground-content-neutral);
108
121
  }
109
122
 
110
123
  @include break-medium {
@@ -122,7 +135,7 @@
122
135
  }
123
136
 
124
137
  .edit-site-layout:not(.is-full-canvas) & {
125
- border-radius: $radius-large;
138
+ border-radius: var(--wpds-border-radius-xl);
126
139
  }
127
140
 
128
141
  &:hover {
@@ -173,7 +186,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
173
186
  view-transition-name: toggle;
174
187
  /* stylelint-enable */
175
188
  position: relative;
176
- color: $white;
189
+ color: var(--wpds-color-foreground-interactive-neutral);
177
190
  height: $header-height;
178
191
  width: $header-height;
179
192
  overflow: hidden;
@@ -181,12 +194,12 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
181
194
  display: flex;
182
195
  align-items: center;
183
196
  justify-content: center;
184
- background: $gray-900;
197
+ background: var(--wpds-color-background-surface-neutral-weak);
185
198
  border-radius: 0;
186
199
 
187
200
  &:hover,
188
201
  &:active {
189
- color: $white;
202
+ color: var(--wpds-color-foreground-interactive-neutral-active);
190
203
  }
191
204
 
192
205
  &:focus-visible,
@@ -229,8 +242,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
229
242
  left: auto;
230
243
  right: 0;
231
244
  width: $sidebar-width;
232
- color: $gray-900;
233
- background: $white;
245
+ color: var(--wpds-color-foreground-content-neutral);
246
+ background: var(--wpds-color-background-surface-neutral-strong);
234
247
 
235
248
  &:focus,
236
249
  &:focus-within {
@@ -246,7 +259,9 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
246
259
  }
247
260
 
248
261
  @include break-medium {
249
- border-left: $border-width solid $gray-300;
262
+ border-left:
263
+ $border-width solid
264
+ var(--wpds-color-stroke-surface-neutral);
250
265
  }
251
266
  }
252
267
 
@@ -256,7 +271,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
256
271
  overflow: hidden;
257
272
  box-shadow: $elevation-x-small;
258
273
  @include break-medium() {
259
- border-radius: 8px;
274
+ border-radius: var(--wpds-border-radius-xl);
260
275
  margin: $canvas-padding $canvas-padding $canvas-padding 0;
261
276
  }
262
277
  }
@@ -1,4 +1,3 @@
1
- @use "@wordpress/base-styles/colors" as *;
2
1
  @use "@wordpress/base-styles/mixins" as *;
3
2
  @use "@wordpress/base-styles/variables" as *;
4
3
 
@@ -93,7 +92,7 @@
93
92
  box-shadow: 0 0 0.5px 0.5px var(--wp-admin-theme-color);
94
93
  box-sizing: border-box;
95
94
  z-index: 1;
96
- background-color: $white;
95
+ background-color: var(--wpds-color-background-surface-neutral-strong);
97
96
  width: calc(100% + 2px); // Account for the border width of the token field.
98
97
  left: -1px;
99
98
  min-width: initial;
@@ -19,9 +19,9 @@ import AddNewTemplate from '../add-new-template-legacy';
19
19
  import { TEMPLATE_POST_TYPE } from '../../utils/constants';
20
20
  import { unlock } from '../../lock-unlock';
21
21
  import { useEditPostAction } from '../dataviews-actions';
22
- import { authorField, descriptionField, previewField } from './fields';
22
+ import { authorField, previewField } from './fields';
23
23
 
24
- const { usePostActions, templateTitleField } = unlock( editorPrivateApis );
24
+ const { usePostActions, usePostFields } = unlock( editorPrivateApis );
25
25
  const { useHistory, useLocation } = unlock( routerPrivateApis );
26
26
  const { useEntityRecordsWithPermissions } = unlock( corePrivateApis );
27
27
 
@@ -97,18 +97,26 @@ export default function PageTemplates() {
97
97
  } ) );
98
98
  }, [ records ] );
99
99
 
100
- const fields = useMemo(
101
- () => [
100
+ const postFields = usePostFields( { postType: TEMPLATE_POST_TYPE } );
101
+ const fields = useMemo( () => {
102
+ const __fields = [
102
103
  previewField,
103
- templateTitleField,
104
- descriptionField,
105
104
  {
106
105
  ...authorField,
107
106
  elements: authors,
108
107
  },
109
- ],
110
- [ authors ]
111
- );
108
+ ];
109
+ // TODO: Only `description` and `title` are sourced from the shared
110
+ // `@wordpress/fields` registry so far. The remaining local fields
111
+ // (e.g. `previewField`, `authorField`) should also be evaluated for
112
+ // migration to the shared registry.
113
+ return [
114
+ ...__fields,
115
+ ...( postFields || [] ).filter( ( field ) =>
116
+ [ 'description', 'title' ].includes( field.id )
117
+ ),
118
+ ];
119
+ }, [ authors, postFields ] );
112
120
 
113
121
  const { data, paginationInfo } = useMemo( () => {
114
122
  return filterSortAndPaginate( records, view, fields );
@@ -35,9 +35,4 @@
35
35
  .edit-site-list__rename-modal {
36
36
  // The rename dropdown popover is open at the same time as the rename modal. The latter has to be higher.
37
37
  z-index: z-index(".edit-site-list__rename-modal");
38
- .components-base-control {
39
- @include break-medium() {
40
- width: $grid-unit * 40;
41
- }
42
- }
43
38
  }
@@ -167,7 +167,6 @@ export function QuickEditModal( {
167
167
  <PostCardPanel
168
168
  postType={ postType }
169
169
  postId={ postId }
170
- onClose={ closeModal }
171
170
  hideActions
172
171
  />
173
172
  </div>
@@ -17,7 +17,6 @@ import { privateApis as routerPrivateApis } from '@wordpress/router';
17
17
  import { useSelect } from '@wordpress/data';
18
18
  import { store as coreStore } from '@wordpress/core-data';
19
19
  import { addQueryArgs } from '@wordpress/url';
20
- // eslint-disable-next-line @wordpress/use-recommended-components -- `Tooltip` is not yet on the recommended `@wordpress/ui` allow-list; landing as a migration step ahead of the wider rollout.
21
20
  import { Tooltip } from '@wordpress/ui';
22
21
 
23
22
  /**
@@ -2,7 +2,7 @@
2
2
  * WordPress dependencies
3
3
  */
4
4
  import { useSelect } from '@wordpress/data';
5
- import { __experimentalHStack as HStack } from '@wordpress/components';
5
+ import { Stack } from '@wordpress/ui';
6
6
  import { store as coreStore } from '@wordpress/core-data';
7
7
  import { check } from '@wordpress/icons';
8
8
 
@@ -28,15 +28,15 @@ export default function SaveHub() {
28
28
  };
29
29
  }, [] );
30
30
  return (
31
- <HStack className="edit-site-save-hub" alignment="right" spacing={ 4 }>
31
+ <Stack className="edit-site-save-hub" gap="lg">
32
32
  <SaveButton
33
33
  className="edit-site-save-hub__button"
34
- variant={ isDisabled ? null : 'primary' }
34
+ variant={ isDisabled && ! isSaving ? null : 'primary' }
35
35
  showTooltip={ false }
36
36
  icon={ isDisabled && ! isSaving ? check : null }
37
37
  showReviewMessage
38
38
  __next40pxDefaultSize
39
39
  />
40
- </HStack>
40
+ </Stack>
41
41
  );
42
42
  }
@@ -1,12 +1,11 @@
1
- @use "@wordpress/base-styles/colors" as *;
2
1
  @use "@wordpress/base-styles/variables" as *;
3
2
 
4
3
  .edit-site-save-hub {
5
- color: $gray-600;
6
- border-top: 1px solid $gray-800;
4
+ color: var(--wpds-color-foreground-content-neutral);
5
+ border-top: 1px solid var(--wpds-color-stroke-surface-neutral);
7
6
  flex-shrink: 0;
8
7
  margin: 0;
9
- padding: $grid-unit-20 $canvas-padding;
8
+ padding: $grid-unit-20;
10
9
  }
11
10
 
12
11
  .edit-site-save-hub__button {
@@ -18,6 +17,7 @@
18
17
  opacity: 1;
19
18
  }
20
19
 
20
+ &[aria-disabled="true"],
21
21
  &[aria-disabled="true"]:hover {
22
22
  color: inherit;
23
23
  }
@@ -25,7 +25,7 @@
25
25
  &:not(.is-primary) {
26
26
  &.is-busy,
27
27
  &.is-busy[aria-disabled="true"]:hover {
28
- color: $gray-900;
28
+ color: var(--wpds-color-foreground-interactive-neutral);
29
29
  }
30
30
  }
31
31
  }
@@ -1,7 +1,5 @@
1
- @use "@wordpress/base-styles/colors" as *;
2
-
3
1
  .edit-site-sidebar-button {
4
- color: $gray-200;
2
+ color: var(--wpds-color-foreground-interactive-neutral);
5
3
  flex-shrink: 0;
6
4
 
7
5
  // Focus (resets default button focus and use focus-visible).
@@ -21,6 +19,6 @@
21
19
  &:focus,
22
20
  &:not(:disabled,[aria-disabled="true"]):active,
23
21
  &[aria-expanded="true"] {
24
- color: $gray-100;
22
+ color: var(--wpds-color-foreground-interactive-neutral-active);
25
23
  }
26
24
  }
@@ -1,4 +1,3 @@
1
- @use "@wordpress/base-styles/colors" as *;
2
1
  @use "@wordpress/base-styles/variables" as *;
3
2
 
4
3
  .edit-site-sidebar-dataviews {
@@ -1,4 +1,3 @@
1
- @use "@wordpress/base-styles/colors" as *;
2
1
  @use "@wordpress/base-styles/variables" as *;
3
2
 
4
3
  .edit-site-styles {
@@ -25,7 +24,7 @@
25
24
  }
26
25
  }
27
26
  .edit-site-sidebar-button {
28
- color: $gray-900;
27
+ color: var(--wpds-color-foreground-interactive-neutral);
29
28
  }
30
29
  }
31
30