@glasshome/widget-cli 0.8.2 → 0.8.3

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": "@glasshome/widget-cli",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "CLI for creating and managing GlassHome widgets",
5
5
  "type": "module",
6
6
  "bin": {
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@clack/prompts": "^1.6.0",
24
- "@glasshome/widget-contract": "0.1.1",
25
- "@glasshome/widget-sdk": "1.5.0",
24
+ "@glasshome/widget-contract": "0.2.0",
25
+ "@glasshome/widget-sdk": "1.6.0",
26
26
  "open": "^11.0.0",
27
27
  "picocolors": "^1.1.1",
28
28
  "semver": "^7.6.0",
@@ -14,7 +14,9 @@ export async function runBuild(cwd: string): Promise<void> {
14
14
  buildWidgets({
15
15
  srcDir: "src",
16
16
  outDir: "dist",
17
- plugins: [solid()],
17
+ // delegateEvents: false, widgets run in closed shadow roots where Solid's
18
+ // document-level event delegation cannot see the target. Must match connect.ts.
19
+ plugins: [solid({ solid: { delegateEvents: false } })],
18
20
  }),
19
21
  );
20
22
  s.stop("Build complete");
@@ -3,5 +3,8 @@ import solid from "vite-plugin-solid";
3
3
  import { glasshomeWidgets } from "@glasshome/widget-sdk/vite";
4
4
 
5
5
  export default defineConfig({
6
- plugins: [solid(), ...glasshomeWidgets()],
6
+ // delegateEvents: false — widgets render inside closed shadow roots where Solid's
7
+ // document-level event delegation never sees the target, so onClick/onInput handlers
8
+ // silently do nothing once published. Direct listeners work everywhere.
9
+ plugins: [solid({ solid: { delegateEvents: false } }), ...glasshomeWidgets()],
7
10
  });