@duskmoon-dev/core 1.20.5 → 1.20.6
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/README.md +1 -1
- package/dist/base.css +2 -2
- package/dist/components/chat.css +314 -25
- package/dist/components/index.css +314 -25
- package/dist/esm/components/chat.js +314 -25
- package/dist/index.css +316 -27
- package/dist/index.min.css +1 -1
- package/dist/standalone/duskmoonui-themes.css +1 -1
- package/dist/standalone/duskmoonui.css +318 -29
- package/dist/standalone/duskmoonui.js +4 -4
- package/dist/standalone/duskmoonui.mjs +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/base.css
CHANGED
|
@@ -28,8 +28,8 @@ html {
|
|
|
28
28
|
color: var(--color-base-content);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
/* Focus ring utility */
|
|
32
|
-
:focus-visible {
|
|
31
|
+
/* Focus ring utility; the integrated chat input uses its composer's ring. */
|
|
32
|
+
:focus-visible:not(:where(.chat-composer .chat-composer-input)) {
|
|
33
33
|
outline: 2px solid var(--color-primary);
|
|
34
34
|
outline-offset: 2px;
|
|
35
35
|
}
|
package/dist/components/chat.css
CHANGED
|
@@ -419,6 +419,103 @@
|
|
|
419
419
|
justify-self: end;
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
+
.chat-agent {
|
|
423
|
+
align-items: start;
|
|
424
|
+
row-gap: 0.5rem;
|
|
425
|
+
padding: 0.75rem 0;
|
|
426
|
+
min-inline-size: 0;
|
|
427
|
+
color: var(--color-on-surface);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.chat-agent:not(:has(> .chat-avatar)) {
|
|
431
|
+
grid-template-columns: minmax(0, 1fr);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.chat-agent:not(:has(> .chat-avatar)) > * {
|
|
435
|
+
grid-column: 1;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.chat-agent .chat-avatar {
|
|
439
|
+
grid-row: 1;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.chat-content {
|
|
443
|
+
width: 100%;
|
|
444
|
+
min-inline-size: 0;
|
|
445
|
+
box-sizing: border-box;
|
|
446
|
+
color: var(--color-on-surface);
|
|
447
|
+
font-size: 0.9375rem;
|
|
448
|
+
line-height: 1.6;
|
|
449
|
+
overflow-wrap: anywhere;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.chat-content pre {
|
|
453
|
+
max-inline-size: 100%;
|
|
454
|
+
min-inline-size: 0;
|
|
455
|
+
overflow: auto;
|
|
456
|
+
white-space: pre;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.chat-content a {
|
|
460
|
+
overflow-wrap: anywhere;
|
|
461
|
+
text-decoration: underline;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.chat-work {
|
|
465
|
+
width: 100%;
|
|
466
|
+
min-inline-size: 0;
|
|
467
|
+
border: 0;
|
|
468
|
+
padding: 0;
|
|
469
|
+
background: transparent;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.chat-work-summary {
|
|
473
|
+
display: flex;
|
|
474
|
+
flex-wrap: wrap;
|
|
475
|
+
align-items: center;
|
|
476
|
+
gap: 0.5rem;
|
|
477
|
+
padding: 0.5rem 0;
|
|
478
|
+
border-block-end: 1px solid var(--color-outline-variant);
|
|
479
|
+
color: var(--color-on-surface-variant);
|
|
480
|
+
font-size: 0.8125rem;
|
|
481
|
+
line-height: 1.5;
|
|
482
|
+
overflow-wrap: anywhere;
|
|
483
|
+
list-style: none;
|
|
484
|
+
cursor: pointer;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.chat-work-summary::-webkit-details-marker {
|
|
488
|
+
display: none;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.chat-work-summary::after {
|
|
492
|
+
content: "›";
|
|
493
|
+
flex-shrink: 0;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.chat-work[open] > .chat-work-summary::after {
|
|
497
|
+
transform: rotate(90deg);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.chat-work-summary:focus-visible {
|
|
501
|
+
outline: none;
|
|
502
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.chat-work-body {
|
|
506
|
+
display: flex;
|
|
507
|
+
flex-direction: column;
|
|
508
|
+
gap: 0.5rem;
|
|
509
|
+
padding: 0.75rem 0;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.chat-agent .chat-reasoning,
|
|
513
|
+
.chat-agent .chat-tool {
|
|
514
|
+
width: 100%;
|
|
515
|
+
max-width: none;
|
|
516
|
+
box-sizing: border-box;
|
|
517
|
+
}
|
|
518
|
+
|
|
422
519
|
.chat-header,
|
|
423
520
|
.chat-footer {
|
|
424
521
|
color: var(--color-on-surface-variant);
|
|
@@ -483,6 +580,206 @@
|
|
|
483
580
|
}
|
|
484
581
|
}
|
|
485
582
|
|
|
583
|
+
/** Waiting messages; the application owns dispatch, steer, and removal. */
|
|
584
|
+
.chat-input-area {
|
|
585
|
+
display: flex;
|
|
586
|
+
flex-direction: column;
|
|
587
|
+
min-inline-size: 0;
|
|
588
|
+
box-sizing: border-box;
|
|
589
|
+
color: var(--color-on-surface);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.chat-input-area > .chat-queue {
|
|
593
|
+
margin-inline: 0.75rem;
|
|
594
|
+
margin-block-end: -0.5rem;
|
|
595
|
+
padding: 0.125rem 0.5rem 0.625rem;
|
|
596
|
+
border-block-end: 0;
|
|
597
|
+
border-radius: var(--radius-xl) var(--radius-xl) 0 0;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.chat-input-area > .chat-queue .chat-queue-header:not(.sr-only) {
|
|
601
|
+
padding: 0.125rem 0 0.5rem;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.chat-input-area > .chat-queue .chat-queue-list {
|
|
605
|
+
padding: 0;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.chat-queue {
|
|
609
|
+
min-inline-size: 0;
|
|
610
|
+
max-inline-size: 100%;
|
|
611
|
+
box-sizing: border-box;
|
|
612
|
+
border: 1px solid var(--color-outline-variant);
|
|
613
|
+
border-radius: var(--radius-md);
|
|
614
|
+
background-color: var(--color-surface-container-low);
|
|
615
|
+
color: var(--color-on-surface);
|
|
616
|
+
font-size: 0.875rem;
|
|
617
|
+
line-height: 1.45;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.chat-queue-header:not(.sr-only) {
|
|
621
|
+
display: flex;
|
|
622
|
+
flex-wrap: wrap;
|
|
623
|
+
align-items: center;
|
|
624
|
+
justify-content: space-between;
|
|
625
|
+
gap: 0.5rem;
|
|
626
|
+
padding: 0.625rem 0.875rem;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.chat-queue-title {
|
|
630
|
+
margin: 0;
|
|
631
|
+
font-size: inherit;
|
|
632
|
+
font-weight: 600;
|
|
633
|
+
overflow-wrap: anywhere;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.chat-queue-list {
|
|
637
|
+
display: flex;
|
|
638
|
+
flex-direction: column;
|
|
639
|
+
gap: 0;
|
|
640
|
+
max-block-size: 16rem;
|
|
641
|
+
overflow-y: auto;
|
|
642
|
+
overscroll-behavior: contain;
|
|
643
|
+
margin: 0;
|
|
644
|
+
padding: 0 0.875rem 0.875rem;
|
|
645
|
+
box-sizing: border-box;
|
|
646
|
+
list-style: none;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.chat-queue-item {
|
|
650
|
+
display: flex;
|
|
651
|
+
flex-shrink: 0;
|
|
652
|
+
flex-wrap: nowrap;
|
|
653
|
+
align-items: center;
|
|
654
|
+
gap: 0.375rem;
|
|
655
|
+
min-inline-size: 0;
|
|
656
|
+
max-inline-size: 100%;
|
|
657
|
+
box-sizing: border-box;
|
|
658
|
+
padding: 0.375rem 0.5rem;
|
|
659
|
+
border: 0;
|
|
660
|
+
background-color: transparent;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.chat-queue-icon {
|
|
664
|
+
flex-shrink: 0;
|
|
665
|
+
inline-size: 1rem;
|
|
666
|
+
block-size: 1rem;
|
|
667
|
+
color: var(--color-on-surface-variant);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.chat-queue-item-active .chat-queue-icon {
|
|
671
|
+
color: var(--color-on-surface);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
.chat-queue-attachment {
|
|
675
|
+
flex-shrink: 0;
|
|
676
|
+
inline-size: 2rem;
|
|
677
|
+
block-size: 2rem;
|
|
678
|
+
object-fit: cover;
|
|
679
|
+
border-radius: var(--radius-xs);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.chat-queue-number {
|
|
683
|
+
flex-shrink: 0;
|
|
684
|
+
color: var(--color-on-surface-variant);
|
|
685
|
+
font-variant-numeric: tabular-nums;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.chat-queue-count {
|
|
689
|
+
white-space: nowrap;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.chat-queue-content {
|
|
693
|
+
flex: 1 1 8rem;
|
|
694
|
+
min-inline-size: 0;
|
|
695
|
+
margin: 0;
|
|
696
|
+
overflow: hidden;
|
|
697
|
+
white-space: nowrap;
|
|
698
|
+
text-overflow: ellipsis;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.chat-queue-actions {
|
|
702
|
+
flex-wrap: nowrap;
|
|
703
|
+
flex-shrink: 0;
|
|
704
|
+
margin-inline-start: auto;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.chat-queue-steer,
|
|
708
|
+
.chat-queue-remove {
|
|
709
|
+
flex-shrink: 0;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.chat-queue[hidden],
|
|
713
|
+
.chat-queue-item[hidden] {
|
|
714
|
+
display: none;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.chat-composer {
|
|
718
|
+
position: relative;
|
|
719
|
+
display: flex;
|
|
720
|
+
flex-direction: column;
|
|
721
|
+
gap: 0.5rem;
|
|
722
|
+
min-inline-size: 0;
|
|
723
|
+
box-sizing: border-box;
|
|
724
|
+
margin: 0;
|
|
725
|
+
padding: 1rem;
|
|
726
|
+
border: 1px solid currentColor;
|
|
727
|
+
border-radius: var(--radius-xl);
|
|
728
|
+
background-color: var(--color-surface-container-high);
|
|
729
|
+
color: var(--color-on-surface);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.chat-composer:focus-within {
|
|
733
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.chat-composer-input {
|
|
737
|
+
display: block;
|
|
738
|
+
width: 100%;
|
|
739
|
+
min-inline-size: 0;
|
|
740
|
+
min-block-size: 3rem;
|
|
741
|
+
box-sizing: border-box;
|
|
742
|
+
margin: 0;
|
|
743
|
+
padding: 0;
|
|
744
|
+
border: 0;
|
|
745
|
+
outline: none;
|
|
746
|
+
background-color: transparent;
|
|
747
|
+
color: var(--color-on-surface);
|
|
748
|
+
font: inherit;
|
|
749
|
+
font-size: 0.9375rem;
|
|
750
|
+
line-height: 1.5;
|
|
751
|
+
resize: vertical;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.chat-composer-input::placeholder {
|
|
755
|
+
color: var(--color-on-surface-variant);
|
|
756
|
+
opacity: 1;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
.chat-composer-actions {
|
|
760
|
+
display: flex;
|
|
761
|
+
flex-wrap: wrap;
|
|
762
|
+
align-items: center;
|
|
763
|
+
justify-content: flex-end;
|
|
764
|
+
gap: 0.5rem;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.chat-composer-hint {
|
|
768
|
+
font-family: inherit;
|
|
769
|
+
font-size: 0.75rem;
|
|
770
|
+
font-weight: 400;
|
|
771
|
+
opacity: 1;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.chat-composer-primary { color: var(--color-primary); }
|
|
775
|
+
.chat-composer-secondary { color: var(--color-secondary); }
|
|
776
|
+
.chat-composer-tertiary { color: var(--color-tertiary); }
|
|
777
|
+
.chat-composer-info { color: var(--color-info); }
|
|
778
|
+
.chat-composer-success { color: var(--color-success); }
|
|
779
|
+
.chat-composer-warning { color: var(--color-warning); }
|
|
780
|
+
.chat-composer-error { color: var(--color-error); }
|
|
781
|
+
.chat-composer-ghost { border-color: transparent; }
|
|
782
|
+
|
|
486
783
|
.chat-bubble {
|
|
487
784
|
--chat-bubble-bg: var(--color-surface-container-highest);
|
|
488
785
|
--chat-bubble-fg: var(--color-on-surface);
|
|
@@ -508,40 +805,29 @@
|
|
|
508
805
|
.chat-bubble-content {
|
|
509
806
|
min-width: 0;
|
|
510
807
|
}
|
|
511
|
-
.chat-bubble pre { max-inline-size: 100%; min-inline-size: 0; overflow: auto; white-space: pre; }
|
|
512
|
-
.chat-bubble a { overflow-wrap: anywhere; text-decoration: underline; }
|
|
513
|
-
|
|
514
|
-
.chat-start .chat-bubble::before,
|
|
515
|
-
.chat-end .chat-bubble::before {
|
|
516
|
-
content: "";
|
|
517
|
-
position: absolute;
|
|
518
|
-
inset-block-start: 0;
|
|
519
|
-
inline-size: 0.75rem;
|
|
520
|
-
block-size: 0.75rem;
|
|
521
|
-
background-color: var(--chat-bubble-bg);
|
|
522
|
-
mask-image: radial-gradient(ellipse at 0 100%, transparent 68%, black 72%);
|
|
523
|
-
pointer-events: none;
|
|
524
|
-
}
|
|
525
808
|
|
|
526
|
-
.chat-
|
|
527
|
-
|
|
809
|
+
.chat-bubble-collapsible > .chat-bubble-content {
|
|
810
|
+
max-block-size: 6lh;
|
|
811
|
+
overflow: hidden;
|
|
812
|
+
white-space: pre-wrap;
|
|
528
813
|
}
|
|
529
814
|
|
|
530
|
-
.chat-
|
|
531
|
-
|
|
815
|
+
.chat-bubble-collapsible:has(> .chat-bubble-toggle[aria-expanded="true"]) > .chat-bubble-content {
|
|
816
|
+
max-block-size: none;
|
|
817
|
+
overflow: visible;
|
|
532
818
|
}
|
|
533
819
|
|
|
534
|
-
.chat-
|
|
535
|
-
|
|
536
|
-
|
|
820
|
+
.chat-bubble-toggle {
|
|
821
|
+
align-self: flex-end;
|
|
822
|
+
color: inherit;
|
|
537
823
|
}
|
|
538
824
|
|
|
539
|
-
.chat-
|
|
540
|
-
|
|
825
|
+
.chat-bubble-toggle[hidden] {
|
|
826
|
+
display: none;
|
|
541
827
|
}
|
|
542
828
|
|
|
543
|
-
.chat-
|
|
544
|
-
.chat-
|
|
829
|
+
.chat-bubble pre { max-inline-size: 100%; min-inline-size: 0; overflow: auto; white-space: pre; }
|
|
830
|
+
.chat-bubble a { overflow-wrap: anywhere; text-decoration: underline; }
|
|
545
831
|
|
|
546
832
|
.chat-bubble-primary {
|
|
547
833
|
--chat-bubble-bg: var(--color-primary-container);
|
|
@@ -811,6 +1097,7 @@
|
|
|
811
1097
|
animation-delay: 300ms;
|
|
812
1098
|
}
|
|
813
1099
|
|
|
1100
|
+
.chat-streaming::after,
|
|
814
1101
|
.chat-bubble-streaming::after,
|
|
815
1102
|
.chat-bubble-content.chat-bubble-streaming::after {
|
|
816
1103
|
content: "";
|
|
@@ -890,12 +1177,14 @@
|
|
|
890
1177
|
.chat-typing::before,
|
|
891
1178
|
.chat-typing::after,
|
|
892
1179
|
.chat-typing span,
|
|
1180
|
+
.chat-streaming::after,
|
|
893
1181
|
.chat-bubble-streaming::after,
|
|
894
1182
|
.chat-bubble-content.chat-bubble-streaming::after,
|
|
895
1183
|
.chat-tool-running .chat-tool-header::before {
|
|
896
1184
|
animation: none;
|
|
897
1185
|
}
|
|
898
1186
|
|
|
1187
|
+
.chat-streaming::after,
|
|
899
1188
|
.chat-bubble-streaming::after,
|
|
900
1189
|
.chat-bubble-content.chat-bubble-streaming::after {
|
|
901
1190
|
opacity: 1;
|