@webless/agent 0.13.1 → 0.14.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/react.css CHANGED
@@ -9,7 +9,7 @@
9
9
  --as-surface-muted: #f4f6fb;
10
10
  --as-text: #171b2a;
11
11
  --as-text-muted: #5a6378;
12
- --as-text-subtle: #8a94a8;
12
+ --as-text-subtle: #6b7280;
13
13
  --as-border: rgb(42 51 70 / 0.1);
14
14
  --as-visitor-bubble: #6f16ff;
15
15
  --as-visitor-text: #ffffff;
@@ -578,142 +578,6 @@ html.webless-agent-page-shift {
578
578
  }
579
579
  }
580
580
 
581
- /* src/react/components/LearnMore/LearnMore.css */
582
- .learn-more {
583
- width: 100%;
584
- min-width: 0;
585
- }
586
- .learn-more__heading {
587
- margin: 0;
588
- font-size: 12.5px;
589
- font-weight: 650;
590
- line-height: 1.5;
591
- }
592
- .learn-more__toggle {
593
- appearance: none;
594
- display: inline-flex;
595
- align-items: center;
596
- justify-content: flex-start;
597
- gap: 4px;
598
- min-height: 44px;
599
- margin: 0;
600
- padding: 10px 16px;
601
- border: 0;
602
- border-radius: 8px;
603
- background: transparent;
604
- color: var(--as-text-muted);
605
- font: inherit;
606
- font-size: 12.5px;
607
- font-weight: 650;
608
- text-align: left;
609
- cursor: pointer;
610
- transition: background 150ms ease, color 150ms ease;
611
- }
612
- .learn-more .learn-more__toggle {
613
- width: auto;
614
- background: transparent;
615
- }
616
- .learn-more .learn-more__toggle:hover {
617
- color: var(--as-brand);
618
- background: var(--as-brand-soft);
619
- }
620
- .learn-more__toggle:focus-visible {
621
- outline: 2px solid var(--as-brand);
622
- outline-offset: 2px;
623
- }
624
- .learn-more__chevron {
625
- width: 14px;
626
- height: 14px;
627
- transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
628
- }
629
- .learn-more__toggle[aria-expanded=true] .learn-more__chevron {
630
- transform: rotate(180deg);
631
- }
632
- .learn-more__panel {
633
- display: grid;
634
- grid-template-rows: 0fr;
635
- visibility: hidden;
636
- transition: grid-template-rows 220ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 220ms;
637
- }
638
- .learn-more__panel--open {
639
- grid-template-rows: 1fr;
640
- visibility: visible;
641
- transition: grid-template-rows 220ms cubic-bezier(0.22, 1, 0.36, 1);
642
- }
643
- .learn-more__panel-inner {
644
- min-height: 0;
645
- overflow: hidden;
646
- }
647
- .learn-more__questions {
648
- margin: 0;
649
- padding: 0 0 4px;
650
- list-style: none;
651
- }
652
- .learn-more__questions li {
653
- border-bottom: 1px solid var(--as-border);
654
- }
655
- .learn-more__questions li:last-child {
656
- border-bottom: 0;
657
- }
658
- .learn-more__questions button {
659
- appearance: none;
660
- display: flex;
661
- align-items: center;
662
- gap: var(--as-discovery-row-gap);
663
- width: 100%;
664
- min-height: var(--as-discovery-row-min-height);
665
- padding: var(--as-discovery-row-padding);
666
- border: 0;
667
- border-radius: 6px;
668
- background: transparent;
669
- color: var(--as-text);
670
- text-align: left;
671
- font: inherit;
672
- font-size: var(--as-discovery-row-font-size);
673
- font-weight: var(--as-discovery-row-font-weight);
674
- line-height: var(--as-discovery-row-line-height);
675
- cursor: pointer;
676
- }
677
- .learn-more__question-icon {
678
- display: inline-flex;
679
- flex: 0 0 18px;
680
- color: var(--as-text-muted);
681
- }
682
- .learn-more__question-text {
683
- min-width: 0;
684
- flex: 1;
685
- overflow-wrap: anywhere;
686
- }
687
- .learn-more__question-arrow {
688
- width: 18px;
689
- height: 18px;
690
- flex-shrink: 0;
691
- color: var(--as-text-muted);
692
- }
693
- .learn-more .learn-more__questions button:hover:not(:disabled) {
694
- background: var(--as-brand-soft);
695
- color: var(--as-brand);
696
- }
697
- .learn-more .learn-more__questions button:hover:not(:disabled) .learn-more__question-arrow {
698
- color: var(--as-brand);
699
- }
700
- .learn-more__questions button:focus-visible {
701
- outline: none;
702
- box-shadow: var(--as-focus-inset-ring);
703
- }
704
- .learn-more__questions button:disabled {
705
- opacity: 0.5;
706
- cursor: default;
707
- }
708
- @media (prefers-reduced-motion: reduce) {
709
- .learn-more__panel {
710
- transition: none;
711
- }
712
- .learn-more__chevron {
713
- transition: none;
714
- }
715
- }
716
-
717
581
  /* src/react/components/SearchReferences/SearchReferences.css */
718
582
  .search-references {
719
583
  display: grid;
@@ -739,15 +603,13 @@ html.webless-agent-page-shift {
739
603
  }
740
604
  .search-references__list {
741
605
  display: grid;
606
+ gap: 0;
742
607
  margin: 0;
743
608
  padding: 0;
744
609
  list-style: none;
745
610
  }
746
- .search-references__list > li {
747
- border-bottom: 1px solid var(--as-border);
748
- }
749
- .search-references__list > li:last-child {
750
- border-bottom: 0;
611
+ .search-references__list > li + li {
612
+ border-top: 1px solid color-mix(in srgb, var(--as-text) 6%, transparent);
751
613
  }
752
614
  .search-references__source {
753
615
  display: flex;
@@ -835,6 +697,94 @@ html.webless-agent-page-shift {
835
697
  color: var(--as-text-muted);
836
698
  }
837
699
 
700
+ /* src/react/components/ExploreMore/ExploreMore.css */
701
+ .explore-more {
702
+ display: grid;
703
+ width: 100%;
704
+ min-width: 0;
705
+ gap: 16px;
706
+ }
707
+ .explore-more__section {
708
+ display: grid;
709
+ min-width: 0;
710
+ gap: 2px;
711
+ }
712
+ .explore-more__section .search-references {
713
+ margin-top: 0;
714
+ }
715
+ .explore-more__label {
716
+ margin: 0;
717
+ padding: 0 16px 2px;
718
+ color: var(--as-text-muted);
719
+ font-size: 13px;
720
+ font-weight: 700;
721
+ line-height: 1.4;
722
+ }
723
+ .explore-more__section .search-references__list > li:first-child > .search-references__source,
724
+ .explore-more__section .explore-more__questions > li:first-child > button {
725
+ padding-top: 6px;
726
+ }
727
+ .explore-more__questions {
728
+ display: grid;
729
+ gap: 0;
730
+ margin: 0;
731
+ padding: 0;
732
+ list-style: none;
733
+ }
734
+ .explore-more__questions > li + li {
735
+ border-top: 1px solid color-mix(in srgb, var(--as-text) 6%, transparent);
736
+ }
737
+ .explore-more__questions button {
738
+ appearance: none;
739
+ display: flex;
740
+ align-items: center;
741
+ gap: var(--as-discovery-row-gap);
742
+ width: 100%;
743
+ min-height: var(--as-discovery-row-min-height);
744
+ padding: var(--as-discovery-row-padding);
745
+ border: 0;
746
+ border-radius: 6px;
747
+ background: transparent;
748
+ color: var(--as-text);
749
+ text-align: left;
750
+ font: inherit;
751
+ font-size: var(--as-discovery-row-font-size);
752
+ font-weight: var(--as-discovery-row-font-weight);
753
+ line-height: var(--as-discovery-row-line-height);
754
+ cursor: pointer;
755
+ }
756
+ .explore-more__question-icon {
757
+ display: inline-flex;
758
+ flex: 0 0 18px;
759
+ color: var(--as-text-muted);
760
+ }
761
+ .explore-more__question-text {
762
+ min-width: 0;
763
+ flex: 1;
764
+ overflow-wrap: anywhere;
765
+ }
766
+ .explore-more__question-arrow {
767
+ width: 18px;
768
+ height: 18px;
769
+ flex-shrink: 0;
770
+ color: var(--as-text-muted);
771
+ }
772
+ .explore-more .explore-more__questions button:hover:not(:disabled) {
773
+ background: var(--as-brand-soft);
774
+ color: var(--as-brand);
775
+ }
776
+ .explore-more .explore-more__questions button:hover:not(:disabled) .explore-more__question-arrow {
777
+ color: var(--as-brand);
778
+ }
779
+ .explore-more__questions button:focus-visible {
780
+ outline: none;
781
+ box-shadow: var(--as-focus-inset-ring);
782
+ }
783
+ .explore-more__questions button:disabled {
784
+ opacity: 0.5;
785
+ cursor: default;
786
+ }
787
+
838
788
  /* src/react/components/AnswerReceiptDialog/AnswerReceiptDialog.css */
839
789
  .agent-receipt-dialog {
840
790
  position: absolute;
@@ -1252,48 +1202,55 @@ html.webless-agent-page-shift {
1252
1202
  transition: none;
1253
1203
  }
1254
1204
  }
1255
- .composer__resume {
1205
+ .composer__actions {
1256
1206
  display: flex;
1257
1207
  align-items: center;
1258
- justify-content: space-between;
1259
- flex-wrap: nowrap;
1260
- gap: 8px 10px;
1208
+ flex-wrap: wrap;
1209
+ gap: 8px;
1261
1210
  padding: 0 2px;
1262
- color: var(--as-text-muted);
1263
- font-size: 11px;
1264
- line-height: 1.25;
1265
1211
  }
1266
- .composer__resume > span {
1267
- min-width: 0;
1268
- flex: 1 1 auto;
1269
- overflow: hidden;
1270
- text-overflow: ellipsis;
1271
- white-space: nowrap;
1272
- }
1273
- .composer__resume button {
1274
- border: none;
1275
- border-radius: 4px;
1276
- background: transparent;
1212
+ .composer__action-badge {
1213
+ appearance: none;
1214
+ display: inline-flex;
1215
+ align-items: center;
1216
+ gap: 5px;
1217
+ max-width: 100%;
1218
+ min-height: 26px;
1219
+ box-sizing: border-box;
1220
+ padding: 2px 10px;
1221
+ border: 1px solid var(--as-border);
1222
+ border-radius: 999px;
1223
+ background: var(--as-surface);
1277
1224
  color: var(--as-text);
1278
- flex-shrink: 0;
1279
- padding: 4px 0;
1280
1225
  font: inherit;
1281
- font-size: 11px;
1226
+ font-size: 11.5px;
1282
1227
  font-weight: 600;
1283
- line-height: 1.25;
1284
- text-decoration: underline;
1285
- text-underline-offset: 3px;
1286
- white-space: nowrap;
1228
+ line-height: 1.4;
1229
+ overflow-wrap: anywhere;
1230
+ text-decoration: none;
1287
1231
  cursor: pointer;
1232
+ transition:
1233
+ border-color 150ms ease,
1234
+ background 150ms ease,
1235
+ color 150ms ease;
1288
1236
  }
1289
- .composer__resume button:disabled {
1290
- opacity: 0.45;
1291
- cursor: not-allowed;
1237
+ .composer__actions .composer__action-badge {
1238
+ width: auto;
1239
+ background: var(--as-surface);
1240
+ }
1241
+ .composer__actions .composer__action-badge:hover:not(:disabled) {
1242
+ border-color: color-mix(in srgb, var(--as-brand) 32%, var(--as-border));
1243
+ background: var(--as-brand-soft);
1244
+ color: var(--as-brand);
1292
1245
  }
1293
- .composer__resume button:focus-visible {
1246
+ .composer__action-badge:focus-visible {
1294
1247
  outline: 2px solid var(--as-brand);
1295
1248
  outline-offset: 2px;
1296
1249
  }
1250
+ .composer__action-badge:disabled {
1251
+ opacity: 0.5;
1252
+ cursor: default;
1253
+ }
1297
1254
 
1298
1255
  /* src/react/components/FollowUpChips/FollowUpChips.css */
1299
1256
  .followups {
@@ -1852,6 +1809,12 @@ html.webless-agent-page-shift {
1852
1809
  .message-bubble__markdown ul {
1853
1810
  list-style: disc outside;
1854
1811
  }
1812
+ .message-bubble__text .message-bubble__markdown :is(ol, ul) li::marker {
1813
+ color: var(--as-text-muted);
1814
+ font-size: 1em;
1815
+ font-style: normal;
1816
+ font-weight: 650;
1817
+ }
1855
1818
  .message-bubble__markdown [data-streamdown=strong] {
1856
1819
  font-weight: 650;
1857
1820
  }
@@ -3011,9 +2974,6 @@ html.webless-agent-page-shift {
3011
2974
  border-top: 1px solid var(--as-hairline);
3012
2975
  background: var(--as-surface);
3013
2976
  }
3014
- .agent-rail__composer-wrap:has(.composer__resume) {
3015
- padding-inline: 12px;
3016
- }
3017
2977
  .agent-rail__overlay {
3018
2978
  position: absolute;
3019
2979
  inset: 0;
@@ -3082,8 +3042,7 @@ html.webless-agent-page-shift {
3082
3042
  }
3083
3043
  .agent-rail__disclaimer {
3084
3044
  flex-shrink: 0;
3085
- padding: 8px 16px 6px;
3086
- background: var(--as-surface);
3045
+ margin-top: 8px;
3087
3046
  }
3088
3047
  .agent-rail__disclaimer p {
3089
3048
  margin: 0;
@@ -3288,7 +3247,6 @@ html.webless-agent-page-shift {
3288
3247
  color: var(--as-text);
3289
3248
  font-weight: 650;
3290
3249
  }
3291
- .agent-rail__handoff-cta,
3292
3250
  .agent-rail__handoff-action {
3293
3251
  appearance: none;
3294
3252
  flex: 0 0 auto;
@@ -3304,17 +3262,14 @@ html.webless-agent-page-shift {
3304
3262
  cursor: pointer;
3305
3263
  transition: border-color 150ms ease, background 150ms ease;
3306
3264
  }
3307
- .agent-rail__handoff-cta:hover:not(:disabled),
3308
3265
  .agent-rail__handoff-action:hover:not(:disabled) {
3309
3266
  border-color: color-mix(in srgb, var(--as-brand) 40%, var(--as-border));
3310
3267
  background: var(--as-surface-muted);
3311
3268
  }
3312
- .agent-rail__handoff-cta:focus-visible,
3313
3269
  .agent-rail__handoff-action:focus-visible {
3314
3270
  outline: 2px solid var(--as-brand);
3315
3271
  outline-offset: 2px;
3316
3272
  }
3317
- .agent-rail__handoff-cta:disabled,
3318
3273
  .agent-rail__handoff-action:disabled {
3319
3274
  opacity: 0.55;
3320
3275
  cursor: default;
@@ -3347,16 +3302,17 @@ html.webless-agent-page-shift {
3347
3302
  display: inline-flex;
3348
3303
  align-items: center;
3349
3304
  justify-content: flex-start;
3350
- gap: 3px;
3305
+ gap: 4px;
3351
3306
  margin-left: auto;
3352
- min-height: 44px;
3353
- padding: 10px 16px;
3307
+ min-height: 28px;
3308
+ box-sizing: border-box;
3309
+ padding: 4px 8px;
3354
3310
  border: 0;
3355
3311
  border-radius: 8px;
3356
3312
  background: transparent;
3357
- color: var(--as-text-muted);
3313
+ color: var(--as-text-subtle);
3358
3314
  font: inherit;
3359
- font-size: 12.5px;
3315
+ font-size: 12px;
3360
3316
  font-weight: 650;
3361
3317
  cursor: pointer;
3362
3318
  transition: background 150ms ease, color 150ms ease;
@@ -3366,8 +3322,8 @@ html.webless-agent-page-shift {
3366
3322
  background: transparent;
3367
3323
  }
3368
3324
  .agent-rail__answer-actions .agent-rail__sources-button:hover {
3369
- color: var(--as-brand);
3370
- background: var(--as-brand-soft);
3325
+ color: var(--as-text);
3326
+ background: var(--as-surface-muted);
3371
3327
  }
3372
3328
  .agent-rail__sources-button:focus-visible {
3373
3329
  outline: 2px solid var(--as-brand);
@@ -3378,8 +3334,8 @@ html.webless-agent-page-shift {
3378
3334
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
3379
3335
  }
3380
3336
  .agent-rail__sources-button-chevron svg {
3381
- width: 14px;
3382
- height: 14px;
3337
+ width: 13px;
3338
+ height: 13px;
3383
3339
  }
3384
3340
  .agent-rail__sources-button[aria-expanded=true] .agent-rail__sources-button-chevron {
3385
3341
  transform: rotate(180deg);
@@ -3400,17 +3356,8 @@ html.webless-agent-page-shift {
3400
3356
  min-height: 0;
3401
3357
  overflow: hidden;
3402
3358
  }
3403
- .agent-rail__sources-panel-inner > .search-references {
3404
- margin-top: 2px;
3405
- }
3406
- .agent-rail .learn-more .learn-more__toggle {
3407
- width: auto;
3408
- background: transparent;
3409
- padding-left: 0;
3410
- }
3411
- .agent-rail .learn-more .learn-more__toggle:hover {
3412
- color: var(--as-brand);
3413
- background: var(--as-brand-soft);
3359
+ .agent-rail__sources-panel-inner > .explore-more {
3360
+ margin-top: 14px;
3414
3361
  }
3415
3362
 
3416
3363
  /* src/react/components/AssistEdgeTab/AssistEdgeTab.css */