@elia-assistant/chatui 1.0.24 → 1.0.26
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/README.md +16 -8
- package/dist/assets/avatars/index.d.ts +4 -0
- package/dist/chatui.iife.js +27 -26
- package/dist/chunks/{i18n-i-innm6M.js → i18n-DS9aLar5.js} +4 -3
- package/dist/chunks/{settingsStore-ReOi8RP1.js → settingsStore-JRogtJV3.js} +55 -43
- package/dist/chunks/{translation-8S88rsh2.js → translation-B0QPZgVW.js} +4 -1
- package/dist/chunks/translation-BL8dP5qm.js +94 -0
- package/dist/chunks/{translation-B2rvHkw2.js → translation-BYSHywcB.js} +4 -1
- package/dist/components/ChatView.d.ts +3 -1
- package/dist/components/CtaPopup.d.ts +2 -1
- package/dist/index.js +977 -859
- package/dist/store.js +1 -1
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1290,8 +1290,9 @@ var pe = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
1290
1290
|
}
|
|
1291
1291
|
};
|
|
1292
1292
|
}, Ce = /* @__PURE__ */ s({ default: () => De }), we = /* #__PURE__ */ Object.assign({
|
|
1293
|
-
"./locales/
|
|
1294
|
-
"./locales/
|
|
1293
|
+
"./locales/cs/translation.json": () => import("./translation-BL8dP5qm.js"),
|
|
1294
|
+
"./locales/en/translation.json": () => import("./translation-BYSHywcB.js"),
|
|
1295
|
+
"./locales/sk/translation.json": () => import("./translation-B0QPZgVW.js")
|
|
1295
1296
|
}), Te = Array.from(new Set(Object.keys(we).map((e) => e.split("/")[2]).filter((e) => !!e)));
|
|
1296
1297
|
function Ee() {
|
|
1297
1298
|
try {
|
|
@@ -1317,4 +1318,4 @@ var De = Z;
|
|
|
1317
1318
|
//#endregion
|
|
1318
1319
|
export { I as a, l as c, Q as i, be as n, o, _e as r, s, Ce as t };
|
|
1319
1320
|
|
|
1320
|
-
//# sourceMappingURL=i18n-
|
|
1321
|
+
//# sourceMappingURL=i18n-DS9aLar5.js.map
|
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
import { n as e, t } from "./middleware-Brf3TxqP.js";
|
|
2
2
|
//#region src/themes.ts
|
|
3
3
|
var n = [
|
|
4
|
-
{
|
|
5
|
-
id: "midnight",
|
|
6
|
-
label: "Midnight",
|
|
7
|
-
baseColor: "#0f1117",
|
|
8
|
-
accentColor: "#6366f1"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
id: "ivory",
|
|
12
|
-
label: "Ivory",
|
|
13
|
-
baseColor: "#ffffff",
|
|
14
|
-
accentColor: "#4338ca"
|
|
15
|
-
},
|
|
16
4
|
{
|
|
17
5
|
id: "sunrise",
|
|
18
6
|
label: "Sunrise",
|
|
@@ -20,22 +8,10 @@ var n = [
|
|
|
20
8
|
accentColor: "#f97316"
|
|
21
9
|
},
|
|
22
10
|
{
|
|
23
|
-
id: "
|
|
24
|
-
label: "
|
|
25
|
-
baseColor: "#
|
|
26
|
-
accentColor: "#
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
id: "forest",
|
|
30
|
-
label: "Forest",
|
|
31
|
-
baseColor: "#0a1410",
|
|
32
|
-
accentColor: "#22c55e"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
id: "ocean",
|
|
36
|
-
label: "Ocean",
|
|
37
|
-
baseColor: "#060f1a",
|
|
38
|
-
accentColor: "#06b6d4"
|
|
11
|
+
id: "ivory",
|
|
12
|
+
label: "Ivory",
|
|
13
|
+
baseColor: "#f1ede5",
|
|
14
|
+
accentColor: "#e08229"
|
|
39
15
|
},
|
|
40
16
|
{
|
|
41
17
|
id: "cherry",
|
|
@@ -44,10 +20,10 @@ var n = [
|
|
|
44
20
|
accentColor: "#ef4444"
|
|
45
21
|
},
|
|
46
22
|
{
|
|
47
|
-
id: "
|
|
48
|
-
label: "
|
|
49
|
-
baseColor: "#
|
|
50
|
-
accentColor: "#
|
|
23
|
+
id: "sky",
|
|
24
|
+
label: "Sky",
|
|
25
|
+
baseColor: "#ffffff",
|
|
26
|
+
accentColor: "#5ba1da"
|
|
51
27
|
},
|
|
52
28
|
{
|
|
53
29
|
id: "lavender",
|
|
@@ -55,10 +31,22 @@ var n = [
|
|
|
55
31
|
baseColor: "#faf5ff",
|
|
56
32
|
accentColor: "#8b5cf6"
|
|
57
33
|
},
|
|
34
|
+
{
|
|
35
|
+
id: "nice",
|
|
36
|
+
label: "Nice",
|
|
37
|
+
baseColor: "#ffffff",
|
|
38
|
+
accentColor: "#3f7e83"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: "navy",
|
|
42
|
+
label: "Navy",
|
|
43
|
+
baseColor: "#ebf3f2",
|
|
44
|
+
accentColor: "#bed6dd"
|
|
45
|
+
},
|
|
58
46
|
{
|
|
59
47
|
id: "amber",
|
|
60
48
|
label: "Amber",
|
|
61
|
-
baseColor: "#
|
|
49
|
+
baseColor: "#3d2c15",
|
|
62
50
|
accentColor: "#f59e0b"
|
|
63
51
|
},
|
|
64
52
|
{
|
|
@@ -70,20 +58,44 @@ var n = [
|
|
|
70
58
|
{
|
|
71
59
|
id: "graphite",
|
|
72
60
|
label: "Graphite",
|
|
73
|
-
baseColor: "#
|
|
74
|
-
accentColor: "#
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
id: "teal",
|
|
78
|
-
label: "Teal",
|
|
79
|
-
baseColor: "#F1F5F9",
|
|
80
|
-
accentColor: "#0D9488"
|
|
61
|
+
baseColor: "#313949",
|
|
62
|
+
accentColor: "#4185eb"
|
|
81
63
|
},
|
|
82
64
|
{
|
|
83
65
|
id: "stone",
|
|
84
66
|
label: "Stone",
|
|
85
67
|
baseColor: "#44403c",
|
|
86
68
|
accentColor: "#fbbf24"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: "cosmos",
|
|
72
|
+
label: "Cosmos",
|
|
73
|
+
baseColor: "#2f356b",
|
|
74
|
+
accentColor: "#7855f7"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: "forest",
|
|
78
|
+
label: "Forest",
|
|
79
|
+
baseColor: "#1b362c",
|
|
80
|
+
accentColor: "#22c55e"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: "ocean",
|
|
84
|
+
label: "Ocean",
|
|
85
|
+
baseColor: "#075985",
|
|
86
|
+
accentColor: "#3b82f6"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
id: "cherryDark",
|
|
90
|
+
label: "Cherry Dark",
|
|
91
|
+
baseColor: "#440b19",
|
|
92
|
+
accentColor: "#ef4444"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: "midnight",
|
|
96
|
+
label: "Midnight",
|
|
97
|
+
baseColor: "#0f1117",
|
|
98
|
+
accentColor: "#6366f1"
|
|
87
99
|
}
|
|
88
100
|
], r = "midnight";
|
|
89
101
|
function i(e) {
|
|
@@ -130,7 +142,7 @@ var a = {
|
|
|
130
142
|
e({ activeTheme: t });
|
|
131
143
|
},
|
|
132
144
|
setLanguage(t) {
|
|
133
|
-
e({ language: t }), import("./i18n-
|
|
145
|
+
e({ language: t }), import("./i18n-DS9aLar5.js").then((e) => e.t).then((e) => {
|
|
134
146
|
e.default.changeLanguage(t);
|
|
135
147
|
});
|
|
136
148
|
}
|
|
@@ -151,4 +163,4 @@ var a = {
|
|
|
151
163
|
//#endregion
|
|
152
164
|
export { i as n, n as r, o as t };
|
|
153
165
|
|
|
154
|
-
//# sourceMappingURL=settingsStore-
|
|
166
|
+
//# sourceMappingURL=settingsStore-JRogtJV3.js.map
|
|
@@ -43,6 +43,9 @@ var e = {
|
|
|
43
43
|
fileUploads: "Povoliť nahrávanie súborov",
|
|
44
44
|
allowedFileExtensions: "Povolené prípony súborov",
|
|
45
45
|
mode: "Režim zobrazenia",
|
|
46
|
+
position: "Pozícia widgetu",
|
|
47
|
+
position_right: "Vpravo",
|
|
48
|
+
position_left: "Vľavo",
|
|
46
49
|
fullscreenSheet: "Štýl spodného panela (nepokryje celú obrazovku)",
|
|
47
50
|
fullscreenSheetHeight: "Výška panela (CSS dĺžka, napr. 75vh, 600px)",
|
|
48
51
|
tabsSection: "Záložky (oznámenia + FAQ)",
|
|
@@ -88,4 +91,4 @@ var e = {
|
|
|
88
91
|
//#endregion
|
|
89
92
|
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 };
|
|
90
93
|
|
|
91
|
-
//# sourceMappingURL=translation-
|
|
94
|
+
//# sourceMappingURL=translation-B0QPZgVW.js.map
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
//#region src/locales/cs/translation.json
|
|
2
|
+
var e = {
|
|
3
|
+
failedToSend: "Zprávu se nepodařilo odeslat",
|
|
4
|
+
retry: "Zkusit znovu"
|
|
5
|
+
}, t = { subtitle: "Začněte konverzaci. Jsem tu pro vás." }, n = {
|
|
6
|
+
placeholder: "Napište zprávu… (Enter = odeslat)",
|
|
7
|
+
placeholderUnconfigured: "Nastavte webhook URL v nastavení…"
|
|
8
|
+
}, r = {
|
|
9
|
+
assistant: "Bot",
|
|
10
|
+
online: "online",
|
|
11
|
+
notConfigured: "Nenakonfigurováno"
|
|
12
|
+
}, i = {
|
|
13
|
+
title: "Konverzace",
|
|
14
|
+
empty: "Zatím žádné konverzace.",
|
|
15
|
+
newChat: "Nová konverzace",
|
|
16
|
+
settings: "Nastavení"
|
|
17
|
+
}, a = { poweredBy: "Poskytuje <a>{{label}}</a>" }, o = {
|
|
18
|
+
notifications: "Tipy",
|
|
19
|
+
help: "Pomoc",
|
|
20
|
+
chat: "Chat",
|
|
21
|
+
faqSearch: "Hledat ve FAQ…",
|
|
22
|
+
loading: "Načítám…",
|
|
23
|
+
error: "Nepodařilo se načíst",
|
|
24
|
+
empty: {
|
|
25
|
+
notifications: "Zatím žádná oznámení.",
|
|
26
|
+
faq: "Žádné shodné položky."
|
|
27
|
+
}
|
|
28
|
+
}, s = {
|
|
29
|
+
title: "Nastavení",
|
|
30
|
+
language: "Jazyk rozhraní",
|
|
31
|
+
webhookUrl: "Webhook URL",
|
|
32
|
+
chatInputKey: "Klíč vstupu chatu",
|
|
33
|
+
sessionKey: "Klíč relace",
|
|
34
|
+
botName: "Jméno bota (globální záloha)",
|
|
35
|
+
metadata: "Metadata (JSON)",
|
|
36
|
+
streaming: "Streamovat odpověď bota po tokenech",
|
|
37
|
+
agentStreamSection: "Živý operátor",
|
|
38
|
+
agentStreamHint: "Když je nastaveno, odpovědi operátora odeslané z dashboardu se zobrazí v chatu v reálném čase. Pro vypnutí nechte obě pole prázdná.",
|
|
39
|
+
agentStreamApiBaseUrl: "URL backendu",
|
|
40
|
+
agentStreamTenantId: "ID tenanta",
|
|
41
|
+
welcomeScreen: "Zobrazit uvítací obrazovku",
|
|
42
|
+
sidebar: "Zobrazit historii konverzací",
|
|
43
|
+
fileUploads: "Povolit nahrávání souborů",
|
|
44
|
+
allowedFileExtensions: "Povolené přípony souborů",
|
|
45
|
+
mode: "Režim zobrazení",
|
|
46
|
+
position: "Pozice widgetu",
|
|
47
|
+
position_right: "Vpravo",
|
|
48
|
+
position_left: "Vlevo",
|
|
49
|
+
fullscreenSheet: "Styl spodního panelu (nepokryje celou obrazovku)",
|
|
50
|
+
fullscreenSheetHeight: "Výška panelu (CSS délka, např. 75vh, 600px)",
|
|
51
|
+
tabsSection: "Záložky (oznámení + FAQ)",
|
|
52
|
+
tabsNotificationsTitle: "Název záložky oznámení",
|
|
53
|
+
tabsNotificationsFeedUrl: "URL feedu oznámení",
|
|
54
|
+
tabsHelpTitle: "Název záložky FAQ",
|
|
55
|
+
tabsHelpFeedUrl: "URL feedu FAQ",
|
|
56
|
+
tabsChatTitle: "Název záložky chatu",
|
|
57
|
+
cta: "Zobrazit CTA popup",
|
|
58
|
+
ctaSound: "Přehrát zvuk notifikace",
|
|
59
|
+
ctaDelay: "Zpoždění CTA (ms)",
|
|
60
|
+
perLanguage: "Obsah podle jazyka",
|
|
61
|
+
addLanguage: "Přidat jazyk",
|
|
62
|
+
botNameOverride: "Přepsat jméno bota",
|
|
63
|
+
welcomeSubtitle: "Uvítací podtitul",
|
|
64
|
+
initialMessages: "Úvodní zprávy (jedna na řádek)",
|
|
65
|
+
initialMessagesPlaceholder: "Dobrý den! Jak vám mohu pomoci?\nMluvím vaším jazykem.",
|
|
66
|
+
ctaTextLabel: "Text CTA popupu",
|
|
67
|
+
botAvatar: "Avatar bota",
|
|
68
|
+
toggleButtonIcon: "Ikona tlačítka popupu",
|
|
69
|
+
toggleButtonSameAsAvatar: "Stejně jako avatar bota",
|
|
70
|
+
avatarNone: "Žádný",
|
|
71
|
+
avatarClear: "Vymazat",
|
|
72
|
+
avatarUrlPlaceholder: "nebo vložte URL",
|
|
73
|
+
save: "Uložit",
|
|
74
|
+
cancel: "Zrušit",
|
|
75
|
+
theme: "Téma",
|
|
76
|
+
exportConfig: "Exportovat konfiguraci",
|
|
77
|
+
exportHint: "Vložte toto do bootstrap souboru vaší hostitelské aplikace (např. <code>src/main.tsx</code>) před prvním renderem Reactu. Podívejte se na <code>example.html</code> pro kompletní návod k integraci.",
|
|
78
|
+
back: "Zpět",
|
|
79
|
+
copyToClipboard: "Kopírovat do schránky",
|
|
80
|
+
copied: "Zkopírováno"
|
|
81
|
+
}, c = {
|
|
82
|
+
errors: e,
|
|
83
|
+
welcome: t,
|
|
84
|
+
input: n,
|
|
85
|
+
header: r,
|
|
86
|
+
sidebar: i,
|
|
87
|
+
footer: a,
|
|
88
|
+
tabs: o,
|
|
89
|
+
settings: s
|
|
90
|
+
};
|
|
91
|
+
//#endregion
|
|
92
|
+
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 };
|
|
93
|
+
|
|
94
|
+
//# sourceMappingURL=translation-BL8dP5qm.js.map
|
|
@@ -43,6 +43,9 @@ var e = {
|
|
|
43
43
|
fileUploads: "Allow file uploads",
|
|
44
44
|
allowedFileExtensions: "Allowed file extensions",
|
|
45
45
|
mode: "Display mode",
|
|
46
|
+
position: "Widget position",
|
|
47
|
+
position_right: "Right",
|
|
48
|
+
position_left: "Left",
|
|
46
49
|
fullscreenSheet: "Bottom-sheet style (don't cover full screen)",
|
|
47
50
|
fullscreenSheetHeight: "Sheet height (CSS length, e.g. 75vh, 600px)",
|
|
48
51
|
tabsSection: "Tabs (notifications + FAQ)",
|
|
@@ -88,4 +91,4 @@ var e = {
|
|
|
88
91
|
//#endregion
|
|
89
92
|
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 };
|
|
90
93
|
|
|
91
|
-
//# sourceMappingURL=translation-
|
|
94
|
+
//# sourceMappingURL=translation-BYSHywcB.js.map
|
|
@@ -2,6 +2,8 @@ interface Props {
|
|
|
2
2
|
onOpenSettings: () => void;
|
|
3
3
|
/** When provided, renders a close (X) button in the header. Omit for permanent fullscreen layouts. */
|
|
4
4
|
onClose?: () => void;
|
|
5
|
+
maximized?: boolean;
|
|
6
|
+
onToggleMaximize?: () => void;
|
|
5
7
|
}
|
|
6
|
-
export declare function ChatView({ onOpenSettings, onClose }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function ChatView({ onOpenSettings, onClose, maximized, onToggleMaximize }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
text: string;
|
|
3
3
|
onDismiss: () => void;
|
|
4
|
+
align?: 'right' | 'left';
|
|
4
5
|
}
|
|
5
|
-
export declare function CtaPopup({ text, onDismiss }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function CtaPopup({ text, onDismiss, align }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export {};
|