canvasxpress-cli 61.4.0 → 61.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/package.json +1 -1
- package/src/canvasXpress.css +261 -1
- package/src/canvasXpress.js +3 -3
package/package.json
CHANGED
package/src/canvasXpress.css
CHANGED
|
@@ -452,6 +452,7 @@ pre.cX-code-content code::before {
|
|
|
452
452
|
.cX-Wrapper.show-Chat .cX-Container-Chat {
|
|
453
453
|
opacity: 1;
|
|
454
454
|
visibility: visible;
|
|
455
|
+
margin-top: 10px;
|
|
455
456
|
}
|
|
456
457
|
|
|
457
458
|
div.cX-Chat {
|
|
@@ -521,6 +522,265 @@ div.cX-Chat {
|
|
|
521
522
|
pointer-events: none;
|
|
522
523
|
}
|
|
523
524
|
|
|
525
|
+
.cX-Chat-Messages-Container {
|
|
526
|
+
width: 100%;
|
|
527
|
+
background: transparent;
|
|
528
|
+
border: none;
|
|
529
|
+
outline: none;
|
|
530
|
+
font-family: var(--cx-font-family);
|
|
531
|
+
overscroll-behavior: contain;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.cX-Chat-Messages-Container:has(.cX-Chat-Messages:not(:empty)) {
|
|
535
|
+
border-top: var(--cx-border);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.cX-Chat-Messages {
|
|
539
|
+
display: block;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/*
|
|
543
|
+
* Chat HTML Panel — floating, draggable, closable
|
|
544
|
+
*/
|
|
545
|
+
.cX-Chat-Html-Panel {
|
|
546
|
+
position: fixed;
|
|
547
|
+
width: 500px;
|
|
548
|
+
height: 400px;
|
|
549
|
+
background-color: var(--cx-background-widgets-color);
|
|
550
|
+
border: var(--cx-border);
|
|
551
|
+
border-radius: var(--cx-border-radius);
|
|
552
|
+
z-index: 10005;
|
|
553
|
+
box-sizing: border-box;
|
|
554
|
+
display: flex;
|
|
555
|
+
flex-direction: column;
|
|
556
|
+
overflow: hidden;
|
|
557
|
+
cursor: move;
|
|
558
|
+
resize: both;
|
|
559
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.cX-Chat-Html-Panel-Header {
|
|
563
|
+
display: flex;
|
|
564
|
+
align-items: center;
|
|
565
|
+
justify-content: space-between;
|
|
566
|
+
padding: 6px 10px;
|
|
567
|
+
background: var(--cx-background-color);
|
|
568
|
+
border-bottom: var(--cx-border);
|
|
569
|
+
flex-shrink: 0;
|
|
570
|
+
user-select: none;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.cX-Chat-Html-Panel-Title {
|
|
574
|
+
font-family: var(--cx-font-family);
|
|
575
|
+
font-size: 13px;
|
|
576
|
+
font-weight: 600;
|
|
577
|
+
color: var(--cx-color-ui-background);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
img.cX-Chat-Html-Panel-Close,
|
|
581
|
+
svg.cX-Chat-Html-Panel-Close {
|
|
582
|
+
cursor: pointer;
|
|
583
|
+
background: transparent !important;
|
|
584
|
+
border: none !important;
|
|
585
|
+
box-shadow: none !important;
|
|
586
|
+
flex-shrink: 0;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.cX-Chat-Html-Panel-Content {
|
|
590
|
+
overflow-y: auto;
|
|
591
|
+
padding: 0;
|
|
592
|
+
flex: 1;
|
|
593
|
+
cursor: default;
|
|
594
|
+
overscroll-behavior: contain;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/*
|
|
598
|
+
* Chat HTML Panel — LLM response content
|
|
599
|
+
*/
|
|
600
|
+
.cX-Chat-LLM-Response {
|
|
601
|
+
font-family: var(--cx-font-family);
|
|
602
|
+
font-size: 16px;
|
|
603
|
+
line-height: 1.6;
|
|
604
|
+
color: var(--cx-color-ui-font);
|
|
605
|
+
background: var(--cx-background-widgets-color);
|
|
606
|
+
border: var(--cx-border);
|
|
607
|
+
border-radius: var(--cx-border-radius);
|
|
608
|
+
padding: 16px 20px;
|
|
609
|
+
margin: 10px;
|
|
610
|
+
width: calc(100% - 20px);
|
|
611
|
+
box-sizing: border-box;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.cX-Chat-LLM-Response h3 {
|
|
615
|
+
font-size: 16px;
|
|
616
|
+
font-weight: 600;
|
|
617
|
+
margin: 0 0 10px;
|
|
618
|
+
color: var(--cx-color-widgets);
|
|
619
|
+
border-bottom: var(--cx-border);
|
|
620
|
+
padding-bottom: 6px;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.cX-Chat-LLM-Response p {
|
|
624
|
+
margin: 6px 0;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.cX-Chat-LLM-Response code {
|
|
628
|
+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
|
629
|
+
font-size: 12px;
|
|
630
|
+
background: var(--cx-background-widgets-color);
|
|
631
|
+
border: var(--cx-border);
|
|
632
|
+
border-radius: var(--cx-border-radius);
|
|
633
|
+
padding: 1px 5px;
|
|
634
|
+
color: var(--cx-color-ui-font);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.cX-Chat-LLM-Response pre {
|
|
638
|
+
background: var(--cx-background-widgets-color);
|
|
639
|
+
border: var(--cx-border);
|
|
640
|
+
border-radius: var(--cx-border-radius);
|
|
641
|
+
padding: 12px 14px;
|
|
642
|
+
overflow-x: auto;
|
|
643
|
+
margin: 10px 0;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.cX-Chat-LLM-Response pre code {
|
|
647
|
+
background: none;
|
|
648
|
+
border: none;
|
|
649
|
+
padding: 0;
|
|
650
|
+
color: var(--cx-color-ui-font);
|
|
651
|
+
font-size: 12px;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.cX-Chat-LLM-Response ul {
|
|
655
|
+
margin: 6px 0 6px 18px;
|
|
656
|
+
padding: 0;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.cX-Chat-LLM-Response li {
|
|
660
|
+
margin: 2px 0;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.cX-Chat-LLM-Response strong {
|
|
664
|
+
font-weight: 600;
|
|
665
|
+
color: var(--cx-color-ui-font);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.cX-Chat-LLM-Response em {
|
|
669
|
+
color: var(--cx-color-gray);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.cX-Chat-LLM-Response div {
|
|
673
|
+
margin: 3px 0;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.cX-Chat-LLM-Error {
|
|
677
|
+
color: var(--cx-color-red);
|
|
678
|
+
font-weight: 600;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.cX-Chat-LLM-Links {
|
|
682
|
+
margin-top: 12px;
|
|
683
|
+
padding-top: 8px;
|
|
684
|
+
border-top: var(--cx-border);
|
|
685
|
+
font-size: 13px;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.cX-Chat-LLM-Links a {
|
|
689
|
+
color: var(--cx-color-widgets);
|
|
690
|
+
text-decoration: none;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.cX-Chat-LLM-Links a:hover {
|
|
694
|
+
text-decoration: underline;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
/*
|
|
698
|
+
* Chat HTML Panel — select_canvasxpress_chart cards
|
|
699
|
+
*/
|
|
700
|
+
.cX-Chat-Select-Top {
|
|
701
|
+
background: var(--cx-background-widgets-color);
|
|
702
|
+
border: 2px solid var(--cx-color-widgets);
|
|
703
|
+
border-radius: var(--cx-border-radius);
|
|
704
|
+
padding: 12px 14px;
|
|
705
|
+
margin-bottom: 10px;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
.cX-Chat-Select-Alt {
|
|
709
|
+
background: var(--cx-background-widgets-color);
|
|
710
|
+
border: var(--cx-border);
|
|
711
|
+
border-radius: var(--cx-border-radius);
|
|
712
|
+
padding: 10px 12px;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
.cX-Chat-Select-Grid {
|
|
716
|
+
display: grid;
|
|
717
|
+
grid-template-columns: 1fr 1fr;
|
|
718
|
+
gap: 8px;
|
|
719
|
+
margin-top: 8px;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.cX-Chat-Select-Header {
|
|
723
|
+
display: flex;
|
|
724
|
+
align-items: baseline;
|
|
725
|
+
justify-content: space-between;
|
|
726
|
+
margin-bottom: 6px;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.cX-Chat-Select-GT {
|
|
730
|
+
font-weight: 700;
|
|
731
|
+
font-size: 15px;
|
|
732
|
+
color: var(--cx-color-widgets);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.cX-Chat-Select-Score {
|
|
736
|
+
font-size: 11px;
|
|
737
|
+
color: #ffffff;
|
|
738
|
+
background: var(--cx-background-color);
|
|
739
|
+
border: var(--cx-border);
|
|
740
|
+
border-radius: 10px;
|
|
741
|
+
padding: 1px 7px;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.cX-Chat-Select-Desc {
|
|
745
|
+
font-size: 13px;
|
|
746
|
+
margin: 4px 0;
|
|
747
|
+
color: var(--cx-color-ui-font);
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.cX-Chat-Select-Clinical {
|
|
751
|
+
font-size: 12px;
|
|
752
|
+
margin: 4px 0;
|
|
753
|
+
color: var(--cx-color-gray);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.cX-Chat-Select-Factors {
|
|
757
|
+
font-size: 12px;
|
|
758
|
+
margin: 4px 0 4px 16px;
|
|
759
|
+
padding: 0;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.cX-Chat-Select-Next {
|
|
763
|
+
font-size: 11px;
|
|
764
|
+
margin: 6px 0 4px;
|
|
765
|
+
color: var(--cx-color-gray);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.cX-Chat-LLM-Apply {
|
|
769
|
+
margin-top: 8px;
|
|
770
|
+
padding: 4px 12px;
|
|
771
|
+
font-size: 12px;
|
|
772
|
+
font-family: var(--cx-font-family);
|
|
773
|
+
background: var(--cx-color-widgets);
|
|
774
|
+
color: var(--cx-background-widgets-color);
|
|
775
|
+
border: none;
|
|
776
|
+
border-radius: var(--cx-border-radius);
|
|
777
|
+
cursor: pointer;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
.cX-Chat-LLM-Apply:hover {
|
|
781
|
+
opacity: 0.85;
|
|
782
|
+
}
|
|
783
|
+
|
|
524
784
|
.cX-Chat-Question {
|
|
525
785
|
margin: 0;
|
|
526
786
|
outline: none;
|
|
@@ -535,7 +795,7 @@ div.cX-Chat {
|
|
|
535
795
|
}
|
|
536
796
|
|
|
537
797
|
.cX-Chat-Question[empty]:empty::before {
|
|
538
|
-
content:
|
|
798
|
+
content: attr(data-placeholder);
|
|
539
799
|
color: #94a3b8;
|
|
540
800
|
}
|
|
541
801
|
|