@wordpress/edit-site 6.48.1 → 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.
- package/build/components/editor/use-editor-title.cjs +1 -1
- package/build/components/editor/use-editor-title.cjs.map +2 -2
- package/build/components/layout/index.cjs +25 -5
- package/build/components/layout/index.cjs.map +2 -2
- package/build/components/page-templates/index-legacy.cjs +12 -8
- package/build/components/page-templates/index-legacy.cjs.map +2 -2
- package/build/components/resizable-frame/index.cjs.map +2 -2
- package/build/components/routes/use-title.cjs +1 -1
- package/build/components/routes/use-title.cjs.map +2 -2
- package/build/components/save-button/index.cjs +2 -2
- package/build/components/save-button/index.cjs.map +1 -1
- package/build/components/save-hub/index.cjs +3 -3
- package/build/components/save-hub/index.cjs.map +3 -3
- package/build/components/sidebar-navigation-item/index.cjs +8 -3
- package/build/components/sidebar-navigation-item/index.cjs.map +3 -3
- package/build/components/sidebar-navigation-screen-global-styles/index.cjs +2 -18
- package/build/components/sidebar-navigation-screen-global-styles/index.cjs.map +3 -3
- package/build/components/sidebar-navigation-screen-identity/index.cjs +0 -19
- package/build/components/sidebar-navigation-screen-identity/index.cjs.map +3 -3
- package/build/components/sidebar-navigation-screen-main/index.cjs +25 -25
- package/build/components/sidebar-navigation-screen-main/index.cjs.map +2 -2
- package/build/components/sidebar-navigation-screen-patterns/index.cjs +1 -1
- package/build/components/sidebar-navigation-screen-patterns/index.cjs.map +2 -2
- package/build/components/welcome-guide/editor.cjs +1 -1
- package/build/components/welcome-guide/editor.cjs.map +1 -1
- package/build/components/welcome-guide/page.cjs +1 -1
- package/build/components/welcome-guide/page.cjs.map +1 -1
- package/build/components/welcome-guide/template.cjs +1 -1
- package/build/components/welcome-guide/template.cjs.map +1 -1
- package/build-module/components/editor/use-editor-title.mjs +1 -1
- package/build-module/components/editor/use-editor-title.mjs.map +2 -2
- package/build-module/components/layout/index.mjs +25 -5
- package/build-module/components/layout/index.mjs.map +2 -2
- package/build-module/components/page-templates/index-legacy.mjs +13 -9
- package/build-module/components/page-templates/index-legacy.mjs.map +2 -2
- package/build-module/components/resizable-frame/index.mjs.map +2 -2
- package/build-module/components/routes/use-title.mjs +1 -1
- package/build-module/components/routes/use-title.mjs.map +2 -2
- package/build-module/components/save-button/index.mjs +2 -2
- package/build-module/components/save-button/index.mjs.map +1 -1
- package/build-module/components/save-hub/index.mjs +3 -3
- package/build-module/components/save-hub/index.mjs.map +2 -2
- package/build-module/components/sidebar-navigation-item/index.mjs +9 -8
- package/build-module/components/sidebar-navigation-item/index.mjs.map +2 -2
- package/build-module/components/sidebar-navigation-screen-global-styles/index.mjs +2 -14
- package/build-module/components/sidebar-navigation-screen-global-styles/index.mjs.map +2 -2
- package/build-module/components/sidebar-navigation-screen-identity/index.mjs +0 -15
- package/build-module/components/sidebar-navigation-screen-identity/index.mjs.map +2 -2
- package/build-module/components/sidebar-navigation-screen-main/index.mjs +25 -25
- package/build-module/components/sidebar-navigation-screen-main/index.mjs.map +2 -2
- package/build-module/components/sidebar-navigation-screen-patterns/index.mjs +1 -1
- package/build-module/components/sidebar-navigation-screen-patterns/index.mjs.map +2 -2
- package/build-module/components/welcome-guide/editor.mjs +1 -1
- package/build-module/components/welcome-guide/editor.mjs.map +1 -1
- package/build-module/components/welcome-guide/page.mjs +1 -1
- package/build-module/components/welcome-guide/page.mjs.map +1 -1
- package/build-module/components/welcome-guide/template.mjs +1 -1
- package/build-module/components/welcome-guide/template.mjs.map +1 -1
- package/build-style/{experimental-admin-bar-in-editor-rtl.css → experimental-omnibar-rtl.css} +46 -1
- package/build-style/{experimental-admin-bar-in-editor.css → experimental-omnibar.css} +46 -1
- package/build-style/style-rtl.css +222 -241
- package/build-style/style.css +222 -241
- package/package.json +48 -48
- package/src/components/layout/index.js +20 -9
- package/src/components/layout/style.scss +19 -12
- package/src/components/page-patterns/style.scss +1 -1
- package/src/components/page-templates/index-legacy.js +17 -9
- package/src/components/page-templates/style.scss +0 -5
- package/src/components/resizable-frame/index.js +0 -1
- package/src/components/save-hub/index.js +4 -4
- package/src/components/save-hub/style.scss +3 -3
- package/src/components/sidebar-button/style.scss +2 -2
- package/src/components/sidebar-global-styles/style.scss +1 -1
- package/src/components/sidebar-navigation-item/index.js +11 -9
- package/src/components/sidebar-navigation-item/style.scss +6 -6
- package/src/components/sidebar-navigation-screen/style.scss +8 -8
- package/src/components/sidebar-navigation-screen-global-styles/index.js +2 -15
- package/src/components/sidebar-navigation-screen-identity/index.js +0 -15
- package/src/components/sidebar-navigation-screen-main/index.js +24 -22
- package/src/components/sidebar-navigation-screen-navigation-menu/style.scss +2 -2
- package/src/components/sidebar-navigation-screen-navigation-menus/style.scss +8 -8
- package/src/components/sidebar-navigation-screen-patterns/style.scss +1 -1
- package/src/components/site-hub/style.scss +5 -5
- package/src/components/welcome-guide/page.js +1 -1
- package/src/{experimental-admin-bar-in-editor.scss → experimental-omnibar.scss} +3 -1
- package/src/style.scss +2 -2
|
@@ -19,36 +19,28 @@ import { store as coreStore } from '@wordpress/core-data';
|
|
|
19
19
|
*/
|
|
20
20
|
import SidebarNavigationScreen from '../sidebar-navigation-screen';
|
|
21
21
|
import SidebarNavigationItem from '../sidebar-navigation-item';
|
|
22
|
-
import { SidebarNavigationItemGlobalStyles } from '../sidebar-navigation-screen-global-styles';
|
|
23
|
-
import { SidebarNavigationItemIdentity } from '../sidebar-navigation-screen-identity';
|
|
24
22
|
|
|
25
23
|
export function MainSidebarNavigationContent( { isBlockBasedTheme = true } ) {
|
|
26
24
|
return (
|
|
27
25
|
<ItemGroup className="edit-site-sidebar-navigation-screen-main">
|
|
28
26
|
{ isBlockBasedTheme && (
|
|
29
27
|
<>
|
|
30
|
-
<SidebarNavigationItemGlobalStyles
|
|
31
|
-
to="/styles"
|
|
32
|
-
uid="global-styles-navigation-item"
|
|
33
|
-
icon={ styles }
|
|
34
|
-
>
|
|
35
|
-
{ __( 'Styles' ) }
|
|
36
|
-
</SidebarNavigationItemGlobalStyles>
|
|
37
28
|
<SidebarNavigationItem
|
|
38
|
-
uid="navigation-navigation-item"
|
|
39
|
-
to="/navigation"
|
|
40
|
-
withChevron
|
|
41
|
-
icon={ navigation }
|
|
42
|
-
>
|
|
43
|
-
{ __( 'Navigation' ) }
|
|
44
|
-
</SidebarNavigationItem>
|
|
45
|
-
<SidebarNavigationItemIdentity
|
|
46
29
|
to="/identity"
|
|
47
30
|
uid="identity-navigation-item"
|
|
48
31
|
icon={ siteLogo }
|
|
32
|
+
activeOnRouteName="identity"
|
|
49
33
|
>
|
|
50
34
|
{ _x( 'Identity', 'site identity' ) }
|
|
51
|
-
</
|
|
35
|
+
</SidebarNavigationItem>
|
|
36
|
+
<SidebarNavigationItem
|
|
37
|
+
to="/styles"
|
|
38
|
+
uid="global-styles-navigation-item"
|
|
39
|
+
icon={ styles }
|
|
40
|
+
activeOnRouteName="styles"
|
|
41
|
+
>
|
|
42
|
+
{ __( 'Styles' ) }
|
|
43
|
+
</SidebarNavigationItem>
|
|
52
44
|
<SidebarNavigationItem
|
|
53
45
|
uid="page-navigation-item"
|
|
54
46
|
to="/page"
|
|
@@ -58,12 +50,12 @@ export function MainSidebarNavigationContent( { isBlockBasedTheme = true } ) {
|
|
|
58
50
|
{ __( 'Pages' ) }
|
|
59
51
|
</SidebarNavigationItem>
|
|
60
52
|
<SidebarNavigationItem
|
|
61
|
-
uid="
|
|
62
|
-
to="/
|
|
53
|
+
uid="navigation-navigation-item"
|
|
54
|
+
to="/navigation"
|
|
63
55
|
withChevron
|
|
64
|
-
icon={
|
|
56
|
+
icon={ navigation }
|
|
65
57
|
>
|
|
66
|
-
{ __( '
|
|
58
|
+
{ __( 'Navigation' ) }
|
|
67
59
|
</SidebarNavigationItem>
|
|
68
60
|
</>
|
|
69
61
|
) }
|
|
@@ -85,6 +77,16 @@ export function MainSidebarNavigationContent( { isBlockBasedTheme = true } ) {
|
|
|
85
77
|
>
|
|
86
78
|
{ __( 'Patterns' ) }
|
|
87
79
|
</SidebarNavigationItem>
|
|
80
|
+
{ isBlockBasedTheme && (
|
|
81
|
+
<SidebarNavigationItem
|
|
82
|
+
uid="template-navigation-item"
|
|
83
|
+
to="/template"
|
|
84
|
+
withChevron
|
|
85
|
+
icon={ layout }
|
|
86
|
+
>
|
|
87
|
+
{ __( 'Templates' ) }
|
|
88
|
+
</SidebarNavigationItem>
|
|
89
|
+
) }
|
|
88
90
|
</ItemGroup>
|
|
89
91
|
);
|
|
90
92
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.sidebar-navigation__more-menu {
|
|
2
2
|
.components-button {
|
|
3
|
-
color: var(--wpds-color-
|
|
3
|
+
color: var(--wpds-color-foreground-interactive-neutral);
|
|
4
4
|
&:hover,
|
|
5
5
|
&:focus,
|
|
6
6
|
&[aria-current] {
|
|
7
|
-
color: var(--wpds-color-
|
|
7
|
+
color: var(--wpds-color-foreground-interactive-neutral);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.block-editor-list-view-block-select-button {
|
|
26
|
-
color: var(--wpds-color-
|
|
26
|
+
color: var(--wpds-color-foreground-interactive-neutral-weak);
|
|
27
27
|
&:hover,
|
|
28
28
|
&:focus,
|
|
29
29
|
&[aria-current] {
|
|
30
|
-
color: var(--wpds-color-
|
|
30
|
+
color: var(--wpds-color-foreground-interactive-neutral-active);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.block-editor-list-view-block__menu {
|
|
35
|
-
color: var(--wpds-color-
|
|
35
|
+
color: var(--wpds-color-foreground-interactive-neutral-weak);
|
|
36
36
|
&:hover,
|
|
37
37
|
&:focus {
|
|
38
|
-
color: var(--wpds-color-
|
|
38
|
+
color: var(--wpds-color-foreground-interactive-neutral-active);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.block-editor-inserter__toggle {
|
|
43
|
-
background: var(--wpds-color-
|
|
44
|
-
color: var(--wpds-color-
|
|
43
|
+
background: var(--wpds-color-background-interactive-brand-strong);
|
|
44
|
+
color: var(--wpds-color-foreground-interactive-brand-strong);
|
|
45
45
|
|
|
46
46
|
&:hover,
|
|
47
47
|
&:focus {
|
|
48
|
-
background: var(--wpds-color-
|
|
49
|
-
color: var(--wpds-color-
|
|
48
|
+
background: var(--wpds-color-background-interactive-brand-strong-active);
|
|
49
|
+
color: var(--wpds-color-foreground-interactive-brand-strong-active);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.edit-site-site-hub__title .components-button {
|
|
27
|
-
color: var(--wpds-color-
|
|
27
|
+
color: var(--wpds-color-foreground-interactive-neutral);
|
|
28
28
|
display: block;
|
|
29
29
|
flex-grow: 1;
|
|
30
30
|
font-size: 15px;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
&:hover,
|
|
44
44
|
&:focus,
|
|
45
45
|
&:active {
|
|
46
|
-
color: var(--wpds-color-
|
|
46
|
+
color: var(--wpds-color-foreground-interactive-neutral);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
&:focus {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
&:focus-visible {
|
|
56
56
|
// Push the shadow away from the title.
|
|
57
|
-
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-
|
|
57
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-background-surface-neutral-weak), 0 0 0 calc(2 * var(--wp-admin-border-width-focus)) var(--wp-admin-theme-color);
|
|
58
58
|
|
|
59
59
|
// Windows High Contrast mode will show this outline, but not the box-shadow.
|
|
60
60
|
outline: 2px solid transparent;
|
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.edit-site-site-hub_toggle-command-center {
|
|
84
|
-
color: var(--wpds-color-
|
|
84
|
+
color: var(--wpds-color-foreground-interactive-neutral);
|
|
85
85
|
|
|
86
86
|
&:hover,
|
|
87
87
|
&:active {
|
|
88
88
|
svg {
|
|
89
|
-
fill: var(--wpds-color-
|
|
89
|
+
fill: var(--wpds-color-foreground-interactive-neutral-active);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -58,7 +58,7 @@ export default function WelcomeGuidePage() {
|
|
|
58
58
|
<p className="edit-site-welcome-guide__text">
|
|
59
59
|
{ __(
|
|
60
60
|
// eslint-disable-next-line no-restricted-syntax -- 'sidebar' is a common web design term for layouts
|
|
61
|
-
'It’s now possible to edit page content in the site editor. To
|
|
61
|
+
'It’s now possible to edit page content in the site editor. To customize other parts of the page like the header and footer switch to editing the template using the settings sidebar.'
|
|
62
62
|
) }
|
|
63
63
|
</p>
|
|
64
64
|
</>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Styles for the experimental admin bar in editor.
|
|
2
2
|
|
|
3
|
+
@use "@wordpress/base-styles/variables" as *;
|
|
4
|
+
|
|
3
5
|
body.has-admin-bar-in-editor {
|
|
4
6
|
margin-top: 0;
|
|
5
7
|
height: 100%;
|
|
@@ -22,7 +24,7 @@ body.has-admin-bar-in-editor {
|
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
.edit-site-sidebar-navigation-screen__title-icon {
|
|
25
|
-
padding-top:
|
|
27
|
+
padding-top: $grid-unit-40;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
.edit-site-layout__content,
|
package/src/style.scss
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
@use "./components/resizable-frame/style.scss" as *;
|
|
32
32
|
@use "./components/pagination/style.scss" as *;
|
|
33
33
|
@use "./components/sidebar-global-styles/style.scss" as *;
|
|
34
|
-
@use "./experimental-
|
|
34
|
+
@use "./experimental-omnibar.scss" as *;
|
|
35
35
|
|
|
36
36
|
/* stylelint-disable -- Disable reason: View Transitions not supported properly by stylelint. */
|
|
37
37
|
::view-transition-image-pair(root) {
|
|
@@ -61,7 +61,7 @@ body.js.site-editor-php {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
body.js.site-editor-php {
|
|
64
|
-
background: var(--wpds-color-
|
|
64
|
+
background: var(--wpds-color-background-surface-neutral-weak);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.edit-site {
|