@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.
- package/dist/{JsonEditor-C9HFGbvF.cjs → JsonEditor-BzJPNTyr.cjs} +1 -1
- package/dist/{JsonEditor-RR5FGE79.js → JsonEditor-CAaUphiz.js} +1 -1
- package/dist/{MarkdownEditor-DcAbfqJG.cjs → MarkdownEditor-ButRNz6I.cjs} +1 -1
- package/dist/{MarkdownEditor-B7djMdi6.js → MarkdownEditor-ceyOW_NY.js} +1 -1
- package/dist/components-manifest.json +12 -2
- package/dist/dial-ui-kit.cjs.js +1 -1
- package/dist/dial-ui-kit.es.js +1 -1
- package/dist/{index-BOSM4TRE.js → index-BD8qIJRQ.js} +8353 -8197
- package/dist/{index-BNSRiygL.cjs → index-DWepBDi7.cjs} +31 -31
- package/dist/src/components/FileManager/FileManager.d.ts +2 -0
- package/dist/src/components/FileManager/FileManagerContext.d.ts +2 -0
- package/dist/src/components/FileManager/utils.d.ts +1 -0
- package/dist/src/components/LoadFileArea/FilledDropZone.d.ts +14 -0
- package/package.json +1 -1
|
@@ -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 {};
|