@hiver/connector-agent 4.21.2 → 4.21.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/features/feedback/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAEL,eAAe,EAGf,UAAU,EAGV,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAsC7B,eAAO,MAAM,0BAA0B,EAAE,eAAe,CAAC,UAAU,CAwClE,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,eAAe,CAAC,UAAU,CAoBjE,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,eAAe,CASxD,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAAC,UAAU,CAK3D,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,UAAU,CA4BtD,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,eAAe,CAAC,eAAe,CAExE,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/features/feedback/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAEL,eAAe,EAGf,UAAU,EAGV,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAsC7B,eAAO,MAAM,0BAA0B,EAAE,eAAe,CAAC,UAAU,CAwClE,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,eAAe,CAAC,UAAU,CAoBjE,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,eAAe,CASxD,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAAC,UAAU,CAK3D,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,UAAU,CA4BtD,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,eAAe,CAAC,eAAe,CAGxE,CAAC"}
package/index.es.js CHANGED
@@ -7250,6 +7250,7 @@ const vF = (e) => /* @__PURE__ */ I.createElement("svg", { width: 20, height: 21
7250
7250
  }
7251
7251
  `, OF = w(K)`
7252
7252
  letter-spacing: 0.042px;
7253
+ color: var(--connector-text-primary);
7253
7254
  `, RF = ({ rating: e, setRating: t, count: n = 5 }) => {
7254
7255
  const [u, r] = H(e), o = u ?? e, i = (c) => {
7255
7256
  t(c);
package/index.umd.js CHANGED
@@ -168,6 +168,7 @@ React keys must be passed directly to JSX without using spread:
168
168
  }
169
169
  `,FF=s.styled(s.Typography)`
170
170
  letter-spacing: 0.042px;
171
+ color: var(--connector-text-primary);
171
172
  `,hF=({rating:e,setRating:t,count:n=5})=>{const[u,r]=F.useState(e),o=u??e,f=D=>{t(D)},i=D=>{r(D)},c=()=>{r(0)};return a.jsx(CF,{onMouseLeave:c,children:Array.from({length:n},(D,l)=>{const d=l<o;return a.jsx(gF,{onClick:()=>f(l+1),onMouseEnter:()=>i(l+1),children:a.jsxs("div",{children:[a.jsx(cF,{width:"20px",height:"20px",style:{opacity:d?1:0,zIndex:d?2:1}}),a.jsx(iF,{width:"20px",height:"20px",style:{opacity:d?0:1,zIndex:d?1:2}})]})},l)})})},EF=({connectors:e,expanded:t=!1})=>{const{currentSmIds:n,sendTrackingEvent:u,userEmail:r}=F.useContext(nt),{userGroupId:o,userId:f}=Ht()||{},i=h0({url:TD,params:{email:r,user_id:f,ug_id:o,sm_ids:n.join(","),connector_names:e.join(","),source:"collapsed_feedback_btn"}}),[c,D]=F.useState(t),[l,d]=F.useState(!1),[h,b]=F.useState(0),C=()=>{window.open(i,"_blank","noopener,noreferrer"),u(s0,{sm_ids:n,ug_id:o,connector_names:e,source:"collapsed_feedback_btn",star_rating:0}),Ta(f)},p=m=>{u(s0,{sm_ids:n,ug_id:o,connector_names:e,source:"expanded_feedback_btn",star_rating:m});const E=h0({url:MC,params:{email:r,user_id:f,ug_id:o,sm_ids:n.join(","),connector_names:e.join(","),star_rating:String(m)}});b(m),window.open(E,"_blank"),D(!1),Ta(f)},A=()=>{u(Cg,{sm_ids:n,ug_id:o,connector_names:e,source:"expanded_feedback_btn"}),d(!0),Ta(f)},g=()=>{l&&(D(!1),d(!1))};return a.jsxs(a.Fragment,{children:[a.jsxs(dF,{className:l||!c?"slide-down-out":"",onAnimationEnd:g,children:[a.jsxs(s.Stack,{width:"100%",direction:"row",gap:"8px",children:[a.jsx(kC,{}),a.jsxs(s.Box,{width:"175px",children:[a.jsx(FF,{variant:"h3",children:TC}),a.jsx(hF,{rating:h,setRating:p})]})]}),a.jsx(s.Box,{position:"relative",children:a.jsx(s.Tooltip,{title:"Close",children:a.jsx(pF,{onClick:A,children:a.jsx(f0,{width:"16px",height:"16px"})})})})]}),a.jsx(AF,{className:l||!c?"fade-in":"",children:a.jsxs(s.Button,{size:"small",variant:"outlined",color:"tertiary",onClick:C,children:[a.jsx(IC,{}),LC]})})]})},mF="Need setup help?",bF="Expert setup assistance available! Book a 15 min call with our integration specialist.",yF="Schedule call",xF="https://calendar.app.google/V2cJcwKMV4ax9rpk9",el="agent_panel",E0="hiver_schedule_call_close_button_click",BF=s.styled(s.Stack)`
172
173
  padding: 12px;
173
174
  width: 250px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-agent",
3
- "version": "4.21.2",
3
+ "version": "4.21.3",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",