@incodetech/welcome 1.85.0-20251105173409.0 → 1.85.0-20251105220659.0
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.
|
@@ -2,6 +2,7 @@ import { LooseSession } from '../../../types/src';
|
|
|
2
2
|
import { UiConfig } from '../ui/types';
|
|
3
3
|
import { FaceError, FaceSuccess } from './state/FaceFlowManager.types';
|
|
4
4
|
|
|
5
|
+
export type { FaceError, FaceSuccess };
|
|
5
6
|
export type FaceCaptureOnlyResponse = {
|
|
6
7
|
image: {
|
|
7
8
|
imageBase64: string;
|
|
@@ -2,6 +2,7 @@ import { LooseSession } from '../../../types/src';
|
|
|
2
2
|
import { UiConfig } from '../ui/types';
|
|
3
3
|
import { IdError, IdSuccess } from './IDV2/state/IdFlowManager.types';
|
|
4
4
|
|
|
5
|
+
export type { IdError, IdSuccess };
|
|
5
6
|
export type CaptureOnlyResponse = {
|
|
6
7
|
frontImage: {
|
|
7
8
|
imageBase64: string;
|
|
@@ -14,7 +15,7 @@ export type CaptureOnlyResponse = {
|
|
|
14
15
|
blob: Blob;
|
|
15
16
|
url: string;
|
|
16
17
|
metadata: string;
|
|
17
|
-
};
|
|
18
|
+
} | undefined;
|
|
18
19
|
};
|
|
19
20
|
export type KioskOptions = {
|
|
20
21
|
enableKiosk?: boolean;
|
package/dist/onBoarding.mjs
CHANGED
|
@@ -8375,7 +8375,7 @@ class MlWasmJSApi {
|
|
|
8375
8375
|
);
|
|
8376
8376
|
}
|
|
8377
8377
|
}
|
|
8378
|
-
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-
|
|
8378
|
+
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251105220659.0";
|
|
8379
8379
|
function e$2(Be, Le) {
|
|
8380
8380
|
return function(Ye, tt) {
|
|
8381
8381
|
return Object.prototype.hasOwnProperty.call(Ye, tt);
|
|
@@ -9140,7 +9140,10 @@ async function getFingerprint(Be = !1) {
|
|
|
9140
9140
|
class MetadataUtils {
|
|
9141
9141
|
async initializeMetadata(Le, Ye = !1) {
|
|
9142
9142
|
MlWasmJSApi$1.setSdkPlatform("WEBAPP"), MlWasmJSApi$1.setSdkVersion(Le || version$4);
|
|
9143
|
-
const { os: tt, device: nt } = getUAParserResults(), ft = await getFingerprint(Ye).catch((At) =>
|
|
9143
|
+
const { os: tt, device: nt } = getUAParserResults(), ft = await getFingerprint(Ye).catch((At) => ({
|
|
9144
|
+
visitorId: "",
|
|
9145
|
+
ip: ""
|
|
9146
|
+
})), ht = {
|
|
9144
9147
|
kind: mobile.isDesktop() ? "desktop" : "mobile",
|
|
9145
9148
|
model: `${nt.vendor || ""} ${nt.model || ""}`.trim(),
|
|
9146
9149
|
os: tt.name,
|
|
@@ -179556,7 +179559,7 @@ class FaceFlowManager extends AbstractFlowManager {
|
|
|
179556
179559
|
}));
|
|
179557
179560
|
}
|
|
179558
179561
|
async initialize(Le) {
|
|
179559
|
-
this.authHint = Le.authHint, this.isAuth = Le.isAuth, this.captureOnly = Le.captureOnly ?? !1, this.onCapture = Le.onCapture ?? null, await super.initialize(Le), this.setRecorders();
|
|
179562
|
+
this.authHint = Le.authHint, this.isAuth = Le.isAuth, this.captureOnly = Le.captureOnly ?? !1, this.onCapture = Le.onCapture ?? null, this.uiConfig = Le.uiConfig ?? null, await super.initialize(Le), this.setRecorders();
|
|
179560
179563
|
}
|
|
179561
179564
|
async determineInitialStep(Le) {
|
|
179562
179565
|
return await this.isPermissionsEnabled() ? (this.shouldShowTutorialInCapture = Le.showTutorial, "capture") : Le.showTutorial ? "tutorial" : "permissions";
|
|
@@ -205305,7 +205308,7 @@ class IdFlowManager extends AbstractFlowManager {
|
|
|
205305
205308
|
}
|
|
205306
205309
|
async initialize(Le) {
|
|
205307
205310
|
var Ye, tt;
|
|
205308
|
-
Le.kioskOptions && (this.kioskOptions = Le.kioskOptions), this.parentSize = (Ye = Le.parentSize) != null && Ye.width && ((tt = Le.parentSize) != null && tt.height) ? Le.parentSize : this.parentSize, this.onCapture = Le.onCapture || null, this.captureOnly = Le.captureOnly || !1, this.capturedImages = {}, this.captureMode = Le.captureMode || "both", await super.initialize({
|
|
205311
|
+
Le.kioskOptions && (this.kioskOptions = Le.kioskOptions), this.parentSize = (Ye = Le.parentSize) != null && Ye.width && ((tt = Le.parentSize) != null && tt.height) ? Le.parentSize : this.parentSize, this.onCapture = Le.onCapture || null, this.captureOnly = Le.captureOnly || !1, this.capturedImages = {}, this.captureMode = Le.captureMode || "both", this.uiConfig = Le.uiConfig || null, await super.initialize({
|
|
205309
205312
|
sessionToken: Le.sessionToken,
|
|
205310
205313
|
captureConfig: Le.captureConfig,
|
|
205311
205314
|
parentSize: Le.parentSize,
|