react-native-scanbot-barcode-scanner-sdk 7.1.2-rc.2 → 8.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/Libraries.txt +437 -17
- package/README.md +32 -34
- package/RNScanbotBarcodeSDK.podspec +3 -2
- package/android/gradle.properties +3 -3
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkModule.kt +117 -69
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkPluginResultDelegate.kt +3 -2
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/ScanbotBarcodeScannerView.kt +76 -50
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/ScanbotBarcodeScannerViewEvents.kt +24 -1
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/ScanbotBarcodeScannerViewManager.kt +66 -55
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/models/ScanbotBarcodeScannerModels.kt +1 -1
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/extensions/Extensions.kt +19 -0
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerLegacyView.h +8 -7
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerLegacyView.m +92 -221
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerView.h +12 -8
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerView.mm +147 -317
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewController+Utils.swift +74 -0
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewController.swift +429 -0
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewManager.mm +17 -23
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewOperators.h +95 -0
- package/ios/ScanbotBarcodeSdk.m +58 -76
- package/ios/ScanbotBarcodeSdkPluginResultDelegate.m +2 -6
- package/lib/commonjs/Barcode.js +51 -0
- package/lib/commonjs/Barcode.js.map +1 -0
- package/lib/commonjs/ImageProcessor.js +24 -0
- package/lib/commonjs/ImageProcessor.js.map +1 -0
- package/lib/commonjs/Sdk.js +57 -0
- package/lib/commonjs/Sdk.js.map +1 -0
- package/lib/commonjs/{component → components}/barcode-camera-view/ScanbotBarcodeCameraView.js +14 -9
- package/lib/commonjs/components/barcode-camera-view/ScanbotBarcodeCameraView.js.map +1 -0
- package/lib/commonjs/components/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js.map +1 -0
- package/lib/commonjs/components/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js.map +1 -0
- package/lib/commonjs/{component/barcode-camera-view → components}/index.js +3 -3
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/components/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +1 -0
- package/lib/commonjs/impl/BarcodeScannerImpl.js +59 -0
- package/lib/commonjs/impl/BarcodeScannerImpl.js.map +1 -0
- package/lib/commonjs/impl/ImageProcessorImpl.js +20 -0
- package/lib/commonjs/impl/ImageProcessorImpl.js.map +1 -0
- package/lib/commonjs/impl/SdkImpl.js +27 -0
- package/lib/commonjs/impl/SdkImpl.js.map +1 -0
- package/lib/commonjs/impl/index.js +39 -0
- package/lib/commonjs/impl/index.js.map +1 -0
- package/lib/commonjs/impl/scanbotBarcodeSDKModule.js +22 -0
- package/lib/commonjs/impl/scanbotBarcodeSDKModule.js.map +1 -0
- package/lib/commonjs/index.js +18 -162
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types/base/SdkConfiguration.js +106 -0
- package/lib/commonjs/types/base/SdkConfiguration.js.map +1 -0
- package/lib/commonjs/{base/barcodeSDKConfigurations.js → types/base/customTypes.js} +1 -1
- package/lib/commonjs/types/base/customTypes.js.map +1 -0
- package/lib/commonjs/types/base/errors.js +139 -0
- package/lib/commonjs/types/base/errors.js.map +1 -0
- package/lib/commonjs/types/base/index.js +50 -0
- package/lib/commonjs/types/base/index.js.map +1 -0
- package/lib/commonjs/types/base/utils.js +59 -0
- package/lib/commonjs/types/base/utils.js.map +1 -0
- package/lib/commonjs/{barcode → types/core/barcode}/BarcodeConfigurationTypes.js +244 -74
- package/lib/commonjs/types/core/barcode/BarcodeConfigurationTypes.js.map +1 -0
- package/lib/commonjs/{barcode → types/core/barcode}/BarcodeDocumentTypes.js +62 -10
- package/lib/commonjs/types/core/barcode/BarcodeDocumentTypes.js.map +1 -0
- package/lib/commonjs/{barcode → types/core/barcode}/BarcodeScannerTypes.js +39 -28
- package/lib/commonjs/types/core/barcode/BarcodeScannerTypes.js.map +1 -0
- package/lib/commonjs/{barcode → types/core/barcode}/BarcodeTypes.js +31 -12
- package/lib/commonjs/types/core/barcode/BarcodeTypes.js.map +1 -0
- package/lib/commonjs/types/core/barcode/index.js.map +1 -0
- package/lib/commonjs/types/core/camera/Camera.js +23 -0
- package/lib/commonjs/types/core/camera/Camera.js.map +1 -0
- package/lib/commonjs/types/core/camera/index.js +17 -0
- package/lib/commonjs/types/core/camera/index.js.map +1 -0
- package/lib/commonjs/types/core/common/CommonTypes.js +29 -0
- package/lib/commonjs/types/core/common/CommonTypes.js.map +1 -0
- package/lib/commonjs/{utils/json → types/core/common}/JsonSerializationTypes.js +2 -3
- package/lib/commonjs/types/core/common/JsonSerializationTypes.js.map +1 -0
- package/lib/commonjs/types/core/common/index.js +28 -0
- package/lib/commonjs/types/core/common/index.js.map +1 -0
- package/lib/commonjs/{documents → types/core/generic_document}/BarcodeDocumentModel.js +1131 -160
- package/lib/commonjs/types/core/generic_document/BarcodeDocumentModel.js.map +1 -0
- package/lib/commonjs/{documents → types/core/generic_document}/CommonFieldType.js +6 -3
- package/lib/commonjs/types/core/generic_document/CommonFieldType.js.map +1 -0
- package/lib/commonjs/{documents → types/core/generic_document}/GenericDocument.js +13 -18
- package/lib/commonjs/types/core/generic_document/GenericDocument.js.map +1 -0
- package/lib/commonjs/types/core/generic_document/index.js.map +1 -0
- package/lib/commonjs/{utils → types/core}/geometry/Geometry.js +4 -8
- package/lib/commonjs/types/core/geometry/Geometry.js.map +1 -0
- package/lib/commonjs/types/core/geometry/index.js +17 -0
- package/lib/commonjs/types/core/geometry/index.js.map +1 -0
- package/lib/commonjs/{imageRef → types/core/image}/ImageRefTypes.js +157 -69
- package/lib/commonjs/types/core/image/ImageRefTypes.js.map +1 -0
- package/lib/commonjs/types/core/image/ImageTypes.js +41 -0
- package/lib/commonjs/types/core/image/ImageTypes.js.map +1 -0
- package/lib/commonjs/{imageRef → types/core/image}/image.js +54 -50
- package/lib/commonjs/types/core/image/image.js.map +1 -0
- package/lib/commonjs/{imageRef → types/core/image}/index.js +0 -11
- package/lib/commonjs/types/core/image/index.js.map +1 -0
- package/lib/commonjs/types/core/index.js +105 -0
- package/lib/commonjs/types/core/index.js.map +1 -0
- package/lib/commonjs/types/core/licensing/LicensingTypes.js +239 -0
- package/lib/commonjs/types/core/licensing/LicensingTypes.js.map +1 -0
- package/lib/commonjs/types/core/licensing/index.js +17 -0
- package/lib/commonjs/types/core/licensing/index.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/ArTrackingOverlayConfiguration.js +8 -14
- package/lib/commonjs/types/core/ui_v2/barcode/ArTrackingOverlayConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeInfoMapping.js +4 -8
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeInfoMapping.js.map +1 -0
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeItemMapper.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerScreenConfiguration.js +17 -19
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeScannerScreenConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerUiResult.js +3 -6
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeScannerUiResult.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeTextLocalization.js +1 -3
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeTextLocalization.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeUseCase.js +6 -6
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeUseCase.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/FindAndPickScanningModeUseCase.js +6 -9
- package/lib/commonjs/types/core/ui_v2/barcode/FindAndPickScanningModeUseCase.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/MultipleScanningModeUseCase.js +11 -14
- package/lib/commonjs/types/core/ui_v2/barcode/MultipleScanningModeUseCase.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/SingleScanningModeUseCase.js +4 -6
- package/lib/commonjs/types/core/ui_v2/barcode/SingleScanningModeUseCase.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/ActionBarConfiguration.js +2 -4
- package/lib/commonjs/types/core/ui_v2/common/ActionBarConfiguration.js.map +1 -0
- package/lib/commonjs/types/core/ui_v2/common/BottomBarConfiguration.js +23 -0
- package/lib/commonjs/types/core/ui_v2/common/BottomBarConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/CameraConfiguration.js +11 -3
- package/lib/commonjs/types/core/ui_v2/common/CameraConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/CameraPermission.js +2 -4
- package/lib/commonjs/types/core/ui_v2/common/CameraPermission.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/Common.js +20 -35
- package/lib/commonjs/types/core/ui_v2/common/Common.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/NavigationBarConfiguration.js +1 -0
- package/lib/commonjs/types/core/ui_v2/common/NavigationBarConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/ScanCompletionOverlay.js +2 -4
- package/lib/commonjs/types/core/ui_v2/common/ScanCompletionOverlay.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/ScanbotAlertDialog.js +2 -4
- package/lib/commonjs/types/core/ui_v2/common/ScanbotAlertDialog.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/TopBarConfiguration.js +4 -4
- package/lib/commonjs/types/core/ui_v2/common/TopBarConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/UserGuidanceConfiguration.js +3 -6
- package/lib/commonjs/types/core/ui_v2/common/UserGuidanceConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/ViewFinderConfiguration.js +14 -19
- package/lib/commonjs/types/core/ui_v2/common/ViewFinderConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/index.js +15 -15
- package/lib/commonjs/types/core/ui_v2/index.js.map +1 -0
- package/lib/commonjs/{imageRef → types/core/utils}/ObjectPoolTypes.js +2 -4
- package/lib/commonjs/types/core/utils/ObjectPoolTypes.js.map +1 -0
- package/lib/commonjs/types/core/utils/index.js +28 -0
- package/lib/commonjs/types/core/utils/index.js.map +1 -0
- package/lib/commonjs/types/core/utils/utils.js +10 -0
- package/lib/commonjs/types/core/utils/utils.js.map +1 -0
- package/lib/commonjs/types/index.js +28 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/module/Barcode.js +45 -0
- package/lib/module/Barcode.js.map +1 -0
- package/lib/module/ImageProcessor.js +19 -0
- package/lib/module/ImageProcessor.js.map +1 -0
- package/lib/module/Sdk.js +51 -0
- package/lib/module/Sdk.js.map +1 -0
- package/lib/module/{component → components}/barcode-camera-view/ScanbotBarcodeCameraView.js +10 -4
- package/lib/module/components/barcode-camera-view/ScanbotBarcodeCameraView.js.map +1 -0
- package/lib/module/components/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js.map +1 -0
- package/lib/module/components/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js.map +1 -0
- package/lib/module/components/index.js +4 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/components/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +1 -0
- package/lib/module/impl/BarcodeScannerImpl.js +53 -0
- package/lib/module/impl/BarcodeScannerImpl.js.map +1 -0
- package/lib/module/impl/ImageProcessorImpl.js +15 -0
- package/lib/module/impl/ImageProcessorImpl.js.map +1 -0
- package/lib/module/impl/SdkImpl.js +22 -0
- package/lib/module/impl/SdkImpl.js.map +1 -0
- package/lib/module/impl/index.js +4 -0
- package/lib/module/impl/index.js.map +1 -0
- package/lib/module/impl/scanbotBarcodeSDKModule.js +16 -0
- package/lib/module/impl/scanbotBarcodeSDKModule.js.map +1 -0
- package/lib/module/index.js +5 -119
- package/lib/module/index.js.map +1 -1
- package/lib/module/types/base/SdkConfiguration.js +100 -0
- package/lib/module/types/base/SdkConfiguration.js.map +1 -0
- package/lib/module/types/base/customTypes.js +2 -0
- package/lib/module/types/base/customTypes.js.map +1 -0
- package/lib/module/types/base/errors.js +119 -0
- package/lib/module/types/base/errors.js.map +1 -0
- package/lib/module/types/base/index.js +5 -0
- package/lib/module/types/base/index.js.map +1 -0
- package/lib/module/types/base/utils.js +52 -0
- package/lib/module/types/base/utils.js.map +1 -0
- package/lib/module/{barcode → types/core/barcode}/BarcodeConfigurationTypes.js +244 -76
- package/lib/module/types/core/barcode/BarcodeConfigurationTypes.js.map +1 -0
- package/lib/module/{barcode → types/core/barcode}/BarcodeDocumentTypes.js +60 -9
- package/lib/module/types/core/barcode/BarcodeDocumentTypes.js.map +1 -0
- package/lib/module/{barcode → types/core/barcode}/BarcodeScannerTypes.js +39 -28
- package/lib/module/types/core/barcode/BarcodeScannerTypes.js.map +1 -0
- package/lib/module/{barcode → types/core/barcode}/BarcodeTypes.js +30 -11
- package/lib/module/types/core/barcode/BarcodeTypes.js.map +1 -0
- package/lib/module/types/core/barcode/index.js.map +1 -0
- package/lib/module/types/core/camera/Camera.js +17 -0
- package/lib/module/types/core/camera/Camera.js.map +1 -0
- package/lib/module/types/core/camera/index.js +2 -0
- package/lib/module/types/core/camera/index.js.map +1 -0
- package/lib/module/types/core/common/CommonTypes.js +23 -0
- package/lib/module/types/core/common/CommonTypes.js.map +1 -0
- package/lib/module/{utils/json → types/core/common}/JsonSerializationTypes.js +2 -4
- package/lib/module/types/core/common/JsonSerializationTypes.js.map +1 -0
- package/lib/module/types/core/common/index.js +3 -0
- package/lib/module/types/core/common/index.js.map +1 -0
- package/lib/module/{documents → types/core/generic_document}/BarcodeDocumentModel.js +1129 -159
- package/lib/module/types/core/generic_document/BarcodeDocumentModel.js.map +1 -0
- package/lib/module/{documents → types/core/generic_document}/CommonFieldType.js +6 -3
- package/lib/module/types/core/generic_document/CommonFieldType.js.map +1 -0
- package/lib/module/{documents → types/core/generic_document}/GenericDocument.js +13 -18
- package/lib/module/types/core/generic_document/GenericDocument.js.map +1 -0
- package/lib/module/types/core/generic_document/index.js.map +1 -0
- package/lib/module/{utils → types/core}/geometry/Geometry.js +4 -9
- package/lib/module/types/core/geometry/Geometry.js.map +1 -0
- package/lib/module/types/core/geometry/index.js +2 -0
- package/lib/module/types/core/geometry/index.js.map +1 -0
- package/lib/module/{imageRef → types/core/image}/ImageRefTypes.js +156 -68
- package/lib/module/types/core/image/ImageRefTypes.js.map +1 -0
- package/lib/module/types/core/image/ImageTypes.js +35 -0
- package/lib/module/types/core/image/ImageTypes.js.map +1 -0
- package/lib/module/{imageRef → types/core/image}/image.js +54 -49
- package/lib/module/types/core/image/image.js.map +1 -0
- package/lib/module/{imageRef → types/core/image}/index.js +0 -1
- package/lib/module/types/core/image/index.js.map +1 -0
- package/lib/module/types/core/index.js +10 -0
- package/lib/module/types/core/index.js.map +1 -0
- package/lib/module/types/core/licensing/LicensingTypes.js +233 -0
- package/lib/module/types/core/licensing/LicensingTypes.js.map +1 -0
- package/lib/module/types/core/licensing/index.js +2 -0
- package/lib/module/types/core/licensing/index.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/ArTrackingOverlayConfiguration.js +8 -14
- package/lib/module/types/core/ui_v2/barcode/ArTrackingOverlayConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeInfoMapping.js +4 -9
- package/lib/module/types/core/ui_v2/barcode/BarcodeInfoMapping.js.map +1 -0
- package/lib/module/types/core/ui_v2/barcode/BarcodeItemMapper.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerScreenConfiguration.js +17 -19
- package/lib/module/types/core/ui_v2/barcode/BarcodeScannerScreenConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerUiResult.js +3 -7
- package/lib/module/types/core/ui_v2/barcode/BarcodeScannerUiResult.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeTextLocalization.js +1 -4
- package/lib/module/types/core/ui_v2/barcode/BarcodeTextLocalization.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeUseCase.js +6 -6
- package/lib/module/types/core/ui_v2/barcode/BarcodeUseCase.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/FindAndPickScanningModeUseCase.js +6 -9
- package/lib/module/types/core/ui_v2/barcode/FindAndPickScanningModeUseCase.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/MultipleScanningModeUseCase.js +11 -14
- package/lib/module/types/core/ui_v2/barcode/MultipleScanningModeUseCase.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/SingleScanningModeUseCase.js +4 -6
- package/lib/module/types/core/ui_v2/barcode/SingleScanningModeUseCase.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/ActionBarConfiguration.js +2 -4
- package/lib/module/types/core/ui_v2/common/ActionBarConfiguration.js.map +1 -0
- package/lib/module/types/core/ui_v2/common/BottomBarConfiguration.js +17 -0
- package/lib/module/types/core/ui_v2/common/BottomBarConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/CameraConfiguration.js +11 -4
- package/lib/module/types/core/ui_v2/common/CameraConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/CameraPermission.js +2 -5
- package/lib/module/types/core/ui_v2/common/CameraPermission.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/Common.js +20 -36
- package/lib/module/types/core/ui_v2/common/Common.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/NavigationBarConfiguration.js +1 -0
- package/lib/module/types/core/ui_v2/common/NavigationBarConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/ScanCompletionOverlay.js +2 -4
- package/lib/module/types/core/ui_v2/common/ScanCompletionOverlay.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/ScanbotAlertDialog.js +2 -4
- package/lib/module/types/core/ui_v2/common/ScanbotAlertDialog.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/TopBarConfiguration.js +4 -4
- package/lib/module/types/core/ui_v2/common/TopBarConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/UserGuidanceConfiguration.js +3 -6
- package/lib/module/types/core/ui_v2/common/UserGuidanceConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/ViewFinderConfiguration.js +14 -19
- package/lib/module/types/core/ui_v2/common/ViewFinderConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/index.js +2 -2
- package/lib/module/types/core/ui_v2/index.js.map +1 -0
- package/lib/module/{imageRef → types/core/utils}/ObjectPoolTypes.js +2 -5
- package/lib/module/types/core/utils/ObjectPoolTypes.js.map +1 -0
- package/lib/module/types/core/utils/index.js +3 -0
- package/lib/module/types/core/utils/index.js.map +1 -0
- package/lib/module/types/core/utils/utils.js +8 -0
- package/lib/module/types/core/utils/utils.js.map +1 -0
- package/lib/module/types/index.js +3 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/typescript/src/Barcode.d.ts +47 -0
- package/lib/typescript/src/Barcode.d.ts.map +1 -0
- package/lib/typescript/src/ImageProcessor.d.ts +12 -0
- package/lib/typescript/src/ImageProcessor.d.ts.map +1 -0
- package/lib/typescript/src/Sdk.d.ts +58 -0
- package/lib/typescript/src/Sdk.d.ts.map +1 -0
- package/lib/typescript/src/components/barcode-camera-view/ScanbotBarcodeCameraView.d.ts.map +1 -0
- package/lib/typescript/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts +17 -12
- package/lib/typescript/src/components/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts.map +1 -0
- package/lib/typescript/src/components/barcode-camera-view/ScanbotBarcodeCameraViewTypes.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +4 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -0
- package/lib/typescript/src/{component → components}/spec/ScanbotBarcodeScannerViewNativeComponent.d.ts +6 -0
- package/lib/typescript/src/components/spec/ScanbotBarcodeScannerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/impl/BarcodeScannerImpl.d.ts +2 -0
- package/lib/typescript/src/impl/BarcodeScannerImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/ImageProcessorImpl.d.ts +2 -0
- package/lib/typescript/src/impl/ImageProcessorImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/SdkImpl.d.ts +2 -0
- package/lib/typescript/src/impl/SdkImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/index.d.ts +4 -0
- package/lib/typescript/src/impl/index.d.ts.map +1 -0
- package/lib/typescript/src/impl/scanbotBarcodeSDKModule.d.ts +2 -0
- package/lib/typescript/src/impl/scanbotBarcodeSDKModule.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +5 -66
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types/base/SdkConfiguration.d.ts +74 -0
- package/lib/typescript/src/types/base/SdkConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/types/base/customTypes.d.ts +15 -0
- package/lib/typescript/src/types/base/customTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/base/errors.d.ts +55 -0
- package/lib/typescript/src/types/base/errors.d.ts.map +1 -0
- package/lib/typescript/src/types/base/index.d.ts +5 -0
- package/lib/typescript/src/types/base/index.d.ts.map +1 -0
- package/lib/typescript/src/types/base/utils.d.ts +3 -0
- package/lib/typescript/src/types/base/utils.d.ts.map +1 -0
- package/lib/typescript/src/{barcode → types/core/barcode}/BarcodeConfigurationTypes.d.ts +203 -36
- package/lib/typescript/src/types/core/barcode/BarcodeConfigurationTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/barcode/BarcodeDocumentTypes.d.ts +117 -0
- package/lib/typescript/src/types/core/barcode/BarcodeDocumentTypes.d.ts.map +1 -0
- package/lib/typescript/src/{barcode → types/core/barcode}/BarcodeScannerTypes.d.ts +68 -21
- package/lib/typescript/src/types/core/barcode/BarcodeScannerTypes.d.ts.map +1 -0
- package/lib/typescript/src/{barcode → types/core/barcode}/BarcodeTypes.d.ts +390 -13
- package/lib/typescript/src/types/core/barcode/BarcodeTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/barcode/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/camera/Camera.d.ts +26 -0
- package/lib/typescript/src/types/core/camera/Camera.d.ts.map +1 -0
- package/lib/typescript/src/types/core/camera/index.d.ts +2 -0
- package/lib/typescript/src/types/core/camera/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/common/CommonTypes.d.ts +36 -0
- package/lib/typescript/src/types/core/common/CommonTypes.d.ts.map +1 -0
- package/lib/typescript/src/{utils/json → types/core/common}/JsonSerializationTypes.d.ts +13 -4
- package/lib/typescript/src/types/core/common/JsonSerializationTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/common/index.d.ts +3 -0
- package/lib/typescript/src/types/core/common/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/generic_document/BarcodeDocumentModel.d.ts +2360 -0
- package/lib/typescript/src/types/core/generic_document/BarcodeDocumentModel.d.ts.map +1 -0
- package/lib/typescript/src/types/core/generic_document/CommonFieldType.d.ts +176 -0
- package/lib/typescript/src/types/core/generic_document/CommonFieldType.d.ts.map +1 -0
- package/lib/typescript/src/{documents → types/core/generic_document}/GenericDocument.d.ts +82 -14
- package/lib/typescript/src/types/core/generic_document/GenericDocument.d.ts.map +1 -0
- package/lib/typescript/src/types/core/generic_document/index.d.ts.map +1 -0
- package/lib/typescript/src/{utils → types/core}/geometry/Geometry.d.ts +6 -5
- package/lib/typescript/src/types/core/geometry/Geometry.d.ts.map +1 -0
- package/lib/typescript/src/types/core/geometry/index.d.ts +2 -0
- package/lib/typescript/src/types/core/geometry/index.d.ts.map +1 -0
- package/lib/typescript/src/{imageRef → types/core/image}/ImageRefTypes.d.ts +208 -40
- package/lib/typescript/src/types/core/image/ImageRefTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/image/ImageTypes.d.ts +63 -0
- package/lib/typescript/src/types/core/image/ImageTypes.d.ts.map +1 -0
- package/lib/typescript/src/{imageRef → types/core/image}/image.d.ts +6 -10
- package/lib/typescript/src/types/core/image/image.d.ts.map +1 -0
- package/lib/typescript/src/{imageRef → types/core/image}/index.d.ts +0 -1
- package/lib/typescript/src/types/core/image/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/index.d.ts +10 -0
- package/lib/typescript/src/types/core/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/licensing/LicensingTypes.d.ts +243 -0
- package/lib/typescript/src/types/core/licensing/LicensingTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/licensing/index.d.ts +2 -0
- package/lib/typescript/src/types/core/licensing/index.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/ArTrackingOverlayConfiguration.d.ts +27 -10
- package/lib/typescript/src/types/core/ui_v2/barcode/ArTrackingOverlayConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeInfoMapping.d.ts +6 -6
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeInfoMapping.d.ts.map +1 -0
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeItemMapper.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerScreenConfiguration.d.ts +14 -14
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeScannerScreenConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerUiResult.d.ts +4 -4
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeScannerUiResult.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeTextLocalization.d.ts +2 -2
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeTextLocalization.d.ts.map +1 -0
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeUseCase.d.ts +8 -0
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeUseCase.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/FindAndPickScanningModeUseCase.d.ts +6 -6
- package/lib/typescript/src/types/core/ui_v2/barcode/FindAndPickScanningModeUseCase.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/MultipleScanningModeUseCase.d.ts +42 -15
- package/lib/typescript/src/types/core/ui_v2/barcode/MultipleScanningModeUseCase.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/SingleScanningModeUseCase.d.ts +5 -5
- package/lib/typescript/src/types/core/ui_v2/barcode/SingleScanningModeUseCase.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/ActionBarConfiguration.d.ts +3 -3
- package/lib/typescript/src/types/core/ui_v2/common/ActionBarConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/types/core/ui_v2/common/BottomBarConfiguration.d.ts +26 -0
- package/lib/typescript/src/types/core/ui_v2/common/BottomBarConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/CameraConfiguration.d.ts +25 -5
- package/lib/typescript/src/types/core/ui_v2/common/CameraConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/CameraPermission.d.ts +4 -4
- package/lib/typescript/src/types/core/ui_v2/common/CameraPermission.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/Common.d.ts +55 -24
- package/lib/typescript/src/types/core/ui_v2/common/Common.d.ts.map +1 -0
- package/lib/typescript/src/types/core/ui_v2/common/NavigationBarConfiguration.d.ts +26 -0
- package/lib/typescript/src/types/core/ui_v2/common/NavigationBarConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/ScanCompletionOverlay.d.ts +3 -3
- package/lib/typescript/src/types/core/ui_v2/common/ScanCompletionOverlay.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/ScanbotAlertDialog.d.ts +3 -3
- package/lib/typescript/src/types/core/ui_v2/common/ScanbotAlertDialog.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/TopBarConfiguration.d.ts +33 -7
- package/lib/typescript/src/types/core/ui_v2/common/TopBarConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/UserGuidanceConfiguration.d.ts +4 -4
- package/lib/typescript/src/types/core/ui_v2/common/UserGuidanceConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/ViewFinderConfiguration.d.ts +7 -7
- package/lib/typescript/src/types/core/ui_v2/common/ViewFinderConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/index.d.ts +2 -2
- package/lib/typescript/src/types/core/ui_v2/index.d.ts.map +1 -0
- package/lib/typescript/src/{imageRef → types/core/utils}/ObjectPoolTypes.d.ts +3 -3
- package/lib/typescript/src/types/core/utils/ObjectPoolTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/utils/index.d.ts +3 -0
- package/lib/typescript/src/types/core/utils/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/utils/utils.d.ts +28 -0
- package/lib/typescript/src/types/core/utils/utils.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +3 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -0
- package/package.json +13 -13
- package/src/Barcode.ts +67 -0
- package/src/ImageProcessor.ts +18 -0
- package/src/Sdk.ts +53 -0
- package/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraView.tsx +13 -4
- package/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewProperties.ts +22 -14
- package/src/components/index.ts +3 -0
- package/src/{component → components}/spec/ScanbotBarcodeScannerViewNativeComponent.ts +3 -0
- package/src/impl/BarcodeScannerImpl.ts +115 -0
- package/src/impl/ImageProcessorImpl.ts +14 -0
- package/src/impl/SdkImpl.ts +28 -0
- package/src/impl/index.ts +3 -0
- package/src/impl/scanbotBarcodeSDKModule.ts +22 -0
- package/src/index.ts +5 -178
- package/src/types/base/SdkConfiguration.ts +120 -0
- package/src/types/base/customTypes.ts +14 -0
- package/src/types/base/errors.ts +158 -0
- package/src/types/base/index.ts +4 -0
- package/src/types/base/utils.ts +53 -0
- package/src/{barcode → types/core/barcode}/BarcodeConfigurationTypes.ts +294 -83
- package/src/types/core/barcode/BarcodeDocumentTypes.ts +218 -0
- package/src/{barcode → types/core/barcode}/BarcodeScannerTypes.ts +91 -44
- package/src/{barcode → types/core/barcode}/BarcodeTypes.ts +315 -19
- package/src/types/core/camera/Camera.ts +33 -0
- package/src/types/core/camera/index.ts +1 -0
- package/src/types/core/common/CommonTypes.ts +43 -0
- package/src/{utils/json → types/core/common}/JsonSerializationTypes.ts +16 -5
- package/src/types/core/common/index.ts +2 -0
- package/src/{documents → types/core/generic_document}/BarcodeDocumentModel.ts +1524 -172
- package/src/{documents → types/core/generic_document}/CommonFieldType.ts +96 -7
- package/src/{documents → types/core/generic_document}/GenericDocument.ts +77 -28
- package/src/{utils → types/core}/geometry/Geometry.ts +6 -8
- package/src/types/core/geometry/index.ts +1 -0
- package/src/{imageRef → types/core/image}/ImageRefTypes.ts +277 -83
- package/src/types/core/image/ImageTypes.ts +78 -0
- package/src/{imageRef → types/core/image}/image.ts +44 -76
- package/src/{imageRef → types/core/image}/index.ts +0 -1
- package/src/types/core/index.ts +9 -0
- package/src/types/core/licensing/LicensingTypes.ts +377 -0
- package/src/types/core/licensing/index.ts +1 -0
- package/src/{ui_v2 → types/core/ui_v2}/barcode/ArTrackingOverlayConfiguration.ts +28 -17
- package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeInfoMapping.ts +6 -9
- package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerScreenConfiguration.ts +18 -25
- package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerUiResult.ts +5 -7
- package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeTextLocalization.ts +2 -3
- package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeUseCase.ts +6 -5
- package/src/{ui_v2 → types/core/ui_v2}/barcode/FindAndPickScanningModeUseCase.ts +17 -19
- package/src/{ui_v2 → types/core/ui_v2}/barcode/MultipleScanningModeUseCase.ts +50 -25
- package/src/{ui_v2 → types/core/ui_v2}/barcode/SingleScanningModeUseCase.ts +9 -10
- package/src/{ui_v2 → types/core/ui_v2}/common/ActionBarConfiguration.ts +3 -4
- package/src/types/core/ui_v2/common/BottomBarConfiguration.ts +33 -0
- package/src/{ui_v2 → types/core/ui_v2}/common/CameraConfiguration.ts +33 -7
- package/src/{ui_v2 → types/core/ui_v2}/common/CameraPermission.ts +4 -5
- package/src/{ui_v2 → types/core/ui_v2}/common/Common.ts +62 -41
- package/src/{ui_v2 → types/core/ui_v2}/common/NavigationBarConfiguration.ts +19 -2
- package/src/{ui_v2 → types/core/ui_v2}/common/ScanCompletionOverlay.ts +3 -4
- package/src/{ui_v2 → types/core/ui_v2}/common/ScanbotAlertDialog.ts +3 -4
- package/src/{ui_v2 → types/core/ui_v2}/common/TopBarConfiguration.ts +37 -13
- package/src/{ui_v2 → types/core/ui_v2}/common/UserGuidanceConfiguration.ts +4 -6
- package/src/{ui_v2 → types/core/ui_v2}/common/ViewFinderConfiguration.ts +15 -17
- package/src/{ui_v2 → types/core/ui_v2}/index.ts +2 -4
- package/src/{imageRef → types/core/utils}/ObjectPoolTypes.ts +3 -4
- package/src/types/core/utils/index.ts +2 -0
- package/src/types/core/utils/utils.ts +45 -0
- package/src/types/index.ts +2 -0
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/extensions/IntExtensions.kt +0 -7
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewControllerWrapper.h +0 -121
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewControllerWrapper.m +0 -307
- package/lib/commonjs/barcode/BarcodeConfigurationTypes.js.map +0 -1
- package/lib/commonjs/barcode/BarcodeDocumentTypes.js.map +0 -1
- package/lib/commonjs/barcode/BarcodeScannerTypes.js.map +0 -1
- package/lib/commonjs/barcode/BarcodeTypes.js.map +0 -1
- package/lib/commonjs/barcode/index.js.map +0 -1
- package/lib/commonjs/base/barcodeSDKConfigurations.js.map +0 -1
- package/lib/commonjs/base/barcodeSDKTypes.js +0 -2
- package/lib/commonjs/base/barcodeSDKTypes.js.map +0 -1
- package/lib/commonjs/base/index.js +0 -28
- package/lib/commonjs/base/index.js.map +0 -1
- package/lib/commonjs/component/barcode-camera-view/ScanbotBarcodeCameraView.js.map +0 -1
- package/lib/commonjs/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js.map +0 -1
- package/lib/commonjs/component/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js.map +0 -1
- package/lib/commonjs/component/barcode-camera-view/index.js.map +0 -1
- package/lib/commonjs/component/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +0 -1
- package/lib/commonjs/documents/BarcodeDocumentModel.js.map +0 -1
- package/lib/commonjs/documents/CommonFieldType.js.map +0 -1
- package/lib/commonjs/documents/GenericDocument.js.map +0 -1
- package/lib/commonjs/documents/index.js.map +0 -1
- package/lib/commonjs/imageRef/ImageRefTypes.js.map +0 -1
- package/lib/commonjs/imageRef/ImageTypes.js +0 -24
- package/lib/commonjs/imageRef/ImageTypes.js.map +0 -1
- package/lib/commonjs/imageRef/ObjectPoolTypes.js.map +0 -1
- package/lib/commonjs/imageRef/image.js.map +0 -1
- package/lib/commonjs/imageRef/index.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/ArTrackingOverlayConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeInfoMapping.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeItemMapper.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeScannerConfiguration.js +0 -179
- package/lib/commonjs/ui_v2/barcode/BarcodeScannerConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeScannerScreenConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeScannerUiResult.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeTextLocalization.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeUseCase.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/FindAndPickScanningModeUseCase.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/MultipleScanningModeUseCase.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/SingleScanningModeUseCase.js.map +0 -1
- package/lib/commonjs/ui_v2/common/ActionBarConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/common/CameraConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/common/CameraPermission.js.map +0 -1
- package/lib/commonjs/ui_v2/common/Common.js.map +0 -1
- package/lib/commonjs/ui_v2/common/NavigationBarConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/common/ScanCompletionOverlay.js.map +0 -1
- package/lib/commonjs/ui_v2/common/ScanbotAlertDialog.js.map +0 -1
- package/lib/commonjs/ui_v2/common/TopBarConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/common/UserGuidanceConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/common/ViewFinderConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/index.js.map +0 -1
- package/lib/commonjs/utils/geometry/Geometry.js.map +0 -1
- package/lib/commonjs/utils/index.js +0 -39
- package/lib/commonjs/utils/index.js.map +0 -1
- package/lib/commonjs/utils/json/JsonSerializationTypes.js.map +0 -1
- package/lib/commonjs/utils/utils.js +0 -31
- package/lib/commonjs/utils/utils.js.map +0 -1
- package/lib/module/barcode/BarcodeConfigurationTypes.js.map +0 -1
- package/lib/module/barcode/BarcodeDocumentTypes.js.map +0 -1
- package/lib/module/barcode/BarcodeScannerTypes.js.map +0 -1
- package/lib/module/barcode/BarcodeTypes.js.map +0 -1
- package/lib/module/barcode/index.js.map +0 -1
- package/lib/module/base/barcodeSDKConfigurations.js +0 -2
- package/lib/module/base/barcodeSDKConfigurations.js.map +0 -1
- package/lib/module/base/barcodeSDKTypes.js +0 -2
- package/lib/module/base/barcodeSDKTypes.js.map +0 -1
- package/lib/module/base/index.js +0 -3
- package/lib/module/base/index.js.map +0 -1
- package/lib/module/component/barcode-camera-view/ScanbotBarcodeCameraView.js.map +0 -1
- package/lib/module/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js.map +0 -1
- package/lib/module/component/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js.map +0 -1
- package/lib/module/component/barcode-camera-view/index.js +0 -4
- package/lib/module/component/barcode-camera-view/index.js.map +0 -1
- package/lib/module/component/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +0 -1
- package/lib/module/documents/BarcodeDocumentModel.js.map +0 -1
- package/lib/module/documents/CommonFieldType.js.map +0 -1
- package/lib/module/documents/GenericDocument.js.map +0 -1
- package/lib/module/documents/index.js.map +0 -1
- package/lib/module/imageRef/ImageRefTypes.js.map +0 -1
- package/lib/module/imageRef/ImageTypes.js +0 -18
- package/lib/module/imageRef/ImageTypes.js.map +0 -1
- package/lib/module/imageRef/ObjectPoolTypes.js.map +0 -1
- package/lib/module/imageRef/image.js.map +0 -1
- package/lib/module/imageRef/index.js.map +0 -1
- package/lib/module/ui_v2/barcode/ArTrackingOverlayConfiguration.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeInfoMapping.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeItemMapper.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeScannerConfiguration.js +0 -173
- package/lib/module/ui_v2/barcode/BarcodeScannerConfiguration.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeScannerScreenConfiguration.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeScannerUiResult.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeTextLocalization.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeUseCase.js.map +0 -1
- package/lib/module/ui_v2/barcode/FindAndPickScanningModeUseCase.js.map +0 -1
- package/lib/module/ui_v2/barcode/MultipleScanningModeUseCase.js.map +0 -1
- package/lib/module/ui_v2/barcode/SingleScanningModeUseCase.js.map +0 -1
- package/lib/module/ui_v2/common/ActionBarConfiguration.js.map +0 -1
- package/lib/module/ui_v2/common/CameraConfiguration.js.map +0 -1
- package/lib/module/ui_v2/common/CameraPermission.js.map +0 -1
- package/lib/module/ui_v2/common/Common.js.map +0 -1
- package/lib/module/ui_v2/common/NavigationBarConfiguration.js.map +0 -1
- package/lib/module/ui_v2/common/ScanCompletionOverlay.js.map +0 -1
- package/lib/module/ui_v2/common/ScanbotAlertDialog.js.map +0 -1
- package/lib/module/ui_v2/common/TopBarConfiguration.js.map +0 -1
- package/lib/module/ui_v2/common/UserGuidanceConfiguration.js.map +0 -1
- package/lib/module/ui_v2/common/ViewFinderConfiguration.js.map +0 -1
- package/lib/module/ui_v2/index.js.map +0 -1
- package/lib/module/utils/geometry/Geometry.js.map +0 -1
- package/lib/module/utils/index.js +0 -4
- package/lib/module/utils/index.js.map +0 -1
- package/lib/module/utils/json/JsonSerializationTypes.js.map +0 -1
- package/lib/module/utils/utils.js +0 -22
- package/lib/module/utils/utils.js.map +0 -1
- package/lib/typescript/src/barcode/BarcodeConfigurationTypes.d.ts.map +0 -1
- package/lib/typescript/src/barcode/BarcodeDocumentTypes.d.ts +0 -50
- package/lib/typescript/src/barcode/BarcodeDocumentTypes.d.ts.map +0 -1
- package/lib/typescript/src/barcode/BarcodeScannerTypes.d.ts.map +0 -1
- package/lib/typescript/src/barcode/BarcodeTypes.d.ts.map +0 -1
- package/lib/typescript/src/barcode/index.d.ts.map +0 -1
- package/lib/typescript/src/base/barcodeSDKConfigurations.d.ts +0 -60
- package/lib/typescript/src/base/barcodeSDKConfigurations.d.ts.map +0 -1
- package/lib/typescript/src/base/barcodeSDKTypes.d.ts +0 -46
- package/lib/typescript/src/base/barcodeSDKTypes.d.ts.map +0 -1
- package/lib/typescript/src/base/index.d.ts +0 -3
- package/lib/typescript/src/base/index.d.ts.map +0 -1
- package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraView.d.ts.map +0 -1
- package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts.map +0 -1
- package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraViewTypes.d.ts.map +0 -1
- package/lib/typescript/src/component/barcode-camera-view/index.d.ts +0 -4
- package/lib/typescript/src/component/barcode-camera-view/index.d.ts.map +0 -1
- package/lib/typescript/src/component/spec/ScanbotBarcodeScannerViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/documents/BarcodeDocumentModel.d.ts +0 -1458
- package/lib/typescript/src/documents/BarcodeDocumentModel.d.ts.map +0 -1
- package/lib/typescript/src/documents/CommonFieldType.d.ts +0 -61
- package/lib/typescript/src/documents/CommonFieldType.d.ts.map +0 -1
- package/lib/typescript/src/documents/GenericDocument.d.ts.map +0 -1
- package/lib/typescript/src/documents/index.d.ts.map +0 -1
- package/lib/typescript/src/imageRef/ImageRefTypes.d.ts.map +0 -1
- package/lib/typescript/src/imageRef/ImageTypes.d.ts +0 -15
- package/lib/typescript/src/imageRef/ImageTypes.d.ts.map +0 -1
- package/lib/typescript/src/imageRef/ObjectPoolTypes.d.ts.map +0 -1
- package/lib/typescript/src/imageRef/image.d.ts.map +0 -1
- package/lib/typescript/src/imageRef/index.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/ArTrackingOverlayConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeInfoMapping.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeItemMapper.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeScannerConfiguration.d.ts +0 -114
- package/lib/typescript/src/ui_v2/barcode/BarcodeScannerConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeScannerScreenConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeScannerUiResult.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeTextLocalization.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeUseCase.d.ts +0 -8
- package/lib/typescript/src/ui_v2/barcode/BarcodeUseCase.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/FindAndPickScanningModeUseCase.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/MultipleScanningModeUseCase.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/SingleScanningModeUseCase.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/ActionBarConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/CameraConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/CameraPermission.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/Common.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/NavigationBarConfiguration.d.ts +0 -13
- package/lib/typescript/src/ui_v2/common/NavigationBarConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/ScanCompletionOverlay.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/ScanbotAlertDialog.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/TopBarConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/UserGuidanceConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/ViewFinderConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/index.d.ts.map +0 -1
- package/lib/typescript/src/utils/geometry/Geometry.d.ts.map +0 -1
- package/lib/typescript/src/utils/index.d.ts +0 -4
- package/lib/typescript/src/utils/index.d.ts.map +0 -1
- package/lib/typescript/src/utils/json/JsonSerializationTypes.d.ts.map +0 -1
- package/lib/typescript/src/utils/utils.d.ts +0 -17
- package/lib/typescript/src/utils/utils.d.ts.map +0 -1
- package/src/barcode/BarcodeDocumentTypes.ts +0 -120
- package/src/base/barcodeSDKConfigurations.ts +0 -70
- package/src/base/barcodeSDKTypes.ts +0 -44
- package/src/base/index.ts +0 -2
- package/src/component/barcode-camera-view/index.ts +0 -3
- package/src/imageRef/ImageTypes.ts +0 -23
- package/src/ui_v2/barcode/BarcodeScannerConfiguration.ts +0 -207
- package/src/utils/index.ts +0 -3
- package/src/utils/utils.ts +0 -42
- /package/lib/commonjs/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js +0 -0
- /package/lib/commonjs/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js +0 -0
- /package/lib/commonjs/{component → components}/spec/ScanbotBarcodeScannerViewNativeComponent.js +0 -0
- /package/lib/commonjs/{barcode → types/core/barcode}/index.js +0 -0
- /package/lib/commonjs/{documents → types/core/generic_document}/index.js +0 -0
- /package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeItemMapper.js +0 -0
- /package/lib/module/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js +0 -0
- /package/lib/module/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js +0 -0
- /package/lib/module/{component → components}/spec/ScanbotBarcodeScannerViewNativeComponent.js +0 -0
- /package/lib/module/{barcode → types/core/barcode}/index.js +0 -0
- /package/lib/module/{documents → types/core/generic_document}/index.js +0 -0
- /package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeItemMapper.js +0 -0
- /package/lib/typescript/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraView.d.ts +0 -0
- /package/lib/typescript/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewTypes.d.ts +0 -0
- /package/lib/typescript/src/{barcode → types/core/barcode}/index.d.ts +0 -0
- /package/lib/typescript/src/{documents → types/core/generic_document}/index.d.ts +0 -0
- /package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeItemMapper.d.ts +0 -0
- /package/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewTypes.ts +0 -0
- /package/src/{barcode → types/core/barcode}/index.ts +0 -0
- /package/src/{documents → types/core/generic_document}/index.ts +0 -0
- /package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeItemMapper.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/types/core/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare class NonPartiallyConstructible {
|
|
2
|
+
_nonPartiallyConstructibleMarker(): void;
|
|
3
|
+
}
|
|
4
|
+
type NonPartiallyConstructibleTrait = NonPartiallyConstructible | Uint8Array | Point | Rectangle;
|
|
5
|
+
type IsUnion<T, U = T> = T extends any ? ([U] extends [T] ? false : true) : never;
|
|
6
|
+
type IsPolymorphicKey<P> = P extends '_type' ? true : false;
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export type DeepPartial<T, POLYMORPHIC_KEY_REQUIREMENT = 'UNKNOWN'> = POLYMORPHIC_KEY_REQUIREMENT extends 'UNKNOWN' ? IsUnion<T> extends true ? DeepPartial<T, 'REQUIRED'> : DeepPartial<T, 'NOT_REQUIRED'> : T extends Array<infer I> ? DeepPartial<I>[] : T extends object ? T extends NonPartiallyConstructibleTrait ? T : T extends Function ? T : POLYMORPHIC_KEY_REQUIREMENT extends 'REQUIRED' ? {
|
|
11
|
+
[P in keyof T as IsPolymorphicKey<P> extends true ? never : P]?: DeepPartial<T[P]>;
|
|
12
|
+
} & {
|
|
13
|
+
[P in keyof T as IsPolymorphicKey<P> extends true ? P : never]: T[P];
|
|
14
|
+
} : {
|
|
15
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
16
|
+
} : T;
|
|
17
|
+
export interface Point {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
}
|
|
21
|
+
export type Rectangle = {
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/types/core/utils/utils.ts"],"names":[],"mappings":"AAAA,cAAM,yBAAyB;IAC7B,gCAAgC;CACjC;AAED,KAAK,8BAA8B,GAAG,yBAAyB,GAAG,UAAU,GAAG,KAAK,GAAG,SAAS,CAAC;AAEjG,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC;AAElF,KAAK,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,IAAI,GAAG,KAAK,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,WAAW,CACrB,CAAC,EACD,2BAA2B,GAAG,SAAS,IACrC,2BAA2B,SAAS,SAAS,GAC7C,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GACrB,WAAW,CAAC,CAAC,EAAE,UAAU,CAAC,GAC1B,WAAW,CAAC,CAAC,EAAE,cAAc,CAAC,GAChC,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GACtB,WAAW,CAAC,CAAC,CAAC,EAAE,GAChB,CAAC,SAAS,MAAM,GACd,CAAC,SAAS,8BAA8B,GACtC,CAAC,GACD,CAAC,SAAS,QAAQ,GAChB,CAAC,GACD,2BAA2B,SAAS,UAAU,GAC5C;KACG,CAAC,IAAI,MAAM,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnF,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GAC5E;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAC5C,CAAC,CAAC;AAEV,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-scanbot-barcode-scanner-sdk",
|
|
3
3
|
"title": "Scanbot Barcode Scanner SDK for React Native",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "8.0.0-rc.1",
|
|
5
5
|
"description": "Scanbot Barcode Scanner SDK React Native Plugin for Android and iOS",
|
|
6
6
|
"main": "lib/commonjs/index",
|
|
7
7
|
"module": "lib/module/index",
|
|
@@ -73,19 +73,19 @@
|
|
|
73
73
|
"@expo/config-plugins": "11.0.7"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@react-native-community/cli": "
|
|
77
|
-
"@react-native/eslint-config": "
|
|
78
|
-
"@types/react": "
|
|
79
|
-
"eslint": "
|
|
80
|
-
"eslint-config-prettier": "
|
|
81
|
-
"eslint-plugin-prettier": "
|
|
82
|
-
"prettier": "
|
|
83
|
-
"prettier-plugin-organize-imports": "
|
|
76
|
+
"@react-native-community/cli": "latest",
|
|
77
|
+
"@react-native/eslint-config": "0.73.2",
|
|
78
|
+
"@types/react": "18.3.23",
|
|
79
|
+
"eslint": "8.57.1",
|
|
80
|
+
"eslint-config-prettier": "9.1.2",
|
|
81
|
+
"eslint-plugin-prettier": "5.5.4",
|
|
82
|
+
"prettier": "3.6.2",
|
|
83
|
+
"prettier-plugin-organize-imports": "4.2.0",
|
|
84
84
|
"react": "18.3.1",
|
|
85
85
|
"react-native": "0.77.0",
|
|
86
|
-
"react-native-builder-bob": "
|
|
87
|
-
"typedoc": "
|
|
88
|
-
"typedoc-plugin-rename-defaults": "
|
|
86
|
+
"react-native-builder-bob": "0.23.2",
|
|
87
|
+
"typedoc": "0.25.13",
|
|
88
|
+
"typedoc-plugin-rename-defaults": "0.7.3",
|
|
89
89
|
"typescript": "5.2.2"
|
|
90
90
|
},
|
|
91
91
|
"resolutions": {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"codegenConfig": {
|
|
109
109
|
"name": "RNScanbotBarcodeScannerViewSpec",
|
|
110
110
|
"type": "components",
|
|
111
|
-
"jsSrcsDir": "src/
|
|
111
|
+
"jsSrcsDir": "src/components",
|
|
112
112
|
"ios": {
|
|
113
113
|
"componentProvider": {
|
|
114
114
|
"ScanbotBarcodeScannerView": "RNScanbotBarcodeScannerView"
|
package/src/Barcode.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
|
|
2
|
+
/// Generated from xplatforms/schemas/barcode_scanner/Barcode.yaml
|
|
3
|
+
|
|
4
|
+
import { ScanbotBarcodeImpl } from './impl';
|
|
5
|
+
import { ImageInput, ResultWrapper } from './types/base/customTypes';
|
|
6
|
+
import {
|
|
7
|
+
BarcodeDocumentFormat,
|
|
8
|
+
BarcodeDocumentParserResult,
|
|
9
|
+
} from './types/core/barcode/BarcodeDocumentTypes';
|
|
10
|
+
import {
|
|
11
|
+
BarcodeScannerConfiguration,
|
|
12
|
+
BarcodeScannerResult,
|
|
13
|
+
} from './types/core/barcode/BarcodeScannerTypes';
|
|
14
|
+
import { BarcodeScannerScreenConfiguration } from './types/core/ui_v2/barcode/BarcodeScannerScreenConfiguration';
|
|
15
|
+
import { BarcodeScannerUiResult } from './types/core/ui_v2/barcode/BarcodeScannerUiResult';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Entry point for all barcode features.
|
|
19
|
+
*/
|
|
20
|
+
export const ScanbotBarcode = {
|
|
21
|
+
/**
|
|
22
|
+
* Opens the Ready-To-Use UI screen for scanning barcodes with the desired configuration.
|
|
23
|
+
* @param {BarcodeScannerScreenConfiguration} configuration - The Barcode scanner configuration to be used for scanning.
|
|
24
|
+
* @returns {Promise<ResultWrapper<BarcodeScannerUiResult>>} - The result of the Barcode scanning operation.
|
|
25
|
+
*/
|
|
26
|
+
async startScanner(
|
|
27
|
+
configuration: BarcodeScannerScreenConfiguration
|
|
28
|
+
): Promise<ResultWrapper<BarcodeScannerUiResult>> {
|
|
29
|
+
return ScanbotBarcodeImpl.startScanner(configuration);
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* Scans Barcode from a given image with the desired configuration.
|
|
33
|
+
* @param {ImageInput} params.image - The image to be used for scanning.
|
|
34
|
+
* @param {BarcodeScannerConfiguration} params.configuration - The Barcode scanner configuration to be used for scanning.
|
|
35
|
+
* @returns {Promise<BarcodeScannerResult>} - The result of the Barcode scanning operation.
|
|
36
|
+
*/
|
|
37
|
+
async scanFromImage(params: {
|
|
38
|
+
image: ImageInput;
|
|
39
|
+
configuration: BarcodeScannerConfiguration;
|
|
40
|
+
}): Promise<BarcodeScannerResult> {
|
|
41
|
+
return ScanbotBarcodeImpl.scanFromImage(params);
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* Scans Barcode from a given PDF document with the desired configuration.
|
|
45
|
+
* @param {string} params.pdfFileUri - The PDF file uri to be used for scanning.
|
|
46
|
+
* @param {BarcodeScannerConfiguration} params.configuration - The Barcode scanner configuration to be used for scanning.
|
|
47
|
+
* @returns {Promise<BarcodeScannerResult>} - The result of the Barcode scanning operation.
|
|
48
|
+
*/
|
|
49
|
+
async scanFromPdf(params: {
|
|
50
|
+
pdfFileUri: string;
|
|
51
|
+
configuration: BarcodeScannerConfiguration;
|
|
52
|
+
}): Promise<BarcodeScannerResult> {
|
|
53
|
+
return ScanbotBarcodeImpl.scanFromPdf(params);
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* Parses a barcode document from the given raw text content with the specified accepted formats.
|
|
57
|
+
* @param {string} params.rawText - The raw text content representing the document to be parsed.
|
|
58
|
+
* @param {BarcodeDocumentFormat[]} params.acceptedFormats - The list of accepted barcode document formats to be parsed. If not provided, all supported formats will be parsed.
|
|
59
|
+
* @returns {Promise<BarcodeDocumentParserResult>} - The result of the Barcode document parsing operation.
|
|
60
|
+
*/
|
|
61
|
+
async parseDocument(params: {
|
|
62
|
+
rawText: string;
|
|
63
|
+
acceptedFormats?: BarcodeDocumentFormat[];
|
|
64
|
+
}): Promise<BarcodeDocumentParserResult> {
|
|
65
|
+
return ScanbotBarcodeImpl.parseDocument(params);
|
|
66
|
+
},
|
|
67
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
|
|
2
|
+
/// Generated from xplatforms/schemas/barcode_scanner/ImageProcessor.yaml
|
|
3
|
+
|
|
4
|
+
import { ScanbotImageProcessorImpl } from './impl';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Entry point for all image processing features.
|
|
8
|
+
*/
|
|
9
|
+
export const ScanbotImageProcessor = {
|
|
10
|
+
/**
|
|
11
|
+
* Reads image data from the given file uri and returns it as a Base 64 encoded string.
|
|
12
|
+
* @param {string} imageFileUri - File uri of the image to be read.
|
|
13
|
+
* @returns {Promise<string>} - The Base 64 encoded representation of the image.
|
|
14
|
+
*/
|
|
15
|
+
async readImageData(imageFileUri: string): Promise<string> {
|
|
16
|
+
return ScanbotImageProcessorImpl.readImageData(imageFileUri);
|
|
17
|
+
},
|
|
18
|
+
};
|
package/src/Sdk.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
|
|
2
|
+
/// Generated from xplatforms/schemas/barcode_scanner/Sdk.yaml
|
|
3
|
+
|
|
4
|
+
import { ScanbotBarcode } from './Barcode';
|
|
5
|
+
import { ScanbotImageProcessor } from './ImageProcessor';
|
|
6
|
+
import { ScanbotBarcodeSdkImpl } from './impl';
|
|
7
|
+
import { SdkConfiguration } from './types/base/SdkConfiguration';
|
|
8
|
+
import { LicenseInfo } from './types/core/licensing/LicensingTypes';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Entry point for all features that are part of Scanbot Barcode Scanner SDK.
|
|
12
|
+
*/
|
|
13
|
+
export const ScanbotBarcodeSdk = {
|
|
14
|
+
/**
|
|
15
|
+
* Used for barcode scanning features.
|
|
16
|
+
*/
|
|
17
|
+
Barcode: ScanbotBarcode,
|
|
18
|
+
/**
|
|
19
|
+
* Used for image processing features.
|
|
20
|
+
*/
|
|
21
|
+
ImageProcessor: ScanbotImageProcessor,
|
|
22
|
+
/**
|
|
23
|
+
* Mock camera preview by using static images as a frame source. This is useful for testing purposes.
|
|
24
|
+
* @param {string} params.imageFileUri - The file uri of the image to be used as a mock camera frame.
|
|
25
|
+
* @param {boolean} params.refreshOnEachFrame - If true, the mock camera will refresh the frame on each request, simulating a live camera feed. Default is false
|
|
26
|
+
* @returns {Promise<void>}
|
|
27
|
+
*/
|
|
28
|
+
async mockCamera(params: { imageFileUri: string; refreshOnEachFrame?: boolean }): Promise<void> {
|
|
29
|
+
return ScanbotBarcodeSdkImpl.mockCamera(params);
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* Initializes the Scanbot SDK with the preferred configuration.
|
|
33
|
+
* @param {SdkConfiguration} configuration - The SDK configuration to be used for initialization.
|
|
34
|
+
* @returns {Promise<LicenseInfo>} - Returns complete information about the license used for initialization.
|
|
35
|
+
*/
|
|
36
|
+
async initialize(configuration: SdkConfiguration): Promise<LicenseInfo> {
|
|
37
|
+
return ScanbotBarcodeSdkImpl.initialize(configuration);
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* Provides complete information about the current license.
|
|
41
|
+
* @returns {Promise<LicenseInfo>} - Returns complete information about the current license.
|
|
42
|
+
*/
|
|
43
|
+
async getLicenseInfo(): Promise<LicenseInfo> {
|
|
44
|
+
return ScanbotBarcodeSdkImpl.getLicenseInfo();
|
|
45
|
+
},
|
|
46
|
+
/**
|
|
47
|
+
* Cleans up the storage used by the Scanbot SDK.
|
|
48
|
+
* @returns {Promise<void>}
|
|
49
|
+
*/
|
|
50
|
+
async cleanupStorage(): Promise<void> {
|
|
51
|
+
return ScanbotBarcodeSdkImpl.cleanupStorage();
|
|
52
|
+
},
|
|
53
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef, useCallback, useImperativeHandle, useRef } from 'react';
|
|
2
2
|
import { NativeSyntheticEvent, Platform, StyleSheet, View } from 'react-native';
|
|
3
|
-
import { BarcodeItem } from '../../
|
|
4
|
-
import { autorelease } from '../../imageRef';
|
|
3
|
+
import { BarcodeItem, autorelease, createSBError } from '../../types';
|
|
5
4
|
import NativeBarcodeCameraView, {
|
|
6
5
|
Commands,
|
|
7
6
|
} from '../spec/ScanbotBarcodeScannerViewNativeComponent';
|
|
@@ -13,7 +12,7 @@ import {
|
|
|
13
12
|
export const ScanbotBarcodeCameraView = forwardRef<
|
|
14
13
|
ScanbotBarcodeCameraViewHandle,
|
|
15
14
|
ScanbotBarcodeCameraViewProperties
|
|
16
|
-
>(({ onBarcodeScannerResult, onBarcodeTap, ...props }, forwardedRef) => {
|
|
15
|
+
>(({ onBarcodeScannerResult, onBarcodeTap, onError, ...props }, forwardedRef) => {
|
|
17
16
|
const viewRef = useRef(null);
|
|
18
17
|
const boundBarcodeItemOverlayViews = useRef<Map<string, number>>(new Map());
|
|
19
18
|
|
|
@@ -89,7 +88,7 @@ export const ScanbotBarcodeCameraView = forwardRef<
|
|
|
89
88
|
if (result && onBarcodeTap) {
|
|
90
89
|
autorelease(() => {
|
|
91
90
|
onBarcodeTap(
|
|
92
|
-
new BarcodeItem((Platform.OS === 'ios' ? JSON.parse(result) : result) as any)
|
|
91
|
+
new BarcodeItem((Platform.OS === 'ios' ? JSON.parse(result)[0] : result) as any)
|
|
93
92
|
);
|
|
94
93
|
});
|
|
95
94
|
}
|
|
@@ -97,6 +96,15 @@ export const ScanbotBarcodeCameraView = forwardRef<
|
|
|
97
96
|
[onBarcodeTap]
|
|
98
97
|
);
|
|
99
98
|
|
|
99
|
+
const _onError = useCallback(
|
|
100
|
+
(event: NativeSyntheticEvent<any>) => {
|
|
101
|
+
if (onError) {
|
|
102
|
+
onError(createSBError(event.nativeEvent));
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
[onError]
|
|
106
|
+
);
|
|
107
|
+
|
|
100
108
|
return (
|
|
101
109
|
<View style={[styles.container, props.style]}>
|
|
102
110
|
<View
|
|
@@ -159,6 +167,7 @@ export const ScanbotBarcodeCameraView = forwardRef<
|
|
|
159
167
|
//Result
|
|
160
168
|
onBarcodeScannerResult={_onBarcodeScannerResult}
|
|
161
169
|
onSelectBarcodeResult={_onBarcodeSelectionResult}
|
|
170
|
+
onError={_onError}
|
|
162
171
|
/>
|
|
163
172
|
</View>
|
|
164
173
|
);
|
package/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewProperties.ts
RENAMED
|
@@ -7,8 +7,9 @@ import {
|
|
|
7
7
|
BarcodeFormatConfigurationBase,
|
|
8
8
|
BarcodeItem,
|
|
9
9
|
BarcodeScannerEngineMode,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
CameraModule,
|
|
11
|
+
SBError,
|
|
12
|
+
} from '../../types';
|
|
12
13
|
import {
|
|
13
14
|
BarcodeOverlayTextFormat,
|
|
14
15
|
CameraViewAspectRatio,
|
|
@@ -17,13 +18,13 @@ import {
|
|
|
17
18
|
} from './ScanbotBarcodeCameraViewTypes';
|
|
18
19
|
|
|
19
20
|
export interface ScanbotBarcodeCameraViewProperties {
|
|
20
|
-
/** Configuration properties of the finder overlay */
|
|
21
|
+
/** Configuration properties of the finder overlay. */
|
|
21
22
|
finderConfig?: FinderConfig;
|
|
22
|
-
/** Configuration properties of the camera device */
|
|
23
|
+
/** Configuration properties of the camera device. */
|
|
23
24
|
cameraConfig?: CameraConfig;
|
|
24
25
|
/** The selection overlay configuration. */
|
|
25
26
|
selectionOverlayConfig?: SelectionOverlayConfig;
|
|
26
|
-
/** Configuration for the barcode scanner **/
|
|
27
|
+
/** Configuration for the barcode scanner. **/
|
|
27
28
|
barcodeScannerConfiguration?: BarcodeCameraViewScannerConfiguration;
|
|
28
29
|
/** Whether flash is toggled on or off. */
|
|
29
30
|
flashEnabled?: boolean;
|
|
@@ -38,10 +39,12 @@ export interface ScanbotBarcodeCameraViewProperties {
|
|
|
38
39
|
* button should snap or not. Available in iOS 17.2 and later.
|
|
39
40
|
*/
|
|
40
41
|
hardwareButtonsEnabled?: boolean;
|
|
41
|
-
/* The result of the barcode scanner */
|
|
42
|
+
/* The result of the barcode scanner. */
|
|
42
43
|
onBarcodeScannerResult: (result: BarcodeItem[]) => void;
|
|
43
|
-
/* The result of tapping a barcode when selection overlay is enabled */
|
|
44
|
+
/* The result of tapping a barcode when selection overlay is enabled. */
|
|
44
45
|
onBarcodeTap?: (result: BarcodeItem) => void;
|
|
46
|
+
/* An error callback that is triggered when an error occurs. */
|
|
47
|
+
onError?: (error: SBError) => void;
|
|
45
48
|
style?: StyleProp<ViewStyle>;
|
|
46
49
|
contentContainerStyle?: StyleProp<ViewStyle>;
|
|
47
50
|
children?: React.ReactNode;
|
|
@@ -106,34 +109,39 @@ export interface BarcodeCameraViewScannerConfiguration {
|
|
|
106
109
|
barcodeFormatConfigurations?: BarcodeFormatConfigurationBase[];
|
|
107
110
|
/**
|
|
108
111
|
List of document formats to be extracted.
|
|
109
|
-
Barcodes that decode to one of the extracted document formats will have
|
|
110
|
-
By default
|
|
112
|
+
Barcodes that decode to one of the extracted document formats will have extractedDocument field in BarcodeItem populated with the parsed document.
|
|
113
|
+
By default all supported barcode document formats are accepted.
|
|
111
114
|
If empty, no barcodes will be parsed into documents.
|
|
115
|
+
To only accept the document formats listed in extractedDocumentFormats, the property onlyAcceptDocuments must be true.
|
|
112
116
|
*/
|
|
113
117
|
extractedDocumentFormats?: BarcodeDocumentFormat[];
|
|
114
118
|
/**
|
|
115
|
-
If true and
|
|
119
|
+
If true and extractedDocumentFormats is not empty, then barcodes that don't decode to one of the extracted document formats will be ignored.
|
|
120
|
+
|
|
116
121
|
Default is false
|
|
117
122
|
*/
|
|
118
123
|
onlyAcceptDocuments?: boolean;
|
|
119
124
|
/**
|
|
120
125
|
If true, the barcode image will be returned in the BarcodeItem.
|
|
126
|
+
|
|
121
127
|
Default is false
|
|
122
128
|
*/
|
|
123
129
|
returnBarcodeImage?: boolean;
|
|
124
130
|
/**
|
|
125
131
|
The engine mode for barcode scanning.
|
|
132
|
+
|
|
126
133
|
Default is NEXT_GEN
|
|
127
134
|
*/
|
|
128
135
|
engineMode?: BarcodeScannerEngineMode;
|
|
129
136
|
/**
|
|
130
|
-
|
|
137
|
+
Configuration to accumulate barcodes across multiple frames in live mode.
|
|
131
138
|
*/
|
|
132
139
|
accumulationConfig?: BarcodeAccumulationConfiguration;
|
|
133
140
|
/**
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
141
|
+
If true, the quads of linear (1D) barcodes will be further refined to more closely match the barcode's outline in the input image.
|
|
142
|
+
This will also produce stabler barcode outlines across frames for use cases such as AR.
|
|
143
|
+
|
|
144
|
+
Default is false
|
|
137
145
|
*/
|
|
138
146
|
optimizedForOverlays?: boolean;
|
|
139
147
|
}
|
|
@@ -21,6 +21,7 @@ export interface NativeFormatConfigurations {
|
|
|
21
21
|
minimum1DQuietZoneSize?: Double;
|
|
22
22
|
minimumTextLength?: Double;
|
|
23
23
|
maximumTextLength?: Double;
|
|
24
|
+
enableOneDBlurScanner?: boolean;
|
|
24
25
|
returnStartEnd?: boolean;
|
|
25
26
|
stripCheckDigits?: boolean;
|
|
26
27
|
checksum?: boolean;
|
|
@@ -52,6 +53,7 @@ export interface NativeFormatConfigurations {
|
|
|
52
53
|
formats?: string[];
|
|
53
54
|
minimumNumberOfRequiredFramesWithEqualRecognitionResult?: Double;
|
|
54
55
|
minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless?: Double;
|
|
56
|
+
oneDConfirmationMode?: string;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
export interface NativeBarcodeAccumulationConfiguration {
|
|
@@ -63,6 +65,7 @@ export interface NativeBarcodeAccumulationConfiguration {
|
|
|
63
65
|
interface NativeProps extends ViewProps {
|
|
64
66
|
onBarcodeScannerResult?: DirectEventHandler<Event>;
|
|
65
67
|
onSelectBarcodeResult: DirectEventHandler<Event>;
|
|
68
|
+
onError: DirectEventHandler<Readonly<{ message: string; code: Int32 }>>;
|
|
66
69
|
flashEnabled?: WithDefault<boolean, false>;
|
|
67
70
|
finderEnabled?: WithDefault<boolean, false>;
|
|
68
71
|
finderStrokeWidth?: WithDefault<Int32, 2>;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { NativeEventEmitter, Platform } from 'react-native';
|
|
2
|
+
import {
|
|
3
|
+
BarcodeDocumentFormat,
|
|
4
|
+
BarcodeDocumentParserResult,
|
|
5
|
+
BarcodeItem,
|
|
6
|
+
BarcodeItemMapper,
|
|
7
|
+
BarcodeMappedData,
|
|
8
|
+
BarcodeScannerConfiguration,
|
|
9
|
+
BarcodeScannerResult,
|
|
10
|
+
BarcodeScannerScreenConfiguration,
|
|
11
|
+
BarcodeScannerUiResult,
|
|
12
|
+
ImageInput,
|
|
13
|
+
MultipleScanningMode,
|
|
14
|
+
ResultWrapper,
|
|
15
|
+
SingleScanningMode,
|
|
16
|
+
createSBError,
|
|
17
|
+
handleImageInput,
|
|
18
|
+
mapRTUUIResult,
|
|
19
|
+
withSBErrorHandling,
|
|
20
|
+
} from '../types';
|
|
21
|
+
import { ScanbotBarcodeSDKModule } from './scanbotBarcodeSDKModule';
|
|
22
|
+
|
|
23
|
+
const isIOS: boolean = Platform.OS === 'ios';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export const ScanbotBarcodeImpl = {
|
|
30
|
+
async startScanner(
|
|
31
|
+
configuration: BarcodeScannerScreenConfiguration
|
|
32
|
+
): Promise<ResultWrapper<BarcodeScannerUiResult>> {
|
|
33
|
+
const barcodeItemMapperEventName: string = 'barcodeItemMapperEvent';
|
|
34
|
+
let barcodeItemMapperCallback: BarcodeItemMapper | null = null;
|
|
35
|
+
let barcodeItemMapperEventEmitter: NativeEventEmitter | undefined;
|
|
36
|
+
|
|
37
|
+
if (
|
|
38
|
+
configuration.useCase instanceof SingleScanningMode ||
|
|
39
|
+
configuration.useCase instanceof MultipleScanningMode
|
|
40
|
+
) {
|
|
41
|
+
barcodeItemMapperCallback = configuration.useCase.barcodeInfoMapping.barcodeItemMapper;
|
|
42
|
+
|
|
43
|
+
if (barcodeItemMapperCallback) {
|
|
44
|
+
barcodeItemMapperEventEmitter = new NativeEventEmitter(ScanbotBarcodeSDKModule);
|
|
45
|
+
barcodeItemMapperEventEmitter.removeAllListeners(barcodeItemMapperEventName);
|
|
46
|
+
|
|
47
|
+
barcodeItemMapperEventEmitter.addListener(
|
|
48
|
+
barcodeItemMapperEventName,
|
|
49
|
+
(barcodeItem: BarcodeItem) => {
|
|
50
|
+
const barcodeItemUuid = `${barcodeItem.text}${barcodeItem.upcEanExtension}_${barcodeItem.format}`;
|
|
51
|
+
|
|
52
|
+
barcodeItemMapperCallback!(
|
|
53
|
+
barcodeItem,
|
|
54
|
+
(barcodeMappedData: BarcodeMappedData) =>
|
|
55
|
+
ScanbotBarcodeSDKModule.onBarcodeItemMapper(barcodeItemUuid, barcodeMappedData),
|
|
56
|
+
() => ScanbotBarcodeSDKModule.onBarcodeItemMapper(barcodeItemUuid, null)
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
// On iOS, the communication with the native part is throwing an error (startBarcodeScannerV2) because of the barcodeItemMapper
|
|
62
|
+
// callback in the configuration class (not parsable), that's why we need to remove it before executing startBarcodeScannerV2 method
|
|
63
|
+
configuration.useCase.barcodeInfoMapping.barcodeItemMapper = null;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
try {
|
|
68
|
+
const barcodeResult = await ScanbotBarcodeSDKModule.startBarcodeScanner(
|
|
69
|
+
isIOS ? JSON.stringify(configuration) : configuration,
|
|
70
|
+
!!barcodeItemMapperCallback
|
|
71
|
+
);
|
|
72
|
+
return mapRTUUIResult<BarcodeScannerUiResult>(barcodeResult, BarcodeScannerUiResult);
|
|
73
|
+
} catch (error: any) {
|
|
74
|
+
throw createSBError(error);
|
|
75
|
+
} finally {
|
|
76
|
+
barcodeItemMapperEventEmitter?.removeAllListeners(barcodeItemMapperEventName);
|
|
77
|
+
barcodeItemMapperEventEmitter = undefined;
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
scanFromImage(params: {
|
|
82
|
+
image: ImageInput;
|
|
83
|
+
configuration: BarcodeScannerConfiguration;
|
|
84
|
+
}): Promise<BarcodeScannerResult> {
|
|
85
|
+
return withSBErrorHandling(
|
|
86
|
+
async () =>
|
|
87
|
+
new BarcodeScannerResult(
|
|
88
|
+
await ScanbotBarcodeSDKModule.scanBarcodesFromImage({
|
|
89
|
+
configuration: params.configuration,
|
|
90
|
+
image: handleImageInput(params.image),
|
|
91
|
+
})
|
|
92
|
+
)
|
|
93
|
+
);
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
scanFromPdf(params: {
|
|
97
|
+
pdfFileUri: string;
|
|
98
|
+
configuration: BarcodeScannerConfiguration;
|
|
99
|
+
}): Promise<BarcodeScannerResult> {
|
|
100
|
+
return withSBErrorHandling(
|
|
101
|
+
async () =>
|
|
102
|
+
new BarcodeScannerResult(await ScanbotBarcodeSDKModule.scanBarcodesFromPdf(params))
|
|
103
|
+
);
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
parseDocument(params: {
|
|
107
|
+
rawText: string;
|
|
108
|
+
acceptedFormats?: BarcodeDocumentFormat[];
|
|
109
|
+
}): Promise<BarcodeDocumentParserResult> {
|
|
110
|
+
return withSBErrorHandling(
|
|
111
|
+
async () =>
|
|
112
|
+
new BarcodeDocumentParserResult(await ScanbotBarcodeSDKModule.parseBarcodeDocument(params))
|
|
113
|
+
);
|
|
114
|
+
},
|
|
115
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { withSBErrorHandling } from '../types';
|
|
2
|
+
import { ScanbotBarcodeSDKModule } from './scanbotBarcodeSDKModule';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export const ScanbotImageProcessorImpl = {
|
|
9
|
+
readImageData(imageFileUri: string): Promise<string> {
|
|
10
|
+
return withSBErrorHandling(
|
|
11
|
+
async () => await ScanbotBarcodeSDKModule.readImageData({ imageFileUri })
|
|
12
|
+
);
|
|
13
|
+
},
|
|
14
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LicenseInfo, SdkConfiguration, withSBErrorHandling } from '../types';
|
|
2
|
+
import { ScanbotBarcodeSDKModule } from './scanbotBarcodeSDKModule';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export const ScanbotBarcodeSdkImpl = {
|
|
9
|
+
initialize(config: SdkConfiguration): Promise<LicenseInfo> {
|
|
10
|
+
return withSBErrorHandling(
|
|
11
|
+
async () => new LicenseInfo(await ScanbotBarcodeSDKModule.initialize(config))
|
|
12
|
+
);
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
getLicenseInfo(): Promise<LicenseInfo> {
|
|
16
|
+
return withSBErrorHandling(
|
|
17
|
+
async () => new LicenseInfo(await ScanbotBarcodeSDKModule.getLicenseInfo())
|
|
18
|
+
);
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
cleanupStorage() {
|
|
22
|
+
return withSBErrorHandling(ScanbotBarcodeSDKModule.cleanupStorage) as Promise<void>;
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
mockCamera(params: { imageFileUri: string; refreshOnEachFrame?: boolean }): Promise<void> {
|
|
26
|
+
return withSBErrorHandling(() => ScanbotBarcodeSDKModule.mockCamera(params));
|
|
27
|
+
},
|
|
28
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NativeModules, Platform } from 'react-native';
|
|
2
|
+
|
|
3
|
+
const LINKING_ERROR =
|
|
4
|
+
`The package 'react-native-scanbot-barcode-scanner-sdk' doesn't seem to be linked. Make sure: \n\n` +
|
|
5
|
+
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
|
|
6
|
+
'- You rebuilt the app after installing the package\n' +
|
|
7
|
+
'- You are not using Expo Go\n';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export const ScanbotBarcodeSDKModule = NativeModules.ScanbotBarcodeSdk
|
|
14
|
+
? NativeModules.ScanbotBarcodeSdk
|
|
15
|
+
: new Proxy(
|
|
16
|
+
{},
|
|
17
|
+
{
|
|
18
|
+
get() {
|
|
19
|
+
throw new Error(LINKING_ERROR);
|
|
20
|
+
},
|
|
21
|
+
}
|
|
22
|
+
);
|