@incodetech/web 0.0.0-dev-20260430-3fffde8 → 0.0.0-dev-20260430-9f41a18

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.
@@ -4,7 +4,7 @@ import { t as c } from "../uiConfig-CwpQ-IM6.js";
4
4
  import { o as l, t as u } from "../incodeComponent-DexcYK3Y.js";
5
5
  import { t as d } from "../transitionSpinner-DqDwaNM6.js";
6
6
  import { t as f } from "../incodeModule-CHzKl22Y.js";
7
- import { a as p, c as m, d as h, i as g, l as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w } from "../useModuleLoader-T6BIz-cA.js";
7
+ import { a as p, c as m, d as h, i as g, l as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w } from "../useModuleLoader-BHKdXE3w.js";
8
8
  import { getDeviceClass as T } from "@incodetech/core/device";
9
9
  import { getRequiredWasmPipelines as E } from "@incodetech/core/flow";
10
10
  import { QrValidationError as D, bootstrapSession as O, refreshQrUrlUuid as k } from "@incodetech/core/session";
@@ -2549,7 +2549,7 @@
2549
2549
  min-height: var(--spacing-0, var(--spacing-none, 0px));
2550
2550
  }
2551
2551
 
2552
- .IncodeIdOcrForm {
2552
+ .IncodeIdOcrPage .IncodeIdOcrForm {
2553
2553
  margin-top: var(--spacing-32, var(--spacing-32, 32px));
2554
2554
  height: 100%;
2555
2555
  min-height: var(--spacing-0, var(--spacing-none, 0px));
@@ -2562,42 +2562,14 @@
2562
2562
  overflow-y: auto;
2563
2563
  }
2564
2564
 
2565
- .IncodeIdOcrButton {
2565
+ .IncodeIdOcrPage .IncodeIdOcrButton {
2566
2566
  bottom: var(--spacing-0, var(--spacing-none, 0px));
2567
2567
  width: 100%;
2568
2568
  position: sticky;
2569
2569
  }
2570
2570
 
2571
- .IncodeIdOcrSpinner {
2572
- justify-content: center;
2573
- align-items: center;
2574
- gap: var(--spacing-16, var(--spacing-16, 16px));
2575
- flex-direction: column;
2576
- flex: 1;
2577
- display: flex;
2578
- }
2579
-
2580
- .IncodeIdOcrRadioGroup {
2581
- width: 100%;
2571
+ .IncodeIdOcrPage .IncodeIdOcrRadioGroup {
2582
2572
  max-width: var(--incode-form-max-w);
2583
- gap: var(--spacing-16, var(--spacing-16, 16px));
2584
- flex-direction: column;
2585
- display: flex;
2586
- }
2587
-
2588
- .IncodeIdOcrRadioOptionsLabel {
2589
- font-family: var(--typography-label-family);
2590
- font-size: var(--typography-label-m-size);
2591
- font-weight: var(--typography-label-m-weight);
2592
- line-height: var(--typography-label-m-line-height);
2593
- letter-spacing: var(--typography-label-m-letter-spacing);
2594
- color: var(--color-input-text-label-default, var(--input-text-label-default));
2595
- }
2596
-
2597
- .IncodeIdOcrRadioOptions {
2598
- gap: var(--spacing-20, var(--spacing-20, 20px));
2599
- width: 100%;
2600
- display: flex;
2601
2573
  }
2602
2574
 
2603
2575
  .IncodeDocumentUploadPage {
@@ -22,7 +22,7 @@
22
22
  min-height: var(--spacing-0, var(--spacing-none, 0px));
23
23
  }
24
24
 
25
- .IncodeIdOcrForm {
25
+ .IncodeIdOcrPage .IncodeIdOcrForm {
26
26
  margin-top: var(--spacing-32, var(--spacing-32, 32px));
27
27
  height: 100%;
28
28
  min-height: var(--spacing-0, var(--spacing-none, 0px));
@@ -35,40 +35,12 @@
35
35
  overflow-y: auto;
36
36
  }
37
37
 
38
- .IncodeIdOcrButton {
38
+ .IncodeIdOcrPage .IncodeIdOcrButton {
39
39
  bottom: var(--spacing-0, var(--spacing-none, 0px));
40
40
  width: 100%;
41
41
  position: sticky;
42
42
  }
43
43
 
44
- .IncodeIdOcrSpinner {
45
- justify-content: center;
46
- align-items: center;
47
- gap: var(--spacing-16, var(--spacing-16, 16px));
48
- flex-direction: column;
49
- flex: 1;
50
- display: flex;
51
- }
52
-
53
- .IncodeIdOcrRadioGroup {
54
- width: 100%;
44
+ .IncodeIdOcrPage .IncodeIdOcrRadioGroup {
55
45
  max-width: var(--incode-form-max-w);
56
- gap: var(--spacing-16, var(--spacing-16, 16px));
57
- flex-direction: column;
58
- display: flex;
59
- }
60
-
61
- .IncodeIdOcrRadioOptionsLabel {
62
- font-family: var(--typography-label-family);
63
- font-size: var(--typography-label-m-size);
64
- font-weight: var(--typography-label-m-weight);
65
- line-height: var(--typography-label-m-line-height);
66
- letter-spacing: var(--typography-label-m-letter-spacing);
67
- color: var(--color-input-text-label-default, var(--input-text-label-default));
68
- }
69
-
70
- .IncodeIdOcrRadioOptions {
71
- gap: var(--spacing-20, var(--spacing-20, 20px));
72
- width: 100%;
73
- display: flex;
74
46
  }
@@ -2,58 +2,52 @@ import { n as e } from "./i18n-ntrVdqVv.js";
2
2
  import { v as t } from "./vendor-preact-D6SntenC.js";
3
3
  import { o as n, t as r } from "./incodeComponent-DexcYK3Y.js";
4
4
  import { t as i } from "./page-BB20C-zy.js";
5
- import "./extensibility-BhOLYPko.js";
6
- import { t as a } from "./button-i4SPU5G7.js";
7
- import { t as o } from "./verificationResult-DTfsw2w2.js";
8
- import { t as s } from "./inputComposed-4aHO5YRK.js";
9
- import { t as c } from "./dateInputComposed-BISaNEkl.js";
10
- import { t as l } from "./radioButtonComposed-CuKvBI5S.js";
5
+ import { _ as a } from "./extensibility-BhOLYPko.js";
6
+ import { t as o } from "./button-i4SPU5G7.js";
7
+ import { t as s } from "./verificationResult-DTfsw2w2.js";
8
+ import { t as c } from "./inputComposed-4aHO5YRK.js";
9
+ import { t as l } from "./dateInputComposed-BISaNEkl.js";
11
10
  import { t as u } from "./incodeModule-CHzKl22Y.js";
12
11
  import { createIdOcrManager as d, getOcrFields as f } from "@incodetech/core/id-ocr";
13
12
  //#region src/modules/id-ocr/idOcrForm.tsx
14
13
  var p = {
15
- text: s,
16
- date: c
17
- }, m = ({ fields: n, data: r, validationErrors: i, isReadonly: o, onChange: s, onBlur: c, onContinue: u }) => {
14
+ text: c,
15
+ date: l
16
+ }, m = ({ fields: n, data: r, validationErrors: i, isReadonly: s, onChange: c, onBlur: l, onContinue: u }) => {
18
17
  let { t: d } = e(), f = i && Object.keys(i).length > 0;
19
18
  return /* @__PURE__ */ t("div", {
20
19
  className: "IncodeIdOcrForm",
21
- children: [(n.length === 1 && n[0]?.key === "documentNumber" ? n : n.filter((e) => e.key === "documentNumber" ? !!r.documentNumber : e.key === "issuingCountry" ? o === !0 : !0)).map((e) => {
22
- let n = r[e.key] ?? "", a = i?.[e.key], u = a ? d(a) : void 0;
23
- if (e.type === "radio") return /* @__PURE__ */ t("div", {
24
- className: "IncodeIdOcrRadioGroup",
25
- children: [/* @__PURE__ */ t("label", {
26
- className: "IncodeIdOcrRadioOptionsLabel",
27
- htmlFor: e.key,
28
- children: `${!o && e.required ? "*" : ""}${d(e.labelKey)}`
29
- }), /* @__PURE__ */ t("div", {
30
- className: "IncodeIdOcrRadioOptions",
31
- children: e.options?.map((r) => /* @__PURE__ */ t(l, {
32
- id: `id-ocr-${e.key}`,
33
- label: d(r.label),
34
- checked: n === r.value,
35
- value: r.value,
36
- disabled: o,
37
- onChange: () => s(e.key, r.value)
38
- }, `${e.key}-${r.value}`))
39
- })]
40
- });
41
- let f = p[e.type], m = o ? !1 : e.required, h = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
20
+ children: [n.filter((e) => e.key === "issuingCountry" ? s === !0 : e.key === "documentNumber" && s ? !!r.documentNumber : !0).map((e) => {
21
+ let n = r[e.key] ?? "", o = i?.[e.key], u = o ? d(o) : void 0;
22
+ if (e.type === "radio") return /* @__PURE__ */ t(a, {
23
+ id: `id-ocr-${e.key}`,
24
+ class: "IncodeIdOcrRadioGroup",
25
+ label: d(e.labelKey),
26
+ value: n,
27
+ options: (e.options ?? []).map((e) => ({
28
+ value: e.value,
29
+ label: d(e.label)
30
+ })),
31
+ required: !s && e.required,
32
+ disabled: s,
33
+ onChange: (t) => c(e.key, t)
34
+ }, e.key);
35
+ let f = p[e.type], m = s ? !1 : e.required, h = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
42
36
  return /* @__PURE__ */ t(f, {
43
37
  id: `id-ocr-${e.key}`,
44
38
  label: d(e.labelKey),
45
39
  value: n,
46
- disabled: o,
40
+ disabled: s,
47
41
  required: m,
48
42
  error: u,
49
43
  showErrorIcon: !!u,
50
- onInput: (t) => s(e.key, t.target.value),
51
- onBlur: o || !c ? void 0 : () => c(e.key),
44
+ onInput: (t) => c(e.key, t.target.value),
45
+ onBlur: s || !l ? void 0 : () => l(e.key),
52
46
  ...e.type === "date" && { max: h }
53
47
  }, e.key);
54
48
  }), /* @__PURE__ */ t("div", {
55
49
  className: "IncodeIdOcrButton",
56
- children: /* @__PURE__ */ t(a, {
50
+ children: /* @__PURE__ */ t(o, {
57
51
  onClick: u,
58
52
  disabled: f,
59
53
  children: d("common.continue")
@@ -61,19 +55,19 @@ var p = {
61
55
  })]
62
56
  });
63
57
  }, h = ({ config: r, onFinish: a }) => {
64
- let { t: s } = e(), [c, l] = n(() => d({ config: r }));
65
- return c.status === "finished" ? (a?.(), null) : c.status === "success" ? /* @__PURE__ */ t(o, {
58
+ let { t: o } = e(), [c, l] = n(() => d({ config: r }));
59
+ return c.status === "finished" ? (a?.(), null) : c.status === "success" ? /* @__PURE__ */ t(s, {
66
60
  status: "success",
67
- successTitle: s("idOcr.successTitle")
68
- }) : c.status === "error" ? /* @__PURE__ */ t(o, {
61
+ successTitle: o("idOcr.successTitle")
62
+ }) : c.status === "error" ? /* @__PURE__ */ t(s, {
69
63
  status: "failure",
70
64
  onRetry: () => l.retry()
71
- }) : c.status === "loading" || c.status === "submitting" ? /* @__PURE__ */ t(o, {
65
+ }) : c.status === "loading" || c.status === "submitting" ? /* @__PURE__ */ t(s, {
72
66
  status: "submitting",
73
- submittingTitle: s("common.holdOnASec"),
74
- submittingSubtitle: s("idOcr.loadingSubtitle")
67
+ submittingTitle: o("common.holdOnASec"),
68
+ submittingSubtitle: o("idOcr.loadingSubtitle")
75
69
  }) : c.status === "readonly" || c.status === "inputting" ? /* @__PURE__ */ t(i, {
76
- title: s("idOcr.title"),
70
+ title: o("idOcr.title"),
77
71
  className: "IncodeIdOcrPage",
78
72
  hideFooterBranding: !0,
79
73
  children: /* @__PURE__ */ t(m, {
@@ -177,7 +177,7 @@ var M = {
177
177
  COMBINED_CONSENT: () => import("./consent/consent.es.js").then((e) => e.Consent),
178
178
  MANDATORY_CONSENT: () => import("./mandatoryConsent-OCdxJMmo.js").then((e) => e.MandatoryConsent),
179
179
  SIGNATURE: () => import("./signature/signature.es.js").then((e) => e.Signature),
180
- ID_OCR: () => import("./idOcr-DyEsmJUm.js").then((e) => e.IdOcr),
180
+ ID_OCR: () => import("./idOcr-CzUlyrUX.js").then((e) => e.IdOcr),
181
181
  ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((e) => e.Antifraud),
182
182
  CUSTOM_FIELDS: () => import("./customFields-ClP-OHqQ.js").then((e) => e.CustomFields),
183
183
  WATCHLIST: () => import("./watchlist/watchlist.es.js").then((e) => e.Watchlist),
@@ -2198,7 +2198,7 @@
2198
2198
  min-height: var(--spacing-0, var(--spacing-none, 0px));
2199
2199
  }
2200
2200
 
2201
- .IncodeIdOcrForm {
2201
+ .IncodeIdOcrPage .IncodeIdOcrForm {
2202
2202
  margin-top: var(--spacing-32, var(--spacing-32, 32px));
2203
2203
  height: 100%;
2204
2204
  min-height: var(--spacing-0, var(--spacing-none, 0px));
@@ -2211,42 +2211,14 @@
2211
2211
  overflow-y: auto;
2212
2212
  }
2213
2213
 
2214
- .IncodeIdOcrButton {
2214
+ .IncodeIdOcrPage .IncodeIdOcrButton {
2215
2215
  bottom: var(--spacing-0, var(--spacing-none, 0px));
2216
2216
  width: 100%;
2217
2217
  position: sticky;
2218
2218
  }
2219
2219
 
2220
- .IncodeIdOcrSpinner {
2221
- justify-content: center;
2222
- align-items: center;
2223
- gap: var(--spacing-16, var(--spacing-16, 16px));
2224
- flex-direction: column;
2225
- flex: 1;
2226
- display: flex;
2227
- }
2228
-
2229
- .IncodeIdOcrRadioGroup {
2230
- width: 100%;
2220
+ .IncodeIdOcrPage .IncodeIdOcrRadioGroup {
2231
2221
  max-width: var(--incode-form-max-w);
2232
- gap: var(--spacing-16, var(--spacing-16, 16px));
2233
- flex-direction: column;
2234
- display: flex;
2235
- }
2236
-
2237
- .IncodeIdOcrRadioOptionsLabel {
2238
- font-family: var(--typography-label-family);
2239
- font-size: var(--typography-label-m-size);
2240
- font-weight: var(--typography-label-m-weight);
2241
- line-height: var(--typography-label-m-line-height);
2242
- letter-spacing: var(--typography-label-m-letter-spacing);
2243
- color: var(--color-input-text-label-default, var(--input-text-label-default));
2244
- }
2245
-
2246
- .IncodeIdOcrRadioOptions {
2247
- gap: var(--spacing-20, var(--spacing-20, 20px));
2248
- width: 100%;
2249
- display: flex;
2250
2222
  }
2251
2223
 
2252
2224
  .IncodeDocumentUploadPage {
@@ -5,7 +5,7 @@ import { o, t as s } from "../incodeComponent-DexcYK3Y.js";
5
5
  import "../spinner-BYktSnQZ.js";
6
6
  import { t as c } from "../transitionSpinner-DqDwaNM6.js";
7
7
  import { t as l } from "../incodeModule-CHzKl22Y.js";
8
- import { a as u, f as d, i as f, m as p, t as m } from "../useModuleLoader-T6BIz-cA.js";
8
+ import { a as u, f as d, i as f, m as p, t as m } from "../useModuleLoader-BHKdXE3w.js";
9
9
  import { resolveWasmConfig as h, warmupWasm as g } from "@incodetech/core/wasm";
10
10
  import { QrValidationError as _, refreshQrUrlUuid as v } from "@incodetech/core/session";
11
11
  import { createWorkflowManager as y } from "@incodetech/core/workflow";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260430-3fffde8",
3
+ "version": "0.0.0-dev-20260430-9f41a18",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -230,7 +230,7 @@
230
230
  "qrcode": "^1.5.4",
231
231
  "signature_pad": "^5.1.3",
232
232
  "tailwindcss": "^4.1.17",
233
- "@incodetech/core": "0.0.0-dev-20260430-3fffde8"
233
+ "@incodetech/core": "0.0.0-dev-20260430-9f41a18"
234
234
  },
235
235
  "devDependencies": {
236
236
  "@microsoft/api-extractor": "^7.53.3",