@nexface/chat 0.1.4-alpha.2 → 0.1.4-alpha.5

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.
Files changed (44) hide show
  1. package/dist/assistant-components.d.ts +0 -2
  2. package/dist/assistant-components.js +1 -2
  3. package/dist/assistant-components.js.map +1 -1
  4. package/dist/default-chat.d.ts +1 -1
  5. package/dist/default-chat.js +17 -2
  6. package/dist/default-chat.js.map +1 -1
  7. package/dist/protocol-messages.js +2 -0
  8. package/dist/protocol-messages.js.map +1 -1
  9. package/dist/storage.js +20 -4
  10. package/dist/storage.js.map +1 -1
  11. package/dist/styles.css +26 -263
  12. package/dist/types.d.ts +1 -0
  13. package/dist/types.js.map +1 -1
  14. package/dist/ui/avatar.d.ts +1 -4
  15. package/dist/ui/avatar.js +1 -10
  16. package/dist/ui/avatar.js.map +1 -1
  17. package/dist/ui/dialog.d.ts +1 -4
  18. package/dist/ui/dialog.js +1 -10
  19. package/dist/ui/dialog.js.map +1 -1
  20. package/dist/ui/dropdown-menu.d.ts +1 -16
  21. package/dist/ui/dropdown-menu.js +1 -38
  22. package/dist/ui/dropdown-menu.js.map +1 -1
  23. package/dist/ui/home-demo/action-bar.js +1 -1
  24. package/dist/ui/home-demo/action-bar.js.map +1 -1
  25. package/dist/ui/home-demo/suggestions.js +3 -2
  26. package/dist/ui/home-demo/suggestions.js.map +1 -1
  27. package/dist/ui/home-demo/type.d.ts +0 -3
  28. package/dist/ui/home-demo/type.js +0 -3
  29. package/dist/ui/home-demo/type.js.map +1 -1
  30. package/dist/ui/reasoning.aui.d.ts +5 -18
  31. package/dist/ui/reasoning.aui.js +4 -30
  32. package/dist/ui/reasoning.aui.js.map +1 -1
  33. package/dist/ui/reasoning.d.ts +2 -9
  34. package/dist/ui/reasoning.js +2 -7
  35. package/dist/ui/reasoning.js.map +1 -1
  36. package/dist/ui/thread-list.aui.js +2 -0
  37. package/dist/ui/thread-list.aui.js.map +1 -1
  38. package/dist/ui/tool-group.aui.d.ts +2 -23
  39. package/dist/ui/tool-group.aui.js +4 -24
  40. package/dist/ui/tool-group.aui.js.map +1 -1
  41. package/package.json +3 -3
  42. package/dist/ui/skeleton.d.ts +0 -2
  43. package/dist/ui/skeleton.js +0 -8
  44. package/dist/ui/skeleton.js.map +0 -1
package/dist/styles.css CHANGED
@@ -16,21 +16,14 @@
16
16
  --nxf-text-lg--line-height: calc(1.75 / 1.125);
17
17
  --nxf-text-xl: 1.25rem;
18
18
  --nxf-text-xl--line-height: calc(1.75 / 1.25);
19
- --nxf-text-3xl: 1.875rem;
20
- --nxf-text-3xl--line-height: calc(2.25 / 1.875);
21
- --nxf-text-4xl: 2.25rem;
22
- --nxf-text-4xl--line-height: calc(2.5 / 2.25);
23
- --nxf-font-weight-normal: 400;
24
19
  --nxf-font-weight-medium: 500;
25
20
  --nxf-font-weight-semibold: 600;
26
21
  --nxf-tracking-wide: .025em;
27
- --nxf-tracking-widest: .1em;
28
22
  --nxf-leading-snug: 1.375;
29
23
  --nxf-leading-relaxed: 1.625;
30
24
  --nxf-radius-xs: .125rem;
31
25
  --nxf-radius-xl: .75rem;
32
26
  --nxf-animate-spin: nxf-spin 1s linear infinite;
33
- --nxf-animate-pulse: nxf-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
34
27
  --nxf-blur-sm: 8px;
35
28
  --nxf-default-transition-duration: .15s;
36
29
  --nxf-default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
@@ -406,9 +399,6 @@
406
399
  .nexface-ui .nxf-absolute {
407
400
  position: absolute;
408
401
  }
409
- .nexface-ui .nxf-fixed {
410
- position: fixed;
411
- }
412
402
  .nexface-ui .nxf-relative {
413
403
  position: relative;
414
404
  }
@@ -463,9 +453,6 @@
463
453
  .nexface-ui .nxf-left-0 {
464
454
  left: 0;
465
455
  }
466
- .nexface-ui .nxf-left-2 {
467
- left: calc(var(--nxf-spacing) * 2);
468
- }
469
456
  .nexface-ui .nxf-z-0 {
470
457
  z-index: 0;
471
458
  }
@@ -518,9 +505,6 @@
518
505
  .nexface-ui .nxf-m-0 {
519
506
  margin: 0;
520
507
  }
521
- .nexface-ui .nxf--mx-1 {
522
- margin-inline: calc(var(--nxf-spacing) * -1);
523
- }
524
508
  .nexface-ui .nxf-mx-auto {
525
509
  margin-inline: auto;
526
510
  }
@@ -545,9 +529,6 @@
545
529
  .nexface-ui .nxf-me-1\.5 {
546
530
  margin-inline-end: calc(var(--nxf-spacing) * 1.5);
547
531
  }
548
- .nexface-ui .nxf-mt-0\.5 {
549
- margin-top: calc(var(--nxf-spacing) * .5);
550
- }
551
532
  .nexface-ui .nxf-mt-1 {
552
533
  margin-top: var(--nxf-spacing);
553
534
  }
@@ -629,10 +610,6 @@
629
610
  .nexface-ui .nxf-aspect-square {
630
611
  aspect-ratio: 1;
631
612
  }
632
- .nexface-ui .nxf-size-2 {
633
- width: calc(var(--nxf-spacing) * 2);
634
- height: calc(var(--nxf-spacing) * 2);
635
- }
636
613
  .nexface-ui .nxf-size-2\.5 {
637
614
  width: calc(var(--nxf-spacing) * 2.5);
638
615
  height: calc(var(--nxf-spacing) * 2.5);
@@ -705,9 +682,6 @@
705
682
  .nexface-ui .nxf-h-full {
706
683
  height: 100%;
707
684
  }
708
- .nexface-ui .nxf-h-px {
709
- height: 1px;
710
- }
711
685
  .nexface-ui .nxf-max-h-48 {
712
686
  max-height: calc(var(--nxf-spacing) * 48);
713
687
  }
@@ -753,9 +727,6 @@
753
727
  .nexface-ui .nxf-max-w-\[40ch\] {
754
728
  max-width: 40ch;
755
729
  }
756
- .nexface-ui .nxf-max-w-\[75\%\] {
757
- max-width: 75%;
758
- }
759
730
  .nexface-ui .nxf-max-w-\[80\%\] {
760
731
  max-width: 80%;
761
732
  }
@@ -774,9 +745,6 @@
774
745
  .nexface-ui .nxf-min-w-28 {
775
746
  min-width: calc(var(--nxf-spacing) * 28);
776
747
  }
777
- .nexface-ui .nxf-min-w-\[8rem\] {
778
- min-width: 8rem;
779
- }
780
748
  .nexface-ui .nxf-flex-1 {
781
749
  flex: 1;
782
750
  }
@@ -791,15 +759,9 @@
791
759
  --nxf-tw-border-spacing-y: 0px;
792
760
  border-spacing: var(--nxf-tw-border-spacing-x) var(--nxf-tw-border-spacing-y);
793
761
  }
794
- .nexface-ui .nxf-origin-\(--radix-dropdown-menu-content-transform-origin\) {
795
- transform-origin: var(--radix-dropdown-menu-content-transform-origin);
796
- }
797
762
  .nexface-ui .nxf-origin-\(--radix-tooltip-content-transform-origin\) {
798
763
  transform-origin: var(--radix-tooltip-content-transform-origin);
799
764
  }
800
- .nexface-ui .nxf-origin-left {
801
- transform-origin: 0;
802
- }
803
765
  .nexface-ui .nxf--translate-x-full {
804
766
  --nxf-tw-translate-x: -100%;
805
767
  translate: var(--nxf-tw-translate-x) var(--nxf-tw-translate-y);
@@ -812,9 +774,6 @@
812
774
  --nxf-tw-translate-y: calc(-50% - 2px);
813
775
  translate: var(--nxf-tw-translate-x) var(--nxf-tw-translate-y);
814
776
  }
815
- .nexface-ui .nxf--rotate-90 {
816
- rotate: -90deg;
817
- }
818
777
  .nexface-ui .nxf-rotate-45 {
819
778
  rotate: 45deg;
820
779
  }
@@ -824,18 +783,12 @@
824
783
  .nexface-ui .nxf-animate-in {
825
784
  animation: nxf-enter var(--nxf-tw-animation-duration, var(--nxf-tw-duration, .15s))var(--nxf-tw-ease, ease)var(--nxf-tw-animation-delay, 0s)var(--nxf-tw-animation-iteration-count, 1)var(--nxf-tw-animation-direction, normal)var(--nxf-tw-animation-fill-mode, none);
826
785
  }
827
- .nexface-ui .nxf-animate-pulse {
828
- animation: var(--nxf-animate-pulse);
829
- }
830
786
  .nexface-ui .nxf-animate-spin {
831
787
  animation: var(--nxf-animate-spin);
832
788
  }
833
789
  .nexface-ui .nxf-cursor-col-resize {
834
790
  cursor: col-resize;
835
791
  }
836
- .nexface-ui .nxf-cursor-default {
837
- cursor: default;
838
- }
839
792
  .nexface-ui .nxf-cursor-pointer {
840
793
  cursor: pointer;
841
794
  }
@@ -919,11 +872,6 @@
919
872
  margin-block-start: calc(calc(var(--nxf-spacing) * 4) * var(--nxf-tw-space-y-reverse));
920
873
  margin-block-end: calc(calc(var(--nxf-spacing) * 4) * calc(1 - var(--nxf-tw-space-y-reverse)));
921
874
  }
922
- .nexface-ui :where(.nxf--space-x-2 > :not(:last-child)) {
923
- --nxf-tw-space-x-reverse: 0;
924
- margin-inline-start: calc(calc(var(--nxf-spacing) * -2) * var(--nxf-tw-space-x-reverse));
925
- margin-inline-end: calc(calc(var(--nxf-spacing) * -2) * calc(1 - var(--nxf-tw-space-x-reverse)));
926
- }
927
875
  .nexface-ui .nxf-gap-y-6 {
928
876
  row-gap: calc(var(--nxf-spacing) * 6);
929
877
  }
@@ -1065,9 +1013,6 @@
1065
1013
  .nexface-ui .nxf-border-transparent {
1066
1014
  border-color: #0000;
1067
1015
  }
1068
- .nexface-ui .nxf-bg-accent {
1069
- background-color: var(--nxf-muted);
1070
- }
1071
1016
  .nexface-ui .nxf-bg-background,.nexface-ui .nxf-bg-background\/60 {
1072
1017
  background-color: var(--nxf-background);
1073
1018
  }
@@ -1092,14 +1037,6 @@
1092
1037
  background-color: color-mix(in oklab, var(--nxf-background) 80%, transparent);
1093
1038
  }
1094
1039
  }
1095
- .nexface-ui .nxf-bg-black\/50 {
1096
- background-color: #00000080;
1097
- }
1098
- @supports (color: color-mix(in lab, red, red)) {
1099
- .nexface-ui .nxf-bg-black\/50 {
1100
- background-color: color-mix(in oklab, var(--nxf-color-black) 50%, transparent);
1101
- }
1102
- }
1103
1040
  .nexface-ui .nxf-bg-black\/50\! {
1104
1041
  background-color: #00000080 !important;
1105
1042
  }
@@ -1108,9 +1045,6 @@
1108
1045
  background-color: color-mix(in oklab, var(--nxf-color-black) 50%, transparent) !important;
1109
1046
  }
1110
1047
  }
1111
- .nexface-ui .nxf-bg-border {
1112
- background-color: var(--nxf-border);
1113
- }
1114
1048
  .nexface-ui .nxf-bg-destructive {
1115
1049
  background-color: oklch(57.7% .245 27.325);
1116
1050
  }
@@ -1287,9 +1221,6 @@
1287
1221
  .nexface-ui .nxf-pt-6 {
1288
1222
  padding-top: calc(var(--nxf-spacing) * 6);
1289
1223
  }
1290
- .nexface-ui .nxf-pr-2 {
1291
- padding-right: calc(var(--nxf-spacing) * 2);
1292
- }
1293
1224
  .nexface-ui .nxf-pb-1 {
1294
1225
  padding-bottom: var(--nxf-spacing);
1295
1226
  }
@@ -1305,9 +1236,6 @@
1305
1236
  .nexface-ui .nxf-pl-3 {
1306
1237
  padding-left: calc(var(--nxf-spacing) * 3);
1307
1238
  }
1308
- .nexface-ui .nxf-pl-8 {
1309
- padding-left: calc(var(--nxf-spacing) * 8);
1310
- }
1311
1239
  .nexface-ui .nxf-text-center {
1312
1240
  text-align: center;
1313
1241
  }
@@ -1323,10 +1251,6 @@
1323
1251
  .nexface-ui .nxf-font-mono {
1324
1252
  font-family: Nexface JetBrains Mono, ui-monospace, monospace;
1325
1253
  }
1326
- .nexface-ui .nxf-text-3xl {
1327
- font-size: var(--nxf-text-3xl);
1328
- line-height: var(--nxf-tw-leading, var(--nxf-text-3xl--line-height));
1329
- }
1330
1254
  .nexface-ui .nxf-text-base {
1331
1255
  font-size: var(--nxf-text-base);
1332
1256
  line-height: var(--nxf-tw-leading, var(--nxf-text-base--line-height));
@@ -1353,9 +1277,6 @@
1353
1277
  .nexface-ui .nxf-text-\[1\.5rem\] {
1354
1278
  font-size: 1.5rem;
1355
1279
  }
1356
- .nexface-ui .nxf-text-\[2\.75rem\] {
1357
- font-size: 2.75rem;
1358
- }
1359
1280
  .nexface-ui .nxf-text-\[11px\] {
1360
1281
  font-size: 11px;
1361
1282
  }
@@ -1375,10 +1296,6 @@
1375
1296
  --nxf-tw-leading: calc(var(--nxf-spacing) * 6);
1376
1297
  line-height: calc(var(--nxf-spacing) * 6);
1377
1298
  }
1378
- .nexface-ui .nxf-leading-\[1\.04\] {
1379
- --nxf-tw-leading: 1.04;
1380
- line-height: 1.04;
1381
- }
1382
1299
  .nexface-ui .nxf-leading-none {
1383
1300
  --nxf-tw-leading: 1;
1384
1301
  line-height: 1;
@@ -1407,18 +1324,10 @@
1407
1324
  --nxf-tw-tracking: -.01em;
1408
1325
  letter-spacing: -.01em;
1409
1326
  }
1410
- .nexface-ui .nxf-tracking-\[-0\.015em\] {
1411
- --nxf-tw-tracking: -.015em;
1412
- letter-spacing: -.015em;
1413
- }
1414
1327
  .nexface-ui .nxf-tracking-wide {
1415
1328
  --nxf-tw-tracking: var(--nxf-tracking-wide);
1416
1329
  letter-spacing: var(--nxf-tracking-wide);
1417
1330
  }
1418
- .nexface-ui .nxf-tracking-widest {
1419
- --nxf-tw-tracking: var(--nxf-tracking-widest);
1420
- letter-spacing: var(--nxf-tracking-widest);
1421
- }
1422
1331
  .nexface-ui .nxf-text-balance {
1423
1332
  text-wrap: balance;
1424
1333
  }
@@ -1482,10 +1391,6 @@
1482
1391
  .nexface-ui .nxf-text-white {
1483
1392
  color: var(--nxf-color-white);
1484
1393
  }
1485
- .nexface-ui .nxf-tabular-nums {
1486
- --nxf-tw-numeric-spacing: tabular-nums;
1487
- font-variant-numeric: var(--nxf-tw-ordinal, ) var(--nxf-tw-slashed-zero, ) var(--nxf-tw-numeric-figure, ) var(--nxf-tw-numeric-spacing, ) var(--nxf-tw-numeric-fraction, );
1488
- }
1489
1394
  .nexface-ui .nxf-underline {
1490
1395
  text-decoration-line: underline;
1491
1396
  }
@@ -1512,26 +1417,9 @@
1512
1417
  --nxf-tw-shadow: 0 1px 2px 0 var(--nxf-tw-shadow-color, #0000000d);
1513
1418
  box-shadow: var(--nxf-tw-inset-shadow), var(--nxf-tw-inset-ring-shadow), var(--nxf-tw-ring-offset-shadow), var(--nxf-tw-ring-shadow), var(--nxf-tw-shadow);
1514
1419
  }
1515
- .nexface-ui .nxf-ring-2 {
1516
- --nxf-tw-ring-shadow: var(--nxf-tw-ring-inset, ) 0 0 0 calc(2px + var(--nxf-tw-ring-offset-width)) var(--nxf-tw-ring-color, currentcolor);
1517
- box-shadow: var(--nxf-tw-inset-shadow), var(--nxf-tw-inset-ring-shadow), var(--nxf-tw-ring-offset-shadow), var(--nxf-tw-ring-shadow), var(--nxf-tw-shadow);
1518
- }
1519
- .nexface-ui .nxf-ring-background {
1520
- --nxf-tw-ring-color: var(--nxf-background);
1521
- }
1522
1420
  .nexface-ui .nxf-ring-offset-background {
1523
1421
  --nxf-tw-ring-offset-color: var(--nxf-background);
1524
1422
  }
1525
- .nexface-ui .nxf-outline-hidden {
1526
- --nxf-tw-outline-style: none;
1527
- outline-style: none;
1528
- }
1529
- @media (forced-colors: active) {
1530
- .nexface-ui .nxf-outline-hidden {
1531
- outline-offset: 2px;
1532
- outline: 2px solid #0000;
1533
- }
1534
- }
1535
1423
  .nexface-ui .nxf-outline {
1536
1424
  outline-style: var(--nxf-tw-outline-style);
1537
1425
  outline-width: 1px;
@@ -1551,11 +1439,6 @@
1551
1439
  transition-timing-function: var(--nxf-tw-ease, var(--nxf-default-transition-timing-function));
1552
1440
  transition-duration: var(--nxf-tw-duration, var(--nxf-default-transition-duration));
1553
1441
  }
1554
- .nexface-ui .nxf-transition-\[color\,scale\] {
1555
- transition-property: color, scale;
1556
- transition-timing-function: var(--nxf-tw-ease, var(--nxf-default-transition-timing-function));
1557
- transition-duration: var(--nxf-tw-duration, var(--nxf-default-transition-duration));
1558
- }
1559
1442
  .nexface-ui .nxf-transition-\[transform\,opacity\] {
1560
1443
  transition-property: transform, opacity;
1561
1444
  transition-timing-function: var(--nxf-tw-ease, var(--nxf-default-transition-timing-function));
@@ -1581,10 +1464,6 @@
1581
1464
  transition-timing-function: var(--nxf-tw-ease, var(--nxf-default-transition-timing-function));
1582
1465
  transition-duration: var(--nxf-tw-duration, var(--nxf-default-transition-duration));
1583
1466
  }
1584
- .nexface-ui .nxf-duration-\(--animation-duration\) {
1585
- --nxf-tw-duration: var(--nxf-animation-duration);
1586
- transition-duration: var(--nxf-animation-duration);
1587
- }
1588
1467
  .nexface-ui .nxf-duration-150 {
1589
1468
  --nxf-tw-duration: .15s;
1590
1469
  transition-duration: .15s;
@@ -1625,9 +1504,6 @@
1625
1504
  .nexface-ui .nxf-\[--tw-duration\:var\(--animation-duration\)\] {
1626
1505
  --nxf-tw-duration: var(--nxf-animation-duration);
1627
1506
  }
1628
- .nexface-ui .nxf-\[animation-duration\:0\.6s\] {
1629
- animation-duration: .6s;
1630
- }
1631
1507
  .nexface-ui .nxf-\[counter-reset\:line\] {
1632
1508
  counter-reset: line;
1633
1509
  }
@@ -1662,14 +1538,6 @@
1662
1538
  .nexface-ui .nxf-group-has-focus-visible\:opacity-100:is(:where(.nxf-group):has(:focus-visible) *) {
1663
1539
  opacity: 1;
1664
1540
  }
1665
- .nexface-ui .nxf-group-has-data-\[size\=lg\]\/avatar-group\:size-10:is(:where(.nxf-group\/avatar-group):has([data-size="lg"]) *) {
1666
- width: calc(var(--nxf-spacing) * 10);
1667
- height: calc(var(--nxf-spacing) * 10);
1668
- }
1669
- .nexface-ui .nxf-group-has-data-\[size\=sm\]\/avatar-group\:size-6:is(:where(.nxf-group\/avatar-group):has([data-size="sm"]) *) {
1670
- width: calc(var(--nxf-spacing) * 6);
1671
- height: calc(var(--nxf-spacing) * 6);
1672
- }
1673
1541
  .nexface-ui .nxf-group-has-data-\[state\=open\]\:pe-8:is(:where(.nxf-group):has([data-state="open"]) *),.nexface-ui .nxf-group-data-active\:pe-8:is(:where(.nxf-group)[data-active] *) {
1674
1542
  padding-inline-end: calc(var(--nxf-spacing) * 8);
1675
1543
  }
@@ -1679,24 +1547,9 @@
1679
1547
  .nexface-ui .nxf-group-data-active\:opacity-100:is(:where(.nxf-group)[data-active] *) {
1680
1548
  opacity: 1;
1681
1549
  }
1682
- .nexface-ui .nxf-group-data-panel-open\/trigger\:rotate-0:is(:where(.nxf-group\/trigger)[data-panel-open] *) {
1683
- rotate: 0deg;
1684
- }
1685
1550
  .nexface-ui .nxf-group-data-panel-open\/trigger\:rotate-90:is(:where(.nxf-group\/trigger)[data-panel-open] *) {
1686
1551
  rotate: 90deg;
1687
1552
  }
1688
- .nexface-ui .nxf-group-data-\[size\=default\]\/avatar\:size-2\.5:is(:where(.nxf-group\/avatar)[data-size="default"] *) {
1689
- width: calc(var(--nxf-spacing) * 2.5);
1690
- height: calc(var(--nxf-spacing) * 2.5);
1691
- }
1692
- .nexface-ui .nxf-group-data-\[size\=lg\]\/avatar\:size-3:is(:where(.nxf-group\/avatar)[data-size="lg"] *) {
1693
- width: calc(var(--nxf-spacing) * 3);
1694
- height: calc(var(--nxf-spacing) * 3);
1695
- }
1696
- .nexface-ui .nxf-group-data-\[size\=sm\]\/avatar\:size-2:is(:where(.nxf-group\/avatar)[data-size="sm"] *) {
1697
- width: calc(var(--nxf-spacing) * 2);
1698
- height: calc(var(--nxf-spacing) * 2);
1699
- }
1700
1553
  .nexface-ui .nxf-group-data-\[size\=sm\]\/avatar\:text-xs:is(:where(.nxf-group\/avatar)[data-size="sm"] *) {
1701
1554
  font-size: var(--nxf-text-xs);
1702
1555
  line-height: var(--nxf-tw-leading, var(--nxf-text-xs--line-height));
@@ -1707,16 +1560,6 @@
1707
1560
  .nexface-ui .nxf-group-data-\[variant\=ghost\]\/tool-group-root\:gap-1:is(:where(.nxf-group\/tool-group-root)[data-variant="ghost"] *) {
1708
1561
  gap: var(--nxf-spacing);
1709
1562
  }
1710
- .nexface-ui .nxf-group-data-\[variant\=ghost\]\/tool-group-root\:py-1\.5:is(:where(.nxf-group\/tool-group-root)[data-variant="ghost"] *) {
1711
- padding-block: calc(var(--nxf-spacing) * 1.5);
1712
- }
1713
- .nexface-ui .nxf-group-data-\[variant\=ghost\]\/tool-group-root\:font-normal:is(:where(.nxf-group\/tool-group-root)[data-variant="ghost"] *) {
1714
- --nxf-tw-font-weight: var(--nxf-font-weight-normal);
1715
- font-weight: var(--nxf-font-weight-normal);
1716
- }
1717
- .nexface-ui .nxf-group-data-\[variant\=ghost\]\/tool-group-root\:text-muted-foreground:is(:where(.nxf-group\/tool-group-root)[data-variant="ghost"] *) {
1718
- color: var(--nxf-muted-foreground);
1719
- }
1720
1563
  .nexface-ui .nxf-group-data-\[variant\=muted\]\/reasoning-root\:bg-\[linear-gradient\(to_bottom\,color-mix\(in_oklab\,var\(--color-muted\)_50\%\,var\(--color-background\)\)\,transparent\)\]:is(:where(.nxf-group\/reasoning-root)[data-variant="muted"] *) {
1721
1564
  background-image: linear-gradient(to bottom,var(--nxf-color-muted),transparent);
1722
1565
  }
@@ -1736,12 +1579,6 @@
1736
1579
  .nexface-ui .nxf-group-data-\[variant\=muted\]\/tool-group-root\:mt-3:is(:where(.nxf-group\/tool-group-root)[data-variant="muted"] *) {
1737
1580
  margin-top: calc(var(--nxf-spacing) * 3);
1738
1581
  }
1739
- .nexface-ui .nxf-group-data-\[variant\=muted\]\/tool-group-root\:w-full:is(:where(.nxf-group\/tool-group-root)[data-variant="muted"] *) {
1740
- width: 100%;
1741
- }
1742
- .nexface-ui .nxf-group-data-\[variant\=muted\]\/tool-group-root\:grow:is(:where(.nxf-group\/tool-group-root)[data-variant="muted"] *) {
1743
- flex-grow: 1;
1744
- }
1745
1582
  .nexface-ui .nxf-group-data-\[variant\=muted\]\/tool-group-root\:border-t:is(:where(.nxf-group\/tool-group-root)[data-variant="muted"] *) {
1746
1583
  border-top-style: var(--nxf-tw-border-style);
1747
1584
  border-top-width: 1px;
@@ -1755,12 +1592,6 @@
1755
1592
  .nexface-ui .nxf-group-data-\[variant\=outline\]\/tool-group-root\:mt-3:is(:where(.nxf-group\/tool-group-root)[data-variant="outline"] *) {
1756
1593
  margin-top: calc(var(--nxf-spacing) * 3);
1757
1594
  }
1758
- .nexface-ui .nxf-group-data-\[variant\=outline\]\/tool-group-root\:w-full:is(:where(.nxf-group\/tool-group-root)[data-variant="outline"] *) {
1759
- width: 100%;
1760
- }
1761
- .nexface-ui .nxf-group-data-\[variant\=outline\]\/tool-group-root\:grow:is(:where(.nxf-group\/tool-group-root)[data-variant="outline"] *) {
1762
- flex-grow: 1;
1763
- }
1764
1595
  .nexface-ui .nxf-group-data-\[variant\=outline\]\/tool-group-root\:border-t:is(:where(.nxf-group\/tool-group-root)[data-variant="outline"] *) {
1765
1596
  border-top-style: var(--nxf-tw-border-style);
1766
1597
  border-top-width: 1px;
@@ -1787,9 +1618,6 @@
1787
1618
  .nexface-ui .nxf-group-data-open\/collapsible-content\:slide-in-from-top-4:is(:where(.nxf-group\/collapsible-content):where([data-state="open"], [data-open]:not([data-open="false"])) *) {
1788
1619
  --nxf-tw-enter-translate-y: calc(4*var(--nxf-spacing)*-1);
1789
1620
  }
1790
- .nexface-ui .nxf-group-data-open\/trigger\:rotate-0:is(:where(.nxf-group\/trigger):where([data-state="open"], [data-open]:not([data-open="false"])) *) {
1791
- rotate: 0deg;
1792
- }
1793
1621
  .nexface-ui .nxf-group-data-open\/trigger\:rotate-90:is(:where(.nxf-group\/trigger):where([data-state="open"], [data-open]:not([data-open="false"])) *) {
1794
1622
  rotate: 90deg;
1795
1623
  }
@@ -2019,10 +1847,6 @@
2019
1847
  opacity: 1;
2020
1848
  }
2021
1849
 
2022
- .nexface-ui .nxf-group-data-\[variant\=ghost\]\/tool-group-root\:hover\:text-foreground:is(:where(.nxf-group\/tool-group-root)[data-variant="ghost"] *):hover {
2023
- color: var(--nxf-foreground);
2024
- }
2025
-
2026
1850
  .nexface-ui .nxf-hover\:after\:bg-foreground\/10:hover:after {
2027
1851
  content: var(--nxf-tw-content);
2028
1852
  background-color: var(--nxf-foreground);
@@ -2034,12 +1858,9 @@
2034
1858
  }
2035
1859
  }
2036
1860
  }
2037
- .nexface-ui .nxf-focus\:bg-accent:focus,.nexface-ui .nxf-focus\:bg-muted:focus {
1861
+ .nexface-ui .nxf-focus\:bg-muted:focus {
2038
1862
  background-color: var(--nxf-muted);
2039
1863
  }
2040
- .nexface-ui .nxf-focus\:text-accent-foreground:focus {
2041
- color: var(--nxf-foreground);
2042
- }
2043
1864
  .nexface-ui .nxf-focus\:ring-2:focus {
2044
1865
  --nxf-tw-ring-shadow: var(--nxf-tw-ring-inset, ) 0 0 0 calc(2px + var(--nxf-tw-ring-offset-width)) var(--nxf-tw-ring-color, currentcolor);
2045
1866
  box-shadow: var(--nxf-tw-inset-shadow), var(--nxf-tw-inset-ring-shadow), var(--nxf-tw-ring-offset-shadow), var(--nxf-tw-ring-shadow), var(--nxf-tw-shadow);
@@ -2115,9 +1936,6 @@
2115
1936
  .nexface-ui .nxf-active\:scale-\[0\.96\]:active {
2116
1937
  scale: .96;
2117
1938
  }
2118
- .nexface-ui .nxf-active\:scale-\[0\.98\]:active {
2119
- scale: .98;
2120
- }
2121
1939
  .nexface-ui .nxf-disabled\:pointer-events-none:disabled {
2122
1940
  pointer-events: none;
2123
1941
  }
@@ -2203,9 +2021,6 @@
2203
2021
  border-color: color-mix(in oklab, var(--nxf-foreground) 40%, transparent);
2204
2022
  }
2205
2023
  }
2206
- .nexface-ui .nxf-data-\[inset\]\:pl-8[data-inset] {
2207
- padding-left: calc(var(--nxf-spacing) * 8);
2208
- }
2209
2024
  .nexface-ui .nxf-data-\[side\=bottom\]\:slide-in-from-top-2[data-side="bottom"] {
2210
2025
  --nxf-tw-enter-translate-y: calc(2*var(--nxf-spacing)*-1);
2211
2026
  }
@@ -2226,13 +2041,6 @@
2226
2041
  width: calc(var(--nxf-spacing) * 6);
2227
2042
  height: calc(var(--nxf-spacing) * 6);
2228
2043
  }
2229
- .nexface-ui :is(.nxf-\*\:data-\[slot\=avatar\]\:ring-2 > *)[data-slot="avatar"] {
2230
- --nxf-tw-ring-shadow: var(--nxf-tw-ring-inset, ) 0 0 0 calc(2px + var(--nxf-tw-ring-offset-width)) var(--nxf-tw-ring-color, currentcolor);
2231
- box-shadow: var(--nxf-tw-inset-shadow), var(--nxf-tw-inset-ring-shadow), var(--nxf-tw-ring-offset-shadow), var(--nxf-tw-ring-shadow), var(--nxf-tw-shadow);
2232
- }
2233
- .nexface-ui :is(.nxf-\*\:data-\[slot\=avatar\]\:ring-background > *)[data-slot="avatar"] {
2234
- --nxf-tw-ring-color: var(--nxf-background);
2235
- }
2236
2044
  .nexface-ui .nxf-data-\[state\=closed\]\:animate-out[data-state="closed"] {
2237
2045
  animation: nxf-exit var(--nxf-tw-animation-duration, var(--nxf-tw-duration, .15s))var(--nxf-tw-ease, ease)var(--nxf-tw-animation-delay, 0s)var(--nxf-tw-animation-iteration-count, 1)var(--nxf-tw-animation-direction, normal)var(--nxf-tw-animation-fill-mode, none);
2238
2046
  }
@@ -2248,9 +2056,6 @@
2248
2056
  .nexface-ui .nxf-data-\[state\=open\]\:bg-accent[data-state="open"] {
2249
2057
  background-color: var(--nxf-muted);
2250
2058
  }
2251
- .nexface-ui .nxf-data-\[state\=open\]\:text-accent-foreground[data-state="open"] {
2252
- color: var(--nxf-foreground);
2253
- }
2254
2059
  .nexface-ui .nxf-data-\[state\=open\]\:text-muted-foreground[data-state="open"] {
2255
2060
  color: var(--nxf-muted-foreground);
2256
2061
  }
@@ -2312,10 +2117,6 @@
2312
2117
  .nexface-ui .nxf-sm\:justify-end {
2313
2118
  justify-content: flex-end;
2314
2119
  }
2315
-
2316
- .nexface-ui .nxf-sm\:text-left {
2317
- text-align: left;
2318
- }
2319
2120
  }
2320
2121
  @media (min-width: 48rem) {
2321
2122
  .nexface-ui .nxf-md\:px-5 {
@@ -2326,11 +2127,6 @@
2326
2127
  padding-inline: calc(var(--nxf-spacing) * 6);
2327
2128
  }
2328
2129
 
2329
- .nexface-ui .nxf-md\:text-4xl {
2330
- font-size: var(--nxf-text-4xl);
2331
- line-height: var(--nxf-tw-leading, var(--nxf-text-4xl--line-height));
2332
- }
2333
-
2334
2130
  .nexface-ui .nxf-md\:text-sm {
2335
2131
  font-size: var(--nxf-text-sm);
2336
2132
  line-height: var(--nxf-tw-leading, var(--nxf-text-sm--line-height));
@@ -2340,10 +2136,6 @@
2340
2136
  .nexface-ui .nxf-lg\:text-\[1\.75rem\] {
2341
2137
  font-size: 1.75rem;
2342
2138
  }
2343
-
2344
- .nexface-ui .nxf-lg\:text-\[4\.5rem\] {
2345
- font-size: 4.5rem;
2346
- }
2347
2139
  }
2348
2140
  .nexface-ui .nxf-dark\:border-input:where(.nexface-dark, .nexface-dark *) {
2349
2141
  border-color: var(--nxf-border);
@@ -2605,9 +2397,6 @@
2605
2397
  width: calc(var(--nxf-spacing) * 4);
2606
2398
  height: calc(var(--nxf-spacing) * 4);
2607
2399
  }
2608
- .nexface-ui .nxf-\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*="text-"]) {
2609
- color: var(--nxf-muted-foreground);
2610
- }
2611
2400
  .nexface-ui .nxf-\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar {
2612
2401
  display: none;
2613
2402
  }
@@ -2700,21 +2489,6 @@
2700
2489
  width: calc(var(--nxf-spacing) * 4);
2701
2490
  height: calc(var(--nxf-spacing) * 4);
2702
2491
  }
2703
- .nexface-ui .nxf-group-has-data-\[size\=lg\]\/avatar-group\:\[\&\>svg\]\:size-5:is(:where(.nxf-group\/avatar-group):has([data-size="lg"]) *) > svg {
2704
- width: calc(var(--nxf-spacing) * 5);
2705
- height: calc(var(--nxf-spacing) * 5);
2706
- }
2707
- .nexface-ui .nxf-group-has-data-\[size\=sm\]\/avatar-group\:\[\&\>svg\]\:size-3:is(:where(.nxf-group\/avatar-group):has([data-size="sm"]) *) > svg {
2708
- width: calc(var(--nxf-spacing) * 3);
2709
- height: calc(var(--nxf-spacing) * 3);
2710
- }
2711
- .nexface-ui .nxf-group-data-\[size\=default\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.nxf-group\/avatar)[data-size="default"] *) > svg,.nexface-ui .nxf-group-data-\[size\=lg\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.nxf-group\/avatar)[data-size="lg"] *) > svg {
2712
- width: calc(var(--nxf-spacing) * 2);
2713
- height: calc(var(--nxf-spacing) * 2);
2714
- }
2715
- .nexface-ui .nxf-group-data-\[size\=sm\]\/avatar\:\[\&\>svg\]\:hidden:is(:where(.nxf-group\/avatar)[data-size="sm"] *) > svg {
2716
- display: none;
2717
- }
2718
2492
  @media (pointer: coarse) {
2719
2493
  .nexface-ui .nxf-\[\@media\(pointer\:coarse\)\]\:opacity-100 {
2720
2494
  opacity: 1;
@@ -2734,16 +2508,10 @@
2734
2508
  --nxf-tw-translate-y: 0;
2735
2509
  --nxf-tw-translate-z: 0;
2736
2510
  --nxf-tw-space-y-reverse: 0;
2737
- --nxf-tw-space-x-reverse: 0;
2738
2511
  --nxf-tw-border-style: solid;
2739
2512
  --nxf-tw-leading: initial;
2740
2513
  --nxf-tw-font-weight: initial;
2741
2514
  --nxf-tw-tracking: initial;
2742
- --nxf-tw-ordinal: initial;
2743
- --nxf-tw-slashed-zero: initial;
2744
- --nxf-tw-numeric-figure: initial;
2745
- --nxf-tw-numeric-spacing: initial;
2746
- --nxf-tw-numeric-fraction: initial;
2747
2515
  --nxf-tw-shadow: 0 0 #0000;
2748
2516
  --nxf-tw-shadow-color: initial;
2749
2517
  --nxf-tw-shadow-alpha: 100%;
@@ -2774,6 +2542,11 @@
2774
2542
  --nxf-tw-scale-x: 1;
2775
2543
  --nxf-tw-scale-y: 1;
2776
2544
  --nxf-tw-scale-z: 1;
2545
+ --nxf-tw-ordinal: initial;
2546
+ --nxf-tw-slashed-zero: initial;
2547
+ --nxf-tw-numeric-figure: initial;
2548
+ --nxf-tw-numeric-spacing: initial;
2549
+ --nxf-tw-numeric-fraction: initial;
2777
2550
  --nxf-tw-animation-delay: 0s;
2778
2551
  --nxf-tw-animation-direction: normal;
2779
2552
  --nxf-tw-animation-duration: initial;
@@ -2943,11 +2716,6 @@
2943
2716
  syntax: "*";
2944
2717
  inherits: false;
2945
2718
  initial-value: 0;
2946
- }
2947
- @property --nxf-tw-space-x-reverse {
2948
- syntax: "*";
2949
- inherits: false;
2950
- initial-value: 0;
2951
2719
  }
2952
2720
  @property --nxf-tw-border-style {
2953
2721
  syntax: "*";
@@ -2965,26 +2733,6 @@
2965
2733
  @property --nxf-tw-tracking {
2966
2734
  syntax: "*";
2967
2735
  inherits: false
2968
- }
2969
- @property --nxf-tw-ordinal {
2970
- syntax: "*";
2971
- inherits: false
2972
- }
2973
- @property --nxf-tw-slashed-zero {
2974
- syntax: "*";
2975
- inherits: false
2976
- }
2977
- @property --nxf-tw-numeric-figure {
2978
- syntax: "*";
2979
- inherits: false
2980
- }
2981
- @property --nxf-tw-numeric-spacing {
2982
- syntax: "*";
2983
- inherits: false
2984
- }
2985
- @property --nxf-tw-numeric-fraction {
2986
- syntax: "*";
2987
- inherits: false
2988
2736
  }
2989
2737
  @property --nxf-tw-shadow {
2990
2738
  syntax: "*";
@@ -3119,16 +2867,31 @@
3119
2867
  syntax: "*";
3120
2868
  inherits: false;
3121
2869
  initial-value: 1;
2870
+ }
2871
+ @property --nxf-tw-ordinal {
2872
+ syntax: "*";
2873
+ inherits: false
2874
+ }
2875
+ @property --nxf-tw-slashed-zero {
2876
+ syntax: "*";
2877
+ inherits: false
2878
+ }
2879
+ @property --nxf-tw-numeric-figure {
2880
+ syntax: "*";
2881
+ inherits: false
2882
+ }
2883
+ @property --nxf-tw-numeric-spacing {
2884
+ syntax: "*";
2885
+ inherits: false
2886
+ }
2887
+ @property --nxf-tw-numeric-fraction {
2888
+ syntax: "*";
2889
+ inherits: false
3122
2890
  }
3123
2891
  @keyframes nxf-spin {
3124
2892
  to {
3125
2893
  transform: rotate(360deg);
3126
2894
  }
3127
- }
3128
- @keyframes nxf-pulse {
3129
- 50% {
3130
- opacity: .5;
3131
- }
3132
2895
  }
3133
2896
  @keyframes nxf-enter {
3134
2897
  from {
package/dist/types.d.ts CHANGED
@@ -12,6 +12,7 @@ export interface ChatSuggestion {
12
12
  export interface ChatProps {
13
13
  open?: boolean;
14
14
  onOpenChange?: (open: boolean) => void;
15
+ showSessionList?: boolean;
15
16
  showToolDetails?: boolean;
16
17
  onFullscreenChange?: (fullscreen: boolean) => void;
17
18
  avatar?: string;
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AgentRunResult } from \"@nexface/agent\";\nimport type { CSSProperties } from \"react\";\nexport type ChatRunResult = Extract<AgentRunResult, { outcome: { type: \"success\" } }>;\n\nexport interface ChatSuggestion {\n readonly label: string;\n readonly prompt: string;\n}\n\nexport interface ChatProps {\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n showToolDetails?: boolean;\n onFullscreenChange?: (fullscreen: boolean) => void;\n avatar?: string;\n welcomeDescription?: string;\n side?: \"left\" | \"right\";\n className?: string;\n style?: CSSProperties;\n attachments?: false | ChatAttachmentOptions;\n title?: string;\n welcomeMessage?: string;\n placeholder?: string;\n layout?: \"floating\" | \"docked\" | \"inline\";\n suggestions?: readonly ChatSuggestion[];\n onRunResult?: (result: ChatRunResult) => void;\n}\n\nexport interface ChatAttachmentOptions {\n accept?: string;\n maxCount?: number;\n maxSizeBytes?: number;\n adapter?: {\n add(input: { id: string; file: File; signal: AbortSignal }): Promise<{ data?: unknown; preview?: string }>;\n send(input: { id: string; file: File; data?: unknown; signal: AbortSignal }): Promise<{\n content: readonly ({ type: \"text\"; text: string } | { type: \"image\"; source: { type: \"data\"; value: string; mimeType: string } })[];\n }>;\n remove?(input: { id: string; file: File; data?: unknown }): void | Promise<void>;\n };\n}\n\nexport type { AgentModelConfig, AgentModelInfo } from \"@nexface/agent\";\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AgentRunResult } from \"@nexface/agent\";\nimport type { CSSProperties } from \"react\";\nexport type ChatRunResult = Extract<AgentRunResult, { outcome: { type: \"success\" } }>;\n\nexport interface ChatSuggestion {\n readonly label: string;\n readonly prompt: string;\n}\n\nexport interface ChatProps {\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n showSessionList?: boolean;\n showToolDetails?: boolean;\n onFullscreenChange?: (fullscreen: boolean) => void;\n avatar?: string;\n welcomeDescription?: string;\n side?: \"left\" | \"right\";\n className?: string;\n style?: CSSProperties;\n attachments?: false | ChatAttachmentOptions;\n title?: string;\n welcomeMessage?: string;\n placeholder?: string;\n layout?: \"floating\" | \"docked\" | \"inline\";\n suggestions?: readonly ChatSuggestion[];\n onRunResult?: (result: ChatRunResult) => void;\n}\n\nexport interface ChatAttachmentOptions {\n accept?: string;\n maxCount?: number;\n maxSizeBytes?: number;\n adapter?: {\n add(input: { id: string; file: File; signal: AbortSignal }): Promise<{ data?: unknown; preview?: string }>;\n send(input: { id: string; file: File; data?: unknown; signal: AbortSignal }): Promise<{\n content: readonly ({ type: \"text\"; text: string } | { type: \"image\"; source: { type: \"data\"; value: string; mimeType: string } })[];\n }>;\n remove?(input: { id: string; file: File; data?: unknown }): void | Promise<void>;\n };\n}\n\nexport type { AgentModelConfig, AgentModelInfo } from \"@nexface/agent\";\n"]}
@@ -5,7 +5,4 @@ declare function Avatar({ className, size, ...props }: React.ComponentProps<type
5
5
  }): React.JSX.Element;
6
6
  declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): React.JSX.Element;
7
7
  declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): React.JSX.Element;
8
- declare function AvatarBadge({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
9
- declare function AvatarGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
10
- declare function AvatarGroupCount({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
11
- export { Avatar, AvatarImage, AvatarFallback, AvatarBadge, AvatarGroup, AvatarGroupCount, };
8
+ export { Avatar, AvatarImage, AvatarFallback };