@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/react.css CHANGED
@@ -326,9 +326,13 @@ html.webless-agent-page-shift {
326
326
  margin: 0;
327
327
  color: var(--as-text-muted);
328
328
  font-size: 12.5px;
329
+ font-weight: 650;
330
+ font-style: normal;
331
+ line-height: 1.4;
332
+ }
333
+ .agent-activity-bubble__status--soft {
329
334
  font-weight: 400;
330
335
  font-style: italic;
331
- line-height: 1.4;
332
336
  }
333
337
  .agent-activity-bubble__pulse {
334
338
  position: relative;
@@ -954,22 +958,34 @@ html.webless-agent-page-shift {
954
958
  display: flex;
955
959
  align-items: center;
956
960
  justify-content: space-between;
957
- flex-wrap: wrap;
958
- gap: 4px 12px;
959
- padding: 0 8px;
961
+ flex-wrap: nowrap;
962
+ gap: 8px 10px;
963
+ padding: 0 2px;
960
964
  color: var(--as-text-muted);
961
- font-size: 12px;
965
+ font-size: 11px;
966
+ line-height: 1.25;
967
+ }
968
+ .composer__resume > span {
969
+ min-width: 0;
970
+ flex: 1 1 auto;
971
+ overflow: hidden;
972
+ text-overflow: ellipsis;
973
+ white-space: nowrap;
962
974
  }
963
975
  .composer__resume button {
964
976
  border: none;
965
977
  border-radius: 4px;
966
978
  background: transparent;
967
979
  color: var(--as-text);
968
- padding: 8px 0;
980
+ flex-shrink: 0;
981
+ padding: 4px 0;
969
982
  font: inherit;
983
+ font-size: 11px;
970
984
  font-weight: 600;
985
+ line-height: 1.25;
971
986
  text-decoration: underline;
972
987
  text-underline-offset: 3px;
988
+ white-space: nowrap;
973
989
  cursor: pointer;
974
990
  }
975
991
  .composer__resume button:disabled {
@@ -1573,6 +1589,23 @@ html.webless-agent-page-shift {
1573
1589
  color: var(--as-brand);
1574
1590
  font-size: 11px;
1575
1591
  }
1592
+ .message-bubble__text .message-bubble__markdown :where(h1, h2, h3, h4, h5, h6) {
1593
+ margin: 16px 0 8px;
1594
+ padding: 0;
1595
+ color: inherit;
1596
+ font-family: inherit;
1597
+ font-size: 1em;
1598
+ font-style: normal;
1599
+ font-weight: 650;
1600
+ line-height: 1.4;
1601
+ letter-spacing: normal;
1602
+ text-align: start;
1603
+ text-transform: none;
1604
+ overflow-wrap: anywhere;
1605
+ }
1606
+ .message-bubble__text .message-bubble__markdown :where(h1, h2) {
1607
+ font-size: 1.125em;
1608
+ }
1576
1609
  .message-bubble__markdown > :first-child {
1577
1610
  margin-top: 0;
1578
1611
  }
@@ -2584,6 +2617,9 @@ html.webless-agent-page-shift {
2584
2617
  border-top: 1px solid var(--as-hairline);
2585
2618
  background: var(--as-surface);
2586
2619
  }
2620
+ .agent-rail__composer-wrap:has(.composer__resume) {
2621
+ padding-inline: 12px;
2622
+ }
2587
2623
  .agent-rail__overlay {
2588
2624
  position: absolute;
2589
2625
  inset: 0;
@@ -2827,14 +2863,12 @@ html.webless-agent-page-shift {
2827
2863
  }
2828
2864
 
2829
2865
  /* src/react/components/AssistEdgeTab/AssistEdgeTab.css */
2830
- @property --as-tab-beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
2831
2866
  .assist-edge-tab {
2832
2867
  --tab-ink: var(--as-brand);
2833
2868
  --tab-fill: var(--as-surface);
2834
2869
  --tab-line: color-mix(in srgb, var(--as-brand) 32%, var(--as-border));
2835
2870
  --tab-along: 50%;
2836
2871
  --tab-inset: 0px;
2837
- --as-tab-beam: 0deg;
2838
2872
  position: fixed;
2839
2873
  top: auto;
2840
2874
  right: auto;
@@ -2999,9 +3033,9 @@ html.webless-agent-page-shift {
2999
3033
  justify-content: flex-start;
3000
3034
  gap: 11px;
3001
3035
  min-width: 0;
3002
- min-height: 56px;
3003
- padding: 6px 20px 6px 6px;
3004
- border-radius: 999px;
3036
+ min-height: 0;
3037
+ padding: 12px 20px 12px 12px;
3038
+ border-radius: 48px;
3005
3039
  transform: translateX(-50%) translateY(calc(100% + 18px));
3006
3040
  }
3007
3041
  .assist-edge-tab--bottom.is-visible {
@@ -3065,6 +3099,16 @@ html.webless-agent-page-shift {
3065
3099
  .assist-edge-tab--ask.assist-edge-tab--left {
3066
3100
  border-radius: 0 18px 18px 0;
3067
3101
  }
3102
+ .assist-edge-tab--ask.assist-edge-tab--bottom,
3103
+ .assist-edge-tab--ask.assist-edge-tab--mobile,
3104
+ .assist-edge-tab--fill.assist-edge-tab--bottom,
3105
+ .assist-edge-tab--fill.assist-edge-tab--mobile,
3106
+ .assist-edge-tab--outline.assist-edge-tab--bottom,
3107
+ .assist-edge-tab--outline.assist-edge-tab--mobile {
3108
+ --tab-fill: #ffffff;
3109
+ background-color: #ffffff;
3110
+ background-image: none;
3111
+ }
3068
3112
  .assist-edge-tab--fill {
3069
3113
  --tab-fill: var(--as-brand);
3070
3114
  --tab-ink: #fff;
@@ -3079,49 +3123,27 @@ html.webless-agent-page-shift {
3079
3123
  .webless-agent-root > .assist-edge-tab.assist-edge-tab--mobile,
3080
3124
  .assist-edge-tab.assist-edge-tab--bottom,
3081
3125
  .assist-edge-tab.assist-edge-tab--mobile {
3082
- isolation: isolate;
3083
3126
  box-sizing: border-box;
3084
3127
  color-scheme: light;
3085
3128
  --tab-fill: #ffffff;
3086
- --tab-ink: #171717;
3129
+ --tab-ink: #1f2937;
3087
3130
  --tab-line: transparent;
3088
- --pill-brand: var(--as-brand, #6f16ff);
3131
+ --pill-brand: var(--as-brand, #6366f1);
3089
3132
  --pill-fill: #ffffff;
3090
- --pill-label: #5f6673;
3091
- --pill-title: #171717;
3092
- --pill-mark: var(--pill-brand);
3093
- --pill-wash-light: color-mix(in srgb, var(--pill-brand) 24%, #fff);
3094
- --pill-wash-cool: color-mix(in oklab, var(--pill-brand) 32%, #d4e4ff);
3095
- --pill-wash-deep: color-mix(in srgb, var(--pill-brand) 38%, #fff);
3096
- --pill-orb-base: color-mix(in srgb, var(--pill-brand) 30%, #fff);
3097
- --pill-beam-soft: color-mix(in srgb, var(--pill-brand) 22%, #fff);
3098
- --pill-beam-mid: color-mix(in srgb, var(--pill-brand) 38%, #fff);
3099
- --pill-beam-bright: color-mix(in srgb, var(--pill-brand) 54%, #fff);
3100
- border: 2px solid transparent;
3101
- background-color: var(--pill-fill);
3102
- background-image:
3103
- linear-gradient(var(--pill-fill), var(--pill-fill)),
3104
- conic-gradient(
3105
- from var(--as-tab-beam),
3106
- var(--pill-beam-soft) 0deg,
3107
- var(--pill-beam-soft) 215deg,
3108
- var(--pill-beam-mid) 252deg,
3109
- var(--pill-beam-bright) 278deg,
3110
- var(--pill-beam-mid) 304deg,
3111
- var(--pill-beam-soft) 360deg);
3112
- background-origin: border-box;
3113
- background-clip: padding-box, border-box;
3133
+ --pill-title: #1f2937;
3134
+ --pill-subtitle: #9ca3af;
3135
+ --pill-glow-strong: color-mix(in srgb, var(--pill-brand) 40%, transparent);
3136
+ --pill-glow-soft: color-mix(in srgb, var(--pill-brand) 10%, transparent);
3137
+ --pill-glow-shadow: color-mix(in srgb, var(--pill-brand) 15%, transparent);
3138
+ --pill-orb-end: color-mix(in srgb, var(--pill-brand) 45%, #3b82f6);
3139
+ gap: 12px;
3140
+ border: 1.5px solid var(--pill-brand);
3141
+ background-color: #ffffff;
3142
+ background-image: none;
3114
3143
  color: var(--pill-title);
3115
- box-shadow: 0 10px 24px -10px rgb(15 23 42 / 10%), 0 2px 6px rgb(15 23 42 / 4%);
3116
- transition:
3117
- transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
3118
- opacity 220ms ease,
3119
- box-shadow 180ms ease;
3120
- animation: assist-edge-tab-beam 9s linear infinite;
3121
- }
3122
- .assist-edge-tab.assist-edge-tab--bottom.is-visible:hover,
3123
- .assist-edge-tab.assist-edge-tab--mobile.is-visible:hover {
3124
- box-shadow: 0 12px 26px -8px rgb(15 23 42 / 16%), 0 3px 8px rgb(15 23 42 / 6%);
3144
+ box-shadow: 0 0 0 0 var(--pill-glow-strong), 0 4px 20px var(--pill-glow-shadow);
3145
+ transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
3146
+ animation: assist-edge-tab-border-flow 2s ease-in-out infinite;
3125
3147
  }
3126
3148
  .assist-edge-tab--bottom .assist-edge-tab__text,
3127
3149
  .assist-edge-tab--mobile .assist-edge-tab__text {
@@ -3133,99 +3155,51 @@ html.webless-agent-page-shift {
3133
3155
  .assist-edge-tab--bottom .assist-edge-tab__label,
3134
3156
  .assist-edge-tab--mobile .assist-edge-tab__label {
3135
3157
  font-family: inherit;
3136
- font-size: 14px;
3137
- font-weight: 500;
3138
- letter-spacing: -0.008em;
3139
- line-height: 1.25;
3140
- color: var(--pill-label);
3158
+ font-size: 13px;
3159
+ font-weight: 600;
3160
+ letter-spacing: 0;
3161
+ line-height: 1;
3162
+ color: var(--pill-title);
3141
3163
  }
3142
3164
  .assist-edge-tab--bottom .assist-edge-tab__sublabel,
3143
3165
  .assist-edge-tab--mobile .assist-edge-tab__sublabel {
3144
3166
  max-width: none;
3145
3167
  font-family: inherit;
3146
- font-size: 15px;
3147
- font-weight: 500;
3148
- letter-spacing: -0.014em;
3149
- line-height: 1.25;
3150
- color: var(--pill-title);
3168
+ font-size: 11px;
3169
+ font-weight: 400;
3170
+ letter-spacing: 0;
3171
+ line-height: 1;
3172
+ color: var(--pill-subtitle);
3151
3173
  }
3152
3174
  .assist-edge-tab--bottom:not(:has(.assist-edge-tab__sublabel)) .assist-edge-tab__label,
3153
3175
  .assist-edge-tab--mobile:not(:has(.assist-edge-tab__sublabel)) .assist-edge-tab__label {
3154
- font-size: 15px;
3155
- font-weight: 500;
3156
- letter-spacing: -0.012em;
3176
+ font-size: 13px;
3177
+ font-weight: 600;
3157
3178
  color: var(--pill-title);
3158
3179
  }
3159
3180
  .assist-edge-tab__mark--chip {
3160
- isolation: isolate;
3161
3181
  overflow: hidden;
3162
3182
  width: 36px;
3163
3183
  height: 36px;
3164
3184
  flex-basis: 36px;
3165
3185
  border: none;
3166
3186
  border-radius: 50%;
3167
- box-shadow: none;
3168
3187
  background:
3169
- radial-gradient(
3170
- ellipse 88% 52% at 50% 94%,
3171
- color-mix(in srgb, var(--pill-brand) 22%, transparent) 0%,
3172
- transparent 68%),
3173
- radial-gradient(
3174
- 120% 100% at 22% 12%,
3175
- var(--pill-wash-light) 0%,
3176
- transparent 55%),
3177
- radial-gradient(
3178
- 110% 95% at 88% 88%,
3179
- var(--pill-wash-cool) 0%,
3180
- transparent 58%),
3181
- var(--pill-orb-base);
3182
- color: var(--pill-mark);
3183
- box-shadow: inset 0 1px 2px rgb(255 255 255 / 28%);
3184
- }
3185
- .assist-edge-tab__wash {
3186
- position: absolute;
3187
- border-radius: 50%;
3188
- pointer-events: none;
3189
- z-index: 0;
3190
- }
3191
- .assist-edge-tab__wash--light,
3192
- .assist-edge-tab__wash--cool {
3193
- inset: -32%;
3194
- filter: blur(4px);
3195
- opacity: 0.85;
3196
- -webkit-mask:
3197
- radial-gradient(
3198
- farthest-side,
3199
- transparent 40%,
3200
- #000 58%);
3201
- mask:
3202
- radial-gradient(
3203
- farthest-side,
3204
- transparent 40%,
3205
- #000 58%);
3206
- }
3207
- .assist-edge-tab__wash--light {
3208
- background:
3209
- radial-gradient(
3210
- closest-side at 16% 50%,
3211
- var(--pill-wash-light) 0%,
3212
- transparent 58%);
3213
- animation: assist-edge-tab-spin 7s linear infinite;
3214
- }
3215
- .assist-edge-tab__wash--cool {
3216
- background:
3217
- radial-gradient(
3218
- closest-side at 84% 50%,
3219
- var(--pill-wash-cool) 0%,
3220
- transparent 58%);
3221
- animation: assist-edge-tab-spin 9.5s linear infinite reverse;
3188
+ linear-gradient(
3189
+ 135deg,
3190
+ var(--pill-brand) 0%,
3191
+ var(--pill-orb-end) 100%);
3192
+ color: #ffffff;
3193
+ box-shadow: none;
3222
3194
  }
3223
3195
  .assist-edge-tab__mark--chip > svg,
3224
3196
  .assist-edge-tab__mark--chip > .assist-edge-tab__custom-icon,
3225
3197
  .assist-edge-tab__mark--chip > .assist-edge-tab__logo {
3226
3198
  position: relative;
3227
- z-index: 2;
3228
- filter: drop-shadow(0 0.5px 0 rgb(255 255 255 / 45%));
3199
+ z-index: 1;
3200
+ }
3201
+ .assist-edge-tab__mark--chip > .assist-edge-tab__chat-spark {
3202
+ color: #ffffff;
3229
3203
  }
3230
3204
  .assist-edge-tab svg.assist-edge-tab__chat-spark .assist-edge-tab__spark {
3231
3205
  transform-box: fill-box;
@@ -3236,14 +3210,12 @@ html.webless-agent-page-shift {
3236
3210
  animation-duration: 4.2s;
3237
3211
  animation-delay: -1.4s;
3238
3212
  }
3239
- @keyframes assist-edge-tab-beam {
3240
- to {
3241
- --as-tab-beam: 360deg;
3213
+ @keyframes assist-edge-tab-border-flow {
3214
+ 0%, 100% {
3215
+ box-shadow: 0 0 0 0 var(--pill-glow-strong), 0 4px 20px var(--pill-glow-shadow);
3242
3216
  }
3243
- }
3244
- @keyframes assist-edge-tab-spin {
3245
- to {
3246
- transform: rotate(360deg);
3217
+ 50% {
3218
+ box-shadow: 0 0 0 6px var(--pill-glow-soft), 0 4px 20px var(--pill-glow-shadow);
3247
3219
  }
3248
3220
  }
3249
3221
  @keyframes assist-edge-tab-twinkle {
@@ -3292,18 +3264,20 @@ html.webless-agent-page-shift {
3292
3264
  min-width: 0;
3293
3265
  max-width: min(240px, calc(100vw - 28px));
3294
3266
  height: auto;
3295
- min-height: 54px;
3296
- padding: 6px 16px 6px 6px;
3267
+ min-height: 0;
3268
+ padding: 12px 16px 12px 12px;
3297
3269
  flex-direction: row;
3298
3270
  justify-content: flex-start;
3299
3271
  gap: 10px;
3300
3272
  border-radius: 999px;
3301
3273
  transform: translateY(calc(100% + 24px));
3302
3274
  }
3303
- .assist-edge-tab--mobile.is-visible,
3304
- .assist-edge-tab--mobile.is-visible:hover {
3275
+ .assist-edge-tab--mobile.is-visible {
3305
3276
  transform: translateY(0);
3306
3277
  }
3278
+ .assist-edge-tab--mobile.is-visible:hover {
3279
+ transform: translateY(-2px);
3280
+ }
3307
3281
  .assist-edge-tab--mobile .assist-edge-tab__mark {
3308
3282
  width: 34px;
3309
3283
  height: 34px;
@@ -3334,7 +3308,6 @@ html.webless-agent-page-shift {
3334
3308
  }
3335
3309
  .assist-edge-tab.assist-edge-tab--bottom,
3336
3310
  .assist-edge-tab.assist-edge-tab--mobile,
3337
- .assist-edge-tab .assist-edge-tab__wash,
3338
3311
  .assist-edge-tab .assist-edge-tab__spark {
3339
3312
  animation: none;
3340
3313
  }