scanbot-web-sdk 6.0.0-dev.3 → 6.0.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/core/bridge/compiled/BarcodeConfigs.d.ts +231 -231
- package/@types/core/bridge/compiled/BarcodeDocumentTypes.d.ts +59 -0
- package/@types/core/bridge/compiled/BarcodeScannerTypes.d.ts +26 -74
- package/@types/core/bridge/compiled/BarcodeTypes.d.ts +1 -5
- package/@types/core/bridge/compiled/CreditCardTypes.d.ts +82 -0
- package/@types/core/bridge/compiled/DocumentDetectorTypes.d.ts +59 -44
- package/@types/core/bridge/compiled/DocumentQualityAnalyzerTypes.d.ts +29 -17
- package/@types/core/bridge/compiled/FrameAccumulationTypes.d.ts +41 -0
- package/@types/core/bridge/compiled/GenericDocument.d.ts +8 -8
- package/@types/core/bridge/compiled/GenericDocumentRecognizerConfigs.d.ts +9 -42
- package/@types/core/bridge/compiled/GenericDocumentRecognizerTypes.d.ts +1 -23
- package/@types/core/bridge/compiled/GenericDocumentTypes.d.ts +1 -24
- package/@types/core/bridge/compiled/ImageTypes.d.ts +13 -0
- package/@types/core/bridge/compiled/MedicalCertificateTypes.d.ts +2 -2
- package/@types/core/bridge/compiled/ParametricFilters.d.ts +7 -5
- package/@types/core/bridge/compiled/TiffTypes.d.ts +6 -5
- package/@types/core/bridge/worker-bridge.d.ts +138 -136
- package/@types/core/worker/ScanbotSDK.Core.d.ts +14 -13
- package/@types/core-types.d.ts +3 -1
- package/@types/cropping-view.d.ts +3 -4
- package/@types/document-scanner-view.d.ts +2 -2
- package/@types/index.d.ts +1 -0
- package/@types/model/configuration/barcode-scanner-configuration.d.ts +1 -1
- package/@types/model/configuration/document-scanner-configuration.d.ts +2 -2
- package/@types/scanbot-sdk.d.ts +81 -77
- package/@types/service/document-quality-analyzer.d.ts +1 -1
- package/@types/service/tiff-generator.d.ts +1 -1
- package/@types/ui2/configuration/BarcodeRecognizerConfiguration.d.ts +2 -2
- package/@types/ui2/configuration/BarcodeScannerTypes.d.ts +1 -1
- package/@types/ui2/model/counted-barcodes.d.ts +7 -3
- package/@types/ui2/utils/barcode-mapper/expected-barcode-mapper.d.ts +3 -3
- package/@types/ui2/utils/barcode-mapper/i-barcode-mapper.d.ts +1 -2
- package/@types/ui2/views/dialog/count-edit-dialog.d.ts +3 -3
- package/@types/ui2/views/drawer/barcode-result-sidebar.d.ts +10 -0
- package/@types/ui2/views/drawer/subviews/barcode-list-item.d.ts +1 -2
- package/@types/worker/worker-bridge.d.ts +138 -136
- package/bundle/ScanbotSDK.min.js +5 -5
- package/bundle/ScanbotSDK.ui2.min.js +11 -11
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
- package/package.json +1 -1
- package/@types/core/bridge/compiled/ImageProcessorTypes.d.ts +0 -13
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import BarcodePolygon from "../../view/barcode-polygon/barocode-polygon";
|
|
2
2
|
import { ArOverlayBarcodeInfo } from "../views/ar/ar-overlay-barcode-info";
|
|
3
|
-
import { BarcodeItem } from "../configuration";
|
|
3
|
+
import { BarcodeItem, BarcodeScannerConfiguration, ExpectedBarcode } from "../configuration";
|
|
4
|
+
import type React from "react";
|
|
4
5
|
export type CountedBarcode = {
|
|
5
6
|
barcode: BarcodeItem;
|
|
6
7
|
count: number;
|
|
@@ -13,13 +14,16 @@ export type CountedBarcode = {
|
|
|
13
14
|
**/
|
|
14
15
|
type ComputeNewCountFunction = (oldCount?: number, item?: CountedBarcode) => number;
|
|
15
16
|
export declare class CountedBarcodeAction {
|
|
16
|
-
type: 'setCount' | 'remove' | 'clear' | 'setHtmlElements';
|
|
17
|
+
type: 'setCount' | 'remove' | 'clear' | 'setHtmlElements' | 'onBarcodesDetected' | 'onARCodeClick' | 'onCountEditDialogChange';
|
|
17
18
|
barcodes?: BarcodeItem[];
|
|
18
19
|
barcode?: BarcodeItem;
|
|
19
20
|
computeNewCount?: ComputeNewCountFunction;
|
|
20
21
|
labelElement?: ArOverlayBarcodeInfo;
|
|
21
22
|
polygonElement?: BarcodePolygon;
|
|
23
|
+
count?: number;
|
|
22
24
|
}
|
|
23
25
|
export declare const barcodesEqual: (a: BarcodeItem, b: BarcodeItem) => boolean;
|
|
24
|
-
export declare
|
|
26
|
+
export declare const expectedBarcodeEquals: (expected: ExpectedBarcode, barcode: BarcodeItem) => boolean;
|
|
27
|
+
export declare const findExpectedBarcode: (expectedBarcodes: ExpectedBarcode[], barcode: BarcodeItem) => ExpectedBarcode;
|
|
28
|
+
export declare function createCountedBarcodesReducer(configuration: BarcodeScannerConfiguration, lastCaptureTime: React.MutableRefObject<Date>, scanningEnabled: React.MutableRefObject<boolean>, beepAndVibrate: () => void): (countedBarcodes: Readonly<Readonly<CountedBarcode>[]>, action: CountedBarcodeAction) => Readonly<CountedBarcode>[];
|
|
25
29
|
export {};
|
|
@@ -5,9 +5,9 @@ import { ExpectedBarcode } from "../../configuration/FindAndPickScanningModeUseC
|
|
|
5
5
|
export declare class ExpectedBarcodeMapper implements IBarcodeMapper {
|
|
6
6
|
private barcodeItemSubtitleText;
|
|
7
7
|
private foundBarcodes;
|
|
8
|
-
private
|
|
9
|
-
constructor(barcodeItemSubtitleText: string, foundBarcodes: CountedBarcode[],
|
|
10
|
-
useBarcodeMappedData(barcode: BarcodeItem
|
|
8
|
+
private expectedBarcodes;
|
|
9
|
+
constructor(barcodeItemSubtitleText: string, foundBarcodes: CountedBarcode[], expectedBarcodes: ExpectedBarcode[]);
|
|
10
|
+
useBarcodeMappedData(barcode: BarcodeItem): BarcodeMappedDataLoadingState | null;
|
|
11
11
|
addOnEvictionListener(): void;
|
|
12
12
|
removeOnEvictionListener(): void;
|
|
13
13
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BarcodeItem } from "../../configuration";
|
|
3
3
|
import { BarcodeMappedData } from "../../configuration/BarcodeInfoMapping";
|
|
4
|
-
import { ExpectedBarcode } from "../../configuration/FindAndPickScanningModeUseCase";
|
|
5
4
|
export type OnEvictionListener = {
|
|
6
5
|
barcode: BarcodeItem;
|
|
7
6
|
callback: () => void;
|
|
@@ -12,7 +11,7 @@ export type BarcodeMappedDataLoadingState = {
|
|
|
12
11
|
state: 'LOADED' | 'LOADING' | 'RETRY_DIALOG_OPEN' | 'FAILED';
|
|
13
12
|
};
|
|
14
13
|
export interface IBarcodeMapper {
|
|
15
|
-
useBarcodeMappedData(barcode: BarcodeItem
|
|
14
|
+
useBarcodeMappedData(barcode: BarcodeItem): BarcodeMappedDataLoadingState | null;
|
|
16
15
|
addOnEvictionListener(listener: OnEvictionListener): void;
|
|
17
16
|
removeOnEvictionListener(listener: OnEvictionListener): void;
|
|
18
17
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ManualCountEditDialog } from "../../configuration";
|
|
3
|
-
import { CountedBarcode
|
|
2
|
+
import { BarcodeItem, ManualCountEditDialog } from "../../configuration";
|
|
3
|
+
import { CountedBarcode } from "../../model/counted-barcodes";
|
|
4
4
|
interface Props {
|
|
5
5
|
barcode: CountedBarcode | null;
|
|
6
|
-
setCounter: (
|
|
6
|
+
setCounter: (barcode: BarcodeItem, count: number) => void;
|
|
7
7
|
onCancel: () => void;
|
|
8
8
|
dialogStyling: ManualCountEditDialog;
|
|
9
9
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawerHeaderContentProps } from "./subviews/drawer-header-content";
|
|
3
|
+
import { SheetContent } from "../../configuration/MultipleScanningModeUseCase";
|
|
4
|
+
export declare class Props {
|
|
5
|
+
headerProps: DrawerHeaderContentProps;
|
|
6
|
+
sheetContent: SheetContent;
|
|
7
|
+
isEmptyStateVisible: boolean;
|
|
8
|
+
barcodeList: React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default function BarcodeResultSidebar(props: Props): React.JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { BarcodeInfoPropsBase } from "../../barcode-info/barcode-info";
|
|
3
|
-
import { BarcodeItem,
|
|
3
|
+
import { BarcodeItem, SwipeToDelete } from "../../../configuration";
|
|
4
4
|
export interface Props extends BarcodeInfoPropsBase {
|
|
5
5
|
barcode: BarcodeItem;
|
|
6
|
-
expectedBarcode?: ExpectedBarcode;
|
|
7
6
|
onDelete: (barcode: BarcodeItem) => void;
|
|
8
7
|
readonlyCount: number | null;
|
|
9
8
|
swipeToDeleteConfig: SwipeToDelete;
|