@helpai/elements 1.12.1 → 1.12.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/configurator.mjs +1 -1
- package/docs/api-reference.md +2 -2
- package/elements-web-component.esm.js +18 -18
- package/elements-web-component.esm.js.map +3 -3
- package/elements.cjs.js +20 -20
- package/elements.cjs.js.map +3 -3
- package/elements.esm.js +20 -20
- package/elements.esm.js.map +3 -3
- package/elements.js +20 -20
- package/elements.js.map +3 -3
- package/index.d.ts +20 -0
- package/index.mjs +4 -4
- package/llms-full.txt +144 -144
- package/llms.txt +19 -19
- package/package.json +1 -1
- package/react.d.ts +20 -0
- package/react.mjs +8 -8
- package/schema.d.ts +8 -0
- package/schema.json +13 -2
- package/schema.mjs +1 -1
- package/style.css +1 -1
- package/web-component.d.ts +13 -0
- package/web-component.mjs +4 -4
package/index.d.ts
CHANGED
|
@@ -711,6 +711,14 @@ interface BehaviorOptions {
|
|
|
711
711
|
interface HeaderOptions {
|
|
712
712
|
actions?: ActionList;
|
|
713
713
|
}
|
|
714
|
+
/**
|
|
715
|
+
* Section: Keep conversations — the deployment's history switch, pushed on the
|
|
716
|
+
* handshake as `config.history`.
|
|
717
|
+
*/
|
|
718
|
+
interface HistoryOptions {
|
|
719
|
+
/** `false` hides the history button and never lists past conversations. Default `true`. */
|
|
720
|
+
enabled?: boolean;
|
|
721
|
+
}
|
|
714
722
|
/**
|
|
715
723
|
* Section: locale resolution + per-instance string overrides.
|
|
716
724
|
*
|
|
@@ -1000,6 +1008,8 @@ interface ChatWidgetOptions {
|
|
|
1000
1008
|
modules?: ModulesOptions;
|
|
1001
1009
|
/** Anonymous owner-facing usage tracking (pixel hits). Server-pushable. */
|
|
1002
1010
|
tracking?: TrackingOptions;
|
|
1011
|
+
/** Keep conversations. Server-pushed from the deployment's setting. */
|
|
1012
|
+
history?: HistoryOptions;
|
|
1003
1013
|
/**
|
|
1004
1014
|
* Custom client-side storage adapter. Implements the {@link ClientStorage}
|
|
1005
1015
|
* interface (`get` / `set` / `remove` / `clear`).
|
|
@@ -1127,6 +1137,8 @@ interface ResolvedOptions {
|
|
|
1127
1137
|
modules: ResolvedModules;
|
|
1128
1138
|
/** Resolved anonymous usage tracking. */
|
|
1129
1139
|
tracking: ResolvedTracking;
|
|
1140
|
+
/** Keep conversations. Off: no history button and no conversation list requests. */
|
|
1141
|
+
history: Required<HistoryOptions>;
|
|
1130
1142
|
/** Resolved storage adapter — defaults to `LocalStorageAdapter`. */
|
|
1131
1143
|
storage: ClientStorage;
|
|
1132
1144
|
userToken?: UserTokenSource;
|
|
@@ -2554,6 +2566,8 @@ type ConnectionConfigPartial = z.infer<typeof connectionConfigPartialSchema>;
|
|
|
2554
2566
|
* embed attribute / `init` option). Bumping it folds a `.v<version>` segment
|
|
2555
2567
|
* into every client-storage key on the next load, abandoning the prior
|
|
2556
2568
|
* namespace for all visitors.
|
|
2569
|
+
* - `history` is pushable — the deployment's Keep conversations setting, which the
|
|
2570
|
+
* dashboard edits outside the widget settings.
|
|
2557
2571
|
*/
|
|
2558
2572
|
declare const serverConfigSchema: z.ZodObject<{
|
|
2559
2573
|
presentation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -2781,6 +2795,9 @@ declare const serverConfigSchema: z.ZodObject<{
|
|
|
2781
2795
|
}, z.core.$loose>>>;
|
|
2782
2796
|
dataApiBaseUrl: z.ZodOptional<z.ZodString>;
|
|
2783
2797
|
storageVersion: z.ZodOptional<z.ZodString>;
|
|
2798
|
+
history: z.ZodOptional<z.ZodObject<{
|
|
2799
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2800
|
+
}, z.core.$loose>>;
|
|
2784
2801
|
}, z.core.$loose>;
|
|
2785
2802
|
type ServerConfig = z.infer<typeof serverConfigSchema>;
|
|
2786
2803
|
/**
|
|
@@ -3076,6 +3093,9 @@ declare const handshakeResponseSchema: z.ZodObject<{
|
|
|
3076
3093
|
}, z.core.$loose>>>;
|
|
3077
3094
|
dataApiBaseUrl: z.ZodOptional<z.ZodString>;
|
|
3078
3095
|
storageVersion: z.ZodOptional<z.ZodString>;
|
|
3096
|
+
history: z.ZodOptional<z.ZodObject<{
|
|
3097
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3098
|
+
}, z.core.$loose>>;
|
|
3079
3099
|
}, z.core.$loose>>;
|
|
3080
3100
|
site: z.ZodOptional<z.ZodObject<{
|
|
3081
3101
|
title: z.ZodOptional<z.ZodString>;
|