@incodetech/web 0.0.0-dev-20260313-486e658 → 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 (64) hide show
  1. package/dist/{AsYouType-BtKe6-rC.js → AsYouType-CpH-Rmtj.js} +1 -1
  2. package/dist/{Trans-C2X8WLEu.js → Trans-CA9a3vKp.js} +1 -1
  3. package/dist/authentication/authentication.es.js +25 -20
  4. package/dist/base.css +9 -4
  5. package/dist/{browser-ponyfill-CLXJUgvu.js → browser-ponyfill-B6W6hHVY.js} +49 -46
  6. package/dist/{incodeModule-DLGHhn9E.js → button-Ca1tRSTI.js} +153 -239
  7. package/dist/{captureFooter-C2Yrou50.js → captureFooter-X2qN1773.js} +72 -70
  8. package/dist/{chevronDown-D5uHEaU-.js → chevronDown-BUaOuf9J.js} +1 -1
  9. package/dist/{closeIcon-BMPoRQCd.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-CqHIiKPV.js → dateInputComposed-CvFmQpJ0.js} +11 -10
  13. package/dist/document-capture/styles.css +1 -0
  14. package/dist/{documentCapture-CzGmGxzA.js → documentCapture-PdKA2frR.js} +113 -157
  15. package/dist/{dropdownComposed-BgGKKaXv.js → dropdownComposed-DBm7cotT.js} +8 -6
  16. package/dist/{ekybModule-Bttpjr3j.js → ekybModule-DiFpO2sE.js} +16 -14
  17. package/dist/ekycModule-DdD1iChB.js +370 -0
  18. package/dist/email/email.es.js +86 -63
  19. package/dist/{errorContent-6xl4ArMV.js → errorContent-yUAdbZ5o.js} +5 -5
  20. package/dist/{errorIcon-Cxcv4ISP.js → errorIcon-BL647nVh.js} +1 -1
  21. package/dist/extensibility.es.js +290 -0
  22. package/dist/face-match/styles.css +8 -0
  23. package/dist/{faceMatch-DKqzUCml.js → faceMatch-BjdNG_e0.js} +12 -11
  24. package/dist/fileIcon-DOyMcRWU.js +52 -0
  25. package/dist/flipAnimation-DoMQoFPb.js +1355 -0
  26. package/dist/flow/flow.es.js +157 -157
  27. package/dist/flow/styles.css +15 -3
  28. package/dist/formField-C91ckby4.js +94 -0
  29. package/dist/geolocation/geolocation.es.js +15 -14
  30. package/dist/governmentValidation/governmentValidation.es.js +19 -18
  31. package/dist/id/id.es.js +30 -1354
  32. package/dist/id/styles.css +2 -0
  33. package/dist/incodeModule-aE-LkKwM.js +96 -0
  34. package/dist/index.es.js +7 -7
  35. package/dist/{otpInput-BT0ZXrAt.js → otpInput-cazUY73p.js} +1 -1
  36. package/dist/{page-BJDfLRpO.js → page-BVHG3h0V.js} +1 -1
  37. package/dist/permissions-DwF2Ez1N.js +754 -0
  38. package/dist/phone/phone.es.js +53 -30
  39. package/dist/{phoneInput-d3sq4X5R.js → phoneInput-Duuochsh.js} +4 -4
  40. package/dist/phoneInputComposed-B1gXoSzr.js +107 -0
  41. package/dist/{processing-CGb_3dSE.js → processing-CDgOueI3.js} +3 -3
  42. package/dist/selfie/selfie.es.js +29 -18
  43. package/dist/selfie/styles.css +12 -3
  44. package/dist/{spinner--i134wYq.js → spinner-Cx3FPUCD.js} +13 -11
  45. package/dist/{successIcon-1BcPFhum.js → successIcon-BybULRRU.js} +1 -1
  46. package/dist/{tutorial-DXgOS41l.js → tutorial-Dagmccxh.js} +21 -21
  47. package/dist/types/authentication.d.ts +10 -3
  48. package/dist/types/curp-validation.d.ts +5 -1
  49. package/dist/types/email.d.ts +8 -3
  50. package/dist/types/extensibility.d.ts +671 -0
  51. package/dist/types/flow.d.ts +5 -1
  52. package/dist/types/geolocation.d.ts +5 -1
  53. package/dist/types/governmentValidation.d.ts +5 -1
  54. package/dist/types/id.d.ts +8 -3
  55. package/dist/types/phone.d.ts +8 -3
  56. package/dist/types/selfie.d.ts +8 -3
  57. package/dist/{uiConfig-DisZ_yFB.js → uiConfig-Z6RT23Sl.js} +3 -3
  58. package/dist/useFormScrollable-3O3GeT4m.js +15 -0
  59. package/dist/{warningIcon-WqI5X7cK.js → warningIcon-DyoKeqDd.js} +1 -1
  60. package/package.json +6 -2
  61. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  62. package/dist/baseTutorial-hbezn8sT.js +0 -755
  63. package/dist/ekycModule-DfwZMKdL.js +0 -467
  64. package/dist/verificationResult-CKZqPXb9.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
  }
@@ -323,7 +331,7 @@
323
331
  transition: all 1s ease-in-out;
324
332
  }
325
333
 
326
- .IncodeManualCaptureButton {
334
+ .IncodeSelfieManualCapture {
327
335
  align-items: center;
328
336
  gap: var(--spacing-16, var(--spacing-16, 16px));
329
337
  flex-direction: column;
@@ -331,7 +339,7 @@
331
339
  display: flex;
332
340
  }
333
341
 
334
- .IncodeManualCaptureButtonText {
342
+ .IncodeSelfieManualCaptureText {
335
343
  text-align: center;
336
344
  font-size: var(--text-base, 1rem);
337
345
  line-height: var(--tw-leading, var(--text-base--line-height, calc(1.5 / 1)));
@@ -342,8 +350,9 @@
342
350
  color: var(--color-text-body-primary, var(--text-body-800-primary));
343
351
  }
344
352
 
345
- .IncodeManualCaptureButtonButton {
353
+ .IncodeSelfieManualCaptureButton {
346
354
  padding: var(--spacing-0, var(--spacing-none, 0px));
355
+ color: var(--color-text-body-primary, var(--text-body-800-primary));
347
356
  }
348
357
 
349
358
  .IncodeNotification {
@@ -3904,6 +3913,8 @@
3904
3913
 
3905
3914
  .IncodeIdManualCaptureButton .IncodeButtonLink {
3906
3915
  height: 100%;
3916
+ padding: var(--spacing-0, var(--spacing-none, 0px));
3917
+ color: var(--color-text-body-primary, var(--text-body-800-primary));
3907
3918
  }
3908
3919
 
3909
3920
  .IncodeIdManualCaptureButton .IncodeIdManualCaptureTooltipContainer .IncodeIdManualCaptureTooltip {
@@ -4667,6 +4678,7 @@
4667
4678
  align-items: flex-start;
4668
4679
  gap: var(--spacing-16, var(--spacing-16, 16px));
4669
4680
  background-color: var(--color-surface-neutral-50, var(--surface-neutral-50));
4681
+ padding: var(--spacing-16, var(--spacing-16, 16px));
4670
4682
  border-radius: 12px;
4671
4683
  display: flex;
4672
4684
  }
@@ -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-DLGHhn9E.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-BJDfLRpO.js";
7
- import { T as x } from "../Trans-C2X8WLEu.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-DLGHhn9E.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-Cxcv4ISP.js";
7
- import { S as c } from "../successIcon-1BcPFhum.js";
8
- import { W as V } from "../warningIcon-WqI5X7cK.js";
9
- import { O as G } from "../otpInput-BT0ZXrAt.js";
10
- import { P as r } from "../page-BJDfLRpO.js";
11
- import { S } from "../spinner--i134wYq.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
  );