@helpai/elements 0.15.0 → 0.17.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/configurator.mjs CHANGED
@@ -251,10 +251,11 @@ var actionNameSchema = z8.enum([
251
251
  "history",
252
252
  "language",
253
253
  "theme",
254
+ "textSize",
254
255
  "close"
255
256
  ]);
256
- var headerActionsSchema = z8.array(actionNameSchema).max(9).describe(
257
- "Which actions the header exposes. `history` + `close` are dedicated buttons; the rest appear in the \u22EF menu. Unlisted actions are hidden; order is irrelevant. Pick from: `clear`, `expand`, `fullscreen`, `popOut`, `sound`, `history`, `language`, `theme`, `close`. Per-mode defaults live in `DEFAULT_ACTIONS_BY_MODE`."
257
+ var headerActionsSchema = z8.array(actionNameSchema).max(10).describe(
258
+ "Which actions the header exposes. `history` + `close` are dedicated buttons; the rest appear in the \u22EF menu. Unlisted actions are hidden; order is irrelevant. Pick from: `clear`, `expand`, `fullscreen`, `popOut`, `sound`, `history`, `language`, `theme`, `textSize`, `close`. Per-mode defaults live in `DEFAULT_ACTIONS_BY_MODE`."
258
259
  ).meta({
259
260
  examples: [
260
261
  ["theme", "history", "close", "clear", "fullscreen", "popOut", "sound", "language"],
@@ -774,6 +775,20 @@ var startConversationResponseSchema = z17.object({
774
775
  conversationId: z17.string(),
775
776
  canContinue: z17.boolean(),
776
777
  messages: z17.array(z17.unknown()),
778
+ /**
779
+ * Form submissions recorded for this conversation — echoed like
780
+ * `messages` so the widget reconstructs the collapsed "form submitted"
781
+ * timeline markers on resume. `createdAt` is ISO-8601 (a serialized
782
+ * Mongo ISODate — same format as message `createdAt`).
783
+ */
784
+ formSubmissions: z17.array(
785
+ z17.object({
786
+ formId: z17.string(),
787
+ trigger: z17.string(),
788
+ skipped: z17.boolean().optional(),
789
+ createdAt: z17.iso.datetime().optional()
790
+ }).loose()
791
+ ).optional(),
777
792
  /**
778
793
  * Per-visitor preferences (locale picker, theme picker, sound
779
794
  * mute, dragged panel size). Distinct from `config` — this is