scanbot-web-sdk 7.0.0 → 7.0.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.
Files changed (26) hide show
  1. package/@types/interfaces/i-document-scanner-handle.d.ts +1 -1
  2. package/@types/scanbot-sdk.d.ts +1 -1
  3. package/bundle/ScanbotSDK.min.js +3 -3
  4. package/bundle/ScanbotSDK.ui2.min.js +6 -6
  5. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  6. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  7. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  8. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
  9. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  10. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
  11. package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
  12. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
  13. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  14. package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
  15. package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
  16. package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
  17. package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
  18. package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
  19. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  20. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  21. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  22. package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
  23. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  24. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
  25. package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
  26. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { IScannerCommon } from "./i-scanner-common-handle";
2
2
  import type { CroppedDetectionResult } from "../core-types";
3
3
  export interface IDocumentScannerHandle extends IScannerCommon {
4
- detectAndCrop(): Promise<CroppedDetectionResult>;
4
+ detectAndCrop(): Promise<CroppedDetectionResult | null>;
5
5
  enableAutoCapture(): void;
6
6
  disableAutoCapture(): void;
7
7
  isAutoCaptureEnabled(): boolean;
@@ -55,7 +55,7 @@ export default class ScanbotSDK {
55
55
  toDataUrl(imageBuffer: ArrayBuffer): Promise<string>;
56
56
  /** @param detectionParameters {@displayType `DeepPartial<DocumentScannerParameters>`} {@link DocumentScannerParameters}*/
57
57
  detectDocument(image: Image, detectionParameters?: DeepPartial<DocumentScannerParameters>, consumeImage?: ConsumeType): Promise<DocumentDetectionResult>;
58
- detectAndCropDocument(imageBuffer: Image, consumeImage?: ConsumeType): Promise<CroppedDetectionResult>;
58
+ detectAndCropDocument(imageBuffer: Image, consumeImage?: ConsumeType): Promise<CroppedDetectionResult | null>;
59
59
  /**
60
60
  * @param image An image URL (e.g. Data URL or HTTP URL) or an Image object
61
61
  * @param detectionParameters {@displayType `Omit<DeepPartial<BarcodeScannerConfiguration>, "live">`} {@link BarcodeScannerConfiguration}