@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
@@ -1,38 +1,48 @@
1
- import { r as f, u as e, I as P, a as O, S as b, B as I } from "../incodeModule-DRRax-fx.js";
1
+ import { u as e, I as P, a as O, S as b, B as I } from "../button-Ca1tRSTI.js";
2
2
  import { createPhoneManager as C } from "@incodetech/core/phone";
3
3
  import { d as E } from "../vendor-preact-BXf0bkEs.js";
4
4
  import "@incodetech/core";
5
- import { O as v } from "../otpInput-CUC4ePyO.js";
6
- import { P as p } from "../page-BIegWWXP.js";
7
- import { PhoneInput as y } from "../phoneInput-CqWsl1aH.js";
8
- const w = ({ config: n, onFinish: o, onError: r }) => {
9
- const [t, s] = O(() => {
10
- if (!n)
11
- throw new Error("Phone config is required");
12
- return C({ config: n });
13
- }), [l, c] = E(!1);
5
+ import { O as y } from "../otpInput-cazUY73p.js";
6
+ import { P as l } from "../page-BVHG3h0V.js";
7
+ import { r as v } from "../incodeModule-aE-LkKwM.js";
8
+ import { PhoneInput as w } from "../phoneInput-Duuochsh.js";
9
+ const S = ({
10
+ config: n,
11
+ manager: i,
12
+ onFinish: r,
13
+ onError: a
14
+ }) => {
15
+ const [t, s] = O(
16
+ () => {
17
+ if (i) return i;
18
+ if (!n)
19
+ throw new Error("Phone config is required");
20
+ return C({ config: n });
21
+ },
22
+ { manageLifecycle: !i }
23
+ ), [c, m] = E(!1);
14
24
  if (t.status === "idle" || t.status === "loadingPrefill" || t.status === "inputting" || t.status === "submitting" || t.status === "sendingOtp") {
15
- const i = t.status === "idle" || t.status === "loadingPrefill" || t.status === "submitting" || t.status === "sendingOtp", a = t.status === "inputting" ? t.countryCode : "US", h = t.status === "inputting" ? t.phonePrefix : "+1", m = t.status === "inputting" ? t.prefilledPhone : void 0, g = t.status === "inputting" ? t.phoneError : void 0;
25
+ const o = t.status === "idle" || t.status === "loadingPrefill" || t.status === "submitting" || t.status === "sendingOtp", u = t.status === "inputting" ? t.countryCode : "US", h = t.status === "inputting" ? t.phonePrefix : "+1", f = t.status === "inputting" ? t.prefilledPhone : void 0, g = t.status === "inputting" ? t.phoneError : void 0;
16
26
  return /* @__PURE__ */ e(
17
- p,
27
+ l,
18
28
  {
19
29
  className: "IncodePhonePage",
20
30
  title: "Verify Phone",
21
31
  subtitle: n.otpVerification ? "We will send you a verification code" : void 0,
22
32
  children: [
23
33
  /* @__PURE__ */ e(
24
- y,
34
+ w,
25
35
  {
26
- countryCode: a,
36
+ countryCode: u,
27
37
  phonePrefix: h,
28
- prefilledPhone: m,
38
+ prefilledPhone: f,
29
39
  phoneError: g,
30
40
  optinEnabled: n.optinEnabled,
31
- disabled: i,
32
- onPhoneChange: (u, d) => {
33
- s.setPhoneNumber(u, d), c(d);
41
+ disabled: o,
42
+ onPhoneChange: (d, p) => {
43
+ s.setPhoneNumber(d, p), m(p);
34
44
  },
35
- onOptInChange: (u) => s.setOptInGranted(u)
45
+ onOptInChange: (d) => s.setOptInGranted(d)
36
46
  }
37
47
  ),
38
48
  /* @__PURE__ */ e(b, {}),
@@ -40,8 +50,8 @@ const w = ({ config: n, onFinish: o, onError: r }) => {
40
50
  I,
41
51
  {
42
52
  onClick: () => s.submit(),
43
- disabled: !l,
44
- isLoading: i,
53
+ disabled: !c,
54
+ isLoading: o,
45
55
  "data-testid": "phone-submit",
46
56
  children: "Continue"
47
57
  }
@@ -51,30 +61,43 @@ const w = ({ config: n, onFinish: o, onError: r }) => {
51
61
  );
52
62
  }
53
63
  if (t.status === "awaitingOtp" || t.status === "verifyingOtp" || t.status === "otpError") {
54
- const i = t.status === "verifyingOtp";
64
+ const o = t.status === "verifyingOtp";
55
65
  return /* @__PURE__ */ e(
56
- p,
66
+ l,
57
67
  {
58
68
  className: "IncodePhonePage IncodePhoneOtpPage",
59
69
  title: "Enter Verification Code",
60
70
  children: /* @__PURE__ */ e(
61
- v,
71
+ y,
62
72
  {
63
73
  resendTimer: t.status === "awaitingOtp" ? t.resendTimer : 0,
64
74
  canResend: t.status === "awaitingOtp" ? t.canResend : !1,
65
75
  error: t.status === "otpError" ? t.error : void 0,
66
- onSubmit: (a) => s.submitOtp(a),
76
+ onSubmit: (u) => s.submitOtp(u),
67
77
  onResend: () => s.resendOtp(),
68
78
  onBack: () => s.back(),
69
- isLoading: i
79
+ isLoading: o
70
80
  }
71
81
  )
72
82
  }
73
83
  );
74
84
  }
75
- return t.status === "finished" ? (o?.(), null) : (t.status === "error" && r?.(t.error), null);
76
- }, S = ({ config: n, onFinish: o, onError: r }) => /* @__PURE__ */ e(P, { children: n ? /* @__PURE__ */ e(w, { config: n, onFinish: o, onError: r }) : null });
77
- f(S, "incode-phone");
85
+ return t.status === "finished" ? (r?.(), null) : (t.status === "error" && a?.(t.error), null);
86
+ }, V = ({
87
+ config: n,
88
+ manager: i,
89
+ onFinish: r,
90
+ onError: a
91
+ }) => /* @__PURE__ */ e(P, { children: n ? /* @__PURE__ */ e(
92
+ S,
93
+ {
94
+ config: n,
95
+ manager: i,
96
+ onFinish: r,
97
+ onError: a
98
+ }
99
+ ) : null });
100
+ v(V, "incode-phone");
78
101
  export {
79
- S as Phone
102
+ V as Phone
80
103
  };
@@ -1,8 +1,8 @@
1
- import { u as n, S } from "./incodeModule-DRRax-fx.js";
1
+ import { u as n, S } from "./button-Ca1tRSTI.js";
2
2
  import { d as p, A as D, y as u, k as $ } from "./vendor-preact-BXf0bkEs.js";
3
- import { g as b, c as g } from "./countries-3p5tkqcx.js";
4
- import { C as z } from "./chevronDown-CInnOfOW.js";
5
- import { p as k, A } from "./AsYouType-BtKe6-rC.js";
3
+ import { g as b, c as g } from "./countries-C9bhJe4u.js";
4
+ import { C as z } from "./chevronDown-BUaOuf9J.js";
5
+ import { p as k, A } from "./AsYouType-CpH-Rmtj.js";
6
6
  const M = ({
7
7
  countryCode: P,
8
8
  prefilledPhone: a,
@@ -0,0 +1,107 @@
1
+ import { u as $ } from "./button-Ca1tRSTI.js";
2
+ import { d as g, A as q, T as I, y as B, q as u } from "./vendor-preact-BXf0bkEs.js";
3
+ import { c as E, g as l } from "./countries-C9bhJe4u.js";
4
+ import { I as F, D as M } from "./dropdownComposed-DBm7cotT.js";
5
+ import { p as P, A as b } from "./AsYouType-CpH-Rmtj.js";
6
+ const H = ({
7
+ id: p,
8
+ label: w,
9
+ countryCode: S = "US",
10
+ value: r,
11
+ placeholder: A = "(123) 123-6789",
12
+ error: m,
13
+ disabled: f = !1,
14
+ disableCountrySelector: D = !1,
15
+ required: N,
16
+ onChange: d,
17
+ "data-testid": T
18
+ }) => {
19
+ const [s, h] = g(S), [a, i] = g(""), y = q(!1), j = I(
20
+ () => E.map((t) => ({
21
+ value: t.code,
22
+ label: `${t.emoji} ${t.callingCode} ${t.name}`
23
+ })),
24
+ []
25
+ ), o = I(
26
+ () => l(s) ?? l("US"),
27
+ [s]
28
+ );
29
+ B(() => {
30
+ if (y.current || !r || !o) return;
31
+ y.current = !0;
32
+ const t = r.startsWith("+") ? r : `+${r}`, e = P(t);
33
+ if (e?.isValid() && e.country) {
34
+ e.country !== s && h(e.country);
35
+ const n = new b(e.country);
36
+ i(n.input(e.nationalNumber));
37
+ }
38
+ }, [r, o, s]);
39
+ const c = u(
40
+ (t, e) => {
41
+ const n = `${e.callingCode}${t.replace(/\D/g, "")}`;
42
+ try {
43
+ const C = P(n, e.code);
44
+ d?.(n, C?.isValid() ?? !1);
45
+ } catch {
46
+ d?.(n, !1);
47
+ }
48
+ },
49
+ [d]
50
+ ), v = u(
51
+ (t) => {
52
+ h(t);
53
+ const e = l(t);
54
+ e && a && c(a, e);
55
+ },
56
+ [a, c]
57
+ ), x = u(
58
+ (t) => {
59
+ const e = t.target.value;
60
+ if (!o) {
61
+ i(e);
62
+ return;
63
+ }
64
+ const n = `${o.callingCode}${e}`, V = new b(o.code).input(n).replace(o.callingCode, "").trimStart();
65
+ i(V), c(e, o);
66
+ },
67
+ [o, c]
68
+ ), L = `${p}-country`, U = `${p}-phone`;
69
+ return /* @__PURE__ */ $(
70
+ M,
71
+ {
72
+ id: L,
73
+ label: w,
74
+ options: j,
75
+ value: s,
76
+ onChange: v,
77
+ error: m,
78
+ disabled: f || D,
79
+ required: N,
80
+ searchable: !0,
81
+ searchPlaceholder: "Search countries...",
82
+ renderSelectedLabel: (t) => {
83
+ const e = l(t.value);
84
+ return e ? `${e.emoji} ${e.callingCode}` : t.label;
85
+ },
86
+ class: "IncodePhoneInputComposed",
87
+ siblingElement: /* @__PURE__ */ $(
88
+ F,
89
+ {
90
+ id: U,
91
+ type: "tel",
92
+ value: a,
93
+ onInput: x,
94
+ placeholder: A,
95
+ error: m,
96
+ disabled: f,
97
+ suppressMessages: !0,
98
+ "aria-label": "Phone number",
99
+ "data-testid": T
100
+ }
101
+ )
102
+ }
103
+ );
104
+ };
105
+ export {
106
+ H as P
107
+ };
@@ -1,6 +1,6 @@
1
- import { b as i, u as t } from "./incodeModule-DRRax-fx.js";
2
- import { S as e } from "./spinner-BI8nVld2.js";
3
- import "./uiConfig-DisZ_yFB.js";
1
+ import { b as i, u as t } from "./button-Ca1tRSTI.js";
2
+ import { S as e } from "./spinner-Cx3FPUCD.js";
3
+ import "./uiConfig-Z6RT23Sl.js";
4
4
  import "./vendor-preact-BXf0bkEs.js";
5
5
  const s = () => {
6
6
  const { t: r } = i();
@@ -1,32 +1,43 @@
1
- import { r as a, u as r, I as o, a as u } from "../incodeModule-DRRax-fx.js";
1
+ import { u as t, I as o, a as u } from "../button-Ca1tRSTI.js";
2
2
  import { createSelfieManager as l } from "@incodetech/core/selfie";
3
3
  import "../vendor-preact-BXf0bkEs.js";
4
4
  import "@incodetech/core";
5
- import { P as m } from "../baseTutorial-BmPYrCn3.js";
6
- import { P as f } from "../processing-BvPiE-YI.js";
7
- import { T as p, C as c } from "../tutorial-DdfxR0ct.js";
8
- const d = ({
5
+ import { P as m } from "../permissions-DwF2Ez1N.js";
6
+ import { r as f } from "../incodeModule-aE-LkKwM.js";
7
+ import { P as c } from "../processing-CDgOueI3.js";
8
+ import { T as p, C as d } from "../tutorial-Dagmccxh.js";
9
+ const g = ({
9
10
  config: e,
10
- onFinish: i,
11
- onError: s
11
+ manager: s,
12
+ onFinish: n,
13
+ onError: i
12
14
  }) => {
13
- const [t, n] = u(() => l({ config: e }));
14
- return t.status === "idle" || t.status === "loading" ? null : t.status === "tutorial" ? /* @__PURE__ */ r(p, { manager: n }) : t.status === "permissions" ? /* @__PURE__ */ r(
15
+ const [r, a] = u(
16
+ () => s ?? l({ config: e }),
17
+ { manageLifecycle: !s }
18
+ );
19
+ return r.status === "idle" || r.status === "loading" ? null : r.status === "tutorial" ? /* @__PURE__ */ t(p, { manager: a }) : r.status === "permissions" ? /* @__PURE__ */ t(
15
20
  m,
16
21
  {
17
- manager: n,
18
- permissionStatus: t.permissionStatus
22
+ manager: a,
23
+ permissionStatus: r.permissionStatus
19
24
  }
20
- ) : t.status === "capture" ? /* @__PURE__ */ r(c, { manager: n, state: t }) : t.status === "processing" ? /* @__PURE__ */ r(f, {}) : t.status === "finished" ? (i?.(), null) : t.status === "closed" ? (s?.(void 0), null) : (t.status === "error" && s?.(t.error), null);
21
- }, g = ({ config: e, onFinish: i, onError: s }) => /* @__PURE__ */ r(o, { children: /* @__PURE__ */ r("main", { class: "IncodeSelfieMain", children: e ? /* @__PURE__ */ r(
22
- d,
25
+ ) : r.status === "capture" ? /* @__PURE__ */ t(d, { manager: a, state: r }) : r.status === "processing" ? /* @__PURE__ */ t(c, {}) : r.status === "finished" ? (n?.(), null) : r.status === "closed" ? (i?.(void 0), null) : (r.status === "error" && i?.(r.error), null);
26
+ }, S = ({
27
+ config: e,
28
+ manager: s,
29
+ onFinish: n,
30
+ onError: i
31
+ }) => /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t("main", { class: "IncodeSelfieMain", children: e ? /* @__PURE__ */ t(
32
+ g,
23
33
  {
24
34
  config: e,
25
- onFinish: i,
26
- onError: s
35
+ manager: s,
36
+ onFinish: n,
37
+ onError: i
27
38
  }
28
39
  ) : null }) });
29
- a(g, "incode-selfie");
40
+ f(S, "incode-selfie");
30
41
  export {
31
- g as Selfie
42
+ S as Selfie
32
43
  };
@@ -103,6 +103,10 @@
103
103
  display: flex;
104
104
  }
105
105
 
106
+ .grid {
107
+ display: grid;
108
+ }
109
+
106
110
  .hidden {
107
111
  display: none;
108
112
  }
@@ -111,6 +115,10 @@
111
115
  display: inline-flex;
112
116
  }
113
117
 
118
+ .flex-shrink {
119
+ flex-shrink: 1;
120
+ }
121
+
114
122
  .transform {
115
123
  transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
116
124
  }
@@ -1,8 +1,8 @@
1
- import { u as e, d as p, L as h, S as o } from "./incodeModule-DRRax-fx.js";
2
- import { D as S, A as u, y as I, k as i } from "./vendor-preact-BXf0bkEs.js";
3
- const m = S(
1
+ import { u as e, d as l, L as h, S as o } from "./button-Ca1tRSTI.js";
2
+ import { D as y, A as u, y as I, k as i } from "./vendor-preact-BXf0bkEs.js";
3
+ const S = y(
4
4
  ({ children: n, className: r, ...s }, a) => /* @__PURE__ */ e("h2", { ref: a, class: `IncodeTitle ${r ?? ""}`, ...s, children: n })
5
- ), g = ({ children: n, className: r }) => /* @__PURE__ */ e("h4", { class: `IncodeTypographyH4 ${r ?? ""}`, children: n }), z = ({ children: n, className: r }) => /* @__PURE__ */ e("h5", { class: `IncodeTypographyH5 ${r ?? ""}`, children: n }), y = {
5
+ ), H = ({ children: n, className: r }) => /* @__PURE__ */ e("h1", { class: `IncodeTypographyH1 ${r ?? ""}`, children: n }), f = ({ children: n, className: r }) => /* @__PURE__ */ e("h3", { class: `IncodeTypographyH3 ${r ?? ""}`, children: n }), z = ({ children: n, className: r }) => /* @__PURE__ */ e("h4", { class: `IncodeTypographyH4 ${r ?? ""}`, children: n }), $ = ({ children: n, className: r }) => /* @__PURE__ */ e("h5", { class: `IncodeTypographyH5 ${r ?? ""}`, children: n }), T = {
6
6
  small: 24,
7
7
  medium: 48,
8
8
  large: 64
@@ -13,11 +13,11 @@ const m = S(
13
13
  fullScreen: a = !0,
14
14
  className: d
15
15
  }) => {
16
- const l = y[s], c = u(null);
16
+ const p = T[s], c = u(null);
17
17
  I(() => {
18
18
  n && c.current?.focus();
19
19
  }, [n]);
20
- const t = p(
20
+ const t = l(
21
21
  "IncodeSpinner",
22
22
  a && "IncodeSpinnerFullScreen",
23
23
  d
@@ -33,12 +33,12 @@ const m = S(
33
33
  role: "status",
34
34
  "aria-live": "polite",
35
35
  children: /* @__PURE__ */ e("div", { class: "IncodeSpinnerContent", children: [
36
- /* @__PURE__ */ e(h, { size: l }),
36
+ /* @__PURE__ */ e(h, { size: p }),
37
37
  (n || r) && /* @__PURE__ */ e(i, { children: [
38
38
  /* @__PURE__ */ e(o, { size: 16 }),
39
39
  /* @__PURE__ */ e("div", { class: "IncodeSpinnerText", children: [
40
40
  n && /* @__PURE__ */ e(
41
- m,
41
+ S,
42
42
  {
43
43
  ref: c,
44
44
  tabIndex: -1,
@@ -58,7 +58,9 @@ const m = S(
58
58
  };
59
59
  export {
60
60
  v as S,
61
- m as T,
62
- g as a,
63
- z as b
61
+ S as T,
62
+ H as a,
63
+ f as b,
64
+ z as c,
65
+ $ as d
64
66
  };
@@ -1,4 +1,4 @@
1
- import { u as t } from "./incodeModule-DRRax-fx.js";
1
+ import { u as t } from "./button-Ca1tRSTI.js";
2
2
  const i = ({ size: s = 64 }) => /* @__PURE__ */ t(
3
3
  "svg",
4
4
  {
@@ -1,11 +1,11 @@
1
- import { u as t, S as T, b as O, d as w, B as A, L as B } from "./incodeModule-DRRax-fx.js";
1
+ import { u as t, S as T, b as O, d as w, B as A, L as B } from "./button-Ca1tRSTI.js";
2
2
  import { A as s, y as E, g as F, D as M, q as V, k as I, d as h } from "./vendor-preact-BXf0bkEs.js";
3
- import "./uiConfig-DisZ_yFB.js";
4
- import { S as y } from "./successIcon-BaTWSwWN.js";
5
- import { P as D } from "./page-BIegWWXP.js";
6
- import { T as N, S as P } from "./spinner-BI8nVld2.js";
7
- import { E as H } from "./errorContent-Dcw7Uy36.js";
8
- import { B as x } from "./baseTutorial-BmPYrCn3.js";
3
+ import "./uiConfig-Z6RT23Sl.js";
4
+ import { S as y } from "./successIcon-BybULRRU.js";
5
+ import { P as D } from "./page-BVHG3h0V.js";
6
+ import { T as N, S as P } from "./spinner-Cx3FPUCD.js";
7
+ import { E as H } from "./errorContent-yUAdbZ5o.js";
8
+ import { B as x } from "./permissions-DwF2Ez1N.js";
9
9
  const L = ({
10
10
  icon: i,
11
11
  title: n,
@@ -1,18 +1,23 @@
1
1
  import { AuthenticationConfig } from '@incodetech/core/authentication';
2
+ import { AuthenticationManager } from '@incodetech/core/authentication';
2
3
  import { FC } from 'preact/compat';
3
4
 
4
5
  export declare const Authentication: FC<AuthenticationProps>;
5
6
 
6
7
  declare type AuthenticationProps = IncodeModuleProps<AuthenticationConfig & {
7
8
  authHint?: string;
8
- }>;
9
+ }, void, AuthenticationManager>;
9
10
 
10
- declare type IncodeModuleProps<TConfig, TResult = void> = {
11
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
11
12
  /**
12
13
  * Module configuration required to render the flow.
13
14
  * For Web Components, this is typically assigned via `element.config = ...`.
14
15
  */
15
16
  config?: TConfig;
17
+ /**
18
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
19
+ */
20
+ manager?: TManager;
16
21
  /**
17
22
  * Callback invoked when the module completes successfully.
18
23
  * @param result - Optional result data from the module completion
@@ -28,6 +33,8 @@ export { }
28
33
 
29
34
  declare global {
30
35
  interface HTMLElementTagNameMap {
31
- 'incode-authentication': HTMLElement & IncodeModuleProps<AuthenticationConfig & { authHint?: string }>;
36
+ 'incode-authentication': HTMLElement & IncodeModuleProps<AuthenticationConfig & { authHint?: string },
37
+ void,
38
+ AuthenticationManager>;
32
39
  }
33
40
  }
@@ -5,12 +5,16 @@ export declare const CurpValidation: FC<CurpValidationProps>;
5
5
 
6
6
  declare type CurpValidationProps = IncodeModuleProps<CurpValidationConfig>;
7
7
 
8
- declare type IncodeModuleProps<TConfig, TResult = void> = {
8
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
9
  /**
10
10
  * Module configuration required to render the flow.
11
11
  * For Web Components, this is typically assigned via `element.config = ...`.
12
12
  */
13
13
  config?: TConfig;
14
+ /**
15
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
16
+ */
17
+ manager?: TManager;
14
18
  /**
15
19
  * Callback invoked when the module completes successfully.
16
20
  * @param result - Optional result data from the module completion
@@ -1,4 +1,5 @@
1
1
  import { EmailConfig } from '@incodetech/core/email';
2
+ import { EmailManager } from '@incodetech/core/email';
2
3
  import { FC } from 'preact/compat';
3
4
 
4
5
  /**
@@ -29,14 +30,18 @@ export declare const Email: FC<EmailProps>;
29
30
  /**
30
31
  * Props for the Email component
31
32
  */
32
- declare type EmailProps = IncodeModuleProps<EmailConfig>;
33
+ declare type EmailProps = IncodeModuleProps<EmailConfig, void, EmailManager>;
33
34
 
34
- declare type IncodeModuleProps<TConfig, TResult = void> = {
35
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
35
36
  /**
36
37
  * Module configuration required to render the flow.
37
38
  * For Web Components, this is typically assigned via `element.config = ...`.
38
39
  */
39
40
  config?: TConfig;
41
+ /**
42
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
43
+ */
44
+ manager?: TManager;
40
45
  /**
41
46
  * Callback invoked when the module completes successfully.
42
47
  * @param result - Optional result data from the module completion
@@ -52,6 +57,6 @@ export { }
52
57
 
53
58
  declare global {
54
59
  interface HTMLElementTagNameMap {
55
- 'incode-email': HTMLElement & IncodeModuleProps<EmailConfig>;
60
+ 'incode-email': HTMLElement & IncodeModuleProps<EmailConfig, void, EmailManager>;
56
61
  }
57
62
  }