@helpway/react 0.16.0 → 0.17.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/index.d.ts +14 -6
- package/dist/index.js +39 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/themed/styles.css +30 -7
package/package.json
CHANGED
package/src/themed/styles.css
CHANGED
|
@@ -98,6 +98,15 @@
|
|
|
98
98
|
border-radius: inherit;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
/* A host `agentAvatar` brings its own shape and colour: every box that holds
|
|
102
|
+
one drops its tile radius and fill so the host's mark is not framed by a
|
|
103
|
+
rounded square it did not ask for. */
|
|
104
|
+
.hw-widget :is(.hw-header-bot-icon, .hw-hero-bot-icon, .hw-conv-card-avatar, .hw-event-avatar, .hw-bubble-icon--bot):has(> .hw-agent-custom) {
|
|
105
|
+
border-radius: 50%;
|
|
106
|
+
background: transparent;
|
|
107
|
+
padding: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
101
110
|
/* ── Focus Styles ──────────────────────────────── */
|
|
102
111
|
.hw-widget :focus-visible {
|
|
103
112
|
outline: 2px solid var(--hw-primary);
|
|
@@ -219,7 +228,7 @@
|
|
|
219
228
|
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
|
|
220
229
|
}
|
|
221
230
|
|
|
222
|
-
.hw-bubble-icon svg {
|
|
231
|
+
.hw-bubble-icon svg:not(.hw-agent-custom svg) {
|
|
223
232
|
width: 22px;
|
|
224
233
|
height: 22px;
|
|
225
234
|
}
|
|
@@ -478,7 +487,10 @@
|
|
|
478
487
|
justify-content: center;
|
|
479
488
|
border-radius: 10px;
|
|
480
489
|
}
|
|
481
|
-
|
|
490
|
+
/* Direct children only (the Helpway mark, a preset icon): a host `agentAvatar`
|
|
491
|
+
brings its own SVG and sizing, which this must not resize. */
|
|
492
|
+
.hw-hero-bot-icon > svg,
|
|
493
|
+
.hw-hero-bot-icon > .hw-agent-icon > svg {
|
|
482
494
|
width: 32px;
|
|
483
495
|
height: 32px;
|
|
484
496
|
}
|
|
@@ -599,7 +611,8 @@
|
|
|
599
611
|
chain — exactly the cascade behavior we want. */
|
|
600
612
|
background: var(--hw-agent-bg, var(--hw-agent-bg-default, transparent));
|
|
601
613
|
}
|
|
602
|
-
.hw-header-bot-icon svg
|
|
614
|
+
.hw-header-bot-icon > svg,
|
|
615
|
+
.hw-header-bot-icon > .hw-agent-icon > svg {
|
|
603
616
|
width: 24px;
|
|
604
617
|
height: 24px;
|
|
605
618
|
}
|
|
@@ -893,7 +906,7 @@
|
|
|
893
906
|
height: 32px;
|
|
894
907
|
border-radius: 8px;
|
|
895
908
|
}
|
|
896
|
-
.hw-recent-row .hw-conv-card-avatar svg {
|
|
909
|
+
.hw-recent-row .hw-conv-card-avatar svg:not(.hw-agent-custom svg) {
|
|
897
910
|
width: 18px;
|
|
898
911
|
height: 18px;
|
|
899
912
|
}
|
|
@@ -995,7 +1008,7 @@
|
|
|
995
1008
|
flex-shrink: 0;
|
|
996
1009
|
overflow: hidden;
|
|
997
1010
|
}
|
|
998
|
-
.hw-conv-card-avatar svg {
|
|
1011
|
+
.hw-conv-card-avatar svg:not(.hw-agent-custom svg) {
|
|
999
1012
|
width: 20px;
|
|
1000
1013
|
height: 20px;
|
|
1001
1014
|
}
|
|
@@ -2755,7 +2768,7 @@
|
|
|
2755
2768
|
background: none;
|
|
2756
2769
|
}
|
|
2757
2770
|
.hw-preview.hw-preview--anchored .hw-preview-avatar img,
|
|
2758
|
-
.hw-preview.hw-preview--anchored .hw-preview-avatar svg {
|
|
2771
|
+
.hw-preview.hw-preview--anchored .hw-preview-avatar svg:not(.hw-agent-custom svg) {
|
|
2759
2772
|
width: 100%;
|
|
2760
2773
|
height: 100%;
|
|
2761
2774
|
object-fit: contain;
|
|
@@ -2807,7 +2820,7 @@
|
|
|
2807
2820
|
overflow: hidden;
|
|
2808
2821
|
}
|
|
2809
2822
|
|
|
2810
|
-
.hw-preview-avatar svg {
|
|
2823
|
+
.hw-preview-avatar svg:not(.hw-agent-custom svg) {
|
|
2811
2824
|
width: 16px;
|
|
2812
2825
|
height: 16px;
|
|
2813
2826
|
}
|
|
@@ -5460,6 +5473,16 @@
|
|
|
5460
5473
|
gap: 8px;
|
|
5461
5474
|
padding: 2px 0 8px;
|
|
5462
5475
|
}
|
|
5476
|
+
/* Host agent avatar at the bar's start; bottom-aligned with the actions so it
|
|
5477
|
+
stays on the first line's baseline row when the field grows. */
|
|
5478
|
+
.hw-dock-lead {
|
|
5479
|
+
flex: none;
|
|
5480
|
+
display: grid;
|
|
5481
|
+
place-items: center;
|
|
5482
|
+
width: 32px;
|
|
5483
|
+
height: 32px;
|
|
5484
|
+
margin-left: -8px;
|
|
5485
|
+
}
|
|
5463
5486
|
.hw-dock-actions {
|
|
5464
5487
|
flex: none;
|
|
5465
5488
|
display: flex;
|