@helpai/elements 0.59.3 → 0.59.5

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
137
  disableMessageFeedback: z4.boolean().default(false).describe(
141
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, disableMessageFeedback: true }
143
+ { startMinimized: false, responseMode: "buffered", disableMessageFeedback: true }
147
144
  ]
148
145
  });
149
146
 
@@ -227,7 +224,9 @@ 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
  ),
@@ -239,9 +238,9 @@ var featureFlagsSchema = z7.object({
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
 
@@ -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
  });