@incodetech/web 0.0.0-dev-20260518-3e2a44e2 → 0.0.0-dev-20260518-2d0ef651
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/ae-signature/ae-signature.es.js +1 -1
- package/dist/antifraud/antifraud.es.js +1 -1
- package/dist/authentication/authentication.es.js +2 -2
- package/dist/consent/consent.es.js +3 -3
- package/dist/{countrySelector-CE-JgIsv.js → countrySelector-DLCfd7yy.js} +1 -1
- package/dist/{cpfOcr-D_tbwbvh.js → cpfOcr-BdLPvojl.js} +1 -1
- package/dist/cross-document-data-match/cross-document-data-match.es.js +1 -1
- package/dist/curp-validation/curp-validation.es.js +3 -3
- package/dist/{customFields-CW38fQUv.js → customFields-DV6lUnvq.js} +2 -2
- package/dist/{customWatchlist-D9_yjEQd.js → customWatchlist-DSmB80f3.js} +2 -2
- package/dist/{documentCapture-xX-JT7ZY.js → documentCapture-lJ-U1cjp.js} +4 -4
- package/dist/{dynamicForms-CJP1Ia6Q.js → dynamicForms-JljZlRXK.js} +4 -4
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-BSs7mndb.js → ekybModule-BKRqcVUg.js} +7 -7
- package/dist/ekybModule-VSRRLIbh.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-Cv_JJrCQ.js +2 -0
- package/dist/{ekycModule-CU9pt5YN.js → ekycModule-Dh8h68HL.js} +5 -5
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-COYXjGdd.js → electronic-signature-C7wAN8uG.js} +3 -3
- package/dist/email/email.es.js +4 -4
- package/dist/{emailInput-DppGf9pv.js → emailInput-DQD3XnzK.js} +2 -2
- package/dist/{expiredId-BnmzE8T3.js → expiredId-Gqc6wM4h.js} +1 -1
- package/dist/{extensibility-CzEJfRwo.js → extensibility-BEX3WegI.js} +8 -8
- package/dist/extensibility.es.js +8 -8
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-BPXidsWa.js +2 -0
- package/dist/{faceMatch-BV8UD7tj.js → faceMatch-T-_3NI8m.js} +3 -3
- package/dist/flow/flow.es.js +299 -299
- package/dist/geolocation/geolocation.es.js +2 -2
- package/dist/governmentValidation/governmentValidation.es.js +3 -3
- package/dist/{homeScreen-DnP1jw9A.js → homeScreen-B213v-on.js} +17 -17
- package/dist/{i18n-9s4OSqwi.js → i18n-DQ49aghC.js} +224 -217
- package/dist/id/id.es.js +7 -7
- package/dist/id-verification/id-verification.es.js +2 -2
- package/dist/{idOcr-CCjfWQvH.js → idOcr-CsDIoUzl.js} +5 -5
- package/dist/identity-reuse/identity-reuse.es.js +2 -2
- package/dist/{incodeComponent-C1o4M0ZK.js → incodeComponent-Dx2l4chW.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{mandatoryConsent-DssKMC3v.js → mandatoryConsent-D6YZlHdq.js} +3 -3
- package/dist/{optionAccessibleLabel-CzEeX3Q4.js → optionAccessibleLabel-k7Y-6ZwH.js} +2 -2
- package/dist/{otpInput-DqRA_egd.js → otpInput-uUeFE3w6.js} +1 -1
- package/dist/phone/phone.es.js +3 -3
- package/dist/{processing-G_y3o32b.js → processing-CO4IWfYV.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +1 -1
- package/dist/{radioGroupComposed-BbmvxmD2.js → radioGroupComposed-CAeFseVP.js} +1 -1
- package/dist/{redirectToMobile-C3k1gloW.js → redirectToMobile-Dbz6ZG63.js} +3 -3
- package/dist/selfie/selfie.es.js +4 -4
- package/dist/signature/signature.es.js +4 -4
- package/dist/{transitionSpinner-PIEPU2Vx.js → transitionSpinner-D_N_MiDY.js} +1 -1
- package/dist/{tutorial-9vHAHvMK.js → tutorial-C0s7rqxv.js} +2 -2
- package/dist/{useModuleLoader-BFiVA41N.js → useModuleLoader-gInq0l-h.js} +15 -15
- package/dist/{verificationResult-BrVbUJ4U.js → verificationResult-biy_diWd.js} +1 -1
- package/dist/watchlist/watchlist.es.js +2 -2
- package/dist/{watchlistForBusiness-BcSNtHCV.js → watchlistForBusiness-DCPDk7x_.js} +3 -3
- package/dist/workflow/workflow.es.js +120 -120
- package/package.json +2 -2
- package/dist/ekybModule-D9M3E2Gm.js +0 -2
- package/dist/ekycModule-CZw9cLno.js +0 -2
- package/dist/faceMatch-B8j0g0Yo.js +0 -2
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
3
|
-
import { t as
|
|
4
|
-
import { o as
|
|
5
|
-
import { t as
|
|
1
|
+
import { a as e, n as t } from "../i18n-DQ49aghC.js";
|
|
2
|
+
import { _ as n, c as r, l as i, o as a, p as o, v as s } from "../vendor-preact-D6SntenC.js";
|
|
3
|
+
import { t as c } from "../uiConfig-CwpQ-IM6.js";
|
|
4
|
+
import { o as l } from "../hooks-BVnGysT7.js";
|
|
5
|
+
import { t as u } from "../incodeComponent-Dx2l4chW.js";
|
|
6
6
|
import "../spinner-B4dcie2T.js";
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { a as
|
|
10
|
-
import { resolveWasmConfig as
|
|
11
|
-
import { getDeviceClass as
|
|
12
|
-
import { QrValidationError as
|
|
13
|
-
import { createWorkflowManager as
|
|
7
|
+
import { t as d } from "../transitionSpinner-D_N_MiDY.js";
|
|
8
|
+
import { t as f } from "../incodeModule-BqCjVgEI.js";
|
|
9
|
+
import { a as p, g as m, i as h, m as g, s as _, t as v } from "../useModuleLoader-gInq0l-h.js";
|
|
10
|
+
import { resolveWasmConfig as y, upgradeToWasmHttpClient as b, warmupWasm as x } from "@incodetech/core/wasm";
|
|
11
|
+
import { getDeviceClass as S } from "@incodetech/core/device";
|
|
12
|
+
import { QrValidationError as C, refreshQrUrlUuid as w } from "@incodetech/core/session";
|
|
13
|
+
import { createWorkflowManager as T } from "@incodetech/core/workflow";
|
|
14
14
|
//#region src/modules/workflow/workflowInit.ts
|
|
15
|
-
var
|
|
16
|
-
...
|
|
17
|
-
REDIRECT_TO_MOBILE: () => import("../redirectToMobile-
|
|
15
|
+
var E = {
|
|
16
|
+
..._,
|
|
17
|
+
REDIRECT_TO_MOBILE: () => import("../redirectToMobile-Dbz6ZG63.js").then((e) => e.RedirectToMobile),
|
|
18
18
|
ID: () => import("../id-verification/id-verification.es.js").then((e) => e.IdVerification)
|
|
19
19
|
};
|
|
20
|
-
async function
|
|
20
|
+
async function D() {
|
|
21
21
|
try {
|
|
22
|
-
let e = await
|
|
22
|
+
let e = await m();
|
|
23
23
|
return {
|
|
24
24
|
theme: e,
|
|
25
25
|
uiConfig: {
|
|
@@ -31,79 +31,79 @@ async function E() {
|
|
|
31
31
|
return {};
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
return
|
|
34
|
+
function O(e = {}) {
|
|
35
|
+
return T({
|
|
36
36
|
customModuleCallback: e.customModuleCallback,
|
|
37
37
|
interviewId: e.interviewId,
|
|
38
|
-
isDesktop: e.isDesktop ??
|
|
38
|
+
isDesktop: e.isDesktop ?? S() === "desktop"
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function k(e) {
|
|
42
42
|
if (e === !1) return;
|
|
43
|
-
let t =
|
|
43
|
+
let t = y({
|
|
44
44
|
...e,
|
|
45
45
|
pipelines: e?.pipelines ?? ["selfie", "idCapture"]
|
|
46
46
|
}), n = {
|
|
47
47
|
...t,
|
|
48
48
|
pipelines: t.pipelines ? [...t.pipelines] : void 0
|
|
49
49
|
};
|
|
50
|
-
|
|
50
|
+
x(t).then(() => b(n)).catch((e) => {
|
|
51
51
|
console.error("Workflow WASM warmup failed:", e);
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/modules/workflow/useWorkflowInitialization.ts
|
|
56
|
-
function
|
|
57
|
-
let { token:
|
|
58
|
-
let e =
|
|
56
|
+
function A(e) {
|
|
57
|
+
let { token: t, lang: r, disableDashboardTheme: a, wasmConfig: s, customModuleCallback: l, interviewId: u, isDesktop: d, urlUuid: f, onError: p, onUrlUuidRefreshed: m } = e, h = i(null), [_, v] = o(() => {
|
|
58
|
+
let e = O({
|
|
59
59
|
customModuleCallback: l,
|
|
60
60
|
interviewId: u,
|
|
61
61
|
isDesktop: d
|
|
62
62
|
});
|
|
63
|
-
return
|
|
63
|
+
return h.current = e, {
|
|
64
64
|
status: "initializing",
|
|
65
65
|
workflowManager: e
|
|
66
66
|
};
|
|
67
|
-
}), y =
|
|
68
|
-
return
|
|
67
|
+
}), y = i(!1);
|
|
68
|
+
return n(() => {
|
|
69
69
|
if (_.status !== "initializing" || y.current) return;
|
|
70
70
|
y.current = !0;
|
|
71
|
-
let e =
|
|
71
|
+
let e = h.current, n = new AbortController(), { signal: i } = n;
|
|
72
72
|
return (async () => {
|
|
73
73
|
try {
|
|
74
|
-
await
|
|
75
|
-
token:
|
|
76
|
-
lang:
|
|
77
|
-
}), f && await
|
|
74
|
+
await g({
|
|
75
|
+
token: t,
|
|
76
|
+
lang: r
|
|
77
|
+
}), f && await w({
|
|
78
78
|
urlUuid: f,
|
|
79
79
|
onboardingId: null,
|
|
80
80
|
onRefreshed: m
|
|
81
|
-
},
|
|
82
|
-
let
|
|
83
|
-
e.uiConfig &&
|
|
81
|
+
}, i);
|
|
82
|
+
let n = a ? Promise.resolve() : D().then((e) => {
|
|
83
|
+
e.uiConfig && c(e.uiConfig);
|
|
84
84
|
});
|
|
85
|
-
|
|
85
|
+
k(s), e.load(), await n, v({
|
|
86
86
|
status: "ready",
|
|
87
87
|
workflowManager: e
|
|
88
88
|
});
|
|
89
89
|
} catch (t) {
|
|
90
|
-
if (
|
|
91
|
-
let n = t instanceof Error ? t.message : "Failed to initialize SDK",
|
|
90
|
+
if (i.aborted) return;
|
|
91
|
+
let n = t instanceof Error ? t.message : "Failed to initialize SDK", r = t instanceof C ? t.status : void 0;
|
|
92
92
|
v({
|
|
93
93
|
status: "error",
|
|
94
94
|
error: n,
|
|
95
|
-
errorCode:
|
|
95
|
+
errorCode: r,
|
|
96
96
|
workflowManager: e
|
|
97
|
-
}), p?.(n,
|
|
97
|
+
}), p?.(n, r);
|
|
98
98
|
}
|
|
99
99
|
})(), () => {
|
|
100
|
-
|
|
100
|
+
n.abort(), e?.stop();
|
|
101
101
|
};
|
|
102
102
|
}, [
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
t,
|
|
104
|
+
r,
|
|
105
|
+
a,
|
|
106
|
+
s,
|
|
107
107
|
f,
|
|
108
108
|
p,
|
|
109
109
|
m
|
|
@@ -111,8 +111,8 @@ function k(e) {
|
|
|
111
111
|
}
|
|
112
112
|
//#endregion
|
|
113
113
|
//#region src/modules/workflow/workflow.tsx
|
|
114
|
-
var
|
|
115
|
-
function
|
|
114
|
+
var j = r(() => import("../homeScreen-B213v-on.js").then((e) => ({ default: e.HomeScreen })));
|
|
115
|
+
function M(e) {
|
|
116
116
|
let { moduleKey: t, config: n, workflowId: r, authHint: i, lang: a, mergeSessionRecordings: o, ageAssurance: s } = e;
|
|
117
117
|
switch (t) {
|
|
118
118
|
case "AUTHENTICATION": return {
|
|
@@ -148,97 +148,97 @@ function j(e) {
|
|
|
148
148
|
default: return n;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
var
|
|
152
|
-
let { i18n:
|
|
153
|
-
token:
|
|
154
|
-
lang:
|
|
155
|
-
disableDashboardTheme:
|
|
156
|
-
wasmConfig:
|
|
157
|
-
customModuleCallback:
|
|
158
|
-
interviewId:
|
|
159
|
-
isDesktop:
|
|
160
|
-
urlUuid:
|
|
161
|
-
onError:
|
|
162
|
-
onUrlUuidRefreshed:
|
|
163
|
-
}), [
|
|
164
|
-
moduleKey:
|
|
165
|
-
modules:
|
|
166
|
-
headlessModuleKeys:
|
|
167
|
-
onModuleLoading:
|
|
168
|
-
onModuleLoaded:
|
|
169
|
-
onError:
|
|
151
|
+
var N = ({ config: r, onFinish: o, onError: c }) => {
|
|
152
|
+
let { i18n: u } = t(), f = A({
|
|
153
|
+
token: r.token,
|
|
154
|
+
lang: r.lang,
|
|
155
|
+
disableDashboardTheme: r.disableDashboardTheme,
|
|
156
|
+
wasmConfig: r.wasmConfig,
|
|
157
|
+
customModuleCallback: r.customModuleCallback,
|
|
158
|
+
interviewId: r.interviewId,
|
|
159
|
+
isDesktop: r.isDesktop,
|
|
160
|
+
urlUuid: r.urlUuid,
|
|
161
|
+
onError: c,
|
|
162
|
+
onUrlUuidRefreshed: r.onUrlUuidRefreshed
|
|
163
|
+
}), [m, g] = l(() => f.workflowManager, { autoLoad: !1 }), _ = v({
|
|
164
|
+
moduleKey: m?.status === "ready" ? m.currentNode.moduleKey : void 0,
|
|
165
|
+
modules: E,
|
|
166
|
+
headlessModuleKeys: h,
|
|
167
|
+
onModuleLoading: r.onModuleLoading,
|
|
168
|
+
onModuleLoaded: r.onModuleLoaded,
|
|
169
|
+
onError: c
|
|
170
170
|
});
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}, [
|
|
174
|
-
let
|
|
175
|
-
|
|
176
|
-
|
|
171
|
+
n(() => {
|
|
172
|
+
e() || r.lang && u.language !== r.lang && u.changeLanguage(r.lang);
|
|
173
|
+
}, [r.lang, u]);
|
|
174
|
+
let y = i(!1);
|
|
175
|
+
n(() => {
|
|
176
|
+
y.current || (m?.status === "finished" ? (y.current = !0, o?.(m.finishStatus)) : m?.status === "asyncResolution" && (y.current = !0, o?.()));
|
|
177
177
|
}, [
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
]),
|
|
182
|
-
|
|
178
|
+
m?.status,
|
|
179
|
+
o,
|
|
180
|
+
m
|
|
181
|
+
]), n(() => {
|
|
182
|
+
m?.status === "error" && c && c(m.error, m.errorCode);
|
|
183
183
|
}, [
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
m?.status,
|
|
185
|
+
c,
|
|
186
|
+
m
|
|
187
187
|
]);
|
|
188
|
-
let
|
|
188
|
+
let b = !(r.spinnerConfig?.title || r.spinnerConfig?.subtitle), x = () => /* @__PURE__ */ s("div", {
|
|
189
189
|
class: "IncodeWorkflow",
|
|
190
|
-
children: /* @__PURE__ */
|
|
191
|
-
spinnerConfig:
|
|
192
|
-
hideText:
|
|
190
|
+
children: /* @__PURE__ */ s(d, {
|
|
191
|
+
spinnerConfig: r.spinnerConfig,
|
|
192
|
+
hideText: b
|
|
193
193
|
})
|
|
194
|
-
}),
|
|
195
|
-
|
|
194
|
+
}), S = (e) => {
|
|
195
|
+
g.errorModule(e ?? "Module error"), c?.(e ?? "Module error");
|
|
196
196
|
};
|
|
197
|
-
if (
|
|
198
|
-
if (
|
|
199
|
-
if (
|
|
197
|
+
if (f.status === "error") return null;
|
|
198
|
+
if (f.status === "initializing") return x();
|
|
199
|
+
if (m && "homeScreen" in m && m.homeScreen.visible) return /* @__PURE__ */ s("div", {
|
|
200
200
|
class: "IncodeWorkflow",
|
|
201
|
-
children: /* @__PURE__ */
|
|
201
|
+
children: /* @__PURE__ */ s(a, {
|
|
202
202
|
fallback: null,
|
|
203
|
-
children: /* @__PURE__ */
|
|
204
|
-
isContinueLoading:
|
|
205
|
-
onContinue: () =>
|
|
203
|
+
children: /* @__PURE__ */ s(j, {
|
|
204
|
+
isContinueLoading: m.homeScreen.isContinueLoading,
|
|
205
|
+
onContinue: () => g.continueFromHome()
|
|
206
206
|
})
|
|
207
207
|
})
|
|
208
208
|
});
|
|
209
|
-
if (!
|
|
210
|
-
if (
|
|
211
|
-
if (
|
|
209
|
+
if (!m || m.status === "idle" || m.status === "loading") return x();
|
|
210
|
+
if (m.status === "finished" || m.status === "error" || m.status === "asyncResolution" || m.status === "closed") return null;
|
|
211
|
+
if (_.status === "unsupported") return /* @__PURE__ */ s("div", {
|
|
212
212
|
class: "IncodeWorkflow",
|
|
213
|
-
children: /* @__PURE__ */
|
|
214
|
-
moduleKey:
|
|
215
|
-
onNext: () =>
|
|
213
|
+
children: /* @__PURE__ */ s(p, {
|
|
214
|
+
moduleKey: m.currentNode.moduleKey,
|
|
215
|
+
onNext: () => g.completeModule()
|
|
216
216
|
})
|
|
217
217
|
});
|
|
218
|
-
if (
|
|
219
|
-
let { Component:
|
|
220
|
-
return /* @__PURE__ */
|
|
218
|
+
if (_.status === "idle" || _.status === "loading" || _.status === "error") return x();
|
|
219
|
+
let { Component: C } = _;
|
|
220
|
+
return /* @__PURE__ */ s("div", {
|
|
221
221
|
class: "IncodeWorkflow",
|
|
222
|
-
children: /* @__PURE__ */
|
|
223
|
-
config:
|
|
224
|
-
moduleKey:
|
|
225
|
-
config:
|
|
226
|
-
workflowId:
|
|
227
|
-
authHint:
|
|
228
|
-
lang:
|
|
229
|
-
mergeSessionRecordings:
|
|
230
|
-
ageAssurance:
|
|
222
|
+
children: /* @__PURE__ */ s(C, {
|
|
223
|
+
config: M({
|
|
224
|
+
moduleKey: m.currentNode.moduleKey,
|
|
225
|
+
config: m.config,
|
|
226
|
+
workflowId: m.workflowConfig.id,
|
|
227
|
+
authHint: r.authHint,
|
|
228
|
+
lang: r.lang,
|
|
229
|
+
mergeSessionRecordings: m.workflowConfig.mergeSessionRecordings,
|
|
230
|
+
ageAssurance: m.workflowConfig.ageAssurance
|
|
231
231
|
}),
|
|
232
|
-
onFinish: () =>
|
|
233
|
-
onError:
|
|
234
|
-
...
|
|
235
|
-
},
|
|
232
|
+
onFinish: () => g.completeModule(),
|
|
233
|
+
onError: S,
|
|
234
|
+
...m.currentNode.moduleKey === "REDIRECT_TO_MOBILE" ? { onContinue: () => g.completeModule() } : {}
|
|
235
|
+
}, m.currentNode.id)
|
|
236
236
|
});
|
|
237
|
-
},
|
|
237
|
+
}, P = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ s(u, { children: e ? /* @__PURE__ */ s(N, {
|
|
238
238
|
config: e,
|
|
239
239
|
onFinish: t,
|
|
240
240
|
onError: n
|
|
241
241
|
}) : null });
|
|
242
|
-
|
|
242
|
+
f(P, "incode-workflow");
|
|
243
243
|
//#endregion
|
|
244
|
-
export {
|
|
244
|
+
export { P as IncodeWorkflow, M as mapModuleConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260518-
|
|
3
|
+
"version": "0.0.0-dev-20260518-2d0ef651",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"qrcode": "^1.5.4",
|
|
240
240
|
"signature_pad": "^5.1.3",
|
|
241
241
|
"tailwindcss": "^4.1.17",
|
|
242
|
-
"@incodetech/core": "0.0.0-dev-20260518-
|
|
242
|
+
"@incodetech/core": "0.0.0-dev-20260518-2d0ef651"
|
|
243
243
|
},
|
|
244
244
|
"devDependencies": {
|
|
245
245
|
"@microsoft/api-extractor": "^7.53.3",
|