@incodetech/web 0.0.0-dev-20260605-73760ce4 → 0.0.0-dev-20260605-d822e497

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.
package/dist/base.css CHANGED
@@ -7196,9 +7196,9 @@
7196
7196
  text-align: center;
7197
7197
  font-size: var(--text-2xl, 1.5rem);
7198
7198
  line-height: var(--tw-leading, var(--text-2xl--line-height, calc(2 / 1.5)));
7199
- --tw-leading: 125%;
7199
+ --tw-leading: 115%;
7200
7200
  --tw-font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
7201
- line-height: 125%;
7201
+ line-height: 115%;
7202
7202
  font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
7203
7203
  --tw-tracking: -1px;
7204
7204
  letter-spacing: -1px;
@@ -8138,7 +8138,17 @@
8138
8138
  letter-spacing: var(--typography-headline-h2-letter-spacing);
8139
8139
  }
8140
8140
 
8141
- .IncodeRichText, .IncodeRichText .markup {
8141
+ .IncodeRichText {
8142
+ font-family: var(--typography-body-family);
8143
+ font-size: var(--typography-body-m-regular-size);
8144
+ font-weight: var(--typography-body-m-regular-weight);
8145
+ line-height: var(--typography-body-m-regular-line-height);
8146
+ letter-spacing: var(--typography-body-m-regular-letter-spacing);
8147
+ color: var(--color-text-body-primary, var(--text-body-800-primary));
8148
+ font-feature-settings: "liga" off, "clig" off;
8149
+ }
8150
+
8151
+ .IncodeRichText .markup {
8142
8152
  font-family: var(--typography-body-family);
8143
8153
  font-size: var(--typography-body-m-regular-size);
8144
8154
  font-weight: var(--typography-body-m-regular-weight);
@@ -8196,13 +8206,13 @@
8196
8206
  }
8197
8207
 
8198
8208
  .IncodeRichText .markup a {
8199
- font-family: var(--typography-link-family);
8200
- font-size: var(--typography-link-m-bold-size);
8201
- font-weight: var(--typography-link-m-bold-weight);
8202
- line-height: var(--typography-link-m-bold-line-height);
8203
- letter-spacing: var(--typography-link-m-bold-letter-spacing);
8209
+ font-family: var(--typography-body-family);
8210
+ font-size: var(--typography-body-m-regular-size);
8211
+ font-weight: var(--typography-body-m-regular-weight);
8212
+ line-height: var(--typography-body-m-regular-line-height);
8213
+ letter-spacing: var(--typography-body-m-regular-letter-spacing);
8204
8214
  color: var(--color-text-link-default, var(--text-link-default));
8205
- text-decoration-line: underline;
8215
+ text-decoration-line: none;
8206
8216
  }
8207
8217
 
8208
8218
  .IncodeRichText .markup hr {
@@ -1,77 +1,69 @@
1
1
  import { n as e } from "../i18n-Kzzvkz94.js";
2
- import { _ as t, d as n, l as r, v as i } from "../vendor-preact-D6SntenC.js";
3
- import { a, c as o, o as s } from "../hooks-MxHtZWTS.js";
4
- import { t as c } from "../incodeComponent-BoFhgK7G.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-Di3bOyOu.js";
8
- import { t as f } from "../button-DcCUEn2n.js";
9
- import { t as p } from "../checkbox-DCCzBAuF.js";
10
- import { t as m } from "../incodeModule-BiCoAJ5k.js";
11
- import { t as h } from "../richText-DPdexfgN.js";
12
- import { n as g, t as _ } from "../requiredLabelHint-B6FN3v88.js";
13
- import { createConsentManager as v } from "@incodetech/core/consent";
2
+ import { d as t, v as n } from "../vendor-preact-D6SntenC.js";
3
+ import { a as r, c as i, o as a } from "../hooks-MxHtZWTS.js";
4
+ import { t as o } from "../incodeComponent-BoFhgK7G.js";
5
+ import { t as s } from "../page-C1yT4DLb.js";
6
+ import { t as c } from "../transitionSpinner-Di3bOyOu.js";
7
+ import { t as l } from "../button-DcCUEn2n.js";
8
+ import { t as u } from "../autoFocusTitle-BpYdaSUM.js";
9
+ import { t as d } from "../checkbox-DCCzBAuF.js";
10
+ import { t as f } from "../incodeModule-BiCoAJ5k.js";
11
+ import { t as p } from "../richText-6pIbydcz.js";
12
+ import { n as m, t as h } from "../requiredLabelHint-B6FN3v88.js";
13
+ import { createConsentManager as g } from "@incodetech/core/consent";
14
14
  //#region src/modules/consent/consent.tsx
15
- var y = (e) => {
15
+ var _ = (e) => {
16
16
  e.target.closest("a") && e.stopPropagation();
17
- }, b = ({ config: c, manager: m, onFinish: b, onError: x }) => {
18
- let { t: S, i18n: C } = e(), w = r(null), [T, E] = o(() => {
19
- if (m) return m;
20
- if (!c) throw Error("Consent config is required");
21
- return v({ config: {
22
- ...c,
23
- language: C.language
17
+ }, v = ({ config: o, manager: f, onFinish: v, onError: y }) => {
18
+ let { t: b, i18n: x } = e(), [S, C] = i(() => {
19
+ if (f) return f;
20
+ if (!o) throw Error("Consent config is required");
21
+ return g({ config: {
22
+ ...o,
23
+ language: x.language
24
24
  } });
25
- }, { manageLifecycle: !m });
26
- t(() => {
27
- T.status === "display" && w.current?.focus();
28
- }, [T.status]);
29
- let D = "checkboxes" in T ? T.checkboxes : void 0, O = n(() => g(D?.map((e) => e.required) ?? []), [D]);
30
- return s({
31
- status: T.status,
32
- onFinish: b,
33
- onError: x,
34
- error: T.status === "error" ? T.error : void 0
35
- }), a(T) ? null : T.status === "idle" || T.status === "loading" ? /* @__PURE__ */ i(d, { hideText: !0 }) : /* @__PURE__ */ i(l, {
25
+ }, { manageLifecycle: !f }), w = "checkboxes" in S ? S.checkboxes : void 0, T = t(() => m(w?.map((e) => e.required) ?? []), [w]);
26
+ return a({
27
+ status: S.status,
28
+ onFinish: v,
29
+ onError: y,
30
+ error: S.status === "error" ? S.error : void 0
31
+ }), r(S) ? null : S.status === "idle" || S.status === "loading" ? /* @__PURE__ */ n(c, { hideText: !0 }) : /* @__PURE__ */ n(s, {
36
32
  className: "IncodeConsentPage",
37
- hideFooterBranding: !0,
38
- hideHeader: !0,
39
- children: /* @__PURE__ */ i("div", {
33
+ children: /* @__PURE__ */ n("div", {
40
34
  class: "IncodeConsentContent",
41
35
  children: [
42
- /* @__PURE__ */ i("div", {
36
+ /* @__PURE__ */ n("div", {
43
37
  class: "IncodeConsentBody",
44
38
  children: [
45
- /* @__PURE__ */ i(u, {
46
- ref: w,
39
+ /* @__PURE__ */ n(u, {
47
40
  className: "IncodeConsentTitle",
48
- tabIndex: -1,
49
- children: T.title
41
+ children: S.title
50
42
  }),
51
- /* @__PURE__ */ i(h, {
52
- content: T.richText,
43
+ /* @__PURE__ */ n(p, {
44
+ content: S.richText,
53
45
  class: "IncodeRichText"
54
46
  }),
55
- /* @__PURE__ */ i("div", {
47
+ /* @__PURE__ */ n("div", {
56
48
  class: "IncodeConsentCheckboxList",
57
49
  role: "group",
58
- "aria-label": S("biometricConsent.consentOptions"),
59
- children: T.checkboxes.map((e) => {
60
- let t = _(O, e.required), n = t ? S(`forms.label.${t}`) : void 0;
61
- return /* @__PURE__ */ i(p, {
50
+ "aria-label": b("biometricConsent.consentOptions"),
51
+ children: S.checkboxes.map((e) => {
52
+ let t = h(T, e.required), r = t ? b(`forms.label.${t}`) : void 0;
53
+ return /* @__PURE__ */ n(d, {
62
54
  id: `consent-checkbox-${e.id}`,
63
55
  class: "IncodeConsentCheckbox",
64
56
  size: "s",
65
57
  checked: e.checked,
66
58
  required: e.required,
67
- labelHint: n,
68
- onChange: () => E.toggleCheckbox(e.id),
69
- label: /* @__PURE__ */ i("span", {
59
+ labelHint: r,
60
+ onChange: () => C.toggleCheckbox(e.id),
61
+ label: /* @__PURE__ */ n("span", {
70
62
  class: "IncodeConsentCheckboxLabel",
71
63
  role: "presentation",
72
- onClick: y,
73
- onKeyDown: y,
74
- children: /* @__PURE__ */ i(h, {
64
+ onClick: _,
65
+ onKeyDown: _,
66
+ children: /* @__PURE__ */ n(p, {
75
67
  content: e.label,
76
68
  class: "IncodeRichText",
77
69
  disallowedTags: ["img"]
@@ -82,28 +74,28 @@ var y = (e) => {
82
74
  })
83
75
  ]
84
76
  }),
85
- T.status === "display" && T.error ? /* @__PURE__ */ i("p", {
77
+ S.status === "display" && S.error ? /* @__PURE__ */ n("p", {
86
78
  class: "IncodeConsentSubmitError",
87
79
  "data-testid": "consent-submit-error",
88
80
  role: "alert",
89
- children: T.error
81
+ children: S.error
90
82
  }) : null,
91
- /* @__PURE__ */ i(f, {
83
+ /* @__PURE__ */ n(l, {
92
84
  "data-testid": "consent-submit",
93
- onClick: () => E.submit(),
94
- disabled: !T.canSubmit,
95
- isLoading: T.status === "submitting",
96
- children: S("biometricConsent.button.continue")
85
+ onClick: () => C.submit(),
86
+ disabled: !S.canSubmit,
87
+ isLoading: S.status === "submitting",
88
+ children: b("biometricConsent.button.continue")
97
89
  })
98
90
  ]
99
91
  })
100
92
  }, "ready");
101
- }, x = ({ config: e, manager: t, onFinish: n, onError: r }) => /* @__PURE__ */ i(c, { children: e || t ? /* @__PURE__ */ i(b, {
93
+ }, y = ({ config: e, manager: t, onFinish: r, onError: i }) => /* @__PURE__ */ n(o, { children: e || t ? /* @__PURE__ */ n(v, {
102
94
  config: e,
103
95
  manager: t,
104
- onFinish: n,
105
- onError: r
96
+ onFinish: r,
97
+ onError: i
106
98
  }) : null });
107
- m(x, "incode-consent");
99
+ f(y, "incode-consent");
108
100
  //#endregion
109
- export { x as Consent };
101
+ export { y as Consent };
@@ -21,8 +21,9 @@
21
21
  }
22
22
 
23
23
  .IncodeConsentPage .IncodeConsentBody {
24
+ margin-top: var(--spacing-16, var(--spacing-16, 16px));
24
25
  min-height: var(--spacing-0, var(--spacing-none, 0px));
25
- gap: var(--spacing-16, var(--spacing-16, 16px));
26
+ gap: var(--spacing-24, var(--spacing-24, 24px));
26
27
  flex-direction: column;
27
28
  flex: 1;
28
29
  display: flex;
@@ -38,15 +39,6 @@
38
39
  letter-spacing: var(--typography-headline-h2-letter-spacing);
39
40
  }
40
41
 
41
- .IncodeConsentPage .IncodeConsentTitle {
42
- font-family: var(--typography-headline-family);
43
- font-size: var(--typography-headline-h1-size);
44
- font-weight: var(--typography-headline-h1-weight);
45
- line-height: var(--typography-headline-h1-line-height);
46
- letter-spacing: var(--typography-headline-h1-letter-spacing);
47
- color: var(--color-text-body-primary, var(--text-body-800-primary));
48
- }
49
-
50
42
  .IncodeConsentPage .IncodeConsentSubtitle {
51
43
  color: var(--color-text-body-secondary, var(--text-body-500-secondary));
52
44
  }
@@ -5,7 +5,7 @@ import { c as u } from "../hooks-MxHtZWTS.js";
5
5
  import { t as d } from "../incodeComponent-BoFhgK7G.js";
6
6
  import { t as f } from "../transitionSpinner-Di3bOyOu.js";
7
7
  import { t as p } from "../incodeModule-BiCoAJ5k.js";
8
- import { _ as m, a as h, c as g, d as _, f as v, h as y, l as b, m as x, n as S, o as C, p as w, r as T, s as E, t as D, u as O, y as k } from "../useModuleLoader-CvivqHRm.js";
8
+ import { _ as m, a as h, c as g, d as _, f as v, h as y, l as b, m as x, n as S, o as C, p as w, r as T, s as E, t as D, u as O, y as k } from "../useModuleLoader-ChBNTfzd.js";
9
9
  import { getDeviceClass as A } from "@incodetech/core/device";
10
10
  import { getRequiredWasmPipelines as j } from "@incodetech/core/flow";
11
11
  import { bootstrapSession as M, refreshQrUrlUuid as N } from "@incodetech/core/session";
@@ -7437,8 +7437,9 @@
7437
7437
  }
7438
7438
 
7439
7439
  .IncodeConsentPage .IncodeConsentBody {
7440
+ margin-top: var(--spacing-16, var(--spacing-16, 16px));
7440
7441
  min-height: var(--spacing-0, var(--spacing-none, 0px));
7441
- gap: var(--spacing-16, var(--spacing-16, 16px));
7442
+ gap: var(--spacing-24, var(--spacing-24, 24px));
7442
7443
  flex-direction: column;
7443
7444
  flex: 1;
7444
7445
  display: flex;
@@ -7454,15 +7455,6 @@
7454
7455
  letter-spacing: var(--typography-headline-h2-letter-spacing);
7455
7456
  }
7456
7457
 
7457
- .IncodeConsentPage .IncodeConsentTitle {
7458
- font-family: var(--typography-headline-family);
7459
- font-size: var(--typography-headline-h1-size);
7460
- font-weight: var(--typography-headline-h1-weight);
7461
- line-height: var(--typography-headline-h1-line-height);
7462
- letter-spacing: var(--typography-headline-h1-letter-spacing);
7463
- color: var(--color-text-body-primary, var(--text-body-800-primary));
7464
- }
7465
-
7466
7458
  .IncodeConsentPage .IncodeConsentSubtitle {
7467
7459
  color: var(--color-text-body-secondary, var(--text-body-500-secondary));
7468
7460
  }
package/dist/id/id.es.js CHANGED
@@ -783,7 +783,7 @@ function de() {
783
783
  }
784
784
  //#endregion
785
785
  //#region src/modules/id/id.tsx
786
- var fe = r(() => import("../mandatoryConsent-DAFLnk4s.js").then((e) => ({ default: e.MandatoryConsent }))), pe = ({ config: t, manager: r, onFinish: i, onError: a }) => {
786
+ var fe = r(() => import("../mandatoryConsent-DuCllh-p.js").then((e) => ({ default: e.MandatoryConsent }))), pe = ({ config: t, manager: r, onFinish: i, onError: a }) => {
787
787
  P();
788
788
  let { t: s } = e();
789
789
  n(() => {
@@ -8,7 +8,7 @@ import { t as u } from "./transitionSpinner-Di3bOyOu.js";
8
8
  import { t as d } from "./button-DcCUEn2n.js";
9
9
  import { t as f } from "./checkbox-DCCzBAuF.js";
10
10
  import { t as p } from "./incodeModule-BiCoAJ5k.js";
11
- import { t as m } from "./richText-DPdexfgN.js";
11
+ import { t as m } from "./richText-6pIbydcz.js";
12
12
  import { createMandatoryConsentManager as h } from "@incodetech/core/mandatory-consent";
13
13
  //#region src/modules/mandatory-consent/mandatoryConsent.tsx
14
14
  var g = ({ config: s, manager: p, onFinish: g, onError: _ }) => {
@@ -1951,7 +1951,7 @@ function Rt(e) {
1951
1951
  return e.replace(/([^\s>])(<a\b)/gu, "$1\xA0$2").replace(/(<\/a>)([\p{L}\p{N}])/gu, "$1\xA0$2");
1952
1952
  }
1953
1953
  function zt(e) {
1954
- let t = new DOMParser().parseFromString(e, "text/html"), n = t.querySelectorAll("a");
1954
+ let t = new DOMParser().parseFromString(e, "text/html"), n = Array.from(t.querySelectorAll("a"));
1955
1955
  for (let e of n) e.setAttribute("target", "_blank"), e.setAttribute("rel", "noopener noreferrer");
1956
1956
  return t.body.innerHTML;
1957
1957
  }
@@ -227,7 +227,7 @@ var N = {
227
227
  DOCUMENT_CAPTURE: () => import("./documentCapture-DfcF8h_m.js").then((e) => e.DocumentCapture),
228
228
  ADDRESS: () => import("./documentCapture-DfcF8h_m.js").then((e) => e.DocumentCapture),
229
229
  COMBINED_CONSENT: () => import("./consent/consent.es.js").then((e) => e.Consent),
230
- MANDATORY_CONSENT: () => import("./mandatoryConsent-DAFLnk4s.js").then((e) => e.MandatoryConsent),
230
+ MANDATORY_CONSENT: () => import("./mandatoryConsent-DuCllh-p.js").then((e) => e.MandatoryConsent),
231
231
  SIGNATURE: () => import("./signature/signature.es.js").then((e) => e.Signature),
232
232
  ID_OCR: () => import("./idOcr-DyiUeztu.js").then((e) => e.IdOcr),
233
233
  CPF_OCR: () => import("./cpfOcr-DCTIr5fo.js").then((e) => e.CpfOcr),
@@ -6636,8 +6636,9 @@
6636
6636
  }
6637
6637
 
6638
6638
  .IncodeConsentPage .IncodeConsentBody {
6639
+ margin-top: var(--spacing-16, var(--spacing-16, 16px));
6639
6640
  min-height: var(--spacing-0, var(--spacing-none, 0px));
6640
- gap: var(--spacing-16, var(--spacing-16, 16px));
6641
+ gap: var(--spacing-24, var(--spacing-24, 24px));
6641
6642
  flex-direction: column;
6642
6643
  flex: 1;
6643
6644
  display: flex;
@@ -6653,15 +6654,6 @@
6653
6654
  letter-spacing: var(--typography-headline-h2-letter-spacing);
6654
6655
  }
6655
6656
 
6656
- .IncodeConsentPage .IncodeConsentTitle {
6657
- font-family: var(--typography-headline-family);
6658
- font-size: var(--typography-headline-h1-size);
6659
- font-weight: var(--typography-headline-h1-weight);
6660
- line-height: var(--typography-headline-h1-line-height);
6661
- letter-spacing: var(--typography-headline-h1-letter-spacing);
6662
- color: var(--color-text-body-primary, var(--text-body-800-primary));
6663
- }
6664
-
6665
6657
  .IncodeConsentPage .IncodeConsentSubtitle {
6666
6658
  color: var(--color-text-body-secondary, var(--text-body-500-secondary));
6667
6659
  }
@@ -5,7 +5,7 @@ import { c as l } from "../hooks-MxHtZWTS.js";
5
5
  import { t as u } from "../incodeComponent-BoFhgK7G.js";
6
6
  import { t as d } from "../transitionSpinner-Di3bOyOu.js";
7
7
  import { t as f } from "../incodeModule-BiCoAJ5k.js";
8
- import { a as p, g as m, i as h, l as g, o as _, s as v, t as y, v as b, y as x } from "../useModuleLoader-CvivqHRm.js";
8
+ import { a as p, g as m, i as h, l as g, o as _, s as v, t as y, v as b, y as x } from "../useModuleLoader-ChBNTfzd.js";
9
9
  import { resolveWasmConfig as S, upgradeToWasmHttpClient as C, warmupWasm as w } from "@incodetech/core/wasm";
10
10
  import { getDeviceClass as T } from "@incodetech/core/device";
11
11
  import { bootstrapSession as E, refreshQrUrlUuid as D } from "@incodetech/core/session";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260605-73760ce4",
3
+ "version": "0.0.0-dev-20260605-d822e497",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
@@ -255,7 +255,7 @@
255
255
  "qrcode": "^1.5.4",
256
256
  "signature_pad": "^5.1.3",
257
257
  "tailwindcss": "^4.1.17",
258
- "@incodetech/core": "0.0.0-dev-20260605-73760ce4"
258
+ "@incodetech/core": "0.0.0-dev-20260605-d822e497"
259
259
  },
260
260
  "devDependencies": {
261
261
  "@microsoft/api-extractor": "^7.53.3",