@microblink/blinkid-ux-manager 7.0.0-next.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/dist/blinkid-ux-manager.js +1963 -0
- package/package.json +27 -0
- package/types/core/BlinkIdProcessingError.d.ts +9 -0
- package/types/core/BlinkIdProcessingError.d.ts.map +1 -0
- package/types/core/BlinkIdUxManager.d.ts +97 -0
- package/types/core/BlinkIdUxManager.d.ts.map +1 -0
- package/types/core/blinkid-ui-state.d.ts +24 -0
- package/types/core/blinkid-ui-state.d.ts.map +1 -0
- package/types/core/blinkid-ui-state.test.d.ts +5 -0
- package/types/core/blinkid-ui-state.test.d.ts.map +1 -0
- package/types/core/utils.d.ts +7 -0
- package/types/core/utils.d.ts.map +1 -0
- package/types/index.d.ts +14 -0
- package/types/index.d.ts.map +1 -0
- package/types/ui/BlinkIdFeedbackUi.d.ts +10 -0
- package/types/ui/BlinkIdFeedbackUi.d.ts.map +1 -0
- package/types/ui/LocalizationContext.d.ts +20 -0
- package/types/ui/LocalizationContext.d.ts.map +1 -0
- package/types/ui/TimeoutModal.d.ts +9 -0
- package/types/ui/TimeoutModal.d.ts.map +1 -0
- package/types/ui/UiFeedbackOverlay.d.ts +9 -0
- package/types/ui/UiFeedbackOverlay.d.ts.map +1 -0
- package/types/ui/UnsupportedDocumentModal.d.ts +6 -0
- package/types/ui/UnsupportedDocumentModal.d.ts.map +1 -0
- package/types/ui/blinkIdUiStore.d.ts +18 -0
- package/types/ui/blinkIdUiStore.d.ts.map +1 -0
- package/types/ui/createBlinkIdFeedbackUi.d.ts +18 -0
- package/types/ui/createBlinkIdFeedbackUi.d.ts.map +1 -0
- package/types/ui/feedbackMessages.d.ts +7 -0
- package/types/ui/feedbackMessages.d.ts.map +1 -0
- package/types/ui/locales/en.d.ts +19 -0
- package/types/ui/locales/en.d.ts.map +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@microblink/blinkid-ux-manager",
|
|
3
|
+
"version": "7.0.0-next.4",
|
|
4
|
+
"author": "",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/blinkid-ux-manager.js",
|
|
7
|
+
"module": "./dist/blinkid-ux-manager.js",
|
|
8
|
+
"description": "",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"types"
|
|
12
|
+
],
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@microblink/blinkid-core": "^7.0.0-next.4",
|
|
15
|
+
"@microblink/camera-manager": "^7.0.0-next.4"
|
|
16
|
+
},
|
|
17
|
+
"access": "public",
|
|
18
|
+
"registry": "https://registry.npmjs.org/",
|
|
19
|
+
"types": "./types/index.rollup.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./types/index.rollup.d.ts",
|
|
23
|
+
"import": "./dist/blinkid-ux-manager.js"
|
|
24
|
+
},
|
|
25
|
+
"./package.json": "./package.json"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Microblink Ltd. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* BlinkID processing error. These errors are usually unrecoverable and require
|
|
6
|
+
* the user to retry the scanning process.
|
|
7
|
+
*/
|
|
8
|
+
export type BlinkIdProcessingError = "timeout" | "unsupported-document" | "unknown";
|
|
9
|
+
//# sourceMappingURL=BlinkIdProcessingError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlinkIdProcessingError.d.ts","sourceRoot":"","sources":["../../src/core/BlinkIdProcessingError.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAE9B,SAAS,GACT,sBAAsB,GAGtB,SAAS,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Microblink Ltd. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { type BlinkIdCore, type BlinkIdResult, type FrameAnalysisResult } from "@microblink/blinkid-core";
|
|
5
|
+
import type { CameraManager } from "@microblink/camera-manager";
|
|
6
|
+
import { FeedbackStabilizer } from "@microblink/feedback-stabilizer";
|
|
7
|
+
import { BlinkIdProcessingError } from "./BlinkIdProcessingError";
|
|
8
|
+
import { BlinkIdUiState, BlinkIdUiStateKey, blinkIdUiStateMap } from "./blinkid-ui-state";
|
|
9
|
+
/**
|
|
10
|
+
* Manages the UX of the BlinkID SDK.
|
|
11
|
+
*/
|
|
12
|
+
export declare class BlinkIdUxManager {
|
|
13
|
+
#private;
|
|
14
|
+
cameraManager: CameraManager;
|
|
15
|
+
blinkIdCore: BlinkIdCore;
|
|
16
|
+
uiState: BlinkIdUiState;
|
|
17
|
+
errorState?: BlinkIdProcessingError;
|
|
18
|
+
rawUiStateKey: BlinkIdUiStateKey;
|
|
19
|
+
feedbackStabilizer: FeedbackStabilizer<typeof blinkIdUiStateMap>;
|
|
20
|
+
clearScanTimeout: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* Adds a callback function to be executed when the UI state changes.
|
|
23
|
+
* @param callback - Function to be called when UI state changes. Receives the new UI state as parameter.
|
|
24
|
+
* @returns A cleanup function that removes the callback when called.
|
|
25
|
+
* @example
|
|
26
|
+
* const cleanup = manager.addOnUiStateChangedCallback((newState) => {
|
|
27
|
+
* console.log('UI state changed to:', newState);
|
|
28
|
+
* });
|
|
29
|
+
*
|
|
30
|
+
* cleanup();
|
|
31
|
+
*/
|
|
32
|
+
addOnUiStateChangedCallback(callback: (uiState: BlinkIdUiState) => void): () => void;
|
|
33
|
+
/**
|
|
34
|
+
* Registers a callback function to be called when a scan result is available.
|
|
35
|
+
* @param callback - A function that will be called with the scan result.
|
|
36
|
+
* @returns A cleanup function that, when called, will remove the registered callback.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
*
|
|
40
|
+
* const cleanup = manager.addOnResultCallback((result) => {
|
|
41
|
+
* console.log('Scan result:', result);
|
|
42
|
+
* });
|
|
43
|
+
*
|
|
44
|
+
* // Later, to remove the callback:
|
|
45
|
+
* cleanup();
|
|
46
|
+
*/
|
|
47
|
+
addOnResultCallback(callback: (result: BlinkIdResult) => void): () => void;
|
|
48
|
+
/**
|
|
49
|
+
* Registers a callback function to be called when a frame is processed.
|
|
50
|
+
* @param callback - A function that will be called with the frame analysis result.
|
|
51
|
+
* @returns A cleanup function that, when called, will remove the registered callback.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* const cleanup = manager.addOnFrameProcessCallback((frameResult) => {
|
|
55
|
+
* console.log('Frame processed:', frameResult);
|
|
56
|
+
* });
|
|
57
|
+
*
|
|
58
|
+
* // Later, to remove the callback:
|
|
59
|
+
* cleanup();
|
|
60
|
+
*/
|
|
61
|
+
addOnFrameProcessCallback(callback: (frameResult: FrameAnalysisResult) => void): () => void;
|
|
62
|
+
/**
|
|
63
|
+
* Registers a callback function to be called when an error occurs during processing.
|
|
64
|
+
* @param callback - A function that will be called with the error state.
|
|
65
|
+
* @returns A cleanup function that, when called, will remove the registered callback.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* const cleanup = manager.addOnErrorCallback((error) => {
|
|
69
|
+
* console.error('Processing error:', error);
|
|
70
|
+
* });
|
|
71
|
+
*
|
|
72
|
+
* // Later, to remove the callback:
|
|
73
|
+
* cleanup();
|
|
74
|
+
*/
|
|
75
|
+
addOnErrorCallback(callback: (errorState: BlinkIdProcessingError) => void): () => void;
|
|
76
|
+
/**
|
|
77
|
+
* Registers a callback function to be called when the user cancels the scanning process.
|
|
78
|
+
* @param callback - A function that will be called with the cancellation reason.
|
|
79
|
+
* @returns A cleanup function that, when called, will remove the registered callback.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* const cleanup = manager.addOnUserCancelCallback((reason) => {
|
|
83
|
+
* console.log('User cancelled scan:', reason);
|
|
84
|
+
* });
|
|
85
|
+
*
|
|
86
|
+
* // Later, to remove the callback:
|
|
87
|
+
* cleanup();
|
|
88
|
+
*/
|
|
89
|
+
addOnUserCancelCallback(callback: (reason: unknown) => void): () => void;
|
|
90
|
+
constructor(cameraManager: CameraManager, blinkIdCore: BlinkIdCore);
|
|
91
|
+
/**
|
|
92
|
+
* Set the duration of the timeout in milliseconds.
|
|
93
|
+
*/
|
|
94
|
+
setTimeoutDuration(duration: number): void;
|
|
95
|
+
handleUiStateChange(uiState: BlinkIdUiState): Promise<void>;
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=BlinkIdUxManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlinkIdUxManager.d.ts","sourceRoot":"","sources":["../../src/core/BlinkIdUxManager.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EAElB,MAAM,oBAAoB,CAAC;AAG5B;;GAEG;AACH,qBAAa,gBAAgB;;IACnB,aAAa,EAAE,aAAa,CAAC;IAC7B,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,cAAc,CAAC;IAExB,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,aAAa,EAAE,iBAAiB,CAAC;IACjC,kBAAkB,EAAE,kBAAkB,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAOzE,gBAAgB,aAGd;IAUF;;;;;;;;;;OAUG;IACH,2BAA2B,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI;IAOvE;;;;;;;;;;;;;OAaG;IACH,mBAAmB,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI;IAO7D;;;;;;;;;;;;OAYG;IACH,yBAAyB,CACvB,QAAQ,EAAE,CAAC,WAAW,EAAE,mBAAmB,KAAK,IAAI;IAQtD;;;;;;;;;;;;OAYG;IACH,kBAAkB,CAAC,QAAQ,EAAE,CAAC,UAAU,EAAE,sBAAsB,KAAK,IAAI;IAOzE;;;;;;;;;;;;OAYG;IACH,uBAAuB,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI;gBAO/C,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW;IAwGlE;;OAEG;IACH,kBAAkB,CAAC,QAAQ,EAAE,MAAM;IAuB7B,mBAAmB,CAAC,OAAO,EAAE,cAAc;CAyClD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Microblink Ltd. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { FrameAnalysisResult } from "@microblink/blinkid-core";
|
|
5
|
+
import { UiState } from "@microblink/feedback-stabilizer";
|
|
6
|
+
export type BlinkIdReticleType = "searching" | "processing" | "error" | "done" | "flip";
|
|
7
|
+
export type BlinkIdUiStateKey = "PROCESSING" | "SIDE_CAPTURED" | "DOCUMENT_CAPTURED" | "SENSING_FRONT" | "SENSING_BACK" | "LOW_QUALITY_FRONT" | "LOW_QUALITY_BACK" | "DOCUMENT_FRAMING_CAMERA_TOO_FAR" | "DOCUMENT_FRAMING_CAMERA_TOO_CLOSE" | "DOCUMENT_FRAMING_CAMERA_ANGLE_TOO_STEEP" | "DOCUMENT_TOO_CLOSE_TO_FRAME_EDGE" | "BLUR_DETECTED" | "GLARE_DETECTED" | "OCCLUDED" | "SCAN_BARCODE" | "WRONG_SIDE";
|
|
8
|
+
/**
|
|
9
|
+
* Extended UI state for BlinkID.
|
|
10
|
+
*/
|
|
11
|
+
export type BlinkIdUiStateMap = {
|
|
12
|
+
[K in BlinkIdUiStateKey]: UiState & {
|
|
13
|
+
key: K;
|
|
14
|
+
reticleType: BlinkIdReticleType;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type BlinkIdUiState = BlinkIdUiStateMap[keyof BlinkIdUiStateMap];
|
|
18
|
+
export declare const blinkIdUiStateMap: BlinkIdUiStateMap;
|
|
19
|
+
/**
|
|
20
|
+
* Used temporarily as processing status was added after the tests were written
|
|
21
|
+
*/
|
|
22
|
+
export type FrameAnalysisResultWithoutProcessingStatus = Omit<FrameAnalysisResult, "processingStatus">;
|
|
23
|
+
export declare function getUiStateKeyFromFrameResult(frameAnalysisResult: FrameAnalysisResultWithoutProcessingStatus): BlinkIdUiStateKey;
|
|
24
|
+
//# sourceMappingURL=blinkid-ui-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blinkid-ui-state.d.ts","sourceRoot":"","sources":["../../src/core/blinkid-ui-state.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAG1D,MAAM,MAAM,kBAAkB,GAC1B,WAAW,GACX,YAAY,GACZ,OAAO,GACP,MAAM,GACN,MAAM,CAAC;AAEX,MAAM,MAAM,iBAAiB,GACzB,YAAY,GACZ,eAAe,GACf,mBAAmB,GACnB,eAAe,GACf,cAAc,GACd,mBAAmB,GACnB,kBAAkB,GAClB,iCAAiC,GACjC,mCAAmC,GACnC,yCAAyC,GACzC,kCAAkC,GAClC,eAAe,GACf,gBAAgB,GAChB,UAAU,GACV,cAAc,GACd,YAAY,CAAC;AAEjB;;GAEG;AAEH,MAAM,MAAM,iBAAiB,GAAG;KAC7B,CAAC,IAAI,iBAAiB,GAAG,OAAO,GAAG;QAClC,GAAG,EAAE,CAAC,CAAC;QACP,WAAW,EAAE,kBAAkB,CAAC;KACjC;CACF,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC,MAAM,iBAAiB,CAAC,CAAC;AAExE,eAAO,MAAM,iBAAiB,EAAE,iBAmFtB,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,0CAA0C,GAAG,IAAI,CAC3D,mBAAmB,EACnB,kBAAkB,CACnB,CAAC;AAEF,wBAAgB,4BAA4B,CAC1C,mBAAmB,EAAE,0CAA0C,qBA+JhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blinkid-ui-state.test.d.ts","sourceRoot":"","sources":["../../src/core/blinkid-ui-state.test.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Microblink Ltd. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
export declare function getAverage(arr: number[]): number;
|
|
5
|
+
export declare const asError: (thrown: unknown) => Error;
|
|
6
|
+
export declare function sleep(ms: number): Promise<unknown>;
|
|
7
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/core/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,UAEvC;AAED,eAAO,MAAM,OAAO,WAAY,OAAO,KAAG,KASzC,CAAC;AAEF,wBAAsB,KAAK,CAAC,EAAE,EAAE,MAAM,oBAErC"}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Microblink Ltd. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
export * from "./core/blinkid-ui-state";
|
|
5
|
+
export * from "./core/BlinkIdUxManager";
|
|
6
|
+
export * from "./ui/createBlinkIdFeedbackUi";
|
|
7
|
+
export type { LocaleRecord, LocalizationStrings, } from "./ui/LocalizationContext";
|
|
8
|
+
export type * from "@microblink/feedback-stabilizer";
|
|
9
|
+
export type { BlinkIdProcessingError } from "./core/BlinkIdProcessingError";
|
|
10
|
+
declare const testSymbol: unique symbol;
|
|
11
|
+
declare global {
|
|
12
|
+
var __BLINKID_UX_MANAGER__: typeof testSymbol;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,YAAY,EACV,YAAY,EACZ,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAElC,mBAAmB,iCAAiC,CAAC;AACrD,YAAY,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAG5E,QAAA,MAAM,UAAU,eAAW,CAAC;AAE5B,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,sBAAsB,EAAE,OAAO,UAAU,CAAC;CAC/C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Microblink Ltd. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import type { Component } from "solid-js";
|
|
5
|
+
import { LocalizationStrings } from "./LocalizationContext";
|
|
6
|
+
import "uno.css";
|
|
7
|
+
export declare const BlinkIdFeedbackUi: Component<{
|
|
8
|
+
localization?: Partial<LocalizationStrings>;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=BlinkIdFeedbackUi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlinkIdFeedbackUi.d.ts","sourceRoot":"","sources":["../../src/ui/BlinkIdFeedbackUi.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAI1C,OAAO,EAEL,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,SAAS,CAAC;AAMjB,eAAO,MAAM,iBAAiB,EAAE,SAAS,CAAC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAC7C,CAiFA,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Microblink Ltd. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { ParentComponent } from "solid-js";
|
|
5
|
+
import { SetStoreFunction } from "solid-js/store";
|
|
6
|
+
import enLocaleStrings from "./locales/en";
|
|
7
|
+
export type LocaleRecord = typeof enLocaleStrings;
|
|
8
|
+
export type LocalizationStrings = {
|
|
9
|
+
[K in keyof LocaleRecord]: LocaleRecord[K] | (string & {});
|
|
10
|
+
};
|
|
11
|
+
export declare const LocalizationProvider: ParentComponent<{
|
|
12
|
+
userStrings?: Partial<LocalizationStrings>;
|
|
13
|
+
/** A hacky way to lift the `updateLocalizationStore` function out of the Context */
|
|
14
|
+
setLocalizationRef: (fn: SetStoreFunction<LocalizationStrings>) => void;
|
|
15
|
+
}>;
|
|
16
|
+
export declare function useLocalization(): {
|
|
17
|
+
t: LocalizationStrings;
|
|
18
|
+
updateLocalization: SetStoreFunction<LocalizationStrings>;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=LocalizationContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocalizationContext.d.ts","sourceRoot":"","sources":["../../src/ui/LocalizationContext.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAsC,MAAM,UAAU,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAe,MAAM,gBAAgB,CAAC;AAE/D,OAAO,eAAe,MAAM,cAAc,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG,OAAO,eAAe,CAAC;AAElD,MAAM,MAAM,mBAAmB,GAAG;KAI/B,CAAC,IAAI,MAAM,YAAY,GAAG,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;CAC3D,CAAC;AAOF,eAAO,MAAM,oBAAoB,EAAE,eAAe,CAAC;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC3C,qFAAqF;IACrF,kBAAkB,EAAE,CAAC,EAAE,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;CACzE,CA0BA,CAAC;AAEF,wBAAgB,eAAe;OApC1B,mBAAmB;wBACF,gBAAgB,CAAC,mBAAmB,CAAC;EAyC1D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Microblink Ltd. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { type Component } from "solid-js";
|
|
5
|
+
/**
|
|
6
|
+
* This component displays a modal when the scanning times out due to low quality input.
|
|
7
|
+
*/
|
|
8
|
+
export declare const TimeoutModal: Component;
|
|
9
|
+
//# sourceMappingURL=TimeoutModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeoutModal.d.ts","sourceRoot":"","sources":["../../src/ui/TimeoutModal.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,SAiD1B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Microblink Ltd. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { Component } from "solid-js";
|
|
5
|
+
import { BlinkIdUiState } from "../core/blinkid-ui-state";
|
|
6
|
+
export declare const UiFeedbackOverlay: Component<{
|
|
7
|
+
uiState: BlinkIdUiState;
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=UiFeedbackOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UiFeedbackOverlay.d.ts","sourceRoot":"","sources":["../../src/ui/UiFeedbackOverlay.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,SAAS,EAAwC,MAAM,UAAU,CAAC;AAI3E,OAAO,EACL,cAAc,EAGf,MAAM,0BAA0B,CAAC;AAYlC,eAAO,MAAM,iBAAiB,EAAE,SAAS,CAAC;IACxC,OAAO,EAAE,cAAc,CAAC;CACzB,CA+BA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnsupportedDocumentModal.d.ts","sourceRoot":"","sources":["../../src/ui/UnsupportedDocumentModal.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C,eAAO,MAAM,wBAAwB,EAAE,SAmDtC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Microblink Ltd. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { CameraManagerComponent } from "@microblink/camera-manager";
|
|
5
|
+
import { BlinkIdUxManager } from "../core/BlinkIdUxManager";
|
|
6
|
+
import { BlinkIdProcessingError } from "../core/BlinkIdProcessingError";
|
|
7
|
+
export type BlinkIdUiStore = {
|
|
8
|
+
blinkIdUxManager: BlinkIdUxManager;
|
|
9
|
+
cameraManagerComponent: CameraManagerComponent;
|
|
10
|
+
errorState?: BlinkIdProcessingError;
|
|
11
|
+
/** We're using `createRoot` for this store, and have to dispose it manually */
|
|
12
|
+
disposeBlinkIdUiStore: () => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const blinkIdUiStore: {
|
|
15
|
+
store: BlinkIdUiStore;
|
|
16
|
+
updateStore: import("solid-js/store").SetStoreFunction<BlinkIdUiStore>;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=blinkIdUiStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blinkIdUiStore.d.ts","sourceRoot":"","sources":["../../src/ui/blinkIdUiStore.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,MAAM,MAAM,cAAc,GAAG;IAC3B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,UAAU,CAAC,EAAE,sBAAsB,CAAC;IAEpC,+EAA+E;IAC/E,qBAAqB,EAAE,MAAM,IAAI,CAAC;CACnC,CAAC;AASF,eAAO,MAAM,cAAc;;;CAazB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Microblink Ltd. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { BlinkIdUxManager } from "../core/BlinkIdUxManager";
|
|
5
|
+
import { CameraManagerComponent } from "@microblink/camera-manager";
|
|
6
|
+
import { LocalizationStrings } from "./LocalizationContext";
|
|
7
|
+
export type FeedbackUiOptions = {
|
|
8
|
+
localizationStrings?: Partial<LocalizationStrings>;
|
|
9
|
+
/**
|
|
10
|
+
* If set to `true`, the BlinkID instance will not be terminated when the
|
|
11
|
+
* feedback UI is unmounted.
|
|
12
|
+
*
|
|
13
|
+
* @defaultValue false
|
|
14
|
+
*/
|
|
15
|
+
preserveSdkInstance?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare function createBlinkIdFeedbackUi(blinkIdUxManager: BlinkIdUxManager, cameraManagerComponent: CameraManagerComponent, options?: FeedbackUiOptions): () => void;
|
|
18
|
+
//# sourceMappingURL=createBlinkIdFeedbackUi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createBlinkIdFeedbackUi.d.ts","sourceRoot":"","sources":["../../src/ui/createBlinkIdFeedbackUi.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACnD;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,wBAAgB,uBAAuB,CACrC,gBAAgB,EAAE,gBAAgB,EAClC,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,CAAC,EAAE,iBAAiB,cA8B5B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Microblink Ltd. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { BlinkIdUiStateKey } from "../core/blinkid-ui-state";
|
|
5
|
+
import { LocalizationStrings } from "./LocalizationContext";
|
|
6
|
+
export declare const feedbackMessages: Partial<Record<BlinkIdUiStateKey, keyof LocalizationStrings>>;
|
|
7
|
+
//# sourceMappingURL=feedbackMessages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedbackMessages.d.ts","sourceRoot":"","sources":["../../src/ui/feedbackMessages.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,eAAO,MAAM,gBAAgB,EAAE,OAAO,CACpC,MAAM,CAAC,iBAAiB,EAAE,MAAM,mBAAmB,CAAC,CAoBrD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Microblink Ltd. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
declare const _default: {
|
|
5
|
+
readonly scan_the_front_side: "Scan the front side of the document";
|
|
6
|
+
readonly flip_document: "Flip the document";
|
|
7
|
+
readonly scan_the_back_side: "Scan the back side of the document";
|
|
8
|
+
readonly scan_the_barcode: "Scan the barcode";
|
|
9
|
+
readonly scanning_wrong_side: "Scanning wrong side";
|
|
10
|
+
readonly move_closer: "Move closer";
|
|
11
|
+
readonly move_farther: "Move farther";
|
|
12
|
+
readonly camera_angle_too_steep: "Keep document parallel to phone";
|
|
13
|
+
readonly document_too_close_to_edge: "Move farther";
|
|
14
|
+
readonly blur_detected: "Keep document and phone still";
|
|
15
|
+
readonly glare_detected: "Tilt or move document to remove reflection";
|
|
16
|
+
readonly occluded: "Keep the document fully visible";
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=en.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/ui/locales/en.ts"],"names":[],"mappings":"AAAA;;GAEG;;;;;;;;;;;;;;;AAEH,wBAkBW"}
|