@glasshome/widget-sdk 1.13.0 → 1.14.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/dist/framework/dialogs/WidgetDialog.d.ts +15 -2
- package/dist/index.js +441 -422
- package/dist/ui.d.ts +1 -1
- package/dist/vite/index.js +6 -5
- package/package.json +3 -3
package/dist/ui.d.ts
CHANGED
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* `@glasshome/ui/solid` is a vite external of this package: these re-exports
|
|
15
15
|
* resolve to the host-provided singleton at runtime, never a bundled copy.
|
|
16
16
|
*/
|
|
17
|
-
export { Badge, Button, Carousel, type CarouselApi, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious, type CarouselTransition, type Color, ColorSlider, ColorWheel, imageUrl, Input, Label, mediaUrl, parseColor, ResponsiveDialog, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogHeader, ResponsiveDialogTitle, SchemaForm, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Slider, Switch, } from "@glasshome/ui/solid";
|
|
17
|
+
export { Badge, Button, Carousel, type CarouselApi, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious, type CarouselTransition, type Color, ColorSlider, ColorWheel, imageUrl, Input, Label, mediaUrl, parseColor, ResponsiveDialog, ResponsiveDialogBody, ResponsiveDialogClose, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHeader, ResponsiveDialogTitle, SchemaForm, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Slider, Switch, Tabs, TabsContent, TabsList, TabsTrigger, } from "@glasshome/ui/solid";
|
package/dist/vite/index.js
CHANGED
|
@@ -247,9 +247,9 @@ async function j(e) {
|
|
|
247
247
|
let i = n.jsonSchema;
|
|
248
248
|
if (!i) return;
|
|
249
249
|
e.manifestPath && o(e.manifestPath) && A(e.manifestPath, n, i);
|
|
250
|
-
let a = T(i), s = n.manifest?.configVersion ?? null, l = n.manifest?.name ?? e.widgetName;
|
|
251
|
-
if (
|
|
252
|
-
let t =
|
|
250
|
+
let a = T(i), s = n.manifest?.configVersion ?? null, l = n.manifest?.name ?? e.widgetName, u = o(e.hashFile) ? c(e.hashFile, "utf-8") : null;
|
|
251
|
+
if (u !== null) {
|
|
252
|
+
let t = u.trim(), n = null;
|
|
253
253
|
if (t.startsWith("{")) try {
|
|
254
254
|
n = JSON.parse(t);
|
|
255
255
|
} catch {
|
|
@@ -259,10 +259,11 @@ async function j(e) {
|
|
|
259
259
|
if (n.hash !== a && n.configVersion === s) throw Error(`[widget-sdk] Config schema shape changed for "${l}" without a configVersion bump. Bump configVersion in defineWidget (currently ${s ?? "unset"}) or revert the schema change, then rebuild. Recorded in ${e.hashFile}`);
|
|
260
260
|
} else t !== a && console.warn(`[widget-sdk] Schema shape changed for "${l}" — verify configVersion was bumped`);
|
|
261
261
|
}
|
|
262
|
-
|
|
262
|
+
let d = `${JSON.stringify({
|
|
263
263
|
hash: a,
|
|
264
264
|
configVersion: s
|
|
265
|
-
})}\n
|
|
265
|
+
})}\n`;
|
|
266
|
+
d !== u && f(e.hashFile, d);
|
|
266
267
|
}
|
|
267
268
|
var ae = "virtual:glasshome-widget", M = "\0virtual:glasshome-widget", N = "/@glasshome/preview";
|
|
268
269
|
function P(e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glasshome/widget-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"description": "SDK for building GlassHome dashboard widgets with SolidJS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"glasshome",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@glasshome/sync-layer": "0.8.0",
|
|
63
|
-
"@glasshome/ui": "1.
|
|
63
|
+
"@glasshome/ui": "1.7.0",
|
|
64
64
|
"solid-js": "^1.9.11"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"zod": "^4.1.13"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@glasshome/ui": "1.
|
|
78
|
+
"@glasshome/ui": "1.7.0",
|
|
79
79
|
"@solidjs/testing-library": "^0.8.10",
|
|
80
80
|
"@types/bun": "latest",
|
|
81
81
|
"@types/node": "^25.2.2",
|