@wordpress/edit-site 6.48.0 → 6.48.1
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.
- package/CHANGELOG.md +7 -1
- package/build/components/layout/index.cjs +27 -9
- package/build/components/layout/index.cjs.map +3 -3
- package/build/components/post-list/quick-edit-modal.cjs +0 -1
- package/build/components/post-list/quick-edit-modal.cjs.map +2 -2
- package/build/components/sidebar-navigation-screen/index.cjs +0 -1
- package/build/components/sidebar-navigation-screen/index.cjs.map +2 -2
- package/build/components/site-editor-routes/home.cjs +1 -1
- package/build/components/site-editor-routes/home.cjs.map +2 -2
- package/build/components/site-editor-routes/identity.cjs +1 -12
- package/build/components/site-editor-routes/identity.cjs.map +3 -3
- package/build/components/site-editor-routes/navigation-item.cjs +2 -10
- package/build/components/site-editor-routes/navigation-item.cjs.map +3 -3
- package/build/components/site-editor-routes/navigation.cjs +2 -10
- package/build/components/site-editor-routes/navigation.cjs.map +3 -3
- package/build/components/site-editor-routes/notfound.cjs +1 -1
- package/build/components/site-editor-routes/notfound.cjs.map +2 -2
- package/build/components/site-editor-routes/page-item.cjs +1 -6
- package/build/components/site-editor-routes/page-item.cjs.map +2 -2
- package/build/components/site-editor-routes/pages.cjs +6 -9
- package/build/components/site-editor-routes/pages.cjs.map +3 -3
- package/build/components/site-editor-routes/pattern-item.cjs +1 -1
- package/build/components/site-editor-routes/pattern-item.cjs.map +2 -2
- package/build/components/site-editor-routes/patterns.cjs +8 -3
- package/build/components/site-editor-routes/patterns.cjs.map +2 -2
- package/build/components/site-editor-routes/stylebook.cjs +1 -1
- package/build/components/site-editor-routes/stylebook.cjs.map +2 -2
- package/build/components/site-editor-routes/styles.cjs +1 -9
- package/build/components/site-editor-routes/styles.cjs.map +2 -2
- package/build/components/site-editor-routes/template-item.cjs +1 -6
- package/build/components/site-editor-routes/template-item.cjs.map +2 -2
- package/build/components/site-editor-routes/template-part-item.cjs +1 -1
- package/build/components/site-editor-routes/template-part-item.cjs.map +2 -2
- package/build/components/site-editor-routes/templates.cjs +8 -1
- package/build/components/site-editor-routes/templates.cjs.map +2 -2
- package/build/store/selectors.cjs +2 -4
- package/build/store/selectors.cjs.map +2 -2
- package/build-module/components/layout/index.mjs +29 -11
- package/build-module/components/layout/index.mjs.map +2 -2
- package/build-module/components/post-list/quick-edit-modal.mjs +0 -1
- package/build-module/components/post-list/quick-edit-modal.mjs.map +2 -2
- package/build-module/components/sidebar-navigation-screen/index.mjs +0 -1
- package/build-module/components/sidebar-navigation-screen/index.mjs.map +2 -2
- package/build-module/components/site-editor-routes/home.mjs +1 -1
- package/build-module/components/site-editor-routes/home.mjs.map +2 -2
- package/build-module/components/site-editor-routes/identity.mjs +1 -12
- package/build-module/components/site-editor-routes/identity.mjs.map +2 -2
- package/build-module/components/site-editor-routes/navigation-item.mjs +2 -10
- package/build-module/components/site-editor-routes/navigation-item.mjs.map +2 -2
- package/build-module/components/site-editor-routes/navigation.mjs +2 -10
- package/build-module/components/site-editor-routes/navigation.mjs.map +2 -2
- package/build-module/components/site-editor-routes/notfound.mjs +1 -1
- package/build-module/components/site-editor-routes/notfound.mjs.map +2 -2
- package/build-module/components/site-editor-routes/page-item.mjs +2 -7
- package/build-module/components/site-editor-routes/page-item.mjs.map +2 -2
- package/build-module/components/site-editor-routes/pages.mjs +6 -9
- package/build-module/components/site-editor-routes/pages.mjs.map +2 -2
- package/build-module/components/site-editor-routes/pattern-item.mjs +1 -1
- package/build-module/components/site-editor-routes/pattern-item.mjs.map +2 -2
- package/build-module/components/site-editor-routes/patterns.mjs +8 -3
- package/build-module/components/site-editor-routes/patterns.mjs.map +2 -2
- package/build-module/components/site-editor-routes/stylebook.mjs +1 -1
- package/build-module/components/site-editor-routes/stylebook.mjs.map +2 -2
- package/build-module/components/site-editor-routes/styles.mjs +1 -9
- package/build-module/components/site-editor-routes/styles.mjs.map +2 -2
- package/build-module/components/site-editor-routes/template-item.mjs +2 -7
- package/build-module/components/site-editor-routes/template-item.mjs.map +2 -2
- package/build-module/components/site-editor-routes/template-part-item.mjs +1 -1
- package/build-module/components/site-editor-routes/template-part-item.mjs.map +2 -2
- package/build-module/components/site-editor-routes/templates.mjs +8 -1
- package/build-module/components/site-editor-routes/templates.mjs.map +2 -2
- package/build-module/store/selectors.mjs +2 -4
- package/build-module/store/selectors.mjs.map +2 -2
- package/build-style/experimental-admin-bar-in-editor-rtl.css +3 -1
- package/build-style/experimental-admin-bar-in-editor.css +3 -1
- package/build-style/style-rtl.css +312 -65
- package/build-style/style.css +312 -66
- package/package.json +49 -49
- package/src/components/layout/index.js +50 -15
- package/src/components/layout/style.scss +19 -11
- package/src/components/page-patterns/style.scss +1 -2
- package/src/components/post-list/quick-edit-modal.js +0 -1
- package/src/components/save-hub/style.scss +4 -4
- package/src/components/sidebar-button/style.scss +2 -4
- package/src/components/sidebar-dataviews/style.scss +0 -1
- package/src/components/sidebar-global-styles/style.scss +1 -2
- package/src/components/sidebar-navigation-item/style.scss +6 -7
- package/src/components/sidebar-navigation-screen/index.js +0 -1
- package/src/components/sidebar-navigation-screen/style.scss +9 -9
- package/src/components/sidebar-navigation-screen-navigation-menu/style.scss +2 -4
- package/src/components/sidebar-navigation-screen-navigation-menus/style.scss +15 -5
- package/src/components/sidebar-navigation-screen-patterns/style.scss +2 -3
- package/src/components/site-editor-routes/README.md +4 -4
- package/src/components/site-editor-routes/home.js +1 -1
- package/src/components/site-editor-routes/identity.js +1 -20
- package/src/components/site-editor-routes/navigation-item.js +2 -21
- package/src/components/site-editor-routes/navigation.js +2 -21
- package/src/components/site-editor-routes/notfound.js +1 -1
- package/src/components/site-editor-routes/page-item.js +1 -10
- package/src/components/site-editor-routes/pages.js +6 -14
- package/src/components/site-editor-routes/pattern-item.js +1 -1
- package/src/components/site-editor-routes/patterns.js +8 -7
- package/src/components/site-editor-routes/stylebook.js +1 -1
- package/src/components/site-editor-routes/styles.js +1 -12
- package/src/components/site-editor-routes/template-item.js +1 -10
- package/src/components/site-editor-routes/template-part-item.js +1 -1
- package/src/components/site-editor-routes/templates.js +8 -1
- package/src/components/site-hub/style.scss +5 -6
- package/src/experimental-admin-bar-in-editor.scss +3 -1
- package/src/store/selectors.js +3 -7
- package/src/style.scss +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "6.48.
|
|
3
|
+
"version": "6.48.1",
|
|
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.
|
|
52
|
-
"@wordpress/admin-ui": "^2.3.
|
|
53
|
-
"@wordpress/api-fetch": "^7.48.
|
|
54
|
-
"@wordpress/base-styles": "^
|
|
55
|
-
"@wordpress/blob": "^4.48.
|
|
56
|
-
"@wordpress/block-editor": "^15.21.
|
|
57
|
-
"@wordpress/block-library": "^9.48.
|
|
58
|
-
"@wordpress/blocks": "^15.21.
|
|
59
|
-
"@wordpress/commands": "^1.48.
|
|
60
|
-
"@wordpress/components": "^35.0.
|
|
61
|
-
"@wordpress/compose": "^8.1.
|
|
62
|
-
"@wordpress/core-data": "^7.48.
|
|
63
|
-
"@wordpress/data": "^10.48.
|
|
64
|
-
"@wordpress/dataviews": "^16.0.
|
|
65
|
-
"@wordpress/date": "^5.48.
|
|
66
|
-
"@wordpress/deprecated": "^4.48.
|
|
67
|
-
"@wordpress/dom": "^4.48.
|
|
68
|
-
"@wordpress/editor": "^14.48.
|
|
69
|
-
"@wordpress/element": "^8.0.
|
|
70
|
-
"@wordpress/escape-html": "^3.48.
|
|
71
|
-
"@wordpress/fields": "^0.40.
|
|
72
|
-
"@wordpress/global-styles-engine": "^1.15.
|
|
73
|
-
"@wordpress/global-styles-ui": "^1.15.
|
|
74
|
-
"@wordpress/hooks": "^4.48.
|
|
75
|
-
"@wordpress/html-entities": "^4.48.
|
|
76
|
-
"@wordpress/i18n": "^6.21.
|
|
77
|
-
"@wordpress/icons": "^
|
|
78
|
-
"@wordpress/keyboard-shortcuts": "^5.48.
|
|
79
|
-
"@wordpress/keycodes": "^4.48.
|
|
80
|
-
"@wordpress/media-utils": "^5.48.
|
|
81
|
-
"@wordpress/notices": "^5.48.
|
|
82
|
-
"@wordpress/patterns": "^2.48.
|
|
83
|
-
"@wordpress/plugins": "^7.48.
|
|
84
|
-
"@wordpress/preferences": "^4.48.
|
|
85
|
-
"@wordpress/primitives": "^4.48.
|
|
86
|
-
"@wordpress/private-apis": "^1.48.
|
|
87
|
-
"@wordpress/reusable-blocks": "^5.48.
|
|
88
|
-
"@wordpress/router": "^1.48.
|
|
89
|
-
"@wordpress/style-engine": "^2.48.
|
|
90
|
-
"@wordpress/
|
|
91
|
-
"@wordpress/
|
|
92
|
-
"@wordpress/
|
|
93
|
-
"@wordpress/
|
|
94
|
-
"@wordpress/
|
|
95
|
-
"@wordpress/
|
|
50
|
+
"@wordpress/a11y": "^4.48.1",
|
|
51
|
+
"@wordpress/admin-ui": "^2.3.1",
|
|
52
|
+
"@wordpress/api-fetch": "^7.48.1",
|
|
53
|
+
"@wordpress/base-styles": "^10.0.1",
|
|
54
|
+
"@wordpress/blob": "^4.48.1",
|
|
55
|
+
"@wordpress/block-editor": "^15.21.1",
|
|
56
|
+
"@wordpress/block-library": "^9.48.1",
|
|
57
|
+
"@wordpress/blocks": "^15.21.1",
|
|
58
|
+
"@wordpress/commands": "^1.48.1",
|
|
59
|
+
"@wordpress/components": "^35.0.1",
|
|
60
|
+
"@wordpress/compose": "^8.1.1",
|
|
61
|
+
"@wordpress/core-data": "^7.48.1",
|
|
62
|
+
"@wordpress/data": "^10.48.1",
|
|
63
|
+
"@wordpress/dataviews": "^16.0.1",
|
|
64
|
+
"@wordpress/date": "^5.48.1",
|
|
65
|
+
"@wordpress/deprecated": "^4.48.1",
|
|
66
|
+
"@wordpress/dom": "^4.48.1",
|
|
67
|
+
"@wordpress/editor": "^14.48.1",
|
|
68
|
+
"@wordpress/element": "^8.0.1",
|
|
69
|
+
"@wordpress/escape-html": "^3.48.1",
|
|
70
|
+
"@wordpress/fields": "^0.40.1",
|
|
71
|
+
"@wordpress/global-styles-engine": "^1.15.1",
|
|
72
|
+
"@wordpress/global-styles-ui": "^1.15.1",
|
|
73
|
+
"@wordpress/hooks": "^4.48.1",
|
|
74
|
+
"@wordpress/html-entities": "^4.48.1",
|
|
75
|
+
"@wordpress/i18n": "^6.21.1",
|
|
76
|
+
"@wordpress/icons": "^14.0.1",
|
|
77
|
+
"@wordpress/keyboard-shortcuts": "^5.48.1",
|
|
78
|
+
"@wordpress/keycodes": "^4.48.1",
|
|
79
|
+
"@wordpress/media-utils": "^5.48.1",
|
|
80
|
+
"@wordpress/notices": "^5.48.1",
|
|
81
|
+
"@wordpress/patterns": "^2.48.1",
|
|
82
|
+
"@wordpress/plugins": "^7.48.1",
|
|
83
|
+
"@wordpress/preferences": "^4.48.1",
|
|
84
|
+
"@wordpress/primitives": "^4.48.1",
|
|
85
|
+
"@wordpress/private-apis": "^1.48.1",
|
|
86
|
+
"@wordpress/reusable-blocks": "^5.48.1",
|
|
87
|
+
"@wordpress/router": "^1.48.1",
|
|
88
|
+
"@wordpress/style-engine": "^2.48.1",
|
|
89
|
+
"@wordpress/theme": "^0.15.1",
|
|
90
|
+
"@wordpress/ui": "^0.15.1",
|
|
91
|
+
"@wordpress/url": "^4.48.1",
|
|
92
|
+
"@wordpress/viewport": "^6.48.1",
|
|
93
|
+
"@wordpress/views": "^1.15.1",
|
|
94
|
+
"@wordpress/widgets": "^4.48.1",
|
|
95
|
+
"@wordpress/wordcount": "^4.48.1",
|
|
96
96
|
"change-case": "^4.1.2",
|
|
97
97
|
"clsx": "^2.1.1",
|
|
98
|
-
"colord": "^2.9.
|
|
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": "
|
|
110
|
+
"gitHead": "99df7432c5c7cb83ba41146fd1f57f3c19004305"
|
|
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,13 +20,14 @@ 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';
|
|
@@ -48,9 +49,11 @@ import SaveHub from '../save-hub';
|
|
|
48
49
|
import SavePanel from '../save-panel';
|
|
49
50
|
|
|
50
51
|
const { useLocation } = unlock( routerPrivateApis );
|
|
51
|
-
const { useStyle } = unlock( editorPrivateApis );
|
|
52
|
+
const { useStyle, UploadProgressSnackbar } = unlock( editorPrivateApis );
|
|
53
|
+
const { ThemeProvider } = unlock( themePrivateApis );
|
|
52
54
|
|
|
53
55
|
const ANIMATION_DURATION = 0.3;
|
|
56
|
+
const CONTENT_COLOR = { background: '#ffffff' };
|
|
54
57
|
|
|
55
58
|
function Layout() {
|
|
56
59
|
const { query, name: routeKey, areas, widths } = useLocation();
|
|
@@ -59,6 +62,8 @@ function Layout() {
|
|
|
59
62
|
const hasAdminBarInEditor = window.__experimentalAdminBarInEditor;
|
|
60
63
|
const showDesktopSiteHub = ! hasAdminBarInEditor;
|
|
61
64
|
const showMobileSiteHub = ! hasAdminBarInEditor || routeKey !== 'home';
|
|
65
|
+
const hasMobileAreas =
|
|
66
|
+
areas.mobileSidebar || areas.mobileContent || areas.preview;
|
|
62
67
|
const isMobileViewport = useViewportMatch( 'medium', '<' );
|
|
63
68
|
const toggleRef = useRef();
|
|
64
69
|
const navigateRegionsProps = useNavigateRegions();
|
|
@@ -111,7 +116,7 @@ function Layout() {
|
|
|
111
116
|
The NavigableRegion must always be rendered and not use
|
|
112
117
|
`inert` otherwise `useNavigateRegions` will fail.
|
|
113
118
|
*/ }
|
|
114
|
-
{ ( ! isMobileViewport || !
|
|
119
|
+
{ ( ! isMobileViewport || ! hasMobileAreas ) && (
|
|
115
120
|
<NavigableRegion
|
|
116
121
|
ariaLabel={ __( 'Navigation' ) }
|
|
117
122
|
className="edit-site-layout__sidebar-region"
|
|
@@ -164,8 +169,9 @@ function Layout() {
|
|
|
164
169
|
) }
|
|
165
170
|
|
|
166
171
|
<SnackbarNotices className="edit-site-layout__snackbar" />
|
|
172
|
+
<UploadProgressSnackbar />
|
|
167
173
|
|
|
168
|
-
{ isMobileViewport &&
|
|
174
|
+
{ isMobileViewport && hasMobileAreas && (
|
|
169
175
|
<div className="edit-site-layout__mobile">
|
|
170
176
|
<SidebarNavigationProvider>
|
|
171
177
|
{ canvas !== 'edit' ? (
|
|
@@ -179,17 +185,33 @@ function Layout() {
|
|
|
179
185
|
/>
|
|
180
186
|
) }
|
|
181
187
|
<SidebarContent routeKey={ routeKey }>
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
188
|
+
{ areas.mobileContent ? (
|
|
189
|
+
<ThemeProvider
|
|
190
|
+
color={ CONTENT_COLOR }
|
|
191
|
+
>
|
|
192
|
+
<div className="edit-site-layout__mobile-content">
|
|
193
|
+
<ErrorBoundary>
|
|
194
|
+
{
|
|
195
|
+
areas.mobileContent
|
|
196
|
+
}
|
|
197
|
+
</ErrorBoundary>
|
|
198
|
+
</div>
|
|
199
|
+
</ThemeProvider>
|
|
200
|
+
) : (
|
|
201
|
+
<ErrorBoundary>
|
|
202
|
+
{ areas.mobileSidebar }
|
|
203
|
+
</ErrorBoundary>
|
|
204
|
+
) }
|
|
185
205
|
</SidebarContent>
|
|
186
206
|
<SaveHub />
|
|
187
207
|
<SavePanel />
|
|
188
208
|
</>
|
|
189
209
|
) : (
|
|
190
|
-
<
|
|
191
|
-
|
|
192
|
-
|
|
210
|
+
<ThemeProvider color={ CONTENT_COLOR }>
|
|
211
|
+
<ErrorBoundary>
|
|
212
|
+
{ areas.preview }
|
|
213
|
+
</ErrorBoundary>
|
|
214
|
+
</ThemeProvider>
|
|
193
215
|
) }
|
|
194
216
|
</SidebarNavigationProvider>
|
|
195
217
|
</div>
|
|
@@ -204,7 +226,11 @@ function Layout() {
|
|
|
204
226
|
maxWidth: widths?.content,
|
|
205
227
|
} }
|
|
206
228
|
>
|
|
207
|
-
<
|
|
229
|
+
<ThemeProvider color={ CONTENT_COLOR }>
|
|
230
|
+
<ErrorBoundary>
|
|
231
|
+
{ areas.content }
|
|
232
|
+
</ErrorBoundary>
|
|
233
|
+
</ThemeProvider>
|
|
208
234
|
</div>
|
|
209
235
|
) }
|
|
210
236
|
|
|
@@ -215,7 +241,9 @@ function Layout() {
|
|
|
215
241
|
maxWidth: widths?.edit,
|
|
216
242
|
} }
|
|
217
243
|
>
|
|
218
|
-
<
|
|
244
|
+
<ThemeProvider color={ CONTENT_COLOR }>
|
|
245
|
+
<ErrorBoundary>{ areas.edit }</ErrorBoundary>
|
|
246
|
+
</ThemeProvider>
|
|
219
247
|
</div>
|
|
220
248
|
) }
|
|
221
249
|
|
|
@@ -255,7 +283,11 @@ function Layout() {
|
|
|
255
283
|
backgroundColor,
|
|
256
284
|
} }
|
|
257
285
|
>
|
|
258
|
-
|
|
286
|
+
<ThemeProvider
|
|
287
|
+
color={ CONTENT_COLOR }
|
|
288
|
+
>
|
|
289
|
+
{ areas.preview }
|
|
290
|
+
</ThemeProvider>
|
|
259
291
|
</ResizableFrame>
|
|
260
292
|
</ErrorBoundary>
|
|
261
293
|
</div>
|
|
@@ -269,6 +301,7 @@ function Layout() {
|
|
|
269
301
|
}
|
|
270
302
|
|
|
271
303
|
export default function LayoutWithGlobalStylesProvider( props ) {
|
|
304
|
+
const themeColors = useMemo( getAdminThemeColors, [] );
|
|
272
305
|
const { createErrorNotice } = useDispatch( noticesStore );
|
|
273
306
|
function onPluginAreaError( name ) {
|
|
274
307
|
createErrorNotice(
|
|
@@ -287,7 +320,9 @@ export default function LayoutWithGlobalStylesProvider( props ) {
|
|
|
287
320
|
<Tooltip.Provider>
|
|
288
321
|
{ /** This needs to be within the SlotFillProvider */ }
|
|
289
322
|
<PluginArea onError={ onPluginAreaError } />
|
|
290
|
-
<
|
|
323
|
+
<ThemeProvider color={ themeColors }>
|
|
324
|
+
<Layout { ...props } />
|
|
325
|
+
</ThemeProvider>
|
|
291
326
|
</Tooltip.Provider>
|
|
292
327
|
</SlotFillProvider>
|
|
293
328
|
);
|
|
@@ -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:
|
|
9
|
-
color:
|
|
7
|
+
background: var(--wpds-color-bg-surface-neutral-weak);
|
|
8
|
+
color: var(--wpds-color-fg-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:
|
|
14
|
+
background: var(--wpds-color-bg-surface-neutral-weak);
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
17
|
|
|
@@ -81,6 +80,13 @@
|
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
82
|
|
|
83
|
+
.edit-site-layout__mobile-content {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
flex-grow: 1;
|
|
87
|
+
background: var(--wpds-color-bg-surface-neutral);
|
|
88
|
+
}
|
|
89
|
+
|
|
84
90
|
.edit-site-layout__canvas-container {
|
|
85
91
|
position: relative;
|
|
86
92
|
flex-grow: 1;
|
|
@@ -104,7 +110,7 @@
|
|
|
104
110
|
}
|
|
105
111
|
|
|
106
112
|
.edit-site-resizable-frame__inner {
|
|
107
|
-
color:
|
|
113
|
+
color: var(--wpds-color-fg-content-neutral);
|
|
108
114
|
}
|
|
109
115
|
|
|
110
116
|
@include break-medium {
|
|
@@ -173,7 +179,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
173
179
|
view-transition-name: toggle;
|
|
174
180
|
/* stylelint-enable */
|
|
175
181
|
position: relative;
|
|
176
|
-
color:
|
|
182
|
+
color: var(--wpds-color-fg-interactive-neutral);
|
|
177
183
|
height: $header-height;
|
|
178
184
|
width: $header-height;
|
|
179
185
|
overflow: hidden;
|
|
@@ -181,12 +187,12 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
181
187
|
display: flex;
|
|
182
188
|
align-items: center;
|
|
183
189
|
justify-content: center;
|
|
184
|
-
background:
|
|
190
|
+
background: var(--wpds-color-bg-surface-neutral-weak);
|
|
185
191
|
border-radius: 0;
|
|
186
192
|
|
|
187
193
|
&:hover,
|
|
188
194
|
&:active {
|
|
189
|
-
color:
|
|
195
|
+
color: var(--wpds-color-fg-interactive-neutral-active);
|
|
190
196
|
}
|
|
191
197
|
|
|
192
198
|
&:focus-visible,
|
|
@@ -229,8 +235,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
229
235
|
left: auto;
|
|
230
236
|
right: 0;
|
|
231
237
|
width: $sidebar-width;
|
|
232
|
-
color:
|
|
233
|
-
background:
|
|
238
|
+
color: var(--wpds-color-fg-content-neutral);
|
|
239
|
+
background: var(--wpds-color-bg-surface-neutral-strong);
|
|
234
240
|
|
|
235
241
|
&:focus,
|
|
236
242
|
&:focus-within {
|
|
@@ -246,7 +252,9 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
246
252
|
}
|
|
247
253
|
|
|
248
254
|
@include break-medium {
|
|
249
|
-
border-left:
|
|
255
|
+
border-left:
|
|
256
|
+
$border-width solid
|
|
257
|
+
var(--wpds-color-stroke-surface-neutral);
|
|
250
258
|
}
|
|
251
259
|
}
|
|
252
260
|
|
|
@@ -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:
|
|
95
|
+
background-color: var(--wpds-color-bg-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;
|
|
@@ -1,9 +1,8 @@
|
|
|
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:
|
|
6
|
-
border-top: 1px solid
|
|
4
|
+
color: var(--wpds-color-fg-content-neutral);
|
|
5
|
+
border-top: 1px solid var(--wpds-color-stroke-surface-neutral);
|
|
7
6
|
flex-shrink: 0;
|
|
8
7
|
margin: 0;
|
|
9
8
|
padding: $grid-unit-20 $canvas-padding;
|
|
@@ -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:
|
|
28
|
+
color: var(--wpds-color-fg-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:
|
|
2
|
+
color: var(--wpds-color-fg-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:
|
|
22
|
+
color: var(--wpds-color-fg-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-styles {
|
|
@@ -25,7 +24,7 @@
|
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
.edit-site-sidebar-button {
|
|
28
|
-
color:
|
|
27
|
+
color: var(--wpds-color-fg-interactive-neutral);
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
@use "@wordpress/base-styles/colors" as *;
|
|
2
1
|
@use "@wordpress/base-styles/variables" as *;
|
|
3
2
|
|
|
4
3
|
.edit-site-sidebar-navigation-item.components-item {
|
|
5
|
-
color:
|
|
4
|
+
color: var(--wpds-color-fg-interactive-neutral-weak);
|
|
6
5
|
// 6px right padding to align with + button
|
|
7
6
|
padding: $grid-unit-10 6px $grid-unit-10 $grid-unit-20;
|
|
8
7
|
border: none;
|
|
@@ -11,16 +10,16 @@
|
|
|
11
10
|
&:hover,
|
|
12
11
|
&:focus,
|
|
13
12
|
&[aria-current="true"] {
|
|
14
|
-
color:
|
|
13
|
+
color: var(--wpds-color-fg-interactive-neutral-active);
|
|
15
14
|
|
|
16
15
|
.edit-site-sidebar-navigation-item__drilldown-indicator {
|
|
17
|
-
fill:
|
|
16
|
+
fill: var(--wpds-color-fg-interactive-neutral-active);
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
&[aria-current="true"] {
|
|
22
|
-
background:
|
|
23
|
-
color:
|
|
21
|
+
background: var(--wpds-color-bg-interactive-neutral-weak-active);
|
|
22
|
+
color: var(--wpds-color-fg-interactive-neutral-active);
|
|
24
23
|
font-weight: $font-weight-medium;
|
|
25
24
|
}
|
|
26
25
|
|
|
@@ -30,7 +29,7 @@
|
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
.edit-site-sidebar-navigation-item__drilldown-indicator {
|
|
33
|
-
fill:
|
|
32
|
+
fill: var(--wpds-color-fg-interactive-neutral-weak);
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
&.with-suffix {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
padding: 0 $grid-unit-20;
|
|
24
24
|
|
|
25
25
|
.components-text {
|
|
26
|
-
color:
|
|
26
|
+
color: var(--wpds-color-fg-content-neutral);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.components-heading {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
.edit-site-sidebar-navigation-screen__title-icon {
|
|
35
35
|
position: sticky;
|
|
36
36
|
top: 0;
|
|
37
|
-
background:
|
|
37
|
+
background: var(--wpds-color-bg-surface-neutral-weak);
|
|
38
38
|
padding-top: $grid-unit-60;
|
|
39
39
|
margin-bottom: $grid-unit-10;
|
|
40
40
|
padding-bottom: $grid-unit-10;
|
|
@@ -95,11 +95,11 @@
|
|
|
95
95
|
.edit-site-sidebar-navigation-screen__footer {
|
|
96
96
|
position: sticky;
|
|
97
97
|
bottom: 0;
|
|
98
|
-
background-color:
|
|
98
|
+
background-color: var(--wpds-color-bg-surface-neutral-weak);
|
|
99
99
|
gap: 0;
|
|
100
100
|
padding: $grid-unit-10 $grid-unit-20;
|
|
101
101
|
margin: $grid-unit-20 0 0;
|
|
102
|
-
border-top: 1px solid
|
|
102
|
+
border-top: 1px solid var(--wpds-color-stroke-surface-neutral);
|
|
103
103
|
|
|
104
104
|
.edit-site-sidebar-navigation-screen-details-footer {
|
|
105
105
|
margin-left: -$grid-unit-20;
|
|
@@ -116,20 +116,20 @@
|
|
|
116
116
|
.edit-site-sidebar-navigation-screen__input-control {
|
|
117
117
|
width: 100%;
|
|
118
118
|
.components-input-control__container {
|
|
119
|
-
background:
|
|
119
|
+
background: var(--wpds-color-bg-interactive-neutral-weak);
|
|
120
120
|
|
|
121
121
|
.components-button {
|
|
122
|
-
color:
|
|
122
|
+
color: var(--wpds-color-fg-interactive-neutral) !important;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
.components-input-control__input {
|
|
126
|
-
color:
|
|
127
|
-
background:
|
|
126
|
+
color: var(--wpds-color-fg-interactive-neutral) !important;
|
|
127
|
+
background: var(--wpds-color-bg-interactive-neutral-weak) !important;
|
|
128
128
|
}
|
|
129
129
|
.components-input-control__backdrop {
|
|
130
130
|
border: 4px !important;
|
|
131
131
|
}
|
|
132
132
|
.components-base-control__help {
|
|
133
|
-
color:
|
|
133
|
+
color: var(--wpds-color-fg-content-neutral-weak);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
@use "@wordpress/base-styles/colors" as *;
|
|
2
|
-
|
|
3
1
|
.sidebar-navigation__more-menu {
|
|
4
2
|
.components-button {
|
|
5
|
-
color:
|
|
3
|
+
color: var(--wpds-color-fg-interactive-neutral);
|
|
6
4
|
&:hover,
|
|
7
5
|
&:focus,
|
|
8
6
|
&[aria-current] {
|
|
9
|
-
color:
|
|
7
|
+
color: var(--wpds-color-fg-interactive-neutral);
|
|
10
8
|
}
|
|
11
9
|
}
|
|
12
10
|
}
|
|
@@ -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-navigation-screen__description {
|
|
@@ -24,19 +23,30 @@
|
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
.block-editor-list-view-block-select-button {
|
|
27
|
-
color:
|
|
26
|
+
color: var(--wpds-color-fg-interactive-neutral-weak);
|
|
28
27
|
&:hover,
|
|
29
28
|
&:focus,
|
|
30
29
|
&[aria-current] {
|
|
31
|
-
color:
|
|
30
|
+
color: var(--wpds-color-fg-interactive-neutral-active);
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
.block-editor-list-view-block__menu {
|
|
36
|
-
color:
|
|
35
|
+
color: var(--wpds-color-fg-interactive-neutral-weak);
|
|
37
36
|
&:hover,
|
|
38
37
|
&:focus {
|
|
39
|
-
color:
|
|
38
|
+
color: var(--wpds-color-fg-interactive-neutral-active);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.block-editor-inserter__toggle {
|
|
43
|
+
background: var(--wpds-color-bg-interactive-brand-strong);
|
|
44
|
+
color: var(--wpds-color-fg-interactive-brand-strong);
|
|
45
|
+
|
|
46
|
+
&:hover,
|
|
47
|
+
&:focus {
|
|
48
|
+
background: var(--wpds-color-bg-interactive-brand-strong-active);
|
|
49
|
+
color: var(--wpds-color-fg-interactive-brand-strong-active);
|
|
40
50
|
}
|
|
41
51
|
}
|
|
42
52
|
}
|
|
@@ -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-navigation-screen-patterns__group {
|
|
@@ -17,7 +16,7 @@
|
|
|
17
16
|
margin-top: $grid-unit-20;
|
|
18
17
|
|
|
19
18
|
p {
|
|
20
|
-
color:
|
|
19
|
+
color: var(--wpds-color-fg-content-neutral-weak);
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
h2 {
|
|
@@ -28,6 +27,6 @@
|
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
.edit-site-sidebar-navigation-screen-patterns__divider {
|
|
31
|
-
border-top: 1px solid
|
|
30
|
+
border-top: 1px solid var(--wpds-color-stroke-surface-neutral);
|
|
32
31
|
margin: $grid-unit-20 0;
|
|
33
32
|
}
|
|
@@ -6,15 +6,15 @@ When `canvasMode` is not `edit`, the areas available to use are:
|
|
|
6
6
|
|
|
7
7
|
| Area | Non-mobile viewport | Mobile viewport |
|
|
8
8
|
| --- | --- | --- |
|
|
9
|
-
| `sidebar` | Always rendered. | Only if
|
|
9
|
+
| `sidebar` | Always rendered. | Only if no mobile area (`mobileSidebar`, `mobileContent`, or `preview`) is provided. |
|
|
10
10
|
| `content` | Rendered if provided. | Not rendered. |
|
|
11
11
|
| `preview` | Rendered if provided. | Not rendered. |
|
|
12
12
|
| `edit` | Rendered if provided. | Not rendered. |
|
|
13
|
-
| `
|
|
13
|
+
| `mobileSidebar` | Not rendered | Rendered as full-screen (with the themed sidebar background), if provided and `mobileContent` is not provided. |
|
|
14
|
+
| `mobileContent` | Not rendered | Rendered as full-screen (with the white content background), if provided. |
|
|
14
15
|
|
|
15
16
|
When `canvasMode` is `edit`, the areas available to use are:
|
|
16
17
|
|
|
17
18
|
| Area | Non-mobile viewport | Mobile viewport |
|
|
18
19
|
| --- | --- | --- |
|
|
19
|
-
| `preview` | Rendered as full-screen, if provided. Otherwise, it'll display an empty blank sidebar. |
|
|
20
|
-
| `mobile` | Not rendered | Rendered as full-screen, if provided. Otherwise, it'll display an empty blank sidebar. |
|
|
20
|
+
| `preview` | Rendered as full-screen, if provided. Otherwise, it'll display an empty blank sidebar. | Rendered as full-screen, if provided. Otherwise, it'll display an empty blank sidebar. |
|