demio-ui 2.5.25 → 2.5.28
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/cjs/index.js +3 -3
- package/dist/cjs/types/src/components/DnDArea/DnDArea.d.ts +0 -1
- package/dist/cjs/types/src/components/Upload/Upload.d.ts +0 -1
- package/dist/cjs/types/src/hooks/useFileValidation/useFileValidation.d.ts +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/types/src/components/DnDArea/DnDArea.d.ts +0 -1
- package/dist/esm/types/src/components/Upload/Upload.d.ts +0 -1
- package/dist/esm/types/src/hooks/useFileValidation/useFileValidation.d.ts +1 -1
- package/dist/types.d.ts +1 -3
- package/package.json +1 -1
|
@@ -12,7 +12,6 @@ export interface DnDAreaProps {
|
|
|
12
12
|
isValidationEnabled?: boolean;
|
|
13
13
|
isDimensionValidationEnabled?: boolean;
|
|
14
14
|
isSizeValidationEnabled?: boolean;
|
|
15
|
-
isTypeValidationEnabled?: boolean;
|
|
16
15
|
minHeightLimit?: number;
|
|
17
16
|
minWidthLimit?: number;
|
|
18
17
|
onDragLeave?: (event: DragEvent<HTMLDivElement>) => void;
|
|
@@ -18,7 +18,6 @@ export interface UploadProps {
|
|
|
18
18
|
isCropAllowed?: boolean;
|
|
19
19
|
isDimensionValidationEnabled?: boolean;
|
|
20
20
|
isSizeValidationEnabled?: boolean;
|
|
21
|
-
isTypeValidationEnabled?: boolean;
|
|
22
21
|
isValidationEnabled?: boolean;
|
|
23
22
|
menu?: UploadMenuItem[];
|
|
24
23
|
minHeightLimit?: number;
|
|
@@ -20,7 +20,7 @@ export declare const initialFileValidation: {
|
|
|
20
20
|
isFileTypeValid: boolean;
|
|
21
21
|
isFileValid: boolean;
|
|
22
22
|
};
|
|
23
|
-
export declare const useFileValidation: ({ acceptableFileTypes, fileSizeMbLimit, isValidationEnabled, isDimensionValidationEnabled, isSizeValidationEnabled,
|
|
23
|
+
export declare const useFileValidation: ({ acceptableFileTypes, fileSizeMbLimit, isValidationEnabled, isDimensionValidationEnabled, isSizeValidationEnabled, minHeightLimit, minWidthLimit, }: useFileValidationInterface) => {
|
|
24
24
|
validate: (file?: unknown) => Promise<{
|
|
25
25
|
isFileDimensionValid: boolean;
|
|
26
26
|
isFileSizeValid: boolean;
|
package/dist/types.d.ts
CHANGED
|
@@ -132,7 +132,6 @@ interface DnDAreaProps {
|
|
|
132
132
|
isValidationEnabled?: boolean;
|
|
133
133
|
isDimensionValidationEnabled?: boolean;
|
|
134
134
|
isSizeValidationEnabled?: boolean;
|
|
135
|
-
isTypeValidationEnabled?: boolean;
|
|
136
135
|
minHeightLimit?: number;
|
|
137
136
|
minWidthLimit?: number;
|
|
138
137
|
onDragLeave?: (event: DragEvent<HTMLDivElement>) => void;
|
|
@@ -519,7 +518,6 @@ interface UploadProps {
|
|
|
519
518
|
isCropAllowed?: boolean;
|
|
520
519
|
isDimensionValidationEnabled?: boolean;
|
|
521
520
|
isSizeValidationEnabled?: boolean;
|
|
522
|
-
isTypeValidationEnabled?: boolean;
|
|
523
521
|
isValidationEnabled?: boolean;
|
|
524
522
|
menu?: UploadMenuItem[];
|
|
525
523
|
minHeightLimit?: number;
|
|
@@ -566,7 +564,7 @@ interface useFileValidationInterface {
|
|
|
566
564
|
minHeightLimit?: number;
|
|
567
565
|
minWidthLimit?: number;
|
|
568
566
|
}
|
|
569
|
-
declare const useFileValidation: ({ acceptableFileTypes, fileSizeMbLimit, isValidationEnabled, isDimensionValidationEnabled, isSizeValidationEnabled,
|
|
567
|
+
declare const useFileValidation: ({ acceptableFileTypes, fileSizeMbLimit, isValidationEnabled, isDimensionValidationEnabled, isSizeValidationEnabled, minHeightLimit, minWidthLimit, }: useFileValidationInterface) => {
|
|
570
568
|
validate: (file?: unknown) => Promise<{
|
|
571
569
|
isFileDimensionValid: boolean;
|
|
572
570
|
isFileSizeValid: boolean;
|