demio-ui 2.5.16 → 2.5.17
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,5 +1,5 @@
|
|
|
1
1
|
import React, { DragEvent, FC, ReactNode, SetStateAction } from 'react';
|
|
2
|
-
import { RcFile, UploadProgressEvent } from 'rc-upload/es/interface';
|
|
2
|
+
import { RcFile, UploadProgressEvent, UploadRequestOption } from 'rc-upload/es/interface';
|
|
3
3
|
import { Area, Point } from 'react-easy-crop';
|
|
4
4
|
import { UploadMenuItem } from '../UploadMenu/UploadMenu';
|
|
5
5
|
export interface UploadProps {
|
|
@@ -40,6 +40,7 @@ export interface UploadProps {
|
|
|
40
40
|
onSuccess?: (response: Record<string, unknown>, file: RcFile, xhr: XMLHttpRequest) => void;
|
|
41
41
|
onZoomChange?: (value: number) => void;
|
|
42
42
|
uploadPercent?: number;
|
|
43
|
+
uploadRequest?: (options: UploadRequestOption) => void;
|
|
43
44
|
}
|
|
44
45
|
declare const Upload: FC<UploadProps>;
|
|
45
46
|
export default Upload;
|
package/dist/types.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
|
7
7
|
import { PopoverContentTypeProps } from '@radix-ui/react-popover';
|
|
8
8
|
export { Content as PopoverContent, Portal as PopoverPortal, Root as PopoverRoot, Trigger as PopoverTrigger } from '@radix-ui/react-popover';
|
|
9
9
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
10
|
-
import { RcFile, UploadProgressEvent } from 'rc-upload/es/interface';
|
|
10
|
+
import { RcFile, UploadProgressEvent, UploadRequestOption } from 'rc-upload/es/interface';
|
|
11
11
|
|
|
12
12
|
type Props$l = {
|
|
13
13
|
className?: string;
|
|
@@ -538,6 +538,7 @@ interface UploadProps {
|
|
|
538
538
|
onSuccess?: (response: Record<string, unknown>, file: RcFile, xhr: XMLHttpRequest) => void;
|
|
539
539
|
onZoomChange?: (value: number) => void;
|
|
540
540
|
uploadPercent?: number;
|
|
541
|
+
uploadRequest?: (options: UploadRequestOption) => void;
|
|
541
542
|
}
|
|
542
543
|
declare const Upload: FC<UploadProps>;
|
|
543
544
|
|