@helpai/elements 6.14.0 → 7.0.0
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/docs/frameworks.md +7 -3
- package/docs/installation.md +10 -10
- package/elements-web-component.esm.js +32 -32
- package/elements-web-component.esm.js.map +3 -3
- package/elements.cjs.js +33 -33
- package/elements.cjs.js.map +4 -4
- package/elements.esm.js +33 -33
- package/elements.esm.js.map +4 -4
- package/elements.js +33 -33
- package/elements.js.map +4 -4
- package/index.d.ts +7 -7
- package/index.mjs +21 -21
- package/llms-full.txt +157 -153
- package/llms.txt +19 -19
- package/package.json +2 -1
- package/react-BBw_sT1s.mjs +3 -0
- package/react-Dpi-Oi92.mjs +73 -0
- package/react.d.ts +45 -18
- package/react.mjs +1 -71
- package/style.css +1 -1
- package/web-component.mjs +21 -21
package/index.d.ts
CHANGED
|
@@ -3243,6 +3243,13 @@ interface AskOptions {
|
|
|
3243
3243
|
}
|
|
3244
3244
|
/** Flat data about a host event: strings, numbers and booleans only. */
|
|
3245
3245
|
type HostEventData = Record<string, string | number | boolean>;
|
|
3246
|
+
/**
|
|
3247
|
+
* Look up a live instance by `widgetId` (default: `"default"`). Returns
|
|
3248
|
+
* `null` if nothing is mounted at that slot.
|
|
3249
|
+
*/
|
|
3250
|
+
export declare function getInstance(widgetId?: string): ChatWidgetInstance | null;
|
|
3251
|
+
/** All live widget instances on the page. */
|
|
3252
|
+
export declare function getAllInstances(): ChatWidgetInstance[];
|
|
3246
3253
|
/**
|
|
3247
3254
|
* Comprehensive logger for the widget runtime.
|
|
3248
3255
|
*
|
|
@@ -3469,13 +3476,6 @@ export declare function init(opts: ChatWidgetOptions & {
|
|
|
3469
3476
|
* every live widget on the page.
|
|
3470
3477
|
*/
|
|
3471
3478
|
export declare function destroy(widgetId?: string): void;
|
|
3472
|
-
/**
|
|
3473
|
-
* Look up a live instance by `widgetId` (default: `"default"`). Returns
|
|
3474
|
-
* `null` if nothing is mounted at that slot.
|
|
3475
|
-
*/
|
|
3476
|
-
export declare function getInstance(widgetId?: string): ChatWidgetInstance | null;
|
|
3477
|
-
/** All live widget instances on the page. */
|
|
3478
|
-
export declare function getAllInstances(): ChatWidgetInstance[];
|
|
3479
3479
|
/** Semver of the published `@<brand>/elements` package — build-injected, also
|
|
3480
3480
|
* sent on every request + analytics hit as `_ev`. */
|
|
3481
3481
|
export declare const version: string;
|