@helpai/elements 0.59.2 → 0.59.4

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
@@ -134,16 +134,13 @@ var behaviorSchema = z4.object({
134
134
  showSources: z4.boolean().default(false).describe(
135
135
  "Show the citation sources behind an answer (web links + document/file references) in the transcript. `false` (default) hides them."
136
136
  ),
137
- scrollFade: z4.boolean().default(true).describe(
138
- "Fade the message list at its scroll edges with a soft gradient mask (the fade lifts at the very top/bottom). `true` (default) enables it; `false` shows hard edges."
139
- ),
140
- enableMessageFeedback: z4.boolean().default(true).describe(
141
- "Show \u{1F44D}/\u{1F44E} feedback controls under each assistant reply. `true` (default) shows them. A choice fires the `messageFeedback` event and is POSTed best-effort to `/pai/message-feedback`."
137
+ disableMessageFeedback: z4.boolean().default(false).describe(
138
+ "Turn OFF the \u{1F44D}/\u{1F44E} feedback controls under each assistant reply. Unset/`false` = shown (default), `true` = hidden. A choice fires the `messageFeedback` event and is POSTed best-effort to `/pai/message-feedback`."
142
139
  )
143
140
  }).loose().describe("Conversation behaviour \u2014 lifecycle, streaming, and the transcript surface (scroll, feedback).").meta({
144
141
  examples: [
145
142
  { startMinimized: true, responseMode: "streaming" },
146
- { startMinimized: false, responseMode: "buffered", scrollFade: false, enableMessageFeedback: false }
143
+ { startMinimized: false, responseMode: "buffered", disableMessageFeedback: true }
147
144
  ]
148
145
  });
149
146
 
@@ -227,21 +224,23 @@ var toolRefSchema = z7.union([
227
224
  }).loose()
228
225
  ]);
229
226
  var featureFlagsSchema = z7.object({
230
- files: z7.boolean().default(true).describe("Show the paperclip button + accept drag/drop/paste for file attachments."),
227
+ disableFileUpload: z7.boolean().default(false).describe(
228
+ "Turn OFF file uploads \u2014 hide the paperclip button + reject drag/drop/paste. Unset/`false` = enabled (default), `true` = disabled."
229
+ ),
231
230
  voice: voiceModeSchema.default("local").describe(
232
231
  "Voice input mode. `local` \u2014 Web Speech API in the browser (free, runs on-device). `server` \u2014 record audio + upload to the transcribe endpoint. `disabled` \u2014 hide the mic button."
233
232
  ),
234
233
  tools: z7.array(toolRefSchema).max(200).optional().describe(
235
234
  "Backend tools the assistant may invoke. Bare codes (`'tool:send-money'`) or rich refs (`{ code, config }`)."
236
235
  ),
237
- humanInLoop: z7.boolean().default(true).describe(
238
- "Render human-in-the-loop tool UI \u2014 the inline ask-questions form + approve/reject controls for gated tools. `true` (default) shows them; `false` suppresses the UI (the wire still carries the signals)."
236
+ disableHumanInLoop: z7.boolean().default(false).describe(
237
+ "Turn OFF the human-in-the-loop tool UI \u2014 the inline ask-questions form + approve/reject controls for gated tools. Unset/`false` = shown (default), `true` = suppressed (the wire still carries the signals)."
239
238
  )
240
239
  }).loose().describe("Capability flags \u2014 file upload, voice mode, and the tools the assistant may invoke.").meta({
241
240
  examples: [
242
- { files: true, voice: "local" },
243
- { files: false, voice: "disabled" },
244
- { files: true, voice: "server", tools: ["tool:send-money"] }
241
+ { voice: "local" },
242
+ { disableFileUpload: true, voice: "disabled" },
243
+ { voice: "server", tools: ["tool:send-money"] }
245
244
  ]
246
245
  });
247
246
 
@@ -554,7 +553,7 @@ var moduleSchema = z14.object({
554
553
  ),
555
554
  // ── `home` layout config (flat feature flags — no block authoring) ──────
556
555
  brandName: z14.string().max(80).optional().describe("`home` \u2014 hero wordmark (e.g. your company name)."),
557
- showGreeting: z14.boolean().optional().describe("`home` \u2014 show the greeting hero (default true)."),
556
+ hideGreeting: z14.boolean().optional().describe("`home` \u2014 hide the greeting hero. Unset/`false` = shown (default), `true` = hidden."),
558
557
  greetingText: z14.string().max(280).optional().describe("`home` \u2014 override the greeting headline (default 'How can we help?'); supports a `{name}` token."),
559
558
  userAvatars: z14.array(
560
559
  z14.object({
@@ -563,8 +562,10 @@ var moduleSchema = z14.object({
563
562
  role: z14.string().max(80).optional()
564
563
  }).loose()
565
564
  ).max(10).optional().describe("`home` \u2014 team/agent avatars shown in the hero."),
566
- showSearchBar: z14.boolean().optional().describe("`home` \u2014 show the 'Search for help' bar (default true)."),
567
- showRecentConversations: z14.boolean().optional().describe("`home` \u2014 show the visitor's most recent conversation card (default true)."),
565
+ hideSearchBar: z14.boolean().optional().describe("`home` \u2014 hide the 'Search for help' bar. Unset/`false` = shown (default), `true` = hidden."),
566
+ hideRecentConversations: z14.boolean().optional().describe(
567
+ "`home` \u2014 hide the visitor's most recent conversation card. Unset/`false` = shown (default), `true` = hidden."
568
+ ),
568
569
  status: z14.object({
569
570
  text: z14.string().min(1).max(120).optional().describe(
570
571
  "`home` \u2014 status line; an i18n key or a literal (resolved via `localizeText`). Omit to use the built-in generic `homeStatus` string (localized, no custom key needed)."
@@ -586,8 +587,6 @@ var modulesSchema = z14.array(moduleSchema).max(4).describe(
586
587
  label: "tabHome",
587
588
  layout: "home",
588
589
  brandName: "Acme",
589
- showSearchBar: true,
590
- showRecentConversations: true,
591
590
  contentBlockTitle: "Popular articles",
592
591
  contentTags: ["popular"]
593
592
  },
@@ -733,7 +732,7 @@ var widgetSettingsSchema = z16.object({
733
732
  {
734
733
  presentation: { mode: "inline" },
735
734
  behavior: { responseMode: "streaming" },
736
- features: { files: true, voice: "local" }
735
+ features: { voice: "local" }
737
736
  }
738
737
  ]
739
738
  });