@incodetech/core 0.0.0-dev-20260813-ad5ea9e1 → 0.0.0-dev-20260813-2991a679
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-CNisE_Zn.esm.js → BrowserDiagnosticsCryptoProvider-DmU3XcUT.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-DlT6yqH7.esm.js → apiError-C9ewfTXC.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BQ4rf5cd.esm.js → authenticationManager-SxqzvmHf.esm.js} +2 -2
- package/dist/{authenticationStateMachine-pgQiyE-Q.esm.js → authenticationStateMachine-BSia2svd.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
- package/dist/custom-fields.d.ts +2 -114
- package/dist/custom-fields.esm.js +2 -232
- package/dist/customFieldsManager-6mtAzlY2.esm.js +264 -0
- package/dist/customFieldsManager-8-W2KY4n.d.ts +141 -0
- package/dist/{deepsightLoader-DhTeVa0Y.esm.js → deepsightLoader-CxhndUYz.esm.js} +3 -3
- package/dist/document-capture.d.ts +1 -1
- package/dist/{documentCaptureManager-BykkLCQD.d.ts → documentCaptureManager-B3t0ydtg.d.ts} +1 -1
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-XCS1M8YD.esm.js → dynamicFormsManager-BmQJxHYZ.esm.js} +1 -1
- package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-DhveFHPS.d.ts} +1 -1
- package/dist/{dynamicFormsStateMachine-DPrVti5t.esm.js → dynamicFormsStateMachine-BgAfJJQH.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-DDY0Dv48.esm.js → ekybManager-CUXrRyZ2.esm.js} +1 -1
- package/dist/{ekybStateMachine-DPoE6ZWY.esm.js → ekybStateMachine-DH3uM8DO.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BF4fB4Ja.esm.js → electronicSignatureManager-BV9xT0cc.esm.js} +1 -1
- package/dist/extensibility.d.ts +7 -5
- package/dist/extensibility.esm.js +12 -10
- package/dist/{faceCaptureManagerFactory-z9XGOFC1.esm.js → faceCaptureManagerFactory-C8oK6tdq.esm.js} +1 -1
- package/dist/{faceCaptureSetup-h9c2vAKc.esm.js → faceCaptureSetup-C9-Fzm8d.esm.js} +2 -2
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-CgDm6jHE.esm.js → flowCompletionService-B3suP9s_.esm.js} +1 -1
- package/dist/{flowServices-bFtIDlJ6.esm.js → flowServices-j7UZkYFu.esm.js} +3 -3
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Cd2K6jyW.esm.js → geolocationManager-D4AIjfeN.esm.js} +1 -1
- package/dist/{geolocationStateMachine-bwz1ij99.esm.js → geolocationStateMachine-BeEwZnQx.esm.js} +1 -1
- package/dist/government-validation.d.ts +2 -85
- package/dist/government-validation.esm.js +2 -119
- package/dist/governmentValidationManager-DUzWUMjT.d.ts +96 -0
- package/dist/governmentValidationManager-DeF0Wcf5.esm.js +123 -0
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-DQSHRvTm.esm.js → idCaptureManager-CWmt6dp7.esm.js} +2 -2
- package/dist/{idCaptureServices-mELMLbTy.esm.js → idCaptureServices-wlaNQ3ib.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-CfPaYLOP.esm.js → idCaptureStateMachine-C6711mJz.esm.js} +7 -7
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-BbfpILqv.d.ts → mandatoryConsentManager-CVxw-noP.d.ts} +4 -4
- package/dist/{onDeviceFaceResults-COsSZ7zf.esm.js → onDeviceFaceResults-wU4uSbN-.esm.js} +3 -3
- package/dist/personhood.esm.js +3 -3
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-k20vRkRy.esm.js → recordingService-CyT_8BPw.esm.js} +1 -1
- package/dist/{runChildModule-pfy5gQAk.esm.js → runChildModule-Cy8-2m9V.esm.js} +1 -1
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-DmB7C0-a.esm.js → selfieManager-BcCcnW3q.esm.js} +2 -2
- package/dist/{selfieStateMachine-Dle0Z1Wf.esm.js → selfieStateMachine-DOEFt4Bo.esm.js} +2 -2
- package/dist/{session-D8x2baio.esm.js → session-qR0DAVjz.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CbssHeS5.esm.js → sessionInitializer-DAr2DSlY.esm.js} +2 -2
- package/dist/{setup-DJmnbb1a.esm.js → setup-GQkY_66u.esm.js} +4 -4
- package/dist/trueSight-XzLKY-t_.esm.js +1 -0
- package/dist/{trueSightService-CWCUUzQD.esm.js → trueSightService-Bf7-wYag.esm.js} +2 -2
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-B91eHP6E.esm.js → videoSelfieCameraWarmer-CVFHbQua.esm.js} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +15 -15
- package/package.json +1 -1
- package/dist/trueSight-Dx71WyQJ.esm.js +0 -1
- /package/dist/{types-BSBzhHRH.d.ts → types-BSBzhHRH2.d.ts} +0 -0
- /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
|
@@ -2,13 +2,13 @@ import { r as getToken } from "./api-Bx3gKW_y.esm.js";
|
|
|
2
2
|
import { n as sendTo, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
4
4
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-B7sMtZ8f.esm.js";
|
|
5
|
-
import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-
|
|
5
|
+
import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-wU4uSbN-.esm.js";
|
|
6
6
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
7
7
|
import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-DQKaRise.esm.js";
|
|
8
8
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
9
9
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-D2OgV9XX.esm.js";
|
|
10
10
|
import { n as flagFaceManualReview, t as imageFileToDataUrl } from "./imageFile-DutiOU7n.esm.js";
|
|
11
|
-
import { n as preloadOpenViduProvider, t as createRecordingService } from "./recordingService-
|
|
11
|
+
import { n as preloadOpenViduProvider, t as createRecordingService } from "./recordingService-CyT_8BPw.esm.js";
|
|
12
12
|
//#region src/internal/avatar/concealment.ts
|
|
13
13
|
/**
|
|
14
14
|
* Maps a backend concealment option to the internal avatar flags. `OPTION_NONE`
|
package/dist/flow.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { t as EkycConfig } from "./types-Bk_6dmDa.js";
|
|
|
7
7
|
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-CRw2IBPn.js";
|
|
8
8
|
import { t as AuthenticationConfig } from "./types-C2JzKH_L.js";
|
|
9
9
|
import { r as DocumentCaptureConfig } from "./types-DelMqZLe.js";
|
|
10
|
-
import { t as DynamicFormsConfig } from "./types-
|
|
10
|
+
import { t as DynamicFormsConfig } from "./types-BSBzhHRH2.js";
|
|
11
11
|
import { t as EkybConfig } from "./types-BfHiko5D.js";
|
|
12
12
|
import { c as IdCaptureConfig } from "./types-GqIocZi-2.js";
|
|
13
13
|
import { r as MandatoryConsentConfig } from "./types-8LPRL1Ni2.js";
|
|
@@ -15,7 +15,7 @@ import { t as IdOcrConfig } from "./types-CJ7Yl9K-2.js";
|
|
|
15
15
|
import { t as RedirectToMobileConfig } from "./types-DPIDuhut.js";
|
|
16
16
|
import { a as TotalScore, c as getTotalScoreStatus, n as FinishStatus, o as classifyScoreStatus, r as GetFinishStatusFn, t as FinishScreenVariant } from "./flowCompletionService-BlAHsKyv.js";
|
|
17
17
|
import { o as FlowEventSubscribable } from "./index-Bivs6yJF.js";
|
|
18
|
-
import { n as ModuleRegistry } from "./types-
|
|
18
|
+
import { n as ModuleRegistry } from "./types-BfgmV7s7.js";
|
|
19
19
|
//#region src/modules/flow/flowUtils.d.ts
|
|
20
20
|
type NormalizeFlowModulesOptions = {
|
|
21
21
|
isDesktop?: boolean;
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { v as addEvent } from "./events-CxfNJVZW.esm.js";
|
|
2
|
-
import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-
|
|
2
|
+
import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-j7UZkYFu.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
-
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-
|
|
6
|
-
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
5
|
+
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-B3suP9s_.esm.js";
|
|
6
|
+
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Cy8-2m9V.esm.js";
|
|
7
7
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
8
8
|
const noOpFlowModuleMachine = setup({}).createMachine({
|
|
9
9
|
id: "noOpFlowModule",
|
package/dist/{flowCompletionService-CgDm6jHE.esm.js → flowCompletionService-B3suP9s_.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
3
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
3
|
+
import { r as toIncodeApiError } from "./apiError-C9ewfTXC.esm.js";
|
|
4
4
|
//#region src/modules/flow/flowCompletionService.ts
|
|
5
5
|
const getFinishStatus = async (flowId, signal) => {
|
|
6
6
|
const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { E as updateFeatureManagementUser } from "./feature-management-DS_Nj5Gg.esm.js";
|
|
2
2
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
3
|
+
import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DAr2DSlY.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
6
|
-
import "./session-
|
|
5
|
+
import { r as toIncodeApiError } from "./apiError-C9ewfTXC.esm.js";
|
|
6
|
+
import "./session-qR0DAVjz.esm.js";
|
|
7
7
|
import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
8
8
|
//#region src/modules/flow/dashboardConfig.ts
|
|
9
9
|
function isPlainObject(value) {
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createGeolocationManager } from "./geolocationManager-
|
|
2
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
1
|
+
import { t as createGeolocationManager } from "./geolocationManager-D4AIjfeN.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-BeEwZnQx.esm.js";
|
|
3
3
|
export { createGeolocationManager, geolocationMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
3
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-BeEwZnQx.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
5
5
|
var BrowserGeolocationProvider = class {
|
|
6
6
|
getCurrentPosition() {
|
package/dist/{geolocationStateMachine-bwz1ij99.esm.js → geolocationStateMachine-BeEwZnQx.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
3
3
|
import { a as isIOS, t as isAndroid } from "./platform-Q4r1nvWX.esm.js";
|
|
4
|
-
import { n as isConnectivityError } from "./apiError-
|
|
4
|
+
import { n as isConnectivityError } from "./apiError-C9ewfTXC.esm.js";
|
|
5
5
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
7
|
//#region src/modules/geolocation/geolocationServices.ts
|
|
@@ -1,85 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
|
|
3
|
-
import { t as OtpValidationErrors } from "./otp-CEWfTj9v.js";
|
|
4
|
-
//#region src/modules/government-validation/types.d.ts
|
|
5
|
-
type GovernmentValidationConfig = {
|
|
6
|
-
validationCountries?: string[];
|
|
7
|
-
faceAndDataValidation?: boolean;
|
|
8
|
-
addressValidation?: boolean;
|
|
9
|
-
faceMatchOverrideDataScore?: boolean;
|
|
10
|
-
useCroppedIdFacePhoto?: boolean;
|
|
11
|
-
alternativeFacialValidation?: boolean;
|
|
12
|
-
fallbackEnabled?: boolean;
|
|
13
|
-
scrapingMethod?: boolean;
|
|
14
|
-
scrapingV2?: boolean;
|
|
15
|
-
scrapingV3?: boolean;
|
|
16
|
-
failUnsupportedId?: boolean;
|
|
17
|
-
mockConnectionError?: boolean;
|
|
18
|
-
mockUserNotFoundError?: boolean;
|
|
19
|
-
mockOK?: boolean;
|
|
20
|
-
facialValidation: boolean;
|
|
21
|
-
dataValidation: boolean;
|
|
22
|
-
backgroundExecution: boolean;
|
|
23
|
-
maxOtpAttempts?: number;
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/modules/government-validation/governmentValidationStateMachine.d.ts
|
|
27
|
-
declare const governmentValidationMachine: any;
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/modules/government-validation/governmentValidationActor.d.ts
|
|
30
|
-
type CreateGovernmentValidationActorOptions = {
|
|
31
|
-
config: GovernmentValidationConfig;
|
|
32
|
-
};
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region src/modules/government-validation/governmentValidationManager.d.ts
|
|
35
|
-
type GovernmentValidationIdleState = {
|
|
36
|
-
status: 'idle';
|
|
37
|
-
};
|
|
38
|
-
type GovernmentValidationLoadingState = {
|
|
39
|
-
status: 'loading';
|
|
40
|
-
};
|
|
41
|
-
type GovernmentValidationProcessingState = {
|
|
42
|
-
status: 'processing';
|
|
43
|
-
};
|
|
44
|
-
type GovernmentValidationAwaitingOtpState = {
|
|
45
|
-
status: 'awaitingOtp';
|
|
46
|
-
resendTimer: number;
|
|
47
|
-
canResend: boolean;
|
|
48
|
-
attemptsRemaining: number;
|
|
49
|
-
otpError?: string;
|
|
50
|
-
otpCode: string;
|
|
51
|
-
otpLength: number;
|
|
52
|
-
otpValidationErrors?: OtpValidationErrors;
|
|
53
|
-
isOtpValid: boolean;
|
|
54
|
-
};
|
|
55
|
-
type GovernmentValidationVerifyingOtpState = {
|
|
56
|
-
status: 'verifyingOtp';
|
|
57
|
-
otpCode: string;
|
|
58
|
-
otpLength: number;
|
|
59
|
-
};
|
|
60
|
-
type GovernmentValidationFinishedState = {
|
|
61
|
-
status: 'finished';
|
|
62
|
-
};
|
|
63
|
-
type GovernmentValidationErrorState = {
|
|
64
|
-
status: 'error';
|
|
65
|
-
error: string;
|
|
66
|
-
};
|
|
67
|
-
type GovernmentValidationSuccessState = {
|
|
68
|
-
status: 'displaySuccess';
|
|
69
|
-
};
|
|
70
|
-
type GovernmentValidationUnknownState = {
|
|
71
|
-
status: 'unknown';
|
|
72
|
-
error: string;
|
|
73
|
-
};
|
|
74
|
-
type GovernmentValidationState = GovernmentValidationIdleState | GovernmentValidationLoadingState | GovernmentValidationProcessingState | GovernmentValidationAwaitingOtpState | GovernmentValidationVerifyingOtpState | GovernmentValidationFinishedState | GovernmentValidationErrorState | GovernmentValidationSuccessState | GovernmentValidationUnknownState;
|
|
75
|
-
declare function createGovernmentValidationManager(options: CreateGovernmentValidationActorOptions): Manager<GovernmentValidationState> & {
|
|
76
|
-
load(): void;
|
|
77
|
-
setOtpCode(code: string): void;
|
|
78
|
-
validateOtp(): void;
|
|
79
|
-
submitOtp(code: string): void;
|
|
80
|
-
resendOtp(): void;
|
|
81
|
-
retry(): void;
|
|
82
|
-
};
|
|
83
|
-
type GovernmentValidationManager = ReturnType<typeof createGovernmentValidationManager>;
|
|
84
|
-
//#endregion
|
|
85
|
-
export { type GovernmentValidationConfig, type GovernmentValidationManager, type GovernmentValidationState, createGovernmentValidationManager, governmentValidationMachine };
|
|
1
|
+
import { a as GovernmentValidationActor, i as createGovernmentValidationManagerFromActor, n as GovernmentValidationState, o as governmentValidationMachine, r as createGovernmentValidationManager, s as GovernmentValidationConfig, t as GovernmentValidationManager } from "./governmentValidationManager-DUzWUMjT.js";
|
|
2
|
+
export { type GovernmentValidationActor, type GovernmentValidationConfig, type GovernmentValidationManager, type GovernmentValidationState, createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
|
|
@@ -1,120 +1,3 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
|
|
2
|
-
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
1
|
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BYKYUdza.esm.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return createActor(governmentValidationMachine, { input: { config: options.config } }).start();
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/modules/government-validation/governmentValidationManager.ts
|
|
11
|
-
/**
|
|
12
|
-
* Maps a Government Validation state-machine snapshot to the exact Figma
|
|
13
|
-
* "Tracked Events" screen name. Source: Government Record Verification
|
|
14
|
-
* Figma file (`https://www.figma.com/design/5J4kaLMl19s8cLyRMUMW32/Government-Record-Verification---Latest-Design?node-id=25911-4095`).
|
|
15
|
-
* Family is `GovernmentRecordValidation.*` (PascalCase verbatim from
|
|
16
|
-
* Figma); spans the background record-lookup flow only. The mapper returns
|
|
17
|
-
* Figma-verbatim spellings which the adapter emits as-is on `event.screen`
|
|
18
|
-
* (e.g. `GovernmentRecordValidation.analyzing.default`). See
|
|
19
|
-
* `docs/patterns/INSTRUMENTATION.md`.
|
|
20
|
-
*
|
|
21
|
-
* Figma sub-states the state machine does not surface as discrete states
|
|
22
|
-
* (intentionally not mapped here):
|
|
23
|
-
*
|
|
24
|
-
* - The OTP sub-flow (`awaitingOtp`, `verifyingOtp`) is the
|
|
25
|
-
* INE_VALIDATION variant. Figma does not define screens for it under
|
|
26
|
-
* this family; those states fall back to the generic
|
|
27
|
-
* `<module>.<state>` default.
|
|
28
|
-
* - `displayUnknown` reflects an unrecognised API status code. Figma does
|
|
29
|
-
* not define a tracked-event surface for it.
|
|
30
|
-
*
|
|
31
|
-
* `idle` and `finished` are intentionally unmapped — Figma does not
|
|
32
|
-
* define screens for them and `finished` collapses into `moduleClosed`.
|
|
33
|
-
*/
|
|
34
|
-
function getGovernmentValidationScreenName(snapshot) {
|
|
35
|
-
const stateName = topLevelStateName(snapshot.value);
|
|
36
|
-
if (stateName === void 0) return void 0;
|
|
37
|
-
switch (stateName) {
|
|
38
|
-
case "loading":
|
|
39
|
-
case "displayProcessing": return "GovernmentRecordValidation.analyzing.default";
|
|
40
|
-
case "displaySuccess": return "GovernmentRecordValidation.success.default";
|
|
41
|
-
case "displayError": return "GovernmentRecordValidation.error.usernotfound";
|
|
42
|
-
default: return;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function mapState(snapshot) {
|
|
46
|
-
const typedSnapshot = snapshot;
|
|
47
|
-
const { context } = typedSnapshot;
|
|
48
|
-
if (typedSnapshot.matches("idle")) return { status: "idle" };
|
|
49
|
-
if (typedSnapshot.matches("loading")) return { status: "loading" };
|
|
50
|
-
if (typedSnapshot.matches("awaitingOtp")) return {
|
|
51
|
-
status: "awaitingOtp",
|
|
52
|
-
resendTimer: context.resendTimer,
|
|
53
|
-
canResend: !context.resendTimerActive,
|
|
54
|
-
attemptsRemaining: context.attemptsRemaining,
|
|
55
|
-
otpError: context.otpError,
|
|
56
|
-
otpCode: context.otpCode,
|
|
57
|
-
otpLength: 6,
|
|
58
|
-
otpValidationErrors: context.otpValidationErrors,
|
|
59
|
-
isOtpValid: Object.keys(context.otpValidationErrors ?? {}).length === 0
|
|
60
|
-
};
|
|
61
|
-
if (typedSnapshot.matches("verifyingOtp")) return {
|
|
62
|
-
status: "verifyingOtp",
|
|
63
|
-
otpCode: context.otpCode,
|
|
64
|
-
otpLength: 6
|
|
65
|
-
};
|
|
66
|
-
if (typedSnapshot.matches("displaySuccess")) return { status: "displaySuccess" };
|
|
67
|
-
if (typedSnapshot.matches("displayProcessing")) return { status: "processing" };
|
|
68
|
-
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
69
|
-
if (typedSnapshot.matches("displayError")) return {
|
|
70
|
-
status: "error",
|
|
71
|
-
error: context.error ?? "An error occurred"
|
|
72
|
-
};
|
|
73
|
-
if (typedSnapshot.matches("displayUnknown")) return {
|
|
74
|
-
status: "unknown",
|
|
75
|
-
error: context.error ?? "Unknown validation status"
|
|
76
|
-
};
|
|
77
|
-
return { status: "idle" };
|
|
78
|
-
}
|
|
79
|
-
function createApi({ actor, trackElementClicked }) {
|
|
80
|
-
return {
|
|
81
|
-
load() {
|
|
82
|
-
actor.send({ type: "LOAD" });
|
|
83
|
-
},
|
|
84
|
-
setOtpCode(code) {
|
|
85
|
-
actor.send({
|
|
86
|
-
type: "OTP_CHANGED",
|
|
87
|
-
code
|
|
88
|
-
});
|
|
89
|
-
},
|
|
90
|
-
validateOtp() {
|
|
91
|
-
actor.send({ type: "VALIDATE_OTP" });
|
|
92
|
-
},
|
|
93
|
-
submitOtp(code) {
|
|
94
|
-
trackElementClicked?.("submitOtp");
|
|
95
|
-
actor.send({
|
|
96
|
-
type: "OTP_CHANGED",
|
|
97
|
-
code
|
|
98
|
-
});
|
|
99
|
-
actor.send({ type: "SUBMIT_OTP" });
|
|
100
|
-
},
|
|
101
|
-
resendOtp() {
|
|
102
|
-
trackElementClicked?.("resendOtp");
|
|
103
|
-
actor.send({ type: "RESEND_OTP" });
|
|
104
|
-
},
|
|
105
|
-
retry() {
|
|
106
|
-
trackElementClicked?.("retry");
|
|
107
|
-
actor.send({ type: "RETRY" });
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
function createGovernmentValidationManager(options) {
|
|
112
|
-
return createManager({
|
|
113
|
-
actor: createGovernmentValidationActor(options),
|
|
114
|
-
mapState,
|
|
115
|
-
createApi,
|
|
116
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.governmentValidation, { getEventScreenName: getGovernmentValidationScreenName })
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
120
|
-
export { createGovernmentValidationManager, governmentValidationMachine };
|
|
2
|
+
import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-DeF0Wcf5.esm.js";
|
|
3
|
+
export { createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
3
|
+
import "./Actor-iTq7YY48.js";
|
|
4
|
+
import { t as OtpValidationErrors } from "./otp-CEWfTj9v.js";
|
|
5
|
+
//#region src/modules/government-validation/types.d.ts
|
|
6
|
+
type GovernmentValidationConfig = {
|
|
7
|
+
validationCountries?: string[];
|
|
8
|
+
faceAndDataValidation?: boolean;
|
|
9
|
+
addressValidation?: boolean;
|
|
10
|
+
faceMatchOverrideDataScore?: boolean;
|
|
11
|
+
useCroppedIdFacePhoto?: boolean;
|
|
12
|
+
alternativeFacialValidation?: boolean;
|
|
13
|
+
fallbackEnabled?: boolean;
|
|
14
|
+
scrapingMethod?: boolean;
|
|
15
|
+
scrapingV2?: boolean;
|
|
16
|
+
scrapingV3?: boolean;
|
|
17
|
+
failUnsupportedId?: boolean;
|
|
18
|
+
mockConnectionError?: boolean;
|
|
19
|
+
mockUserNotFoundError?: boolean;
|
|
20
|
+
mockOK?: boolean;
|
|
21
|
+
facialValidation: boolean;
|
|
22
|
+
dataValidation: boolean;
|
|
23
|
+
backgroundExecution: boolean;
|
|
24
|
+
maxOtpAttempts?: number;
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/modules/government-validation/governmentValidationStateMachine.d.ts
|
|
28
|
+
declare const governmentValidationMachine: any;
|
|
29
|
+
type GovernmentValidationMachine = typeof governmentValidationMachine;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/modules/government-validation/governmentValidationActor.d.ts
|
|
32
|
+
type CreateGovernmentValidationActorOptions = {
|
|
33
|
+
config: GovernmentValidationConfig;
|
|
34
|
+
};
|
|
35
|
+
type GovernmentValidationActor = ActorRefFrom<GovernmentValidationMachine>;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/modules/government-validation/governmentValidationManager.d.ts
|
|
38
|
+
type GovernmentValidationIdleState = {
|
|
39
|
+
status: 'idle';
|
|
40
|
+
};
|
|
41
|
+
type GovernmentValidationLoadingState = {
|
|
42
|
+
status: 'loading';
|
|
43
|
+
};
|
|
44
|
+
type GovernmentValidationProcessingState = {
|
|
45
|
+
status: 'processing';
|
|
46
|
+
};
|
|
47
|
+
type GovernmentValidationAwaitingOtpState = {
|
|
48
|
+
status: 'awaitingOtp';
|
|
49
|
+
resendTimer: number;
|
|
50
|
+
canResend: boolean;
|
|
51
|
+
attemptsRemaining: number;
|
|
52
|
+
otpError?: string;
|
|
53
|
+
otpCode: string;
|
|
54
|
+
otpLength: number;
|
|
55
|
+
otpValidationErrors?: OtpValidationErrors;
|
|
56
|
+
isOtpValid: boolean;
|
|
57
|
+
};
|
|
58
|
+
type GovernmentValidationVerifyingOtpState = {
|
|
59
|
+
status: 'verifyingOtp';
|
|
60
|
+
otpCode: string;
|
|
61
|
+
otpLength: number;
|
|
62
|
+
};
|
|
63
|
+
type GovernmentValidationFinishedState = {
|
|
64
|
+
status: 'finished';
|
|
65
|
+
};
|
|
66
|
+
type GovernmentValidationErrorState = {
|
|
67
|
+
status: 'error';
|
|
68
|
+
error: string;
|
|
69
|
+
};
|
|
70
|
+
type GovernmentValidationSuccessState = {
|
|
71
|
+
status: 'displaySuccess';
|
|
72
|
+
};
|
|
73
|
+
type GovernmentValidationUnknownState = {
|
|
74
|
+
status: 'unknown';
|
|
75
|
+
error: string;
|
|
76
|
+
};
|
|
77
|
+
type GovernmentValidationState = GovernmentValidationIdleState | GovernmentValidationLoadingState | GovernmentValidationProcessingState | GovernmentValidationAwaitingOtpState | GovernmentValidationVerifyingOtpState | GovernmentValidationFinishedState | GovernmentValidationErrorState | GovernmentValidationSuccessState | GovernmentValidationUnknownState;
|
|
78
|
+
declare function createGovernmentValidationManager(options: CreateGovernmentValidationActorOptions): Manager<GovernmentValidationState> & {
|
|
79
|
+
load(): void;
|
|
80
|
+
setOtpCode(code: string): void;
|
|
81
|
+
validateOtp(): void;
|
|
82
|
+
submitOtp(code: string): void;
|
|
83
|
+
resendOtp(): void;
|
|
84
|
+
retry(): void;
|
|
85
|
+
};
|
|
86
|
+
declare function createGovernmentValidationManagerFromActor(actor: GovernmentValidationActor): Manager<GovernmentValidationState> & {
|
|
87
|
+
load(): void;
|
|
88
|
+
setOtpCode(code: string): void;
|
|
89
|
+
validateOtp(): void;
|
|
90
|
+
submitOtp(code: string): void;
|
|
91
|
+
resendOtp(): void;
|
|
92
|
+
retry(): void;
|
|
93
|
+
};
|
|
94
|
+
type GovernmentValidationManager = ReturnType<typeof createGovernmentValidationManager>;
|
|
95
|
+
//#endregion
|
|
96
|
+
export { GovernmentValidationActor as a, createGovernmentValidationManagerFromActor as i, GovernmentValidationState as n, governmentValidationMachine as o, createGovernmentValidationManager as r, GovernmentValidationConfig as s, GovernmentValidationManager as t };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
|
|
2
|
+
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
+
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BYKYUdza.esm.js";
|
|
5
|
+
//#region src/modules/government-validation/governmentValidationActor.ts
|
|
6
|
+
function createGovernmentValidationActor(options) {
|
|
7
|
+
return createActor(governmentValidationMachine, { input: { config: options.config } }).start();
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/modules/government-validation/governmentValidationManager.ts
|
|
11
|
+
/**
|
|
12
|
+
* Maps a Government Validation state-machine snapshot to the exact Figma
|
|
13
|
+
* "Tracked Events" screen name. Source: Government Record Verification
|
|
14
|
+
* Figma file (`https://www.figma.com/design/5J4kaLMl19s8cLyRMUMW32/Government-Record-Verification---Latest-Design?node-id=25911-4095`).
|
|
15
|
+
* Family is `GovernmentRecordValidation.*` (PascalCase verbatim from
|
|
16
|
+
* Figma); spans the background record-lookup flow only. The mapper returns
|
|
17
|
+
* Figma-verbatim spellings which the adapter emits as-is on `event.screen`
|
|
18
|
+
* (e.g. `GovernmentRecordValidation.analyzing.default`). See
|
|
19
|
+
* `docs/patterns/INSTRUMENTATION.md`.
|
|
20
|
+
*
|
|
21
|
+
* Figma sub-states the state machine does not surface as discrete states
|
|
22
|
+
* (intentionally not mapped here):
|
|
23
|
+
*
|
|
24
|
+
* - The OTP sub-flow (`awaitingOtp`, `verifyingOtp`) is the
|
|
25
|
+
* INE_VALIDATION variant. Figma does not define screens for it under
|
|
26
|
+
* this family; those states fall back to the generic
|
|
27
|
+
* `<module>.<state>` default.
|
|
28
|
+
* - `displayUnknown` reflects an unrecognised API status code. Figma does
|
|
29
|
+
* not define a tracked-event surface for it.
|
|
30
|
+
*
|
|
31
|
+
* `idle` and `finished` are intentionally unmapped — Figma does not
|
|
32
|
+
* define screens for them and `finished` collapses into `moduleClosed`.
|
|
33
|
+
*/
|
|
34
|
+
function getGovernmentValidationScreenName(snapshot) {
|
|
35
|
+
const stateName = topLevelStateName(snapshot.value);
|
|
36
|
+
if (stateName === void 0) return void 0;
|
|
37
|
+
switch (stateName) {
|
|
38
|
+
case "loading":
|
|
39
|
+
case "displayProcessing": return "GovernmentRecordValidation.analyzing.default";
|
|
40
|
+
case "displaySuccess": return "GovernmentRecordValidation.success.default";
|
|
41
|
+
case "displayError": return "GovernmentRecordValidation.error.usernotfound";
|
|
42
|
+
default: return;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function mapState(snapshot) {
|
|
46
|
+
const typedSnapshot = snapshot;
|
|
47
|
+
const { context } = typedSnapshot;
|
|
48
|
+
if (typedSnapshot.matches("idle")) return { status: "idle" };
|
|
49
|
+
if (typedSnapshot.matches("loading")) return { status: "loading" };
|
|
50
|
+
if (typedSnapshot.matches("awaitingOtp")) return {
|
|
51
|
+
status: "awaitingOtp",
|
|
52
|
+
resendTimer: context.resendTimer,
|
|
53
|
+
canResend: !context.resendTimerActive,
|
|
54
|
+
attemptsRemaining: context.attemptsRemaining,
|
|
55
|
+
otpError: context.otpError,
|
|
56
|
+
otpCode: context.otpCode,
|
|
57
|
+
otpLength: 6,
|
|
58
|
+
otpValidationErrors: context.otpValidationErrors,
|
|
59
|
+
isOtpValid: Object.keys(context.otpValidationErrors ?? {}).length === 0
|
|
60
|
+
};
|
|
61
|
+
if (typedSnapshot.matches("verifyingOtp")) return {
|
|
62
|
+
status: "verifyingOtp",
|
|
63
|
+
otpCode: context.otpCode,
|
|
64
|
+
otpLength: 6
|
|
65
|
+
};
|
|
66
|
+
if (typedSnapshot.matches("displaySuccess")) return { status: "displaySuccess" };
|
|
67
|
+
if (typedSnapshot.matches("displayProcessing")) return { status: "processing" };
|
|
68
|
+
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
69
|
+
if (typedSnapshot.matches("displayError")) return {
|
|
70
|
+
status: "error",
|
|
71
|
+
error: context.error ?? "An error occurred"
|
|
72
|
+
};
|
|
73
|
+
if (typedSnapshot.matches("displayUnknown")) return {
|
|
74
|
+
status: "unknown",
|
|
75
|
+
error: context.error ?? "Unknown validation status"
|
|
76
|
+
};
|
|
77
|
+
return { status: "idle" };
|
|
78
|
+
}
|
|
79
|
+
function createApi({ actor, trackElementClicked }) {
|
|
80
|
+
return {
|
|
81
|
+
load() {
|
|
82
|
+
actor.send({ type: "LOAD" });
|
|
83
|
+
},
|
|
84
|
+
setOtpCode(code) {
|
|
85
|
+
actor.send({
|
|
86
|
+
type: "OTP_CHANGED",
|
|
87
|
+
code
|
|
88
|
+
});
|
|
89
|
+
},
|
|
90
|
+
validateOtp() {
|
|
91
|
+
actor.send({ type: "VALIDATE_OTP" });
|
|
92
|
+
},
|
|
93
|
+
submitOtp(code) {
|
|
94
|
+
trackElementClicked?.("submitOtp");
|
|
95
|
+
actor.send({
|
|
96
|
+
type: "OTP_CHANGED",
|
|
97
|
+
code
|
|
98
|
+
});
|
|
99
|
+
actor.send({ type: "SUBMIT_OTP" });
|
|
100
|
+
},
|
|
101
|
+
resendOtp() {
|
|
102
|
+
trackElementClicked?.("resendOtp");
|
|
103
|
+
actor.send({ type: "RESEND_OTP" });
|
|
104
|
+
},
|
|
105
|
+
retry() {
|
|
106
|
+
trackElementClicked?.("retry");
|
|
107
|
+
actor.send({ type: "RETRY" });
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function createGovernmentValidationManager(options) {
|
|
112
|
+
return createGovernmentValidationManagerFromActor(createGovernmentValidationActor(options));
|
|
113
|
+
}
|
|
114
|
+
function createGovernmentValidationManagerFromActor(actor) {
|
|
115
|
+
return createManager({
|
|
116
|
+
actor,
|
|
117
|
+
mapState,
|
|
118
|
+
createApi,
|
|
119
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.governmentValidation, { getEventScreenName: getGovernmentValidationScreenName })
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
export { createGovernmentValidationManagerFromActor as n, createGovernmentValidationManager as t };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-GQkY_66u.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-
|
|
4
|
+
import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-j7UZkYFu.esm.js";
|
|
5
5
|
import { c as createManager, n as sendTo, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
|
-
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
7
|
+
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-wU4uSbN-.esm.js";
|
|
8
8
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
9
9
|
import { a as uploadSelfie, r as processFace } from "./selfieErrorUtils-ArUCoICg.esm.js";
|
|
10
10
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
11
11
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-WeHbQM7W.esm.js";
|
|
12
|
-
import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-
|
|
13
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
14
|
-
import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-
|
|
12
|
+
import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-wlaNQ3ib.esm.js";
|
|
13
|
+
import { n as getFinishStatus } from "./flowCompletionService-B3suP9s_.esm.js";
|
|
14
|
+
import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-CVFHbQua.esm.js";
|
|
15
15
|
//#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
|
|
16
16
|
/** Default autocapture window for the selfie step. */
|
|
17
17
|
const SELFIE_AUTOCAPTURE_MS = 1e4;
|
package/dist/id.esm.js
CHANGED
|
@@ -2,9 +2,9 @@ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.e
|
|
|
2
2
|
import { n as eventModuleNames } from "./events-CxfNJVZW.esm.js";
|
|
3
3
|
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
-
import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
6
|
-
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
7
|
-
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-
|
|
5
|
+
import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-C6711mJz.esm.js";
|
|
6
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-CWmt6dp7.esm.js";
|
|
7
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-wlaNQ3ib.esm.js";
|
|
8
8
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-1m1VJ3Q4.esm.js";
|
|
9
9
|
//#region src/modules/id/idCaptureOnlyStateMachine.ts
|
|
10
10
|
function buildSubImage(canvas) {
|
|
@@ -5,8 +5,8 @@ import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.
|
|
|
5
5
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BqUCwLY8.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BX1BiLDK.esm.js";
|
|
7
7
|
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-B7sMtZ8f.esm.js";
|
|
8
|
-
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
9
|
-
import { m as resolveIdCaptureThresholds, p as resolveCaptureResultPreviewTreatment } from "./idCaptureServices-
|
|
8
|
+
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-C6711mJz.esm.js";
|
|
9
|
+
import { m as resolveIdCaptureThresholds, p as resolveCaptureResultPreviewTreatment } from "./idCaptureServices-wlaNQ3ib.esm.js";
|
|
10
10
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
11
11
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
12
12
|
function isHoldingState(value) {
|
|
@@ -2,10 +2,10 @@ import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as
|
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
4
4
|
import { i as isDesktop } from "./platform-Q4r1nvWX.esm.js";
|
|
5
|
-
import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-
|
|
5
|
+
import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-wU4uSbN-.esm.js";
|
|
6
6
|
import { n as getBackCameraStream } from "./backCameraStream-BMGalshK.esm.js";
|
|
7
7
|
import { t as getDeviceClass } from "./getDeviceClass-Sh0zhEv7.esm.js";
|
|
8
|
-
import { n as preloadOpenViduProvider } from "./recordingService-
|
|
8
|
+
import { n as preloadOpenViduProvider } from "./recordingService-CyT_8BPw.esm.js";
|
|
9
9
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-WeHbQM7W.esm.js";
|
|
10
10
|
//#region src/modules/id/idCameraStream.ts
|
|
11
11
|
async function getIdCameraStream(deviceId) {
|
package/dist/{idCaptureStateMachine-CfPaYLOP.esm.js → idCaptureStateMachine-C6711mJz.esm.js}
RENAMED
|
@@ -2,17 +2,17 @@ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.j
|
|
|
2
2
|
import { s as exposeExperimentOnce } from "./feature-management-DS_Nj5Gg.esm.js";
|
|
3
3
|
import { n as revokeObjectURL } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
4
4
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
5
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-Bf7-wYag.esm.js";
|
|
6
6
|
import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-CxfNJVZW.esm.js";
|
|
7
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
8
|
-
import "./trueSight-
|
|
7
|
+
import { t as getDisableIpify } from "./sessionInitializer-DAr2DSlY.esm.js";
|
|
8
|
+
import "./trueSight-XzLKY-t_.esm.js";
|
|
9
9
|
import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
10
10
|
import { t as isAndroid } from "./platform-Q4r1nvWX.esm.js";
|
|
11
|
-
import "./session-
|
|
11
|
+
import "./session-qR0DAVjz.esm.js";
|
|
12
12
|
import { a as and, n as sendTo, r as assign, s as not, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
13
13
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
14
14
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-B7sMtZ8f.esm.js";
|
|
15
|
-
import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-
|
|
15
|
+
import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-wU4uSbN-.esm.js";
|
|
16
16
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
17
17
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
18
18
|
import { t as getBrowser } from "./getBrowser-DNrQeL4T.esm.js";
|
|
@@ -20,7 +20,7 @@ import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
|
20
20
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
21
21
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-D2OgV9XX.esm.js";
|
|
22
22
|
import { r as flagIdManualReview, t as imageFileToDataUrl } from "./imageFile-DutiOU7n.esm.js";
|
|
23
|
-
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as getIdCameraStream, h as CAPTURE_RESULT_PREVIEW, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-
|
|
23
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as getIdCameraStream, h as CAPTURE_RESULT_PREVIEW, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-wlaNQ3ib.esm.js";
|
|
24
24
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
25
25
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
26
26
|
function isKnownFailReason(reason) {
|
|
@@ -1284,7 +1284,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
1284
1284
|
});
|
|
1285
1285
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
1286
1286
|
if (!input.dependencies) return;
|
|
1287
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1287
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-CxhndUYz.esm.js");
|
|
1288
1288
|
return loadDeepsightSession({
|
|
1289
1289
|
ds: input.ds,
|
|
1290
1290
|
storage: input.dependencies.storage,
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as reset, o as setup, r as isConfigured } from "./setup-
|
|
1
|
+
import { i as reset, o as setup, r as isConfigured } from "./setup-GQkY_66u.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|