@incodetech/web 0.0.0-dev-20260402-728ce7f → 0.0.0-dev-20260403-eccc51c

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 (59) hide show
  1. package/dist/{Trans-DiTufE_D.js → Trans-aTzdT_SA.js} +1 -1
  2. package/dist/{addressAutocomplete-BSE71Kua.js → addressAutocomplete-C8-wL1j_.js} +4 -4
  3. package/dist/antifraud/antifraud.es.js +18 -0
  4. package/dist/antifraud/styles.css +2 -0
  5. package/dist/authentication/authentication.es.js +3 -3
  6. package/dist/base.css +8 -0
  7. package/dist/button-CE9kRlem.js +184 -0
  8. package/dist/{cameraView-DXT7CWqE.js → cameraView-C2X7klNb.js} +1 -1
  9. package/dist/{captureOverlay-wQmz2Z5r.js → captureOverlay-tCb4R4WE.js} +18 -17
  10. package/dist/{checkbox-wo8qk7tM.js → checkbox-B5X-mfqq.js} +2 -2
  11. package/dist/{chevronDown-BksFjKhp.js → chevronDown-DSHaPKbi.js} +1 -1
  12. package/dist/{closeIcon-5Xq6MCZa.js → closeIcon-9Hc97omv.js} +1 -1
  13. package/dist/consent/consent.es.js +24 -23
  14. package/dist/curp-validation/curp-validation.es.js +75 -74
  15. package/dist/{dateInputComposed-D5kgh_aC.js → dateInputComposed-C7PCzh-U.js} +3 -3
  16. package/dist/{documentCapture-8ZOwr7xp.js → documentCapture-C0mO-RGE.js} +111 -110
  17. package/dist/{dropdownComposed-CzAsPPqv.js → dropdownComposed-BpinYlrx.js} +4 -4
  18. package/dist/{ekybModule-RZwNRg6E.js → ekybModule-Dr6LJUg-.js} +18 -17
  19. package/dist/{ekycModule-BgFGstuw.js → ekycModule-C3mswduI.js} +10 -9
  20. package/dist/email/email.es.js +41 -38
  21. package/dist/{errorContent-CnY-Deoi.js → errorContent-Cb8nmQAE.js} +14 -13
  22. package/dist/{errorIcon-DOuc6ONw.js → errorIcon-DEARBrGx.js} +1 -1
  23. package/dist/extensibility.es.js +47 -45
  24. package/dist/{faceMatch-DPa3pI88.js → faceMatch-DbDp7D3d.js} +17 -16
  25. package/dist/{fileIcon-DEli4GR_.js → fileIcon-CCSvS10T.js} +1 -1
  26. package/dist/{flipAnimation-r4wJkacO.js → flipAnimation-BqV462TA.js} +34 -33
  27. package/dist/flow/flow.es.js +126 -121
  28. package/dist/{formField-BoozuV2w.js → formField-CP6wDdfA.js} +29 -28
  29. package/dist/geolocation/geolocation.es.js +28 -27
  30. package/dist/governmentValidation/governmentValidation.es.js +8 -8
  31. package/dist/id/id.es.js +12 -11
  32. package/dist/index.es.js +16 -15
  33. package/dist/{inputComposed-QzDneavl.js → inputComposed-fUbAGrDy.js} +4 -4
  34. package/dist/{uiConfig-DmIn-g8M.js → instance-BWYzq8dk.js} +218 -238
  35. package/dist/loadingIcon-DmuPXh70.js +195 -0
  36. package/dist/mandatoryConsent-5xPI0cor.js +94 -0
  37. package/dist/{manualCaptureButton-CPZ2xxEI.js → manualCaptureButton-BvFmTyJe.js} +21 -20
  38. package/dist/{numberedStep-DiiXAKRd.js → numberedStep-DwUB__mh.js} +1 -1
  39. package/dist/otpInput-BFXhqFRT.js +156 -0
  40. package/dist/{page-D4OThpFS.js → page-SrUl0qtN.js} +16 -15
  41. package/dist/{permissions-BeU3HuVB.js → permissions-DT4Fz9MR.js} +14 -13
  42. package/dist/phone/phone.es.js +55 -45
  43. package/dist/{phoneInput-nmmFFaXI.js → phoneInput-CGr8TxOO.js} +2 -2
  44. package/dist/{phoneInputComposed-BAFZQ4Y8.js → phoneInputComposed-Cm9O2Jba.js} +5 -5
  45. package/dist/{processing-Ss26Ad0W.js → processing-szVOCQwZ.js} +3 -3
  46. package/dist/{richText-Bxe6Ywla.js → richText-cspvNz2a.js} +1 -1
  47. package/dist/selfie/selfie.es.js +4 -4
  48. package/dist/signature/signature.es.js +10 -9
  49. package/dist/{spinner-CLwSl2tJ.js → spinner-DygONskw.js} +2 -2
  50. package/dist/{successIcon-BZphSsQr.js → successIcon-Bjsdc4lF.js} +1 -1
  51. package/dist/{tutorial-BcX5EaL9.js → tutorial-Cdz1025D.js} +19 -18
  52. package/dist/types/antifraud.d.ts +35 -0
  53. package/dist/{typography-CBPoLoAP.js → typography-BDACYR5i.js} +1 -1
  54. package/dist/uiConfig-Dnt-2YWB.js +23 -0
  55. package/dist/{warningIcon-xqaHPxjF.js → warningIcon-DQq_MrOB.js} +1 -1
  56. package/package.json +9 -2
  57. package/dist/button-DXIWeie9.js +0 -373
  58. package/dist/mandatoryConsent-fZUmh40x.js +0 -93
  59. package/dist/otpInput-B85heGC5.js +0 -148
@@ -1,16 +1,17 @@
1
- import { u as C, c as S, B as L, b as c } from "./button-DXIWeie9.js";
2
- import { L as P, M as a } from "./manualCaptureButton-CPZ2xxEI.js";
3
- import { P as f } from "./page-D4OThpFS.js";
1
+ import { u as C, c as S, b as c } from "./loadingIcon-DmuPXh70.js";
2
+ import { B as L } from "./button-CE9kRlem.js";
3
+ import { L as P, M as a } from "./manualCaptureButton-BvFmTyJe.js";
4
+ import { P as f } from "./page-SrUl0qtN.js";
4
5
  import { _ as i, k as I, A as _, y as H } from "./vendor-preact-BoMmvSgn.js";
5
6
  import { getBrowser as F, getDeviceClass as b } from "@incodetech/core";
6
7
  import { u as E } from "./useMediaQuery-lJdQBmC2.js";
7
- import "./uiConfig-DmIn-g8M.js";
8
- import { S as T } from "./spinner-CLwSl2tJ.js";
9
- import { c as V, T as x, d as D } from "./typography-CBPoLoAP.js";
10
- import { T as O } from "./Trans-DiTufE_D.js";
11
- import { N as U } from "./numberedStep-DiiXAKRd.js";
12
- import { W as A } from "./warningIcon-xqaHPxjF.js";
13
- const _1 = ({
8
+ import "./instance-BWYzq8dk.js";
9
+ import { S as T } from "./spinner-DygONskw.js";
10
+ import { c as V, T as x, d as D } from "./typography-BDACYR5i.js";
11
+ import { T as O } from "./Trans-aTzdT_SA.js";
12
+ import { N as U } from "./numberedStep-DwUB__mh.js";
13
+ import { W as A } from "./warningIcon-DQq_MrOB.js";
14
+ const H1 = ({
14
15
  className: e = "",
15
16
  animationData: t,
16
17
  title: n,
@@ -639,7 +640,7 @@ function a1({
639
640
  }
640
641
  );
641
642
  }
642
- const H1 = ({
643
+ const x1 = ({
643
644
  manager: e,
644
645
  permissionStatus: t
645
646
  }) => {
@@ -703,6 +704,6 @@ const H1 = ({
703
704
  );
704
705
  };
705
706
  export {
706
- _1 as B,
707
- H1 as P
707
+ H1 as B,
708
+ x1 as P
708
709
  };
@@ -1,39 +1,40 @@
1
- import { u as e, I as O, b as C, a as E, S as g, B as v } from "../button-DXIWeie9.js";
2
- import { createPhoneManager as w } from "@incodetech/core/phone";
3
- import { d as S } from "../vendor-preact-BoMmvSgn.js";
4
- import "../uiConfig-DmIn-g8M.js";
1
+ import { u as n, I as O, b as C, a as E, S as g } from "../loadingIcon-DmuPXh70.js";
2
+ import { createPhoneManager as v } from "@incodetech/core/phone";
3
+ import { d as w } from "../vendor-preact-BoMmvSgn.js";
4
+ import "../instance-BWYzq8dk.js";
5
5
  import "@incodetech/core";
6
- import { C as y } from "../checkbox-wo8qk7tM.js";
7
- import { O as k } from "../otpInput-B85heGC5.js";
8
- import { P } from "../page-D4OThpFS.js";
9
- import { P as R } from "../phoneInputComposed-BAFZQ4Y8.js";
6
+ import { B as S } from "../button-CE9kRlem.js";
7
+ import { C as y } from "../checkbox-B5X-mfqq.js";
8
+ import { O as k } from "../otpInput-BFXhqFRT.js";
9
+ import { P } from "../page-SrUl0qtN.js";
10
+ import { P as R } from "../phoneInputComposed-Cm9O2Jba.js";
10
11
  import { r as V } from "../incodeModule-C4XIllao.js";
11
12
  const B = ({
12
13
  config: r,
13
14
  manager: s,
14
- onFinish: d,
15
- onError: p
15
+ onFinish: p,
16
+ onError: d
16
17
  }) => {
17
- const { t: n } = C(), [t, o] = E(
18
+ const { t: e } = C(), [t, o] = E(
18
19
  () => {
19
20
  if (s) return s;
20
21
  if (!r)
21
22
  throw new Error("Phone config is required");
22
- return w({ config: r });
23
+ return v({ config: r });
23
24
  },
24
25
  { manageLifecycle: !s }
25
- ), [b, I] = S(!1);
26
+ ), [b, I] = w(!1);
26
27
  if (t.status === "idle" || t.status === "loadingPrefill" || t.status === "inputting" || t.status === "submitting" || t.status === "sendingInitialOtp") {
27
- const i = t.status === "idle" || t.status === "loadingPrefill" || t.status === "submitting" || t.status === "sendingInitialOtp", a = t.status === "inputting" ? t.countryCode : "US", l = t.status === "inputting" ? t.prefilledPhone : void 0, c = t.status === "inputting" && t.phoneError ? n(t.phoneError) : void 0, u = t.status === "inputting" ? t.otpVerification ?? !1 : !1, h = t.status === "inputting" ? t.optinEnabled ?? !1 : !1;
28
- return /* @__PURE__ */ e(
28
+ const i = t.status === "idle" || t.status === "loadingPrefill" || t.status === "submitting" || t.status === "sendingInitialOtp", a = t.status === "inputting" ? t.countryCode : "US", l = t.status === "inputting" ? t.prefilledPhone : void 0, c = t.status === "inputting" && t.phoneError ? e(t.phoneError) : void 0, u = t.status === "inputting" ? t.otpVerification ?? !1 : !1, h = t.status === "inputting" ? t.optinEnabled ?? !1 : !1;
29
+ return /* @__PURE__ */ n(
29
30
  P,
30
31
  {
31
32
  className: "IncodePhonePage",
32
- title: n("phone.verify"),
33
- subtitle: u ? n("email.willSendCode") : void 0,
33
+ title: e("phone.verify"),
34
+ subtitle: u ? e("email.willSendCode") : void 0,
34
35
  children: [
35
- /* @__PURE__ */ e("div", { class: "IncodePhoneInputContainer", children: [
36
- /* @__PURE__ */ e(
36
+ /* @__PURE__ */ n("div", { class: "IncodePhoneInputContainer", children: [
37
+ /* @__PURE__ */ n(
37
38
  R,
38
39
  {
39
40
  id: "phone",
@@ -48,61 +49,70 @@ const B = ({
48
49
  showErrorIcon: !0
49
50
  }
50
51
  ),
51
- /* @__PURE__ */ e(g, { size: 16 }),
52
- h && /* @__PURE__ */ e(
52
+ /* @__PURE__ */ n(g, { size: 16 }),
53
+ h && /* @__PURE__ */ n(
53
54
  y,
54
55
  {
55
56
  id: "phone-optin",
56
- label: n("phone.optIn"),
57
+ label: e("phone.optIn"),
57
58
  size: "s",
58
59
  onChange: (m) => o.setOptInGranted(m.target.checked)
59
60
  }
60
61
  )
61
62
  ] }),
62
- /* @__PURE__ */ e(g, {}),
63
- /* @__PURE__ */ e(
64
- v,
63
+ /* @__PURE__ */ n(g, {}),
64
+ /* @__PURE__ */ n(
65
+ S,
65
66
  {
66
67
  onClick: () => o.submit(),
67
68
  disabled: !b,
68
69
  isLoading: i,
69
70
  "data-testid": "phone-submit",
70
- children: n("common.continue")
71
+ children: e("common.continue")
71
72
  }
72
73
  )
73
74
  ]
74
- }
75
+ },
76
+ "phone-input"
75
77
  );
76
78
  }
77
79
  if (t.status === "awaitingOtp" || t.status === "verifyingOtp" || t.status === "otpError" || t.status === "resendingOtp") {
78
80
  const i = t.status === "verifyingOtp", a = t.status === "otpError", l = t.status === "awaitingOtp", c = t.status === "resendingOtp", u = l || a || i;
79
- return /* @__PURE__ */ e(P, { className: "IncodePhonePage", title: n("otp.enterCodeSMS"), children: /* @__PURE__ */ e(
80
- k,
81
+ return /* @__PURE__ */ n(
82
+ P,
81
83
  {
82
- resendTimer: u ? t.resendTimer : 0,
83
- canResend: u ? t.canResend : !1,
84
- isLoading: i,
85
- disabled: c || i,
86
- error: a ? n(t.otpError) : void 0,
87
- onSubmit: (h) => o.submitOtp(h),
88
- onResend: () => o.resendOtp(),
89
- onBack: () => o.back()
90
- }
91
- ) });
84
+ className: "IncodePhonePage",
85
+ title: e("otp.enterCodeSMS"),
86
+ children: /* @__PURE__ */ n(
87
+ k,
88
+ {
89
+ resendTimer: u ? t.resendTimer : 0,
90
+ canResend: u ? t.canResend : !1,
91
+ isLoading: i,
92
+ disabled: c || i,
93
+ error: a ? e(t.otpError) : void 0,
94
+ onSubmit: (h) => o.submitOtp(h),
95
+ onResend: () => o.resendOtp(),
96
+ onBack: () => o.back()
97
+ }
98
+ )
99
+ },
100
+ "phone-otp"
101
+ );
92
102
  }
93
- return t.status === "finished" ? (d?.(), null) : (t.status === "error" && p?.(t.error), null);
103
+ return t.status === "finished" ? (p?.(), null) : (t.status === "error" && d?.(t.error), null);
94
104
  }, L = ({
95
105
  config: r,
96
106
  manager: s,
97
- onFinish: d,
98
- onError: p
99
- }) => /* @__PURE__ */ e(O, { children: r || s ? /* @__PURE__ */ e(
107
+ onFinish: p,
108
+ onError: d
109
+ }) => /* @__PURE__ */ n(O, { children: r || s ? /* @__PURE__ */ n(
100
110
  B,
101
111
  {
102
112
  config: r,
103
113
  manager: s,
104
- onFinish: d,
105
- onError: p
114
+ onFinish: p,
115
+ onError: d
106
116
  }
107
117
  ) : null });
108
118
  V(L, "incode-phone");
@@ -1,7 +1,7 @@
1
- import { u as n, S } from "./button-DXIWeie9.js";
1
+ import { u as n, S } from "./loadingIcon-DmuPXh70.js";
2
2
  import { d as p, A as D, y as u, k as $ } from "./vendor-preact-BoMmvSgn.js";
3
3
  import { g as b, c as g } from "./countries-DfLkrF0x.js";
4
- import { C as z } from "./chevronDown-BksFjKhp.js";
4
+ import { C as z } from "./chevronDown-DSHaPKbi.js";
5
5
  import { p as k, A } from "./AsYouType-D1H_js4X.js";
6
6
  const M = ({
7
7
  countryCode: P,
@@ -1,10 +1,10 @@
1
- import { u as s } from "./button-DXIWeie9.js";
1
+ import { u as s } from "./loadingIcon-DmuPXh70.js";
2
2
  import { D as J, d as D, A as x, T as M, y as Q, q as A } from "./vendor-preact-BoMmvSgn.js";
3
3
  import { w as X, g as h, c as j, b as k } from "./countries-DfLkrF0x.js";
4
- import { D as z } from "./dropdownComposed-CzAsPPqv.js";
5
- import { E as _ } from "./errorIcon-DOuc6ONw.js";
6
- import { S as q } from "./successIcon-BZphSsQr.js";
7
- import { a as e2 } from "./inputComposed-QzDneavl.js";
4
+ import { D as z } from "./dropdownComposed-BpinYlrx.js";
5
+ import { E as _ } from "./errorIcon-DEARBrGx.js";
6
+ import { S as q } from "./successIcon-Bjsdc4lF.js";
7
+ import { a as e2 } from "./inputComposed-fUbAGrDy.js";
8
8
  import { P as n2, p as L, A as g } from "./AsYouType-D1H_js4X.js";
9
9
  function o2(e, o, r) {
10
10
  if (o[e])
@@ -1,6 +1,6 @@
1
- import { b as i, u as t } from "./button-DXIWeie9.js";
2
- import { S as e } from "./spinner-CLwSl2tJ.js";
3
- import "./uiConfig-DmIn-g8M.js";
1
+ import { b as i, u as t } from "./loadingIcon-DmuPXh70.js";
2
+ import { S as e } from "./spinner-DygONskw.js";
3
+ import "./instance-BWYzq8dk.js";
4
4
  import "./vendor-preact-BoMmvSgn.js";
5
5
  const s = () => {
6
6
  const { t: r } = i();
@@ -1,7 +1,7 @@
1
1
  var Zn = Object.defineProperty;
2
2
  var jn = (r, e, t) => e in r ? Zn(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var A = (r, e, t) => jn(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { u as an } from "./button-DXIWeie9.js";
4
+ import { u as an } from "./loadingIcon-DmuPXh70.js";
5
5
  import { _ as Yn, x as Xn } from "./vendor-preact-BoMmvSgn.js";
6
6
  const {
7
7
  entries: yn,
@@ -1,11 +1,11 @@
1
- import { u as e, I as u, a } from "../button-DXIWeie9.js";
1
+ import { u as e, I as u, a } from "../loadingIcon-DmuPXh70.js";
2
2
  import { createSelfieManager as l } from "@incodetech/core/selfie";
3
3
  import "../vendor-preact-BoMmvSgn.js";
4
4
  import "@incodetech/core";
5
- import { P as m } from "../permissions-BeU3HuVB.js";
5
+ import { P as m } from "../permissions-DT4Fz9MR.js";
6
6
  import { r as f } from "../incodeModule-C4XIllao.js";
7
- import { P as p } from "../processing-Ss26Ad0W.js";
8
- import { T as c, C as d } from "../tutorial-BcX5EaL9.js";
7
+ import { P as p } from "../processing-szVOCQwZ.js";
8
+ import { T as c, C as d } from "../tutorial-Cdz1025D.js";
9
9
  const g = ({
10
10
  config: s,
11
11
  manager: t,
@@ -1,15 +1,16 @@
1
1
  var O = Object.defineProperty;
2
2
  var L = (o, n, t) => n in o ? O(o, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[n] = t;
3
3
  var g = (o, n, t) => L(o, typeof n != "symbol" ? n + "" : n, t);
4
- import { u as w, I, b as B, a as A, S as k, B as T } from "../button-DXIWeie9.js";
4
+ import { u as w, I, b as B, a as A, S as k } from "../loadingIcon-DmuPXh70.js";
5
5
  import { D as R, A as P, q as W, F, y as E, d as N, T as z } from "../vendor-preact-BoMmvSgn.js";
6
6
  import "@incodetech/core";
7
- import "../uiConfig-DmIn-g8M.js";
8
- import { P as M } from "../page-D4OThpFS.js";
7
+ import "../instance-BWYzq8dk.js";
8
+ import { P as T } from "../page-SrUl0qtN.js";
9
9
  import { r as $ } from "../incodeModule-C4XIllao.js";
10
10
  import { createSignatureManager as G } from "@incodetech/core/signature";
11
- import { S as V } from "../successIcon-BZphSsQr.js";
12
- import { f as q } from "../typography-CBPoLoAP.js";
11
+ import { B as M } from "../button-CE9kRlem.js";
12
+ import { S as V } from "../successIcon-Bjsdc4lF.js";
13
+ import { f as q } from "../typography-BDACYR5i.js";
13
14
  var b = class {
14
15
  constructor(o, n, t, e) {
15
16
  g(this, "x");
@@ -637,7 +638,7 @@ const et = ({
637
638
  }
638
639
  }
639
640
  };
640
- return i.status === "idle" || i.status === "finished" || i.status === "error" ? null : i.status === "success" ? /* @__PURE__ */ w(M, { className: "IncodeSignature IncodeSignatureFadeIn", children: /* @__PURE__ */ w(
641
+ return i.status === "idle" || i.status === "finished" || i.status === "error" ? null : i.status === "success" ? /* @__PURE__ */ w(T, { className: "IncodeSignature IncodeSignatureFadeIn", children: /* @__PURE__ */ w(
641
642
  "div",
642
643
  {
643
644
  class: "IncodeSignatureContent IncodeSignatureSuccess",
@@ -649,7 +650,7 @@ const et = ({
649
650
  ]
650
651
  }
651
652
  ) }) : /* @__PURE__ */ w(
652
- M,
653
+ T,
653
654
  {
654
655
  className: "IncodeSignature IncodeSignatureFadeIn",
655
656
  title: v(d),
@@ -674,7 +675,7 @@ const et = ({
674
675
  ),
675
676
  /* @__PURE__ */ w(k, { size: 8 }),
676
677
  /* @__PURE__ */ w(
677
- T,
678
+ M,
678
679
  {
679
680
  variant: "link",
680
681
  disabled: !a || u,
@@ -684,7 +685,7 @@ const et = ({
684
685
  )
685
686
  ] }),
686
687
  /* @__PURE__ */ w("div", { class: "IncodeSignatureButtonContainer", children: /* @__PURE__ */ w(
687
- T,
688
+ M,
688
689
  {
689
690
  disabled: !f,
690
691
  isLoading: u,
@@ -1,6 +1,6 @@
1
- import { c as p, u as n, d as S, S as a } from "./button-DXIWeie9.js";
1
+ import { c as p, u as n, d as S, S as a } from "./loadingIcon-DmuPXh70.js";
2
2
  import { A as m, y as u, k as s } from "./vendor-preact-BoMmvSgn.js";
3
- import { T as I } from "./typography-CBPoLoAP.js";
3
+ import { T as I } from "./typography-BDACYR5i.js";
4
4
  const f = {
5
5
  small: 24,
6
6
  medium: 48,
@@ -1,4 +1,4 @@
1
- import { u as t } from "./button-DXIWeie9.js";
1
+ import { u as t } from "./loadingIcon-DmuPXh70.js";
2
2
  const i = ({ size: s = 64 }) => /* @__PURE__ */ t(
3
3
  "svg",
4
4
  {
@@ -1,13 +1,14 @@
1
- import { u as t, S as _, b as g, c as N, B as F, d as y } from "./button-DXIWeie9.js";
2
- import { A as a, y as p, g as w, q as V, k as L, d as I } from "./vendor-preact-BoMmvSgn.js";
3
- import "./uiConfig-DmIn-g8M.js";
4
- import { S as P } from "./successIcon-BZphSsQr.js";
5
- import { P as D } from "./page-D4OThpFS.js";
6
- import { T as v } from "./typography-CBPoLoAP.js";
7
- import { E as B } from "./errorContent-CnY-Deoi.js";
8
- import { a as M } from "./manualCaptureButton-CPZ2xxEI.js";
9
- import { S as U } from "./spinner-CLwSl2tJ.js";
10
- import { B as H } from "./permissions-BeU3HuVB.js";
1
+ import { u as t, S as _, b as g, c as N, d as F } from "./loadingIcon-DmuPXh70.js";
2
+ import { A as a, y as p, g as y, q as w, k as L, d as I } from "./vendor-preact-BoMmvSgn.js";
3
+ import "./instance-BWYzq8dk.js";
4
+ import { B as V } from "./button-CE9kRlem.js";
5
+ import { S as P } from "./successIcon-Bjsdc4lF.js";
6
+ import { P as D } from "./page-SrUl0qtN.js";
7
+ import { T as v } from "./typography-BDACYR5i.js";
8
+ import { E as B } from "./errorContent-Cb8nmQAE.js";
9
+ import { a as M } from "./manualCaptureButton-BvFmTyJe.js";
10
+ import { S as U } from "./spinner-DygONskw.js";
11
+ import { B as H } from "./permissions-DT4Fz9MR.js";
11
12
  const h = ({
12
13
  icon: i,
13
14
  title: n,
@@ -217,7 +218,7 @@ const h = ({
217
218
  }, b = ({
218
219
  borderState: i = "idle"
219
220
  }) => {
220
- const n = w(), e = i === "loading" || i === "capturing", r = G(i), o = e ? `url(#${n})` : r;
221
+ const n = y(), e = i === "loading" || i === "capturing", r = G(i), o = e ? `url(#${n})` : r;
221
222
  return /* @__PURE__ */ t(
222
223
  "div",
223
224
  {
@@ -287,7 +288,7 @@ const h = ({
287
288
  centerFace: e("notifications.centerFaceV2"),
288
289
  getReady: e("notifications.getReady"),
289
290
  capturing: e("idv2.capture.takingPhoto")
290
- }[i] ?? "", f = V((R) => {
291
+ }[i] ?? "", f = w((R) => {
291
292
  const S = Date.now(), O = o.current;
292
293
  if (R === O.message && S - O.at < 200) return;
293
294
  o.current = { message: R, at: S };
@@ -328,7 +329,7 @@ const h = ({
328
329
  ),
329
330
  C ? /* @__PURE__ */ t("div", { class: "IncodeNotification", "aria-hidden": "true", children: /* @__PURE__ */ t("p", { class: "IncodeNotificationText", children: C }) }) : null
330
331
  ] });
331
- }, nt = ({ manager: i, state: n }) => {
332
+ }, ot = ({ manager: i, state: n }) => {
332
333
  const {
333
334
  captureStatus: e,
334
335
  stream: r,
@@ -401,13 +402,13 @@ const h = ({
401
402
  className: "IncodeCaptureCapturingPage",
402
403
  title: "Capturing",
403
404
  subtitle: "Taking photo...",
404
- children: /* @__PURE__ */ t("div", { class: "IncodeCaptureCapturingActions", children: /* @__PURE__ */ t(F, { isLoading: !0, children: "Capturing..." }) })
405
+ children: /* @__PURE__ */ t("div", { class: "IncodeCaptureCapturingActions", children: /* @__PURE__ */ t(V, { isLoading: !0, children: "Capturing..." }) })
405
406
  }
406
407
  ) : e === "uploading" ? /* @__PURE__ */ t(
407
408
  h,
408
409
  {
409
410
  className: "IncodeCaptureStatusUploading",
410
- icon: /* @__PURE__ */ t(y, { size: 64 }),
411
+ icon: /* @__PURE__ */ t(F, { size: 64 }),
411
412
  title: T("idv2.capture.processing.uploading")
412
413
  }
413
414
  ) : e === "uploadError" ? /* @__PURE__ */ t(
@@ -441,7 +442,7 @@ const h = ({
441
442
  class: n ? "IncodeCaptureVideoElement IncodeCaptureVideoMirrored" : "IncodeCaptureVideoElement"
442
443
  }
443
444
  );
444
- }, ot = ({ manager: i }) => {
445
+ }, rt = ({ manager: i }) => {
445
446
  const { t: n } = g(), [e, r] = I(!1), [o, c] = I(null);
446
447
  p(() => {
447
448
  import("./selfieTutorial-Dm_p0ke9.js").then((l) => {
@@ -467,6 +468,6 @@ const h = ({
467
468
  ) : null;
468
469
  };
469
470
  export {
470
- nt as C,
471
- ot as T
471
+ ot as C,
472
+ rt as T
472
473
  };
@@ -0,0 +1,35 @@
1
+ import { AntifraudConfig } from '@incodetech/core/antifraud';
2
+ import { FC } from 'preact/compat';
3
+
4
+ export declare const Antifraud: FC<AntifraudProps>;
5
+
6
+ declare type AntifraudProps = IncodeModuleProps<AntifraudConfig>;
7
+
8
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
+ /**
10
+ * Module configuration required to render the flow.
11
+ * For Web Components, this is typically assigned via `element.config = ...`.
12
+ */
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;
18
+ /**
19
+ * Callback invoked when the module completes successfully.
20
+ * @param result - Optional result data from the module completion
21
+ */
22
+ onFinish?: (result?: TResult) => void;
23
+ /**
24
+ * Callback invoked when a fatal module error occurs.
25
+ */
26
+ onError?: (error: string | undefined) => void;
27
+ };
28
+
29
+ export { }
30
+
31
+ declare global {
32
+ interface HTMLElementTagNameMap {
33
+ 'incode-antifraud': HTMLElement & IncodeModuleProps<AntifraudConfig>;
34
+ }
35
+ }
@@ -1,4 +1,4 @@
1
- import { u as s, c as a } from "./button-DXIWeie9.js";
1
+ import { u as s, c as a } from "./loadingIcon-DmuPXh70.js";
2
2
  import { D as y } from "./vendor-preact-BoMmvSgn.js";
3
3
  const e = y(
4
4
  ({ children: o, className: r, ...p }, c) => /* @__PURE__ */ s("h2", { ref: c, class: `IncodeTitle ${r ?? ""}`, ...p, children: o })
@@ -0,0 +1,23 @@
1
+ import { C as i } from "./vendor-preact-BoMmvSgn.js";
2
+ let e = {};
3
+ const t = /* @__PURE__ */ new Set();
4
+ function r(n) {
5
+ return t.add(n), () => {
6
+ t.delete(n);
7
+ };
8
+ }
9
+ function s() {
10
+ return e;
11
+ }
12
+ function f(n) {
13
+ e = n;
14
+ for (const o of t)
15
+ o();
16
+ }
17
+ function c() {
18
+ return i(r, s);
19
+ }
20
+ export {
21
+ f as s,
22
+ c as u
23
+ };
@@ -1,4 +1,4 @@
1
- import { u as n } from "./button-DXIWeie9.js";
1
+ import { u as n } from "./loadingIcon-DmuPXh70.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-20260402-728ce7f",
3
+ "version": "0.0.0-dev-20260403-eccc51c",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -119,6 +119,13 @@
119
119
  },
120
120
  "./signature/styles.css": {
121
121
  "default": "./dist/signature/styles.css"
122
+ },
123
+ "./antifraud": {
124
+ "types": "./dist/types/antifraud.d.ts",
125
+ "import": "./dist/antifraud/antifraud.es.js"
126
+ },
127
+ "./antifraud/styles.css": {
128
+ "default": "./dist/antifraud/styles.css"
122
129
  }
123
130
  },
124
131
  "files": [
@@ -137,7 +144,7 @@
137
144
  "qrcode": "^1.5.4",
138
145
  "signature_pad": "^5.1.3",
139
146
  "tailwindcss": "^4.1.17",
140
- "@incodetech/core": "0.0.0-dev-20260402-728ce7f"
147
+ "@incodetech/core": "0.0.0-dev-20260403-eccc51c"
141
148
  },
142
149
  "devDependencies": {
143
150
  "@microsoft/api-extractor": "^7.53.3",