@wordpress/boot 0.3.1-next.738bb1424.0 → 0.4.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 (48) hide show
  1. package/build-module/components/app/index.js +3 -3
  2. package/build-module/components/app/router.js +39 -42
  3. package/build-module/components/app/router.js.map +2 -2
  4. package/build-module/components/app/use-route-title.js +1 -1
  5. package/build-module/components/canvas/back-button.js +1 -1
  6. package/build-module/components/canvas/index.js +1 -1
  7. package/build-module/components/canvas-renderer/index.js +1 -1
  8. package/build-module/components/navigation/drilldown-item/index.js +1 -1
  9. package/build-module/components/navigation/dropdown-item/index.js +3 -3
  10. package/build-module/components/navigation/index.js +6 -6
  11. package/build-module/components/navigation/navigation-item/index.js +2 -2
  12. package/build-module/components/navigation/router-link-item.js +1 -1
  13. package/build-module/components/navigation/use-sidebar-parent.js +3 -3
  14. package/build-module/components/root/index.js +112 -102
  15. package/build-module/components/root/index.js.map +2 -2
  16. package/build-module/components/root/single-page.js +17 -11
  17. package/build-module/components/root/single-page.js.map +2 -2
  18. package/build-module/components/save-button/index.js +1 -1
  19. package/build-module/components/save-panel/index.js +1 -1
  20. package/build-module/components/sidebar/index.js +3 -3
  21. package/build-module/components/site-hub/index.js +10 -28
  22. package/build-module/components/site-hub/index.js.map +2 -2
  23. package/build-module/components/site-icon-link/index.js +2 -2
  24. package/build-module/index.js +62 -20
  25. package/build-module/index.js.map +2 -2
  26. package/build-module/store/index.js +3 -3
  27. package/build-style/style-rtl.css +59 -17
  28. package/build-style/style.css +59 -17
  29. package/build-types/components/app/router.d.ts.map +1 -1
  30. package/build-types/components/root/index.d.ts.map +1 -1
  31. package/build-types/components/root/single-page.d.ts.map +1 -1
  32. package/build-types/components/site-hub/index.d.ts.map +1 -1
  33. package/package.json +22 -30
  34. package/src/components/app/router.tsx +51 -54
  35. package/src/components/root/index.tsx +46 -44
  36. package/src/components/root/single-page.tsx +19 -18
  37. package/src/components/root/style.scss +0 -1
  38. package/src/components/site-hub/index.tsx +1 -6
  39. package/src/components/site-hub/style.scss +6 -21
  40. package/src/style.scss +34 -19
  41. package/tsconfig.json +27 -0
  42. package/tsconfig.tsbuildinfo +1 -0
  43. package/build-module/components/user-theme-provider/index.js +0 -33
  44. package/build-module/components/user-theme-provider/index.js.map +0 -7
  45. package/build-types/components/user-theme-provider/index.d.ts +0 -6
  46. package/build-types/components/user-theme-provider/index.d.ts.map +0 -1
  47. package/src/components/user-theme-provider/index.tsx +0 -35
  48. package/src/components/user-theme-provider/test/index.test.ts +0 -11
@@ -17,15 +17,17 @@
17
17
  }
18
18
 
19
19
  .boot-site-hub__title {
20
- display: flex;
21
- align-items: center;
20
+ color: var(--wpds-color-fg-content-neutral, #1e1e1e);
21
+ font-size: variables.$font-size-medium;
22
+ font-weight: variables.$font-weight-medium;
23
+ overflow: hidden;
24
+ text-overflow: ellipsis;
25
+ white-space: nowrap;
22
26
  text-decoration: none;
23
27
 
24
28
  .components-external-link__contents {
25
29
  text-decoration: none;
26
30
  margin-inline-start: variables.$grid-unit-05;
27
- overflow: hidden;
28
- max-width: 140px;
29
31
  }
30
32
 
31
33
  // Show icon on hover
@@ -50,20 +52,3 @@
50
52
  outline-offset: calc(-1 * var(--wpds-border-width-interactive-focus, 2px));
51
53
  }
52
54
  }
53
-
54
- .boot-site-hub__title-text {
55
- color: var(--wpds-color-fg-content-neutral, #1e1e1e);
56
- font-size: variables.$font-size-medium;
57
- font-weight: variables.$font-weight-medium;
58
- overflow: hidden;
59
- text-overflow: ellipsis;
60
- white-space: nowrap;
61
- }
62
-
63
- .boot-site-hub__url {
64
- color: var(--wpds-color-fg-content-neutral-weak, #757575);
65
- font-size: variables.$font-size-small;
66
- overflow: hidden;
67
- text-overflow: ellipsis;
68
- white-space: nowrap;
69
- }
package/src/style.scss CHANGED
@@ -1,32 +1,47 @@
1
1
  @use "@wordpress/theme/src/prebuilt/css/design-tokens.css" as *;
2
2
  @use "@wordpress/admin-ui/build-style/style.css" as *;
3
3
  @use "@wordpress/base-styles/mixins" as *;
4
- @use "@wordpress/base-styles/variables" as *;
4
+ @use "@wordpress/base-styles/variables";
5
5
 
6
+ // Reset wp-admin layout styles when loaded inside wp-admin.
6
7
  .boot-layout-container .boot-layout {
7
- // On mobile the main content area has to scroll, otherwise you can invoke
8
- // the overscroll bounce on the non-scrolling container, for a bad experience.
9
- @include break-small {
10
- position: absolute;
11
- top: 0;
12
- right: 0;
13
- bottom: 0;
14
- left: 0;
15
- min-height: calc(100vh - #{$admin-bar-height-big});
16
- }
8
+ height: calc(100vh - #{variables.$admin-bar-height});
9
+ }
10
+
11
+ body:has(.boot-layout-container) {
12
+ background: #1d2327; // Same as WP-Admin sidebar
13
+ overflow: hidden;
14
+ @include wp-admin-reset( ".boot-layout-container" );
15
+ }
16
+
17
+ #wpcontent {
18
+ padding-left: 0;
19
+ }
17
20
 
18
- // The WP header height changes at this breakpoint.
21
+ #wpbody-content {
22
+ padding-bottom: 0;
23
+ }
24
+
25
+ #wpfooter {
26
+ display: none;
27
+ }
28
+
29
+ body:has(.boot-layout.has-full-canvas) {
19
30
  @include break-medium {
20
- min-height: calc(100vh - #{$admin-bar-height});
31
+ // Reset the html.wp-topbar padding.
32
+ // Because this uses negative margins, we have to compensate for the height.
33
+ margin-top: - variables.$admin-bar-height;
34
+ height: calc(100% + #{ variables.$admin-bar-height });
21
35
 
22
- body:has(.boot-layout.has-full-canvas) & {
23
- min-height: 100vh;
36
+ #adminmenumain,
37
+ #wpadminbar {
38
+ display: none;
24
39
  }
25
- }
26
40
 
27
- img {
28
- max-width: 100%;
29
- height: auto;
41
+ #wpcontent,
42
+ #wpfooter {
43
+ margin-left: 0;
44
+ }
30
45
  }
31
46
  }
32
47
 
package/tsconfig.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig.json",
3
+ "extends": "../../tsconfig.base.json",
4
+ "compilerOptions": {
5
+ "checkJs": false
6
+ },
7
+ "references": [
8
+ { "path": "../a11y" },
9
+ { "path": "../admin-ui" },
10
+ { "path": "../components" },
11
+ { "path": "../compose" },
12
+ { "path": "../core-data" },
13
+ { "path": "../data" },
14
+ { "path": "../editor" },
15
+ { "path": "../element" },
16
+ { "path": "../html-entities" },
17
+ { "path": "../i18n" },
18
+ { "path": "../icons" },
19
+ { "path": "../keycodes" },
20
+ { "path": "../lazy-editor" },
21
+ { "path": "../primitives" },
22
+ { "path": "../private-apis" },
23
+ { "path": "../route" },
24
+ { "path": "../theme" },
25
+ { "path": "../url" }
26
+ ]
27
+ }