@incodetech/welcome 1.85.0-20251105124000.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,
|
|
@@ -23624,7 +23627,7 @@ dt.button`
|
|
|
23624
23627
|
margin-top: -2.5px;
|
|
23625
23628
|
}
|
|
23626
23629
|
`;
|
|
23627
|
-
dt.
|
|
23630
|
+
dt.div`
|
|
23628
23631
|
width: 100%;
|
|
23629
23632
|
visibility: ${(Be) => Be.isDropdownOpen ? "visible" : "hidden"};
|
|
23630
23633
|
opacity: ${(Be) => Be.isDropdownOpen ? 1 : 0};
|
|
@@ -23635,10 +23638,28 @@ dt.ul`
|
|
|
23635
23638
|
top: 100%;
|
|
23636
23639
|
border-top: ${(Be) => Be.isDropdownOpen ? "none" : "1px solid #ccc"};
|
|
23637
23640
|
border-radius: 0 0 4px 4px;
|
|
23641
|
+
box-sizing: border-box;
|
|
23642
|
+
background: #fff;
|
|
23643
|
+
overflow: hidden;
|
|
23644
|
+
`;
|
|
23645
|
+
dt.ul`
|
|
23646
|
+
width: 100%;
|
|
23638
23647
|
max-height: 150px;
|
|
23639
23648
|
overflow-y: auto;
|
|
23640
23649
|
overflow-x: hidden;
|
|
23641
23650
|
box-sizing: border-box;
|
|
23651
|
+
margin: 0;
|
|
23652
|
+
padding: 0;
|
|
23653
|
+
list-style: none;
|
|
23654
|
+
`;
|
|
23655
|
+
dt.div`
|
|
23656
|
+
position: absolute;
|
|
23657
|
+
right: 2px;
|
|
23658
|
+
width: 4px;
|
|
23659
|
+
border-radius: 3px;
|
|
23660
|
+
background: #aaa;
|
|
23661
|
+
opacity: .85;
|
|
23662
|
+
pointer-events: none;
|
|
23642
23663
|
`;
|
|
23643
23664
|
const StyledDropdownOption = dt.li`
|
|
23644
23665
|
padding: 10px;
|
|
@@ -179538,7 +179559,7 @@ class FaceFlowManager extends AbstractFlowManager {
|
|
|
179538
179559
|
}));
|
|
179539
179560
|
}
|
|
179540
179561
|
async initialize(Le) {
|
|
179541
|
-
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();
|
|
179542
179563
|
}
|
|
179543
179564
|
async determineInitialStep(Le) {
|
|
179544
179565
|
return await this.isPermissionsEnabled() ? (this.shouldShowTutorialInCapture = Le.showTutorial, "capture") : Le.showTutorial ? "tutorial" : "permissions";
|
|
@@ -205287,7 +205308,7 @@ class IdFlowManager extends AbstractFlowManager {
|
|
|
205287
205308
|
}
|
|
205288
205309
|
async initialize(Le) {
|
|
205289
205310
|
var Ye, tt;
|
|
205290
|
-
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({
|
|
205291
205312
|
sessionToken: Le.sessionToken,
|
|
205292
205313
|
captureConfig: Le.captureConfig,
|
|
205293
205314
|
parentSize: Le.parentSize,
|