@incodetech/web 2.0.0-rc.0 → 2.0.0

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 (178) hide show
  1. package/package.json +3 -3
  2. package/dist/ae-signature/ae-signature.es.js +0 -15
  3. package/dist/ae-signature/styles.css +0 -348
  4. package/dist/ae-signature/styles2.css +0 -107
  5. package/dist/aligndevicelottie-DoV8xKjh.js +0 -12757
  6. package/dist/antifraud/antifraud.es.js +0 -18
  7. package/dist/antifraud/styles.css +0 -2
  8. package/dist/authentication/authentication.es.js +0 -29
  9. package/dist/autoFocusTitle-QexamZ4i.js +0 -16
  10. package/dist/back-horizontal-hint-B8Brxh3U.js +0 -137
  11. package/dist/back-tutorial-1NOQobGO.js +0 -14585
  12. package/dist/back-vertical-hint-BBo36dxn.js +0 -128
  13. package/dist/backdevicelottie-C_ceuqY7.js +0 -16678
  14. package/dist/base.css +0 -5818
  15. package/dist/blurdevicelottie-UO14Y0WC.js +0 -15939
  16. package/dist/bottomSheet-DE_8TFEC.js +0 -31
  17. package/dist/browser-ponyfill-jOkuz57z.js +0 -299
  18. package/dist/button-DcCUEn2n.js +0 -24
  19. package/dist/checkbox-Cl57ltq_.js +0 -85
  20. package/dist/consent/consent.es.js +0 -90
  21. package/dist/consent/styles.css +0 -116
  22. package/dist/countrySelector-CE-JgIsv.js +0 -58
  23. package/dist/cpf-ocr/styles.css +0 -45
  24. package/dist/cpfOcr-D_tbwbvh.js +0 -78
  25. package/dist/cross-document-data-match/cross-document-data-match.es.js +0 -18
  26. package/dist/curp-validation/curp-validation.es.js +0 -279
  27. package/dist/curp-validation/styles.css +0 -82
  28. package/dist/custom-fields/styles.css +0 -22
  29. package/dist/customFields-CW38fQUv.js +0 -127
  30. package/dist/customWatchlist-D9_yjEQd.js +0 -33
  31. package/dist/dateInputComposed-BpAGsjN6.js +0 -55
  32. package/dist/dateInputComposed-DU3o6PAV.js +0 -1
  33. package/dist/defineProperty-Dh8nSJpJ.js +0 -39
  34. package/dist/document-capture/styles.css +0 -367
  35. package/dist/documentCapture-xX-JT7ZY.js +0 -763
  36. package/dist/dropdownComposed-DFRBG22E.js +0 -284
  37. package/dist/dropdownComposed-DwTzc2YU.js +0 -1
  38. package/dist/dynamic-forms/styles.css +0 -36
  39. package/dist/dynamicForms-CJP1Ia6Q.js +0 -262
  40. package/dist/ekyb/ekyb.es.js +0 -2
  41. package/dist/ekyb/styles.css +0 -137
  42. package/dist/ekybModule-BSs7mndb.js +0 -280
  43. package/dist/ekybModule-D9M3E2Gm.js +0 -2
  44. package/dist/ekyc/ekyc.es.js +0 -2
  45. package/dist/ekyc/styles.css +0 -106
  46. package/dist/ekycModule-CU9pt5YN.js +0 -246
  47. package/dist/ekycModule-CZw9cLno.js +0 -2
  48. package/dist/electronic-signature/electronic-signature.es.js +0 -2
  49. package/dist/electronic-signature-COYXjGdd.js +0 -410
  50. package/dist/email/email.es.js +0 -87
  51. package/dist/email/styles.css +0 -12
  52. package/dist/emailInput-DppGf9pv.js +0 -37
  53. package/dist/expiredId-BnmzE8T3.js +0 -70
  54. package/dist/extensibility-CzEJfRwo.js +0 -2586
  55. package/dist/extensibility.es.js +0 -25
  56. package/dist/face-match/face-match.es.js +0 -2
  57. package/dist/face-match/styles.css +0 -910
  58. package/dist/faceMatch-B8j0g0Yo.js +0 -2
  59. package/dist/faceMatch-BV8UD7tj.js +0 -201
  60. package/dist/flip-animation-CgwRsEmK.js +0 -6983
  61. package/dist/flow/flow.es.js +0 -661
  62. package/dist/flow/styles.css +0 -5205
  63. package/dist/front-horizontal-hint-DGGGi8e1.js +0 -380
  64. package/dist/front-vertical-hint-CNr5mE6Q.js +0 -420
  65. package/dist/frontdevicelottie-Bu6f9fDE.js +0 -17302
  66. package/dist/geolocation/geolocation.es.js +0 -857
  67. package/dist/geolocation/styles.css +0 -158
  68. package/dist/glaredevicelottie-B10axYs_.js +0 -14466
  69. package/dist/governmentValidation/governmentValidation.es.js +0 -98
  70. package/dist/governmentValidation/styles.css +0 -58
  71. package/dist/homeScreen-DnP1jw9A.js +0 -227
  72. package/dist/hooks-BVnGysT7.js +0 -80
  73. package/dist/i18n-9s4OSqwi.js +0 -2010
  74. package/dist/icons-Cc7zwchP.js +0 -310
  75. package/dist/id/id.es.js +0 -832
  76. package/dist/id/styles.css +0 -1287
  77. package/dist/id-laser-h-mBAzHVOK.js +0 -467
  78. package/dist/id-laser-v-CrFg4bcJ.js +0 -483
  79. package/dist/id-ocr/styles.css +0 -46
  80. package/dist/id-tutorial-BCr42Pnn.js +0 -13153
  81. package/dist/id-verification/id-verification.es.js +0 -20
  82. package/dist/idOcr-CCjfWQvH.js +0 -94
  83. package/dist/identity-reuse/identity-reuse.es.js +0 -198
  84. package/dist/identity-reuse/styles.css +0 -163
  85. package/dist/incode-logo-DX016usY.js +0 -4
  86. package/dist/incodeComponent-C1o4M0ZK.js +0 -50
  87. package/dist/incodeModule-BqCjVgEI.js +0 -18
  88. package/dist/index.es.js +0 -16
  89. package/dist/inputComposed-APSw8C7o.js +0 -89
  90. package/dist/inputComposed-XYrarFxS.js +0 -1
  91. package/dist/loadingIcon-BN5YRQUb.js +0 -104
  92. package/dist/mandatoryConsent-DssKMC3v.js +0 -100
  93. package/dist/modal-NMxsQHAO.js +0 -135
  94. package/dist/modal.hooks-CAjcIFZK.js +0 -126
  95. package/dist/numberedStep-CT-alrK5.js +0 -11
  96. package/dist/optionAccessibleLabel-CzEeX3Q4.js +0 -140
  97. package/dist/otpInput-DqRA_egd.js +0 -145
  98. package/dist/page-C1yT4DLb.js +0 -69
  99. package/dist/passport-horizontal-hint-Bgquwtac.js +0 -293
  100. package/dist/passport-tutorial-DwRwtPVX.js +0 -11689
  101. package/dist/passport-vertical-hint-BT1D5BrW.js +0 -267
  102. package/dist/pdf-BurGZ08w.js +0 -14967
  103. package/dist/pdfViewer-BGBNL1Ea.js +0 -63
  104. package/dist/phone/phone.es.js +0 -98
  105. package/dist/phone/styles.css +0 -11
  106. package/dist/phoneInputComposed-bvWhGLFZ.js +0 -11206
  107. package/dist/processing-G_y3o32b.js +0 -6
  108. package/dist/qe-signature/qe-signature.es.js +0 -15
  109. package/dist/radioGroupComposed-BbmvxmD2.js +0 -177
  110. package/dist/redirect-to-mobile/styles.css +0 -588
  111. package/dist/redirectToMobile-C3k1gloW.js +0 -1514
  112. package/dist/requiredLabelHint-BLwgqozE.js +0 -13
  113. package/dist/richText-DbJ5sl2n.js +0 -1973
  114. package/dist/rolldown-runtime-CYMK-g2i.js +0 -20
  115. package/dist/selfie/selfie.es.js +0 -43
  116. package/dist/selfie/styles.css +0 -706
  117. package/dist/selfieTutorial-BgrlUMXP.js +0 -2677
  118. package/dist/signature/signature.es.js +0 -546
  119. package/dist/snackbar-BDp8x7Cv.js +0 -14
  120. package/dist/spinner-B4dcie2T.js +0 -1
  121. package/dist/spinner-CKnjVHxw.js +0 -39
  122. package/dist/statusPage-CUI7ApcU.js +0 -28
  123. package/dist/successIcon-DbILeIz_.js +0 -28
  124. package/dist/tabs-DaPyP71c.js +0 -78
  125. package/dist/themes/dark.css +0 -1347
  126. package/dist/themes/light.css +0 -1225
  127. package/dist/transitionSpinner-PIEPU2Vx.js +0 -17
  128. package/dist/tutorial-9vHAHvMK.js +0 -2587
  129. package/dist/types/ae-signature.d.ts +0 -40
  130. package/dist/types/antifraud.d.ts +0 -40
  131. package/dist/types/authentication.d.ts +0 -45
  132. package/dist/types/base.d.ts +0 -1
  133. package/dist/types/consent.d.ts +0 -41
  134. package/dist/types/cpf-ocr/styles.d.ts +0 -1
  135. package/dist/types/cross-document-data-match.d.ts +0 -34
  136. package/dist/types/curp-validation.d.ts +0 -40
  137. package/dist/types/custom-fields/styles.d.ts +0 -1
  138. package/dist/types/dark.d.ts +0 -1
  139. package/dist/types/document-capture/styles.d.ts +0 -1
  140. package/dist/types/dynamic-forms/styles.d.ts +0 -1
  141. package/dist/types/ekyb.d.ts +0 -34
  142. package/dist/types/ekyc.d.ts +0 -34
  143. package/dist/types/electronic-signature.d.ts +0 -43
  144. package/dist/types/email.d.ts +0 -67
  145. package/dist/types/extensibility.d.ts +0 -981
  146. package/dist/types/face-match.d.ts +0 -59
  147. package/dist/types/flow.d.ts +0 -137
  148. package/dist/types/geolocation.d.ts +0 -41
  149. package/dist/types/governmentValidation.d.ts +0 -34
  150. package/dist/types/id-ocr/styles.d.ts +0 -1
  151. package/dist/types/id-verification.d.ts +0 -40
  152. package/dist/types/id.d.ts +0 -41
  153. package/dist/types/identity-reuse.d.ts +0 -43
  154. package/dist/types/index.d.ts +0 -32
  155. package/dist/types/light.d.ts +0 -1
  156. package/dist/types/mandatory-consent/styles.d.ts +0 -1
  157. package/dist/types/phone.d.ts +0 -68
  158. package/dist/types/qe-signature.d.ts +0 -40
  159. package/dist/types/redirect-to-mobile/styles.d.ts +0 -1
  160. package/dist/types/selfie.d.ts +0 -41
  161. package/dist/types/signature.d.ts +0 -40
  162. package/dist/types/styles.d.ts +0 -1
  163. package/dist/types/themes/dark.d.ts +0 -1
  164. package/dist/types/themes/light.d.ts +0 -1
  165. package/dist/types/watchlist-for-business/styles.d.ts +0 -1
  166. package/dist/types/watchlist.d.ts +0 -40
  167. package/dist/types/workflow.d.ts +0 -91
  168. package/dist/typography-CxjaknHN.js +0 -28
  169. package/dist/uiConfig-CwpQ-IM6.js +0 -20
  170. package/dist/useModuleLoader-BFiVA41N.js +0 -432
  171. package/dist/vendor-preact-D6SntenC.js +0 -958
  172. package/dist/verificationResult-BrVbUJ4U.js +0 -97
  173. package/dist/verifiedByIncode-ChZBpqNy.js +0 -101
  174. package/dist/watchlist/watchlist.es.js +0 -33
  175. package/dist/watchlist-for-business/styles.css +0 -18
  176. package/dist/watchlistForBusiness-BcSNtHCV.js +0 -77
  177. package/dist/workflow/styles.css +0 -4612
  178. package/dist/workflow/workflow.es.js +0 -244
@@ -1,244 +0,0 @@
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";
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";
14
- //#region src/modules/workflow/workflowInit.ts
15
- var T = {
16
- ...g,
17
- REDIRECT_TO_MOBILE: () => import("../redirectToMobile-C3k1gloW.js").then((e) => e.RedirectToMobile),
18
- ID: () => import("../id-verification/id-verification.es.js").then((e) => e.IdVerification)
19
- };
20
- async function E() {
21
- try {
22
- let e = await p();
23
- return {
24
- theme: e,
25
- uiConfig: {
26
- logoSrc: e.logo,
27
- hideFooterBranding: e.hideFooterBranding
28
- }
29
- };
30
- } catch {
31
- return {};
32
- }
33
- }
34
- function D(e = {}) {
35
- return w({
36
- customModuleCallback: e.customModuleCallback,
37
- interviewId: e.interviewId,
38
- isDesktop: e.isDesktop ?? x() === "desktop"
39
- });
40
- }
41
- function O(e) {
42
- if (e === !1) return;
43
- let t = v({
44
- ...e,
45
- pipelines: e?.pipelines ?? ["selfie", "idCapture"]
46
- }), n = {
47
- ...t,
48
- pipelines: t.pipelines ? [...t.pipelines] : void 0
49
- };
50
- b(t).then(() => y(n)).catch((e) => {
51
- console.error("Workflow WASM warmup failed:", e);
52
- });
53
- }
54
- //#endregion
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({
59
- customModuleCallback: l,
60
- interviewId: u,
61
- isDesktop: d
62
- });
63
- return g.current = e, {
64
- status: "initializing",
65
- workflowManager: e
66
- };
67
- }), y = r(!1);
68
- return t(() => {
69
- if (_.status !== "initializing" || y.current) return;
70
- y.current = !0;
71
- let e = g.current, t = new AbortController(), { signal: r } = t;
72
- return (async () => {
73
- try {
74
- await h({
75
- token: n,
76
- lang: i
77
- }), f && await C({
78
- urlUuid: f,
79
- onboardingId: null,
80
- onRefreshed: m
81
- }, r);
82
- let t = o ? Promise.resolve() : E().then((e) => {
83
- e.uiConfig && s(e.uiConfig);
84
- });
85
- O(c), e.load(), await t, v({
86
- status: "ready",
87
- workflowManager: e
88
- });
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;
92
- v({
93
- status: "error",
94
- error: n,
95
- errorCode: i,
96
- workflowManager: e
97
- }), p?.(n, i);
98
- }
99
- })(), () => {
100
- t.abort(), e?.stop();
101
- };
102
- }, [
103
- n,
104
- i,
105
- o,
106
- c,
107
- f,
108
- p,
109
- m
110
- ]), _;
111
- }
112
- //#endregion
113
- //#region src/modules/workflow/workflow.tsx
114
- var A = n(() => import("../homeScreen-DnP1jw9A.js").then((e) => ({ default: e.HomeScreen })));
115
- function j(e) {
116
- let { moduleKey: t, config: n, workflowId: r, authHint: i, lang: a, mergeSessionRecordings: o, ageAssurance: s } = e;
117
- switch (t) {
118
- case "AUTHENTICATION": return {
119
- ...n,
120
- authHint: i
121
- };
122
- case "REDIRECT_TO_MOBILE": return {
123
- ...n,
124
- flowId: r,
125
- authHint: i,
126
- lang: a
127
- };
128
- case "ID_CAPTURE":
129
- case "TUTORIAL_ID": return {
130
- ...n,
131
- mergeSessionRecordings: n.mergeSessionRecordings ?? o,
132
- ageAssurance: n.ageAssurance ?? s,
133
- skipProcessId: !0
134
- };
135
- case "ID": return n;
136
- case "SELFIE": return {
137
- ...n,
138
- ageAssurance: n.ageAssurance ?? s
139
- };
140
- case "ADDRESS": return {
141
- ...n,
142
- processingType: "addressStatement"
143
- };
144
- case "SECOND_ID": return {
145
- ...n,
146
- isSecondId: !0
147
- };
148
- default: return n;
149
- }
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
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?.()));
177
- }, [
178
- p?.status,
179
- a,
180
- p
181
- ]), t(() => {
182
- p?.status === "error" && s && s(p.error, p.errorCode);
183
- }, [
184
- p?.status,
185
- s,
186
- p
187
- ]);
188
- let y = !(n.spinnerConfig?.title || n.spinnerConfig?.subtitle), b = () => /* @__PURE__ */ o("div", {
189
- class: "IncodeWorkflow",
190
- children: /* @__PURE__ */ o(u, {
191
- spinnerConfig: n.spinnerConfig,
192
- hideText: y
193
- })
194
- }), x = (e) => {
195
- h.errorModule(e ?? "Module error"), s?.(e ?? "Module error");
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", {
200
- class: "IncodeWorkflow",
201
- children: /* @__PURE__ */ o(i, {
202
- fallback: null,
203
- children: /* @__PURE__ */ o(A, {
204
- isContinueLoading: p.homeScreen.isContinueLoading,
205
- onContinue: () => h.continueFromHome()
206
- })
207
- })
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", {
212
- class: "IncodeWorkflow",
213
- children: /* @__PURE__ */ o(f, {
214
- moduleKey: p.currentNode.moduleKey,
215
- onNext: () => h.completeModule()
216
- })
217
- });
218
- if (g.status === "idle" || g.status === "loading" || g.status === "error") return b();
219
- let { Component: S } = g;
220
- return /* @__PURE__ */ o("div", {
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
231
- }),
232
- onFinish: () => h.completeModule(),
233
- onError: x,
234
- ...p.currentNode.moduleKey === "REDIRECT_TO_MOBILE" ? { onContinue: () => h.completeModule() } : {}
235
- }, p.currentNode.id)
236
- });
237
- }, N = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ o(l, { children: e ? /* @__PURE__ */ o(M, {
238
- config: e,
239
- onFinish: t,
240
- onError: n
241
- }) : null });
242
- d(N, "incode-workflow");
243
- //#endregion
244
- export { N as IncodeWorkflow, j as mapModuleConfig };