@incodetech/web 0.0.0-dev-20260417-4da85d5 → 0.0.0-dev-20260417-00f663d

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 (2) hide show
  1. package/dist/id/id.es.js +57 -43
  2. package/package.json +2 -2
package/dist/id/id.es.js CHANGED
@@ -1,54 +1,68 @@
1
- import { c as e, o as t, v as n } from "../vendor-preact-D6SntenC.js";
2
- import { o as r, t as i } from "../incodeComponent-DIb7wDAq.js";
3
- import { a, i as o, n as s, o as c, r as l, t as u } from "../extensibility-t-H5EpZ8.js";
4
- import { t as d } from "../processing-LdRzxpWv.js";
5
- import { r as f } from "../tutorial-DMwavp-V.js";
6
- import { t as p } from "../incodeModule-D_r2n18O.js";
7
- import { createIdCaptureManager as m } from "@incodetech/core/id";
1
+ import { _ as e, c as t, o as n, v as r } from "../vendor-preact-D6SntenC.js";
2
+ import { o as i, t as a } from "../incodeComponent-DIb7wDAq.js";
3
+ import { a as o, i as s, n as c, o as l, r as u, t as d } from "../extensibility-t-H5EpZ8.js";
4
+ import { t as f } from "../processing-LdRzxpWv.js";
5
+ import { r as p } from "../tutorial-DMwavp-V.js";
6
+ import { t as m } from "../incodeModule-D_r2n18O.js";
7
+ import { createIdCaptureManager as h } from "@incodetech/core/id";
8
+ //#region src/shared/fonts/preloadDisplayFont.ts
9
+ var g = !1;
10
+ function _() {
11
+ if (g || typeof document > "u") return;
12
+ let e = document.fonts;
13
+ e?.load && (g = !0, e.load("800 1rem \"Rethink Sans\"").catch(() => {}));
14
+ }
15
+ function v() {
16
+ e(() => {
17
+ _();
18
+ }, []);
19
+ }
20
+ //#endregion
8
21
  //#region src/modules/id/id.tsx
9
- var h = e(() => import("../mandatoryConsent-BVrqZJDU.js").then((e) => ({ default: e.MandatoryConsent }))), g = ({ config: e, manager: i, onFinish: p, onError: g }) => {
10
- let [_, v] = r(() => {
11
- if (i) return i;
22
+ var y = t(() => import("../mandatoryConsent-BVrqZJDU.js").then((e) => ({ default: e.MandatoryConsent }))), b = ({ config: e, manager: t, onFinish: a, onError: m }) => {
23
+ v();
24
+ let [g, _] = i(() => {
25
+ if (t) return t;
12
26
  if (!e) throw Error("ID capture config is required when no manager is provided");
13
- return m({ config: e });
14
- }, { manageLifecycle: !i });
15
- return _.status === "idle" || _.status === "loading" ? null : _.status === "chooser" ? /* @__PURE__ */ n(s, {
16
- manager: v,
17
- state: _
18
- }) : _.status === "tutorial" ? /* @__PURE__ */ n(l, {
19
- manager: v,
20
- state: _
21
- }) : _.status === "permissions" ? /* @__PURE__ */ n(f, {
22
- manager: v,
23
- permissionStatus: _.permissionStatus
24
- }) : _.status === "frontFinished" ? /* @__PURE__ */ n(u, {
25
- manager: v,
27
+ return h({ config: e });
28
+ }, { manageLifecycle: !t });
29
+ return g.status === "idle" || g.status === "loading" ? null : g.status === "chooser" ? /* @__PURE__ */ r(c, {
30
+ manager: _,
31
+ state: g
32
+ }) : g.status === "tutorial" ? /* @__PURE__ */ r(u, {
33
+ manager: _,
34
+ state: g
35
+ }) : g.status === "permissions" ? /* @__PURE__ */ r(p, {
36
+ manager: _,
37
+ permissionStatus: g.permissionStatus
38
+ }) : g.status === "frontFinished" ? /* @__PURE__ */ r(d, {
39
+ manager: _,
26
40
  direction: "toBack"
27
- }) : _.status === "backFinished" ? /* @__PURE__ */ n(u, {
28
- manager: v,
41
+ }) : g.status === "backFinished" ? /* @__PURE__ */ r(d, {
42
+ manager: _,
29
43
  direction: "toFront"
30
- }) : _.status === "capture" ? /* @__PURE__ */ n(o, {
31
- manager: v,
32
- state: _,
33
- onFinish: () => p?.()
34
- }) : _.status === "mandatoryConsent" ? /* @__PURE__ */ n(t, {
44
+ }) : g.status === "capture" ? /* @__PURE__ */ r(s, {
45
+ manager: _,
46
+ state: g,
47
+ onFinish: () => a?.()
48
+ }) : g.status === "mandatoryConsent" ? /* @__PURE__ */ r(n, {
35
49
  fallback: null,
36
- children: /* @__PURE__ */ n(h, {
37
- config: { consentType: _.regulationType },
38
- onFinish: () => v.acceptMandatoryConsent(),
39
- onError: () => v.cancelMandatoryConsent()
50
+ children: /* @__PURE__ */ r(y, {
51
+ config: { consentType: g.regulationType },
52
+ onFinish: () => _.acceptMandatoryConsent(),
53
+ onError: () => _.cancelMandatoryConsent()
40
54
  })
41
- }) : _.status === "processing" ? /* @__PURE__ */ n(d, {}) : _.status === "expired" ? /* @__PURE__ */ n(a, { manager: v }) : _.status === "finished" ? (p?.(), null) : _.status === "closed" ? (g?.(void 0), null) : _.status === "error" ? /* @__PURE__ */ n(c, {
42
- manager: v,
43
- state: _,
44
- onError: g
55
+ }) : g.status === "processing" ? /* @__PURE__ */ r(f, {}) : g.status === "expired" ? /* @__PURE__ */ r(o, { manager: _ }) : g.status === "finished" ? (a?.(), null) : g.status === "closed" ? (m?.(void 0), null) : g.status === "error" ? /* @__PURE__ */ r(l, {
56
+ manager: _,
57
+ state: g,
58
+ onError: m
45
59
  }) : null;
46
- }, _ = ({ config: e, manager: t, onFinish: r, onError: a }) => /* @__PURE__ */ n(i, { children: e || t ? /* @__PURE__ */ n(g, {
60
+ }, x = ({ config: e, manager: t, onFinish: n, onError: i }) => /* @__PURE__ */ r(a, { children: e || t ? /* @__PURE__ */ r(b, {
47
61
  config: e,
48
62
  manager: t,
49
- onFinish: r,
50
- onError: a
63
+ onFinish: n,
64
+ onError: i
51
65
  }) : null });
52
- p(_, "incode-id");
66
+ m(x, "incode-id");
53
67
  //#endregion
54
- export { _ as Id };
68
+ export { x as Id };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260417-4da85d5",
3
+ "version": "0.0.0-dev-20260417-00f663d",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -183,7 +183,7 @@
183
183
  "qrcode": "^1.5.4",
184
184
  "signature_pad": "^5.1.3",
185
185
  "tailwindcss": "^4.1.17",
186
- "@incodetech/core": "0.0.0-dev-20260417-4da85d5"
186
+ "@incodetech/core": "0.0.0-dev-20260417-00f663d"
187
187
  },
188
188
  "devDependencies": {
189
189
  "@microsoft/api-extractor": "^7.53.3",