@microblink/biometrics 1000.0.3 → 1000.0.4
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/README.md +1 -1
- package/dist/biometrics.js +6 -3
- package/package.json +4 -4
- package/types/index.rollup.d.ts +7 -0
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Production consumer bundle sizes for `@microblink/biometrics`:
|
|
|
10
10
|
|
|
11
11
|
| Entrypoint | Minified | Gzip |
|
|
12
12
|
| ---------- | -------- | ------- |
|
|
13
|
-
| `root` | 26.
|
|
13
|
+
| `root` | 26.38 kB | 7.28 kB |
|
|
14
14
|
|
|
15
15
|
External packages and runtime assets such as workers, WASM, and models are excluded. Shared code is included in each entrypoint that loads it.
|
|
16
16
|
|
package/dist/biometrics.js
CHANGED
|
@@ -265,8 +265,8 @@ function T() {
|
|
|
265
265
|
return new s("Session is finished", "SESSION_CLOSED");
|
|
266
266
|
}
|
|
267
267
|
var E = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakSet(), we = class {
|
|
268
|
-
constructor(e, t = {}, n, r = () => () => void 0) {
|
|
269
|
-
be(this, V), b(this, "createCaptureSession", void 0), b(this, "config", void 0), b(this, "analytics", void 0), b(this, "subscribeDiagnostic", void 0), x(this, E, /* @__PURE__ */ new Set()), x(this, D, /* @__PURE__ */ new Set()), x(this, O, /* @__PURE__ */ new Set()), x(this, k, /* @__PURE__ */ new Set()), x(this, A, /* @__PURE__ */ new Set()), x(this, j, { phase: "idle" }), x(this, M, void 0), x(this, N, 0), x(this, P, 0), x(this, F, void 0), x(this, I, void 0), x(this, L, void 0), x(this, R, void 0), x(this, z, void 0), x(this, B, void 0), this.createCaptureSession = e, this.config = t, this.analytics = n, this.subscribeDiagnostic = r, S(V, this, Oe).call(this);
|
|
268
|
+
constructor(e, t = {}, n, r = () => () => void 0, i) {
|
|
269
|
+
be(this, V), b(this, "createCaptureSession", void 0), b(this, "config", void 0), b(this, "analytics", void 0), b(this, "subscribeDiagnostic", void 0), b(this, "cameraCaptureHooks", void 0), x(this, E, /* @__PURE__ */ new Set()), x(this, D, /* @__PURE__ */ new Set()), x(this, O, /* @__PURE__ */ new Set()), x(this, k, /* @__PURE__ */ new Set()), x(this, A, /* @__PURE__ */ new Set()), x(this, j, { phase: "idle" }), x(this, M, void 0), x(this, N, 0), x(this, P, 0), x(this, F, void 0), x(this, I, void 0), x(this, L, void 0), x(this, R, void 0), x(this, z, void 0), x(this, B, void 0), this.createCaptureSession = e, this.config = t, this.analytics = n, this.subscribeDiagnostic = r, this.cameraCaptureHooks = i, S(V, this, Oe).call(this);
|
|
270
270
|
}
|
|
271
271
|
getState() {
|
|
272
272
|
return C(j, this);
|
|
@@ -283,6 +283,9 @@ var E = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), O = /*
|
|
|
283
283
|
track: t
|
|
284
284
|
} : void 0), C(I, this)?.setCameraSource(e, t);
|
|
285
285
|
}
|
|
286
|
+
getCameraCaptureHooks() {
|
|
287
|
+
return this.cameraCaptureHooks?.();
|
|
288
|
+
}
|
|
286
289
|
setCaptureTimeoutPaused(e) {
|
|
287
290
|
C(j, this).phase === "capturing" && C(I, this)?.setCaptureTimeoutPaused(e);
|
|
288
291
|
}
|
|
@@ -597,7 +600,7 @@ var X = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), Q = /*
|
|
|
597
600
|
b(this, "subscribeDiagnostic", void 0), b(this, "flushDiagnostics", void 0), x(this, X, void 0), x(this, Z, void 0), x(this, Q, void 0), this.subscribeDiagnostic = n, this.flushDiagnostics = r, w(X, this, e), w(Z, this, t);
|
|
598
601
|
}
|
|
599
602
|
startSession(e = {}) {
|
|
600
|
-
return new we(() => C(X, this).startSession(e.captureFace?.thresholds), e, C(Z, this), this.subscribeDiagnostic);
|
|
603
|
+
return new we(() => C(X, this).startSession(e.captureFace?.thresholds), e, C(Z, this), this.subscribeDiagnostic, () => C(X, this).getCameraCaptureHooks());
|
|
601
604
|
}
|
|
602
605
|
close() {
|
|
603
606
|
return C(Q, this) ?? w(Q, this, (async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microblink/biometrics",
|
|
3
|
-
"version": "1000.0.
|
|
3
|
+
"version": "1000.0.4",
|
|
4
4
|
"author": "Microblink",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/biometrics.js",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"solid-zustand": "^2.0.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@microblink/biometrics-core": "1000.0.
|
|
21
|
-
"@microblink/biometrics-ux-manager": "1000.0.
|
|
22
|
-
"@microblink/camera-manager": "^8.
|
|
20
|
+
"@microblink/biometrics-core": "1000.0.4",
|
|
21
|
+
"@microblink/biometrics-ux-manager": "1000.0.4",
|
|
22
|
+
"@microblink/camera-manager": "^8.2.0"
|
|
23
23
|
},
|
|
24
24
|
"access": "public",
|
|
25
25
|
"types": "./types/index.rollup.d.ts",
|
package/types/index.rollup.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BiometricsDiagnosticCallback, BiometricsDiagnosticCallback as BiometricsDiagnosticCallback$1, BiometricsDiagnosticComponent, BiometricsDiagnosticEvent, BiometricsDiagnosticPhase, BiometricsDiagnosticResource, BiometricsDiagnosticStatus, BiometricsError, BiometricsError as BiometricsError$1, BiometricsErrorCode, BiometricsErrorComponent, BiometricsErrorOptions, BiometricsErrorStage, BiometricsFace, BiometricsResourceKind, BiometricsResourceKind as CaptureBiometricsResourceKind, BiometricsSupportCheck, BiometricsSupportCheckId, BiometricsSupportCheckStatus, BiometricsSupportReport, BrowserStorageSupport, CaptureFaceConfig, CaptureFaceConfig as CaptureFaceConfig$1, CaptureFrame, CaptureLogLevel, CaptureSessionState, CaptureSignature, CapturedImage, CheckBiometricsSupportOptions, ConfigurationError, DerivedDeviceInfo, DeviceInfo, DeviceScreenInfo, FaceAnalysisSessionSettings, FaceCaptureResult, FaceCaptureResult as FaceCaptureResult$1, FaceLandmarks, FaceLandmarks as FaceLandmarks$1, FormFactor, GpuInfo, ImageOrigin, LicenseError, LivenessFrame, LivenessFrameQuality, PermissionError, SessionError, UADataValues, UnifiedFeedback, UnifiedFeedback as UnifiedFeedback$1, WasmVariant, WasmVariant as WasmVariant$1, checkBiometricsSupport, createDerivedDeviceInfo, getBiometricsFaceFromCaptureResult, getDeviceInfo, getUserAgentData, isFaceCaptureResult, normalizeBiometricsError } from "@microblink/biometrics-core";
|
|
2
2
|
import { FeedbackUiOptions, LocaleRecord, LocalizationStrings, PartialLocalizationStrings } from "@microblink/biometrics-ux-manager/ui";
|
|
3
|
+
import { CameraCaptureHooks } from "@microblink/camera-manager/core";
|
|
3
4
|
import { CameraManagerUiOptions } from "@microblink/camera-manager/ui";
|
|
4
5
|
//#region ../analytics/types/ping/ping.browser.device.info.d.ts
|
|
5
6
|
type PingBrowserDeviceInfoData = {
|
|
@@ -317,6 +318,12 @@ type BiometricsSession = {
|
|
|
317
318
|
processFrame(imageData: ImageData): Promise<ArrayBuffer>;
|
|
318
319
|
/** Set the camera source used by subsequent capture attempts. */
|
|
319
320
|
setCameraSource(videoElement: HTMLVideoElement | undefined, track: MediaStreamTrack | undefined): void;
|
|
321
|
+
/**
|
|
322
|
+
* Provides camera operations for SDK-managed capture.
|
|
323
|
+
*
|
|
324
|
+
* @internal
|
|
325
|
+
*/
|
|
326
|
+
getCameraCaptureHooks?(): CameraCaptureHooks | undefined;
|
|
320
327
|
/** Pauses or resumes the active capture attempt's timeout. */
|
|
321
328
|
setCaptureTimeoutPaused(paused: boolean): void;
|
|
322
329
|
/** Starts face capture. */
|