@elia-assistant/chatui 1.0.13 → 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-B7absJaI.js"),
1278
- "./locales/sk/translation.json": () => import("./translation-D2b_upNC.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 {
@@ -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-DyWy7n71.js.map
1304
+ //# sourceMappingURL=i18n-fqYdUrSg.js.map
@@ -71,10 +71,10 @@ var a = {
71
71
  webhookUrl: "",
72
72
  chatInputKey: "chatInput",
73
73
  chatSessionKey: "sessionId",
74
- mode: "fullscreen",
74
+ mode: "window",
75
75
  showWelcomeScreen: !0,
76
76
  streaming: !1,
77
- botName: "Assistant",
77
+ botName: "Bot",
78
78
  showCta: !0,
79
79
  ctaText: "Hi! How can I help you today?",
80
80
  ctaDelay: 5e3,
@@ -106,7 +106,7 @@ var a = {
106
106
  e({ activeTheme: t });
107
107
  },
108
108
  setLanguage(t) {
109
- e({ language: t }), import("./i18n-BUYd0BSF.js").then((e) => {
109
+ e({ language: t }), import("./i18n-DjvGLExc.js").then((e) => {
110
110
  e.default.changeLanguage(t);
111
111
  });
112
112
  }
@@ -127,4 +127,4 @@ var a = {
127
127
  //#endregion
128
128
  export { i as n, n as r, o as t };
129
129
 
130
- //# sourceMappingURL=settingsStore-BRK5844w.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 = {
@@ -90,4 +90,4 @@ var e = {
90
90
  //#endregion
91
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 };
92
92
 
93
- //# sourceMappingURL=translation-D2b_upNC.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 = {
@@ -90,4 +90,4 @@ var e = {
90
90
  //#endregion
91
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 };
92
92
 
93
- //# sourceMappingURL=translation-B7absJaI.js.map
93
+ //# sourceMappingURL=translation-LFv38Ne3.js.map
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a as e, i as t, n, r } from "./chunks/i18n-DyWy7n71.js";
2
- import { n as i, r as a, t as o } from "./chunks/settingsStore-BRK5844w.js";
1
+ import { a as e, i as t, n, r } from "./chunks/i18n-fqYdUrSg.js";
2
+ import { n as i, r as a, t as o } from "./chunks/settingsStore-BROU9g7x.js";
3
3
  import { useChatStore as s } from "./chat-store.js";
4
4
  import { Children as c, Fragment as l, cloneElement as u, createContext as d, createElement as f, isValidElement as p, useCallback as m, useContext as h, useEffect as g, useMemo as _, useRef as v, useState as y, useSyncExternalStore as b } from "react";
5
5
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
@@ -9608,7 +9608,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
9608
9608
  ...t,
9609
9609
  botName: e.target.value
9610
9610
  })),
9611
- placeholder: "Assistant",
9611
+ placeholder: "Bot",
9612
9612
  className: "input-field"
9613
9613
  })
9614
9614
  }),
@@ -10006,7 +10006,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
10006
10006
  children: /* @__PURE__ */ S("input", {
10007
10007
  value: I.botName ?? "",
10008
10008
  onChange: (e) => P(D, { botName: e.target.value || void 0 }),
10009
- placeholder: c.botName ?? "Assistant",
10009
+ placeholder: c.botName ?? "Bot",
10010
10010
  className: "input-field"
10011
10011
  })
10012
10012
  }),
package/dist/store.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./chunks/settingsStore-BRK5844w.js";
1
+ import { t as e } from "./chunks/settingsStore-BROU9g7x.js";
2
2
  export { e as useSettingsStore };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elia-assistant/chatui",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,2 +0,0 @@
1
- import { t as e } from "./i18n-DyWy7n71.js";
2
- export { e as default };