gantri-components 2.133.0-beta.11 → 2.133.0-beta.12
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/components/file-uploader/file-uploader.types.d.ts +1 -1
- package/dist/components/file-uploader/helpers/get-valid-files/get-valid-files.d.ts +2 -1
- package/dist/components/file-uploader/helpers/get-valid-files/get-valid-files.types.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ export type FileUploaderProps = {
|
|
|
22
22
|
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
23
23
|
onClick?: BoxProps['onClick'];
|
|
24
24
|
onError: OnFileUploaderError;
|
|
25
|
-
onValidationCompleted?: (validFiles:
|
|
25
|
+
onValidationCompleted?: (validFiles: SelectedFileDetails[]) => void | Promise<void>;
|
|
26
26
|
onValidationStarted?: () => void | Promise<void>;
|
|
27
27
|
onlyUseCustomValidationFn?: boolean;
|
|
28
28
|
/** Used to show loading indicator for `'thumbnail'` variant. For the `'button'` variant, it can be passed here or as part of `buttonProps`. */
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { SelectedFileDetails } from '../../file-uploader.types';
|
|
1
2
|
import { GetValidFilesProps } from './get-valid-files.types';
|
|
2
|
-
export declare const getValidFiles: (props: GetValidFilesProps) => Promise<
|
|
3
|
+
export declare const getValidFiles: (props: GetValidFilesProps) => Promise<SelectedFileDetails[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileUploaderProps } from '../../file-uploader.types';
|
|
2
2
|
import { OptionalValues } from '../../../../types/common';
|
|
3
|
-
export type GetValidFilesProps = OptionalValues<Required<Pick<FileUploaderProps, 'expectedExtensions' | 'maxFileSizeMB' | 'maxUploadsAllowed' | 'minImageHeight' | 'minImageWidth' | 'onError' | 'onlyUseCustomValidationFn' | '
|
|
3
|
+
export type GetValidFilesProps = OptionalValues<Required<Pick<FileUploaderProps, 'expectedExtensions' | 'maxFileSizeMB' | 'maxUploadsAllowed' | 'minImageHeight' | 'minImageWidth' | 'onError' | 'onlyUseCustomValidationFn' | 'validateFile' | 'validateSequentially'>>> & {
|
|
4
4
|
files: File[];
|
|
5
5
|
};
|