@webless/agent 0.10.2 → 0.10.4

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/embed.css CHANGED
@@ -424,9 +424,13 @@ summary.agent-transcript__activity-heading::before {
424
424
  margin: 0;
425
425
  color: var(--as-text-muted);
426
426
  font-size: 12.5px;
427
+ font-weight: 650;
428
+ font-style: normal;
429
+ line-height: 1.4;
430
+ }
431
+ .agent-activity-bubble__status--soft {
427
432
  font-weight: 400;
428
433
  font-style: italic;
429
- line-height: 1.4;
430
434
  }
431
435
  .agent-activity-bubble__pulse {
432
436
  position: relative;
@@ -1052,22 +1056,34 @@ summary.agent-transcript__activity-heading::before {
1052
1056
  display: flex;
1053
1057
  align-items: center;
1054
1058
  justify-content: space-between;
1055
- flex-wrap: wrap;
1056
- gap: 4px 12px;
1057
- padding: 0 8px;
1059
+ flex-wrap: nowrap;
1060
+ gap: 8px 10px;
1061
+ padding: 0 2px;
1058
1062
  color: var(--as-text-muted);
1059
- font-size: 12px;
1063
+ font-size: 11px;
1064
+ line-height: 1.25;
1065
+ }
1066
+ .composer__resume > span {
1067
+ min-width: 0;
1068
+ flex: 1 1 auto;
1069
+ overflow: hidden;
1070
+ text-overflow: ellipsis;
1071
+ white-space: nowrap;
1060
1072
  }
1061
1073
  .composer__resume button {
1062
1074
  border: none;
1063
1075
  border-radius: 4px;
1064
1076
  background: transparent;
1065
1077
  color: var(--as-text);
1066
- padding: 8px 0;
1078
+ flex-shrink: 0;
1079
+ padding: 4px 0;
1067
1080
  font: inherit;
1081
+ font-size: 11px;
1068
1082
  font-weight: 600;
1083
+ line-height: 1.25;
1069
1084
  text-decoration: underline;
1070
1085
  text-underline-offset: 3px;
1086
+ white-space: nowrap;
1071
1087
  cursor: pointer;
1072
1088
  }
1073
1089
  .composer__resume button:disabled {
@@ -1671,6 +1687,23 @@ summary.agent-transcript__activity-heading::before {
1671
1687
  color: var(--as-brand);
1672
1688
  font-size: 11px;
1673
1689
  }
1690
+ .message-bubble__text .message-bubble__markdown :where(h1, h2, h3, h4, h5, h6) {
1691
+ margin: 16px 0 8px;
1692
+ padding: 0;
1693
+ color: inherit;
1694
+ font-family: inherit;
1695
+ font-size: 1em;
1696
+ font-style: normal;
1697
+ font-weight: 650;
1698
+ line-height: 1.4;
1699
+ letter-spacing: normal;
1700
+ text-align: start;
1701
+ text-transform: none;
1702
+ overflow-wrap: anywhere;
1703
+ }
1704
+ .message-bubble__text .message-bubble__markdown :where(h1, h2) {
1705
+ font-size: 1.125em;
1706
+ }
1674
1707
  .message-bubble__markdown > :first-child {
1675
1708
  margin-top: 0;
1676
1709
  }
@@ -2682,6 +2715,9 @@ summary.agent-transcript__activity-heading::before {
2682
2715
  border-top: 1px solid var(--as-hairline);
2683
2716
  background: var(--as-surface);
2684
2717
  }
2718
+ .agent-rail__composer-wrap:has(.composer__resume) {
2719
+ padding-inline: 12px;
2720
+ }
2685
2721
  .agent-rail__overlay {
2686
2722
  position: absolute;
2687
2723
  inset: 0;
@@ -2925,14 +2961,12 @@ summary.agent-transcript__activity-heading::before {
2925
2961
  }
2926
2962
 
2927
2963
  /* src/react/components/AssistEdgeTab/AssistEdgeTab.css */
2928
- @property --as-tab-beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
2929
2964
  .assist-edge-tab {
2930
2965
  --tab-ink: var(--as-brand);
2931
2966
  --tab-fill: var(--as-surface);
2932
2967
  --tab-line: color-mix(in srgb, var(--as-brand) 32%, var(--as-border));
2933
2968
  --tab-along: 50%;
2934
2969
  --tab-inset: 0px;
2935
- --as-tab-beam: 0deg;
2936
2970
  position: fixed;
2937
2971
  top: auto;
2938
2972
  right: auto;
@@ -3097,9 +3131,9 @@ summary.agent-transcript__activity-heading::before {
3097
3131
  justify-content: flex-start;
3098
3132
  gap: 11px;
3099
3133
  min-width: 0;
3100
- min-height: 56px;
3101
- padding: 6px 20px 6px 6px;
3102
- border-radius: 999px;
3134
+ min-height: 0;
3135
+ padding: 12px 20px 12px 12px;
3136
+ border-radius: 48px;
3103
3137
  transform: translateX(-50%) translateY(calc(100% + 18px));
3104
3138
  }
3105
3139
  .assist-edge-tab--bottom.is-visible {
@@ -3163,6 +3197,16 @@ summary.agent-transcript__activity-heading::before {
3163
3197
  .assist-edge-tab--ask.assist-edge-tab--left {
3164
3198
  border-radius: 0 18px 18px 0;
3165
3199
  }
3200
+ .assist-edge-tab--ask.assist-edge-tab--bottom,
3201
+ .assist-edge-tab--ask.assist-edge-tab--mobile,
3202
+ .assist-edge-tab--fill.assist-edge-tab--bottom,
3203
+ .assist-edge-tab--fill.assist-edge-tab--mobile,
3204
+ .assist-edge-tab--outline.assist-edge-tab--bottom,
3205
+ .assist-edge-tab--outline.assist-edge-tab--mobile {
3206
+ --tab-fill: #ffffff;
3207
+ background-color: #ffffff;
3208
+ background-image: none;
3209
+ }
3166
3210
  .assist-edge-tab--fill {
3167
3211
  --tab-fill: var(--as-brand);
3168
3212
  --tab-ink: #fff;
@@ -3177,49 +3221,27 @@ summary.agent-transcript__activity-heading::before {
3177
3221
  .webless-agent-root > .assist-edge-tab.assist-edge-tab--mobile,
3178
3222
  .assist-edge-tab.assist-edge-tab--bottom,
3179
3223
  .assist-edge-tab.assist-edge-tab--mobile {
3180
- isolation: isolate;
3181
3224
  box-sizing: border-box;
3182
3225
  color-scheme: light;
3183
3226
  --tab-fill: #ffffff;
3184
- --tab-ink: #171717;
3227
+ --tab-ink: #1f2937;
3185
3228
  --tab-line: transparent;
3186
- --pill-brand: var(--as-brand, #6f16ff);
3229
+ --pill-brand: var(--as-brand, #6366f1);
3187
3230
  --pill-fill: #ffffff;
3188
- --pill-label: #5f6673;
3189
- --pill-title: #171717;
3190
- --pill-mark: var(--pill-brand);
3191
- --pill-wash-light: color-mix(in srgb, var(--pill-brand) 24%, #fff);
3192
- --pill-wash-cool: color-mix(in oklab, var(--pill-brand) 32%, #d4e4ff);
3193
- --pill-wash-deep: color-mix(in srgb, var(--pill-brand) 38%, #fff);
3194
- --pill-orb-base: color-mix(in srgb, var(--pill-brand) 30%, #fff);
3195
- --pill-beam-soft: color-mix(in srgb, var(--pill-brand) 22%, #fff);
3196
- --pill-beam-mid: color-mix(in srgb, var(--pill-brand) 38%, #fff);
3197
- --pill-beam-bright: color-mix(in srgb, var(--pill-brand) 54%, #fff);
3198
- border: 2px solid transparent;
3199
- background-color: var(--pill-fill);
3200
- background-image:
3201
- linear-gradient(var(--pill-fill), var(--pill-fill)),
3202
- conic-gradient(
3203
- from var(--as-tab-beam),
3204
- var(--pill-beam-soft) 0deg,
3205
- var(--pill-beam-soft) 215deg,
3206
- var(--pill-beam-mid) 252deg,
3207
- var(--pill-beam-bright) 278deg,
3208
- var(--pill-beam-mid) 304deg,
3209
- var(--pill-beam-soft) 360deg);
3210
- background-origin: border-box;
3211
- background-clip: padding-box, border-box;
3231
+ --pill-title: #1f2937;
3232
+ --pill-subtitle: #9ca3af;
3233
+ --pill-glow-strong: color-mix(in srgb, var(--pill-brand) 40%, transparent);
3234
+ --pill-glow-soft: color-mix(in srgb, var(--pill-brand) 10%, transparent);
3235
+ --pill-glow-shadow: color-mix(in srgb, var(--pill-brand) 15%, transparent);
3236
+ --pill-orb-end: color-mix(in srgb, var(--pill-brand) 45%, #3b82f6);
3237
+ gap: 12px;
3238
+ border: 1.5px solid var(--pill-brand);
3239
+ background-color: #ffffff;
3240
+ background-image: none;
3212
3241
  color: var(--pill-title);
3213
- box-shadow: 0 10px 24px -10px rgb(15 23 42 / 10%), 0 2px 6px rgb(15 23 42 / 4%);
3214
- transition:
3215
- transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
3216
- opacity 220ms ease,
3217
- box-shadow 180ms ease;
3218
- animation: assist-edge-tab-beam 9s linear infinite;
3219
- }
3220
- .assist-edge-tab.assist-edge-tab--bottom.is-visible:hover,
3221
- .assist-edge-tab.assist-edge-tab--mobile.is-visible:hover {
3222
- box-shadow: 0 12px 26px -8px rgb(15 23 42 / 16%), 0 3px 8px rgb(15 23 42 / 6%);
3242
+ box-shadow: 0 0 0 0 var(--pill-glow-strong), 0 4px 20px var(--pill-glow-shadow);
3243
+ transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
3244
+ animation: assist-edge-tab-border-flow 2s ease-in-out infinite;
3223
3245
  }
3224
3246
  .assist-edge-tab--bottom .assist-edge-tab__text,
3225
3247
  .assist-edge-tab--mobile .assist-edge-tab__text {
@@ -3231,99 +3253,51 @@ summary.agent-transcript__activity-heading::before {
3231
3253
  .assist-edge-tab--bottom .assist-edge-tab__label,
3232
3254
  .assist-edge-tab--mobile .assist-edge-tab__label {
3233
3255
  font-family: inherit;
3234
- font-size: 14px;
3235
- font-weight: 500;
3236
- letter-spacing: -0.008em;
3237
- line-height: 1.25;
3238
- color: var(--pill-label);
3256
+ font-size: 13px;
3257
+ font-weight: 600;
3258
+ letter-spacing: 0;
3259
+ line-height: 1;
3260
+ color: var(--pill-title);
3239
3261
  }
3240
3262
  .assist-edge-tab--bottom .assist-edge-tab__sublabel,
3241
3263
  .assist-edge-tab--mobile .assist-edge-tab__sublabel {
3242
3264
  max-width: none;
3243
3265
  font-family: inherit;
3244
- font-size: 15px;
3245
- font-weight: 500;
3246
- letter-spacing: -0.014em;
3247
- line-height: 1.25;
3248
- color: var(--pill-title);
3266
+ font-size: 11px;
3267
+ font-weight: 400;
3268
+ letter-spacing: 0;
3269
+ line-height: 1;
3270
+ color: var(--pill-subtitle);
3249
3271
  }
3250
3272
  .assist-edge-tab--bottom:not(:has(.assist-edge-tab__sublabel)) .assist-edge-tab__label,
3251
3273
  .assist-edge-tab--mobile:not(:has(.assist-edge-tab__sublabel)) .assist-edge-tab__label {
3252
- font-size: 15px;
3253
- font-weight: 500;
3254
- letter-spacing: -0.012em;
3274
+ font-size: 13px;
3275
+ font-weight: 600;
3255
3276
  color: var(--pill-title);
3256
3277
  }
3257
3278
  .assist-edge-tab__mark--chip {
3258
- isolation: isolate;
3259
3279
  overflow: hidden;
3260
3280
  width: 36px;
3261
3281
  height: 36px;
3262
3282
  flex-basis: 36px;
3263
3283
  border: none;
3264
3284
  border-radius: 50%;
3265
- box-shadow: none;
3266
3285
  background:
3267
- radial-gradient(
3268
- ellipse 88% 52% at 50% 94%,
3269
- color-mix(in srgb, var(--pill-brand) 22%, transparent) 0%,
3270
- transparent 68%),
3271
- radial-gradient(
3272
- 120% 100% at 22% 12%,
3273
- var(--pill-wash-light) 0%,
3274
- transparent 55%),
3275
- radial-gradient(
3276
- 110% 95% at 88% 88%,
3277
- var(--pill-wash-cool) 0%,
3278
- transparent 58%),
3279
- var(--pill-orb-base);
3280
- color: var(--pill-mark);
3281
- box-shadow: inset 0 1px 2px rgb(255 255 255 / 28%);
3282
- }
3283
- .assist-edge-tab__wash {
3284
- position: absolute;
3285
- border-radius: 50%;
3286
- pointer-events: none;
3287
- z-index: 0;
3288
- }
3289
- .assist-edge-tab__wash--light,
3290
- .assist-edge-tab__wash--cool {
3291
- inset: -32%;
3292
- filter: blur(4px);
3293
- opacity: 0.85;
3294
- -webkit-mask:
3295
- radial-gradient(
3296
- farthest-side,
3297
- transparent 40%,
3298
- #000 58%);
3299
- mask:
3300
- radial-gradient(
3301
- farthest-side,
3302
- transparent 40%,
3303
- #000 58%);
3304
- }
3305
- .assist-edge-tab__wash--light {
3306
- background:
3307
- radial-gradient(
3308
- closest-side at 16% 50%,
3309
- var(--pill-wash-light) 0%,
3310
- transparent 58%);
3311
- animation: assist-edge-tab-spin 7s linear infinite;
3312
- }
3313
- .assist-edge-tab__wash--cool {
3314
- background:
3315
- radial-gradient(
3316
- closest-side at 84% 50%,
3317
- var(--pill-wash-cool) 0%,
3318
- transparent 58%);
3319
- animation: assist-edge-tab-spin 9.5s linear infinite reverse;
3286
+ linear-gradient(
3287
+ 135deg,
3288
+ var(--pill-brand) 0%,
3289
+ var(--pill-orb-end) 100%);
3290
+ color: #ffffff;
3291
+ box-shadow: none;
3320
3292
  }
3321
3293
  .assist-edge-tab__mark--chip > svg,
3322
3294
  .assist-edge-tab__mark--chip > .assist-edge-tab__custom-icon,
3323
3295
  .assist-edge-tab__mark--chip > .assist-edge-tab__logo {
3324
3296
  position: relative;
3325
- z-index: 2;
3326
- filter: drop-shadow(0 0.5px 0 rgb(255 255 255 / 45%));
3297
+ z-index: 1;
3298
+ }
3299
+ .assist-edge-tab__mark--chip > .assist-edge-tab__chat-spark {
3300
+ color: #ffffff;
3327
3301
  }
3328
3302
  .assist-edge-tab svg.assist-edge-tab__chat-spark .assist-edge-tab__spark {
3329
3303
  transform-box: fill-box;
@@ -3334,14 +3308,12 @@ summary.agent-transcript__activity-heading::before {
3334
3308
  animation-duration: 4.2s;
3335
3309
  animation-delay: -1.4s;
3336
3310
  }
3337
- @keyframes assist-edge-tab-beam {
3338
- to {
3339
- --as-tab-beam: 360deg;
3311
+ @keyframes assist-edge-tab-border-flow {
3312
+ 0%, 100% {
3313
+ box-shadow: 0 0 0 0 var(--pill-glow-strong), 0 4px 20px var(--pill-glow-shadow);
3340
3314
  }
3341
- }
3342
- @keyframes assist-edge-tab-spin {
3343
- to {
3344
- transform: rotate(360deg);
3315
+ 50% {
3316
+ box-shadow: 0 0 0 6px var(--pill-glow-soft), 0 4px 20px var(--pill-glow-shadow);
3345
3317
  }
3346
3318
  }
3347
3319
  @keyframes assist-edge-tab-twinkle {
@@ -3390,18 +3362,20 @@ summary.agent-transcript__activity-heading::before {
3390
3362
  min-width: 0;
3391
3363
  max-width: min(240px, calc(100vw - 28px));
3392
3364
  height: auto;
3393
- min-height: 54px;
3394
- padding: 6px 16px 6px 6px;
3365
+ min-height: 0;
3366
+ padding: 12px 16px 12px 12px;
3395
3367
  flex-direction: row;
3396
3368
  justify-content: flex-start;
3397
3369
  gap: 10px;
3398
3370
  border-radius: 999px;
3399
3371
  transform: translateY(calc(100% + 24px));
3400
3372
  }
3401
- .assist-edge-tab--mobile.is-visible,
3402
- .assist-edge-tab--mobile.is-visible:hover {
3373
+ .assist-edge-tab--mobile.is-visible {
3403
3374
  transform: translateY(0);
3404
3375
  }
3376
+ .assist-edge-tab--mobile.is-visible:hover {
3377
+ transform: translateY(-2px);
3378
+ }
3405
3379
  .assist-edge-tab--mobile .assist-edge-tab__mark {
3406
3380
  width: 34px;
3407
3381
  height: 34px;
@@ -3432,7 +3406,6 @@ summary.agent-transcript__activity-heading::before {
3432
3406
  }
3433
3407
  .assist-edge-tab.assist-edge-tab--bottom,
3434
3408
  .assist-edge-tab.assist-edge-tab--mobile,
3435
- .assist-edge-tab .assist-edge-tab__wash,
3436
3409
  .assist-edge-tab .assist-edge-tab__spark {
3437
3410
  animation: none;
3438
3411
  }