@incodetech/core 0.0.0-dev-20260304-fb1914c → 0.0.0-dev-20260306-aac8dd3
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.d.ts +9 -8
- package/dist/authentication.esm.js +10 -10
- package/dist/{backCameraStream-CvzBcQqz.esm.js → backCameraStream-DXS4n4yS.esm.js} +1 -1
- package/dist/camera-HI2fNiV5.d.ts +4 -0
- package/dist/curp-validation.d.ts +4 -3
- package/dist/curp-validation.esm.js +5 -5
- package/dist/{deepsightLoader-BYoe0Nsv.esm.js → deepsightLoader-CCuD-pzB.esm.js} +4 -4
- package/dist/{deepsightService-nqR8Q7AS.esm.js → deepsightService-D2rnPj53.esm.js} +3 -3
- package/dist/{deepsightService-BpVsx9qI.d.ts → deepsightService-Dv1ILk27.d.ts} +1 -1
- package/dist/document-capture.d.ts +660 -0
- package/dist/document-capture.esm.js +428 -0
- package/dist/document-upload.d.ts +49 -48
- package/dist/document-upload.esm.js +5 -5
- package/dist/ekyb.d.ts +2 -2
- package/dist/ekyb.esm.js +6 -6
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +6 -6
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +5 -5
- package/dist/{endpoints-DZ8tQH8V.esm.js → endpoints-PMCuQkqs.esm.js} +4 -0
- package/dist/{events-B4Z68p21.esm.js → events-Bf73PAdv.esm.js} +2 -2
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +5 -5
- package/dist/{faceCaptureManagerFactory-tyJQU0bQ.d.ts → faceCaptureManagerFactory-CftLkmnH.d.ts} +5 -5
- package/dist/{faceCaptureSetup-C6JFWLvG.esm.js → faceCaptureSetup-D3cIjwWO.esm.js} +9 -9
- package/dist/flow.d.ts +7 -6
- package/dist/flow.esm.js +5 -5
- package/dist/{flowCompletionService-BxrOI23Q.esm.js → flowCompletionService-C2Cjw8WY.esm.js} +2 -2
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +5 -5
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +4 -4
- package/dist/{id-B_LxGdTF.esm.js → id-CbVfoXco.esm.js} +10 -10
- package/dist/id.d.ts +9 -8
- package/dist/id.esm.js +10 -10
- package/dist/{index-BRPR-rem.d.ts → index-_guGVj8K.d.ts} +7 -7
- package/dist/index.d.ts +47 -10
- package/dist/index.esm.js +11 -11
- package/dist/{lib-DhQ9gAaS.esm.js → lib-DVaeY7hq.esm.js} +1 -1
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +5 -5
- package/dist/selfie.d.ts +9 -8
- package/dist/selfie.esm.js +10 -10
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +3 -3
- package/dist/{src-jvUXRQjK.esm.js → src-BJhTmsja.esm.js} +77 -3
- package/dist/{stats-CIdlLJwO.esm.js → stats-De--Z9N5.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{streamingEvents-evH8YUFP.esm.js → streamingEvents-BAYT4t4N.esm.js} +21 -4
- package/dist/{types-Cd8ODk69.d.ts → types-B_l5fu_D.d.ts} +4 -4
- package/dist/{types-CCmurMLG.d.ts → types-BcGRS3lW.d.ts} +1 -1
- package/package.json +5 -1
- /package/dist/{Actor-BWuqxR_a.d.ts → Actor-SKZvDOCc.d.ts} +0 -0
- /package/dist/{Manager-WfeWDo3j.d.ts → Manager-CVog-etk.d.ts} +0 -0
- /package/dist/{StateMachine-DQeBZwAJ.d.ts → StateMachine-Coiuk0UD.d.ts} +0 -0
- /package/dist/{api-utDuOVDZ.esm.js → api-CdJjfxTX.esm.js} +0 -0
- /package/dist/{chunk-B6vU4TSh.esm.js → chunk-3Wl3T5mL.esm.js} +0 -0
- /package/dist/{flowCompletionService-CSeT3Po7.d.ts → flowCompletionService-DtL1jOz4.d.ts} +0 -0
- /package/dist/{types-M1Q7M45h.d.ts → types-dSdX5z-n.d.ts} +0 -0
- /package/dist/{types-CnKs94Sr.d.ts → types-vXjqO0B-.d.ts} +0 -0
- /package/dist/{usStates-BAjX-Al7.esm.js → usStates-IoVg25OV.esm.js} +0 -0
- /package/dist/{warmup-G1qbIG0g.d.ts → warmup-CO10kO5G.d.ts} +0 -0
- /package/dist/{xstate.esm-Be4HOnoi.esm.js → xstate.esm-yA5caGbx.esm.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __toDynamicImportESM } from "./chunk-
|
|
1
|
+
import { a as __toDynamicImportESM } from "./chunk-3Wl3T5mL.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/capabilities/platform.ts
|
|
4
4
|
/**
|
|
@@ -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 : "");
|
|
@@ -4414,7 +4419,7 @@ var MotionSensorProvider = class {
|
|
|
4414
4419
|
let openViduImport;
|
|
4415
4420
|
async function loadOpenVidu() {
|
|
4416
4421
|
if (openViduImport) return openViduImport;
|
|
4417
|
-
openViduImport = import("./lib-
|
|
4422
|
+
openViduImport = import("./lib-DVaeY7hq.esm.js").then(__toDynamicImportESM(1));
|
|
4418
4423
|
return openViduImport;
|
|
4419
4424
|
}
|
|
4420
4425
|
|
|
@@ -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 };
|
package/dist/stats.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as api } from "./api-
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
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-BJhTmsja.esm.js";
|
|
2
|
+
import { t as api } from "./api-CdJjfxTX.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-PMCuQkqs.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/internal/device/getBrowser.ts
|
|
6
6
|
function getBrowser() {
|
|
@@ -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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//#endregion
|
|
1
|
+
import { t as CameraStream } from "./camera-HI2fNiV5.js";
|
|
2
|
+
|
|
4
3
|
//#region src/modules/document-upload/types.d.ts
|
|
4
|
+
|
|
5
5
|
/**
|
|
6
6
|
* Configuration for document upload (e.g., third ID capture).
|
|
7
7
|
* The documentType determines the backend endpoint query parameter.
|
|
@@ -21,4 +21,4 @@ type DocumentUploadInput = {
|
|
|
21
21
|
config: DocumentUploadConfig;
|
|
22
22
|
};
|
|
23
23
|
//#endregion
|
|
24
|
-
export {
|
|
24
|
+
export { DocumentUploadContext as n, DocumentUploadInput as r, DocumentUploadConfig as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260306-aac8dd3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.esm.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -65,6 +65,10 @@
|
|
|
65
65
|
"types": "./dist/document-upload.d.ts",
|
|
66
66
|
"import": "./dist/document-upload.esm.js"
|
|
67
67
|
},
|
|
68
|
+
"./document-capture": {
|
|
69
|
+
"types": "./dist/document-capture.d.ts",
|
|
70
|
+
"import": "./dist/document-capture.esm.js"
|
|
71
|
+
},
|
|
68
72
|
"./session": {
|
|
69
73
|
"types": "./dist/session.d.ts",
|
|
70
74
|
"import": "./dist/session.esm.js"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|