@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.
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./i18n-B0xhVAye.js";
2
+ export { e as default };
@@ -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-CBfL69md.js"),
1278
- "./locales/sk/translation.json": () => import("./translation-Bsz_89rP.js")
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-Bk--20yp.js.map
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-BOl-CfVk.js").then((e) => {
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-Br8PCCHq.js.map
254
+ //# sourceMappingURL=settingsStore-CpRkCJCy.js.map
@@ -1,17 +1,20 @@
1
1
  //#region src/locales/en/translation.json
2
- var e = { subtitle: "Start a conversation. I'm here to help." }, t = {
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
- }, n = {
8
+ }, r = {
6
9
  assistant: "Assistant",
7
10
  online: "online",
8
11
  notConfigured: "Not configured"
9
- }, r = {
12
+ }, i = {
10
13
  title: "Conversations",
11
14
  empty: "No conversations yet.",
12
15
  newChat: "New conversation",
13
16
  settings: "Settings"
14
- }, i = { poweredBy: "Powered by <a>{{label}}</a>" }, a = {
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
- }, o = {
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
- }, s = {
74
- welcome: e,
75
- input: t,
76
- header: n,
77
- sidebar: r,
78
- footer: i,
79
- tabs: a,
80
- settings: o
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 { s as default, i as footer, n as header, t as input, o as settings, r as sidebar, a as tabs, e as welcome };
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-CBfL69md.js.map
89
+ //# sourceMappingURL=translation-CsXAAc6O.js.map
@@ -1,17 +1,20 @@
1
1
  //#region src/locales/sk/translation.json
2
- var e = { subtitle: "Začnite konverzáciu. Som tu pre vás." }, t = {
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
- }, n = {
8
+ }, r = {
6
9
  assistant: "Asistent",
7
10
  online: "online",
8
11
  notConfigured: "Nenakonfigurované"
9
- }, r = {
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
- }, i = { poweredBy: "Poháňa <a>{{label}}</a>" }, a = {
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
- }, o = {
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
- }, s = {
74
- welcome: e,
75
- input: t,
76
- header: n,
77
- sidebar: r,
78
- footer: i,
79
- tabs: a,
80
- settings: o
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 { s as default, i as footer, n as header, t as input, o as settings, r as sidebar, a as tabs, e as welcome };
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-Bsz_89rP.js.map
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 {};
@@ -1,4 +1,5 @@
1
1
  export declare function useChat(): {
2
2
  send: (text: string) => Promise<void>;
3
+ retry: (messageId: string) => Promise<void>;
3
4
  isStreaming: boolean;
4
5
  };