@incodetech/web 0.0.0-dev-20260402-0dc2fb9 → 0.0.0-dev-20260402-728ce7f

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.
@@ -15,7 +15,7 @@ import { P as $ } from "./phoneInputComposed-BAFZQ4Y8.js";
15
15
  import { D as ra, S as ea } from "./dropdownComposed-CzAsPPqv.js";
16
16
  import { C as ta, D as sa } from "./dateInputComposed-D5kgh_aC.js";
17
17
  import { b as pa, C as ca, c as ia, e as ua, d as la, H as ma, L as Ca, T as da, a as fa } from "./captureOverlay-wQmz2Z5r.js";
18
- import { d as xa, C as ha, b as ga, I as ya, c as Ta, F as va, T as Sa, S as Ba, V as Fa, a as Pa } from "./flipAnimation-CLQ2VPp5.js";
18
+ import { d as xa, C as ha, b as ga, I as ya, c as Ta, F as va, T as Sa, S as Ba, V as Fa, a as Pa } from "./flipAnimation-r4wJkacO.js";
19
19
  import { L as Oa, M as ba } from "./manualCaptureButton-CPZ2xxEI.js";
20
20
  import { A as i, y as u, q as l } from "./vendor-preact-BoMmvSgn.js";
21
21
  import { B as Ma, P as Va } from "./permissions-BeU3HuVB.js";
@@ -291,17 +291,17 @@ const J = ({ className: i }) => /* @__PURE__ */ e(
291
291
  onTakeManually: l,
292
292
  portalContainer: n
293
293
  }) => {
294
- const { t: r } = C(), o = E((s) => {
295
- s?.focus();
296
- }, []), a = () => {
294
+ const { t: r } = C(), o = E((a) => {
295
+ a?.focus();
296
+ }, []), s = () => {
297
297
  l(), t();
298
298
  };
299
299
  return /* @__PURE__ */ e(
300
300
  w.Root,
301
301
  {
302
302
  open: i,
303
- onOpenChange: (s) => {
304
- s || t();
303
+ onOpenChange: (a) => {
304
+ a || t();
305
305
  },
306
306
  class: "IncodeCommonIssuesFullScreen",
307
307
  hasBackdrop: !1,
@@ -348,7 +348,7 @@ const J = ({ className: i }) => /* @__PURE__ */ e(
348
348
  L,
349
349
  {
350
350
  variant: "link",
351
- onClick: a,
351
+ onClick: s,
352
352
  class: "IncodeCommonIssuesTakeManually",
353
353
  children: r("commonIssues.takeManually")
354
354
  }
@@ -365,15 +365,15 @@ const J = ({ className: i }) => /* @__PURE__ */ e(
365
365
  children: n,
366
366
  className: r
367
367
  }) => {
368
- const o = i !== "vertical" || t === "passport", a = t === "passport", s = `IncodeCaptureFrame${l.charAt(0).toUpperCase() + l.slice(1)}`;
368
+ const o = i !== "vertical" || t === "passport", s = t === "passport", a = `IncodeCaptureFrame${l.charAt(0).toUpperCase() + l.slice(1)}`;
369
369
  return /* @__PURE__ */ e(
370
370
  "div",
371
371
  {
372
372
  class: V(
373
373
  "IncodeCaptureFrame",
374
374
  o ? "IncodeCaptureFrameHorizontal" : "IncodeCaptureFrameVertical",
375
- s,
376
- a && "IncodeCaptureFramePassport",
375
+ a,
376
+ s && "IncodeCaptureFramePassport",
377
377
  r
378
378
  ),
379
379
  "aria-hidden": "true",
@@ -388,9 +388,9 @@ const J = ({ className: i }) => /* @__PURE__ */ e(
388
388
  borderState: n,
389
389
  topContent: r,
390
390
  bottomContent: o,
391
- overlayContent: a
391
+ overlayContent: s
392
392
  }) => {
393
- const { t: s } = C();
393
+ const { t: a } = C();
394
394
  return /* @__PURE__ */ e(x, { hideHeader: !0, hideFooterBranding: !0, children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayout", children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayoutContent", children: [
395
395
  r && /* @__PURE__ */ e("div", { class: "IncodeIdProcessingTopArea", children: r }),
396
396
  /* @__PURE__ */ e(
@@ -409,14 +409,14 @@ const J = ({ className: i }) => /* @__PURE__ */ e(
409
409
  class: "IncodeIdProcessingImage"
410
410
  }
411
411
  ),
412
- a && /* @__PURE__ */ e("div", { class: "IncodeIdProcessingOverlay", "aria-hidden": "true", children: a })
412
+ s && /* @__PURE__ */ e("div", { class: "IncodeIdProcessingOverlay", "aria-hidden": "true", children: s })
413
413
  ]
414
414
  }
415
415
  ),
416
416
  /* @__PURE__ */ e("div", { class: "IncodeIdProcessingBottomArea", children: [
417
417
  /* @__PURE__ */ e("div", { class: "IncodeCaptureEncryptionLabel", children: [
418
418
  /* @__PURE__ */ e(G, { className: "IncodeCaptureEncryptionIcon" }),
419
- /* @__PURE__ */ e("span", { children: s("v2.capture.label") })
419
+ /* @__PURE__ */ e("span", { children: a("v2.capture.label") })
420
420
  ] }),
421
421
  o
422
422
  ] })
@@ -427,16 +427,16 @@ const J = ({ className: i }) => /* @__PURE__ */ e(
427
427
  orientation: l,
428
428
  mode: n
429
429
  }) => {
430
- const { t: r } = C(), o = u(null), a = l !== "vertical" || n === "passport", [s, d] = g(null);
430
+ const { t: r } = C(), o = u(null), s = l !== "vertical" || n === "passport", [a, d] = g(null);
431
431
  return f(() => {
432
432
  o.current?.focus();
433
433
  }, []), f(() => {
434
- a ? import("./id-laser-h-BBV3r3rz.js").then((c) => {
434
+ s ? import("./id-laser-h-BBV3r3rz.js").then((c) => {
435
435
  d(c.default);
436
436
  }) : import("./id-laser-v-BTHJaSfx.js").then((c) => {
437
437
  d(c.default);
438
438
  });
439
- }, [a]), /* @__PURE__ */ e(
439
+ }, [s]), /* @__PURE__ */ e(
440
440
  F,
441
441
  {
442
442
  imageUrl: i,
@@ -456,10 +456,10 @@ const J = ({ className: i }) => /* @__PURE__ */ e(
456
456
  }
457
457
  )
458
458
  ] }),
459
- overlayContent: s ? /* @__PURE__ */ e(
459
+ overlayContent: a ? /* @__PURE__ */ e(
460
460
  D,
461
461
  {
462
- animationData: s,
462
+ animationData: a,
463
463
  loop: !0,
464
464
  className: "IncodeAnalyzingLottie"
465
465
  }
@@ -511,8 +511,8 @@ const J = ({ className: i }) => /* @__PURE__ */ e(
511
511
  mode: n,
512
512
  title: r,
513
513
  subtitle: o,
514
- buttonText: a,
515
- onButtonClick: s,
514
+ buttonText: s,
515
+ onButtonClick: a,
516
516
  attemptsRemaining: d
517
517
  }) => {
518
518
  const { t: c } = C(), h = u(null);
@@ -546,7 +546,7 @@ const J = ({ className: i }) => /* @__PURE__ */ e(
546
546
  d !== void 0 && d > 0 && /* @__PURE__ */ e("p", { class: "IncodeIdProcessingResultAttempts", children: c("v2.idError.attemptsLeft", {
547
547
  count: d
548
548
  }) }),
549
- /* @__PURE__ */ e(L, { onClick: s, "data-testid": "retry-button", children: a })
549
+ /* @__PURE__ */ e(L, { onClick: a, "data-testid": "retry-button", children: s })
550
550
  ] })
551
551
  }
552
552
  );
@@ -624,9 +624,9 @@ const J = ({ className: i }) => /* @__PURE__ */ e(
624
624
  }
625
625
  );
626
626
  }
627
- return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ e(r1, { manager: i, state: t }) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ e(o1, { manager: i, state: t }) : /* @__PURE__ */ e(s1, { manager: i, state: t });
628
- }, s1 = ({ manager: i, state: t }) => {
629
- const l = u(null), n = u(null), r = u(null), o = u(null), a = u(null), [s, d] = g(!1), [c, h] = g(!1);
627
+ return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ e(r1, { manager: i, state: t }) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ e(o1, { manager: i, state: t }) : /* @__PURE__ */ e(a1, { manager: i, state: t });
628
+ }, a1 = ({ manager: i, state: t }) => {
629
+ const l = u(null), n = u(null), r = u(null), o = u(null), s = u(null), [a, d] = g(!1), [c, h] = g(!1);
630
630
  f(() => {
631
631
  const p = l.current;
632
632
  if (!p || !t.stream) {
@@ -664,7 +664,7 @@ const J = ({ className: i }) => /* @__PURE__ */ e(
664
664
  i.capture();
665
665
  };
666
666
  return /* @__PURE__ */ e(x, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: [
667
- /* @__PURE__ */ e(z, { stream: t.stream, "aria-hidden": s || void 0, children: /* @__PURE__ */ e(
667
+ /* @__PURE__ */ e(z, { stream: t.stream, "aria-hidden": a || void 0, children: /* @__PURE__ */ e(
668
668
  N,
669
669
  {
670
670
  ref: n,
@@ -680,30 +680,30 @@ const J = ({ className: i }) => /* @__PURE__ */ e(
680
680
  captureButtonRef: o
681
681
  }
682
682
  ) }),
683
- /* @__PURE__ */ e("div", { ref: a }),
683
+ /* @__PURE__ */ e("div", { ref: s }),
684
684
  /* @__PURE__ */ e(
685
685
  t1,
686
686
  {
687
- open: s,
687
+ open: a,
688
688
  onClose: b,
689
689
  onTakeManually: S,
690
- portalContainer: a.current
690
+ portalContainer: s.current
691
691
  }
692
692
  )
693
693
  ] });
694
694
  }, R1 = ({ manager: i, state: t }) => {
695
- const { t: l } = C(), [n, r] = g(!1), [o, a] = g(null), s = t.selectedDocumentType === "passport", d = t.currentMode === "back";
695
+ const { t: l } = C(), [n, r] = g(!1), [o, s] = g(null), a = t.selectedDocumentType === "passport", d = t.currentMode === "back";
696
696
  if (f(() => {
697
- s ? import("./passport-tutorial-CaYBFTqt.js").then((I) => {
698
- a(I.default);
697
+ a ? import("./passport-tutorial-CaYBFTqt.js").then((I) => {
698
+ s(I.default);
699
699
  }) : d ? import("./back-tutorial-An9AcMSe.js").then((I) => {
700
- a(I.default);
700
+ s(I.default);
701
701
  }) : import("./id-tutorial-B-F5Q28m.js").then((I) => {
702
- a(I.default);
702
+ s(I.default);
703
703
  });
704
- }, [s, d]), !o)
704
+ }, [a, d]), !o)
705
705
  return null;
706
- const c = l(s ? "idv2.capture.passport.title" : d ? "idv2.backTutorial.title" : "idv2.tutorial.v2.title"), h = l(s ? "idv2.capture.passport.subtitle" : d ? "idv2.backTutorial.subtitle" : "idv2.tutorial.subtitle"), B = l(d ? "idv2.backTutorial.disclaimer" : "idv2.tutorial.v2.autocapture");
706
+ const c = l(a ? "idv2.capture.passport.title" : d ? "idv2.backTutorial.title" : "idv2.tutorial.v2.title"), h = l(a ? "idv2.capture.passport.subtitle" : d ? "idv2.backTutorial.subtitle" : "idv2.tutorial.subtitle"), B = l(d ? "idv2.backTutorial.disclaimer" : "idv2.tutorial.v2.autocapture");
707
707
  return /* @__PURE__ */ e(
708
708
  W,
709
709
  {
@@ -718,11 +718,11 @@ const J = ({ className: i }) => /* @__PURE__ */ e(
718
718
  isLoading: n,
719
719
  className: V(
720
720
  "IncodeIdTutorial",
721
- s ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId"
721
+ a ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId"
722
722
  )
723
723
  }
724
724
  );
725
- }, a1 = () => /* @__PURE__ */ e(
725
+ }, s1 = () => /* @__PURE__ */ e(
726
726
  "svg",
727
727
  {
728
728
  width: "119",
@@ -1957,7 +1957,7 @@ const J = ({ className: i }) => /* @__PURE__ */ e(
1957
1957
  },
1958
1958
  id: {
1959
1959
  type: "id",
1960
- icon: a1,
1960
+ icon: s1,
1961
1961
  title: "idv2.chooser.idButtonTitle",
1962
1962
  testId: "verification-option-id",
1963
1963
  weight: 2
@@ -2021,17 +2021,17 @@ const U1 = ({ manager: i, state: t }) => {
2021
2021
  manager: i,
2022
2022
  direction: t
2023
2023
  }) => {
2024
- const [l, n] = g(null), [r, o] = g(!1), { t: a } = C();
2024
+ const [l, n] = g(null), [r, o] = g(!1), { t: s } = C();
2025
2025
  f(() => {
2026
2026
  import("./flip-animation-COR596wy.js").then((c) => {
2027
2027
  n(c.default);
2028
2028
  });
2029
2029
  }, []);
2030
- const s = E(async () => {
2030
+ const a = E(async () => {
2031
2031
  await new Promise((c) => setTimeout(c, 1e3)), t === "toBack" ? i.continueToBack() : i.continueToFront(), o(!0);
2032
2032
  }, [t, i]);
2033
- return r ? /* @__PURE__ */ e(H, { size: "large" }) : l ? /* @__PURE__ */ e("div", { class: "IncodeFlipAnimation", children: [
2034
- /* @__PURE__ */ e(y, { role: "status", className: "IncodeFlipAnimationTitle", children: a(t === "toBack" ? "idv2.flipAnimation.title" : "idv2.flipAnimation.titleToFront") }),
2033
+ return r ? /* @__PURE__ */ e(H, { size: "large", title: `${s("webcam.loading")}...` }) : l ? /* @__PURE__ */ e("div", { class: "IncodeFlipAnimation", children: [
2034
+ /* @__PURE__ */ e(y, { role: "status", className: "IncodeFlipAnimationTitle", children: s(t === "toBack" ? "idv2.flipAnimation.title" : "idv2.flipAnimation.titleToFront") }),
2035
2035
  /* @__PURE__ */ e(_, { size: 32 }),
2036
2036
  /* @__PURE__ */ e(
2037
2037
  D,
@@ -2039,7 +2039,7 @@ const U1 = ({ manager: i, state: t }) => {
2039
2039
  animationData: l,
2040
2040
  loop: !1,
2041
2041
  reverse: t === "toFront",
2042
- onComplete: s
2042
+ onComplete: a
2043
2043
  }
2044
2044
  )
2045
2045
  ] }) : null;
package/dist/id/id.es.js CHANGED
@@ -5,7 +5,7 @@ import "@incodetech/core";
5
5
  import { P as f } from "../permissions-BeU3HuVB.js";
6
6
  import { r as l } from "../incodeModule-C4XIllao.js";
7
7
  import { P as h } from "../processing-Ss26Ad0W.js";
8
- import { b as C, T as I, F as a, C as g, c as y, I as F } from "../flipAnimation-CLQ2VPp5.js";
8
+ import { b as C, T as I, F as a, C as g, c as y, I as F } from "../flipAnimation-r4wJkacO.js";
9
9
  import "../captureOverlay-wQmz2Z5r.js";
10
10
  import "../uiConfig-DmIn-g8M.js";
11
11
  import "../typography-CBPoLoAP.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260402-0dc2fb9",
3
+ "version": "0.0.0-dev-20260402-728ce7f",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -137,7 +137,7 @@
137
137
  "qrcode": "^1.5.4",
138
138
  "signature_pad": "^5.1.3",
139
139
  "tailwindcss": "^4.1.17",
140
- "@incodetech/core": "0.0.0-dev-20260402-0dc2fb9"
140
+ "@incodetech/core": "0.0.0-dev-20260402-728ce7f"
141
141
  },
142
142
  "devDependencies": {
143
143
  "@microsoft/api-extractor": "^7.53.3",