scanbot-web-sdk 2.10.0 → 2.11.0-alpha.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 +1 -0
- package/@types/cropping-view.d.ts +1 -0
- package/@types/document-scanner-view.d.ts +1 -0
- package/@types/index.d.ts +4 -0
- package/@types/interfaces/i-scanner-common-handle.d.ts +3 -0
- package/@types/model/camera-info.d.ts +4 -0
- package/@types/model/configuration/window-style-configuration.d.ts +1 -1
- package/@types/model/error/media-error.d.ts +6 -5
- package/@types/mrz-scanner-view.d.ts +1 -0
- package/@types/scanner-view.d.ts +3 -0
- package/@types/text-data-scanner-view.d.ts +1 -0
- package/@types/utils/video-stream.d.ts +1 -0
- package/@types/view/scanbot-camera-view.d.ts +4 -0
- package/bundle/ScanbotSDK.min.js +2 -2
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export declare class BarcodeScannerState extends ScanbotCameraState {
|
|
|
10
10
|
export default class BarcodeScannerView extends ScannerView<BarcodeScannerProps, BarcodeScannerState> {
|
|
11
11
|
finder?: ViewFinder;
|
|
12
12
|
shouldComputeSize: boolean;
|
|
13
|
+
private _configuration;
|
|
13
14
|
private paused;
|
|
14
15
|
constructor(props: BarcodeScannerProps);
|
|
15
16
|
get configuration(): BarcodeScannerConfiguration;
|
|
@@ -44,6 +44,7 @@ export default class CroppingView extends React.Component<CroppingViewProps, Cro
|
|
|
44
44
|
polygon: DraggableDocumentPolygon | null;
|
|
45
45
|
container: Animatable;
|
|
46
46
|
htmlImage: HTMLImageElement;
|
|
47
|
+
private _configuration?;
|
|
47
48
|
constructor(props: any);
|
|
48
49
|
/**
|
|
49
50
|
* Public API functions
|
|
@@ -18,6 +18,7 @@ export default class DocumentScannerView extends ScannerView<DocumentScannerProp
|
|
|
18
18
|
button: ShutterButton | null;
|
|
19
19
|
polygonMovementPredicate: PolygonMovementPredicate;
|
|
20
20
|
autoCaptureToken: any;
|
|
21
|
+
private _configuration?;
|
|
21
22
|
constructor(props: ScanbotCameraProps);
|
|
22
23
|
get defaultAction(): ShutterButtonAction;
|
|
23
24
|
get enabled(): boolean;
|
package/@types/index.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ import { Barcode } from "./model/barcode/barcode";
|
|
|
29
29
|
|
|
30
30
|
import { InitializationOptions } from "./model/configuration/initialization-options";
|
|
31
31
|
import { LicenseInfo } from "./model/response/license-info";
|
|
32
|
+
import { CameraInfo } from "./model/camera-info";
|
|
33
|
+
|
|
32
34
|
|
|
33
35
|
export {
|
|
34
36
|
IDocumentScannerHandle,
|
|
@@ -67,4 +69,6 @@ export {
|
|
|
67
69
|
Polygon,
|
|
68
70
|
Barcode,
|
|
69
71
|
LicenseInfo,
|
|
72
|
+
|
|
73
|
+
CameraInfo,
|
|
70
74
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export declare class MediaError extends Error {
|
|
2
2
|
name: MediaErrorType;
|
|
3
3
|
private constructor();
|
|
4
|
-
static notAvailable(message
|
|
5
|
-
static permissionError(message
|
|
6
|
-
static unsupportedMediaDevices(message
|
|
7
|
-
static
|
|
4
|
+
static notAvailable(message?: string): MediaError;
|
|
5
|
+
static permissionError(message?: string): MediaError;
|
|
6
|
+
static unsupportedMediaDevices(message?: string): MediaError;
|
|
7
|
+
static unsupportedOperationError(message?: string): MediaError;
|
|
8
|
+
static unknownError(message?: string): MediaError;
|
|
8
9
|
}
|
|
9
|
-
export declare type MediaErrorType = 'MediaNotAvailableError' | 'MediaPermissionError' | 'UnsupportedMediaDevicesError' | 'UnknownError';
|
|
10
|
+
export declare type MediaErrorType = 'MediaNotAvailableError' | 'MediaPermissionError' | 'UnsupportedMediaDevicesError' | 'UnsupportedOperationError' | 'UnknownError';
|
|
@@ -14,6 +14,7 @@ export default class MrzScannerView extends ScannerView<MrzScannerProps, MrzScan
|
|
|
14
14
|
finder?: ViewFinder;
|
|
15
15
|
shouldComputeSize: boolean;
|
|
16
16
|
private paused;
|
|
17
|
+
private _configuration?;
|
|
17
18
|
constructor(props: MrzScannerProps);
|
|
18
19
|
get configuration(): MrzScannerConfiguration;
|
|
19
20
|
get enabled(): boolean;
|
package/@types/scanner-view.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ScannerConfiguration } from "./model/configuration/scanner-configuration";
|
|
3
3
|
import ScanbotCameraView from "./view/scanbot-camera-view";
|
|
4
|
+
import { CameraInfo } from "./model/camera-info";
|
|
4
5
|
export declare class ScanbotCameraProps {
|
|
5
6
|
configuration: ScannerConfiguration;
|
|
6
7
|
container?: HTMLElement;
|
|
@@ -25,4 +26,6 @@ export declare abstract class ScannerView<P extends ScanbotCameraProps, S extend
|
|
|
25
26
|
onVideoReady: () => void;
|
|
26
27
|
onVideoError: (err: Error) => void;
|
|
27
28
|
swapCameraFacing(force?: boolean): void;
|
|
29
|
+
fetchAvailableCameras(): Promise<CameraInfo[]>;
|
|
30
|
+
switchCamera(deviceId: string, mirrored?: boolean): Promise<void>;
|
|
28
31
|
}
|
|
@@ -14,6 +14,7 @@ export default class TextDataScannerView extends ScannerView<TextDataScannerProp
|
|
|
14
14
|
finder?: ViewFinder;
|
|
15
15
|
shouldComputeSize: boolean;
|
|
16
16
|
private paused;
|
|
17
|
+
private _configuration?;
|
|
17
18
|
constructor(props: TextDataScannerProps);
|
|
18
19
|
get configuration(): TextDataScannerConfiguration;
|
|
19
20
|
get enabled(): boolean;
|
|
@@ -4,6 +4,7 @@ import { Size } from "../utils/dto/Size";
|
|
|
4
4
|
import { Frame } from "../utils/dto/Frame";
|
|
5
5
|
import { WindowStyleConfiguration } from "../model/configuration/window-style-configuration";
|
|
6
6
|
import { ImageDataWrapper } from "../model/image-data-wrapper";
|
|
7
|
+
import { CameraInfo } from "../model/camera-info";
|
|
7
8
|
export interface ScanbotCameraViewProps {
|
|
8
9
|
windowConfiguration?: WindowStyleConfiguration;
|
|
9
10
|
videoConstraints: MediaTrackConstraints;
|
|
@@ -14,6 +15,7 @@ export interface ScanbotCameraViewProps {
|
|
|
14
15
|
export interface ScanbotCameraViewState {
|
|
15
16
|
facingModeRear: boolean;
|
|
16
17
|
mirrored: boolean;
|
|
18
|
+
deviceId: string;
|
|
17
19
|
}
|
|
18
20
|
export default class ScanbotCameraView extends React.Component<ScanbotCameraViewProps, ScanbotCameraViewState> {
|
|
19
21
|
cutout?: Frame;
|
|
@@ -43,4 +45,6 @@ export default class ScanbotCameraView extends React.Component<ScanbotCameraView
|
|
|
43
45
|
style(): React.CSSProperties;
|
|
44
46
|
render(): JSX.Element;
|
|
45
47
|
swapCameraFacing(force?: boolean): void;
|
|
48
|
+
fetchAvailableCameras(): Promise<CameraInfo[]>;
|
|
49
|
+
switchCamera(deviceId: string, mirrored?: boolean): Promise<void>;
|
|
46
50
|
}
|