@incodetech/core 0.0.0-dev-20261030-25da0fd5 → 0.0.0-dev-20261030-3cc525ea
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/{FaceDetectionProvider-IQUzWgoQ.esm.js → FaceDetectionProvider-D-oC0nrr.esm.js} +8 -8
- package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-yoXb-Uyb.esm.js → apiError-Cstx0HCp.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BOasUkUz.esm.js → authenticationManager-BBSS7Pth.esm.js} +3 -3
- package/dist/{authenticationStateMachine-BrNJAQqh.esm.js → authenticationStateMachine-C3tQvmvy.esm.js} +3 -3
- package/dist/{backCameraStream-DkOFEXvI.esm.js → backCameraStream-C5_NNfUN.esm.js} +1 -1
- package/dist/camera.esm.js +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-DXetSxcx.d.ts → consentManager-sjhjBNVr.d.ts} +1 -1
- package/dist/{deepsightLoader-B1XqVJWL.esm.js → deepsightLoader-CIH9QzTa.esm.js} +4 -4
- package/dist/{deepsightService-BAkzK3Nb.esm.js → deepsightService-BgT5mkK0.esm.js} +1 -1
- package/dist/{desktopCameraElection-NmoOMLSk.esm.js → desktopCameraElection-Cxs3SIBQ.esm.js} +3 -3
- package/dist/device.esm.js +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DWLtB2Dk.esm.js → documentCaptureManager-Z-FgBzHi.esm.js} +1 -1
- package/dist/{documentCaptureStateMachine-d5Vt5_Re.esm.js → documentCaptureStateMachine-BkZKM3yW.esm.js} +3 -3
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-74zdG2yy.esm.js → dynamicFormsManager-UdNVZUQb.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-OwsSxFVw.esm.js → dynamicFormsStateMachine-BxwVgdPS.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BMDJEcSv.esm.js → ekybManager-CeSJFT4O.esm.js} +1 -1
- package/dist/{ekybStateMachine-D91Zp08D.esm.js → ekybStateMachine-s6rtlqoX.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-CScqZVks.esm.js → electronicSignatureManager-lG4ZMi40.esm.js} +1 -1
- package/dist/extensibility.d.ts +6 -6
- package/dist/extensibility.esm.js +12 -12
- package/dist/{faceCaptureManagerFactory-B7vE9xhl.esm.js → faceCaptureManagerFactory-BhQfhyYF.esm.js} +2 -2
- package/dist/{faceCaptureSetup-CRsR2ivT.esm.js → faceCaptureSetup-Bob4XZ38.esm.js} +9 -9
- package/dist/{feature-management-C80dfJAV.esm.js → feature-management-DvaOIWTd.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-DuzweTAa.esm.js → fiscalQrManager-Be-r4oZj.esm.js} +1 -1
- package/dist/flow.d.ts +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-BHubOkN6.esm.js → flowCompletionService-BEn4f62h.esm.js} +1 -1
- package/dist/{flowServices-BlPwlfi9.esm.js → flowServices-D09TmdRL.esm.js} +4 -4
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CpIjrPEG.d.ts → geolocationManager-6e1i9UIR.d.ts} +1 -9
- package/dist/{geolocationManager-f-X3Smp2.esm.js → geolocationManager-DQUzZn78.esm.js} +1 -1
- package/dist/{geolocationStateMachine-QWnkiGR7.esm.js → geolocationStateMachine-Cn2ZVep0.esm.js} +2 -2
- package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +7 -7
- package/dist/id.d.ts +3 -16
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-De6sKqvE.esm.js → idCaptureManager-BuFK87IL.esm.js} +56 -9
- package/dist/{idCaptureManager-ffxqF7Ph.d.ts → idCaptureManager-DzTfQ1Am.d.ts} +49 -2
- package/dist/{idCaptureServices-CgwL0K-i.esm.js → idCaptureServices-oTJduxMD.esm.js} +7 -7
- package/dist/{idCaptureStateMachine-B3450XQ6.esm.js → idCaptureStateMachine-B-4DGyLc.esm.js} +2771 -2491
- package/dist/{idOcrManager-BTdHlJ9D.d.ts → idOcrManager-DT3kPIB3.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-DJC0IyqV.d.ts → mandatoryConsentManager-DXLb7wjM.d.ts} +1 -1
- package/dist/{multipartRecordingService-BwyB15vd.esm.js → multipartRecordingService-DMBxHKS2.esm.js} +1 -1
- package/dist/{permissionGuards-IByIZJGX.esm.js → permissionGuards-Dck-ZReK.esm.js} +1 -1
- package/dist/{permissionServices-Ca4Uhdb-.esm.js → permissionServices-CJSZshmj.esm.js} +2 -2
- package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-BHNhaELD.esm.js → runChildModule-C6I8AEeH.esm.js} +1 -1
- package/dist/{sdkVersion-DsYK-iZ4.esm.js → sdkVersion-BuDwQDHZ.esm.js} +1 -1
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-DNoYoTIf.esm.js → selfieErrorUtils-CXUdNpVH.esm.js} +1 -1
- package/dist/{selfieManager-B8LUutGU.esm.js → selfieManager-D4HZjS2e.esm.js} +3 -3
- package/dist/{selfieStateMachine-BABRmBWk.esm.js → selfieStateMachine-Dy3awst5.esm.js} +3 -3
- package/dist/{session-CdCJ2dJi.esm.js → session-CrrKm9kK.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CWj60x1d.esm.js → sessionInitializer-C5QWEuMW.esm.js} +4 -4
- package/dist/{setup-DsyIImNv.esm.js → setup-cM510hqp.esm.js} +4 -4
- package/dist/{trueSightService-CKxjX0fA.esm.js → trueSightService-Cp-DdiFI.esm.js} +1 -1
- package/dist/{types-Dcf7-Mf8.d.ts → types-xEEWCx1j.d.ts} +118 -43
- package/dist/video-selfie.esm.js +4 -4
- package/dist/{videoSelfieCameraWarmer-Duo73E7c.esm.js → videoSelfieCameraWarmer-CCLcOlqZ.esm.js} +6 -6
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.esm.js +15 -15
- package/package.json +3 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-cM510hqp.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DZOGC2HE.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-
|
|
4
|
+
import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-D09TmdRL.esm.js";
|
|
5
5
|
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
7
|
-
import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
8
|
-
import { o as StreamCanvasProcessingSession, r as CameraCompositor } from "./multipartRecordingService-
|
|
7
|
+
import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-D-oC0nrr.esm.js";
|
|
8
|
+
import { o as StreamCanvasProcessingSession, r as CameraCompositor } from "./multipartRecordingService-DMBxHKS2.esm.js";
|
|
9
9
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
10
10
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BOIM1God.esm.js";
|
|
11
|
-
import { _ as ID_ERROR_CODES, g as validateUploadResponse, h as uploadIdImage, u as processId } from "./idCaptureServices-
|
|
11
|
+
import { _ as ID_ERROR_CODES, g as validateUploadResponse, h as uploadIdImage, u as processId } from "./idCaptureServices-oTJduxMD.esm.js";
|
|
12
12
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
13
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
14
|
-
import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-
|
|
13
|
+
import { n as getFinishStatus } from "./flowCompletionService-BEn4f62h.esm.js";
|
|
14
|
+
import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-CCLcOlqZ.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.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
2
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
3
|
-
import { A as
|
|
3
|
+
import { A as addBarcode, B as resumeRecordingAfterPause, C as AddBarcodeParams, D as StartRecordingParams, E as InitializeIdCaptureParams, F as initializeIdCapture, G as validateUploadResponse, H as stopRecording, I as isSuspendableRecordingSession, L as pauseRecordingForAttempt, M as disposeRecordingSession, N as finalizeRecordingSession, O as UploadIdImageParams, P as getRealQualityValue, R as prepareRecordingForCameraRetry, S as idCaptureMachine, T as IdCaptureInitResult, U as stopStream, V as startRecordingSession, W as uploadIdImage, _ as idCaptureOnlyMachine, a as RenderWalletError, b as createIdCaptureActor, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as resolveWalletPlatform, g as IdCaptureOnlyMachine, h as createIdCaptureOnlyActor, j as barcodeToBase64, k as ValidationError, l as DeviceWalletState, m as IdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as CreateIdCaptureOnlyActorOptions, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as CreateIdCaptureActorOptions, w as FinalizedIdRecording, x as IdCaptureMachine, y as IdCaptureActor, z as processId } from "./idCaptureManager-DzTfQ1Am.js";
|
|
4
4
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
5
5
|
import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
|
|
6
|
-
import { A as
|
|
6
|
+
import { A as DigitalIdCountryDetectionDependencies, B as DeviceWalletDecryptResponse, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DigitalIdPlatformSupport, H as DeviceWalletOutput, I as ResolvedDigitalIdRoute, J as RedirectReturnParams, K as DigitalIdProviderId, L as isRedirectFlowType, M as DIGITAL_ID_REGISTRY, N as DigitalIdDocumentType, O as UploadIdResponse, P as DigitalIdFunnelEntry, R as resolveDigitalIdImplementation, S as IdCaptureThresholds, T as IdError, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DIGITAL_ID_DOCUMENT_TYPES, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-xEEWCx1j.js";
|
|
7
7
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
|
@@ -15,19 +15,6 @@ declare const DEVICE_WALLET_ERROR_KEYS: {
|
|
|
15
15
|
readonly WALLET_ERROR: "idv2.deviceWallet.errorDescription";
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
|
-
//#region src/modules/id/deviceWallet/deviceWalletPlatform.d.ts
|
|
19
|
-
/**
|
|
20
|
-
* Maps an explicit provider override or the current user agent to the wallet
|
|
21
|
-
* platform (ported from V1 `resolveWalletPlatform`, minus the Credentials API
|
|
22
|
-
* capability check — that lives on `IDigitalCredentialsCapability.isAvailable()`
|
|
23
|
-
* and is consulted by the digital-ID funnel before this module is invoked).
|
|
24
|
-
*
|
|
25
|
-
* Auto-detection: iOS/iPadOS and macOS Safari → Apple Wallet (web); Android
|
|
26
|
-
* and every other desktop/unknown browser (incl. macOS Chrome) → Google
|
|
27
|
-
* Wallet, which is the only wallet reachable there.
|
|
28
|
-
*/
|
|
29
|
-
declare function resolveWalletPlatform(provider?: DeviceWalletProvider): DeviceWalletPlatform;
|
|
30
|
-
//#endregion
|
|
31
18
|
//#region src/modules/id/idCaptureOnlyManager.d.ts
|
|
32
19
|
type IdCaptureOnlyManager = IdCaptureManager;
|
|
33
20
|
/**
|
|
@@ -47,4 +34,4 @@ declare function createIdCaptureOnlyManagerFromActor(actor: IdCaptureOnlyActor,
|
|
|
47
34
|
*/
|
|
48
35
|
declare function createIdCaptureOnlyManager(options: CreateIdCaptureOnlyActorOptions): IdCaptureOnlyManager;
|
|
49
36
|
//#endregion
|
|
50
|
-
export { AcceptedDocument, AcceptedDocumentType, AddBarcodeParams, AddBarcodeV3Response, type CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, type CreateDeviceWalletActorOptions, type CreateIdCaptureActorOptions, type CreateIdCaptureOnlyActorOptions, DEVICE_WALLET_ERROR_KEYS, DIGITAL_ID_DOCUMENT_TYPES, DIGITAL_ID_REGISTRY, DetectionArea, type DetectionOrientation, DetectionStatus, type DeviceWalletDecision, type DeviceWalletDecryptResponse, type DeviceWalletFailReason, type DeviceWalletManager, type DeviceWalletOutput, type DeviceWalletPlatform, type DeviceWalletProvider, type DeviceWalletState, type DigitalIdDocumentType, type DigitalIdFunnelEntry, type DigitalIdPlatformSupport, type DigitalIdProviderId, FinalizedIdRecording, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureDigitalIdFlowType, IdCaptureDigitalIdMethod, IdCaptureDigitalIdRedirectOption, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, type IdCaptureMachine, type IdCaptureManager, IdCaptureMode, type IdCaptureOnlyActor, IdCaptureOnlyConfig, type IdCaptureOnlyMachine, type IdCaptureOnlyManager, IdCaptureOutput, type IdCaptureSettings, type IdCaptureState, IdCaptureThresholds, IdCapturedImageData, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, type PermissionResult, type PermissionStatus, type RedirectReturnParams, type RenderWalletError, type RenderWalletParams, type ResolvedDigitalIdRoute, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, addBarcode, barcodeToBase64, createDeviceWalletManager, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, disposeRecordingSession, finalizeRecordingSession, getRealQualityValue, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, isRedirectFlowType, isSuspendableRecordingSession, pauseRecordingForAttempt, prepareRecordingForCameraRetry, processId, renderWallet, resolveDigitalIdImplementation, resolveWalletPlatform, resumeRecordingAfterPause, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
|
37
|
+
export { AcceptedDocument, AcceptedDocumentType, AddBarcodeParams, AddBarcodeV3Response, type CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, type CreateDeviceWalletActorOptions, type CreateIdCaptureActorOptions, type CreateIdCaptureOnlyActorOptions, DEVICE_WALLET_ERROR_KEYS, DIGITAL_ID_DOCUMENT_TYPES, DIGITAL_ID_REGISTRY, DetectionArea, type DetectionOrientation, DetectionStatus, type DeviceWalletDecision, type DeviceWalletDecryptResponse, type DeviceWalletFailReason, type DeviceWalletManager, type DeviceWalletOutput, type DeviceWalletPlatform, type DeviceWalletProvider, type DeviceWalletState, type DigitalIdCountryDetectionDependencies, type DigitalIdDocumentType, type DigitalIdFunnelEntry, type DigitalIdPlatformSupport, type DigitalIdProviderId, FinalizedIdRecording, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureDigitalIdFlowType, IdCaptureDigitalIdMethod, IdCaptureDigitalIdRedirectOption, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, type IdCaptureMachine, type IdCaptureManager, IdCaptureMode, type IdCaptureOnlyActor, IdCaptureOnlyConfig, type IdCaptureOnlyMachine, type IdCaptureOnlyManager, IdCaptureOutput, type IdCaptureSettings, type IdCaptureState, IdCaptureThresholds, IdCapturedImageData, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, type PermissionResult, type PermissionStatus, type RedirectReturnParams, type RenderWalletError, type RenderWalletParams, type ResolvedDigitalIdRoute, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, addBarcode, barcodeToBase64, createDeviceWalletManager, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, disposeRecordingSession, finalizeRecordingSession, getRealQualityValue, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, isRedirectFlowType, isSuspendableRecordingSession, pauseRecordingForAttempt, prepareRecordingForCameraRetry, processId, renderWallet, resolveDigitalIdImplementation, resolveWalletPlatform, resumeRecordingAfterPause, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
package/dist/id.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
3
|
-
import { _ as ID_ERROR_CODES, a as getRealQualityValue, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId } from "./idCaptureServices-
|
|
1
|
+
import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine-B-4DGyLc.esm.js";
|
|
2
|
+
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-BuFK87IL.esm.js";
|
|
3
|
+
import { _ as ID_ERROR_CODES, a as getRealQualityValue, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId } from "./idCaptureServices-oTJduxMD.esm.js";
|
|
4
4
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.ts
|
|
5
5
|
/**
|
|
6
6
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-cM510hqp.esm.js";
|
|
2
2
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
|
|
3
|
+
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
3
4
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
5
|
import { i as assign, s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
6
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
7
|
import { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
|
|
7
8
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-Ck2Lt6OY.esm.js";
|
|
8
9
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
9
|
-
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
10
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
11
|
-
import { _ as mapDeviceWalletScreenName,
|
|
12
|
-
import { _ as ID_ERROR_CODES, b as resolveIdCaptureThresholds, v as resolveCaptureOptimizingTreatment, y as resolveCountdownStepMs } from "./idCaptureServices-
|
|
10
|
+
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-CJSZshmj.esm.js";
|
|
11
|
+
import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
|
|
12
|
+
import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-B-4DGyLc.esm.js";
|
|
13
|
+
import { _ as ID_ERROR_CODES, b as resolveIdCaptureThresholds, v as resolveCaptureOptimizingTreatment, y as resolveCountdownStepMs } from "./idCaptureServices-oTJduxMD.esm.js";
|
|
13
14
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-CXIBwBeE.esm.js";
|
|
14
15
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
15
16
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
@@ -343,13 +344,16 @@ function mapDeviceWalletState(snapshot) {
|
|
|
343
344
|
}
|
|
344
345
|
function mapState(snapshot, presentationStream) {
|
|
345
346
|
const { context } = snapshot;
|
|
346
|
-
if (snapshot.matches("idle")) return { status: "idle" };
|
|
347
|
+
if (snapshot.matches("idle") || snapshot.matches("detectingCountry")) return { status: "idle" };
|
|
347
348
|
const loadingPhase = getLoadingPhase(snapshot);
|
|
348
349
|
if (loadingPhase) return mapLoadingState(snapshot, loadingPhase);
|
|
349
350
|
if (snapshot.matches("chooser")) return {
|
|
350
351
|
status: "chooser",
|
|
351
352
|
availableDocumentTypes: context.availableDocumentTypes,
|
|
352
|
-
digitalIdRedirectOptions: context.digitalIdRedirectOptions
|
|
353
|
+
digitalIdRedirectOptions: context.digitalIdRedirectOptions,
|
|
354
|
+
country: context.detectedCountries?.[0],
|
|
355
|
+
countryRanked: context.detectedCountries !== void 0,
|
|
356
|
+
walletDevice: context.walletDevice
|
|
353
357
|
};
|
|
354
358
|
if (snapshot.matches("loading")) return mapLoadingState(snapshot, "bootstrapping");
|
|
355
359
|
if (snapshot.matches("tutorial")) return mapTutorialState(snapshot, context);
|
|
@@ -421,6 +425,19 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
421
425
|
providerId: options?.providerId
|
|
422
426
|
});
|
|
423
427
|
},
|
|
428
|
+
/**
|
|
429
|
+
* On the chooser: re-ranks `digitalIdRedirectOptions` for the given ISO
|
|
430
|
+
* alpha-2 country (the "Viewing options for" picker). Only reorders —
|
|
431
|
+
* every option stays available. Ignored outside the chooser and for an
|
|
432
|
+
* invalid code.
|
|
433
|
+
*/
|
|
434
|
+
setChooserCountry(country) {
|
|
435
|
+
trackElementClicked?.("setChooserCountry");
|
|
436
|
+
actor.send({
|
|
437
|
+
type: "SET_CHOOSER_COUNTRY",
|
|
438
|
+
country
|
|
439
|
+
});
|
|
440
|
+
},
|
|
424
441
|
async nextStep() {
|
|
425
442
|
trackElementClicked?.("nextStep");
|
|
426
443
|
const snapshot = actor.getSnapshot();
|
|
@@ -704,7 +721,8 @@ function getIdCaptureTrackedName(snapshot) {
|
|
|
704
721
|
const side = context.currentMode;
|
|
705
722
|
const screens = getSideScreens(side);
|
|
706
723
|
switch (topLevel) {
|
|
707
|
-
case "idle":
|
|
724
|
+
case "idle":
|
|
725
|
+
case "detectingCountry": return "idCapture.loader.default";
|
|
708
726
|
case "chooser": return "idCapture.documentchooser";
|
|
709
727
|
case "loading": return "idCapture.loader.default";
|
|
710
728
|
case "tutorial": return screens.tutorial;
|
|
@@ -861,12 +879,41 @@ function createIdCaptureManagerFromActor(actor, visibilityObserver = new Browser
|
|
|
861
879
|
});
|
|
862
880
|
}
|
|
863
881
|
//#endregion
|
|
882
|
+
//#region ../infra/src/providers/browser/BrowserLocaleProvider.ts
|
|
883
|
+
var BrowserLocaleProvider = class {
|
|
884
|
+
getPreferredLanguages() {
|
|
885
|
+
if (typeof navigator === "undefined") return [];
|
|
886
|
+
if (Array.isArray(navigator.languages) && navigator.languages.length > 0) return navigator.languages;
|
|
887
|
+
return navigator.language ? [navigator.language] : [];
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
//#endregion
|
|
891
|
+
//#region src/modules/id/digitalIdCountryServices.ts
|
|
892
|
+
/**
|
|
893
|
+
* The country of the session's IP, as the backend resolves it (MaxMind) on
|
|
894
|
+
* `GET /omni/start-info`. First-party: the lookup runs server-side on the
|
|
895
|
+
* request IP, so no IP leaves the device and `setup({ ipLookup: false })`
|
|
896
|
+
* (which gates the third-party ipify call) does not apply. `undefined` when
|
|
897
|
+
* the backend cannot place the IP.
|
|
898
|
+
*/
|
|
899
|
+
async function fetchIpCountry(signal) {
|
|
900
|
+
const res = await api.get(endpoints.startInfo, { signal });
|
|
901
|
+
if (!res.ok) throw new Error(`GET ${endpoints.startInfo} failed: ${res.status} ${res.statusText}`);
|
|
902
|
+
return res.data?.ipIsoCode ?? void 0;
|
|
903
|
+
}
|
|
904
|
+
//#endregion
|
|
864
905
|
//#region src/modules/id/idCaptureActor.ts
|
|
865
906
|
function createIdCaptureActor(options) {
|
|
907
|
+
const countryDetection = options.dependencies?.countryDetection;
|
|
866
908
|
const dependencies = {
|
|
867
909
|
...options.dependencies,
|
|
868
910
|
storage: options.dependencies?.storage ?? new BrowserStorageProvider(),
|
|
869
|
-
credentials: options.dependencies?.credentials ?? new BrowserDigitalCredentialsProvider()
|
|
911
|
+
credentials: options.dependencies?.credentials ?? new BrowserDigitalCredentialsProvider(),
|
|
912
|
+
countryDetection: {
|
|
913
|
+
...countryDetection,
|
|
914
|
+
ipCountry: countryDetection?.ipCountry ?? fetchIpCountry,
|
|
915
|
+
locale: countryDetection?.locale ?? new BrowserLocaleProvider()
|
|
916
|
+
}
|
|
870
917
|
};
|
|
871
918
|
const treatment = resolveCaptureOptimizingTreatment(options.config);
|
|
872
919
|
const config = {
|
|
@@ -11,7 +11,7 @@ import { t as BaseWasmProvider } from "./BaseWasmProvider-Bq3OHo7P.js";
|
|
|
11
11
|
import { n as DeepsightService } from "./StreamCanvasCapture-C3xNfOsv.js";
|
|
12
12
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
13
13
|
import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
|
|
14
|
-
import {
|
|
14
|
+
import { B as DeviceWalletDecryptResponse, E as IdErrorCode, G as DeviceWalletServices, K as DigitalIdProviderId, O as UploadIdResponse, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, Y as IDigitalCredentialsCapability, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, k as IAnalyticsCapability, q as FailureReason, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-xEEWCx1j.js";
|
|
15
15
|
//#region src/internal/http/endpoints.d.ts
|
|
16
16
|
/**
|
|
17
17
|
* Backend `CaptureType` for the `captureType` query param on `add/front-id`,
|
|
@@ -242,6 +242,19 @@ declare function createIdCaptureOnlyActor(options: CreateIdCaptureOnlyActorOptio
|
|
|
242
242
|
//#region src/modules/id/digitalUpload/types.d.ts
|
|
243
243
|
type DigitalUploadFailReason = 'DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED' | 'ID_TYPE_UNACCEPTABLE' | 'FILE_CHANGED_ERROR' | 'INVALID_FILE_TYPE' | 'NETWORK_ERROR' | 'GENERIC';
|
|
244
244
|
//#endregion
|
|
245
|
+
//#region src/modules/id/deviceWallet/deviceWalletPlatform.d.ts
|
|
246
|
+
/**
|
|
247
|
+
* Maps an explicit provider override or the current user agent to the wallet
|
|
248
|
+
* platform (ported from V1 `resolveWalletPlatform`, minus the Credentials API
|
|
249
|
+
* capability check — that lives on `IDigitalCredentialsCapability.isAvailable()`
|
|
250
|
+
* and is consulted by the digital-ID funnel before this module is invoked).
|
|
251
|
+
*
|
|
252
|
+
* Auto-detection: iOS/iPadOS and macOS Safari → Apple Wallet (web); Android
|
|
253
|
+
* and every other desktop/unknown browser (incl. macOS Chrome) → Google
|
|
254
|
+
* Wallet, which is the only wallet reachable there.
|
|
255
|
+
*/
|
|
256
|
+
declare function resolveWalletPlatform(provider?: DeviceWalletProvider): DeviceWalletPlatform;
|
|
257
|
+
//#endregion
|
|
245
258
|
//#region src/modules/id/deviceWallet/deviceWalletActor.d.ts
|
|
246
259
|
type CreateDeviceWalletActorOptions = {
|
|
247
260
|
/**
|
|
@@ -415,6 +428,32 @@ type IdCaptureChooserState = {
|
|
|
415
428
|
* `selectDocument('digitalIdRedirect', { providerId })`.
|
|
416
429
|
*/
|
|
417
430
|
digitalIdRedirectOptions: IdCaptureDigitalIdRedirectOption[];
|
|
431
|
+
/**
|
|
432
|
+
* ISO alpha-2 country `digitalIdRedirectOptions` are ranked for: the
|
|
433
|
+
* detected one, or the one picked with `setChooserCountry`. `undefined`
|
|
434
|
+
* when no country is known.
|
|
435
|
+
*/
|
|
436
|
+
country: string | undefined;
|
|
437
|
+
/**
|
|
438
|
+
* Whether the options are country-ranked: the list can be ranked (two or
|
|
439
|
+
* more redirect providers serving different countries) and country
|
|
440
|
+
* detection ran for it. Detection runs whenever a country source is wired
|
|
441
|
+
* (by default always: IP lookup and browser locale), so in practice this
|
|
442
|
+
* is "the list is rankable". A detection that found no country is still
|
|
443
|
+
* `true`, with `country` `undefined`. Offer a country picker only when
|
|
444
|
+
* `true`; `setChooserCountry` has no visible effect otherwise.
|
|
445
|
+
*/
|
|
446
|
+
countryRanked: boolean;
|
|
447
|
+
/**
|
|
448
|
+
* The wallet family this device certainly reaches, for naming it on the
|
|
449
|
+
* Digital ID card: `apple` (iOS / iPadOS / macOS Safari), `samsung` (a
|
|
450
|
+
* detectable Samsung Android device), `android` (any other Android).
|
|
451
|
+
* `undefined` when the OS gives no certain answer (desktop Chrome, Windows,
|
|
452
|
+
* Linux) — show no wallet name then. It describes the device only, not the
|
|
453
|
+
* wallet methods enabled for the flow: those decide whether `digitalId` is
|
|
454
|
+
* in `availableDocumentTypes` at all.
|
|
455
|
+
*/
|
|
456
|
+
walletDevice: 'apple' | 'samsung' | 'android' | undefined;
|
|
418
457
|
};
|
|
419
458
|
/**
|
|
420
459
|
* Which UI-less machine phase the collapsed `loading` status stands for. The
|
|
@@ -678,6 +717,13 @@ declare function createIdCaptureManagerFromActor(actor: AnyIdCaptureActor, visib
|
|
|
678
717
|
selectDocument(documentType: IdDocumentType, options?: {
|
|
679
718
|
providerId?: DigitalIdProviderId;
|
|
680
719
|
}): void;
|
|
720
|
+
/**
|
|
721
|
+
* On the chooser: re-ranks `digitalIdRedirectOptions` for the given ISO
|
|
722
|
+
* alpha-2 country (the "Viewing options for" picker). Only reorders —
|
|
723
|
+
* every option stays available. Ignored outside the chooser and for an
|
|
724
|
+
* invalid code.
|
|
725
|
+
*/
|
|
726
|
+
setChooserCountry(country: string): void;
|
|
681
727
|
nextStep(): Promise<void>;
|
|
682
728
|
/**
|
|
683
729
|
* Continues from Tutorial into permission orchestration. When iOS requires
|
|
@@ -761,6 +807,7 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
|
|
|
761
807
|
selectDocument(documentType: IdDocumentType, options?: {
|
|
762
808
|
providerId?: DigitalIdProviderId;
|
|
763
809
|
}): void;
|
|
810
|
+
setChooserCountry(country: string): void;
|
|
764
811
|
nextStep(): Promise<void>;
|
|
765
812
|
continueToPermission(): void;
|
|
766
813
|
requestPermission(options?: {
|
|
@@ -799,4 +846,4 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
|
|
|
799
846
|
deviceWalletUseAnotherMethod(): void;
|
|
800
847
|
};
|
|
801
848
|
//#endregion
|
|
802
|
-
export {
|
|
849
|
+
export { addBarcode as A, resumeRecordingAfterPause as B, AddBarcodeParams as C, StartRecordingParams as D, InitializeIdCaptureParams as E, initializeIdCapture as F, validateUploadResponse as G, stopRecording as H, isSuspendableRecordingSession as I, WasmUtilProvider as K, pauseRecordingForAttempt as L, disposeRecordingSession as M, finalizeRecordingSession as N, UploadIdImageParams as O, getRealQualityValue as P, prepareRecordingForCameraRetry as R, idCaptureMachine as S, IdCaptureInitResult as T, stopStream as U, startRecordingSession as V, uploadIdImage as W, idCaptureOnlyMachine as _, RenderWalletError as a, createIdCaptureActor as b, DeviceWalletManager as c, CreateDeviceWalletActorOptions as d, resolveWalletPlatform as f, IdCaptureOnlyMachine as g, createIdCaptureOnlyActor as h, createIdCaptureManagerFromActor as i, barcodeToBase64 as j, ValidationError as k, DeviceWalletState as l, IdCaptureOnlyActor as m, IdCaptureManager as n, RenderWalletParams as o, CreateIdCaptureOnlyActorOptions as p, IdCaptureState as r, renderWallet as s, createIdCaptureManager as t, createDeviceWalletManager as u, CreateIdCaptureActorOptions as v, FinalizedIdRecording as w, IdCaptureMachine as x, IdCaptureActor as y, processId as z };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-cM510hqp.esm.js";
|
|
2
2
|
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
3
|
-
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-
|
|
4
|
-
import { i as isDesktop } from "./platform-
|
|
3
|
+
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-DvaOIWTd.esm.js";
|
|
4
|
+
import { i as isDesktop } from "./platform-aPh7gTWh.esm.js";
|
|
5
5
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
7
|
-
import { l as queryCameraPermission } from "./permissionServices-
|
|
8
|
-
import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-
|
|
9
|
-
import { i as isBackFacingTrack, t as getBackCameraStream } from "./backCameraStream-
|
|
10
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
7
|
+
import { l as queryCameraPermission } from "./permissionServices-CJSZshmj.esm.js";
|
|
8
|
+
import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-DMBxHKS2.esm.js";
|
|
9
|
+
import { i as isBackFacingTrack, t as getBackCameraStream } from "./backCameraStream-C5_NNfUN.esm.js";
|
|
10
|
+
import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
|
|
11
11
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BOIM1God.esm.js";
|
|
12
12
|
//#region src/internal/camera/cameraServices.ts
|
|
13
13
|
function createCameraServices(camera) {
|