multi-qr-scanner-poc 0.0.2 → 0.0.3
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/dist/App.d.ts +2 -0
- package/dist/components/MultiQRScanner.d.ts +26 -1
- package/dist/main.d.ts +0 -0
- package/package.json +1 -1
package/dist/App.d.ts
ADDED
|
@@ -1 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface Point2D {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export interface DetectedBarcode {
|
|
7
|
+
boundingBox: DOMRectReadOnly;
|
|
8
|
+
cornerPoints: Point2D[];
|
|
9
|
+
format: string;
|
|
10
|
+
rawValue: string;
|
|
11
|
+
}
|
|
12
|
+
declare global {
|
|
13
|
+
interface Window {
|
|
14
|
+
BarcodeDetector: any;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export type ScanStatus = 'pending' | 'processing' | 'success' | 'error';
|
|
18
|
+
export interface MultiQRScannerProps {
|
|
19
|
+
onCodesDetected: (codes: DetectedBarcode[]) => void;
|
|
20
|
+
codeStatuses?: Map<string, ScanStatus>;
|
|
21
|
+
scanInterval?: number;
|
|
22
|
+
className?: string;
|
|
23
|
+
style?: React.CSSProperties;
|
|
24
|
+
}
|
|
25
|
+
declare const MultiQRScanner: React.FC<MultiQRScannerProps>;
|
|
26
|
+
export default MultiQRScanner;
|
package/dist/main.d.ts
ADDED
|
File without changes
|