@incodetech/core 0.0.0-dev-20260716-2b4f5edb → 0.0.0-dev-20260717-87fac45b
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/BrowserLazyImportProvider-BhoA957O.esm.js +114 -0
- package/dist/IFeatureManagementCapability-ErPJywQ_.d.ts +1121 -0
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BVMQTy2C.esm.js → authenticationManager-DK8fsUqL.esm.js} +2 -2
- package/dist/{authenticationStateMachine-DvFeGMIc.esm.js → authenticationStateMachine-BlT8fkR6.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-2h_w6wFc.d.ts → consentManager-CsyToF8t.d.ts} +5 -5
- package/dist/{deepsightLoader-BGu6zfoZ.esm.js → deepsightLoader-C7HOhX6C.esm.js} +1 -1
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-upload.d.ts +4 -4
- package/dist/{documentCaptureManager-Biz_PFqs.d.ts → documentCaptureManager-DBqK5ner.d.ts} +65 -65
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager--3WIEWS5.esm.js → ekybManager-BMjf8ZNw.esm.js} +1 -1
- package/dist/{ekybStateMachine-B870YzwX.esm.js → ekybStateMachine-DfpEPLzD.esm.js} +1 -1
- package/dist/extensibility.d.ts +4 -4
- package/dist/extensibility.esm.js +6 -6
- package/dist/{faceCaptureManagerFactory-CDpqsxiU.esm.js → faceCaptureManagerFactory-BFv1KlL_.esm.js} +1 -1
- package/dist/{faceCaptureSetup-BXueiZo8.esm.js → faceCaptureSetup-Bxo1VNVw.esm.js} +2 -2
- package/dist/feature-management-Dw96qEMs.esm.js +468 -0
- package/dist/feature-management.d.ts +80 -0
- package/dist/feature-management.esm.js +2 -0
- package/dist/flow.esm.js +1 -1
- package/dist/{flowServices-DL7qnTQR.esm.js → flowServices-ymcivfU0.esm.js} +5 -3
- package/dist/id.esm.js +2 -2
- package/dist/{idCaptureManager-BoLeZff7.esm.js → idCaptureManager-BBfWW9Y0.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-D2H3vwwf.esm.js → idCaptureStateMachine-_1pROAbA.esm.js} +5 -5
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-aTyLyYrr.d.ts → identityReuseManager-D6pD4hcZ.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-B2gRcE_x.d.ts → mandatoryConsentManager-BR8SLvd1.d.ts} +5 -5
- package/dist/{onDeviceFaceResults-4ODIm8fO.esm.js → onDeviceFaceResults-B3oTx-NK.esm.js} +1 -1
- package/dist/personhood.esm.js +2 -2
- package/dist/{recordingService-CkLJ00Pw.esm.js → recordingService-Comyo6yK.esm.js} +1 -1
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-C_ynxeGZ.esm.js → selfieManager-CCR6VpoQ.esm.js} +2 -2
- package/dist/{selfieStateMachine-CFqYKJFF.esm.js → selfieStateMachine-D30gwMGq.esm.js} +2 -2
- package/dist/session-B9KT6qnE.esm.js +1 -0
- package/dist/session.esm.js +2 -2
- package/dist/{sessionInitializer-B6n-FYf7.esm.js → sessionInitializer-CrzyJ4Y0.esm.js} +4 -2
- package/dist/{setup-CgBvqGWw.d.ts → setup-BBfVpTog.d.ts} +115 -0
- package/dist/{setup-CeQfb7bE.esm.js → setup-CBijDJ0d.esm.js} +20 -2
- package/dist/src-0Jurt29N.esm.js +4482 -0
- package/dist/{tri-N-xlKhZK.esm.js → tri-4RsGrIt6.esm.js} +1 -113
- package/dist/tri.esm.js +1 -1
- package/dist/video-selfie.esm.js +2 -2
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +7 -5
- package/package.json +8 -3
- package/dist/session-CThOl8m5.esm.js +0 -1
|
@@ -1,116 +1,4 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
//#region ../infra/src/providers/browser/BrowserLazyImportProvider.ts
|
|
3
|
-
/**
|
|
4
|
-
* Per-module {@link LazyImport} handle.
|
|
5
|
-
*
|
|
6
|
-
* Encapsulates the caching, deduplication, and optional-timeout logic for a
|
|
7
|
-
* single lazily-imported module:
|
|
8
|
-
* - Caches the resolved module (via a dedicated `loaded` flag, so a module
|
|
9
|
-
* that legitimately resolves `undefined` is still cached) and returns it
|
|
10
|
-
* immediately on subsequent calls.
|
|
11
|
-
* - Deduplicates concurrent `load()` calls behind a single in-flight promise.
|
|
12
|
-
* - Optionally races the dynamic import against a configurable timeout (ms).
|
|
13
|
-
* - On timeout or import error: emits a `console.warn`, clears the in-flight
|
|
14
|
-
* promise so the next `load()` call retries, and resolves `undefined`.
|
|
15
|
-
*
|
|
16
|
-
* An attempt-generation token (`attempt`) guards against a stale import
|
|
17
|
-
* mutating state after it has been superseded: when a load times out (or the
|
|
18
|
-
* handle is `reset()`), the token is bumped so the still-pending import can no
|
|
19
|
-
* longer write to `cachedValue` / `loaded`.
|
|
20
|
-
*/
|
|
21
|
-
var LazyImportHandle = class {
|
|
22
|
-
constructor(_loader, _options, _timer) {
|
|
23
|
-
this._loader = _loader;
|
|
24
|
-
this._options = _options;
|
|
25
|
-
this._timer = _timer;
|
|
26
|
-
this._loaded = false;
|
|
27
|
-
this._attempt = 0;
|
|
28
|
-
}
|
|
29
|
-
get() {
|
|
30
|
-
return this._cachedValue;
|
|
31
|
-
}
|
|
32
|
-
load() {
|
|
33
|
-
if (this._loaded) return Promise.resolve(this._cachedValue);
|
|
34
|
-
if (!this._inFlight) this._inFlight = this.startLoad();
|
|
35
|
-
return this._inFlight;
|
|
36
|
-
}
|
|
37
|
-
reset() {
|
|
38
|
-
this._cachedValue = void 0;
|
|
39
|
-
this._loaded = false;
|
|
40
|
-
this._inFlight = void 0;
|
|
41
|
-
this._attempt++;
|
|
42
|
-
}
|
|
43
|
-
startLoad() {
|
|
44
|
-
const attempt = ++this._attempt;
|
|
45
|
-
const { timeoutMs } = this._options;
|
|
46
|
-
let loaderResult;
|
|
47
|
-
try {
|
|
48
|
-
loaderResult = this._loader();
|
|
49
|
-
} catch (err) {
|
|
50
|
-
loaderResult = Promise.reject(err);
|
|
51
|
-
}
|
|
52
|
-
const loadPromise = loaderResult.then((value) => {
|
|
53
|
-
if (attempt === this._attempt) {
|
|
54
|
-
this._cachedValue = value;
|
|
55
|
-
this._loaded = true;
|
|
56
|
-
}
|
|
57
|
-
return value;
|
|
58
|
-
}, (err) => {
|
|
59
|
-
if (attempt === this._attempt) {
|
|
60
|
-
this.warnFailure(err);
|
|
61
|
-
this._inFlight = void 0;
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
if (timeoutMs === void 0) return loadPromise;
|
|
65
|
-
let timeoutHandle;
|
|
66
|
-
const timeoutPromise = new Promise((resolve) => {
|
|
67
|
-
timeoutHandle = this._timer.setTimeout(() => {
|
|
68
|
-
if (attempt === this._attempt) {
|
|
69
|
-
this.warnTimeout(timeoutMs);
|
|
70
|
-
this._inFlight = void 0;
|
|
71
|
-
this._attempt++;
|
|
72
|
-
}
|
|
73
|
-
resolve(void 0);
|
|
74
|
-
}, timeoutMs);
|
|
75
|
-
});
|
|
76
|
-
return Promise.race([loadPromise, timeoutPromise]).finally(() => {
|
|
77
|
-
if (timeoutHandle !== void 0) this._timer.clearTimeout(timeoutHandle);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
warnFailure(err) {
|
|
81
|
-
const { label, moduleName } = this._options;
|
|
82
|
-
console.warn(`[${label}] Failed to load ${moduleName}; ${this.fallback()}`, err);
|
|
83
|
-
}
|
|
84
|
-
warnTimeout(timeoutMs) {
|
|
85
|
-
const { label, moduleName } = this._options;
|
|
86
|
-
console.warn(`[${label}] ${moduleName} failed to load within ${timeoutMs / 1e3}s; ${this.fallback()}`);
|
|
87
|
-
}
|
|
88
|
-
fallback() {
|
|
89
|
-
return this._options.disabledMessage ?? "module will be unavailable.";
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* Concrete implementation of {@link ILazyImportCapability}.
|
|
94
|
-
*
|
|
95
|
-
* `create()` returns a per-module {@link LazyImportHandle}. The
|
|
96
|
-
* {@link ITimerCapability} is injected so tests can replace the real
|
|
97
|
-
* `setTimeout`/`clearTimeout` with a controllable fake.
|
|
98
|
-
*/
|
|
99
|
-
var BrowserLazyImportProvider = class BrowserLazyImportProvider {
|
|
100
|
-
constructor(timer) {
|
|
101
|
-
this._timer = timer ?? BrowserTimerProvider.getInstance();
|
|
102
|
-
}
|
|
103
|
-
static getInstance() {
|
|
104
|
-
return this._instance ??= new BrowserLazyImportProvider();
|
|
105
|
-
}
|
|
106
|
-
static resetInstance() {
|
|
107
|
-
this._instance = void 0;
|
|
108
|
-
}
|
|
109
|
-
create(loader, options) {
|
|
110
|
-
return new LazyImportHandle(loader, options, this._timer);
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
//#endregion
|
|
1
|
+
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
114
2
|
//#region ../infra/src/providers/browser/TransactionalRiskIntelligenceProvider.ts
|
|
115
3
|
const LAZY_IMPORT_OPTIONS = {
|
|
116
4
|
label: "TRI",
|
package/dist/tri.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resetTRI, c as startTRI, l as stopTRI, r as isTRIStarted, s as setupTRI, t as createTRISession } from "./tri-
|
|
1
|
+
import { a as resetTRI, c as startTRI, l as stopTRI, r as isTRIStarted, s as setupTRI, t as createTRISession } from "./tri-4RsGrIt6.esm.js";
|
|
2
2
|
export { createTRISession, isTRIStarted, resetTRI, setupTRI, startTRI, stopTRI };
|
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-CBijDJ0d.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
@@ -7,7 +7,7 @@ import { c as createManager, o as createActor, r as assign, t as setup } from ".
|
|
|
7
7
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
8
8
|
import { t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
|
|
9
9
|
import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
|
|
10
|
-
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
10
|
+
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-B3oTx-NK.esm.js";
|
|
11
11
|
import { n as getBackCameraStream } from "./backCameraStream-Heg6vA1j.esm.js";
|
|
12
12
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
13
13
|
import { n as uploadSelfie, t as processFace } from "./selfieUploadService-B4LnSIf6.esm.js";
|
package/dist/wasm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as WasmPipeline, r as warmupWasm, t as WarmupConfig } from "./warmup-Dv2alr2-.js";
|
|
2
|
-
import { i as initializeWasmUtil, l as upgradeToWasmHttpClient, n as WasmConfig, r as ensureWasmPipelines, s as setWasmConfig } from "./setup-
|
|
2
|
+
import { i as initializeWasmUtil, l as upgradeToWasmHttpClient, n as WasmConfig, r as ensureWasmPipelines, s as setWasmConfig } from "./setup-BBfVpTog.js";
|
|
3
3
|
//#region ../infra/src/wasm/wasmDefaults.d.ts
|
|
4
4
|
/** The WASM version bundled and tested with this SDK release. */
|
|
5
5
|
declare const DEFAULT_WASM_VERSION = "v2.14.07-post7-post1";
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as warmupWasm } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
|
-
import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-
|
|
2
|
+
import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-CBijDJ0d.esm.js";
|
|
3
3
|
export { DEFAULT_WASM_VERSION, buildDefaultWasmConfig, buildWasmConfigFromBasePath, ensureWasmPipelines, initializeWasmUtil, resolveWasmConfig, setWasmConfig, upgradeToWasmHttpClient, warmupWasm };
|
package/dist/workflow.d.ts
CHANGED
|
@@ -320,6 +320,10 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
320
320
|
id: string | undefined;
|
|
321
321
|
};
|
|
322
322
|
}>, Values<{
|
|
323
|
+
setError: {
|
|
324
|
+
type: "setError";
|
|
325
|
+
params: NonReducibleUnknown;
|
|
326
|
+
};
|
|
323
327
|
setLoadingResult: {
|
|
324
328
|
type: "setLoadingResult";
|
|
325
329
|
params: NonReducibleUnknown;
|
|
@@ -348,10 +352,6 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
348
352
|
type: "setFinishStatusFailed";
|
|
349
353
|
params: NonReducibleUnknown;
|
|
350
354
|
};
|
|
351
|
-
setError: {
|
|
352
|
-
type: "setError";
|
|
353
|
-
params: NonReducibleUnknown;
|
|
354
|
-
};
|
|
355
355
|
setModuleError: {
|
|
356
356
|
type: "setModuleError";
|
|
357
357
|
params: NonReducibleUnknown;
|
package/dist/workflow.esm.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
+
import { g as updateFeatureManagementUser } from "./feature-management-Dw96qEMs.esm.js";
|
|
1
2
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
3
|
import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
3
4
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
4
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
5
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CrzyJ4Y0.esm.js";
|
|
5
6
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
7
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
8
|
import { n as toIncodeApiError } from "./apiError-COvIGYWe.esm.js";
|
|
8
9
|
import { n as electronicSignatureMachine } from "./electronicSignatureManager-DSZu9OHT.esm.js";
|
|
9
10
|
import "./ae-signature.esm.js";
|
|
10
11
|
import { t as antifraudMachine } from "./antifraudStateMachine-Bf-IiCq7.esm.js";
|
|
11
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
12
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-BlT8fkR6.esm.js";
|
|
12
13
|
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Ce568YfR.esm.js";
|
|
13
14
|
import { t as consentMachine } from "./consentStateMachine-Pc3Ez3mV.esm.js";
|
|
14
15
|
import { t as curpValidationMachine } from "./curpValidationStateMachine-7i3TD8J2.esm.js";
|
|
15
16
|
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-D23XTxl2.esm.js";
|
|
16
17
|
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-qgsrlcVh.esm.js";
|
|
17
18
|
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BV-Fn13x.esm.js";
|
|
18
|
-
import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-
|
|
19
|
+
import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-DfpEPLzD.esm.js";
|
|
19
20
|
import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-a7oP-XWo.esm.js";
|
|
20
21
|
import { t as emailMachine } from "./emailStateMachine-ChNwY22u.esm.js";
|
|
21
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
22
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
22
|
+
import { t as selfieMachine } from "./selfieStateMachine-D30gwMGq.esm.js";
|
|
23
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-_1pROAbA.esm.js";
|
|
23
24
|
import { t as phoneMachine } from "./phoneStateMachine-wDQtaT38.esm.js";
|
|
24
25
|
import { n as identityReuseMachine } from "./identityReuseStateMachine-CM45EBrb.esm.js";
|
|
25
26
|
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BN4Obfl7.esm.js";
|
|
@@ -157,6 +158,7 @@ async function processCustomNode(data, signal) {
|
|
|
157
158
|
async function loadWorkflow(input, signal) {
|
|
158
159
|
await initializeSession({ signal }).catch(() => void 0);
|
|
159
160
|
const workflowConfig = await getWorkflowConfig(signal);
|
|
161
|
+
await updateFeatureManagementUser({ customIDs: { workflow_id: workflowConfig.id } });
|
|
160
162
|
const realNode = await getCurrentNode(signal);
|
|
161
163
|
const fingerprintResult = getSessionFingerprintResult();
|
|
162
164
|
let currentNode = realNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260717-87fac45b",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
|
|
@@ -263,6 +263,11 @@
|
|
|
263
263
|
"source": "./src/modules/fiscal-qr/index.ts",
|
|
264
264
|
"types": "./dist/fiscal-qr.d.ts",
|
|
265
265
|
"import": "./dist/fiscal-qr.esm.js"
|
|
266
|
+
},
|
|
267
|
+
"./feature-management": {
|
|
268
|
+
"source": "./src/integrations/feature-management/index.ts",
|
|
269
|
+
"types": "./dist/feature-management.d.ts",
|
|
270
|
+
"import": "./dist/feature-management.esm.js"
|
|
266
271
|
}
|
|
267
272
|
},
|
|
268
273
|
"files": [
|
|
@@ -276,8 +281,8 @@
|
|
|
276
281
|
"tsdown": "^0.22.8",
|
|
277
282
|
"typescript": "^5.9.3",
|
|
278
283
|
"vitest": "4.1.4",
|
|
279
|
-
"@incodetech/
|
|
280
|
-
"@incodetech/
|
|
284
|
+
"@incodetech/infra": "1.2.0",
|
|
285
|
+
"@incodetech/config": "1.0.2"
|
|
281
286
|
},
|
|
282
287
|
"scripts": {
|
|
283
288
|
"build": "tsdown -c tsdown.config.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./sessionInitializer-B6n-FYf7.esm.js";
|