@xyd-js/host 0.0.0-build-58867ca-20250821204152 → 0.0.0-build-d97dca6-20250821231438

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 (3) hide show
  1. package/CHANGELOG.md +17 -17
  2. package/app/root.tsx +14 -6
  3. package/package.json +17 -17
package/CHANGELOG.md CHANGED
@@ -1,24 +1,24 @@
1
1
  # @xyd-js/host
2
2
 
3
- ## 0.0.0-build-58867ca-20250821204152
3
+ ## 0.0.0-build-d97dca6-20250821231438
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - update all packages
8
8
  - Updated dependencies
9
- - @xyd-js/analytics@0.0.0-build-58867ca-20250821204152
10
- - @xyd-js/atlas@0.0.0-build-58867ca-20250821204152
11
- - @xyd-js/components@0.0.0-build-58867ca-20250821204152
12
- - @xyd-js/composer@0.0.0-build-58867ca-20250821204152
13
- - @xyd-js/content@0.0.0-build-58867ca-20250821204152
14
- - @xyd-js/core@0.0.0-build-58867ca-20250821204152
15
- - @xyd-js/framework@0.0.0-build-58867ca-20250821204152
16
- - @xyd-js/plugin-algolia@0.0.0-build-58867ca-20250821204152
17
- - @xyd-js/plugin-orama@0.0.0-build-58867ca-20250821204152
18
- - @xyd-js/theme-cosmo@0.0.0-build-58867ca-20250821204152
19
- - @xyd-js/theme-gusto@0.0.0-build-58867ca-20250821204152
20
- - @xyd-js/theme-opener@0.0.0-build-58867ca-20250821204152
21
- - @xyd-js/theme-picasso@0.0.0-build-58867ca-20250821204152
22
- - @xyd-js/theme-poetry@0.0.0-build-58867ca-20250821204152
23
- - @xyd-js/theme-solar@0.0.0-build-58867ca-20250821204152
24
- - @xyd-js/themes@0.0.0-build-58867ca-20250821204152
9
+ - @xyd-js/analytics@0.0.0-build-d97dca6-20250821231438
10
+ - @xyd-js/atlas@0.0.0-build-d97dca6-20250821231438
11
+ - @xyd-js/components@0.0.0-build-d97dca6-20250821231438
12
+ - @xyd-js/composer@0.0.0-build-d97dca6-20250821231438
13
+ - @xyd-js/content@0.0.0-build-d97dca6-20250821231438
14
+ - @xyd-js/core@0.0.0-build-d97dca6-20250821231438
15
+ - @xyd-js/framework@0.0.0-build-d97dca6-20250821231438
16
+ - @xyd-js/plugin-algolia@0.0.0-build-d97dca6-20250821231438
17
+ - @xyd-js/plugin-orama@0.0.0-build-d97dca6-20250821231438
18
+ - @xyd-js/theme-cosmo@0.0.0-build-d97dca6-20250821231438
19
+ - @xyd-js/theme-gusto@0.0.0-build-d97dca6-20250821231438
20
+ - @xyd-js/theme-opener@0.0.0-build-d97dca6-20250821231438
21
+ - @xyd-js/theme-picasso@0.0.0-build-d97dca6-20250821231438
22
+ - @xyd-js/theme-poetry@0.0.0-build-d97dca6-20250821231438
23
+ - @xyd-js/theme-solar@0.0.0-build-d97dca6-20250821231438
24
+ - @xyd-js/themes@0.0.0-build-d97dca6-20250821231438
package/app/root.tsx CHANGED
@@ -47,12 +47,19 @@ export function Layout({ children }: { children: React.ReactNode }) {
47
47
 
48
48
  const { component: UserAppearance, classes: UserAppearanceClasses } = userAppearance()
49
49
 
50
+ const production = process.env.NODE_ENV === 'production'
51
+
52
+ const userStyles = <>
53
+ <UserStyleTokens />
54
+ <UserThemeColors />
55
+ {UserAppearance}
56
+ </>
57
+
50
58
  return (
51
59
  <html
52
60
  data-color-scheme={colorScheme}
53
61
  data-color-primary={settings?.theme?.appearance?.colors?.primary ? "true" : undefined}
54
62
  >
55
-
56
63
  <head>
57
64
  <PreloadScripts />
58
65
  <DefaultMetas />
@@ -65,15 +72,16 @@ export function Layout({ children }: { children: React.ReactNode }) {
65
72
  <Meta />
66
73
  <Links />
67
74
  <PresetStyles />
75
+ {/* TODO: in the future better solution - issues with css loading - import on dev is under this */}
76
+ {production ? userStyles : null}
68
77
  </head>
69
78
 
79
+ {production ? null : userStyles}
80
+
70
81
  <body className={UserAppearanceClasses}>
71
82
  {children}
72
83
  <ScrollRestoration />
73
84
  <Scripts />
74
- <UserStyleTokens />
75
- <UserPreferenceStyles />
76
- {UserAppearance}
77
85
  {/* TODO: in the future better solution? */}
78
86
  </body>
79
87
  </html>
@@ -136,7 +144,7 @@ function DefaultMetas() {
136
144
 
137
145
  function ColorSchemeScript() {
138
146
  const defaultColorScheme = settings?.theme?.appearance?.colorScheme || 'os'
139
-
147
+
140
148
  // Inject settings into the script
141
149
  const scriptWithSettings = `
142
150
  window.__xydColorSchemeSettings = ${JSON.stringify({ defaultColorScheme })};
@@ -245,7 +253,7 @@ function UserStyleTokens() {
245
253
  </>
246
254
  }
247
255
 
248
- function UserPreferenceStyles() {
256
+ function UserThemeColors() {
249
257
  const themeColors = userPreferences?.themeColors
250
258
  if (!themeColors) {
251
259
  return null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyd-js/host",
3
- "version": "0.0.0-build-58867ca-20250821204152",
3
+ "version": "0.0.0-build-d97dca6-20250821231438",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "katex": "^0.16.22",
@@ -13,22 +13,22 @@
13
13
  "@react-router/serve": "^7.7.1",
14
14
  "openux-js": "0.0.0-pre.1",
15
15
  "pluganalytics": "0.0.0-pre.3",
16
- "@xyd-js/analytics": "0.0.0-build-58867ca-20250821204152",
17
- "@xyd-js/core": "0.0.0-build-58867ca-20250821204152",
18
- "@xyd-js/components": "0.0.0-build-58867ca-20250821204152",
19
- "@xyd-js/content": "0.0.0-build-58867ca-20250821204152",
20
- "@xyd-js/framework": "0.0.0-build-58867ca-20250821204152",
21
- "@xyd-js/composer": "0.0.0-build-58867ca-20250821204152",
22
- "@xyd-js/themes": "0.0.0-build-58867ca-20250821204152",
23
- "@xyd-js/atlas": "0.0.0-build-58867ca-20250821204152",
24
- "@xyd-js/theme-poetry": "0.0.0-build-58867ca-20250821204152",
25
- "@xyd-js/theme-cosmo": "0.0.0-build-58867ca-20250821204152",
26
- "@xyd-js/theme-opener": "0.0.0-build-58867ca-20250821204152",
27
- "@xyd-js/theme-picasso": "0.0.0-build-58867ca-20250821204152",
28
- "@xyd-js/theme-gusto": "0.0.0-build-58867ca-20250821204152",
29
- "@xyd-js/theme-solar": "0.0.0-build-58867ca-20250821204152",
30
- "@xyd-js/plugin-orama": "0.0.0-build-58867ca-20250821204152",
31
- "@xyd-js/plugin-algolia": "0.0.0-build-58867ca-20250821204152"
16
+ "@xyd-js/analytics": "0.0.0-build-d97dca6-20250821231438",
17
+ "@xyd-js/components": "0.0.0-build-d97dca6-20250821231438",
18
+ "@xyd-js/content": "0.0.0-build-d97dca6-20250821231438",
19
+ "@xyd-js/framework": "0.0.0-build-d97dca6-20250821231438",
20
+ "@xyd-js/core": "0.0.0-build-d97dca6-20250821231438",
21
+ "@xyd-js/composer": "0.0.0-build-d97dca6-20250821231438",
22
+ "@xyd-js/themes": "0.0.0-build-d97dca6-20250821231438",
23
+ "@xyd-js/atlas": "0.0.0-build-d97dca6-20250821231438",
24
+ "@xyd-js/theme-poetry": "0.0.0-build-d97dca6-20250821231438",
25
+ "@xyd-js/theme-cosmo": "0.0.0-build-d97dca6-20250821231438",
26
+ "@xyd-js/theme-opener": "0.0.0-build-d97dca6-20250821231438",
27
+ "@xyd-js/theme-picasso": "0.0.0-build-d97dca6-20250821231438",
28
+ "@xyd-js/theme-gusto": "0.0.0-build-d97dca6-20250821231438",
29
+ "@xyd-js/theme-solar": "0.0.0-build-d97dca6-20250821231438",
30
+ "@xyd-js/plugin-orama": "0.0.0-build-d97dca6-20250821231438",
31
+ "@xyd-js/plugin-algolia": "0.0.0-build-d97dca6-20250821231438"
32
32
  },
33
33
  "devDependencies": {
34
34
  "autoprefixer": "^10.4.20",