@fusioni/client-sdk 1.1.23 → 1.1.24
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 +3 -1
- package/dist/components/Message.d.ts.map +1 -1
- package/dist/components/MessageList.d.ts.map +1 -1
- package/dist/fusioni-sdk.umd.js +32 -6
- package/dist/fusioni-sdk.umd.js.map +1 -1
- package/dist/i18n/el.d.ts +3 -0
- package/dist/i18n/el.d.ts.map +1 -1
- package/dist/i18n/en.d.ts +3 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/index.d.ts +6 -0
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/index.css +50 -9
- package/dist/index.d.ts +5 -1
- package/dist/index.esm.js +31 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +31 -5
- package/dist/index.js.map +1 -1
- package/dist/services/SDKClientService.d.ts +1 -0
- package/dist/services/SDKClientService.d.ts.map +1 -1
- package/dist/test.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/i18n/el.d.ts
CHANGED
|
@@ -41,6 +41,9 @@ export declare const el: {
|
|
|
41
41
|
readonly cancel: "Ακύρωση";
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
+
readonly thoughts: {
|
|
45
|
+
readonly title: "Σκέψεις";
|
|
46
|
+
};
|
|
44
47
|
readonly connection: {
|
|
45
48
|
readonly connected: "Συνδεδεμένο για ενημερώσεις σε πραγματικό χρόνο";
|
|
46
49
|
readonly disconnected: "Αποσυνδεδεμένο από ενημερώσεις σε πραγματικό χρόνο";
|
package/dist/i18n/el.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"el.d.ts","sourceRoot":"","sources":["../../src/i18n/el.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"el.d.ts","sourceRoot":"","sources":["../../src/i18n/el.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyGL,CAAC"}
|
package/dist/i18n/en.d.ts
CHANGED
|
@@ -41,6 +41,9 @@ export declare const en: {
|
|
|
41
41
|
readonly cancel: "Cancel";
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
+
readonly thoughts: {
|
|
45
|
+
readonly title: "Thoughts";
|
|
46
|
+
};
|
|
44
47
|
readonly connection: {
|
|
45
48
|
readonly connected: "Real-time updates connected";
|
|
46
49
|
readonly disconnected: "Real-time updates disconnected";
|
package/dist/i18n/en.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyGL,CAAC"}
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -45,6 +45,9 @@ export declare const translations: {
|
|
|
45
45
|
readonly cancel: "Cancel";
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
+
readonly thoughts: {
|
|
49
|
+
readonly title: "Thoughts";
|
|
50
|
+
};
|
|
48
51
|
readonly connection: {
|
|
49
52
|
readonly connected: "Real-time updates connected";
|
|
50
53
|
readonly disconnected: "Real-time updates disconnected";
|
|
@@ -143,6 +146,9 @@ export declare const translations: {
|
|
|
143
146
|
readonly cancel: "Ακύρωση";
|
|
144
147
|
};
|
|
145
148
|
};
|
|
149
|
+
readonly thoughts: {
|
|
150
|
+
readonly title: "Σκέψεις";
|
|
151
|
+
};
|
|
146
152
|
readonly connection: {
|
|
147
153
|
readonly connected: "Συνδεδεμένο για ενημερώσεις σε πραγματικό χρόνο";
|
|
148
154
|
readonly disconnected: "Αποσυνδεδεμένο από ενημερώσεις σε πραγματικό χρόνο";
|
package/dist/i18n/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAG1B,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnC,MAAM,MAAM,eAAe,GAAG,OAAO,EAAE,CAAC;AAExC,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAG1B,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnC,MAAM,MAAM,eAAe,GAAG,OAAO,EAAE,CAAC;AAExC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGf,CAAC;AAEX,eAAO,MAAM,cAAc,GAAI,UAAU,QAAQ,EAAE,KAAK,MAAM,KAAG,MAsBhE,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAO,KAAK,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAK9E,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,KAAG,QAAQ,IAAI,QAE9D,CAAC"}
|
package/dist/index.css
CHANGED
|
@@ -55,9 +55,8 @@
|
|
|
55
55
|
--fusioni-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
56
56
|
--fusioni-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
57
57
|
|
|
58
|
-
/* Local rem base
|
|
59
|
-
|
|
60
|
-
shrink SDK typography (inputs, labels, timestamps, etc.). */
|
|
58
|
+
/* Local rem base (14px). At build time all `rem` units in this file are converted
|
|
59
|
+
to fixed `px` values so host-page html font-size cannot shrink SDK typography. */
|
|
61
60
|
--fusioni-rem: 14px;
|
|
62
61
|
}
|
|
63
62
|
|
|
@@ -1465,17 +1464,59 @@
|
|
|
1465
1464
|
}
|
|
1466
1465
|
|
|
1467
1466
|
.fusioni-message-thoughts {
|
|
1468
|
-
margin-top:
|
|
1469
|
-
|
|
1467
|
+
margin-top: 8.75px;
|
|
1468
|
+
color: var(--fusioni-text-secondary);
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
.fusioni-message-thoughts-panel {
|
|
1472
|
+
display: flex;
|
|
1473
|
+
align-items: flex-start;
|
|
1474
|
+
gap: 7px;
|
|
1475
|
+
border: 1px solid var(--fusioni-border-light);
|
|
1476
|
+
border-radius: 8px;
|
|
1477
|
+
padding: 7.700000000000001px 9.1px;
|
|
1478
|
+
background: color-mix(in srgb, var(--fusioni-bg-primary) 92%, var(--fusioni-bg-tertiary));
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
.fusioni-message-thoughts-icon {
|
|
1482
|
+
display: inline-flex;
|
|
1483
|
+
align-items: center;
|
|
1484
|
+
justify-content: center;
|
|
1485
|
+
flex: 0 0 auto;
|
|
1486
|
+
width: 18px;
|
|
1487
|
+
height: 18px;
|
|
1470
1488
|
color: var(--fusioni-text-muted);
|
|
1489
|
+
transform: translateY(0.7000000000000001px);
|
|
1471
1490
|
}
|
|
1472
1491
|
|
|
1473
|
-
.fusioni-message-thoughts
|
|
1474
|
-
|
|
1492
|
+
.fusioni-message-thoughts-icon svg {
|
|
1493
|
+
width: 16px;
|
|
1494
|
+
height: 16px;
|
|
1475
1495
|
}
|
|
1476
1496
|
|
|
1477
|
-
.fusioni-message-thoughts
|
|
1478
|
-
|
|
1497
|
+
.fusioni-message-thoughts-content {
|
|
1498
|
+
min-width: 0;
|
|
1499
|
+
margin: 0;
|
|
1500
|
+
color: var(--fusioni-text-secondary);
|
|
1501
|
+
font-size: 10.5px;
|
|
1502
|
+
line-height: 1.5;
|
|
1503
|
+
white-space: pre-wrap;
|
|
1504
|
+
overflow-wrap: anywhere;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
.fusioni-message-user .fusioni-message-thoughts-panel {
|
|
1508
|
+
border-color: rgba(255, 255, 255, 0.2);
|
|
1509
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
.fusioni-message-user .fusioni-message-thoughts-icon,
|
|
1513
|
+
.fusioni-message-user .fusioni-message-thoughts-content {
|
|
1514
|
+
color: #fff;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
.fusioni-chat-widget.dark .fusioni-message-thoughts-panel {
|
|
1518
|
+
border-color: var(--fusioni-border);
|
|
1519
|
+
background: color-mix(in srgb, var(--fusioni-bg-secondary) 88%, var(--fusioni-bg-primary));
|
|
1479
1520
|
}
|
|
1480
1521
|
|
|
1481
1522
|
.fusioni-message-actions {
|
package/dist/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ interface FusioniMemoryMessage {
|
|
|
29
29
|
has_error?: boolean;
|
|
30
30
|
role: 'user' | 'assistant' | 'system';
|
|
31
31
|
keywords: string[] | null;
|
|
32
|
-
thoughts: string | null;
|
|
32
|
+
thoughts: string | string[] | Record<string, unknown> | null;
|
|
33
33
|
created: Date;
|
|
34
34
|
content: string;
|
|
35
35
|
loading: boolean;
|
|
@@ -96,6 +96,7 @@ interface FusioniSDKConfig {
|
|
|
96
96
|
showThemeToggle?: boolean;
|
|
97
97
|
showFullscreenToggle?: boolean;
|
|
98
98
|
showLanguageSwitcher?: boolean;
|
|
99
|
+
showThoughts?: boolean;
|
|
99
100
|
position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
100
101
|
primaryColor?: string;
|
|
101
102
|
showConversationList?: boolean;
|
|
@@ -295,6 +296,9 @@ declare const en: {
|
|
|
295
296
|
readonly cancel: "Cancel";
|
|
296
297
|
};
|
|
297
298
|
};
|
|
299
|
+
readonly thoughts: {
|
|
300
|
+
readonly title: "Thoughts";
|
|
301
|
+
};
|
|
298
302
|
readonly connection: {
|
|
299
303
|
readonly connected: "Real-time updates connected";
|
|
300
304
|
readonly disconnected: "Real-time updates disconnected";
|