@elia-assistant/chatui 1.0.5 → 1.0.6
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/dist/chat-store.js +4 -2
- package/dist/chatui.iife.js +25 -25
- package/dist/chunks/i18n-BOl-CfVk.js +2 -0
- package/dist/chunks/{i18n-oL80Kbbg.js → i18n-Bk--20yp.js} +3 -3
- package/dist/chunks/{settingsStore-BqlYxczg.js → settingsStore-uYZsUiVr.js} +2 -2
- package/dist/chunks/{translation-DYf8xjwU.js → translation-Bsz_89rP.js} +6 -2
- package/dist/chunks/{translation-B1sKHGC8.js → translation-CBfL69md.js} +6 -2
- package/dist/hooks/useAgentStream.d.ts +14 -0
- package/dist/index.js +1500 -1406
- package/dist/store.js +1 -1
- package/dist/types/index.d.ts +9 -0
- package/package.json +1 -1
- package/dist/chunks/i18n-BySVyBiz.js +0 -2
|
@@ -1274,8 +1274,8 @@ var oe = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
1274
1274
|
}
|
|
1275
1275
|
};
|
|
1276
1276
|
}, $ = /* @__PURE__ */ Object.assign({
|
|
1277
|
-
"./locales/en/translation.json": () => import("./translation-
|
|
1278
|
-
"./locales/sk/translation.json": () => import("./translation-
|
|
1277
|
+
"./locales/en/translation.json": () => import("./translation-CBfL69md.js"),
|
|
1278
|
+
"./locales/sk/translation.json": () => import("./translation-Bsz_89rP.js")
|
|
1279
1279
|
}), me = Array.from(new Set(Object.keys($).map((e) => e.split("/")[2]).filter((e) => !!e)));
|
|
1280
1280
|
function he() {
|
|
1281
1281
|
try {
|
|
@@ -1301,4 +1301,4 @@ var ge = J;
|
|
|
1301
1301
|
//#endregion
|
|
1302
1302
|
export { k as a, Y as i, fe as n, ue as r, ge as t };
|
|
1303
1303
|
|
|
1304
|
-
//# sourceMappingURL=i18n-
|
|
1304
|
+
//# sourceMappingURL=i18n-Bk--20yp.js.map
|
|
@@ -230,7 +230,7 @@ var a = {
|
|
|
230
230
|
e({ activeTheme: t });
|
|
231
231
|
},
|
|
232
232
|
setLanguage(t) {
|
|
233
|
-
e({ language: t }), import("./i18n-
|
|
233
|
+
e({ language: t }), import("./i18n-BOl-CfVk.js").then((e) => {
|
|
234
234
|
e.default.changeLanguage(t);
|
|
235
235
|
});
|
|
236
236
|
}
|
|
@@ -251,4 +251,4 @@ var a = {
|
|
|
251
251
|
//#endregion
|
|
252
252
|
export { i as n, n as r, o as t };
|
|
253
253
|
|
|
254
|
-
//# sourceMappingURL=settingsStore-
|
|
254
|
+
//# sourceMappingURL=settingsStore-uYZsUiVr.js.map
|
|
@@ -30,7 +30,11 @@ var e = { subtitle: "Začnite konverzáciu. Som tu pre vás." }, t = {
|
|
|
30
30
|
sessionKey: "Kľúč relácie",
|
|
31
31
|
botName: "Meno bota (globálna záloha)",
|
|
32
32
|
metadata: "Metadáta (JSON)",
|
|
33
|
-
streaming: "
|
|
33
|
+
streaming: "Streamovať odpoveď bota po tokenoch",
|
|
34
|
+
agentStreamSection: "Živý operátor",
|
|
35
|
+
agentStreamHint: "Keď je nastavené, odpovede operátora poslané z dashboardu sa zobrazia v chate v reálnom čase. Pre vypnutie nechajte obe polia prázdne.",
|
|
36
|
+
agentStreamApiBaseUrl: "URL backendu",
|
|
37
|
+
agentStreamTenantId: "ID tenanta",
|
|
34
38
|
welcomeScreen: "Zobraziť uvítaciu obrazovku",
|
|
35
39
|
sidebar: "Zobraziť históriu konverzácií",
|
|
36
40
|
fileUploads: "Povoliť nahrávanie súborov",
|
|
@@ -78,4 +82,4 @@ var e = { subtitle: "Začnite konverzáciu. Som tu pre vás." }, t = {
|
|
|
78
82
|
//#endregion
|
|
79
83
|
export { s as default, i as footer, n as header, t as input, o as settings, r as sidebar, a as tabs, e as welcome };
|
|
80
84
|
|
|
81
|
-
//# sourceMappingURL=translation-
|
|
85
|
+
//# sourceMappingURL=translation-Bsz_89rP.js.map
|
|
@@ -30,7 +30,11 @@ var e = { subtitle: "Start a conversation. I'm here to help." }, t = {
|
|
|
30
30
|
sessionKey: "Session key",
|
|
31
31
|
botName: "Bot name (global fallback)",
|
|
32
32
|
metadata: "Metadata (JSON)",
|
|
33
|
-
streaming: "
|
|
33
|
+
streaming: "Stream bot response token-by-token",
|
|
34
|
+
agentStreamSection: "Live agent",
|
|
35
|
+
agentStreamHint: "When set, agent replies pushed from the dashboard appear in the chat in real time. Leave both fields empty to disable.",
|
|
36
|
+
agentStreamApiBaseUrl: "Backend URL",
|
|
37
|
+
agentStreamTenantId: "Tenant ID",
|
|
34
38
|
welcomeScreen: "Show welcome screen",
|
|
35
39
|
sidebar: "Show conversation sidebar",
|
|
36
40
|
fileUploads: "Allow file uploads",
|
|
@@ -78,4 +82,4 @@ var e = { subtitle: "Start a conversation. I'm here to help." }, t = {
|
|
|
78
82
|
//#endregion
|
|
79
83
|
export { s as default, i as footer, n as header, t as input, o as settings, r as sidebar, a as tabs, e as welcome };
|
|
80
84
|
|
|
81
|
-
//# sourceMappingURL=translation-
|
|
85
|
+
//# sourceMappingURL=translation-CBfL69md.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subscribes the active session to the backend's customer SSE stream so agent replies
|
|
3
|
+
* pushed by support staff appear in the conversation in real time. No-op when
|
|
4
|
+
* `config.agentStream` is not configured.
|
|
5
|
+
*
|
|
6
|
+
* The flow is:
|
|
7
|
+
* 1. POST {apiBaseUrl}/api/public/chat-stream/init → returns a session-bound token + stream URL
|
|
8
|
+
* 2. Open EventSource on that URL
|
|
9
|
+
* 3. For every `agentReply` event, append a deduped 'bot' message to the active session
|
|
10
|
+
*
|
|
11
|
+
* The browser handles reconnect automatically, sending `Last-Event-ID` so the backend can
|
|
12
|
+
* replay anything missed during the gap.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useAgentStream(): void;
|