@incodetech/web 2.0.0 → 2.0.1

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/dist/ae-signature/ae-signature.es.js +15 -0
  2. package/dist/ae-signature/styles.css +348 -0
  3. package/dist/ae-signature/styles2.css +107 -0
  4. package/dist/aligndevicelottie-DoV8xKjh.js +12757 -0
  5. package/dist/antifraud/antifraud.es.js +18 -0
  6. package/dist/antifraud/styles.css +2 -0
  7. package/dist/authentication/authentication.es.js +29 -0
  8. package/dist/autoFocusTitle-QexamZ4i.js +16 -0
  9. package/dist/back-horizontal-hint-B8Brxh3U.js +137 -0
  10. package/dist/back-tutorial-1NOQobGO.js +14585 -0
  11. package/dist/back-vertical-hint-BBo36dxn.js +128 -0
  12. package/dist/backdevicelottie-C_ceuqY7.js +16678 -0
  13. package/dist/base.css +8146 -0
  14. package/dist/blurdevicelottie-UO14Y0WC.js +15939 -0
  15. package/dist/bottomSheet-DE_8TFEC.js +31 -0
  16. package/dist/browser-ponyfill-jOkuz57z.js +299 -0
  17. package/dist/button-DcCUEn2n.js +24 -0
  18. package/dist/checkbox-Cl57ltq_.js +85 -0
  19. package/dist/consent/consent.es.js +90 -0
  20. package/dist/consent/styles.css +116 -0
  21. package/dist/countrySelector-CE-JgIsv.js +58 -0
  22. package/dist/cpf-ocr/styles.css +45 -0
  23. package/dist/cpfOcr-D_tbwbvh.js +78 -0
  24. package/dist/cross-document-data-match/cross-document-data-match.es.js +18 -0
  25. package/dist/curp-validation/curp-validation.es.js +279 -0
  26. package/dist/curp-validation/styles.css +82 -0
  27. package/dist/custom-fields/styles.css +22 -0
  28. package/dist/customFields-CW38fQUv.js +127 -0
  29. package/dist/customWatchlist-D9_yjEQd.js +33 -0
  30. package/dist/dateInputComposed-BpAGsjN6.js +55 -0
  31. package/dist/dateInputComposed-DU3o6PAV.js +1 -0
  32. package/dist/defineProperty-Dh8nSJpJ.js +39 -0
  33. package/dist/document-capture/styles.css +367 -0
  34. package/dist/documentCapture-xX-JT7ZY.js +763 -0
  35. package/dist/dropdownComposed-DFRBG22E.js +284 -0
  36. package/dist/dropdownComposed-DwTzc2YU.js +1 -0
  37. package/dist/dynamic-forms/styles.css +36 -0
  38. package/dist/dynamicForms-CJP1Ia6Q.js +262 -0
  39. package/dist/ekyb/ekyb.es.js +2 -0
  40. package/dist/ekyb/styles.css +137 -0
  41. package/dist/ekybModule-BSs7mndb.js +280 -0
  42. package/dist/ekybModule-D9M3E2Gm.js +2 -0
  43. package/dist/ekyc/ekyc.es.js +2 -0
  44. package/dist/ekyc/styles.css +106 -0
  45. package/dist/ekycModule-CU9pt5YN.js +246 -0
  46. package/dist/ekycModule-CZw9cLno.js +2 -0
  47. package/dist/electronic-signature/electronic-signature.es.js +2 -0
  48. package/dist/electronic-signature-COYXjGdd.js +410 -0
  49. package/dist/email/email.es.js +87 -0
  50. package/dist/email/styles.css +12 -0
  51. package/dist/emailInput-DppGf9pv.js +37 -0
  52. package/dist/expiredId-BnmzE8T3.js +70 -0
  53. package/dist/extensibility-CzEJfRwo.js +2586 -0
  54. package/dist/extensibility.es.js +25 -0
  55. package/dist/face-match/face-match.es.js +2 -0
  56. package/dist/face-match/styles.css +1078 -0
  57. package/dist/faceMatch-B8j0g0Yo.js +2 -0
  58. package/dist/faceMatch-BV8UD7tj.js +201 -0
  59. package/dist/flip-animation-CgwRsEmK.js +6983 -0
  60. package/dist/flow/flow.es.js +661 -0
  61. package/dist/flow/styles.css +8478 -0
  62. package/dist/front-horizontal-hint-DGGGi8e1.js +380 -0
  63. package/dist/front-vertical-hint-CNr5mE6Q.js +420 -0
  64. package/dist/frontdevicelottie-Bu6f9fDE.js +17302 -0
  65. package/dist/geolocation/geolocation.es.js +857 -0
  66. package/dist/geolocation/styles.css +158 -0
  67. package/dist/glaredevicelottie-B10axYs_.js +14466 -0
  68. package/dist/governmentValidation/governmentValidation.es.js +98 -0
  69. package/dist/governmentValidation/styles.css +58 -0
  70. package/dist/homeScreen-DnP1jw9A.js +227 -0
  71. package/dist/hooks-BVnGysT7.js +80 -0
  72. package/dist/i18n-9s4OSqwi.js +2010 -0
  73. package/dist/icons-Cc7zwchP.js +310 -0
  74. package/dist/id/id.es.js +832 -0
  75. package/dist/id/styles.css +1287 -0
  76. package/dist/id-laser-h-mBAzHVOK.js +467 -0
  77. package/dist/id-laser-v-CrFg4bcJ.js +483 -0
  78. package/dist/id-ocr/styles.css +46 -0
  79. package/dist/id-tutorial-BCr42Pnn.js +13153 -0
  80. package/dist/id-verification/id-verification.es.js +20 -0
  81. package/dist/idOcr-CCjfWQvH.js +94 -0
  82. package/dist/identity-reuse/identity-reuse.es.js +198 -0
  83. package/dist/identity-reuse/styles.css +163 -0
  84. package/dist/incode-logo-DX016usY.js +4 -0
  85. package/dist/incodeComponent-C1o4M0ZK.js +50 -0
  86. package/dist/incodeModule-BqCjVgEI.js +18 -0
  87. package/dist/index.es.js +16 -0
  88. package/dist/inputComposed-APSw8C7o.js +89 -0
  89. package/dist/inputComposed-XYrarFxS.js +1 -0
  90. package/dist/loadingIcon-BN5YRQUb.js +104 -0
  91. package/dist/mandatoryConsent-DssKMC3v.js +100 -0
  92. package/dist/modal-NMxsQHAO.js +135 -0
  93. package/dist/modal.hooks-CAjcIFZK.js +126 -0
  94. package/dist/numberedStep-CT-alrK5.js +11 -0
  95. package/dist/optionAccessibleLabel-CzEeX3Q4.js +140 -0
  96. package/dist/otpInput-DqRA_egd.js +145 -0
  97. package/dist/page-C1yT4DLb.js +69 -0
  98. package/dist/passport-horizontal-hint-Bgquwtac.js +293 -0
  99. package/dist/passport-tutorial-DwRwtPVX.js +11689 -0
  100. package/dist/passport-vertical-hint-BT1D5BrW.js +267 -0
  101. package/dist/pdf-BurGZ08w.js +14967 -0
  102. package/dist/pdfViewer-BGBNL1Ea.js +63 -0
  103. package/dist/phone/phone.es.js +98 -0
  104. package/dist/phone/styles.css +11 -0
  105. package/dist/phoneInputComposed-bvWhGLFZ.js +11206 -0
  106. package/dist/processing-G_y3o32b.js +6 -0
  107. package/dist/qe-signature/qe-signature.es.js +15 -0
  108. package/dist/radioGroupComposed-BbmvxmD2.js +177 -0
  109. package/dist/redirect-to-mobile/styles.css +588 -0
  110. package/dist/redirectToMobile-C3k1gloW.js +1514 -0
  111. package/dist/requiredLabelHint-BLwgqozE.js +13 -0
  112. package/dist/richText-DbJ5sl2n.js +1973 -0
  113. package/dist/rolldown-runtime-CYMK-g2i.js +20 -0
  114. package/dist/selfie/selfie.es.js +43 -0
  115. package/dist/selfie/styles.css +1144 -0
  116. package/dist/selfieTutorial-BgrlUMXP.js +2677 -0
  117. package/dist/signature/signature.es.js +546 -0
  118. package/dist/snackbar-BDp8x7Cv.js +14 -0
  119. package/dist/spinner-B4dcie2T.js +1 -0
  120. package/dist/spinner-CKnjVHxw.js +39 -0
  121. package/dist/statusPage-CUI7ApcU.js +28 -0
  122. package/dist/successIcon-DbILeIz_.js +28 -0
  123. package/dist/tabs-DaPyP71c.js +78 -0
  124. package/dist/themes/dark.css +1347 -0
  125. package/dist/themes/light.css +1225 -0
  126. package/dist/transitionSpinner-PIEPU2Vx.js +17 -0
  127. package/dist/tutorial-9vHAHvMK.js +2587 -0
  128. package/dist/types/ae-signature.d.ts +40 -0
  129. package/dist/types/antifraud.d.ts +40 -0
  130. package/dist/types/authentication.d.ts +45 -0
  131. package/dist/types/base.d.ts +1 -0
  132. package/dist/types/consent.d.ts +41 -0
  133. package/dist/types/cpf-ocr/styles.d.ts +1 -0
  134. package/dist/types/cross-document-data-match.d.ts +34 -0
  135. package/dist/types/curp-validation.d.ts +40 -0
  136. package/dist/types/custom-fields/styles.d.ts +1 -0
  137. package/dist/types/dark.d.ts +1 -0
  138. package/dist/types/document-capture/styles.d.ts +1 -0
  139. package/dist/types/dynamic-forms/styles.d.ts +1 -0
  140. package/dist/types/ekyb.d.ts +34 -0
  141. package/dist/types/ekyc.d.ts +34 -0
  142. package/dist/types/electronic-signature.d.ts +43 -0
  143. package/dist/types/email.d.ts +67 -0
  144. package/dist/types/extensibility.d.ts +981 -0
  145. package/dist/types/face-match.d.ts +59 -0
  146. package/dist/types/flow.d.ts +137 -0
  147. package/dist/types/geolocation.d.ts +41 -0
  148. package/dist/types/governmentValidation.d.ts +34 -0
  149. package/dist/types/id-ocr/styles.d.ts +1 -0
  150. package/dist/types/id-verification.d.ts +40 -0
  151. package/dist/types/id.d.ts +41 -0
  152. package/dist/types/identity-reuse.d.ts +43 -0
  153. package/dist/types/index.d.ts +32 -0
  154. package/dist/types/light.d.ts +1 -0
  155. package/dist/types/mandatory-consent/styles.d.ts +1 -0
  156. package/dist/types/phone.d.ts +68 -0
  157. package/dist/types/qe-signature.d.ts +40 -0
  158. package/dist/types/redirect-to-mobile/styles.d.ts +1 -0
  159. package/dist/types/selfie.d.ts +41 -0
  160. package/dist/types/signature.d.ts +40 -0
  161. package/dist/types/styles.d.ts +1 -0
  162. package/dist/types/themes/dark.d.ts +1 -0
  163. package/dist/types/themes/light.d.ts +1 -0
  164. package/dist/types/watchlist-for-business/styles.d.ts +1 -0
  165. package/dist/types/watchlist.d.ts +40 -0
  166. package/dist/types/workflow.d.ts +91 -0
  167. package/dist/typography-CxjaknHN.js +28 -0
  168. package/dist/uiConfig-CwpQ-IM6.js +20 -0
  169. package/dist/useModuleLoader-BFiVA41N.js +432 -0
  170. package/dist/vendor-preact-D6SntenC.js +958 -0
  171. package/dist/verificationResult-BrVbUJ4U.js +97 -0
  172. package/dist/verifiedByIncode-ChZBpqNy.js +101 -0
  173. package/dist/watchlist/watchlist.es.js +33 -0
  174. package/dist/watchlist-for-business/styles.css +18 -0
  175. package/dist/watchlistForBusiness-BcSNtHCV.js +77 -0
  176. package/dist/workflow/styles.css +7480 -0
  177. package/dist/workflow/workflow.es.js +244 -0
  178. package/package.json +2 -2
@@ -0,0 +1,244 @@
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
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": "2.0.0"
242
+ "@incodetech/core": "2.0.1"
243
243
  },
244
244
  "devDependencies": {
245
245
  "@microsoft/api-extractor": "^7.53.3",