@mypatientspace/chatbot-widget 1.0.70 → 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.70"
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 {
@@ -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.70"]})]})]}),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 {
@@ -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.70"
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 {
@@ -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.70"]})]})]}),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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mypatientspace/chatbot-widget",
3
- "version": "1.0.70",
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",