@glasshome/widget-sdk 1.32.4 → 1.33.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/guide/widgets.md CHANGED
@@ -47,7 +47,7 @@ Parts inside `Widget.Content`; they lay out and resize themselves. Never measure
47
47
 
48
48
  ## Sheet
49
49
 
50
- Render `<WidgetDialog>` next to `<Widget>`, spreading the dialog parts (`ResponsiveDialog*`, `Button`, `SchemaForm`, `Tabs*`, see the scaffold) and `useWidgetDialog().dialogProps`. Hold opens the sheet on its own once `sheet` is passed; no gesture wiring. Only what the tile lacks (group members, colours, modes, forecast). Pass `sheet` only when there is something: `{...(extras() ? { sheet: () => <MySheet /> } : {})}`. Build from `PanelSection`, `PanelRows`, `PanelRow`, `PanelEntityRow`, `PanelFacts`, `ToggleGroup`, `SwatchPicker`, `TemperatureBar`, `ColorDisc`. Never repeat the tile's value, name or art. Widget CSS does not reach it.
50
+ Render `<WidgetDialog>` next to `<Widget>`, spreading the dialog parts (`ResponsiveDialog*`, `Button`, `SchemaForm`, `Tabs*`, see the scaffold) and `useWidgetDialog().dialogProps`. Hold opens the sheet on its own once `sheet` is passed; no gesture wiring. Only what the tile lacks (group members, colours, modes, forecast). Pass `sheet` only when there is something: `{...(extras() ? { sheet: () => <MySheet /> } : {})}`. Build from `PanelSection`, `PanelRows`, `PanelRow`, `PanelEntityRow`, `PanelFacts`, `ToggleGroup`, `SwatchPicker`, `TemperatureBar`, `ColorDisc`. Never repeat the tile's value, name or art. Widget CSS does not reach it. A recently held sheet stays mounted between opens, keeping its state and scroll: a ticker inside it pauses while `useSheetDormant()` is true.
51
51
 
52
52
  ## Primitives
53
53
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glasshome/widget-sdk",
3
- "version": "1.32.4",
3
+ "version": "1.33.1",
4
4
  "description": "SDK for building GlassHome dashboard widgets with SolidJS",
5
5
  "keywords": [
6
6
  "dashboard",
@@ -71,22 +71,24 @@
71
71
  "access": "public"
72
72
  },
73
73
  "scripts": {
74
- "build": "vite build && tsc -p tsconfig.build.json && bun scripts/check-host-singleton.ts && bun scripts/export-names.ts --emit",
74
+ "build": "vite build && tsc -p tsconfig.build.json && bun scripts/check-host-singleton.ts && bun scripts/emit-export-history.ts",
75
75
  "dev": "vite build --watch",
76
76
  "test": "bun test src scripts && vitest run",
77
77
  "test:dom": "vitest run",
78
78
  "test:dom:watch": "vitest",
79
79
  "typecheck:test": "tsc --noEmit",
80
+ "check:history": "bun scripts/check-export-history.ts",
80
81
  "check:dead": "fallow dead-code --fail-on-issues",
81
82
  "lint": "oxlint --type-aware . && oxfmt --check ."
82
83
  },
83
84
  "dependencies": {
84
- "@glasshome/widget-contract": "0.7.0",
85
+ "@glasshome/widget-contract": "0.8.0",
85
86
  "@tailwindcss/vite": "^4.1.13",
86
87
  "clsx": "^2.1.1",
87
88
  "happy-dom": "^20.0.0",
88
89
  "hls.js": "^1.6.15",
89
90
  "lightningcss": "^1.33.0",
91
+ "semver": "^7.7.0",
90
92
  "tailwind-merge": "^3.5.0",
91
93
  "tailwindcss": "^4.1.13",
92
94
  "zod": "^4.1.13"
@@ -96,6 +98,7 @@
96
98
  "@solidjs/testing-library": "^0.8.10",
97
99
  "@types/bun": "^1.4.0",
98
100
  "@types/node": "^25.2.2",
101
+ "@types/semver": "^7.7.0",
99
102
  "@vitest/browser-playwright": "4.1.11",
100
103
  "fallow": "3.17.0",
101
104
  "oxfmt": "0.65.0",