@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.
Files changed (86) hide show
  1. package/build/components/editor/use-editor-title.cjs +1 -1
  2. package/build/components/editor/use-editor-title.cjs.map +2 -2
  3. package/build/components/layout/index.cjs +25 -5
  4. package/build/components/layout/index.cjs.map +2 -2
  5. package/build/components/page-templates/index-legacy.cjs +12 -8
  6. package/build/components/page-templates/index-legacy.cjs.map +2 -2
  7. package/build/components/resizable-frame/index.cjs.map +2 -2
  8. package/build/components/routes/use-title.cjs +1 -1
  9. package/build/components/routes/use-title.cjs.map +2 -2
  10. package/build/components/save-button/index.cjs +2 -2
  11. package/build/components/save-button/index.cjs.map +1 -1
  12. package/build/components/save-hub/index.cjs +3 -3
  13. package/build/components/save-hub/index.cjs.map +3 -3
  14. package/build/components/sidebar-navigation-item/index.cjs +8 -3
  15. package/build/components/sidebar-navigation-item/index.cjs.map +3 -3
  16. package/build/components/sidebar-navigation-screen-global-styles/index.cjs +2 -18
  17. package/build/components/sidebar-navigation-screen-global-styles/index.cjs.map +3 -3
  18. package/build/components/sidebar-navigation-screen-identity/index.cjs +0 -19
  19. package/build/components/sidebar-navigation-screen-identity/index.cjs.map +3 -3
  20. package/build/components/sidebar-navigation-screen-main/index.cjs +25 -25
  21. package/build/components/sidebar-navigation-screen-main/index.cjs.map +2 -2
  22. package/build/components/sidebar-navigation-screen-patterns/index.cjs +1 -1
  23. package/build/components/sidebar-navigation-screen-patterns/index.cjs.map +2 -2
  24. package/build/components/welcome-guide/editor.cjs +1 -1
  25. package/build/components/welcome-guide/editor.cjs.map +1 -1
  26. package/build/components/welcome-guide/page.cjs +1 -1
  27. package/build/components/welcome-guide/page.cjs.map +1 -1
  28. package/build/components/welcome-guide/template.cjs +1 -1
  29. package/build/components/welcome-guide/template.cjs.map +1 -1
  30. package/build-module/components/editor/use-editor-title.mjs +1 -1
  31. package/build-module/components/editor/use-editor-title.mjs.map +2 -2
  32. package/build-module/components/layout/index.mjs +25 -5
  33. package/build-module/components/layout/index.mjs.map +2 -2
  34. package/build-module/components/page-templates/index-legacy.mjs +13 -9
  35. package/build-module/components/page-templates/index-legacy.mjs.map +2 -2
  36. package/build-module/components/resizable-frame/index.mjs.map +2 -2
  37. package/build-module/components/routes/use-title.mjs +1 -1
  38. package/build-module/components/routes/use-title.mjs.map +2 -2
  39. package/build-module/components/save-button/index.mjs +2 -2
  40. package/build-module/components/save-button/index.mjs.map +1 -1
  41. package/build-module/components/save-hub/index.mjs +3 -3
  42. package/build-module/components/save-hub/index.mjs.map +2 -2
  43. package/build-module/components/sidebar-navigation-item/index.mjs +9 -8
  44. package/build-module/components/sidebar-navigation-item/index.mjs.map +2 -2
  45. package/build-module/components/sidebar-navigation-screen-global-styles/index.mjs +2 -14
  46. package/build-module/components/sidebar-navigation-screen-global-styles/index.mjs.map +2 -2
  47. package/build-module/components/sidebar-navigation-screen-identity/index.mjs +0 -15
  48. package/build-module/components/sidebar-navigation-screen-identity/index.mjs.map +2 -2
  49. package/build-module/components/sidebar-navigation-screen-main/index.mjs +25 -25
  50. package/build-module/components/sidebar-navigation-screen-main/index.mjs.map +2 -2
  51. package/build-module/components/sidebar-navigation-screen-patterns/index.mjs +1 -1
  52. package/build-module/components/sidebar-navigation-screen-patterns/index.mjs.map +2 -2
  53. package/build-module/components/welcome-guide/editor.mjs +1 -1
  54. package/build-module/components/welcome-guide/editor.mjs.map +1 -1
  55. package/build-module/components/welcome-guide/page.mjs +1 -1
  56. package/build-module/components/welcome-guide/page.mjs.map +1 -1
  57. package/build-module/components/welcome-guide/template.mjs +1 -1
  58. package/build-module/components/welcome-guide/template.mjs.map +1 -1
  59. package/build-style/{experimental-admin-bar-in-editor-rtl.css → experimental-omnibar-rtl.css} +46 -1
  60. package/build-style/{experimental-admin-bar-in-editor.css → experimental-omnibar.css} +46 -1
  61. package/build-style/style-rtl.css +222 -241
  62. package/build-style/style.css +222 -241
  63. package/package.json +48 -48
  64. package/src/components/layout/index.js +20 -9
  65. package/src/components/layout/style.scss +19 -12
  66. package/src/components/page-patterns/style.scss +1 -1
  67. package/src/components/page-templates/index-legacy.js +17 -9
  68. package/src/components/page-templates/style.scss +0 -5
  69. package/src/components/resizable-frame/index.js +0 -1
  70. package/src/components/save-hub/index.js +4 -4
  71. package/src/components/save-hub/style.scss +3 -3
  72. package/src/components/sidebar-button/style.scss +2 -2
  73. package/src/components/sidebar-global-styles/style.scss +1 -1
  74. package/src/components/sidebar-navigation-item/index.js +11 -9
  75. package/src/components/sidebar-navigation-item/style.scss +6 -6
  76. package/src/components/sidebar-navigation-screen/style.scss +8 -8
  77. package/src/components/sidebar-navigation-screen-global-styles/index.js +2 -15
  78. package/src/components/sidebar-navigation-screen-identity/index.js +0 -15
  79. package/src/components/sidebar-navigation-screen-main/index.js +24 -22
  80. package/src/components/sidebar-navigation-screen-navigation-menu/style.scss +2 -2
  81. package/src/components/sidebar-navigation-screen-navigation-menus/style.scss +8 -8
  82. package/src/components/sidebar-navigation-screen-patterns/style.scss +1 -1
  83. package/src/components/site-hub/style.scss +5 -5
  84. package/src/components/welcome-guide/page.js +1 -1
  85. package/src/{experimental-admin-bar-in-editor.scss → experimental-omnibar.scss} +3 -1
  86. 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
- </SidebarNavigationItemIdentity>
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="template-navigation-item"
62
- to="/template"
53
+ uid="navigation-navigation-item"
54
+ to="/navigation"
63
55
  withChevron
64
- icon={ layout }
56
+ icon={ navigation }
65
57
  >
66
- { __( 'Templates' ) }
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-fg-interactive-neutral);
3
+ color: var(--wpds-color-foreground-interactive-neutral);
4
4
  &:hover,
5
5
  &:focus,
6
6
  &[aria-current] {
7
- color: var(--wpds-color-fg-interactive-neutral);
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-fg-interactive-neutral-weak);
26
+ color: var(--wpds-color-foreground-interactive-neutral-weak);
27
27
  &:hover,
28
28
  &:focus,
29
29
  &[aria-current] {
30
- color: var(--wpds-color-fg-interactive-neutral-active);
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-fg-interactive-neutral-weak);
35
+ color: var(--wpds-color-foreground-interactive-neutral-weak);
36
36
  &:hover,
37
37
  &:focus {
38
- color: var(--wpds-color-fg-interactive-neutral-active);
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-bg-interactive-brand-strong);
44
- color: var(--wpds-color-fg-interactive-brand-strong);
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-bg-interactive-brand-strong-active);
49
- color: var(--wpds-color-fg-interactive-brand-strong-active);
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
  }
@@ -16,7 +16,7 @@
16
16
  margin-top: $grid-unit-20;
17
17
 
18
18
  p {
19
- color: var(--wpds-color-fg-content-neutral-weak);
19
+ color: var(--wpds-color-foreground-content-neutral-weak);
20
20
  }
21
21
 
22
22
  h2 {
@@ -24,7 +24,7 @@
24
24
  }
25
25
 
26
26
  .edit-site-site-hub__title .components-button {
27
- color: var(--wpds-color-fg-interactive-neutral);
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-fg-interactive-neutral);
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-bg-surface-neutral-weak), 0 0 0 calc(2 * var(--wp-admin-border-width-focus)) var(--wp-admin-theme-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-fg-interactive-neutral);
84
+ color: var(--wpds-color-foreground-interactive-neutral);
85
85
 
86
86
  &:hover,
87
87
  &:active {
88
88
  svg {
89
- fill: var(--wpds-color-fg-interactive-neutral-active);
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 customise other parts of the page like the header and footer switch to editing the template using the settings sidebar.'
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: 16px;
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-admin-bar-in-editor.scss" as *;
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-bg-surface-neutral-weak);
64
+ background: var(--wpds-color-background-surface-neutral-weak);
65
65
  }
66
66
 
67
67
  .edit-site {