@elia-assistant/chatui 1.0.12 → 1.0.14

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-fqYdUrSg.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-BHOB8oBB.js"),
1278
- "./locales/sk/translation.json": () => import("./translation-KDPjplc7.js")
1277
+ "./locales/en/translation.json": () => import("./translation-LFv38Ne3.js"),
1278
+ "./locales/sk/translation.json": () => import("./translation-KUznr2y2.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 {
@@ -1285,7 +1285,7 @@ function he() {
1285
1285
  if (t) return t;
1286
1286
  }
1287
1287
  } catch {}
1288
- return navigator.language.split("-")[0] ?? "en";
1288
+ return "en";
1289
1289
  }
1290
1290
  J.use(pe(async (e, t) => {
1291
1291
  let n = $[`./locales/${e}/${t}.json`];
@@ -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-CGlsSoQa.js.map
1304
+ //# sourceMappingURL=i18n-fqYdUrSg.js.map
@@ -71,19 +71,15 @@ var a = {
71
71
  webhookUrl: "",
72
72
  chatInputKey: "chatInput",
73
73
  chatSessionKey: "sessionId",
74
- mode: "fullscreen",
75
- showSidebar: !1,
74
+ mode: "window",
76
75
  showWelcomeScreen: !0,
77
76
  streaming: !1,
78
- botName: "Assistant",
77
+ botName: "Bot",
79
78
  showCta: !0,
80
79
  ctaText: "Hi! How can I help you today?",
81
80
  ctaDelay: 5e3,
82
81
  ctaSound: !0,
83
82
  hideSettings: !0,
84
- poweredByLabel: "ELIA AI Assistant",
85
- poweredByUrl: "https://www.elia-asistent.com",
86
- poweredByHide: !1,
87
83
  fullscreenSheet: !1,
88
84
  fullscreenSheetHeight: "75vh",
89
85
  i18n: {
@@ -110,7 +106,7 @@ var a = {
110
106
  e({ activeTheme: t });
111
107
  },
112
108
  setLanguage(t) {
113
- e({ language: t }), import("./i18n-CgST8dWz.js").then((e) => {
109
+ e({ language: t }), import("./i18n-DjvGLExc.js").then((e) => {
114
110
  e.default.changeLanguage(t);
115
111
  });
116
112
  }
@@ -131,4 +127,4 @@ var a = {
131
127
  //#endregion
132
128
  export { i as n, n as r, o as t };
133
129
 
134
- //# sourceMappingURL=settingsStore-Bqlj_GzJ.js.map
130
+ //# sourceMappingURL=settingsStore-BROU9g7x.js.map
@@ -6,7 +6,7 @@ var e = {
6
6
  placeholder: "Napíšte správu… (Enter = odoslať)",
7
7
  placeholderUnconfigured: "Nastavte webhook URL v nastaveniach…"
8
8
  }, r = {
9
- assistant: "Asistent",
9
+ assistant: "Bot",
10
10
  online: "online",
11
11
  notConfigured: "Nenakonfigurované"
12
12
  }, i = {
@@ -41,6 +41,7 @@ var e = {
41
41
  welcomeScreen: "Zobraziť uvítaciu obrazovku",
42
42
  sidebar: "Zobraziť históriu konverzácií",
43
43
  fileUploads: "Povoliť nahrávanie súborov",
44
+ allowedFileExtensions: "Povolené prípony súborov",
44
45
  mode: "Režim zobrazenia",
45
46
  fullscreenSheet: "Štýl spodného panela (nepokryje celú obrazovku)",
46
47
  fullscreenSheetHeight: "Výška panela (CSS dĺžka, napr. 75vh, 600px)",
@@ -68,9 +69,6 @@ var e = {
68
69
  avatarUrlPlaceholder: "alebo vložte URL",
69
70
  avatarErrorType: "Vyberte súbor obrázka.",
70
71
  avatarErrorSize: "Obrázok je príliš veľký (max 500 KB).",
71
- poweredByLabel: "Text odkazu \"Poháňa\"",
72
- poweredByUrl: "URL odkazu \"Poháňa\"",
73
- poweredByHide: "Skryť pätičku \"Poháňa\"",
74
72
  save: "Uložiť",
75
73
  cancel: "Zrušiť",
76
74
  theme: "Téma",
@@ -92,4 +90,4 @@ var e = {
92
90
  //#endregion
93
91
  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 };
94
92
 
95
- //# sourceMappingURL=translation-KDPjplc7.js.map
93
+ //# sourceMappingURL=translation-KUznr2y2.js.map
@@ -6,7 +6,7 @@ var e = {
6
6
  placeholder: "Type a message… (Enter to send)",
7
7
  placeholderUnconfigured: "Configure webhook URL in settings…"
8
8
  }, r = {
9
- assistant: "Assistant",
9
+ assistant: "Bot",
10
10
  online: "online",
11
11
  notConfigured: "Not configured"
12
12
  }, i = {
@@ -41,6 +41,7 @@ var e = {
41
41
  welcomeScreen: "Show welcome screen",
42
42
  sidebar: "Show conversation sidebar",
43
43
  fileUploads: "Allow file uploads",
44
+ allowedFileExtensions: "Allowed file extensions",
44
45
  mode: "Display mode",
45
46
  fullscreenSheet: "Bottom-sheet style (don't cover full screen)",
46
47
  fullscreenSheetHeight: "Sheet height (CSS length, e.g. 75vh, 600px)",
@@ -68,9 +69,6 @@ var e = {
68
69
  avatarUrlPlaceholder: "or paste a URL",
69
70
  avatarErrorType: "Please choose an image file.",
70
71
  avatarErrorSize: "Image is too large (max 500 KB).",
71
- poweredByLabel: "\"Powered by\" link text",
72
- poweredByUrl: "\"Powered by\" link URL",
73
- poweredByHide: "Hide \"Powered by\" footer",
74
72
  save: "Save",
75
73
  cancel: "Cancel",
76
74
  theme: "Theme",
@@ -92,4 +90,4 @@ var e = {
92
90
  //#endregion
93
91
  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 };
94
92
 
95
- //# sourceMappingURL=translation-BHOB8oBB.js.map
93
+ //# sourceMappingURL=translation-LFv38Ne3.js.map
@@ -1,4 +1,7 @@
1
- export declare function useTheme(): {
1
+ import { type RefObject } from 'react';
2
+ export declare function useTheme({ elementRef, }?: {
3
+ elementRef?: RefObject<HTMLElement | null>;
4
+ }): {
2
5
  activeTheme: string;
3
6
  setTheme: (id: string) => void;
4
7
  };