@incodetech/core 0.0.0-dev-20261002-1c5da92a → 0.0.0-dev-20261002-7e68ce7a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FaceDetectionProvider-C77quHWy.esm.js → FaceDetectionProvider-BIgdSkHs.esm.js} +85 -5
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-ODi1eUB6.esm.js → apiError-B7C2i04b.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CSbijmLC.esm.js → authenticationManager-BboXPVJ4.esm.js} +3 -3
- package/dist/{authenticationStateMachine-hQ55SpwE.esm.js → authenticationStateMachine-DvPvONji.esm.js} +3 -3
- package/dist/{createCameraCycleOwnership-26-cuXnc.esm.js → createCameraCycleOwnership-CVNcIL95.esm.js} +23 -5
- package/dist/{deepsightLoader-BQ8lqtEX.esm.js → deepsightLoader-D9O6b45T.esm.js} +3 -3
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-CYM906GP.esm.js → dynamicFormsManager-DnCnvG1a.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-CKkYeozQ.esm.js → dynamicFormsStateMachine-CYXP2bWn.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-DHec76Vk.esm.js → ekybManager-q-VSUBUQ.esm.js} +1 -1
- package/dist/{ekybStateMachine-BQEEN3Ci.esm.js → ekybStateMachine-Dhio1vn7.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-Bfp-HYr_.esm.js → electronicSignatureManager-DydLFTCX.esm.js} +1 -1
- package/dist/extensibility.d.ts +3 -3
- package/dist/extensibility.esm.js +11 -11
- package/dist/{faceCaptureManagerFactory-D_kXgimx.esm.js → faceCaptureManagerFactory-CHNVNEP_.esm.js} +1 -1
- package/dist/{faceCaptureSetup-iYTWNwZO.esm.js → faceCaptureSetup-BzG44cuD.esm.js} +12 -9
- package/dist/{feature-management-DOFxCZOJ.esm.js → feature-management-DClH0UkN.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.d.ts +2 -2
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-CNULadlv.esm.js → fieldComparisonManager-CEu5az0c.esm.js} +31 -13
- package/dist/{fieldComparisonManager-DN9b5rtc.d.ts → fieldComparisonManager-CUX4gza2.d.ts} +4 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-DcsWuQaJ.esm.js → flowCompletionService-DRpB7aag.esm.js} +1 -1
- package/dist/{flowServices-Ccug1Ef7.esm.js → flowServices-BABr3Ov8.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-BQbuV_j5.esm.js → geolocationManager-DykhXCSG.esm.js} +1 -1
- package/dist/{geolocationStateMachine-CMmO7i7t.esm.js → geolocationStateMachine-DtQJPfbx.esm.js} +1 -1
- package/dist/id-selfie-flow.esm.js +7 -8
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-BWoJ1q9U.esm.js → idCaptureDefaults-BmgACU-z.esm.js} +1 -1
- package/dist/{idCaptureManager-yN72O0WY.esm.js → idCaptureManager-CQkzCUxv.esm.js} +3 -3
- package/dist/{idCaptureServices-CtRtLJOZ.esm.js → idCaptureServices-BVTu_jJW.esm.js} +3 -3
- package/dist/{idCaptureStateMachine-DEdd1aY3.esm.js → idCaptureStateMachine-DfyGv-pZ.esm.js} +10 -10
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-B1birg5X.d.ts} +4 -4
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-B6glP66e.d.ts → mandatoryConsentManager-CdBVHXGB.d.ts} +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-DFzW2mOZ.esm.js → runChildModule-CZbSjlSO.esm.js} +1 -1
- package/dist/{sdkVersion-ChTpPWse.esm.js → sdkVersion-CEzq0bPr.esm.js} +1 -1
- package/dist/selfie.esm.js +7 -7
- package/dist/selfieErrorUtils-C9O4yx2t.esm.js +21 -0
- package/dist/{selfieManager-BzotBa8D.esm.js → selfieManager-B331XzBJ.esm.js} +3 -3
- package/dist/{selfieStateMachine-CV48ZQIY.esm.js → selfieStateMachine-DbCcOMzb.esm.js} +3 -3
- package/dist/{session-dGK79ZBO.esm.js → session-DHMyVkCm.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-BQqoLy-T.esm.js → sessionInitializer-Dkb386bz.esm.js} +3 -3
- package/dist/{setup-CC9ktDrJ.esm.js → setup-BIKgMZ9N.esm.js} +4 -4
- package/dist/{trueSightService-CQWIPXFn.esm.js → trueSightService-DsHApmSr.esm.js} +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-D8bllt1g.esm.js → videoSelfieCameraWarmer-Ds3B8RK_.esm.js} +4 -4
- package/dist/wasm.esm.js +2 -2
- package/dist/workflow.esm.js +14 -14
- package/package.json +3 -3
- package/dist/selfieErrorUtils-CLXOOKJT.esm.js +0 -90
package/dist/{FaceDetectionProvider-C77quHWy.esm.js → FaceDetectionProvider-BIgdSkHs.esm.js}
RENAMED
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
1
|
+
import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-DsHApmSr.esm.js";
|
|
2
2
|
import { s as wasmRuntime } from "./warmup-DLq_t-Zu.esm.js";
|
|
3
3
|
import { i as BaseWasmProvider } from "./safeStorage-Q_iUpxa8.esm.js";
|
|
4
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
5
|
-
import "./
|
|
4
|
+
import { t as ensureWasmPipelines } from "./setup-BIKgMZ9N.esm.js";
|
|
5
|
+
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
6
|
+
import "./sessionInitializer-Dkb386bz.esm.js";
|
|
7
|
+
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
6
8
|
import { t as addDeviceStats } from "./stats-Dz3XWA64.esm.js";
|
|
7
9
|
import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
|
|
8
10
|
import { i as requestCameraAccess, o as stopCameraStream, r as getCameraReacquisitionConstraints } from "./camera-sIa9ceW2.esm.js";
|
|
11
|
+
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
9
12
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
10
13
|
import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-CMjkhS2x.esm.js";
|
|
11
14
|
import { i as hasBackCamera, n as getBackCameraStream, r as getDesktopCameraStream, t as ensureFrontCameraStream } from "./backCameraStream-CMvXj4X4.esm.js";
|
|
15
|
+
import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
|
|
12
16
|
//#region src/internal/faceCapture/onDeviceFaceResults.ts
|
|
13
17
|
/**
|
|
14
18
|
* On-device still-face capture is owned by the protected camera-cycle actor.
|
|
@@ -17,6 +21,82 @@ import { i as hasBackCamera, n as getBackCameraStream, r as getDesktopCameraStre
|
|
|
17
21
|
*/
|
|
18
22
|
const isOnDeviceMode = (config) => config.onDeviceFaceResultsSubmissionEnabled === true;
|
|
19
23
|
//#endregion
|
|
24
|
+
//#region src/internal/faceCapture/faceUploadErrorCode.ts
|
|
25
|
+
/** `status` values in the body of a 400 from a face upload (`/omni/add/face`). */
|
|
26
|
+
const FACE_UPLOAD_ERROR_CODES = {
|
|
27
|
+
3004: FACE_ERROR_CODES.FACE_NOT_FOUND,
|
|
28
|
+
3005: FACE_ERROR_CODES.FACE_NOT_FOUND,
|
|
29
|
+
3006: FACE_ERROR_CODES.TOO_BLURRY,
|
|
30
|
+
3007: FACE_ERROR_CODES.TOO_DARK,
|
|
31
|
+
4010: FACE_ERROR_CODES.MULTIPLE_FACES,
|
|
32
|
+
4019: FACE_ERROR_CODES.FACE_NOT_FOUND,
|
|
33
|
+
4077: FACE_ERROR_CODES.BAD_PHOTO_QUALITY,
|
|
34
|
+
4078: FACE_ERROR_CODES.FACE_OCCLUDED
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Maps a rejected face upload to the error the capture screen shows. Only a
|
|
38
|
+
* 400 carries a verdict on the face; any other HTTP status is a server error.
|
|
39
|
+
*/
|
|
40
|
+
function getFaceUploadErrorCode(httpStatus, responseStatus) {
|
|
41
|
+
if (httpStatus !== 400) return FACE_ERROR_CODES.SERVER;
|
|
42
|
+
if (responseStatus === void 0) return FACE_ERROR_CODES.BAD_REQUEST;
|
|
43
|
+
return FACE_UPLOAD_ERROR_CODES[responseStatus] ?? FACE_ERROR_CODES.BAD_REQUEST;
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/modules/selfie/selfieUploadService.ts
|
|
47
|
+
/**
|
|
48
|
+
* Uploads a selfie image to the backend.
|
|
49
|
+
*/
|
|
50
|
+
async function uploadSelfie({ encryptedBase64Image, faceCoordinates, signal, metadata, recordingId, imageType = "selfie", deepsightService }) {
|
|
51
|
+
try {
|
|
52
|
+
const payload = {
|
|
53
|
+
base64Image: encryptedBase64Image,
|
|
54
|
+
faceCoordinates: faceCoordinates ?? void 0,
|
|
55
|
+
encrypted: true,
|
|
56
|
+
clientInfo: { deviceClass: getDeviceClass() },
|
|
57
|
+
metadata: metadata ?? void 0
|
|
58
|
+
};
|
|
59
|
+
const query = { imageType };
|
|
60
|
+
if (recordingId) query.recordingId = recordingId;
|
|
61
|
+
const res = await api.post(endpoints.selfie, payload, {
|
|
62
|
+
signal,
|
|
63
|
+
query
|
|
64
|
+
});
|
|
65
|
+
if (!res.ok) throw new Error(`POST ${endpoints.selfie} failed: ${res.status} ${res.statusText}`);
|
|
66
|
+
if (deepsightService) addDeviceStats({
|
|
67
|
+
frontIdStatsAnalysisStatus: "",
|
|
68
|
+
backIdStatsAnalysisStatus: "",
|
|
69
|
+
selfieStatsAnalysisStatus: deepsightService.getAnalysisStatus(),
|
|
70
|
+
motionStatus: deepsightService.getMotionStatus()
|
|
71
|
+
});
|
|
72
|
+
return res.data;
|
|
73
|
+
} catch (error) {
|
|
74
|
+
const errorCode = getFaceErrorCodeFromHttpError(error);
|
|
75
|
+
throw withTransportStatus(new Error(errorCode ?? FACE_ERROR_CODES.SERVER), error);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Copies the HTTP status of `source` onto `target`. The code alone cannot say
|
|
80
|
+
* whether the request got a verdict or never reached the backend — a network
|
|
81
|
+
* failure and a 5xx both map to `SERVER_ERROR` — so a caller that retries
|
|
82
|
+
* transport failures needs the status to survive this mapping.
|
|
83
|
+
*/
|
|
84
|
+
function withTransportStatus(target, source) {
|
|
85
|
+
if (typeof source === "object" && source !== null && "status" in source && typeof source.status === "number") return Object.assign(target, { status: source.status });
|
|
86
|
+
return target;
|
|
87
|
+
}
|
|
88
|
+
const getFaceErrorCodeFromHttpError = (error) => {
|
|
89
|
+
const err = error;
|
|
90
|
+
if (err.ok !== false || typeof err.status !== "number") return;
|
|
91
|
+
return getFaceUploadErrorCode(err.status, typeof err.data?.status === "number" ? err.data.status : void 0);
|
|
92
|
+
};
|
|
93
|
+
async function processFace(imageType = "selfie", signal) {
|
|
94
|
+
return (await api.post(endpoints.processFace, {}, {
|
|
95
|
+
query: { imageType },
|
|
96
|
+
signal
|
|
97
|
+
})).data;
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
20
100
|
//#region src/internal/faceCapture/faceCaptureServices.ts
|
|
21
101
|
function sendLabelInspectionEvent() {
|
|
22
102
|
return addDeviceStats({ cameraLabelInspectionStatus: "FAIL" });
|
|
@@ -156,7 +236,7 @@ function startDetection(params) {
|
|
|
156
236
|
};
|
|
157
237
|
}
|
|
158
238
|
async function initializeDeepsightSession(options) {
|
|
159
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
239
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-D9O6b45T.esm.js");
|
|
160
240
|
return loadDeepsightSession({
|
|
161
241
|
ds: options.ds,
|
|
162
242
|
storage: options.storage
|
|
@@ -428,4 +508,4 @@ var FaceDetectionProvider = class extends BaseWasmProvider {
|
|
|
428
508
|
}
|
|
429
509
|
};
|
|
430
510
|
//#endregion
|
|
431
|
-
export { sendLabelInspectionEvent as a,
|
|
511
|
+
export { sendLabelInspectionEvent as a, processFace as c, isOnDeviceMode as d, initializeDeepsightSession as i, uploadSelfie as l, encryptSelfieImage as n, startDetection as o, initializeCamera as r, stopStream as s, FaceDetectionProvider as t, getFaceUploadErrorCode as u };
|
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-DydLFTCX.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-DvPvONji.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BboXPVJ4.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-CSbijmLC.esm.js → authenticationManager-BboXPVJ4.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
|
|
2
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
2
|
+
import { l as BrowserStorageProvider } from "./setup-BIKgMZ9N.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CHNVNEP_.esm.js";
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DvPvONji.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationActor.ts
|
|
8
8
|
function createAuthenticationActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
3
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import {
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-BzG44cuD.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode } from "./FaceDetectionProvider-BIgdSkHs.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
|
-
import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-
|
|
6
|
+
import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-CVNcIL95.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
8
8
|
const AUTH_ERROR_MAP = {
|
|
9
9
|
SPOOF_ATTEMPT_DETECTED: FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED,
|
|
@@ -163,6 +163,21 @@ const cameraCycleProvider = new CameraCycleProvider();
|
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region src/internal/cameraCycle/protectedAttemptActor.ts
|
|
165
165
|
/**
|
|
166
|
+
* Reads the HTTP status and the body's numeric `status` from a rejected
|
|
167
|
+
* protected upload, so the face flow can show why the backend rejected the
|
|
168
|
+
* capture. Only these two numbers leave the actor, never the response itself.
|
|
169
|
+
*/
|
|
170
|
+
const getHttpFailureDetails = (error) => {
|
|
171
|
+
if (typeof error !== "object" || error === null) return {};
|
|
172
|
+
const { status, data } = error;
|
|
173
|
+
if (typeof status !== "number") return {};
|
|
174
|
+
const responseStatus = typeof data === "object" && data !== null ? data.status : void 0;
|
|
175
|
+
return typeof responseStatus === "number" ? {
|
|
176
|
+
httpStatus: status,
|
|
177
|
+
responseStatus
|
|
178
|
+
} : { httpStatus: status };
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
166
181
|
* Runs the protected lifecycle inside an owning callback actor. Keeping the
|
|
167
182
|
* implementation callable lets domain controllers compose the exact same
|
|
168
183
|
* lifecycle without placing its capability-bearing input in machine context.
|
|
@@ -228,14 +243,15 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
228
243
|
input.releaseUnadoptedStream(stream);
|
|
229
244
|
} catch {}
|
|
230
245
|
};
|
|
231
|
-
const reportFailure = (stage, code) => {
|
|
246
|
+
const reportFailure = (stage, code, http = {}) => {
|
|
232
247
|
if (!active) return;
|
|
233
248
|
sendParent({
|
|
234
249
|
type: "PROTECTED_ATTEMPT_FAILED",
|
|
235
250
|
attemptId: input.attemptId,
|
|
236
251
|
failure: {
|
|
237
252
|
stage,
|
|
238
|
-
code
|
|
253
|
+
code,
|
|
254
|
+
...http
|
|
239
255
|
}
|
|
240
256
|
});
|
|
241
257
|
};
|
|
@@ -563,16 +579,18 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
563
579
|
if (backgrounded) pendingDeliveryEvent = event;
|
|
564
580
|
else sendParent(event);
|
|
565
581
|
}
|
|
566
|
-
} catch {
|
|
582
|
+
} catch (error) {
|
|
583
|
+
const http = getHttpFailureDetails(error);
|
|
567
584
|
if (backgrounded) pendingDeliveryEvent = {
|
|
568
585
|
type: "PROTECTED_ATTEMPT_FAILED",
|
|
569
586
|
attemptId: input.attemptId,
|
|
570
587
|
failure: {
|
|
571
588
|
stage: "upload",
|
|
572
|
-
code: "protected-attempt-upload-failed"
|
|
589
|
+
code: "protected-attempt-upload-failed",
|
|
590
|
+
...http
|
|
573
591
|
}
|
|
574
592
|
};
|
|
575
|
-
else reportFailure("upload", "protected-attempt-upload-failed");
|
|
593
|
+
else reportFailure("upload", "protected-attempt-upload-failed", http);
|
|
576
594
|
} finally {
|
|
577
595
|
deliveryInFlight = false;
|
|
578
596
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as trueSightLog } from "./trueSightService-
|
|
1
|
+
import { l as trueSightLog } from "./trueSightService-DsHApmSr.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
|
|
3
|
-
import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-
|
|
4
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
3
|
+
import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-Dkb386bz.esm.js";
|
|
4
|
+
import { t as SDK_VERSION } from "./sdkVersion-CEzq0bPr.esm.js";
|
|
5
5
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
6
6
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
7
7
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DyNj8RY_.esm.js";
|
|
@@ -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-CYXP2bWn.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-DnCnvG1a.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-Bg3FuvIs.esm.js";
|
|
4
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
4
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-CYXP2bWn.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-CKkYeozQ.esm.js → dynamicFormsStateMachine-CYXP2bWn.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-Bs3D8B_G.esm.js";
|
|
3
|
-
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-
|
|
3
|
+
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-B7C2i04b.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.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 { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
1
|
+
import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-BABr3Ov8.esm.js";
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-Dhio1vn7.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-q-VSUBUQ.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-Bg3FuvIs.esm.js";
|
|
4
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
4
|
+
import { t as ekybMachine } from "./ekybStateMachine-Dhio1vn7.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-Bs3D8B_G.esm.js";
|
|
3
|
-
import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-
|
|
3
|
+
import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-BABr3Ov8.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.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-CoXo7lfZ.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-DydLFTCX.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-Bs3D8B_G.esm.js";
|
|
5
|
-
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-
|
|
5
|
+
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-B7C2i04b.esm.js";
|
|
6
6
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
8
8
|
import { t as externalFetch } from "./externalFetch-CEp51O83.esm.js";
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -27,9 +27,9 @@ import { G as WasmUtilProvider, i as createIdCaptureManagerFromActor, n as IdCap
|
|
|
27
27
|
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BO-LTih5.js";
|
|
28
28
|
import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DJQOd8Pw.js";
|
|
29
29
|
import { i as WatchlistForBusinessState, l as WatchlistForBusinessActor, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager } from "./watchlistForBusinessManager-B3GDPZrr.js";
|
|
30
|
-
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-
|
|
31
|
-
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-
|
|
32
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
30
|
+
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-B1birg5X.js";
|
|
31
|
+
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CUX4gza2.js";
|
|
32
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-CdBVHXGB.js";
|
|
33
33
|
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-DT3kPIB3.js";
|
|
34
34
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-CVsvpVbQ.js";
|
|
35
35
|
import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-BpVt_Jv7.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
|
|
2
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
3
|
-
import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-
|
|
2
|
+
import { l as BrowserStorageProvider } from "./setup-BIKgMZ9N.esm.js";
|
|
3
|
+
import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-Dkb386bz.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
6
|
-
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-
|
|
6
|
+
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-DydLFTCX.esm.js";
|
|
7
7
|
import { n as createAntifraudManagerFromActor } from "./antifraudManager-GZ1hVKjb.esm.js";
|
|
8
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
9
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
8
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-BzG44cuD.esm.js";
|
|
9
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-BboXPVJ4.esm.js";
|
|
10
10
|
import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-J6v-R_BZ.esm.js";
|
|
11
11
|
import { n as createConsentManagerFromActor } from "./consentManager-C-G9BmH0.esm.js";
|
|
12
12
|
import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-De2pPrbH.esm.js";
|
|
@@ -14,22 +14,22 @@ import { n as createCurpValidationManagerFromActor } from "./curpValidationManag
|
|
|
14
14
|
import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-Dv6q4FDh.esm.js";
|
|
15
15
|
import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-DEBrvDy2.esm.js";
|
|
16
16
|
import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-DLSjvJWz.esm.js";
|
|
17
|
-
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-
|
|
18
|
-
import { n as createEkybManagerFromActor } from "./ekybManager-
|
|
17
|
+
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-DnCnvG1a.esm.js";
|
|
18
|
+
import { n as createEkybManagerFromActor } from "./ekybManager-q-VSUBUQ.esm.js";
|
|
19
19
|
import { n as createEkycManagerFromActor } from "./ekycManager-qCfa2cno.esm.js";
|
|
20
20
|
import { n as createEmailManagerFromActor } from "./emailManager-BG1i_Sg_.esm.js";
|
|
21
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
22
|
-
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
21
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-B331XzBJ.esm.js";
|
|
22
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-CQkzCUxv.esm.js";
|
|
23
23
|
import { n as createPhoneManagerFromActor } from "./phoneManager-ZqgujdZa.esm.js";
|
|
24
24
|
import { n as createWatchlistManagerFromActor } from "./watchlistManager-C2fFRjfx.esm.js";
|
|
25
25
|
import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-Lcvy9ZUU.esm.js";
|
|
26
26
|
import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-C7fNvcKG.esm.js";
|
|
27
|
-
import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-
|
|
27
|
+
import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-CEu5az0c.esm.js";
|
|
28
28
|
import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentManager-COQpDZ3g.esm.js";
|
|
29
29
|
import { n as createIdOcrManagerFromActor } from "./idOcrManager-rcTMBnAD.esm.js";
|
|
30
30
|
import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-BV0CBEHA.esm.js";
|
|
31
31
|
import { n as createSignatureManagerFromActor } from "./signatureManager-CmIjQ-cK.esm.js";
|
|
32
|
-
import { n as createGeolocationManagerFromActor } from "./geolocationManager-
|
|
32
|
+
import { n as createGeolocationManagerFromActor } from "./geolocationManager-DykhXCSG.esm.js";
|
|
33
33
|
import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-BLo9Ai_v.esm.js";
|
|
34
34
|
import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-BE5cnWcf.esm.js";
|
|
35
35
|
import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-DmDy-g8s.esm.js";
|
package/dist/{faceCaptureManagerFactory-D_kXgimx.esm.js → faceCaptureManagerFactory-CHNVNEP_.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-Bg3FuvIs.esm.js";
|
|
4
|
-
import { r as concealmentToAvatar } from "./faceCaptureSetup-
|
|
4
|
+
import { r as concealmentToAvatar } from "./faceCaptureSetup-BzG44cuD.esm.js";
|
|
5
5
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DyNj8RY_.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
7
7
|
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-B9IqVf3c.esm.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { l as trueSightLog, m as isTrueSightTesting } from "./trueSightService-
|
|
1
|
+
import { l as trueSightLog, m as isTrueSightTesting } from "./trueSightService-DsHApmSr.esm.js";
|
|
2
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
3
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
|
-
import "./sessionInitializer-
|
|
4
|
+
import "./sessionInitializer-Dkb386bz.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-Dz3XWA64.esm.js";
|
|
7
7
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
8
8
|
import { i as assign, n as enqueueActions, r as sendTo, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
9
9
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
10
10
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-B9IqVf3c.esm.js";
|
|
11
|
-
import { a as sendLabelInspectionEvent, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
11
|
+
import { a as sendLabelInspectionEvent, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider, u as getFaceUploadErrorCode } from "./FaceDetectionProvider-BIgdSkHs.esm.js";
|
|
12
12
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
13
|
-
import { i as flagFaceManualReview, n as runProtectedAttempt, o as PROTECTED_CAPTURE_TARGET, r as cameraCycleProvider, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-
|
|
13
|
+
import { i as flagFaceManualReview, n as runProtectedAttempt, o as PROTECTED_CAPTURE_TARGET, r as cameraCycleProvider, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-CVNcIL95.esm.js";
|
|
14
14
|
import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-BNHdeFj8.esm.js";
|
|
15
15
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
16
16
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DS36X5Hh.esm.js";
|
|
@@ -1370,10 +1370,13 @@ const faceCaptureMachine = setup({
|
|
|
1370
1370
|
}),
|
|
1371
1371
|
setUploadResponseFromEvent: assign({ uploadResponse: ({ event }) => event.output }),
|
|
1372
1372
|
setProcessResponseFromEvent: assign({ processResponse: ({ event }) => event.output }),
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1373
|
+
setUploadFailureAndDecrement: assign(({ context, event }) => {
|
|
1374
|
+
const { httpStatus, responseStatus } = event.failure;
|
|
1375
|
+
return {
|
|
1376
|
+
uploadError: httpStatus === void 0 ? FACE_ERROR_CODES.SERVER : getFaceUploadErrorCode(httpStatus, responseStatus),
|
|
1377
|
+
attemptsRemaining: context.attemptsRemaining - 1
|
|
1378
|
+
};
|
|
1379
|
+
}),
|
|
1377
1380
|
sendLabelInspection: () => {
|
|
1378
1381
|
sendLabelInspectionEvent();
|
|
1379
1382
|
},
|
|
@@ -1789,7 +1792,7 @@ const faceCaptureMachine = setup({
|
|
|
1789
1792
|
{
|
|
1790
1793
|
target: ".uploadError",
|
|
1791
1794
|
guard: "isProtectedUploadFailure",
|
|
1792
|
-
actions: "
|
|
1795
|
+
actions: "setUploadFailureAndDecrement"
|
|
1793
1796
|
},
|
|
1794
1797
|
{
|
|
1795
1798
|
target: "#faceCapture.error",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __toESM } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
2
|
+
import { t as SDK_VERSION } from "./sdkVersion-CEzq0bPr.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-DClH0UkN.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 };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as FieldComparisonActor, c as FieldComparisonFields, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, o as fieldComparisonMachine, r as createFieldComparisonManager, s as FieldComparisonConfig, t as FieldComparisonManager } from "./fieldComparisonManager-
|
|
2
|
-
export { type FieldComparisonActor, type FieldComparisonConfig, type FieldComparisonFields, type FieldComparisonManager, type FieldComparisonState, createFieldComparisonManager, createFieldComparisonManagerFromActor, fieldComparisonMachine };
|
|
1
|
+
import { a as FieldComparisonActor, c as FieldComparisonFields, i as createFieldComparisonManagerFromActor, l as FieldComparisonValidationErrors, n as FieldComparisonState, o as fieldComparisonMachine, r as createFieldComparisonManager, s as FieldComparisonConfig, t as FieldComparisonManager } from "./fieldComparisonManager-CUX4gza2.js";
|
|
2
|
+
export { type FieldComparisonActor, type FieldComparisonConfig, type FieldComparisonFields, type FieldComparisonManager, type FieldComparisonState, type FieldComparisonValidationErrors, createFieldComparisonManager, createFieldComparisonManagerFromActor, fieldComparisonMachine };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createFieldComparisonManagerFromActor, r as fieldComparisonMachine, t as createFieldComparisonManager } from "./fieldComparisonManager-
|
|
1
|
+
import { n as createFieldComparisonManagerFromActor, r as fieldComparisonMachine, t as createFieldComparisonManager } from "./fieldComparisonManager-CEu5az0c.esm.js";
|
|
2
2
|
export { createFieldComparisonManager, createFieldComparisonManagerFromActor, fieldComparisonMachine };
|
package/dist/{fieldComparisonManager-CNULadlv.esm.js → fieldComparisonManager-CEu5az0c.esm.js}
RENAMED
|
@@ -12,10 +12,18 @@ async function submitFieldComparison(params, signal) {
|
|
|
12
12
|
}
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/modules/field-comparison/fieldComparisonUtils.ts
|
|
15
|
+
const REQUIRED_FIELD_ERROR = "dynamicForms.fieldRequired";
|
|
15
16
|
/** Returns true when both first and last name are non-empty after trimming. */
|
|
16
17
|
function isFormComplete(fields) {
|
|
17
18
|
return fields.firstName.trim() !== "" && fields.lastName.trim() !== "";
|
|
18
19
|
}
|
|
20
|
+
/** Returns required-field errors for every blank name. */
|
|
21
|
+
function validateRequiredFields(fields) {
|
|
22
|
+
const validationErrors = {};
|
|
23
|
+
if (fields.firstName.trim() === "") validationErrors.firstName = REQUIRED_FIELD_ERROR;
|
|
24
|
+
if (fields.lastName.trim() === "") validationErrors.lastName = REQUIRED_FIELD_ERROR;
|
|
25
|
+
return Object.keys(validationErrors).length > 0 ? validationErrors : void 0;
|
|
26
|
+
}
|
|
19
27
|
//#endregion
|
|
20
28
|
//#region src/modules/field-comparison/fieldComparisonStateMachine.ts
|
|
21
29
|
const emptyFields = () => ({
|
|
@@ -31,13 +39,21 @@ const fieldComparisonMachine = setup({
|
|
|
31
39
|
actors: { submitFields: fromPromise(async ({ input, signal }) => {
|
|
32
40
|
return submitFieldComparison({ customFields: input }, signal);
|
|
33
41
|
}) },
|
|
34
|
-
actions: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
...context.
|
|
38
|
-
[e.field]
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
actions: {
|
|
43
|
+
setField: assign(({ context, event }) => {
|
|
44
|
+
const e = event;
|
|
45
|
+
const validationErrors = { ...context.validationErrors };
|
|
46
|
+
delete validationErrors[e.field];
|
|
47
|
+
return {
|
|
48
|
+
fields: {
|
|
49
|
+
...context.fields,
|
|
50
|
+
[e.field]: e.value
|
|
51
|
+
},
|
|
52
|
+
validationErrors: Object.keys(validationErrors).length > 0 ? validationErrors : void 0
|
|
53
|
+
};
|
|
54
|
+
}),
|
|
55
|
+
setValidationErrors: assign(({ context }) => ({ validationErrors: validateRequiredFields(context.fields) }))
|
|
56
|
+
},
|
|
41
57
|
guards: {
|
|
42
58
|
canSubmit: ({ context }) => isFormComplete(context.fields),
|
|
43
59
|
apiSucceeded: ({ event }) => event.output.success
|
|
@@ -47,16 +63,17 @@ const fieldComparisonMachine = setup({
|
|
|
47
63
|
initial: "idle",
|
|
48
64
|
context: ({ input }) => ({
|
|
49
65
|
config: input.config,
|
|
50
|
-
fields: emptyFields()
|
|
66
|
+
fields: emptyFields(),
|
|
67
|
+
validationErrors: void 0
|
|
51
68
|
}),
|
|
52
69
|
states: {
|
|
53
70
|
idle: { on: { LOAD: "inputting" } },
|
|
54
71
|
inputting: { on: {
|
|
55
72
|
FIELD_CHANGED: { actions: "setField" },
|
|
56
|
-
SUBMIT: {
|
|
73
|
+
SUBMIT: [{
|
|
57
74
|
target: "submitting",
|
|
58
75
|
guard: "canSubmit"
|
|
59
|
-
}
|
|
76
|
+
}, { actions: "setValidationErrors" }]
|
|
60
77
|
} },
|
|
61
78
|
submitting: { invoke: {
|
|
62
79
|
id: "submitFields",
|
|
@@ -90,12 +107,13 @@ function createFieldComparisonActor(options = {}) {
|
|
|
90
107
|
//#region src/modules/field-comparison/fieldComparisonManager.ts
|
|
91
108
|
function mapState(snapshot) {
|
|
92
109
|
const typedSnapshot = snapshot;
|
|
93
|
-
const { fields } = typedSnapshot.context;
|
|
110
|
+
const { fields, validationErrors } = typedSnapshot.context;
|
|
94
111
|
if (typedSnapshot.matches("idle")) return { status: "idle" };
|
|
95
112
|
if (typedSnapshot.matches("inputting")) return {
|
|
96
113
|
status: "inputting",
|
|
97
|
-
canSubmit:
|
|
98
|
-
fields
|
|
114
|
+
canSubmit: Object.keys(validationErrors ?? {}).length === 0,
|
|
115
|
+
fields,
|
|
116
|
+
validationErrors
|
|
99
117
|
};
|
|
100
118
|
if (typedSnapshot.matches("submitting")) return {
|
|
101
119
|
status: "submitting",
|
|
@@ -13,6 +13,8 @@ type FieldComparisonFields = {
|
|
|
13
13
|
firstName: string;
|
|
14
14
|
lastName: string;
|
|
15
15
|
};
|
|
16
|
+
/** Validation-message keys for the name fields currently showing an error. */
|
|
17
|
+
type FieldComparisonValidationErrors = Partial<Record<keyof FieldComparisonFields, string>>;
|
|
16
18
|
//#endregion
|
|
17
19
|
//#region src/modules/field-comparison/fieldComparisonStateMachine.d.ts
|
|
18
20
|
declare const fieldComparisonMachine: any;
|
|
@@ -35,6 +37,7 @@ type FieldComparisonInputtingState = {
|
|
|
35
37
|
status: 'inputting';
|
|
36
38
|
fields: FieldComparisonFields;
|
|
37
39
|
canSubmit: boolean;
|
|
40
|
+
validationErrors?: FieldComparisonValidationErrors;
|
|
38
41
|
};
|
|
39
42
|
type FieldComparisonSubmittingState = {
|
|
40
43
|
status: 'submitting';
|
|
@@ -71,4 +74,4 @@ declare function createFieldComparisonManagerFromActor(actor: FieldComparisonAct
|
|
|
71
74
|
};
|
|
72
75
|
type FieldComparisonManager = ReturnType<typeof createFieldComparisonManager>;
|
|
73
76
|
//#endregion
|
|
74
|
-
export { FieldComparisonActor as a, FieldComparisonFields as c, createFieldComparisonManagerFromActor as i, FieldComparisonState as n, fieldComparisonMachine as o, createFieldComparisonManager as r, FieldComparisonConfig as s, FieldComparisonManager as t };
|
|
77
|
+
export { FieldComparisonActor as a, FieldComparisonFields as c, createFieldComparisonManagerFromActor as i, FieldComparisonValidationErrors as l, FieldComparisonState as n, fieldComparisonMachine as o, createFieldComparisonManager as r, FieldComparisonConfig as s, FieldComparisonManager as t };
|
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 resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-
|
|
2
|
+
import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-BABr3Ov8.esm.js";
|
|
3
3
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.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-DRpB7aag.esm.js";
|
|
6
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CZbSjlSO.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-DcsWuQaJ.esm.js → flowCompletionService-DRpB7aag.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-Bs3D8B_G.esm.js";
|
|
3
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
3
|
+
import { i as toIncodeApiError } from "./apiError-B7C2i04b.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}` : ""}`;
|