@chatterfly/widget 0.3.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/index.css CHANGED
@@ -65,6 +65,7 @@
65
65
  }
66
66
  }
67
67
  .widget_widget {
68
+ position: relative;
68
69
  font-family: var(--cf-font);
69
70
  font-size: 14px;
70
71
  color: var(--cf-fg);
@@ -660,7 +661,7 @@
660
661
  display: flex;
661
662
  flex-direction: column;
662
663
  gap: 0.75rem;
663
- max-height: 360px;
664
+ min-height: 0;
664
665
  }
665
666
  .widget_chatMessageHuman,
666
667
  .widget_chatMessageAssistant {
@@ -818,6 +819,7 @@
818
819
  flex-direction: column;
819
820
  gap: 0.5rem;
820
821
  position: relative;
822
+ min-height: 30%;
821
823
  }
822
824
  .widget_bubbleRow {
823
825
  display: flex;
@@ -987,6 +989,13 @@
987
989
  display: flex;
988
990
  flex-direction: column;
989
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%;
990
999
  }
991
1000
  .widget_formTimelineWrapper {
992
1001
  border-bottom: 1px solid var(--cf-border);
@@ -1119,6 +1128,24 @@
1119
1128
  background: var(--cf-surface);
1120
1129
  border-bottom: 1px solid var(--cf-border);
1121
1130
  }
1131
+ .widget_reconnectingPill {
1132
+ position: absolute;
1133
+ top: 0.5rem;
1134
+ left: 50%;
1135
+ transform: translateX(-50%);
1136
+ z-index: 5;
1137
+ display: flex;
1138
+ align-items: center;
1139
+ gap: 0.4rem;
1140
+ padding: 0.25rem 0.65rem;
1141
+ font-size: 11px;
1142
+ color: var(--cf-muted);
1143
+ background: var(--cf-surface);
1144
+ border: 1px solid var(--cf-border);
1145
+ border-radius: 999px;
1146
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
1147
+ pointer-events: none;
1148
+ }
1122
1149
  .widget_terminalBanner {
1123
1150
  padding: 0.75rem 1rem;
1124
1151
  text-align: center;
@@ -1134,6 +1161,77 @@
1134
1161
  color: var(--cf-error);
1135
1162
  background: color-mix(in srgb, var(--cf-error) 6%, transparent);
1136
1163
  }
1164
+ .widget_startNewConversationButton {
1165
+ display: block;
1166
+ margin: 0.625rem auto 0;
1167
+ padding: 0.4rem 1rem;
1168
+ background: transparent;
1169
+ color: inherit;
1170
+ border: 1px solid currentColor;
1171
+ border-radius: var(--cf-radius);
1172
+ font-family: var(--cf-font);
1173
+ font-size: 12px;
1174
+ font-weight: 600;
1175
+ cursor: pointer;
1176
+ opacity: 0.85;
1177
+ transition: opacity 0.15s;
1178
+ }
1179
+ .widget_startNewConversationButton:hover {
1180
+ opacity: 1;
1181
+ }
1182
+ .widget_gateCard {
1183
+ display: flex;
1184
+ flex-direction: column;
1185
+ align-items: center;
1186
+ justify-content: center;
1187
+ gap: 0.75rem;
1188
+ padding: 2rem 1.5rem;
1189
+ text-align: center;
1190
+ }
1191
+ .widget_gateTitle {
1192
+ font-size: 15px;
1193
+ font-weight: 600;
1194
+ color: var(--cf-fg);
1195
+ }
1196
+ .widget_gateDescription {
1197
+ font-size: 13px;
1198
+ color: var(--cf-muted);
1199
+ }
1200
+ .widget_gateActions {
1201
+ display: flex;
1202
+ gap: 0.5rem;
1203
+ margin-top: 0.25rem;
1204
+ }
1205
+ .widget_gateButtonPrimary {
1206
+ padding: 0.5rem 1.25rem;
1207
+ background: var(--cf-primary);
1208
+ color: #fff;
1209
+ border: none;
1210
+ border-radius: var(--cf-radius);
1211
+ font-family: var(--cf-font);
1212
+ font-size: 13px;
1213
+ font-weight: 600;
1214
+ cursor: pointer;
1215
+ transition: opacity 0.15s;
1216
+ }
1217
+ .widget_gateButtonPrimary:hover {
1218
+ opacity: 0.88;
1219
+ }
1220
+ .widget_gateButtonSecondary {
1221
+ padding: 0.5rem 1.25rem;
1222
+ background: transparent;
1223
+ color: var(--cf-fg);
1224
+ border: 1px solid var(--cf-border);
1225
+ border-radius: var(--cf-radius);
1226
+ font-family: var(--cf-font);
1227
+ font-size: 13px;
1228
+ font-weight: 600;
1229
+ cursor: pointer;
1230
+ transition: background 0.15s;
1231
+ }
1232
+ .widget_gateButtonSecondary:hover {
1233
+ background: var(--cf-surface);
1234
+ }
1137
1235
  .widget_typingIndicator {
1138
1236
  display: flex;
1139
1237
  gap: 4px;
@@ -1299,6 +1397,25 @@
1299
1397
  border: 1px solid color-mix(in srgb, var(--cf-info) 20%, transparent);
1300
1398
  animation: widget_cfVoiceFadeIn 0.2s ease-out;
1301
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
+ }
1302
1419
  .widget_voiceTranscriptLabel {
1303
1420
  font-size: 0.75em;
1304
1421
  color: var(--cf-muted);
@@ -1318,25 +1435,33 @@
1318
1435
  animation: widget_cfVoiceShake 0.4s ease-out;
1319
1436
  }
1320
1437
  .widget_voiceOrbContainer {
1438
+ position: sticky;
1439
+ top: 0;
1440
+ z-index: 2;
1321
1441
  display: flex;
1322
1442
  flex-direction: column;
1323
1443
  align-items: center;
1324
1444
  gap: 8px;
1325
- }
1326
- .widget_voiceOrbContainerSticky {
1327
- position: sticky;
1328
- bottom: 1rem;
1329
- z-index: 10;
1445
+ width: 100%;
1446
+ padding: 8px 12px;
1330
1447
  background: var(--cf-bg);
1331
- padding: 8px 16px 4px;
1332
- border-radius: 999px;
1333
- box-shadow: 0 -4px 16px color-mix(in srgb, var(--cf-bg) 70%, transparent);
1448
+ border-bottom: 1px solid var(--cf-border);
1449
+ }
1450
+ .widget_voiceOrbRow {
1451
+ display: flex;
1452
+ align-items: center;
1453
+ gap: 4px;
1334
1454
  }
1335
1455
  .widget_voiceOrbHint {
1336
1456
  font-size: 0.8em;
1337
1457
  color: var(--cf-muted);
1338
1458
  transition: opacity 0.2s;
1339
1459
  }
1460
+ .widget_voiceAssistantStatus {
1461
+ min-height: 1.2em;
1462
+ font-size: 0.75em;
1463
+ color: var(--cf-muted);
1464
+ }
1340
1465
  .widget_voiceOrb {
1341
1466
  position: relative;
1342
1467
  width: 72px;
@@ -1379,6 +1504,8 @@
1379
1504
  top: 0;
1380
1505
  left: 0;
1381
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;
1382
1509
  }
1383
1510
  .widget_voiceOrb_idle {
1384
1511
  animation: widget_cfVoiceBreathe 3s ease-in-out infinite;
@@ -1388,11 +1515,9 @@
1388
1515
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--cf-primary) 25%, transparent);
1389
1516
  }
1390
1517
  .widget_voiceOrb_listening .widget_voiceOrbRing1 {
1391
- animation: widget_cfVoicePulse 1.2s ease-out infinite;
1392
1518
  border: 2px solid color-mix(in srgb, var(--cf-primary) 40%, transparent);
1393
1519
  }
1394
1520
  .widget_voiceOrb_listening .widget_voiceOrbRing2 {
1395
- animation: widget_cfVoicePulse 1.2s ease-out 0.4s infinite;
1396
1521
  border: 2px solid color-mix(in srgb, var(--cf-primary) 25%, transparent);
1397
1522
  }
1398
1523
  .widget_voiceOrb_speaking {
@@ -1400,9 +1525,11 @@
1400
1525
  background: color-mix(in srgb, var(--cf-info) 80%, var(--cf-primary));
1401
1526
  }
1402
1527
  .widget_voiceOrb_speaking .widget_voiceOrbRing1 {
1403
- animation: widget_cfVoiceWave 1.6s ease-in-out infinite;
1404
1528
  border: 2px solid color-mix(in srgb, var(--cf-info) 30%, transparent);
1405
1529
  }
1530
+ .widget_voiceOrb_speaking .widget_voiceOrbRing2 {
1531
+ border-color: color-mix(in srgb, var(--cf-info) 22%, transparent);
1532
+ }
1406
1533
  .widget_voiceOrb_processing {
1407
1534
  animation: none;
1408
1535
  }
@@ -1542,9 +1669,6 @@
1542
1669
  margin-top: 8px;
1543
1670
  }
1544
1671
  .widget_voiceMuteButton {
1545
- position: absolute;
1546
- top: 8px;
1547
- right: 8px;
1548
1672
  background: transparent;
1549
1673
  border: none;
1550
1674
  cursor: pointer;
@@ -1558,6 +1682,7 @@
1558
1682
  border-radius: 4px;
1559
1683
  user-select: none;
1560
1684
  -webkit-user-select: none;
1685
+ flex-shrink: 0;
1561
1686
  }
1562
1687
  .widget_voiceMuteButton:hover {
1563
1688
  opacity: 0.9;