@fusioni/client-sdk 1.1.23 → 1.1.25
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 +110 -21
- 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
|
|
|
@@ -105,6 +104,16 @@
|
|
|
105
104
|
background-color: var(--fusioni-bg-primary);
|
|
106
105
|
}
|
|
107
106
|
|
|
107
|
+
/* Form controls inside the widget: explicit typography so UA / inherited styles
|
|
108
|
+
cannot shrink inputs (common inside Shadow DOM when host sets small html font-size). */
|
|
109
|
+
.fusioni-chat-widget textarea,
|
|
110
|
+
.fusioni-chat-widget input {
|
|
111
|
+
font-family: inherit;
|
|
112
|
+
font-size: 14px;
|
|
113
|
+
line-height: 1.5;
|
|
114
|
+
font-weight: 400;
|
|
115
|
+
}
|
|
116
|
+
|
|
108
117
|
/* Floating Button */
|
|
109
118
|
.fusioni-floating-button {
|
|
110
119
|
position: fixed;
|
|
@@ -1465,17 +1474,59 @@
|
|
|
1465
1474
|
}
|
|
1466
1475
|
|
|
1467
1476
|
.fusioni-message-thoughts {
|
|
1468
|
-
margin-top:
|
|
1469
|
-
|
|
1477
|
+
margin-top: 8.75px;
|
|
1478
|
+
color: var(--fusioni-text-secondary);
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
.fusioni-message-thoughts-panel {
|
|
1482
|
+
display: flex;
|
|
1483
|
+
align-items: flex-start;
|
|
1484
|
+
gap: 7px;
|
|
1485
|
+
border: 1px solid var(--fusioni-border-light);
|
|
1486
|
+
border-radius: 8px;
|
|
1487
|
+
padding: 7.700000000000001px 9.1px;
|
|
1488
|
+
background: color-mix(in srgb, var(--fusioni-bg-primary) 92%, var(--fusioni-bg-tertiary));
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
.fusioni-message-thoughts-icon {
|
|
1492
|
+
display: inline-flex;
|
|
1493
|
+
align-items: center;
|
|
1494
|
+
justify-content: center;
|
|
1495
|
+
flex: 0 0 auto;
|
|
1496
|
+
width: 18px;
|
|
1497
|
+
height: 18px;
|
|
1470
1498
|
color: var(--fusioni-text-muted);
|
|
1499
|
+
transform: translateY(0.7000000000000001px);
|
|
1471
1500
|
}
|
|
1472
1501
|
|
|
1473
|
-
.fusioni-message-thoughts
|
|
1474
|
-
|
|
1502
|
+
.fusioni-message-thoughts-icon svg {
|
|
1503
|
+
width: 16px;
|
|
1504
|
+
height: 16px;
|
|
1475
1505
|
}
|
|
1476
1506
|
|
|
1477
|
-
.fusioni-message-thoughts
|
|
1478
|
-
|
|
1507
|
+
.fusioni-message-thoughts-content {
|
|
1508
|
+
min-width: 0;
|
|
1509
|
+
margin: 0;
|
|
1510
|
+
color: var(--fusioni-text-secondary);
|
|
1511
|
+
font-size: 10.5px;
|
|
1512
|
+
line-height: 1.5;
|
|
1513
|
+
white-space: pre-wrap;
|
|
1514
|
+
overflow-wrap: anywhere;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
.fusioni-message-user .fusioni-message-thoughts-panel {
|
|
1518
|
+
border-color: rgba(255, 255, 255, 0.2);
|
|
1519
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
.fusioni-message-user .fusioni-message-thoughts-icon,
|
|
1523
|
+
.fusioni-message-user .fusioni-message-thoughts-content {
|
|
1524
|
+
color: #fff;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
.fusioni-chat-widget.dark .fusioni-message-thoughts-panel {
|
|
1528
|
+
border-color: var(--fusioni-border);
|
|
1529
|
+
background: color-mix(in srgb, var(--fusioni-bg-secondary) 88%, var(--fusioni-bg-primary));
|
|
1479
1530
|
}
|
|
1480
1531
|
|
|
1481
1532
|
.fusioni-message-actions {
|
|
@@ -1608,7 +1659,7 @@
|
|
|
1608
1659
|
|
|
1609
1660
|
.fusioni-input-wrapper {
|
|
1610
1661
|
display: flex;
|
|
1611
|
-
align-items:
|
|
1662
|
+
align-items: center;
|
|
1612
1663
|
gap: 7px;
|
|
1613
1664
|
background: var(--fusioni-bg-secondary);
|
|
1614
1665
|
border: 2px solid var(--fusioni-border);
|
|
@@ -1628,17 +1679,38 @@
|
|
|
1628
1679
|
border: none;
|
|
1629
1680
|
outline: none;
|
|
1630
1681
|
resize: none;
|
|
1682
|
+
margin: 0;
|
|
1631
1683
|
font-family: inherit;
|
|
1632
|
-
font-size:
|
|
1684
|
+
font-size: 14px;
|
|
1685
|
+
font-weight: 400;
|
|
1633
1686
|
line-height: 1.5;
|
|
1634
1687
|
color: var(--fusioni-text-primary);
|
|
1635
|
-
min-height:
|
|
1688
|
+
min-height: 22px;
|
|
1636
1689
|
max-height: 120px;
|
|
1637
|
-
padding: 7px;
|
|
1690
|
+
padding: 3.5px 7px;
|
|
1638
1691
|
}
|
|
1639
1692
|
|
|
1640
1693
|
.fusioni-textarea::placeholder {
|
|
1641
1694
|
color: var(--fusioni-text-muted);
|
|
1695
|
+
font-family: inherit;
|
|
1696
|
+
font-size: 14px;
|
|
1697
|
+
font-weight: 400;
|
|
1698
|
+
line-height: 1.5;
|
|
1699
|
+
opacity: 1;
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
.fusioni-textarea::-webkit-input-placeholder {
|
|
1703
|
+
color: var(--fusioni-text-muted);
|
|
1704
|
+
font-size: 14px;
|
|
1705
|
+
line-height: 1.5;
|
|
1706
|
+
opacity: 1;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
.fusioni-textarea::-moz-placeholder {
|
|
1710
|
+
color: var(--fusioni-text-muted);
|
|
1711
|
+
font-size: 14px;
|
|
1712
|
+
line-height: 1.5;
|
|
1713
|
+
opacity: 1;
|
|
1642
1714
|
}
|
|
1643
1715
|
|
|
1644
1716
|
.fusioni-input-actions {
|
|
@@ -4232,8 +4304,8 @@
|
|
|
4232
4304
|
}
|
|
4233
4305
|
|
|
4234
4306
|
.fusioni-textarea {
|
|
4235
|
-
min-height:
|
|
4236
|
-
padding:
|
|
4307
|
+
min-height: 22px;
|
|
4308
|
+
padding: 3.5px 5.25px;
|
|
4237
4309
|
}
|
|
4238
4310
|
|
|
4239
4311
|
.fusioni-message-list {
|
|
@@ -4827,9 +4899,9 @@
|
|
|
4827
4899
|
}
|
|
4828
4900
|
|
|
4829
4901
|
.fusioni-input-wrapper {
|
|
4830
|
-
align-items:
|
|
4902
|
+
align-items: center;
|
|
4831
4903
|
gap: 7px;
|
|
4832
|
-
min-height:
|
|
4904
|
+
min-height: 52px;
|
|
4833
4905
|
padding: 7px 7px 7px 10.5px;
|
|
4834
4906
|
border-radius: 18px;
|
|
4835
4907
|
border: 1px solid color-mix(in srgb, var(--fusioni-border) 86%, var(--fusioni-primary) 14%);
|
|
@@ -4846,22 +4918,39 @@
|
|
|
4846
4918
|
}
|
|
4847
4919
|
|
|
4848
4920
|
.fusioni-textarea {
|
|
4849
|
-
min-height:
|
|
4921
|
+
min-height: 22px;
|
|
4850
4922
|
max-height: 128px;
|
|
4851
|
-
padding:
|
|
4923
|
+
padding: 3.5px 3.5px;
|
|
4852
4924
|
color: var(--fusioni-text-primary);
|
|
4853
|
-
font-size:
|
|
4925
|
+
font-size: 14px;
|
|
4854
4926
|
line-height: 1.5;
|
|
4855
4927
|
}
|
|
4856
4928
|
|
|
4857
4929
|
.fusioni-textarea::placeholder {
|
|
4858
4930
|
color: color-mix(in srgb, var(--fusioni-text-muted) 86%, var(--fusioni-text-secondary));
|
|
4931
|
+
font-size: 14px;
|
|
4932
|
+
line-height: 1.5;
|
|
4933
|
+
opacity: 1;
|
|
4934
|
+
}
|
|
4935
|
+
|
|
4936
|
+
.fusioni-textarea::-webkit-input-placeholder {
|
|
4937
|
+
color: color-mix(in srgb, var(--fusioni-text-muted) 86%, var(--fusioni-text-secondary));
|
|
4938
|
+
font-size: 14px;
|
|
4939
|
+
line-height: 1.5;
|
|
4940
|
+
opacity: 1;
|
|
4941
|
+
}
|
|
4942
|
+
|
|
4943
|
+
.fusioni-textarea::-moz-placeholder {
|
|
4944
|
+
color: color-mix(in srgb, var(--fusioni-text-muted) 86%, var(--fusioni-text-secondary));
|
|
4945
|
+
font-size: 14px;
|
|
4946
|
+
line-height: 1.5;
|
|
4947
|
+
opacity: 1;
|
|
4859
4948
|
}
|
|
4860
4949
|
|
|
4861
4950
|
.fusioni-input-actions {
|
|
4862
4951
|
align-items: center;
|
|
4863
4952
|
gap: 3.5px;
|
|
4864
|
-
padding-bottom:
|
|
4953
|
+
padding-bottom: 0;
|
|
4865
4954
|
}
|
|
4866
4955
|
|
|
4867
4956
|
.fusioni-input-actions .fusioni-btn-icon {
|
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";
|