@hiver/connector-agent 1.6.0-beta.5 → 1.6.0-beta.6
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/CardContent.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/card-content-value.d.ts +1 -0
- package/features/connector-cards/components/card-list/card-content-value.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/list-item-modal.d.ts.map +1 -1
- package/features/write-form/constants/api.d.ts.map +1 -1
- package/index.es.js +24 -17
- package/index.umd.js +77 -77
- package/package.json +1 -1
- package/testing/mocks/handlers/fetch-cards.d.ts.map +1 -1
- package/types/cards.d.ts +4 -2
- package/types/cards.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardContent.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/CardContent.tsx"],"names":[],"mappings":"AAUA,OAAO,EAA6B,aAAa,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AASxC,UAAU,MAAM;IACd,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;KAC9B,GAAG,IAAI,CAAC;IACT,0BAA0B,EAAE;QAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,GAAG,IAAI,CAAC;IACT,MAAM,EAAE,OAAO,CAAC;CACjB;AAID,eAAO,MAAM,WAAW,UAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"CardContent.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/CardContent.tsx"],"names":[],"mappings":"AAUA,OAAO,EAA6B,aAAa,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AASxC,UAAU,MAAM;IACd,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;KAC9B,GAAG,IAAI,CAAC;IACT,0BAA0B,EAAE;QAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,GAAG,IAAI,CAAC;IACT,MAAM,EAAE,OAAO,CAAC;CACjB;AAID,eAAO,MAAM,WAAW,UAAW,MAAM,4CAmHxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-content-value.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/card-content-value.tsx"],"names":[],"mappings":"AAOA,UAAU,MAAM;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"card-content-value.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/card-content-value.tsx"],"names":[],"mappings":"AAOA,UAAU,MAAM;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,gBAAgB,UAAW,MAAM,4CA8C7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item-modal.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/list-item-modal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,UAAU,MAAM;IACd,IAAI,EAAE,YAAY,EAAE,EAAE,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAUD,eAAO,MAAM,aAAa,oBAAqB,MAAM,
|
|
1
|
+
{"version":3,"file":"list-item-modal.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/list-item-modal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,UAAU,MAAM;IACd,IAAI,EAAE,YAAY,EAAE,EAAE,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAUD,eAAO,MAAM,aAAa,oBAAqB,MAAM,4CAoFpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/constants/api.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,YAAY,CAAC;AAClC,eAAO,MAAM,qBAAqB,EAAE,MAA4C,CAAC;AACjF,eAAO,MAAM,eAAe,EAAE,MAAkD,CAAC;AACjF,eAAO,MAAM,aAAa,EAAE,MAAgD,CAAC;AAC7E,eAAO,MAAM,gBAAgB,EAAE,MAAmD,CAAC;AACnF,eAAO,MAAM,gBAAgB,EAAE,MAAqE,CAAC;AACrG,eAAO,MAAM,WAAW,EAAE,MAA8C,CAAC;AACzE,eAAO,MAAM,kCAAkC,EAAE,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/constants/api.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,YAAY,CAAC;AAClC,eAAO,MAAM,qBAAqB,EAAE,MAA4C,CAAC;AACjF,eAAO,MAAM,eAAe,EAAE,MAAkD,CAAC;AACjF,eAAO,MAAM,aAAa,EAAE,MAAgD,CAAC;AAC7E,eAAO,MAAM,gBAAgB,EAAE,MAAmD,CAAC;AACnF,eAAO,MAAM,gBAAgB,EAAE,MAAqE,CAAC;AACrG,eAAO,MAAM,WAAW,EAAE,MAA8C,CAAC;AACzE,eAAO,MAAM,kCAAkC,EAAE,MAA4E,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -34401,10 +34401,13 @@ const PU = H(It)`
|
|
|
34401
34401
|
const [n, o] = ye([]), [r, i] = ye([]), s = Dt((c) => (c == null ? void 0 : c[0].map((u) => u.label)) || [], []), l = Dt((c, u) => c.map((d) => {
|
|
34402
34402
|
const p = {};
|
|
34403
34403
|
return d.forEach((h, f) => {
|
|
34404
|
-
|
|
34405
|
-
|
|
34406
|
-
|
|
34407
|
-
|
|
34404
|
+
if (u[f]) {
|
|
34405
|
+
let C = h.value ? h.value : BA;
|
|
34406
|
+
C && h.type === "date" && (C = new Date(parseInt(C)).toLocaleDateString(navigator.language)), p[u[f]] = {
|
|
34407
|
+
label: C,
|
|
34408
|
+
deepLink: h == null ? void 0 : h.deepLink
|
|
34409
|
+
};
|
|
34410
|
+
}
|
|
34408
34411
|
}), p;
|
|
34409
34412
|
}), []);
|
|
34410
34413
|
Ct(() => {
|
|
@@ -34431,19 +34434,22 @@ const PU = H(It)`
|
|
|
34431
34434
|
] }) })
|
|
34432
34435
|
] });
|
|
34433
34436
|
}, uN = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_602_78902)'%3e%3cpath%20d='M0.666992%2013.9999H15.3337L8.00033%201.33325L0.666992%2013.9999ZM8.66699%2011.9999H7.33366V10.6666H8.66699V11.9999ZM8.66699%209.33325H7.33366V6.66659H8.66699V9.33325Z'%20fill='%23F07530'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_602_78902'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", lp = (e) => {
|
|
34434
|
-
const { value: t, error: n, deepLink: o, statusCode: r, isLoading: i } = e,
|
|
34437
|
+
const { value: t, error: n, deepLink: o, statusCode: r, isLoading: i, type: s } = e, l = Qt(null), A = Qt(null), [c, u] = ye(!1);
|
|
34435
34438
|
Ct(() => {
|
|
34436
|
-
const
|
|
34437
|
-
if (
|
|
34438
|
-
const
|
|
34439
|
-
|
|
34439
|
+
const f = o ? A.current : l.current;
|
|
34440
|
+
if (f) {
|
|
34441
|
+
const C = f.scrollHeight > f.clientHeight || f.scrollWidth > f.clientWidth;
|
|
34442
|
+
u(C);
|
|
34440
34443
|
}
|
|
34441
34444
|
}, [t, o]);
|
|
34442
|
-
const
|
|
34443
|
-
|
|
34445
|
+
const d = r == Jg.NOT_FOUND;
|
|
34446
|
+
let p = d ? BA : t;
|
|
34447
|
+
s === "date" && p && !d && (p = new Date(parseInt(p)).toLocaleDateString(navigator.language));
|
|
34448
|
+
const h = !d && !!n;
|
|
34449
|
+
return i ? /* @__PURE__ */ v.jsx(Dr, { variant: "rounded", width: "100%", height: 16, animation: "wave", margin: "4px 0 0 0" }) : h ? /* @__PURE__ */ v.jsxs(Jh, { gap: "5px", children: [
|
|
34444
34450
|
/* @__PURE__ */ v.jsx("img", { src: uN }),
|
|
34445
34451
|
/* @__PURE__ */ v.jsx(_h, { variant: "body2", children: gL })
|
|
34446
|
-
] }) : /* @__PURE__ */ v.jsx(Yt, { title:
|
|
34452
|
+
] }) : /* @__PURE__ */ v.jsx(Yt, { title: c ? p : null, placement: "bottom", children: o ? /* @__PURE__ */ v.jsx(qh, { ref: A, target: "_blank", underline: "none", href: o, fontSize: "13px", children: p || BA }) : /* @__PURE__ */ v.jsx(HU, { ref: l, variant: "body2", children: p || BA }) });
|
|
34447
34453
|
}, $h = (e) => {
|
|
34448
34454
|
var V, W, J, R;
|
|
34449
34455
|
const { id: t, cardTitle: n, specificCardData: o, specificConnectorApiStatus: r, isOpen: i } = e, s = 24, l = (r == null ? void 0 : r[t]) === Me.IDLE, A = (r == null ? void 0 : r[t]) === Me.LOADING, c = (r == null ? void 0 : r[t]) === Me.FAILED, { cardType: u, data: d } = (o == null ? void 0 : o[t]) || {}, p = u === "flat", [h, f] = ye(!1), [C, g] = ye(!1), [I, m] = ye(!1), [B, b] = ye(!1), E = p ? d == null ? void 0 : d.flatDisplay : (W = (V = d == null ? void 0 : d.listItems) == null ? void 0 : V.fields) == null ? void 0 : W[0], Q = bn(() => E == null ? void 0 : E.slice(0, 5), [E]), [y, x] = ye([]), F = Qt(null), [k, M] = ye(0), P = h ? -180 : 0, D = p ? !1 : !!((J = d == null ? void 0 : d.listItems) != null && J.errorMessage), S = D || c, N = l && !D && i && (I || C);
|
|
@@ -34466,17 +34472,18 @@ const PU = H(It)`
|
|
|
34466
34472
|
/* @__PURE__ */ v.jsx(Dr, { variant: "rounded", width: "100%", height: 20, animation: "wave" }),
|
|
34467
34473
|
/* @__PURE__ */ v.jsx(Dr, { variant: "rounded", width: "100%", height: 20, animation: "wave" })
|
|
34468
34474
|
] }) : /* @__PURE__ */ v.jsx(v.Fragment, { children: S ? /* @__PURE__ */ v.jsx(It, { margin: "8px 0", children: /* @__PURE__ */ v.jsx(lp, { error: S, isLoading: A }) }) : y != null && y.length ? y == null ? void 0 : y.map((Y) => {
|
|
34469
|
-
const { value: X, label: K, deepLink: Z } = Y,
|
|
34475
|
+
const { value: X, label: K, deepLink: Z, type: _ } = Y, ee = "errorMessage" in Y ? Y.errorMessage : null, z = "statusCode" in Y ? Y.statusCode : null;
|
|
34470
34476
|
return /* @__PURE__ */ v.jsxs("div", { children: [
|
|
34471
34477
|
/* @__PURE__ */ v.jsx(jU, { variant: "overline", children: K }),
|
|
34472
34478
|
/* @__PURE__ */ v.jsx(
|
|
34473
34479
|
lp,
|
|
34474
34480
|
{
|
|
34475
34481
|
value: X,
|
|
34476
|
-
error:
|
|
34482
|
+
error: ee,
|
|
34477
34483
|
deepLink: Z,
|
|
34478
|
-
statusCode:
|
|
34479
|
-
isLoading: A
|
|
34484
|
+
statusCode: z,
|
|
34485
|
+
isLoading: A,
|
|
34486
|
+
type: _
|
|
34480
34487
|
}
|
|
34481
34488
|
)
|
|
34482
34489
|
] }, K);
|
|
@@ -36230,7 +36237,7 @@ const Gr = "success", Wi = "error", QB = "Some error occured. Please contact sup
|
|
|
36230
36237
|
currentResourceDetailsApiStatus: Me.IDLE,
|
|
36231
36238
|
currentResourceDetails: null,
|
|
36232
36239
|
currentCardInEdit: null
|
|
36233
|
-
}, ni = "/v1/api", Pj = `${ni}/connectors/forms/list`, Lj = `${ni}/connectors/cards/:id/unlink`, Uj = `${ni}/connectors/forms/:id/link`, Nj = `${ni}/connectors/forms/:id/preview`, jj = `${ni}/connectors/forms/:formId/field/:fieldName/data`, Vj = `${ni}/connectors/form/:formId`, Hj = `${ni}/
|
|
36240
|
+
}, ni = "/v1/api", Pj = `${ni}/connectors/forms/list`, Lj = `${ni}/connectors/cards/:id/unlink`, Uj = `${ni}/connectors/forms/:id/link`, Nj = `${ni}/connectors/forms/:id/preview`, jj = `${ni}/connectors/forms/:formId/field/:fieldName/data`, Vj = `${ni}/connectors/form/:formId`, Hj = `${ni}/connectors/forms/:formId/resource/:externalResourceId`, Wj = ({
|
|
36234
36241
|
inboxIds: e,
|
|
36235
36242
|
channelType: t,
|
|
36236
36243
|
conversationId: n
|