@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 +17 -18
- package/elements-web-component.esm.js +28 -28
- package/elements-web-component.esm.js.map +3 -3
- package/elements.cjs.js +28 -28
- package/elements.cjs.js.map +3 -3
- package/elements.esm.js +28 -28
- package/elements.esm.js.map +3 -3
- package/elements.js +28 -28
- package/elements.js.map +3 -3
- package/index.d.ts +35 -21
- package/index.mjs +20 -38
- package/package.json +1 -1
- package/schema.d.ts +35 -36
- package/schema.json +40 -62
- package/schema.mjs +17 -18
- package/web-component.mjs +20 -38
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
|
-
|
|
138
|
-
"
|
|
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",
|
|
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
|
-
|
|
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
|
-
|
|
238
|
-
"
|
|
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
|
-
{
|
|
243
|
-
{
|
|
244
|
-
{
|
|
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
|
-
|
|
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
|
-
|
|
567
|
-
|
|
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: {
|
|
735
|
+
features: { voice: "local" }
|
|
737
736
|
}
|
|
738
737
|
]
|
|
739
738
|
});
|