@yudiel/react-qr-scanner
Advanced tools
Comparing version 2.0.0-beta.2 to 2.0.0-beta.3
import React, { CSSProperties } from 'react'; | ||
interface IFlashOnProps { | ||
onClick: () => void; | ||
disabled: boolean; | ||
className?: string; | ||
@@ -5,0 +6,0 @@ style?: CSSProperties; |
import React, { CSSProperties } from 'react'; | ||
interface IFlashOnProps { | ||
onClick: () => void; | ||
disabled: boolean; | ||
className?: string; | ||
@@ -5,0 +6,0 @@ style?: CSSProperties; |
@@ -5,3 +5,3 @@ import React from 'react'; | ||
interface IFinderProps { | ||
enabled: boolean; | ||
scanning: boolean; | ||
loading: boolean; | ||
@@ -8,0 +8,0 @@ video: HTMLVideoElement | null; |
import React from 'react'; | ||
interface ITorchProps { | ||
enabled: boolean; | ||
scanning: boolean; | ||
startScanning: (deviceId?: string | undefined) => void; | ||
@@ -5,0 +5,0 @@ stopScanning?: () => void; |
import React from 'react'; | ||
interface ITorchProps { | ||
enabled: boolean; | ||
scanning: boolean; | ||
switchTorch?: (value: boolean) => void; | ||
@@ -5,0 +5,0 @@ } |
@@ -14,2 +14,3 @@ import { RefObject } from 'react'; | ||
loading: boolean; | ||
scanning: boolean; | ||
switchTorch?: (value: boolean) => void; | ||
@@ -16,0 +17,0 @@ getSettings?: () => MediaTrackSettings | undefined; |
import React, { CSSProperties } from 'react'; | ||
interface IFlashOnProps { | ||
onClick: () => void; | ||
disabled: boolean; | ||
className?: string; | ||
@@ -5,0 +6,0 @@ style?: CSSProperties; |
import React, { CSSProperties } from 'react'; | ||
interface IFlashOnProps { | ||
onClick: () => void; | ||
disabled: boolean; | ||
className?: string; | ||
@@ -5,0 +6,0 @@ style?: CSSProperties; |
@@ -5,3 +5,3 @@ import React from 'react'; | ||
interface IFinderProps { | ||
enabled: boolean; | ||
scanning: boolean; | ||
loading: boolean; | ||
@@ -8,0 +8,0 @@ video: HTMLVideoElement | null; |
import React from 'react'; | ||
interface ITorchProps { | ||
enabled: boolean; | ||
scanning: boolean; | ||
startScanning: (deviceId?: string | undefined) => void; | ||
@@ -5,0 +5,0 @@ stopScanning?: () => void; |
import React from 'react'; | ||
interface ITorchProps { | ||
enabled: boolean; | ||
scanning: boolean; | ||
switchTorch?: (value: boolean) => void; | ||
@@ -5,0 +5,0 @@ } |
@@ -14,2 +14,3 @@ import { RefObject } from 'react'; | ||
loading: boolean; | ||
scanning: boolean; | ||
switchTorch?: (value: boolean) => void; | ||
@@ -16,0 +17,0 @@ getSettings?: () => MediaTrackSettings | undefined; |
@@ -54,2 +54,3 @@ import React, { CSSProperties, RefObject } from 'react'; | ||
loading: boolean; | ||
scanning: boolean; | ||
switchTorch?: (value: boolean) => void; | ||
@@ -56,0 +57,0 @@ getSettings?: () => MediaTrackSettings | undefined; |
{ | ||
"name": "@yudiel/react-qr-scanner", | ||
"version": "2.0.0-beta.2", | ||
"version": "2.0.0-beta.3", | ||
"description": "A library to scan qr codes in react.", | ||
@@ -5,0 +5,0 @@ "author": "Yudiel Curbelo", |
@@ -64,2 +64,13 @@ ### Features | ||
### IUseContinuousScannerReturn Interface | ||
| Property | Type | Description | | ||
|--------------------|------------------------------------------------|--------------------------------------------------------------------------| | ||
| `ref` | `RefObject<HTMLVideoElement>` | A reference to the video element used for scanning. | | ||
| `startScanning` | `() => void` | A function to initiate the scanning process. | | ||
| `stopScanning` | `() => void` | A function to stop the scanning process. | | ||
| `loading` | `boolean` | Indicates whether the scanner is in the process of initializing. | | ||
| `scanning` | `boolean` | Indicates whether the scanner is currently active and scanning. | | ||
| `switchTorch` | `(value: boolean) => void` \| `undefined` | An optional function to toggle the device's torch (flashlight) feature. | | ||
| `getSettings` | `() => MediaTrackSettings \| undefined` | An optional function to get the current settings of the media track. | | ||
### Error Interface | ||
@@ -66,0 +77,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
5079824
4500
111