@incodetech/core 2.3.0-rc.1 → 2.3.0-rc.3
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/{BrowserDiagnosticsCryptoProvider-CU6kBvqv.esm.js → BrowserDiagnosticsCryptoProvider-C2E4mGEX.esm.js} +1 -1
- package/dist/{FaceDetectionProvider-BfhWkK90.esm.js → FaceDetectionProvider-DAVK6BAe.esm.js} +4 -4
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-Budb6m6w.esm.js → apiError-BArJSmSN.esm.js} +1 -1
- package/dist/authentication.d.ts +2 -2
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-cMXhG70r.esm.js → authenticationManager-DNciG_Ri.esm.js} +3 -3
- package/dist/{authenticationManager-CjXBjC-c.d.ts → authenticationManager-DcTHmYmL.d.ts} +1 -1
- package/dist/{authenticationStateMachine-MOYz4HCf.esm.js → authenticationStateMachine-BFOcuSH6.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-BhYFeKiG.d.ts → consentManager-uhDPdU6i.d.ts} +8 -8
- package/dist/{deepsightLoader-DDv3vhXU.esm.js → deepsightLoader-DPJZSnHo.esm.js} +3 -3
- package/dist/document-capture.d.ts +1 -1
- package/dist/{documentCaptureManager-DensIj5F.d.ts → documentCaptureManager-DD0qtFdE.d.ts} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-BbS-XMFc.esm.js → dynamicFormsManager-BDi3ffWG.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-D8zHBCh4.esm.js → dynamicFormsStateMachine-B7-mpYDT.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-5aiac8wL.esm.js → ekybManager-BfpqWpNP.esm.js} +1 -1
- package/dist/{ekybStateMachine-Bn2IE9rx.esm.js → ekybStateMachine-BGnzaF__.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BJJH0Tvi.esm.js → electronicSignatureManager-Bc8MLmTL.esm.js} +1 -1
- package/dist/extensibility.d.ts +8 -8
- package/dist/extensibility.esm.js +10 -10
- package/dist/{faceCaptureManagerFactory-BeUl8fl1.d.ts → faceCaptureManagerFactory-Cx-8SqRy.d.ts} +45 -37
- package/dist/{faceCaptureManagerFactory-B7Ms6pSs.esm.js → faceCaptureManagerFactory-qPW__uXd.esm.js} +1 -1
- package/dist/{faceCaptureSetup-bkAlr5d8.esm.js → faceCaptureSetup-DpM1YYl9.esm.js} +264 -42
- package/dist/{feature-management-E0mq0pMs.esm.js → feature-management-Bzr9uaS4.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-DJp1odGN.esm.js → flowCompletionService-D0qKFy5Y.esm.js} +1 -1
- package/dist/{flowServices-DjPFGs_D.esm.js → flowServices-CnyFU9Bz.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-D5906YXx.esm.js → geolocationManager-BqM__4xb.esm.js} +1 -1
- package/dist/{geolocationStateMachine-BVOduc3y.esm.js → geolocationStateMachine-DpxY4O3h.esm.js} +1 -1
- package/dist/id-selfie-flow.esm.js +8 -7
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +4 -4
- package/dist/idCaptureDefaults-Cd-qOMUt.esm.js +282 -0
- package/dist/{idCaptureManager-rfV9dIXy.esm.js → idCaptureManager-CO4WBQQN.esm.js} +3 -3
- package/dist/{idCaptureManager-DKESug0R.d.ts → idCaptureManager-De7O0TOD.d.ts} +23 -4
- package/dist/{idCaptureServices-i1KxugN7.esm.js → idCaptureServices-CFuKdAW7.esm.js} +58 -11
- package/dist/{idCaptureStateMachine-Ne_PXth_.esm.js → idCaptureStateMachine-CzyZ_21z.esm.js} +210 -66
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-BFDI7iFK.d.ts} +4 -4
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-vhv1co_n.d.ts → mandatoryConsentManager-Csfl7_XQ.d.ts} +4 -4
- package/dist/{multipartRecordingService-OEgIRvqC.esm.js → multipartRecordingService-CuXLH4tK.esm.js} +446 -1
- package/dist/personhood.esm.js +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-CI1gGWN1.esm.js → runChildModule-CTeh8a1T.esm.js} +1 -1
- package/dist/{sdkVersion-BZh6dj53.esm.js → sdkVersion-DYlnESxD.esm.js} +1 -1
- package/dist/selfie.d.ts +2 -2
- package/dist/selfie.esm.js +5 -5
- package/dist/{selfieManager-B-2c1n_x.esm.js → selfieManager-CFGf-DmP.esm.js} +3 -3
- package/dist/{selfieManager-4RRLi21P.d.ts → selfieManager-jXqwqosi.d.ts} +1 -1
- package/dist/{selfieStateMachine-Bzx41R8d.esm.js → selfieStateMachine-BJVwANex.esm.js} +2 -2
- package/dist/{session-3LmvAU4S.esm.js → session-Cs6z9Stj.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-BFk33E67.esm.js → sessionInitializer-DKCQfxZ2.esm.js} +3 -3
- package/dist/{setup-BWG-hivt.esm.js → setup-B-qr0dC6.esm.js} +4 -4
- package/dist/{trueSightService-BN-Hzw82.esm.js → trueSightService-De306VXK.esm.js} +3 -3
- package/dist/video-selfie.esm.js +4 -5
- package/dist/{videoSelfieCameraWarmer-B8PcYqmz.esm.js → videoSelfieCameraWarmer-BRz5aQPN.esm.js} +3 -3
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.esm.js +14 -14
- package/package.json +3 -3
- package/dist/idCaptureDefaults-CbPA-Auz.esm.js +0 -727
package/dist/{idCaptureStateMachine-Ne_PXth_.esm.js → idCaptureStateMachine-CzyZ_21z.esm.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-B-qr0dC6.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
4
|
+
import { s as exposeExperimentOnce } from "./feature-management-Bzr9uaS4.esm.js";
|
|
5
5
|
import { n as revokeObjectURL, t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
6
6
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
7
|
-
import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
7
|
+
import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-De306VXK.esm.js";
|
|
8
8
|
import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-ijlbX_Wx.esm.js";
|
|
9
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
9
|
+
import { t as getDisableIpify } from "./sessionInitializer-DKCQfxZ2.esm.js";
|
|
10
10
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
11
11
|
import { t as addDeviceStats } from "./stats-CZcy2J53.esm.js";
|
|
12
12
|
import { a as isIOS, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-DkcRc9JV.esm.js";
|
|
13
|
-
import "./session-
|
|
13
|
+
import "./session-Cs6z9Stj.esm.js";
|
|
14
14
|
import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
15
15
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
16
16
|
import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-D6phjq1-.esm.js";
|
|
@@ -24,8 +24,8 @@ import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
|
24
24
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
25
25
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
26
26
|
import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-Cjab7FTI.esm.js";
|
|
27
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-
|
|
28
|
-
import { a as getRealQualityValue, b as
|
|
27
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-Cd-qOMUt.esm.js";
|
|
28
|
+
import { C as getIdCameraStream, S as OPTIMIZING_WATCHDOG_MARGIN_MS, _ as validateUploadResponse, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as uploadManualIdFile, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, v as ID_ERROR_CODES, x as CAPTURE_OPTIMIZING } from "./idCaptureServices-CFuKdAW7.esm.js";
|
|
29
29
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
30
30
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
31
31
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
@@ -1781,7 +1781,7 @@ fromPromise(async ({ input }) => {
|
|
|
1781
1781
|
});
|
|
1782
1782
|
fromPromise(async ({ input }) => {
|
|
1783
1783
|
if (!input.dependencies) return;
|
|
1784
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1784
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-DPJZSnHo.esm.js");
|
|
1785
1785
|
return loadDeepsightSession({
|
|
1786
1786
|
ds: input.ds,
|
|
1787
1787
|
storage: input.dependencies.storage,
|
|
@@ -2224,7 +2224,7 @@ function cleanup(service) {
|
|
|
2224
2224
|
service.cleanup();
|
|
2225
2225
|
} catch {}
|
|
2226
2226
|
}
|
|
2227
|
-
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-
|
|
2227
|
+
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-DPJZSnHo.esm.js")).loadDeepsightSession(input)) {
|
|
2228
2228
|
let disposed = false;
|
|
2229
2229
|
let preparation;
|
|
2230
2230
|
let service;
|
|
@@ -2325,6 +2325,16 @@ function createIdProtectedCaptureController(dependencies = {}) {
|
|
|
2325
2325
|
let attemptContext;
|
|
2326
2326
|
let attemptSend;
|
|
2327
2327
|
let diagnosticAttempt;
|
|
2328
|
+
const stepRecording = { retryPending: false };
|
|
2329
|
+
const recordingScopeFor = (context) => context.currentMode === "back" ? "backId" : "frontId";
|
|
2330
|
+
const completeStepRecording = () => {
|
|
2331
|
+
const session = stepRecording.session;
|
|
2332
|
+
stepRecording.session = void 0;
|
|
2333
|
+
stepRecording.scope = void 0;
|
|
2334
|
+
stepRecording.retryPending = false;
|
|
2335
|
+
if (!session) return;
|
|
2336
|
+
finalizeRecordingSession(session).catch(() => {});
|
|
2337
|
+
};
|
|
2328
2338
|
const logDiagnostic = (event, fields = {}) => {
|
|
2329
2339
|
if (!diagnosticAttempt) return;
|
|
2330
2340
|
logIdCameraDiagnostic(event, {
|
|
@@ -2455,6 +2465,7 @@ function createIdProtectedCaptureController(dependencies = {}) {
|
|
|
2455
2465
|
beginAttempt(context, send) {
|
|
2456
2466
|
if (disposed) throw new Error("ID protected capture controller is disposed");
|
|
2457
2467
|
clearAttempt();
|
|
2468
|
+
if (stepRecording.session && stepRecording.scope !== recordingScopeFor(context)) completeStepRecording();
|
|
2458
2469
|
diagnosticAttempt = {
|
|
2459
2470
|
attempt: ++protectedIdAttemptSequence,
|
|
2460
2471
|
side: context.currentMode === "back" ? "back" : "front",
|
|
@@ -2492,6 +2503,27 @@ function createIdProtectedCaptureController(dependencies = {}) {
|
|
|
2492
2503
|
metadataCoordinator.dispose();
|
|
2493
2504
|
releasePreAcquired();
|
|
2494
2505
|
clearAttempt();
|
|
2506
|
+
completeStepRecording();
|
|
2507
|
+
},
|
|
2508
|
+
getStepRecording() {
|
|
2509
|
+
return stepRecording;
|
|
2510
|
+
},
|
|
2511
|
+
keepRecordingForRetry() {
|
|
2512
|
+
stepRecording.retryPending = true;
|
|
2513
|
+
},
|
|
2514
|
+
completeStepRecording,
|
|
2515
|
+
endRecordingStep() {
|
|
2516
|
+
if (stepRecording.retryPending) {
|
|
2517
|
+
stepRecording.retryPending = false;
|
|
2518
|
+
return;
|
|
2519
|
+
}
|
|
2520
|
+
completeStepRecording();
|
|
2521
|
+
},
|
|
2522
|
+
pauseStepRecording() {
|
|
2523
|
+
if (stepRecording.session) pauseRecordingForAttempt(stepRecording.session);
|
|
2524
|
+
},
|
|
2525
|
+
resumeStepRecording() {
|
|
2526
|
+
if (stepRecording.session) resumeRecordingAfterPause(stepRecording.session);
|
|
2495
2527
|
},
|
|
2496
2528
|
preAcquire,
|
|
2497
2529
|
setVisible(nextVisible) {
|
|
@@ -2738,33 +2770,118 @@ function createProtectedIdProvider(config) {
|
|
|
2738
2770
|
const workflow = resolveProtectedIdWorkflow(config);
|
|
2739
2771
|
return workflow === 0 ? new IdCaptureProvider() : new IdCaptureProvider(workflow);
|
|
2740
2772
|
}
|
|
2773
|
+
/**
|
|
2774
|
+
* Recorder hooks for one protected ID attempt over a step-scoped recording.
|
|
2775
|
+
*
|
|
2776
|
+
* The attempt never completes the scoped upload. It starts or resumes the held
|
|
2777
|
+
* session after PRC, pauses it and ends its camera clone synchronously when the
|
|
2778
|
+
* capture is committed (before POC), and suspends it the same way on release.
|
|
2779
|
+
* The controller completes the upload when the backend accepts the capture or
|
|
2780
|
+
* when the step ends without a retry (ENG-56648). A session that is no longer
|
|
2781
|
+
* live — already finalized or disposed — cannot be paused, so it is dropped and
|
|
2782
|
+
* torn down instead.
|
|
2783
|
+
*/
|
|
2741
2784
|
function createProtectedIdRecorderHooks(input) {
|
|
2742
|
-
|
|
2785
|
+
const holder = input.stepRecording ?? { retryPending: false };
|
|
2786
|
+
const scope = input.currentMode === "back" ? "backId" : "frontId";
|
|
2743
2787
|
const enabled = input.enabled !== false && input.config.enableIdRecording === true;
|
|
2788
|
+
let disposed = false;
|
|
2789
|
+
const dropHeldSession = () => {
|
|
2790
|
+
const session = holder.session;
|
|
2791
|
+
holder.session = void 0;
|
|
2792
|
+
holder.scope = void 0;
|
|
2793
|
+
return session;
|
|
2794
|
+
};
|
|
2795
|
+
/**
|
|
2796
|
+
* Ends the camera clone on the calling thread and keeps the paused upload for
|
|
2797
|
+
* the next attempt. Idempotent; never finalizes a multipart session.
|
|
2798
|
+
*/
|
|
2799
|
+
const suspend = () => {
|
|
2800
|
+
const session = holder.session;
|
|
2801
|
+
if (!session) return;
|
|
2802
|
+
if (!isSuspendableRecordingSession(session)) {
|
|
2803
|
+
dropHeldSession();
|
|
2804
|
+
disposeRecordingSession(session);
|
|
2805
|
+
return;
|
|
2806
|
+
}
|
|
2807
|
+
try {
|
|
2808
|
+
prepareRecordingForCameraRetry(session);
|
|
2809
|
+
} catch {}
|
|
2810
|
+
};
|
|
2811
|
+
const warn = (message) => {
|
|
2812
|
+
trueSightLog("warning", "recording", "idScan", message);
|
|
2813
|
+
};
|
|
2744
2814
|
return {
|
|
2745
2815
|
mode: enabled ? "finalizeBeforePoc" : "none",
|
|
2746
2816
|
async start(stream) {
|
|
2747
2817
|
if (!enabled) return;
|
|
2748
|
-
session
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2818
|
+
if (holder.session && holder.scope !== scope) {
|
|
2819
|
+
const stale = dropHeldSession();
|
|
2820
|
+
if (stale) disposeRecordingSession(stale);
|
|
2821
|
+
}
|
|
2822
|
+
const existing = holder.session;
|
|
2823
|
+
let session;
|
|
2824
|
+
try {
|
|
2825
|
+
session = await startRecordingSession({
|
|
2826
|
+
config: input.config,
|
|
2827
|
+
stream,
|
|
2828
|
+
type: scope,
|
|
2829
|
+
existing
|
|
2830
|
+
});
|
|
2831
|
+
} catch (error) {
|
|
2832
|
+
if (existing) {
|
|
2833
|
+
suspend();
|
|
2834
|
+
warn("ID recording did not resume for this attempt");
|
|
2835
|
+
return;
|
|
2836
|
+
}
|
|
2837
|
+
throw error;
|
|
2838
|
+
}
|
|
2839
|
+
if (disposed) {
|
|
2840
|
+
if (session && session !== existing) disposeRecordingSession(session);
|
|
2841
|
+
else suspend();
|
|
2842
|
+
return;
|
|
2843
|
+
}
|
|
2844
|
+
if (session) {
|
|
2845
|
+
holder.session = session;
|
|
2846
|
+
holder.scope = scope;
|
|
2847
|
+
}
|
|
2753
2848
|
},
|
|
2754
2849
|
async prepareForPoc() {
|
|
2850
|
+
const session = holder.session;
|
|
2755
2851
|
if (!session) return {};
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2852
|
+
if (!isSuspendableRecordingSession(session)) {
|
|
2853
|
+
dropHeldSession();
|
|
2854
|
+
return finalizeRecordingSession(session);
|
|
2855
|
+
}
|
|
2856
|
+
suspend();
|
|
2857
|
+
return {};
|
|
2759
2858
|
},
|
|
2760
2859
|
async resumeAfterPoc() {},
|
|
2761
|
-
pauseForBackground() {
|
|
2762
|
-
|
|
2860
|
+
pauseForBackground() {
|
|
2861
|
+
suspend();
|
|
2862
|
+
},
|
|
2863
|
+
async resumeFromBackground(stream) {
|
|
2864
|
+
const existing = holder.session;
|
|
2865
|
+
if (!enabled || disposed || !existing || holder.scope !== scope || !isSuspendableRecordingSession(existing)) return;
|
|
2866
|
+
try {
|
|
2867
|
+
await startRecordingSession({
|
|
2868
|
+
config: input.config,
|
|
2869
|
+
stream,
|
|
2870
|
+
type: scope,
|
|
2871
|
+
existing
|
|
2872
|
+
});
|
|
2873
|
+
} catch {
|
|
2874
|
+
suspend();
|
|
2875
|
+
warn("ID recording did not resume after foreground");
|
|
2876
|
+
}
|
|
2877
|
+
},
|
|
2763
2878
|
dispose() {
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2879
|
+
disposed = true;
|
|
2880
|
+
try {
|
|
2881
|
+
input.disposeCaptureCallbacks();
|
|
2882
|
+
} finally {
|
|
2883
|
+
suspend();
|
|
2884
|
+
}
|
|
2768
2885
|
}
|
|
2769
2886
|
};
|
|
2770
2887
|
}
|
|
@@ -2995,7 +3112,8 @@ function createProtectedIdAttemptInput(input) {
|
|
|
2995
3112
|
config: context.config,
|
|
2996
3113
|
currentMode: context.currentMode,
|
|
2997
3114
|
disposeCaptureCallbacks: callbackSession.dispose,
|
|
2998
|
-
enabled: !captureOnly
|
|
3115
|
+
enabled: !captureOnly,
|
|
3116
|
+
stepRecording: controller.getStepRecording()
|
|
2999
3117
|
}),
|
|
3000
3118
|
releaseUnadoptedStream: stopStream,
|
|
3001
3119
|
beforeAdopt: captureOnly ? void 0 : async (stream) => {
|
|
@@ -3788,6 +3906,21 @@ const idCaptureMachine = setup({
|
|
|
3788
3906
|
clearProtectedAttempt: ({ self }) => {
|
|
3789
3907
|
getIdProtectedCaptureController(self).clearAttempt();
|
|
3790
3908
|
},
|
|
3909
|
+
keepProtectedRecordingForRetry: ({ self }) => {
|
|
3910
|
+
getIdProtectedCaptureController(self).keepRecordingForRetry();
|
|
3911
|
+
},
|
|
3912
|
+
completeProtectedRecording: ({ self }) => {
|
|
3913
|
+
getIdProtectedCaptureController(self).completeStepRecording();
|
|
3914
|
+
},
|
|
3915
|
+
endProtectedRecordingStep: ({ self }) => {
|
|
3916
|
+
getIdProtectedCaptureController(self).endRecordingStep();
|
|
3917
|
+
},
|
|
3918
|
+
pauseProtectedRecording: ({ self }) => {
|
|
3919
|
+
getIdProtectedCaptureController(self).pauseStepRecording();
|
|
3920
|
+
},
|
|
3921
|
+
resumeProtectedRecording: ({ self }) => {
|
|
3922
|
+
getIdProtectedCaptureController(self).resumeStepRecording();
|
|
3923
|
+
},
|
|
3791
3924
|
disposeProvider: ({ context }) => {
|
|
3792
3925
|
performDisposeProvider(context);
|
|
3793
3926
|
},
|
|
@@ -4553,6 +4686,7 @@ const idCaptureMachine = setup({
|
|
|
4553
4686
|
exit: [
|
|
4554
4687
|
"stopMediaRecording",
|
|
4555
4688
|
"clearRecordingSession",
|
|
4689
|
+
"endProtectedRecordingStep",
|
|
4556
4690
|
"clearProtectedAttempt"
|
|
4557
4691
|
],
|
|
4558
4692
|
invoke: {
|
|
@@ -4592,7 +4726,7 @@ const idCaptureMachine = setup({
|
|
|
4592
4726
|
always: "#idCapture.closed"
|
|
4593
4727
|
},
|
|
4594
4728
|
releasingForRetry: {
|
|
4595
|
-
entry: "releaseProtectedForRetry",
|
|
4729
|
+
entry: ["keepProtectedRecordingForRetry", "releaseProtectedForRetry"],
|
|
4596
4730
|
always: {
|
|
4597
4731
|
target: "#idCapture.capture",
|
|
4598
4732
|
reenter: true
|
|
@@ -4760,21 +4894,27 @@ const idCaptureMachine = setup({
|
|
|
4760
4894
|
onError: { target: "uploading" }
|
|
4761
4895
|
} },
|
|
4762
4896
|
capturingBarcode: { always: [{ target: "submittingBarcodePreCapture" }] },
|
|
4763
|
-
submittingBarcodePreCapture: {
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4897
|
+
submittingBarcodePreCapture: {
|
|
4898
|
+
entry: "pauseProtectedRecording",
|
|
4899
|
+
invoke: {
|
|
4900
|
+
id: "submitBarcode",
|
|
4901
|
+
src: "submitBarcode",
|
|
4902
|
+
input: ({ context }) => ({
|
|
4903
|
+
rawBarcode: context.decodedBarcode?.text ?? "",
|
|
4904
|
+
metrics: context.decodedBarcode,
|
|
4905
|
+
processId: context.config.skipProcessId !== true,
|
|
4906
|
+
minDurationMs: 1e3
|
|
4907
|
+
}),
|
|
4908
|
+
onDone: {
|
|
4909
|
+
target: "success",
|
|
4910
|
+
actions: ["storeBarcodeResponse", "markBarcodeFastPathCaptured"]
|
|
4911
|
+
},
|
|
4912
|
+
onError: {
|
|
4913
|
+
target: "choosingDetectionStrategy",
|
|
4914
|
+
actions: "resumeProtectedRecording"
|
|
4915
|
+
}
|
|
4916
|
+
}
|
|
4917
|
+
},
|
|
4778
4918
|
capturingManual: {
|
|
4779
4919
|
entry: "finalizeProtectedAttempt",
|
|
4780
4920
|
on: { PROTECTED_ATTEMPT_FINALIZED_SIGNAL: [
|
|
@@ -4888,32 +5028,36 @@ const idCaptureMachine = setup({
|
|
|
4888
5028
|
},
|
|
4889
5029
|
{ target: "success" }
|
|
4890
5030
|
] },
|
|
4891
|
-
uploadError: {
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
"
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
5031
|
+
uploadError: {
|
|
5032
|
+
entry: "pauseProtectedRecording",
|
|
5033
|
+
on: { CONTINUE_FROM_ERROR: [
|
|
5034
|
+
{
|
|
5035
|
+
target: "releasingForRetry",
|
|
5036
|
+
guard: "hasAttemptsRemaining",
|
|
5037
|
+
actions: [
|
|
5038
|
+
"resetDetection",
|
|
5039
|
+
"clearUploadFailure",
|
|
5040
|
+
"clearStreamForRetry"
|
|
5041
|
+
]
|
|
5042
|
+
},
|
|
5043
|
+
{
|
|
5044
|
+
target: "#idCapture.frontFinished",
|
|
5045
|
+
guard: "shouldContinueToBack",
|
|
5046
|
+
actions: ["flagIdManualReview"]
|
|
5047
|
+
},
|
|
5048
|
+
{
|
|
5049
|
+
target: "#idCapture.backFinished",
|
|
5050
|
+
guard: "shouldContinueToFront",
|
|
5051
|
+
actions: ["flagIdManualReview"]
|
|
5052
|
+
},
|
|
5053
|
+
{
|
|
5054
|
+
target: "#idCapture.processing",
|
|
5055
|
+
actions: ["flagIdManualReview"]
|
|
5056
|
+
}
|
|
5057
|
+
] }
|
|
5058
|
+
},
|
|
4916
5059
|
success: {
|
|
5060
|
+
entry: "completeProtectedRecording",
|
|
4917
5061
|
exit: "clearBarcodeFastPathCaptured",
|
|
4918
5062
|
on: { NEXT_STEP: [
|
|
4919
5063
|
{
|
package/dist/identity-reuse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-
|
|
1
|
+
import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-BFDI7iFK.js";
|
|
2
2
|
export { type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -108,14 +108,14 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
108
108
|
type: "setError";
|
|
109
109
|
params: NonReducibleUnknown;
|
|
110
110
|
};
|
|
111
|
-
clearError: {
|
|
112
|
-
type: "clearError";
|
|
113
|
-
params: NonReducibleUnknown;
|
|
114
|
-
};
|
|
115
111
|
setSelectedDocument: {
|
|
116
112
|
type: "setSelectedDocument";
|
|
117
113
|
params: NonReducibleUnknown;
|
|
118
114
|
};
|
|
115
|
+
clearError: {
|
|
116
|
+
type: "clearError";
|
|
117
|
+
params: NonReducibleUnknown;
|
|
118
|
+
};
|
|
119
119
|
}>, Values<{
|
|
120
120
|
hasDocuments: {
|
|
121
121
|
type: "hasDocuments";
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as reset, r as isConfigured, s as setup } from "./setup-
|
|
1
|
+
import { i as reset, r as isConfigured, s as setup } from "./setup-B-qr0dC6.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as MandatoryConsentConfig } from "./types-9_esGTPj.js";
|
|
2
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
2
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-Csfl7_XQ.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-vhv1co_n.d.ts → mandatoryConsentManager-Csfl7_XQ.d.ts}
RENAMED
|
@@ -61,14 +61,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
61
61
|
type: "clearError";
|
|
62
62
|
params: NonReducibleUnknown;
|
|
63
63
|
};
|
|
64
|
-
resetContext: {
|
|
65
|
-
type: "resetContext";
|
|
66
|
-
params: NonReducibleUnknown;
|
|
67
|
-
};
|
|
68
64
|
toggleSigned: {
|
|
69
65
|
type: "toggleSigned";
|
|
70
66
|
params: NonReducibleUnknown;
|
|
71
67
|
};
|
|
68
|
+
resetContext: {
|
|
69
|
+
type: "resetContext";
|
|
70
|
+
params: NonReducibleUnknown;
|
|
71
|
+
};
|
|
72
72
|
}>, {
|
|
73
73
|
type: "canSubmit";
|
|
74
74
|
params: unknown;
|