@helpai/elements 0.30.0 → 0.30.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/package.json CHANGED
@@ -80,5 +80,5 @@
80
80
  ],
81
81
  "type": "module",
82
82
  "types": "./index.d.ts",
83
- "version": "0.30.0"
83
+ "version": "0.30.1"
84
84
  }
package/schema.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as Asset, B as BlocksConfig, C as ConnectionConfig, a as ConnectionConfigPartial, E as Endpoints, H as HandshakeResponse, L as Link, P as PAGE_AREA_SUGGESTIONS, f as PageContext, S as ServerConfig, b as SiteConfig, U as UserContext, W as WidgetConfig, c as WidgetConfigPartial, d as WidgetSettings, e as WidgetSettingsPartial, g as assetSchema, h as blocksConfigSchema, i as connectionConfigPartialSchema, j as connectionConfigSchema, k as cssColorSchema, l as cssLengthSchema, m as endpointsSchema, n as handshakeResponseSchema, o as linkSchema, p as localeSchema, q as pageContextSchema, s as serverConfigSchema, r as siteConfigSchema, u as userContextSchema, t as uuid7Schema, w as widgetConfigPartialSchema, v as widgetConfigSchema, x as widgetSettingsPartialSchema, y as widgetSettingsSchema } from './deployment-E-Jyc0nF.js';
1
+ export { A as Asset, B as BlocksConfig, C as ConnectionConfig, a as ConnectionConfigPartial, E as Endpoints, H as HandshakeResponse, L as Link, P as PAGE_AREA_SUGGESTIONS, f as PageContext, S as ServerConfig, b as SiteConfig, U as UserContext, W as WidgetConfig, c as WidgetConfigPartial, d as WidgetSettings, e as WidgetSettingsPartial, g as assetSchema, h as blocksConfigSchema, i as connectionConfigPartialSchema, j as connectionConfigSchema, k as cssColorSchema, l as cssLengthSchema, m as endpointsSchema, n as handshakeResponseSchema, o as linkSchema, p as localeSchema, q as pageContextSchema, s as serverConfigSchema, r as siteConfigSchema, u as userContextSchema, t as uuid7Schema, w as widgetConfigPartialSchema, v as widgetConfigSchema, x as widgetSettingsPartialSchema, y as widgetSettingsSchema } from './deployment-rva7dkso.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  /**
@@ -3,16 +3,22 @@
3
3
  *
4
4
  * Attributes mirror {@link ChatWidgetOptions} (kebab-cased: `public-key`,
5
5
  * `ai-agent-deployment-id`, `mode`, `theme`, `base-url`, …). Reactive
6
- * attributes trigger a re-mount when they change at runtime — see
6
+ * attributes trigger a re-resolve when they change at runtime — see
7
7
  * {@link REACTIVE_ATTRS}.
8
8
  *
9
9
  * Mode resolution: the tag itself doesn't pin a default mode. When no
10
10
  * `mode=…` attribute is set, the resolver default (`"floating"`) seeds
11
11
  * the very first frame — which the App's handshake gate keeps blank
12
- * — then the server's pushed `widget.presentation.mode` wins via
13
- * `mergeServerConfig` (subscribed in `boot()` below). Drop a bare
14
- * `<web-ai-chat public-key="…" ai-agent-deployment-id="…">` on the
15
- * page and the deployment's dashboard config drives the layout.
12
+ * — then the server's pushed `widget.presentation.mode` wins via the
13
+ * shared runtime's handshake merge. Drop a bare `<web-ai-chat
14
+ * public-key="…" ai-agent-deployment-id="…">` on the page and the
15
+ * deployment's dashboard config drives the layout.
16
+ *
17
+ * Everything between `<App>` and the shadow host — the ErrorBoundary, the
18
+ * handshake-config merge, the usage tracker, host-attribute application — lives
19
+ * in the shared {@link createWidgetRuntime} that `mount()` (`src/index.ts`) also
20
+ * uses, so the two boot paths can't drift. This file owns only what's specific
21
+ * to the custom element: attribute parsing and the connect/disconnect lifecycle.
16
22
  */
17
23
  declare function registerWebComponent(): void;
18
24