scanbot-web-sdk 6.0.0-dev.5 → 7.0.0-dev.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 -1
- package/@types/core/bridge/compiled/{BarcodeConfigs.d.ts → BarcodeConfigurationTypes.d.ts} +558 -173
- package/@types/core/bridge/compiled/BarcodeDocumentTypes.d.ts +14 -13
- package/@types/core/bridge/compiled/BarcodeScannerTypes.d.ts +25 -14
- package/@types/core/bridge/compiled/BarcodeTypes.d.ts +58 -56
- package/@types/core/bridge/compiled/CheckScannerTypes.d.ts +67 -0
- package/@types/core/bridge/compiled/CommonFieldType.d.ts +29 -28
- package/@types/core/bridge/compiled/CreditCardTypes.d.ts +35 -33
- package/@types/core/bridge/compiled/DocumentDataExtractorConfigurationTypes.d.ts +148 -0
- package/@types/core/bridge/compiled/DocumentDataExtractorTypes.d.ts +90 -0
- package/@types/core/bridge/compiled/DocumentQualityAnalyzerTypes.d.ts +28 -23
- package/@types/core/bridge/compiled/{DocumentDetectorTypes.d.ts → DocumentScannerTypes.d.ts} +49 -47
- package/@types/core/bridge/compiled/{EhicTypes.d.ts → EuropeanHealthInsuranceCardTypes.d.ts} +51 -108
- package/@types/core/bridge/compiled/FrameAccumulationTypes.d.ts +37 -14
- package/@types/core/bridge/compiled/GenericDocument.d.ts +17 -17
- package/@types/core/bridge/compiled/Geometry.d.ts +2 -2
- package/@types/core/bridge/compiled/ImageTypes.d.ts +1 -0
- package/@types/core/bridge/compiled/LicensePlateScannerTypes.d.ts +20 -19
- package/@types/core/bridge/compiled/MedicalCertificateTypes.d.ts +108 -105
- package/@types/core/bridge/compiled/MrzTypes.d.ts +73 -0
- package/@types/core/bridge/compiled/ParametricFilters.d.ts +4 -3
- package/@types/core/bridge/compiled/{PdfConfig.d.ts → PdfConfigurationTypes.d.ts} +48 -45
- package/@types/core/bridge/compiled/{GenericTextLineScannerTypes.d.ts → TextPatternScannerTypes.d.ts} +23 -22
- package/@types/core/bridge/compiled/TiffTypes.d.ts +48 -50
- package/@types/core/bridge/worker-bridge.d.ts +488 -364
- package/@types/core/worker/ScanbotSDK.Core.d.ts +21 -21
- package/@types/core-types.d.ts +10 -12
- package/@types/cropping-view.d.ts +8 -4
- package/@types/document-data-extractor-view.d.ts +22 -0
- package/@types/document-scanner-view.d.ts +16 -7
- package/@types/index.d.ts +36 -23
- package/@types/interfaces/i-cropping-view-handle.d.ts +2 -0
- package/@types/interfaces/i-document-data-extractor-scanner-handle.d.ts +3 -0
- package/@types/interfaces/{i-text-data-scanner-handle.d.ts → i-text-pattern-scanner-handle.d.ts} +1 -1
- package/@types/model/configuration/barcode-scanner-configuration.d.ts +1 -0
- package/@types/model/configuration/cropping-view-configuration.d.ts +1 -0
- package/@types/model/configuration/document-data-extractor-configuration.d.ts +9 -0
- package/@types/model/configuration/document-scanner-configuration.d.ts +8 -4
- package/@types/model/configuration/initialization-options.d.ts +1 -2
- package/@types/model/configuration/mrz-scanner-configuration.d.ts +4 -4
- package/@types/model/configuration/selection-overlay-configuration.d.ts +5 -0
- package/@types/model/configuration/text-pattern-scanner-configuration.d.ts +9 -0
- package/@types/model/configuration/view-finder-scanner-configuration.d.ts +2 -1
- package/@types/model/configuration/vin-scanner-configuration.d.ts +3 -3
- package/@types/scanbot-sdk.d.ts +269 -205
- package/@types/scanner-view.d.ts +2 -0
- package/@types/service/document-data-extractor.d.ts +13 -0
- package/@types/service/ocr-engine.d.ts +3 -3
- package/@types/service/pdf-generator.d.ts +6 -1
- package/@types/service/simple-mrz-recognizer.d.ts +4 -4
- package/@types/service/storage/indexed-db/sb-indexed-db.d.ts +60 -0
- package/@types/service/storage/local/sb-local-storage.d.ts +11 -0
- package/@types/service/storage/sb-storage.d.ts +33 -0
- package/@types/service/storage/utils/create-worker-vite.d.ts +1 -0
- package/@types/service/storage/utils/create-worker.d.ts +1 -0
- package/@types/service/storage/utils/sb-storage-error.d.ts +5 -0
- package/@types/service/storage/utils/sb-storage-utils.d.ts +10 -0
- package/@types/service/text-pattern-scanner.d.ts +14 -0
- package/@types/service/tiff-generator.d.ts +7 -4
- package/@types/{text-data-scanner-view.d.ts → text-pattern-scanner-view.d.ts} +9 -9
- package/@types/ui2/{controllers → barcode/controllers}/barcode-scanner-controller.d.ts +1 -1
- package/@types/ui2/{controllers → barcode/controllers}/multiple-scanning-mode-controller.d.ts +1 -1
- package/@types/ui2/{controllers → barcode/controllers}/single-scanning-mode-controller.d.ts +1 -1
- package/@types/ui2/{model → barcode/model}/counted-barcodes.d.ts +2 -2
- package/@types/ui2/{utils → barcode/utils}/barcode-mapper/expected-barcode-mapper.d.ts +2 -2
- package/@types/ui2/{utils → barcode/utils}/barcode-mapper/i-barcode-mapper.d.ts +2 -2
- package/@types/ui2/{utils → barcode/utils}/barcode-mapper/user-barcode-mapper.d.ts +1 -1
- package/@types/ui2/{utils → barcode/utils}/camera-config.d.ts +2 -2
- package/@types/ui2/{utils → barcode/utils}/styled-badge.d.ts +3 -1
- package/@types/ui2/{utils → barcode/utils}/styled-box.d.ts +1 -1
- package/@types/ui2/barcode/utils/styled-button.d.ts +14 -0
- package/@types/ui2/{utils → barcode/utils}/useScanningViewSize.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/action-button/action-button-container.d.ts +3 -3
- package/@types/ui2/{views → barcode/views}/action-button/action-button.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/ar/ar-badge.d.ts +2 -2
- package/@types/ui2/{views → barcode/views}/ar/ar-overlay-barcode-info.d.ts +2 -2
- package/@types/ui2/{views → barcode/views}/ar/vertical-positions.d.ts +2 -2
- package/@types/ui2/{views → barcode/views}/barcode-info/barcode-info.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/barcode-scanner.d.ts +8 -8
- package/@types/ui2/{views → barcode/views}/camera-permission-denied.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/dialog/barcode-info-dialog.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/dialog/barcode-mapping-error-dialog.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/dialog/base/confirmation-dialog.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/dialog/base/styled-dialog.d.ts +1 -0
- package/@types/ui2/{views → barcode/views}/dialog/count-edit-dialog.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/dialog/find-and-pick-submit-dialog.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/barcode-result-drawer.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/barcode-result-sidebar.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/counting-button.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/hooks/use-drag-listener.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-drawer-empty-state.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-list-item.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-list.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/subviews/drawer-header-content.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/subviews/swipe-underlay.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/form/dialog-button.d.ts +4 -1
- package/@types/ui2/{views → barcode/views}/navigation-bar.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/styled-text.d.ts +2 -1
- package/@types/ui2/configuration/DocumentQualityAnalyzerTypes.d.ts +1 -0
- package/@types/ui2/configuration/DocumentScannerTypes.d.ts +1 -0
- package/@types/ui2/configuration/Geometry.d.ts +1 -1
- package/@types/ui2/configuration/ParametricFilters.d.ts +1 -0
- package/@types/ui2/configuration/{ActionBarConfiguration.d.ts → barcode/ActionBarConfiguration.d.ts} +1 -1
- package/@types/ui2/configuration/{ArTrackingOverlayConfiguration.d.ts → barcode/ArTrackingOverlayConfiguration.d.ts} +1 -1
- package/@types/ui2/configuration/{BarcodeInfoMapping.d.ts → barcode/BarcodeInfoMapping.d.ts} +1 -1
- package/@types/ui2/configuration/{BarcodeRecognizerConfiguration.d.ts → barcode/BarcodeRecognizerConfiguration.d.ts} +3 -3
- package/@types/ui2/configuration/{BarcodeScannerConfiguration.d.ts → barcode/BarcodeScannerConfiguration.d.ts} +1 -1
- package/@types/ui2/configuration/barcode/BarcodeScannerTypes.d.ts +2 -0
- package/@types/ui2/configuration/{BarcodeScannerUIResult.d.ts → barcode/BarcodeScannerUIResult.d.ts} +1 -1
- package/@types/ui2/configuration/{BarcodeTextLocalization.d.ts → barcode/BarcodeTextLocalization.d.ts} +1 -1
- package/@types/ui2/configuration/barcode/BarcodeTypes.d.ts +1 -0
- package/@types/ui2/configuration/{CameraConfiguration.d.ts → barcode/CameraConfiguration.d.ts} +1 -1
- package/@types/ui2/configuration/{CameraPermission.d.ts → barcode/CameraPermission.d.ts} +1 -1
- package/@types/ui2/configuration/{Common.d.ts → barcode/Common.d.ts} +1 -1
- package/@types/ui2/configuration/barcode/CommonFieldType.d.ts +1 -0
- package/@types/ui2/configuration/{FindAndPickScanningModeUseCase.d.ts → barcode/FindAndPickScanningModeUseCase.d.ts} +1 -1
- package/@types/ui2/configuration/barcode/GenericDocument.d.ts +1 -0
- package/@types/ui2/configuration/barcode/Geometry.d.ts +1 -0
- package/@types/ui2/configuration/{MultipleScanningModeUseCase.d.ts → barcode/MultipleScanningModeUseCase.d.ts} +1 -1
- package/@types/ui2/configuration/{ScanbotAlertDialog.d.ts → barcode/ScanbotAlertDialog.d.ts} +1 -1
- package/@types/ui2/configuration/{SingleScanningModeUseCase.d.ts → barcode/SingleScanningModeUseCase.d.ts} +1 -1
- package/@types/ui2/configuration/{TopBarConfiguration.d.ts → barcode/TopBarConfiguration.d.ts} +1 -1
- package/@types/ui2/configuration/{UserGuidanceConfiguration.d.ts → barcode/UserGuidanceConfiguration.d.ts} +1 -1
- package/@types/ui2/configuration/{ViewFinderConfiguration.d.ts → barcode/ViewFinderConfiguration.d.ts} +1 -1
- package/@types/ui2/configuration/common/ActionBarConfiguration.d.ts +42 -0
- package/@types/ui2/configuration/common/CameraConfiguration.d.ts +60 -0
- package/@types/ui2/configuration/common/CameraPermission.d.ts +62 -0
- package/@types/ui2/configuration/common/Common.d.ts +467 -0
- package/@types/ui2/configuration/common/NavigationBarConfiguration.d.ts +11 -0
- package/@types/ui2/configuration/common/ScanbotAlertDialog.d.ts +74 -0
- package/@types/ui2/configuration/common/TopBarConfiguration.d.ts +55 -0
- package/@types/ui2/configuration/common/UserGuidanceConfiguration.d.ts +64 -0
- package/@types/ui2/configuration/common/ViewFinderConfiguration.d.ts +93 -0
- package/@types/ui2/configuration/document/AcknowledgementScreenConfiguration.d.ts +125 -0
- package/@types/ui2/configuration/document/CameraScreenConfiguration.d.ts +659 -0
- package/@types/ui2/configuration/document/CroppingConfiguration.d.ts +1 -0
- package/@types/ui2/configuration/document/CroppingResult.d.ts +1 -0
- package/@types/ui2/configuration/document/CroppingScreenConfiguration.d.ts +141 -0
- package/@types/ui2/configuration/document/CroppingTextLocalization.d.ts +1 -0
- package/@types/ui2/configuration/document/DocumentScannerCameraConfiguration.d.ts +60 -0
- package/@types/ui2/configuration/document/DocumentScannerGuidanceVisibility.d.ts +11 -0
- package/@types/ui2/configuration/document/DocumentScannerOutputSettings.d.ts +38 -0
- package/@types/ui2/configuration/document/DocumentScannerScreens.d.ts +26 -0
- package/@types/ui2/configuration/document/DocumentScannerTextLocalization.d.ts +608 -0
- package/@types/ui2/configuration/document/DocumentScannerUIResult.d.ts +5 -0
- package/@types/ui2/configuration/document/DocumentScannerUserGuidance.d.ts +99 -0
- package/@types/ui2/configuration/document/DocumentScanningFlow.d.ts +91 -0
- package/@types/ui2/configuration/document/IntroductionScreenConfiguration.d.ts +188 -0
- package/@types/ui2/configuration/document/ReorderPagesScreenConfiguration.d.ts +1 -0
- package/@types/ui2/configuration/document/ReviewScreenConfiguration.d.ts +372 -0
- package/@types/ui2/configuration/native/DocumentData.d.ts +37 -0
- package/@types/ui2/configuration/native/PageData.d.ts +58 -0
- package/@types/ui2/configuration/native/PageImageSource.d.ts +13 -0
- package/@types/ui2/configuration/utils.d.ts +8 -0
- package/@types/ui2/configuration.d.ts +46 -21
- package/@types/ui2/document/assets/auto-capture-disabled-icon.d.ts +4 -0
- package/@types/ui2/document/assets/auto-capture-icon.d.ts +4 -0
- package/@types/ui2/document/assets/captured-circle-icon.d.ts +5 -0
- package/@types/ui2/document/assets/delete-icon.d.ts +4 -0
- package/@types/ui2/document/assets/file-add-icon.d.ts +4 -0
- package/@types/ui2/document/assets/image-error-icon.d.ts +5 -0
- package/@types/ui2/document/assets/image-retake.d.ts +4 -0
- package/@types/ui2/document/assets/loading-spinner-icon.d.ts +2 -0
- package/@types/ui2/document/assets/shutter-button-auto-icon.d.ts +4 -0
- package/@types/ui2/document/assets/shutter-button-manual-icon.d.ts +5 -0
- package/@types/ui2/document/assets/shutter-button-spinner-icon.d.ts +4 -0
- package/@types/ui2/document/assets/the-hand.d.ts +10 -0
- package/@types/ui2/document/controller/acknowledgment-screen-controller.d.ts +16 -0
- package/@types/ui2/document/controller/camera-screen-controller.d.ts +20 -0
- package/@types/ui2/document/controller/cropping-screen-controller.d.ts +14 -0
- package/@types/ui2/document/controller/document-scanner-controller.d.ts +14 -0
- package/@types/ui2/document/controller/review-screen-controller.d.ts +18 -0
- package/@types/ui2/document/controller/zoom-screen-controller.d.ts +11 -0
- package/@types/ui2/document/model/document-detection-ui-result.d.ts +8 -0
- package/@types/ui2/document/model/sb-document.d.ts +62 -0
- package/@types/ui2/document/model/sb-page.d.ts +38 -0
- package/@types/ui2/document/model/utils/sb-document-data.d.ts +10 -0
- package/@types/ui2/document/model/utils/sb-page-data.d.ts +7 -0
- package/@types/ui2/document/utils/SBThemeProvider.d.ts +4 -0
- package/@types/ui2/document/utils/button-accessibility-styling.d.ts +40 -0
- package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-confirmation.d.ts +19 -0
- package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-fade.d.ts +9 -0
- package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-image.d.ts +7 -0
- package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-screen-bottom-bar.d.ts +12 -0
- package/@types/ui2/document/views/acknowledgement-screen/quality-insufficient-banner.d.ts +10 -0
- package/@types/ui2/document/views/camera-screen/bottom-bar.d.ts +33 -0
- package/@types/ui2/document/views/camera-screen/camera-permission-denied.d.ts +9 -0
- package/@types/ui2/document/views/camera-screen/camera-select-dropdown.d.ts +14 -0
- package/@types/ui2/document/views/camera-screen/introduction/assets/CheckIcon.d.ts +3 -0
- package/@types/ui2/document/views/camera-screen/introduction/assets/CreditCardsIcon.d.ts +3 -0
- package/@types/ui2/document/views/camera-screen/introduction/assets/DocumentsIcon.d.ts +3 -0
- package/@types/ui2/document/views/camera-screen/introduction/assets/IdCardsIcon.d.ts +3 -0
- package/@types/ui2/document/views/camera-screen/introduction/assets/MedicalCertsIcon.d.ts +3 -0
- package/@types/ui2/document/views/camera-screen/introduction/assets/Props.d.ts +3 -0
- package/@types/ui2/document/views/camera-screen/introduction/assets/ReceiptsIcon.d.ts +3 -0
- package/@types/ui2/document/views/camera-screen/introduction/introduction-image.d.ts +5 -0
- package/@types/ui2/document/views/camera-screen/introduction/introduction.d.ts +9 -0
- package/@types/ui2/document/views/camera-screen/preview-button.d.ts +11 -0
- package/@types/ui2/document/views/camera-screen/scanner-box.d.ts +21 -0
- package/@types/ui2/document/views/camera-screen/shutter-button.d.ts +10 -0
- package/@types/ui2/document/views/camera-screen/top-bar.d.ts +11 -0
- package/@types/ui2/document/views/camera-screen/top-user-guidance.d.ts +8 -0
- package/@types/ui2/document/views/camera-screen/use-document-scanner-view.d.ts +31 -0
- package/@types/ui2/document/views/camera-screen/user-guidance-text.d.ts +10 -0
- package/@types/ui2/document/views/common/alert-dialog.d.ts +11 -0
- package/@types/ui2/document/views/common/bar-button.d.ts +17 -0
- package/@types/ui2/document/views/common/common-top-bar.d.ts +12 -0
- package/@types/ui2/document/views/common/loading-spinner.d.ts +4 -0
- package/@types/ui2/document/views/common/styled-menu-item.d.ts +12 -0
- package/@types/ui2/document/views/common/styled-menu.d.ts +17 -0
- package/@types/ui2/document/views/review-screen/bottom-bar.d.ts +15 -0
- package/@types/ui2/document/views/review-screen/carousel-page.d.ts +13 -0
- package/@types/ui2/document/views/review-screen/carousel.d.ts +14 -0
- package/@types/ui2/document/views/review-screen/page-counter-and-zoom-button.d.ts +10 -0
- package/@types/ui2/document/views/review-screen/scroller-navigation-button.d.ts +11 -0
- package/@types/ui2/document/views/review-screen/top-bar.d.ts +11 -0
- package/@types/ui2/scanbot-sdk-ui.d.ts +4 -0
- package/@types/ui2/scanbot-ui-library.d.ts +7 -4
- package/@types/ui2/utils/text-styling.d.ts +8 -0
- package/@types/ui2/utils/use-time-since-first-render-has-passed.d.ts +1 -0
- package/@types/utils/constants.d.ts +0 -2
- package/@types/utils/dto/Frame.d.ts +2 -0
- package/@types/utils/image-utils.d.ts +1 -1
- package/@types/utils/parse-color.d.ts +9 -0
- package/@types/utils/react/useIsMounted.d.ts +2 -0
- package/@types/utils/react/usePromise.d.ts +4 -3
- package/@types/utils/supported-image-mime-types.d.ts +2 -0
- package/@types/utils/view-utils.d.ts +1 -1
- package/@types/view/barcode-polygon/animated-barcode-selection-overlay.d.ts +8 -2
- package/@types/view/polygon/document-polygon.d.ts +1 -0
- package/@types/worker/worker-bridge.d.ts +498 -374
- package/Libraries.txt +1510 -36
- package/bundle/ScanbotSDK.min.js +4 -4
- package/bundle/ScanbotSDK.ui2.min.js +18 -18
- package/bundle/ScanbotSDK.ui2.min.js.LICENSE.txt +10 -0
- 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 +3 -3
- package/@types/core/bridge/compiled/CheckRecognizerTypes.d.ts +0 -29
- package/@types/core/bridge/compiled/FrameUtilities.d.ts +0 -18
- package/@types/core/bridge/compiled/GDRTypes.d.ts +0 -38
- package/@types/core/bridge/compiled/GenericDocumentRecognizerConfigs.d.ts +0 -150
- package/@types/core/bridge/compiled/GenericDocumentRecognizerTypes.d.ts +0 -83
- package/@types/core/bridge/compiled/GenericDocumentTypes.d.ts +0 -15
- package/@types/core/bridge/compiled/MRZTypes.d.ts +0 -52
- package/@types/generic-document-recognizer-view.d.ts +0 -22
- package/@types/interfaces/i-generic-document-recognizer-scanner-handle.d.ts +0 -3
- package/@types/model/configuration/generic-document-recognizer-configuration.d.ts +0 -9
- package/@types/model/configuration/text-data-scanner-configuration.d.ts +0 -9
- package/@types/service/generic-document-recognizer.d.ts +0 -13
- package/@types/service/text-data-recognizer.d.ts +0 -14
- package/@types/ui2/configuration/BarcodeScannerTypes.d.ts +0 -1
- package/@types/ui2/configuration/BarcodeTypes.d.ts +0 -1
- package/@types/ui2/configuration/CommonFieldType.d.ts +0 -1
- package/@types/ui2/configuration/GenericDocument.d.ts +0 -1
- package/@types/ui2/utils/styled-button.d.ts +0 -7
- /package/@types/core/bridge/compiled/{OcrElements.d.ts → OcrTypes.d.ts} +0 -0
- /package/@types/ui2/{utils → barcode/utils}/find-and-pick.ts/expected-barcode-counter.d.ts +0 -0
- /package/@types/ui2/{utils → barcode/utils}/styled-input.d.ts +0 -0
- /package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-drawer-header.d.ts +0 -0
- /package/@types/ui2/configuration/{BarcodeItemMapper.d.ts → barcode/BarcodeItemMapper.d.ts} +0 -0
- /package/@types/ui2/configuration/{BarcodeUseCase.d.ts → barcode/BarcodeUseCase.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scanbot-web-sdk",
|
|
3
3
|
"title": "Web Scan SDK",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "7.0.0-dev.1",
|
|
5
5
|
"description": "Scanbot Web Document and Barcode Scanner SDK",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"barcode",
|
|
@@ -70,7 +70,6 @@
|
|
|
70
70
|
}
|
|
71
71
|
],
|
|
72
72
|
"devDependencies": {},
|
|
73
|
-
"dependencies": {},
|
|
74
73
|
"files": [
|
|
75
74
|
"bundle/*",
|
|
76
75
|
"webpack/",
|
|
@@ -81,5 +80,6 @@
|
|
|
81
80
|
"README.md",
|
|
82
81
|
"Libraries.txt",
|
|
83
82
|
"LICENSE"
|
|
84
|
-
]
|
|
83
|
+
],
|
|
84
|
+
"dependencies": {}
|
|
85
85
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
|
-
import { GenericDocument } from "./GenericDocument";
|
|
3
|
-
/**
|
|
4
|
-
Check Recognizer Status
|
|
5
|
-
|
|
6
|
-
- `SUCCESS`:
|
|
7
|
-
Recognition successful
|
|
8
|
-
- `VALIDATION_FAILED`:
|
|
9
|
-
A check was recognized, but validation failed, indication a standard violation, unsupported standard, or recognition error
|
|
10
|
-
- `FAIL`:
|
|
11
|
-
No check was recognized
|
|
12
|
-
*/
|
|
13
|
-
export type RecognitionStatus = "SUCCESS" | "VALIDATION_FAILED" | "FAIL";
|
|
14
|
-
/**
|
|
15
|
-
The result of check recognition
|
|
16
|
-
*/
|
|
17
|
-
export declare class RecognitionResult extends PartiallyConstructible {
|
|
18
|
-
/**
|
|
19
|
-
Check recognizer status
|
|
20
|
-
@defaultValue "FAIL";
|
|
21
|
-
*/
|
|
22
|
-
readonly status: RecognitionStatus;
|
|
23
|
-
/**
|
|
24
|
-
Generic document containing check data. Not present, if status is FAIL.
|
|
25
|
-
*/
|
|
26
|
-
readonly check: GenericDocument | null;
|
|
27
|
-
/** @param source {@displayType `DeepPartial<RecognitionResult>`} */
|
|
28
|
-
constructor(source?: DeepPartial<RecognitionResult>);
|
|
29
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
|
-
/**
|
|
3
|
-
Configure the frame accumulation process
|
|
4
|
-
*/
|
|
5
|
-
export declare class AccumulatedResultsVerifierConfig extends PartiallyConstructible {
|
|
6
|
-
/**
|
|
7
|
-
Maximum number of accumulated frames to inspect to verify a scan result
|
|
8
|
-
@defaultValue 3;
|
|
9
|
-
*/
|
|
10
|
-
maximumNumberOfAccumulatedFrames: number;
|
|
11
|
-
/**
|
|
12
|
-
Minimum number of accumulated frames that have an equal result in order for the result to be considered verified
|
|
13
|
-
@defaultValue 2;
|
|
14
|
-
*/
|
|
15
|
-
minimumNumberOfRequiredFramesWithEqualRecognitionResult: number;
|
|
16
|
-
/** @param source {@displayType `DeepPartial<AccumulatedResultsVerifierConfig>`} */
|
|
17
|
-
constructor(source?: DeepPartial<AccumulatedResultsVerifierConfig>);
|
|
18
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
|
-
/**
|
|
3
|
-
Enumerates generic document formats.
|
|
4
|
-
|
|
5
|
-
- `DeIdCardFront`:
|
|
6
|
-
DeIdCardFront
|
|
7
|
-
- `DeIdCardBack`:
|
|
8
|
-
DeIdCardBack
|
|
9
|
-
- `DePassport`:
|
|
10
|
-
DePassport
|
|
11
|
-
- `DeDriverLicenseFront`:
|
|
12
|
-
DeDriverLicenseFront
|
|
13
|
-
- `DeDriverLicenseBack`:
|
|
14
|
-
DeDriverLicenseBack
|
|
15
|
-
- `DeResidencePermitFront`:
|
|
16
|
-
DeResidencePermitFront
|
|
17
|
-
- `DeResidencePermitBack`:
|
|
18
|
-
DeResidencePermitBack
|
|
19
|
-
- `EuropeanHealthInsuranceCard`:
|
|
20
|
-
EuropeanHealthInsuranceCard
|
|
21
|
-
- `DeHealthInsuranceCardFront`:
|
|
22
|
-
DeHealthInsuranceCardFront
|
|
23
|
-
*/
|
|
24
|
-
export type DocumentType = "DeIdCardFront" | "DeIdCardBack" | "DePassport" | "DeDriverLicenseFront" | "DeDriverLicenseBack" | "DeResidencePermitFront" | "DeResidencePermitBack" | "EuropeanHealthInsuranceCard" | "DeHealthInsuranceCardFront";
|
|
25
|
-
/**
|
|
26
|
-
Lists of generic document formats to decode
|
|
27
|
-
*/
|
|
28
|
-
export declare class DocumentTypes extends PartiallyConstructible {
|
|
29
|
-
/** @param source {@displayType `DeepPartial<DocumentTypes>`} */
|
|
30
|
-
constructor(source?: DeepPartial<DocumentTypes>);
|
|
31
|
-
}
|
|
32
|
-
export declare namespace DocumentTypes {
|
|
33
|
-
/**
|
|
34
|
-
List of all generic document formats
|
|
35
|
-
@defaultValue ["DeIdCardFront", "DeIdCardBack", "DePassport", "DeDriverLicenseFront", "DeDriverLicenseBack", "DeResidencePermitFront", "DeResidencePermitBack", "EuropeanHealthInsuranceCard", "DeHealthInsuranceCardFront"];
|
|
36
|
-
*/
|
|
37
|
-
const all: DocumentType[];
|
|
38
|
-
}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
|
-
import { DocumentType } from "./MRZTypes";
|
|
3
|
-
/**
|
|
4
|
-
Base class for all generic document configurations.
|
|
5
|
-
*/
|
|
6
|
-
export type GDRConfig = DateValidationConfig | EuropeanHealthInsuranceCardConfig | MRZFallbackConfig | GDRGroupConfig;
|
|
7
|
-
/** @internal */
|
|
8
|
-
export declare namespace GDRConfig {
|
|
9
|
-
/** @internal */
|
|
10
|
-
function From(source: {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}): GDRConfig;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
Date validation configuration.
|
|
16
|
-
This configuration does not enable the scanning of any document types by itself.
|
|
17
|
-
Add to recognizer configuration to require date validation checks for specific document types.
|
|
18
|
-
|
|
19
|
-
*/
|
|
20
|
-
export declare class DateValidationConfig extends PartiallyConstructible {
|
|
21
|
-
readonly _type: "DateValidationConfig";
|
|
22
|
-
/**
|
|
23
|
-
Minimum year that is considered valid.
|
|
24
|
-
@defaultValue 0;
|
|
25
|
-
*/
|
|
26
|
-
readonly minYear: number;
|
|
27
|
-
/**
|
|
28
|
-
Maximum year that is considered valid.
|
|
29
|
-
@defaultValue 2999;
|
|
30
|
-
*/
|
|
31
|
-
readonly maxYear: number;
|
|
32
|
-
/**
|
|
33
|
-
Name, FullName, or NormalizedName of field type for which the year bounds should be applied.
|
|
34
|
-
*/
|
|
35
|
-
readonly fieldTypeName: string;
|
|
36
|
-
/** @param source {@displayType `DeepPartial<DateValidationConfig>`} */
|
|
37
|
-
constructor(source?: DeepPartial<DateValidationConfig>);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
Health insurance card issuing country
|
|
41
|
-
|
|
42
|
-
- `AUSTRIA`:
|
|
43
|
-
Austria (Validation on the personal identification number is performed as described in "site:www.sozialversicherung.at Was ist die Versicherungsnummer?")
|
|
44
|
-
- `BELGIUM`:
|
|
45
|
-
Belgium
|
|
46
|
-
- `BULGARIA`:
|
|
47
|
-
Bulgaria
|
|
48
|
-
- `CROATIA`:
|
|
49
|
-
Croatia
|
|
50
|
-
- `CYPRUS`:
|
|
51
|
-
Cyprus
|
|
52
|
-
- `CZECH_REPUBLIC`:
|
|
53
|
-
Czech Republic
|
|
54
|
-
- `DENMARK`:
|
|
55
|
-
Denmark
|
|
56
|
-
- `ESTONIA`:
|
|
57
|
-
Estonia
|
|
58
|
-
- `FINLAND`:
|
|
59
|
-
Finland
|
|
60
|
-
- `FRANCE`:
|
|
61
|
-
France
|
|
62
|
-
- `GERMANY`:
|
|
63
|
-
Germany (Validation performed according to "Spezifikation für Musterkarten und Testkarten (eGK, HBA, SMC), Anhang A" and "GS1 Struktur der Kenn-Nummer (ICCSN) der elektronischen Gesundheitskarte")
|
|
64
|
-
- `GREECE`:
|
|
65
|
-
Greece
|
|
66
|
-
- `HUNGARY`:
|
|
67
|
-
Hungary
|
|
68
|
-
- `IRELAND`:
|
|
69
|
-
Ireland
|
|
70
|
-
- `ITALY`:
|
|
71
|
-
Italy
|
|
72
|
-
- `LATVIA`:
|
|
73
|
-
Latvia
|
|
74
|
-
- `LITHUANIA`:
|
|
75
|
-
Lithuania
|
|
76
|
-
- `LUXEMBOURG`:
|
|
77
|
-
Luxembourg
|
|
78
|
-
- `MALTA`:
|
|
79
|
-
Malta
|
|
80
|
-
- `NETHERLANDS`:
|
|
81
|
-
Netherlands
|
|
82
|
-
- `POLAND`:
|
|
83
|
-
Poland
|
|
84
|
-
- `PORTUGAL`:
|
|
85
|
-
Portugal
|
|
86
|
-
- `ROMANIA`:
|
|
87
|
-
Romania
|
|
88
|
-
- `SLOVAKIA`:
|
|
89
|
-
Slovakia
|
|
90
|
-
- `SLOVENIA`:
|
|
91
|
-
Slovenia
|
|
92
|
-
- `SPAIN`:
|
|
93
|
-
Spain
|
|
94
|
-
- `SWEDEN`:
|
|
95
|
-
Sweden
|
|
96
|
-
- `SWITZERLAND`:
|
|
97
|
-
Switzerland
|
|
98
|
-
*/
|
|
99
|
-
export type EHICIssuingCountry = "AUSTRIA" | "BELGIUM" | "BULGARIA" | "CROATIA" | "CYPRUS" | "CZECH_REPUBLIC" | "DENMARK" | "ESTONIA" | "FINLAND" | "FRANCE" | "GERMANY" | "GREECE" | "HUNGARY" | "IRELAND" | "ITALY" | "LATVIA" | "LITHUANIA" | "LUXEMBOURG" | "MALTA" | "NETHERLANDS" | "POLAND" | "PORTUGAL" | "ROMANIA" | "SLOVAKIA" | "SLOVENIA" | "SPAIN" | "SWEDEN" | "SWITZERLAND";
|
|
100
|
-
/**
|
|
101
|
-
EHIC configuration. Add to recognizer configuration to scan EHIC.
|
|
102
|
-
*/
|
|
103
|
-
export declare class EuropeanHealthInsuranceCardConfig extends PartiallyConstructible {
|
|
104
|
-
readonly _type: "EuropeanHealthInsuranceCardConfig";
|
|
105
|
-
/**
|
|
106
|
-
If an expected country is selected, validation rules for the given country are used, a
|
|
107
|
-
and if the expected country cannot be inferred or the inferred country doesn't match the given country,
|
|
108
|
-
the result of recognize() will be IncompleteValidation.
|
|
109
|
-
@defaultValue null;
|
|
110
|
-
*/
|
|
111
|
-
readonly expectedCountry: EHICIssuingCountry | null;
|
|
112
|
-
/** @param source {@displayType `DeepPartial<EuropeanHealthInsuranceCardConfig>`} */
|
|
113
|
-
constructor(source?: DeepPartial<EuropeanHealthInsuranceCardConfig>);
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
MRZ fallback configuration.
|
|
117
|
-
This configuration does not enable the scanning of any document types by itself.
|
|
118
|
-
Add to recognizer configuration to enable recognizing the MRZ only, specifically for documents that are otherwise not supported.
|
|
119
|
-
Note that this may enable scanning of documents that were not enabled through the accepted document types.
|
|
120
|
-
|
|
121
|
-
*/
|
|
122
|
-
export declare class MRZFallbackConfig extends PartiallyConstructible {
|
|
123
|
-
readonly _type: "MRZFallbackConfig";
|
|
124
|
-
/**
|
|
125
|
-
List of ISO 3166-1 alpha-3 country codes for which MRZ fallback is enabled. (e.g. "DEU" for Germany)
|
|
126
|
-
@defaultValue [];
|
|
127
|
-
*/
|
|
128
|
-
readonly acceptedCountries: string[];
|
|
129
|
-
/**
|
|
130
|
-
List of MRZ document formats for which MRZ fallback is enabled.
|
|
131
|
-
@defaultValue [];
|
|
132
|
-
*/
|
|
133
|
-
readonly acceptedMRZTypes: DocumentType[];
|
|
134
|
-
/** @param source {@displayType `DeepPartial<MRZFallbackConfig>`} */
|
|
135
|
-
constructor(source?: DeepPartial<MRZFallbackConfig>);
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
Convenience configuration for enabling the scanning of multiple generic document types with a common configuration.
|
|
139
|
-
Add to recognizer configuration to enable the scanning of multiple generic documents.
|
|
140
|
-
|
|
141
|
-
*/
|
|
142
|
-
export declare class GDRGroupConfig extends PartiallyConstructible {
|
|
143
|
-
readonly _type: "GDRGroupConfig";
|
|
144
|
-
/**
|
|
145
|
-
List of generic document formats to scan. By default, the list is empty.
|
|
146
|
-
*/
|
|
147
|
-
readonly acceptedDocumentTypes: string[];
|
|
148
|
-
/** @param source {@displayType `DeepPartial<GDRGroupConfig>`} */
|
|
149
|
-
constructor(source?: DeepPartial<GDRGroupConfig>);
|
|
150
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
|
-
import { GDRConfig } from "./GenericDocumentRecognizerConfigs";
|
|
3
|
-
import { GenericDocument } from "./GenericDocument";
|
|
4
|
-
import { Point } from "../common";
|
|
5
|
-
import { ResultAccumulationConfig } from "./FrameAccumulationTypes";
|
|
6
|
-
/**
|
|
7
|
-
The status of the recognition process
|
|
8
|
-
|
|
9
|
-
- `SUCCESS`:
|
|
10
|
-
The document was recognized successfully
|
|
11
|
-
- `ERROR_NOTHING_FOUND`:
|
|
12
|
-
No document was detected
|
|
13
|
-
- `ERROR_BAD_CROP`:
|
|
14
|
-
A document was detected, but it was at an angle/distance that was too large
|
|
15
|
-
- `ERROR_UNKNOWN_DOCUMENT`:
|
|
16
|
-
A document was detected, but it was not recognized as a supported document
|
|
17
|
-
- `ERROR_UNACCEPTABLE_DOCUMENT`:
|
|
18
|
-
A document was detected as a supported document, but it was not part of the accepted documents
|
|
19
|
-
- `INCOMPLETE_VALIDATION`:
|
|
20
|
-
All fields were recognized, but some of them failed validation
|
|
21
|
-
*/
|
|
22
|
-
export type RecognitionStatus = "SUCCESS" | "ERROR_NOTHING_FOUND" | "ERROR_BAD_CROP" | "ERROR_UNKNOWN_DOCUMENT" | "ERROR_UNACCEPTABLE_DOCUMENT" | "INCOMPLETE_VALIDATION";
|
|
23
|
-
/**
|
|
24
|
-
Contains the result of running the generic document recognizer
|
|
25
|
-
*/
|
|
26
|
-
export declare class RecognitionResult extends PartiallyConstructible {
|
|
27
|
-
/**
|
|
28
|
-
The status of the recognition process
|
|
29
|
-
*/
|
|
30
|
-
readonly status: RecognitionStatus;
|
|
31
|
-
/**
|
|
32
|
-
The recognized document
|
|
33
|
-
*/
|
|
34
|
-
readonly document: GenericDocument | null;
|
|
35
|
-
/**
|
|
36
|
-
Coordinates of the detected document in the input image (clockwise from top-left)
|
|
37
|
-
*/
|
|
38
|
-
readonly quad: Point[] | null;
|
|
39
|
-
/** @param source {@displayType `DeepPartial<RecognitionResult>`} */
|
|
40
|
-
constructor(source?: DeepPartial<RecognitionResult>);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
The recognition mode
|
|
44
|
-
|
|
45
|
-
- `LIVE`:
|
|
46
|
-
The recognizer will attempt to accumulate results over multiple frames.
|
|
47
|
-
- `SINGLE_SHOT`:
|
|
48
|
-
The recognizer will only use the current frame and will spend additional time to ensure the best possible result.
|
|
49
|
-
*/
|
|
50
|
-
export type RecognitionMode = "LIVE" | "SINGLE_SHOT";
|
|
51
|
-
/**
|
|
52
|
-
Parameters for the recognition process
|
|
53
|
-
*/
|
|
54
|
-
export declare class RecognitionParameters extends PartiallyConstructible {
|
|
55
|
-
/**
|
|
56
|
-
The recognition mode
|
|
57
|
-
@defaultValue "LIVE";
|
|
58
|
-
*/
|
|
59
|
-
mode: RecognitionMode;
|
|
60
|
-
/** @param source {@displayType `DeepPartial<RecognitionParameters>`} */
|
|
61
|
-
constructor(source?: DeepPartial<RecognitionParameters>);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
Configuration for the generic document recognizer
|
|
65
|
-
*/
|
|
66
|
-
export declare class GenericDocumentRecognizerParameters extends PartiallyConstructible {
|
|
67
|
-
/**
|
|
68
|
-
Configuration for how to accumulate results
|
|
69
|
-
@defaultValue new ResultAccumulationConfig({});
|
|
70
|
-
*/
|
|
71
|
-
resultAccumulationConfig: ResultAccumulationConfig;
|
|
72
|
-
/**
|
|
73
|
-
Normalized names of the fields to exclude from the result
|
|
74
|
-
@defaultValue [];
|
|
75
|
-
*/
|
|
76
|
-
fieldExcludeList: string[];
|
|
77
|
-
/**
|
|
78
|
-
Options for generic document decoding
|
|
79
|
-
*/
|
|
80
|
-
configurations: GDRConfig[];
|
|
81
|
-
/** @param source {@displayType `DeepPartial<GenericDocumentRecognizerParameters>`} */
|
|
82
|
-
constructor(source?: DeepPartial<GenericDocumentRecognizerParameters>);
|
|
83
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
2
|
-
/**
|
|
3
|
-
Lists of generic document types to decode
|
|
4
|
-
*/
|
|
5
|
-
export declare class DocumentTypes extends PartiallyConstructible {
|
|
6
|
-
/** @param source {@displayType `DeepPartial<DocumentTypes>`} */
|
|
7
|
-
constructor(source?: DeepPartial<DocumentTypes>);
|
|
8
|
-
}
|
|
9
|
-
export declare namespace DocumentTypes {
|
|
10
|
-
/**
|
|
11
|
-
List of all generic document types
|
|
12
|
-
@defaultValue ["DeIdCardFront", "DeIdCardBack", "DePassport", "DeDriverLicenseFront", "DeDriverLicenseBack", "DeResidencePermitFront", "DeResidencePermitBack", "EuropeanHealthInsuranceCard", "DeHealthInsuranceCardFront"];
|
|
13
|
-
*/
|
|
14
|
-
const all: string[];
|
|
15
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { AccumulatedResultsVerifierConfig } from "./FrameUtilities";
|
|
2
|
-
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
3
|
-
import { GenericDocument } from "./GenericDocument";
|
|
4
|
-
/**
|
|
5
|
-
Type of document containing the MRZ
|
|
6
|
-
|
|
7
|
-
- `UNKNOWN`:
|
|
8
|
-
Undefined
|
|
9
|
-
- `CREW_MEMBER_CERTIFICATE`:
|
|
10
|
-
Crew member certificate
|
|
11
|
-
- `ID_CARD`:
|
|
12
|
-
ID card
|
|
13
|
-
- `PASSPORT`:
|
|
14
|
-
Passport
|
|
15
|
-
- `VISA`:
|
|
16
|
-
Visa card
|
|
17
|
-
- `CH_DRIVING_LICENSE`:
|
|
18
|
-
Swiss driver license
|
|
19
|
-
*/
|
|
20
|
-
export type DocumentType = "UNKNOWN" | "CREW_MEMBER_CERTIFICATE" | "ID_CARD" | "PASSPORT" | "VISA" | "CH_DRIVING_LICENSE";
|
|
21
|
-
/**
|
|
22
|
-
Container for result of MRZ recognition attempt
|
|
23
|
-
*/
|
|
24
|
-
export declare class RecognitionResult extends PartiallyConstructible {
|
|
25
|
-
/**
|
|
26
|
-
Recognition successful
|
|
27
|
-
@defaultValue false;
|
|
28
|
-
*/
|
|
29
|
-
readonly recognitionSuccessful: boolean;
|
|
30
|
-
/**
|
|
31
|
-
Raw string value of MRZ
|
|
32
|
-
*/
|
|
33
|
-
readonly rawMRZ: string;
|
|
34
|
-
/**
|
|
35
|
-
Generic document containing MRZ data
|
|
36
|
-
*/
|
|
37
|
-
readonly document: GenericDocument | null;
|
|
38
|
-
/** @param source {@displayType `DeepPartial<RecognitionResult>`} */
|
|
39
|
-
constructor(source?: DeepPartial<RecognitionResult>);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
Configuration for MRZ recognizer
|
|
43
|
-
*/
|
|
44
|
-
export declare class RecognizerConfiguration extends PartiallyConstructible {
|
|
45
|
-
/**
|
|
46
|
-
Configure the frame accumulation process
|
|
47
|
-
@defaultValue new AccumulatedResultsVerifierConfig({});
|
|
48
|
-
*/
|
|
49
|
-
accumulatedResultsVerifierConfig: AccumulatedResultsVerifierConfig;
|
|
50
|
-
/** @param source {@displayType `DeepPartial<RecognizerConfiguration>`} */
|
|
51
|
-
constructor(source?: DeepPartial<RecognizerConfiguration>);
|
|
52
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ScanbotCameraProps, ScanbotCameraState, ScannerView } from "./scanner-view";
|
|
3
|
-
import { IGenericDocumentRecognizerScannerHandle } from "./interfaces/i-generic-document-recognizer-scanner-handle";
|
|
4
|
-
import { GenericDocumentRecognizerConfiguration } from "./model/configuration/generic-document-recognizer-configuration";
|
|
5
|
-
import type ScanbotSDK from "./scanbot-sdk";
|
|
6
|
-
declare class GenericDocumentRecognizerProps extends ScanbotCameraProps {
|
|
7
|
-
configuration: GenericDocumentRecognizerConfiguration;
|
|
8
|
-
sdk: ScanbotSDK;
|
|
9
|
-
}
|
|
10
|
-
export default class GenericDocumentRecognizerView extends ScannerView<GenericDocumentRecognizerProps, ScanbotCameraState> implements IGenericDocumentRecognizerScannerHandle {
|
|
11
|
-
private configuration;
|
|
12
|
-
private genericDocumentRecognizer;
|
|
13
|
-
private enabled;
|
|
14
|
-
private finder?;
|
|
15
|
-
constructor(props: GenericDocumentRecognizerProps);
|
|
16
|
-
static create(sdk: ScanbotSDK, configuration: GenericDocumentRecognizerConfiguration): Promise<IGenericDocumentRecognizerScannerHandle>;
|
|
17
|
-
componentDidMount(): void;
|
|
18
|
-
componentWillUnmount(): Promise<void>;
|
|
19
|
-
private detect;
|
|
20
|
-
render(): React.JSX.Element;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { DeepPartial, GenericDocumentRecognizerTypes } from "../../core-types";
|
|
2
|
-
import { ViewFinderScannerConfiguration } from "./view-finder-scanner-configuration";
|
|
3
|
-
export declare class GenericDocumentRecognizerConfiguration extends ViewFinderScannerConfiguration {
|
|
4
|
-
constructor();
|
|
5
|
-
detectorParameters?: DeepPartial<GenericDocumentRecognizerTypes.GenericDocumentRecognizerParameters>;
|
|
6
|
-
/** Callback is called for every analyzed frame. */
|
|
7
|
-
onDocumentDetected?: (result: GenericDocumentRecognizerTypes.RecognitionResult) => void;
|
|
8
|
-
static fromJson(json: DeepPartial<GenericDocumentRecognizerConfiguration>): GenericDocumentRecognizerConfiguration;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ViewFinderScannerConfiguration } from "./view-finder-scanner-configuration";
|
|
2
|
-
import { GenericTextLineScannerTypes, DeepPartial } from "../../core-types";
|
|
3
|
-
export type TextDetectionCallback = (e: GenericTextLineScannerTypes.ScannerResult) => void;
|
|
4
|
-
export declare class TextDataScannerConfiguration extends ViewFinderScannerConfiguration {
|
|
5
|
-
constructor();
|
|
6
|
-
ocrConfiguration?: DeepPartial<GenericTextLineScannerTypes.ScannerConfiguration>;
|
|
7
|
-
onTextDetected?: TextDetectionCallback;
|
|
8
|
-
static fromJson(json: any): TextDataScannerConfiguration;
|
|
9
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import ScanbotSDK from '../scanbot-sdk';
|
|
2
|
-
import { ObjectId, Image, GenericDocumentRecognizerTypes, DeepPartial } from "../core-types";
|
|
3
|
-
import { ConsumeType } from "../consume-type";
|
|
4
|
-
export default class GenericDocumentRecognizer {
|
|
5
|
-
private _sdk;
|
|
6
|
-
private _recognizer;
|
|
7
|
-
/** @internal */
|
|
8
|
-
constructor(_sdk: ScanbotSDK, _recognizer: ObjectId<"GenericDocumentRecognizer">);
|
|
9
|
-
recognize<ImageType extends Image>(image: ImageType, parameters: DeepPartial<GenericDocumentRecognizerTypes.RecognitionParameters>, consumeImage?: ConsumeType): Promise<GenericDocumentRecognizerTypes.RecognitionResult & {
|
|
10
|
-
originalImage: ImageType;
|
|
11
|
-
}>;
|
|
12
|
-
release(): Promise<void>;
|
|
13
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import ScanbotSDK from '../scanbot-sdk';
|
|
2
|
-
import { ObjectId, Image, GenericTextLineScannerTypes } from '../core-types';
|
|
3
|
-
import { ConsumeType } from "../consume-type";
|
|
4
|
-
export default class TextDataScanner {
|
|
5
|
-
private _sdk;
|
|
6
|
-
private _textDataScannerToken;
|
|
7
|
-
constructor(_sdk: ScanbotSDK, _textDataScannerToken: Promise<ObjectId<"GenericTextLineScanner">>);
|
|
8
|
-
recognize<ImageType extends Image>(image: ImageType, consumeImage?: ConsumeType): Promise<GenericTextLineScannerTypes.ScannerResult & {
|
|
9
|
-
originalImage: ImageType;
|
|
10
|
-
}>;
|
|
11
|
-
cleanRecognitionQueue(): Promise<void>;
|
|
12
|
-
recognizeURL(imageURL: string): Promise<GenericTextLineScannerTypes.ScannerResult>;
|
|
13
|
-
release(): Promise<void>;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { BarcodeItem, type BarcodeScannerEngineMode } from "../../core/bridge/compiled/BarcodeScannerTypes";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { BarcodeFormat, GS1Handling, } from "../../core/bridge/compiled/BarcodeTypes";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../core/bridge/compiled/CommonFieldType";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../core/bridge/compiled/GenericDocument";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ButtonConfiguration } from "../configuration";
|
|
3
|
-
export interface ButtonProps extends ButtonConfiguration {
|
|
4
|
-
onClick: () => void;
|
|
5
|
-
icon?: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare function StyledButton(props: ButtonProps): React.JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|