@epam/ai-dial-ui-kit 0.8.0 → 0.8.2

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.
@@ -186,6 +186,7 @@ export interface DialFileManagerProps {
186
186
  onFolderPopupPathChange?: (newPath?: string) => void;
187
187
  onManagePermissions?: (path?: string) => void;
188
188
  onPreview?: (path?: string) => void;
189
+ onOpenInNewTab?: (file: DialFile) => void;
189
190
  previewExtensions?: string[];
190
191
  isRenameFileAvailable?: boolean;
191
192
  isDuplicateFolderAvailable?: boolean;
@@ -193,6 +194,7 @@ export interface DialFileManagerProps {
193
194
  customCreateNewItemAction?: (currentPath?: string, currentFolder?: DialFile) => void;
194
195
  customDuplicateAction?: (items?: DialFile[]) => void;
195
196
  customDeleteItemsAction?: (items: DialFile[], parentFolderPath: string) => void;
197
+ customDownloadItemsAction?: (items?: DialFile[]) => void;
196
198
  nonClickableTableColumns?: FileManagerColumnKey[];
197
199
  }
198
200
  /**
@@ -153,6 +153,7 @@ export interface FileManagerContextValue {
153
153
  onFolderPopupPathChange?: (newPath?: string) => void;
154
154
  onManagePermissions?: (path?: string) => void;
155
155
  onPreview?: (path?: string) => void;
156
+ onOpenInNewTab?: (file: DialFile) => void;
156
157
  previewExtensions?: string[];
157
158
  isRenameFileAvailable?: boolean;
158
159
  isDuplicateFolderAvailable?: boolean;
@@ -160,6 +161,7 @@ export interface FileManagerContextValue {
160
161
  customCreateNewItemAction?: (currentPath?: string, currentFolder?: DialFile) => void;
161
162
  customDuplicateAction?: (items?: DialFile[]) => void;
162
163
  customDeleteItemsAction?: (items: DialFile[], parentFolderPath: string) => void;
164
+ customDownloadItemsAction?: (items?: DialFile[]) => void;
163
165
  nonClickableTableColumns?: FileManagerColumnKey[];
164
166
  getDisabledTooltip?: (row: FileManagerGridRow) => string | undefined;
165
167
  fileTooLargeTooltip?: string;
@@ -1,8 +1,9 @@
1
1
  import { DialFile } from '../../../models/file';
2
2
  export interface UseFileDownloadOptions {
3
3
  onDownloadFiles?: (items: DialFile[]) => void;
4
+ customDownloadItemsAction?: (items: DialFile[]) => void;
4
5
  onDownloadSuccess?: () => void;
5
6
  }
6
- export declare const useFileDownload: ({ onDownloadFiles, onDownloadSuccess, }: UseFileDownloadOptions) => {
7
+ export declare const useFileDownload: ({ onDownloadFiles, customDownloadItemsAction, onDownloadSuccess, }: UseFileDownloadOptions) => {
7
8
  handleDownloadFiles: (items: DialFile[]) => void;
8
9
  };
@@ -17,6 +17,7 @@ export interface UseGridContextMenuProps {
17
17
  [DialFileManagerActions.Info]?: string;
18
18
  [DialFileManagerActions.Unshare]?: string;
19
19
  [DialFileManagerActions.RemoveAccess]?: string;
20
+ [DialFileManagerActions.OpenInNewTab]?: string;
20
21
  };
21
22
  onDuplicate: (file: DialFile) => void;
22
23
  onCopy: (file: DialFile) => void;
@@ -33,9 +34,10 @@ export interface UseGridContextMenuProps {
33
34
  onAddChild?: (file: DialFile) => void;
34
35
  onManagePermissions?: (path?: string) => void;
35
36
  onPreview?: (path?: string) => void;
37
+ onOpenInNewTab?: (file: DialFile) => void;
36
38
  previewExtensions?: string[];
37
39
  isRenameFileAvailable?: boolean;
38
40
  isDuplicateFolderAvailable?: boolean;
39
41
  forbiddenSymbolsRegExp?: RegExp;
40
42
  }
41
- export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, onUnshare, onRemoveAccess, sharedWithMeIds, sharedByMePaths, onAddSibling, onAddChild, onManagePermissions, onPreview, previewExtensions, isRenameFileAvailable, isDuplicateFolderAvailable, forbiddenSymbolsRegExp, }: UseGridContextMenuProps) => (file: DialFile) => DropdownItem[];
43
+ export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, onUnshare, onRemoveAccess, sharedWithMeIds, sharedByMePaths, onAddSibling, onAddChild, onManagePermissions, onPreview, onOpenInNewTab, previewExtensions, isRenameFileAvailable, isDuplicateFolderAvailable, forbiddenSymbolsRegExp, }: UseGridContextMenuProps) => (file: DialFile) => DropdownItem[];
@@ -6,12 +6,15 @@ export interface DialEmptyFileAreaProps {
6
6
  acceptTypes: string;
7
7
  maxFilesCount?: number;
8
8
  maxFileSize?: number;
9
+ maxMultiFilesSize?: number;
9
10
  multiple?: boolean;
10
11
  fileFormatError?: string;
11
12
  fileCountError?: string;
12
13
  fileSizeError?: string;
14
+ multiFilesSizeError?: string;
13
15
  getIsFileFormatError?: (fileItems: File[] | DataTransferItem[]) => boolean;
14
16
  getIsFileSizeError?: (fileItems: File[] | DataTransferItem[]) => boolean;
17
+ getIsMultiFilesSizeError?: (fileItems: File[] | DataTransferItem[]) => boolean;
15
18
  onChange: (files: File[]) => void;
16
19
  }
17
20
  /**
@@ -16,7 +16,8 @@ export declare enum DialFileManagerActions {
16
16
  Unshare = "unshare",
17
17
  RemoveAccess = "removeAccess",
18
18
  ManagePermissions = "managePermissions",
19
- Preview = "preview"
19
+ Preview = "preview",
20
+ OpenInNewTab = "openInNewTab"
20
21
  }
21
22
  export declare enum DialFileManagerConflictActions {
22
23
  Replace = "replace",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",
@@ -56,7 +56,8 @@
56
56
  ]
57
57
  },
58
58
  "overrides": {
59
- "esbuild": "0.25.9"
59
+ "esbuild": "0.25.9",
60
+ "lodash": "4.18.0"
60
61
  },
61
62
  "dependencies": {
62
63
  "ag-grid-community": "^34.3.0",