@epam/ai-dial-ui-kit 0.11.0-dev.20 → 0.11.0-dev.23

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.
@@ -199,6 +199,8 @@ export interface DialFileManagerProps {
199
199
  showHiddenFileSwitcherInDestinationPopup?: boolean;
200
200
  showCreateFolderButtonInDestinationPopup?: boolean;
201
201
  autoSelectUploadedItems?: boolean;
202
+ maxNewFolderDepth?: number;
203
+ onNewFolderDepthExceeded?: () => void;
202
204
  }
203
205
  /**
204
206
  * File Manager layout with a collapsible folders tree, breadcrumb/search header, and a data grid.
@@ -174,5 +174,7 @@ export interface FileManagerContextValue {
174
174
  hideSearchPathItemName?: boolean;
175
175
  showHiddenFileSwitcherInDestinationPopup?: boolean;
176
176
  showCreateFolderButtonInDestinationPopup?: boolean;
177
+ maxNewFolderDepth?: number;
178
+ onNewFolderDepthExceeded?: () => void;
177
179
  }
178
180
  export declare const FileManagerContext: import('react').Context<FileManagerContextValue | undefined>;
@@ -54,4 +54,5 @@ export declare const splitPathAndName: (fullPath: string) => {
54
54
  };
55
55
  export declare const isFileSelectable: (file: Pick<DialFile, "contentLength" | "contentType" | "name">, allowedFileTypes?: DialFileAcceptType[], maxSelectableFileSize?: number) => boolean;
56
56
  export declare const getRowTooltip: (file: FileManagerGridRow, allowedFileTypes?: DialFileAcceptType[], maxSelectableFileSize?: number, unsupportedFileTypeTooltip?: string, fileTooLargeTooltip?: string) => string | undefined;
57
+ export declare const getFolderNestingDepth: (folderPath: string) => number;
57
58
  export declare const getNextFolderName: (existingFolders: DialFile[]) => string;
@@ -0,0 +1,14 @@
1
+ import { FC, ReactNode } from 'react';
2
+ interface FilledDropZoneProps {
3
+ children: ReactNode;
4
+ existingFiles: File[];
5
+ onDrop: (files: File[]) => void;
6
+ getIsFileFormatError?: (fileItems: File[] | DataTransferItem[]) => boolean;
7
+ getIsFileSizeError?: (fileItems: File[] | DataTransferItem[]) => boolean;
8
+ maxFilesCount?: number;
9
+ fileFormatError?: string;
10
+ fileSizeError?: string;
11
+ fileCountError?: string;
12
+ }
13
+ export declare const FilledDropZone: FC<FilledDropZoneProps>;
14
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.11.0-dev.20",
3
+ "version": "0.11.0-dev.23",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",