@helpai/elements 1.12.6 → 1.12.8

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/index.d.ts CHANGED
@@ -258,8 +258,9 @@ interface FeedbackOptions {
258
258
  * interfaces are what the resolver, controller, and form UI consume.
259
259
  *
260
260
  * A deployment declares an array of {@link FormDef}s; each is bound to trigger
261
- * event(s) and shown as a gate that replaces the composer (locking the chat
262
- * until submit/skip). Its answers are recorded via one shared submit endpoint.
261
+ * event(s) and shown as the last conversation row; a `blocking` one also locks
262
+ * the message box until submit/skip. Its answers are recorded via one shared
263
+ * submit endpoint.
263
264
  * Generic across verticals — there is NO industry logic; a clinic intake, an
264
265
  * insurance claim form, a CSAT survey, and a sales signal capture are all just
265
266
  * different config.
@@ -348,6 +349,8 @@ interface FormDef {
348
349
  description?: string;
349
350
  submitLabel?: string;
350
351
  skippable?: boolean;
352
+ /** Lock the message box until the visitor submits or skips. Default `false`. */
353
+ blocking?: boolean;
351
354
  /** Default `once`. */
352
355
  frequency?: FormFrequency;
353
356
  /**
@@ -424,6 +427,8 @@ interface ResolvedForm {
424
427
  description?: string;
425
428
  submitLabel?: string;
426
429
  skippable: boolean;
430
+ /** Locks the message box until submit/skip (false → the visitor keeps chatting). */
431
+ blocking: boolean;
427
432
  frequency: FormFrequency;
428
433
  /** Mirror answers into `userContext` (false → PII, endpoint only). */
429
434
  mirrorToContext: boolean;
@@ -1459,6 +1464,7 @@ declare const widgetSettingsSchema: z.ZodObject<{
1459
1464
  description: z.ZodOptional<z.ZodString>;
1460
1465
  submitLabel: z.ZodOptional<z.ZodString>;
1461
1466
  skippable: z.ZodDefault<z.ZodBoolean>;
1467
+ blocking: z.ZodDefault<z.ZodBoolean>;
1462
1468
  frequency: z.ZodDefault<z.ZodEnum<{
1463
1469
  always: "always";
1464
1470
  conversation: "conversation";
@@ -1801,6 +1807,7 @@ declare const widgetConfigSchema: z.ZodObject<{
1801
1807
  description: z.ZodOptional<z.ZodString>;
1802
1808
  submitLabel: z.ZodOptional<z.ZodString>;
1803
1809
  skippable: z.ZodDefault<z.ZodBoolean>;
1810
+ blocking: z.ZodDefault<z.ZodBoolean>;
1804
1811
  frequency: z.ZodDefault<z.ZodEnum<{
1805
1812
  always: "always";
1806
1813
  conversation: "conversation";
@@ -2144,6 +2151,7 @@ declare const widgetConfigPartialSchema: z.ZodObject<{
2144
2151
  description: z.ZodOptional<z.ZodString>;
2145
2152
  submitLabel: z.ZodOptional<z.ZodString>;
2146
2153
  skippable: z.ZodDefault<z.ZodBoolean>;
2154
+ blocking: z.ZodDefault<z.ZodBoolean>;
2147
2155
  frequency: z.ZodDefault<z.ZodEnum<{
2148
2156
  always: "always";
2149
2157
  conversation: "conversation";
@@ -2449,6 +2457,7 @@ declare const widgetSettingsPartialSchema: z.ZodObject<{
2449
2457
  description: z.ZodOptional<z.ZodString>;
2450
2458
  submitLabel: z.ZodOptional<z.ZodString>;
2451
2459
  skippable: z.ZodDefault<z.ZodBoolean>;
2460
+ blocking: z.ZodDefault<z.ZodBoolean>;
2452
2461
  frequency: z.ZodDefault<z.ZodEnum<{
2453
2462
  always: "always";
2454
2463
  conversation: "conversation";