@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.
@@ -1,3 +1,3 @@
1
- import { FileViewerConfig } from './typings';
2
- export type ImageViewerContextType = (func: (close: () => void) => FileViewerConfig) => 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>;
@@ -1,4 +1,4 @@
1
- export interface FileViewerConfig {
1
+ export interface ImageViewerConfig {
2
2
  file: File;
3
3
  onClose?: () => void;
4
4
  }
@@ -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,2 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export declare const ScannerProvider: import('react').MemoExoticComponent<(props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,3 @@
1
+ import { BarcodeFormat } from '@zxing/library';
2
+ import { DecodeHintType } from 'react-zxing';
3
+ export declare const SCANNER_HINTS: Map<DecodeHintType, BarcodeFormat[]>;
@@ -0,0 +1,3 @@
1
+ import { ScannerConfig } from './typings';
2
+ export type ScannerContextType = (func: (close: () => void) => ScannerConfig) => void;
3
+ export declare const ScannerContext: import('react').Context<ScannerContextType>;
@@ -0,0 +1 @@
1
+ export declare const useScanner: () => import('./context').ScannerContextType;
@@ -0,0 +1,4 @@
1
+ export * from './hooks';
2
+ export * from './Scanner';
3
+ export * from './ScannerProvider';
4
+ export type * from './typings';
@@ -0,0 +1,5 @@
1
+ import { UseZxingOptions } from 'react-zxing';
2
+ export type ZxingOptions = Omit<UseZxingOptions, "hints">;
3
+ export interface ScannerConfig extends ZxingOptions {
4
+ onClose?: () => void;
5
+ }
@@ -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 {};