@epam/ai-dial-ui-kit 0.6.0-rc.14 → 0.6.0-rc.16
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/dial-ui-kit.cjs.js +22 -22
- package/dist/dial-ui-kit.es.js +1582 -1562
- package/dist/src/components/FileManager/FileManager.d.ts +2 -1
- package/dist/src/components/FileManager/FileManagerContext.d.ts +1 -1
- package/dist/src/components/FileManager/hooks/use-bulk-actions.d.ts +3 -1
- package/package.json +1 -1
|
@@ -89,6 +89,7 @@ export type BulkActionsToolbarOptions = Omit<DialFileManagerBulkActionsToolbarPr
|
|
|
89
89
|
[DialFileManagerActions.Download]?: string;
|
|
90
90
|
[DialFileManagerActions.Delete]?: string;
|
|
91
91
|
[DialFileManagerActions.Move]?: string;
|
|
92
|
+
[DialFileManagerActions.Unshare]?: string;
|
|
92
93
|
};
|
|
93
94
|
};
|
|
94
95
|
export interface CreateFolderValidationMessages {
|
|
@@ -137,7 +138,7 @@ export interface DialFileManagerProps {
|
|
|
137
138
|
onUploadArchive?: (file: File, name: string, destinationFolder: string) => void;
|
|
138
139
|
fileMetadataPopupOptions?: FileMetadataPopupOptions;
|
|
139
140
|
onGetInfo?: (file: DialFile) => void | Promise<void>;
|
|
140
|
-
|
|
141
|
+
onUnshareFiles?: (files: DialFile[]) => void | Promise<void>;
|
|
141
142
|
actionsRef?: Ref<DialFileManagerActionsRef>;
|
|
142
143
|
onSearchFiles?: (folder: string, query: string) => void;
|
|
143
144
|
searchInProgress?: boolean;
|
|
@@ -120,7 +120,7 @@ export interface FileManagerContextValue {
|
|
|
120
120
|
openMetadataPopup: (file: DialFile) => void;
|
|
121
121
|
closeMetadataPopup: () => void;
|
|
122
122
|
onGetInfo?: (file: DialFile) => void | Promise<void>;
|
|
123
|
-
|
|
123
|
+
onUnshareFiles?: (file: DialFile[]) => void;
|
|
124
124
|
actionsRef?: Ref<DialFileManagerActionsRef>;
|
|
125
125
|
sharedByMePaths?: Set<string>;
|
|
126
126
|
onSearchFiles?: (folder: string, query: string) => void;
|
|
@@ -8,6 +8,7 @@ export interface UseBulkActionsProps {
|
|
|
8
8
|
[DialFileManagerActions.Copy]?: string;
|
|
9
9
|
[DialFileManagerActions.Rename]?: string;
|
|
10
10
|
[DialFileManagerActions.Download]?: string;
|
|
11
|
+
[DialFileManagerActions.Unshare]?: string;
|
|
11
12
|
[DialFileManagerActions.Delete]?: string;
|
|
12
13
|
[DialFileManagerActions.Move]?: string;
|
|
13
14
|
};
|
|
@@ -15,8 +16,9 @@ export interface UseBulkActionsProps {
|
|
|
15
16
|
onCopy: (files: DialFile[]) => void;
|
|
16
17
|
onMove: (files: DialFile[]) => void;
|
|
17
18
|
onDownload: (files: DialFile[]) => void;
|
|
19
|
+
onUnshare?: (files: DialFile[]) => void;
|
|
18
20
|
onRename: (filePath: string) => void;
|
|
19
21
|
onDelete: (files: DialFile[], parentFolderPath: string) => void;
|
|
20
22
|
getCurrentFolderPath: () => string;
|
|
21
23
|
}
|
|
22
|
-
export declare const useBulkActions: ({ selectedFiles, actionLabels, onDuplicate, onCopy, onMove, onDownload, onDelete, getCurrentFolderPath, }: UseBulkActionsProps) => DialActionDropdownItem[];
|
|
24
|
+
export declare const useBulkActions: ({ selectedFiles, actionLabels, onDuplicate, onCopy, onMove, onDownload, onUnshare, onDelete, getCurrentFolderPath, }: UseBulkActionsProps) => DialActionDropdownItem[];
|