@incodetech/core 0.0.0-dev-20260507-85da360 → 0.0.0-dev-20260508-00bc415
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/{BaseWasmProvider-QTXpU_qs.esm.js → BaseWasmProvider-C2cw9STp.esm.js} +91 -39
- package/dist/{WasmUtilProvider-Cj17GAox.esm.js → WasmUtilProvider-B8VtGgvF.esm.js} +1 -1
- package/dist/ae-signature.d.ts +1 -1
- package/dist/authentication.esm.js +6 -6
- package/dist/{authenticationManager-BMGIFm3Y.esm.js → authenticationManager-CO8WhECt.esm.js} +2 -2
- package/dist/{authenticationStateMachine-Dd9HMJiq.esm.js → authenticationStateMachine-BNH4XOow.esm.js} +2 -2
- package/dist/consent.d.ts +47 -47
- package/dist/cpf-ocr.d.ts +17 -17
- package/dist/{deepsightLoader-C1UShQg2.esm.js → deepsightLoader-HPZa6gSA.esm.js} +2 -2
- package/dist/document-capture.d.ts +68 -68
- package/dist/document-upload.d.ts +43 -43
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-CIVtmica.esm.js → ekybStateMachine-C7N0Eskl.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.esm.js +11 -11
- package/dist/{faceCaptureSetup-n0z3bm3G.esm.js → faceCaptureSetup-DPJ8f1ce.esm.js} +1 -1
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +2 -2
- package/dist/{flowServices-BZnDn46f.esm.js → flowServices-BEhD39PZ.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +55 -55
- package/dist/id.esm.js +5 -5
- package/dist/{idCaptureManager-Dnvp0tN7.esm.js → idCaptureManager-CDxBVBRK.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-DERHrSfV.esm.js → idCaptureStateMachine-qNc9sXR5.esm.js} +4 -4
- package/dist/identity-reuse.d.ts +40 -40
- package/dist/{index-C62kGS4J.d.ts → index-B-KUYIdk.d.ts} +119 -119
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/mandatory-consent.d.ts +47 -47
- package/dist/qe-signature.d.ts +1 -1
- package/dist/{recordingService-DkKKvn0o.esm.js → recordingService-Dc8qrd2u.esm.js} +2 -2
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieManager-Bh9G13aS.esm.js → selfieManager-CNus5KCH.esm.js} +2 -2
- package/dist/{selfieStateMachine-DPHgsHPA.esm.js → selfieStateMachine-DCwYz6V1.esm.js} +2 -2
- package/dist/{session-CsUswFcx.esm.js → session-8qnejF2b.esm.js} +1 -1
- package/dist/session.esm.js +1 -1
- package/dist/{setup-DKabjTK6.d.ts → setup-D3rE3N3K.d.ts} +13 -1
- package/dist/{setup-DGSuf74f.esm.js → setup-Dd9EbLTP.esm.js} +371 -18
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +5 -5
- package/dist/workflow.d.ts +82 -82
- package/dist/workflow.esm.js +9 -9
- package/package.json +1 -1
|
@@ -97,6 +97,87 @@ var SemaphoreProvider = class {
|
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region ../infra/src/wasm/apiUtilities.ts
|
|
102
|
+
if (typeof window !== "undefined" && window.wasmArrayBuffer === void 0) window.wasmArrayBuffer = null;
|
|
103
|
+
let loadPromise = null;
|
|
104
|
+
let loadedResult = null;
|
|
105
|
+
async function importGlue(glueCodePath) {
|
|
106
|
+
const mod = await import(
|
|
107
|
+
/* @vite-ignore */
|
|
108
|
+
/* webpackIgnore: true */
|
|
109
|
+
glueCodePath
|
|
110
|
+
);
|
|
111
|
+
if (typeof mod.Module !== "function") throw new Error(`WASM glue at ${glueCodePath} did not export a Module factory`);
|
|
112
|
+
return mod.Module;
|
|
113
|
+
}
|
|
114
|
+
async function fetchWasmBinary(libPath) {
|
|
115
|
+
const response = await fetch(libPath);
|
|
116
|
+
if (!response.ok) throw new Error(`Failed to fetch WASM binary at ${libPath}: ${response.status} ${response.statusText}`);
|
|
117
|
+
const buffer = await response.arrayBuffer();
|
|
118
|
+
return new Uint8Array(buffer);
|
|
119
|
+
}
|
|
120
|
+
async function instantiate(factory, libPath) {
|
|
121
|
+
window.wasmArrayBuffer = await fetchWasmBinary(libPath);
|
|
122
|
+
return await factory();
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Load the WASM module, memoized. Subsequent calls return the same instance.
|
|
126
|
+
*
|
|
127
|
+
* SIMD-first with fallback: if `useSimd !== false` and a `wasmSimdPath` is
|
|
128
|
+
* provided, the SIMD binary is tried first; on instantiation failure the
|
|
129
|
+
* non-SIMD binary is used.
|
|
130
|
+
*/
|
|
131
|
+
async function loadWasmModule(config) {
|
|
132
|
+
if (loadedResult) return loadedResult;
|
|
133
|
+
if (loadPromise) return loadPromise;
|
|
134
|
+
loadPromise = (async () => {
|
|
135
|
+
try {
|
|
136
|
+
window.Module = await importGlue(config.glueCodePath);
|
|
137
|
+
const wantSimd = config.useSimd !== false;
|
|
138
|
+
const simdPath = config.wasmSimdPath ?? config.wasmPath;
|
|
139
|
+
const useSimd = wantSimd && simdPath !== config.wasmPath;
|
|
140
|
+
const factory = window.Module;
|
|
141
|
+
if (useSimd) try {
|
|
142
|
+
const result$1 = {
|
|
143
|
+
wasmModule: await instantiate(factory, simdPath),
|
|
144
|
+
simdUsed: true
|
|
145
|
+
};
|
|
146
|
+
loadedResult = result$1;
|
|
147
|
+
return result$1;
|
|
148
|
+
} catch (simdError) {
|
|
149
|
+
console.warn("[Incode SDK] SIMD WASM load failed, falling back to non-SIMD", simdError);
|
|
150
|
+
}
|
|
151
|
+
const result = {
|
|
152
|
+
wasmModule: await instantiate(factory, config.wasmPath),
|
|
153
|
+
simdUsed: false
|
|
154
|
+
};
|
|
155
|
+
loadedResult = result;
|
|
156
|
+
return result;
|
|
157
|
+
} catch (error) {
|
|
158
|
+
loadPromise = null;
|
|
159
|
+
throw error;
|
|
160
|
+
}
|
|
161
|
+
})();
|
|
162
|
+
return loadPromise;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region ../infra/src/wasm/wasmCallUtils.ts
|
|
167
|
+
async function wasmCallWrapper(concurrency, wasmMethod, useSemaphore = true, ...args) {
|
|
168
|
+
const innerCall = async () => {
|
|
169
|
+
while (true) {
|
|
170
|
+
if (wasmMethod(...args)) return;
|
|
171
|
+
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
if (useSemaphore) {
|
|
175
|
+
await concurrency.withLock(innerCall);
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
await innerCall();
|
|
179
|
+
}
|
|
180
|
+
|
|
100
181
|
//#endregion
|
|
101
182
|
//#region ../infra/src/wasm/IdCaptureModelType.ts
|
|
102
183
|
let IdCaptureModelType = /* @__PURE__ */ function(IdCaptureModelType$1) {
|
|
@@ -117,25 +198,8 @@ let WasmPipelineType = /* @__PURE__ */ function(WasmPipelineType$1) {
|
|
|
117
198
|
return WasmPipelineType$1;
|
|
118
199
|
}({});
|
|
119
200
|
|
|
120
|
-
//#endregion
|
|
121
|
-
//#region ../infra/src/wasm/wasmCallUtils.ts
|
|
122
|
-
async function wasmCallWrapper(concurrency, wasmMethod, useSemaphore = true, ...args) {
|
|
123
|
-
const innerCall = async () => {
|
|
124
|
-
while (true) {
|
|
125
|
-
if (wasmMethod(...args)) return;
|
|
126
|
-
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
if (useSemaphore) {
|
|
130
|
-
await concurrency.withLock(innerCall);
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
await innerCall();
|
|
134
|
-
}
|
|
135
|
-
|
|
136
201
|
//#endregion
|
|
137
202
|
//#region ../infra/src/wasm/mlWasmJSApi.ts
|
|
138
|
-
window.wasmArrayBuffer = null;
|
|
139
203
|
var MlWasmJSApi = class MlWasmJSApi {
|
|
140
204
|
constructor() {
|
|
141
205
|
this.versionsFile = null;
|
|
@@ -153,13 +217,6 @@ var MlWasmJSApi = class MlWasmJSApi {
|
|
|
153
217
|
this.inspectorOpened_ = false;
|
|
154
218
|
this.wasmCallSemaphore = new SemaphoreProvider();
|
|
155
219
|
this.Module = null;
|
|
156
|
-
this.loadModule = async (glueCodePath) => {
|
|
157
|
-
this.Module = (await import(
|
|
158
|
-
/* @vite-ignore */
|
|
159
|
-
/* webpackIgnore: true */
|
|
160
|
-
glueCodePath
|
|
161
|
-
)).Module;
|
|
162
|
-
};
|
|
163
220
|
}
|
|
164
221
|
/**
|
|
165
222
|
* Initiallization method, use it when the application starts
|
|
@@ -176,14 +233,20 @@ var MlWasmJSApi = class MlWasmJSApi {
|
|
|
176
233
|
await this.freeResources();
|
|
177
234
|
this.pipelines_ = pipelines;
|
|
178
235
|
this.versionsFile = versionsFile;
|
|
179
|
-
await
|
|
180
|
-
|
|
236
|
+
const { wasmModule, simdUsed } = await loadWasmModule({
|
|
237
|
+
glueCodePath,
|
|
238
|
+
wasmPath: webLibPath,
|
|
239
|
+
wasmSimdPath: webLibPathSimd,
|
|
240
|
+
useSimd
|
|
241
|
+
});
|
|
242
|
+
this.wasmModule = wasmModule;
|
|
243
|
+
this.Module = window.Module;
|
|
181
244
|
this.workflowApiUtilities = new this.wasmModule.WorkflowApiUtilities();
|
|
182
245
|
this.utilityApi = new this.wasmModule.UtilityApi();
|
|
183
246
|
this.idCaptureWasmApi = new this.wasmModule.IdCaptureApi();
|
|
184
247
|
this.faceProcessingWasmApi = new this.wasmModule.FaceProcessingApi();
|
|
185
248
|
this.isInitialized_ = true;
|
|
186
|
-
return
|
|
249
|
+
return simdUsed;
|
|
187
250
|
}
|
|
188
251
|
static getInstance() {
|
|
189
252
|
if (!MlWasmJSApi.instance) MlWasmJSApi.instance = new MlWasmJSApi();
|
|
@@ -373,17 +436,6 @@ var MlWasmJSApi = class MlWasmJSApi {
|
|
|
373
436
|
const text = await (await fetch(this.versionsFile)).text();
|
|
374
437
|
return JSON.parse(text);
|
|
375
438
|
}
|
|
376
|
-
async loadWasm(useSimd, webLibPath, webLibPathSimd) {
|
|
377
|
-
const libPath = useSimd ? webLibPathSimd : webLibPath;
|
|
378
|
-
try {
|
|
379
|
-
window.wasmArrayBuffer = await fetch(libPath).then((response) => response.arrayBuffer()).then((buffer) => new Uint8Array(buffer));
|
|
380
|
-
this.wasmModule = await this.Module();
|
|
381
|
-
} catch (e) {
|
|
382
|
-
if (useSimd) return await this.loadWasm(false, webLibPath, webLibPathSimd);
|
|
383
|
-
else throw e;
|
|
384
|
-
}
|
|
385
|
-
return useSimd;
|
|
386
|
-
}
|
|
387
439
|
async loadModels() {
|
|
388
440
|
this.checkWasmInitialization("Unable load the models, cpp API hasn't been initialized");
|
|
389
441
|
const buffSizes = new this.wasmModule.WorkflowTypeToIntMap();
|
|
@@ -798,4 +850,4 @@ var BaseWasmProvider = class {
|
|
|
798
850
|
};
|
|
799
851
|
|
|
800
852
|
//#endregion
|
|
801
|
-
export { IdCaptureModelType as a, WasmPipelineType as i, warmupWasm as n, mlWasmJSApi_default as r, BaseWasmProvider as t };
|
|
853
|
+
export { IdCaptureModelType as a, SemaphoreProvider as c, WasmPipelineType as i, warmupWasm as n, wasmCallWrapper as o, mlWasmJSApi_default as r, loadWasmModule as s, BaseWasmProvider as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-
|
|
1
|
+
import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-C2cw9STp.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/providers/wasm/WasmUtilProvider.ts
|
|
4
4
|
var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
|
package/dist/ae-signature.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-D9pehGyp.js";
|
|
2
2
|
import "./Actor-YjWTo26u.js";
|
|
3
|
-
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-
|
|
3
|
+
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-B-KUYIdk.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/ae-signature/index.d.ts
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./BaseWasmProvider-
|
|
2
|
-
import "./WasmUtilProvider-
|
|
1
|
+
import "./BaseWasmProvider-C2cw9STp.esm.js";
|
|
2
|
+
import "./WasmUtilProvider-B8VtGgvF.esm.js";
|
|
3
3
|
import "./api-eqRXuVG-.esm.js";
|
|
4
4
|
import "./events-Bt1azl2B.esm.js";
|
|
5
5
|
import "./endpoints-B3V1U9Dg.esm.js";
|
|
@@ -7,7 +7,7 @@ import "./browserSimulation-CAH-V_iE.esm.js";
|
|
|
7
7
|
import "./xstate.esm-C19_S3_9.esm.js";
|
|
8
8
|
import "./faceCaptureManagerFactory-bM8uVQhs.esm.js";
|
|
9
9
|
import "./BrowserStorageProvider-CoUfuy0u.esm.js";
|
|
10
|
-
import "./recordingService-
|
|
10
|
+
import "./recordingService-Dc8qrd2u.esm.js";
|
|
11
11
|
import "./deepsightService-gNTXZu7Y.esm.js";
|
|
12
12
|
import "./permissionServices-DIxFacTA.esm.js";
|
|
13
13
|
import "./camera-PA2Ljri3.esm.js";
|
|
@@ -18,8 +18,8 @@ import "./platform-Dpzd9p3X.esm.js";
|
|
|
18
18
|
import "./ITimerCapability-2pw-S97e.esm.js";
|
|
19
19
|
import "./backCameraStream-bztcEWzY.esm.js";
|
|
20
20
|
import "./getDeviceClass-BTVS59zg.esm.js";
|
|
21
|
-
import "./faceCaptureSetup-
|
|
22
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
23
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
21
|
+
import "./faceCaptureSetup-DPJ8f1ce.esm.js";
|
|
22
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-BNH4XOow.esm.js";
|
|
23
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CO8WhECt.esm.js";
|
|
24
24
|
|
|
25
25
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-BMGIFm3Y.esm.js → authenticationManager-CO8WhECt.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-B8VtGgvF.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./events-Bt1azl2B.esm.js";
|
|
3
3
|
import { a as createActor } from "./xstate.esm-C19_S3_9.esm.js";
|
|
4
4
|
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-bM8uVQhs.esm.js";
|
|
5
5
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CoUfuy0u.esm.js";
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-BNH4XOow.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationActor.ts
|
|
9
9
|
function createAuthenticationActor(options) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as api } from "./api-eqRXuVG-.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
|
|
3
3
|
import { i as fromPromise, n as assign } from "./xstate.esm-C19_S3_9.esm.js";
|
|
4
|
-
import { v as FACE_ERROR_CODES } from "./recordingService-
|
|
4
|
+
import { v as FACE_ERROR_CODES } from "./recordingService-Dc8qrd2u.esm.js";
|
|
5
5
|
import { t as getDeviceClass } from "./getDeviceClass-BTVS59zg.esm.js";
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-DPJ8f1ce.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
9
9
|
const AUTH_ERROR_MAP = {
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-D9pehGyp.js";
|
|
2
2
|
import "./Actor-YjWTo26u.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate825 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/consent/types.d.ts
|
|
6
6
|
type ConsentConfig = {
|
|
@@ -36,7 +36,7 @@ type ConsentContext = {
|
|
|
36
36
|
type ConsentInput = {
|
|
37
37
|
config: ConsentConfig;
|
|
38
38
|
};
|
|
39
|
-
declare const consentMachine:
|
|
39
|
+
declare const consentMachine: xstate825.StateMachine<ConsentContext, {
|
|
40
40
|
type: "LOAD";
|
|
41
41
|
} | {
|
|
42
42
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -48,53 +48,53 @@ declare const consentMachine: xstate234.StateMachine<ConsentContext, {
|
|
|
48
48
|
} | {
|
|
49
49
|
type: "RESET";
|
|
50
50
|
}, {
|
|
51
|
-
[x: string]:
|
|
51
|
+
[x: string]: xstate825.ActorRefFromLogic<xstate825.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
52
52
|
consentId: string;
|
|
53
|
-
},
|
|
53
|
+
}, xstate825.EventObject>> | xstate825.ActorRefFromLogic<xstate825.PromiseActorLogic<void, {
|
|
54
54
|
languageConsentId: string;
|
|
55
55
|
checkboxes: ConsentCheckbox[];
|
|
56
|
-
},
|
|
57
|
-
},
|
|
56
|
+
}, xstate825.EventObject>> | undefined;
|
|
57
|
+
}, xstate825.Values<{
|
|
58
58
|
fetchConsent: {
|
|
59
59
|
src: "fetchConsent";
|
|
60
|
-
logic:
|
|
60
|
+
logic: xstate825.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
61
61
|
consentId: string;
|
|
62
|
-
},
|
|
62
|
+
}, xstate825.EventObject>;
|
|
63
63
|
id: string | undefined;
|
|
64
64
|
};
|
|
65
65
|
submitConsent: {
|
|
66
66
|
src: "submitConsent";
|
|
67
|
-
logic:
|
|
67
|
+
logic: xstate825.PromiseActorLogic<void, {
|
|
68
68
|
languageConsentId: string;
|
|
69
69
|
checkboxes: ConsentCheckbox[];
|
|
70
|
-
},
|
|
70
|
+
}, xstate825.EventObject>;
|
|
71
71
|
id: string | undefined;
|
|
72
72
|
};
|
|
73
|
-
}>,
|
|
73
|
+
}>, xstate825.Values<{
|
|
74
74
|
setError: {
|
|
75
75
|
type: "setError";
|
|
76
|
-
params:
|
|
76
|
+
params: xstate825.NonReducibleUnknown;
|
|
77
77
|
};
|
|
78
78
|
clearError: {
|
|
79
79
|
type: "clearError";
|
|
80
|
-
params:
|
|
80
|
+
params: xstate825.NonReducibleUnknown;
|
|
81
81
|
};
|
|
82
82
|
setConsentData: {
|
|
83
83
|
type: "setConsentData";
|
|
84
|
-
params:
|
|
84
|
+
params: xstate825.NonReducibleUnknown;
|
|
85
85
|
};
|
|
86
86
|
toggleCheckbox: {
|
|
87
87
|
type: "toggleCheckbox";
|
|
88
|
-
params:
|
|
88
|
+
params: xstate825.NonReducibleUnknown;
|
|
89
89
|
};
|
|
90
90
|
resetContext: {
|
|
91
91
|
type: "resetContext";
|
|
92
|
-
params:
|
|
92
|
+
params: xstate825.NonReducibleUnknown;
|
|
93
93
|
};
|
|
94
94
|
}>, {
|
|
95
95
|
type: "canSubmit";
|
|
96
96
|
params: unknown;
|
|
97
|
-
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput,
|
|
97
|
+
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate825.NonReducibleUnknown, xstate825.EventObject, xstate825.MetaObject, {
|
|
98
98
|
readonly id: "consent";
|
|
99
99
|
readonly initial: "idle";
|
|
100
100
|
readonly context: ({
|
|
@@ -103,70 +103,70 @@ declare const consentMachine: xstate234.StateMachine<ConsentContext, {
|
|
|
103
103
|
spawn: {
|
|
104
104
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
105
105
|
src: "fetchConsent";
|
|
106
|
-
logic:
|
|
106
|
+
logic: xstate825.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
107
107
|
consentId: string;
|
|
108
|
-
},
|
|
108
|
+
}, xstate825.EventObject>;
|
|
109
109
|
id: string | undefined;
|
|
110
110
|
} extends infer T ? T extends {
|
|
111
111
|
src: "fetchConsent";
|
|
112
|
-
logic:
|
|
112
|
+
logic: xstate825.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
113
113
|
consentId: string;
|
|
114
|
-
},
|
|
114
|
+
}, xstate825.EventObject>;
|
|
115
115
|
id: string | undefined;
|
|
116
116
|
} ? T extends {
|
|
117
117
|
src: TSrc;
|
|
118
|
-
} ?
|
|
118
|
+
} ? xstate825.ConditionalRequired<[options?: ({
|
|
119
119
|
id?: T["id"] | undefined;
|
|
120
120
|
systemId?: string;
|
|
121
|
-
input?:
|
|
121
|
+
input?: xstate825.InputFrom<T["logic"]> | undefined;
|
|
122
122
|
syncSnapshot?: boolean;
|
|
123
|
-
} & { [K in
|
|
123
|
+
} & { [K in xstate825.RequiredActorOptions<T>]: unknown }) | undefined], xstate825.IsNotNever<xstate825.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
124
124
|
src: "submitConsent";
|
|
125
|
-
logic:
|
|
125
|
+
logic: xstate825.PromiseActorLogic<void, {
|
|
126
126
|
languageConsentId: string;
|
|
127
127
|
checkboxes: ConsentCheckbox[];
|
|
128
|
-
},
|
|
128
|
+
}, xstate825.EventObject>;
|
|
129
129
|
id: string | undefined;
|
|
130
130
|
} extends infer T_1 ? T_1 extends {
|
|
131
131
|
src: "submitConsent";
|
|
132
|
-
logic:
|
|
132
|
+
logic: xstate825.PromiseActorLogic<void, {
|
|
133
133
|
languageConsentId: string;
|
|
134
134
|
checkboxes: ConsentCheckbox[];
|
|
135
|
-
},
|
|
135
|
+
}, xstate825.EventObject>;
|
|
136
136
|
id: string | undefined;
|
|
137
137
|
} ? T_1 extends {
|
|
138
138
|
src: TSrc;
|
|
139
|
-
} ?
|
|
139
|
+
} ? xstate825.ConditionalRequired<[options?: ({
|
|
140
140
|
id?: T_1["id"] | undefined;
|
|
141
141
|
systemId?: string;
|
|
142
|
-
input?:
|
|
142
|
+
input?: xstate825.InputFrom<T_1["logic"]> | undefined;
|
|
143
143
|
syncSnapshot?: boolean;
|
|
144
|
-
} & { [K_1 in
|
|
144
|
+
} & { [K_1 in xstate825.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate825.IsNotNever<xstate825.RequiredActorOptions<T_1>>> : never : never : never)): xstate825.ActorRefFromLogic<xstate825.GetConcreteByKey<xstate825.Values<{
|
|
145
145
|
fetchConsent: {
|
|
146
146
|
src: "fetchConsent";
|
|
147
|
-
logic:
|
|
147
|
+
logic: xstate825.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
148
148
|
consentId: string;
|
|
149
|
-
},
|
|
149
|
+
}, xstate825.EventObject>;
|
|
150
150
|
id: string | undefined;
|
|
151
151
|
};
|
|
152
152
|
submitConsent: {
|
|
153
153
|
src: "submitConsent";
|
|
154
|
-
logic:
|
|
154
|
+
logic: xstate825.PromiseActorLogic<void, {
|
|
155
155
|
languageConsentId: string;
|
|
156
156
|
checkboxes: ConsentCheckbox[];
|
|
157
|
-
},
|
|
157
|
+
}, xstate825.EventObject>;
|
|
158
158
|
id: string | undefined;
|
|
159
159
|
};
|
|
160
160
|
}>, "src", TSrc>["logic"]>;
|
|
161
|
-
<TLogic extends
|
|
161
|
+
<TLogic extends xstate825.AnyActorLogic>(src: TLogic, ...[options]: xstate825.ConditionalRequired<[options?: ({
|
|
162
162
|
id?: never;
|
|
163
163
|
systemId?: string;
|
|
164
|
-
input?:
|
|
164
|
+
input?: xstate825.InputFrom<TLogic> | undefined;
|
|
165
165
|
syncSnapshot?: boolean;
|
|
166
|
-
} & { [K in
|
|
166
|
+
} & { [K in xstate825.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate825.IsNotNever<xstate825.RequiredLogicInput<TLogic>>>): xstate825.ActorRefFromLogic<TLogic>;
|
|
167
167
|
};
|
|
168
168
|
input: ConsentInput;
|
|
169
|
-
self:
|
|
169
|
+
self: xstate825.ActorRef<xstate825.MachineSnapshot<ConsentContext, {
|
|
170
170
|
type: "LOAD";
|
|
171
171
|
} | {
|
|
172
172
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -177,7 +177,7 @@ declare const consentMachine: xstate234.StateMachine<ConsentContext, {
|
|
|
177
177
|
type: "RETRY";
|
|
178
178
|
} | {
|
|
179
179
|
type: "RESET";
|
|
180
|
-
}, Record<string,
|
|
180
|
+
}, Record<string, xstate825.AnyActorRef | undefined>, xstate825.StateValue, string, unknown, any, any>, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -188,7 +188,7 @@ declare const consentMachine: xstate234.StateMachine<ConsentContext, {
|
|
|
188
188
|
type: "RETRY";
|
|
189
189
|
} | {
|
|
190
190
|
type: "RESET";
|
|
191
|
-
},
|
|
191
|
+
}, xstate825.AnyEventObject>;
|
|
192
192
|
}) => {
|
|
193
193
|
config: ConsentConfig;
|
|
194
194
|
title: string;
|
|
@@ -226,7 +226,7 @@ declare const consentMachine: xstate234.StateMachine<ConsentContext, {
|
|
|
226
226
|
} | {
|
|
227
227
|
type: "RESET";
|
|
228
228
|
};
|
|
229
|
-
self:
|
|
229
|
+
self: xstate825.ActorRef<xstate825.MachineSnapshot<ConsentContext, {
|
|
230
230
|
type: "LOAD";
|
|
231
231
|
} | {
|
|
232
232
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -237,7 +237,7 @@ declare const consentMachine: xstate234.StateMachine<ConsentContext, {
|
|
|
237
237
|
type: "RETRY";
|
|
238
238
|
} | {
|
|
239
239
|
type: "RESET";
|
|
240
|
-
}, Record<string,
|
|
240
|
+
}, Record<string, xstate825.AnyActorRef>, xstate825.StateValue, string, unknown, any, any>, {
|
|
241
241
|
type: "LOAD";
|
|
242
242
|
} | {
|
|
243
243
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -248,7 +248,7 @@ declare const consentMachine: xstate234.StateMachine<ConsentContext, {
|
|
|
248
248
|
type: "RETRY";
|
|
249
249
|
} | {
|
|
250
250
|
type: "RESET";
|
|
251
|
-
},
|
|
251
|
+
}, xstate825.AnyEventObject>;
|
|
252
252
|
}) => {
|
|
253
253
|
consentId: string;
|
|
254
254
|
};
|
|
@@ -297,7 +297,7 @@ declare const consentMachine: xstate234.StateMachine<ConsentContext, {
|
|
|
297
297
|
} | {
|
|
298
298
|
type: "RESET";
|
|
299
299
|
};
|
|
300
|
-
self:
|
|
300
|
+
self: xstate825.ActorRef<xstate825.MachineSnapshot<ConsentContext, {
|
|
301
301
|
type: "LOAD";
|
|
302
302
|
} | {
|
|
303
303
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -308,7 +308,7 @@ declare const consentMachine: xstate234.StateMachine<ConsentContext, {
|
|
|
308
308
|
type: "RETRY";
|
|
309
309
|
} | {
|
|
310
310
|
type: "RESET";
|
|
311
|
-
}, Record<string,
|
|
311
|
+
}, Record<string, xstate825.AnyActorRef>, xstate825.StateValue, string, unknown, any, any>, {
|
|
312
312
|
type: "LOAD";
|
|
313
313
|
} | {
|
|
314
314
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -319,7 +319,7 @@ declare const consentMachine: xstate234.StateMachine<ConsentContext, {
|
|
|
319
319
|
type: "RETRY";
|
|
320
320
|
} | {
|
|
321
321
|
type: "RESET";
|
|
322
|
-
},
|
|
322
|
+
}, xstate825.AnyEventObject>;
|
|
323
323
|
}) => {
|
|
324
324
|
languageConsentId: string;
|
|
325
325
|
checkboxes: ConsentCheckbox[];
|
package/dist/cpf-ocr.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-D9pehGyp.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as xstate800 from "xstate";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/cpf-ocr/cpfOcrManager.d.ts
|
|
5
5
|
type CpfOcrIdleState = {
|
|
@@ -47,7 +47,7 @@ type CpfOcrContext = {
|
|
|
47
47
|
error: string | undefined;
|
|
48
48
|
};
|
|
49
49
|
type CpfOcrInput = Record<string, never>;
|
|
50
|
-
declare const cpfOcrMachine:
|
|
50
|
+
declare const cpfOcrMachine: xstate800.StateMachine<CpfOcrContext, {
|
|
51
51
|
type: "LOAD";
|
|
52
52
|
} | {
|
|
53
53
|
type: "SET_CPF";
|
|
@@ -57,43 +57,43 @@ declare const cpfOcrMachine: xstate302.StateMachine<CpfOcrContext, {
|
|
|
57
57
|
} | {
|
|
58
58
|
type: "RETRY";
|
|
59
59
|
}, {
|
|
60
|
-
[x: string]:
|
|
60
|
+
[x: string]: xstate800.ActorRefFromLogic<xstate800.PromiseActorLogic<CpfOcrDataResponse, void, xstate800.EventObject>> | xstate800.ActorRefFromLogic<xstate800.PromiseActorLogic<CpfOcrUpdateResponse, {
|
|
61
61
|
cpf: string;
|
|
62
|
-
},
|
|
63
|
-
},
|
|
62
|
+
}, xstate800.EventObject>> | undefined;
|
|
63
|
+
}, xstate800.Values<{
|
|
64
64
|
fetchCpfOcrData: {
|
|
65
65
|
src: "fetchCpfOcrData";
|
|
66
|
-
logic:
|
|
66
|
+
logic: xstate800.PromiseActorLogic<CpfOcrDataResponse, void, xstate800.EventObject>;
|
|
67
67
|
id: string | undefined;
|
|
68
68
|
};
|
|
69
69
|
submitCpfOcr: {
|
|
70
70
|
src: "submitCpfOcr";
|
|
71
|
-
logic:
|
|
71
|
+
logic: xstate800.PromiseActorLogic<CpfOcrUpdateResponse, {
|
|
72
72
|
cpf: string;
|
|
73
|
-
},
|
|
73
|
+
}, xstate800.EventObject>;
|
|
74
74
|
id: string | undefined;
|
|
75
75
|
};
|
|
76
|
-
}>,
|
|
76
|
+
}>, xstate800.Values<{
|
|
77
77
|
setError: {
|
|
78
78
|
type: "setError";
|
|
79
|
-
params:
|
|
79
|
+
params: xstate800.NonReducibleUnknown;
|
|
80
80
|
};
|
|
81
81
|
clearError: {
|
|
82
82
|
type: "clearError";
|
|
83
|
-
params:
|
|
83
|
+
params: xstate800.NonReducibleUnknown;
|
|
84
84
|
};
|
|
85
85
|
setPrefill: {
|
|
86
86
|
type: "setPrefill";
|
|
87
|
-
params:
|
|
87
|
+
params: xstate800.NonReducibleUnknown;
|
|
88
88
|
};
|
|
89
89
|
setCpf: {
|
|
90
90
|
type: "setCpf";
|
|
91
|
-
params:
|
|
91
|
+
params: xstate800.NonReducibleUnknown;
|
|
92
92
|
};
|
|
93
93
|
}>, {
|
|
94
94
|
type: "isValid";
|
|
95
95
|
params: unknown;
|
|
96
|
-
}, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput,
|
|
96
|
+
}, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, xstate800.NonReducibleUnknown, xstate800.EventObject, xstate800.MetaObject, {
|
|
97
97
|
readonly id: "cpfOcr";
|
|
98
98
|
readonly initial: "idle";
|
|
99
99
|
readonly context: {
|
|
@@ -148,7 +148,7 @@ declare const cpfOcrMachine: xstate302.StateMachine<CpfOcrContext, {
|
|
|
148
148
|
} | {
|
|
149
149
|
type: "RETRY";
|
|
150
150
|
};
|
|
151
|
-
self:
|
|
151
|
+
self: xstate800.ActorRef<xstate800.MachineSnapshot<CpfOcrContext, {
|
|
152
152
|
type: "LOAD";
|
|
153
153
|
} | {
|
|
154
154
|
type: "SET_CPF";
|
|
@@ -157,7 +157,7 @@ declare const cpfOcrMachine: xstate302.StateMachine<CpfOcrContext, {
|
|
|
157
157
|
type: "SUBMIT";
|
|
158
158
|
} | {
|
|
159
159
|
type: "RETRY";
|
|
160
|
-
}, Record<string,
|
|
160
|
+
}, Record<string, xstate800.AnyActorRef>, xstate800.StateValue, string, unknown, any, any>, {
|
|
161
161
|
type: "LOAD";
|
|
162
162
|
} | {
|
|
163
163
|
type: "SET_CPF";
|
|
@@ -166,7 +166,7 @@ declare const cpfOcrMachine: xstate302.StateMachine<CpfOcrContext, {
|
|
|
166
166
|
type: "SUBMIT";
|
|
167
167
|
} | {
|
|
168
168
|
type: "RETRY";
|
|
169
|
-
},
|
|
169
|
+
}, xstate800.AnyEventObject>;
|
|
170
170
|
}) => {
|
|
171
171
|
cpf: string;
|
|
172
172
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./BaseWasmProvider-
|
|
2
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import "./BaseWasmProvider-C2cw9STp.esm.js";
|
|
2
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-B8VtGgvF.esm.js";
|
|
3
3
|
import "./api-eqRXuVG-.esm.js";
|
|
4
4
|
import { r as BrowserEnvironmentProvider, t as IpifyProvider } from "./IpifyProvider-ByL6JYxg.esm.js";
|
|
5
5
|
import "./browserSimulation-CAH-V_iE.esm.js";
|