@websolutespa/bom-mixer-llm 0.0.7 → 0.0.8
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/CHANGELOG.md +64 -56
- package/dist/cjs/index.css +46 -19
- package/dist/cjs/index.js +325 -192
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.css +46 -19
- package/dist/esm/llm/components/Canvas/canvas.js +4 -271
- package/dist/esm/llm/components/Canvas/canvas.js.map +1 -1
- package/dist/esm/llm/components/CanvasOffscreen/canvas-offscreen.js +364 -0
- package/dist/esm/llm/components/CanvasOffscreen/canvas-offscreen.js.map +1 -0
- package/dist/esm/llm/components/Cta/cta.js +1 -3
- package/dist/esm/llm/components/Cta/cta.js.map +1 -1
- package/dist/esm/llm/components/Trigger/trigger.js +2 -6
- package/dist/esm/llm/components/Trigger/trigger.js.map +1 -1
- package/dist/esm/llm/llm.js +17 -14
- package/dist/esm/llm/llm.js.map +1 -1
- package/dist/esm/useLlm/useLlmView.js +172 -124
- package/dist/esm/useLlm/useLlmView.js.map +1 -1
- package/dist/types/llm/components/Canvas/canvas.d.ts +1 -14
- package/dist/types/llm/components/Canvas/canvas.d.ts.map +1 -1
- package/dist/types/llm/components/Canvas/old-canvas.d.ts +15 -0
- package/dist/types/llm/components/Canvas/old-canvas.d.ts.map +1 -0
- package/dist/types/llm/components/CanvasOffscreen/canvas-offscreen.d.ts +33 -0
- package/dist/types/llm/components/CanvasOffscreen/canvas-offscreen.d.ts.map +1 -0
- package/dist/types/llm/llm.d.ts.map +1 -1
- package/dist/types/useLlm/useLlmView.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/llm/components/Canvas/canvas.tsx +4 -320
- package/src/llm/components/Canvas/old-canvas.tsx +324 -0
- package/src/llm/components/CanvasOffscreen/canvas-offscreen.tsx +428 -0
- package/src/llm/components/Cta/_style.scss +16 -2
- package/src/llm/components/Cta/cta.tsx +1 -1
- package/src/llm/components/EventGroup/_style.scss +1 -0
- package/src/llm/components/FormRecap/_style.scss +1 -0
- package/src/llm/components/Header/_style.scss +1 -0
- package/src/llm/components/Hints/_style.scss +1 -0
- package/src/llm/components/Main/_style.scss +9 -0
- package/src/llm/components/Prompt/_style.scss +7 -1
- package/src/llm/components/Trigger/_style.scss +4 -3
- package/src/llm/components/Trigger/trigger.tsx +2 -2
- package/src/llm/llm.tsx +15 -12
- package/src/llm/scss/_typography.scss +1 -0
- package/src/useLlm/useLlmView.tsx +173 -107
package/CHANGELOG.md
CHANGED
|
@@ -1,56 +1,64 @@
|
|
|
1
|
-
# @websolutespa/bom-mixer-llm
|
|
2
|
-
|
|
3
|
-
## 0.0.
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Added:
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
## 0.0.
|
|
12
|
-
|
|
13
|
-
### Patch Changes
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
- @websolutespa/bom-
|
|
51
|
-
|
|
52
|
-
## 0.0.
|
|
53
|
-
|
|
54
|
-
### Patch Changes
|
|
55
|
-
|
|
56
|
-
-
|
|
1
|
+
# @websolutespa/bom-mixer-llm
|
|
2
|
+
|
|
3
|
+
## 0.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Added: CanvasOffscreenProvider
|
|
8
|
+
- Updated dependencies [75b1311]
|
|
9
|
+
- @websolutespa/bom-mixer-ui@1.7.8
|
|
10
|
+
|
|
11
|
+
## 0.0.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Added: theme, customTheme, customIntro
|
|
16
|
+
- Added: cross visibility check
|
|
17
|
+
- Fixing: textToChunks
|
|
18
|
+
|
|
19
|
+
## 0.0.6
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Fixing: markdown links
|
|
24
|
+
|
|
25
|
+
## 0.0.5
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Added: shared state between instances
|
|
30
|
+
|
|
31
|
+
## 0.0.4
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- Added: embed options
|
|
36
|
+
- Added: returning instance with methods
|
|
37
|
+
|
|
38
|
+
## 0.0.3
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- Updating: dependencies
|
|
43
|
+
- Updated dependencies
|
|
44
|
+
- @websolutespa/bom-mixer-models@1.7.2
|
|
45
|
+
- @websolutespa/bom-mixer-forms@0.3.1
|
|
46
|
+
- @websolutespa/bom-mixer-hooks@1.7.2
|
|
47
|
+
- @websolutespa/bom-mixer-icons@0.2.3
|
|
48
|
+
- @websolutespa/bom-mixer-store@1.7.3
|
|
49
|
+
- @websolutespa/bom-mixer-ui@1.7.5
|
|
50
|
+
- @websolutespa/bom-core@1.7.3
|
|
51
|
+
|
|
52
|
+
## 0.0.2
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- Modified: Speech synthesis & recognition, disclaimer, markdown
|
|
57
|
+
- Updated dependencies
|
|
58
|
+
- @websolutespa/bom-mixer-icons@0.2.2
|
|
59
|
+
|
|
60
|
+
## 0.0.1
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- Added: first release
|
package/dist/cjs/index.css
CHANGED
|
@@ -323,6 +323,7 @@ llm-embed {
|
|
|
323
323
|
font-weight: 500;
|
|
324
324
|
line-height: 1;
|
|
325
325
|
letter-spacing: 0.06em;
|
|
326
|
+
font-style: normal;
|
|
326
327
|
font-size: clamp(12px, 12px + (100vw - 375px) / 1545 * (2), 14px);
|
|
327
328
|
}
|
|
328
329
|
|
|
@@ -836,14 +837,14 @@ llm-embed {
|
|
|
836
837
|
}
|
|
837
838
|
|
|
838
839
|
.llm .llm__trigger {
|
|
840
|
+
position: relative;
|
|
839
841
|
display: flex;
|
|
840
842
|
justify-content: center;
|
|
841
|
-
font-size: 0;
|
|
842
|
-
pointer-events: auto;
|
|
843
843
|
margin: 24px;
|
|
844
844
|
border-radius: 50%;
|
|
845
|
+
font-size: 0;
|
|
846
|
+
pointer-events: auto;
|
|
845
847
|
cursor: pointer;
|
|
846
|
-
position: relative;
|
|
847
848
|
}
|
|
848
849
|
.llm .llm__trigger-btn {
|
|
849
850
|
position: relative;
|
|
@@ -856,6 +857,7 @@ llm-embed {
|
|
|
856
857
|
will-change: transform;
|
|
857
858
|
transition: 0.4s;
|
|
858
859
|
box-shadow: var(--llm-trigger-box-shadow);
|
|
860
|
+
pointer-events: auto;
|
|
859
861
|
cursor: pointer;
|
|
860
862
|
}
|
|
861
863
|
.llm .llm__trigger-btn > span {
|
|
@@ -965,6 +967,13 @@ llm-embed {
|
|
|
965
967
|
inset: 0;
|
|
966
968
|
overflow-x: hidden;
|
|
967
969
|
overflow-y: auto;
|
|
970
|
+
/*
|
|
971
|
+
&.lenis.lenis-stopped {
|
|
972
|
+
overflow-x: hidden;
|
|
973
|
+
overflow-y: auto;
|
|
974
|
+
pointer-events: none;
|
|
975
|
+
}
|
|
976
|
+
*/
|
|
968
977
|
}
|
|
969
978
|
.llm .llm__scroller::-webkit-scrollbar {
|
|
970
979
|
width: 6px;
|
|
@@ -1054,6 +1063,7 @@ llm-embed {
|
|
|
1054
1063
|
border-radius: 50%;
|
|
1055
1064
|
background: var(--llm-input-background);
|
|
1056
1065
|
color: var(--llm-input-accent);
|
|
1066
|
+
pointer-events: auto;
|
|
1057
1067
|
cursor: pointer;
|
|
1058
1068
|
}
|
|
1059
1069
|
.llm .llm__toggle-speak svg {
|
|
@@ -1162,6 +1172,7 @@ llm-embed {
|
|
|
1162
1172
|
text-transform: uppercase;
|
|
1163
1173
|
user-select: none;
|
|
1164
1174
|
color: var(--llm-color-foreground);
|
|
1175
|
+
pointer-events: auto;
|
|
1165
1176
|
cursor: pointer;
|
|
1166
1177
|
}
|
|
1167
1178
|
|
|
@@ -1236,6 +1247,7 @@ llm-embed {
|
|
|
1236
1247
|
border: var(--llm-hint-border);
|
|
1237
1248
|
font-family: var(--llm-hint-font-family);
|
|
1238
1249
|
backdrop-filter: blur(20px);
|
|
1250
|
+
pointer-events: auto;
|
|
1239
1251
|
cursor: pointer;
|
|
1240
1252
|
}
|
|
1241
1253
|
@media (min-width: 768px) {
|
|
@@ -1317,6 +1329,7 @@ llm-embed {
|
|
|
1317
1329
|
border-radius: 50%;
|
|
1318
1330
|
font-size: 16px;
|
|
1319
1331
|
color: var(--llm-input-accent);
|
|
1332
|
+
pointer-events: auto;
|
|
1320
1333
|
cursor: pointer;
|
|
1321
1334
|
}
|
|
1322
1335
|
.llm .llm__prompt-speak svg, .llm .llm__prompt-microphone svg {
|
|
@@ -1344,6 +1357,7 @@ llm-embed {
|
|
|
1344
1357
|
background: var(--llm-trigger-background);
|
|
1345
1358
|
color: var(--llm-trigger-foreground);
|
|
1346
1359
|
border-radius: 50%;
|
|
1360
|
+
pointer-events: auto;
|
|
1347
1361
|
cursor: pointer;
|
|
1348
1362
|
}
|
|
1349
1363
|
@media (min-width: 1024px) {
|
|
@@ -1378,12 +1392,11 @@ llm-embed {
|
|
|
1378
1392
|
.llm .llm__prompt-suggestions {
|
|
1379
1393
|
padding-bottom: clamp(8px, 8px + (100vw - 375px) / 1545 * (0), 8px);
|
|
1380
1394
|
width: 100%;
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
@media (min-width: 1024px) {
|
|
1384
|
-
.llm .llm__prompt-suggestions {
|
|
1395
|
+
/*
|
|
1396
|
+
@include bp(md) {
|
|
1385
1397
|
display: block;
|
|
1386
1398
|
}
|
|
1399
|
+
*/
|
|
1387
1400
|
}
|
|
1388
1401
|
.llm .llm__prompt-suggestions .llm__suggestions {
|
|
1389
1402
|
margin: 0 calc(clamp(20px, 20px + (100vw - 375px) / 1545 * (90), 110px) * -1);
|
|
@@ -1405,6 +1418,7 @@ llm-embed {
|
|
|
1405
1418
|
color: var(--llm-pill-foreground);
|
|
1406
1419
|
font-family: var(--llm-pill-font-family);
|
|
1407
1420
|
backdrop-filter: blur(20px);
|
|
1421
|
+
pointer-events: auto;
|
|
1408
1422
|
cursor: pointer;
|
|
1409
1423
|
}
|
|
1410
1424
|
.llm .llm__prompt-powered-by {
|
|
@@ -1420,6 +1434,7 @@ llm-embed {
|
|
|
1420
1434
|
color: var(--llm-color-foreground);
|
|
1421
1435
|
opacity: 0.4;
|
|
1422
1436
|
transition: opacity ease-in-out 250ms;
|
|
1437
|
+
pointer-events: auto;
|
|
1423
1438
|
cursor: pointer;
|
|
1424
1439
|
}
|
|
1425
1440
|
.llm .llm__prompt-powered-by:hover {
|
|
@@ -1767,6 +1782,7 @@ llm-embed {
|
|
|
1767
1782
|
}
|
|
1768
1783
|
.llm .llm__events-nav button {
|
|
1769
1784
|
color: currentColor;
|
|
1785
|
+
pointer-events: auto;
|
|
1770
1786
|
cursor: pointer;
|
|
1771
1787
|
}
|
|
1772
1788
|
.llm .llm__events-nav button.swiper-button-disabled {
|
|
@@ -1782,12 +1798,6 @@ llm-embed {
|
|
|
1782
1798
|
}
|
|
1783
1799
|
|
|
1784
1800
|
.llm .llm__cta {
|
|
1785
|
-
line-height: 1;
|
|
1786
|
-
font-family: var(--llm-font-secondary);
|
|
1787
|
-
font-weight: 300;
|
|
1788
|
-
line-height: 1;
|
|
1789
|
-
font-style: italic;
|
|
1790
|
-
font-size: clamp(14px, 14px + (100vw - 375px) / 1545 * (2), 16px);
|
|
1791
1801
|
position: relative;
|
|
1792
1802
|
display: inline-flex;
|
|
1793
1803
|
align-items: center;
|
|
@@ -1796,6 +1806,16 @@ llm-embed {
|
|
|
1796
1806
|
overflow: hidden;
|
|
1797
1807
|
white-space: nowrap;
|
|
1798
1808
|
transition: opacity 0.3s;
|
|
1809
|
+
pointer-events: auto;
|
|
1810
|
+
cursor: pointer;
|
|
1811
|
+
}
|
|
1812
|
+
.llm .llm__cta, .llm .llm__cta > span {
|
|
1813
|
+
line-height: 1;
|
|
1814
|
+
font-family: var(--llm-font-secondary);
|
|
1815
|
+
font-weight: 300;
|
|
1816
|
+
line-height: 1;
|
|
1817
|
+
font-style: italic;
|
|
1818
|
+
font-size: clamp(14px, 14px + (100vw - 375px) / 1545 * (2), 16px);
|
|
1799
1819
|
}
|
|
1800
1820
|
@media (hover: hover) {
|
|
1801
1821
|
.llm .llm__cta:hover {
|
|
@@ -1804,12 +1824,6 @@ llm-embed {
|
|
|
1804
1824
|
}
|
|
1805
1825
|
}
|
|
1806
1826
|
.llm .llm__cta--button, .llm .llm__cta--submit {
|
|
1807
|
-
line-height: 1;
|
|
1808
|
-
font-family: var(--llm-font-primary);
|
|
1809
|
-
font-weight: 500;
|
|
1810
|
-
line-height: 1;
|
|
1811
|
-
letter-spacing: 0.06em;
|
|
1812
|
-
font-size: clamp(12px, 12px + (100vw - 375px) / 1545 * (2), 14px);
|
|
1813
1827
|
background: var(--llm-color-primary-background);
|
|
1814
1828
|
color: var(--llm-color-primary-foreground);
|
|
1815
1829
|
height: 42px;
|
|
@@ -1819,8 +1833,18 @@ llm-embed {
|
|
|
1819
1833
|
border-radius: 50px;
|
|
1820
1834
|
overflow: hidden;
|
|
1821
1835
|
text-decoration: none;
|
|
1836
|
+
pointer-events: auto;
|
|
1822
1837
|
cursor: pointer;
|
|
1823
1838
|
}
|
|
1839
|
+
.llm .llm__cta--button, .llm .llm__cta--button > span, .llm .llm__cta--submit, .llm .llm__cta--submit > span {
|
|
1840
|
+
line-height: 1;
|
|
1841
|
+
font-family: var(--llm-font-primary);
|
|
1842
|
+
font-weight: 500;
|
|
1843
|
+
line-height: 1;
|
|
1844
|
+
letter-spacing: 0.06em;
|
|
1845
|
+
font-style: normal;
|
|
1846
|
+
font-size: clamp(12px, 12px + (100vw - 375px) / 1545 * (2), 14px);
|
|
1847
|
+
}
|
|
1824
1848
|
.llm .llm__cta--button .llm__background, .llm .llm__cta--submit .llm__background {
|
|
1825
1849
|
z-index: 1;
|
|
1826
1850
|
background: none;
|
|
@@ -1844,6 +1868,7 @@ llm-embed {
|
|
|
1844
1868
|
font-weight: 500;
|
|
1845
1869
|
line-height: 1;
|
|
1846
1870
|
letter-spacing: 0.06em;
|
|
1871
|
+
font-style: normal;
|
|
1847
1872
|
font-size: clamp(12px, 12px + (100vw - 375px) / 1545 * (2), 14px);
|
|
1848
1873
|
padding: 0 clamp(24px, 24px + (100vw - 375px) / 1545 * (24), 48px);
|
|
1849
1874
|
height: 42px;
|
|
@@ -1855,6 +1880,7 @@ llm-embed {
|
|
|
1855
1880
|
border-radius: 12px;
|
|
1856
1881
|
overflow: hidden;
|
|
1857
1882
|
text-decoration: none;
|
|
1883
|
+
pointer-events: auto;
|
|
1858
1884
|
cursor: pointer;
|
|
1859
1885
|
}
|
|
1860
1886
|
.llm .llm__cta--simple > span {
|
|
@@ -2268,6 +2294,7 @@ llm-embed {
|
|
|
2268
2294
|
position: relative;
|
|
2269
2295
|
display: block;
|
|
2270
2296
|
padding-left: 24px;
|
|
2297
|
+
pointer-events: auto;
|
|
2271
2298
|
cursor: pointer;
|
|
2272
2299
|
}
|
|
2273
2300
|
.llm .llm__subscribe-field.-privacy label:before, .llm .llm__subscribe-field.-privacy label:after {
|