@phreshos/server 0.1.7 → 0.1.9
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/README.md +3 -3
- package/dist/theme.d.ts +1 -0
- package/dist/theme.js +5 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -77,9 +77,9 @@ lifetime. Each Client permanently owns one synchronous `window` capability,
|
|
|
77
77
|
whose operations address that Client's current live presentation state.
|
|
78
78
|
|
|
79
79
|
Local representation and Surface presentation are deliberately absent from the
|
|
80
|
-
Server SDK.
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
Server SDK. Client-side Window handles expose them through `window.local`; a
|
|
81
|
+
Server may coordinate Program state, but it neither owns nor controls the
|
|
82
|
+
resulting desktop material.
|
|
83
83
|
|
|
84
84
|
The package provides two contextual runtime entry points:
|
|
85
85
|
|
package/dist/theme.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export default class ServerTheme extends Events {
|
|
|
10
10
|
spacing: number;
|
|
11
11
|
radius: number;
|
|
12
12
|
glass: import("@phreshos/core").ThemeGlass;
|
|
13
|
+
surface: import("@phreshos/core").ThemeSurface;
|
|
13
14
|
}>>;
|
|
14
15
|
readonly update: (theme: ThemeProperties) => Promise<void>;
|
|
15
16
|
}
|
package/dist/theme.js
CHANGED
|
@@ -26,7 +26,11 @@ function isObject(value) {
|
|
|
26
26
|
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
27
27
|
return false;
|
|
28
28
|
const theme = value;
|
|
29
|
+
const surface = theme.surface;
|
|
29
30
|
return typeof theme.background === "string" && typeof theme.foreground === "string" && typeof theme.accent === "string"
|
|
30
31
|
&& typeof theme.spacing === "number" && typeof theme.radius === "number"
|
|
31
|
-
&& typeof theme.glass === "object" && theme.glass !== null
|
|
32
|
+
&& typeof theme.glass === "object" && theme.glass !== null
|
|
33
|
+
&& typeof surface === "object" && surface !== null
|
|
34
|
+
&& typeof surface.grain === "number" && typeof surface.animation === "number"
|
|
35
|
+
&& typeof surface.backdrop === "number" && typeof surface.opacity === "number";
|
|
32
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phreshos/server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "The SDK used by a Program's server endpoint.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"prepack": "node --run build"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@phreshos/core": "^0.1.
|
|
49
|
+
"@phreshos/core": "^0.1.7"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@msgpack/msgpack": "^3.1.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@phreshos/core": "^0.1.
|
|
55
|
+
"@phreshos/core": "^0.1.7",
|
|
56
56
|
"@types/node": "^26.2.0",
|
|
57
57
|
"typescript": "^6.0.3"
|
|
58
58
|
}
|