@mypatientspace/chatbot-widget 1.0.69 → 1.0.71

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.
@@ -14865,7 +14865,7 @@ const Ba = () => {
14865
14865
  /* @__PURE__ */ S.jsxs(g1, { fontFamily: s.fontFamily, children: [
14866
14866
  A,
14867
14867
  " v",
14868
- "1.0.69"
14868
+ "1.0.71"
14869
14869
  ] })
14870
14870
  ] })
14871
14871
  ] }),
@@ -14896,8 +14896,10 @@ const Ba = () => {
14896
14896
  background-color: ${({ theme: l }) => l.colors.background};
14897
14897
  border-bottom: 1px solid ${({ theme: l }) => l.colors.borderLight};
14898
14898
 
14899
- &:hover .close-button {
14900
- opacity: 1;
14899
+ @media (hover: hover) {
14900
+ &:hover .close-button {
14901
+ opacity: 1;
14902
+ }
14901
14903
  }
14902
14904
  `, v1 = U.button`
14903
14905
  position: absolute;
@@ -14918,9 +14920,15 @@ const Ba = () => {
14918
14920
  justify-content: center;
14919
14921
  z-index: 1;
14920
14922
 
14921
- &:hover {
14922
- color: ${({ theme: l }) => l.colors.text};
14923
- background-color: ${({ theme: l }) => l.colors.border};
14923
+ @media (hover: hover) {
14924
+ &:hover {
14925
+ color: ${({ theme: l }) => l.colors.text};
14926
+ background-color: ${({ theme: l }) => l.colors.border};
14927
+ }
14928
+ }
14929
+
14930
+ @media (hover: none) {
14931
+ opacity: 1;
14924
14932
  }
14925
14933
  `, x1 = U.div`
14926
14934
  display: flex;
@@ -14950,10 +14958,12 @@ const Ba = () => {
14950
14958
  white-space: nowrap;
14951
14959
  transition: all 0.2s ease;
14952
14960
 
14953
- &:hover {
14954
- background-color: ${({ theme: l, isActive: u }) => u ? l.colors.primaryDark : l.colors.surface};
14955
- border-color: ${({ theme: l, isActive: u }) => u ? l.colors.primaryDark : l.colors.primary};
14956
- color: ${({ theme: l, isActive: u }) => u ? l.colors.white : l.colors.text};
14961
+ @media (hover: hover) {
14962
+ &:hover {
14963
+ background-color: ${({ theme: l, isActive: u }) => u ? l.colors.primaryDark : l.colors.surface};
14964
+ border-color: ${({ theme: l, isActive: u }) => u ? l.colors.primaryDark : l.colors.primary};
14965
+ color: ${({ theme: l, isActive: u }) => u ? l.colors.white : l.colors.text};
14966
+ }
14957
14967
  }
14958
14968
 
14959
14969
  &:active {
@@ -15364,9 +15374,16 @@ const Ba = () => {
15364
15374
  font-family: ${({ fontFamily: l }) => l};
15365
15375
  background-color: ${({ background: l }) => l};
15366
15376
 
15367
- /* Custom scrollbar with spacing from edge */
15377
+ /* Thin scrollbar, visible only on hover */
15378
+ scrollbar-width: thin;
15379
+ scrollbar-color: transparent transparent;
15380
+
15381
+ &:hover {
15382
+ scrollbar-color: ${({ scrollbarThumb: l }) => l} transparent;
15383
+ }
15384
+
15368
15385
  &::-webkit-scrollbar {
15369
- width: 10px;
15386
+ width: 6px;
15370
15387
  }
15371
15388
 
15372
15389
  &::-webkit-scrollbar-track {
@@ -15374,13 +15391,16 @@ const Ba = () => {
15374
15391
  }
15375
15392
 
15376
15393
  &::-webkit-scrollbar-thumb {
15394
+ background-color: transparent;
15395
+ border-radius: 6px;
15396
+ transition: background-color 0.2s ease;
15397
+ }
15398
+
15399
+ &:hover::-webkit-scrollbar-thumb {
15377
15400
  background-color: ${({ scrollbarThumb: l }) => l};
15378
- border-radius: 10px;
15379
- border: 2px solid transparent;
15380
- background-clip: padding-box;
15381
15401
  }
15382
15402
 
15383
- &::-webkit-scrollbar-thumb:hover {
15403
+ &:hover::-webkit-scrollbar-thumb:hover {
15384
15404
  background-color: ${({ scrollbarThumbHover: l }) => l};
15385
15405
  }
15386
15406
  `, J1 = U.div`
@@ -806,13 +806,15 @@ Error generating stack: `+a.message+`
806
806
  display: flex;
807
807
  align-items: center;
808
808
  gap: 6px;
809
- `,$0=()=>{const{close:l,config:u,theme:s,assistant:r,isExpanded:d,toggleExpanded:h,startNewChat:y}=pa(),T=u.headerTitle||r?.chatUiConfig?.avatarTitle||"AI Doctor",S=u.headerIcon||r?.chatUiConfig?.avatarImage?.iconURL||r?.chatUiConfig?.avatarImage?.thumbnailURL||"https://web.mypatientspace.com/img/logo-symbol.png",g=u.headerSubtitle||r?.chatUiConfig?.headerSubtitle,A=u.brandingText||r?.chatUiConfig?.brandingText||"Developed by myPatientSpace";return x.jsxs(C0,{theme:s,children:[x.jsxs(T0,{children:[x.jsx(E0,{theme:s,hasCustomIcon:!0,children:x.jsx(z0,{src:S,alt:""})}),x.jsxs(A0,{children:[x.jsx(M0,{fontFamily:s.fontFamily,children:T}),g&&x.jsx(_0,{fontFamily:s.fontFamily,children:g}),x.jsxs(w0,{fontFamily:s.fontFamily,children:[A," v","1.0.69"]})]})]}),x.jsxs(O0,{children:[x.jsx(qu,{theme:s,onClick:y,"aria-label":"Start new chat",children:x.jsx($m,{size:16})}),x.jsx(qu,{theme:s,onClick:h,"aria-label":d?"Collapse chat":"Expand chat",children:d?x.jsx(Xs,{size:16}):x.jsx(Gs,{size:16})}),u.floatingMode&&x.jsx(qu,{theme:s,onClick:l,"aria-label":"Minimize chat",children:x.jsx(Ys,{size:16})})]})]})},D0=H.div`
809
+ `,$0=()=>{const{close:l,config:u,theme:s,assistant:r,isExpanded:d,toggleExpanded:h,startNewChat:y}=pa(),T=u.headerTitle||r?.chatUiConfig?.avatarTitle||"AI Doctor",S=u.headerIcon||r?.chatUiConfig?.avatarImage?.iconURL||r?.chatUiConfig?.avatarImage?.thumbnailURL||"https://web.mypatientspace.com/img/logo-symbol.png",g=u.headerSubtitle||r?.chatUiConfig?.headerSubtitle,A=u.brandingText||r?.chatUiConfig?.brandingText||"Developed by myPatientSpace";return x.jsxs(C0,{theme:s,children:[x.jsxs(T0,{children:[x.jsx(E0,{theme:s,hasCustomIcon:!0,children:x.jsx(z0,{src:S,alt:""})}),x.jsxs(A0,{children:[x.jsx(M0,{fontFamily:s.fontFamily,children:T}),g&&x.jsx(_0,{fontFamily:s.fontFamily,children:g}),x.jsxs(w0,{fontFamily:s.fontFamily,children:[A," v","1.0.71"]})]})]}),x.jsxs(O0,{children:[x.jsx(qu,{theme:s,onClick:y,"aria-label":"Start new chat",children:x.jsx($m,{size:16})}),x.jsx(qu,{theme:s,onClick:h,"aria-label":d?"Collapse chat":"Expand chat",children:d?x.jsx(Xs,{size:16}):x.jsx(Gs,{size:16})}),u.floatingMode&&x.jsx(qu,{theme:s,onClick:l,"aria-label":"Minimize chat",children:x.jsx(Ys,{size:16})})]})]})},D0=H.div`
810
810
  position: relative;
811
811
  background-color: ${({theme:l})=>l.colors.background};
812
812
  border-bottom: 1px solid ${({theme:l})=>l.colors.borderLight};
813
813
 
814
- &:hover .close-button {
815
- opacity: 1;
814
+ @media (hover: hover) {
815
+ &:hover .close-button {
816
+ opacity: 1;
817
+ }
816
818
  }
817
819
  `,B0=H.button`
818
820
  position: absolute;
@@ -833,9 +835,15 @@ Error generating stack: `+a.message+`
833
835
  justify-content: center;
834
836
  z-index: 1;
835
837
 
836
- &:hover {
837
- color: ${({theme:l})=>l.colors.text};
838
- background-color: ${({theme:l})=>l.colors.border};
838
+ @media (hover: hover) {
839
+ &:hover {
840
+ color: ${({theme:l})=>l.colors.text};
841
+ background-color: ${({theme:l})=>l.colors.border};
842
+ }
843
+ }
844
+
845
+ @media (hover: none) {
846
+ opacity: 1;
839
847
  }
840
848
  `,R0=H.div`
841
849
  display: flex;
@@ -865,10 +873,12 @@ Error generating stack: `+a.message+`
865
873
  white-space: nowrap;
866
874
  transition: all 0.2s ease;
867
875
 
868
- &:hover {
869
- background-color: ${({theme:l,isActive:u})=>u?l.colors.primaryDark:l.colors.surface};
870
- border-color: ${({theme:l,isActive:u})=>u?l.colors.primaryDark:l.colors.primary};
871
- color: ${({theme:l,isActive:u})=>u?l.colors.white:l.colors.text};
876
+ @media (hover: hover) {
877
+ &:hover {
878
+ background-color: ${({theme:l,isActive:u})=>u?l.colors.primaryDark:l.colors.surface};
879
+ border-color: ${({theme:l,isActive:u})=>u?l.colors.primaryDark:l.colors.primary};
880
+ color: ${({theme:l,isActive:u})=>u?l.colors.white:l.colors.text};
881
+ }
872
882
  }
873
883
 
874
884
  &:active {
@@ -1103,9 +1113,16 @@ Error generating stack: `+a.message+`
1103
1113
  font-family: ${({fontFamily:l})=>l};
1104
1114
  background-color: ${({background:l})=>l};
1105
1115
 
1106
- /* Custom scrollbar with spacing from edge */
1116
+ /* Thin scrollbar, visible only on hover */
1117
+ scrollbar-width: thin;
1118
+ scrollbar-color: transparent transparent;
1119
+
1120
+ &:hover {
1121
+ scrollbar-color: ${({scrollbarThumb:l})=>l} transparent;
1122
+ }
1123
+
1107
1124
  &::-webkit-scrollbar {
1108
- width: 10px;
1125
+ width: 6px;
1109
1126
  }
1110
1127
 
1111
1128
  &::-webkit-scrollbar-track {
@@ -1113,13 +1130,16 @@ Error generating stack: `+a.message+`
1113
1130
  }
1114
1131
 
1115
1132
  &::-webkit-scrollbar-thumb {
1133
+ background-color: transparent;
1134
+ border-radius: 6px;
1135
+ transition: background-color 0.2s ease;
1136
+ }
1137
+
1138
+ &:hover::-webkit-scrollbar-thumb {
1116
1139
  background-color: ${({scrollbarThumb:l})=>l};
1117
- border-radius: 10px;
1118
- border: 2px solid transparent;
1119
- background-clip: padding-box;
1120
1140
  }
1121
1141
 
1122
- &::-webkit-scrollbar-thumb:hover {
1142
+ &:hover::-webkit-scrollbar-thumb:hover {
1123
1143
  background-color: ${({scrollbarThumbHover:l})=>l};
1124
1144
  }
1125
1145
  `,cy=H.div`
@@ -12758,7 +12758,7 @@ const Xp = [
12758
12758
  /* @__PURE__ */ v.jsxs(Ip, { fontFamily: s.fontFamily, children: [
12759
12759
  O,
12760
12760
  " v",
12761
- "1.0.69"
12761
+ "1.0.71"
12762
12762
  ] })
12763
12763
  ] })
12764
12764
  ] }),
@@ -12789,8 +12789,10 @@ const Xp = [
12789
12789
  background-color: ${({ theme: n }) => n.colors.background};
12790
12790
  border-bottom: 1px solid ${({ theme: n }) => n.colors.borderLight};
12791
12791
 
12792
- &:hover .close-button {
12793
- opacity: 1;
12792
+ @media (hover: hover) {
12793
+ &:hover .close-button {
12794
+ opacity: 1;
12795
+ }
12794
12796
  }
12795
12797
  `, l1 = H.button`
12796
12798
  position: absolute;
@@ -12811,9 +12813,15 @@ const Xp = [
12811
12813
  justify-content: center;
12812
12814
  z-index: 1;
12813
12815
 
12814
- &:hover {
12815
- color: ${({ theme: n }) => n.colors.text};
12816
- background-color: ${({ theme: n }) => n.colors.border};
12816
+ @media (hover: hover) {
12817
+ &:hover {
12818
+ color: ${({ theme: n }) => n.colors.text};
12819
+ background-color: ${({ theme: n }) => n.colors.border};
12820
+ }
12821
+ }
12822
+
12823
+ @media (hover: none) {
12824
+ opacity: 1;
12817
12825
  }
12818
12826
  `, a1 = H.div`
12819
12827
  display: flex;
@@ -12843,10 +12851,12 @@ const Xp = [
12843
12851
  white-space: nowrap;
12844
12852
  transition: all 0.2s ease;
12845
12853
 
12846
- &:hover {
12847
- background-color: ${({ theme: n, isActive: c }) => c ? n.colors.primaryDark : n.colors.surface};
12848
- border-color: ${({ theme: n, isActive: c }) => c ? n.colors.primaryDark : n.colors.primary};
12849
- color: ${({ theme: n, isActive: c }) => c ? n.colors.white : n.colors.text};
12854
+ @media (hover: hover) {
12855
+ &:hover {
12856
+ background-color: ${({ theme: n, isActive: c }) => c ? n.colors.primaryDark : n.colors.surface};
12857
+ border-color: ${({ theme: n, isActive: c }) => c ? n.colors.primaryDark : n.colors.primary};
12858
+ color: ${({ theme: n, isActive: c }) => c ? n.colors.white : n.colors.text};
12859
+ }
12850
12860
  }
12851
12861
 
12852
12862
  &:active {
@@ -13257,9 +13267,16 @@ const Xp = [
13257
13267
  font-family: ${({ fontFamily: n }) => n};
13258
13268
  background-color: ${({ background: n }) => n};
13259
13269
 
13260
- /* Custom scrollbar with spacing from edge */
13270
+ /* Thin scrollbar, visible only on hover */
13271
+ scrollbar-width: thin;
13272
+ scrollbar-color: transparent transparent;
13273
+
13274
+ &:hover {
13275
+ scrollbar-color: ${({ scrollbarThumb: n }) => n} transparent;
13276
+ }
13277
+
13261
13278
  &::-webkit-scrollbar {
13262
- width: 10px;
13279
+ width: 6px;
13263
13280
  }
13264
13281
 
13265
13282
  &::-webkit-scrollbar-track {
@@ -13267,13 +13284,16 @@ const Xp = [
13267
13284
  }
13268
13285
 
13269
13286
  &::-webkit-scrollbar-thumb {
13287
+ background-color: transparent;
13288
+ border-radius: 6px;
13289
+ transition: background-color 0.2s ease;
13290
+ }
13291
+
13292
+ &:hover::-webkit-scrollbar-thumb {
13270
13293
  background-color: ${({ scrollbarThumb: n }) => n};
13271
- border-radius: 10px;
13272
- border: 2px solid transparent;
13273
- background-clip: padding-box;
13274
13294
  }
13275
13295
 
13276
- &::-webkit-scrollbar-thumb:hover {
13296
+ &:hover::-webkit-scrollbar-thumb:hover {
13277
13297
  background-color: ${({ scrollbarThumbHover: n }) => n};
13278
13298
  }
13279
13299
  `, R1 = H.div`
@@ -82,13 +82,15 @@ Error generating stack: `+a.message+`
82
82
  display: flex;
83
83
  align-items: center;
84
84
  gap: 6px;
85
- `,xm=()=>{const{close:n,config:c,theme:s,assistant:r,isExpanded:d,toggleExpanded:y,startNewChat:S}=Wl(),C=c.headerTitle||r?.chatUiConfig?.avatarTitle||"AI Doctor",x=c.headerIcon||r?.chatUiConfig?.avatarImage?.iconURL||r?.chatUiConfig?.avatarImage?.thumbnailURL||"https://web.mypatientspace.com/img/logo-symbol.png",m=c.headerSubtitle||r?.chatUiConfig?.headerSubtitle,_=c.brandingText||r?.chatUiConfig?.brandingText||"Developed by myPatientSpace";return v.jsxs(fm,{theme:s,children:[v.jsxs(dm,{children:[v.jsx(hm,{theme:s,hasCustomIcon:!0,children:v.jsx(ym,{src:x,alt:""})}),v.jsxs(mm,{children:[v.jsx(gm,{fontFamily:s.fontFamily,children:C}),m&&v.jsx(pm,{fontFamily:s.fontFamily,children:m}),v.jsxs(vm,{fontFamily:s.fontFamily,children:[_," v","1.0.69"]})]})]}),v.jsxs(bm,{children:[v.jsx(nc,{theme:s,onClick:S,"aria-label":"Start new chat",children:v.jsx(om,{size:16})}),v.jsx(nc,{theme:s,onClick:y,"aria-label":d?"Collapse chat":"Expand chat",children:d?v.jsx(gs,{size:16}):v.jsx(ys,{size:16})}),c.floatingMode&&v.jsx(nc,{theme:s,onClick:n,"aria-label":"Minimize chat",children:v.jsx(nm,{size:16})})]})]})},Sm=N.div`
85
+ `,xm=()=>{const{close:n,config:c,theme:s,assistant:r,isExpanded:d,toggleExpanded:y,startNewChat:S}=Wl(),C=c.headerTitle||r?.chatUiConfig?.avatarTitle||"AI Doctor",x=c.headerIcon||r?.chatUiConfig?.avatarImage?.iconURL||r?.chatUiConfig?.avatarImage?.thumbnailURL||"https://web.mypatientspace.com/img/logo-symbol.png",m=c.headerSubtitle||r?.chatUiConfig?.headerSubtitle,_=c.brandingText||r?.chatUiConfig?.brandingText||"Developed by myPatientSpace";return v.jsxs(fm,{theme:s,children:[v.jsxs(dm,{children:[v.jsx(hm,{theme:s,hasCustomIcon:!0,children:v.jsx(ym,{src:x,alt:""})}),v.jsxs(mm,{children:[v.jsx(gm,{fontFamily:s.fontFamily,children:C}),m&&v.jsx(pm,{fontFamily:s.fontFamily,children:m}),v.jsxs(vm,{fontFamily:s.fontFamily,children:[_," v","1.0.71"]})]})]}),v.jsxs(bm,{children:[v.jsx(nc,{theme:s,onClick:S,"aria-label":"Start new chat",children:v.jsx(om,{size:16})}),v.jsx(nc,{theme:s,onClick:y,"aria-label":d?"Collapse chat":"Expand chat",children:d?v.jsx(gs,{size:16}):v.jsx(ys,{size:16})}),c.floatingMode&&v.jsx(nc,{theme:s,onClick:n,"aria-label":"Minimize chat",children:v.jsx(nm,{size:16})})]})]})},Sm=N.div`
86
86
  position: relative;
87
87
  background-color: ${({theme:n})=>n.colors.background};
88
88
  border-bottom: 1px solid ${({theme:n})=>n.colors.borderLight};
89
89
 
90
- &:hover .close-button {
91
- opacity: 1;
90
+ @media (hover: hover) {
91
+ &:hover .close-button {
92
+ opacity: 1;
93
+ }
92
94
  }
93
95
  `,Tm=N.button`
94
96
  position: absolute;
@@ -109,9 +111,15 @@ Error generating stack: `+a.message+`
109
111
  justify-content: center;
110
112
  z-index: 1;
111
113
 
112
- &:hover {
113
- color: ${({theme:n})=>n.colors.text};
114
- background-color: ${({theme:n})=>n.colors.border};
114
+ @media (hover: hover) {
115
+ &:hover {
116
+ color: ${({theme:n})=>n.colors.text};
117
+ background-color: ${({theme:n})=>n.colors.border};
118
+ }
119
+ }
120
+
121
+ @media (hover: none) {
122
+ opacity: 1;
115
123
  }
116
124
  `,Em=N.div`
117
125
  display: flex;
@@ -141,10 +149,12 @@ Error generating stack: `+a.message+`
141
149
  white-space: nowrap;
142
150
  transition: all 0.2s ease;
143
151
 
144
- &:hover {
145
- background-color: ${({theme:n,isActive:c})=>c?n.colors.primaryDark:n.colors.surface};
146
- border-color: ${({theme:n,isActive:c})=>c?n.colors.primaryDark:n.colors.primary};
147
- color: ${({theme:n,isActive:c})=>c?n.colors.white:n.colors.text};
152
+ @media (hover: hover) {
153
+ &:hover {
154
+ background-color: ${({theme:n,isActive:c})=>c?n.colors.primaryDark:n.colors.surface};
155
+ border-color: ${({theme:n,isActive:c})=>c?n.colors.primaryDark:n.colors.primary};
156
+ color: ${({theme:n,isActive:c})=>c?n.colors.white:n.colors.text};
157
+ }
148
158
  }
149
159
 
150
160
  &:active {
@@ -379,9 +389,16 @@ Error generating stack: `+a.message+`
379
389
  font-family: ${({fontFamily:n})=>n};
380
390
  background-color: ${({background:n})=>n};
381
391
 
382
- /* Custom scrollbar with spacing from edge */
392
+ /* Thin scrollbar, visible only on hover */
393
+ scrollbar-width: thin;
394
+ scrollbar-color: transparent transparent;
395
+
396
+ &:hover {
397
+ scrollbar-color: ${({scrollbarThumb:n})=>n} transparent;
398
+ }
399
+
383
400
  &::-webkit-scrollbar {
384
- width: 10px;
401
+ width: 6px;
385
402
  }
386
403
 
387
404
  &::-webkit-scrollbar-track {
@@ -389,13 +406,16 @@ Error generating stack: `+a.message+`
389
406
  }
390
407
 
391
408
  &::-webkit-scrollbar-thumb {
409
+ background-color: transparent;
410
+ border-radius: 6px;
411
+ transition: background-color 0.2s ease;
412
+ }
413
+
414
+ &:hover::-webkit-scrollbar-thumb {
392
415
  background-color: ${({scrollbarThumb:n})=>n};
393
- border-radius: 10px;
394
- border: 2px solid transparent;
395
- background-clip: padding-box;
396
416
  }
397
417
 
398
- &::-webkit-scrollbar-thumb:hover {
418
+ &:hover::-webkit-scrollbar-thumb:hover {
399
419
  background-color: ${({scrollbarThumbHover:n})=>n};
400
420
  }
401
421
  `,Im=N.div`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mypatientspace/chatbot-widget",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "description": "Embeddable healthcare chatbot widget for websites and mobile apps",
5
5
  "type": "module",
6
6
  "main": "dist/mypatientspace-widget.umd.js",