@helpai/elements 0.59.2 → 0.59.3
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 +10 -10
- package/elements-web-component.esm.js +17 -17
- package/elements-web-component.esm.js.map +3 -3
- package/elements.cjs.js +17 -17
- package/elements.cjs.js.map +3 -3
- package/elements.esm.js +17 -17
- package/elements.esm.js.map +3 -3
- package/elements.js +17 -17
- package/elements.js.map +3 -3
- package/index.d.ts +7 -7
- package/index.mjs +14 -15
- package/package.json +1 -1
- package/schema.d.ts +34 -34
- package/schema.json +30 -34
- package/schema.mjs +10 -10
- package/web-component.mjs +14 -15
package/configurator.mjs
CHANGED
|
@@ -137,13 +137,13 @@ var behaviorSchema = z4.object({
|
|
|
137
137
|
scrollFade: z4.boolean().default(true).describe(
|
|
138
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
139
|
),
|
|
140
|
-
|
|
141
|
-
"
|
|
140
|
+
disableMessageFeedback: z4.boolean().default(false).describe(
|
|
141
|
+
"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
142
|
)
|
|
143
143
|
}).loose().describe("Conversation behaviour \u2014 lifecycle, streaming, and the transcript surface (scroll, feedback).").meta({
|
|
144
144
|
examples: [
|
|
145
145
|
{ startMinimized: true, responseMode: "streaming" },
|
|
146
|
-
{ startMinimized: false, responseMode: "buffered", scrollFade: false,
|
|
146
|
+
{ startMinimized: false, responseMode: "buffered", scrollFade: false, disableMessageFeedback: true }
|
|
147
147
|
]
|
|
148
148
|
});
|
|
149
149
|
|
|
@@ -234,8 +234,8 @@ var featureFlagsSchema = z7.object({
|
|
|
234
234
|
tools: z7.array(toolRefSchema).max(200).optional().describe(
|
|
235
235
|
"Backend tools the assistant may invoke. Bare codes (`'tool:send-money'`) or rich refs (`{ code, config }`)."
|
|
236
236
|
),
|
|
237
|
-
|
|
238
|
-
"
|
|
237
|
+
disableHumanInLoop: z7.boolean().default(false).describe(
|
|
238
|
+
"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
239
|
)
|
|
240
240
|
}).loose().describe("Capability flags \u2014 file upload, voice mode, and the tools the assistant may invoke.").meta({
|
|
241
241
|
examples: [
|
|
@@ -554,7 +554,7 @@ var moduleSchema = z14.object({
|
|
|
554
554
|
),
|
|
555
555
|
// ── `home` layout config (flat feature flags — no block authoring) ──────
|
|
556
556
|
brandName: z14.string().max(80).optional().describe("`home` \u2014 hero wordmark (e.g. your company name)."),
|
|
557
|
-
|
|
557
|
+
hideGreeting: z14.boolean().optional().describe("`home` \u2014 hide the greeting hero. Unset/`false` = shown (default), `true` = hidden."),
|
|
558
558
|
greetingText: z14.string().max(280).optional().describe("`home` \u2014 override the greeting headline (default 'How can we help?'); supports a `{name}` token."),
|
|
559
559
|
userAvatars: z14.array(
|
|
560
560
|
z14.object({
|
|
@@ -563,8 +563,10 @@ var moduleSchema = z14.object({
|
|
|
563
563
|
role: z14.string().max(80).optional()
|
|
564
564
|
}).loose()
|
|
565
565
|
).max(10).optional().describe("`home` \u2014 team/agent avatars shown in the hero."),
|
|
566
|
-
|
|
567
|
-
|
|
566
|
+
hideSearchBar: z14.boolean().optional().describe("`home` \u2014 hide the 'Search for help' bar. Unset/`false` = shown (default), `true` = hidden."),
|
|
567
|
+
hideRecentConversations: z14.boolean().optional().describe(
|
|
568
|
+
"`home` \u2014 hide the visitor's most recent conversation card. Unset/`false` = shown (default), `true` = hidden."
|
|
569
|
+
),
|
|
568
570
|
status: z14.object({
|
|
569
571
|
text: z14.string().min(1).max(120).optional().describe(
|
|
570
572
|
"`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 +588,6 @@ var modulesSchema = z14.array(moduleSchema).max(4).describe(
|
|
|
586
588
|
label: "tabHome",
|
|
587
589
|
layout: "home",
|
|
588
590
|
brandName: "Acme",
|
|
589
|
-
showSearchBar: true,
|
|
590
|
-
showRecentConversations: true,
|
|
591
591
|
contentBlockTitle: "Popular articles",
|
|
592
592
|
contentTags: ["popular"]
|
|
593
593
|
},
|