@fileflow/sdk 0.1.31 → 0.1.32
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/dist/{ImportWizard-BsXU0Tm7.js → ImportWizard-4E5fcskQ.js} +3 -3
- package/dist/{ImportWizard-BsXU0Tm7.js.map → ImportWizard-4E5fcskQ.js.map} +1 -1
- package/dist/{ImportWizard-C7vsPfrT.mjs → ImportWizard-DoopWzxk.mjs} +35 -35
- package/dist/{ImportWizard-C7vsPfrT.mjs.map → ImportWizard-DoopWzxk.mjs.map} +1 -1
- package/dist/{KYCWizard-a5sYPhrA.mjs → KYCWizard-BbVeACaA.mjs} +2 -2
- package/dist/{KYCWizard-a5sYPhrA.mjs.map → KYCWizard-BbVeACaA.mjs.map} +1 -1
- package/dist/{KYCWizard-C9OMqfkX.js → KYCWizard-CMQUzKSL.js} +2 -2
- package/dist/{KYCWizard-C9OMqfkX.js.map → KYCWizard-CMQUzKSL.js.map} +1 -1
- package/dist/import.js +1 -1
- package/dist/import.mjs +1 -1
- package/dist/{index-BOU2aWf8.mjs → index-B_sBDXNZ.mjs} +2 -2
- package/dist/{index-BOU2aWf8.mjs.map → index-B_sBDXNZ.mjs.map} +1 -1
- package/dist/{index-DnSXPtpU.js → index-CQzYw3WX.js} +14 -14
- package/dist/{index-DnSXPtpU.js.map → index-CQzYw3WX.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +3 -3
- package/dist/kyc.js +1 -1
- package/dist/kyc.mjs +1 -1
- package/dist/styles.css +8 -15
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as d, jsxs as w, Fragment as le } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as De from "react";
|
|
3
3
|
import Nt, { useCallback as ye, useState as T, useMemo as Ye, useEffect as Je } from "react";
|
|
4
|
-
import { h as J, j as Vt, k as Pt, X as Se, m as Z, U as kt, n as Oe, T as
|
|
4
|
+
import { h as J, j as Vt, k as Pt, X as Se, m as Z, U as kt, n as Oe, T as be, q as Et, p as st, o as et, t as Dt, d as bt, V as tt, g as de, S as _e, L as he } from "./index-B_sBDXNZ.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.563.0 - ISC
|
|
7
7
|
*
|
|
@@ -833,7 +833,7 @@ function rn(e, o, t, n) {
|
|
|
833
833
|
c.createColumn == null || c.createColumn(p, e);
|
|
834
834
|
return p;
|
|
835
835
|
}
|
|
836
|
-
const
|
|
836
|
+
const b = "debugHeaders";
|
|
837
837
|
function ot(e, o, t) {
|
|
838
838
|
var n;
|
|
839
839
|
let l = {
|
|
@@ -869,27 +869,27 @@ const ln = {
|
|
|
869
869
|
var l, s;
|
|
870
870
|
const u = (l = n == null ? void 0 : n.map((p) => t.find((c) => c.id === p)).filter(Boolean)) != null ? l : [], a = (s = r == null ? void 0 : r.map((p) => t.find((c) => c.id === p)).filter(Boolean)) != null ? s : [], f = t.filter((p) => !(n != null && n.includes(p.id)) && !(r != null && r.includes(p.id)));
|
|
871
871
|
return ve(o, [...u, ...f, ...a], e);
|
|
872
|
-
}, R(e.options,
|
|
872
|
+
}, R(e.options, b, "getHeaderGroups")), e.getCenterHeaderGroups = y(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((l) => !(n != null && n.includes(l.id)) && !(r != null && r.includes(l.id))), ve(o, t, e, "center")), R(e.options, b, "getCenterHeaderGroups")), e.getLeftHeaderGroups = y(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
|
|
873
873
|
var r;
|
|
874
874
|
const l = (r = n == null ? void 0 : n.map((s) => t.find((u) => u.id === s)).filter(Boolean)) != null ? r : [];
|
|
875
875
|
return ve(o, l, e, "left");
|
|
876
|
-
}, R(e.options,
|
|
876
|
+
}, R(e.options, b, "getLeftHeaderGroups")), e.getRightHeaderGroups = y(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
|
|
877
877
|
var r;
|
|
878
878
|
const l = (r = n == null ? void 0 : n.map((s) => t.find((u) => u.id === s)).filter(Boolean)) != null ? r : [];
|
|
879
879
|
return ve(o, l, e, "right");
|
|
880
|
-
}, R(e.options,
|
|
880
|
+
}, R(e.options, b, "getRightHeaderGroups")), e.getFooterGroups = y(() => [e.getHeaderGroups()], (o) => [...o].reverse(), R(e.options, b, "getFooterGroups")), e.getLeftFooterGroups = y(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), R(e.options, b, "getLeftFooterGroups")), e.getCenterFooterGroups = y(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), R(e.options, b, "getCenterFooterGroups")), e.getRightFooterGroups = y(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), R(e.options, b, "getRightFooterGroups")), e.getFlatHeaders = y(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), R(e.options, b, "getFlatHeaders")), e.getLeftFlatHeaders = y(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), R(e.options, b, "getLeftFlatHeaders")), e.getCenterFlatHeaders = y(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), R(e.options, b, "getCenterFlatHeaders")), e.getRightFlatHeaders = y(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), R(e.options, b, "getRightFlatHeaders")), e.getCenterLeafHeaders = y(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
|
|
881
881
|
var n;
|
|
882
882
|
return !((n = t.subHeaders) != null && n.length);
|
|
883
|
-
}), R(e.options,
|
|
883
|
+
}), R(e.options, b, "getCenterLeafHeaders")), e.getLeftLeafHeaders = y(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
|
|
884
884
|
var n;
|
|
885
885
|
return !((n = t.subHeaders) != null && n.length);
|
|
886
|
-
}), R(e.options,
|
|
886
|
+
}), R(e.options, b, "getLeftLeafHeaders")), e.getRightLeafHeaders = y(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
|
|
887
887
|
var n;
|
|
888
888
|
return !((n = t.subHeaders) != null && n.length);
|
|
889
|
-
}), R(e.options,
|
|
889
|
+
}), R(e.options, b, "getRightLeafHeaders")), e.getLeafHeaders = y(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
|
|
890
890
|
var r, l, s, u, a, f;
|
|
891
891
|
return [...(r = (l = o[0]) == null ? void 0 : l.headers) != null ? r : [], ...(s = (u = t[0]) == null ? void 0 : u.headers) != null ? s : [], ...(a = (f = n[0]) == null ? void 0 : f.headers) != null ? a : []].map((g) => g.getLeafHeaders()).flat();
|
|
892
|
-
}, R(e.options,
|
|
892
|
+
}, R(e.options, b, "getLeafHeaders"));
|
|
893
893
|
}
|
|
894
894
|
};
|
|
895
895
|
function ve(e, o, t, n) {
|
|
@@ -2060,7 +2060,7 @@ function He(e, o, t) {
|
|
|
2060
2060
|
}
|
|
2061
2061
|
}), r ? "all" : l ? "some" : !1;
|
|
2062
2062
|
}
|
|
2063
|
-
const Ge = /([0-9]+)/gm, kn = (e, o, t) => ht(Y(e.getValue(t)).toLowerCase(), Y(o.getValue(t)).toLowerCase()), En = (e, o, t) => ht(Y(e.getValue(t)), Y(o.getValue(t))),
|
|
2063
|
+
const Ge = /([0-9]+)/gm, kn = (e, o, t) => ht(Y(e.getValue(t)).toLowerCase(), Y(o.getValue(t)).toLowerCase()), En = (e, o, t) => ht(Y(e.getValue(t)), Y(o.getValue(t))), Dn = (e, o, t) => je(Y(e.getValue(t)).toLowerCase(), Y(o.getValue(t)).toLowerCase()), bn = (e, o, t) => je(Y(e.getValue(t)), Y(o.getValue(t))), Ln = (e, o, t) => {
|
|
2064
2064
|
const n = e.getValue(t), r = o.getValue(t);
|
|
2065
2065
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
2066
2066
|
}, zn = (e, o, t) => je(e.getValue(t), o.getValue(t));
|
|
@@ -2093,8 +2093,8 @@ function ht(e, o) {
|
|
|
2093
2093
|
const ce = {
|
|
2094
2094
|
alphanumeric: kn,
|
|
2095
2095
|
alphanumericCaseSensitive: En,
|
|
2096
|
-
text:
|
|
2097
|
-
textCaseSensitive:
|
|
2096
|
+
text: Dn,
|
|
2097
|
+
textCaseSensitive: bn,
|
|
2098
2098
|
datetime: Ln,
|
|
2099
2099
|
basic: zn
|
|
2100
2100
|
}, An = {
|
|
@@ -2559,7 +2559,7 @@ function Xn() {
|
|
|
2559
2559
|
* @license MIT
|
|
2560
2560
|
*/
|
|
2561
2561
|
function lt(e, o) {
|
|
2562
|
-
return e ? Zn(e) ? /* @__PURE__ */
|
|
2562
|
+
return e ? Zn(e) ? /* @__PURE__ */ De.createElement(e, o) : e : null;
|
|
2563
2563
|
}
|
|
2564
2564
|
function Zn(e) {
|
|
2565
2565
|
return Wn(e) || typeof e == "function" || Qn(e);
|
|
@@ -2582,9 +2582,9 @@ function Yn(e) {
|
|
|
2582
2582
|
// noop
|
|
2583
2583
|
renderFallbackValue: null,
|
|
2584
2584
|
...e
|
|
2585
|
-
}, [t] =
|
|
2585
|
+
}, [t] = De.useState(() => ({
|
|
2586
2586
|
current: Gn(o)
|
|
2587
|
-
})), [n, r] =
|
|
2587
|
+
})), [n, r] = De.useState(() => t.current.initialState);
|
|
2588
2588
|
return t.current.setOptions((l) => ({
|
|
2589
2589
|
...l,
|
|
2590
2590
|
...e,
|
|
@@ -2635,8 +2635,8 @@ const Jn = ({
|
|
|
2635
2635
|
if (!s) return null;
|
|
2636
2636
|
const $ = s.columns.find((ue) => ue.key === _);
|
|
2637
2637
|
if (!$) return null;
|
|
2638
|
-
const
|
|
2639
|
-
return
|
|
2638
|
+
const D = it(x, $).find((ue) => ue.severity === "error");
|
|
2639
|
+
return D ? D.message : null;
|
|
2640
2640
|
},
|
|
2641
2641
|
[s]
|
|
2642
2642
|
), z = (x, _, $) => {
|
|
@@ -2701,7 +2701,7 @@ const Jn = ({
|
|
|
2701
2701
|
size: 150,
|
|
2702
2702
|
minSize: 80,
|
|
2703
2703
|
cell: (_) => {
|
|
2704
|
-
const $ = _.row.original.rowIndex, ee = String(_.getValue() ?? ""),
|
|
2704
|
+
const $ = _.row.original.rowIndex, ee = String(_.getValue() ?? ""), D = W($, x.targetKey);
|
|
2705
2705
|
return (f == null ? void 0 : f.rowIndex) === $ && (f == null ? void 0 : f.columnKey) === x.targetKey ? /* @__PURE__ */ w("div", { className: "ff-min-w-[280px]", children: [
|
|
2706
2706
|
/* @__PURE__ */ w("div", { className: "ff-flex ff-items-center ff-gap-2", children: [
|
|
2707
2707
|
/* @__PURE__ */ d(
|
|
@@ -2745,16 +2745,16 @@ const Jn = ({
|
|
|
2745
2745
|
{
|
|
2746
2746
|
className: Z(
|
|
2747
2747
|
"ff-group ff-flex ff-items-center ff-gap-2",
|
|
2748
|
-
(
|
|
2749
|
-
(
|
|
2748
|
+
(D == null ? void 0 : D.severity) === "error" && "ff-cell-error",
|
|
2749
|
+
(D == null ? void 0 : D.severity) === "warning" && "ff-cell-warning"
|
|
2750
2750
|
),
|
|
2751
2751
|
children: [
|
|
2752
2752
|
/* @__PURE__ */ d("span", { className: "ff-flex-1 ff-truncate", children: ee || /* @__PURE__ */ d("span", { style: { color: "var(--ff-text-muted)" }, children: "—" }) }),
|
|
2753
|
-
|
|
2754
|
-
|
|
2753
|
+
D && /* @__PURE__ */ w("div", { className: "ff-relative ff-group/tooltip", children: [
|
|
2754
|
+
D.severity === "error" ? /* @__PURE__ */ d(Oe, { className: "ff-w-4 ff-h-4", style: { color: "var(--ff-error)" } }) : /* @__PURE__ */ d(be, { className: "ff-w-4 ff-h-4", style: { color: "var(--ff-warning)" } }),
|
|
2755
2755
|
/* @__PURE__ */ w("div", { className: "ff-tooltip ff-bottom-full ff-left-1/2 ff-transform ff--translate-x-1/2 ff-mb-2 ff-w-48 group-hover/tooltip:ff-tooltip-visible", children: [
|
|
2756
|
-
|
|
2757
|
-
|
|
2756
|
+
D.message,
|
|
2757
|
+
D.suggestion && /* @__PURE__ */ d("span", { className: "ff-block ff-mt-1", style: { color: "var(--ff-text-muted)" }, children: D.suggestion })
|
|
2758
2758
|
] })
|
|
2759
2759
|
] }),
|
|
2760
2760
|
e && /* @__PURE__ */ d(
|
|
@@ -2973,7 +2973,7 @@ const Jn = ({
|
|
|
2973
2973
|
p.errorCount === 1 ? "error" : "errors"
|
|
2974
2974
|
] }),
|
|
2975
2975
|
p.warningCount > 0 && /* @__PURE__ */ w("span", { className: "ff-badge ff-badge-warning ff-whitespace-nowrap", children: [
|
|
2976
|
-
/* @__PURE__ */ d(
|
|
2976
|
+
/* @__PURE__ */ d(be, { className: "ff-w-3 ff-h-3 ff-mr-1" }),
|
|
2977
2977
|
p.warningCount,
|
|
2978
2978
|
" ",
|
|
2979
2979
|
p.warningCount === 1 ? "warning" : "warnings"
|
|
@@ -2985,7 +2985,7 @@ const Jn = ({
|
|
|
2985
2985
|
)) })
|
|
2986
2986
|
] }),
|
|
2987
2987
|
e && a.duplicates && a.duplicates.length > 0 && /* @__PURE__ */ d("div", { className: "ff-border ff-rounded-lg ff-p-4", style: { backgroundColor: "var(--ff-warning-light)", borderColor: "var(--ff-warning)" }, children: /* @__PURE__ */ w("div", { className: "ff-flex ff-items-start ff-gap-3", children: [
|
|
2988
|
-
/* @__PURE__ */ d(
|
|
2988
|
+
/* @__PURE__ */ d(be, { className: "ff-w-5 ff-h-5 ff-flex-shrink-0 ff-mt-0.5", style: { color: "var(--ff-warning)" } }),
|
|
2989
2989
|
/* @__PURE__ */ w("div", { children: [
|
|
2990
2990
|
/* @__PURE__ */ d("h4", { className: "ff-font-medium", style: { color: "var(--ff-warning-dark)" }, children: "Duplicate Values Found" }),
|
|
2991
2991
|
/* @__PURE__ */ w("ul", { className: "ff-mt-2 ff-space-y-1 ff-text-sm", style: { color: "var(--ff-warning-dark)" }, children: [
|
|
@@ -3043,11 +3043,11 @@ const Jn = ({
|
|
|
3043
3043
|
setLoading: z,
|
|
3044
3044
|
setError: O,
|
|
3045
3045
|
reset: ae
|
|
3046
|
-
} = se(), [A, pe] = T(null), [ne, oe] = T(null), [E, x] = T(0), [_, $] = T(""), [ee,
|
|
3046
|
+
} = se(), [A, pe] = T(null), [ne, oe] = T(null), [E, x] = T(0), [_, $] = T(""), [ee, D] = T(null), [ue, te] = T(null), [fe, qe] = T([]);
|
|
3047
3047
|
Je(() => {
|
|
3048
3048
|
if (oe(null), e)
|
|
3049
|
-
if (
|
|
3050
|
-
const N =
|
|
3049
|
+
if (Dt(e)) {
|
|
3050
|
+
const N = bt(e);
|
|
3051
3051
|
N ? pe(N) : (oe(`Failed to load template "${e}"`), a == null || a(new Error(`Failed to load template "${e}"`)));
|
|
3052
3052
|
} else {
|
|
3053
3053
|
const N = `Template "${e}" not found. Available templates: ${tt.join(", ")}`;
|
|
@@ -3132,7 +3132,7 @@ const Jn = ({
|
|
|
3132
3132
|
}, yt = async () => {
|
|
3133
3133
|
if (g)
|
|
3134
3134
|
try {
|
|
3135
|
-
z(!0), O(null),
|
|
3135
|
+
z(!0), O(null), D(null);
|
|
3136
3136
|
const N = [...c];
|
|
3137
3137
|
qe(N);
|
|
3138
3138
|
const H = await de().completeImport(g, {
|
|
@@ -3141,14 +3141,14 @@ const Jn = ({
|
|
|
3141
3141
|
});
|
|
3142
3142
|
te(H), j("complete"), s == null || s(H);
|
|
3143
3143
|
} catch (N) {
|
|
3144
|
-
|
|
3144
|
+
D(N.message), j("complete");
|
|
3145
3145
|
} finally {
|
|
3146
3146
|
z(!1);
|
|
3147
3147
|
}
|
|
3148
3148
|
}, xe = () => {
|
|
3149
3149
|
ae(), u == null || u();
|
|
3150
3150
|
}, Rt = () => {
|
|
3151
|
-
|
|
3151
|
+
D(null), te(null), qe([]), x(0), $(""), ae(), A && (v(A), Ue(A));
|
|
3152
3152
|
}, re = () => Ee.indexOf(f), xt = () => {
|
|
3153
3153
|
switch (f) {
|
|
3154
3154
|
case "upload":
|
|
@@ -3305,7 +3305,7 @@ const Jn = ({
|
|
|
3305
3305
|
)
|
|
3306
3306
|
] }) })
|
|
3307
3307
|
] }) });
|
|
3308
|
-
return /* @__PURE__ */ d(_e, { theme: n, useShadowDom: r, children: t === "modal" ? /* @__PURE__ */ d("div", { className: "ff-overlay", children: Ze }) :
|
|
3308
|
+
return /* @__PURE__ */ d(_e, { theme: n, useShadowDom: r, children: t === "modal" ? /* @__PURE__ */ d("div", { className: "ff-overlay", children: Ze }) : Ze });
|
|
3309
3309
|
};
|
|
3310
3310
|
export {
|
|
3311
3311
|
Jt as C,
|
|
@@ -3315,4 +3315,4 @@ export {
|
|
|
3315
3315
|
eo as V,
|
|
3316
3316
|
se as u
|
|
3317
3317
|
};
|
|
3318
|
-
//# sourceMappingURL=ImportWizard-
|
|
3318
|
+
//# sourceMappingURL=ImportWizard-DoopWzxk.mjs.map
|