@hiver/connector-agent 4.1.2-fixConnectorsHeader-beta.0 → 4.1.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 +1 -1
package/index.es.js
CHANGED
|
@@ -5988,7 +5988,7 @@ const zb = N(be)`
|
|
|
5988
5988
|
/* @__PURE__ */ y.jsx(Ff, { variant: "h2", children: v ? Fc : yf })
|
|
5989
5989
|
] }),
|
|
5990
5990
|
/* @__PURE__ */ y.jsxs(z, { direction: "row", children: [
|
|
5991
|
-
/* @__PURE__ */ y.jsx(We, { title: Qg, children: /* @__PURE__ */ y.jsx(Wt, { onClick: C, id: "help-button", sx: { height: "36px", width: "36px" }, children: /* @__PURE__ */ y.jsx("img", { src: jb, alt: "Help", height: "20px" }) }) }),
|
|
5991
|
+
/* @__PURE__ */ y.jsx(We, { title: Qg, placement: "bottom", children: /* @__PURE__ */ y.jsx(Wt, { onClick: C, id: "help-button", sx: { height: "36px", width: "36px" }, children: /* @__PURE__ */ y.jsx("img", { src: jb, alt: "Help", height: "20px" }) }) }),
|
|
5992
5992
|
t && (o != null && o.length) ? /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
5993
5993
|
r ? /* @__PURE__ */ y.jsx(We, { title: wf, placement: "bottom", children: /* @__PURE__ */ y.jsx(Wt, { onClick: s, sx: { height: "36px", width: "36px" }, children: /* @__PURE__ */ y.jsx("img", { src: Hb, alt: "Link Task", height: "20px" }) }) }) : null,
|
|
5994
5994
|
n ? /* @__PURE__ */ y.jsx(We, { title: Ef, placement: "bottom", children: /* @__PURE__ */ y.jsx(Wt, { onClick: i, sx: { height: "36px", width: "36px" }, children: /* @__PURE__ */ y.jsx("img", { src: Bb, alt: "Add", height: "20px" }) }) }) : null
|
package/index.umd.js
CHANGED
|
@@ -537,7 +537,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
537
537
|
width: calc(100% - 20px);
|
|
538
538
|
display: inline-block;
|
|
539
539
|
color: ${v.theme.palette.gray.gray2};
|
|
540
|
-
`,Tb=({connectors:e,isWriteFlowEnabled:t,haveCreateObjects:n,haveLinkObjects:r,cards:o,handleCreateNewObject:s,handleLinkNewObject:i})=>{const c=_.useRef(null),l=_.useRef(null),[a,u]=_.useState(null),h=!!a,{availableFeatures:b,sendTrackingEvent:x,currentSmIds:m,userEmail:d}=_.useContext(He),{userGroupId:f,userId:p}=zt()||{},y=nt(b,us),g=[{id:"rate-experience",label:"Rate your experience",icon:C.jsx(Xm,{}),onClick:()=>{u(null);const w=fs({url:iu,params:{email:d,user_id:p,ug_id:f,sm_ids:m.join(","),connector_names:e.join(","),source:"help_drop_down"}});window.open(w,"_blank"),x(oa,{sm_ids:m,ug_id:f,connector_names:e,source:"help_drop_down"}),Qo(p)}},{id:"instant-chat",label:"Instant chat with support",icon:C.jsx(Zm,{}),onClick:()=>{u(null),window.open(o1,"_blank"),x(W1,{sm_ids:m,ug_id:f,connector_names:e,source:"help_drop_down"})}}],E=_.useCallback(w=>{const A=document.getElementById("connector-agent-container");if(!w||!A)return;l.current&&l.current.disconnect();const S=new IntersectionObserver(T=>{const R=c.current;for(const F of T)R==null||R.classList.toggle(Su,F.intersectionRatio===0)},{root:A});S.observe(w),l.current=S},[]),I=w=>{x(H1,{sm_ids:m,ug_id:f,connector_names:e}),u(w.currentTarget)};return C.jsxs(C.Fragment,{children:[C.jsx(Qm,{ref:E}),C.jsx(Ym,{options:g,anchor:a,open:h,onClose:()=>u(null)}),C.jsxs(Jm,{ref:c,children:[C.jsxs(v.Stack,{direction:"row",alignItems:"center",gap:"8px",children:[y?C.jsx(Au,{width:"20px",height:"20px"}):C.jsx(_u,{}),C.jsx(Tu,{variant:"h2",children:y?aa:fu})]}),C.jsxs(v.Stack,{direction:"row",children:[C.jsx(v.Tooltip,{title:t1,children:C.jsx(v.IconButton,{onClick:I,id:"help-button",sx:{height:"36px",width:"36px"},children:C.jsx("img",{src:Wm,alt:"Help",height:"20px"})})}),t&&(o!=null&&o.length)?C.jsxs(C.Fragment,{children:[r?C.jsx(v.Tooltip,{title:bu,placement:"bottom",children:C.jsx(v.IconButton,{onClick:i,sx:{height:"36px",width:"36px"},children:C.jsx("img",{src:zm,alt:"Link Task",height:"20px"})})}):null,n?C.jsx(v.Tooltip,{title:mu,placement:"bottom",children:C.jsx(v.IconButton,{onClick:s,sx:{height:"36px",width:"36px"},children:C.jsx("img",{src:Hm,alt:"Add",height:"20px"})})}):null]}):null]})]})]})};var pa={exports:{}},ha={};/**
|
|
540
|
+
`,Tb=({connectors:e,isWriteFlowEnabled:t,haveCreateObjects:n,haveLinkObjects:r,cards:o,handleCreateNewObject:s,handleLinkNewObject:i})=>{const c=_.useRef(null),l=_.useRef(null),[a,u]=_.useState(null),h=!!a,{availableFeatures:b,sendTrackingEvent:x,currentSmIds:m,userEmail:d}=_.useContext(He),{userGroupId:f,userId:p}=zt()||{},y=nt(b,us),g=[{id:"rate-experience",label:"Rate your experience",icon:C.jsx(Xm,{}),onClick:()=>{u(null);const w=fs({url:iu,params:{email:d,user_id:p,ug_id:f,sm_ids:m.join(","),connector_names:e.join(","),source:"help_drop_down"}});window.open(w,"_blank"),x(oa,{sm_ids:m,ug_id:f,connector_names:e,source:"help_drop_down"}),Qo(p)}},{id:"instant-chat",label:"Instant chat with support",icon:C.jsx(Zm,{}),onClick:()=>{u(null),window.open(o1,"_blank"),x(W1,{sm_ids:m,ug_id:f,connector_names:e,source:"help_drop_down"})}}],E=_.useCallback(w=>{const A=document.getElementById("connector-agent-container");if(!w||!A)return;l.current&&l.current.disconnect();const S=new IntersectionObserver(T=>{const R=c.current;for(const F of T)R==null||R.classList.toggle(Su,F.intersectionRatio===0)},{root:A});S.observe(w),l.current=S},[]),I=w=>{x(H1,{sm_ids:m,ug_id:f,connector_names:e}),u(w.currentTarget)};return C.jsxs(C.Fragment,{children:[C.jsx(Qm,{ref:E}),C.jsx(Ym,{options:g,anchor:a,open:h,onClose:()=>u(null)}),C.jsxs(Jm,{ref:c,children:[C.jsxs(v.Stack,{direction:"row",alignItems:"center",gap:"8px",children:[y?C.jsx(Au,{width:"20px",height:"20px"}):C.jsx(_u,{}),C.jsx(Tu,{variant:"h2",children:y?aa:fu})]}),C.jsxs(v.Stack,{direction:"row",children:[C.jsx(v.Tooltip,{title:t1,placement:"bottom",children:C.jsx(v.IconButton,{onClick:I,id:"help-button",sx:{height:"36px",width:"36px"},children:C.jsx("img",{src:Wm,alt:"Help",height:"20px"})})}),t&&(o!=null&&o.length)?C.jsxs(C.Fragment,{children:[r?C.jsx(v.Tooltip,{title:bu,placement:"bottom",children:C.jsx(v.IconButton,{onClick:i,sx:{height:"36px",width:"36px"},children:C.jsx("img",{src:zm,alt:"Link Task",height:"20px"})})}):null,n?C.jsx(v.Tooltip,{title:mu,placement:"bottom",children:C.jsx(v.IconButton,{onClick:s,sx:{height:"36px",width:"36px"},children:C.jsx("img",{src:Hm,alt:"Add",height:"20px"})})}):null]}):null]})]})]})};var pa={exports:{}},ha={};/**
|
|
541
541
|
* @license React
|
|
542
542
|
* use-sync-external-store-with-selector.production.min.js
|
|
543
543
|
*
|