@overmap-ai/forms 1.0.32-react-flow-david-fixes.38 → 1.0.32-react-flow-david-fixes.40
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/ImageViewer/context.d.ts +2 -2
- package/dist/ImageViewer/typings.d.ts +1 -1
- package/dist/Scanner/Scanner.d.ts +7 -0
- package/dist/Scanner/ScannerProvider.d.ts +2 -0
- package/dist/Scanner/constants.d.ts +3 -0
- package/dist/Scanner/context.d.ts +3 -0
- package/dist/Scanner/hooks.d.ts +1 -0
- package/dist/Scanner/index.d.ts +4 -0
- package/dist/Scanner/typings.d.ts +5 -0
- package/dist/form/fields/ScanField/ScanInput.d.ts +0 -4
- package/dist/forms.js +386 -2342
- package/dist/forms.umd.cjs +477 -2447
- package/dist/index.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type ImageViewerContextType = (func: (close: () => void) =>
|
|
1
|
+
import { ImageViewerConfig } from './typings';
|
|
2
|
+
export type ImageViewerContextType = (func: (close: () => void) => ImageViewerConfig) => void;
|
|
3
3
|
export declare const ImageViewerContext: import('react').Context<ImageViewerContextType>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Overlay } from '@overmap-ai/blocks';
|
|
2
|
+
import { ComponentProps, ReactElement } from 'react';
|
|
3
|
+
import { ZxingOptions } from './typings';
|
|
4
|
+
export interface ScannerProps extends ComponentProps<typeof Overlay.Root>, ZxingOptions {
|
|
5
|
+
children?: ReactElement;
|
|
6
|
+
}
|
|
7
|
+
export declare const Scanner: import('react').NamedExoticComponent<ScannerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useScanner: () => import('./context').ScannerContextType;
|
|
@@ -4,8 +4,4 @@ interface ScanInputProps extends FieldRenderProps {
|
|
|
4
4
|
field: ScanField;
|
|
5
5
|
}
|
|
6
6
|
export declare const ScanInput: import('react').NamedExoticComponent<ScanInputProps>;
|
|
7
|
-
interface ScannerProps {
|
|
8
|
-
onScan: (data: string) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const Scanner: import('react').MemoExoticComponent<(props: ScannerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
11
7
|
export {};
|