@helpai/elements 0.14.0 → 0.14.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/configurator.mjs CHANGED
@@ -439,23 +439,21 @@ var formDefSchema = z13.object({
439
439
  title: z13.string().max(120).optional(),
440
440
  description: z13.string().max(500).optional(),
441
441
  submitLabel: z13.string().max(60).optional(),
442
- skippable: z13.boolean().default(false).describe("Show a Skip control."),
443
- blocking: z13.boolean().default(false).describe("Gate the composer (honored only for `pre-chat` / `after-messages`); otherwise renders inline."),
442
+ skippable: z13.boolean().default(false).describe("Show a Skip control so the visitor can dismiss the form."),
444
443
  frequency: z13.enum(["once", "session", "always"]).default("once").describe("`once` (persisted per-device), `session`, or `always`."),
445
444
  mirrorToContext: z13.boolean().default(true).describe(
446
445
  "Mirror the answers into `userContext` so they ride every request. Set `false` for PII (DOB, policy #, symptoms) \u2014 those then go only to the submit endpoint."
447
446
  )
448
447
  }).loose();
449
448
  var formsSchema = z13.array(formDefSchema).max(20).describe(
450
- "Event-driven forms \u2014 an ordered list (order = priority). Each binds to trigger event(s), shows blocking or inline, dedupes by frequency, and records via `endpoints.forms`. Generic across verticals."
449
+ "Event-driven forms \u2014 an ordered list (order = priority). Each binds to trigger event(s), gates the chat until submit/skip, dedupes by frequency, and records via `endpoints.submitForm`. Generic across verticals."
451
450
  ).meta({
452
451
  examples: [
453
- [{ id: "intake", on: "pre-chat", blocking: true, fields: [{ name: "email", label: "Email", type: "email" }] }],
452
+ [{ id: "intake", on: "pre-chat", fields: [{ name: "email", label: "Email", type: "email" }] }],
454
453
  [
455
454
  {
456
455
  id: "lead",
457
456
  on: "pre-chat",
458
- blocking: true,
459
457
  title: "Before we start",
460
458
  fields: [
461
459
  { name: "name", label: "Your name", type: "text" },