@incodetech/web 0.0.0-dev-20260418-89e0d60 → 0.0.0-dev-20260420-8f6ba50

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.
@@ -3,7 +3,7 @@ import { S as t, _ as n, h as r, l as i, m as a, p as o, v as s } from "./vendor
3
3
  import { o as c, r as l, t as u } from "./incodeComponent-CutyB4AE.js";
4
4
  import { t as d } from "./spacer-DCljE53A.js";
5
5
  import { t as f } from "./page-D5Mt-0zn.js";
6
- import { c as p, d as m, f as h, l as g, u as _, v, y } from "./extensibility-B7cG7wBG.js";
6
+ import { c as p, d as m, f as h, l as g, u as _, v, y } from "./extensibility-BNe5bvVp.js";
7
7
  import { n as b } from "./loadingIcon-HWY04StG.js";
8
8
  import { t as x } from "./spinner-l6dvYqCg.js";
9
9
  import { t as S } from "./button-wmLHLQxG.js";
@@ -3,7 +3,7 @@ import { _ as t, p as n, v as r } from "../vendor-preact-D6SntenC.js";
3
3
  import { o as i, t as a } from "../incodeComponent-CutyB4AE.js";
4
4
  import { t as o } from "../spacer-DCljE53A.js";
5
5
  import { t as s } from "../page-D5Mt-0zn.js";
6
- import "../extensibility-B7cG7wBG.js";
6
+ import "../extensibility-BNe5bvVp.js";
7
7
  import { t as c } from "../button-wmLHLQxG.js";
8
8
  import { t as l } from "../inputComposed-d8s1aPjr.js";
9
9
  import { t as u } from "../otpInput-CRZ2V8VY.js";
@@ -1215,17 +1215,21 @@ var be = ({ mode: e, orientation: t }) => {
1215
1215
  }) : import("./id-tutorial-CFTli-M3.js").then((e) => {
1216
1216
  c(e.default);
1217
1217
  });
1218
- }, [d, f]), !s) return null;
1219
- let m = i(d ? "idv2.capture.passport.title" : f ? "idv2.backTutorial.title" : "idv2.tutorial.v2.title"), h = i(d ? "idv2.capture.passport.subtitle" : f ? "idv2.backTutorial.subtitle" : "idv2.tutorial.subtitle"), g = i(f ? "idv2.backTutorial.disclaimer" : "idv2.tutorial.v2.autocapture");
1218
+ }, [d, f]), !s) return /* @__PURE__ */ u(h, {
1219
+ subtitle: i("common.loading"),
1220
+ size: "large",
1221
+ fullScreen: !0
1222
+ });
1223
+ let m = i(d ? "idv2.capture.passport.title" : f ? "idv2.backTutorial.title" : "idv2.tutorial.v2.title"), g = i(d ? "idv2.capture.passport.subtitle" : f ? "idv2.backTutorial.subtitle" : "idv2.tutorial.subtitle"), _ = i(f ? "idv2.backTutorial.disclaimer" : "idv2.tutorial.v2.autocapture");
1220
1224
  return /* @__PURE__ */ u(w, {
1221
1225
  animationData: s,
1222
1226
  title: m,
1223
- subtitle: h,
1227
+ subtitle: g,
1224
1228
  onContinue: () => {
1225
1229
  o(!0), t.nextStep();
1226
1230
  },
1227
1231
  buttonText: i("idv2.tutorial.startScan"),
1228
- disclaimerText: g,
1232
+ disclaimerText: _,
1229
1233
  isLoading: a,
1230
1234
  className: p("IncodeIdTutorial", d ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId")
1231
1235
  });
@@ -3,7 +3,7 @@ import { t } from "./uiConfig-CwpQ-IM6.js";
3
3
  import { a as n, n as r, o as i, t as a } from "./incodeComponent-CutyB4AE.js";
4
4
  import { t as o } from "./spacer-DCljE53A.js";
5
5
  import { t as s } from "./page-D5Mt-0zn.js";
6
- import { _ as c, a as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w, v as T, y as E } from "./extensibility-B7cG7wBG.js";
6
+ import { _ as c, a as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w, v as T, y as E } from "./extensibility-BNe5bvVp.js";
7
7
  import { a as D, i as O, n as k, o as A, s as j, t as M } from "./typography-CNNFm2Bl.js";
8
8
  import { t as N } from "./spinner-l6dvYqCg.js";
9
9
  import { t as P } from "./processing-CB6Hv9CT.js";
@@ -5,7 +5,7 @@ import { o as c, t as l } from "../incodeComponent-CutyB4AE.js";
5
5
  import { t as u } from "../spinner-l6dvYqCg.js";
6
6
  import "../spinner-CFvndzMU.js";
7
7
  import { t as d } from "../incodeModule-D_r2n18O.js";
8
- import { a as f, c as p, d as m, i as h, l as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C } from "../useModuleLoader-CjYPWq6s.js";
8
+ import { a as f, c as p, d as m, i as h, l as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C } from "../useModuleLoader-BBeMAD1Z.js";
9
9
  import { getDeviceClass as w } from "@incodetech/core/device";
10
10
  import { getRequiredWasmPipelines as T } from "@incodetech/core/flow";
11
11
  import { createSession as E, validateQrUuid as D } from "@incodetech/core/session";
@@ -263,9 +263,9 @@ var U = n(() => import("../homeScreen-DISgp8BK.js").then((e) => ({ default: e.Ho
263
263
  if (d.status === "initializing" || p.presentation.isAwaitingReady) return /* @__PURE__ */ o("div", {
264
264
  class: "IncodeFlow",
265
265
  children: /* @__PURE__ */ o(u, {
266
- title: n.spinnerConfig?.title,
267
- subtitle: n.spinnerConfig?.subtitle,
268
- size: n.spinnerConfig?.size,
266
+ title: n.spinnerConfig?.title ?? s("loadingCircle.hangOn"),
267
+ subtitle: n.spinnerConfig?.subtitle ?? s("loadingCircle.validating"),
268
+ size: n.spinnerConfig?.size ?? "large",
269
269
  fullScreen: !0
270
270
  })
271
271
  });
@@ -281,7 +281,7 @@ var U = n(() => import("../homeScreen-DISgp8BK.js").then((e) => ({ default: e.Ho
281
281
  children: /* @__PURE__ */ o(u, {
282
282
  title: n.spinnerConfig?.title ?? s("loadingCircle.hangOn"),
283
283
  subtitle: n.spinnerConfig?.subtitle ?? s("loadingCircle.validating"),
284
- size: n.spinnerConfig?.size,
284
+ size: n.spinnerConfig?.size ?? "large",
285
285
  fullScreen: !0
286
286
  })
287
287
  });
@@ -295,9 +295,9 @@ var U = n(() => import("../homeScreen-DISgp8BK.js").then((e) => ({ default: e.Ho
295
295
  if (x.status === "idle" || x.status === "loading" || x.status === "error") return /* @__PURE__ */ o("div", {
296
296
  class: "IncodeFlow",
297
297
  children: /* @__PURE__ */ o(u, {
298
- title: n.spinnerConfig?.title,
299
- subtitle: n.spinnerConfig?.subtitle,
300
- size: n.spinnerConfig?.size,
298
+ title: n.spinnerConfig?.title ?? s("loadingCircle.hangOn"),
299
+ subtitle: n.spinnerConfig?.subtitle ?? s("loadingCircle.validating"),
300
+ size: n.spinnerConfig?.size ?? "large",
301
301
  fullScreen: !0
302
302
  })
303
303
  });
package/dist/id/id.es.js CHANGED
@@ -1,68 +1,75 @@
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-CutyB4AE.js";
3
- import { a as o, i as s, n as c, o as l, r as u, t as d } from "../extensibility-B7cG7wBG.js";
4
- import { t as f } from "../processing-CB6Hv9CT.js";
5
- import { r as p } from "../tutorial-8ygdgcyM.js";
6
- import { t as m } from "../incodeModule-D_r2n18O.js";
7
- import { createIdCaptureManager as h } from "@incodetech/core/id";
1
+ import { n as e } from "../i18n-DhqfF41o.js";
2
+ import { _ as t, c as n, o as r, v as i } from "../vendor-preact-D6SntenC.js";
3
+ import { o as a, t as o } from "../incodeComponent-CutyB4AE.js";
4
+ import { a as s, i as c, n as l, o as u, r as d, t as f } from "../extensibility-BNe5bvVp.js";
5
+ import { t as p } from "../spinner-l6dvYqCg.js";
6
+ import "../spinner-CFvndzMU.js";
7
+ import { t as m } from "../processing-CB6Hv9CT.js";
8
+ import { r as h } from "../tutorial-8ygdgcyM.js";
9
+ import { t as g } from "../incodeModule-D_r2n18O.js";
10
+ import { createIdCaptureManager as _ } from "@incodetech/core/id";
8
11
  //#region src/shared/fonts/preloadDisplayFont.ts
9
- var g = !1;
10
- function _() {
11
- if (g || typeof document > "u") return;
12
+ var v = !1;
13
+ function y() {
14
+ if (v || typeof document > "u") return;
12
15
  let e = document.fonts;
13
- e?.load && (g = !0, e.load("800 1rem \"Rethink Sans\"").catch(() => {}));
16
+ e?.load && (v = !0, e.load("800 1rem \"Rethink Sans\"").catch(() => {}));
14
17
  }
15
- function v() {
16
- e(() => {
17
- _();
18
+ function b() {
19
+ t(() => {
20
+ y();
18
21
  }, []);
19
22
  }
20
23
  //#endregion
21
24
  //#region src/modules/id/id.tsx
22
- var y = t(() => import("../mandatoryConsent-DM10Au24.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;
26
- if (!e) throw Error("ID capture config is required when no manager is provided");
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: _,
25
+ var x = n(() => import("../mandatoryConsent-DM10Au24.js").then((e) => ({ default: e.MandatoryConsent }))), S = ({ config: t, manager: n, onFinish: o, onError: g }) => {
26
+ b();
27
+ let { t: v } = e(), [y, S] = a(() => {
28
+ if (n) return n;
29
+ if (!t) throw Error("ID capture config is required when no manager is provided");
30
+ return _({ config: t });
31
+ }, { manageLifecycle: !n });
32
+ return y.status === "idle" || y.status === "loading" ? /* @__PURE__ */ i(p, {
33
+ subtitle: v("common.loading"),
34
+ size: "large",
35
+ fullScreen: !0
36
+ }) : y.status === "chooser" ? /* @__PURE__ */ i(l, {
37
+ manager: S,
38
+ state: y
39
+ }) : y.status === "tutorial" ? /* @__PURE__ */ i(d, {
40
+ manager: S,
41
+ state: y
42
+ }) : y.status === "permissions" ? /* @__PURE__ */ i(h, {
43
+ manager: S,
44
+ permissionStatus: y.permissionStatus
45
+ }) : y.status === "frontFinished" ? /* @__PURE__ */ i(f, {
46
+ manager: S,
40
47
  direction: "toBack"
41
- }) : g.status === "backFinished" ? /* @__PURE__ */ r(d, {
42
- manager: _,
48
+ }) : y.status === "backFinished" ? /* @__PURE__ */ i(f, {
49
+ manager: S,
43
50
  direction: "toFront"
44
- }) : g.status === "capture" ? /* @__PURE__ */ r(s, {
45
- manager: _,
46
- state: g,
47
- onFinish: () => a?.()
48
- }) : g.status === "mandatoryConsent" ? /* @__PURE__ */ r(n, {
51
+ }) : y.status === "capture" ? /* @__PURE__ */ i(c, {
52
+ manager: S,
53
+ state: y,
54
+ onFinish: () => o?.()
55
+ }) : y.status === "mandatoryConsent" ? /* @__PURE__ */ i(r, {
49
56
  fallback: null,
50
- children: /* @__PURE__ */ r(y, {
51
- config: { consentType: g.regulationType },
52
- onFinish: () => _.acceptMandatoryConsent(),
53
- onError: () => _.cancelMandatoryConsent()
57
+ children: /* @__PURE__ */ i(x, {
58
+ config: { consentType: y.regulationType },
59
+ onFinish: () => S.acceptMandatoryConsent(),
60
+ onError: () => S.cancelMandatoryConsent()
54
61
  })
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
62
+ }) : y.status === "processing" ? /* @__PURE__ */ i(m, {}) : y.status === "expired" ? /* @__PURE__ */ i(s, { manager: S }) : y.status === "finished" ? (o?.(), null) : y.status === "closed" ? (g?.(void 0), null) : y.status === "error" ? /* @__PURE__ */ i(u, {
63
+ manager: S,
64
+ state: y,
65
+ onError: g
59
66
  }) : null;
60
- }, x = ({ config: e, manager: t, onFinish: n, onError: i }) => /* @__PURE__ */ r(a, { children: e || t ? /* @__PURE__ */ r(b, {
67
+ }, C = ({ config: e, manager: t, onFinish: n, onError: r }) => /* @__PURE__ */ i(o, { children: e || t ? /* @__PURE__ */ i(S, {
61
68
  config: e,
62
69
  manager: t,
63
70
  onFinish: n,
64
- onError: i
71
+ onError: r
65
72
  }) : null });
66
- m(x, "incode-id");
73
+ g(C, "incode-id");
67
74
  //#endregion
68
- export { x as Id };
75
+ export { C as Id };
@@ -166,8 +166,8 @@ var A = {
166
166
  GEOLOCATION: () => import("./geolocation/geolocation.es.js").then((e) => e.Geolocation),
167
167
  EXTERNAL_VERIFICATION: () => import("./ekycModule-CqB6X3sB.js").then((e) => e.EkycModule),
168
168
  EKYB: () => import("./ekybModule-CRH3ldkx.js").then((e) => e.EkybModule),
169
- DOCUMENT_CAPTURE: () => import("./documentCapture-CyvfOunw.js").then((e) => e.DocumentCapture),
170
- ADDRESS: () => import("./documentCapture-CyvfOunw.js").then((e) => e.DocumentCapture),
169
+ DOCUMENT_CAPTURE: () => import("./documentCapture-Dy36qTN4.js").then((e) => e.DocumentCapture),
170
+ ADDRESS: () => import("./documentCapture-Dy36qTN4.js").then((e) => e.DocumentCapture),
171
171
  COMBINED_CONSENT: () => import("./consent/consent.es.js").then((e) => e.Consent),
172
172
  MANDATORY_CONSENT: () => import("./mandatoryConsent-DM10Au24.js").then((e) => e.MandatoryConsent),
173
173
  SIGNATURE: () => import("./signature/signature.es.js").then((e) => e.Signature),
@@ -5,7 +5,7 @@ import { o, t as s } from "../incodeComponent-CutyB4AE.js";
5
5
  import { t as c } from "../spinner-l6dvYqCg.js";
6
6
  import "../spinner-CFvndzMU.js";
7
7
  import { t as l } from "../incodeModule-D_r2n18O.js";
8
- import { a as u, f as d, i as f, m as p, t as m } from "../useModuleLoader-CjYPWq6s.js";
8
+ import { a as u, f as d, i as f, m as p, t as m } from "../useModuleLoader-BBeMAD1Z.js";
9
9
  import { resolveWasmConfig as h, warmupWasm as g } from "@incodetech/core/wasm";
10
10
  import { createWorkflowManager as _ } from "@incodetech/core/workflow";
11
11
  //#region src/modules/workflow/workflowInit.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260418-89e0d60",
3
+ "version": "0.0.0-dev-20260420-8f6ba50",
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-20260418-89e0d60"
186
+ "@incodetech/core": "0.0.0-dev-20260420-8f6ba50"
187
187
  },
188
188
  "devDependencies": {
189
189
  "@microsoft/api-extractor": "^7.53.3",