@helpai/elements 0.40.0 → 0.41.1
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 +3 -8
- package/elements-web-component.esm.js +29 -29
- package/elements-web-component.esm.js.map +3 -3
- package/elements.cjs.js +27 -27
- package/elements.cjs.js.map +3 -3
- package/elements.esm.js +27 -27
- package/elements.esm.js.map +3 -3
- package/elements.js +26 -26
- package/elements.js.map +3 -3
- package/index.d.ts +4 -28
- package/index.mjs +53 -54
- package/package.json +1 -1
- package/schema.d.ts +27 -31
- package/schema.json +0 -22
- package/schema.mjs +3 -8
- package/style.css +1 -1
- package/web-component.mjs +53 -52
package/configurator.mjs
CHANGED
|
@@ -130,15 +130,11 @@ var behaviorSchema = z4.object({
|
|
|
130
130
|
),
|
|
131
131
|
showToolCalls: z4.boolean().default(false).describe(
|
|
132
132
|
"Show tool/function calls the model makes (e.g. search) as inline chips in the transcript. `false` (default) hides them."
|
|
133
|
-
),
|
|
134
|
-
popOutUrl: z4.string().min(1).max(2048).optional().describe(
|
|
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 `/handshake.widget.behavior.popOutUrl`."
|
|
136
133
|
)
|
|
137
134
|
}).loose().describe("Lifecycle + streaming behaviour. Doesn't affect visual presentation.").meta({
|
|
138
135
|
examples: [
|
|
139
136
|
{ startMinimized: true, responseMode: "streaming" },
|
|
140
|
-
{ startMinimized: false, responseMode: "buffered" }
|
|
141
|
-
{ popOutUrl: "https://app.acme.com/chat" }
|
|
137
|
+
{ startMinimized: false, responseMode: "buffered" }
|
|
142
138
|
]
|
|
143
139
|
});
|
|
144
140
|
|
|
@@ -246,7 +242,6 @@ var actionNameSchema = z8.enum([
|
|
|
246
242
|
"clear",
|
|
247
243
|
"expand",
|
|
248
244
|
"fullscreen",
|
|
249
|
-
"popOut",
|
|
250
245
|
"sound",
|
|
251
246
|
"history",
|
|
252
247
|
"language",
|
|
@@ -255,10 +250,10 @@ var actionNameSchema = z8.enum([
|
|
|
255
250
|
"close"
|
|
256
251
|
]);
|
|
257
252
|
var headerActionsSchema = z8.array(actionNameSchema).max(10).describe(
|
|
258
|
-
"Which actions the header exposes. `history` + `close` are dedicated buttons; the rest appear in the \u22EF menu. Unlisted actions are hidden; order is irrelevant. Pick from: `clear`, `expand`, `fullscreen`, `
|
|
253
|
+
"Which actions the header exposes. `history` + `close` are dedicated buttons; the rest appear in the \u22EF menu. Unlisted actions are hidden; order is irrelevant. Pick from: `clear`, `expand`, `fullscreen`, `sound`, `history`, `language`, `theme`, `textSize`, `close`. Per-mode defaults live in `DEFAULT_ACTIONS_BY_MODE`."
|
|
259
254
|
).meta({
|
|
260
255
|
examples: [
|
|
261
|
-
["theme", "history", "close", "clear", "fullscreen", "
|
|
256
|
+
["theme", "history", "close", "clear", "fullscreen", "sound", "language"],
|
|
262
257
|
["theme", "history", "clear", "language"],
|
|
263
258
|
["close"]
|
|
264
259
|
]
|