scanbot-web-sdk 8.1.0-alpha.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/BarcodeConfigurationTypes.d.ts +146 -52
- package/@types/core/compiled/BarcodeDocumentModel.d.ts +12 -12
- package/@types/core/compiled/BarcodeScannerTypes.d.ts +13 -5
- package/@types/core/compiled/BarcodeTypes.d.ts +35 -0
- package/@types/core/compiled/CommonFieldType.d.ts +7 -1
- package/@types/core/compiled/DocumentQualityAnalyzerTypes.d.ts +43 -24
- package/@types/core/compiled/DocumentScannerTypes.d.ts +19 -19
- package/@types/core/compiled/DocumentsModel.d.ts +443 -1
- package/@types/core/compiled/MrzTypes.d.ts +9 -0
- package/@types/core/compiled/ParametricFilters.d.ts +36 -1
- package/@types/core/compiled/TextPatternScannerTypes.d.ts +5 -0
- package/@types/core/compiled/VinScannerTypes.d.ts +5 -0
- 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/service/pdf-generator.d.ts +2 -1
- package/@types/ui2/barcode/controllers/multiple-scanning-mode-controller.d.ts +4 -0
- package/@types/ui2/barcode/controllers/single-scanning-mode-controller.d.ts +4 -0
- package/@types/ui2/barcode/views/barcode-scanner.d.ts +2 -0
- package/@types/ui2/barcode/views/drawer/barcode-result-drawer.d.ts +2 -0
- package/@types/ui2/barcode/views/drawer/barcode-result-sidebar.d.ts +2 -0
- package/@types/ui2/barcode/views/navigation-bar.d.ts +1 -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/BarcodeTextLocalization.d.ts +15 -0
- 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/check/CheckScannerScreenTextLocalization.d.ts +15 -0
- 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 +63 -0
- package/@types/ui2/configuration/common/TopBarConfiguration.d.ts +8 -2
- 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/credit_card/CreditCardScannerScreenTextLocalization.d.ts +15 -0
- package/@types/ui2/configuration/document/CameraScreenConfiguration.d.ts +6 -65
- 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/DocumentScannerTextLocalization.d.ts +15 -15
- 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/document_data/DocumentDataExtractorScreenTextLocalization.d.ts +15 -0
- package/@types/ui2/configuration/mrz/MRZScannerScreenConfiguration.d.ts +3 -3
- package/@types/ui2/configuration/mrz/MRZScannerScreenTextLocalization.d.ts +15 -0
- 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/text_pattern/TextPatternScannerScreenTextLocalization.d.ts +15 -0
- package/@types/ui2/configuration/vin/VINScannerScreenConfiguration.d.ts +2 -2
- package/@types/ui2/configuration/vin/VINScannerScreenTextLocalization.d.ts +15 -0
- package/@types/ui2/configuration.d.ts +1 -0
- package/@types/ui2/data-scanner/views/mrz-scanner-box.d.ts +4 -2
- package/@types/ui2/document/views/camera-screen/camera-select-dropdown.d.ts +2 -2
- package/@types/ui2/document/views/camera-screen/top-bar.d.ts +18 -3
- package/@types/ui2/document/views/camera-screen/use-document-scanner-view.d.ts +1 -0
- package/@types/ui2/document/views/common/common-top-bar.d.ts +1 -1
- package/@types/utils/assets/camera-localization.d.ts +44 -0
- package/@types/view/scanbot-camera-view.d.ts +2 -0
- package/@types/worker/worker-bridge.d.ts +28 -0
- package/bundle/ScanbotSDK.min.js +4 -4
- package/bundle/ScanbotSDK.ui2.min.js +85 -85
- 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,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
|
-
import { PopupMenuItem } from "../common/Common";
|
|
16
15
|
import { ScanbotAlertDialog } from "../common/ScanbotAlertDialog";
|
|
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
|
/**
|
|
@@ -376,65 +376,6 @@ export declare class DocumentPolygonConfiguration {
|
|
|
376
376
|
constructor(source?: DeepPartial<DocumentPolygonConfiguration>);
|
|
377
377
|
}
|
|
378
378
|
/**
|
|
379
|
-
Configuration of the 'select camera' menu.
|
|
380
|
-
*/
|
|
381
|
-
export declare class SelectCameraMenu {
|
|
382
|
-
/**
|
|
383
|
-
Configuration of the icon that toggles the 'select camera' menu.
|
|
384
|
-
@defaultValue new IconButton({
|
|
385
|
-
"color": "?sbColorOnPrimary",
|
|
386
|
-
"accessibilityDescription": "?accessibilityDescriptionCameraSelectButton"
|
|
387
|
-
});
|
|
388
|
-
*/
|
|
389
|
-
button: IconButton;
|
|
390
|
-
/**
|
|
391
|
-
The background color of the 'select camera' menu.
|
|
392
|
-
@defaultValue "?sbColorSurface";
|
|
393
|
-
*/
|
|
394
|
-
backgroundColor: string;
|
|
395
|
-
/**
|
|
396
|
-
Configuration of the title of the 'select camera' menu.
|
|
397
|
-
@defaultValue new StyledText({
|
|
398
|
-
"text": "?cameraSelectCameraMenuTitle",
|
|
399
|
-
"color": "?sbColorOnSurfaceVariant"
|
|
400
|
-
});
|
|
401
|
-
*/
|
|
402
|
-
title: StyledText;
|
|
403
|
-
/**
|
|
404
|
-
The color of the divider that separates the 'select camera' title from the menu items.
|
|
405
|
-
@defaultValue "?sbColorOutline";
|
|
406
|
-
*/
|
|
407
|
-
dividerColor: string;
|
|
408
|
-
/**
|
|
409
|
-
Configuration of the menu items in the 'select camera' menu.
|
|
410
|
-
@defaultValue new PopupMenuItem({
|
|
411
|
-
"title": new StyledText({
|
|
412
|
-
"color": "?sbColorOnSurface"
|
|
413
|
-
}),
|
|
414
|
-
"accessibilityDescription": "?accessibilityDescriptionCameraSelectMenuItem",
|
|
415
|
-
"icon": new IconStyle({
|
|
416
|
-
"color": "?sbColorOnSurface"
|
|
417
|
-
})
|
|
418
|
-
});
|
|
419
|
-
*/
|
|
420
|
-
menuEntry: PopupMenuItem;
|
|
421
|
-
/**
|
|
422
|
-
Configuration of the active menu items in the 'select camera' menu.
|
|
423
|
-
@defaultValue new PopupMenuItem({
|
|
424
|
-
"title": new StyledText({
|
|
425
|
-
"color": "?sbColorPrimary"
|
|
426
|
-
}),
|
|
427
|
-
"accessibilityDescription": "?accessibilityDescriptionCameraSelectMenuItem",
|
|
428
|
-
"icon": new IconStyle({
|
|
429
|
-
"color": "?sbColorPrimary"
|
|
430
|
-
})
|
|
431
|
-
});
|
|
432
|
-
*/
|
|
433
|
-
menuEntryActive: PopupMenuItem;
|
|
434
|
-
/** @param source {@displayType `DeepPartial<SelectCameraMenu>`} */
|
|
435
|
-
constructor(source?: DeepPartial<SelectCameraMenu>);
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
379
|
Configuration of the screen for scanning the pages with the camera.
|
|
439
380
|
*/
|
|
440
381
|
export declare class CameraScreenConfiguration {
|
|
@@ -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
|
*/
|
|
@@ -188,11 +188,6 @@ export declare class DocumentScannerTextLocalization {
|
|
|
188
188
|
@defaultValue "Ok";
|
|
189
189
|
*/
|
|
190
190
|
cameraLimitReachedOkButtonTitle: string;
|
|
191
|
-
/**
|
|
192
|
-
The title of the camera selection menu.
|
|
193
|
-
@defaultValue "Select camera";
|
|
194
|
-
*/
|
|
195
|
-
cameraSelectCameraMenuTitle: string;
|
|
196
191
|
/**
|
|
197
192
|
The hint text of the acknowledgement screen explaining that the quality of the scanned page is unacceptable.
|
|
198
193
|
@defaultValue "The quality of your scan does not seem sufficient.";
|
|
@@ -423,16 +418,6 @@ export declare class DocumentScannerTextLocalization {
|
|
|
423
418
|
@defaultValue "Tap to close introduction screen";
|
|
424
419
|
*/
|
|
425
420
|
accessibilityDescriptionCameraIntroDoneButton: string;
|
|
426
|
-
/**
|
|
427
|
-
The accessibility hint for the 'select camera' button, located in the top bar of the camera screen.
|
|
428
|
-
@defaultValue "Tap to open camera selection menu";
|
|
429
|
-
*/
|
|
430
|
-
accessibilityDescriptionCameraSelectButton: string;
|
|
431
|
-
/**
|
|
432
|
-
The accessibility hint for the 'select camera' menu item, accessed via the top bar button on the camera screen.
|
|
433
|
-
@defaultValue "Tap to select camera";
|
|
434
|
-
*/
|
|
435
|
-
accessibilityDescriptionCameraSelectMenuItem: string;
|
|
436
421
|
/**
|
|
437
422
|
The accessibility hint for the 'retake' button of the acknowledgement screen.
|
|
438
423
|
@defaultValue "Tap to retake the image";
|
|
@@ -618,6 +603,21 @@ export declare class DocumentScannerTextLocalization {
|
|
|
618
603
|
@defaultValue "Close screen without granting permission";
|
|
619
604
|
*/
|
|
620
605
|
accessibilityDescriptionCameraPermissionCloseButton: string;
|
|
606
|
+
/**
|
|
607
|
+
The accessibility hint for the 'select camera' button, located in the top bar of the camera screen.
|
|
608
|
+
@defaultValue "Tap to open camera selection menu";
|
|
609
|
+
*/
|
|
610
|
+
accessibilityDescriptionCameraSelectButton: string;
|
|
611
|
+
/**
|
|
612
|
+
The accessibility hint for the 'select camera' menu item, accessed via the top bar button on the camera screen.
|
|
613
|
+
@defaultValue "Tap to select camera";
|
|
614
|
+
*/
|
|
615
|
+
accessibilityDescriptionCameraSelectMenuItem: string;
|
|
616
|
+
/**
|
|
617
|
+
The title of the camera selection menu.
|
|
618
|
+
@defaultValue "Select camera";
|
|
619
|
+
*/
|
|
620
|
+
cameraSelectCameraMenuTitle: string;
|
|
621
621
|
/** @param source {@displayType `DeepPartial<DocumentScannerTextLocalization>`} */
|
|
622
622
|
constructor(source?: DeepPartial<DocumentScannerTextLocalization>);
|
|
623
623
|
}
|
|
@@ -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";
|
package/@types/ui2/configuration/document_data/DocumentDataExtractorScreenTextLocalization.d.ts
CHANGED
|
@@ -183,6 +183,21 @@ export declare class DocumentDataExtractorScreenTextLocalization {
|
|
|
183
183
|
@defaultValue "Please hold your device straight over the document.";
|
|
184
184
|
*/
|
|
185
185
|
documentUserGuidanceBadPerspective: string;
|
|
186
|
+
/**
|
|
187
|
+
The accessibility hint for the 'select camera' button, located in the top bar of the camera screen.
|
|
188
|
+
@defaultValue "Tap to open camera selection menu";
|
|
189
|
+
*/
|
|
190
|
+
accessibilityDescriptionCameraSelectButton: string;
|
|
191
|
+
/**
|
|
192
|
+
The accessibility hint for the 'select camera' menu item, accessed via the top bar button on the camera screen.
|
|
193
|
+
@defaultValue "Tap to select camera";
|
|
194
|
+
*/
|
|
195
|
+
accessibilityDescriptionCameraSelectMenuItem: string;
|
|
196
|
+
/**
|
|
197
|
+
The title of the camera selection menu.
|
|
198
|
+
@defaultValue "Select camera";
|
|
199
|
+
*/
|
|
200
|
+
cameraSelectCameraMenuTitle: string;
|
|
186
201
|
/** @param source {@displayType `DeepPartial<DocumentDataExtractorScreenTextLocalization>`} */
|
|
187
202
|
constructor(source?: DeepPartial<DocumentDataExtractorScreenTextLocalization>);
|
|
188
203
|
}
|
|
@@ -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";
|
|
@@ -103,6 +103,21 @@ export declare class MrzScannerScreenTextLocalization {
|
|
|
103
103
|
@defaultValue "Close screen without granting permission";
|
|
104
104
|
*/
|
|
105
105
|
accessibilityDescriptionCameraPermissionCloseButton: string;
|
|
106
|
+
/**
|
|
107
|
+
The accessibility hint for the 'select camera' button, located in the top bar of the camera screen.
|
|
108
|
+
@defaultValue "Tap to open camera selection menu";
|
|
109
|
+
*/
|
|
110
|
+
accessibilityDescriptionCameraSelectButton: string;
|
|
111
|
+
/**
|
|
112
|
+
The accessibility hint for the 'select camera' menu item, accessed via the top bar button on the camera screen.
|
|
113
|
+
@defaultValue "Tap to select camera";
|
|
114
|
+
*/
|
|
115
|
+
accessibilityDescriptionCameraSelectMenuItem: string;
|
|
116
|
+
/**
|
|
117
|
+
The title of the camera selection menu.
|
|
118
|
+
@defaultValue "Select camera";
|
|
119
|
+
*/
|
|
120
|
+
cameraSelectCameraMenuTitle: string;
|
|
106
121
|
/** @param source {@displayType `DeepPartial<MrzScannerScreenTextLocalization>`} */
|
|
107
122
|
constructor(source?: DeepPartial<MrzScannerScreenTextLocalization>);
|
|
108
123
|
}
|
|
@@ -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";
|
|
@@ -128,6 +128,21 @@ export declare class TextPatternScannerScreenTextLocalization {
|
|
|
128
128
|
@defaultValue "Close screen without granting permission";
|
|
129
129
|
*/
|
|
130
130
|
accessibilityDescriptionCameraPermissionCloseButton: string;
|
|
131
|
+
/**
|
|
132
|
+
The accessibility hint for the 'select camera' button, located in the top bar of the camera screen.
|
|
133
|
+
@defaultValue "Tap to open camera selection menu";
|
|
134
|
+
*/
|
|
135
|
+
accessibilityDescriptionCameraSelectButton: string;
|
|
136
|
+
/**
|
|
137
|
+
The accessibility hint for the 'select camera' menu item, accessed via the top bar button on the camera screen.
|
|
138
|
+
@defaultValue "Tap to select camera";
|
|
139
|
+
*/
|
|
140
|
+
accessibilityDescriptionCameraSelectMenuItem: string;
|
|
141
|
+
/**
|
|
142
|
+
The title of the camera selection menu.
|
|
143
|
+
@defaultValue "Select camera";
|
|
144
|
+
*/
|
|
145
|
+
cameraSelectCameraMenuTitle: string;
|
|
131
146
|
/** @param source {@displayType `DeepPartial<TextPatternScannerScreenTextLocalization>`} */
|
|
132
147
|
constructor(source?: DeepPartial<TextPatternScannerScreenTextLocalization>);
|
|
133
148
|
}
|
|
@@ -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
|
*/
|
|
@@ -128,6 +128,21 @@ export declare class VinScannerScreenTextLocalization {
|
|
|
128
128
|
@defaultValue "Close screen without granting permission";
|
|
129
129
|
*/
|
|
130
130
|
accessibilityDescriptionCameraPermissionCloseButton: string;
|
|
131
|
+
/**
|
|
132
|
+
The accessibility hint for the 'select camera' button, located in the top bar of the camera screen.
|
|
133
|
+
@defaultValue "Tap to open camera selection menu";
|
|
134
|
+
*/
|
|
135
|
+
accessibilityDescriptionCameraSelectButton: string;
|
|
136
|
+
/**
|
|
137
|
+
The accessibility hint for the 'select camera' menu item, accessed via the top bar button on the camera screen.
|
|
138
|
+
@defaultValue "Tap to select camera";
|
|
139
|
+
*/
|
|
140
|
+
accessibilityDescriptionCameraSelectMenuItem: string;
|
|
141
|
+
/**
|
|
142
|
+
The title of the camera selection menu.
|
|
143
|
+
@defaultValue "Select camera";
|
|
144
|
+
*/
|
|
145
|
+
cameraSelectCameraMenuTitle: string;
|
|
131
146
|
/** @param source {@displayType `DeepPartial<VinScannerScreenTextLocalization>`} */
|
|
132
147
|
constructor(source?: DeepPartial<VinScannerScreenTextLocalization>);
|
|
133
148
|
}
|
|
@@ -41,6 +41,7 @@ export * from "./configuration/common/UserGuidanceConfiguration";
|
|
|
41
41
|
export * from "./configuration/common/NavigationBarConfiguration";
|
|
42
42
|
export * from "./configuration/common/ScanCompletionOverlay";
|
|
43
43
|
export * from "./configuration/common/BottomBarConfiguration";
|
|
44
|
+
export * from "./configuration/common/SelectCameraMenu";
|
|
44
45
|
export * from "./configuration/sdk/Camera";
|
|
45
46
|
export * from "./configuration/sdk/Analytics";
|
|
46
47
|
export * from "./configuration/sdk/AnalyticsSubscriber";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import MrzScannerView from "../../../mrz-scanner-view";
|
|
3
3
|
import { MrzScannerScreenConfiguration } from "../../configuration/mrz/MRZScannerScreenConfiguration";
|
|
4
4
|
import { MrzScannerResult } from "../../../core-types";
|
|
5
5
|
import { Root } from "react-dom/client";
|
|
6
|
+
import { NavigationBarSize } from "../../document/views/camera-screen/top-bar";
|
|
6
7
|
export type MrzResultCallback = (result: MrzScannerResult) => void;
|
|
7
8
|
declare class Props {
|
|
8
9
|
root: Root;
|
|
@@ -10,8 +11,9 @@ declare class Props {
|
|
|
10
11
|
config: MrzScannerScreenConfiguration;
|
|
11
12
|
onCameraPermissionDenied: (err: Error) => void;
|
|
12
13
|
onMrzDetected: MrzResultCallback;
|
|
13
|
-
|
|
14
|
+
onSdkReady: (scanner: MrzScannerView) => void;
|
|
14
15
|
onError: any;
|
|
16
|
+
navigationBarSize: NavigationBarSize;
|
|
15
17
|
}
|
|
16
18
|
export declare function MrzScannerBox(props: Props): React.JSX.Element;
|
|
17
19
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CameraInfo } from "../../../../model/camera-info";
|
|
3
|
-
import {
|
|
3
|
+
import { SelectCameraMenu } from "../../../configuration/common/SelectCameraMenu";
|
|
4
4
|
export declare class CameraSelectConfig {
|
|
5
5
|
availableCameras: CameraInfo[];
|
|
6
6
|
activeCamera: CameraInfo;
|
|
7
7
|
onSelect: (camera: CameraInfo) => Promise<void>;
|
|
8
8
|
}
|
|
9
9
|
declare class Props {
|
|
10
|
-
config:
|
|
10
|
+
config: SelectCameraMenu;
|
|
11
11
|
cameraSelectConfig: CameraSelectConfig;
|
|
12
12
|
}
|
|
13
13
|
export declare function CameraSelectDropdown(props: Props): React.JSX.Element;
|
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ButtonConfiguration, IconButton, StyledText } from "../../../configuration/common/Common";
|
|
3
|
+
import { TopBarMode } from "../../../configuration/common/TopBarConfiguration";
|
|
3
4
|
import { CameraSelectConfig } from "./camera-select-dropdown";
|
|
5
|
+
import { SelectCameraMenu } from "../../../configuration/common/SelectCameraMenu";
|
|
6
|
+
export declare class NavigationBarSize {
|
|
7
|
+
height: number;
|
|
8
|
+
remainingVisibleBodyHeight: string;
|
|
9
|
+
minTopPaddingForContent: number;
|
|
10
|
+
minTopPaddingForViewFinder: number;
|
|
11
|
+
}
|
|
4
12
|
declare class Props {
|
|
5
|
-
|
|
13
|
+
title: StyledText;
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
backButton: ButtonConfiguration;
|
|
16
|
+
introButton?: IconButton;
|
|
17
|
+
cameraSelectConfig: SelectCameraMenu;
|
|
6
18
|
onCloseButtonClick: () => void;
|
|
7
19
|
onShowIntroButtonClick: () => void;
|
|
8
|
-
|
|
20
|
+
cameraConfig: CameraSelectConfig;
|
|
21
|
+
isCancelDisabled: boolean;
|
|
22
|
+
mode: TopBarMode;
|
|
23
|
+
onSizeCalculated?: (size: NavigationBarSize) => void;
|
|
9
24
|
}
|
|
10
25
|
export declare function TopBar(props: Props): React.JSX.Element;
|
|
11
26
|
export {};
|
|
@@ -14,6 +14,7 @@ declare class Props {
|
|
|
14
14
|
onImageCaptured: (image: DocumentScannerScanResponse) => void;
|
|
15
15
|
onUserGuidanceTextUpdate: (text: keyof HintTextConfiguration) => void;
|
|
16
16
|
onError: (error: any) => void;
|
|
17
|
+
onScannerLoaded: () => void;
|
|
17
18
|
snappingMode: SnappingMode;
|
|
18
19
|
scanningPaused: boolean;
|
|
19
20
|
torchEnabled: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { StyledText as StyledTextConfig } from "../../../configuration/common/Common";
|
|
3
3
|
declare class Props {
|
|
4
|
-
|
|
4
|
+
style: any;
|
|
5
5
|
leftContent: React.ReactNode;
|
|
6
6
|
centerTitle: StyledTextConfig;
|
|
7
7
|
centerTitleReplacementArgs?: string[];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare class CameraLocalization {
|
|
2
|
+
static readonly IOS_BACK_TRIPLE: {
|
|
3
|
+
de: string;
|
|
4
|
+
he: string;
|
|
5
|
+
ar: string;
|
|
6
|
+
el: string;
|
|
7
|
+
ja: string;
|
|
8
|
+
en: string;
|
|
9
|
+
uk: string;
|
|
10
|
+
es_419: string;
|
|
11
|
+
pt_PT: string;
|
|
12
|
+
es: string;
|
|
13
|
+
da: string;
|
|
14
|
+
it: string;
|
|
15
|
+
sk: string;
|
|
16
|
+
zh_CN: string;
|
|
17
|
+
ms: string;
|
|
18
|
+
sv: string;
|
|
19
|
+
en_AU: string;
|
|
20
|
+
cs: string;
|
|
21
|
+
ko: string;
|
|
22
|
+
no: string;
|
|
23
|
+
hu: string;
|
|
24
|
+
tr: string;
|
|
25
|
+
pl: string;
|
|
26
|
+
fr_CA: string;
|
|
27
|
+
vi: string;
|
|
28
|
+
ru: string;
|
|
29
|
+
en_GB: string;
|
|
30
|
+
fr: string;
|
|
31
|
+
fi: string;
|
|
32
|
+
id: string;
|
|
33
|
+
nl: string;
|
|
34
|
+
th: string;
|
|
35
|
+
pt: string;
|
|
36
|
+
ro: string;
|
|
37
|
+
zh_HK: string;
|
|
38
|
+
hr: string;
|
|
39
|
+
hi: string;
|
|
40
|
+
ca: string;
|
|
41
|
+
zh_TW: string;
|
|
42
|
+
};
|
|
43
|
+
static isiOSBackTripleCamera(cameraName: string): boolean;
|
|
44
|
+
}
|
|
@@ -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
|
} & {
|