@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/elements-web-component.esm.js +27 -27
- package/elements-web-component.esm.js.map +4 -4
- package/elements.cjs.js +18 -18
- package/elements.cjs.js.map +4 -4
- package/elements.esm.js +18 -18
- package/elements.esm.js.map +4 -4
- package/elements.js +19 -19
- package/elements.js.map +4 -4
- package/index.d.ts +47 -26
- package/index.mjs +554 -524
- package/package.json +1 -1
- package/schema.d.ts +1 -1
- package/web-component.d.ts +11 -5
- package/web-component.mjs +335 -333
package/package.json
CHANGED
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-
|
|
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
|
/**
|
package/web-component.d.ts
CHANGED
|
@@ -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-
|
|
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
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
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
|
|