@epam/ai-dial-ui-kit 0.8.0-rc.12 → 0.8.0-rc.13

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.
@@ -54,6 +54,7 @@ export interface FileTreeOptions extends Omit<DialFoldersTreeProps, 'items' | 's
54
54
  [DialFileManagerActions.Move]?: string;
55
55
  [DialFileManagerActions.Unshare]?: string;
56
56
  [DialFileManagerActions.ManagePermissions]?: string;
57
+ [DialFileManagerActions.RemoveAccess]?: string;
57
58
  };
58
59
  }
59
60
  export interface DeleteConfirmationOptions {
@@ -86,6 +87,7 @@ export interface GridOptions extends Omit<DialGridProps<GridRow>, 'rowData' | 'c
86
87
  [DialFileManagerActions.Unshare]?: string;
87
88
  [DialFileManagerActions.ManagePermissions]?: string;
88
89
  [DialFileManagerActions.Preview]?: string;
90
+ [DialFileManagerActions.RemoveAccess]?: string;
89
91
  };
90
92
  }
91
93
  export type NewAction = Pick<DropdownItem, 'label' | 'icon'>;
@@ -105,6 +107,7 @@ export type BulkActionsToolbarOptions = Omit<DialFileManagerBulkActionsToolbarPr
105
107
  [DialFileManagerActions.Delete]?: string;
106
108
  [DialFileManagerActions.Move]?: string;
107
109
  [DialFileManagerActions.Unshare]?: string;
110
+ [DialFileManagerActions.RemoveAccess]?: string;
108
111
  };
109
112
  };
110
113
  export interface CreateFolderValidationMessages {
@@ -163,6 +166,7 @@ export interface DialFileManagerProps {
163
166
  fileMetadataPopupOptions?: FileMetadataPopupOptions;
164
167
  onGetInfo?: (file: DialFile) => void | Promise<void>;
165
168
  onUnshareFiles?: (files: DialFile[]) => void | Promise<void>;
169
+ onRemoveFilesAccess?: (files: DialFile[]) => void | Promise<void>;
166
170
  actionsRef?: Ref<DialFileManagerActionsRef>;
167
171
  onSearchFiles?: (folder: string, query: string) => void;
168
172
  searchInProgress?: boolean;
@@ -134,6 +134,7 @@ export interface FileManagerContextValue {
134
134
  closeMetadataPopup: () => void;
135
135
  onGetInfo?: (file: DialFile) => void | Promise<void>;
136
136
  onUnshareFiles?: (file: DialFile[]) => void;
137
+ onRemoveFilesAccess?: (file: DialFile[]) => void;
137
138
  actionsRef?: Ref<DialFileManagerActionsRef>;
138
139
  sharedByMePaths?: Set<string>;
139
140
  onSearchFiles?: (folder: string, query: string) => void;
@@ -11,16 +11,19 @@ export interface UseBulkActionsProps {
11
11
  [DialFileManagerActions.Unshare]?: string;
12
12
  [DialFileManagerActions.Delete]?: string;
13
13
  [DialFileManagerActions.Move]?: string;
14
+ [DialFileManagerActions.RemoveAccess]?: string;
14
15
  };
15
16
  onDuplicate: (files: DialFile[]) => void;
16
17
  onCopy: (files: DialFile[]) => void;
17
18
  onMove: (files: DialFile[]) => void;
18
19
  onDownload: (files: DialFile[]) => void;
19
20
  onUnshare?: (files: DialFile[]) => void;
21
+ onRemoveAccess?: (files: DialFile[]) => void;
20
22
  onRename: (filePath: string) => void;
21
23
  onDelete: (files: DialFile[], parentFolderPath: string) => void;
22
24
  getCurrentFolderPath: () => string;
23
25
  sharedWithMeIds?: string[];
26
+ sharedByMePaths?: Set<string>;
24
27
  onClearSelection: () => void;
25
28
  }
26
- export declare const useBulkActions: ({ selectedFiles, actionLabels, onDuplicate, onCopy, onMove, onDownload, onUnshare, onDelete, getCurrentFolderPath, sharedWithMeIds, onClearSelection, }: UseBulkActionsProps) => DialActionDropdownItem[];
29
+ export declare const useBulkActions: ({ selectedFiles, actionLabels, onDuplicate, onCopy, onMove, onDownload, onUnshare, onRemoveAccess, onDelete, getCurrentFolderPath, sharedWithMeIds, sharedByMePaths, onClearSelection, }: UseBulkActionsProps) => DialActionDropdownItem[];
@@ -16,6 +16,7 @@ export interface UseGridContextMenuProps {
16
16
  [DialFileManagerActions.Move]?: string;
17
17
  [DialFileManagerActions.Info]?: string;
18
18
  [DialFileManagerActions.Unshare]?: string;
19
+ [DialFileManagerActions.RemoveAccess]?: string;
19
20
  };
20
21
  onDuplicate: (file: DialFile) => void;
21
22
  onCopy: (file: DialFile) => void;
@@ -25,7 +26,9 @@ export interface UseGridContextMenuProps {
25
26
  onDelete: (file: DialFile, parentFolderPath: string) => void;
26
27
  onInfo: (file: DialFile) => void;
27
28
  onUnshare: (file: DialFile) => void;
29
+ onRemoveAccess?: (file: DialFile) => void;
28
30
  sharedWithMeIds?: string[];
31
+ sharedByMePaths?: Set<string>;
29
32
  onAddSibling?: (file: DialFile) => void;
30
33
  onAddChild?: (file: DialFile) => void;
31
34
  onManagePermissions?: (path?: string) => void;
@@ -33,4 +36,4 @@ export interface UseGridContextMenuProps {
33
36
  previewExtensions?: string[];
34
37
  isRenameFileAvailable?: boolean;
35
38
  }
36
- export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, onUnshare, sharedWithMeIds, onAddSibling, onAddChild, onManagePermissions, onPreview, previewExtensions, isRenameFileAvailable, }: UseGridContextMenuProps) => (file: DialFile) => DropdownItem[];
39
+ export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, onUnshare, onRemoveAccess, sharedWithMeIds, sharedByMePaths, onAddSibling, onAddChild, onManagePermissions, onPreview, previewExtensions, isRenameFileAvailable, }: UseGridContextMenuProps) => (file: DialFile) => DropdownItem[];
@@ -14,6 +14,7 @@ export declare enum DialFileManagerActions {
14
14
  Rename = "rename",
15
15
  Info = "info",
16
16
  Unshare = "unshare",
17
+ RemoveAccess = "removeAccess",
17
18
  ManagePermissions = "managePermissions",
18
19
  Preview = "preview"
19
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.8.0-rc.12",
3
+ "version": "0.8.0-rc.13",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",