@incodetech/web 0.0.0-dev-20260430-3fffde8 → 0.0.0-dev-20260430-53a87e0
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/flow/flow.es.js +1 -1
- package/dist/flow/styles.css +3 -31
- package/dist/id-ocr/styles.css +3 -31
- package/dist/{idOcr-DyEsmJUm.js → idOcr-CzUlyrUX.js} +36 -42
- package/dist/phone/phone.es.js +3 -2
- package/dist/{useModuleLoader-T6BIz-cA.js → useModuleLoader-BHKdXE3w.js} +1 -1
- package/dist/workflow/styles.css +3 -31
- package/dist/workflow/workflow.es.js +1 -1
- package/package.json +2 -2
package/dist/flow/flow.es.js
CHANGED
|
@@ -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-
|
|
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";
|
package/dist/flow/styles.css
CHANGED
|
@@ -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
|
-
.
|
|
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 {
|
package/dist/id-ocr/styles.css
CHANGED
|
@@ -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
|
-
.
|
|
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
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
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:
|
|
16
|
-
date:
|
|
17
|
-
}, m = ({ fields: n, data: r, validationErrors: i, isReadonly:
|
|
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: [
|
|
22
|
-
let n = r[e.key] ?? "",
|
|
23
|
-
if (e.type === "radio") return /* @__PURE__ */ t(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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:
|
|
40
|
+
disabled: s,
|
|
47
41
|
required: m,
|
|
48
42
|
error: u,
|
|
49
43
|
showErrorIcon: !!u,
|
|
50
|
-
onInput: (t) =>
|
|
51
|
-
onBlur:
|
|
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(
|
|
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:
|
|
65
|
-
return c.status === "finished" ? (a?.(), null) : c.status === "success" ? /* @__PURE__ */ t(
|
|
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:
|
|
68
|
-
}) : c.status === "error" ? /* @__PURE__ */ t(
|
|
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(
|
|
65
|
+
}) : c.status === "loading" || c.status === "submitting" ? /* @__PURE__ */ t(s, {
|
|
72
66
|
status: "submitting",
|
|
73
|
-
submittingTitle:
|
|
74
|
-
submittingSubtitle:
|
|
67
|
+
submittingTitle: o("common.holdOnASec"),
|
|
68
|
+
submittingSubtitle: o("idOcr.loadingSubtitle")
|
|
75
69
|
}) : c.status === "readonly" || c.status === "inputting" ? /* @__PURE__ */ t(i, {
|
|
76
|
-
title:
|
|
70
|
+
title: o("idOcr.title"),
|
|
77
71
|
className: "IncodeIdOcrPage",
|
|
78
72
|
hideFooterBranding: !0,
|
|
79
73
|
children: /* @__PURE__ */ t(m, {
|
package/dist/phone/phone.es.js
CHANGED
|
@@ -22,8 +22,9 @@ var h = ({ config: i, manager: d, onFinish: h, onError: g }) => {
|
|
|
22
22
|
if (!i) throw Error("Phone config is required");
|
|
23
23
|
return f({ config: i });
|
|
24
24
|
}, { manageLifecycle: !d }), [b, x] = t(!1), [S, C] = t(!1), [w, T] = t(!1);
|
|
25
|
-
if (v.status === "idle" || v.status === "loadingPrefill" || v.status === "
|
|
26
|
-
|
|
25
|
+
if (v.status === "idle" || v.status === "loadingPrefill" || v.status === "loadingStartInfo") return null;
|
|
26
|
+
if (v.status === "inputting" || v.status === "submitting" || v.status === "sendingInitialOtp") {
|
|
27
|
+
let e = v.status === "submitting" || v.status === "sendingInitialOtp", t = v.status === "inputting" ? v.countryCode : "US", r = v.status === "inputting" ? v.prefilledPhone : void 0, i = v.status === "inputting" && v.phoneError ? _(p(v.phoneError)) : void 0, c = v.status === "inputting" && S && w && !b ? _("phone.invalidPhone") : void 0, d = i ?? c, f = !b || i !== void 0, m = v.status === "inputting" ? v.optinEnabled ?? !1 : !1;
|
|
27
28
|
return /* @__PURE__ */ n(o, {
|
|
28
29
|
className: "IncodePhonePage",
|
|
29
30
|
title: _("phone.verify"),
|
|
@@ -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-
|
|
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),
|
package/dist/workflow/styles.css
CHANGED
|
@@ -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
|
-
.
|
|
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-
|
|
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-
|
|
3
|
+
"version": "0.0.0-dev-20260430-53a87e0",
|
|
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-
|
|
233
|
+
"@incodetech/core": "0.0.0-dev-20260430-53a87e0"
|
|
234
234
|
},
|
|
235
235
|
"devDependencies": {
|
|
236
236
|
"@microsoft/api-extractor": "^7.53.3",
|