@incodetech/web 0.0.0-dev-20260311-e1ad562 → 0.0.0-dev-20260311-e7ef89b

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 (38) hide show
  1. package/dist/{Trans-CrErI8VP.js → Trans-BnPbhF6c.js} +1 -1
  2. package/dist/authentication/authentication.es.js +3 -3
  3. package/dist/base.css +0 -8
  4. package/dist/{baseTutorial-aGGpS1V_.js → baseTutorial-Bn8cRFCG.js} +6 -6
  5. package/dist/{captureFooter-BVLebxk_.js → captureFooter-qhkTSzDA.js} +1 -1
  6. package/dist/{chevronDown-DL5WsjxS.js → chevronDown-BZNPUs4a.js} +1 -1
  7. package/dist/{closeIcon-DmhdnnpJ.js → closeIcon-B5HxSoNj.js} +1 -1
  8. package/dist/curp-validation/curp-validation.es.js +6 -6
  9. package/dist/{dateInputComposed-BvBQiMdN.js → dateInputComposed-Badm2Tzx.js} +2 -2
  10. package/dist/document-capture/styles.css +2 -1
  11. package/dist/{documentCapture-C3vAq9ev.js → documentCapture-ChFrtfzB.js} +6 -6
  12. package/dist/{dropdownComposed-BjDHcYMb.js → dropdownComposed-DgA0fNAh.js} +4 -4
  13. package/dist/{ekybModule-DTkcoFN0.js → ekybModule-C0QO-CSj.js} +4 -4
  14. package/dist/{ekycModule-D5EJaj53.js → ekycModule-DlnEKSR8.js} +5 -5
  15. package/dist/email/email.es.js +3 -3
  16. package/dist/{errorContent-CiicsyRN.js → errorContent-BMXamgg9.js} +4 -4
  17. package/dist/{faceMatch-CiZ8QEzy.js → faceMatch-DXcWwP9u.js} +2 -2
  18. package/dist/flow/flow.es.js +136 -151
  19. package/dist/flow/styles.css +4 -3
  20. package/dist/geolocation/geolocation.es.js +3 -3
  21. package/dist/governmentValidation/governmentValidation.es.js +6 -6
  22. package/dist/id/id.es.js +6 -6
  23. package/dist/id/styles.css +2 -2
  24. package/dist/{incodeModule-DAveRAyZ.js → incodeModule-7zNv7YeX.js} +0 -3
  25. package/dist/{otpInput-CoMOmDGR.js → otpInput-DWZ7I1PN.js} +1 -1
  26. package/dist/{page-CcgnVEBJ.js → page-Bdz8JP3P.js} +1 -1
  27. package/dist/phone/phone.es.js +4 -4
  28. package/dist/{processing-C-wThMBe.js → processing-D6kl543t.js} +2 -2
  29. package/dist/selfie/selfie.es.js +4 -4
  30. package/dist/{spinner-IY4lPK0V.js → spinner-BknkxcID.js} +1 -1
  31. package/dist/{successIcon-BXW0lXvd.js → successIcon-BPe0Wymn.js} +1 -1
  32. package/dist/themes/dark.css +45 -37
  33. package/dist/themes/light.css +37 -29
  34. package/dist/{tutorial-DA8R46NX.js → tutorial-BLmXLzBL.js} +42 -36
  35. package/dist/{verificationResult-B51cgPGU.js → verificationResult-DNP30nAT.js} +5 -5
  36. package/dist/{warningIcon-CsSoiruR.js → warningIcon-C9TCAUlH.js} +1 -1
  37. package/package.json +2 -2
  38. package/dist/documentUpload-BBr5ijea.js +0 -102
@@ -1,12 +1,12 @@
1
- import { b as d, u as t, c as S, B as T, S as c, L as D } from "./incodeModule-DAveRAyZ.js";
1
+ import { b as d, u as t, c as S, B as T, S as s, L as D } from "./incodeModule-7zNv7YeX.js";
2
2
  import { g as h, d as f, k as _, A as I, y as g } from "./vendor-preact-DP-hbKuj.js";
3
3
  import "./uiConfig-B8PUPgHY.js";
4
- import { S as L } from "./successIcon-BXW0lXvd.js";
5
- import { P as E } from "./page-CcgnVEBJ.js";
6
- import { S as m, T as v } from "./spinner-IY4lPK0V.js";
7
- import { E as A } from "./errorContent-CiicsyRN.js";
8
- import { B as N } from "./baseTutorial-aGGpS1V_.js";
9
- const a = {
4
+ import { S as L } from "./successIcon-BPe0Wymn.js";
5
+ import { P as E } from "./page-Bdz8JP3P.js";
6
+ import { S as m, T as v } from "./spinner-BknkxcID.js";
7
+ import { E as A } from "./errorContent-BMXamgg9.js";
8
+ import { B as N } from "./baseTutorial-Bn8cRFCG.js";
9
+ const c = {
10
10
  title: "Something went wrong",
11
11
  description: "Please try again later"
12
12
  }, B = {
@@ -42,13 +42,13 @@ const a = {
42
42
  title: "notifications.multiple",
43
43
  description: "notifications.multipleDescription"
44
44
  },
45
- TOO_BLURRY_ERROR: a,
46
- TOO_DARK_ERROR: a,
47
- SERVER_ERROR: a,
48
- FACE_CROPPING_FAILED: a,
49
- FACE_TOO_SMALL: a,
50
- PROCESSING_ERROR: a,
51
- BAD_REQUEST: a,
45
+ TOO_BLURRY_ERROR: c,
46
+ TOO_DARK_ERROR: c,
47
+ SERVER_ERROR: c,
48
+ FACE_CROPPING_FAILED: c,
49
+ FACE_TOO_SMALL: c,
50
+ PROCESSING_ERROR: c,
51
+ BAD_REQUEST: c,
52
52
  USER_IS_NOT_RECOGNIZED: {
53
53
  title: "notifications.accessDenied",
54
54
  description: "notifications.accessDeniedDescription"
@@ -142,7 +142,7 @@ const a = {
142
142
  }) => {
143
143
  const { t: o } = d();
144
144
  if (!e) return null;
145
- const l = M(e) ?? e, { title: s, description: u } = B[l] ?? a, p = o(s) ?? s, C = i <= 0 ? o("notifications.selfieCaptureFailedDescription") : o(u);
145
+ const l = M(e) ?? e, { title: a, description: u } = B[l] ?? c, p = o(a) ?? a, C = i <= 0 ? o("notifications.selfieCaptureFailedDescription") : o(u);
146
146
  return /* @__PURE__ */ t(
147
147
  A,
148
148
  {
@@ -314,7 +314,7 @@ const a = {
314
314
  stream: o,
315
315
  detectionStatus: r,
316
316
  attemptsRemaining: l,
317
- uploadError: s,
317
+ uploadError: a,
318
318
  assistedOnboarding: u
319
319
  } = i, [p, C] = f(!1), { t: R } = d();
320
320
  return n === "initializing" ? /* @__PURE__ */ t(
@@ -325,17 +325,17 @@ const a = {
325
325
  className: "IncodeCameraLoading"
326
326
  }
327
327
  ) : n === "detecting" ? r === "offline" ? /* @__PURE__ */ t(E, { children: /* @__PURE__ */ t("div", { class: "flex h-full flex-col items-center justify-center", children: /* @__PURE__ */ t("p", { class: "text-text-body-primary", children: "No internet connection" }) }) }) : /* @__PURE__ */ t(E, { "data-testid": "capture-container", children: [
328
- /* @__PURE__ */ t(c, { size: 48 }),
328
+ /* @__PURE__ */ t(s, { size: 48 }),
329
329
  /* @__PURE__ */ t("div", { class: "IncodeCaptureContainer", children: [
330
330
  /* @__PURE__ */ t(V, { borderState: p ? "capturing" : r === "detecting" ? "idle" : r === "getReady" ? "loading" : r === "success" ? "success" : r === "error" ? "error" : "idle" }),
331
331
  /* @__PURE__ */ t("div", { class: "IncodeCaptureFrame", children: /* @__PURE__ */ t("div", { class: "IncodeCaptureVideoWrapper", children: o ? /* @__PURE__ */ t(_, { children: [
332
332
  /* @__PURE__ */ t(H, { stream: o, mirrored: !u }),
333
333
  /* @__PURE__ */ t("div", { class: "IncodeCaptureVideo", children: /* @__PURE__ */ t(y, {}) })
334
334
  ] }) : null }) }),
335
- /* @__PURE__ */ t(c, { size: 48 }),
335
+ /* @__PURE__ */ t(s, { size: 48 }),
336
336
  r ? /* @__PURE__ */ t(_, { children: [
337
337
  /* @__PURE__ */ t(x, { detectionState: r }),
338
- /* @__PURE__ */ t(c, { size: 24 })
338
+ /* @__PURE__ */ t(s, { size: 24 })
339
339
  ] }) : null,
340
340
  r === "manualCapture" ? /* @__PURE__ */ t(
341
341
  U,
@@ -347,10 +347,10 @@ const a = {
347
347
  }
348
348
  ) : null
349
349
  ] }),
350
- s ? /* @__PURE__ */ t(
350
+ a ? /* @__PURE__ */ t(
351
351
  O,
352
352
  {
353
- error: s,
353
+ error: a,
354
354
  attemptsRemaining: l,
355
355
  onTryAgain: () => {
356
356
  e.retryCapture(), C(!1);
@@ -378,18 +378,21 @@ const a = {
378
378
  ) : n === "uploading" ? /* @__PURE__ */ t(b, {}) : n === "uploadError" ? /* @__PURE__ */ t(
379
379
  O,
380
380
  {
381
- error: s,
381
+ error: a,
382
382
  attemptsRemaining: l,
383
383
  onTryAgain: () => {
384
384
  e.retryCapture(), C(!1);
385
385
  }
386
386
  }
387
- ) : n === "success" ? /* @__PURE__ */ t(E, { className: "IncodeCaptureSuccessPage", children: /* @__PURE__ */ t("div", { class: "IncodeCaptureSuccessContainer", children: [
388
- /* @__PURE__ */ t(c, { size: 160 }),
389
- /* @__PURE__ */ t(L, { size: 64 }),
390
- /* @__PURE__ */ t(c, { size: 16 }),
391
- /* @__PURE__ */ t(v, { children: R("idv2.capture.processing.success") })
392
- ] }) }) : null;
387
+ ) : n === "success" ? /* @__PURE__ */ t(E, { className: "IncodeCaptureSuccessPage", children: [
388
+ /* @__PURE__ */ t(s, { size: 40 }),
389
+ /* @__PURE__ */ t("div", { class: "IncodeCaptureSuccessContainer", children: [
390
+ /* @__PURE__ */ t(s, { size: 120 }),
391
+ /* @__PURE__ */ t(L, { size: 64 }),
392
+ /* @__PURE__ */ t(s, { size: 16 }),
393
+ /* @__PURE__ */ t(v, { children: R("idv2.capture.processing.success") })
394
+ ] })
395
+ ] }) : null;
393
396
  }, H = ({ stream: e, mirrored: i }) => {
394
397
  const n = I(null);
395
398
  return g(() => {
@@ -406,12 +409,15 @@ const a = {
406
409
  );
407
410
  }, b = () => {
408
411
  const { t: e } = d();
409
- return /* @__PURE__ */ t(E, { className: "IncodeCaptureUploadingPage", children: /* @__PURE__ */ t("div", { class: "IncodeCaptureUploadingContainer", children: [
410
- /* @__PURE__ */ t(c, { size: 160 }),
411
- /* @__PURE__ */ t("div", { class: "IncodeCaptureUploadingIconContainer", children: /* @__PURE__ */ t(D, { size: 64 }) }),
412
- /* @__PURE__ */ t(c, { size: 16 }),
413
- /* @__PURE__ */ t("h2", { class: "IncodeCaptureUploadingTitle", children: e("idv2.capture.processing.uploading") })
414
- ] }) });
412
+ return /* @__PURE__ */ t(E, { className: "IncodeCaptureUploadingPage", children: [
413
+ /* @__PURE__ */ t(s, { size: 40 }),
414
+ /* @__PURE__ */ t("div", { class: "IncodeCaptureUploadingContainer", children: [
415
+ /* @__PURE__ */ t(s, { size: 120 }),
416
+ /* @__PURE__ */ t("div", { class: "IncodeCaptureUploadingIconContainer", children: /* @__PURE__ */ t(D, { size: 64 }) }),
417
+ /* @__PURE__ */ t(s, { size: 16 }),
418
+ /* @__PURE__ */ t("h2", { class: "IncodeCaptureUploadingTitle", children: e("idv2.capture.processing.uploading") })
419
+ ] })
420
+ ] });
415
421
  }, $ = ({ manager: e }) => {
416
422
  const { t: i } = d(), [n, o] = f(!1), [r, l] = f(null);
417
423
  g(() => {
@@ -419,7 +425,7 @@ const a = {
419
425
  l(u.default);
420
426
  });
421
427
  }, []);
422
- const s = () => {
428
+ const a = () => {
423
429
  o(!0), e.nextStep();
424
430
  };
425
431
  return r ? /* @__PURE__ */ t(
@@ -428,7 +434,7 @@ const a = {
428
434
  animationData: r,
429
435
  title: i("face.tutorial.title"),
430
436
  subtitle: i("face.tutorial.subtitle"),
431
- onContinue: s,
437
+ onContinue: a,
432
438
  buttonText: i("face.tutorial.startCapture"),
433
439
  disclaimerText: i("face.tutorial.autoCapture"),
434
440
  isLoading: n,
@@ -1,10 +1,10 @@
1
1
  import { d as g, y as F } from "./vendor-preact-DP-hbKuj.js";
2
- import { b as h, u as e, B as I } from "./incodeModule-DAveRAyZ.js";
2
+ import { b as h, u as e, B as I } from "./incodeModule-7zNv7YeX.js";
3
3
  import "./uiConfig-B8PUPgHY.js";
4
- import { I as S } from "./dropdownComposed-BjDHcYMb.js";
5
- import { S as y, E as k } from "./successIcon-BXW0lXvd.js";
6
- import { P as f } from "./page-CcgnVEBJ.js";
7
- import { S as z } from "./spinner-IY4lPK0V.js";
4
+ import { I as S } from "./dropdownComposed-DgA0fNAh.js";
5
+ import { S as y, E as k } from "./successIcon-BPe0Wymn.js";
6
+ import { P as f } from "./page-Bdz8JP3P.js";
7
+ import { S as z } from "./spinner-BknkxcID.js";
8
8
  function H(i, o) {
9
9
  const [a, n] = g(!1);
10
10
  return F(() => {
@@ -1,4 +1,4 @@
1
- import { u as n } from "./incodeModule-DAveRAyZ.js";
1
+ import { u as n } from "./incodeModule-7zNv7YeX.js";
2
2
  const t = ({ size: i = 32 }) => /* @__PURE__ */ n(
3
3
  "svg",
4
4
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260311-e1ad562",
3
+ "version": "0.0.0-dev-20260311-e7ef89b",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -107,7 +107,7 @@
107
107
  "libphonenumber-js": "^1.11.0",
108
108
  "preact-custom-element": "^4.6.0",
109
109
  "tailwindcss": "^4.1.17",
110
- "@incodetech/core": "0.0.0-dev-20260311-e1ad562"
110
+ "@incodetech/core": "0.0.0-dev-20260311-e7ef89b"
111
111
  },
112
112
  "devDependencies": {
113
113
  "@microsoft/api-extractor": "^7.53.3",
@@ -1,102 +0,0 @@
1
- import { u as e, B as u, I as s, a as p, r as m } from "./incodeModule-DAveRAyZ.js";
2
- import { createDocumentUploadManager as h } from "@incodetech/core/document-upload";
3
- import { A as g, y as I, q as f } from "./vendor-preact-DP-hbKuj.js";
4
- import "@incodetech/core";
5
- import { S as l } from "./spinner-IY4lPK0V.js";
6
- import { P as c } from "./page-CcgnVEBJ.js";
7
- function U(a) {
8
- if (a.readyState < 2 || a.videoWidth === 0 || a.videoHeight === 0)
9
- return null;
10
- const t = document.createElement("canvas");
11
- t.width = a.videoWidth, t.height = a.videoHeight;
12
- const n = t.getContext("2d");
13
- return n ? (n.drawImage(a, 0, 0), t.toDataURL("image/jpeg", 0.92).split(",")[1] ?? null) : null;
14
- }
15
- const C = ({
16
- stream: a,
17
- onCapture: t,
18
- disabled: n
19
- }) => {
20
- const r = g(null);
21
- I(() => {
22
- r.current && a && (r.current.srcObject = a, r.current.play().catch(() => {
23
- }));
24
- }, [a]);
25
- const o = f(() => {
26
- const i = r.current;
27
- if (!i || n) return;
28
- const d = U(i);
29
- d && t(d);
30
- }, [t, n]);
31
- return /* @__PURE__ */ e("div", { class: "IncodeManualCapture", children: [
32
- /* @__PURE__ */ e("div", { class: "IncodeManualCaptureVideoContainer", children: /* @__PURE__ */ e(
33
- "video",
34
- {
35
- ref: r,
36
- autoplay: !0,
37
- playsInline: !0,
38
- muted: !0,
39
- class: "IncodeManualCaptureVideo",
40
- "aria-label": "Camera stream for document capture"
41
- }
42
- ) }),
43
- /* @__PURE__ */ e("div", { class: "IncodeManualCaptureButtonContainer", children: /* @__PURE__ */ e(
44
- u,
45
- {
46
- variant: "primary",
47
- size: "L",
48
- onClick: o,
49
- disabled: n,
50
- class: "IncodeManualCaptureButton",
51
- "aria-label": "Capture document",
52
- children: "Capture"
53
- }
54
- ) })
55
- ] });
56
- }, D = ({
57
- config: a,
58
- onFinish: t,
59
- onError: n
60
- }) => {
61
- const [r, o] = p(
62
- () => h({ config: a })
63
- );
64
- return r.status === "initializing" ? /* @__PURE__ */ e(c, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeDocumentUploadPage", children: /* @__PURE__ */ e("div", { class: "IncodeDocumentUploadInitializing", children: [
65
- /* @__PURE__ */ e(l, { size: "large" }),
66
- /* @__PURE__ */ e("p", { class: "IncodeDocumentUploadInitializingText", children: "Preparing camera..." })
67
- ] }) }) : r.status === "capturing" ? /* @__PURE__ */ e(c, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeDocumentUploadPage", children: /* @__PURE__ */ e(
68
- C,
69
- {
70
- stream: r.stream,
71
- onCapture: (i) => o.capture(i),
72
- disabled: !1
73
- }
74
- ) }) : r.status === "uploading" ? /* @__PURE__ */ e(c, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeDocumentUploadPage", children: /* @__PURE__ */ e("div", { class: "IncodeDocumentUploadUploading", children: /* @__PURE__ */ e(l, { size: "large", subtitle: `Uploading... ${r.progress}%` }) }) }) : r.status === "error" ? /* @__PURE__ */ e(c, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeDocumentUploadPage", children: /* @__PURE__ */ e("div", { class: "IncodeDocumentUploadError", children: [
75
- /* @__PURE__ */ e("p", { class: "IncodeDocumentUploadErrorMessage", children: r.error }),
76
- /* @__PURE__ */ e(
77
- u,
78
- {
79
- variant: "primary",
80
- size: "L",
81
- onClick: () => o.retry(),
82
- class: "IncodeDocumentUploadRetryButton",
83
- children: "Try again"
84
- }
85
- )
86
- ] }) }) : ((r.status === "finished" || r.status === "closed") && t?.(), null);
87
- }, v = ({
88
- config: a,
89
- onFinish: t,
90
- onError: n
91
- }) => /* @__PURE__ */ e(s, { children: a ? /* @__PURE__ */ e(
92
- D,
93
- {
94
- config: a,
95
- onFinish: t,
96
- onError: n
97
- }
98
- ) : null });
99
- m(v, "incode-document-upload");
100
- export {
101
- v as DocumentUpload
102
- };