@helpai/elements 0.14.2 → 0.15.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 +5 -5
- package/elements-web-component.esm.js +7 -7
- package/elements-web-component.esm.js.map +4 -4
- package/elements.cjs.js +7 -7
- package/elements.cjs.js.map +4 -4
- package/elements.esm.js +7 -7
- package/elements.esm.js.map +4 -4
- package/elements.js +7 -7
- package/elements.js.map +4 -4
- package/index.d.ts +6 -6
- package/index.mjs +227 -216
- package/package.json +1 -1
- package/schema.d.ts +51 -51
- package/schema.json +10 -10
- package/schema.mjs +5 -5
- package/web-component.mjs +226 -215
package/configurator.mjs
CHANGED
|
@@ -132,7 +132,7 @@ var behaviorSchema = z4.object({
|
|
|
132
132
|
"Show tool/function calls the model makes (e.g. search) as inline chips in the transcript. `false` (default) hides them."
|
|
133
133
|
),
|
|
134
134
|
popOutUrl: z4.string().min(1).max(2048).optional().describe(
|
|
135
|
-
"URL the `popOut` action opens in a new tab (carries `?
|
|
135
|
+
"URL the `popOut` action opens in a new tab (carries `?conversation=<id>&widgetId=<id>` query params). Falls back to the brand's build-time default. Set this to point at your own dedicated chat page (e.g. `https://app.acme.com/chat`). Server-pushable on `/start-conversation.widget.behavior.popOutUrl`."
|
|
136
136
|
)
|
|
137
137
|
}).loose().describe("Lifecycle + streaming behaviour. Doesn't affect visual presentation.").meta({
|
|
138
138
|
examples: [
|
|
@@ -542,7 +542,7 @@ var moduleSchema = z15.object({
|
|
|
542
542
|
}).loose()
|
|
543
543
|
).max(10).optional().describe("`home` \u2014 team/agent avatars shown in the hero."),
|
|
544
544
|
showSearchBar: z15.boolean().optional().describe("`home` \u2014 show the 'Search for help' bar (default true)."),
|
|
545
|
-
|
|
545
|
+
showRecentConversations: z15.boolean().optional().describe("`home` \u2014 show the visitor's most recent conversation card (default true)."),
|
|
546
546
|
status: z15.object({
|
|
547
547
|
text: z15.string().min(1).max(120),
|
|
548
548
|
level: z15.string().max(40).optional().describe(
|
|
@@ -556,18 +556,18 @@ var modulesSchema = z15.array(moduleSchema).max(4).describe(
|
|
|
556
556
|
"Messenger tabs \u2014 an ordered list of up to 4 tabs, each picking a `layout` + optional content `contentTags` (the content scope) + a translatable `label`. One tab \u2192 no tab bar (just that content); zero \u2192 an empty state. Floating / drawer / modal only."
|
|
557
557
|
).meta({
|
|
558
558
|
examples: [
|
|
559
|
-
[{ label: "
|
|
559
|
+
[{ label: "tabConversations", layout: "chat" }],
|
|
560
560
|
[
|
|
561
561
|
{
|
|
562
562
|
label: "tabHome",
|
|
563
563
|
layout: "home",
|
|
564
564
|
brandName: "Acme",
|
|
565
565
|
showSearchBar: true,
|
|
566
|
-
|
|
566
|
+
showRecentConversations: true,
|
|
567
567
|
contentBlockTitle: "Popular articles",
|
|
568
568
|
contentTags: ["popular"]
|
|
569
569
|
},
|
|
570
|
-
{ label: "
|
|
570
|
+
{ label: "tabConversations", layout: "chat" },
|
|
571
571
|
{ label: "tabHelp", layout: "help", contentTags: ["help", "guides"] },
|
|
572
572
|
{ label: "tabNews", layout: "news", contentTags: ["news"] }
|
|
573
573
|
]
|