@rokkit/app 1.3.0 → 1.3.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rokkit/app",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "App-level controls for Rokkit applications - theme management and UI chrome",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"build": "svelte-package -i src -o dist"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@rokkit/actions": "1.3.
|
|
42
|
-
"@rokkit/core": "1.3.
|
|
43
|
-
"@rokkit/states": "1.3.
|
|
44
|
-
"@rokkit/ui": "1.3.
|
|
41
|
+
"@rokkit/actions": "1.3.1",
|
|
42
|
+
"@rokkit/core": "1.3.1",
|
|
43
|
+
"@rokkit/states": "1.3.1",
|
|
44
|
+
"@rokkit/ui": "1.3.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"svelte": "^5.0.0"
|
|
@@ -17,7 +17,7 @@ export function resolveMode(mode: ColorMode): ResolvedMode {
|
|
|
17
17
|
if (typeof window !== 'undefined') {
|
|
18
18
|
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
|
|
19
19
|
}
|
|
20
|
-
return 'dark'
|
|
20
|
+
return 'dark' // SSR: no window
|
|
21
21
|
}
|
|
22
22
|
return mode
|
|
23
23
|
}
|
|
@@ -80,6 +80,7 @@ export class ColorModeManager {
|
|
|
80
80
|
* Call in onMount or $effect.root.
|
|
81
81
|
*/
|
|
82
82
|
listen(): () => void {
|
|
83
|
+
/* v8 ignore next -- SSR path: window is undefined in Node/server environments */
|
|
83
84
|
if (typeof window === 'undefined') return () => {}
|
|
84
85
|
|
|
85
86
|
const mq = window.matchMedia('(prefers-color-scheme: dark)')
|