@hiver/connector-agent 1.3.4-beta.3 → 1.3.4-beta.5
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/features/connector-cards/components/card-list/Card.d.ts +1 -1
- package/features/connector-cards/components/card-list/Card.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/index.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/style.d.ts.map +1 -1
- package/features/write-form/components/card-linking/unlink-card-modal.d.ts +2 -2
- package/features/write-form/components/card-linking/unlink-card-modal.d.ts.map +1 -1
- package/index.es.js +28 -21
- package/index.umd.js +6 -3
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ interface Iprops {
|
|
|
10
10
|
specificConnectorApiStatus: {
|
|
11
11
|
[key: string]: ApiStatus;
|
|
12
12
|
} | null;
|
|
13
|
-
|
|
13
|
+
onCardUnlinking: () => void;
|
|
14
14
|
}
|
|
15
15
|
export declare const Card: (props: Iprops) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/Card.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAgBrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAWxC,UAAU,MAAM;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;KAC9B,GAAG,IAAI,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B,EAAE;QAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,GAAG,IAAI,CAAC;IACT,
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/Card.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAgBrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAWxC,UAAU,MAAM;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;KAC9B,GAAG,IAAI,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B,EAAE;QAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,GAAG,IAAI,CAAC;IACT,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,eAAO,MAAM,IAAI,UAAW,MAAM,4CAoHjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA2C,MAAM,OAAO,CAAC;AAuCpE,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA2C,MAAM,OAAO,CAAC;AAuCpE,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,SAAS,CAkGlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/style.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,eAAe,EACf,SAAS,EACT,aAAa,EACb,UAAU,EACV,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,YAAY,CAIxD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,eAAe,CAO5D,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,eAAe,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/style.ts"],"names":[],"mappings":"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"}
|
|
@@ -2,8 +2,8 @@ interface IProps {
|
|
|
2
2
|
showUnlinkModal: boolean;
|
|
3
3
|
setShowUnlinkModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
4
4
|
cardId: string;
|
|
5
|
-
|
|
5
|
+
onCardUnlinking: () => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const UnlinkCardModal: ({ showUnlinkModal, setShowUnlinkModal, cardId,
|
|
7
|
+
export declare const UnlinkCardModal: ({ showUnlinkModal, setShowUnlinkModal, cardId, onCardUnlinking }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=unlink-card-modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unlink-card-modal.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/card-linking/unlink-card-modal.tsx"],"names":[],"mappings":"AAUA,UAAU,MAAM;IACd,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,
|
|
1
|
+
{"version":3,"file":"unlink-card-modal.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/card-linking/unlink-card-modal.tsx"],"names":[],"mappings":"AAUA,UAAU,MAAM;IACd,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,eAAO,MAAM,eAAe,qEAAsE,MAAM,4CAsCvG,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -36015,6 +36015,9 @@ const Hi = "success", ss = "error", JB = "Some error occured. Please contact sup
|
|
|
36015
36015
|
& #modal-root {
|
|
36016
36016
|
margin-left: -14px;
|
|
36017
36017
|
}
|
|
36018
|
+
& textarea {
|
|
36019
|
+
display: block !important;
|
|
36020
|
+
}
|
|
36018
36021
|
`;
|
|
36019
36022
|
V(mt)`
|
|
36020
36023
|
width: inherit;
|
|
@@ -36319,7 +36322,7 @@ const MN = V(mt)`
|
|
|
36319
36322
|
}
|
|
36320
36323
|
}, [t, o]);
|
|
36321
36324
|
const u = r == xU.NOT_FOUND, f = u ? wA : t, p = !u && !!n;
|
|
36322
|
-
return i ? /* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width:
|
|
36325
|
+
return i ? /* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "100%", height: 16, animation: "wave", margin: "4px 0 0 0" }) : p ? /* @__PURE__ */ y.jsxs(dh, { gap: "5px", children: [
|
|
36323
36326
|
/* @__PURE__ */ y.jsx("img", { src: lj }),
|
|
36324
36327
|
/* @__PURE__ */ y.jsx(gh, { variant: "body2", children: QN })
|
|
36325
36328
|
] }) : /* @__PURE__ */ y.jsx(en, { title: l ? f : null, placement: "bottom", children: o ? /* @__PURE__ */ y.jsx(fh, { ref: A, target: "_blank", underline: "none", href: o, fontSize: "13px", children: f || wA }) : /* @__PURE__ */ y.jsx(NN, { ref: s, variant: "body2", children: f || wA }) });
|
|
@@ -36342,8 +36345,8 @@ const MN = V(mt)`
|
|
|
36342
36345
|
return /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
36343
36346
|
/* @__PURE__ */ y.jsx(ph, { shown: h, setShown: b, showCloseButton: !0, children: /* @__PURE__ */ y.jsx(Aj, { data: ((D = f == null ? void 0 : f.listItems) == null ? void 0 : D.fields) || [], title: n }) }),
|
|
36344
36347
|
/* @__PURE__ */ y.jsx(PN, { className: i ? "" : "slideUp", height: O, children: /* @__PURE__ */ y.jsx(Ze, { ref: F, gap: 1, margin: "12px", children: l && (!(v != null && v.length) || S) ? /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
36345
|
-
/* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width:
|
|
36346
|
-
/* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width:
|
|
36348
|
+
/* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "100%", height: 20, animation: "wave" }),
|
|
36349
|
+
/* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "100%", height: 20, animation: "wave" })
|
|
36347
36350
|
] }) : /* @__PURE__ */ y.jsx(y.Fragment, { children: S ? /* @__PURE__ */ y.jsx(mt, { margin: "8px 0", children: /* @__PURE__ */ y.jsx(c1, { error: S, isLoading: l }) }) : v != null && v.length ? v == null ? void 0 : v.map((Y) => {
|
|
36348
36351
|
const { value: z, label: X, deepLink: K } = Y, q = "errorMessage" in Y ? Y.errorMessage : null, ee = "statusCode" in Y ? Y.statusCode : null;
|
|
36349
36352
|
return /* @__PURE__ */ y.jsxs("div", { children: [
|
|
@@ -36365,10 +36368,10 @@ const MN = V(mt)`
|
|
|
36365
36368
|
/* @__PURE__ */ y.jsx(YN, { src: oj, transformAngle: M })
|
|
36366
36369
|
] }) : l1 })
|
|
36367
36370
|
] });
|
|
36368
|
-
}, Eh = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.76618%202.23341C8.79952%201.26675%207.47285%200.666748%205.99952%200.666748C3.05285%200.666748%200.672852%203.05341%200.672852%206.00008C0.672852%208.94675%203.05285%2011.3334%205.99952%2011.3334C8.48619%2011.3334%2010.5595%209.63341%2011.1529%207.33341H9.76618C9.21952%208.88675%207.73952%2010.0001%205.99952%2010.0001C3.79285%2010.0001%201.99952%208.20675%201.99952%206.00008C1.99952%203.79341%203.79285%202.00008%205.99952%202.00008C7.10618%202.00008%208.09285%202.46008%208.81285%203.18675L6.66618%205.33341H11.3329V0.666748L9.76618%202.23341Z'%20fill='%236C7B94'/%3e%3c/svg%3e", cj = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.4587%206.7528C11.2244%206.51848%2010.8445%206.51848%2010.6102%206.7528C10.3759%206.98711%2010.3759%207.36701%2010.6102%207.60132L11.4587%206.7528ZM12.1916%208.33414L12.6158%207.90988L12.1916%208.33414ZM8.33462%2012.1911L8.75888%2011.7668L8.33462%2012.1911ZM7.6018%2010.6097C7.36748%2010.3754%206.98758%2010.3754%206.75327%2010.6097C6.51895%2010.8441%206.51895%2011.224%206.75327%2011.4583L7.6018%2010.6097ZM4.43911%209.14411C4.67343%209.37842%205.05333%209.37842%205.28764%209.14411C5.52196%208.9098%205.52196%208.5299%205.28764%208.29558L4.43911%209.14411ZM3.70629%207.56276L4.13056%207.1385L3.70629%207.56276ZM7.56324%203.70582L7.9875%203.28155L7.56324%203.70582ZM8.29606%205.28716C8.53037%205.52148%208.91027%205.52148%209.14459%205.28716C9.3789%205.05285%209.3789%204.67295%209.14459%204.43864L8.29606%205.28716ZM10.6102%207.60132L11.7673%208.75841L12.6158%207.90988L11.4587%206.7528L10.6102%207.60132ZM11.7673%208.75841C12.1662%209.15735%2012.3904%209.69843%2012.3904%2010.2626L13.5904%2010.2626C13.5904%209.38017%2013.2398%208.53387%2012.6158%207.90988L11.7673%208.75841ZM12.3904%2010.2626C12.3904%2010.8268%2012.1662%2011.3679%2011.7673%2011.7668L12.6158%2012.6154C13.2398%2011.9914%2013.5904%2011.1451%2013.5904%2010.2626L12.3904%2010.2626ZM11.7673%2011.7668C10.9365%2012.5976%209.58963%2012.5976%208.75888%2011.7668L7.91035%2012.6154C9.20973%2013.9147%2011.3164%2013.9147%2012.6158%2012.6154L11.7673%2011.7668ZM8.75888%2011.7668L7.6018%2010.6097L6.75327%2011.4583L7.91035%2012.6154L8.75888%2011.7668ZM5.28764%208.29558L4.13056%207.1385L3.28203%207.98703L4.43911%209.14411L5.28764%208.29558ZM4.13056%207.1385C3.73162%206.73956%203.50749%206.19848%203.50749%205.63429L2.30749%205.63429C2.30749%206.51674%202.65804%207.36304%203.28203%207.98703L4.13056%207.1385ZM3.50749%205.63429C3.50749%205.0701%203.73162%204.52902%204.13056%204.13008L3.28203%203.28155C2.65804%203.90554%202.30749%204.75184%202.30749%205.63429L3.50749%205.63429ZM4.13056%204.13008C4.96131%203.29933%206.30822%203.29933%207.13897%204.13008L7.9875%203.28155C6.68812%201.98217%204.58141%201.98217%203.28203%203.28155L4.13056%204.13008ZM7.13897%204.13008L8.29606%205.28716L9.14459%204.43864L7.9875%203.28155L7.13897%204.13008Z'%20fill='%236C7B94'/%3e%3crect%20x='5.08887'%20y='6.0791'%20width='1.33333'%20height='6.66667'%20rx='0.666667'%20transform='rotate(-45%205.08887%206.0791)'%20fill='%236C7B94'/%3e%3cpath%20d='M5.59961%2014.3998V12.7998'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.7998%205.59961H14.3998'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.40039%2011.2002H4.00039'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.2002%202.40039V4.00039'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", uj = "enable_connectors_clicked", dj = "learn_more_clicked", gj = "connector_card_expand_clicked", fj = "connector_card_collapsed_clicked", pj = "connector_card_refresh_clicked", Cj = "connector_cards_loaded", Ej = "connector_whats_new_card_viewed", Ij = "connector_whats_new_explore_now_clicked", Bj = "connector_whats_new_learn_more_clicked", hj = "connector_whats_new_dismissed", Ih = (e) => e.write.objectList, mj = (e) => e.write.objectDict, Qj = (e) => e.write.formFields, bj = (e) => e.write.previewCardData, vj = (e) => e.write.previewCardApiStatus, yj = (e) => e.write.linkCardApiStatus, wj = (e) => e.write.unlinkCardApiStatus, xj = (e) => e.write.dependentFieldsMap, Tj = (e) => e.write.createFormApiStatus, Fj = ({ showUnlinkModal: e, setShowUnlinkModal: t, cardId: n,
|
|
36371
|
+
}, Eh = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.76618%202.23341C8.79952%201.26675%207.47285%200.666748%205.99952%200.666748C3.05285%200.666748%200.672852%203.05341%200.672852%206.00008C0.672852%208.94675%203.05285%2011.3334%205.99952%2011.3334C8.48619%2011.3334%2010.5595%209.63341%2011.1529%207.33341H9.76618C9.21952%208.88675%207.73952%2010.0001%205.99952%2010.0001C3.79285%2010.0001%201.99952%208.20675%201.99952%206.00008C1.99952%203.79341%203.79285%202.00008%205.99952%202.00008C7.10618%202.00008%208.09285%202.46008%208.81285%203.18675L6.66618%205.33341H11.3329V0.666748L9.76618%202.23341Z'%20fill='%236C7B94'/%3e%3c/svg%3e", cj = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.4587%206.7528C11.2244%206.51848%2010.8445%206.51848%2010.6102%206.7528C10.3759%206.98711%2010.3759%207.36701%2010.6102%207.60132L11.4587%206.7528ZM12.1916%208.33414L12.6158%207.90988L12.1916%208.33414ZM8.33462%2012.1911L8.75888%2011.7668L8.33462%2012.1911ZM7.6018%2010.6097C7.36748%2010.3754%206.98758%2010.3754%206.75327%2010.6097C6.51895%2010.8441%206.51895%2011.224%206.75327%2011.4583L7.6018%2010.6097ZM4.43911%209.14411C4.67343%209.37842%205.05333%209.37842%205.28764%209.14411C5.52196%208.9098%205.52196%208.5299%205.28764%208.29558L4.43911%209.14411ZM3.70629%207.56276L4.13056%207.1385L3.70629%207.56276ZM7.56324%203.70582L7.9875%203.28155L7.56324%203.70582ZM8.29606%205.28716C8.53037%205.52148%208.91027%205.52148%209.14459%205.28716C9.3789%205.05285%209.3789%204.67295%209.14459%204.43864L8.29606%205.28716ZM10.6102%207.60132L11.7673%208.75841L12.6158%207.90988L11.4587%206.7528L10.6102%207.60132ZM11.7673%208.75841C12.1662%209.15735%2012.3904%209.69843%2012.3904%2010.2626L13.5904%2010.2626C13.5904%209.38017%2013.2398%208.53387%2012.6158%207.90988L11.7673%208.75841ZM12.3904%2010.2626C12.3904%2010.8268%2012.1662%2011.3679%2011.7673%2011.7668L12.6158%2012.6154C13.2398%2011.9914%2013.5904%2011.1451%2013.5904%2010.2626L12.3904%2010.2626ZM11.7673%2011.7668C10.9365%2012.5976%209.58963%2012.5976%208.75888%2011.7668L7.91035%2012.6154C9.20973%2013.9147%2011.3164%2013.9147%2012.6158%2012.6154L11.7673%2011.7668ZM8.75888%2011.7668L7.6018%2010.6097L6.75327%2011.4583L7.91035%2012.6154L8.75888%2011.7668ZM5.28764%208.29558L4.13056%207.1385L3.28203%207.98703L4.43911%209.14411L5.28764%208.29558ZM4.13056%207.1385C3.73162%206.73956%203.50749%206.19848%203.50749%205.63429L2.30749%205.63429C2.30749%206.51674%202.65804%207.36304%203.28203%207.98703L4.13056%207.1385ZM3.50749%205.63429C3.50749%205.0701%203.73162%204.52902%204.13056%204.13008L3.28203%203.28155C2.65804%203.90554%202.30749%204.75184%202.30749%205.63429L3.50749%205.63429ZM4.13056%204.13008C4.96131%203.29933%206.30822%203.29933%207.13897%204.13008L7.9875%203.28155C6.68812%201.98217%204.58141%201.98217%203.28203%203.28155L4.13056%204.13008ZM7.13897%204.13008L8.29606%205.28716L9.14459%204.43864L7.9875%203.28155L7.13897%204.13008Z'%20fill='%236C7B94'/%3e%3crect%20x='5.08887'%20y='6.0791'%20width='1.33333'%20height='6.66667'%20rx='0.666667'%20transform='rotate(-45%205.08887%206.0791)'%20fill='%236C7B94'/%3e%3cpath%20d='M5.59961%2014.3998V12.7998'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.7998%205.59961H14.3998'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.40039%2011.2002H4.00039'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.2002%202.40039V4.00039'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", uj = "enable_connectors_clicked", dj = "learn_more_clicked", gj = "connector_card_expand_clicked", fj = "connector_card_collapsed_clicked", pj = "connector_card_refresh_clicked", Cj = "connector_cards_loaded", Ej = "connector_whats_new_card_viewed", Ij = "connector_whats_new_explore_now_clicked", Bj = "connector_whats_new_learn_more_clicked", hj = "connector_whats_new_dismissed", Ih = (e) => e.write.objectList, mj = (e) => e.write.objectDict, Qj = (e) => e.write.formFields, bj = (e) => e.write.previewCardData, vj = (e) => e.write.previewCardApiStatus, yj = (e) => e.write.linkCardApiStatus, wj = (e) => e.write.unlinkCardApiStatus, xj = (e) => e.write.dependentFieldsMap, Tj = (e) => e.write.createFormApiStatus, Fj = ({ showUnlinkModal: e, setShowUnlinkModal: t, cardId: n, onCardUnlinking: o }) => {
|
|
36369
36372
|
const r = ra(), s = fn(wj) === Pe.LOADING, A = () => {
|
|
36370
36373
|
r(vA({ id: n })).unwrap().then(() => {
|
|
36371
|
-
t(!1), o(
|
|
36374
|
+
t(!1), o(), $n({
|
|
36372
36375
|
message: bU,
|
|
36373
36376
|
type: Hi
|
|
36374
36377
|
});
|
|
@@ -36394,7 +36397,7 @@ const MN = V(mt)`
|
|
|
36394
36397
|
email: o,
|
|
36395
36398
|
specificConnectorApiStatus: r,
|
|
36396
36399
|
defaultOpenState: i = !1,
|
|
36397
|
-
|
|
36400
|
+
onCardUnlinking: s
|
|
36398
36401
|
} = e, { availableFeatures: A, sendTrackingEvent: l, conversationId: c } = ar(_r), [u, f] = Oe(!1), [p, B] = Oe(!1), [g, C] = Oe(!1), { id: d, title: E } = t, m = (r == null ? void 0 : r[d]) === Pe.LOADING, h = (sd(A, $B) && (t == null ? void 0 : t.externalResourceId)) ?? !1, b = ra();
|
|
36399
36402
|
bt(() => {
|
|
36400
36403
|
f(!!i);
|
|
@@ -36452,7 +36455,7 @@ const MN = V(mt)`
|
|
|
36452
36455
|
showUnlinkModal: g,
|
|
36453
36456
|
setShowUnlinkModal: C,
|
|
36454
36457
|
cardId: d,
|
|
36455
|
-
|
|
36458
|
+
onCardUnlinking: s
|
|
36456
36459
|
}
|
|
36457
36460
|
)
|
|
36458
36461
|
] });
|
|
@@ -36527,9 +36530,9 @@ const MN = V(mt)`
|
|
|
36527
36530
|
/* @__PURE__ */ y.jsx(ch, { variant: "h2", children: "Connectors" })
|
|
36528
36531
|
] }),
|
|
36529
36532
|
/* @__PURE__ */ y.jsxs(Ze, { gap: "12px", children: [
|
|
36530
|
-
/* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "
|
|
36531
|
-
/* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "
|
|
36532
|
-
/* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "
|
|
36533
|
+
/* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "100%", height: "46px", animation: "wave" }),
|
|
36534
|
+
/* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "100%", height: "46px", animation: "wave" }),
|
|
36535
|
+
/* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "100%", height: "46px", animation: "wave" })
|
|
36533
36536
|
] })
|
|
36534
36537
|
] }), Xj = () => {
|
|
36535
36538
|
const { metaData: e, sendTrackingEvent: t } = ar(_r), [n, o] = Oe(!1), r = Qt(null), [i, s] = Oe(0), { templateUpdates: A } = e || {}, { sections: l, actionButtons: c, title: u } = A || {}, { version: f } = A || {}, p = kU(f), B = jn(
|
|
@@ -40515,14 +40518,18 @@ const cl = (e) => {
|
|
|
40515
40518
|
] })
|
|
40516
40519
|
] });
|
|
40517
40520
|
}, mY = ({ isAdmin: e = !1 }) => {
|
|
40518
|
-
const { email: t, currentSmIds: n, sendTrackingEvent: o, availableFeatures: r, conversationId: i } = ar(_r), s = ra(), A = fn(dU), l = fn(fU), c = fn(pU), u = fn(gU), f = sd(r, TU), p = sd(r, $B), B = Qt(null), [g, C] = Oe(!1), [d, E] = Oe(!1)
|
|
40519
|
-
|
|
40520
|
-
s(wU.clearConnectorList())
|
|
40521
|
-
}), [s, t, n,
|
|
40521
|
+
const { email: t, currentSmIds: n, sendTrackingEvent: o, availableFeatures: r, conversationId: i } = ar(_r), s = ra(), A = fn(dU), l = fn(fU), c = fn(pU), u = fn(gU), f = sd(r, TU), p = sd(r, $B), B = Qt(null), [g, C] = Oe(!1), [d, E] = Oe(!1);
|
|
40522
|
+
bt(() => (t && n.length && i && s(La({ inboxIds: n, conversationId: i })), () => {
|
|
40523
|
+
s(wU.clearConnectorList());
|
|
40524
|
+
}), [s, t, n, i]), bt(() => {
|
|
40522
40525
|
A && A.length && o(Cj, {
|
|
40523
40526
|
numOfCards: A.length
|
|
40524
40527
|
});
|
|
40525
|
-
}, [A, o, n])
|
|
40528
|
+
}, [A, o, n]);
|
|
40529
|
+
const m = () => {
|
|
40530
|
+
t && n.length && i && s(La({ inboxIds: n, conversationId: i }));
|
|
40531
|
+
};
|
|
40532
|
+
return u === Pe.LOADING ? /* @__PURE__ */ y.jsx(Gj, {}) : /* @__PURE__ */ y.jsx(uh, { ref: B, "data-testid": Array.isArray(A) ? "connector-agent" : "loading", children: A != null && A.length ? /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
40526
40533
|
/* @__PURE__ */ y.jsxs(Ze, { direction: "row", justifyContent: "space-between", marginBottom: "12px", height: "36px", children: [
|
|
40527
40534
|
/* @__PURE__ */ y.jsxs(Ze, { direction: "row", alignItems: "center", children: [
|
|
40528
40535
|
/* @__PURE__ */ y.jsx(lh, {}),
|
|
@@ -40534,19 +40541,19 @@ const cl = (e) => {
|
|
|
40534
40541
|
] }) : null })
|
|
40535
40542
|
] }),
|
|
40536
40543
|
f ? /* @__PURE__ */ y.jsx(Xj, {}) : null,
|
|
40537
|
-
A.map((
|
|
40538
|
-
const { id:
|
|
40544
|
+
A.map((h, b) => {
|
|
40545
|
+
const { id: I } = h;
|
|
40539
40546
|
return /* @__PURE__ */ y.jsx("div", { children: /* @__PURE__ */ y.jsx(
|
|
40540
40547
|
kj,
|
|
40541
40548
|
{
|
|
40542
|
-
card:
|
|
40549
|
+
card: h,
|
|
40543
40550
|
specificCardData: l,
|
|
40544
40551
|
email: t ?? "",
|
|
40545
|
-
defaultOpenState:
|
|
40552
|
+
defaultOpenState: b === 0,
|
|
40546
40553
|
specificConnectorApiStatus: c,
|
|
40547
|
-
|
|
40554
|
+
onCardUnlinking: m
|
|
40548
40555
|
}
|
|
40549
|
-
) },
|
|
40556
|
+
) }, I);
|
|
40550
40557
|
}),
|
|
40551
40558
|
/* @__PURE__ */ y.jsx(d1, { onClose: () => C(!1), containerRef: B, isOpen: g, children: /* @__PURE__ */ y.jsx(hY, { onClose: () => C(!1) }) }),
|
|
40552
40559
|
/* @__PURE__ */ y.jsx(d1, { onClose: () => E(!1), containerRef: B, isOpen: d, children: /* @__PURE__ */ y.jsx(pY, { setOpenTaskLinking: E }) })
|