@elia-assistant/chatui 1.0.9 → 1.0.10
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 +14 -0
- package/dist/chatui.css +1 -1
- package/dist/chatui.iife.css +1 -1
- package/dist/chatui.iife.js +26 -26
- package/dist/chunks/i18n-23dPrR-0.js +2 -0
- package/dist/chunks/{i18n-Bk--20yp.js → i18n-B0xhVAye.js} +3 -3
- package/dist/chunks/{settingsStore-Br8PCCHq.js → settingsStore-CpRkCJCy.js} +2 -2
- package/dist/chunks/{translation-CBfL69md.js → translation-CsXAAc6O.js} +19 -15
- package/dist/chunks/{translation-Bsz_89rP.js → translation-D0S7F5mA.js} +19 -15
- package/dist/components/MessageBubble.d.ts +3 -1
- package/dist/hooks/useChat.d.ts +1 -0
- package/dist/index.js +1754 -1687
- package/dist/lib/n8nClient.d.ts +12 -1
- package/dist/store/chatStore.d.ts +1 -0
- package/dist/store.js +1 -1
- package/dist/types/index.d.ts +5 -0
- package/package.json +1 -1
- package/dist/chunks/i18n-BOl-CfVk.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-CsXAAc6O.js"),
|
|
1278
|
+
"./locales/sk/translation.json": () => import("./translation-D0S7F5mA.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-B0xhVAye.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-23dPrR-0.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-CpRkCJCy.js.map
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
//#region src/locales/en/translation.json
|
|
2
|
-
var e = {
|
|
2
|
+
var e = {
|
|
3
|
+
failedToSend: "Failed to send",
|
|
4
|
+
retry: "Retry"
|
|
5
|
+
}, t = { subtitle: "Start a conversation. I'm here to help." }, n = {
|
|
3
6
|
placeholder: "Type a message… (Enter to send)",
|
|
4
7
|
placeholderUnconfigured: "Configure webhook URL in settings…"
|
|
5
|
-
},
|
|
8
|
+
}, r = {
|
|
6
9
|
assistant: "Assistant",
|
|
7
10
|
online: "online",
|
|
8
11
|
notConfigured: "Not configured"
|
|
9
|
-
},
|
|
12
|
+
}, i = {
|
|
10
13
|
title: "Conversations",
|
|
11
14
|
empty: "No conversations yet.",
|
|
12
15
|
newChat: "New conversation",
|
|
13
16
|
settings: "Settings"
|
|
14
|
-
},
|
|
17
|
+
}, a = { poweredBy: "Powered by <a>{{label}}</a>" }, o = {
|
|
15
18
|
notifications: "Tips",
|
|
16
19
|
help: "Help",
|
|
17
20
|
chat: "Chat",
|
|
@@ -22,7 +25,7 @@ var e = { subtitle: "Start a conversation. I'm here to help." }, t = {
|
|
|
22
25
|
notifications: "No notifications yet.",
|
|
23
26
|
faq: "No matching entries."
|
|
24
27
|
}
|
|
25
|
-
},
|
|
28
|
+
}, s = {
|
|
26
29
|
title: "Settings",
|
|
27
30
|
language: "Interface language",
|
|
28
31
|
webhookUrl: "Webhook URL",
|
|
@@ -70,16 +73,17 @@ var e = { subtitle: "Start a conversation. I'm here to help." }, t = {
|
|
|
70
73
|
poweredByHide: "Hide \"Powered by\" footer",
|
|
71
74
|
save: "Save",
|
|
72
75
|
cancel: "Cancel"
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
}, c = {
|
|
77
|
+
errors: e,
|
|
78
|
+
welcome: t,
|
|
79
|
+
input: n,
|
|
80
|
+
header: r,
|
|
81
|
+
sidebar: i,
|
|
82
|
+
footer: a,
|
|
83
|
+
tabs: o,
|
|
84
|
+
settings: s
|
|
81
85
|
};
|
|
82
86
|
//#endregion
|
|
83
|
-
export {
|
|
87
|
+
export { c as default, e as errors, a as footer, r as header, n as input, s as settings, i as sidebar, o as tabs, t as welcome };
|
|
84
88
|
|
|
85
|
-
//# sourceMappingURL=translation-
|
|
89
|
+
//# sourceMappingURL=translation-CsXAAc6O.js.map
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
//#region src/locales/sk/translation.json
|
|
2
|
-
var e = {
|
|
2
|
+
var e = {
|
|
3
|
+
failedToSend: "Správu sa nepodarilo odoslať",
|
|
4
|
+
retry: "Skúsiť znova"
|
|
5
|
+
}, t = { subtitle: "Začnite konverzáciu. Som tu pre vás." }, n = {
|
|
3
6
|
placeholder: "Napíšte správu… (Enter = odoslať)",
|
|
4
7
|
placeholderUnconfigured: "Nastavte webhook URL v nastaveniach…"
|
|
5
|
-
},
|
|
8
|
+
}, r = {
|
|
6
9
|
assistant: "Asistent",
|
|
7
10
|
online: "online",
|
|
8
11
|
notConfigured: "Nenakonfigurované"
|
|
9
|
-
},
|
|
12
|
+
}, i = {
|
|
10
13
|
title: "Konverzácie",
|
|
11
14
|
empty: "Zatiaľ žiadne konverzácie.",
|
|
12
15
|
newChat: "Nová konverzácia",
|
|
13
16
|
settings: "Nastavenia"
|
|
14
|
-
},
|
|
17
|
+
}, a = { poweredBy: "Poskytuje <a>{{label}}</a>" }, o = {
|
|
15
18
|
notifications: "Tipy",
|
|
16
19
|
help: "Pomoc",
|
|
17
20
|
chat: "Chat",
|
|
@@ -22,7 +25,7 @@ var e = { subtitle: "Začnite konverzáciu. Som tu pre vás." }, t = {
|
|
|
22
25
|
notifications: "Zatiaľ žiadne oznámenia.",
|
|
23
26
|
faq: "Žiadne zhodné položky."
|
|
24
27
|
}
|
|
25
|
-
},
|
|
28
|
+
}, s = {
|
|
26
29
|
title: "Nastavenia",
|
|
27
30
|
language: "Jazyk rozhrania",
|
|
28
31
|
webhookUrl: "Webhook URL",
|
|
@@ -70,16 +73,17 @@ var e = { subtitle: "Začnite konverzáciu. Som tu pre vás." }, t = {
|
|
|
70
73
|
poweredByHide: "Skryť pätičku \"Poháňa\"",
|
|
71
74
|
save: "Uložiť",
|
|
72
75
|
cancel: "Zrušiť"
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
}, c = {
|
|
77
|
+
errors: e,
|
|
78
|
+
welcome: t,
|
|
79
|
+
input: n,
|
|
80
|
+
header: r,
|
|
81
|
+
sidebar: i,
|
|
82
|
+
footer: a,
|
|
83
|
+
tabs: o,
|
|
84
|
+
settings: s
|
|
81
85
|
};
|
|
82
86
|
//#endregion
|
|
83
|
-
export {
|
|
87
|
+
export { c as default, e as errors, a as footer, r as header, n as input, s as settings, i as sidebar, o as tabs, t as welcome };
|
|
84
88
|
|
|
85
|
-
//# sourceMappingURL=translation-
|
|
89
|
+
//# sourceMappingURL=translation-D0S7F5mA.js.map
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { Message } from '../types/index.ts';
|
|
2
2
|
interface Props {
|
|
3
3
|
message: Message;
|
|
4
|
+
/** Invoked when the user clicks "Retry" on a failed user message. */
|
|
5
|
+
onRetry?: (messageId: string) => void;
|
|
4
6
|
}
|
|
5
|
-
export declare function MessageBubble({ message }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function MessageBubble({ message, onRetry }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
8
|
export declare function TypingIndicator(): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export {};
|