@chatterfly/widget 0.4.0 → 0.6.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/index.css CHANGED
@@ -661,7 +661,7 @@
661
661
  display: flex;
662
662
  flex-direction: column;
663
663
  gap: 0.75rem;
664
- max-height: 360px;
664
+ min-height: 0;
665
665
  }
666
666
  .widget_chatMessageHuman,
667
667
  .widget_chatMessageAssistant {
@@ -819,6 +819,43 @@
819
819
  flex-direction: column;
820
820
  gap: 0.5rem;
821
821
  position: relative;
822
+ min-height: 30%;
823
+ }
824
+ .widget_toolActivity {
825
+ align-self: center;
826
+ display: inline-flex;
827
+ align-items: center;
828
+ gap: 6px;
829
+ min-height: 24px;
830
+ padding: 3px 9px;
831
+ border: 1px solid var(--cf-color-border);
832
+ border-radius: 999px;
833
+ background: var(--cf-color-surface);
834
+ color: var(--cf-color-text-muted);
835
+ font-size: 12px;
836
+ line-height: 1.25;
837
+ }
838
+ .widget_toolActivityPulse,
839
+ .widget_toolActivityDone {
840
+ width: 7px;
841
+ height: 7px;
842
+ flex: 0 0 7px;
843
+ border-radius: 50%;
844
+ background: var(--cf-color-primary);
845
+ }
846
+ .widget_toolActivityPulse {
847
+ animation: widget_cf-tool-pulse 1.2s ease-in-out infinite;
848
+ }
849
+ .widget_toolActivityDone {
850
+ background: var(--cf-color-success, #15803d);
851
+ }
852
+ @keyframes widget_cf-tool-pulse {
853
+ 0%, 100% {
854
+ opacity: 0.35;
855
+ }
856
+ 50% {
857
+ opacity: 1;
858
+ }
822
859
  }
823
860
  .widget_bubbleRow {
824
861
  display: flex;
@@ -988,6 +1025,13 @@
988
1025
  display: flex;
989
1026
  flex-direction: column;
990
1027
  gap: 0.5rem;
1028
+ flex-shrink: 0;
1029
+ max-height: 60%;
1030
+ overflow-y: auto;
1031
+ min-height: 0;
1032
+ }
1033
+ .widget_activeInputAreaVoice {
1034
+ max-height: 75%;
991
1035
  }
992
1036
  .widget_formTimelineWrapper {
993
1037
  border-bottom: 1px solid var(--cf-border);
@@ -1389,6 +1433,25 @@
1389
1433
  border: 1px solid color-mix(in srgb, var(--cf-info) 20%, transparent);
1390
1434
  animation: widget_cfVoiceFadeIn 0.2s ease-out;
1391
1435
  }
1436
+ .widget_voiceLiveLog {
1437
+ display: flex;
1438
+ flex-direction: column;
1439
+ gap: 6px;
1440
+ max-height: 180px;
1441
+ overflow-y: auto;
1442
+ padding: 10px 14px;
1443
+ border-radius: var(--cf-radius);
1444
+ background: color-mix(in srgb, var(--cf-fg) 3%, transparent);
1445
+ border: 1px solid color-mix(in srgb, var(--cf-fg) 8%, transparent);
1446
+ }
1447
+ .widget_voiceLiveLogUser,
1448
+ .widget_voiceLiveLogAssistant {
1449
+ display: block;
1450
+ animation: widget_cfVoiceFadeIn 0.2s ease-out;
1451
+ }
1452
+ .widget_voiceLiveLogUser .widget_voiceTranscriptText {
1453
+ font-style: normal;
1454
+ }
1392
1455
  .widget_voiceTranscriptLabel {
1393
1456
  font-size: 0.75em;
1394
1457
  color: var(--cf-muted);
@@ -1407,26 +1470,53 @@
1407
1470
  margin: 0;
1408
1471
  animation: widget_cfVoiceShake 0.4s ease-out;
1409
1472
  }
1410
- .widget_voiceOrbContainer {
1473
+ .widget_voiceErrorGroup {
1411
1474
  display: flex;
1412
1475
  flex-direction: column;
1413
1476
  align-items: center;
1414
1477
  gap: 8px;
1415
1478
  }
1416
- .widget_voiceOrbContainerSticky {
1479
+ .widget_voiceRetryButton {
1480
+ border: 1px solid var(--cf-border);
1481
+ border-radius: 6px;
1482
+ background: var(--cf-input-bg);
1483
+ color: var(--cf-fg);
1484
+ padding: 6px 12px;
1485
+ font: inherit;
1486
+ cursor: pointer;
1487
+ }
1488
+ .widget_voiceRetryButton:focus-visible {
1489
+ outline: 2px solid var(--cf-primary);
1490
+ outline-offset: 2px;
1491
+ }
1492
+ .widget_voiceOrbContainer {
1417
1493
  position: sticky;
1418
- bottom: 1rem;
1419
- z-index: 10;
1494
+ top: 0;
1495
+ z-index: 2;
1496
+ display: flex;
1497
+ flex-direction: column;
1498
+ align-items: center;
1499
+ gap: 8px;
1500
+ width: 100%;
1501
+ padding: 8px 12px;
1420
1502
  background: var(--cf-bg);
1421
- padding: 8px 16px 4px;
1422
- border-radius: 999px;
1423
- box-shadow: 0 -4px 16px color-mix(in srgb, var(--cf-bg) 70%, transparent);
1503
+ border-bottom: 1px solid var(--cf-border);
1504
+ }
1505
+ .widget_voiceOrbRow {
1506
+ display: flex;
1507
+ align-items: center;
1508
+ gap: 4px;
1424
1509
  }
1425
1510
  .widget_voiceOrbHint {
1426
1511
  font-size: 0.8em;
1427
1512
  color: var(--cf-muted);
1428
1513
  transition: opacity 0.2s;
1429
1514
  }
1515
+ .widget_voiceAssistantStatus {
1516
+ min-height: 1.2em;
1517
+ font-size: 0.75em;
1518
+ color: var(--cf-muted);
1519
+ }
1430
1520
  .widget_voiceOrb {
1431
1521
  position: relative;
1432
1522
  width: 72px;
@@ -1469,6 +1559,8 @@
1469
1559
  top: 0;
1470
1560
  left: 0;
1471
1561
  pointer-events: none;
1562
+ border: 2px solid color-mix(in srgb, var(--cf-primary) 40%, transparent);
1563
+ transition: transform 90ms linear, opacity 90ms linear;
1472
1564
  }
1473
1565
  .widget_voiceOrb_idle {
1474
1566
  animation: widget_cfVoiceBreathe 3s ease-in-out infinite;
@@ -1478,11 +1570,9 @@
1478
1570
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--cf-primary) 25%, transparent);
1479
1571
  }
1480
1572
  .widget_voiceOrb_listening .widget_voiceOrbRing1 {
1481
- animation: widget_cfVoicePulse 1.2s ease-out infinite;
1482
1573
  border: 2px solid color-mix(in srgb, var(--cf-primary) 40%, transparent);
1483
1574
  }
1484
1575
  .widget_voiceOrb_listening .widget_voiceOrbRing2 {
1485
- animation: widget_cfVoicePulse 1.2s ease-out 0.4s infinite;
1486
1576
  border: 2px solid color-mix(in srgb, var(--cf-primary) 25%, transparent);
1487
1577
  }
1488
1578
  .widget_voiceOrb_speaking {
@@ -1490,9 +1580,11 @@
1490
1580
  background: color-mix(in srgb, var(--cf-info) 80%, var(--cf-primary));
1491
1581
  }
1492
1582
  .widget_voiceOrb_speaking .widget_voiceOrbRing1 {
1493
- animation: widget_cfVoiceWave 1.6s ease-in-out infinite;
1494
1583
  border: 2px solid color-mix(in srgb, var(--cf-info) 30%, transparent);
1495
1584
  }
1585
+ .widget_voiceOrb_speaking .widget_voiceOrbRing2 {
1586
+ border-color: color-mix(in srgb, var(--cf-info) 22%, transparent);
1587
+ }
1496
1588
  .widget_voiceOrb_processing {
1497
1589
  animation: none;
1498
1590
  }
@@ -1632,9 +1724,6 @@
1632
1724
  margin-top: 8px;
1633
1725
  }
1634
1726
  .widget_voiceMuteButton {
1635
- position: absolute;
1636
- top: 8px;
1637
- right: 8px;
1638
1727
  background: transparent;
1639
1728
  border: none;
1640
1729
  cursor: pointer;
@@ -1648,6 +1737,7 @@
1648
1737
  border-radius: 4px;
1649
1738
  user-select: none;
1650
1739
  -webkit-user-select: none;
1740
+ flex-shrink: 0;
1651
1741
  }
1652
1742
  .widget_voiceMuteButton:hover {
1653
1743
  opacity: 0.9;