@incodetech/core 0.0.0-dev-20260902-b423eb4c → 0.0.0-dev-20260902-40c6c934
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-BNXzyiSM.esm.js → BrowserDiagnosticsCryptoProvider-DDehiRaB.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-qAEY_0UT.esm.js → apiError-3eSyevaX.esm.js} +14 -2
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BkR1Wc8v.esm.js → authenticationManager-CjdHY09X.esm.js} +3 -3
- package/dist/{authenticationStateMachine-BESsBlPa.esm.js → authenticationStateMachine-C_-KyW3t.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-DLOyIZzt.d.ts → consentManager-3Pbtj-RV.d.ts} +5 -5
- package/dist/{deepsightLoader-C60qnKDV.esm.js → deepsightLoader-D_lzPrKE.esm.js} +2 -2
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-xLKsncJx.esm.js → dynamicFormsManager-C_LF5Uv2.esm.js} +15 -4
- package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-D5R_uxLQ.d.ts} +25 -3
- package/dist/{dynamicFormsStateMachine-BBKyGlO9.esm.js → dynamicFormsStateMachine-CHBZqg0W.esm.js} +34 -2
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-CQrfiwz2.esm.js → ekybManager-x7MaCF3a.esm.js} +1 -1
- package/dist/{ekybStateMachine-DyUoy_Nv.esm.js → ekybStateMachine-Cp6b6_Rf.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BnIFWhzF.esm.js → electronicSignatureManager-Bx-xotVy.esm.js} +1 -1
- package/dist/extensibility.d.ts +5 -5
- package/dist/extensibility.esm.js +10 -10
- package/dist/{faceCaptureManagerFactory-D7HtcTGD.esm.js → faceCaptureManagerFactory-BReY4BtR.esm.js} +1 -1
- package/dist/{faceCaptureSetup-D9TLE1yJ.esm.js → faceCaptureSetup-Bv167dJ_.esm.js} +3 -3
- package/dist/{feature-management-2KA4RUeu.esm.js → feature-management-BumvjbYe.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-Vud0ynuS.esm.js → flowCompletionService-Bzh4Krlm.esm.js} +1 -1
- package/dist/{flowServices-BrtcLOkt.esm.js → flowServices-Bfmyxinu.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-4bHa-8xN.esm.js → geolocationManager-BaHIjwWE.esm.js} +1 -1
- package/dist/{geolocationStateMachine-DBNY4kwN.esm.js → geolocationStateMachine-C6rbMxr_.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 +4 -4
- package/dist/{idCaptureDefaults-CR4bsS2u.esm.js → idCaptureDefaults-DmE5jure.esm.js} +1 -1
- package/dist/{idCaptureManager-BSaJdxCA.esm.js → idCaptureManager-D8KY-mW1.esm.js} +3 -3
- package/dist/{idCaptureServices-BMr-XvbO.esm.js → idCaptureServices-DHpiJd7h.esm.js} +3 -3
- package/dist/{idCaptureStateMachine-ZlXZAe9D.esm.js → idCaptureStateMachine-DDb_iure.esm.js} +7 -7
- package/dist/{idOcrManager-CFlDwUvN.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-BXEBBI3N.d.ts → identityReuseManager-BFDI7iFK.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-eFC-htLS.d.ts → mandatoryConsentManager-BJnylLZO.d.ts} +5 -5
- package/dist/{onDeviceFaceResults-QNTMlGpo.esm.js → onDeviceFaceResults-CXmiMB_O.esm.js} +4 -4
- package/dist/personhood.esm.js +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-BzUUi6cN.esm.js → runChildModule-BPkyrLp_.esm.js} +1 -1
- package/dist/{sdkVersion-D2Jf7StH.esm.js → sdkVersion-CZd6xrgl.esm.js} +1 -1
- package/dist/selfie.esm.js +5 -5
- package/dist/{selfieManager-Dq6pbT7r.esm.js → selfieManager-H2WLUZKr.esm.js} +3 -3
- package/dist/{selfieStateMachine-h6BMiler.esm.js → selfieStateMachine-CK1ZYYA0.esm.js} +12 -9
- package/dist/{session-ZZe8ZRQJ.esm.js → session-CkgbWFiv.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer--S-S_NBR.esm.js → sessionInitializer-CZIq0IlV.esm.js} +3 -3
- package/dist/{setup-B7wLQFL-.esm.js → setup-CN-owHPJ.esm.js} +4 -4
- package/dist/{trueSightService-Dc_CQnmv.esm.js → trueSightService-BIO7pDks.esm.js} +2 -2
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-BJpZ3Hj0.esm.js → videoSelfieCameraWarmer-B_tfCmf7.esm.js} +3 -3
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.esm.js +14 -14
- package/package.json +1 -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("3xcwNq44Ys8RQqDvSoiqnVnuMFLTKyKYhfgr2zbpy5E=", "OGrSZ+6or3pMYNHHsrSja3ftDrdODdYo/trW0IogZxg=");
|
|
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 areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-Bx-xotVy.esm.js";
|
|
2
2
|
//#region src/modules/ae-signature/index.ts
|
|
3
3
|
function createAeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-
|
|
1
|
+
import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-BIO7pDks.esm.js";
|
|
2
2
|
//#region src/internal/http/apiError.ts
|
|
3
3
|
/**
|
|
4
4
|
* Incode API error.
|
|
@@ -46,6 +46,18 @@ function isConnectivityError(err) {
|
|
|
46
46
|
return isHttpError(err) && err.status === 0;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
+
* True when an error represents a failure that is the server's fault (or the
|
|
50
|
+
* network's) rather than the caller's — HTTP `5xx`, or connectivity loss
|
|
51
|
+
* (see {@link isConnectivityError}). Useful for callers that want to offer a
|
|
52
|
+
* "Try again" retry only for these, while a `4xx` (the caller sent something
|
|
53
|
+
* the backend rejected) is left for the caller to handle on its own terms —
|
|
54
|
+
* retrying the identical payload would just fail again.
|
|
55
|
+
*/
|
|
56
|
+
function isServerError(err) {
|
|
57
|
+
if (isConnectivityError(err)) return true;
|
|
58
|
+
return err instanceof IncodeApiError && (err.httpStatus >= 500 || err.httpStatus === 0);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
49
61
|
* Convert an unknown error caught from `api.{get,post,...}` into an
|
|
50
62
|
* `IncodeApiError`, extracting the Incode-specific status and message from
|
|
51
63
|
* the response body when present. The original error is preserved on
|
|
@@ -70,4 +82,4 @@ function logHttpFailureBreadcrumb(message, endpoint) {
|
|
|
70
82
|
} catch {}
|
|
71
83
|
}
|
|
72
84
|
//#endregion
|
|
73
|
-
export { isConnectivityError as n,
|
|
85
|
+
export { toIncodeApiError as i, isConnectivityError as n, isServerError as r, IncodeApiError as t };
|
|
@@ -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-C_-KyW3t.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CjdHY09X.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-BkR1Wc8v.esm.js → authenticationManager-CjdHY09X.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-CN-owHPJ.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-0bZuUtSP.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BReY4BtR.esm.js";
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-C_-KyW3t.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationActor.ts
|
|
8
8
|
function createAuthenticationActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -3,8 +3,8 @@ import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
|
3
3
|
import { t as addDeviceStats } from "./stats-DkK-f8JT.esm.js";
|
|
4
4
|
import { i as assign } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.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-
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-Bv167dJ_.esm.js";
|
|
7
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-CXmiMB_O.esm.js";
|
|
8
8
|
import { t as getDeviceClass } from "./getDeviceClass-q9LxdYDh.esm.js";
|
|
9
9
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
10
10
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
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-3Pbtj-RV.js";
|
|
2
2
|
export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
|
|
@@ -82,10 +82,6 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
82
82
|
type: "clearError";
|
|
83
83
|
params: NonReducibleUnknown;
|
|
84
84
|
};
|
|
85
|
-
resetContext: {
|
|
86
|
-
type: "resetContext";
|
|
87
|
-
params: NonReducibleUnknown;
|
|
88
|
-
};
|
|
89
85
|
setConsentData: {
|
|
90
86
|
type: "setConsentData";
|
|
91
87
|
params: NonReducibleUnknown;
|
|
@@ -94,10 +90,14 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
94
90
|
type: "toggleCheckbox";
|
|
95
91
|
params: NonReducibleUnknown;
|
|
96
92
|
};
|
|
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" | "submitting" | "loading" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
101
101
|
readonly id: "consent";
|
|
102
102
|
readonly initial: "idle";
|
|
103
103
|
readonly context: ({ input }: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-0bZuUtSP.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
|
|
3
|
+
import { l as trueSightLog } from "./trueSightService-BIO7pDks.esm.js";
|
|
4
|
+
import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-CZIq0IlV.esm.js";
|
|
5
5
|
import { t as addDeviceStats } from "./stats-DkK-f8JT.esm.js";
|
|
6
6
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
|
|
7
7
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
package/dist/dynamic-forms.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as Screen, n as InputType, r as Question, t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
|
|
2
|
-
import { c as DynamicFormsValidationErrors, n as DynamicFormsState, o as DynamicFormsResult, r as createDynamicFormsManager, s as dynamicFormsMachine, t as DynamicFormsManager } from "./dynamicFormsManager-
|
|
2
|
+
import { c as DynamicFormsValidationErrors, n as DynamicFormsState, o as DynamicFormsResult, r as createDynamicFormsManager, s as dynamicFormsMachine, t as DynamicFormsManager } from "./dynamicFormsManager-D5R_uxLQ.js";
|
|
3
3
|
export { type DynamicFormsConfig, type DynamicFormsManager, type DynamicFormsResult, type DynamicFormsState, type DynamicFormsValidationErrors, type InputType, type Question, type Screen, createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -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-CHBZqg0W.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-C_LF5Uv2.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
4
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-CHBZqg0W.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();
|
|
@@ -51,8 +51,8 @@ function hasAnyAnswer(answers) {
|
|
|
51
51
|
* (`https://www.figma.com/design/N6otHMuY2Hha5eBqRz0uC3/Forms-and-Data-entry---Latest-Designs?node-id=53-60567`).
|
|
52
52
|
* Family is `forms.*` with a single longform sub-family.
|
|
53
53
|
*
|
|
54
|
-
* `idle`, `loadingScreens`, `submitting`, `misconfigured`, and
|
|
55
|
-
* intentionally unmapped — the Figma canvas does not define discrete
|
|
54
|
+
* `idle`, `loadingScreens`, `submitting`, `submitFailed`, `misconfigured`, and
|
|
55
|
+
* `closed` are intentionally unmapped — the Figma canvas does not define discrete
|
|
56
56
|
* tracked-event surfaces for them. They fall back to the generic
|
|
57
57
|
* `<module>.<state>` default.
|
|
58
58
|
*/
|
|
@@ -97,6 +97,7 @@ function mapState(snapshot) {
|
|
|
97
97
|
nonEditableQuestionIds: context.nonEditableQuestionIds
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
+
if (typedSnapshot.matches("submitFailed")) return { status: "submitFailed" };
|
|
100
101
|
if (typedSnapshot.matches("success")) return { status: "success" };
|
|
101
102
|
if (typedSnapshot.matches("finished")) return {
|
|
102
103
|
status: "finished",
|
|
@@ -162,13 +163,23 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
162
163
|
/**
|
|
163
164
|
* Submits the current screen's answers.
|
|
164
165
|
* Transitions to 'submitting', then advances to the next screen or 'finished'.
|
|
165
|
-
* Answer
|
|
166
|
+
* Answer-content rejections (4xx) are fire-and-forget and do not block
|
|
167
|
+
* progression; a server-side failure (5xx / no round-trip) lands in
|
|
168
|
+
* 'submitFailed', where `retry()` re-submits.
|
|
166
169
|
*/
|
|
167
170
|
submit() {
|
|
168
171
|
trackElementClicked?.("submit");
|
|
169
172
|
actor.send({ type: "SUBMIT" });
|
|
170
173
|
},
|
|
171
174
|
/**
|
|
175
|
+
* Re-submits the current screen after a server-side submission failure.
|
|
176
|
+
* Valid only in the 'submitFailed' state; ignored elsewhere.
|
|
177
|
+
*/
|
|
178
|
+
retry() {
|
|
179
|
+
trackElementClicked?.("retry");
|
|
180
|
+
actor.send({ type: "RETRY" });
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
172
183
|
* Dismisses the module from 'misconfigured' state.
|
|
173
184
|
* Fix the config (provide `screens` or `flowId`) rather than calling `reset()`.
|
|
174
185
|
*/
|
|
@@ -74,6 +74,14 @@ type DynamicFormsSubmittingState = {
|
|
|
74
74
|
/** questionIds prefilled with a non-editable value — render read-only. */
|
|
75
75
|
nonEditableQuestionIds: string[];
|
|
76
76
|
};
|
|
77
|
+
/**
|
|
78
|
+
* An answer POST failed on the server's side — HTTP 5xx, or a request that
|
|
79
|
+
* never completed a round-trip (offline / DNS / TLS). Retryable: call `retry()`
|
|
80
|
+
* to re-submit.
|
|
81
|
+
*/
|
|
82
|
+
type DynamicFormsSubmitFailedState = {
|
|
83
|
+
status: 'submitFailed';
|
|
84
|
+
};
|
|
77
85
|
/**
|
|
78
86
|
* All screens submitted — success screen visible for ~3 s before
|
|
79
87
|
* transitioning to `finished`.
|
|
@@ -112,7 +120,7 @@ type DynamicFormsAttemptsExhaustedState = {
|
|
|
112
120
|
/**
|
|
113
121
|
* Union of all possible dynamic forms manager states.
|
|
114
122
|
*/
|
|
115
|
-
type DynamicFormsState = DynamicFormsIdleState | DynamicFormsLoadingState | DynamicFormsInputtingState | DynamicFormsSubmittingState | DynamicFormsSuccessState | DynamicFormsFinishedState | DynamicFormsMisconfiguredState | DynamicFormsClosedState | DynamicFormsAttemptsExhaustedState;
|
|
123
|
+
type DynamicFormsState = DynamicFormsIdleState | DynamicFormsLoadingState | DynamicFormsInputtingState | DynamicFormsSubmittingState | DynamicFormsSubmitFailedState | DynamicFormsSuccessState | DynamicFormsFinishedState | DynamicFormsMisconfiguredState | DynamicFormsClosedState | DynamicFormsAttemptsExhaustedState;
|
|
116
124
|
/**
|
|
117
125
|
* Creates a dynamic forms manager for headless or UI-driven usage.
|
|
118
126
|
*
|
|
@@ -156,9 +164,16 @@ declare function createDynamicFormsManager(options: CreateDynamicFormsActorOptio
|
|
|
156
164
|
/**
|
|
157
165
|
* Submits the current screen's answers.
|
|
158
166
|
* Transitions to 'submitting', then advances to the next screen or 'finished'.
|
|
159
|
-
* Answer
|
|
167
|
+
* Answer-content rejections (4xx) are fire-and-forget and do not block
|
|
168
|
+
* progression; a server-side failure (5xx / no round-trip) lands in
|
|
169
|
+
* 'submitFailed', where `retry()` re-submits.
|
|
160
170
|
*/
|
|
161
171
|
submit(): void;
|
|
172
|
+
/**
|
|
173
|
+
* Re-submits the current screen after a server-side submission failure.
|
|
174
|
+
* Valid only in the 'submitFailed' state; ignored elsewhere.
|
|
175
|
+
*/
|
|
176
|
+
retry(): void;
|
|
162
177
|
/**
|
|
163
178
|
* Dismisses the module from 'misconfigured' state.
|
|
164
179
|
* Fix the config (provide `screens` or `flowId`) rather than calling `reset()`.
|
|
@@ -200,9 +215,16 @@ declare function createDynamicFormsManagerFromActor(actor: DynamicFormsActor): M
|
|
|
200
215
|
/**
|
|
201
216
|
* Submits the current screen's answers.
|
|
202
217
|
* Transitions to 'submitting', then advances to the next screen or 'finished'.
|
|
203
|
-
* Answer
|
|
218
|
+
* Answer-content rejections (4xx) are fire-and-forget and do not block
|
|
219
|
+
* progression; a server-side failure (5xx / no round-trip) lands in
|
|
220
|
+
* 'submitFailed', where `retry()` re-submits.
|
|
204
221
|
*/
|
|
205
222
|
submit(): void;
|
|
223
|
+
/**
|
|
224
|
+
* Re-submits the current screen after a server-side submission failure.
|
|
225
|
+
* Valid only in the 'submitFailed' state; ignored elsewhere.
|
|
226
|
+
*/
|
|
227
|
+
retry(): void;
|
|
206
228
|
/**
|
|
207
229
|
* Dismisses the module from 'misconfigured' state.
|
|
208
230
|
* Fix the config (provide `screens` or `flowId`) rather than calling `reset()`.
|
package/dist/{dynamicFormsStateMachine-BBKyGlO9.esm.js → dynamicFormsStateMachine-CHBZqg0W.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-D3B9mUHh.esm.js";
|
|
3
|
-
import {
|
|
3
|
+
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-3eSyevaX.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
6
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
|
@@ -115,6 +115,22 @@ var LoginHintSubmitError = class extends Error {
|
|
|
115
115
|
this.submitted = submitted;
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
|
+
/**
|
|
119
|
+
* Thrown from the submit actor when an answer POST fails for a reason that is
|
|
120
|
+
* the server's fault rather than the answer's — HTTP 5xx, or a request that
|
|
121
|
+
* never completed a round-trip (offline / DNS / TLS).
|
|
122
|
+
*
|
|
123
|
+
* Carries the answers already accepted before the failure so a retry re-POSTs
|
|
124
|
+
* only what didn't land.
|
|
125
|
+
*/
|
|
126
|
+
var ServerSubmitError = class extends Error {
|
|
127
|
+
constructor(submitted, cause) {
|
|
128
|
+
super("Form answer submission failed on the server");
|
|
129
|
+
this.name = "ServerSubmitError";
|
|
130
|
+
this.submitted = submitted;
|
|
131
|
+
this.cause = cause;
|
|
132
|
+
}
|
|
133
|
+
};
|
|
118
134
|
function transformAnswerValue(inputType, value) {
|
|
119
135
|
switch (inputType) {
|
|
120
136
|
case "CPF": return value.replace(/[-.]/g, "");
|
|
@@ -180,7 +196,10 @@ const dynamicFormsMachine = setup({
|
|
|
180
196
|
const { screen: formScreen, answers, submittedAnswers } = input;
|
|
181
197
|
const submitted = { ...submittedAnswers };
|
|
182
198
|
for (const question of formScreen.questions) {
|
|
183
|
-
const
|
|
199
|
+
const effectiveType = question.inputType ?? question.overrides ?? "TEXT";
|
|
200
|
+
const rawValue = answers[question.questionId] ?? "";
|
|
201
|
+
if (rawValue.trim() === "") continue;
|
|
202
|
+
const singleAnswer = transformAnswerValue(effectiveType, rawValue);
|
|
184
203
|
if (submitted[question.questionId] === singleAnswer) continue;
|
|
185
204
|
try {
|
|
186
205
|
await submitFormAnswer({
|
|
@@ -190,6 +209,7 @@ const dynamicFormsMachine = setup({
|
|
|
190
209
|
submitted[question.questionId] = singleAnswer;
|
|
191
210
|
} catch (error) {
|
|
192
211
|
if (error instanceof IncodeApiError && (error.status === INVALID_LOGIN_HINT_STATUS || error.status === LOGIN_HINT_LOCKED_STATUS)) throw new LoginHintSubmitError(question.questionId, error.status, submitted);
|
|
212
|
+
if (isServerError(error)) throw new ServerSubmitError(submitted, error);
|
|
193
213
|
}
|
|
194
214
|
}
|
|
195
215
|
return { success: true };
|
|
@@ -277,6 +297,11 @@ const dynamicFormsMachine = setup({
|
|
|
277
297
|
validationErrors: upsertKey(context.validationErrors, err.questionId, "forms.errors.invalidLoginHint"),
|
|
278
298
|
submittedAnswers: err.submitted
|
|
279
299
|
};
|
|
300
|
+
}),
|
|
301
|
+
retainSubmittedAnswers: assign(({ event }) => {
|
|
302
|
+
const err = event.error;
|
|
303
|
+
if (!(err instanceof ServerSubmitError)) return {};
|
|
304
|
+
return { submittedAnswers: err.submitted };
|
|
280
305
|
})
|
|
281
306
|
},
|
|
282
307
|
guards: {
|
|
@@ -289,6 +314,7 @@ const dynamicFormsMachine = setup({
|
|
|
289
314
|
const err = event.error;
|
|
290
315
|
return err instanceof LoginHintSubmitError && err.status === LOGIN_HINT_LOCKED_STATUS;
|
|
291
316
|
},
|
|
317
|
+
isServerSubmitFailure: ({ event }) => event.error instanceof ServerSubmitError,
|
|
292
318
|
isLoginHintInvalid: ({ event }) => {
|
|
293
319
|
const err = event.error;
|
|
294
320
|
return err instanceof LoginHintSubmitError && err.status === INVALID_LOGIN_HINT_STATUS;
|
|
@@ -394,9 +420,15 @@ const dynamicFormsMachine = setup({
|
|
|
394
420
|
target: "inputting",
|
|
395
421
|
actions: "setLoginHintError"
|
|
396
422
|
},
|
|
423
|
+
{
|
|
424
|
+
guard: "isServerSubmitFailure",
|
|
425
|
+
target: "submitFailed",
|
|
426
|
+
actions: "retainSubmittedAnswers"
|
|
427
|
+
},
|
|
397
428
|
{ target: "inputting" }
|
|
398
429
|
]
|
|
399
430
|
} },
|
|
431
|
+
submitFailed: { on: { RETRY: { target: "submitting" } } },
|
|
400
432
|
success: { after: { 3e3: {
|
|
401
433
|
target: "finished",
|
|
402
434
|
actions: "markCompleted"
|
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-Bfmyxinu.esm.js";
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-Cp6b6_Rf.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-x7MaCF3a.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-ijlbX_Wx.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
4
|
+
import { t as ekybMachine } from "./ekybStateMachine-Cp6b6_Rf.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-D3B9mUHh.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-Bfmyxinu.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.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-BRSu_aGA.esm.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-Bx-xotVy.esm.js";
|
|
2
2
|
export { AE_CONSENT_KEYS, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
|
@@ -2,7 +2,7 @@ import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
|
2
2
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
5
|
-
import {
|
|
5
|
+
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-3eSyevaX.esm.js";
|
|
6
6
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
8
8
|
import { t as externalFetch } from "./externalFetch-BKBThAUC.esm.js";
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -12,13 +12,13 @@ import { n as BaseWasmProvider } from "./FaceDetectionProvider-Cn1wS-sA.js";
|
|
|
12
12
|
import "./deepsightService-MZOpj7Vp.js";
|
|
13
13
|
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-B3-y3IRx.js";
|
|
14
14
|
import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-DCgEidHz.js";
|
|
15
|
-
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-
|
|
15
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-3Pbtj-RV.js";
|
|
16
16
|
import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
|
|
17
17
|
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-cSd2MrOQ.js";
|
|
18
18
|
import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-8-W2KY4n.js";
|
|
19
19
|
import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, t as CustomWatchlistManager } from "./customWatchlistManager-PBWHr_oM.js";
|
|
20
20
|
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-DD0qtFdE.js";
|
|
21
|
-
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-
|
|
21
|
+
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-D5R_uxLQ.js";
|
|
22
22
|
import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-Dzswb_b8.js";
|
|
23
23
|
import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
|
|
24
24
|
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CADXW_9X.js";
|
|
@@ -28,10 +28,10 @@ import { i as createIdCaptureManagerFromActor, k as IdCaptureActor, n as IdCaptu
|
|
|
28
28
|
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBU8Lq0O.js";
|
|
29
29
|
import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
|
|
30
30
|
import { i as WatchlistForBusinessState, l as WatchlistForBusinessActor, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager } from "./watchlistForBusinessManager-CsnJnG-C.js";
|
|
31
|
-
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-
|
|
31
|
+
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-BFDI7iFK.js";
|
|
32
32
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
|
|
33
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
34
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-
|
|
33
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-BJnylLZO.js";
|
|
34
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-BF_cXZq8.js";
|
|
35
35
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-BD2PvT5B.js";
|
|
36
36
|
import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-DGBSWz2_.js";
|
|
37
37
|
import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-Cz744E5S.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-CN-owHPJ.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-0bZuUtSP.esm.js";
|
|
3
|
-
import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer
|
|
3
|
+
import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer-CZIq0IlV.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
|
-
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-
|
|
6
|
+
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-Bx-xotVy.esm.js";
|
|
7
7
|
import { n as createAntifraudManagerFromActor } from "./antifraudManager-Bg9ynGum.esm.js";
|
|
8
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
9
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
8
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-Bv167dJ_.esm.js";
|
|
9
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CjdHY09X.esm.js";
|
|
10
10
|
import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-Bfvkq7Cy.esm.js";
|
|
11
11
|
import { n as createConsentManagerFromActor } from "./consentManager-B5Vqdez-.esm.js";
|
|
12
12
|
import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-QMOGwHXR.esm.js";
|
|
@@ -14,12 +14,12 @@ import { n as createCurpValidationManagerFromActor } from "./curpValidationManag
|
|
|
14
14
|
import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-2j_PBq4U.esm.js";
|
|
15
15
|
import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-DUVrEdw9.esm.js";
|
|
16
16
|
import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-BqY_B0Ii.esm.js";
|
|
17
|
-
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-
|
|
18
|
-
import { n as createEkybManagerFromActor } from "./ekybManager-
|
|
17
|
+
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-C_LF5Uv2.esm.js";
|
|
18
|
+
import { n as createEkybManagerFromActor } from "./ekybManager-x7MaCF3a.esm.js";
|
|
19
19
|
import { n as createEkycManagerFromActor } from "./ekycManager-CmQBpeiI.esm.js";
|
|
20
20
|
import { n as createEmailManagerFromActor } from "./emailManager-B5ek_UfM.esm.js";
|
|
21
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
22
|
-
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
21
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-H2WLUZKr.esm.js";
|
|
22
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-D8KY-mW1.esm.js";
|
|
23
23
|
import { n as createPhoneManagerFromActor } from "./phoneManager-N1-sbrY4.esm.js";
|
|
24
24
|
import { n as createWatchlistManagerFromActor } from "./watchlistManager-CI8BHFob.esm.js";
|
|
25
25
|
import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-CpuuB1J2.esm.js";
|
|
@@ -29,7 +29,7 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
|
|
|
29
29
|
import { n as createIdOcrManagerFromActor } from "./idOcrManager-DHU22hVn.esm.js";
|
|
30
30
|
import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-DsFzdTwA.esm.js";
|
|
31
31
|
import { n as createSignatureManagerFromActor } from "./signatureManager-ChsB-nMD.esm.js";
|
|
32
|
-
import { n as createGeolocationManagerFromActor } from "./geolocationManager-
|
|
32
|
+
import { n as createGeolocationManagerFromActor } from "./geolocationManager-BaHIjwWE.esm.js";
|
|
33
33
|
import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-TjC9iVjH.esm.js";
|
|
34
34
|
import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-CyaixD0D.esm.js";
|
|
35
35
|
import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-Caal2zyV.esm.js";
|
package/dist/{faceCaptureManagerFactory-D7HtcTGD.esm.js → faceCaptureManagerFactory-BReY4BtR.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
|
-
import { r as concealmentToAvatar } from "./faceCaptureSetup-
|
|
4
|
+
import { r as concealmentToAvatar } from "./faceCaptureSetup-Bv167dJ_.esm.js";
|
|
5
5
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-CyCdsfox.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
7
7
|
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-J5S1dEIf.esm.js";
|
|
@@ -3,7 +3,7 @@ import { t as isAndroid } from "./platform-DkcRc9JV.esm.js";
|
|
|
3
3
|
import { i as assign, r as sendTo, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
5
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-J5S1dEIf.esm.js";
|
|
6
|
-
import { c as sendLabelInspectionEvent, d as stopRecording, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession, u as startRecordingSession } from "./onDeviceFaceResults-
|
|
6
|
+
import { c as sendLabelInspectionEvent, d as stopRecording, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession, u as startRecordingSession } from "./onDeviceFaceResults-CXmiMB_O.esm.js";
|
|
7
7
|
import { i as uploadDeepsightVideo } from "./recordingsRepository-CCWy13M-.esm.js";
|
|
8
8
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
9
9
|
import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-DQKaRise.esm.js";
|
|
@@ -789,7 +789,7 @@ const faceCaptureMachine = setup({
|
|
|
789
789
|
detectionStatus: () => "idle",
|
|
790
790
|
capturedImage: () => void 0
|
|
791
791
|
}),
|
|
792
|
-
|
|
792
|
+
prepareStreamForRetry: assign(({ context }) => {
|
|
793
793
|
context.frameCapturer?.dispose();
|
|
794
794
|
if (context.stream) stopStream(context.stream);
|
|
795
795
|
context.provider?.dispose();
|
|
@@ -1366,7 +1366,7 @@ const faceCaptureMachine = setup({
|
|
|
1366
1366
|
actions: [
|
|
1367
1367
|
"resetDetection",
|
|
1368
1368
|
"clearUploadFailure",
|
|
1369
|
-
"
|
|
1369
|
+
"prepareStreamForRetry"
|
|
1370
1370
|
]
|
|
1371
1371
|
},
|
|
1372
1372
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __toESM } from "./rolldown-runtime-FDOR9p9I.esm.js";
|
|
2
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
2
|
+
import { t as SDK_VERSION } from "./sdkVersion-CZd6xrgl.esm.js";
|
|
3
3
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
4
4
|
let currentEnvironment;
|
|
5
5
|
/** Effective tier: the explicitly-set value, else the default (see note above). */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-BumvjbYe.esm.js";
|
|
2
2
|
export { EXPERIMENT_UNAVAILABLE_SENTINEL, ONBOARDING_WEB_SDK_PARAMETER_STORE, booleanParam, defineExperimentParams, enumParam, exposeExperimentOnce, getExperiment, getFeatureDynamicConfig, getFeatureGate, getFeatureManagementVersion, getFeatureParameterStore, getIsFeatureManagementInitialized, getLayer, logEvent, numberParam, resolveExperiment, resolveExperimentOnce, stringParam, subscribeFeatureManagement, updateFeatureManagementUser };
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { v as addEvent } from "./events-ijlbX_Wx.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-Bfmyxinu.esm.js";
|
|
3
3
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
|
-
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-
|
|
6
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
5
|
+
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-Bzh4Krlm.esm.js";
|
|
6
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BPkyrLp_.esm.js";
|
|
7
7
|
import { n as isAdvanceableError } from "./advanceableErrors-CpF2cBy6.esm.js";
|
|
8
8
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
9
9
|
const noOpFlowModuleMachine = setup({}).createMachine({
|
package/dist/{flowCompletionService-Vud0ynuS.esm.js → flowCompletionService-Bzh4Krlm.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-D3B9mUHh.esm.js";
|
|
3
|
-
import {
|
|
3
|
+
import { i as toIncodeApiError } from "./apiError-3eSyevaX.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
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser } from "./feature-management-BumvjbYe.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-CZIq0IlV.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
5
|
-
import {
|
|
6
|
-
import "./session-
|
|
5
|
+
import { i as toIncodeApiError } from "./apiError-3eSyevaX.esm.js";
|
|
6
|
+
import "./session-CkgbWFiv.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-BaHIjwWE.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-C6rbMxr_.esm.js";
|
|
3
3
|
export { createGeolocationManager, geolocationMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
3
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
3
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-C6rbMxr_.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
5
5
|
var BrowserGeolocationProvider = class {
|
|
6
6
|
getCurrentPosition() {
|
package/dist/{geolocationStateMachine-DBNY4kwN.esm.js → geolocationStateMachine-C6rbMxr_.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-D3B9mUHh.esm.js";
|
|
3
3
|
import { a as isIOS, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
|
|
4
|
-
import { n as isConnectivityError } from "./apiError-
|
|
4
|
+
import { n as isConnectivityError } from "./apiError-3eSyevaX.esm.js";
|
|
5
5
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
7
7
|
//#region src/modules/geolocation/geolocationServices.ts
|
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-CJ7Yl9K-.js";
|
|
2
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-
|
|
2
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-BF_cXZq8.js";
|
|
3
3
|
//#region src/modules/id-ocr/idOcrFields.d.ts
|
|
4
4
|
declare const OCR_FIELDS: OcrFieldConfig[];
|
|
5
5
|
declare const getOcrFields: (config: Pick<IdOcrConfig, "cpfOnly" | "flowId">) => OcrFieldConfig[];
|