@incodetech/core 2.1.0-rc.4 → 2.1.0-rc.6
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/ae-signature.d.ts +1 -1
- package/dist/authentication.esm.js +12 -12
- package/dist/{authenticationManager-BnPgoiL_.esm.js → authenticationManager-7J-EmPRB.esm.js} +2 -2
- package/dist/{authenticationStateMachine-D50Q6Nvp.esm.js → authenticationStateMachine-PRBkRdGA.esm.js} +2 -2
- package/dist/{backCameraStream-POavVKz4.esm.js → backCameraStream-Cz2EvzSR.esm.js} +6 -10
- package/dist/{browserSimulation-DFpmweuc.esm.js → browserSimulation-CWJhFPZ2.esm.js} +1216 -153
- package/dist/certificate-issuance.d.ts +28 -28
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-BuiDVAGn.d.ts → consentManager-mc7QdTMo.d.ts} +47 -47
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-D_cnGuB7.d.ts → cpfOcrManager-zBticiCF.d.ts} +17 -17
- package/dist/{deepsightLoader-CgK9h2KF.esm.js → deepsightLoader-76UnowS7.esm.js} +5 -5
- package/dist/{deepsightService-BsLpJT8o.esm.js → deepsightService-DU9yBWg_.esm.js} +2 -2
- package/dist/device.d.ts +1 -9
- package/dist/device.esm.js +3 -3
- package/dist/document-capture.d.ts +171 -171
- package/dist/document-capture.esm.js +3 -3
- package/dist/document-upload.d.ts +40 -40
- package/dist/document-upload.esm.js +2 -2
- package/dist/{documentCaptureStateMachine-DK3nD2UZ.esm.js → documentCaptureStateMachine-C9Sk-unD.esm.js} +1 -1
- package/dist/ekyb.esm.js +6 -6
- package/dist/{ekybStateMachine-DJ9lWfdc.esm.js → ekybStateMachine-nxlJMOLd.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +5 -5
- package/dist/extensibility.esm.js +19 -19
- package/dist/{faceCaptureManagerFactory-bJiqzRoj.esm.js → faceCaptureManagerFactory-CzKGFnko.esm.js} +1 -1
- package/dist/{faceCaptureSetup-jYJNhw2K.esm.js → faceCaptureSetup-Cj5StqIj.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +2 -2
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +5 -5
- package/dist/{flowServices-DTQUals9.esm.js → flowServices-B-U4LBEz.esm.js} +1 -1
- package/dist/geolocation.esm.js +3 -3
- package/dist/{geolocationManager-CVKUo6a4.esm.js → geolocationManager-Dmbh6TXA.esm.js} +1 -1
- package/dist/{geolocationStateMachine-CdYh-pwi.esm.js → geolocationStateMachine-BRLIXR1x.esm.js} +1 -1
- package/dist/getBrowser-1yNcfFZR.esm.js +8 -0
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-verification.d.ts +25 -25
- package/dist/id.esm.js +11 -11
- package/dist/{idCaptureManager-Cd7THjha.esm.js → idCaptureManager-Bf48zlCL.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-BFMIWmBu.esm.js → idCaptureStateMachine-yJYkHYD0.esm.js} +6 -6
- package/dist/{idOcrManager-CDIHkP-v.d.ts → idOcrManager-BPrIg5Np.d.ts} +52 -52
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-BlJpsh9U.d.ts → identityReuseManager-CM-Jjztz.d.ts} +34 -34
- package/dist/{index-BgJYOyFO.d.ts → index-DzfsIaNl.d.ts} +150 -150
- package/dist/index.esm.js +5 -5
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-Da8pFx0L.d.ts → mandatoryConsentManager-D6UNv_fb.d.ts} +50 -50
- package/dist/{mediaRecorderOptions-BIn657lu.esm.js → mediaRecorderOptions-DuYelylE.esm.js} +1 -1
- package/dist/{onDeviceFaceResults-BdfKrQrf.esm.js → onDeviceFaceResults-sz7Ixft7.esm.js} +3 -3
- package/dist/personhood.esm.js +7 -7
- package/dist/qe-signature.d.ts +1 -1
- package/dist/{recordingService-B5QNBYnv.esm.js → recordingService-C49IUSu_.esm.js} +3 -3
- package/dist/selfie.esm.js +12 -12
- package/dist/{selfieManager-Cw29cKuL.esm.js → selfieManager-BpeRqH4P.esm.js} +2 -2
- package/dist/{selfieStateMachine-DUruCKBS.esm.js → selfieStateMachine-n7bnt0gx.esm.js} +2 -2
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CzPdr0Q1.esm.js → sessionInitializer-C54RAOch.esm.js} +119 -4
- package/dist/{setup-hKBHwm6K.esm.js → setup-CqrU2DM3.esm.js} +1 -1
- package/dist/trust-graph.d.ts +2 -2
- package/dist/video-selfie.d.ts +5 -3
- package/dist/video-selfie.esm.js +84 -70
- package/dist/wasm.esm.js +5 -5
- package/dist/workflow.d.ts +102 -102
- package/dist/workflow.esm.js +17 -17
- package/package.json +3 -3
- package/dist/thumbmarkAdapter-CVyiGp0-.esm.js +0 -1194
- /package/dist/{platform-BoeUeUrV.esm.js → platform-0Ot-bF_a.esm.js} +0 -0
package/dist/ae-signature.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./StateMachine-20ahmASR.js";
|
|
2
2
|
import { t as Manager } from "./Manager-BfBOhrjh.js";
|
|
3
3
|
import "./Actor-DYjXVMQm.js";
|
|
4
|
-
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-
|
|
4
|
+
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-DzfsIaNl.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/ae-signature/index.d.ts
|
|
7
7
|
|
|
@@ -3,32 +3,32 @@ import "./api-DsbUi7TO.esm.js";
|
|
|
3
3
|
import "./events-1wxZ97yf.esm.js";
|
|
4
4
|
import "./endpoints-CwrFQfW7.esm.js";
|
|
5
5
|
import "./stats-BVy52wLy.esm.js";
|
|
6
|
-
import "./browserSimulation-
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
6
|
+
import "./browserSimulation-CWJhFPZ2.esm.js";
|
|
7
|
+
import "./platform-0Ot-bF_a.esm.js";
|
|
8
|
+
import "./getBrowser-1yNcfFZR.esm.js";
|
|
9
9
|
import "./xstate.esm-nY3M5UYm.esm.js";
|
|
10
|
-
import "./faceCaptureSetup-
|
|
10
|
+
import "./faceCaptureSetup-Cj5StqIj.esm.js";
|
|
11
11
|
import "./BrowserVisibilityObserverProvider-B04zvOXW.esm.js";
|
|
12
12
|
import "./MotionSensorProvider-BkHKMCPE.esm.js";
|
|
13
13
|
import "./permissionServices-D9lmzFYc.esm.js";
|
|
14
14
|
import "./camera-B0yWS33x.esm.js";
|
|
15
|
-
import "./faceCaptureManagerFactory-
|
|
15
|
+
import "./faceCaptureManagerFactory-CzKGFnko.esm.js";
|
|
16
16
|
import "./BrowserStorageProvider-CBXGCHnK.esm.js";
|
|
17
|
-
import "./onDeviceFaceResults-
|
|
17
|
+
import "./onDeviceFaceResults-sz7Ixft7.esm.js";
|
|
18
18
|
import "./ITimerCapability-G7lQg-be.esm.js";
|
|
19
19
|
import "./canvas-DsJa51yU.esm.js";
|
|
20
|
-
import "./backCameraStream-
|
|
20
|
+
import "./backCameraStream-Cz2EvzSR.esm.js";
|
|
21
21
|
import "./video-DXf5H9rY.esm.js";
|
|
22
22
|
import "./getDeviceClass-BdgmyOOu.esm.js";
|
|
23
|
-
import "./deepsightService-
|
|
23
|
+
import "./deepsightService-DU9yBWg_.esm.js";
|
|
24
24
|
import "./getDeviceClass-QxbJwsOO.esm.js";
|
|
25
25
|
import "./types-Db2ooXIu.esm.js";
|
|
26
26
|
import "./createFaceAvatar-CpmQJA8E.esm.js";
|
|
27
27
|
import "./StreamCanvasCapture-CRk7c7u7.esm.js";
|
|
28
28
|
import "./permissionGuards-CaZl9t7f.esm.js";
|
|
29
|
-
import "./recordingService-
|
|
30
|
-
import "./mediaRecorderOptions-
|
|
31
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
32
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
29
|
+
import "./recordingService-C49IUSu_.esm.js";
|
|
30
|
+
import "./mediaRecorderOptions-DuYelylE.esm.js";
|
|
31
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-PRBkRdGA.esm.js";
|
|
32
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-7J-EmPRB.esm.js";
|
|
33
33
|
|
|
34
34
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-BnPgoiL_.esm.js → authenticationManager-7J-EmPRB.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-ADG54T6M.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./events-1wxZ97yf.esm.js";
|
|
3
3
|
import { s as createActor } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
4
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
4
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CzKGFnko.esm.js";
|
|
5
5
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CBXGCHnK.esm.js";
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-PRBkRdGA.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationActor.ts
|
|
9
9
|
function createAuthenticationActor(options) {
|
|
@@ -2,8 +2,8 @@ import { t as api } from "./api-DsbUi7TO.esm.js";
|
|
|
2
2
|
import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
|
|
3
3
|
import { t as addDeviceStats } from "./stats-BVy52wLy.esm.js";
|
|
4
4
|
import { a as fromPromise, r as assign } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
5
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
6
|
-
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-
|
|
5
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-Cj5StqIj.esm.js";
|
|
6
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-sz7Ixft7.esm.js";
|
|
7
7
|
import { t as getDeviceClass } from "./getDeviceClass-QxbJwsOO.esm.js";
|
|
8
8
|
import { t as FACE_ERROR_CODES } from "./types-Db2ooXIu.esm.js";
|
|
9
9
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-
|
|
1
|
+
import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-0Ot-bF_a.esm.js";
|
|
2
2
|
import { a as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-B0yWS33x.esm.js";
|
|
3
3
|
import { t as sleep } from "./ITimerCapability-G7lQg-be.esm.js";
|
|
4
4
|
|
|
@@ -70,7 +70,7 @@ async function getCameras() {
|
|
|
70
70
|
}
|
|
71
71
|
return cameras;
|
|
72
72
|
}
|
|
73
|
-
function selectBestBackCamera(
|
|
73
|
+
function selectBestBackCamera(backCameras) {
|
|
74
74
|
if (backCameras.length === 0) return void 0;
|
|
75
75
|
if (backCameras.length === 1) return backCameras[0];
|
|
76
76
|
const withMp = backCameras.map((c) => {
|
|
@@ -85,10 +85,8 @@ function selectBestBackCamera(track, backCameras) {
|
|
|
85
85
|
const best = withMp.find((w) => w.mp === maxMp);
|
|
86
86
|
if (best) return best.camera;
|
|
87
87
|
}
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
if (browserPick) return browserPick;
|
|
91
|
-
return backCameras[0];
|
|
88
|
+
const [backCamera] = [...backCameras].sort((a, b) => a.label.localeCompare(b.label));
|
|
89
|
+
return backCamera;
|
|
92
90
|
}
|
|
93
91
|
function selectMainCameraFromStream(track, cameras) {
|
|
94
92
|
const settings = track.getSettings();
|
|
@@ -99,7 +97,7 @@ function selectMainCameraFromStream(track, cameras) {
|
|
|
99
97
|
if (camera.deviceId === activeCamera.deviceId) camera.cameraType = "back";
|
|
100
98
|
else if (!isBackCameraLabel(camera.label)) camera.cameraType = "front";
|
|
101
99
|
});
|
|
102
|
-
return selectBestBackCamera(
|
|
100
|
+
return selectBestBackCamera(cameras.filter((c) => c.cameraType === "back"));
|
|
103
101
|
}
|
|
104
102
|
if (cameras.length === 1) return activeCamera;
|
|
105
103
|
}
|
|
@@ -206,10 +204,8 @@ async function getAndroidBackCameraStream(fallbackLevel = 0) {
|
|
|
206
204
|
const mainCamera = selectMainCameraFromStream(track, await getCameras());
|
|
207
205
|
stopCameraStream(initialStream);
|
|
208
206
|
if (!mainCamera) throw new Error("Could not identify main camera");
|
|
209
|
-
const finalStream = await requestCameraAccess({ video: getAndroidFinalConstraints(mainCamera, fallbackLevel) });
|
|
210
|
-
await applyFocusHint(finalStream);
|
|
211
207
|
return {
|
|
212
|
-
stream:
|
|
208
|
+
stream: await requestCameraAccess({ video: getAndroidFinalConstraints(mainCamera, fallbackLevel) }),
|
|
213
209
|
fallbackLevel
|
|
214
210
|
};
|
|
215
211
|
} catch (error) {
|