gantri-components 2.187.2-beta.2 → 2.187.3
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 +0 -1
- package/dist/components/file-uploader/hooks/use-uploader-actions/hooks/use-handle-selected-files/use-handle-selected-files.types.d.ts +1 -1
- package/dist/components/file-uploader/hooks/use-uploader-actions/use-uploader-actions.types.d.ts +1 -1
- package/dist/components/table/components/table-actions-wrapper/components/sort/helpers/get-sort-options/get-sort-options.d.ts +2 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,6 @@ export type FileUploaderProps = {
|
|
|
11
11
|
/** Any children passed will appear just within the uploader above everything else. Use this for notifications like download toasts. */
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
className?: string;
|
|
14
|
-
disableDeleteOnReplace?: boolean;
|
|
15
14
|
disabledDescription?: string;
|
|
16
15
|
enableCopyUrl?: boolean;
|
|
17
16
|
fileName: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { SelectedFileDetails, FileUploaderProps, DeleteFile } from '../../../../file-uploader.types';
|
|
3
3
|
import { OptionalValues } from '../../../../../../types/common';
|
|
4
|
-
export type UseHandleSelectedFilesProps = OptionalValues<Required<Pick<FileUploaderProps, '
|
|
4
|
+
export type UseHandleSelectedFilesProps = OptionalValues<Required<Pick<FileUploaderProps, 'expectedExtensions' | 'fileUrl' | 'handleFileSelected' | 'handleUploadsComplete' | 'isUploaderOnly' | 'maxFileSizeMB' | 'maxUploadsAllowed' | 'minImageHeight' | 'minImageWidth' | 'onError' | 'onValidationCompleted' | 'onValidationStarted' | 'onlyUseCustomValidationFn' | 'transformFileName' | 'validateFile' | 'validateSequentially'>>> & {
|
|
5
5
|
deleteFile: DeleteFile;
|
|
6
6
|
isReplacing: boolean;
|
|
7
7
|
purgeInput: () => void;
|
package/dist/components/file-uploader/hooks/use-uploader-actions/use-uploader-actions.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileUploaderProps } from '../../file-uploader.types';
|
|
2
2
|
import { OptionalValues } from '../../../../types/common';
|
|
3
|
-
export type UseUploadActionsProps = OptionalValues<Required<Pick<FileUploaderProps, '
|
|
3
|
+
export type UseUploadActionsProps = OptionalValues<Required<Pick<FileUploaderProps, 'expectedExtensions' | 'fileName' | 'fileUrl' | 'handleDeleteFile' | 'handleFileSelected' | 'handleUploadsComplete' | 'handleUploadFile' | 'isUploaderOnly' | 'maxUploadsAllowed' | 'onError' | 'onValidationCompleted' | 'onValidationStarted' | 'onlyUseCustomValidationFn' | 'purifyFileName' | 'transformFileName' | 'validateFile' | 'validateSequentially'>>> & Partial<Pick<FileUploaderProps, 'maxFileSizeMB' | 'minImageHeight' | 'minImageWidth'>> & {
|
|
4
4
|
purgeInput: () => void;
|
|
5
5
|
};
|
|
@@ -4,5 +4,7 @@ interface MappedSortItem<SortingField = string> {
|
|
|
4
4
|
label: string;
|
|
5
5
|
value: SortInfo<SortingField>;
|
|
6
6
|
}
|
|
7
|
+
export declare const ascendingSuffix = "(Asc)";
|
|
8
|
+
export declare const descendingSuffix = "(Desc)";
|
|
7
9
|
export declare const getSortOptions: <SortingField = string>(sortingOptions?: TableSortField<SortingField>[]) => MappedSortItem<SortingField>[];
|
|
8
10
|
export {};
|