@fusioni/client-sdk 1.1.8 → 1.1.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.
package/dist/index.js CHANGED
@@ -62,6 +62,10 @@ const en = {
62
62
  light: 'Switch to light theme',
63
63
  dark: 'Switch to dark theme'
64
64
  },
65
+ emptyState: {
66
+ title: 'Start a conversation',
67
+ description: 'Send a message to begin chatting with the AI assistant'
68
+ },
65
69
  errors: {
66
70
  failedToCreateConversation: 'Failed to create conversation',
67
71
  failedToLoadConversation: 'Failed to load conversation',
@@ -156,6 +160,10 @@ const el = {
156
160
  light: 'Εναλλαγή σε φωτεινό θέμα',
157
161
  dark: 'Εναλλαγή σε σκοτεινό θέμα'
158
162
  },
163
+ emptyState: {
164
+ title: 'Ξεκινήστε μια συνομιλία',
165
+ description: 'Στείλτε ένα μήνυμα για να ξεκινήσετε συνομιλία με τον βοηθό AI'
166
+ },
159
167
  errors: {
160
168
  failedToCreateConversation: 'Αποτυχία δημιουργίας συνομιλίας',
161
169
  failedToLoadConversation: 'Αποτυχία φόρτωσης συνομιλίας',
@@ -5439,7 +5447,7 @@ const MessageList = ({ messages, streamMessages, showThoughts = false, onDeleteM
5439
5447
  selection.addRange(range);
5440
5448
  }
5441
5449
  }, [editingMessageId, editingContent]);
5442
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: "fusioni-message-list", ref: scrollContainerRef, children: jsxRuntime.jsxs("div", { className: "fusioni-messages-container", children: [messages.length === 0 ? (jsxRuntime.jsx("div", { className: "fusioni-empty-messages", children: jsxRuntime.jsxs("div", { className: "fusioni-empty-messages-content", children: [jsxRuntime.jsx("svg", { width: "64", height: "64", viewBox: "0 0 24 24", fill: "none", className: "fusioni-empty-icon", children: jsxRuntime.jsx("path", { d: "M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }), jsxRuntime.jsx("h3", { children: "Start a conversation" }), jsxRuntime.jsx("p", { children: "Send a message to begin chatting with the AI assistant" })] }) })) : (jsxRuntime.jsx("div", { className: "fusioni-messages", children: messages.map((message, index) => {
5450
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: "fusioni-message-list", ref: scrollContainerRef, children: jsxRuntime.jsxs("div", { className: "fusioni-messages-container", children: [messages.length === 0 ? (jsxRuntime.jsx("div", { className: "fusioni-empty-messages", children: jsxRuntime.jsxs("div", { className: "fusioni-empty-messages-content", children: [jsxRuntime.jsx("svg", { width: "64", height: "64", viewBox: "0 0 24 24", fill: "none", className: "fusioni-empty-icon", children: jsxRuntime.jsx("path", { d: "M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }), jsxRuntime.jsx("h3", { children: t('chat.emptyState.title') }), jsxRuntime.jsx("p", { children: t('chat.emptyState.description') })] }) })) : (jsxRuntime.jsx("div", { className: "fusioni-messages", children: messages.map((message, index) => {
5443
5451
  const isLastMessage = index === messages.length - 1;
5444
5452
  const messageKey = message.id ??
5445
5453
  `msg-fallback-${index}-${message.role}-${message.created instanceof Date ? message.created.getTime() : 0}`;