@incodetech/core 0.0.0-dev-20260323-4991693 → 0.0.0-dev-20260323-7ccb042
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/{addressSearch-IJq48WDV.esm.js → addressSearch-DUewuEoH.esm.js} +2 -2
- package/dist/authentication.esm.js +7 -7
- package/dist/{authenticationManager-DACsi9Bs.esm.js → authenticationManager-D2XK2lTw.esm.js} +4 -4
- package/dist/{backCameraStream-THvMPTG_.esm.js → backCameraStream-DN_DmYvJ.esm.js} +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{deepsightLoader-DfXPJe4B.esm.js → deepsightLoader-D-gWAouI.esm.js} +2 -2
- package/dist/{deepsightService-DaDUTB6Q.esm.js → deepsightService-DElx3aC-.esm.js} +1 -1
- package/dist/document-capture.d.ts +55 -55
- package/dist/document-capture.esm.js +9 -4
- package/dist/document-upload.d.ts +43 -43
- package/dist/document-upload.esm.js +3 -3
- package/dist/ekyb.esm.js +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/email.esm.js +3 -3
- package/dist/{emailManager-DPTdyYgi.esm.js → emailManager-B8mMir96.esm.js} +2 -2
- package/dist/{events-BfIbM5SS.esm.js → events-CpjfmM8q.esm.js} +28 -1
- package/dist/extensibility.esm.js +11 -11
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureSetup-CW_ZDHuU.esm.js → faceCaptureSetup-CCMaAwTM.esm.js} +11 -6
- package/dist/flow.esm.js +2 -2
- package/dist/geolocation.esm.js +2 -2
- package/dist/government-validation.esm.js +2 -2
- package/dist/id.esm.js +6 -6
- package/dist/{idCaptureManager-Ctn8I9Rf.esm.js → idCaptureManager-DobE_UEx.esm.js} +19 -8
- package/dist/index.esm.js +6 -6
- package/dist/phone.esm.js +3 -3
- package/dist/{phoneManager-BzZI460X.esm.js → phoneManager-CXAVd4Na.esm.js} +2 -2
- package/dist/{recordingsRepository-D5Tfsc2D.esm.js → recordingsRepository-V9xqQTl6.esm.js} +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieManager-BXRLyPy4.esm.js → selfieManager-vePEfZwp.esm.js} +3 -3
- package/dist/{src-D9pJSMO5.esm.js → src-Dmccepc9.esm.js} +16 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { v as fromCallback } from "./events-
|
|
2
|
-
import { g as BrowserTimerProvider } from "./src-
|
|
1
|
+
import { v as fromCallback } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { g as BrowserTimerProvider } from "./src-Dmccepc9.esm.js";
|
|
3
3
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
5
5
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./events-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import "./src-
|
|
4
|
-
import "./recordingsRepository-
|
|
5
|
-
import "./deepsightService-
|
|
1
|
+
import "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import "./backCameraStream-DN_DmYvJ.esm.js";
|
|
3
|
+
import "./src-Dmccepc9.esm.js";
|
|
4
|
+
import "./recordingsRepository-V9xqQTl6.esm.js";
|
|
5
|
+
import "./deepsightService-DElx3aC-.esm.js";
|
|
6
6
|
import "./api-3fZO5bmj.esm.js";
|
|
7
7
|
import "./endpoints-Bydn-Ave.esm.js";
|
|
8
8
|
import "./stats-D76Thmqp.esm.js";
|
|
9
|
-
import "./faceCaptureSetup-
|
|
10
|
-
import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
9
|
+
import "./faceCaptureSetup-CCMaAwTM.esm.js";
|
|
10
|
+
import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-D2XK2lTw.esm.js";
|
|
11
11
|
|
|
12
12
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-DACsi9Bs.esm.js → authenticationManager-D2XK2lTw.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, n as eventModuleNames, y as fromPromise } from "./events-
|
|
2
|
-
import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-
|
|
3
|
-
import { c as getDeviceClass } from "./recordingsRepository-
|
|
1
|
+
import { _ as assign, b as createActor, n as eventModuleNames, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-Dmccepc9.esm.js";
|
|
3
|
+
import { c as getDeviceClass } from "./recordingsRepository-V9xqQTl6.esm.js";
|
|
4
4
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
6
|
-
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
6
|
+
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, t as faceCaptureMachine } from "./faceCaptureSetup-CCMaAwTM.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
9
9
|
const AUTH_ERROR_MAP = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as isSafari, D as enumerateVideoDevices, E as applyTrackConstraints, F as isAndroid, L as isIOS, O as requestCameraAccess, k as stopCameraStream, z as isIPhone14OrHigher } from "./src-
|
|
1
|
+
import { B as isSafari, D as enumerateVideoDevices, E as applyTrackConstraints, F as isAndroid, L as isIOS, O as requestCameraAccess, k as stopCameraStream, z as isIPhone14OrHigher } from "./src-Dmccepc9.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/capabilities/ITimerCapability.ts
|
|
4
4
|
function sleep(ms) {
|
package/dist/consent.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-
|
|
2
|
-
import { A as createManager } from "./src-
|
|
1
|
+
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { A as createManager } from "./src-Dmccepc9.esm.js";
|
|
3
3
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-
|
|
2
|
-
import { A as createManager } from "./src-
|
|
1
|
+
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { A as createManager } from "./src-Dmccepc9.esm.js";
|
|
3
3
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as WasmUtilProvider, f as MotionSensorProvider, l as VisibilityProvider, y as BrowserEnvironmentProvider } from "./src-
|
|
2
|
-
import { t as createDeepsightService } from "./deepsightService-
|
|
1
|
+
import { a as WasmUtilProvider, f as MotionSensorProvider, l as VisibilityProvider, y as BrowserEnvironmentProvider } from "./src-Dmccepc9.esm.js";
|
|
2
|
+
import { t as createDeepsightService } from "./deepsightService-DElx3aC-.esm.js";
|
|
3
3
|
import "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import "./stats-D76Thmqp.esm.js";
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as getDeviceInfo, O as requestCameraAccess, P as getUserAgent, T as IncodeCanvas, k as stopCameraStream, w as createHiddenVideoElement } from "./src-
|
|
1
|
+
import { M as getDeviceInfo, O as requestCameraAccess, P as getUserAgent, T as IncodeCanvas, k as stopCameraStream, w as createHiddenVideoElement } from "./src-Dmccepc9.esm.js";
|
|
2
2
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
3
3
|
import { t as addDeviceStats } from "./stats-D76Thmqp.esm.js";
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-CVDYGoSq.js";
|
|
2
2
|
import { t as CameraStream } from "./camera-CVBwqx-j.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate131 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/document-capture/types.d.ts
|
|
6
6
|
type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
|
|
@@ -72,7 +72,7 @@ type DocumentCaptureInput = {
|
|
|
72
72
|
};
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region src/modules/document-capture/documentCaptureStateMachine.d.ts
|
|
75
|
-
declare const documentCaptureMachine:
|
|
75
|
+
declare const documentCaptureMachine: xstate131.StateMachine<DocumentCaptureContext, {
|
|
76
76
|
type: "CAPTURE";
|
|
77
77
|
} | {
|
|
78
78
|
type: "FILE_SELECTED";
|
|
@@ -95,84 +95,84 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
95
95
|
} | {
|
|
96
96
|
type: "CLOSE";
|
|
97
97
|
}, {
|
|
98
|
-
[x: string]:
|
|
98
|
+
[x: string]: xstate131.ActorRefFromLogic<xstate131.PromiseActorLogic<MediaStream, void, xstate131.EventObject>> | xstate131.ActorRefFromLogic<xstate131.PromiseActorLogic<DocumentUploadResponse, {
|
|
99
99
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
100
100
|
processingType: string;
|
|
101
101
|
onProgress: (progress: number) => void;
|
|
102
|
-
},
|
|
103
|
-
},
|
|
102
|
+
}, xstate131.EventObject>> | undefined;
|
|
103
|
+
}, xstate131.Values<{
|
|
104
104
|
initCamera: {
|
|
105
105
|
src: "initCamera";
|
|
106
|
-
logic:
|
|
106
|
+
logic: xstate131.PromiseActorLogic<MediaStream, void, xstate131.EventObject>;
|
|
107
107
|
id: string | undefined;
|
|
108
108
|
};
|
|
109
109
|
uploadDocument: {
|
|
110
110
|
src: "uploadDocument";
|
|
111
|
-
logic:
|
|
111
|
+
logic: xstate131.PromiseActorLogic<DocumentUploadResponse, {
|
|
112
112
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
113
113
|
processingType: string;
|
|
114
114
|
onProgress: (progress: number) => void;
|
|
115
|
-
},
|
|
115
|
+
}, xstate131.EventObject>;
|
|
116
116
|
id: string | undefined;
|
|
117
117
|
};
|
|
118
|
-
}>,
|
|
118
|
+
}>, xstate131.Values<{
|
|
119
119
|
clearError: {
|
|
120
120
|
type: "clearError";
|
|
121
|
-
params:
|
|
121
|
+
params: xstate131.NonReducibleUnknown;
|
|
122
122
|
};
|
|
123
123
|
setStream: {
|
|
124
124
|
type: "setStream";
|
|
125
|
-
params:
|
|
125
|
+
params: xstate131.NonReducibleUnknown;
|
|
126
|
+
};
|
|
127
|
+
setProgress: {
|
|
128
|
+
type: "setProgress";
|
|
129
|
+
params: xstate131.NonReducibleUnknown;
|
|
130
|
+
};
|
|
131
|
+
stopStream: {
|
|
132
|
+
type: "stopStream";
|
|
133
|
+
params: xstate131.NonReducibleUnknown;
|
|
126
134
|
};
|
|
127
135
|
setCapturedDocument: {
|
|
128
136
|
type: "setCapturedDocument";
|
|
129
|
-
params:
|
|
137
|
+
params: xstate131.NonReducibleUnknown;
|
|
130
138
|
};
|
|
131
139
|
setFileTooLargeError: {
|
|
132
140
|
type: "setFileTooLargeError";
|
|
133
|
-
params:
|
|
134
|
-
};
|
|
135
|
-
setProgress: {
|
|
136
|
-
type: "setProgress";
|
|
137
|
-
params: xstate67.NonReducibleUnknown;
|
|
141
|
+
params: xstate131.NonReducibleUnknown;
|
|
138
142
|
};
|
|
139
143
|
setUploadError: {
|
|
140
144
|
type: "setUploadError";
|
|
141
|
-
params:
|
|
145
|
+
params: xstate131.NonReducibleUnknown;
|
|
142
146
|
};
|
|
143
147
|
decrementAttemptsRemaining: {
|
|
144
148
|
type: "decrementAttemptsRemaining";
|
|
145
|
-
params:
|
|
149
|
+
params: xstate131.NonReducibleUnknown;
|
|
146
150
|
};
|
|
147
151
|
setCaptureMethodFile: {
|
|
148
152
|
type: "setCaptureMethodFile";
|
|
149
|
-
params:
|
|
153
|
+
params: xstate131.NonReducibleUnknown;
|
|
150
154
|
};
|
|
151
155
|
setCaptureMethodCamera: {
|
|
152
156
|
type: "setCaptureMethodCamera";
|
|
153
|
-
params:
|
|
157
|
+
params: xstate131.NonReducibleUnknown;
|
|
154
158
|
};
|
|
155
159
|
clearCapturedDocument: {
|
|
156
160
|
type: "clearCapturedDocument";
|
|
157
|
-
params:
|
|
161
|
+
params: xstate131.NonReducibleUnknown;
|
|
158
162
|
};
|
|
159
163
|
setPendingNextPage: {
|
|
160
164
|
type: "setPendingNextPage";
|
|
161
|
-
params:
|
|
165
|
+
params: xstate131.NonReducibleUnknown;
|
|
162
166
|
};
|
|
163
167
|
clearForNextPage: {
|
|
164
168
|
type: "clearForNextPage";
|
|
165
|
-
params:
|
|
169
|
+
params: xstate131.NonReducibleUnknown;
|
|
166
170
|
};
|
|
167
171
|
resetProgress: {
|
|
168
172
|
type: "resetProgress";
|
|
169
|
-
params:
|
|
170
|
-
};
|
|
171
|
-
stopStream: {
|
|
172
|
-
type: "stopStream";
|
|
173
|
-
params: xstate67.NonReducibleUnknown;
|
|
173
|
+
params: xstate131.NonReducibleUnknown;
|
|
174
174
|
};
|
|
175
|
-
}>,
|
|
175
|
+
}>, xstate131.Values<{
|
|
176
176
|
allowSkip: {
|
|
177
177
|
type: "allowSkip";
|
|
178
178
|
params: unknown;
|
|
@@ -209,7 +209,7 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
209
209
|
type: "isPendingNextPage";
|
|
210
210
|
params: unknown;
|
|
211
211
|
};
|
|
212
|
-
}>, never, "finished" | "initCamera" | "
|
|
212
|
+
}>, never, "finished" | "initCamera" | "capturing" | "closed" | "uploading" | "tutorial" | "preview" | "failure" | "success", string, DocumentCaptureInput, xstate131.NonReducibleUnknown, xstate131.EventObject, xstate131.MetaObject, {
|
|
213
213
|
readonly id: "documentCapture";
|
|
214
214
|
readonly initial: "tutorial";
|
|
215
215
|
readonly context: ({
|
|
@@ -218,67 +218,67 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
218
218
|
spawn: {
|
|
219
219
|
<TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
|
|
220
220
|
src: "initCamera";
|
|
221
|
-
logic:
|
|
221
|
+
logic: xstate131.PromiseActorLogic<MediaStream, void, xstate131.EventObject>;
|
|
222
222
|
id: string | undefined;
|
|
223
223
|
} extends infer T ? T extends {
|
|
224
224
|
src: "initCamera";
|
|
225
|
-
logic:
|
|
225
|
+
logic: xstate131.PromiseActorLogic<MediaStream, void, xstate131.EventObject>;
|
|
226
226
|
id: string | undefined;
|
|
227
227
|
} ? T extends {
|
|
228
228
|
src: TSrc;
|
|
229
|
-
} ?
|
|
229
|
+
} ? xstate131.ConditionalRequired<[options?: ({
|
|
230
230
|
id?: T["id"] | undefined;
|
|
231
231
|
systemId?: string;
|
|
232
|
-
input?:
|
|
232
|
+
input?: xstate131.InputFrom<T["logic"]> | undefined;
|
|
233
233
|
syncSnapshot?: boolean;
|
|
234
|
-
} & { [K in
|
|
234
|
+
} & { [K in xstate131.RequiredActorOptions<T>]: unknown }) | undefined], xstate131.IsNotNever<xstate131.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
235
235
|
src: "uploadDocument";
|
|
236
|
-
logic:
|
|
236
|
+
logic: xstate131.PromiseActorLogic<DocumentUploadResponse, {
|
|
237
237
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
238
238
|
processingType: string;
|
|
239
239
|
onProgress: (progress: number) => void;
|
|
240
|
-
},
|
|
240
|
+
}, xstate131.EventObject>;
|
|
241
241
|
id: string | undefined;
|
|
242
242
|
} extends infer T_1 ? T_1 extends {
|
|
243
243
|
src: "uploadDocument";
|
|
244
|
-
logic:
|
|
244
|
+
logic: xstate131.PromiseActorLogic<DocumentUploadResponse, {
|
|
245
245
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
246
246
|
processingType: string;
|
|
247
247
|
onProgress: (progress: number) => void;
|
|
248
|
-
},
|
|
248
|
+
}, xstate131.EventObject>;
|
|
249
249
|
id: string | undefined;
|
|
250
250
|
} ? T_1 extends {
|
|
251
251
|
src: TSrc;
|
|
252
|
-
} ?
|
|
252
|
+
} ? xstate131.ConditionalRequired<[options?: ({
|
|
253
253
|
id?: T_1["id"] | undefined;
|
|
254
254
|
systemId?: string;
|
|
255
|
-
input?:
|
|
255
|
+
input?: xstate131.InputFrom<T_1["logic"]> | undefined;
|
|
256
256
|
syncSnapshot?: boolean;
|
|
257
|
-
} & { [K_1 in
|
|
257
|
+
} & { [K_1 in xstate131.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate131.IsNotNever<xstate131.RequiredActorOptions<T_1>>> : never : never : never)): xstate131.ActorRefFromLogic<xstate131.GetConcreteByKey<xstate131.Values<{
|
|
258
258
|
initCamera: {
|
|
259
259
|
src: "initCamera";
|
|
260
|
-
logic:
|
|
260
|
+
logic: xstate131.PromiseActorLogic<MediaStream, void, xstate131.EventObject>;
|
|
261
261
|
id: string | undefined;
|
|
262
262
|
};
|
|
263
263
|
uploadDocument: {
|
|
264
264
|
src: "uploadDocument";
|
|
265
|
-
logic:
|
|
265
|
+
logic: xstate131.PromiseActorLogic<DocumentUploadResponse, {
|
|
266
266
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
267
267
|
processingType: string;
|
|
268
268
|
onProgress: (progress: number) => void;
|
|
269
|
-
},
|
|
269
|
+
}, xstate131.EventObject>;
|
|
270
270
|
id: string | undefined;
|
|
271
271
|
};
|
|
272
272
|
}>, "src", TSrc>["logic"]>;
|
|
273
|
-
<TLogic extends
|
|
273
|
+
<TLogic extends xstate131.AnyActorLogic>(src: TLogic, ...[options]: xstate131.ConditionalRequired<[options?: ({
|
|
274
274
|
id?: never;
|
|
275
275
|
systemId?: string;
|
|
276
|
-
input?:
|
|
276
|
+
input?: xstate131.InputFrom<TLogic> | undefined;
|
|
277
277
|
syncSnapshot?: boolean;
|
|
278
|
-
} & { [K in
|
|
278
|
+
} & { [K in xstate131.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate131.IsNotNever<xstate131.RequiredLogicInput<TLogic>>>): xstate131.ActorRefFromLogic<TLogic>;
|
|
279
279
|
};
|
|
280
280
|
input: DocumentCaptureInput;
|
|
281
|
-
self:
|
|
281
|
+
self: xstate131.ActorRef<xstate131.MachineSnapshot<DocumentCaptureContext, {
|
|
282
282
|
type: "CAPTURE";
|
|
283
283
|
} | {
|
|
284
284
|
type: "FILE_SELECTED";
|
|
@@ -300,7 +300,7 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
300
300
|
type: "SKIP";
|
|
301
301
|
} | {
|
|
302
302
|
type: "CLOSE";
|
|
303
|
-
}, Record<string,
|
|
303
|
+
}, Record<string, xstate131.AnyActorRef | undefined>, xstate131.StateValue, string, unknown, any, any>, {
|
|
304
304
|
type: "CAPTURE";
|
|
305
305
|
} | {
|
|
306
306
|
type: "FILE_SELECTED";
|
|
@@ -322,7 +322,7 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
322
322
|
type: "SKIP";
|
|
323
323
|
} | {
|
|
324
324
|
type: "CLOSE";
|
|
325
|
-
},
|
|
325
|
+
}, xstate131.AnyEventObject>;
|
|
326
326
|
}) => {
|
|
327
327
|
config: {
|
|
328
328
|
processingType: DocumentType;
|
|
@@ -459,7 +459,7 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
459
459
|
} | {
|
|
460
460
|
type: "CLOSE";
|
|
461
461
|
};
|
|
462
|
-
self:
|
|
462
|
+
self: xstate131.ActorRef<xstate131.MachineSnapshot<DocumentCaptureContext, {
|
|
463
463
|
type: "CAPTURE";
|
|
464
464
|
} | {
|
|
465
465
|
type: "FILE_SELECTED";
|
|
@@ -481,7 +481,7 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
481
481
|
type: "SKIP";
|
|
482
482
|
} | {
|
|
483
483
|
type: "CLOSE";
|
|
484
|
-
}, Record<string,
|
|
484
|
+
}, Record<string, xstate131.AnyActorRef>, xstate131.StateValue, string, unknown, any, any>, {
|
|
485
485
|
type: "CAPTURE";
|
|
486
486
|
} | {
|
|
487
487
|
type: "FILE_SELECTED";
|
|
@@ -503,7 +503,7 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
503
503
|
type: "SKIP";
|
|
504
504
|
} | {
|
|
505
505
|
type: "CLOSE";
|
|
506
|
-
},
|
|
506
|
+
}, xstate131.AnyEventObject>;
|
|
507
507
|
}) => {
|
|
508
508
|
capturedDocument: CapturedDocument;
|
|
509
509
|
processingType: DocumentType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import { A as createManager, k as stopCameraStream } from "./src-
|
|
1
|
+
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-DN_DmYvJ.esm.js";
|
|
3
|
+
import { A as createManager, k as stopCameraStream } from "./src-Dmccepc9.esm.js";
|
|
4
4
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
6
6
|
|
|
@@ -388,12 +388,17 @@ function createApi({ actor }) {
|
|
|
388
388
|
}
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
|
+
function getDocumentCaptureErrorPayload(snapshot) {
|
|
392
|
+
const errorCode = snapshot.context.error;
|
|
393
|
+
if (errorCode === void 0) return;
|
|
394
|
+
return { errorCode };
|
|
395
|
+
}
|
|
391
396
|
function createDocumentCaptureManager(options) {
|
|
392
397
|
return createManager({
|
|
393
398
|
actor: createDocumentCaptureActor(options),
|
|
394
399
|
mapState,
|
|
395
400
|
createApi,
|
|
396
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.document)
|
|
401
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.document, { getErrorPayload: getDocumentCaptureErrorPayload })
|
|
397
402
|
});
|
|
398
403
|
}
|
|
399
404
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-CVDYGoSq.js";
|
|
2
2
|
import "./camera-CVBwqx-j.js";
|
|
3
3
|
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-CHzupruc.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as xstate67 from "xstate";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
7
|
-
declare const documentUploadMachine:
|
|
7
|
+
declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext, {
|
|
8
8
|
type: "START";
|
|
9
9
|
} | {
|
|
10
10
|
type: "CAPTURE";
|
|
@@ -17,52 +17,52 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
|
|
|
17
17
|
} | {
|
|
18
18
|
type: "CLOSE";
|
|
19
19
|
}, {
|
|
20
|
-
[x: string]:
|
|
20
|
+
[x: string]: xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>> | xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<void, {
|
|
21
21
|
imageBase64: string;
|
|
22
22
|
documentType: string;
|
|
23
23
|
onProgress: (progress: number) => void;
|
|
24
|
-
},
|
|
25
|
-
},
|
|
24
|
+
}, xstate67.EventObject>> | undefined;
|
|
25
|
+
}, xstate67.Values<{
|
|
26
26
|
initCamera: {
|
|
27
27
|
src: "initCamera";
|
|
28
|
-
logic:
|
|
28
|
+
logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
|
|
29
29
|
id: string | undefined;
|
|
30
30
|
};
|
|
31
31
|
uploadDocument: {
|
|
32
32
|
src: "uploadDocument";
|
|
33
|
-
logic:
|
|
33
|
+
logic: xstate67.PromiseActorLogic<void, {
|
|
34
34
|
imageBase64: string;
|
|
35
35
|
documentType: string;
|
|
36
36
|
onProgress: (progress: number) => void;
|
|
37
|
-
},
|
|
37
|
+
}, xstate67.EventObject>;
|
|
38
38
|
id: string | undefined;
|
|
39
39
|
};
|
|
40
|
-
}>,
|
|
40
|
+
}>, xstate67.Values<{
|
|
41
41
|
setError: {
|
|
42
42
|
type: "setError";
|
|
43
|
-
params:
|
|
43
|
+
params: xstate67.NonReducibleUnknown;
|
|
44
44
|
};
|
|
45
45
|
clearError: {
|
|
46
46
|
type: "clearError";
|
|
47
|
-
params:
|
|
47
|
+
params: xstate67.NonReducibleUnknown;
|
|
48
48
|
};
|
|
49
49
|
setStream: {
|
|
50
50
|
type: "setStream";
|
|
51
|
-
params:
|
|
51
|
+
params: xstate67.NonReducibleUnknown;
|
|
52
|
+
};
|
|
53
|
+
setImageAndClearError: {
|
|
54
|
+
type: "setImageAndClearError";
|
|
55
|
+
params: xstate67.NonReducibleUnknown;
|
|
52
56
|
};
|
|
53
57
|
setProgress: {
|
|
54
58
|
type: "setProgress";
|
|
55
|
-
params:
|
|
59
|
+
params: xstate67.NonReducibleUnknown;
|
|
56
60
|
};
|
|
57
61
|
stopStream: {
|
|
58
62
|
type: "stopStream";
|
|
59
|
-
params:
|
|
60
|
-
};
|
|
61
|
-
setImageAndClearError: {
|
|
62
|
-
type: "setImageAndClearError";
|
|
63
|
-
params: xstate353.NonReducibleUnknown;
|
|
63
|
+
params: xstate67.NonReducibleUnknown;
|
|
64
64
|
};
|
|
65
|
-
}>, never, never, "error" | "idle" | "finished" | "initCamera" | "capturing" | "closed" | "uploading", string, DocumentUploadInput,
|
|
65
|
+
}>, never, never, "error" | "idle" | "finished" | "initCamera" | "capturing" | "closed" | "uploading", string, DocumentUploadInput, xstate67.NonReducibleUnknown, xstate67.EventObject, xstate67.MetaObject, {
|
|
66
66
|
readonly id: "documentUpload";
|
|
67
67
|
readonly initial: "idle";
|
|
68
68
|
readonly context: ({
|
|
@@ -71,67 +71,67 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
|
|
|
71
71
|
spawn: {
|
|
72
72
|
<TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
|
|
73
73
|
src: "initCamera";
|
|
74
|
-
logic:
|
|
74
|
+
logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
|
|
75
75
|
id: string | undefined;
|
|
76
76
|
} extends infer T ? T extends {
|
|
77
77
|
src: "initCamera";
|
|
78
|
-
logic:
|
|
78
|
+
logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
|
|
79
79
|
id: string | undefined;
|
|
80
80
|
} ? T extends {
|
|
81
81
|
src: TSrc;
|
|
82
|
-
} ?
|
|
82
|
+
} ? xstate67.ConditionalRequired<[options?: ({
|
|
83
83
|
id?: T["id"] | undefined;
|
|
84
84
|
systemId?: string;
|
|
85
|
-
input?:
|
|
85
|
+
input?: xstate67.InputFrom<T["logic"]> | undefined;
|
|
86
86
|
syncSnapshot?: boolean;
|
|
87
|
-
} & { [K in
|
|
87
|
+
} & { [K in xstate67.RequiredActorOptions<T>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
88
88
|
src: "uploadDocument";
|
|
89
|
-
logic:
|
|
89
|
+
logic: xstate67.PromiseActorLogic<void, {
|
|
90
90
|
imageBase64: string;
|
|
91
91
|
documentType: string;
|
|
92
92
|
onProgress: (progress: number) => void;
|
|
93
|
-
},
|
|
93
|
+
}, xstate67.EventObject>;
|
|
94
94
|
id: string | undefined;
|
|
95
95
|
} extends infer T_1 ? T_1 extends {
|
|
96
96
|
src: "uploadDocument";
|
|
97
|
-
logic:
|
|
97
|
+
logic: xstate67.PromiseActorLogic<void, {
|
|
98
98
|
imageBase64: string;
|
|
99
99
|
documentType: string;
|
|
100
100
|
onProgress: (progress: number) => void;
|
|
101
|
-
},
|
|
101
|
+
}, xstate67.EventObject>;
|
|
102
102
|
id: string | undefined;
|
|
103
103
|
} ? T_1 extends {
|
|
104
104
|
src: TSrc;
|
|
105
|
-
} ?
|
|
105
|
+
} ? xstate67.ConditionalRequired<[options?: ({
|
|
106
106
|
id?: T_1["id"] | undefined;
|
|
107
107
|
systemId?: string;
|
|
108
|
-
input?:
|
|
108
|
+
input?: xstate67.InputFrom<T_1["logic"]> | undefined;
|
|
109
109
|
syncSnapshot?: boolean;
|
|
110
|
-
} & { [K_1 in
|
|
110
|
+
} & { [K_1 in xstate67.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T_1>>> : never : never : never)): xstate67.ActorRefFromLogic<xstate67.GetConcreteByKey<xstate67.Values<{
|
|
111
111
|
initCamera: {
|
|
112
112
|
src: "initCamera";
|
|
113
|
-
logic:
|
|
113
|
+
logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
|
|
114
114
|
id: string | undefined;
|
|
115
115
|
};
|
|
116
116
|
uploadDocument: {
|
|
117
117
|
src: "uploadDocument";
|
|
118
|
-
logic:
|
|
118
|
+
logic: xstate67.PromiseActorLogic<void, {
|
|
119
119
|
imageBase64: string;
|
|
120
120
|
documentType: string;
|
|
121
121
|
onProgress: (progress: number) => void;
|
|
122
|
-
},
|
|
122
|
+
}, xstate67.EventObject>;
|
|
123
123
|
id: string | undefined;
|
|
124
124
|
};
|
|
125
125
|
}>, "src", TSrc>["logic"]>;
|
|
126
|
-
<TLogic extends
|
|
126
|
+
<TLogic extends xstate67.AnyActorLogic>(src: TLogic, ...[options]: xstate67.ConditionalRequired<[options?: ({
|
|
127
127
|
id?: never;
|
|
128
128
|
systemId?: string;
|
|
129
|
-
input?:
|
|
129
|
+
input?: xstate67.InputFrom<TLogic> | undefined;
|
|
130
130
|
syncSnapshot?: boolean;
|
|
131
|
-
} & { [K in
|
|
131
|
+
} & { [K in xstate67.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredLogicInput<TLogic>>>): xstate67.ActorRefFromLogic<TLogic>;
|
|
132
132
|
};
|
|
133
133
|
input: DocumentUploadInput;
|
|
134
|
-
self:
|
|
134
|
+
self: xstate67.ActorRef<xstate67.MachineSnapshot<DocumentUploadContext, {
|
|
135
135
|
type: "START";
|
|
136
136
|
} | {
|
|
137
137
|
type: "CAPTURE";
|
|
@@ -143,7 +143,7 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
|
|
|
143
143
|
type: "RETRY";
|
|
144
144
|
} | {
|
|
145
145
|
type: "CLOSE";
|
|
146
|
-
}, Record<string,
|
|
146
|
+
}, Record<string, xstate67.AnyActorRef | undefined>, xstate67.StateValue, string, unknown, any, any>, {
|
|
147
147
|
type: "START";
|
|
148
148
|
} | {
|
|
149
149
|
type: "CAPTURE";
|
|
@@ -155,7 +155,7 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
|
|
|
155
155
|
type: "RETRY";
|
|
156
156
|
} | {
|
|
157
157
|
type: "CLOSE";
|
|
158
|
-
},
|
|
158
|
+
}, xstate67.AnyEventObject>;
|
|
159
159
|
}) => {
|
|
160
160
|
config: DocumentUploadConfig;
|
|
161
161
|
stream: undefined;
|
|
@@ -225,7 +225,7 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
|
|
|
225
225
|
} | {
|
|
226
226
|
type: "CLOSE";
|
|
227
227
|
};
|
|
228
|
-
self:
|
|
228
|
+
self: xstate67.ActorRef<xstate67.MachineSnapshot<DocumentUploadContext, {
|
|
229
229
|
type: "START";
|
|
230
230
|
} | {
|
|
231
231
|
type: "CAPTURE";
|
|
@@ -237,7 +237,7 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
|
|
|
237
237
|
type: "RETRY";
|
|
238
238
|
} | {
|
|
239
239
|
type: "CLOSE";
|
|
240
|
-
}, Record<string,
|
|
240
|
+
}, Record<string, xstate67.AnyActorRef>, xstate67.StateValue, string, unknown, any, any>, {
|
|
241
241
|
type: "START";
|
|
242
242
|
} | {
|
|
243
243
|
type: "CAPTURE";
|
|
@@ -249,7 +249,7 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
|
|
|
249
249
|
type: "RETRY";
|
|
250
250
|
} | {
|
|
251
251
|
type: "CLOSE";
|
|
252
|
-
},
|
|
252
|
+
}, xstate67.AnyEventObject>;
|
|
253
253
|
}) => {
|
|
254
254
|
imageBase64: string;
|
|
255
255
|
documentType: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import { A as createManager, k as stopCameraStream } from "./src-
|
|
1
|
+
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-DN_DmYvJ.esm.js";
|
|
3
|
+
import { A as createManager, k as stopCameraStream } from "./src-Dmccepc9.esm.js";
|
|
4
4
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
6
6
|
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-
|
|
2
|
-
import { A as createManager } from "./src-
|
|
1
|
+
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { A as createManager } from "./src-Dmccepc9.esm.js";
|
|
3
3
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
5
|
-
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-
|
|
5
|
+
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-DUewuEoH.esm.js";
|
|
6
6
|
import { t as getFlow } from "./flowServices-Cc1HxYIC.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/ekyb/ekybConstants.ts
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-
|
|
2
|
-
import { A as createManager } from "./src-
|
|
1
|
+
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { A as createManager } from "./src-Dmccepc9.esm.js";
|
|
3
3
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
5
|
-
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-
|
|
5
|
+
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-DUewuEoH.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/metadata.min.json.js
|
|
8
8
|
var metadata_min_json_default = {
|
package/dist/email.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./events-
|
|
2
|
-
import "./src-
|
|
1
|
+
import "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import "./src-Dmccepc9.esm.js";
|
|
3
3
|
import "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import "./endpoints-Bydn-Ave.esm.js";
|
|
5
|
-
import { r as emailMachine, t as createEmailManager } from "./emailManager-
|
|
5
|
+
import { r as emailMachine, t as createEmailManager } from "./emailManager-B8mMir96.esm.js";
|
|
6
6
|
|
|
7
7
|
export { createEmailManager, emailMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-
|
|
2
|
-
import { A as createManager, g as BrowserTimerProvider } from "./src-
|
|
1
|
+
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { A as createManager, g as BrowserTimerProvider } from "./src-Dmccepc9.esm.js";
|
|
3
3
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
5
5
|
|
|
@@ -3378,6 +3378,14 @@ function screenClosed(module, screen, payload) {
|
|
|
3378
3378
|
payload
|
|
3379
3379
|
});
|
|
3380
3380
|
}
|
|
3381
|
+
function errorTriggered(module, screen, payload) {
|
|
3382
|
+
screenEvent({
|
|
3383
|
+
module,
|
|
3384
|
+
screen,
|
|
3385
|
+
code: "errorTriggered",
|
|
3386
|
+
payload
|
|
3387
|
+
});
|
|
3388
|
+
}
|
|
3381
3389
|
|
|
3382
3390
|
//#endregion
|
|
3383
3391
|
//#region src/internal/events/managerInstrumentation.ts
|
|
@@ -3420,6 +3428,18 @@ function buildScreenName(moduleName, screenName) {
|
|
|
3420
3428
|
function getDefaultManagerScreenName(snapshot) {
|
|
3421
3429
|
return stateValueToScreenSegment(snapshot.value);
|
|
3422
3430
|
}
|
|
3431
|
+
function isErrorLikeSegment(segment) {
|
|
3432
|
+
return segment === "error" || segment.includes("error") || segment.includes("failed") || segment.includes("failure");
|
|
3433
|
+
}
|
|
3434
|
+
function getDefaultManagerErrorName(snapshot) {
|
|
3435
|
+
const screenSegment = stateValueToScreenSegment(snapshot.value);
|
|
3436
|
+
if (screenSegment === void 0) return;
|
|
3437
|
+
const normalizedSegment = normalizeDottedPath(screenSegment);
|
|
3438
|
+
if (normalizedSegment.length === 0) return;
|
|
3439
|
+
if (normalizedSegment === "error") return "error.unknown";
|
|
3440
|
+
if (!isErrorLikeSegment(normalizedSegment)) return;
|
|
3441
|
+
return `error.${normalizedSegment}`;
|
|
3442
|
+
}
|
|
3423
3443
|
function createManagerInstrumentation(moduleName, options) {
|
|
3424
3444
|
return {
|
|
3425
3445
|
moduleName,
|
|
@@ -3427,11 +3447,18 @@ function createManagerInstrumentation(moduleName, options) {
|
|
|
3427
3447
|
onModuleClosed: moduleClosed,
|
|
3428
3448
|
onScreenOpened: screenOpened,
|
|
3429
3449
|
onScreenClosed: screenClosed,
|
|
3450
|
+
onErrorTriggered: errorTriggered,
|
|
3430
3451
|
getScreenName: (snapshot) => {
|
|
3431
3452
|
const mappedScreen = options?.getScreenName?.(snapshot) ?? getDefaultManagerScreenName(snapshot);
|
|
3432
3453
|
if (mappedScreen === void 0) return;
|
|
3433
3454
|
return buildScreenName(moduleName, mappedScreen);
|
|
3434
|
-
}
|
|
3455
|
+
},
|
|
3456
|
+
getErrorName: (snapshot) => {
|
|
3457
|
+
const mappedError = options?.getErrorName?.(snapshot) ?? getDefaultManagerErrorName(snapshot);
|
|
3458
|
+
if (mappedError === void 0) return;
|
|
3459
|
+
return buildScreenName(moduleName, mappedError);
|
|
3460
|
+
},
|
|
3461
|
+
getErrorPayload: (snapshot) => options?.getErrorPayload?.(snapshot)
|
|
3435
3462
|
};
|
|
3436
3463
|
}
|
|
3437
3464
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { b as createActor, y as fromPromise } from "./events-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-
|
|
4
|
-
import "./recordingsRepository-
|
|
5
|
-
import "./deepsightService-
|
|
1
|
+
import { b as createActor, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import "./backCameraStream-DN_DmYvJ.esm.js";
|
|
3
|
+
import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-Dmccepc9.esm.js";
|
|
4
|
+
import "./recordingsRepository-V9xqQTl6.esm.js";
|
|
5
|
+
import "./deepsightService-DElx3aC-.esm.js";
|
|
6
6
|
import "./api-3fZO5bmj.esm.js";
|
|
7
7
|
import "./endpoints-Bydn-Ave.esm.js";
|
|
8
|
-
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
8
|
+
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-DobE_UEx.esm.js";
|
|
9
9
|
import "./stats-D76Thmqp.esm.js";
|
|
10
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
11
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
12
|
-
import { n as createEmailManagerFromActor } from "./emailManager-
|
|
13
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
14
|
-
import { n as createPhoneManagerFromActor } from "./phoneManager-
|
|
10
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-CCMaAwTM.esm.js";
|
|
11
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-D2XK2lTw.esm.js";
|
|
12
|
+
import { n as createEmailManagerFromActor } from "./emailManager-B8mMir96.esm.js";
|
|
13
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-vePEfZwp.esm.js";
|
|
14
|
+
import { n as createPhoneManagerFromActor } from "./phoneManager-CXAVd4Na.esm.js";
|
|
15
15
|
|
|
16
16
|
export { BrowserStorageProvider, WasmUtilProvider, createActor, createAuthenticationManagerFromActor, createEmailManagerFromActor, createIdCaptureManagerFromActor, createPhoneManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromPromise };
|
package/dist/face-match.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-
|
|
2
|
-
import { A as createManager } from "./src-
|
|
1
|
+
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { A as createManager } from "./src-Dmccepc9.esm.js";
|
|
3
3
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as assign, g as setup, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import { A as createManager, O as requestCameraAccess, S as StreamCanvasCapture, d as OpenViduRecordingProvider, k as stopCameraStream, p as LocalRecordingProvider, s as FaceDetectionProvider, x as StreamCanvasProcessingSession } from "./src-
|
|
4
|
-
import { a as checkPermission, c as getDeviceClass, i as uploadDeepsightVideo, n as startRecording, o as requestPermission, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-
|
|
1
|
+
import { _ as assign, g as setup, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-DN_DmYvJ.esm.js";
|
|
3
|
+
import { A as createManager, O as requestCameraAccess, S as StreamCanvasCapture, d as OpenViduRecordingProvider, k as stopCameraStream, p as LocalRecordingProvider, s as FaceDetectionProvider, x as StreamCanvasProcessingSession } from "./src-Dmccepc9.esm.js";
|
|
4
|
+
import { a as checkPermission, c as getDeviceClass, i as uploadDeepsightVideo, n as startRecording, o as requestPermission, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-V9xqQTl6.esm.js";
|
|
5
5
|
import { r as getToken, t as api } from "./api-3fZO5bmj.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
7
7
|
import { t as addDeviceStats } from "./stats-D76Thmqp.esm.js";
|
|
@@ -95,12 +95,17 @@ function createApi({ actor }) {
|
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
+
function getFaceCaptureErrorPayload(snapshot) {
|
|
99
|
+
const errorCode = snapshot.context.uploadError;
|
|
100
|
+
if (typeof errorCode !== "string" || errorCode.length === 0) return;
|
|
101
|
+
return { errorCode };
|
|
102
|
+
}
|
|
98
103
|
function createFaceCaptureManagerFromActor(actor, moduleName) {
|
|
99
104
|
return createManager({
|
|
100
105
|
actor,
|
|
101
106
|
mapState,
|
|
102
107
|
createApi,
|
|
103
|
-
instrumentation: createManagerInstrumentation(moduleName)
|
|
108
|
+
instrumentation: createManagerInstrumentation(moduleName, { getErrorPayload: getFaceCaptureErrorPayload })
|
|
104
109
|
});
|
|
105
110
|
}
|
|
106
111
|
|
|
@@ -350,7 +355,7 @@ async function stopRecording(session) {
|
|
|
350
355
|
}
|
|
351
356
|
}
|
|
352
357
|
async function initializeDeepsightSession(options) {
|
|
353
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
358
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-D-gWAouI.esm.js");
|
|
354
359
|
return loadDeepsightSession({
|
|
355
360
|
ds: options.ds,
|
|
356
361
|
storage: options.storage
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, g as setup, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-
|
|
2
|
-
import { A as createManager } from "./src-
|
|
1
|
+
import { _ as assign, b as createActor, g as setup, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { A as createManager } from "./src-Dmccepc9.esm.js";
|
|
3
3
|
import "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import "./endpoints-Bydn-Ave.esm.js";
|
|
5
5
|
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-Cc1HxYIC.esm.js";
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-
|
|
2
|
-
import { A as createManager, F as isAndroid, L as isIOS, b as BrowserGeolocationProvider } from "./src-
|
|
1
|
+
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { A as createManager, F as isAndroid, L as isIOS, b as BrowserGeolocationProvider } from "./src-Dmccepc9.esm.js";
|
|
3
3
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, g as setup, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-
|
|
2
|
-
import { A as createManager, g as BrowserTimerProvider } from "./src-
|
|
1
|
+
import { _ as assign, b as createActor, g as setup, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { A as createManager, g as BrowserTimerProvider } from "./src-Dmccepc9.esm.js";
|
|
3
3
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
5
5
|
|
package/dist/id.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./events-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import "./src-
|
|
4
|
-
import "./recordingsRepository-
|
|
5
|
-
import "./deepsightService-
|
|
1
|
+
import "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import "./backCameraStream-DN_DmYvJ.esm.js";
|
|
3
|
+
import "./src-Dmccepc9.esm.js";
|
|
4
|
+
import "./recordingsRepository-V9xqQTl6.esm.js";
|
|
5
|
+
import "./deepsightService-DElx3aC-.esm.js";
|
|
6
6
|
import "./api-3fZO5bmj.esm.js";
|
|
7
7
|
import "./endpoints-Bydn-Ave.esm.js";
|
|
8
|
-
import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-
|
|
8
|
+
import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-DobE_UEx.esm.js";
|
|
9
9
|
import "./stats-D76Thmqp.esm.js";
|
|
10
10
|
import "./id-r_CoQ3r-.esm.js";
|
|
11
11
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, p as addEvent, s as getDefaultManagerScreenName, v as fromCallback, x as revokeObjectURL, y as fromPromise } from "./events-
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import { A as createManager, I as isDesktop, N as getWindowDimensions, S as StreamCanvasCapture, T as IncodeCanvas, _ as BrowserStorageProvider, d as OpenViduRecordingProvider, g as BrowserTimerProvider, h as FingerprintProvider, i as DEFAULT_ID_CAPTURE_THRESHOLDS, m as IpifyProvider, o as IdCaptureProvider, r as DEFAULT_ID_CAPTURE_MODEL_VERSION, v as BrowserInfoProvider, x as StreamCanvasProcessingSession, y as BrowserEnvironmentProvider } from "./src-
|
|
4
|
-
import { a as checkPermission, c as getDeviceClass, n as startRecording, o as requestPermission, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-
|
|
5
|
-
import { n as isBrowserSimulation } from "./deepsightService-
|
|
1
|
+
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, p as addEvent, s as getDefaultManagerScreenName, v as fromCallback, x as revokeObjectURL, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-DN_DmYvJ.esm.js";
|
|
3
|
+
import { A as createManager, I as isDesktop, N as getWindowDimensions, S as StreamCanvasCapture, T as IncodeCanvas, _ as BrowserStorageProvider, d as OpenViduRecordingProvider, g as BrowserTimerProvider, h as FingerprintProvider, i as DEFAULT_ID_CAPTURE_THRESHOLDS, m as IpifyProvider, o as IdCaptureProvider, r as DEFAULT_ID_CAPTURE_MODEL_VERSION, v as BrowserInfoProvider, x as StreamCanvasProcessingSession, y as BrowserEnvironmentProvider } from "./src-Dmccepc9.esm.js";
|
|
4
|
+
import { a as checkPermission, c as getDeviceClass, n as startRecording, o as requestPermission, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-V9xqQTl6.esm.js";
|
|
5
|
+
import { n as isBrowserSimulation } from "./deepsightService-DElx3aC-.esm.js";
|
|
6
6
|
import { n as getApi, r as getToken, t as api } from "./api-3fZO5bmj.esm.js";
|
|
7
7
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
8
8
|
import { t as addDeviceStats } from "./stats-D76Thmqp.esm.js";
|
|
@@ -822,7 +822,7 @@ const checkMotionSensorActor = fromCallback(({ input, sendBack }) => {
|
|
|
822
822
|
});
|
|
823
823
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
824
824
|
if (!input.dependencies) return;
|
|
825
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
825
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-D-gWAouI.esm.js");
|
|
826
826
|
return loadDeepsightSession({
|
|
827
827
|
ds: input.ds,
|
|
828
828
|
storage: input.dependencies.storage,
|
|
@@ -2176,12 +2176,20 @@ function getIdCaptureScreenName(snapshot) {
|
|
|
2176
2176
|
function mapIdCaptureScreenName(snapshot) {
|
|
2177
2177
|
return getIdCaptureScreenName(snapshot);
|
|
2178
2178
|
}
|
|
2179
|
+
function getIdCaptureErrorPayload(snapshot) {
|
|
2180
|
+
const errorCode = snapshot.context.uploadError;
|
|
2181
|
+
if (errorCode === void 0) return;
|
|
2182
|
+
return { errorCode };
|
|
2183
|
+
}
|
|
2179
2184
|
function createIdCaptureManager(options) {
|
|
2180
2185
|
return createManager({
|
|
2181
2186
|
actor: createIdCaptureActor(options),
|
|
2182
2187
|
mapState,
|
|
2183
2188
|
createApi,
|
|
2184
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.id, {
|
|
2189
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.id, {
|
|
2190
|
+
getScreenName: mapIdCaptureScreenName,
|
|
2191
|
+
getErrorPayload: getIdCaptureErrorPayload
|
|
2192
|
+
})
|
|
2185
2193
|
});
|
|
2186
2194
|
}
|
|
2187
2195
|
function createIdCaptureManagerFromActor(actor) {
|
|
@@ -2189,7 +2197,10 @@ function createIdCaptureManagerFromActor(actor) {
|
|
|
2189
2197
|
actor,
|
|
2190
2198
|
mapState,
|
|
2191
2199
|
createApi,
|
|
2192
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.id, {
|
|
2200
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.id, {
|
|
2201
|
+
getScreenName: mapIdCaptureScreenName,
|
|
2202
|
+
getErrorPayload: getIdCaptureErrorPayload
|
|
2203
|
+
})
|
|
2193
2204
|
});
|
|
2194
2205
|
}
|
|
2195
2206
|
|
package/dist/index.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as videoSelfieEvents, c as moduleClosed, d as screenEvent, f as screenOpened, h as subscribeEvent, i as tutorialScreenNamesMapper, l as moduleOpened, m as flushEventQueue, n as eventModuleNames, p as addEvent, r as eventScreenNames, t as cameraScreenNamesMapper, u as screenClosed } from "./events-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import { R as isIPad, a as WasmUtilProvider, c as warmupWasm, j as createApi_default, n as buildDefaultWasmConfig, t as DEFAULT_WASM_VERSION, u as ScreenOrientationProvider } from "./src-
|
|
4
|
-
import { a as checkPermission, c as getDeviceClass, l as getBrowser, o as requestPermission, s as createScreenOrientationObserver } from "./recordingsRepository-
|
|
5
|
-
import "./deepsightService-
|
|
1
|
+
import { a as videoSelfieEvents, c as moduleClosed, d as screenEvent, f as screenOpened, h as subscribeEvent, i as tutorialScreenNamesMapper, l as moduleOpened, m as flushEventQueue, n as eventModuleNames, p as addEvent, r as eventScreenNames, t as cameraScreenNamesMapper, u as screenClosed } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import "./backCameraStream-DN_DmYvJ.esm.js";
|
|
3
|
+
import { R as isIPad, a as WasmUtilProvider, c as warmupWasm, j as createApi_default, n as buildDefaultWasmConfig, t as DEFAULT_WASM_VERSION, u as ScreenOrientationProvider } from "./src-Dmccepc9.esm.js";
|
|
4
|
+
import { a as checkPermission, c as getDeviceClass, l as getBrowser, o as requestPermission, s as createScreenOrientationObserver } from "./recordingsRepository-V9xqQTl6.esm.js";
|
|
5
|
+
import "./deepsightService-DElx3aC-.esm.js";
|
|
6
6
|
import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-3fZO5bmj.esm.js";
|
|
7
7
|
import "./endpoints-Bydn-Ave.esm.js";
|
|
8
|
-
import { _ as resetSessionInit, a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, g as isSessionInitialized, h as initializeSession, i as idCaptureMachine, l as stopStream, m as getSessionFeatures, o as processId, p as getDisableIpify, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage, v as createSession } from "./idCaptureManager-
|
|
8
|
+
import { _ as resetSessionInit, a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, g as isSessionInitialized, h as initializeSession, i as idCaptureMachine, l as stopStream, m as getSessionFeatures, o as processId, p as getDisableIpify, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage, v as createSession } from "./idCaptureManager-DobE_UEx.esm.js";
|
|
9
9
|
import "./stats-D76Thmqp.esm.js";
|
|
10
10
|
import "./id-r_CoQ3r-.esm.js";
|
|
11
11
|
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./events-
|
|
2
|
-
import "./src-
|
|
1
|
+
import "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import "./src-Dmccepc9.esm.js";
|
|
3
3
|
import "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import "./endpoints-Bydn-Ave.esm.js";
|
|
5
|
-
import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-
|
|
5
|
+
import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-CXAVd4Na.esm.js";
|
|
6
6
|
|
|
7
7
|
export { createPhoneManager, phoneMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-
|
|
2
|
-
import { A as createManager, g as BrowserTimerProvider } from "./src-
|
|
1
|
+
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { A as createManager, g as BrowserTimerProvider } from "./src-Dmccepc9.esm.js";
|
|
3
3
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as queryCameraPermission, M as getDeviceInfo, O as requestCameraAccess, P as getUserAgent, R as isIPad, f as MotionSensorProvider, k as stopCameraStream } from "./src-
|
|
1
|
+
import { C as queryCameraPermission, M as getDeviceInfo, O as requestCameraAccess, P as getUserAgent, R as isIPad, f as MotionSensorProvider, k as stopCameraStream } from "./src-Dmccepc9.esm.js";
|
|
2
2
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-
|
|
2
|
-
import { A as createManager, g as BrowserTimerProvider } from "./src-
|
|
1
|
+
import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { A as createManager, g as BrowserTimerProvider } from "./src-Dmccepc9.esm.js";
|
|
3
3
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
|
|
5
5
|
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./events-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import "./src-
|
|
4
|
-
import "./recordingsRepository-
|
|
5
|
-
import "./deepsightService-
|
|
1
|
+
import "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import "./backCameraStream-DN_DmYvJ.esm.js";
|
|
3
|
+
import "./src-Dmccepc9.esm.js";
|
|
4
|
+
import "./recordingsRepository-V9xqQTl6.esm.js";
|
|
5
|
+
import "./deepsightService-DElx3aC-.esm.js";
|
|
6
6
|
import "./api-3fZO5bmj.esm.js";
|
|
7
7
|
import "./endpoints-Bydn-Ave.esm.js";
|
|
8
8
|
import "./stats-D76Thmqp.esm.js";
|
|
9
|
-
import { n as processFace } from "./faceCaptureSetup-
|
|
10
|
-
import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-
|
|
9
|
+
import { n as processFace } from "./faceCaptureSetup-CCMaAwTM.esm.js";
|
|
10
|
+
import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-vePEfZwp.esm.js";
|
|
11
11
|
|
|
12
12
|
export { createSelfieManager, processFace, selfieMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as assign, b as createActor, n as eventModuleNames, y as fromPromise } from "./events-
|
|
2
|
-
import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-
|
|
3
|
-
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, n as processFace, r as uploadSelfie, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
1
|
+
import { _ as assign, b as createActor, n as eventModuleNames, y as fromPromise } from "./events-CpjfmM8q.esm.js";
|
|
2
|
+
import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-Dmccepc9.esm.js";
|
|
3
|
+
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, n as processFace, r as uploadSelfie, t as faceCaptureMachine } from "./faceCaptureSetup-CCMaAwTM.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
6
6
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
@@ -2007,13 +2007,26 @@ function createManager(options) {
|
|
|
2007
2007
|
});
|
|
2008
2008
|
instrumentation.onModuleOpened(instrumentation.moduleName);
|
|
2009
2009
|
let currentScreenName = instrumentation.getScreenName(getSnapshot());
|
|
2010
|
+
let currentErrorName = instrumentation.getErrorName(getSnapshot());
|
|
2011
|
+
let currentErrorPayload = instrumentation.getErrorPayload(getSnapshot());
|
|
2010
2012
|
if (currentScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, currentScreenName);
|
|
2013
|
+
if (currentErrorName !== void 0) instrumentation.onErrorTriggered(instrumentation.moduleName, currentErrorName, currentErrorPayload);
|
|
2011
2014
|
const actorSubscription = actor.subscribe((snapshot) => {
|
|
2012
2015
|
const nextScreenName = instrumentation.getScreenName(snapshot);
|
|
2013
|
-
|
|
2016
|
+
const nextErrorName = instrumentation.getErrorName(snapshot);
|
|
2017
|
+
const nextErrorPayload = instrumentation.getErrorPayload(snapshot);
|
|
2018
|
+
if (currentScreenName === nextScreenName) {
|
|
2019
|
+
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, nextErrorPayload);
|
|
2020
|
+
currentErrorName = nextErrorName;
|
|
2021
|
+
currentErrorPayload = nextErrorPayload;
|
|
2022
|
+
return;
|
|
2023
|
+
}
|
|
2014
2024
|
if (currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
2015
2025
|
if (nextScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, nextScreenName);
|
|
2016
2026
|
currentScreenName = nextScreenName;
|
|
2027
|
+
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, nextErrorPayload);
|
|
2028
|
+
currentErrorName = nextErrorName;
|
|
2029
|
+
currentErrorPayload = nextErrorPayload;
|
|
2017
2030
|
});
|
|
2018
2031
|
let isStopped = false;
|
|
2019
2032
|
const base = {
|
|
@@ -2025,6 +2038,8 @@ function createManager(options) {
|
|
|
2025
2038
|
actorSubscription.unsubscribe();
|
|
2026
2039
|
if (currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
2027
2040
|
currentScreenName = void 0;
|
|
2041
|
+
currentErrorName = void 0;
|
|
2042
|
+
currentErrorPayload = void 0;
|
|
2028
2043
|
instrumentation.onModuleClosed(instrumentation.moduleName);
|
|
2029
2044
|
actor.stop();
|
|
2030
2045
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-20260323-
|
|
3
|
+
"version": "0.0.0-dev-20260323-7ccb042",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.esm.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
"tsdown": "^0.16.6",
|
|
95
95
|
"typescript": "^5.9.3",
|
|
96
96
|
"vitest": "^4.0.13",
|
|
97
|
-
"@incodetech/
|
|
98
|
-
"@incodetech/
|
|
97
|
+
"@incodetech/infra": "1.0.0",
|
|
98
|
+
"@incodetech/config": "1.0.0"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
101
|
"build": "tsdown -c tsdown.config.ts",
|