@overmap-ai/forms 1.1.1 → 1.1.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/Scanner/ScannerProvider.d.ts +4 -1
- package/dist/Scanner/context.d.ts +7 -2
- package/dist/Scanner/hooks.d.ts +2 -1
- package/dist/Scanner/typings.d.ts +1 -1
- package/dist/forms.js +602 -584
- package/dist/forms.umd.cjs +42 -42
- package/package.json +3 -2
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
|
|
2
|
+
import { UseZxingOptions } from 'react-zxing';
|
|
3
|
+
export interface ScannerProviderProps extends PropsWithChildren, Pick<UseZxingOptions, "wasmUrl"> {
|
|
4
|
+
}
|
|
5
|
+
export declare const ScannerProvider: import('react').MemoExoticComponent<(props: ScannerProviderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import { UseZxingOptions } from 'react-zxing';
|
|
1
2
|
import { ScannerConfig } from './typings';
|
|
2
|
-
export type
|
|
3
|
-
export
|
|
3
|
+
export type OpenScannerCallback = (func: (close: () => void) => ScannerConfig) => void;
|
|
4
|
+
export interface IScannerContext {
|
|
5
|
+
openScanner: OpenScannerCallback;
|
|
6
|
+
wasmUrl: UseZxingOptions["wasmUrl"];
|
|
7
|
+
}
|
|
8
|
+
export declare const ScannerContext: import('react').Context<IScannerContext>;
|
package/dist/Scanner/hooks.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const useScannerContext: () => import('./context').IScannerContext;
|
|
2
|
+
export declare const useScanner: () => import('./context').OpenScannerCallback;
|