@incodetech/web 0.0.0-dev-20260313-486e658 → 0.0.0-dev-20260313-bc2dab4
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/{AsYouType-BtKe6-rC.js → AsYouType-CpH-Rmtj.js} +1 -1
- package/dist/{Trans-C2X8WLEu.js → Trans-CA9a3vKp.js} +1 -1
- package/dist/authentication/authentication.es.js +25 -20
- package/dist/base.css +9 -4
- package/dist/{browser-ponyfill-CLXJUgvu.js → browser-ponyfill-B6W6hHVY.js} +49 -46
- package/dist/{incodeModule-DLGHhn9E.js → button-Ca1tRSTI.js} +153 -239
- package/dist/{captureFooter-C2Yrou50.js → captureFooter-X2qN1773.js} +72 -70
- package/dist/{chevronDown-D5uHEaU-.js → chevronDown-BUaOuf9J.js} +1 -1
- package/dist/{closeIcon-BMPoRQCd.js → closeIcon-BM7WLbKp.js} +1 -1
- package/dist/{countries-3p5tkqcx.js → countries-C9bhJe4u.js} +3 -3
- package/dist/curp-validation/curp-validation.es.js +26 -25
- package/dist/{dateInputComposed-CqHIiKPV.js → dateInputComposed-CvFmQpJ0.js} +11 -10
- package/dist/document-capture/styles.css +1 -0
- package/dist/{documentCapture-CzGmGxzA.js → documentCapture-PdKA2frR.js} +113 -157
- package/dist/{dropdownComposed-BgGKKaXv.js → dropdownComposed-DBm7cotT.js} +8 -6
- package/dist/{ekybModule-Bttpjr3j.js → ekybModule-DiFpO2sE.js} +16 -14
- package/dist/ekycModule-DdD1iChB.js +370 -0
- package/dist/email/email.es.js +86 -63
- package/dist/{errorContent-6xl4ArMV.js → errorContent-yUAdbZ5o.js} +5 -5
- package/dist/{errorIcon-Cxcv4ISP.js → errorIcon-BL647nVh.js} +1 -1
- package/dist/extensibility.es.js +290 -0
- package/dist/face-match/styles.css +8 -0
- package/dist/{faceMatch-DKqzUCml.js → faceMatch-BjdNG_e0.js} +12 -11
- package/dist/fileIcon-DOyMcRWU.js +52 -0
- package/dist/flipAnimation-DoMQoFPb.js +1355 -0
- package/dist/flow/flow.es.js +157 -157
- package/dist/flow/styles.css +15 -3
- package/dist/formField-C91ckby4.js +94 -0
- package/dist/geolocation/geolocation.es.js +15 -14
- package/dist/governmentValidation/governmentValidation.es.js +19 -18
- package/dist/id/id.es.js +30 -1354
- package/dist/id/styles.css +2 -0
- package/dist/incodeModule-aE-LkKwM.js +96 -0
- package/dist/index.es.js +7 -7
- package/dist/{otpInput-BT0ZXrAt.js → otpInput-cazUY73p.js} +1 -1
- package/dist/{page-BJDfLRpO.js → page-BVHG3h0V.js} +1 -1
- package/dist/permissions-DwF2Ez1N.js +754 -0
- package/dist/phone/phone.es.js +53 -30
- package/dist/{phoneInput-d3sq4X5R.js → phoneInput-Duuochsh.js} +4 -4
- package/dist/phoneInputComposed-B1gXoSzr.js +107 -0
- package/dist/{processing-CGb_3dSE.js → processing-CDgOueI3.js} +3 -3
- package/dist/selfie/selfie.es.js +29 -18
- package/dist/selfie/styles.css +12 -3
- package/dist/{spinner--i134wYq.js → spinner-Cx3FPUCD.js} +13 -11
- package/dist/{successIcon-1BcPFhum.js → successIcon-BybULRRU.js} +1 -1
- package/dist/{tutorial-DXgOS41l.js → tutorial-Dagmccxh.js} +21 -21
- package/dist/types/authentication.d.ts +10 -3
- package/dist/types/curp-validation.d.ts +5 -1
- package/dist/types/email.d.ts +8 -3
- package/dist/types/extensibility.d.ts +671 -0
- package/dist/types/flow.d.ts +5 -1
- package/dist/types/geolocation.d.ts +5 -1
- package/dist/types/governmentValidation.d.ts +5 -1
- package/dist/types/id.d.ts +8 -3
- package/dist/types/phone.d.ts +8 -3
- package/dist/types/selfie.d.ts +8 -3
- package/dist/{uiConfig-DisZ_yFB.js → uiConfig-Z6RT23Sl.js} +3 -3
- package/dist/useFormScrollable-3O3GeT4m.js +15 -0
- package/dist/{warningIcon-WqI5X7cK.js → warningIcon-DyoKeqDd.js} +1 -1
- package/package.json +6 -2
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/baseTutorial-hbezn8sT.js +0 -755
- package/dist/ekycModule-DfwZMKdL.js +0 -467
- package/dist/verificationResult-CKZqPXb9.js +0 -106
package/dist/phone/phone.es.js
CHANGED
|
@@ -1,38 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as e, I as P, a as O, S as b, B as I } from "../button-Ca1tRSTI.js";
|
|
2
2
|
import { createPhoneManager as C } from "@incodetech/core/phone";
|
|
3
3
|
import { d as E } from "../vendor-preact-BXf0bkEs.js";
|
|
4
4
|
import "@incodetech/core";
|
|
5
|
-
import { O as
|
|
6
|
-
import { P as
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
import { O as y } from "../otpInput-cazUY73p.js";
|
|
6
|
+
import { P as l } from "../page-BVHG3h0V.js";
|
|
7
|
+
import { r as v } from "../incodeModule-aE-LkKwM.js";
|
|
8
|
+
import { PhoneInput as w } from "../phoneInput-Duuochsh.js";
|
|
9
|
+
const S = ({
|
|
10
|
+
config: n,
|
|
11
|
+
manager: i,
|
|
12
|
+
onFinish: r,
|
|
13
|
+
onError: a
|
|
14
|
+
}) => {
|
|
15
|
+
const [t, s] = O(
|
|
16
|
+
() => {
|
|
17
|
+
if (i) return i;
|
|
18
|
+
if (!n)
|
|
19
|
+
throw new Error("Phone config is required");
|
|
20
|
+
return C({ config: n });
|
|
21
|
+
},
|
|
22
|
+
{ manageLifecycle: !i }
|
|
23
|
+
), [c, m] = E(!1);
|
|
14
24
|
if (t.status === "idle" || t.status === "loadingPrefill" || t.status === "inputting" || t.status === "submitting" || t.status === "sendingOtp") {
|
|
15
|
-
const
|
|
25
|
+
const o = t.status === "idle" || t.status === "loadingPrefill" || t.status === "submitting" || t.status === "sendingOtp", u = t.status === "inputting" ? t.countryCode : "US", h = t.status === "inputting" ? t.phonePrefix : "+1", f = t.status === "inputting" ? t.prefilledPhone : void 0, g = t.status === "inputting" ? t.phoneError : void 0;
|
|
16
26
|
return /* @__PURE__ */ e(
|
|
17
|
-
|
|
27
|
+
l,
|
|
18
28
|
{
|
|
19
29
|
className: "IncodePhonePage",
|
|
20
30
|
title: "Verify Phone",
|
|
21
31
|
subtitle: n.otpVerification ? "We will send you a verification code" : void 0,
|
|
22
32
|
children: [
|
|
23
33
|
/* @__PURE__ */ e(
|
|
24
|
-
|
|
34
|
+
w,
|
|
25
35
|
{
|
|
26
|
-
countryCode:
|
|
36
|
+
countryCode: u,
|
|
27
37
|
phonePrefix: h,
|
|
28
|
-
prefilledPhone:
|
|
38
|
+
prefilledPhone: f,
|
|
29
39
|
phoneError: g,
|
|
30
40
|
optinEnabled: n.optinEnabled,
|
|
31
|
-
disabled:
|
|
32
|
-
onPhoneChange: (
|
|
33
|
-
s.setPhoneNumber(
|
|
41
|
+
disabled: o,
|
|
42
|
+
onPhoneChange: (d, p) => {
|
|
43
|
+
s.setPhoneNumber(d, p), m(p);
|
|
34
44
|
},
|
|
35
|
-
onOptInChange: (
|
|
45
|
+
onOptInChange: (d) => s.setOptInGranted(d)
|
|
36
46
|
}
|
|
37
47
|
),
|
|
38
48
|
/* @__PURE__ */ e(b, {}),
|
|
@@ -40,8 +50,8 @@ const w = ({ config: n, onFinish: o, onError: r }) => {
|
|
|
40
50
|
I,
|
|
41
51
|
{
|
|
42
52
|
onClick: () => s.submit(),
|
|
43
|
-
disabled: !
|
|
44
|
-
isLoading:
|
|
53
|
+
disabled: !c,
|
|
54
|
+
isLoading: o,
|
|
45
55
|
"data-testid": "phone-submit",
|
|
46
56
|
children: "Continue"
|
|
47
57
|
}
|
|
@@ -51,30 +61,43 @@ const w = ({ config: n, onFinish: o, onError: r }) => {
|
|
|
51
61
|
);
|
|
52
62
|
}
|
|
53
63
|
if (t.status === "awaitingOtp" || t.status === "verifyingOtp" || t.status === "otpError") {
|
|
54
|
-
const
|
|
64
|
+
const o = t.status === "verifyingOtp";
|
|
55
65
|
return /* @__PURE__ */ e(
|
|
56
|
-
|
|
66
|
+
l,
|
|
57
67
|
{
|
|
58
68
|
className: "IncodePhonePage IncodePhoneOtpPage",
|
|
59
69
|
title: "Enter Verification Code",
|
|
60
70
|
children: /* @__PURE__ */ e(
|
|
61
|
-
|
|
71
|
+
y,
|
|
62
72
|
{
|
|
63
73
|
resendTimer: t.status === "awaitingOtp" ? t.resendTimer : 0,
|
|
64
74
|
canResend: t.status === "awaitingOtp" ? t.canResend : !1,
|
|
65
75
|
error: t.status === "otpError" ? t.error : void 0,
|
|
66
|
-
onSubmit: (
|
|
76
|
+
onSubmit: (u) => s.submitOtp(u),
|
|
67
77
|
onResend: () => s.resendOtp(),
|
|
68
78
|
onBack: () => s.back(),
|
|
69
|
-
isLoading:
|
|
79
|
+
isLoading: o
|
|
70
80
|
}
|
|
71
81
|
)
|
|
72
82
|
}
|
|
73
83
|
);
|
|
74
84
|
}
|
|
75
|
-
return t.status === "finished" ? (
|
|
76
|
-
},
|
|
77
|
-
|
|
85
|
+
return t.status === "finished" ? (r?.(), null) : (t.status === "error" && a?.(t.error), null);
|
|
86
|
+
}, V = ({
|
|
87
|
+
config: n,
|
|
88
|
+
manager: i,
|
|
89
|
+
onFinish: r,
|
|
90
|
+
onError: a
|
|
91
|
+
}) => /* @__PURE__ */ e(P, { children: n ? /* @__PURE__ */ e(
|
|
92
|
+
S,
|
|
93
|
+
{
|
|
94
|
+
config: n,
|
|
95
|
+
manager: i,
|
|
96
|
+
onFinish: r,
|
|
97
|
+
onError: a
|
|
98
|
+
}
|
|
99
|
+
) : null });
|
|
100
|
+
v(V, "incode-phone");
|
|
78
101
|
export {
|
|
79
|
-
|
|
102
|
+
V as Phone
|
|
80
103
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as n, S } from "./
|
|
1
|
+
import { u as n, S } from "./button-Ca1tRSTI.js";
|
|
2
2
|
import { d as p, A as D, y as u, k as $ } from "./vendor-preact-BXf0bkEs.js";
|
|
3
|
-
import { g as b, c as g } from "./countries-
|
|
4
|
-
import { C as z } from "./chevronDown-
|
|
5
|
-
import { p as k, A } from "./AsYouType-
|
|
3
|
+
import { g as b, c as g } from "./countries-C9bhJe4u.js";
|
|
4
|
+
import { C as z } from "./chevronDown-BUaOuf9J.js";
|
|
5
|
+
import { p as k, A } from "./AsYouType-CpH-Rmtj.js";
|
|
6
6
|
const M = ({
|
|
7
7
|
countryCode: P,
|
|
8
8
|
prefilledPhone: a,
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { u as $ } from "./button-Ca1tRSTI.js";
|
|
2
|
+
import { d as g, A as q, T as I, y as B, q as u } from "./vendor-preact-BXf0bkEs.js";
|
|
3
|
+
import { c as E, g as l } from "./countries-C9bhJe4u.js";
|
|
4
|
+
import { I as F, D as M } from "./dropdownComposed-DBm7cotT.js";
|
|
5
|
+
import { p as P, A as b } from "./AsYouType-CpH-Rmtj.js";
|
|
6
|
+
const H = ({
|
|
7
|
+
id: p,
|
|
8
|
+
label: w,
|
|
9
|
+
countryCode: S = "US",
|
|
10
|
+
value: r,
|
|
11
|
+
placeholder: A = "(123) 123-6789",
|
|
12
|
+
error: m,
|
|
13
|
+
disabled: f = !1,
|
|
14
|
+
disableCountrySelector: D = !1,
|
|
15
|
+
required: N,
|
|
16
|
+
onChange: d,
|
|
17
|
+
"data-testid": T
|
|
18
|
+
}) => {
|
|
19
|
+
const [s, h] = g(S), [a, i] = g(""), y = q(!1), j = I(
|
|
20
|
+
() => E.map((t) => ({
|
|
21
|
+
value: t.code,
|
|
22
|
+
label: `${t.emoji} ${t.callingCode} ${t.name}`
|
|
23
|
+
})),
|
|
24
|
+
[]
|
|
25
|
+
), o = I(
|
|
26
|
+
() => l(s) ?? l("US"),
|
|
27
|
+
[s]
|
|
28
|
+
);
|
|
29
|
+
B(() => {
|
|
30
|
+
if (y.current || !r || !o) return;
|
|
31
|
+
y.current = !0;
|
|
32
|
+
const t = r.startsWith("+") ? r : `+${r}`, e = P(t);
|
|
33
|
+
if (e?.isValid() && e.country) {
|
|
34
|
+
e.country !== s && h(e.country);
|
|
35
|
+
const n = new b(e.country);
|
|
36
|
+
i(n.input(e.nationalNumber));
|
|
37
|
+
}
|
|
38
|
+
}, [r, o, s]);
|
|
39
|
+
const c = u(
|
|
40
|
+
(t, e) => {
|
|
41
|
+
const n = `${e.callingCode}${t.replace(/\D/g, "")}`;
|
|
42
|
+
try {
|
|
43
|
+
const C = P(n, e.code);
|
|
44
|
+
d?.(n, C?.isValid() ?? !1);
|
|
45
|
+
} catch {
|
|
46
|
+
d?.(n, !1);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
[d]
|
|
50
|
+
), v = u(
|
|
51
|
+
(t) => {
|
|
52
|
+
h(t);
|
|
53
|
+
const e = l(t);
|
|
54
|
+
e && a && c(a, e);
|
|
55
|
+
},
|
|
56
|
+
[a, c]
|
|
57
|
+
), x = u(
|
|
58
|
+
(t) => {
|
|
59
|
+
const e = t.target.value;
|
|
60
|
+
if (!o) {
|
|
61
|
+
i(e);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const n = `${o.callingCode}${e}`, V = new b(o.code).input(n).replace(o.callingCode, "").trimStart();
|
|
65
|
+
i(V), c(e, o);
|
|
66
|
+
},
|
|
67
|
+
[o, c]
|
|
68
|
+
), L = `${p}-country`, U = `${p}-phone`;
|
|
69
|
+
return /* @__PURE__ */ $(
|
|
70
|
+
M,
|
|
71
|
+
{
|
|
72
|
+
id: L,
|
|
73
|
+
label: w,
|
|
74
|
+
options: j,
|
|
75
|
+
value: s,
|
|
76
|
+
onChange: v,
|
|
77
|
+
error: m,
|
|
78
|
+
disabled: f || D,
|
|
79
|
+
required: N,
|
|
80
|
+
searchable: !0,
|
|
81
|
+
searchPlaceholder: "Search countries...",
|
|
82
|
+
renderSelectedLabel: (t) => {
|
|
83
|
+
const e = l(t.value);
|
|
84
|
+
return e ? `${e.emoji} ${e.callingCode}` : t.label;
|
|
85
|
+
},
|
|
86
|
+
class: "IncodePhoneInputComposed",
|
|
87
|
+
siblingElement: /* @__PURE__ */ $(
|
|
88
|
+
F,
|
|
89
|
+
{
|
|
90
|
+
id: U,
|
|
91
|
+
type: "tel",
|
|
92
|
+
value: a,
|
|
93
|
+
onInput: x,
|
|
94
|
+
placeholder: A,
|
|
95
|
+
error: m,
|
|
96
|
+
disabled: f,
|
|
97
|
+
suppressMessages: !0,
|
|
98
|
+
"aria-label": "Phone number",
|
|
99
|
+
"data-testid": T
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
};
|
|
105
|
+
export {
|
|
106
|
+
H as P
|
|
107
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as i, u as t } from "./
|
|
2
|
-
import { S as e } from "./spinner
|
|
3
|
-
import "./uiConfig-
|
|
1
|
+
import { b as i, u as t } from "./button-Ca1tRSTI.js";
|
|
2
|
+
import { S as e } from "./spinner-Cx3FPUCD.js";
|
|
3
|
+
import "./uiConfig-Z6RT23Sl.js";
|
|
4
4
|
import "./vendor-preact-BXf0bkEs.js";
|
|
5
5
|
const s = () => {
|
|
6
6
|
const { t: r } = i();
|
package/dist/selfie/selfie.es.js
CHANGED
|
@@ -1,32 +1,43 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as t, I as o, a as u } from "../button-Ca1tRSTI.js";
|
|
2
2
|
import { createSelfieManager as l } from "@incodetech/core/selfie";
|
|
3
3
|
import "../vendor-preact-BXf0bkEs.js";
|
|
4
4
|
import "@incodetech/core";
|
|
5
|
-
import { P as m } from "../
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
5
|
+
import { P as m } from "../permissions-DwF2Ez1N.js";
|
|
6
|
+
import { r as f } from "../incodeModule-aE-LkKwM.js";
|
|
7
|
+
import { P as c } from "../processing-CDgOueI3.js";
|
|
8
|
+
import { T as p, C as d } from "../tutorial-Dagmccxh.js";
|
|
9
|
+
const g = ({
|
|
9
10
|
config: e,
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
manager: s,
|
|
12
|
+
onFinish: n,
|
|
13
|
+
onError: i
|
|
12
14
|
}) => {
|
|
13
|
-
const [
|
|
14
|
-
|
|
15
|
+
const [r, a] = u(
|
|
16
|
+
() => s ?? l({ config: e }),
|
|
17
|
+
{ manageLifecycle: !s }
|
|
18
|
+
);
|
|
19
|
+
return r.status === "idle" || r.status === "loading" ? null : r.status === "tutorial" ? /* @__PURE__ */ t(p, { manager: a }) : r.status === "permissions" ? /* @__PURE__ */ t(
|
|
15
20
|
m,
|
|
16
21
|
{
|
|
17
|
-
manager:
|
|
18
|
-
permissionStatus:
|
|
22
|
+
manager: a,
|
|
23
|
+
permissionStatus: r.permissionStatus
|
|
19
24
|
}
|
|
20
|
-
) :
|
|
21
|
-
},
|
|
22
|
-
|
|
25
|
+
) : r.status === "capture" ? /* @__PURE__ */ t(d, { manager: a, state: r }) : r.status === "processing" ? /* @__PURE__ */ t(c, {}) : r.status === "finished" ? (n?.(), null) : r.status === "closed" ? (i?.(void 0), null) : (r.status === "error" && i?.(r.error), null);
|
|
26
|
+
}, S = ({
|
|
27
|
+
config: e,
|
|
28
|
+
manager: s,
|
|
29
|
+
onFinish: n,
|
|
30
|
+
onError: i
|
|
31
|
+
}) => /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t("main", { class: "IncodeSelfieMain", children: e ? /* @__PURE__ */ t(
|
|
32
|
+
g,
|
|
23
33
|
{
|
|
24
34
|
config: e,
|
|
25
|
-
|
|
26
|
-
|
|
35
|
+
manager: s,
|
|
36
|
+
onFinish: n,
|
|
37
|
+
onError: i
|
|
27
38
|
}
|
|
28
39
|
) : null }) });
|
|
29
|
-
|
|
40
|
+
f(S, "incode-selfie");
|
|
30
41
|
export {
|
|
31
|
-
|
|
42
|
+
S as Selfie
|
|
32
43
|
};
|
package/dist/selfie/styles.css
CHANGED
|
@@ -103,6 +103,10 @@
|
|
|
103
103
|
display: flex;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
.grid {
|
|
107
|
+
display: grid;
|
|
108
|
+
}
|
|
109
|
+
|
|
106
110
|
.hidden {
|
|
107
111
|
display: none;
|
|
108
112
|
}
|
|
@@ -111,6 +115,10 @@
|
|
|
111
115
|
display: inline-flex;
|
|
112
116
|
}
|
|
113
117
|
|
|
118
|
+
.flex-shrink {
|
|
119
|
+
flex-shrink: 1;
|
|
120
|
+
}
|
|
121
|
+
|
|
114
122
|
.transform {
|
|
115
123
|
transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
|
|
116
124
|
}
|
|
@@ -322,7 +330,7 @@
|
|
|
322
330
|
transition: all 1s ease-in-out;
|
|
323
331
|
}
|
|
324
332
|
|
|
325
|
-
.
|
|
333
|
+
.IncodeSelfieManualCapture {
|
|
326
334
|
align-items: center;
|
|
327
335
|
gap: var(--spacing-16, var(--spacing-16, 16px));
|
|
328
336
|
flex-direction: column;
|
|
@@ -330,7 +338,7 @@
|
|
|
330
338
|
display: flex;
|
|
331
339
|
}
|
|
332
340
|
|
|
333
|
-
.
|
|
341
|
+
.IncodeSelfieManualCaptureText {
|
|
334
342
|
text-align: center;
|
|
335
343
|
font-size: var(--text-base, 1rem);
|
|
336
344
|
line-height: var(--tw-leading, var(--text-base--line-height, calc(1.5 / 1)));
|
|
@@ -341,8 +349,9 @@
|
|
|
341
349
|
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
342
350
|
}
|
|
343
351
|
|
|
344
|
-
.
|
|
352
|
+
.IncodeSelfieManualCaptureButton {
|
|
345
353
|
padding: var(--spacing-0, var(--spacing-none, 0px));
|
|
354
|
+
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
346
355
|
}
|
|
347
356
|
|
|
348
357
|
.IncodeNotification {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as e, d as
|
|
2
|
-
import { D as
|
|
3
|
-
const
|
|
1
|
+
import { u as e, d as l, L as h, S as o } from "./button-Ca1tRSTI.js";
|
|
2
|
+
import { D as y, A as u, y as I, k as i } from "./vendor-preact-BXf0bkEs.js";
|
|
3
|
+
const S = y(
|
|
4
4
|
({ children: n, className: r, ...s }, a) => /* @__PURE__ */ e("h2", { ref: a, class: `IncodeTitle ${r ?? ""}`, ...s, children: n })
|
|
5
|
-
),
|
|
5
|
+
), H = ({ children: n, className: r }) => /* @__PURE__ */ e("h1", { class: `IncodeTypographyH1 ${r ?? ""}`, children: n }), f = ({ children: n, className: r }) => /* @__PURE__ */ e("h3", { class: `IncodeTypographyH3 ${r ?? ""}`, children: n }), z = ({ children: n, className: r }) => /* @__PURE__ */ e("h4", { class: `IncodeTypographyH4 ${r ?? ""}`, children: n }), $ = ({ children: n, className: r }) => /* @__PURE__ */ e("h5", { class: `IncodeTypographyH5 ${r ?? ""}`, children: n }), T = {
|
|
6
6
|
small: 24,
|
|
7
7
|
medium: 48,
|
|
8
8
|
large: 64
|
|
@@ -13,11 +13,11 @@ const m = S(
|
|
|
13
13
|
fullScreen: a = !0,
|
|
14
14
|
className: d
|
|
15
15
|
}) => {
|
|
16
|
-
const
|
|
16
|
+
const p = T[s], c = u(null);
|
|
17
17
|
I(() => {
|
|
18
18
|
n && c.current?.focus();
|
|
19
19
|
}, [n]);
|
|
20
|
-
const t =
|
|
20
|
+
const t = l(
|
|
21
21
|
"IncodeSpinner",
|
|
22
22
|
a && "IncodeSpinnerFullScreen",
|
|
23
23
|
d
|
|
@@ -33,12 +33,12 @@ const m = S(
|
|
|
33
33
|
role: "status",
|
|
34
34
|
"aria-live": "polite",
|
|
35
35
|
children: /* @__PURE__ */ e("div", { class: "IncodeSpinnerContent", children: [
|
|
36
|
-
/* @__PURE__ */ e(h, { size:
|
|
36
|
+
/* @__PURE__ */ e(h, { size: p }),
|
|
37
37
|
(n || r) && /* @__PURE__ */ e(i, { children: [
|
|
38
38
|
/* @__PURE__ */ e(o, { size: 16 }),
|
|
39
39
|
/* @__PURE__ */ e("div", { class: "IncodeSpinnerText", children: [
|
|
40
40
|
n && /* @__PURE__ */ e(
|
|
41
|
-
|
|
41
|
+
S,
|
|
42
42
|
{
|
|
43
43
|
ref: c,
|
|
44
44
|
tabIndex: -1,
|
|
@@ -58,7 +58,9 @@ const m = S(
|
|
|
58
58
|
};
|
|
59
59
|
export {
|
|
60
60
|
v as S,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
S as T,
|
|
62
|
+
H as a,
|
|
63
|
+
f as b,
|
|
64
|
+
z as c,
|
|
65
|
+
$ as d
|
|
64
66
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { u as t, S as T, b as O, d as
|
|
2
|
-
import { A as s, y as E, g as F, D as M, q as V, k as
|
|
3
|
-
import "./uiConfig-
|
|
4
|
-
import { S as y } from "./successIcon-
|
|
5
|
-
import { P as D } from "./page-
|
|
6
|
-
import { T as N, S as P } from "./spinner
|
|
7
|
-
import { E as H } from "./errorContent-
|
|
8
|
-
import { B as x } from "./
|
|
1
|
+
import { u as t, S as T, b as O, d as w, B as A, L as B } from "./button-Ca1tRSTI.js";
|
|
2
|
+
import { A as s, y as E, g as F, D as M, q as V, k as I, d as h } from "./vendor-preact-BXf0bkEs.js";
|
|
3
|
+
import "./uiConfig-Z6RT23Sl.js";
|
|
4
|
+
import { S as y } from "./successIcon-BybULRRU.js";
|
|
5
|
+
import { P as D } from "./page-BVHG3h0V.js";
|
|
6
|
+
import { T as N, S as P } from "./spinner-Cx3FPUCD.js";
|
|
7
|
+
import { E as H } from "./errorContent-yUAdbZ5o.js";
|
|
8
|
+
import { B as x } from "./permissions-DwF2Ez1N.js";
|
|
9
9
|
const L = ({
|
|
10
10
|
icon: i,
|
|
11
11
|
title: n,
|
|
@@ -219,7 +219,7 @@ const L = ({
|
|
|
219
219
|
return /* @__PURE__ */ t(
|
|
220
220
|
"div",
|
|
221
221
|
{
|
|
222
|
-
class:
|
|
222
|
+
class: w("IncodeLoadingBorder", {
|
|
223
223
|
IncodeLoadingBorderSpinning: e
|
|
224
224
|
}),
|
|
225
225
|
"aria-hidden": "true",
|
|
@@ -302,8 +302,8 @@ const L = ({
|
|
|
302
302
|
}
|
|
303
303
|
) }), z = M(({ onClick: i, disabled: n }, e) => {
|
|
304
304
|
const { t: o } = O();
|
|
305
|
-
return /* @__PURE__ */ t("div", { class: "
|
|
306
|
-
/* @__PURE__ */ t("p", { id: "manual-capture-instructions", class: "
|
|
305
|
+
return /* @__PURE__ */ t("div", { class: "IncodeSelfieManualCapture", "data-testid": "manual-capture-button", children: [
|
|
306
|
+
/* @__PURE__ */ t("p", { id: "manual-capture-instructions", class: "IncodeSelfieManualCaptureText", children: o("selfiev2.manualCapture.instructions") }),
|
|
307
307
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
308
308
|
A,
|
|
309
309
|
{
|
|
@@ -312,7 +312,7 @@ const L = ({
|
|
|
312
312
|
variant: "link",
|
|
313
313
|
onClick: i,
|
|
314
314
|
disabled: n,
|
|
315
|
-
class: "
|
|
315
|
+
class: "IncodeSelfieManualCaptureButton",
|
|
316
316
|
"aria-label": o("selfiev2.manualCapture.captureButton"),
|
|
317
317
|
children: /* @__PURE__ */ t(Z, {})
|
|
318
318
|
}
|
|
@@ -341,9 +341,9 @@ const L = ({
|
|
|
341
341
|
getReady: e("notifications.getReady"),
|
|
342
342
|
capturing: e("idv2.capture.takingPhoto")
|
|
343
343
|
}[i] ?? "", p = V((R) => {
|
|
344
|
-
const
|
|
345
|
-
if (R === m.message &&
|
|
346
|
-
r.current = { message: R, at:
|
|
344
|
+
const S = Date.now(), m = r.current;
|
|
345
|
+
if (R === m.message && S - m.at < 200) return;
|
|
346
|
+
r.current = { message: R, at: S };
|
|
347
347
|
const g = o.current;
|
|
348
348
|
g && (clearTimeout(u.current), g.textContent = "", d.current = setTimeout(() => {
|
|
349
349
|
g.textContent = R, u.current = setTimeout(() => {
|
|
@@ -369,7 +369,7 @@ const L = ({
|
|
|
369
369
|
n || !C || p(C);
|
|
370
370
|
}, [C, p, n]), E(() => () => {
|
|
371
371
|
clearTimeout(d.current), clearTimeout(u.current);
|
|
372
|
-
}, []), /* @__PURE__ */ t(
|
|
372
|
+
}, []), /* @__PURE__ */ t(I, { children: [
|
|
373
373
|
/* @__PURE__ */ t(
|
|
374
374
|
"div",
|
|
375
375
|
{
|
|
@@ -389,7 +389,7 @@ const L = ({
|
|
|
389
389
|
attemptsRemaining: c,
|
|
390
390
|
uploadError: a,
|
|
391
391
|
assistedOnboarding: l
|
|
392
|
-
} = n, [u, d] =
|
|
392
|
+
} = n, [u, d] = h(!1), { t: _ } = O(), C = s(null);
|
|
393
393
|
if (E(() => {
|
|
394
394
|
r === "manualCapture" && C.current?.focus();
|
|
395
395
|
}, [r]), e === "initializing")
|
|
@@ -410,12 +410,12 @@ const L = ({
|
|
|
410
410
|
/* @__PURE__ */ t(T, { size: 48 }),
|
|
411
411
|
/* @__PURE__ */ t("div", { class: "IncodeCaptureContainer", children: [
|
|
412
412
|
/* @__PURE__ */ t(G, { borderState: p() }),
|
|
413
|
-
/* @__PURE__ */ t("div", { class: "IncodeCaptureFrame", children: /* @__PURE__ */ t("div", { class: "IncodeCaptureVideoWrapper", "aria-hidden": "true", children: o ? /* @__PURE__ */ t(
|
|
413
|
+
/* @__PURE__ */ t("div", { class: "IncodeCaptureFrame", children: /* @__PURE__ */ t("div", { class: "IncodeCaptureVideoWrapper", "aria-hidden": "true", children: o ? /* @__PURE__ */ t(I, { children: [
|
|
414
414
|
/* @__PURE__ */ t(W, { stream: o, mirrored: !l }),
|
|
415
415
|
/* @__PURE__ */ t("div", { class: "IncodeCaptureVideo", children: /* @__PURE__ */ t(Q, {}) })
|
|
416
416
|
] }) : null }) }),
|
|
417
417
|
/* @__PURE__ */ t(T, { size: 48 }),
|
|
418
|
-
r ? /* @__PURE__ */ t(
|
|
418
|
+
r ? /* @__PURE__ */ t(I, { children: [
|
|
419
419
|
/* @__PURE__ */ t(
|
|
420
420
|
K,
|
|
421
421
|
{
|
|
@@ -460,7 +460,7 @@ const L = ({
|
|
|
460
460
|
L,
|
|
461
461
|
{
|
|
462
462
|
className: "IncodeCaptureStatusUploading",
|
|
463
|
-
icon: /* @__PURE__ */ t(
|
|
463
|
+
icon: /* @__PURE__ */ t(B, { size: 64 }),
|
|
464
464
|
title: _("idv2.capture.processing.uploading")
|
|
465
465
|
}
|
|
466
466
|
) : e === "uploadError" ? /* @__PURE__ */ t(
|
|
@@ -495,7 +495,7 @@ const L = ({
|
|
|
495
495
|
}
|
|
496
496
|
);
|
|
497
497
|
}, ot = ({ manager: i }) => {
|
|
498
|
-
const { t: n } = O(), [e, o] =
|
|
498
|
+
const { t: n } = O(), [e, o] = h(!1), [r, c] = h(null);
|
|
499
499
|
E(() => {
|
|
500
500
|
import("./selfieTutorial-Dm_p0ke9.js").then((l) => {
|
|
501
501
|
c(l.default);
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { AuthenticationConfig } from '@incodetech/core/authentication';
|
|
2
|
+
import { AuthenticationManager } from '@incodetech/core/authentication';
|
|
2
3
|
import { FC } from 'preact/compat';
|
|
3
4
|
|
|
4
5
|
export declare const Authentication: FC<AuthenticationProps>;
|
|
5
6
|
|
|
6
7
|
declare type AuthenticationProps = IncodeModuleProps<AuthenticationConfig & {
|
|
7
8
|
authHint?: string;
|
|
8
|
-
}>;
|
|
9
|
+
}, void, AuthenticationManager>;
|
|
9
10
|
|
|
10
|
-
declare type IncodeModuleProps<TConfig, TResult = void> = {
|
|
11
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
11
12
|
/**
|
|
12
13
|
* Module configuration required to render the flow.
|
|
13
14
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
14
15
|
*/
|
|
15
16
|
config?: TConfig;
|
|
17
|
+
/**
|
|
18
|
+
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
19
|
+
*/
|
|
20
|
+
manager?: TManager;
|
|
16
21
|
/**
|
|
17
22
|
* Callback invoked when the module completes successfully.
|
|
18
23
|
* @param result - Optional result data from the module completion
|
|
@@ -28,6 +33,8 @@ export { }
|
|
|
28
33
|
|
|
29
34
|
declare global {
|
|
30
35
|
interface HTMLElementTagNameMap {
|
|
31
|
-
'incode-authentication': HTMLElement & IncodeModuleProps<AuthenticationConfig & { authHint?: string }
|
|
36
|
+
'incode-authentication': HTMLElement & IncodeModuleProps<AuthenticationConfig & { authHint?: string },
|
|
37
|
+
void,
|
|
38
|
+
AuthenticationManager>;
|
|
32
39
|
}
|
|
33
40
|
}
|
|
@@ -5,12 +5,16 @@ export declare const CurpValidation: FC<CurpValidationProps>;
|
|
|
5
5
|
|
|
6
6
|
declare type CurpValidationProps = IncodeModuleProps<CurpValidationConfig>;
|
|
7
7
|
|
|
8
|
-
declare type IncodeModuleProps<TConfig, TResult = void> = {
|
|
8
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
9
9
|
/**
|
|
10
10
|
* Module configuration required to render the flow.
|
|
11
11
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
12
12
|
*/
|
|
13
13
|
config?: TConfig;
|
|
14
|
+
/**
|
|
15
|
+
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
16
|
+
*/
|
|
17
|
+
manager?: TManager;
|
|
14
18
|
/**
|
|
15
19
|
* Callback invoked when the module completes successfully.
|
|
16
20
|
* @param result - Optional result data from the module completion
|
package/dist/types/email.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EmailConfig } from '@incodetech/core/email';
|
|
2
|
+
import { EmailManager } from '@incodetech/core/email';
|
|
2
3
|
import { FC } from 'preact/compat';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -29,14 +30,18 @@ export declare const Email: FC<EmailProps>;
|
|
|
29
30
|
/**
|
|
30
31
|
* Props for the Email component
|
|
31
32
|
*/
|
|
32
|
-
declare type EmailProps = IncodeModuleProps<EmailConfig>;
|
|
33
|
+
declare type EmailProps = IncodeModuleProps<EmailConfig, void, EmailManager>;
|
|
33
34
|
|
|
34
|
-
declare type IncodeModuleProps<TConfig, TResult = void> = {
|
|
35
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
35
36
|
/**
|
|
36
37
|
* Module configuration required to render the flow.
|
|
37
38
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
38
39
|
*/
|
|
39
40
|
config?: TConfig;
|
|
41
|
+
/**
|
|
42
|
+
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
43
|
+
*/
|
|
44
|
+
manager?: TManager;
|
|
40
45
|
/**
|
|
41
46
|
* Callback invoked when the module completes successfully.
|
|
42
47
|
* @param result - Optional result data from the module completion
|
|
@@ -52,6 +57,6 @@ export { }
|
|
|
52
57
|
|
|
53
58
|
declare global {
|
|
54
59
|
interface HTMLElementTagNameMap {
|
|
55
|
-
'incode-email': HTMLElement & IncodeModuleProps<EmailConfig>;
|
|
60
|
+
'incode-email': HTMLElement & IncodeModuleProps<EmailConfig, void, EmailManager>;
|
|
56
61
|
}
|
|
57
62
|
}
|