scanbot-web-sdk 5.1.0-dev.2 → 5.1.0-rc.1
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/@types/barcode-scanner-view.d.ts +5 -0
- package/@types/model/configuration/text-data-scanner-configuration.d.ts +18 -0
- package/@types/ui2/controllers/multiple-scanning-mode-controller.d.ts +1 -0
- package/@types/ui2/controllers/single-scanning-mode-controller.d.ts +1 -0
- package/@types/ui2/views/barcode-scanner.d.ts +1 -0
- package/bundle/ScanbotSDK.min.js +3 -3
- package/bundle/ScanbotSDK.ui2.min.js +8 -8
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
- package/package.json +1 -1
- package/webpack/fileLoader.js +3 -5
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm-webpack-file-loader +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm-webpack-file-loader +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
|
@@ -14,6 +14,11 @@ import { Barcode } from "./model/barcode/barcode";
|
|
|
14
14
|
import { Size } from "./utils/dto/Size";
|
|
15
15
|
export declare class BarcodeScannerProps extends ScanbotCameraProps {
|
|
16
16
|
viewFinderPadding?: ViewFinderPadding;
|
|
17
|
+
/**
|
|
18
|
+
* The user should check that the license is valid before using the BarcodeScannerView.
|
|
19
|
+
* In case the license expires while the scanner is open, `onLicenseError` will be called.
|
|
20
|
+
*/
|
|
21
|
+
onLicenseError?: () => void;
|
|
17
22
|
}
|
|
18
23
|
export declare class BarcodeScannerState extends ScanbotCameraState {
|
|
19
24
|
isFinderVisible?: boolean;
|
|
@@ -7,6 +7,24 @@ export declare class TextDataScannerConfiguration extends ViewFinderScannerConfi
|
|
|
7
7
|
ocrResolutionLimit?: number;
|
|
8
8
|
supportedLanguages?: string[];
|
|
9
9
|
validatorPreset?: ValidatorPreset;
|
|
10
|
+
/**
|
|
11
|
+
* Simple validation string pattern
|
|
12
|
+
* - `?` = any character
|
|
13
|
+
* - `#` = any digit
|
|
14
|
+
* - all other characters represent themselves
|
|
15
|
+
*
|
|
16
|
+
* If matchSubstring is true, the scanned text will be truncated to a substring matching the pattern.
|
|
17
|
+
* If matchSubstring is false, the scanned text will not be truncated. However, the results validated flag will
|
|
18
|
+
* only be set, if the entire scanned text matches the pattern.
|
|
19
|
+
*
|
|
20
|
+
* If validationPattern is empty, any scanned text will be accepted.
|
|
21
|
+
*
|
|
22
|
+
* validationPattern & validatorPreset cannot be used together.
|
|
23
|
+
*/
|
|
24
|
+
validationPattern?: string;
|
|
25
|
+
/** Controls if validationPattern should match the entire scanned text, or if it should find a matching substring. */
|
|
26
|
+
matchSubstring?: boolean;
|
|
27
|
+
allowedCharacters?: string;
|
|
10
28
|
onTextDetected?: TextDetectionCallback;
|
|
11
29
|
static fromJson(json: any): TextDataScannerConfiguration;
|
|
12
30
|
}
|
|
@@ -4,6 +4,7 @@ declare class Props {
|
|
|
4
4
|
configuration: BarcodeScannerConfiguration;
|
|
5
5
|
onCameraPermissionDenied: () => void;
|
|
6
6
|
onSubmit: (barcodeScannerResult: BarcodeScannerResult) => void;
|
|
7
|
+
onError: (error?: Error) => void;
|
|
7
8
|
scanningEnabled: React.MutableRefObject<boolean>;
|
|
8
9
|
}
|
|
9
10
|
export declare function MultipleScanningModeController(props: Props): React.JSX.Element;
|
|
@@ -4,6 +4,7 @@ declare class Props {
|
|
|
4
4
|
configuration: BarcodeScannerConfiguration;
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
onSubmit: (barcodeScannerResult: BarcodeScannerResult) => void;
|
|
7
|
+
onError: (error?: Error) => void;
|
|
7
8
|
onCameraPermissionDenied: () => void;
|
|
8
9
|
scanningEnabled: React.MutableRefObject<boolean>;
|
|
9
10
|
}
|