@chatterfly/widget 0.4.0 → 0.5.0
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/embed.css +1 -1
- package/dist/embed.css.map +1 -1
- package/dist/embed.global.js +33 -27
- package/dist/embed.global.js.map +1 -1
- package/dist/index.css +50 -15
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +27 -3
- package/dist/index.d.ts +27 -3
- package/dist/index.js +465 -170
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +466 -171
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -661,7 +661,7 @@
|
|
|
661
661
|
display: flex;
|
|
662
662
|
flex-direction: column;
|
|
663
663
|
gap: 0.75rem;
|
|
664
|
-
|
|
664
|
+
min-height: 0;
|
|
665
665
|
}
|
|
666
666
|
.widget_chatMessageHuman,
|
|
667
667
|
.widget_chatMessageAssistant {
|
|
@@ -819,6 +819,7 @@
|
|
|
819
819
|
flex-direction: column;
|
|
820
820
|
gap: 0.5rem;
|
|
821
821
|
position: relative;
|
|
822
|
+
min-height: 30%;
|
|
822
823
|
}
|
|
823
824
|
.widget_bubbleRow {
|
|
824
825
|
display: flex;
|
|
@@ -988,6 +989,13 @@
|
|
|
988
989
|
display: flex;
|
|
989
990
|
flex-direction: column;
|
|
990
991
|
gap: 0.5rem;
|
|
992
|
+
flex-shrink: 0;
|
|
993
|
+
max-height: 60%;
|
|
994
|
+
overflow-y: auto;
|
|
995
|
+
min-height: 0;
|
|
996
|
+
}
|
|
997
|
+
.widget_activeInputAreaVoice {
|
|
998
|
+
max-height: 75%;
|
|
991
999
|
}
|
|
992
1000
|
.widget_formTimelineWrapper {
|
|
993
1001
|
border-bottom: 1px solid var(--cf-border);
|
|
@@ -1389,6 +1397,25 @@
|
|
|
1389
1397
|
border: 1px solid color-mix(in srgb, var(--cf-info) 20%, transparent);
|
|
1390
1398
|
animation: widget_cfVoiceFadeIn 0.2s ease-out;
|
|
1391
1399
|
}
|
|
1400
|
+
.widget_voiceLiveLog {
|
|
1401
|
+
display: flex;
|
|
1402
|
+
flex-direction: column;
|
|
1403
|
+
gap: 6px;
|
|
1404
|
+
max-height: 180px;
|
|
1405
|
+
overflow-y: auto;
|
|
1406
|
+
padding: 10px 14px;
|
|
1407
|
+
border-radius: var(--cf-radius);
|
|
1408
|
+
background: color-mix(in srgb, var(--cf-fg) 3%, transparent);
|
|
1409
|
+
border: 1px solid color-mix(in srgb, var(--cf-fg) 8%, transparent);
|
|
1410
|
+
}
|
|
1411
|
+
.widget_voiceLiveLogUser,
|
|
1412
|
+
.widget_voiceLiveLogAssistant {
|
|
1413
|
+
display: block;
|
|
1414
|
+
animation: widget_cfVoiceFadeIn 0.2s ease-out;
|
|
1415
|
+
}
|
|
1416
|
+
.widget_voiceLiveLogUser .widget_voiceTranscriptText {
|
|
1417
|
+
font-style: normal;
|
|
1418
|
+
}
|
|
1392
1419
|
.widget_voiceTranscriptLabel {
|
|
1393
1420
|
font-size: 0.75em;
|
|
1394
1421
|
color: var(--cf-muted);
|
|
@@ -1408,25 +1435,33 @@
|
|
|
1408
1435
|
animation: widget_cfVoiceShake 0.4s ease-out;
|
|
1409
1436
|
}
|
|
1410
1437
|
.widget_voiceOrbContainer {
|
|
1438
|
+
position: sticky;
|
|
1439
|
+
top: 0;
|
|
1440
|
+
z-index: 2;
|
|
1411
1441
|
display: flex;
|
|
1412
1442
|
flex-direction: column;
|
|
1413
1443
|
align-items: center;
|
|
1414
1444
|
gap: 8px;
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
position: sticky;
|
|
1418
|
-
bottom: 1rem;
|
|
1419
|
-
z-index: 10;
|
|
1445
|
+
width: 100%;
|
|
1446
|
+
padding: 8px 12px;
|
|
1420
1447
|
background: var(--cf-bg);
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1448
|
+
border-bottom: 1px solid var(--cf-border);
|
|
1449
|
+
}
|
|
1450
|
+
.widget_voiceOrbRow {
|
|
1451
|
+
display: flex;
|
|
1452
|
+
align-items: center;
|
|
1453
|
+
gap: 4px;
|
|
1424
1454
|
}
|
|
1425
1455
|
.widget_voiceOrbHint {
|
|
1426
1456
|
font-size: 0.8em;
|
|
1427
1457
|
color: var(--cf-muted);
|
|
1428
1458
|
transition: opacity 0.2s;
|
|
1429
1459
|
}
|
|
1460
|
+
.widget_voiceAssistantStatus {
|
|
1461
|
+
min-height: 1.2em;
|
|
1462
|
+
font-size: 0.75em;
|
|
1463
|
+
color: var(--cf-muted);
|
|
1464
|
+
}
|
|
1430
1465
|
.widget_voiceOrb {
|
|
1431
1466
|
position: relative;
|
|
1432
1467
|
width: 72px;
|
|
@@ -1469,6 +1504,8 @@
|
|
|
1469
1504
|
top: 0;
|
|
1470
1505
|
left: 0;
|
|
1471
1506
|
pointer-events: none;
|
|
1507
|
+
border: 2px solid color-mix(in srgb, var(--cf-primary) 40%, transparent);
|
|
1508
|
+
transition: transform 90ms linear, opacity 90ms linear;
|
|
1472
1509
|
}
|
|
1473
1510
|
.widget_voiceOrb_idle {
|
|
1474
1511
|
animation: widget_cfVoiceBreathe 3s ease-in-out infinite;
|
|
@@ -1478,11 +1515,9 @@
|
|
|
1478
1515
|
box-shadow: 0 0 0 8px color-mix(in srgb, var(--cf-primary) 25%, transparent);
|
|
1479
1516
|
}
|
|
1480
1517
|
.widget_voiceOrb_listening .widget_voiceOrbRing1 {
|
|
1481
|
-
animation: widget_cfVoicePulse 1.2s ease-out infinite;
|
|
1482
1518
|
border: 2px solid color-mix(in srgb, var(--cf-primary) 40%, transparent);
|
|
1483
1519
|
}
|
|
1484
1520
|
.widget_voiceOrb_listening .widget_voiceOrbRing2 {
|
|
1485
|
-
animation: widget_cfVoicePulse 1.2s ease-out 0.4s infinite;
|
|
1486
1521
|
border: 2px solid color-mix(in srgb, var(--cf-primary) 25%, transparent);
|
|
1487
1522
|
}
|
|
1488
1523
|
.widget_voiceOrb_speaking {
|
|
@@ -1490,9 +1525,11 @@
|
|
|
1490
1525
|
background: color-mix(in srgb, var(--cf-info) 80%, var(--cf-primary));
|
|
1491
1526
|
}
|
|
1492
1527
|
.widget_voiceOrb_speaking .widget_voiceOrbRing1 {
|
|
1493
|
-
animation: widget_cfVoiceWave 1.6s ease-in-out infinite;
|
|
1494
1528
|
border: 2px solid color-mix(in srgb, var(--cf-info) 30%, transparent);
|
|
1495
1529
|
}
|
|
1530
|
+
.widget_voiceOrb_speaking .widget_voiceOrbRing2 {
|
|
1531
|
+
border-color: color-mix(in srgb, var(--cf-info) 22%, transparent);
|
|
1532
|
+
}
|
|
1496
1533
|
.widget_voiceOrb_processing {
|
|
1497
1534
|
animation: none;
|
|
1498
1535
|
}
|
|
@@ -1632,9 +1669,6 @@
|
|
|
1632
1669
|
margin-top: 8px;
|
|
1633
1670
|
}
|
|
1634
1671
|
.widget_voiceMuteButton {
|
|
1635
|
-
position: absolute;
|
|
1636
|
-
top: 8px;
|
|
1637
|
-
right: 8px;
|
|
1638
1672
|
background: transparent;
|
|
1639
1673
|
border: none;
|
|
1640
1674
|
cursor: pointer;
|
|
@@ -1648,6 +1682,7 @@
|
|
|
1648
1682
|
border-radius: 4px;
|
|
1649
1683
|
user-select: none;
|
|
1650
1684
|
-webkit-user-select: none;
|
|
1685
|
+
flex-shrink: 0;
|
|
1651
1686
|
}
|
|
1652
1687
|
.widget_voiceMuteButton:hover {
|
|
1653
1688
|
opacity: 0.9;
|