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
package/ios/ScanbotBarcodeSdk.m
CHANGED
|
@@ -11,7 +11,7 @@ RCT_EXPORT_MODULE()
|
|
|
11
11
|
NSString *const BarcodeItemMapperEvent = @"barcodeItemMapperEvent";
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
RCT_EXPORT_METHOD(
|
|
14
|
+
RCT_EXPORT_METHOD(initialize:(NSDictionary *)configuration
|
|
15
15
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
16
16
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
17
17
|
[SBBWrapper initializeSDKWithConfiguration:configuration resultDelegate: [self createResultDelegate:resolve reject:reject]];
|
|
@@ -20,10 +20,10 @@ RCT_EXPORT_METHOD(initializeSdk:(NSDictionary *)configuration
|
|
|
20
20
|
RCT_EXPORT_METHOD(getLicenseInfo:
|
|
21
21
|
(RCTPromiseResolveBlock)resolve
|
|
22
22
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
23
|
-
[
|
|
23
|
+
[SBSDKManager getLicenseInfoWithResultDelegate: [self createResultDelegate:resolve reject:reject]];
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
RCT_EXPORT_METHOD(
|
|
26
|
+
RCT_EXPORT_METHOD(cleanupStorage:
|
|
27
27
|
(RCTPromiseResolveBlock)resolve
|
|
28
28
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
29
29
|
[SBBWrapper cleanupWithResultDelegate: [self createResultDelegate:resolve reject:reject]];
|
|
@@ -32,142 +32,133 @@ RCT_EXPORT_METHOD(cleanup:
|
|
|
32
32
|
RCT_EXPORT_METHOD(startBarcodeScanner:(NSString*)configuration:(BOOL)barcodeItemMapperImplemented
|
|
33
33
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
34
34
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
35
|
-
|
|
36
|
-
runOnMainThread(^{
|
|
35
|
+
|
|
37
36
|
UIViewController *presentedViewController = [self parentViewController:reject];
|
|
38
37
|
if (presentedViewController == NULL) {
|
|
39
38
|
return;
|
|
40
39
|
}
|
|
41
|
-
|
|
40
|
+
|
|
42
41
|
ScanbotBarcodeSdkPluginResultDelegate* delegate = [self createResultDelegate:resolve reject:reject];
|
|
43
|
-
|
|
42
|
+
|
|
44
43
|
if (barcodeItemMapperImplemented) {
|
|
45
|
-
[
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
[SBBarcode startScannerWithParentViewController:presentedViewController
|
|
45
|
+
stringConfiguration:configuration
|
|
46
|
+
resultDelegate:delegate
|
|
47
|
+
mapBarcodeItemCallback: ^(NSDictionary<NSString *,id> * _Nonnull barcodeItem) {
|
|
49
48
|
[self sendEventWithName:BarcodeItemMapperEvent body:barcodeItem];
|
|
50
49
|
}];
|
|
51
50
|
} else {
|
|
52
|
-
[
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
[SBBarcode startScannerWithParentViewController:presentedViewController
|
|
52
|
+
stringConfiguration:configuration
|
|
53
|
+
resultDelegate:delegate
|
|
54
|
+
mapBarcodeItemCallback:nil];
|
|
56
55
|
}
|
|
57
|
-
|
|
58
|
-
});
|
|
59
56
|
}
|
|
60
57
|
|
|
61
58
|
RCT_EXPORT_METHOD(onBarcodeItemMapper:(NSString*)barcodeItem:(NSDictionary * _Nullable)barcodeMappedData) {
|
|
62
|
-
[
|
|
59
|
+
[SBBarcode onBarcodeItemMapperWithBarcodeItemUUID:barcodeItem barcodeMappedDataAsDictionary:barcodeMappedData];
|
|
63
60
|
}
|
|
64
61
|
|
|
65
|
-
RCT_EXPORT_METHOD(
|
|
62
|
+
RCT_EXPORT_METHOD(scanBarcodesFromImage:(NSDictionary *)args
|
|
66
63
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
67
64
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
68
|
-
|
|
69
|
-
[
|
|
65
|
+
|
|
66
|
+
[SBBarcode scanFromImageWithOptions:args resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
70
67
|
}
|
|
71
68
|
|
|
72
|
-
RCT_EXPORT_METHOD(
|
|
69
|
+
RCT_EXPORT_METHOD(scanBarcodesFromPdf:(NSDictionary *)args
|
|
73
70
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
74
71
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
75
|
-
|
|
76
|
-
[
|
|
72
|
+
|
|
73
|
+
[SBBarcode scanFromPDFWithOptions:args resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
77
74
|
}
|
|
78
75
|
|
|
79
|
-
RCT_EXPORT_METHOD(
|
|
76
|
+
RCT_EXPORT_METHOD(parseBarcodeDocument:(NSDictionary *)args
|
|
80
77
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
81
78
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
82
|
-
[
|
|
79
|
+
[SBBarcode parseDocumentWithOptions:args resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
83
80
|
}
|
|
84
81
|
|
|
85
|
-
RCT_EXPORT_METHOD(
|
|
82
|
+
RCT_EXPORT_METHOD(readImageData:(NSDictionary *)args
|
|
86
83
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
87
84
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
88
|
-
[
|
|
85
|
+
[SBImageProcessor readImageDataWithOptions:args resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
89
86
|
}
|
|
90
87
|
|
|
91
|
-
|
|
92
|
-
RCT_EXPORT_METHOD(imageRefSerialize:(NSString *)uniqueId
|
|
88
|
+
RCT_EXPORT_METHOD(mockCamera:(NSDictionary *)params
|
|
93
89
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
94
90
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
95
|
-
|
|
96
|
-
[SBImageRef imageRefSerializeWithUniqueId:uniqueId resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
91
|
+
[SBSDKManager mockCameraWithOptions:params resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
97
92
|
}
|
|
98
93
|
|
|
99
|
-
|
|
94
|
+
//MARK: ImageRef
|
|
95
|
+
RCT_EXPORT_METHOD(imageRefSerialize:(NSDictionary *)args
|
|
100
96
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
101
97
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
102
|
-
|
|
103
|
-
[SBImageRef
|
|
98
|
+
|
|
99
|
+
[SBImageRef imageRefSerializeWithOperationConfig:args resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
104
100
|
}
|
|
105
101
|
|
|
106
|
-
RCT_EXPORT_METHOD(
|
|
107
|
-
options:(NSDictionary *)options
|
|
102
|
+
RCT_EXPORT_METHOD(imageRefDeserialize:(NSDictionary *)args
|
|
108
103
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
109
104
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
110
|
-
|
|
111
|
-
[SBImageRef
|
|
105
|
+
|
|
106
|
+
[SBImageRef imageRefDeserializeWithOperationConfig:args resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
112
107
|
}
|
|
113
108
|
|
|
114
|
-
RCT_EXPORT_METHOD(
|
|
115
|
-
options:(NSDictionary *)options
|
|
109
|
+
RCT_EXPORT_METHOD(imageRefFromImageFileUri:(NSDictionary *)args
|
|
116
110
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
117
111
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
118
|
-
|
|
119
|
-
[SBImageRef
|
|
112
|
+
|
|
113
|
+
[SBImageRef imageRefFromImageFileUriWithOperationConfig:args resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
120
114
|
}
|
|
121
115
|
|
|
122
|
-
RCT_EXPORT_METHOD(
|
|
116
|
+
RCT_EXPORT_METHOD(imageRefFromEncodedBuffer:(NSDictionary *)args
|
|
123
117
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
124
118
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
125
|
-
|
|
126
|
-
[SBImageRef
|
|
119
|
+
|
|
120
|
+
[SBImageRef imageRefFromEncodedBufferWithOperationConfig:args resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
127
121
|
}
|
|
128
122
|
|
|
129
|
-
RCT_EXPORT_METHOD(imageRefHibernate:(
|
|
123
|
+
RCT_EXPORT_METHOD(imageRefHibernate:(NSDictionary *)args
|
|
130
124
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
131
125
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
132
|
-
|
|
133
|
-
[SBImageRef
|
|
126
|
+
|
|
127
|
+
[SBImageRef imageRefHibernateWithOperationConfig:args resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
134
128
|
}
|
|
135
129
|
|
|
136
|
-
RCT_EXPORT_METHOD(imageRefClear:(
|
|
130
|
+
RCT_EXPORT_METHOD(imageRefClear:(NSDictionary *)args
|
|
137
131
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
138
132
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
139
|
-
|
|
140
|
-
[SBImageRef
|
|
133
|
+
|
|
134
|
+
[SBImageRef imageRefClearWithOperationConfig:args resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
141
135
|
}
|
|
142
136
|
|
|
143
|
-
RCT_EXPORT_METHOD(imageRefRelease:(
|
|
137
|
+
RCT_EXPORT_METHOD(imageRefRelease:(NSDictionary *)args
|
|
144
138
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
145
139
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
146
|
-
|
|
147
|
-
[SBImageRef
|
|
140
|
+
|
|
141
|
+
[SBImageRef imageRefReleaseWithOperationConfig:args resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
148
142
|
}
|
|
149
143
|
|
|
150
|
-
RCT_EXPORT_METHOD(imageRefInfo:(
|
|
144
|
+
RCT_EXPORT_METHOD(imageRefInfo:(NSDictionary *)args
|
|
151
145
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
152
146
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
153
|
-
|
|
154
|
-
[SBImageRef
|
|
147
|
+
|
|
148
|
+
[SBImageRef imageRefInfoWithOperationConfig:args resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
155
149
|
}
|
|
156
150
|
|
|
157
|
-
RCT_EXPORT_METHOD(imageRefSaveImage:(
|
|
158
|
-
path:(NSString *)path
|
|
159
|
-
options: (NSDictionary *)options
|
|
151
|
+
RCT_EXPORT_METHOD(imageRefSaveImage:(NSDictionary *)args
|
|
160
152
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
161
153
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
162
|
-
[SBImageRef
|
|
154
|
+
[SBImageRef imageRefSaveImageWithOperationConfig:args resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
163
155
|
}
|
|
164
156
|
|
|
165
|
-
RCT_EXPORT_METHOD(imageRefEncodeImage:(
|
|
166
|
-
options:(NSDictionary *)options
|
|
157
|
+
RCT_EXPORT_METHOD(imageRefEncodeImage:(NSDictionary *)args
|
|
167
158
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
168
159
|
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
169
|
-
|
|
170
|
-
[SBImageRef
|
|
160
|
+
|
|
161
|
+
[SBImageRef imageRefEncodeImageWithOperationConfig:args resultDelegate:[self createResultDelegate:resolve reject:reject]];
|
|
171
162
|
}
|
|
172
163
|
|
|
173
164
|
RCT_EXPORT_METHOD(makeSnapshot:(RCTPromiseResolveBlock)resolve
|
|
@@ -190,7 +181,7 @@ RCT_EXPORT_METHOD(imageRefReleaseAll:(RCTPromiseResolveBlock)resolve
|
|
|
190
181
|
reject(@"RTUUI_ERROR", @"No active view controller", nil);
|
|
191
182
|
return NULL;
|
|
192
183
|
}
|
|
193
|
-
|
|
184
|
+
|
|
194
185
|
return presentedViewController;
|
|
195
186
|
}
|
|
196
187
|
|
|
@@ -203,13 +194,4 @@ RCT_EXPORT_METHOD(imageRefReleaseAll:(RCTPromiseResolveBlock)resolve
|
|
|
203
194
|
return @[BarcodeItemMapperEvent];
|
|
204
195
|
}
|
|
205
196
|
|
|
206
|
-
void runOnMainThread(void (^block)(void))
|
|
207
|
-
{
|
|
208
|
-
if ([NSThread isMainThread]) {
|
|
209
|
-
block();
|
|
210
|
-
} else {
|
|
211
|
-
dispatch_async(dispatch_get_main_queue(), block);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
197
|
@end
|
|
@@ -14,12 +14,8 @@
|
|
|
14
14
|
return self;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
- (void)didRejectPromise:(
|
|
18
|
-
|
|
19
|
-
if([error objectForKey:@"message"]){
|
|
20
|
-
message = [error objectForKey:(@"message")];
|
|
21
|
-
}
|
|
22
|
-
rejectBlock(@"ScanbotSDKError", message, nil);
|
|
17
|
+
- (void)didRejectPromise:(SBErrorResponse * _Nonnull)error {
|
|
18
|
+
rejectBlock([@(error.code) stringValue], error.message, nil);
|
|
23
19
|
}
|
|
24
20
|
|
|
25
21
|
- (void)didResolvePromise:(NSDictionary<NSString *,id> * _Nullable)result {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ScanbotBarcode = void 0;
|
|
7
|
+
var _impl = require("./impl");
|
|
8
|
+
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
|
|
9
|
+
/// Generated from xplatforms/schemas/barcode_scanner/Barcode.yaml
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Entry point for all barcode features.
|
|
13
|
+
*/
|
|
14
|
+
const ScanbotBarcode = exports.ScanbotBarcode = {
|
|
15
|
+
/**
|
|
16
|
+
* Opens the Ready-To-Use UI screen for scanning barcodes with the desired configuration.
|
|
17
|
+
* @param {BarcodeScannerScreenConfiguration} configuration - The Barcode scanner configuration to be used for scanning.
|
|
18
|
+
* @returns {Promise<ResultWrapper<BarcodeScannerUiResult>>} - The result of the Barcode scanning operation.
|
|
19
|
+
*/
|
|
20
|
+
async startScanner(configuration) {
|
|
21
|
+
return _impl.ScanbotBarcodeImpl.startScanner(configuration);
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* Scans Barcode from a given image with the desired configuration.
|
|
25
|
+
* @param {ImageInput} params.image - The image to be used for scanning.
|
|
26
|
+
* @param {BarcodeScannerConfiguration} params.configuration - The Barcode scanner configuration to be used for scanning.
|
|
27
|
+
* @returns {Promise<BarcodeScannerResult>} - The result of the Barcode scanning operation.
|
|
28
|
+
*/
|
|
29
|
+
async scanFromImage(params) {
|
|
30
|
+
return _impl.ScanbotBarcodeImpl.scanFromImage(params);
|
|
31
|
+
},
|
|
32
|
+
/**
|
|
33
|
+
* Scans Barcode from a given PDF document with the desired configuration.
|
|
34
|
+
* @param {string} params.pdfFileUri - The PDF file uri to be used for scanning.
|
|
35
|
+
* @param {BarcodeScannerConfiguration} params.configuration - The Barcode scanner configuration to be used for scanning.
|
|
36
|
+
* @returns {Promise<BarcodeScannerResult>} - The result of the Barcode scanning operation.
|
|
37
|
+
*/
|
|
38
|
+
async scanFromPdf(params) {
|
|
39
|
+
return _impl.ScanbotBarcodeImpl.scanFromPdf(params);
|
|
40
|
+
},
|
|
41
|
+
/**
|
|
42
|
+
* Parses a barcode document from the given raw text content with the specified accepted formats.
|
|
43
|
+
* @param {string} params.rawText - The raw text content representing the document to be parsed.
|
|
44
|
+
* @param {BarcodeDocumentFormat[]} params.acceptedFormats - The list of accepted barcode document formats to be parsed. If not provided, all supported formats will be parsed.
|
|
45
|
+
* @returns {Promise<BarcodeDocumentParserResult>} - The result of the Barcode document parsing operation.
|
|
46
|
+
*/
|
|
47
|
+
async parseDocument(params) {
|
|
48
|
+
return _impl.ScanbotBarcodeImpl.parseDocument(params);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=Barcode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_impl","require","ScanbotBarcode","exports","startScanner","configuration","ScanbotBarcodeImpl","scanFromImage","params","scanFromPdf","parseDocument"],"sourceRoot":"../../src","sources":["Barcode.ts"],"mappings":";;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AAHA;AACA;;AAeA;AACA;AACA;AACO,MAAMC,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG;EAC5B;AACF;AACA;AACA;AACA;EACE,MAAME,YAAYA,CAChBC,aAAgD,EACA;IAChD,OAAOC,wBAAkB,CAACF,YAAY,CAACC,aAAa,CAAC;EACvD,CAAC;EACD;AACF;AACA;AACA;AACA;AACA;EACE,MAAME,aAAaA,CAACC,MAGnB,EAAiC;IAChC,OAAOF,wBAAkB,CAACC,aAAa,CAACC,MAAM,CAAC;EACjD,CAAC;EACD;AACF;AACA;AACA;AACA;AACA;EACE,MAAMC,WAAWA,CAACD,MAGjB,EAAiC;IAChC,OAAOF,wBAAkB,CAACG,WAAW,CAACD,MAAM,CAAC;EAC/C,CAAC;EACD;AACF;AACA;AACA;AACA;AACA;EACE,MAAME,aAAaA,CAACF,MAGnB,EAAwC;IACvC,OAAOF,wBAAkB,CAACI,aAAa,CAACF,MAAM,CAAC;EACjD;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ScanbotImageProcessor = void 0;
|
|
7
|
+
var _impl = require("./impl");
|
|
8
|
+
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
|
|
9
|
+
/// Generated from xplatforms/schemas/barcode_scanner/ImageProcessor.yaml
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Entry point for all image processing features.
|
|
13
|
+
*/
|
|
14
|
+
const ScanbotImageProcessor = exports.ScanbotImageProcessor = {
|
|
15
|
+
/**
|
|
16
|
+
* Reads image data from the given file uri and returns it as a Base 64 encoded string.
|
|
17
|
+
* @param {string} imageFileUri - File uri of the image to be read.
|
|
18
|
+
* @returns {Promise<string>} - The Base 64 encoded representation of the image.
|
|
19
|
+
*/
|
|
20
|
+
async readImageData(imageFileUri) {
|
|
21
|
+
return _impl.ScanbotImageProcessorImpl.readImageData(imageFileUri);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=ImageProcessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_impl","require","ScanbotImageProcessor","exports","readImageData","imageFileUri","ScanbotImageProcessorImpl"],"sourceRoot":"../../src","sources":["ImageProcessor.ts"],"mappings":";;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AAHA;AACA;;AAIA;AACA;AACA;AACO,MAAMC,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,GAAG;EACnC;AACF;AACA;AACA;AACA;EACE,MAAME,aAAaA,CAACC,YAAoB,EAAmB;IACzD,OAAOC,+BAAyB,CAACF,aAAa,CAACC,YAAY,CAAC;EAC9D;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ScanbotBarcodeSdk = void 0;
|
|
7
|
+
var _Barcode = require("./Barcode");
|
|
8
|
+
var _ImageProcessor = require("./ImageProcessor");
|
|
9
|
+
var _impl = require("./impl");
|
|
10
|
+
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
|
|
11
|
+
/// Generated from xplatforms/schemas/barcode_scanner/Sdk.yaml
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Entry point for all features that are part of Scanbot Barcode Scanner SDK.
|
|
15
|
+
*/
|
|
16
|
+
const ScanbotBarcodeSdk = exports.ScanbotBarcodeSdk = {
|
|
17
|
+
/**
|
|
18
|
+
* Used for barcode scanning features.
|
|
19
|
+
*/
|
|
20
|
+
Barcode: _Barcode.ScanbotBarcode,
|
|
21
|
+
/**
|
|
22
|
+
* Used for image processing features.
|
|
23
|
+
*/
|
|
24
|
+
ImageProcessor: _ImageProcessor.ScanbotImageProcessor,
|
|
25
|
+
/**
|
|
26
|
+
* Mock camera preview by using static images as a frame source. This is useful for testing purposes.
|
|
27
|
+
* @param {string} params.imageFileUri - The file uri of the image to be used as a mock camera frame.
|
|
28
|
+
* @param {boolean} params.refreshOnEachFrame - If true, the mock camera will refresh the frame on each request, simulating a live camera feed. Default is false
|
|
29
|
+
* @returns {Promise<void>}
|
|
30
|
+
*/
|
|
31
|
+
async mockCamera(params) {
|
|
32
|
+
return _impl.ScanbotBarcodeSdkImpl.mockCamera(params);
|
|
33
|
+
},
|
|
34
|
+
/**
|
|
35
|
+
* Initializes the Scanbot SDK with the preferred configuration.
|
|
36
|
+
* @param {SdkConfiguration} configuration - The SDK configuration to be used for initialization.
|
|
37
|
+
* @returns {Promise<LicenseInfo>} - Returns complete information about the license used for initialization.
|
|
38
|
+
*/
|
|
39
|
+
async initialize(configuration) {
|
|
40
|
+
return _impl.ScanbotBarcodeSdkImpl.initialize(configuration);
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* Provides complete information about the current license.
|
|
44
|
+
* @returns {Promise<LicenseInfo>} - Returns complete information about the current license.
|
|
45
|
+
*/
|
|
46
|
+
async getLicenseInfo() {
|
|
47
|
+
return _impl.ScanbotBarcodeSdkImpl.getLicenseInfo();
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* Cleans up the storage used by the Scanbot SDK.
|
|
51
|
+
* @returns {Promise<void>}
|
|
52
|
+
*/
|
|
53
|
+
async cleanupStorage() {
|
|
54
|
+
return _impl.ScanbotBarcodeSdkImpl.cleanupStorage();
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=Sdk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_Barcode","require","_ImageProcessor","_impl","ScanbotBarcodeSdk","exports","Barcode","ScanbotBarcode","ImageProcessor","ScanbotImageProcessor","mockCamera","params","ScanbotBarcodeSdkImpl","initialize","configuration","getLicenseInfo","cleanupStorage"],"sourceRoot":"../../src","sources":["Sdk.ts"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AALA;AACA;;AAQA;AACA;AACA;AACO,MAAMG,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/B;AACF;AACA;EACEE,OAAO,EAAEC,uBAAc;EACvB;AACF;AACA;EACEC,cAAc,EAAEC,qCAAqB;EACrC;AACF;AACA;AACA;AACA;AACA;EACE,MAAMC,UAAUA,CAACC,MAA8D,EAAiB;IAC9F,OAAOC,2BAAqB,CAACF,UAAU,CAACC,MAAM,CAAC;EACjD,CAAC;EACD;AACF;AACA;AACA;AACA;EACE,MAAME,UAAUA,CAACC,aAA+B,EAAwB;IACtE,OAAOF,2BAAqB,CAACC,UAAU,CAACC,aAAa,CAAC;EACxD,CAAC;EACD;AACF;AACA;AACA;EACE,MAAMC,cAAcA,CAAA,EAAyB;IAC3C,OAAOH,2BAAqB,CAACG,cAAc,CAAC,CAAC;EAC/C,CAAC;EACD;AACF;AACA;AACA;EACE,MAAMC,cAAcA,CAAA,EAAkB;IACpC,OAAOJ,2BAAqB,CAACI,cAAc,CAAC,CAAC;EAC/C;AACF,CAAC","ignoreList":[]}
|
package/lib/commonjs/{component → components}/barcode-camera-view/ScanbotBarcodeCameraView.js
RENAMED
|
@@ -6,14 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ScanbotBarcodeCameraView = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var
|
|
10
|
-
var _imageRef = require("../../imageRef");
|
|
9
|
+
var _types = require("../../types");
|
|
11
10
|
var _ScanbotBarcodeScannerViewNativeComponent = _interopRequireWildcard(require("../spec/ScanbotBarcodeScannerViewNativeComponent"));
|
|
12
|
-
function
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
12
|
const ScanbotBarcodeCameraView = exports.ScanbotBarcodeCameraView = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
15
13
|
onBarcodeScannerResult,
|
|
16
14
|
onBarcodeTap,
|
|
15
|
+
onError,
|
|
17
16
|
...props
|
|
18
17
|
}, forwardedRef) => {
|
|
19
18
|
const viewRef = (0, _react.useRef)(null);
|
|
@@ -36,8 +35,8 @@ const ScanbotBarcodeCameraView = exports.ScanbotBarcodeCameraView = /*#__PURE__*
|
|
|
36
35
|
const result = event.nativeEvent.result;
|
|
37
36
|
if (result) {
|
|
38
37
|
const barcodeItems = _reactNative.Platform.OS === 'ios' ? JSON.parse(result) : result;
|
|
39
|
-
(0,
|
|
40
|
-
onBarcodeScannerResult(barcodeItems.map(item => new
|
|
38
|
+
(0, _types.autorelease)(() => {
|
|
39
|
+
onBarcodeScannerResult(barcodeItems.map(item => new _types.BarcodeItem(item)));
|
|
41
40
|
});
|
|
42
41
|
if (props.selectionOverlayConfig?.barcodeItemOverlayViewBinder) {
|
|
43
42
|
for (let barcode of barcodeItems) {
|
|
@@ -62,11 +61,16 @@ const ScanbotBarcodeCameraView = exports.ScanbotBarcodeCameraView = /*#__PURE__*
|
|
|
62
61
|
const _onBarcodeSelectionResult = (0, _react.useCallback)(event => {
|
|
63
62
|
const result = event.nativeEvent.result;
|
|
64
63
|
if (result && onBarcodeTap) {
|
|
65
|
-
(0,
|
|
66
|
-
onBarcodeTap(new
|
|
64
|
+
(0, _types.autorelease)(() => {
|
|
65
|
+
onBarcodeTap(new _types.BarcodeItem(_reactNative.Platform.OS === 'ios' ? JSON.parse(result)[0] : result));
|
|
67
66
|
});
|
|
68
67
|
}
|
|
69
68
|
}, [onBarcodeTap]);
|
|
69
|
+
const _onError = (0, _react.useCallback)(event => {
|
|
70
|
+
if (onError) {
|
|
71
|
+
onError((0, _types.createSBError)(event.nativeEvent));
|
|
72
|
+
}
|
|
73
|
+
}, [onError]);
|
|
70
74
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
71
75
|
style: [styles.container, props.style]
|
|
72
76
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
@@ -122,7 +126,8 @@ const ScanbotBarcodeCameraView = exports.ScanbotBarcodeCameraView = /*#__PURE__*
|
|
|
122
126
|
//Result
|
|
123
127
|
,
|
|
124
128
|
onBarcodeScannerResult: _onBarcodeScannerResult,
|
|
125
|
-
onSelectBarcodeResult: _onBarcodeSelectionResult
|
|
129
|
+
onSelectBarcodeResult: _onBarcodeSelectionResult,
|
|
130
|
+
onError: _onError
|
|
126
131
|
}));
|
|
127
132
|
});
|
|
128
133
|
const styles = _reactNative.StyleSheet.create({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_types","_ScanbotBarcodeScannerViewNativeComponent","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ScanbotBarcodeCameraView","exports","forwardRef","onBarcodeScannerResult","onBarcodeTap","onError","props","forwardedRef","viewRef","useRef","boundBarcodeItemOverlayViews","Map","useImperativeHandle","freezeCamera","current","Commands","unfreezeCamera","_onBarcodeScannerResult","useCallback","event","result","nativeEvent","barcodeItems","Platform","OS","JSON","parse","autorelease","map","item","BarcodeItem","selectionOverlayConfig","barcodeItemOverlayViewBinder","barcode","barcodeItemUuid","text","upcEanExtension","format","barcodeItemNextBind","undefined","Date","now","bindingConfig","refreshRate","bindBarcodeItemOverlayView","stringify","clear","_onBarcodeSelectionResult","_onError","createSBError","createElement","View","style","styles","container","pointerEvents","contentContainerStyle","children","finderEnabled","finderConfig","viewFinderEnabled","finderStrokeWidth","finderLineWidth","finderMinPadding","minPadding","finderStrokeColor","finderLineColor","finderOverlayColor","overlayColor","finderInset","finderRequiredAspectRatios","requiredAspectRatio","cameraZoomFactor","select","ios","cameraConfig","parseFloat","toFixed","android","cameraZoomRange","minZoom","maxZoom","minFocusDistanceLock","cameraModule","overlayEnabled","overlayPolygonColor","polygonColor","overlayStrokeColor","strokeColor","overlayTextFormat","textFormat","overlayTextColor","textColor","overlayTextContainerColor","textContainerColor","overlayLoadingTextValue","loadingTextValue","overlayBarcodeItemOverlayViewBinder","configFormatConfigurations","barcodeScannerConfiguration","barcodeFormatConfigurations","configExtractedDocumentFormats","extractedDocumentFormats","configOnlyAcceptDocuments","onlyAcceptDocuments","configReturnBarcodeImage","returnBarcodeImage","configEngineMode","engineMode","configAccumulation","accumulationConfig","configOptimizedForOverlays","optimizedForOverlays","flashEnabled","scanningEnabled","hardwareButtonsEnabled","ref","onSelectBarcodeResult","StyleSheet","create","flex","position","width","height","zIndex"],"sourceRoot":"../../../../src","sources":["components/barcode-camera-view/ScanbotBarcodeCameraView.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,yCAAA,GAAAJ,uBAAA,CAAAC,OAAA;AAE0D,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAA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barcode-camera-view/ScanbotBarcodeCameraViewProperties.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/barcode-camera-view/ScanbotBarcodeCameraViewTypes.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var _ScanbotBarcodeCameraView = require("./ScanbotBarcodeCameraView");
|
|
6
|
+
var _ScanbotBarcodeCameraView = require("./barcode-camera-view/ScanbotBarcodeCameraView");
|
|
7
7
|
Object.keys(_ScanbotBarcodeCameraView).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
9
|
if (key in exports && exports[key] === _ScanbotBarcodeCameraView[key]) return;
|
|
@@ -14,7 +14,7 @@ Object.keys(_ScanbotBarcodeCameraView).forEach(function (key) {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
-
var _ScanbotBarcodeCameraViewProperties = require("./ScanbotBarcodeCameraViewProperties");
|
|
17
|
+
var _ScanbotBarcodeCameraViewProperties = require("./barcode-camera-view/ScanbotBarcodeCameraViewProperties");
|
|
18
18
|
Object.keys(_ScanbotBarcodeCameraViewProperties).forEach(function (key) {
|
|
19
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
20
|
if (key in exports && exports[key] === _ScanbotBarcodeCameraViewProperties[key]) return;
|
|
@@ -25,7 +25,7 @@ Object.keys(_ScanbotBarcodeCameraViewProperties).forEach(function (key) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
-
var _ScanbotBarcodeCameraViewTypes = require("./ScanbotBarcodeCameraViewTypes");
|
|
28
|
+
var _ScanbotBarcodeCameraViewTypes = require("./barcode-camera-view/ScanbotBarcodeCameraViewTypes");
|
|
29
29
|
Object.keys(_ScanbotBarcodeCameraViewTypes).forEach(function (key) {
|
|
30
30
|
if (key === "default" || key === "__esModule") return;
|
|
31
31
|
if (key in exports && exports[key] === _ScanbotBarcodeCameraViewTypes[key]) return;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_ScanbotBarcodeCameraView","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_ScanbotBarcodeCameraViewProperties","_ScanbotBarcodeCameraViewTypes"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;;;;AAAA,IAAAA,yBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,yBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,yBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,yBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,mCAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,mCAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,mCAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,mCAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,8BAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,8BAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,8BAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,8BAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","e","__esModule","default","_default","exports","codegenNativeComponent","Commands","codegenNativeCommands","supportedCommands"],"sourceRoot":"../../../../src","sources":["components/spec/ScanbotBarcodeScannerViewNativeComponent.ts"],"mappings":";;;;;;AAQA,IAAAA,sBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAqG9E,IAAAG,+BAAsB,EAAc,2BAA2B,CAAC;AAYxE,MAAMC,QAAQ,GAAAF,OAAA,CAAAE,QAAA,GAAG,IAAAC,8BAAqB,EAAiB;EAC5DC,iBAAiB,EAAE,CAAC,cAAc,EAAE,gBAAgB,EAAE,4BAA4B;AACpF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ScanbotBarcodeImpl = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _types = require("../types");
|
|
9
|
+
var _scanbotBarcodeSDKModule = require("./scanbotBarcodeSDKModule");
|
|
10
|
+
const isIOS = _reactNative.Platform.OS === 'ios';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
const ScanbotBarcodeImpl = exports.ScanbotBarcodeImpl = {
|
|
17
|
+
async startScanner(configuration) {
|
|
18
|
+
const barcodeItemMapperEventName = 'barcodeItemMapperEvent';
|
|
19
|
+
let barcodeItemMapperCallback = null;
|
|
20
|
+
let barcodeItemMapperEventEmitter;
|
|
21
|
+
if (configuration.useCase instanceof _types.SingleScanningMode || configuration.useCase instanceof _types.MultipleScanningMode) {
|
|
22
|
+
barcodeItemMapperCallback = configuration.useCase.barcodeInfoMapping.barcodeItemMapper;
|
|
23
|
+
if (barcodeItemMapperCallback) {
|
|
24
|
+
barcodeItemMapperEventEmitter = new _reactNative.NativeEventEmitter(_scanbotBarcodeSDKModule.ScanbotBarcodeSDKModule);
|
|
25
|
+
barcodeItemMapperEventEmitter.removeAllListeners(barcodeItemMapperEventName);
|
|
26
|
+
barcodeItemMapperEventEmitter.addListener(barcodeItemMapperEventName, barcodeItem => {
|
|
27
|
+
const barcodeItemUuid = `${barcodeItem.text}${barcodeItem.upcEanExtension}_${barcodeItem.format}`;
|
|
28
|
+
barcodeItemMapperCallback(barcodeItem, barcodeMappedData => _scanbotBarcodeSDKModule.ScanbotBarcodeSDKModule.onBarcodeItemMapper(barcodeItemUuid, barcodeMappedData), () => _scanbotBarcodeSDKModule.ScanbotBarcodeSDKModule.onBarcodeItemMapper(barcodeItemUuid, null));
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
// On iOS, the communication with the native part is throwing an error (startBarcodeScannerV2) because of the barcodeItemMapper
|
|
32
|
+
// callback in the configuration class (not parsable), that's why we need to remove it before executing startBarcodeScannerV2 method
|
|
33
|
+
configuration.useCase.barcodeInfoMapping.barcodeItemMapper = null;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
try {
|
|
37
|
+
const barcodeResult = await _scanbotBarcodeSDKModule.ScanbotBarcodeSDKModule.startBarcodeScanner(isIOS ? JSON.stringify(configuration) : configuration, !!barcodeItemMapperCallback);
|
|
38
|
+
return (0, _types.mapRTUUIResult)(barcodeResult, _types.BarcodeScannerUiResult);
|
|
39
|
+
} catch (error) {
|
|
40
|
+
throw (0, _types.createSBError)(error);
|
|
41
|
+
} finally {
|
|
42
|
+
barcodeItemMapperEventEmitter?.removeAllListeners(barcodeItemMapperEventName);
|
|
43
|
+
barcodeItemMapperEventEmitter = undefined;
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
scanFromImage(params) {
|
|
47
|
+
return (0, _types.withSBErrorHandling)(async () => new _types.BarcodeScannerResult(await _scanbotBarcodeSDKModule.ScanbotBarcodeSDKModule.scanBarcodesFromImage({
|
|
48
|
+
configuration: params.configuration,
|
|
49
|
+
image: (0, _types.handleImageInput)(params.image)
|
|
50
|
+
})));
|
|
51
|
+
},
|
|
52
|
+
scanFromPdf(params) {
|
|
53
|
+
return (0, _types.withSBErrorHandling)(async () => new _types.BarcodeScannerResult(await _scanbotBarcodeSDKModule.ScanbotBarcodeSDKModule.scanBarcodesFromPdf(params)));
|
|
54
|
+
},
|
|
55
|
+
parseDocument(params) {
|
|
56
|
+
return (0, _types.withSBErrorHandling)(async () => new _types.BarcodeDocumentParserResult(await _scanbotBarcodeSDKModule.ScanbotBarcodeSDKModule.parseBarcodeDocument(params)));
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=BarcodeScannerImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_types","_scanbotBarcodeSDKModule","isIOS","Platform","OS","ScanbotBarcodeImpl","exports","startScanner","configuration","barcodeItemMapperEventName","barcodeItemMapperCallback","barcodeItemMapperEventEmitter","useCase","SingleScanningMode","MultipleScanningMode","barcodeInfoMapping","barcodeItemMapper","NativeEventEmitter","ScanbotBarcodeSDKModule","removeAllListeners","addListener","barcodeItem","barcodeItemUuid","text","upcEanExtension","format","barcodeMappedData","onBarcodeItemMapper","barcodeResult","startBarcodeScanner","JSON","stringify","mapRTUUIResult","BarcodeScannerUiResult","error","createSBError","undefined","scanFromImage","params","withSBErrorHandling","BarcodeScannerResult","scanBarcodesFromImage","image","handleImageInput","scanFromPdf","scanBarcodesFromPdf","parseDocument","BarcodeDocumentParserResult","parseBarcodeDocument"],"sourceRoot":"../../../src","sources":["impl/BarcodeScannerImpl.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAmBA,IAAAE,wBAAA,GAAAF,OAAA;AAEA,MAAMG,KAAc,GAAGC,qBAAQ,CAACC,EAAE,KAAK,KAAK;;AAE5C;AACA;AACA;AACA;AACO,MAAMC,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG;EAChC,MAAME,YAAYA,CAChBC,aAAgD,EACA;IAChD,MAAMC,0BAAkC,GAAG,wBAAwB;IACnE,IAAIC,yBAAmD,GAAG,IAAI;IAC9D,IAAIC,6BAA6D;IAEjE,IACEH,aAAa,CAACI,OAAO,YAAYC,yBAAkB,IACnDL,aAAa,CAACI,OAAO,YAAYE,2BAAoB,EACrD;MACAJ,yBAAyB,GAAGF,aAAa,CAACI,OAAO,CAACG,kBAAkB,CAACC,iBAAiB;MAEtF,IAAIN,yBAAyB,EAAE;QAC7BC,6BAA6B,GAAG,IAAIM,+BAAkB,CAACC,gDAAuB,CAAC;QAC/EP,6BAA6B,CAACQ,kBAAkB,CAACV,0BAA0B,CAAC;QAE5EE,6BAA6B,CAACS,WAAW,CACvCX,0BAA0B,EACzBY,WAAwB,IAAK;UAC5B,MAAMC,eAAe,GAAG,GAAGD,WAAW,CAACE,IAAI,GAAGF,WAAW,CAACG,eAAe,IAAIH,WAAW,CAACI,MAAM,EAAE;UAEjGf,yBAAyB,CACvBW,WAAW,EACVK,iBAAoC,IACnCR,gDAAuB,CAACS,mBAAmB,CAACL,eAAe,EAAEI,iBAAiB,CAAC,EACjF,MAAMR,gDAAuB,CAACS,mBAAmB,CAACL,eAAe,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
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ScanbotImageProcessorImpl = void 0;
|
|
7
|
+
var _types = require("../types");
|
|
8
|
+
var _scanbotBarcodeSDKModule = require("./scanbotBarcodeSDKModule");
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
const ScanbotImageProcessorImpl = exports.ScanbotImageProcessorImpl = {
|
|
14
|
+
readImageData(imageFileUri) {
|
|
15
|
+
return (0, _types.withSBErrorHandling)(async () => await _scanbotBarcodeSDKModule.ScanbotBarcodeSDKModule.readImageData({
|
|
16
|
+
imageFileUri
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=ImageProcessorImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_types","require","_scanbotBarcodeSDKModule","ScanbotImageProcessorImpl","exports","readImageData","imageFileUri","withSBErrorHandling","ScanbotBarcodeSDKModule"],"sourceRoot":"../../../src","sources":["impl/ImageProcessorImpl.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,wBAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA;AACO,MAAME,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG;EACvCE,aAAaA,CAACC,YAAoB,EAAmB;IACnD,OAAO,IAAAC,0BAAmB,EACxB,YAAY,MAAMC,gDAAuB,CAACH,aAAa,CAAC;MAAEC;IAAa,CAAC,CAC1E,CAAC;EACH;AACF,CAAC","ignoreList":[]}
|