gantri-components 2.147.0-beta.2 → 2.147.0-beta.4
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/components/icon-recover/icon-recover.d.ts +2 -2
- package/dist/components/file-uploader/components/icon-recover/icon-recover.types.d.ts +2 -1
- package/dist/components/file-uploader/components/uploader-actions/uploader-actions.types.d.ts +0 -2
- package/dist/components/file-uploader/file-uploader.types.d.ts +1 -2
- 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
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const
|
|
2
|
+
import { IconRecoverFilePropsDef } from './icon-recover.types';
|
|
3
|
+
export declare const IconRecoverFile: (props: IconRecoverFilePropsDef) => React.JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type HandleRecoverFileDef = (fileUrl: string) => Promise<void>;
|
|
2
|
-
export interface
|
|
2
|
+
export interface IconRecoverFilePropsDef {
|
|
3
3
|
fileUrl: string | undefined;
|
|
4
4
|
handleRecoverFile: HandleRecoverFileDef | undefined;
|
|
5
|
+
isDisabled: boolean | undefined;
|
|
5
6
|
thumbnailUrl: string | undefined;
|
|
6
7
|
}
|
package/dist/components/file-uploader/components/uploader-actions/uploader-actions.types.d.ts
CHANGED
|
@@ -5,8 +5,6 @@ export type UploaderActionIconsProps = OptionalValues<{
|
|
|
5
5
|
enableCopyUrl: boolean;
|
|
6
6
|
fileUrl: string;
|
|
7
7
|
handleOpenFileSelect: () => void;
|
|
8
|
-
handleRecoverFile?: (fileUrl: string) => Promise<void>;
|
|
9
8
|
isDisabled: boolean;
|
|
10
9
|
isReplaceable: boolean;
|
|
11
|
-
thumbnailUrl?: string;
|
|
12
10
|
}>;
|
|
@@ -2,7 +2,6 @@ import { FocusEventHandler, HTMLAttributes, PropsWithChildren, ReactNode } from
|
|
|
2
2
|
import { ButtonProps } from '../button/button.types';
|
|
3
3
|
import { BoxProps } from '../box/box.types';
|
|
4
4
|
import { fileUploaderVariants } from './file-uploader.constants';
|
|
5
|
-
import { HandleRecoverFileDef } from './components/icon-recover/icon-recover.types';
|
|
6
5
|
export type FileUploaderProps = {
|
|
7
6
|
/** Any children passed will appear just within the uploader above everything else. Use this for notifications like download toasts. */
|
|
8
7
|
children?: ReactNode;
|
|
@@ -14,7 +13,7 @@ export type FileUploaderProps = {
|
|
|
14
13
|
/** This function should delete the record from the database, ***then*** delete the file. */
|
|
15
14
|
handleDeleteFile: HandleDeleteFile;
|
|
16
15
|
/** Provides a method for potential file recovery. */
|
|
17
|
-
handleRecoverFile?:
|
|
16
|
+
handleRecoverFile?: (fileUrl: string) => Promise<void>;
|
|
18
17
|
inputName?: string;
|
|
19
18
|
isActive?: boolean;
|
|
20
19
|
isDisabled?: boolean;
|