@incodetech/web 0.0.0-dev-20260702-cc2ced08 → 0.0.0-dev-20260702-a1566880
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
CHANGED
|
@@ -5,7 +5,7 @@ import { u as useManager } from "../hooks-CNu7o-v8.js";
|
|
|
5
5
|
import { t as IncodeComponent } from "../incodeComponent-CfzJGETt.js";
|
|
6
6
|
import { t as TransitionSpinner } from "../transitionSpinner-6-Pw_VTz.js";
|
|
7
7
|
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
8
|
-
import { a as resolveApiKey, b as TerminalErrorPage, c as HEADLESS_FLOW_MODULE_KEYS, d as fetchTheme, f as initializeFlowManager, g as preloadRedirectToMobile, h as preloadHomeScreen, l as LAZY_UI_MODULES, m as preloadFirstModule, n as useModulePreloader, o as extractIncodeStatus, p as isDesktopOrEmulated, r as usePrefetchNextModule, s as UnsupportedModule, t as useModuleLoader, u as createFlowManager, v as warmupWasmIfNeeded } from "../useModuleLoader-
|
|
8
|
+
import { a as resolveApiKey, b as TerminalErrorPage, c as HEADLESS_FLOW_MODULE_KEYS, d as fetchTheme, f as initializeFlowManager, g as preloadRedirectToMobile, h as preloadHomeScreen, l as LAZY_UI_MODULES, m as preloadFirstModule, n as useModulePreloader, o as extractIncodeStatus, p as isDesktopOrEmulated, r as usePrefetchNextModule, s as UnsupportedModule, t as useModuleLoader, u as createFlowManager, v as warmupWasmIfNeeded } from "../useModuleLoader-dIE2kiQs.js";
|
|
9
9
|
import { getRequiredWasmPipelines } from "@incodetech/core/flow";
|
|
10
10
|
import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
|
|
11
11
|
//#region src/shared/processing/useDelayedFlag.ts
|
|
@@ -17,6 +17,17 @@ var TEXT_FIELD_COMPONENTS = {
|
|
|
17
17
|
text: InputComposed,
|
|
18
18
|
date: DateInputComposed
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* `autocomplete` tokens for personal-info fields (WCAG 2.2 SC 1.3.5 Identify
|
|
22
|
+
* Input Purpose). Fields without a standard token (e.g. document number, sex)
|
|
23
|
+
* are intentionally omitted.
|
|
24
|
+
*/
|
|
25
|
+
var AUTOCOMPLETE_TOKENS = {
|
|
26
|
+
name: "name",
|
|
27
|
+
birthDate: "bday",
|
|
28
|
+
issuingCountry: "country-name",
|
|
29
|
+
address: "street-address"
|
|
30
|
+
};
|
|
20
31
|
var IdOcrForm = ({ fields, data, validationErrors, isReadonly, onChange, onBlur, onContinue }) => {
|
|
21
32
|
const { t } = useTranslation();
|
|
22
33
|
const hasValidationErrors = validationErrors && Object.keys(validationErrors).length > 0;
|
|
@@ -56,6 +67,7 @@ var IdOcrForm = ({ fields, data, validationErrors, isReadonly, onChange, onBlur,
|
|
|
56
67
|
value,
|
|
57
68
|
disabled: isReadonly,
|
|
58
69
|
required: isFieldRequired,
|
|
70
|
+
autocomplete: AUTOCOMPLETE_TOKENS[field.key],
|
|
59
71
|
error: fieldError,
|
|
60
72
|
showErrorIcon: !!fieldError,
|
|
61
73
|
onInput: (e) => onChange(field.key, e.target.value),
|
|
@@ -70,6 +82,7 @@ var IdOcrForm = ({ fields, data, validationErrors, isReadonly, onChange, onBlur,
|
|
|
70
82
|
children: /* @__PURE__ */ u(Button, {
|
|
71
83
|
onClick: onContinue,
|
|
72
84
|
disabled: hasValidationErrors,
|
|
85
|
+
"data-testid": "id-ocr-continue",
|
|
73
86
|
children: t("common.continue")
|
|
74
87
|
})
|
|
75
88
|
})]
|
|
@@ -77,9 +90,9 @@ var IdOcrForm = ({ fields, data, validationErrors, isReadonly, onChange, onBlur,
|
|
|
77
90
|
};
|
|
78
91
|
//#endregion
|
|
79
92
|
//#region src/modules/id-ocr/idOcr.tsx
|
|
80
|
-
var IdOcrContent = ({ config, onFinish }) => {
|
|
93
|
+
var IdOcrContent = ({ config, manager: externalManager, onFinish }) => {
|
|
81
94
|
const { t } = useTranslation();
|
|
82
|
-
const [state, manager] = useManager(() => createIdOcrManager({ config }));
|
|
95
|
+
const [state, manager] = useManager(() => externalManager ?? createIdOcrManager({ config }), { manageLifecycle: !externalManager });
|
|
83
96
|
useModuleTerminalCallbacks({
|
|
84
97
|
status: state.status === "finished" ? "finished" : "loading",
|
|
85
98
|
onFinish
|
|
@@ -114,8 +127,9 @@ var IdOcrContent = ({ config, onFinish }) => {
|
|
|
114
127
|
});
|
|
115
128
|
return null;
|
|
116
129
|
};
|
|
117
|
-
var IdOcr = ({ config, onFinish }) => /* @__PURE__ */ u(IncodeComponent, { children: config ? /* @__PURE__ */ u(IdOcrContent, {
|
|
130
|
+
var IdOcr = ({ config, manager, onFinish }) => /* @__PURE__ */ u(IncodeComponent, { children: config ? /* @__PURE__ */ u(IdOcrContent, {
|
|
118
131
|
config,
|
|
132
|
+
manager,
|
|
119
133
|
onFinish
|
|
120
134
|
}) : null });
|
|
121
135
|
registerIncodeModuleElement(IdOcr, "incode-id-ocr");
|
|
@@ -303,7 +303,7 @@ var LAZY_UI_MODULES = {
|
|
|
303
303
|
MANDATORY_CONSENT: () => import("./mandatoryConsent-DsF3O9xr.js").then((m) => m.MandatoryConsent),
|
|
304
304
|
ML_CONSENT: () => import("./mandatoryConsent-DsF3O9xr.js").then((m) => m.MandatoryConsent),
|
|
305
305
|
SIGNATURE: () => import("./signature/signature.es.js").then((m) => m.Signature),
|
|
306
|
-
ID_OCR: () => import("./idOcr-
|
|
306
|
+
ID_OCR: () => import("./idOcr-Ox3VN-7C.js").then((m) => m.IdOcr),
|
|
307
307
|
CPF_OCR: () => import("./cpfOcr-ByQpyh1h.js").then((m) => m.CpfOcr),
|
|
308
308
|
ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((m) => m.Antifraud),
|
|
309
309
|
CUSTOM_FIELDS: () => import("./customFields-BDsXR7A-.js").then((m) => m.CustomFields),
|
|
@@ -7,7 +7,7 @@ import { t as Page } from "../page-DidH_RkX.js";
|
|
|
7
7
|
import { t as TransitionSpinner } from "../transitionSpinner-6-Pw_VTz.js";
|
|
8
8
|
import { t as AutoFocusTitle } from "../autoFocusTitle-CuRu2lPg.js";
|
|
9
9
|
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
10
|
-
import { _ as setupSDK, a as resolveApiKey, b as TerminalErrorPage, i as HEADLESS_WORKFLOW_MODULE_KEYS, l as LAZY_UI_MODULES, o as extractIncodeStatus, p as isDesktopOrEmulated, s as UnsupportedModule, t as useModuleLoader, y as fetchAndApplyTheme } from "../useModuleLoader-
|
|
10
|
+
import { _ as setupSDK, a as resolveApiKey, b as TerminalErrorPage, i as HEADLESS_WORKFLOW_MODULE_KEYS, l as LAZY_UI_MODULES, o as extractIncodeStatus, p as isDesktopOrEmulated, s as UnsupportedModule, t as useModuleLoader, y as fetchAndApplyTheme } from "../useModuleLoader-dIE2kiQs.js";
|
|
11
11
|
import { resolveWasmConfig, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
|
|
12
12
|
import { classifyScoreStatus } from "@incodetech/core/flow";
|
|
13
13
|
import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260702-
|
|
3
|
+
"version": "0.0.0-dev-20260702-a1566880",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
"qrcode": "^1.5.4",
|
|
292
292
|
"signature_pad": "^5.1.3",
|
|
293
293
|
"tailwindcss": "^4.1.17",
|
|
294
|
-
"@incodetech/core": "0.0.0-dev-20260702-
|
|
294
|
+
"@incodetech/core": "0.0.0-dev-20260702-a1566880"
|
|
295
295
|
},
|
|
296
296
|
"devDependencies": {
|
|
297
297
|
"@microsoft/api-extractor": "^7.53.3",
|