@hiver/connector-agent 4.8.2-interFont-beta.1 → 4.8.2
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/index.es.js +1 -1
- package/index.umd.js +1 -1
- package/package.json +2 -2
package/index.es.js
CHANGED
|
@@ -7253,7 +7253,7 @@ const m4 = (e) => /* @__PURE__ */ A.createElement("svg", { width: 20, height: 21
|
|
|
7253
7253
|
source: "collapsed_feedback_btn"
|
|
7254
7254
|
}
|
|
7255
7255
|
}), [c, l] = U(t), [d, g] = U(!1), [m, C] = U(0), b = () => {
|
|
7256
|
-
window.open(a, "_blank"), r(wc, {
|
|
7256
|
+
window.open(a, "_blank", "noopener,noreferrer"), r(wc, {
|
|
7257
7257
|
sm_ids: n,
|
|
7258
7258
|
ug_id: i,
|
|
7259
7259
|
connector_names: e,
|
package/index.umd.js
CHANGED
|
@@ -149,7 +149,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
149
149
|
}
|
|
150
150
|
`,E5=d.styled(d.Typography)`
|
|
151
151
|
letter-spacing: 0.042px;
|
|
152
|
-
`,I5=({rating:e,setRating:t,count:n=5})=>{const[r,o]=w.useState(e),s=r??e,a=l=>{t(l)},i=l=>{o(l)},c=()=>{o(0)};return u.jsx(x5,{onMouseLeave:c,children:Array.from({length:n},(l,f)=>{const m=f<s;return u.jsx(v5,{onClick:()=>a(f+1),onMouseEnter:()=>i(f+1),children:u.jsxs("div",{children:[u.jsx(h5,{width:"20px",height:"20px",style:{opacity:m?1:0,zIndex:m?2:1}}),u.jsx(p5,{width:"20px",height:"20px",style:{opacity:m?0:1,zIndex:m?1:2}})]})},f)})})},w5=({connectors:e,expanded:t=!1})=>{const{currentSmIds:n,sendTrackingEvent:r,userEmail:o}=w.useContext(Be),{userGroupId:s,userId:a}=Xt()||{},i=Xi({url:fd,params:{email:o,user_id:a,ug_id:s,sm_ids:n.join(","),connector_names:e.join(","),source:"collapsed_feedback_btn"}}),[c,l]=w.useState(t),[f,m]=w.useState(!1),[b,v]=w.useState(0),y=()=>{window.open(i,"_blank"),r(Pi,{sm_ids:n,ug_id:s,connector_names:e,source:"collapsed_feedback_btn",star_rating:0}),xs(a)},p=C=>{r(Pi,{sm_ids:n,ug_id:s,connector_names:e,source:"expanded_feedback_btn",star_rating:C});const x=Xi({url:zm,params:{email:o,user_id:a,ug_id:s,sm_ids:n.join(","),connector_names:e.join(","),star_rating:String(C)}});v(C),window.open(x,"_blank"),l(!1),xs(a)},h=()=>{r(O3,{sm_ids:n,ug_id:s,connector_names:e,source:"expanded_feedback_btn"}),m(!0),xs(a)},g=()=>{f&&(l(!1),m(!1))};return u.jsxs(u.Fragment,{children:[u.jsxs(y5,{className:f||!c?"slide-down-out":"",onAnimationEnd:g,children:[u.jsxs(d.Stack,{width:"100%",direction:"row",gap:"8px",children:[u.jsx(Gm,{}),u.jsxs(d.Box,{width:"175px",children:[u.jsx(E5,{variant:"h3",children:Wm}),u.jsx(I5,{rating:b,setRating:p})]})]}),u.jsx(d.Box,{position:"relative",children:u.jsx(d.Tooltip,{title:"Close",children:u.jsx(C5,{onClick:h,children:u.jsx(Hm,{width:"16px",height:"16px"})})})})]}),u.jsx(b5,{className:f||!c?"fade-in":"",children:u.jsxs(d.Button,{size:"small",variant:"outlined",color:"tertiary",onClick:y,children:[u.jsx(Vm,{}),Zm]})})]})},_5="Need setup help?",S5="Expert setup assistance available! Book a 15 min call with our integration specialist.",A5="Schedule call",T5="https://calendar.app.google/V2cJcwKMV4ax9rpk9",kd="agent_panel",zi="hiver_schedule_call_close_button_click",L5=d.styled(d.Stack)`
|
|
152
|
+
`,I5=({rating:e,setRating:t,count:n=5})=>{const[r,o]=w.useState(e),s=r??e,a=l=>{t(l)},i=l=>{o(l)},c=()=>{o(0)};return u.jsx(x5,{onMouseLeave:c,children:Array.from({length:n},(l,f)=>{const m=f<s;return u.jsx(v5,{onClick:()=>a(f+1),onMouseEnter:()=>i(f+1),children:u.jsxs("div",{children:[u.jsx(h5,{width:"20px",height:"20px",style:{opacity:m?1:0,zIndex:m?2:1}}),u.jsx(p5,{width:"20px",height:"20px",style:{opacity:m?0:1,zIndex:m?1:2}})]})},f)})})},w5=({connectors:e,expanded:t=!1})=>{const{currentSmIds:n,sendTrackingEvent:r,userEmail:o}=w.useContext(Be),{userGroupId:s,userId:a}=Xt()||{},i=Xi({url:fd,params:{email:o,user_id:a,ug_id:s,sm_ids:n.join(","),connector_names:e.join(","),source:"collapsed_feedback_btn"}}),[c,l]=w.useState(t),[f,m]=w.useState(!1),[b,v]=w.useState(0),y=()=>{window.open(i,"_blank","noopener,noreferrer"),r(Pi,{sm_ids:n,ug_id:s,connector_names:e,source:"collapsed_feedback_btn",star_rating:0}),xs(a)},p=C=>{r(Pi,{sm_ids:n,ug_id:s,connector_names:e,source:"expanded_feedback_btn",star_rating:C});const x=Xi({url:zm,params:{email:o,user_id:a,ug_id:s,sm_ids:n.join(","),connector_names:e.join(","),star_rating:String(C)}});v(C),window.open(x,"_blank"),l(!1),xs(a)},h=()=>{r(O3,{sm_ids:n,ug_id:s,connector_names:e,source:"expanded_feedback_btn"}),m(!0),xs(a)},g=()=>{f&&(l(!1),m(!1))};return u.jsxs(u.Fragment,{children:[u.jsxs(y5,{className:f||!c?"slide-down-out":"",onAnimationEnd:g,children:[u.jsxs(d.Stack,{width:"100%",direction:"row",gap:"8px",children:[u.jsx(Gm,{}),u.jsxs(d.Box,{width:"175px",children:[u.jsx(E5,{variant:"h3",children:Wm}),u.jsx(I5,{rating:b,setRating:p})]})]}),u.jsx(d.Box,{position:"relative",children:u.jsx(d.Tooltip,{title:"Close",children:u.jsx(C5,{onClick:h,children:u.jsx(Hm,{width:"16px",height:"16px"})})})})]}),u.jsx(b5,{className:f||!c?"fade-in":"",children:u.jsxs(d.Button,{size:"small",variant:"outlined",color:"tertiary",onClick:y,children:[u.jsx(Vm,{}),Zm]})})]})},_5="Need setup help?",S5="Expert setup assistance available! Book a 15 min call with our integration specialist.",A5="Schedule call",T5="https://calendar.app.google/V2cJcwKMV4ax9rpk9",kd="agent_panel",zi="hiver_schedule_call_close_button_click",L5=d.styled(d.Stack)`
|
|
153
153
|
padding: 12px;
|
|
154
154
|
width: 250px;
|
|
155
155
|
min-height: 151px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hiver/connector-agent",
|
|
3
|
-
"version": "4.8.2
|
|
3
|
+
"version": "4.8.2",
|
|
4
4
|
"main": "index.es.js",
|
|
5
5
|
"module": "index.es.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"react-dom": "^18.3.1"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@hiver/hiver-ui-kit": "4.
|
|
17
|
+
"@hiver/hiver-ui-kit": "4.7.0",
|
|
18
18
|
"react": "^18.0.0",
|
|
19
19
|
"react-dom": "^18.0.0"
|
|
20
20
|
},
|