@incodetech/web 0.0.0-dev-20260522-d8d5954f → 0.0.0-dev-20260522-31c2a308

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 (58) hide show
  1. package/dist/ae-signature/ae-signature.es.js +1 -1
  2. package/dist/antifraud/antifraud.es.js +15 -14
  3. package/dist/authentication/authentication.es.js +27 -22
  4. package/dist/consent/consent.es.js +45 -40
  5. package/dist/cpfOcr-D3RHfhOx.js +79 -0
  6. package/dist/cross-document-data-match/cross-document-data-match.es.js +15 -14
  7. package/dist/curp-validation/curp-validation.es.js +126 -122
  8. package/dist/customFields-BDSPrFG6.js +128 -0
  9. package/dist/customWatchlist-BUiXNACw.js +34 -0
  10. package/dist/{documentCapture-Ddxiyjmv.js → documentCapture-DgvsXFcA.js} +194 -196
  11. package/dist/{dynamicForms-BkBgAxaw.js → dynamicForms-B4UqRizf.js} +73 -72
  12. package/dist/ekyb/ekyb.es.js +1 -1
  13. package/dist/{ekybModule-DkaEWH7Q.js → ekybModule-BnensJtJ.js} +71 -70
  14. package/dist/ekybModule-DjpevBNl.js +2 -0
  15. package/dist/ekyc/ekyc.es.js +1 -1
  16. package/dist/ekycModule-BZzjGBZo.js +2 -0
  17. package/dist/{ekycModule-CvSj-SBd.js → ekycModule-sNLKK3Ry.js} +56 -55
  18. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  19. package/dist/{electronic-signature-BssOOcll.js → electronic-signature-Dd1o96al.js} +97 -99
  20. package/dist/email/email.es.js +55 -48
  21. package/dist/{emailInput-a1clmgOD.js → emailInput-D_2YTMpA.js} +1 -1
  22. package/dist/{extensibility-FQufHU19.js → extensibility-CGfTiOMJ.js} +3 -3
  23. package/dist/extensibility.es.js +5 -5
  24. package/dist/face-match/face-match.es.js +1 -1
  25. package/dist/faceMatch-Bmb2Irm5.js +2 -0
  26. package/dist/{faceMatch-HK8X_omw.js → faceMatch-r44b5_bS.js} +66 -61
  27. package/dist/flow/flow.es.js +146 -137
  28. package/dist/geolocation/geolocation.es.js +158 -157
  29. package/dist/governmentValidation/governmentValidation.es.js +52 -50
  30. package/dist/hooks-CLjlsC2g.js +110 -0
  31. package/dist/id/id.es.js +146 -142
  32. package/dist/id-verification/id-verification.es.js +10 -9
  33. package/dist/idOcr-1cCRH-JT.js +97 -0
  34. package/dist/identity-reuse/identity-reuse.es.js +82 -81
  35. package/dist/{incodeComponent-Dwf208RN.js → incodeComponent-MZEyrb1V.js} +1 -1
  36. package/dist/mandatoryConsent-CXHpydb_.js +91 -0
  37. package/dist/{optionAccessibleLabel-EWjyi8qm.js → optionAccessibleLabel-D9VqmS3S.js} +1 -1
  38. package/dist/phone/phone.es.js +58 -53
  39. package/dist/qe-signature/qe-signature.es.js +1 -1
  40. package/dist/{redirectToMobile-D0M6WCAI.js → redirectToMobile-D65mjS1b.js} +114 -117
  41. package/dist/selfie/selfie.es.js +37 -32
  42. package/dist/signature/signature.es.js +70 -69
  43. package/dist/{tutorial-1M3zRhDL.js → tutorial-CZE5krtC.js} +1 -1
  44. package/dist/{useModuleLoader-ClURczIi.js → useModuleLoader-CRT8DxXP.js} +13 -13
  45. package/dist/watchlist/watchlist.es.js +26 -25
  46. package/dist/watchlistForBusiness-CKXh9404.js +78 -0
  47. package/dist/workflow/workflow.es.js +21 -10
  48. package/package.json +2 -2
  49. package/dist/cpfOcr-v9k08xnk.js +0 -78
  50. package/dist/customFields-D3m4tOVB.js +0 -127
  51. package/dist/customWatchlist-CA3FMNYb.js +0 -33
  52. package/dist/ekybModule-C_5hglpb.js +0 -2
  53. package/dist/ekycModule-hm24nLK7.js +0 -2
  54. package/dist/faceMatch-CBaORbnj.js +0 -2
  55. package/dist/hooks-BVnGysT7.js +0 -80
  56. package/dist/idOcr-C4CRrQkf.js +0 -94
  57. package/dist/mandatoryConsent-BODQV7_J.js +0 -100
  58. package/dist/watchlistForBusiness-CadEfUn3.js +0 -77
@@ -1,5 +1,5 @@
1
1
  import { v as e } from "../vendor-preact-D6SntenC.js";
2
- import { n as t } from "../electronic-signature-BssOOcll.js";
2
+ import { n as t } from "../electronic-signature-Dd1o96al.js";
3
3
  import { t as n } from "../incodeModule-CHzKl22Y.js";
4
4
  //#region src/modules/ae-signature/ae-signature.tsx
5
5
  var r = ({ config: n, onFinish: r, onError: i }) => /* @__PURE__ */ e(t, {
@@ -1,18 +1,19 @@
1
1
  import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
2
- import { o as n } from "../hooks-BVnGysT7.js";
3
- import { t as r } from "../incodeComponent-Dwf208RN.js";
4
- import { t as i } from "../spinner-CKnjVHxw.js";
5
- import { t as a } from "../incodeModule-CHzKl22Y.js";
6
- import { createAntifraudManager as o } from "@incodetech/core/antifraud";
2
+ import { c as n, o as r } from "../hooks-CLjlsC2g.js";
3
+ import { t as i } from "../incodeComponent-MZEyrb1V.js";
4
+ import { t as a } from "../spinner-CKnjVHxw.js";
5
+ import { t as o } from "../incodeModule-CHzKl22Y.js";
6
+ import { createAntifraudManager as s } from "@incodetech/core/antifraud";
7
7
  //#region src/modules/antifraud/antifraud.tsx
8
- var s = ({ onFinish: r }) => {
9
- let [a, s] = n(() => o());
8
+ var c = ({ onFinish: i }) => {
9
+ let [o, c] = n(() => s());
10
10
  return e(() => {
11
- s.load();
12
- }, [s]), e(() => {
13
- a.status === "finished" && r?.();
14
- }, [a.status, r]), /* @__PURE__ */ t(i, { fullScreen: !0 });
15
- }, c = ({ onFinish: e }) => /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(s, { onFinish: e }) });
16
- a(c, "incode-antifraud");
11
+ c.load();
12
+ }, [c]), r({
13
+ status: o.status === "finished" ? "finished" : "loading",
14
+ onFinish: i
15
+ }), /* @__PURE__ */ t(a, { fullScreen: !0 });
16
+ }, l = ({ onFinish: e }) => /* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(c, { onFinish: e }) });
17
+ o(l, "incode-antifraud");
17
18
  //#endregion
18
- export { c as Antifraud };
19
+ export { l as Antifraud };
@@ -1,29 +1,34 @@
1
1
  import { v as e } from "../vendor-preact-D6SntenC.js";
2
- import { o as t } from "../hooks-BVnGysT7.js";
3
- import { t as n } from "../incodeComponent-Dwf208RN.js";
4
- import { n as r, r as i, t as a } from "../tutorial-1M3zRhDL.js";
5
- import { t as o } from "../incodeModule-CHzKl22Y.js";
6
- import { createAuthenticationManager as s } from "@incodetech/core/authentication";
2
+ import { a as t, c as n, o as r } from "../hooks-CLjlsC2g.js";
3
+ import { t as i } from "../incodeComponent-MZEyrb1V.js";
4
+ import { n as a, r as o, t as s } from "../tutorial-CZE5krtC.js";
5
+ import { t as c } from "../incodeModule-CHzKl22Y.js";
6
+ import { createAuthenticationManager as l } from "@incodetech/core/authentication";
7
7
  //#region src/modules/authentication/authentication.tsx
8
- var c = ({ config: n, authHint: o, manager: c, onFinish: l, onError: u }) => {
9
- let [d, f] = t(() => c ?? s({
10
- config: n,
11
- authHint: o
12
- }), { manageLifecycle: !c });
13
- return d.status === "idle" || d.status === "loading" ? null : d.status === "tutorial" ? /* @__PURE__ */ e(a, { manager: f }) : d.status === "permissions" ? /* @__PURE__ */ e(i, {
14
- manager: f,
15
- permissionStatus: d.permissionStatus
16
- }) : d.status === "capture" ? /* @__PURE__ */ e(r, {
17
- manager: f,
18
- state: d
19
- }) : d.status === "finished" ? (l?.(), null) : d.status === "closed" ? (u?.(void 0), null) : (d.status === "error" && u?.(d.error), null);
20
- }, l = ({ config: t, manager: r, onFinish: i, onError: a }) => /* @__PURE__ */ e(n, { children: t ? /* @__PURE__ */ e(c, {
8
+ var u = ({ config: i, authHint: c, manager: u, onFinish: d, onError: f }) => {
9
+ let [p, m] = n(() => u ?? l({
10
+ config: i,
11
+ authHint: c
12
+ }), { manageLifecycle: !u });
13
+ return r({
14
+ status: p.status,
15
+ onFinish: d,
16
+ onError: f,
17
+ error: p.status === "error" ? p.error : void 0
18
+ }), p.status === "idle" || p.status === "loading" ? null : p.status === "tutorial" ? /* @__PURE__ */ e(s, { manager: m }) : p.status === "permissions" ? /* @__PURE__ */ e(o, {
19
+ manager: m,
20
+ permissionStatus: p.permissionStatus
21
+ }) : p.status === "capture" ? /* @__PURE__ */ e(a, {
22
+ manager: m,
23
+ state: p
24
+ }) : (t(p), null);
25
+ }, d = ({ config: t, manager: n, onFinish: r, onError: a }) => /* @__PURE__ */ e(i, { children: t ? /* @__PURE__ */ e(u, {
21
26
  config: t,
22
27
  authHint: t.authHint,
23
- manager: r,
24
- onFinish: i,
28
+ manager: n,
29
+ onFinish: r,
25
30
  onError: a
26
31
  }) : null });
27
- o(l, "incode-authentication");
32
+ c(d, "incode-authentication");
28
33
  //#endregion
29
- export { l as Authentication };
34
+ export { d as Authentication };
@@ -1,28 +1,33 @@
1
1
  import { n as e } from "../i18n-Cw8Y_JeB.js";
2
2
  import { _ as t, d as n, l as r, v as i } from "../vendor-preact-D6SntenC.js";
3
- import { o as a } from "../hooks-BVnGysT7.js";
4
- import { t as o } from "../incodeComponent-Dwf208RN.js";
5
- import { t as s } from "../page-C1yT4DLb.js";
6
- import { n as c } from "../typography-CxjaknHN.js";
7
- import { t as l } from "../transitionSpinner-BWCiDYAb.js";
8
- import { t as u } from "../button-DcCUEn2n.js";
9
- import { t as d } from "../checkbox-ODa2sCKf.js";
10
- import { t as f } from "../incodeModule-CHzKl22Y.js";
11
- import { t as p } from "../richText-FMNMBzjD.js";
12
- import { n as m, t as h } from "../requiredLabelHint-CuA6awez.js";
13
- import { createConsentManager as g } from "@incodetech/core/consent";
3
+ import { a, c as o, o as s } from "../hooks-CLjlsC2g.js";
4
+ import { t as c } from "../incodeComponent-MZEyrb1V.js";
5
+ import { t as l } from "../page-C1yT4DLb.js";
6
+ import { n as u } from "../typography-CxjaknHN.js";
7
+ import { t as d } from "../transitionSpinner-BWCiDYAb.js";
8
+ import { t as f } from "../button-DcCUEn2n.js";
9
+ import { t as p } from "../checkbox-ODa2sCKf.js";
10
+ import { t as m } from "../incodeModule-CHzKl22Y.js";
11
+ import { t as h } from "../richText-FMNMBzjD.js";
12
+ import { n as g, t as _ } from "../requiredLabelHint-CuA6awez.js";
13
+ import { createConsentManager as v } from "@incodetech/core/consent";
14
14
  //#region src/modules/consent/consent.tsx
15
- var _ = ({ config: o, manager: f, onFinish: _, onError: v }) => {
16
- let { t: y } = e(), b = r(null), [x, S] = a(() => {
17
- if (f) return f;
18
- if (!o) throw Error("Consent config is required");
19
- return g({ config: o });
20
- }, { manageLifecycle: !f });
15
+ var y = ({ config: c, manager: m, onFinish: y, onError: b }) => {
16
+ let { t: x } = e(), S = r(null), [C, w] = o(() => {
17
+ if (m) return m;
18
+ if (!c) throw Error("Consent config is required");
19
+ return v({ config: c });
20
+ }, { manageLifecycle: !m });
21
21
  t(() => {
22
- x.status === "display" && b.current?.focus();
23
- }, [x.status]);
24
- let C = "checkboxes" in x ? x.checkboxes : void 0, w = n(() => m(C?.map((e) => e.required) ?? []), [C]);
25
- return x.status === "finished" ? (_?.(), null) : x.status === "error" ? (v?.(x.error), null) : x.status === "idle" || x.status === "loading" ? /* @__PURE__ */ i(l, { hideText: !0 }) : /* @__PURE__ */ i(s, {
22
+ C.status === "display" && S.current?.focus();
23
+ }, [C.status]);
24
+ let T = "checkboxes" in C ? C.checkboxes : void 0, E = n(() => g(T?.map((e) => e.required) ?? []), [T]);
25
+ return s({
26
+ status: C.status,
27
+ onFinish: y,
28
+ onError: b,
29
+ error: C.status === "error" ? C.error : void 0
30
+ }), a(C) ? null : C.status === "idle" || C.status === "loading" ? /* @__PURE__ */ i(d, { hideText: !0 }) : /* @__PURE__ */ i(l, {
26
31
  className: "IncodeConsentPage",
27
32
  hideFooterBranding: !0,
28
33
  hideHeader: !0,
@@ -31,36 +36,36 @@ var _ = ({ config: o, manager: f, onFinish: _, onError: v }) => {
31
36
  children: [/* @__PURE__ */ i("div", {
32
37
  class: "IncodeConsentBody",
33
38
  children: [
34
- /* @__PURE__ */ i(c, {
35
- ref: b,
39
+ /* @__PURE__ */ i(u, {
40
+ ref: S,
36
41
  className: "IncodeConsentTitle",
37
42
  tabIndex: -1,
38
- children: x.title
43
+ children: C.title
39
44
  }),
40
- /* @__PURE__ */ i(p, {
41
- content: x.richText,
45
+ /* @__PURE__ */ i(h, {
46
+ content: C.richText,
42
47
  class: "IncodeRichText"
43
48
  }),
44
49
  /* @__PURE__ */ i("div", {
45
50
  class: "IncodeConsentCheckboxList",
46
51
  role: "group",
47
- "aria-label": y("biometricConsent.consentOptions"),
48
- children: x.checkboxes.map((e) => {
49
- let t = h(w, e.required), n = t ? y(`forms.label.${t}`) : void 0;
50
- return /* @__PURE__ */ i(d, {
52
+ "aria-label": x("biometricConsent.consentOptions"),
53
+ children: C.checkboxes.map((e) => {
54
+ let t = _(E, e.required), n = t ? x(`forms.label.${t}`) : void 0;
55
+ return /* @__PURE__ */ i(p, {
51
56
  id: `consent-checkbox-${e.id}`,
52
57
  class: "IncodeConsentCheckbox",
53
58
  size: "s",
54
59
  checked: e.checked,
55
60
  required: e.required,
56
61
  labelHint: n,
57
- onChange: () => S.toggleCheckbox(e.id),
62
+ onChange: () => w.toggleCheckbox(e.id),
58
63
  label: /* @__PURE__ */ i("span", {
59
64
  class: "IncodeConsentCheckboxLabel",
60
65
  onClick: (e) => {
61
66
  e.target.closest("a") && e.stopPropagation();
62
67
  },
63
- children: /* @__PURE__ */ i(p, {
68
+ children: /* @__PURE__ */ i(h, {
64
69
  content: e.label,
65
70
  class: "IncodeRichText",
66
71
  disallowedTags: ["img"]
@@ -70,21 +75,21 @@ var _ = ({ config: o, manager: f, onFinish: _, onError: v }) => {
70
75
  })
71
76
  })
72
77
  ]
73
- }), /* @__PURE__ */ i(u, {
78
+ }), /* @__PURE__ */ i(f, {
74
79
  "data-testid": "consent-submit",
75
- onClick: () => S.submit(),
76
- disabled: !x.canSubmit,
77
- isLoading: x.status === "submitting",
78
- children: y("biometricConsent.button.continue")
80
+ onClick: () => w.submit(),
81
+ disabled: !C.canSubmit,
82
+ isLoading: C.status === "submitting",
83
+ children: x("biometricConsent.button.continue")
79
84
  })]
80
85
  })
81
86
  }, "ready");
82
- }, v = ({ config: e, manager: t, onFinish: n, onError: r }) => /* @__PURE__ */ i(o, { children: e ? /* @__PURE__ */ i(_, {
87
+ }, b = ({ config: e, manager: t, onFinish: n, onError: r }) => /* @__PURE__ */ i(c, { children: e ? /* @__PURE__ */ i(y, {
83
88
  config: e,
84
89
  manager: t,
85
90
  onFinish: n,
86
91
  onError: r
87
92
  }) : null });
88
- f(v, "incode-consent");
93
+ m(b, "incode-consent");
89
94
  //#endregion
90
- export { v as Consent };
95
+ export { b as Consent };
@@ -0,0 +1,79 @@
1
+ import { _ as e, p as t, v as n } from "./vendor-preact-D6SntenC.js";
2
+ import { c as r, o as i } from "./hooks-CLjlsC2g.js";
3
+ import { r as a } from "./loadingIcon-BN5YRQUb.js";
4
+ import { t as o } from "./page-C1yT4DLb.js";
5
+ import { t as s } from "./spinner-CKnjVHxw.js";
6
+ import "./spinner-B4dcie2T.js";
7
+ import { t as c } from "./button-DcCUEn2n.js";
8
+ import { t as l } from "./verificationResult-C6M3uAMP.js";
9
+ import { t as u } from "./inputComposed-CiZa_7pk.js";
10
+ import { createCpfOcrManager as d } from "@incodetech/core/cpf-ocr";
11
+ //#region src/modules/cpf-ocr/cpfOcr.tsx
12
+ var f = (e) => e.status === "inputting" ? {
13
+ cpf: e.cpf,
14
+ isValid: e.isValid
15
+ } : {
16
+ cpf: "",
17
+ isValid: !1
18
+ }, p = ({ onFinish: p, onError: m }) => {
19
+ let [h, g] = r(() => d()), [_, v] = t(!1), [y, b] = t(!1), [x, S] = t(!1);
20
+ if (i({
21
+ status: h.status === "finished" ? "finished" : "loading",
22
+ onFinish: p
23
+ }), e(() => {
24
+ h.status === "error" && m?.(h.error);
25
+ }, [h, m]), h.status === "idle" || h.status === "loading" || h.status === "submitting") return /* @__PURE__ */ n(o, {
26
+ className: "IncodeCpfOcrPage",
27
+ children: /* @__PURE__ */ n("div", {
28
+ class: "IncodeCpfOcrLoading",
29
+ children: /* @__PURE__ */ n(s, { fullScreen: !1 })
30
+ })
31
+ });
32
+ if (h.status === "error") return /* @__PURE__ */ n(l, {
33
+ status: "failure",
34
+ failureTitle: "Não foi possível verificar o CPF",
35
+ onRetry: () => g.retry()
36
+ });
37
+ if (h.status === "finished") return null;
38
+ let C = f(h), w = C.cpf.replace(/\D/g, "").length === 11, T = y && !C.isValid && (w || _ && !x) ? "Insira um CPF válido" : void 0;
39
+ return /* @__PURE__ */ n(o, {
40
+ className: "IncodeCpfOcrPage",
41
+ title: "Insira e verifique o número do seu CPF",
42
+ children: /* @__PURE__ */ n("div", {
43
+ class: "IncodeCpfOcr",
44
+ children: [
45
+ /* @__PURE__ */ n(a, { size: 32 }),
46
+ /* @__PURE__ */ n(u, {
47
+ id: "cpf-ocr-input",
48
+ label: "",
49
+ value: C.cpf,
50
+ placeholder: "Seu CPF",
51
+ maxLength: 14,
52
+ inputMode: "numeric",
53
+ "aria-label": "CPF",
54
+ onInput: (e) => {
55
+ b(!0), g.setCpf(e.target.value);
56
+ },
57
+ onFocus: () => {
58
+ S(!0);
59
+ },
60
+ onBlur: () => {
61
+ S(!1), v(!0);
62
+ },
63
+ error: T,
64
+ showErrorIcon: !0
65
+ }),
66
+ /* @__PURE__ */ n(a, {}),
67
+ /* @__PURE__ */ n(c, {
68
+ type: "button",
69
+ onClick: () => g.submit(),
70
+ disabled: !C.isValid,
71
+ "data-testid": "cpf-ocr-continue",
72
+ children: "Continuar"
73
+ })
74
+ ]
75
+ })
76
+ });
77
+ };
78
+ //#endregion
79
+ export { p as CpfOcr };
@@ -1,18 +1,19 @@
1
1
  import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
2
- import { o as n } from "../hooks-BVnGysT7.js";
3
- import { t as r } from "../incodeComponent-Dwf208RN.js";
4
- import { t as i } from "../spinner-CKnjVHxw.js";
5
- import { t as a } from "../incodeModule-CHzKl22Y.js";
6
- import { createCrossDocumentDataMatchManager as o } from "@incodetech/core/cross-document-data-match";
2
+ import { c as n, o as r } from "../hooks-CLjlsC2g.js";
3
+ import { t as i } from "../incodeComponent-MZEyrb1V.js";
4
+ import { t as a } from "../spinner-CKnjVHxw.js";
5
+ import { t as o } from "../incodeModule-CHzKl22Y.js";
6
+ import { createCrossDocumentDataMatchManager as s } from "@incodetech/core/cross-document-data-match";
7
7
  //#region src/modules/cross-document-data-match/cross-document-data-match.tsx
8
- var s = ({ onFinish: r }) => {
9
- let [a, s] = n(() => o());
8
+ var c = ({ onFinish: i }) => {
9
+ let [o, c] = n(() => s());
10
10
  return e(() => {
11
- s.load();
12
- }, [s]), e(() => {
13
- a.status === "finished" && r?.();
14
- }, [a.status, r]), /* @__PURE__ */ t(i, { fullScreen: !0 });
15
- }, c = ({ onFinish: e }) => /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(s, { onFinish: e }) });
16
- a(c, "incode-cross-document-data-match");
11
+ c.load();
12
+ }, [c]), r({
13
+ status: o.status === "finished" ? "finished" : "loading",
14
+ onFinish: i
15
+ }), /* @__PURE__ */ t(a, { fullScreen: !0 });
16
+ }, l = ({ onFinish: e }) => /* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(c, { onFinish: e }) });
17
+ o(l, "incode-cross-document-data-match");
17
18
  //#endregion
18
- export { c as CrossDocumentDataMatch };
19
+ export { l as CrossDocumentDataMatch };