scanbot-web-sdk 8.1.0-beta.1 → 8.1.0-beta.2
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/core/bridge/worker-bridge.d.ts +28 -0
- package/@types/core/compiled/BarcodeScannerTypes.d.ts +13 -5
- package/@types/core/compiled/DocumentsModel.d.ts +443 -1
- package/@types/core/compiled/ParametricFilters.d.ts +36 -1
- package/@types/core/compiled/utils.d.ts +1 -1
- package/@types/core-types.d.ts +1 -1
- package/@types/model/configuration/document-scanner-view-configuration.d.ts +4 -0
- package/@types/model/configuration/scanner-configuration.d.ts +3 -0
- package/@types/scanbot-sdk.d.ts +14 -0
- package/@types/ui2/common.d.ts +1 -1
- package/@types/ui2/configuration/BarcodeTypes.d.ts +1 -1
- package/@types/ui2/configuration/barcode/BarcodeScannerScreenConfiguration.d.ts +2 -2
- package/@types/ui2/configuration/barcode/BarcodeUseCase.d.ts +3 -3
- package/@types/ui2/configuration/barcode/FindAndPickScanningModeUseCase.d.ts +4 -4
- package/@types/ui2/configuration/barcode/MultipleScanningModeUseCase.d.ts +2 -2
- package/@types/ui2/configuration/barcode/SingleScanningModeUseCase.d.ts +2 -2
- package/@types/ui2/configuration/check/CheckScannerScreenConfiguration.d.ts +4 -4
- package/@types/ui2/configuration/common/ActionBarConfiguration.d.ts +1 -1
- package/@types/ui2/configuration/common/CameraConfiguration.d.ts +6 -0
- package/@types/ui2/configuration/common/CameraPermission.d.ts +3 -3
- package/@types/ui2/configuration/common/Common.d.ts +19 -0
- package/@types/ui2/configuration/common/ScanCompletionOverlay.d.ts +1 -1
- package/@types/ui2/configuration/common/ScanbotAlertDialog.d.ts +2 -2
- package/@types/ui2/configuration/common/SelectCameraMenu.d.ts +3 -3
- package/@types/ui2/configuration/common/TopBarConfiguration.d.ts +3 -3
- package/@types/ui2/configuration/common/UserGuidanceConfiguration.d.ts +3 -3
- package/@types/ui2/configuration/common/ViewFinderConfiguration.d.ts +1 -1
- package/@types/ui2/configuration/credit_card/CreditCardScannerScreenConfiguration.d.ts +4 -4
- package/@types/ui2/configuration/document/CameraScreenConfiguration.d.ts +5 -5
- package/@types/ui2/configuration/document/DocumentScannerCameraConfiguration.d.ts +6 -0
- package/@types/ui2/configuration/document/DocumentScannerScreens.d.ts +3 -3
- package/@types/ui2/configuration/document/DocumentScannerUserGuidance.d.ts +1 -1
- package/@types/ui2/configuration/document/DocumentScanningFlow.d.ts +3 -3
- package/@types/ui2/configuration/document_data/DocumentDataExtractorScreenConfiguration.d.ts +4 -4
- package/@types/ui2/configuration/mrz/MRZScannerScreenConfiguration.d.ts +3 -3
- package/@types/ui2/configuration/native/DocumentData.d.ts +1 -1
- package/@types/ui2/configuration/native/PageData.d.ts +1 -1
- package/@types/ui2/configuration/text_pattern/TextPatternScannerScreenConfiguration.d.ts +2 -2
- package/@types/ui2/configuration/vin/VINScannerScreenConfiguration.d.ts +2 -2
- package/@types/utils/assets/camera-localization.d.ts +1 -1
- package/@types/view/scanbot-camera-view.d.ts +2 -0
- package/@types/worker/worker-bridge.d.ts +28 -0
- package/bundle/ScanbotSDK.min.js +3 -3
- package/bundle/ScanbotSDK.ui2.min.js +10 -10
- 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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
2
|
import { ActionBarConfiguration } from "../common/ActionBarConfiguration";
|
|
3
3
|
import { BarcodeScannerConfiguration } from "../BarcodeScannerTypes";
|
|
4
|
-
import { BarcodeTextLocalization } from "
|
|
5
|
-
import { BarcodeUseCase } from "
|
|
4
|
+
import { BarcodeTextLocalization } from "./BarcodeTextLocalization";
|
|
5
|
+
import { BarcodeUseCase } from "./BarcodeUseCase";
|
|
6
6
|
import { CameraConfiguration } from "../common/CameraConfiguration";
|
|
7
7
|
import { CameraPermissionScreen } from "../common/CameraPermission";
|
|
8
8
|
import { Palette } from "../common/Common";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
|
-
import { FindAndPickScanningMode } from "
|
|
3
|
-
import { MultipleScanningMode } from "
|
|
4
|
-
import { SingleScanningMode } from "
|
|
2
|
+
import { FindAndPickScanningMode } from "./FindAndPickScanningModeUseCase";
|
|
3
|
+
import { MultipleScanningMode } from "./MultipleScanningModeUseCase";
|
|
4
|
+
import { SingleScanningMode } from "./SingleScanningModeUseCase";
|
|
5
5
|
/**
|
|
6
6
|
Configuration of the barcode scanner screen's behavior.
|
|
7
7
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
|
-
import { ArOverlayFindAndPickConfiguration } from "
|
|
3
|
-
import { ManualCountEditDialog } from "
|
|
2
|
+
import { ArOverlayFindAndPickConfiguration } from "./ArTrackingOverlayConfiguration";
|
|
3
|
+
import { ManualCountEditDialog } from "./MultipleScanningModeUseCase";
|
|
4
4
|
import { ScanbotAlertDialog } from "../common/ScanbotAlertDialog";
|
|
5
|
-
import { SheetContent } from "
|
|
6
|
-
import { Sheet } from "
|
|
5
|
+
import { SheetContent } from "./MultipleScanningModeUseCase";
|
|
6
|
+
import { Sheet } from "./MultipleScanningModeUseCase";
|
|
7
7
|
/**
|
|
8
8
|
Configuration of the barcode to find and scan.
|
|
9
9
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
|
-
import { ArOverlayGeneralConfiguration } from "
|
|
2
|
+
import { ArOverlayGeneralConfiguration } from "./ArTrackingOverlayConfiguration";
|
|
3
3
|
import { BadgedButton } from "../common/Common";
|
|
4
|
-
import { BarcodeInfoMapping } from "
|
|
4
|
+
import { BarcodeInfoMapping } from "./BarcodeInfoMapping";
|
|
5
5
|
import { ButtonConfiguration } from "../common/Common";
|
|
6
6
|
import { IconStyle } from "../common/Common";
|
|
7
7
|
import { StyledText } from "../common/Common";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
|
-
import { ArOverlayGeneralConfiguration } from "
|
|
3
|
-
import { BarcodeInfoMapping } from "
|
|
2
|
+
import { ArOverlayGeneralConfiguration } from "./ArTrackingOverlayConfiguration";
|
|
3
|
+
import { BarcodeInfoMapping } from "./BarcodeInfoMapping";
|
|
4
4
|
import { ButtonConfiguration } from "../common/Common";
|
|
5
5
|
import { StyledText } from "../common/Common";
|
|
6
6
|
/**
|
|
@@ -3,10 +3,10 @@ import { ActionBarConfiguration } from "../common/ActionBarConfiguration";
|
|
|
3
3
|
import { CameraConfiguration } from "../common/CameraConfiguration";
|
|
4
4
|
import { CameraPermissionScreen } from "../common/CameraPermission";
|
|
5
5
|
import { CheckScannerConfiguration } from "../CheckScannerTypes";
|
|
6
|
-
import { CheckScannerGuidanceConfiguration } from "
|
|
7
|
-
import { CheckScannerIntroScreenConfiguration } from "
|
|
8
|
-
import { CheckScannerScreenTextLocalization } from "
|
|
9
|
-
import { CheckScanningProgressConfiguration } from "
|
|
6
|
+
import { CheckScannerGuidanceConfiguration } from "./CheckScannerUserGuidance";
|
|
7
|
+
import { CheckScannerIntroScreenConfiguration } from "./CheckScannerIntroScreenConfiguration";
|
|
8
|
+
import { CheckScannerScreenTextLocalization } from "./CheckScannerScreenTextLocalization";
|
|
9
|
+
import { CheckScanningProgressConfiguration } from "./CheckScanningProgressConfiguration";
|
|
10
10
|
import { IconButton } from "../common/Common";
|
|
11
11
|
import { Palette } from "../common/Common";
|
|
12
12
|
import { PermanentViewFinderConfiguration } from "../common/ViewFinderConfiguration";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
2
|
import { CameraLiveScannerResolution } from "../sdk/Camera";
|
|
3
|
+
import { CameraPreviewMode } from "./Common";
|
|
3
4
|
/**
|
|
4
5
|
The ideal resolution of the camera preview.
|
|
5
6
|
*/
|
|
@@ -58,6 +59,11 @@ export declare class CameraConfiguration {
|
|
|
58
59
|
@defaultValue false;
|
|
59
60
|
*/
|
|
60
61
|
flashEnabled: boolean;
|
|
62
|
+
/**
|
|
63
|
+
Determines which camera preview mode to use.
|
|
64
|
+
@defaultValue "FILL_IN";
|
|
65
|
+
*/
|
|
66
|
+
cameraPreviewMode: CameraPreviewMode;
|
|
61
67
|
/**
|
|
62
68
|
The ideal resolution for the camera preview. Actual resolution may vary depending on browser and device capabilities.
|
|
63
69
|
@defaultValue new Resolution({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
|
-
import { ButtonConfiguration } from "
|
|
3
|
-
import { IconStyle } from "
|
|
4
|
-
import { StyledText } from "
|
|
2
|
+
import { ButtonConfiguration } from "./Common";
|
|
3
|
+
import { IconStyle } from "./Common";
|
|
4
|
+
import { StyledText } from "./Common";
|
|
5
5
|
/**
|
|
6
6
|
Configuration of the camera permission request view.
|
|
7
7
|
*/
|
|
@@ -411,6 +411,25 @@ export declare class BarButtonConfiguration {
|
|
|
411
411
|
constructor(source?: DeepPartial<BarButtonConfiguration>);
|
|
412
412
|
}
|
|
413
413
|
/**
|
|
414
|
+
Configuration of the camera preview mode.
|
|
415
|
+
|
|
416
|
+
- `FIT_IN`:
|
|
417
|
+
In this mode, the camera preview frames will be scaled to fit inside the layout view size - the full preview frame content will be visible, but unused edges might appear in the preview layout.
|
|
418
|
+
- `FILL_IN`:
|
|
419
|
+
In this mode, the camera preview frames fill the entire layout view - the preview frames may contain additional content at the edges that are not visible in the preview layout.
|
|
420
|
+
*/
|
|
421
|
+
export type CameraPreviewMode =
|
|
422
|
+
/**
|
|
423
|
+
In this mode, the camera preview frames will be scaled to fit inside the layout view size - the full preview frame content will be visible, but unused edges might appear in the preview layout.
|
|
424
|
+
*/
|
|
425
|
+
"FIT_IN"
|
|
426
|
+
/**
|
|
427
|
+
In this mode, the camera preview frames fill the entire layout view - the preview frames may contain additional content at the edges that are not visible in the preview layout.
|
|
428
|
+
*/
|
|
429
|
+
| "FILL_IN";
|
|
430
|
+
/** @hidden */
|
|
431
|
+
export declare const CameraPreviewModeValues: ReadonlyArray<CameraPreviewMode>;
|
|
432
|
+
/**
|
|
414
433
|
Determines the successful detection sound.
|
|
415
434
|
|
|
416
435
|
- `MODERN_BEEP`:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
|
-
import { ButtonConfiguration } from "
|
|
3
|
-
import { StyledText } from "
|
|
2
|
+
import { ButtonConfiguration } from "./Common";
|
|
3
|
+
import { StyledText } from "./Common";
|
|
4
4
|
/**
|
|
5
5
|
Configuration of the standard alert dialog.
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
|
-
import { IconButton } from "
|
|
3
|
-
import { PopupMenuItem } from "
|
|
4
|
-
import { StyledText } from "
|
|
2
|
+
import { IconButton } from "./Common";
|
|
3
|
+
import { PopupMenuItem } from "./Common";
|
|
4
|
+
import { StyledText } from "./Common";
|
|
5
5
|
/**
|
|
6
6
|
Configuration of the 'select camera' menu.
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
|
-
import { ButtonConfiguration } from "
|
|
3
|
-
import { SelectCameraMenu } from "
|
|
4
|
-
import { StyledText } from "
|
|
2
|
+
import { ButtonConfiguration } from "./Common";
|
|
3
|
+
import { SelectCameraMenu } from "./SelectCameraMenu";
|
|
4
|
+
import { StyledText } from "./Common";
|
|
5
5
|
/**
|
|
6
6
|
Configuration of the top bar's appearance.
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
|
-
import { BackgroundStyle } from "
|
|
3
|
-
import { IconStyle } from "
|
|
4
|
-
import { StyledText } from "
|
|
2
|
+
import { BackgroundStyle } from "./Common";
|
|
3
|
+
import { IconStyle } from "./Common";
|
|
4
|
+
import { StyledText } from "./Common";
|
|
5
5
|
/**
|
|
6
6
|
Configuration of the hint guiding users through the scanning process.
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
2
|
import { AspectRatio } from "../Geometry";
|
|
3
|
-
import { EdgeInsets } from "
|
|
3
|
+
import { EdgeInsets } from "./Common";
|
|
4
4
|
/**
|
|
5
5
|
Base configuration of the scanning interface’s viewfinder, serving as guidance to the user.
|
|
6
6
|
*/
|
|
@@ -2,11 +2,11 @@ import type { DeepPartial } from "../utils";
|
|
|
2
2
|
import { ActionBarConfiguration } from "../common/ActionBarConfiguration";
|
|
3
3
|
import { CameraConfiguration } from "../common/CameraConfiguration";
|
|
4
4
|
import { CameraPermissionScreen } from "../common/CameraPermission";
|
|
5
|
-
import { CreditCardScanGuidanceConfiguration } from "
|
|
5
|
+
import { CreditCardScanGuidanceConfiguration } from "./CreditCardScannerUserGuidance";
|
|
6
6
|
import { CreditCardScannerConfiguration } from "../CreditCardTypes";
|
|
7
|
-
import { CreditCardScannerIntroScreenConfiguration } from "
|
|
8
|
-
import { CreditCardScannerScreenTextLocalization } from "
|
|
9
|
-
import { CreditCardScanningProgressConfiguration } from "
|
|
7
|
+
import { CreditCardScannerIntroScreenConfiguration } from "./CreditCardScannerIntroScreenConfiguration";
|
|
8
|
+
import { CreditCardScannerScreenTextLocalization } from "./CreditCardScannerScreenTextLocalization";
|
|
9
|
+
import { CreditCardScanningProgressConfiguration } from "./CreditCardScanningProgressConfiguration";
|
|
10
10
|
import { IconButton } from "../common/Common";
|
|
11
11
|
import { Palette } from "../common/Common";
|
|
12
12
|
import { PermanentViewFinderConfiguration } from "../common/ViewFinderConfiguration";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
|
-
import { AcknowledgementScreenConfiguration } from "
|
|
2
|
+
import { AcknowledgementScreenConfiguration } from "./AcknowledgementScreenConfiguration";
|
|
3
3
|
import { BadgeStyle } from "../common/Common";
|
|
4
4
|
import { BarButtonConfiguration } from "../common/Common";
|
|
5
5
|
import { BottomBarMode } from "../common/BottomBarConfiguration";
|
|
6
6
|
import { ButtonConfiguration } from "../common/Common";
|
|
7
7
|
import { CameraPermissionScreen } from "../common/CameraPermission";
|
|
8
8
|
import { DocumentQualityAnalyzerConfiguration } from "../DocumentQualityAnalyzerTypes";
|
|
9
|
-
import { DocumentScannerCameraConfiguration } from "
|
|
9
|
+
import { DocumentScannerCameraConfiguration } from "./DocumentScannerCameraConfiguration";
|
|
10
10
|
import { DocumentScannerParameters } from "../DocumentScannerTypes";
|
|
11
|
-
import { DocumentScannerUserGuidance } from "
|
|
11
|
+
import { DocumentScannerUserGuidance } from "./DocumentScannerUserGuidance";
|
|
12
12
|
import { IconButton } from "../common/Common";
|
|
13
|
-
import { IntroductionScreenConfiguration } from "
|
|
13
|
+
import { IntroductionScreenConfiguration } from "./IntroductionScreenConfiguration";
|
|
14
14
|
import { PolygonStyle } from "../common/Common";
|
|
15
15
|
import { ScanbotAlertDialog } from "../common/ScanbotAlertDialog";
|
|
16
16
|
import { SelectCameraMenu } from "../common/SelectCameraMenu";
|
|
17
17
|
import { StyledText } from "../common/Common";
|
|
18
18
|
import { Timeouts } from "../common/Common";
|
|
19
19
|
import { UserGuidanceConfiguration } from "../common/UserGuidanceConfiguration";
|
|
20
|
-
import { UserGuidanceVisibility } from "
|
|
20
|
+
import { UserGuidanceVisibility } from "./DocumentScannerGuidanceVisibility";
|
|
21
21
|
import { Vibration } from "../common/Common";
|
|
22
22
|
import { ViewFinderConfiguration } from "../common/ViewFinderConfiguration";
|
|
23
23
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
2
|
import { CameraLiveScannerResolution } from "../sdk/Camera";
|
|
3
3
|
import { CameraModule } from "../common/CameraConfiguration";
|
|
4
|
+
import { CameraPreviewMode } from "../common/Common";
|
|
4
5
|
import { Resolution } from "../common/CameraConfiguration";
|
|
5
6
|
/**
|
|
6
7
|
Configuration of the camera behavior.
|
|
@@ -21,6 +22,11 @@ export declare class DocumentScannerCameraConfiguration {
|
|
|
21
22
|
@defaultValue false;
|
|
22
23
|
*/
|
|
23
24
|
flashEnabled: boolean;
|
|
25
|
+
/**
|
|
26
|
+
Determines which camera preview mode to use.
|
|
27
|
+
@defaultValue "FILL_IN";
|
|
28
|
+
*/
|
|
29
|
+
cameraPreviewMode: CameraPreviewMode;
|
|
24
30
|
/**
|
|
25
31
|
The ideal resolution for the camera preview. Actual resolution may vary depending on browser and device capabilities.
|
|
26
32
|
@defaultValue new Resolution({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
|
-
import { CameraScreenConfiguration } from "
|
|
3
|
-
import { CroppingScreenConfiguration } from "
|
|
4
|
-
import { ReviewScreenConfiguration } from "
|
|
2
|
+
import { CameraScreenConfiguration } from "./CameraScreenConfiguration";
|
|
3
|
+
import { CroppingScreenConfiguration } from "./CroppingScreenConfiguration";
|
|
4
|
+
import { ReviewScreenConfiguration } from "./ReviewScreenConfiguration";
|
|
5
5
|
/**
|
|
6
6
|
Configuration of the document scanner sub-screens.
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
2
|
import { BackgroundStyle } from "../common/Common";
|
|
3
3
|
import { StyledText } from "../common/Common";
|
|
4
|
-
import { UserGuidanceVisibility } from "
|
|
4
|
+
import { UserGuidanceVisibility } from "./DocumentScannerGuidanceVisibility";
|
|
5
5
|
/**
|
|
6
6
|
Configure the titles of the user guidance hints for different states.
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
|
-
import { DocumentScannerOutputSettings } from "
|
|
3
|
-
import { DocumentScannerScreens } from "
|
|
4
|
-
import { DocumentScannerTextLocalization } from "
|
|
2
|
+
import { DocumentScannerOutputSettings } from "./DocumentScannerOutputSettings";
|
|
3
|
+
import { DocumentScannerScreens } from "./DocumentScannerScreens";
|
|
4
|
+
import { DocumentScannerTextLocalization } from "./DocumentScannerTextLocalization";
|
|
5
5
|
import { Palette } from "../common/Common";
|
|
6
6
|
/**
|
|
7
7
|
Configuration of the general appearance.
|
package/@types/ui2/configuration/document_data/DocumentDataExtractorScreenConfiguration.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import type { DeepPartial } from "../utils";
|
|
|
2
2
|
import { ActionBarConfiguration } from "../common/ActionBarConfiguration";
|
|
3
3
|
import { CameraConfiguration } from "../common/CameraConfiguration";
|
|
4
4
|
import { CameraPermissionScreen } from "../common/CameraPermission";
|
|
5
|
-
import { DocumentDataExtractionProgressConfiguration } from "
|
|
5
|
+
import { DocumentDataExtractionProgressConfiguration } from "./DocumentDataExtractionProgressConfiguration";
|
|
6
6
|
import { DocumentDataExtractorConfiguration } from "../DocumentDataExtractorTypes";
|
|
7
|
-
import { DocumentDataExtractorGuidanceConfiguration } from "
|
|
8
|
-
import { DocumentDataExtractorIntroScreenConfiguration } from "
|
|
9
|
-
import { DocumentDataExtractorScreenTextLocalization } from "
|
|
7
|
+
import { DocumentDataExtractorGuidanceConfiguration } from "./DocumentDataExtractorUserGuidance";
|
|
8
|
+
import { DocumentDataExtractorIntroScreenConfiguration } from "./DocumentDataExtractorIntroScreenConfiguration";
|
|
9
|
+
import { DocumentDataExtractorScreenTextLocalization } from "./DocumentDataExtractorScreenTextLocalization";
|
|
10
10
|
import { IconButton } from "../common/Common";
|
|
11
11
|
import { Palette } from "../common/Common";
|
|
12
12
|
import { PermanentViewFinderConfiguration } from "../common/ViewFinderConfiguration";
|
|
@@ -3,10 +3,10 @@ import { ActionBarConfiguration } from "../common/ActionBarConfiguration";
|
|
|
3
3
|
import { CameraConfiguration } from "../common/CameraConfiguration";
|
|
4
4
|
import { CameraPermissionScreen } from "../common/CameraPermission";
|
|
5
5
|
import { IconButton } from "../common/Common";
|
|
6
|
-
import { MrzFinderLayoutPreset } from "
|
|
6
|
+
import { MrzFinderLayoutPreset } from "./MRZFinderLayoutPreset";
|
|
7
7
|
import { MrzScannerConfiguration } from "../MrzTypes";
|
|
8
|
-
import { MrzScannerIntroScreenConfiguration } from "
|
|
9
|
-
import { MrzScannerScreenTextLocalization } from "
|
|
8
|
+
import { MrzScannerIntroScreenConfiguration } from "./MRZScannerIntroScreenConfiguration";
|
|
9
|
+
import { MrzScannerScreenTextLocalization } from "./MRZScannerScreenTextLocalization";
|
|
10
10
|
import { Palette } from "../common/Common";
|
|
11
11
|
import { PermanentViewFinderConfiguration } from "../common/ViewFinderConfiguration";
|
|
12
12
|
import { ScanCompletionOverlay } from "../common/ScanCompletionOverlay";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial } from "../utils";
|
|
2
2
|
import { DocumentDetectionStatus } from "../DocumentScannerTypes";
|
|
3
3
|
import { DocumentQuality } from "../DocumentQualityAnalyzerTypes";
|
|
4
|
-
import { PageImageSource } from "
|
|
4
|
+
import { PageImageSource } from "./PageImageSource";
|
|
5
5
|
import { ParametricFilter } from "../ParametricFilters";
|
|
6
6
|
import { Point } from "../utils";
|
|
7
7
|
/**
|
|
@@ -9,8 +9,8 @@ import { ScanCompletionOverlay } from "../common/ScanCompletionOverlay";
|
|
|
9
9
|
import { ScanbotAlertDialog } from "../common/ScanbotAlertDialog";
|
|
10
10
|
import { Sound } from "../common/Common";
|
|
11
11
|
import { TextPatternScannerConfiguration } from "../TextPatternScannerTypes";
|
|
12
|
-
import { TextPatternScannerIntroScreenConfiguration } from "
|
|
13
|
-
import { TextPatternScannerScreenTextLocalization } from "
|
|
12
|
+
import { TextPatternScannerIntroScreenConfiguration } from "./TextPatternScannerIntroScreenConfiguration";
|
|
13
|
+
import { TextPatternScannerScreenTextLocalization } from "./TextPatternScannerScreenTextLocalization";
|
|
14
14
|
import { TopBarConfiguration } from "../common/TopBarConfiguration";
|
|
15
15
|
import { UserGuidanceConfiguration } from "../common/UserGuidanceConfiguration";
|
|
16
16
|
import { Vibration } from "../common/Common";
|
|
@@ -12,8 +12,8 @@ import { TopBarConfiguration } from "../common/TopBarConfiguration";
|
|
|
12
12
|
import { UserGuidanceConfiguration } from "../common/UserGuidanceConfiguration";
|
|
13
13
|
import { Vibration } from "../common/Common";
|
|
14
14
|
import { VinScannerConfiguration } from "../VinScannerTypes";
|
|
15
|
-
import { VinScannerIntroScreenConfiguration } from "
|
|
16
|
-
import { VinScannerScreenTextLocalization } from "
|
|
15
|
+
import { VinScannerIntroScreenConfiguration } from "./VINScannerIntroScreenConfiguration";
|
|
16
|
+
import { VinScannerScreenTextLocalization } from "./VINScannerScreenTextLocalization";
|
|
17
17
|
/**
|
|
18
18
|
Configuration of the screen for detecting VIN data.
|
|
19
19
|
*/
|
|
@@ -38,6 +38,8 @@ export default class ScanbotCameraView extends React.Component<ScanbotCameraView
|
|
|
38
38
|
save: boolean;
|
|
39
39
|
saveExtractedData(): void;
|
|
40
40
|
zoom(): number;
|
|
41
|
+
get previewMode(): "FIT_IN" | "FILL_IN";
|
|
42
|
+
get fitPreview(): boolean;
|
|
41
43
|
private capture?;
|
|
42
44
|
private imageCapture;
|
|
43
45
|
private _reusableImageBuffer;
|
|
@@ -64,6 +64,13 @@ export declare class WorkerBridge {
|
|
|
64
64
|
paperWhiteningBias?: number;
|
|
65
65
|
} & {
|
|
66
66
|
readonly _type: "ColorDocumentFilter";
|
|
67
|
+
}) | ({
|
|
68
|
+
contrastEnhancement?: number;
|
|
69
|
+
colorEnhancement?: number;
|
|
70
|
+
paperSaturation?: number;
|
|
71
|
+
paperLightness?: number;
|
|
72
|
+
} & {
|
|
73
|
+
readonly _type: "ColorDocumentShadowRemovalFilter";
|
|
67
74
|
}) | ({
|
|
68
75
|
brightness?: number;
|
|
69
76
|
} & {
|
|
@@ -132,6 +139,13 @@ export declare class WorkerBridge {
|
|
|
132
139
|
paperWhiteningBias?: number;
|
|
133
140
|
} & {
|
|
134
141
|
readonly _type: "ColorDocumentFilter";
|
|
142
|
+
}) | ({
|
|
143
|
+
contrastEnhancement?: number;
|
|
144
|
+
colorEnhancement?: number;
|
|
145
|
+
paperSaturation?: number;
|
|
146
|
+
paperLightness?: number;
|
|
147
|
+
} & {
|
|
148
|
+
readonly _type: "ColorDocumentShadowRemovalFilter";
|
|
135
149
|
}) | ({
|
|
136
150
|
brightness?: number;
|
|
137
151
|
} & {
|
|
@@ -215,6 +229,13 @@ export declare class WorkerBridge {
|
|
|
215
229
|
paperWhiteningBias?: number;
|
|
216
230
|
} & {
|
|
217
231
|
readonly _type: "ColorDocumentFilter";
|
|
232
|
+
}) | ({
|
|
233
|
+
contrastEnhancement?: number;
|
|
234
|
+
colorEnhancement?: number;
|
|
235
|
+
paperSaturation?: number;
|
|
236
|
+
paperLightness?: number;
|
|
237
|
+
} & {
|
|
238
|
+
readonly _type: "ColorDocumentShadowRemovalFilter";
|
|
218
239
|
}) | ({
|
|
219
240
|
brightness?: number;
|
|
220
241
|
} & {
|
|
@@ -283,6 +304,13 @@ export declare class WorkerBridge {
|
|
|
283
304
|
paperWhiteningBias?: number;
|
|
284
305
|
} & {
|
|
285
306
|
readonly _type: "ColorDocumentFilter";
|
|
307
|
+
}) | ({
|
|
308
|
+
contrastEnhancement?: number;
|
|
309
|
+
colorEnhancement?: number;
|
|
310
|
+
paperSaturation?: number;
|
|
311
|
+
paperLightness?: number;
|
|
312
|
+
} & {
|
|
313
|
+
readonly _type: "ColorDocumentShadowRemovalFilter";
|
|
286
314
|
}) | ({
|
|
287
315
|
brightness?: number;
|
|
288
316
|
} & {
|