demio-ui 2.5.19 → 2.5.20
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.
|
@@ -23,7 +23,7 @@ export interface UploadProps {
|
|
|
23
23
|
menu?: UploadMenuItem[];
|
|
24
24
|
minHeightLimit?: number;
|
|
25
25
|
minWidthLimit?: number;
|
|
26
|
-
|
|
26
|
+
onUpload?: (file: File, fileList?: File[]) => void;
|
|
27
27
|
onCropCancel?: () => void;
|
|
28
28
|
onCropOk?: (croppedUrl: string) => void;
|
|
29
29
|
onCropChange?: (data: SetStateAction<Point>) => void;
|
|
@@ -31,10 +31,10 @@ export interface UploadProps {
|
|
|
31
31
|
onDragLeave?: (event: DragEvent<HTMLDivElement>) => void;
|
|
32
32
|
onDragOver?: (event: DragEvent<HTMLDivElement>) => void;
|
|
33
33
|
onDrop?: (event: DragEvent<HTMLDivElement>, file: File | null) => void;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
onReadFileError?: (error: Error | DOMException | null | unknown, file: File) => void;
|
|
35
|
+
onReadFileProgress?: (progress: number, file: File) => void;
|
|
36
|
+
onReadFileStart?: (file: File) => void;
|
|
37
|
+
onReadFileSuccess?: (response: string | ArrayBuffer | null, file: File) => void;
|
|
38
38
|
onZoomChange?: (value: number) => void;
|
|
39
39
|
previewDuration?: string;
|
|
40
40
|
previewFileName?: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -523,7 +523,7 @@ interface UploadProps {
|
|
|
523
523
|
menu?: UploadMenuItem[];
|
|
524
524
|
minHeightLimit?: number;
|
|
525
525
|
minWidthLimit?: number;
|
|
526
|
-
|
|
526
|
+
onUpload?: (file: File, fileList?: File[]) => void;
|
|
527
527
|
onCropCancel?: () => void;
|
|
528
528
|
onCropOk?: (croppedUrl: string) => void;
|
|
529
529
|
onCropChange?: (data: SetStateAction<Point>) => void;
|
|
@@ -531,10 +531,10 @@ interface UploadProps {
|
|
|
531
531
|
onDragLeave?: (event: DragEvent<HTMLDivElement>) => void;
|
|
532
532
|
onDragOver?: (event: DragEvent<HTMLDivElement>) => void;
|
|
533
533
|
onDrop?: (event: DragEvent<HTMLDivElement>, file: File | null) => void;
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
534
|
+
onReadFileError?: (error: Error | DOMException | null | unknown, file: File) => void;
|
|
535
|
+
onReadFileProgress?: (progress: number, file: File) => void;
|
|
536
|
+
onReadFileStart?: (file: File) => void;
|
|
537
|
+
onReadFileSuccess?: (response: string | ArrayBuffer | null, file: File) => void;
|
|
538
538
|
onZoomChange?: (value: number) => void;
|
|
539
539
|
previewDuration?: string;
|
|
540
540
|
previewFileName?: string;
|