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