@incodetech/core 0.0.0-dev-20260505-23151a2 → 0.0.0-dev-20260505-4b09daf
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/{BaseWasmProvider-ECdlJ4eI.esm.js → BaseWasmProvider-BTKqWpeB.esm.js} +45 -49
- package/dist/{WasmUtilProvider-CjeoVWLu.esm.js → WasmUtilProvider-DqCiPXV6.esm.js} +1 -1
- package/dist/ae-signature.d.ts +1 -1
- package/dist/authentication.d.ts +2 -2
- package/dist/authentication.esm.js +6 -6
- package/dist/{authenticationManager-CQz8LKMD.d.ts → authenticationManager-DBgL1B8m.d.ts} +1 -1
- package/dist/{authenticationManager-D2cV2RYg.esm.js → authenticationManager-DzBrRrX7.esm.js} +2 -2
- package/dist/{authenticationStateMachine-BB-GL-sm.esm.js → authenticationStateMachine-Dg19Awyc.esm.js} +2 -2
- package/dist/consent.d.ts +47 -47
- package/dist/cpf-ocr.d.ts +17 -17
- package/dist/{deepsightLoader-VHWCGVhU.esm.js → deepsightLoader-BnMFKE9b.esm.js} +2 -2
- package/dist/document-capture.d.ts +71 -71
- package/dist/document-upload.d.ts +43 -43
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +4 -4
- package/dist/extensibility.esm.js +10 -10
- package/dist/{faceCaptureManagerFactory-DfY95mko.d.ts → faceCaptureManagerFactory-CgwUMlyj.d.ts} +0 -35
- package/dist/{faceCaptureSetup-BBy_QNcO.esm.js → faceCaptureSetup-Cclz77d6.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +55 -55
- package/dist/id.d.ts +1 -1
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureManager-X3CG5c3T.d.ts → idCaptureManager--lWVPu7Z.d.ts} +0 -2
- package/dist/{idCaptureManager-CEJN1LTW.esm.js → idCaptureManager-Df8xxjBX.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-Doo9KqTB.esm.js → idCaptureStateMachine-__Cc1trJ.esm.js} +6 -8
- package/dist/identity-reuse.d.ts +43 -43
- package/dist/{index-CJT4brJN.d.ts → index-DlIJDOn_.d.ts} +119 -119
- package/dist/index.esm.js +3 -3
- package/dist/mandatory-consent.d.ts +47 -47
- package/dist/qe-signature.d.ts +1 -1
- package/dist/{recordingService-DKg2c5De.esm.js → recordingService-Cen0Qmop.esm.js} +8 -21
- package/dist/selfie.d.ts +2 -2
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieManager-Bqf4qfIp.d.ts → selfieManager-BtyIr64h.d.ts} +1 -1
- package/dist/{selfieManager-pGHW3GaN.esm.js → selfieManager-DGAsMXpK.esm.js} +2 -2
- package/dist/{selfieStateMachine-C7ity4G9.esm.js → selfieStateMachine-C_VXHzeA.esm.js} +2 -2
- package/dist/{setup-Bp6ownN0.esm.js → setup-DvsiYeiw.esm.js} +3 -3
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +3 -3
- package/dist/workflow.d.ts +85 -85
- package/dist/workflow.esm.js +6 -6
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as setup, n as isConfigured, r as reset } from "./setup-
|
|
2
|
-
import "./BaseWasmProvider-
|
|
3
|
-
import "./WasmUtilProvider-
|
|
1
|
+
import { a as setup, n as isConfigured, r as reset } from "./setup-DvsiYeiw.esm.js";
|
|
2
|
+
import "./BaseWasmProvider-BTKqWpeB.esm.js";
|
|
3
|
+
import "./WasmUtilProvider-DqCiPXV6.esm.js";
|
|
4
4
|
import "./api-3IquGyW5.esm.js";
|
|
5
5
|
import "./events-237AXtL7.esm.js";
|
|
6
6
|
import "./session-DEzJ3qMM.esm.js";
|
|
@@ -3,7 +3,7 @@ import "./Actor-CazhiaK7.js";
|
|
|
3
3
|
import "./camera-CS1twtEg.js";
|
|
4
4
|
import "./types-DdYIMV6w.js";
|
|
5
5
|
import { a as RegulationTypes } from "./types-DFwAuzk2.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as xstate145 from "xstate";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/mandatory-consent/types.d.ts
|
|
9
9
|
type MandatoryConsentConfig = {
|
|
@@ -30,7 +30,7 @@ type MandatoryConsentContext = {
|
|
|
30
30
|
type MandatoryConsentInput = {
|
|
31
31
|
config: MandatoryConsentConfig;
|
|
32
32
|
};
|
|
33
|
-
declare const mandatoryConsentMachine:
|
|
33
|
+
declare const mandatoryConsentMachine: xstate145.StateMachine<MandatoryConsentContext, {
|
|
34
34
|
type: "LOAD";
|
|
35
35
|
} | {
|
|
36
36
|
type: "TOGGLE";
|
|
@@ -43,53 +43,53 @@ declare const mandatoryConsentMachine: xstate311.StateMachine<MandatoryConsentCo
|
|
|
43
43
|
} | {
|
|
44
44
|
type: "RESET";
|
|
45
45
|
}, {
|
|
46
|
-
[x: string]:
|
|
46
|
+
[x: string]: xstate145.ActorRefFromLogic<xstate145.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
47
47
|
config: MandatoryConsentConfig;
|
|
48
|
-
},
|
|
48
|
+
}, xstate145.EventObject>> | xstate145.ActorRefFromLogic<xstate145.PromiseActorLogic<void, {
|
|
49
49
|
consentId: string;
|
|
50
50
|
isSigned: boolean;
|
|
51
|
-
},
|
|
52
|
-
},
|
|
51
|
+
}, xstate145.EventObject>> | undefined;
|
|
52
|
+
}, xstate145.Values<{
|
|
53
53
|
fetchConsent: {
|
|
54
54
|
src: "fetchConsent";
|
|
55
|
-
logic:
|
|
55
|
+
logic: xstate145.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
56
56
|
config: MandatoryConsentConfig;
|
|
57
|
-
},
|
|
57
|
+
}, xstate145.EventObject>;
|
|
58
58
|
id: string | undefined;
|
|
59
59
|
};
|
|
60
60
|
submitConsent: {
|
|
61
61
|
src: "submitConsent";
|
|
62
|
-
logic:
|
|
62
|
+
logic: xstate145.PromiseActorLogic<void, {
|
|
63
63
|
consentId: string;
|
|
64
64
|
isSigned: boolean;
|
|
65
|
-
},
|
|
65
|
+
}, xstate145.EventObject>;
|
|
66
66
|
id: string | undefined;
|
|
67
67
|
};
|
|
68
|
-
}>,
|
|
68
|
+
}>, xstate145.Values<{
|
|
69
69
|
setConsent: {
|
|
70
70
|
type: "setConsent";
|
|
71
|
-
params:
|
|
71
|
+
params: xstate145.NonReducibleUnknown;
|
|
72
72
|
};
|
|
73
73
|
setError: {
|
|
74
74
|
type: "setError";
|
|
75
|
-
params:
|
|
75
|
+
params: xstate145.NonReducibleUnknown;
|
|
76
76
|
};
|
|
77
77
|
clearError: {
|
|
78
78
|
type: "clearError";
|
|
79
|
-
params:
|
|
79
|
+
params: xstate145.NonReducibleUnknown;
|
|
80
80
|
};
|
|
81
81
|
toggleSigned: {
|
|
82
82
|
type: "toggleSigned";
|
|
83
|
-
params:
|
|
83
|
+
params: xstate145.NonReducibleUnknown;
|
|
84
84
|
};
|
|
85
85
|
resetContext: {
|
|
86
86
|
type: "resetContext";
|
|
87
|
-
params:
|
|
87
|
+
params: xstate145.NonReducibleUnknown;
|
|
88
88
|
};
|
|
89
89
|
}>, {
|
|
90
90
|
type: "canSubmit";
|
|
91
91
|
params: unknown;
|
|
92
|
-
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "
|
|
92
|
+
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, xstate145.NonReducibleUnknown, xstate145.EventObject, xstate145.MetaObject, {
|
|
93
93
|
readonly id: "mandatoryConsent";
|
|
94
94
|
readonly initial: "idle";
|
|
95
95
|
readonly context: ({
|
|
@@ -98,70 +98,70 @@ declare const mandatoryConsentMachine: xstate311.StateMachine<MandatoryConsentCo
|
|
|
98
98
|
spawn: {
|
|
99
99
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
100
100
|
src: "fetchConsent";
|
|
101
|
-
logic:
|
|
101
|
+
logic: xstate145.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
102
102
|
config: MandatoryConsentConfig;
|
|
103
|
-
},
|
|
103
|
+
}, xstate145.EventObject>;
|
|
104
104
|
id: string | undefined;
|
|
105
105
|
} extends infer T ? T extends {
|
|
106
106
|
src: "fetchConsent";
|
|
107
|
-
logic:
|
|
107
|
+
logic: xstate145.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
108
108
|
config: MandatoryConsentConfig;
|
|
109
|
-
},
|
|
109
|
+
}, xstate145.EventObject>;
|
|
110
110
|
id: string | undefined;
|
|
111
111
|
} ? T extends {
|
|
112
112
|
src: TSrc;
|
|
113
|
-
} ?
|
|
113
|
+
} ? xstate145.ConditionalRequired<[options?: ({
|
|
114
114
|
id?: T["id"] | undefined;
|
|
115
115
|
systemId?: string;
|
|
116
|
-
input?:
|
|
116
|
+
input?: xstate145.InputFrom<T["logic"]> | undefined;
|
|
117
117
|
syncSnapshot?: boolean;
|
|
118
|
-
} & { [K in
|
|
118
|
+
} & { [K in xstate145.RequiredActorOptions<T>]: unknown }) | undefined], xstate145.IsNotNever<xstate145.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
119
119
|
src: "submitConsent";
|
|
120
|
-
logic:
|
|
120
|
+
logic: xstate145.PromiseActorLogic<void, {
|
|
121
121
|
consentId: string;
|
|
122
122
|
isSigned: boolean;
|
|
123
|
-
},
|
|
123
|
+
}, xstate145.EventObject>;
|
|
124
124
|
id: string | undefined;
|
|
125
125
|
} extends infer T_1 ? T_1 extends {
|
|
126
126
|
src: "submitConsent";
|
|
127
|
-
logic:
|
|
127
|
+
logic: xstate145.PromiseActorLogic<void, {
|
|
128
128
|
consentId: string;
|
|
129
129
|
isSigned: boolean;
|
|
130
|
-
},
|
|
130
|
+
}, xstate145.EventObject>;
|
|
131
131
|
id: string | undefined;
|
|
132
132
|
} ? T_1 extends {
|
|
133
133
|
src: TSrc;
|
|
134
|
-
} ?
|
|
134
|
+
} ? xstate145.ConditionalRequired<[options?: ({
|
|
135
135
|
id?: T_1["id"] | undefined;
|
|
136
136
|
systemId?: string;
|
|
137
|
-
input?:
|
|
137
|
+
input?: xstate145.InputFrom<T_1["logic"]> | undefined;
|
|
138
138
|
syncSnapshot?: boolean;
|
|
139
|
-
} & { [K_1 in
|
|
139
|
+
} & { [K_1 in xstate145.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate145.IsNotNever<xstate145.RequiredActorOptions<T_1>>> : never : never : never)): xstate145.ActorRefFromLogic<xstate145.GetConcreteByKey<xstate145.Values<{
|
|
140
140
|
fetchConsent: {
|
|
141
141
|
src: "fetchConsent";
|
|
142
|
-
logic:
|
|
142
|
+
logic: xstate145.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
143
143
|
config: MandatoryConsentConfig;
|
|
144
|
-
},
|
|
144
|
+
}, xstate145.EventObject>;
|
|
145
145
|
id: string | undefined;
|
|
146
146
|
};
|
|
147
147
|
submitConsent: {
|
|
148
148
|
src: "submitConsent";
|
|
149
|
-
logic:
|
|
149
|
+
logic: xstate145.PromiseActorLogic<void, {
|
|
150
150
|
consentId: string;
|
|
151
151
|
isSigned: boolean;
|
|
152
|
-
},
|
|
152
|
+
}, xstate145.EventObject>;
|
|
153
153
|
id: string | undefined;
|
|
154
154
|
};
|
|
155
155
|
}>, "src", TSrc>["logic"]>;
|
|
156
|
-
<TLogic extends
|
|
156
|
+
<TLogic extends xstate145.AnyActorLogic>(src: TLogic, ...[options]: xstate145.ConditionalRequired<[options?: ({
|
|
157
157
|
id?: never;
|
|
158
158
|
systemId?: string;
|
|
159
|
-
input?:
|
|
159
|
+
input?: xstate145.InputFrom<TLogic> | undefined;
|
|
160
160
|
syncSnapshot?: boolean;
|
|
161
|
-
} & { [K in
|
|
161
|
+
} & { [K in xstate145.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate145.IsNotNever<xstate145.RequiredLogicInput<TLogic>>>): xstate145.ActorRefFromLogic<TLogic>;
|
|
162
162
|
};
|
|
163
163
|
input: MandatoryConsentInput;
|
|
164
|
-
self:
|
|
164
|
+
self: xstate145.ActorRef<xstate145.MachineSnapshot<MandatoryConsentContext, {
|
|
165
165
|
type: "LOAD";
|
|
166
166
|
} | {
|
|
167
167
|
type: "TOGGLE";
|
|
@@ -173,7 +173,7 @@ declare const mandatoryConsentMachine: xstate311.StateMachine<MandatoryConsentCo
|
|
|
173
173
|
type: "RETRY";
|
|
174
174
|
} | {
|
|
175
175
|
type: "RESET";
|
|
176
|
-
}, Record<string,
|
|
176
|
+
}, Record<string, xstate145.AnyActorRef | undefined>, xstate145.StateValue, string, unknown, any, any>, {
|
|
177
177
|
type: "LOAD";
|
|
178
178
|
} | {
|
|
179
179
|
type: "TOGGLE";
|
|
@@ -185,7 +185,7 @@ declare const mandatoryConsentMachine: xstate311.StateMachine<MandatoryConsentCo
|
|
|
185
185
|
type: "RETRY";
|
|
186
186
|
} | {
|
|
187
187
|
type: "RESET";
|
|
188
|
-
},
|
|
188
|
+
}, xstate145.AnyEventObject>;
|
|
189
189
|
}) => {
|
|
190
190
|
config: MandatoryConsentConfig;
|
|
191
191
|
consent: undefined;
|
|
@@ -222,7 +222,7 @@ declare const mandatoryConsentMachine: xstate311.StateMachine<MandatoryConsentCo
|
|
|
222
222
|
} | {
|
|
223
223
|
type: "RESET";
|
|
224
224
|
};
|
|
225
|
-
self:
|
|
225
|
+
self: xstate145.ActorRef<xstate145.MachineSnapshot<MandatoryConsentContext, {
|
|
226
226
|
type: "LOAD";
|
|
227
227
|
} | {
|
|
228
228
|
type: "TOGGLE";
|
|
@@ -234,7 +234,7 @@ declare const mandatoryConsentMachine: xstate311.StateMachine<MandatoryConsentCo
|
|
|
234
234
|
type: "RETRY";
|
|
235
235
|
} | {
|
|
236
236
|
type: "RESET";
|
|
237
|
-
}, Record<string,
|
|
237
|
+
}, Record<string, xstate145.AnyActorRef>, xstate145.StateValue, string, unknown, any, any>, {
|
|
238
238
|
type: "LOAD";
|
|
239
239
|
} | {
|
|
240
240
|
type: "TOGGLE";
|
|
@@ -246,7 +246,7 @@ declare const mandatoryConsentMachine: xstate311.StateMachine<MandatoryConsentCo
|
|
|
246
246
|
type: "RETRY";
|
|
247
247
|
} | {
|
|
248
248
|
type: "RESET";
|
|
249
|
-
},
|
|
249
|
+
}, xstate145.AnyEventObject>;
|
|
250
250
|
}) => {
|
|
251
251
|
config: MandatoryConsentConfig;
|
|
252
252
|
};
|
|
@@ -299,7 +299,7 @@ declare const mandatoryConsentMachine: xstate311.StateMachine<MandatoryConsentCo
|
|
|
299
299
|
} | {
|
|
300
300
|
type: "RESET";
|
|
301
301
|
};
|
|
302
|
-
self:
|
|
302
|
+
self: xstate145.ActorRef<xstate145.MachineSnapshot<MandatoryConsentContext, {
|
|
303
303
|
type: "LOAD";
|
|
304
304
|
} | {
|
|
305
305
|
type: "TOGGLE";
|
|
@@ -311,7 +311,7 @@ declare const mandatoryConsentMachine: xstate311.StateMachine<MandatoryConsentCo
|
|
|
311
311
|
type: "RETRY";
|
|
312
312
|
} | {
|
|
313
313
|
type: "RESET";
|
|
314
|
-
}, Record<string,
|
|
314
|
+
}, Record<string, xstate145.AnyActorRef>, xstate145.StateValue, string, unknown, any, any>, {
|
|
315
315
|
type: "LOAD";
|
|
316
316
|
} | {
|
|
317
317
|
type: "TOGGLE";
|
|
@@ -323,7 +323,7 @@ declare const mandatoryConsentMachine: xstate311.StateMachine<MandatoryConsentCo
|
|
|
323
323
|
type: "RETRY";
|
|
324
324
|
} | {
|
|
325
325
|
type: "RESET";
|
|
326
|
-
},
|
|
326
|
+
}, xstate145.AnyEventObject>;
|
|
327
327
|
}) => {
|
|
328
328
|
consentId: string;
|
|
329
329
|
isSigned: boolean;
|
package/dist/qe-signature.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-CcbnIt3T.js";
|
|
2
2
|
import "./Actor-CazhiaK7.js";
|
|
3
|
-
import { c as ConsentKey, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-
|
|
3
|
+
import { c as ConsentKey, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-DlIJDOn_.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/qe-signature/index.d.ts
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as WasmPipelineType, r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-
|
|
1
|
+
import { i as WasmPipelineType, r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-BTKqWpeB.esm.js";
|
|
2
2
|
import { t as api } from "./api-3IquGyW5.esm.js";
|
|
3
3
|
import { v as endpoints } from "./events-237AXtL7.esm.js";
|
|
4
4
|
import { n as IncodeCanvas } from "./deepsightService-CU4xtxzz.esm.js";
|
|
@@ -190,8 +190,6 @@ var FaceDetectionProvider = class extends BaseWasmProvider {
|
|
|
190
190
|
faceOcclusionThreshold: .3
|
|
191
191
|
};
|
|
192
192
|
this.currentFrame = null;
|
|
193
|
-
this.bestCanvas = null;
|
|
194
|
-
this.bestFace = null;
|
|
195
193
|
}
|
|
196
194
|
async processFrame(image) {
|
|
197
195
|
this.currentFrame = image;
|
|
@@ -203,28 +201,19 @@ var FaceDetectionProvider = class extends BaseWasmProvider {
|
|
|
203
201
|
}
|
|
204
202
|
setCallbacks(callbacks) {
|
|
205
203
|
this.ensureInitialized();
|
|
206
|
-
const
|
|
207
|
-
|
|
208
|
-
if (this.currentFrame)
|
|
209
|
-
|
|
210
|
-
this.bestCanvas = frameCanvas.clone() ?? frameCanvas;
|
|
211
|
-
}
|
|
212
|
-
callbacks.onBestShot?.(face);
|
|
213
|
-
};
|
|
214
|
-
const onCaptureWrapper = () => {
|
|
215
|
-
let frameCanvas = this.bestCanvas;
|
|
216
|
-
if (!frameCanvas && this.currentFrame) frameCanvas = IncodeCanvas.fromImageData(this.currentFrame);
|
|
204
|
+
const onCaptureWrapper = (wasmCanvas, face) => {
|
|
205
|
+
let frameCanvas = null;
|
|
206
|
+
if (this.currentFrame) frameCanvas = IncodeCanvas.fromImageData(this.currentFrame);
|
|
207
|
+
else if (wasmCanvas) frameCanvas = new IncodeCanvas(wasmCanvas);
|
|
217
208
|
if (!frameCanvas) return;
|
|
218
|
-
const faceCoordinates =
|
|
209
|
+
const faceCoordinates = face ? this.formatFaceCoordinates(face) : this.createDefaultFaceCoordinates(frameCanvas);
|
|
219
210
|
try {
|
|
220
211
|
frameCanvas.updateBase64Image();
|
|
221
212
|
frameCanvas.updateBlob();
|
|
222
213
|
} catch {}
|
|
223
214
|
callbacks.onCapture?.(frameCanvas, faceCoordinates);
|
|
224
|
-
this.bestCanvas = null;
|
|
225
|
-
this.bestFace = null;
|
|
226
215
|
};
|
|
227
|
-
mlWasmJSApi_default.setFaceDetectionCallbacks(this.getPipelineType(), callbacks.onFarAway ?? (() => {}), callbacks.onTooClose ?? (() => {}), callbacks.onTooManyFaces ?? (() => {}), callbacks.onNoFace ?? (() => {}), onCaptureWrapper, callbacks.onGetReady ?? (() => {}), callbacks.onGetReadyFinished ?? (() => {}), callbacks.onCenterFace ?? (() => {}), callbacks.onDark ?? (() => {}), callbacks.onBlur ?? (() => {}), callbacks.onFaceAngle ?? (() => {}),
|
|
216
|
+
mlWasmJSApi_default.setFaceDetectionCallbacks(this.getPipelineType(), callbacks.onFarAway ?? (() => {}), callbacks.onTooClose ?? (() => {}), callbacks.onTooManyFaces ?? (() => {}), callbacks.onNoFace ?? (() => {}), onCaptureWrapper, callbacks.onGetReady ?? (() => {}), callbacks.onGetReadyFinished ?? (() => {}), callbacks.onCenterFace ?? (() => {}), callbacks.onDark ?? (() => {}), callbacks.onBlur ?? (() => {}), callbacks.onFaceAngle ?? (() => {}), callbacks.onLenses ?? (() => {}), callbacks.onMask ?? (() => {}), callbacks.onEyesClosed ?? (() => {}), callbacks.onHeadWear ?? (() => {}), callbacks.onSwitchToManualCapture ?? (() => {}), callbacks.onFaceOccluded ?? (() => {}));
|
|
228
217
|
}
|
|
229
218
|
setPositionConstraints(constraints) {
|
|
230
219
|
this.ensureInitialized();
|
|
@@ -285,8 +274,6 @@ var FaceDetectionProvider = class extends BaseWasmProvider {
|
|
|
285
274
|
reset() {
|
|
286
275
|
super.reset();
|
|
287
276
|
this.currentFrame = null;
|
|
288
|
-
this.bestCanvas = null;
|
|
289
|
-
this.bestFace = null;
|
|
290
277
|
}
|
|
291
278
|
createDefaultFaceCoordinates(canvas) {
|
|
292
279
|
return {
|
|
@@ -633,7 +620,7 @@ async function stopRecording(session) {
|
|
|
633
620
|
}
|
|
634
621
|
}
|
|
635
622
|
async function initializeDeepsightSession(options) {
|
|
636
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
623
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-BnMFKE9b.esm.js");
|
|
637
624
|
return loadDeepsightSession({
|
|
638
625
|
ds: options.ds,
|
|
639
626
|
storage: options.storage
|
package/dist/selfie.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import "./warmup-DTtV1QCY.js";
|
|
|
2
2
|
import "./Manager-CcbnIt3T.js";
|
|
3
3
|
import "./Actor-CazhiaK7.js";
|
|
4
4
|
import "./StateMachine-B3eh3sAE.js";
|
|
5
|
-
import { a as SelfieMachine, d as SelfieConfig, o as selfieMachine, v as DetectionStatus, y as FaceErrorCode } from "./faceCaptureManagerFactory-
|
|
5
|
+
import { a as SelfieMachine, d as SelfieConfig, o as selfieMachine, v as DetectionStatus, y as FaceErrorCode } from "./faceCaptureManagerFactory-CgwUMlyj.js";
|
|
6
6
|
import { t as CameraStream } from "./camera-CS1twtEg.js";
|
|
7
7
|
import "./types-DdYIMV6w.js";
|
|
8
8
|
import "./types-DFwAuzk2.js";
|
|
9
9
|
import { t as DeepsightService } from "./deepsightService-Cxp-yJjr.js";
|
|
10
10
|
import { n as PermissionStatus, t as PermissionResult } from "./types-D5fKjOcr.js";
|
|
11
|
-
import { a as ProcessFaceResponse, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-
|
|
11
|
+
import { a as ProcessFaceResponse, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-BtyIr64h.js";
|
|
12
12
|
export { type CameraStream, type DeepsightService, type DetectionStatus, type FaceErrorCode, type PermissionResult, type PermissionStatus, type ProcessFaceResponse, type SelfieConfig, type SelfieMachine, type SelfieManager, type SelfieState, createSelfieManager, processFace, selfieMachine };
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./BaseWasmProvider-
|
|
2
|
-
import "./WasmUtilProvider-
|
|
1
|
+
import "./BaseWasmProvider-BTKqWpeB.esm.js";
|
|
2
|
+
import "./WasmUtilProvider-DqCiPXV6.esm.js";
|
|
3
3
|
import "./api-3IquGyW5.esm.js";
|
|
4
4
|
import "./events-237AXtL7.esm.js";
|
|
5
5
|
import "./browserSimulation-DMJIC-23.esm.js";
|
|
6
6
|
import "./xstate.esm-CSiDcEjt.esm.js";
|
|
7
7
|
import "./faceCaptureManagerFactory-DM_o6znS.esm.js";
|
|
8
8
|
import "./BrowserStorageProvider-DeByegPK.esm.js";
|
|
9
|
-
import { l as processFace } from "./recordingService-
|
|
9
|
+
import { l as processFace } from "./recordingService-Cen0Qmop.esm.js";
|
|
10
10
|
import "./deepsightService-CU4xtxzz.esm.js";
|
|
11
11
|
import "./permissionServices-DiAThhLg.esm.js";
|
|
12
12
|
import "./camera-CSPAwp2o.esm.js";
|
|
@@ -17,8 +17,8 @@ import "./platform-BtdVAeAg.esm.js";
|
|
|
17
17
|
import "./ITimerCapability-r7XXQS6a.esm.js";
|
|
18
18
|
import "./backCameraStream-BIzYKDy2.esm.js";
|
|
19
19
|
import "./getDeviceClass-AjL3Pr7R.esm.js";
|
|
20
|
-
import "./faceCaptureSetup-
|
|
21
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
22
|
-
import { t as createSelfieManager } from "./selfieManager-
|
|
20
|
+
import "./faceCaptureSetup-Cclz77d6.esm.js";
|
|
21
|
+
import { t as selfieMachine } from "./selfieStateMachine-C_VXHzeA.esm.js";
|
|
22
|
+
import { t as createSelfieManager } from "./selfieManager-DGAsMXpK.esm.js";
|
|
23
23
|
|
|
24
24
|
export { createSelfieManager, processFace, selfieMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-CcbnIt3T.js";
|
|
2
|
-
import { i as SelfieActor, n as FaceCaptureManagerState, r as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
2
|
+
import { i as SelfieActor, n as FaceCaptureManagerState, r as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CgwUMlyj.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/selfie/selfieUploadService.d.ts
|
|
5
5
|
type ProcessFaceImageType = 'selfie' | 'videoSelfie';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-DqCiPXV6.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./events-237AXtL7.esm.js";
|
|
3
3
|
import { a as createActor } from "./xstate.esm-CSiDcEjt.esm.js";
|
|
4
4
|
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DM_o6znS.esm.js";
|
|
5
5
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DeByegPK.esm.js";
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-C_VXHzeA.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/selfie/selfieActor.ts
|
|
9
9
|
function createSelfieActor(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as fromPromise, n as assign } from "./xstate.esm-CSiDcEjt.esm.js";
|
|
2
|
-
import { l as processFace, u as uploadSelfie, v as FACE_ERROR_CODES } from "./recordingService-
|
|
3
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
2
|
+
import { l as processFace, u as uploadSelfie, v as FACE_ERROR_CODES } from "./recordingService-Cen0Qmop.esm.js";
|
|
3
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-Cclz77d6.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
6
6
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as warmupWasm } from "./BaseWasmProvider-
|
|
2
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import { n as warmupWasm } from "./BaseWasmProvider-BTKqWpeB.esm.js";
|
|
2
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-DqCiPXV6.esm.js";
|
|
3
3
|
import { a as resetApi, i as isApiConfigured, o as setClient, s as setToken } from "./api-3IquGyW5.esm.js";
|
|
4
4
|
import { h as flushEventQueue } from "./events-237AXtL7.esm.js";
|
|
5
5
|
import { i as resetSessionInit, r as initializeSession } from "./session-DEzJ3qMM.esm.js";
|
|
@@ -228,7 +228,7 @@ var createApi_default = createApi;
|
|
|
228
228
|
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
229
229
|
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
|
230
230
|
/** The WASM version bundled and tested with this SDK release. */
|
|
231
|
-
const DEFAULT_WASM_VERSION = "v2.
|
|
231
|
+
const DEFAULT_WASM_VERSION = "v2.13.14";
|
|
232
232
|
const PATH_KEYS = [
|
|
233
233
|
"wasmPath",
|
|
234
234
|
"wasmSimdPath",
|
package/dist/wasm.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { n as WasmConfig, o as setWasmConfig, r as initializeWasmUtil } from "./
|
|
|
3
3
|
|
|
4
4
|
//#region ../infra/src/wasm/wasmDefaults.d.ts
|
|
5
5
|
/** The WASM version bundled and tested with this SDK release. */
|
|
6
|
-
declare const DEFAULT_WASM_VERSION = "v2.
|
|
6
|
+
declare const DEFAULT_WASM_VERSION = "v2.13.14";
|
|
7
7
|
/** Builds the standard WarmupConfig from the Incode CDN. */
|
|
8
8
|
declare function buildDefaultWasmConfig(): WarmupConfig;
|
|
9
9
|
/**
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as resolveWasmConfig, i as setWasmConfig, o as DEFAULT_WASM_VERSION, s as buildDefaultWasmConfig, t as initializeWasmUtil } from "./setup-
|
|
2
|
-
import { n as warmupWasm } from "./BaseWasmProvider-
|
|
3
|
-
import "./WasmUtilProvider-
|
|
1
|
+
import { c as resolveWasmConfig, i as setWasmConfig, o as DEFAULT_WASM_VERSION, s as buildDefaultWasmConfig, t as initializeWasmUtil } from "./setup-DvsiYeiw.esm.js";
|
|
2
|
+
import { n as warmupWasm } from "./BaseWasmProvider-BTKqWpeB.esm.js";
|
|
3
|
+
import "./WasmUtilProvider-DqCiPXV6.esm.js";
|
|
4
4
|
import "./api-3IquGyW5.esm.js";
|
|
5
5
|
import "./events-237AXtL7.esm.js";
|
|
6
6
|
import "./session-DEzJ3qMM.esm.js";
|