@incodetech/core 0.0.0-dev-20260304-fb1914c → 0.0.0-dev-20260305-13549f4
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/authentication.esm.js +5 -5
- package/dist/{backCameraStream-CvzBcQqz.esm.js → backCameraStream-C0dQR2BX.esm.js} +1 -1
- package/dist/curp-validation.esm.js +1 -1
- package/dist/{deepsightLoader-BYoe0Nsv.esm.js → deepsightLoader-QxwYYW5j.esm.js} +2 -2
- package/dist/{deepsightService-nqR8Q7AS.esm.js → deepsightService-CDvgEgfO.esm.js} +1 -1
- package/dist/document-upload.d.ts +43 -43
- package/dist/document-upload.esm.js +2 -2
- package/dist/ekyb.esm.js +1 -1
- package/dist/ekyc.esm.js +1 -1
- package/dist/email.esm.js +1 -1
- package/dist/face-match.esm.js +1 -1
- package/dist/{faceCaptureSetup-C6JFWLvG.esm.js → faceCaptureSetup-MIB3WcEx.esm.js} +4 -4
- package/dist/flow.esm.js +1 -1
- package/dist/geolocation.esm.js +1 -1
- package/dist/government-validation.esm.js +1 -1
- package/dist/{id-B_LxGdTF.esm.js → id-7PFrLVCf.esm.js} +5 -5
- package/dist/id.esm.js +5 -5
- package/dist/index.d.ts +37 -1
- package/dist/index.esm.js +6 -6
- package/dist/phone.esm.js +1 -1
- package/dist/selfie.esm.js +5 -5
- package/dist/{src-jvUXRQjK.esm.js → src-BSicdXwp.esm.js} +75 -1
- package/dist/{streamingEvents-evH8YUFP.esm.js → streamingEvents-LM3-zTfD.esm.js} +19 -2
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import {
|
|
2
|
+
import "./backCameraStream-C0dQR2BX.esm.js";
|
|
3
|
+
import { h as BrowserStorageProvider, r as WasmUtilProvider } from "./src-BSicdXwp.esm.js";
|
|
4
4
|
import { a as createActor, i as fromPromise, n as assign } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
5
|
-
import {
|
|
6
|
-
import "./deepsightService-
|
|
5
|
+
import { l as getDeviceClass } from "./streamingEvents-LM3-zTfD.esm.js";
|
|
6
|
+
import "./deepsightService-CDvgEgfO.esm.js";
|
|
7
7
|
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
8
8
|
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
9
9
|
import "./stats-CIdlLJwO.esm.js";
|
|
10
|
-
import { a as FACE_ERROR_CODES, n as faceCaptureMachine, o as createFaceCaptureManager, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-
|
|
10
|
+
import { a as FACE_ERROR_CODES, n as faceCaptureMachine, o as createFaceCaptureManager, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-MIB3WcEx.esm.js";
|
|
11
11
|
|
|
12
12
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
13
13
|
const AUTH_ERROR_MAP = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as stopCameraStream, E as requestCameraAccess, F as isIOS, L as isIPhone14OrHigher, N as isAndroid, R as isSafari, T as enumerateVideoDevices, w as applyTrackConstraints } from "./src-BSicdXwp.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/capabilities/ITimerCapability.ts
|
|
4
4
|
function sleep(ms) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as eventModuleNames, r as eventScreenNames, u as screenOpened } from "./events-B4Z68p21.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as createManager } from "./src-BSicdXwp.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
4
|
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as createDeepsightService } from "./deepsightService-
|
|
1
|
+
import { _ as BrowserEnvironmentProvider, r as WasmUtilProvider, s as VisibilityProvider, u as MotionSensorProvider } from "./src-BSicdXwp.esm.js";
|
|
2
|
+
import { t as createDeepsightService } from "./deepsightService-CDvgEgfO.esm.js";
|
|
3
3
|
import "./api-utDuOVDZ.esm.js";
|
|
4
4
|
import "./stats-CIdlLJwO.esm.js";
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as getDeviceInfo, C as IncodeCanvas, D as stopCameraStream, E as requestCameraAccess, M as getUserAgent, S as createHiddenVideoElement } from "./src-BSicdXwp.esm.js";
|
|
2
2
|
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
3
3
|
import { t as addDeviceStats } from "./stats-CIdlLJwO.esm.js";
|
|
4
4
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-WfeWDo3j.js";
|
|
2
2
|
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-Cd8ODk69.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate212 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
6
|
-
declare const documentUploadMachine:
|
|
6
|
+
declare const documentUploadMachine: xstate212.StateMachine<DocumentUploadContext, {
|
|
7
7
|
type: "START";
|
|
8
8
|
} | {
|
|
9
9
|
type: "CAPTURE";
|
|
@@ -16,52 +16,52 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
|
|
|
16
16
|
} | {
|
|
17
17
|
type: "CLOSE";
|
|
18
18
|
}, {
|
|
19
|
-
[x: string]:
|
|
19
|
+
[x: string]: xstate212.ActorRefFromLogic<xstate212.PromiseActorLogic<MediaStream, void, xstate212.EventObject>> | xstate212.ActorRefFromLogic<xstate212.PromiseActorLogic<void, {
|
|
20
20
|
imageBase64: string;
|
|
21
21
|
documentType: string;
|
|
22
22
|
onProgress: (progress: number) => void;
|
|
23
|
-
},
|
|
24
|
-
},
|
|
23
|
+
}, xstate212.EventObject>> | undefined;
|
|
24
|
+
}, xstate212.Values<{
|
|
25
25
|
initCamera: {
|
|
26
26
|
src: "initCamera";
|
|
27
|
-
logic:
|
|
27
|
+
logic: xstate212.PromiseActorLogic<MediaStream, void, xstate212.EventObject>;
|
|
28
28
|
id: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
uploadDocument: {
|
|
31
31
|
src: "uploadDocument";
|
|
32
|
-
logic:
|
|
32
|
+
logic: xstate212.PromiseActorLogic<void, {
|
|
33
33
|
imageBase64: string;
|
|
34
34
|
documentType: string;
|
|
35
35
|
onProgress: (progress: number) => void;
|
|
36
|
-
},
|
|
36
|
+
}, xstate212.EventObject>;
|
|
37
37
|
id: string | undefined;
|
|
38
38
|
};
|
|
39
|
-
}>,
|
|
39
|
+
}>, xstate212.Values<{
|
|
40
|
+
setError: {
|
|
41
|
+
type: "setError";
|
|
42
|
+
params: xstate212.NonReducibleUnknown;
|
|
43
|
+
};
|
|
40
44
|
setStream: {
|
|
41
45
|
type: "setStream";
|
|
42
|
-
params:
|
|
46
|
+
params: xstate212.NonReducibleUnknown;
|
|
43
47
|
};
|
|
44
48
|
setImageAndClearError: {
|
|
45
49
|
type: "setImageAndClearError";
|
|
46
|
-
params:
|
|
50
|
+
params: xstate212.NonReducibleUnknown;
|
|
47
51
|
};
|
|
48
52
|
setProgress: {
|
|
49
53
|
type: "setProgress";
|
|
50
|
-
params:
|
|
51
|
-
};
|
|
52
|
-
setError: {
|
|
53
|
-
type: "setError";
|
|
54
|
-
params: xstate0.NonReducibleUnknown;
|
|
54
|
+
params: xstate212.NonReducibleUnknown;
|
|
55
55
|
};
|
|
56
56
|
clearError: {
|
|
57
57
|
type: "clearError";
|
|
58
|
-
params:
|
|
58
|
+
params: xstate212.NonReducibleUnknown;
|
|
59
59
|
};
|
|
60
60
|
stopStream: {
|
|
61
61
|
type: "stopStream";
|
|
62
|
-
params:
|
|
62
|
+
params: xstate212.NonReducibleUnknown;
|
|
63
63
|
};
|
|
64
|
-
}>, never, never, "error" | "
|
|
64
|
+
}>, never, never, "error" | "idle" | "finished" | "initCamera" | "capturing" | "closed" | "uploading", string, DocumentUploadInput, xstate212.NonReducibleUnknown, xstate212.EventObject, xstate212.MetaObject, {
|
|
65
65
|
readonly id: "documentUpload";
|
|
66
66
|
readonly initial: "idle";
|
|
67
67
|
readonly context: ({
|
|
@@ -70,67 +70,67 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
|
|
|
70
70
|
spawn: {
|
|
71
71
|
<TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
|
|
72
72
|
src: "initCamera";
|
|
73
|
-
logic:
|
|
73
|
+
logic: xstate212.PromiseActorLogic<MediaStream, void, xstate212.EventObject>;
|
|
74
74
|
id: string | undefined;
|
|
75
75
|
} extends infer T ? T extends {
|
|
76
76
|
src: "initCamera";
|
|
77
|
-
logic:
|
|
77
|
+
logic: xstate212.PromiseActorLogic<MediaStream, void, xstate212.EventObject>;
|
|
78
78
|
id: string | undefined;
|
|
79
79
|
} ? T extends {
|
|
80
80
|
src: TSrc;
|
|
81
|
-
} ?
|
|
81
|
+
} ? xstate212.ConditionalRequired<[options?: ({
|
|
82
82
|
id?: T["id"] | undefined;
|
|
83
83
|
systemId?: string;
|
|
84
|
-
input?:
|
|
84
|
+
input?: xstate212.InputFrom<T["logic"]> | undefined;
|
|
85
85
|
syncSnapshot?: boolean;
|
|
86
|
-
} & { [K in
|
|
86
|
+
} & { [K in xstate212.RequiredActorOptions<T>]: unknown }) | undefined], xstate212.IsNotNever<xstate212.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
87
87
|
src: "uploadDocument";
|
|
88
|
-
logic:
|
|
88
|
+
logic: xstate212.PromiseActorLogic<void, {
|
|
89
89
|
imageBase64: string;
|
|
90
90
|
documentType: string;
|
|
91
91
|
onProgress: (progress: number) => void;
|
|
92
|
-
},
|
|
92
|
+
}, xstate212.EventObject>;
|
|
93
93
|
id: string | undefined;
|
|
94
94
|
} extends infer T_1 ? T_1 extends {
|
|
95
95
|
src: "uploadDocument";
|
|
96
|
-
logic:
|
|
96
|
+
logic: xstate212.PromiseActorLogic<void, {
|
|
97
97
|
imageBase64: string;
|
|
98
98
|
documentType: string;
|
|
99
99
|
onProgress: (progress: number) => void;
|
|
100
|
-
},
|
|
100
|
+
}, xstate212.EventObject>;
|
|
101
101
|
id: string | undefined;
|
|
102
102
|
} ? T_1 extends {
|
|
103
103
|
src: TSrc;
|
|
104
|
-
} ?
|
|
104
|
+
} ? xstate212.ConditionalRequired<[options?: ({
|
|
105
105
|
id?: T_1["id"] | undefined;
|
|
106
106
|
systemId?: string;
|
|
107
|
-
input?:
|
|
107
|
+
input?: xstate212.InputFrom<T_1["logic"]> | undefined;
|
|
108
108
|
syncSnapshot?: boolean;
|
|
109
|
-
} & { [K_1 in
|
|
109
|
+
} & { [K_1 in xstate212.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate212.IsNotNever<xstate212.RequiredActorOptions<T_1>>> : never : never : never)): xstate212.ActorRefFromLogic<xstate212.GetConcreteByKey<xstate212.Values<{
|
|
110
110
|
initCamera: {
|
|
111
111
|
src: "initCamera";
|
|
112
|
-
logic:
|
|
112
|
+
logic: xstate212.PromiseActorLogic<MediaStream, void, xstate212.EventObject>;
|
|
113
113
|
id: string | undefined;
|
|
114
114
|
};
|
|
115
115
|
uploadDocument: {
|
|
116
116
|
src: "uploadDocument";
|
|
117
|
-
logic:
|
|
117
|
+
logic: xstate212.PromiseActorLogic<void, {
|
|
118
118
|
imageBase64: string;
|
|
119
119
|
documentType: string;
|
|
120
120
|
onProgress: (progress: number) => void;
|
|
121
|
-
},
|
|
121
|
+
}, xstate212.EventObject>;
|
|
122
122
|
id: string | undefined;
|
|
123
123
|
};
|
|
124
124
|
}>, "src", TSrc>["logic"]>;
|
|
125
|
-
<TLogic extends
|
|
125
|
+
<TLogic extends xstate212.AnyActorLogic>(src: TLogic, ...[options]: xstate212.ConditionalRequired<[options?: ({
|
|
126
126
|
id?: never;
|
|
127
127
|
systemId?: string;
|
|
128
|
-
input?:
|
|
128
|
+
input?: xstate212.InputFrom<TLogic> | undefined;
|
|
129
129
|
syncSnapshot?: boolean;
|
|
130
|
-
} & { [K in
|
|
130
|
+
} & { [K in xstate212.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate212.IsNotNever<xstate212.RequiredLogicInput<TLogic>>>): xstate212.ActorRefFromLogic<TLogic>;
|
|
131
131
|
};
|
|
132
132
|
input: DocumentUploadInput;
|
|
133
|
-
self:
|
|
133
|
+
self: xstate212.ActorRef<xstate212.MachineSnapshot<DocumentUploadContext, {
|
|
134
134
|
type: "START";
|
|
135
135
|
} | {
|
|
136
136
|
type: "CAPTURE";
|
|
@@ -142,7 +142,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
|
|
|
142
142
|
type: "RETRY";
|
|
143
143
|
} | {
|
|
144
144
|
type: "CLOSE";
|
|
145
|
-
}, Record<string,
|
|
145
|
+
}, Record<string, xstate212.AnyActorRef | undefined>, xstate212.StateValue, string, unknown, any, any>, {
|
|
146
146
|
type: "START";
|
|
147
147
|
} | {
|
|
148
148
|
type: "CAPTURE";
|
|
@@ -154,7 +154,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
|
|
|
154
154
|
type: "RETRY";
|
|
155
155
|
} | {
|
|
156
156
|
type: "CLOSE";
|
|
157
|
-
},
|
|
157
|
+
}, xstate212.AnyEventObject>;
|
|
158
158
|
}) => {
|
|
159
159
|
config: DocumentUploadConfig;
|
|
160
160
|
stream: undefined;
|
|
@@ -224,7 +224,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
|
|
|
224
224
|
} | {
|
|
225
225
|
type: "CLOSE";
|
|
226
226
|
};
|
|
227
|
-
self:
|
|
227
|
+
self: xstate212.ActorRef<xstate212.MachineSnapshot<DocumentUploadContext, {
|
|
228
228
|
type: "START";
|
|
229
229
|
} | {
|
|
230
230
|
type: "CAPTURE";
|
|
@@ -236,7 +236,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
|
|
|
236
236
|
type: "RETRY";
|
|
237
237
|
} | {
|
|
238
238
|
type: "CLOSE";
|
|
239
|
-
}, Record<string,
|
|
239
|
+
}, Record<string, xstate212.AnyActorRef>, xstate212.StateValue, string, unknown, any, any>, {
|
|
240
240
|
type: "START";
|
|
241
241
|
} | {
|
|
242
242
|
type: "CAPTURE";
|
|
@@ -248,7 +248,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
|
|
|
248
248
|
type: "RETRY";
|
|
249
249
|
} | {
|
|
250
250
|
type: "CLOSE";
|
|
251
|
-
},
|
|
251
|
+
}, xstate212.AnyEventObject>;
|
|
252
252
|
}) => {
|
|
253
253
|
imageBase64: string;
|
|
254
254
|
documentType: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
2
|
-
import { D as
|
|
1
|
+
import { t as getBackCameraStream } from "./backCameraStream-C0dQR2BX.esm.js";
|
|
2
|
+
import { D as stopCameraStream, O as createManager } from "./src-BSicdXwp.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
4
|
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as createManager } from "./src-BSicdXwp.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
4
|
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as createManager, m as BrowserTimerProvider } from "./src-BSicdXwp.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
4
|
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
package/dist/email.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as createManager, m as BrowserTimerProvider } from "./src-BSicdXwp.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
4
|
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
package/dist/face-match.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as createManager } from "./src-BSicdXwp.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
4
|
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import { D as
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-C0dQR2BX.esm.js";
|
|
3
|
+
import { D as stopCameraStream, E as requestCameraAccess, O as createManager, a as FaceDetectionProvider, b as StreamCanvasCapture, d as LocalRecordingProvider, l as OpenViduRecordingProvider, y as StreamCanvasProcessingSession } from "./src-BSicdXwp.esm.js";
|
|
4
4
|
import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
5
|
-
import { a as uploadDeepsightVideo,
|
|
5
|
+
import { a as uploadDeepsightVideo, i as stopRecording$1, l as getDeviceClass, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-LM3-zTfD.esm.js";
|
|
6
6
|
import { r as getToken, t as api } from "./api-utDuOVDZ.esm.js";
|
|
7
7
|
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
8
8
|
import { t as addDeviceStats } from "./stats-CIdlLJwO.esm.js";
|
|
@@ -445,7 +445,7 @@ async function stopRecording(session) {
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
async function initializeDeepsightSession(options) {
|
|
448
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
448
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-QxwYYW5j.esm.js");
|
|
449
449
|
return loadDeepsightSession({
|
|
450
450
|
ds: options.ds,
|
|
451
451
|
storage: options.storage
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as createManager } from "./src-BSicdXwp.esm.js";
|
|
2
2
|
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
3
3
|
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { F as isIOS, N as isAndroid, O as createManager, v as BrowserGeolocationProvider } from "./src-BSicdXwp.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
4
|
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as createManager, m as BrowserTimerProvider } from "./src-BSicdXwp.esm.js";
|
|
2
2
|
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
3
3
|
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { d as addEvent, m as revokeObjectURL, n as eventModuleNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import {
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-C0dQR2BX.esm.js";
|
|
3
|
+
import { C as IncodeCanvas, O as createManager, P as isDesktop, _ as BrowserEnvironmentProvider, b as StreamCanvasCapture, f as IpifyProvider, g as BrowserInfoProvider, h as BrowserStorageProvider, i as IdCaptureProvider, j as getWindowDimensions, l as OpenViduRecordingProvider, m as BrowserTimerProvider, n as DEFAULT_ID_CAPTURE_THRESHOLDS, p as FingerprintProvider, t as DEFAULT_ID_CAPTURE_MODEL_VERSION, y as StreamCanvasProcessingSession } from "./src-BSicdXwp.esm.js";
|
|
4
4
|
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
5
|
-
import {
|
|
6
|
-
import { n as isBrowserSimulation } from "./deepsightService-
|
|
5
|
+
import { i as stopRecording$1, l as getDeviceClass, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-LM3-zTfD.esm.js";
|
|
6
|
+
import { n as isBrowserSimulation } from "./deepsightService-CDvgEgfO.esm.js";
|
|
7
7
|
import { n as getApi, r as getToken, t as api } from "./api-utDuOVDZ.esm.js";
|
|
8
8
|
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
9
9
|
import { t as addDeviceStats } from "./stats-CIdlLJwO.esm.js";
|
|
@@ -896,7 +896,7 @@ const checkMotionSensorActor = fromCallback(({ input, sendBack }) => {
|
|
|
896
896
|
});
|
|
897
897
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
898
898
|
if (!input.dependencies) return;
|
|
899
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
899
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-QxwYYW5j.esm.js");
|
|
900
900
|
return loadDeepsightSession({
|
|
901
901
|
ds: input.ds,
|
|
902
902
|
storage: input.dependencies.storage,
|
package/dist/id.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./events-B4Z68p21.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import "./src-
|
|
2
|
+
import "./backCameraStream-C0dQR2BX.esm.js";
|
|
3
|
+
import "./src-BSicdXwp.esm.js";
|
|
4
4
|
import "./xstate.esm-Be4HOnoi.esm.js";
|
|
5
|
-
import "./streamingEvents-
|
|
6
|
-
import "./deepsightService-
|
|
5
|
+
import "./streamingEvents-LM3-zTfD.esm.js";
|
|
6
|
+
import "./deepsightService-CDvgEgfO.esm.js";
|
|
7
7
|
import "./api-utDuOVDZ.esm.js";
|
|
8
8
|
import "./endpoints-DZ8tQH8V.esm.js";
|
|
9
|
-
import { a as processId, c as stopStream, d as ID_ERROR_CODES, i as initializeIdCapture, l as uploadIdImage, n as createIdCaptureActor, o as startRecordingSession, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-
|
|
9
|
+
import { a as processId, c as stopStream, d as ID_ERROR_CODES, i as initializeIdCapture, l as uploadIdImage, n as createIdCaptureActor, o as startRecordingSession, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-7PFrLVCf.esm.js";
|
|
10
10
|
import "./stats-CIdlLJwO.esm.js";
|
|
11
11
|
|
|
12
12
|
export { ID_ERROR_CODES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,17 @@ import "./Actor-BWuqxR_a.js";
|
|
|
8
8
|
import "./StateMachine-DQeBZwAJ.js";
|
|
9
9
|
import "./types-CCmurMLG.js";
|
|
10
10
|
|
|
11
|
+
//#region ../infra/src/capabilities/IScreenOrientationCapability.d.ts
|
|
12
|
+
type ScreenOrientationState = 'portrait' | 'landscape';
|
|
13
|
+
type IScreenOrientationCapability = {
|
|
14
|
+
readonly current: ScreenOrientationState;
|
|
15
|
+
subscribe(callback: (state: ScreenOrientationState) => void): () => void;
|
|
16
|
+
cleanup(): void;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region ../infra/src/capabilities/platform.d.ts
|
|
20
|
+
declare function isIPad(userAgent?: string): boolean;
|
|
21
|
+
//#endregion
|
|
11
22
|
//#region ../infra/src/http/types.d.ts
|
|
12
23
|
type CreateApiConfig = {
|
|
13
24
|
apiURL: string;
|
|
@@ -53,6 +64,23 @@ type HttpClient = {
|
|
|
53
64
|
//#region ../infra/src/http/createApi.d.ts
|
|
54
65
|
declare const createApi: (config: CreateApiConfig) => HttpClient;
|
|
55
66
|
//#endregion
|
|
67
|
+
//#region ../infra/src/providers/browser/ScreenOrientationProvider.d.ts
|
|
68
|
+
declare class ScreenOrientationProvider implements IScreenOrientationCapability {
|
|
69
|
+
private _current;
|
|
70
|
+
private subscribers;
|
|
71
|
+
private orientationChangeHandler;
|
|
72
|
+
private resizeHandler;
|
|
73
|
+
private mediaQueryList;
|
|
74
|
+
private mediaQueryHandler;
|
|
75
|
+
constructor();
|
|
76
|
+
get current(): ScreenOrientationState;
|
|
77
|
+
subscribe(callback: (state: ScreenOrientationState) => void): () => void;
|
|
78
|
+
cleanup(): void;
|
|
79
|
+
private handleOrientationChange;
|
|
80
|
+
private handleResize;
|
|
81
|
+
private updateState;
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
56
84
|
//#region src/internal/device/getBrowser.d.ts
|
|
57
85
|
type Browser = 'chrome' | 'firefox' | 'safari' | 'edge' | 'opera' | 'other';
|
|
58
86
|
declare function getBrowser(): Browser;
|
|
@@ -61,6 +89,14 @@ declare function getBrowser(): Browser;
|
|
|
61
89
|
type DeviceClass = 'ios' | 'android' | 'desktop';
|
|
62
90
|
declare function getDeviceClass(): DeviceClass;
|
|
63
91
|
//#endregion
|
|
92
|
+
//#region src/internal/device/screenOrientation.d.ts
|
|
93
|
+
type ScreenOrientationObserver = {
|
|
94
|
+
get isLandscapeMobile(): boolean;
|
|
95
|
+
subscribe(callback: (isLandscapeMobile: boolean) => void): () => void;
|
|
96
|
+
cleanup(): void;
|
|
97
|
+
};
|
|
98
|
+
declare function createScreenOrientationObserver(provider: IScreenOrientationCapability, deviceClass: DeviceClass): ScreenOrientationObserver;
|
|
99
|
+
//#endregion
|
|
64
100
|
//#region src/internal/http/api.d.ts
|
|
65
101
|
type MethodConfig = {
|
|
66
102
|
headers?: Record<string, string>;
|
|
@@ -525,4 +561,4 @@ declare function moduleClosed(module: EventModule | string, screen?: EventScreen
|
|
|
525
561
|
declare function screenOpened(module: EventModule | string, screen: EventScreen | string, payload?: Record<string, unknown>): void;
|
|
526
562
|
declare function screenClosed(module: EventModule | string, screen: EventScreen | string, payload?: Record<string, unknown>): void;
|
|
527
563
|
//#endregion
|
|
528
|
-
export { type Browser, CameraStream, CaptureIdResponse, CapturedImage, CreateIdCaptureActorOptions, type CreateSessionOptions, DetectionArea, DetectionOrientation, DetectionStatus, type DeviceClass, type Event, type EventModule, type EventScreen, type HttpClient, ID_ERROR_CODES, IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, IdCaptureMachine, IdCaptureManager, IdCaptureMode, IdCaptureSettings, IdCaptureState, IdCaptureThresholds, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, type PermissionResult, type PermissionStatus, RecordingSession, type Session, type SessionInitOptions, type SessionInitResult, type SetupOptions, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, type WasmConfig, type WasmPipeline, addEvent, api, cameraScreenNamesMapper, checkPermission as checkCameraPermission, createApi, createIdCaptureActor, createIdCaptureManager, createSession, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
|
|
564
|
+
export { type Browser, CameraStream, CaptureIdResponse, CapturedImage, CreateIdCaptureActorOptions, type CreateSessionOptions, DetectionArea, DetectionOrientation, DetectionStatus, type DeviceClass, type Event, type EventModule, type EventScreen, type HttpClient, ID_ERROR_CODES, IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, IdCaptureMachine, IdCaptureManager, IdCaptureMode, IdCaptureSettings, IdCaptureState, IdCaptureThresholds, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, type PermissionResult, type PermissionStatus, RecordingSession, type ScreenOrientationObserver, ScreenOrientationProvider, type Session, type SessionInitOptions, type SessionInitResult, type SetupOptions, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, type WasmConfig, type WasmPipeline, addEvent, api, cameraScreenNamesMapper, checkPermission as checkCameraPermission, createApi, createIdCaptureActor, createIdCaptureManager, createScreenOrientationObserver, createSession, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isIPad, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as videoSelfieEvents, c as screenClosed, d as addEvent, f as flushEventQueue, i as tutorialScreenNamesMapper, l as screenEvent, n as eventModuleNames, o as moduleClosed, p as subscribeEvent, r as eventScreenNames, s as moduleOpened, t as cameraScreenNamesMapper, u as screenOpened } from "./events-B4Z68p21.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import {
|
|
2
|
+
import "./backCameraStream-C0dQR2BX.esm.js";
|
|
3
|
+
import { I as isIPad, c as ScreenOrientationProvider, k as createApi_default, o as warmupWasm, r as WasmUtilProvider } from "./src-BSicdXwp.esm.js";
|
|
4
4
|
import "./xstate.esm-Be4HOnoi.esm.js";
|
|
5
|
-
import { c as
|
|
6
|
-
import "./deepsightService-
|
|
5
|
+
import { c as createScreenOrientationObserver, l as getDeviceClass, o as checkPermission, s as requestPermission, u as getBrowser } from "./streamingEvents-LM3-zTfD.esm.js";
|
|
6
|
+
import "./deepsightService-CDvgEgfO.esm.js";
|
|
7
7
|
import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-utDuOVDZ.esm.js";
|
|
8
8
|
import "./endpoints-DZ8tQH8V.esm.js";
|
|
9
|
-
import { _ as createSession, a as processId, c as stopStream, d as ID_ERROR_CODES, f as getDisableIpify, g as resetSessionInit, h as isSessionInitialized, i as initializeIdCapture, l as uploadIdImage, m as initializeSession, n as createIdCaptureActor, o as startRecordingSession, p as getSessionFeatures, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-
|
|
9
|
+
import { _ as createSession, a as processId, c as stopStream, d as ID_ERROR_CODES, f as getDisableIpify, g as resetSessionInit, h as isSessionInitialized, i as initializeIdCapture, l as uploadIdImage, m as initializeSession, n as createIdCaptureActor, o as startRecordingSession, p as getSessionFeatures, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-7PFrLVCf.esm.js";
|
|
10
10
|
import "./stats-CIdlLJwO.esm.js";
|
|
11
11
|
|
|
12
12
|
//#region src/setup.ts
|
|
@@ -128,4 +128,4 @@ function reset() {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
//#endregion
|
|
131
|
-
export { ID_ERROR_CODES, addEvent, api, cameraScreenNamesMapper, checkPermission as checkCameraPermission, createApi_default as createApi, createIdCaptureActor, createIdCaptureManager, createSession, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
|
|
131
|
+
export { ID_ERROR_CODES, ScreenOrientationProvider, addEvent, api, cameraScreenNamesMapper, checkPermission as checkCameraPermission, createApi_default as createApi, createIdCaptureActor, createIdCaptureManager, createScreenOrientationObserver, createSession, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isIPad, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as createManager, m as BrowserTimerProvider } from "./src-BSicdXwp.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
4
|
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import {
|
|
2
|
+
import "./backCameraStream-C0dQR2BX.esm.js";
|
|
3
|
+
import { h as BrowserStorageProvider, r as WasmUtilProvider } from "./src-BSicdXwp.esm.js";
|
|
4
4
|
import { a as createActor, i as fromPromise, n as assign } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
5
|
-
import "./streamingEvents-
|
|
6
|
-
import "./deepsightService-
|
|
5
|
+
import "./streamingEvents-LM3-zTfD.esm.js";
|
|
6
|
+
import "./deepsightService-CDvgEgfO.esm.js";
|
|
7
7
|
import "./api-utDuOVDZ.esm.js";
|
|
8
8
|
import "./endpoints-DZ8tQH8V.esm.js";
|
|
9
9
|
import "./stats-CIdlLJwO.esm.js";
|
|
10
|
-
import { a as FACE_ERROR_CODES, i as uploadSelfie, n as faceCaptureMachine, o as createFaceCaptureManager, r as processFace, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-
|
|
10
|
+
import { a as FACE_ERROR_CODES, i as uploadSelfie, n as faceCaptureMachine, o as createFaceCaptureManager, r as processFace, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-MIB3WcEx.esm.js";
|
|
11
11
|
|
|
12
12
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
13
13
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
@@ -23,6 +23,11 @@ function isAndroid(userAgent) {
|
|
|
23
23
|
const ua = userAgent || (typeof navigator !== "undefined" ? navigator.userAgent : "");
|
|
24
24
|
return /Android/i.test(ua);
|
|
25
25
|
}
|
|
26
|
+
function isIPad(userAgent) {
|
|
27
|
+
const ua = userAgent || (typeof navigator !== "undefined" ? navigator.userAgent : "");
|
|
28
|
+
const hasTouchPoints = typeof navigator !== "undefined" ? navigator.maxTouchPoints > 0 : false;
|
|
29
|
+
return /iPad/.test(ua) || /Mac OS/.test(ua) && hasTouchPoints && !/iPhone|iPod/.test(ua);
|
|
30
|
+
}
|
|
26
31
|
function isDesktop(userAgent) {
|
|
27
32
|
if (uxType) return uxType === "desktop";
|
|
28
33
|
const ua = userAgent || (typeof navigator !== "undefined" ? navigator.userAgent : "");
|
|
@@ -4502,6 +4507,75 @@ var OpenViduRecordingProvider = class {
|
|
|
4502
4507
|
}
|
|
4503
4508
|
};
|
|
4504
4509
|
|
|
4510
|
+
//#endregion
|
|
4511
|
+
//#region ../infra/src/providers/browser/ScreenOrientationProvider.ts
|
|
4512
|
+
function isPortrait() {
|
|
4513
|
+
if (typeof window === "undefined" || typeof screen === "undefined") return true;
|
|
4514
|
+
if (typeof window.matchMedia === "function") return !window.matchMedia("(orientation: landscape)").matches;
|
|
4515
|
+
if (screen.orientation?.type?.includes("portrait")) return true;
|
|
4516
|
+
if (screen.orientation?.type?.includes("landscape")) return false;
|
|
4517
|
+
const orientation = window.orientation;
|
|
4518
|
+
if (typeof orientation === "number") return Math.abs(orientation) === 0;
|
|
4519
|
+
return window.innerHeight >= window.innerWidth;
|
|
4520
|
+
}
|
|
4521
|
+
function toState(portrait) {
|
|
4522
|
+
return portrait ? "portrait" : "landscape";
|
|
4523
|
+
}
|
|
4524
|
+
var ScreenOrientationProvider = class {
|
|
4525
|
+
constructor() {
|
|
4526
|
+
this._current = toState(isPortrait());
|
|
4527
|
+
this.subscribers = /* @__PURE__ */ new Set();
|
|
4528
|
+
this.orientationChangeHandler = this.handleOrientationChange.bind(this);
|
|
4529
|
+
this.resizeHandler = this.handleResize.bind(this);
|
|
4530
|
+
this.mediaQueryList = null;
|
|
4531
|
+
this.mediaQueryHandler = this.handleResize.bind(this);
|
|
4532
|
+
if (typeof window === "undefined") return;
|
|
4533
|
+
if (screen.orientation) screen.orientation.addEventListener("change", this.orientationChangeHandler);
|
|
4534
|
+
else window.addEventListener("orientationchange", this.orientationChangeHandler);
|
|
4535
|
+
window.addEventListener("resize", this.resizeHandler);
|
|
4536
|
+
if (typeof window.matchMedia === "function") {
|
|
4537
|
+
this.mediaQueryList = window.matchMedia("(orientation: landscape)");
|
|
4538
|
+
this.mediaQueryList.addEventListener("change", this.mediaQueryHandler);
|
|
4539
|
+
}
|
|
4540
|
+
}
|
|
4541
|
+
get current() {
|
|
4542
|
+
return this._current;
|
|
4543
|
+
}
|
|
4544
|
+
subscribe(callback) {
|
|
4545
|
+
this.subscribers.add(callback);
|
|
4546
|
+
callback(this._current);
|
|
4547
|
+
return () => {
|
|
4548
|
+
this.subscribers.delete(callback);
|
|
4549
|
+
};
|
|
4550
|
+
}
|
|
4551
|
+
cleanup() {
|
|
4552
|
+
if (typeof window === "undefined") return;
|
|
4553
|
+
if (screen.orientation) screen.orientation.removeEventListener("change", this.orientationChangeHandler);
|
|
4554
|
+
else window.removeEventListener("orientationchange", this.orientationChangeHandler);
|
|
4555
|
+
window.removeEventListener("resize", this.resizeHandler);
|
|
4556
|
+
this.mediaQueryList?.removeEventListener("change", this.mediaQueryHandler);
|
|
4557
|
+
this.mediaQueryList = null;
|
|
4558
|
+
this.subscribers.clear();
|
|
4559
|
+
}
|
|
4560
|
+
handleOrientationChange() {
|
|
4561
|
+
setTimeout(() => {
|
|
4562
|
+
this.updateState();
|
|
4563
|
+
if (document.activeElement instanceof HTMLElement) document.activeElement.blur();
|
|
4564
|
+
window.focus();
|
|
4565
|
+
}, 0);
|
|
4566
|
+
}
|
|
4567
|
+
handleResize() {
|
|
4568
|
+
this.updateState();
|
|
4569
|
+
}
|
|
4570
|
+
updateState() {
|
|
4571
|
+
const next = toState(isPortrait());
|
|
4572
|
+
if (next !== this._current) {
|
|
4573
|
+
this._current = next;
|
|
4574
|
+
for (const cb of this.subscribers) cb(this._current);
|
|
4575
|
+
}
|
|
4576
|
+
}
|
|
4577
|
+
};
|
|
4578
|
+
|
|
4505
4579
|
//#endregion
|
|
4506
4580
|
//#region ../infra/src/providers/browser/VisibilityProvider.ts
|
|
4507
4581
|
var VisibilityProvider = class {
|
|
@@ -5713,4 +5787,4 @@ const DEFAULT_ID_CAPTURE_THRESHOLDS = {
|
|
|
5713
5787
|
const DEFAULT_ID_CAPTURE_MODEL_VERSION = "v2";
|
|
5714
5788
|
|
|
5715
5789
|
//#endregion
|
|
5716
|
-
export {
|
|
5790
|
+
export { getDeviceInfo as A, IncodeCanvas as C, stopCameraStream as D, requestCameraAccess as E, isIOS as F, isIPad as I, isIPhone14OrHigher as L, getUserAgent as M, isAndroid as N, createManager as O, isDesktop as P, isSafari as R, createHiddenVideoElement as S, enumerateVideoDevices as T, BrowserEnvironmentProvider as _, FaceDetectionProvider as a, StreamCanvasCapture as b, ScreenOrientationProvider as c, LocalRecordingProvider as d, IpifyProvider as f, BrowserInfoProvider as g, BrowserStorageProvider as h, IdCaptureProvider as i, getWindowDimensions as j, createApi_default as k, OpenViduRecordingProvider as l, BrowserTimerProvider as m, DEFAULT_ID_CAPTURE_THRESHOLDS as n, warmupWasm as o, FingerprintProvider as p, WasmUtilProvider as r, VisibilityProvider as s, DEFAULT_ID_CAPTURE_MODEL_VERSION as t, MotionSensorProvider as u, BrowserGeolocationProvider as v, applyTrackConstraints as w, queryCameraPermission as x, StreamCanvasProcessingSession as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as getDeviceInfo, D as stopCameraStream, E as requestCameraAccess, I as isIPad, M as getUserAgent, u as MotionSensorProvider, x as queryCameraPermission } from "./src-BSicdXwp.esm.js";
|
|
2
2
|
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
4
4
|
|
|
@@ -26,6 +26,23 @@ function getDeviceClass() {
|
|
|
26
26
|
return "desktop";
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/internal/device/screenOrientation.ts
|
|
31
|
+
function createScreenOrientationObserver(provider, deviceClass) {
|
|
32
|
+
const getIsLandscapeMobile = () => deviceClass !== "desktop" && !isIPad() && provider.current === "landscape";
|
|
33
|
+
return {
|
|
34
|
+
get isLandscapeMobile() {
|
|
35
|
+
return getIsLandscapeMobile();
|
|
36
|
+
},
|
|
37
|
+
subscribe(callback) {
|
|
38
|
+
return provider.subscribe(() => {
|
|
39
|
+
callback(getIsLandscapeMobile());
|
|
40
|
+
});
|
|
41
|
+
},
|
|
42
|
+
cleanup: () => provider.cleanup()
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
29
46
|
//#endregion
|
|
30
47
|
//#region src/internal/permissions/permissionServices.ts
|
|
31
48
|
/**
|
|
@@ -101,4 +118,4 @@ const streamingEvents = {
|
|
|
101
118
|
};
|
|
102
119
|
|
|
103
120
|
//#endregion
|
|
104
|
-
export { uploadDeepsightVideo as a,
|
|
121
|
+
export { uploadDeepsightVideo as a, createScreenOrientationObserver as c, stopRecording as i, getDeviceClass as l, createRecordingSession as n, checkPermission as o, startRecording as r, requestPermission as s, streamingEvents as t, getBrowser as u };
|