wacomm 2.2.2 → 2.2.5

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,11 +1,11 @@
1
- import { Area } from 'react-easy-crop';
2
1
  interface ImageCropperProps {
3
2
  imageUrl: string;
4
- onSubmit: (croppedAreaPixels: Area, imageSrc: string) => void;
3
+ onSubmit: (x: number, y: number, size: number) => void;
4
+ onSelect: (file: File) => void;
5
5
  error: string;
6
6
  isLoading: boolean;
7
7
  isCompleted: boolean;
8
8
  className?: string;
9
9
  }
10
- export default function ImageCropper({ imageUrl, onSubmit, error, isLoading, isCompleted, className }: ImageCropperProps): import("react/jsx-runtime").JSX.Element;
10
+ export default function ImageCropper({ imageUrl, onSubmit, onSelect, error, isLoading, isCompleted, className }: ImageCropperProps): import("react/jsx-runtime").JSX.Element;
11
11
  export {};
@@ -5,3 +5,5 @@ export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const NoImage: Story;
7
7
  export declare const WithImage: Story;
8
+ export declare const Loading: Story;
9
+ export declare const WithError: Story;