@incodetech/core 2.5.0-rc.2 → 2.5.0-rc.4
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/{CameraCompositor-ppyMYVoY.esm.js → CameraCompositor-BAP_KRUT.esm.js} +54 -0
- package/dist/{FaceDetectionProvider-YoIHxNx5.esm.js → FaceDetectionProvider-klK6EFg6.esm.js} +5 -5
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-Xv7JYZ3O.esm.js → apiError-DRsBE3CK.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-d2xl-T17.esm.js → authenticationManager-CyvlBPdd.esm.js} +3 -3
- package/dist/{authenticationManager-CFHIObef.d.ts → authenticationManager-DWFnFadt.d.ts} +1 -1
- package/dist/{authenticationStateMachine-DGPj6Ulz.esm.js → authenticationStateMachine-DlzoWoU4.esm.js} +3 -3
- package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-Bn9Z5wM5.esm.js} +1 -1
- package/dist/{camera-E_Kcre4O.esm.js → camera-wzsqfd3B.esm.js} +9 -1
- package/dist/camera.d.ts +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/{deepsightLoader-DntM8kzo.esm.js → deepsightLoader-JqZ_BHU4.esm.js} +3 -3
- package/dist/{desktopCameraElection-ByUXdW6A.esm.js → desktopCameraElection-q3cVTQ6a.esm.js} +19 -7
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-CoGcEiMK.d.ts → documentCaptureManager-BZBmcOKI.d.ts} +1 -1
- package/dist/{documentCaptureManager-C9g-btPN.esm.js → documentCaptureManager-D5oiXpwG.esm.js} +1 -1
- package/dist/{documentCaptureStateMachine-B0b1h_GT.esm.js → documentCaptureStateMachine-zyJcTCBx.esm.js} +4 -4
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-CL92Vbti.esm.js → dynamicFormsManager-CrQe8JpB.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-BmQ4sn39.esm.js → dynamicFormsStateMachine-BbQk7qGH.esm.js} +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-BvXwvkPc.esm.js → ekybManager-CMr6x_1w.esm.js} +1 -1
- package/dist/{ekybStateMachine-DR5nY0Eq.esm.js → ekybStateMachine-CmrEOQpf.esm.js} +1 -1
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/{ekycPrefillManager-BQ_KKUv5.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +29 -29
- package/dist/{ekycPrefillManager-nWDA9LF6.esm.js → ekycPrefillManager-D4e5zKJO.esm.js} +1 -1
- package/dist/{ekycPrefillStateMachine-ZdRWr7rY.esm.js → ekycPrefillStateMachine-C5lP7aBp.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-C6AccKC1.esm.js → electronicSignatureManager-BP-va382.esm.js} +1 -1
- package/dist/extensibility.d.ts +5 -5
- package/dist/extensibility.esm.js +14 -14
- package/dist/{faceCaptureManagerFactory-DqDNQb8X.d.ts → faceCaptureManagerFactory-DLFzd1nq.d.ts} +2 -2
- package/dist/{faceCaptureManagerFactory-Jd6ee8Tc.esm.js → faceCaptureManagerFactory-kFzpFeWi.esm.js} +2 -2
- package/dist/{faceCaptureSetup-Bj-gQdm4.esm.js → faceCaptureSetup-CpnjQFgi.esm.js} +21 -10
- package/dist/{feature-management-q3FudL5-.esm.js → feature-management-CxMEynqK.esm.js} +3 -2
- package/dist/feature-management.esm.js +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-D4G-4xKE.esm.js → fiscalQrManager-2ZBUw08-.esm.js} +2 -2
- package/dist/flow.d.ts +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-BBSNBh4t.esm.js → flowCompletionService-HyLrcPyI.esm.js} +1 -1
- package/dist/{flowServices-vTnxn4j6.esm.js → flowServices-DB-8bIC3.esm.js} +6 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Bjn6updp.esm.js → geolocationManager-Bg_D9126.esm.js} +1 -1
- package/dist/{geolocationStateMachine-CbRzb7eI.esm.js → geolocationStateMachine-DYwyH9H5.esm.js} +1 -1
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +7 -7
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-wbzfGVKi.esm.js → idCaptureManager-B-r13aBN.esm.js} +5 -5
- package/dist/{idCaptureServices-CoqKecdG.esm.js → idCaptureServices-BUtcpwTU.esm.js} +6 -5
- package/dist/{idCaptureStateMachine-DcqkRLVj.esm.js → idCaptureStateMachine-qK87MsJV.esm.js} +22 -12
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-VCLYYSqj.esm.js → kybChecksManager-C-tMl9v-.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-Bu_aDC8f.esm.js → kybChecksStateMachine-B8HBo4Sr.esm.js} +1 -1
- package/dist/{permissionGuards-DoAed6-z.esm.js → permissionGuards-CR0Z10rU.esm.js} +1 -1
- package/dist/{permissionServices-Ex5xc1h7.esm.js → permissionServices-BMQItC9y.esm.js} +6 -3
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-DxiwS8TV.esm.js → recordingService-yptkVJTO.esm.js} +3 -2
- package/dist/{runChildModule-DueLi8nh.esm.js → runChildModule-BfKUYITn.esm.js} +1 -1
- package/dist/{sdkVersion-BK9SMxvn.esm.js → sdkVersion-WUghPvAM.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-2Qy1MzfU.esm.js → selfieErrorUtils-CDEXv09U.esm.js} +1 -1
- package/dist/{selfieManager-Up8d42qB.esm.js → selfieManager-CESXppTr.esm.js} +3 -3
- package/dist/{selfieManager-Btqla0Id.d.ts → selfieManager-CvWeyYup.d.ts} +1 -1
- package/dist/{selfieStateMachine-DBLajsnI.esm.js → selfieStateMachine-DTgmC86l.esm.js} +3 -3
- package/dist/{session-B_MnhDlJ.esm.js → session-BsnIw7oQ.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CYM32Wsm.esm.js → sessionInitializer-6OS932zX.esm.js} +3 -3
- package/dist/{setup-Cmyufbm0.esm.js → setup-DpNKrn3K.esm.js} +4 -4
- package/dist/{setup-DpOr8H_l.d.ts → setup-O-JVSYKa.d.ts} +4 -3
- package/dist/{trueSightService-DLp63zbA.esm.js → trueSightService-N_y4mTc3.esm.js} +1 -1
- package/dist/{types-CoAp9UmW.d.ts → types-BRmwbyAu.d.ts} +2 -0
- package/dist/{types-BxLFoqzR.d.ts → types-Bc1-m6MR.d.ts} +1 -1
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +4 -4
- package/dist/{videoSelfieCameraWarmer-CMPUd3VM.esm.js → videoSelfieCameraWarmer-CsIqHijy.esm.js} +6 -6
- package/dist/{videoSelfieStepDetector-VJFqUQmL.d.ts → videoSelfieStepDetector-DStjqQQm.d.ts} +14 -1
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.esm.js +16 -16
- package/package.json +1 -1
|
@@ -73,6 +73,7 @@ function cameraCompositorWorkerMain(scope) {
|
|
|
73
73
|
let videoEncoder = null;
|
|
74
74
|
let audioEncoder = null;
|
|
75
75
|
let hasAudioSource = false;
|
|
76
|
+
let activeAudioReader = null;
|
|
76
77
|
let audioWanted = false;
|
|
77
78
|
let audioFormat = null;
|
|
78
79
|
let audioInHeader = false;
|
|
@@ -450,14 +451,20 @@ function cameraCompositorWorkerMain(scope) {
|
|
|
450
451
|
};
|
|
451
452
|
const pumpAudio = async (readable) => {
|
|
452
453
|
const reader = readable.getReader();
|
|
454
|
+
activeAudioReader = reader;
|
|
453
455
|
try {
|
|
454
456
|
for (;;) {
|
|
455
457
|
const { value, done } = await reader.read();
|
|
456
458
|
if (done) return;
|
|
459
|
+
if (reader !== activeAudioReader) {
|
|
460
|
+
value.close();
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
457
463
|
if (paused || recording !== "on") value.close();
|
|
458
464
|
else encodeAudio(value);
|
|
459
465
|
}
|
|
460
466
|
} catch (error) {
|
|
467
|
+
if (reader !== activeAudioReader) return;
|
|
461
468
|
audioWanted = false;
|
|
462
469
|
scope.postMessage({
|
|
463
470
|
type: "record-error",
|
|
@@ -549,6 +556,15 @@ function cameraCompositorWorkerMain(scope) {
|
|
|
549
556
|
case "source":
|
|
550
557
|
switchSource(message.readable);
|
|
551
558
|
break;
|
|
559
|
+
case "audio": {
|
|
560
|
+
if (!encodeConfig || !hasAudioSource) break;
|
|
561
|
+
const previous = activeAudioReader;
|
|
562
|
+
activeAudioReader = null;
|
|
563
|
+
previous?.cancel().catch(() => {});
|
|
564
|
+
audio.offsetUs = null;
|
|
565
|
+
pumpAudio(message.readable);
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
552
568
|
case "pause":
|
|
553
569
|
paused = true;
|
|
554
570
|
break;
|
|
@@ -708,6 +724,44 @@ var CameraCompositor = class {
|
|
|
708
724
|
if (previousVideoTrack) previousVideoTrack.stop();
|
|
709
725
|
}
|
|
710
726
|
/**
|
|
727
|
+
* Stops the microphone while no attempt records, so it is not held between
|
|
728
|
+
* attempts. Only the in-worker encoder can take a new microphone later
|
|
729
|
+
* (`switchAudio`); a `MediaRecorder` must keep its tracks, so there the
|
|
730
|
+
* microphone stays until `stop()`.
|
|
731
|
+
*/
|
|
732
|
+
releaseAudio() {
|
|
733
|
+
if (!this.encodesInWorker || !this.audioTrack) return;
|
|
734
|
+
this.composite?.removeTrack(this.audioTrack);
|
|
735
|
+
this.audioTrack.stop();
|
|
736
|
+
this.audioTrack = null;
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* Gives the in-worker encoder the microphone of `stream` after
|
|
740
|
+
* `releaseAudio`. Otherwise the composite keeps its microphone and the audio
|
|
741
|
+
* tracks of `stream` are stopped, because nothing else would end them.
|
|
742
|
+
*/
|
|
743
|
+
switchAudio(stream) {
|
|
744
|
+
const [track, ...unused] = stream.getAudioTracks();
|
|
745
|
+
for (const extra of unused) extra.stop();
|
|
746
|
+
if (!track) return;
|
|
747
|
+
if (!this.encodesInWorker || this.audioTrack || !this.composite) {
|
|
748
|
+
track.stop();
|
|
749
|
+
return;
|
|
750
|
+
}
|
|
751
|
+
try {
|
|
752
|
+
const processor = createTrackProcessor(track);
|
|
753
|
+
this.postToWorker({
|
|
754
|
+
type: "audio",
|
|
755
|
+
readable: processor.readable
|
|
756
|
+
}, [processor.readable]);
|
|
757
|
+
} catch {
|
|
758
|
+
track.stop();
|
|
759
|
+
return;
|
|
760
|
+
}
|
|
761
|
+
this.audioTrack = track;
|
|
762
|
+
this.composite.addTrack(track);
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
711
765
|
* True when this compositor records by itself: the worker transport started
|
|
712
766
|
* with `encodeInWorker` and the browser has `VideoEncoder`. Use the
|
|
713
767
|
* `*WorkerRecording` methods instead of a `MediaRecorder` then; the
|
package/dist/{FaceDetectionProvider-YoIHxNx5.esm.js → FaceDetectionProvider-klK6EFg6.esm.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { l as wasmRuntime } from "./warmup-BZOMg303.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-DpNKrn3K.esm.js";
|
|
3
3
|
import { r as BaseWasmProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
|
|
4
4
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
5
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
6
|
-
import "./sessionInitializer-
|
|
5
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-N_y4mTc3.esm.js";
|
|
6
|
+
import "./sessionInitializer-6OS932zX.esm.js";
|
|
7
7
|
import { t as addDeviceStats } from "./stats-DoByUnTa.esm.js";
|
|
8
8
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
9
9
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
10
|
-
import { r as hasBackCamera } from "./backCameraStream-
|
|
10
|
+
import { r as hasBackCamera } from "./backCameraStream-Bn9Z5wM5.esm.js";
|
|
11
11
|
import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
|
|
12
12
|
import { n as saveProcessFaceMatch } from "./processFaceMatch-B_DkDTE5.esm.js";
|
|
13
13
|
//#region src/internal/faceCapture/onDeviceFaceResults.ts
|
|
@@ -235,7 +235,7 @@ function startDetection(params) {
|
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
237
|
async function initializeDeepsightSession(options) {
|
|
238
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
238
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-JqZ_BHU4.esm.js");
|
|
239
239
|
return loadDeepsightSession({
|
|
240
240
|
ds: options.ds,
|
|
241
241
|
storage: options.storage
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BP-va382.esm.js";
|
|
2
2
|
//#region src/modules/ae-signature/index.ts
|
|
3
3
|
function createAeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
2
|
-
import { t as AuthenticationConfig } from "./types-
|
|
3
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-DLFzd1nq.js";
|
|
2
|
+
import { t as AuthenticationConfig } from "./types-Bc1-m6MR.js";
|
|
3
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-DWFnFadt.js";
|
|
4
4
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
2
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DlzoWoU4.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CyvlBPdd.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-d2xl-T17.esm.js → authenticationManager-CyvlBPdd.esm.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-DpNKrn3K.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
|
|
4
4
|
import "./events-CP3yOzAl.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
7
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
6
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-kFzpFeWi.esm.js";
|
|
7
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DlzoWoU4.esm.js";
|
|
8
8
|
//#region src/modules/authentication/authenticationActor.ts
|
|
9
9
|
function createAuthenticationActor(options) {
|
|
10
10
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-DLFzd1nq.js";
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
3
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
5
|
-
import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-CpnjQFgi.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-klK6EFg6.esm.js";
|
|
5
|
+
import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-q3cVTQ6a.esm.js";
|
|
6
6
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
7
7
|
const AUTH_ERROR_MAP = {
|
|
8
8
|
SPOOF_ATTEMPT_DETECTED: FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
2
|
import { a as isIOS, c as isIPhone14OrHigher, d as isSafari, i as isDesktop, t as isAndroid } from "./platform-aPh7gTWh.esm.js";
|
|
3
|
-
import { a as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-
|
|
3
|
+
import { a as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-wzsqfd3B.esm.js";
|
|
4
4
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
5
5
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
6
6
|
import { n as isBackFacingTrack, r as selectBestBackDevice, t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
@@ -136,6 +136,14 @@ async function requestCameraWithFallback(baseConstraints, fallbacks = DEFAULT_RE
|
|
|
136
136
|
}
|
|
137
137
|
throw new Error("All camera resolution fallbacks failed");
|
|
138
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* The video tracks of `video` with the audio tracks of `audio`, as one stream.
|
|
141
|
+
* Returns `video` itself when `audio` has no audio track.
|
|
142
|
+
*/
|
|
143
|
+
function withAudioTracks(video, audio) {
|
|
144
|
+
const audioTracks = audio?.getAudioTracks() ?? [];
|
|
145
|
+
return audioTracks.length > 0 ? new MediaStream([...video.getVideoTracks(), ...audioTracks]) : video;
|
|
146
|
+
}
|
|
139
147
|
function stopCameraStream(stream) {
|
|
140
148
|
for (const track of stream.getTracks()) track.stop();
|
|
141
149
|
}
|
|
@@ -147,4 +155,4 @@ async function applyTrackConstraints(track, constraints) {
|
|
|
147
155
|
await track.applyConstraints(constraints);
|
|
148
156
|
}
|
|
149
157
|
//#endregion
|
|
150
|
-
export { stopCameraStream as a,
|
|
158
|
+
export { stopCameraStream as a, isCameraDenialErrorName as c, requestCameraWithFallback as i, isCameraGrantedInDocument as l, enumerateVideoDevices as n, withAudioTracks as o, requestCameraAccess as r, clearCameraGrantedInDocument as s, applyTrackConstraints as t, markCameraGrantedInDocument as u };
|
package/dist/camera.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ type RequestPermissionOptions = {
|
|
|
4
4
|
requestMotion?: boolean;
|
|
5
5
|
/**
|
|
6
6
|
* Also request microphone access in the same `getUserMedia` call. Used by
|
|
7
|
-
* Video Selfie,
|
|
8
|
-
*
|
|
7
|
+
* Video Selfie, and by ID and selfie when they record a merged session with
|
|
8
|
+
* sound. Defaults to `false`, so other flows keep `{ video: true }` exactly.
|
|
9
9
|
*/
|
|
10
10
|
requestAudio?: boolean;
|
|
11
11
|
};
|
package/dist/camera.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as requestPermission, t as checkPermission } from "./permissionServices-
|
|
1
|
+
import { a as requestPermission, t as checkPermission } from "./permissionServices-BMQItC9y.esm.js";
|
|
2
2
|
export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
|
|
2
|
-
import { u as trueSightLog } from "./trueSightService-
|
|
3
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
4
|
-
import { C as BrowserEnvironmentProvider, S as IpifyProvider, T as SDK_PLATFORM, b as getThumbmarkId, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as fingerprintSignalsReporter } from "./sessionInitializer-
|
|
2
|
+
import { u as trueSightLog } from "./trueSightService-N_y4mTc3.esm.js";
|
|
3
|
+
import { t as SDK_VERSION } from "./sdkVersion-WUghPvAM.esm.js";
|
|
4
|
+
import { C as BrowserEnvironmentProvider, S as IpifyProvider, T as SDK_PLATFORM, b as getThumbmarkId, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as fingerprintSignalsReporter } from "./sessionInitializer-6OS932zX.esm.js";
|
|
5
5
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
6
6
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
7
7
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BHm1d2gA.esm.js";
|
package/dist/{desktopCameraElection-ByUXdW6A.esm.js → desktopCameraElection-q3cVTQ6a.esm.js}
RENAMED
|
@@ -3,8 +3,8 @@ import { d as getCameraCycleOwnershipDomain, l as wasmRuntime, u as CAMERA_CYCLE
|
|
|
3
3
|
import { i as utilityWasmApi } from "./WasmUtilProvider-BW_4YKrg.esm.js";
|
|
4
4
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
|
-
import {
|
|
7
|
-
import { l as queryCameraPermission } from "./permissionServices-
|
|
6
|
+
import { c as isCameraDenialErrorName, n as enumerateVideoDevices, o as withAudioTracks, r as requestCameraAccess, s as clearCameraGrantedInDocument, u as markCameraGrantedInDocument } from "./camera-wzsqfd3B.esm.js";
|
|
7
|
+
import { l as queryCameraPermission } from "./permissionServices-BMQItC9y.esm.js";
|
|
8
8
|
import { r as selectBestBackDevice, t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
9
9
|
import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
|
|
10
10
|
//#region ../infra/src/capabilities/ICameraCycleCapability.ts
|
|
@@ -295,6 +295,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
295
295
|
let pendingDeliveryEvent = null;
|
|
296
296
|
let visibilityGeneration = 0;
|
|
297
297
|
let hostStream = null;
|
|
298
|
+
let audioStream = null;
|
|
298
299
|
let resourcesReleased = false;
|
|
299
300
|
let cycleTransferred = false;
|
|
300
301
|
let commandQueue = Promise.resolve();
|
|
@@ -343,6 +344,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
343
344
|
}
|
|
344
345
|
});
|
|
345
346
|
};
|
|
347
|
+
const withMic = (videoStream) => withAudioTracks(videoStream, audioStream);
|
|
346
348
|
const releaseResources = () => {
|
|
347
349
|
if (resourcesReleased) return;
|
|
348
350
|
resourcesReleased = true;
|
|
@@ -363,6 +365,8 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
363
365
|
finalizeDeferred = false;
|
|
364
366
|
stopTracks(hostStream);
|
|
365
367
|
hostStream = null;
|
|
368
|
+
stopTracks(audioStream);
|
|
369
|
+
audioStream = null;
|
|
366
370
|
if (cycleTransferred) input.cycleOwnership.releaseByAttempt();
|
|
367
371
|
else input.cycleOwnership.releaseByController();
|
|
368
372
|
};
|
|
@@ -451,8 +455,8 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
451
455
|
onFirstFrame: () => {
|
|
452
456
|
startupTiming.firstFrameMs ??= Math.max(0, now() - cameraStepStartedAt);
|
|
453
457
|
},
|
|
454
|
-
onCameraReady: (
|
|
455
|
-
stopTracks(
|
|
458
|
+
onCameraReady: (claimedAudio) => {
|
|
459
|
+
stopTracks(claimedAudio);
|
|
456
460
|
step.outcome ??= { ready: true };
|
|
457
461
|
},
|
|
458
462
|
onCameraFailed: (error) => {
|
|
@@ -484,10 +488,18 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
484
488
|
await input.configureWorkflow();
|
|
485
489
|
startupTiming.configureMs = Math.max(0, now() - configureStartedAt);
|
|
486
490
|
if (!active) return;
|
|
491
|
+
if (input.recordAudio) try {
|
|
492
|
+
const mic = await requestCameraAccess({ audio: true });
|
|
493
|
+
if (!active) {
|
|
494
|
+
stopTracks(mic);
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
audioStream = mic;
|
|
498
|
+
} catch {}
|
|
487
499
|
recorderOperationInFlight = true;
|
|
488
500
|
const recorderStartedAt = now();
|
|
489
501
|
try {
|
|
490
|
-
await input.recorder.start(displayStream);
|
|
502
|
+
await input.recorder.start(withMic(displayStream));
|
|
491
503
|
recorderStarted = input.recorder.mode !== "none";
|
|
492
504
|
} catch {
|
|
493
505
|
try {
|
|
@@ -610,7 +622,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
610
622
|
}
|
|
611
623
|
try {
|
|
612
624
|
recorderOperationInFlight = true;
|
|
613
|
-
await input.recorder.resumeAfterPoc(displayStream);
|
|
625
|
+
await input.recorder.resumeAfterPoc(withMic(displayStream));
|
|
614
626
|
recorderResumedAfterPoc = true;
|
|
615
627
|
postPocDisplayStream = displayStream;
|
|
616
628
|
} catch {
|
|
@@ -793,7 +805,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
793
805
|
}
|
|
794
806
|
recorderOperationInFlight = true;
|
|
795
807
|
try {
|
|
796
|
-
await input.recorder.resumeFromBackground(resumedStream);
|
|
808
|
+
await input.recorder.resumeFromBackground(withMic(resumedStream));
|
|
797
809
|
if (!active) return;
|
|
798
810
|
if (receivedVisibilityGeneration !== visibilityGeneration) {
|
|
799
811
|
recorderOperationInFlight = false;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, u as DocumentUploadStatus } from "./types-CyNndVAT.js";
|
|
2
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
2
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-BZBmcOKI.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, type DocumentUploadStatus, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
2
|
-
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-
|
|
1
|
+
import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-zyJcTCBx.esm.js";
|
|
2
|
+
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-D5oiXpwG.esm.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -263,7 +263,7 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
263
263
|
type: "fileSizeOkForNonGallery";
|
|
264
264
|
params: unknown;
|
|
265
265
|
};
|
|
266
|
-
}>, never, "uploading" | "closed" | "success" | "finished" | "
|
|
266
|
+
}>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "tutorial" | "capturing" | "preview" | "failure" | "nextPage" | "finalizing" | {
|
|
267
267
|
permissions: "idle" | "denied" | "waitingForUser" | "requesting" | "learnMore";
|
|
268
268
|
}, string, DocumentCaptureInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
269
269
|
readonly id: "documentCapture";
|
package/dist/{documentCaptureManager-C9g-btPN.esm.js → documentCaptureManager-D5oiXpwG.esm.js}
RENAMED
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
|
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { n as DEFAULT_MAX_FILE_SIZE, r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
6
|
+
import { n as DEFAULT_MAX_FILE_SIZE, r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-zyJcTCBx.esm.js";
|
|
7
7
|
//#region src/modules/document-capture/documentCaptureActor.ts
|
|
8
8
|
function createDocumentCaptureActor(options) {
|
|
9
9
|
return createActor(documentCaptureMachine, { input: { config: options.config } }).start();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
|
-
import { a as stopCameraStream } from "./camera-
|
|
5
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
6
|
-
import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
4
|
+
import { a as stopCameraStream } from "./camera-wzsqfd3B.esm.js";
|
|
5
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-BMQItC9y.esm.js";
|
|
6
|
+
import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-CR0Z10rU.esm.js";
|
|
7
7
|
import { t as carryAttempts } from "./attemptCarry-BecGGZK8.esm.js";
|
|
8
|
-
import { n as getBackCameraStream } from "./backCameraStream-
|
|
8
|
+
import { n as getBackCameraStream } from "./backCameraStream-Bn9Z5wM5.esm.js";
|
|
9
9
|
//#region src/modules/document-capture/types.ts
|
|
10
10
|
const PROCESSING_TYPE_MAP = {
|
|
11
11
|
processV5CLogbook: "v5cMultiPageLogbook",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
2
|
-
import { t as createDynamicFormsManager } from "./dynamicFormsManager-
|
|
1
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BbQk7qGH.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-CrQe8JpB.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
|
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
6
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BbQk7qGH.esm.js";
|
|
7
7
|
//#region src/modules/dynamic-forms/dynamicFormsActor.ts
|
|
8
8
|
function createDynamicFormsActor(options) {
|
|
9
9
|
return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
|
package/dist/{dynamicFormsStateMachine-BmQ4sn39.esm.js → dynamicFormsStateMachine-BbQk7qGH.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
|
-
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-
|
|
2
|
+
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-DRsBE3CK.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
5
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { c as ALL_COUNTRIES, f as SUPPORTED_COUNTRIES, l as DEV_ONLY_COUNTRIES, m as isSupportedCountry, o as toEkybConfig } from "./ekybUtils-Cw8Ta9Qi.esm.js";
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-CmrEOQpf.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-CMr6x_1w.esm.js";
|
|
4
4
|
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
|
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
6
|
+
import { t as ekybMachine } from "./ekybStateMachine-CmrEOQpf.esm.js";
|
|
7
7
|
//#region src/modules/ekyb/ekybActor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Creates and starts an eKYB actor.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
|
-
import { n as getFlow } from "./flowServices-
|
|
2
|
+
import { n as getFlow } from "./flowServices-DB-8bIC3.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
5
|
import { a as sortModulesByOrder, c as ALL_COUNTRIES, d as FIELD_ORDER, i as requiresAddressValidation, m as isSupportedCountry, n as hasAtLeastOneAddressField, o as toEkybConfig, p as UBO_FIELD_LABELS, r as isFieldOptional, s as ADDRESS_FIELDS, u as FIELD_NAME_MAPPING } from "./ekybUtils-Cw8Ta9Qi.esm.js";
|
package/dist/ekyc-prefill.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as EkycFormValues, c as EkycValidationErrors, s as EkycValidationError } from "./types-DEa3taWc.js";
|
|
2
2
|
import { a as EkycPrefillFieldDef, c as EkycPrefillModuleConfig, i as EkycPrefillErrorKind, l as EkycPrefillServedField, n as EkycPrefillConfigField, s as EkycPrefillInputFormat, t as EkycPrefillConfig } from "./types-B-PIc0en.js";
|
|
3
|
-
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-
|
|
3
|
+
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-BcLhkpp8.js";
|
|
4
4
|
//#region src/modules/ekyc-prefill/ekycPrefillConfig.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Normalizes the served `EKYC_PREFILL` configuration. Idempotent, so a
|
package/dist/ekyc-prefill.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-
|
|
2
|
-
import { t as createEkycPrefillManager } from "./ekycPrefillManager-
|
|
1
|
+
import { i as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-C5lP7aBp.esm.js";
|
|
2
|
+
import { t as createEkycPrefillManager } from "./ekycPrefillManager-D4e5zKJO.esm.js";
|
|
3
3
|
export { createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
|
|
@@ -28,10 +28,15 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
28
28
|
} | {
|
|
29
29
|
type: "CLOSE";
|
|
30
30
|
}, {
|
|
31
|
-
[x: string]: ActorRefFromLogic<PromiseActorLogic<void, {
|
|
31
|
+
[x: string]: ActorRefFromLogic<PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>> | ActorRefFromLogic<PromiseActorLogic<void, {
|
|
32
32
|
hasPhone: boolean;
|
|
33
|
-
}, EventObject>> |
|
|
33
|
+
}, EventObject>> | undefined;
|
|
34
34
|
}, Values<{
|
|
35
|
+
submit: {
|
|
36
|
+
src: "submit";
|
|
37
|
+
logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
|
|
38
|
+
id: string | undefined;
|
|
39
|
+
};
|
|
35
40
|
loadPhoneRules: {
|
|
36
41
|
src: "loadPhoneRules";
|
|
37
42
|
logic: PromiseActorLogic<void, {
|
|
@@ -39,11 +44,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
39
44
|
}, EventObject>;
|
|
40
45
|
id: string | undefined;
|
|
41
46
|
};
|
|
42
|
-
submit: {
|
|
43
|
-
src: "submit";
|
|
44
|
-
logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
|
|
45
|
-
id: string | undefined;
|
|
46
|
-
};
|
|
47
47
|
}>, Values<{
|
|
48
48
|
applyForm: {
|
|
49
49
|
type: "applyForm";
|
|
@@ -82,6 +82,10 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
82
82
|
params: NonReducibleUnknown;
|
|
83
83
|
};
|
|
84
84
|
}>, Values<{
|
|
85
|
+
isValid: {
|
|
86
|
+
type: "isValid";
|
|
87
|
+
params: unknown;
|
|
88
|
+
};
|
|
85
89
|
phoneRulesFailed: {
|
|
86
90
|
type: "phoneRulesFailed";
|
|
87
91
|
params: unknown;
|
|
@@ -94,10 +98,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
94
98
|
type: "canRender";
|
|
95
99
|
params: unknown;
|
|
96
100
|
};
|
|
97
|
-
isValid: {
|
|
98
|
-
type: "isValid";
|
|
99
|
-
params: unknown;
|
|
100
|
-
};
|
|
101
101
|
isBadRequest: {
|
|
102
102
|
type: "isBadRequest";
|
|
103
103
|
params: unknown;
|
|
@@ -117,17 +117,13 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
117
117
|
readonly initial: "idle";
|
|
118
118
|
readonly context: ({ input }: {
|
|
119
119
|
spawn: {
|
|
120
|
-
<TSrc extends "
|
|
121
|
-
src: "
|
|
122
|
-
logic: PromiseActorLogic<
|
|
123
|
-
hasPhone: boolean;
|
|
124
|
-
}, EventObject>;
|
|
120
|
+
<TSrc extends "submit" | "loadPhoneRules">(logic: TSrc, ...[options]: ({
|
|
121
|
+
src: "submit";
|
|
122
|
+
logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
|
|
125
123
|
id: string | undefined;
|
|
126
124
|
} extends (infer T) ? T extends {
|
|
127
|
-
src: "
|
|
128
|
-
logic: PromiseActorLogic<
|
|
129
|
-
hasPhone: boolean;
|
|
130
|
-
}, EventObject>;
|
|
125
|
+
src: "submit";
|
|
126
|
+
logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
|
|
131
127
|
id: string | undefined;
|
|
132
128
|
} ? T extends {
|
|
133
129
|
src: TSrc;
|
|
@@ -137,12 +133,16 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
137
133
|
input?: InputFrom<T["logic"]> | undefined;
|
|
138
134
|
syncSnapshot?: boolean;
|
|
139
135
|
} & { [K in RequiredActorOptions<T>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T>>> : never : never : never) | ({
|
|
140
|
-
src: "
|
|
141
|
-
logic: PromiseActorLogic<
|
|
136
|
+
src: "loadPhoneRules";
|
|
137
|
+
logic: PromiseActorLogic<void, {
|
|
138
|
+
hasPhone: boolean;
|
|
139
|
+
}, EventObject>;
|
|
142
140
|
id: string | undefined;
|
|
143
141
|
} extends (infer T_1) ? T_1 extends {
|
|
144
|
-
src: "
|
|
145
|
-
logic: PromiseActorLogic<
|
|
142
|
+
src: "loadPhoneRules";
|
|
143
|
+
logic: PromiseActorLogic<void, {
|
|
144
|
+
hasPhone: boolean;
|
|
145
|
+
}, EventObject>;
|
|
146
146
|
id: string | undefined;
|
|
147
147
|
} ? T_1 extends {
|
|
148
148
|
src: TSrc;
|
|
@@ -152,6 +152,11 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
152
152
|
input?: InputFrom<T_1["logic"]> | undefined;
|
|
153
153
|
syncSnapshot?: boolean;
|
|
154
154
|
} & { [K_1 in RequiredActorOptions<T_1>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_1>>> : never : never : never)): ActorRefFromLogic<GetConcreteByKey<Values<{
|
|
155
|
+
submit: {
|
|
156
|
+
src: "submit";
|
|
157
|
+
logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
|
|
158
|
+
id: string | undefined;
|
|
159
|
+
};
|
|
155
160
|
loadPhoneRules: {
|
|
156
161
|
src: "loadPhoneRules";
|
|
157
162
|
logic: PromiseActorLogic<void, {
|
|
@@ -159,11 +164,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
159
164
|
}, EventObject>;
|
|
160
165
|
id: string | undefined;
|
|
161
166
|
};
|
|
162
|
-
submit: {
|
|
163
|
-
src: "submit";
|
|
164
|
-
logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
|
|
165
|
-
id: string | undefined;
|
|
166
|
-
};
|
|
167
167
|
}>, "src", TSrc>["logic"]>;
|
|
168
168
|
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: ({
|
|
169
169
|
id?: never;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
2
2
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
|
-
import { n as isAnyOfMissing, r as validateForm, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-
|
|
3
|
+
import { n as isAnyOfMissing, r as validateForm, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-C5lP7aBp.esm.js";
|
|
4
4
|
//#region src/modules/ekyc-prefill/ekycPrefillActor.ts
|
|
5
5
|
/** Creates and starts an eKYC Pre-fill actor, idle until `LOAD`. */
|
|
6
6
|
function createEkycPrefillActor(options = {}) {
|
package/dist/{ekycPrefillStateMachine-ZdRWr7rY.esm.js → ekycPrefillStateMachine-C5lP7aBp.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
2
|
+
import { i as toIncodeApiError } from "./apiError-DRsBE3CK.esm.js";
|
|
3
3
|
import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BP-va382.esm.js";
|
|
2
2
|
export { AE_CONSENT_KEYS, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
|
@@ -2,7 +2,7 @@ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
|
|
|
2
2
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
3
3
|
import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
|
|
4
4
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
5
|
-
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-
|
|
5
|
+
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-DRsBE3CK.esm.js";
|
|
6
6
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
7
7
|
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
8
8
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|