@xyd-js/host 0.0.0-build-58867ca-20250821204152 → 0.0.0-build-1f5d0e0-20250821212644
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 +17 -17
- package/app/root.tsx +14 -6
- 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-
|
|
3
|
+
## 0.0.0-build-1f5d0e0-20250821212644
|
|
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-
|
|
10
|
-
- @xyd-js/atlas@0.0.0-build-
|
|
11
|
-
- @xyd-js/components@0.0.0-build-
|
|
12
|
-
- @xyd-js/composer@0.0.0-build-
|
|
13
|
-
- @xyd-js/content@0.0.0-build-
|
|
14
|
-
- @xyd-js/core@0.0.0-build-
|
|
15
|
-
- @xyd-js/framework@0.0.0-build-
|
|
16
|
-
- @xyd-js/plugin-algolia@0.0.0-build-
|
|
17
|
-
- @xyd-js/plugin-orama@0.0.0-build-
|
|
18
|
-
- @xyd-js/theme-cosmo@0.0.0-build-
|
|
19
|
-
- @xyd-js/theme-gusto@0.0.0-build-
|
|
20
|
-
- @xyd-js/theme-opener@0.0.0-build-
|
|
21
|
-
- @xyd-js/theme-picasso@0.0.0-build-
|
|
22
|
-
- @xyd-js/theme-poetry@0.0.0-build-
|
|
23
|
-
- @xyd-js/theme-solar@0.0.0-build-
|
|
24
|
-
- @xyd-js/themes@0.0.0-build-
|
|
9
|
+
- @xyd-js/analytics@0.0.0-build-1f5d0e0-20250821212644
|
|
10
|
+
- @xyd-js/atlas@0.0.0-build-1f5d0e0-20250821212644
|
|
11
|
+
- @xyd-js/components@0.0.0-build-1f5d0e0-20250821212644
|
|
12
|
+
- @xyd-js/composer@0.0.0-build-1f5d0e0-20250821212644
|
|
13
|
+
- @xyd-js/content@0.0.0-build-1f5d0e0-20250821212644
|
|
14
|
+
- @xyd-js/core@0.0.0-build-1f5d0e0-20250821212644
|
|
15
|
+
- @xyd-js/framework@0.0.0-build-1f5d0e0-20250821212644
|
|
16
|
+
- @xyd-js/plugin-algolia@0.0.0-build-1f5d0e0-20250821212644
|
|
17
|
+
- @xyd-js/plugin-orama@0.0.0-build-1f5d0e0-20250821212644
|
|
18
|
+
- @xyd-js/theme-cosmo@0.0.0-build-1f5d0e0-20250821212644
|
|
19
|
+
- @xyd-js/theme-gusto@0.0.0-build-1f5d0e0-20250821212644
|
|
20
|
+
- @xyd-js/theme-opener@0.0.0-build-1f5d0e0-20250821212644
|
|
21
|
+
- @xyd-js/theme-picasso@0.0.0-build-1f5d0e0-20250821212644
|
|
22
|
+
- @xyd-js/theme-poetry@0.0.0-build-1f5d0e0-20250821212644
|
|
23
|
+
- @xyd-js/theme-solar@0.0.0-build-1f5d0e0-20250821212644
|
|
24
|
+
- @xyd-js/themes@0.0.0-build-1f5d0e0-20250821212644
|
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
|
|
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-
|
|
3
|
+
"version": "0.0.0-build-1f5d0e0-20250821212644",
|
|
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-
|
|
17
|
-
"@xyd-js/core": "0.0.0-build-
|
|
18
|
-
"@xyd-js/components": "0.0.0-build-
|
|
19
|
-
"@xyd-js/content": "0.0.0-build-
|
|
20
|
-
"@xyd-js/framework": "0.0.0-build-
|
|
21
|
-
"@xyd-js/composer": "0.0.0-build-
|
|
22
|
-
"@xyd-js/themes": "0.0.0-build-
|
|
23
|
-
"@xyd-js/atlas": "0.0.0-build-
|
|
24
|
-
"@xyd-js/theme-poetry": "0.0.0-build-
|
|
25
|
-
"@xyd-js/theme-cosmo": "0.0.0-build-
|
|
26
|
-
"@xyd-js/theme-opener": "0.0.0-build-
|
|
27
|
-
"@xyd-js/theme-picasso": "0.0.0-build-
|
|
28
|
-
"@xyd-js/theme-gusto": "0.0.0-build-
|
|
29
|
-
"@xyd-js/theme-solar": "0.0.0-build-
|
|
30
|
-
"@xyd-js/plugin-orama": "0.0.0-build-
|
|
31
|
-
"@xyd-js/plugin-algolia": "0.0.0-build-
|
|
16
|
+
"@xyd-js/analytics": "0.0.0-build-1f5d0e0-20250821212644",
|
|
17
|
+
"@xyd-js/core": "0.0.0-build-1f5d0e0-20250821212644",
|
|
18
|
+
"@xyd-js/components": "0.0.0-build-1f5d0e0-20250821212644",
|
|
19
|
+
"@xyd-js/content": "0.0.0-build-1f5d0e0-20250821212644",
|
|
20
|
+
"@xyd-js/framework": "0.0.0-build-1f5d0e0-20250821212644",
|
|
21
|
+
"@xyd-js/composer": "0.0.0-build-1f5d0e0-20250821212644",
|
|
22
|
+
"@xyd-js/themes": "0.0.0-build-1f5d0e0-20250821212644",
|
|
23
|
+
"@xyd-js/atlas": "0.0.0-build-1f5d0e0-20250821212644",
|
|
24
|
+
"@xyd-js/theme-poetry": "0.0.0-build-1f5d0e0-20250821212644",
|
|
25
|
+
"@xyd-js/theme-cosmo": "0.0.0-build-1f5d0e0-20250821212644",
|
|
26
|
+
"@xyd-js/theme-opener": "0.0.0-build-1f5d0e0-20250821212644",
|
|
27
|
+
"@xyd-js/theme-picasso": "0.0.0-build-1f5d0e0-20250821212644",
|
|
28
|
+
"@xyd-js/theme-gusto": "0.0.0-build-1f5d0e0-20250821212644",
|
|
29
|
+
"@xyd-js/theme-solar": "0.0.0-build-1f5d0e0-20250821212644",
|
|
30
|
+
"@xyd-js/plugin-orama": "0.0.0-build-1f5d0e0-20250821212644",
|
|
31
|
+
"@xyd-js/plugin-algolia": "0.0.0-build-1f5d0e0-20250821212644"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"autoprefixer": "^10.4.20",
|