@phreshos/client 0.1.9 → 0.1.11
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/dist/theme.d.ts +1 -0
- package/dist/theme.js +5 -1
- package/package.json +3 -3
package/dist/theme.d.ts
CHANGED
package/dist/theme.js
CHANGED
|
@@ -23,7 +23,11 @@ function isObject(value) {
|
|
|
23
23
|
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
24
24
|
return false;
|
|
25
25
|
const theme = value;
|
|
26
|
+
const surface = theme.surface;
|
|
26
27
|
return typeof theme.background === "string" && typeof theme.foreground === "string" && typeof theme.accent === "string"
|
|
27
28
|
&& typeof theme.spacing === "number" && typeof theme.radius === "number"
|
|
28
|
-
&& typeof theme.glass === "object" && theme.glass !== null
|
|
29
|
+
&& typeof theme.glass === "object" && theme.glass !== null
|
|
30
|
+
&& typeof surface === "object" && surface !== null
|
|
31
|
+
&& typeof surface.grain === "number" && typeof surface.animation === "number"
|
|
32
|
+
&& typeof surface.backdrop === "number" && typeof surface.opacity === "number";
|
|
29
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phreshos/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "The SDK used by a Program's client 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
|
"typescript": "^6.0.3"
|
|
57
57
|
}
|
|
58
58
|
}
|