@yudiel/react-qr-scanner
Advanced tools
Comparing version 2.0.0-beta.4 to 2.0.0-beta.5
export * from './components/Scanner'; | ||
export * from './hooks/useDevices'; | ||
export * from './misc/overlays'; | ||
export * from './types'; |
export * from './components/Scanner'; | ||
export * from './hooks/useDevices'; | ||
export * from './misc/overlays'; | ||
export * from './types'; |
@@ -24,2 +24,9 @@ import React, { CSSProperties, ReactNode } from 'react'; | ||
interface IUseScannerState { | ||
lastScan: number; | ||
lastOnScan: number; | ||
contentBefore: string[]; | ||
lastScanHadContent: boolean; | ||
} | ||
interface IDetectedBarcode { | ||
@@ -32,2 +39,24 @@ boundingBox: IBoundingBox; | ||
interface IStartTaskResult { | ||
type: 'start'; | ||
data: { | ||
videoEl: HTMLVideoElement; | ||
stream: MediaStream; | ||
capabilities: Partial<MediaTrackCapabilities>; | ||
constraints: MediaTrackConstraints; | ||
isTorchOn: boolean; | ||
}; | ||
} | ||
interface IStopTaskResult { | ||
type: 'stop'; | ||
data: {}; | ||
} | ||
interface IStartCamera { | ||
constraints: MediaTrackConstraints; | ||
torch: boolean; | ||
restart?: boolean; | ||
} | ||
interface IScannerStyles { | ||
@@ -61,2 +90,2 @@ container?: CSSProperties; | ||
export { type IScannerProps, Scanner, boundingBox, centerText, outline, useDevices }; | ||
export { type IBoundingBox, type IDetectedBarcode, type IPoint, type IScannerComponents, type IScannerProps, type IScannerStyles, type IStartCamera, type IStartTaskResult, type IStopTaskResult, type IUseScannerState, Scanner, type TrackFunction, boundingBox, centerText, outline, useDevices }; |
{ | ||
"name": "@yudiel/react-qr-scanner", | ||
"version": "2.0.0-beta.4", | ||
"version": "2.0.0-beta.5", | ||
"description": "A library to scan qr codes in react.", | ||
@@ -5,0 +5,0 @@ "author": "Yudiel Curbelo", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
835277
1834
8