@incodetech/core 0.0.0-dev-20260812-eea743d0 → 0.0.0-dev-20260813-05be24fd
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-BZCHSZMS.esm.js → BrowserDiagnosticsCryptoProvider-xWKH3i5m.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-DNu3reNh.esm.js → apiError-Bh5jJDwa.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BrjqfrPy.esm.js → authenticationManager-6X836UsH.esm.js} +2 -2
- package/dist/{authenticationStateMachine-DgghPDl4.esm.js → authenticationStateMachine-CluMTpyq.esm.js} +3 -3
- package/dist/{backCameraStream-CUeYm5eu.esm.js → backCameraStream-BMGalshK.esm.js} +1 -1
- package/dist/camera.esm.js +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-DLOyIZzt.d.ts} +5 -5
- package/dist/{deepsightLoader-DRZb3VqD.esm.js → deepsightLoader-BNePv44d.esm.js} +3 -3
- package/dist/device.d.ts +11 -1
- package/dist/device.esm.js +24 -3
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.esm.js +1 -1
- package/dist/{documentCaptureManager-DS9wf7bv.d.ts → documentCaptureManager-B4Kivr8_.d.ts} +69 -69
- package/dist/{documentCaptureManager-DszmcU-l.esm.js → documentCaptureManager-CaXWUo_N.esm.js} +1 -1
- package/dist/{documentCaptureStateMachine-D2jBwwVb.esm.js → documentCaptureStateMachine-DpWiaUPB.esm.js} +3 -3
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-CnfivbpK.esm.js → dynamicFormsManager-C3XilJZS.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-wYk_C_b2.esm.js → dynamicFormsStateMachine-Uwpvzltz.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-Bk_BzCYC.esm.js → ekybManager-BhTcRAYK.esm.js} +1 -1
- package/dist/{ekybStateMachine-DkjwVh_d.esm.js → ekybStateMachine-Bc5HqKSs.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-tex1m5n2.esm.js → electronicSignatureManager-DEisiQdJ.esm.js} +1 -1
- package/dist/extensibility.d.ts +5 -5
- package/dist/extensibility.esm.js +10 -10
- package/dist/{faceCaptureManagerFactory-BssijUSF.esm.js → faceCaptureManagerFactory-JLijMm7I.esm.js} +2 -2
- package/dist/{faceCaptureSetup-DMe0umFz.esm.js → faceCaptureSetup-ClcArckT.esm.js} +4 -4
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-CcKOe-8J.esm.js → flowCompletionService-C4KEty23.esm.js} +1 -1
- package/dist/{flowServices-2mZVqXc_.esm.js → flowServices-ENHThXD2.esm.js} +3 -3
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-U6FWKhYw.esm.js → geolocationManager-ATdWrkpX.esm.js} +1 -1
- package/dist/{geolocationStateMachine-CbFrC3xn.esm.js → geolocationStateMachine-DybB2P4f.esm.js} +2 -2
- package/dist/{getDeviceClass-9y-kbVDw.esm.js → getDeviceClass-Sh0zhEv7.esm.js} +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +7 -7
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-BDDUIxp-.esm.js → idCaptureManager-ujFKf8cX.esm.js} +3 -3
- package/dist/{idCaptureServices-H3HQ8MOI.esm.js → idCaptureServices-BgLU7pXx.esm.js} +5 -5
- package/dist/{idCaptureStateMachine-DbdiqzOH.esm.js → idCaptureStateMachine-HCtXk2AZ.esm.js} +10 -10
- package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-dLuxey6y.d.ts} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-D6pD4hcZ.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-BbfpILqv.d.ts → mandatoryConsentManager-UOu4V9jm.d.ts} +5 -5
- package/dist/{mediaRecorderOptions-dALSV8af.esm.js → mediaRecorderOptions-vXDI73LZ.esm.js} +1 -1
- package/dist/{onDeviceFaceResults-B8Gau0av.esm.js → onDeviceFaceResults-B5rPzpoQ.esm.js} +5 -5
- package/dist/{permissionGuards-KINpmKtI.esm.js → permissionGuards-D2OgV9XX.esm.js} +1 -1
- package/dist/{permissionServices-UvUcOSRb.esm.js → permissionServices-B7sMtZ8f.esm.js} +1 -1
- package/dist/personhood.esm.js +4 -4
- package/dist/{platform-BJrm5nzZ.esm.js → platform-Q4r1nvWX.esm.js} +4 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-Csec78eZ.esm.js → recordingService-CQh6Gr_i.esm.js} +3 -3
- package/dist/{runChildModule-xmrRx2s8.esm.js → runChildModule-CFPsnusY.esm.js} +1 -1
- package/dist/selfie.esm.js +5 -5
- package/dist/{selfieErrorUtils-_3npmJFa.esm.js → selfieErrorUtils-ArUCoICg.esm.js} +1 -1
- package/dist/{selfieManager-BwPtwyZi.esm.js → selfieManager-C0g7Vp_-.esm.js} +2 -2
- package/dist/{selfieStateMachine-CackPeJN.esm.js → selfieStateMachine-f41JbQGR.esm.js} +3 -3
- package/dist/{session-DdvQfYtc.esm.js → session-VxbK3Pak.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-DXwjrfti.esm.js → sessionInitializer-0N6YWECx.esm.js} +3 -3
- package/dist/{setup-BmLWDKWL.esm.js → setup-iGHmYqSo.esm.js} +4 -4
- package/dist/trueSight-BrXyaPMg.esm.js +1 -0
- package/dist/{trueSightService-C5n4whGb.esm.js → trueSightService-Co1FQU5u.esm.js} +2 -2
- package/dist/video-selfie.esm.js +4 -4
- package/dist/{videoSelfieCameraWarmer-BwCZRlnF.esm.js → videoSelfieCameraWarmer-DfwzFg2z.esm.js} +5 -5
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.esm.js +15 -15
- package/package.json +1 -1
- package/dist/trueSight-DfGa5SED.esm.js +0 -1
|
@@ -18,7 +18,7 @@ function decodeTruesightKey(s0Base64, s1Base64) {
|
|
|
18
18
|
*/
|
|
19
19
|
function getTruesightKey() {
|
|
20
20
|
try {
|
|
21
|
-
const key = decodeTruesightKey("
|
|
21
|
+
const key = decodeTruesightKey("tcom+sye8FwdTHqRdO3U4jZ52EhZYMQDVYRcMWTViuk=", "RB04NdLp1xCRdh2lFCYwZ3k3cIkrc6lHaTLMWsHG/Mg=");
|
|
22
22
|
return key.length === KEY_LENGTH_BYTES ? key : null;
|
|
23
23
|
} catch {
|
|
24
24
|
return null;
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-
|
|
1
|
+
import { c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-DEisiQdJ.esm.js";
|
|
2
2
|
//#region src/modules/ae-signature/index.ts
|
|
3
3
|
function createAeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
2
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-CluMTpyq.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-6X836UsH.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-BrjqfrPy.esm.js → authenticationManager-6X836UsH.esm.js}
RENAMED
|
@@ -2,8 +2,8 @@ import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
|
|
|
2
2
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-CxfNJVZW.esm.js";
|
|
4
4
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-JLijMm7I.esm.js";
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-CluMTpyq.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationActor.ts
|
|
8
8
|
function createAuthenticationActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -3,9 +3,9 @@ import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
|
3
3
|
import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
4
4
|
import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-
|
|
8
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-ClcArckT.esm.js";
|
|
7
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-B5rPzpoQ.esm.js";
|
|
8
|
+
import { t as getDeviceClass } from "./getDeviceClass-Sh0zhEv7.esm.js";
|
|
9
9
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
10
10
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
11
11
|
const AUTH_ERROR_MAP = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as isIOS, c as isSafari, i as isDesktop, s as isIPhone14OrHigher, t as isAndroid } from "./platform-Q4r1nvWX.esm.js";
|
|
2
2
|
import { a as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-_2sXMXiF.esm.js";
|
|
3
3
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
4
4
|
import { t as getBrowser } from "./getBrowser-DNrQeL4T.esm.js";
|
package/dist/camera.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as requestPermission, t as checkPermission } from "./permissionServices-
|
|
1
|
+
import { i as requestPermission, t as checkPermission } from "./permissionServices-B7sMtZ8f.esm.js";
|
|
2
2
|
export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-
|
|
1
|
+
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-DLOyIZzt.js";
|
|
2
2
|
export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
|
|
@@ -82,6 +82,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
82
82
|
type: "clearError";
|
|
83
83
|
params: NonReducibleUnknown;
|
|
84
84
|
};
|
|
85
|
+
resetContext: {
|
|
86
|
+
type: "resetContext";
|
|
87
|
+
params: NonReducibleUnknown;
|
|
88
|
+
};
|
|
85
89
|
setConsentData: {
|
|
86
90
|
type: "setConsentData";
|
|
87
91
|
params: NonReducibleUnknown;
|
|
@@ -90,14 +94,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
90
94
|
type: "toggleCheckbox";
|
|
91
95
|
params: NonReducibleUnknown;
|
|
92
96
|
};
|
|
93
|
-
resetContext: {
|
|
94
|
-
type: "resetContext";
|
|
95
|
-
params: NonReducibleUnknown;
|
|
96
|
-
};
|
|
97
97
|
}>, {
|
|
98
98
|
type: "canSubmit";
|
|
99
99
|
params: unknown;
|
|
100
|
-
}, never, "error" | "idle" | "finished" | "
|
|
100
|
+
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
101
101
|
readonly id: "consent";
|
|
102
102
|
readonly initial: "idle";
|
|
103
103
|
readonly context: ({ input }: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { l as trueSightLog } from "./trueSightService-
|
|
4
|
-
import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-
|
|
5
|
-
import "./trueSight-
|
|
3
|
+
import { l as trueSightLog } from "./trueSightService-Co1FQU5u.esm.js";
|
|
4
|
+
import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-0N6YWECx.esm.js";
|
|
5
|
+
import "./trueSight-BrXyaPMg.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
7
7
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
|
|
8
8
|
import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
|
package/dist/device.d.ts
CHANGED
|
@@ -30,6 +30,16 @@ declare class ScreenOrientationProvider implements IScreenOrientationCapability
|
|
|
30
30
|
type Browser = 'chrome' | 'firefox' | 'safari' | 'edge' | 'opera' | 'other' | 'samsung_browser';
|
|
31
31
|
declare function getBrowser(): Browser;
|
|
32
32
|
//#endregion
|
|
33
|
+
//#region src/internal/device/browserSupportClassification.d.ts
|
|
34
|
+
/** iOS/iPadOS/macOS — the only platforms where Safari is a supported option. */
|
|
35
|
+
declare function isApplePlatform(): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether capture/WASM are known to work in the current browser.
|
|
38
|
+
* WebView: always. Firefox/Brave: never. Apple platforms: Safari or Chrome.
|
|
39
|
+
* Everywhere else: Chrome only.
|
|
40
|
+
*/
|
|
41
|
+
declare function isSupportedBrowser(): boolean;
|
|
42
|
+
//#endregion
|
|
33
43
|
//#region src/internal/device/getDeviceClass.d.ts
|
|
34
44
|
type DeviceClass = 'ios' | 'android' | 'desktop';
|
|
35
45
|
declare function getDeviceClass(): DeviceClass;
|
|
@@ -51,4 +61,4 @@ type ScreenOrientationObserver = {
|
|
|
51
61
|
};
|
|
52
62
|
declare function createScreenOrientationObserver(provider: IScreenOrientationCapability, deviceClass: DeviceClass): ScreenOrientationObserver;
|
|
53
63
|
//#endregion
|
|
54
|
-
export { type Browser, type DeviceClass, type ScreenOrientationObserver, ScreenOrientationProvider, createScreenOrientationObserver, getBrowser, getDeviceClass, isDesktopDeviceEmulation, isDesktopOrEmulated, isIPad };
|
|
64
|
+
export { type Browser, type DeviceClass, type ScreenOrientationObserver, ScreenOrientationProvider, createScreenOrientationObserver, getBrowser, getDeviceClass, isApplePlatform, isDesktopDeviceEmulation, isDesktopOrEmulated, isIPad, isSupportedBrowser };
|
package/dist/device.esm.js
CHANGED
|
@@ -1,7 +1,28 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as isIOS, l as isTabletWithoutAndroid, n as isAndroidWebView, o as isIPad, r as isBraveBrowser } from "./platform-Q4r1nvWX.esm.js";
|
|
2
|
+
import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
|
|
2
3
|
import { t as getBrowser } from "./getBrowser-DNrQeL4T.esm.js";
|
|
3
4
|
import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
4
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
5
|
+
import { t as getDeviceClass } from "./getDeviceClass-Sh0zhEv7.esm.js";
|
|
6
|
+
//#region src/internal/device/browserSupportClassification.ts
|
|
7
|
+
const APPLE_PLATFORM_SUPPORTED_BROWSERS = /* @__PURE__ */ new Set(["safari", "chrome"]);
|
|
8
|
+
/** iOS/iPadOS/macOS — the only platforms where Safari is a supported option. */
|
|
9
|
+
function isApplePlatform() {
|
|
10
|
+
const userAgent = getUserAgent();
|
|
11
|
+
return isIOS(userAgent) || /Mac OS/i.test(userAgent);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Whether capture/WASM are known to work in the current browser.
|
|
15
|
+
* WebView: always. Firefox/Brave: never. Apple platforms: Safari or Chrome.
|
|
16
|
+
* Everywhere else: Chrome only.
|
|
17
|
+
*/
|
|
18
|
+
function isSupportedBrowser() {
|
|
19
|
+
if (isAndroidWebView()) return true;
|
|
20
|
+
const browser = getBrowser();
|
|
21
|
+
if (browser === "firefox" || isBraveBrowser()) return false;
|
|
22
|
+
if (isApplePlatform()) return APPLE_PLATFORM_SUPPORTED_BROWSERS.has(browser);
|
|
23
|
+
return browser === "chrome";
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
5
26
|
//#region src/internal/device/redirectDeviceClassification.ts
|
|
6
27
|
/**
|
|
7
28
|
* Conservative redirect-specific check. A mobile identity must also expose an
|
|
@@ -104,4 +125,4 @@ var ScreenOrientationProvider = class {
|
|
|
104
125
|
}
|
|
105
126
|
};
|
|
106
127
|
//#endregion
|
|
107
|
-
export { ScreenOrientationProvider, createScreenOrientationObserver, getBrowser, getDeviceClass, isDesktopDeviceEmulation, isDesktopOrEmulated, isIPad };
|
|
128
|
+
export { ScreenOrientationProvider, createScreenOrientationObserver, getBrowser, getDeviceClass, isApplePlatform, isDesktopDeviceEmulation, isDesktopOrEmulated, isIPad, isSupportedBrowser };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-DelMqZLe.js";
|
|
2
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
2
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-B4Kivr8_.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
2
|
-
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-
|
|
1
|
+
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-DpWiaUPB.esm.js";
|
|
2
|
+
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-CaXWUo_N.esm.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -4,7 +4,7 @@ import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
|
4
4
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
6
|
import { a as stopCameraStream } from "./camera-_2sXMXiF.esm.js";
|
|
7
|
-
import { n as getBackCameraStream } from "./backCameraStream-
|
|
7
|
+
import { n as getBackCameraStream } from "./backCameraStream-BMGalshK.esm.js";
|
|
8
8
|
//#region src/modules/document-upload/documentUploadServices.ts
|
|
9
9
|
async function uploadDocument({ imageBase64, documentType, onProgress, signal }) {
|
|
10
10
|
const url = `${endpoints.addDocument}?type=${encodeURIComponent(documentType)}`;
|
|
@@ -72,6 +72,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
72
72
|
}, EventObject>;
|
|
73
73
|
id: string | undefined;
|
|
74
74
|
};
|
|
75
|
+
initCamera: {
|
|
76
|
+
src: "initCamera";
|
|
77
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
78
|
+
id: string | undefined;
|
|
79
|
+
};
|
|
75
80
|
requestPermission: {
|
|
76
81
|
src: "requestPermission";
|
|
77
82
|
logic: PromiseActorLogic<PermissionResult, {
|
|
@@ -80,11 +85,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
80
85
|
}, EventObject>;
|
|
81
86
|
id: string | undefined;
|
|
82
87
|
};
|
|
83
|
-
initCamera: {
|
|
84
|
-
src: "initCamera";
|
|
85
|
-
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
86
|
-
id: string | undefined;
|
|
87
|
-
};
|
|
88
88
|
checkPermission: {
|
|
89
89
|
src: "checkPermission";
|
|
90
90
|
logic: PromiseActorLogic<PermissionResult, void, EventObject>;
|
|
@@ -98,10 +98,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
98
98
|
id: string | undefined;
|
|
99
99
|
};
|
|
100
100
|
}>, Values<{
|
|
101
|
-
decrementAttemptsRemaining: {
|
|
102
|
-
type: "decrementAttemptsRemaining";
|
|
103
|
-
params: NonReducibleUnknown;
|
|
104
|
-
};
|
|
105
101
|
setStream: {
|
|
106
102
|
type: "setStream";
|
|
107
103
|
params: NonReducibleUnknown;
|
|
@@ -118,6 +114,10 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
118
114
|
type: "stopStream";
|
|
119
115
|
params: NonReducibleUnknown;
|
|
120
116
|
};
|
|
117
|
+
decrementAttemptsRemaining: {
|
|
118
|
+
type: "decrementAttemptsRemaining";
|
|
119
|
+
params: NonReducibleUnknown;
|
|
120
|
+
};
|
|
121
121
|
setCapturedDocument: {
|
|
122
122
|
type: "setCapturedDocument";
|
|
123
123
|
params: NonReducibleUnknown;
|
|
@@ -258,7 +258,7 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
258
258
|
readonly initial: "tutorial";
|
|
259
259
|
readonly context: ({ input }: {
|
|
260
260
|
spawn: {
|
|
261
|
-
<TSrc extends "uploadDocument" | "
|
|
261
|
+
<TSrc extends "uploadDocument" | "initCamera" | "requestPermission" | "checkPermission" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
|
|
262
262
|
src: "uploadDocument";
|
|
263
263
|
logic: PromiseActorLogic<DocumentUploadResponse, {
|
|
264
264
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
@@ -282,18 +282,12 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
282
282
|
input?: InputFrom<T["logic"]> | undefined;
|
|
283
283
|
syncSnapshot?: boolean;
|
|
284
284
|
} & { [K in RequiredActorOptions<T>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T>>> : never : never : never) | ({
|
|
285
|
-
src: "
|
|
286
|
-
logic: PromiseActorLogic<
|
|
287
|
-
permissionResult?: PermissionResult;
|
|
288
|
-
requestMotionPermission: boolean;
|
|
289
|
-
}, EventObject>;
|
|
285
|
+
src: "initCamera";
|
|
286
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
290
287
|
id: string | undefined;
|
|
291
288
|
} extends (infer T_1) ? T_1 extends {
|
|
292
|
-
src: "
|
|
293
|
-
logic: PromiseActorLogic<
|
|
294
|
-
permissionResult?: PermissionResult;
|
|
295
|
-
requestMotionPermission: boolean;
|
|
296
|
-
}, EventObject>;
|
|
289
|
+
src: "initCamera";
|
|
290
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
297
291
|
id: string | undefined;
|
|
298
292
|
} ? T_1 extends {
|
|
299
293
|
src: TSrc;
|
|
@@ -303,12 +297,18 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
303
297
|
input?: InputFrom<T_1["logic"]> | undefined;
|
|
304
298
|
syncSnapshot?: boolean;
|
|
305
299
|
} & { [K_1 in RequiredActorOptions<T_1>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
306
|
-
src: "
|
|
307
|
-
logic: PromiseActorLogic<
|
|
300
|
+
src: "requestPermission";
|
|
301
|
+
logic: PromiseActorLogic<PermissionResult, {
|
|
302
|
+
permissionResult?: PermissionResult;
|
|
303
|
+
requestMotionPermission: boolean;
|
|
304
|
+
}, EventObject>;
|
|
308
305
|
id: string | undefined;
|
|
309
306
|
} extends (infer T_2) ? T_2 extends {
|
|
310
|
-
src: "
|
|
311
|
-
logic: PromiseActorLogic<
|
|
307
|
+
src: "requestPermission";
|
|
308
|
+
logic: PromiseActorLogic<PermissionResult, {
|
|
309
|
+
permissionResult?: PermissionResult;
|
|
310
|
+
requestMotionPermission: boolean;
|
|
311
|
+
}, EventObject>;
|
|
312
312
|
id: string | undefined;
|
|
313
313
|
} ? T_2 extends {
|
|
314
314
|
src: TSrc;
|
|
@@ -361,6 +361,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
361
361
|
}, EventObject>;
|
|
362
362
|
id: string | undefined;
|
|
363
363
|
};
|
|
364
|
+
initCamera: {
|
|
365
|
+
src: "initCamera";
|
|
366
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
367
|
+
id: string | undefined;
|
|
368
|
+
};
|
|
364
369
|
requestPermission: {
|
|
365
370
|
src: "requestPermission";
|
|
366
371
|
logic: PromiseActorLogic<PermissionResult, {
|
|
@@ -369,11 +374,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
369
374
|
}, EventObject>;
|
|
370
375
|
id: string | undefined;
|
|
371
376
|
};
|
|
372
|
-
initCamera: {
|
|
373
|
-
src: "initCamera";
|
|
374
|
-
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
375
|
-
id: string | undefined;
|
|
376
|
-
};
|
|
377
377
|
checkPermission: {
|
|
378
378
|
src: "checkPermission";
|
|
379
379
|
logic: PromiseActorLogic<PermissionResult, void, EventObject>;
|
|
@@ -621,6 +621,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
621
621
|
}, EventObject>;
|
|
622
622
|
id: string | undefined;
|
|
623
623
|
};
|
|
624
|
+
initCamera: {
|
|
625
|
+
src: "initCamera";
|
|
626
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
627
|
+
id: string | undefined;
|
|
628
|
+
};
|
|
624
629
|
requestPermission: {
|
|
625
630
|
src: "requestPermission";
|
|
626
631
|
logic: PromiseActorLogic<PermissionResult, {
|
|
@@ -629,11 +634,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
629
634
|
}, EventObject>;
|
|
630
635
|
id: string | undefined;
|
|
631
636
|
};
|
|
632
|
-
initCamera: {
|
|
633
|
-
src: "initCamera";
|
|
634
|
-
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
635
|
-
id: string | undefined;
|
|
636
|
-
};
|
|
637
637
|
checkPermission: {
|
|
638
638
|
src: "checkPermission";
|
|
639
639
|
logic: PromiseActorLogic<PermissionResult, void, EventObject>;
|
|
@@ -706,6 +706,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
706
706
|
}, EventObject>;
|
|
707
707
|
id: string | undefined;
|
|
708
708
|
};
|
|
709
|
+
initCamera: {
|
|
710
|
+
src: "initCamera";
|
|
711
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
712
|
+
id: string | undefined;
|
|
713
|
+
};
|
|
709
714
|
requestPermission: {
|
|
710
715
|
src: "requestPermission";
|
|
711
716
|
logic: PromiseActorLogic<PermissionResult, {
|
|
@@ -714,11 +719,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
714
719
|
}, EventObject>;
|
|
715
720
|
id: string | undefined;
|
|
716
721
|
};
|
|
717
|
-
initCamera: {
|
|
718
|
-
src: "initCamera";
|
|
719
|
-
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
720
|
-
id: string | undefined;
|
|
721
|
-
};
|
|
722
722
|
checkPermission: {
|
|
723
723
|
src: "checkPermission";
|
|
724
724
|
logic: PromiseActorLogic<PermissionResult, void, EventObject>;
|
|
@@ -790,6 +790,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
790
790
|
}, EventObject>;
|
|
791
791
|
id: string | undefined;
|
|
792
792
|
};
|
|
793
|
+
initCamera: {
|
|
794
|
+
src: "initCamera";
|
|
795
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
796
|
+
id: string | undefined;
|
|
797
|
+
};
|
|
793
798
|
requestPermission: {
|
|
794
799
|
src: "requestPermission";
|
|
795
800
|
logic: PromiseActorLogic<PermissionResult, {
|
|
@@ -798,11 +803,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
798
803
|
}, EventObject>;
|
|
799
804
|
id: string | undefined;
|
|
800
805
|
};
|
|
801
|
-
initCamera: {
|
|
802
|
-
src: "initCamera";
|
|
803
|
-
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
804
|
-
id: string | undefined;
|
|
805
|
-
};
|
|
806
806
|
checkPermission: {
|
|
807
807
|
src: "checkPermission";
|
|
808
808
|
logic: PromiseActorLogic<PermissionResult, void, EventObject>;
|
|
@@ -875,6 +875,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
875
875
|
}, EventObject>;
|
|
876
876
|
id: string | undefined;
|
|
877
877
|
};
|
|
878
|
+
initCamera: {
|
|
879
|
+
src: "initCamera";
|
|
880
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
881
|
+
id: string | undefined;
|
|
882
|
+
};
|
|
878
883
|
requestPermission: {
|
|
879
884
|
src: "requestPermission";
|
|
880
885
|
logic: PromiseActorLogic<PermissionResult, {
|
|
@@ -883,11 +888,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
883
888
|
}, EventObject>;
|
|
884
889
|
id: string | undefined;
|
|
885
890
|
};
|
|
886
|
-
initCamera: {
|
|
887
|
-
src: "initCamera";
|
|
888
|
-
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
889
|
-
id: string | undefined;
|
|
890
|
-
};
|
|
891
891
|
checkPermission: {
|
|
892
892
|
src: "checkPermission";
|
|
893
893
|
logic: PromiseActorLogic<PermissionResult, void, EventObject>;
|
|
@@ -1129,6 +1129,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1129
1129
|
}, EventObject>;
|
|
1130
1130
|
id: string | undefined;
|
|
1131
1131
|
};
|
|
1132
|
+
initCamera: {
|
|
1133
|
+
src: "initCamera";
|
|
1134
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
1135
|
+
id: string | undefined;
|
|
1136
|
+
};
|
|
1132
1137
|
requestPermission: {
|
|
1133
1138
|
src: "requestPermission";
|
|
1134
1139
|
logic: PromiseActorLogic<PermissionResult, {
|
|
@@ -1137,11 +1142,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1137
1142
|
}, EventObject>;
|
|
1138
1143
|
id: string | undefined;
|
|
1139
1144
|
};
|
|
1140
|
-
initCamera: {
|
|
1141
|
-
src: "initCamera";
|
|
1142
|
-
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
1143
|
-
id: string | undefined;
|
|
1144
|
-
};
|
|
1145
1145
|
checkPermission: {
|
|
1146
1146
|
src: "checkPermission";
|
|
1147
1147
|
logic: PromiseActorLogic<PermissionResult, void, EventObject>;
|
|
@@ -1214,6 +1214,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1214
1214
|
}, EventObject>;
|
|
1215
1215
|
id: string | undefined;
|
|
1216
1216
|
};
|
|
1217
|
+
initCamera: {
|
|
1218
|
+
src: "initCamera";
|
|
1219
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
1220
|
+
id: string | undefined;
|
|
1221
|
+
};
|
|
1217
1222
|
requestPermission: {
|
|
1218
1223
|
src: "requestPermission";
|
|
1219
1224
|
logic: PromiseActorLogic<PermissionResult, {
|
|
@@ -1222,11 +1227,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1222
1227
|
}, EventObject>;
|
|
1223
1228
|
id: string | undefined;
|
|
1224
1229
|
};
|
|
1225
|
-
initCamera: {
|
|
1226
|
-
src: "initCamera";
|
|
1227
|
-
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
1228
|
-
id: string | undefined;
|
|
1229
|
-
};
|
|
1230
1230
|
checkPermission: {
|
|
1231
1231
|
src: "checkPermission";
|
|
1232
1232
|
logic: PromiseActorLogic<PermissionResult, void, EventObject>;
|
|
@@ -1298,6 +1298,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1298
1298
|
}, EventObject>;
|
|
1299
1299
|
id: string | undefined;
|
|
1300
1300
|
};
|
|
1301
|
+
initCamera: {
|
|
1302
|
+
src: "initCamera";
|
|
1303
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
1304
|
+
id: string | undefined;
|
|
1305
|
+
};
|
|
1301
1306
|
requestPermission: {
|
|
1302
1307
|
src: "requestPermission";
|
|
1303
1308
|
logic: PromiseActorLogic<PermissionResult, {
|
|
@@ -1306,11 +1311,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1306
1311
|
}, EventObject>;
|
|
1307
1312
|
id: string | undefined;
|
|
1308
1313
|
};
|
|
1309
|
-
initCamera: {
|
|
1310
|
-
src: "initCamera";
|
|
1311
|
-
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
1312
|
-
id: string | undefined;
|
|
1313
|
-
};
|
|
1314
1314
|
checkPermission: {
|
|
1315
1315
|
src: "checkPermission";
|
|
1316
1316
|
logic: PromiseActorLogic<PermissionResult, void, EventObject>;
|
|
@@ -1433,6 +1433,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1433
1433
|
}, EventObject>;
|
|
1434
1434
|
id: string | undefined;
|
|
1435
1435
|
};
|
|
1436
|
+
initCamera: {
|
|
1437
|
+
src: "initCamera";
|
|
1438
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
1439
|
+
id: string | undefined;
|
|
1440
|
+
};
|
|
1436
1441
|
requestPermission: {
|
|
1437
1442
|
src: "requestPermission";
|
|
1438
1443
|
logic: PromiseActorLogic<PermissionResult, {
|
|
@@ -1441,11 +1446,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1441
1446
|
}, EventObject>;
|
|
1442
1447
|
id: string | undefined;
|
|
1443
1448
|
};
|
|
1444
|
-
initCamera: {
|
|
1445
|
-
src: "initCamera";
|
|
1446
|
-
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
1447
|
-
id: string | undefined;
|
|
1448
|
-
};
|
|
1449
1449
|
checkPermission: {
|
|
1450
1450
|
src: "checkPermission";
|
|
1451
1451
|
logic: PromiseActorLogic<PermissionResult, void, EventObject>;
|
package/dist/{documentCaptureManager-DszmcU-l.esm.js → documentCaptureManager-CaXWUo_N.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
4
|
+
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-DpWiaUPB.esm.js";
|
|
5
5
|
//#region src/modules/document-capture/documentCaptureActor.ts
|
|
6
6
|
function createDocumentCaptureActor(options) {
|
|
7
7
|
return createActor(documentCaptureMachine, { input: { config: options.config } }).start();
|
|
@@ -3,9 +3,9 @@ import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
|
3
3
|
import { 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
5
|
import { a as stopCameraStream } from "./camera-_2sXMXiF.esm.js";
|
|
6
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
7
|
-
import { n as getBackCameraStream } from "./backCameraStream-
|
|
8
|
-
import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
6
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-B7sMtZ8f.esm.js";
|
|
7
|
+
import { n as getBackCameraStream } from "./backCameraStream-BMGalshK.esm.js";
|
|
8
|
+
import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-D2OgV9XX.esm.js";
|
|
9
9
|
//#region src/modules/document-capture/types.ts
|
|
10
10
|
const PROCESSING_TYPE_MAP = {
|
|
11
11
|
processV5CLogbook: "v5cMultiPageLogbook",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
2
|
-
import { t as createDynamicFormsManager } from "./dynamicFormsManager-
|
|
1
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-Uwpvzltz.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-C3XilJZS.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
4
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-Uwpvzltz.esm.js";
|
|
5
5
|
//#region src/modules/dynamic-forms/dynamicFormsActor.ts
|
|
6
6
|
function createDynamicFormsActor(options) {
|
|
7
7
|
return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
|
package/dist/{dynamicFormsStateMachine-wYk_C_b2.esm.js → dynamicFormsStateMachine-Uwpvzltz.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, t as IncodeApiError } from "./apiError-
|
|
3
|
+
import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-Bh5jJDwa.esm.js";
|
|
4
4
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
6
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
1
|
+
import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-ENHThXD2.esm.js";
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-Bc5HqKSs.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-BhTcRAYK.esm.js";
|
|
4
4
|
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
4
|
+
import { t as ekybMachine } from "./ekybStateMachine-Bc5HqKSs.esm.js";
|
|
5
5
|
//#region src/modules/ekyb/ekybActor.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates and starts an eKYB actor.
|
|
@@ -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 { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-
|
|
3
|
+
import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-ENHThXD2.esm.js";
|
|
4
4
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
6
|
import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DQyrvDQj.esm.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as QE_CONSENT_KEYS, c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, n as createElectronicSignatureManagerFromActor, o as areAllConsented, r as electronicSignatureMachine, s as getConsentKeys, t as createElectronicSignatureManager } from "./electronicSignatureManager-
|
|
1
|
+
import { a as QE_CONSENT_KEYS, c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, n as createElectronicSignatureManagerFromActor, o as areAllConsented, r as electronicSignatureMachine, s as getConsentKeys, t as createElectronicSignatureManager } from "./electronicSignatureManager-DEisiQdJ.esm.js";
|
|
2
2
|
export { AE_CONSENT_KEYS, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
|
@@ -2,7 +2,7 @@ import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
|
2
2
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
5
|
+
import { r as toIncodeApiError } from "./apiError-Bh5jJDwa.esm.js";
|
|
6
6
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
8
8
|
import { t as externalFetch } from "./externalFetch-BKBThAUC.esm.js";
|