@elia-assistant/chatui 2.0.1 → 2.0.4

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.
@@ -101,14 +101,19 @@ var r = [
101
101
  function a(e) {
102
102
  return r.find((t) => t.id === e) ?? r[0];
103
103
  }
104
+ function o(e) {
105
+ let t = a(e).baseColor.replace("#", ""), n = parseInt(t.slice(0, 2), 16), r = parseInt(t.slice(2, 4), 16), i = parseInt(t.slice(4, 6), 16);
106
+ return .299 * n + .587 * r + .114 * i < 128;
107
+ }
104
108
  //#endregion
105
109
  //#region src/store/settingsStore.ts
106
- var o = {
110
+ var s = {
107
111
  webhookUrl: "",
108
112
  chatInputKey: "chatInput",
109
113
  chatSessionKey: "sessionId",
110
114
  mode: "window",
111
115
  showWelcomeScreen: !0,
116
+ initialMessagesClickable: !1,
112
117
  streaming: !1,
113
118
  allowFileUploads: !1,
114
119
  botName: "Bot",
@@ -130,9 +135,9 @@ var o = {
130
135
  }
131
136
  }
132
137
  };
133
- function s(r, a) {
138
+ function c(r, a) {
134
139
  return e()(n((e) => ({
135
- config: o,
140
+ config: s,
136
141
  activeTheme: i,
137
142
  language: "en",
138
143
  setConfig(t) {
@@ -143,7 +148,7 @@ function s(r, a) {
143
148
  },
144
149
  initConfig(t) {
145
150
  e({ config: {
146
- ...o,
151
+ ...s,
147
152
  ...t
148
153
  } });
149
154
  },
@@ -169,6 +174,6 @@ function s(r, a) {
169
174
  }));
170
175
  }
171
176
  //#endregion
172
- export { a as n, r, s as t };
177
+ export { r as i, a as n, o as r, c as t };
173
178
 
174
- //# sourceMappingURL=settingsStore-C7relGs3.js.map
179
+ //# sourceMappingURL=settingsStore-DvRsr-5I.js.map
@@ -39,6 +39,7 @@ var e = {
39
39
  agentStreamApiBaseUrl: "Backend URL",
40
40
  agentStreamTenantId: "Tenant ID",
41
41
  welcomeScreen: "Show welcome screen",
42
+ initialMessagesClickable: "Clickable initial messages",
42
43
  sidebar: "Show conversation sidebar",
43
44
  fileUploads: "Allow file uploads",
44
45
  allowedFileExtensions: "Allowed file extensions",
@@ -91,4 +92,4 @@ var e = {
91
92
  //#endregion
92
93
  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
 
94
- //# sourceMappingURL=translation-BYSHywcB.js.map
95
+ //# sourceMappingURL=translation-D4orT_2p.js.map
@@ -39,6 +39,7 @@ var e = {
39
39
  agentStreamApiBaseUrl: "URL backendu",
40
40
  agentStreamTenantId: "ID tenanta",
41
41
  welcomeScreen: "Zobraziť uvítaciu obrazovku",
42
+ initialMessagesClickable: "Klikateľné úvodné správy",
42
43
  sidebar: "Zobraziť históriu konverzácií",
43
44
  fileUploads: "Povoliť nahrávanie súborov",
44
45
  allowedFileExtensions: "Povolené prípony súborov",
@@ -91,4 +92,4 @@ var e = {
91
92
  //#endregion
92
93
  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
 
94
- //# sourceMappingURL=translation-B0QPZgVW.js.map
95
+ //# sourceMappingURL=translation-DOt84G52.js.map
@@ -39,6 +39,7 @@ var e = {
39
39
  agentStreamApiBaseUrl: "URL backendu",
40
40
  agentStreamTenantId: "ID tenanta",
41
41
  welcomeScreen: "Zobrazit uvítací obrazovku",
42
+ initialMessagesClickable: "Klikatelné úvodní zprávy",
42
43
  sidebar: "Zobrazit historii konverzací",
43
44
  fileUploads: "Povolit nahrávání souborů",
44
45
  allowedFileExtensions: "Povolené přípony souborů",
@@ -91,4 +92,4 @@ var e = {
91
92
  //#endregion
92
93
  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
 
94
- //# sourceMappingURL=translation-BL8dP5qm.js.map
95
+ //# sourceMappingURL=translation-JVK7ONqI.js.map
@@ -5,5 +5,13 @@ interface Props {
5
5
  onRetry?: (messageId: string) => void;
6
6
  }
7
7
  export declare function MessageBubble({ message, onRetry }: Props): import("react/jsx-runtime").JSX.Element;
8
+ /**
9
+ * Several bot messages stacked under one avatar with a single timestamp. Used for the initial
10
+ * messages; when <c>onClick</c> is set each bubble is a clickable suggestion.
11
+ */
12
+ export declare function BotMessageGroup({ messages, onClick, }: {
13
+ messages: string[];
14
+ onClick?: (text: string) => void;
15
+ }): import("react/jsx-runtime").JSX.Element;
8
16
  export declare function TypingIndicator(): import("react/jsx-runtime").JSX.Element;
9
17
  export {};