@incodetech/web 0.0.0-dev-20260313-8b7649e → 0.0.0-dev-20260313-bc2dab4

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 (62) hide show
  1. package/dist/{AsYouType-BtKe6-rC.js → AsYouType-CpH-Rmtj.js} +1 -1
  2. package/dist/{Trans-jfz6nDLh.js → Trans-CA9a3vKp.js} +1 -1
  3. package/dist/authentication/authentication.es.js +25 -20
  4. package/dist/base.css +8 -0
  5. package/dist/{browser-ponyfill-CLXJUgvu.js → browser-ponyfill-B6W6hHVY.js} +49 -46
  6. package/dist/{incodeModule-DRRax-fx.js → button-Ca1tRSTI.js} +153 -239
  7. package/dist/{captureFooter-BKLUMyg9.js → captureFooter-X2qN1773.js} +72 -70
  8. package/dist/{chevronDown-CInnOfOW.js → chevronDown-BUaOuf9J.js} +1 -1
  9. package/dist/{closeIcon-B9qyCfgB.js → closeIcon-BM7WLbKp.js} +1 -1
  10. package/dist/{countries-3p5tkqcx.js → countries-C9bhJe4u.js} +3 -3
  11. package/dist/curp-validation/curp-validation.es.js +26 -25
  12. package/dist/{dateInputComposed-CDLbDgV-.js → dateInputComposed-CvFmQpJ0.js} +11 -10
  13. package/dist/{documentCapture-D2hLB3gP.js → documentCapture-PdKA2frR.js} +113 -157
  14. package/dist/{dropdownComposed-CxpvrC7l.js → dropdownComposed-DBm7cotT.js} +8 -6
  15. package/dist/{ekybModule-DpPW6u1Y.js → ekybModule-DiFpO2sE.js} +16 -14
  16. package/dist/ekycModule-DdD1iChB.js +370 -0
  17. package/dist/email/email.es.js +86 -63
  18. package/dist/{errorContent-Dcw7Uy36.js → errorContent-yUAdbZ5o.js} +5 -5
  19. package/dist/{errorIcon-8iEwW81C.js → errorIcon-BL647nVh.js} +1 -1
  20. package/dist/extensibility.es.js +290 -0
  21. package/dist/face-match/styles.css +8 -0
  22. package/dist/{faceMatch-DCUUb4Gd.js → faceMatch-BjdNG_e0.js} +12 -11
  23. package/dist/fileIcon-DOyMcRWU.js +52 -0
  24. package/dist/flipAnimation-DoMQoFPb.js +1355 -0
  25. package/dist/flow/flow.es.js +157 -157
  26. package/dist/flow/styles.css +8 -0
  27. package/dist/formField-C91ckby4.js +94 -0
  28. package/dist/geolocation/geolocation.es.js +15 -14
  29. package/dist/governmentValidation/governmentValidation.es.js +19 -18
  30. package/dist/id/id.es.js +30 -1354
  31. package/dist/incodeModule-aE-LkKwM.js +96 -0
  32. package/dist/index.es.js +7 -7
  33. package/dist/{otpInput-CUC4ePyO.js → otpInput-cazUY73p.js} +1 -1
  34. package/dist/{page-BIegWWXP.js → page-BVHG3h0V.js} +1 -1
  35. package/dist/permissions-DwF2Ez1N.js +754 -0
  36. package/dist/phone/phone.es.js +53 -30
  37. package/dist/{phoneInput-CqWsl1aH.js → phoneInput-Duuochsh.js} +4 -4
  38. package/dist/phoneInputComposed-B1gXoSzr.js +107 -0
  39. package/dist/{processing-BvPiE-YI.js → processing-CDgOueI3.js} +3 -3
  40. package/dist/selfie/selfie.es.js +29 -18
  41. package/dist/selfie/styles.css +8 -0
  42. package/dist/{spinner-BI8nVld2.js → spinner-Cx3FPUCD.js} +13 -11
  43. package/dist/{successIcon-BaTWSwWN.js → successIcon-BybULRRU.js} +1 -1
  44. package/dist/{tutorial-DdfxR0ct.js → tutorial-Dagmccxh.js} +7 -7
  45. package/dist/types/authentication.d.ts +10 -3
  46. package/dist/types/curp-validation.d.ts +5 -1
  47. package/dist/types/email.d.ts +8 -3
  48. package/dist/types/extensibility.d.ts +671 -0
  49. package/dist/types/flow.d.ts +5 -1
  50. package/dist/types/geolocation.d.ts +5 -1
  51. package/dist/types/governmentValidation.d.ts +5 -1
  52. package/dist/types/id.d.ts +8 -3
  53. package/dist/types/phone.d.ts +8 -3
  54. package/dist/types/selfie.d.ts +8 -3
  55. package/dist/{uiConfig-DisZ_yFB.js → uiConfig-Z6RT23Sl.js} +3 -3
  56. package/dist/useFormScrollable-3O3GeT4m.js +15 -0
  57. package/dist/{warningIcon-Dg71hWsD.js → warningIcon-DyoKeqDd.js} +1 -1
  58. package/package.json +6 -2
  59. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  60. package/dist/baseTutorial-BmPYrCn3.js +0 -755
  61. package/dist/ekycModule-Ba9wDBIU.js +0 -467
  62. package/dist/verificationResult-JmCFCdRU.js +0 -106
@@ -104,6 +104,10 @@
104
104
  display: flex;
105
105
  }
106
106
 
107
+ .grid {
108
+ display: grid;
109
+ }
110
+
107
111
  .hidden {
108
112
  display: none;
109
113
  }
@@ -112,6 +116,10 @@
112
116
  display: inline-flex;
113
117
  }
114
118
 
119
+ .flex-shrink {
120
+ flex-shrink: 1;
121
+ }
122
+
115
123
  .transform {
116
124
  transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
117
125
  }
@@ -0,0 +1,94 @@
1
+ import { b as v, u as i, B as I } from "./button-Ca1tRSTI.js";
2
+ import "./uiConfig-Z6RT23Sl.js";
3
+ import "./vendor-preact-BXf0bkEs.js";
4
+ import { E as g } from "./errorIcon-BL647nVh.js";
5
+ import { S as F } from "./successIcon-BybULRRU.js";
6
+ import { P as u } from "./page-BVHG3h0V.js";
7
+ import { S as y } from "./spinner-Cx3FPUCD.js";
8
+ import { I as k } from "./dropdownComposed-DBm7cotT.js";
9
+ const E = ({
10
+ status: e,
11
+ submittingTitle: l,
12
+ successTitle: d,
13
+ failureTitle: r,
14
+ onRetry: n,
15
+ onSkip: s,
16
+ retryLabel: o,
17
+ skipLabel: m
18
+ }) => {
19
+ const { t } = v();
20
+ if (e === "submitting") {
21
+ const c = l ?? t("verification.processing");
22
+ return /* @__PURE__ */ i(u, { className: "IncodeVerificationResult", children: /* @__PURE__ */ i("div", { className: "IncodeVerificationResult__center", children: [
23
+ /* @__PURE__ */ i(y, {}),
24
+ /* @__PURE__ */ i("p", { className: "IncodeVerificationResult__title", children: c })
25
+ ] }) });
26
+ }
27
+ if (e === "success") {
28
+ const c = d ?? t("verification.successTitle");
29
+ return /* @__PURE__ */ i(u, { className: "IncodeVerificationResult", children: /* @__PURE__ */ i("div", { className: "IncodeVerificationResult__center", children: [
30
+ /* @__PURE__ */ i(F, { size: 64 }),
31
+ /* @__PURE__ */ i("p", { className: "IncodeVerificationResult__title", children: c })
32
+ ] }) });
33
+ }
34
+ const f = r ?? t("verification.failureTitle");
35
+ return /* @__PURE__ */ i(u, { className: "IncodeVerificationResult", children: [
36
+ /* @__PURE__ */ i("div", { className: "IncodeVerificationResult__center", children: [
37
+ /* @__PURE__ */ i(g, { size: 64 }),
38
+ /* @__PURE__ */ i("p", { className: "IncodeVerificationResult__title", children: f })
39
+ ] }),
40
+ /* @__PURE__ */ i("div", { className: "IncodeVerificationResult__actions", children: [
41
+ n && /* @__PURE__ */ i(I, { onClick: n, "data-testid": "verification-retry", children: o ?? t("common.tryAgain") }),
42
+ s && /* @__PURE__ */ i(
43
+ I,
44
+ {
45
+ onClick: s,
46
+ variant: "secondary",
47
+ "data-testid": "verification-skip",
48
+ children: m ?? t("common.skip")
49
+ }
50
+ )
51
+ ] })
52
+ ] });
53
+ }, L = ({
54
+ name: e,
55
+ label: l,
56
+ value: d = "",
57
+ error: r,
58
+ errorParams: n,
59
+ type: s = "text",
60
+ placeholder: o,
61
+ placeholderParams: m,
62
+ required: t,
63
+ readonly: f,
64
+ maxLength: c,
65
+ disabled: _,
66
+ optional: h,
67
+ onChange: V
68
+ }) => {
69
+ const { t: a } = v(), p = a(l), N = h ? `${p} ${a("verification.labels.optional")}` : p;
70
+ return /* @__PURE__ */ i("div", { className: "IncodeFormField", children: /* @__PURE__ */ i(
71
+ k,
72
+ {
73
+ id: e,
74
+ label: N,
75
+ name: e,
76
+ type: s,
77
+ value: d,
78
+ placeholder: o ? a(o, m) : void 0,
79
+ readOnly: f,
80
+ disabled: _,
81
+ maxLength: c,
82
+ error: r ? a(r, n) : void 0,
83
+ onInput: (R) => {
84
+ const b = R.target;
85
+ V(e, b.value);
86
+ },
87
+ "data-testid": `form-field-${e}`
88
+ }
89
+ ) });
90
+ };
91
+ export {
92
+ L as F,
93
+ E as V
94
+ };
@@ -1,10 +1,11 @@
1
- import { u as e, b as Z, S as m, B as M, r as K, I as B, a as I } from "../incodeModule-DRRax-fx.js";
2
- import { createGeolocationManager as H } from "@incodetech/core/geolocation";
3
- import { k as P, y as O } from "../vendor-preact-BXf0bkEs.js";
4
- import { getBrowser as F, getDeviceClass as A } from "@incodetech/core";
5
- import "../uiConfig-DisZ_yFB.js";
6
- import { P as G } from "../page-BIegWWXP.js";
7
- import { T as x } from "../Trans-jfz6nDLh.js";
1
+ import { u as e, b as Z, S as m, B as M, I as K, a as B } from "../button-Ca1tRSTI.js";
2
+ import { createGeolocationManager as I } from "@incodetech/core/geolocation";
3
+ import { k as H, y as P } from "../vendor-preact-BXf0bkEs.js";
4
+ import { getBrowser as F, getDeviceClass as O } from "@incodetech/core";
5
+ import "../uiConfig-Z6RT23Sl.js";
6
+ import { P as G } from "../page-BVHG3h0V.js";
7
+ import { r as A } from "../incodeModule-aE-LkKwM.js";
8
+ import { T as x } from "../Trans-CA9a3vKp.js";
8
9
  const V = () => /* @__PURE__ */ e(
9
10
  "svg",
10
11
  {
@@ -605,7 +606,7 @@ const V = () => /* @__PURE__ */ e(
605
606
  t.titleKey || "default"
606
607
  )) });
607
608
  }, X = ({ canSkip: i, onSkip: t, onRefresh: C }) => {
608
- const { t: n } = Z(), o = A();
609
+ const { t: n } = Z(), o = O();
609
610
  return /* @__PURE__ */ e(
610
611
  G,
611
612
  {
@@ -616,7 +617,7 @@ const V = () => /* @__PURE__ */ e(
616
617
  o === "android" ? /* @__PURE__ */ e(R, {}) : null,
617
618
  /* @__PURE__ */ e(m, {}),
618
619
  /* @__PURE__ */ e(M, { onClick: C, children: n("geolocationv2.refreshPage") }),
619
- i ? /* @__PURE__ */ e(P, { children: [
620
+ i ? /* @__PURE__ */ e(H, { children: [
620
621
  /* @__PURE__ */ e(m, { size: 12 }),
621
622
  /* @__PURE__ */ e(M, { variant: "secondary", onClick: t, children: n("geolocationv2.skip") })
622
623
  ] }) : null
@@ -640,12 +641,12 @@ const V = () => /* @__PURE__ */ e(
640
641
  onFinish: t,
641
642
  onError: C
642
643
  }) => {
643
- const { t: n } = Z(), [o, c] = I(() => {
644
+ const { t: n } = Z(), [o, c] = B(() => {
644
645
  if (!i)
645
646
  throw new Error("Geolocation config is required");
646
- return H({ config: i });
647
+ return I({ config: i });
647
648
  });
648
- O(() => {
649
+ P(() => {
649
650
  o.status === "finished" && t?.();
650
651
  }, [o.status, t]);
651
652
  const E = o.status === "requestingLocation" || o.status === "submitting";
@@ -677,7 +678,7 @@ const V = () => /* @__PURE__ */ e(
677
678
  config: i,
678
679
  onFinish: t,
679
680
  onError: C
680
- }) => /* @__PURE__ */ e(B, { children: i ? /* @__PURE__ */ e(
681
+ }) => /* @__PURE__ */ e(K, { children: i ? /* @__PURE__ */ e(
681
682
  Y,
682
683
  {
683
684
  config: i,
@@ -685,7 +686,7 @@ const V = () => /* @__PURE__ */ e(
685
686
  onError: C
686
687
  }
687
688
  ) : null });
688
- K(e2, "incode-geolocation");
689
+ A(e2, "incode-geolocation");
689
690
  export {
690
691
  e2 as Geolocation
691
692
  };
@@ -1,14 +1,15 @@
1
- import { r as p, u as n, I as m, b as v, a as f, S as g } from "../incodeModule-DRRax-fx.js";
2
- import { createGovernmentValidationManager as h } from "@incodetech/core/government-validation";
1
+ import { u as n, I as p, b as m, a as v, S as f } from "../button-Ca1tRSTI.js";
2
+ import { createGovernmentValidationManager as g } from "@incodetech/core/government-validation";
3
3
  import "../vendor-preact-BXf0bkEs.js";
4
4
  import "@incodetech/core";
5
- import "../uiConfig-DisZ_yFB.js";
6
- import { E as I } from "../errorIcon-8iEwW81C.js";
7
- import { S as c } from "../successIcon-BaTWSwWN.js";
8
- import { W as V } from "../warningIcon-Dg71hWsD.js";
9
- import { O as G } from "../otpInput-CUC4ePyO.js";
10
- import { P as r } from "../page-BIegWWXP.js";
11
- import { S } from "../spinner-BI8nVld2.js";
5
+ import "../uiConfig-Z6RT23Sl.js";
6
+ import { E as h } from "../errorIcon-BL647nVh.js";
7
+ import { S as c } from "../successIcon-BybULRRU.js";
8
+ import { W as I } from "../warningIcon-DyoKeqDd.js";
9
+ import { O as V } from "../otpInput-cazUY73p.js";
10
+ import { P as r } from "../page-BVHG3h0V.js";
11
+ import { S as G } from "../spinner-Cx3FPUCD.js";
12
+ import { r as S } from "../incodeModule-aE-LkKwM.js";
12
13
  const a = ({
13
14
  variant: i,
14
15
  icon: o,
@@ -18,14 +19,14 @@ const a = ({
18
19
  /* @__PURE__ */ n(o, { size: 64 }),
19
20
  /* @__PURE__ */ n("p", { class: "IncodeGovtValidationText", children: e }),
20
21
  t ? /* @__PURE__ */ n("p", { class: "IncodeGovtValidationText", children: t }) : null
21
- ] }) }) }), k = ({ title: i, subtitle: o }) => /* @__PURE__ */ n("div", { class: "IncodeGovtValidation IncodeGovtValidation--loading", children: /* @__PURE__ */ n(r, { className: "IncodeGovtValidationPage", children: /* @__PURE__ */ n(S, { title: i, subtitle: o, fullScreen: !1 }) }) }), O = ({
22
+ ] }) }) }), k = ({ title: i, subtitle: o }) => /* @__PURE__ */ n("div", { class: "IncodeGovtValidation IncodeGovtValidation--loading", children: /* @__PURE__ */ n(r, { className: "IncodeGovtValidationPage", children: /* @__PURE__ */ n(G, { title: i, subtitle: o, fullScreen: !1 }) }) }), O = ({
22
23
  config: i,
23
24
  onFinish: o
24
25
  }) => {
25
- const { t: e } = v(), [t, s] = f(() => {
26
+ const { t: e } = m(), [t, s] = v(() => {
26
27
  if (!i)
27
28
  throw new Error("GovernmentValidation config is required");
28
- return h({ config: i });
29
+ return g({ config: i });
29
30
  });
30
31
  if (i.backgroundExecution && t.status === "finished")
31
32
  return o?.(), null;
@@ -57,13 +58,13 @@ const a = ({
57
58
  if (t.status === "awaitingOtp" || t.status === "verifyingOtp") {
58
59
  const d = t.status === "verifyingOtp", l = t.status === "awaitingOtp" ? t.otpError : void 0;
59
60
  return /* @__PURE__ */ n("div", { class: "IncodeGovtValidation IncodeGovtValidation--otp", children: /* @__PURE__ */ n(r, { className: "IncodeGovtValidationPage", children: [
60
- /* @__PURE__ */ n(g, { size: 16 }),
61
+ /* @__PURE__ */ n(f, { size: 16 }),
61
62
  /* @__PURE__ */ n("div", { class: "IncodeGovtValidationOtpInstructions", children: [
62
63
  /* @__PURE__ */ n("p", { children: e("otp.insertSMS") }),
63
64
  /* @__PURE__ */ n("p", { children: e("otp.focus") })
64
65
  ] }),
65
66
  /* @__PURE__ */ n(
66
- G,
67
+ V,
67
68
  {
68
69
  resendTimer: t.status === "awaitingOtp" ? t.resendTimer : 0,
69
70
  canResend: t.status === "awaitingOtp" ? t.canResend : !1,
@@ -81,22 +82,22 @@ const a = ({
81
82
  a,
82
83
  {
83
84
  variant: "error",
84
- icon: I,
85
+ icon: h,
85
86
  title: `${e("ineCheck.failure1")} ${e("ineCheck.failure2")}`
86
87
  }
87
88
  ) : t.status === "unknown" ? /* @__PURE__ */ n(
88
89
  a,
89
90
  {
90
91
  variant: "unknown",
91
- icon: V,
92
+ icon: I,
92
93
  title: e("ineCheck.unknown")
93
94
  }
94
95
  ) : null;
95
96
  }, w = ({
96
97
  config: i,
97
98
  onFinish: o
98
- }) => /* @__PURE__ */ n(m, { children: i ? /* @__PURE__ */ n(O, { config: i, onFinish: o }) : null });
99
- p(
99
+ }) => /* @__PURE__ */ n(p, { children: i ? /* @__PURE__ */ n(O, { config: i, onFinish: o }) : null });
100
+ S(
100
101
  w,
101
102
  "incode-government-validation"
102
103
  );