@glasshome/widget-sdk 1.22.1 → 1.22.2

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/schemas.js CHANGED
@@ -1,2 +1 @@
1
- import { GridSizeSchema as e, PublishBodySchema as t, PublishConfirmSchema as n, PublishRequestSchema as r, capabilitiesSchema as i, capabilityGrantSchema as a, formatSchemaError as o, parseGridSize as s, publishManifestSchema as c, serializeGridSize as l, widgetManifestSchema as u, widgetManifestSchema as d } from "@glasshome/widget-contract";
2
- export { e as GridSizeSchema, t as PublishBodySchema, n as PublishConfirmSchema, r as PublishRequestSchema, d as WidgetManifestSchema, i as capabilitiesSchema, a as capabilityGrantSchema, o as formatSchemaError, s as parseGridSize, c as publishManifestSchema, l as serializeGridSize, u as widgetManifestSchema };
1
+ export { GridSizeSchema, PublishBodySchema, PublishConfirmSchema, PublishRequestSchema, widgetManifestSchema as WidgetManifestSchema, capabilitiesSchema, capabilityGrantSchema, formatSchemaError, parseGridSize, publishManifestSchema, serializeGridSize, widgetManifestSchema } from "@glasshome/widget-contract";
@@ -253,15 +253,10 @@ var ue = /import\s*(\{[^}]*\}|\*\s*as\s+[\w$]+)\s*from\s*["']@glasshome\/widget-
253
253
  function k(e) {
254
254
  let t = /* @__PURE__ */ new Set();
255
255
  de.test(e) && t.add("*");
256
- for (let [, n = ""] of e.matchAll(ue)) {
257
- if (!n.startsWith("{")) {
258
- t.add("*");
259
- continue;
260
- }
261
- for (let e of n.slice(1, -1).split(",")) {
262
- let n = e.trim().split(/\s+as\s+/)[0];
263
- n && t.add(n);
264
- }
256
+ for (let [, n = ""] of e.matchAll(ue)) if (!n.startsWith("{")) t.add("*");
257
+ else for (let e of n.slice(1, -1).split(",")) {
258
+ let n = e.trim().split(/\s+as\s+/)[0];
259
+ n && t.add(n);
265
260
  }
266
261
  return t;
267
262
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glasshome/widget-sdk",
3
- "version": "1.22.1",
3
+ "version": "1.22.2",
4
4
  "description": "SDK for building GlassHome dashboard widgets with SolidJS",
5
5
  "keywords": [
6
6
  "dashboard",
@@ -85,7 +85,7 @@
85
85
  "zod": "^4.1.13"
86
86
  },
87
87
  "devDependencies": {
88
- "@glasshome/ui": "1.28.0",
88
+ "@glasshome/ui": "1.30.0",
89
89
  "@solidjs/testing-library": "^0.8.10",
90
90
  "@types/bun": "^1.4.0",
91
91
  "@types/node": "^25.2.2",
@@ -100,7 +100,7 @@
100
100
  },
101
101
  "peerDependencies": {
102
102
  "@glasshome/sync-layer": "0.9.1",
103
- "@glasshome/ui": "1.28.0",
103
+ "@glasshome/ui": "1.30.0",
104
104
  "solid-js": "^1.9.11"
105
105
  },
106
106
  "engines": {
@@ -1,9 +0,0 @@
1
- export type CopyState = "idle" | "copied" | "failed";
2
- /** Dashboards are reached over plain http on the LAN, where navigator.clipboard
3
- * does not exist; the selection path is the only copy those installs have. */
4
- export declare function copyText(text: string): Promise<boolean>;
5
- /** Copy plus the state a control needs to say what happened. */
6
- export declare function useCopyText(resetAfterMs?: number): {
7
- state: import("solid-js").Accessor<CopyState>;
8
- copy: (text: string) => Promise<void>;
9
- };