@epam/ai-dial-ui-kit 0.5.0-rc.64 → 0.5.0-rc.65

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.
@@ -16,7 +16,10 @@ import { ConflictResolutionPopupProps } from './components/ConflictResolutionPop
16
16
  import { RenameValidationMessages } from './hooks/use-item-renaming';
17
17
  type GridRow = FileManagerGridRow;
18
18
  export type DialFileManagerConflictResolutionPopupOptions = Omit<ConflictResolutionPopupProps, 'open' | 'onClose' | 'onReplace' | 'onDuplicate' | 'conflictingFiles'>;
19
- export type DialFileManagerDestinationFolderPopupOptions = Pick<DestinationFolderPopupProps, 'setDestinationFolderPath' | 'destinationFolderPath' | 'addFolderLabel' | 'copyLabel' | 'moveLabel' | 'hiddenFilesSwitcherLabel' | 'getCopyHeader' | 'getMoveHeader'>;
19
+ export type DialFileManagerDestinationFolderPopupOptions = Pick<DestinationFolderPopupProps, 'setDestinationFolderPath' | 'destinationFolderPath' | 'addFolderLabel' | 'copyLabel' | 'moveLabel' | 'hiddenFilesSwitcherLabel' | 'title'> & {
20
+ getCopyHeader?: (itemsCount: number, itemName?: string) => string;
21
+ getMoveHeader?: (itemsCount: number, itemName?: string) => string;
22
+ };
20
23
  export interface FileTreeOptions extends Omit<DialFoldersTreeProps, 'items' | 'selectedPath' | 'onItemClick'> {
21
24
  width?: number;
22
25
  title?: string;
@@ -11,8 +11,7 @@ export interface DestinationFolderPopupProps extends DialFileManagerProps {
11
11
  addFolderLabel?: string;
12
12
  hiddenFilesSwitcherLabel?: string;
13
13
  mode?: 'copy' | 'move';
14
- getCopyHeader?: (itemsCount: number, itemName?: string) => string;
15
- getMoveHeader?: (itemsCount: number, itemName?: string) => string;
14
+ title?: string;
16
15
  }
17
16
  /**
18
17
  * DestinationFolderPopup
@@ -28,6 +27,7 @@ export interface DestinationFolderPopupProps extends DialFileManagerProps {
28
27
  * onClose={handleClose}
29
28
  * onConfirm={handleConfirm}
30
29
  * mode="copy"
30
+ * title="Copy 3 files"
31
31
  * items={files}
32
32
  * rootItem={rootFolder}
33
33
  * path={currentPath}
@@ -43,11 +43,10 @@ export interface DestinationFolderPopupProps extends DialFileManagerProps {
43
43
  * @param [moveLabel="Move"] - Label for the move button
44
44
  * @param [addFolderLabel="Add folder"] - Label for the add folder button
45
45
  * @param [hiddenFilesSwitcherLabel="Show hidden files"] - Label for the hidden files toggle
46
+ * @param [title] - Custom title for the popup header
46
47
  * @param items - Array of files to display in the File Manager
47
48
  * @param rootItem - Root folder item
48
49
  * @param path - Current path in the File Manager
49
50
  * @param onPathChange - Callback fired when the path changes
50
- * @param getCopyHeader - Function to get custom header for copy mode
51
- * @param getMoveHeader - Function to get custom header for move mode
52
51
  */
53
52
  export declare const DestinationFolderPopup: FC<DestinationFolderPopupProps>;
@@ -10,8 +10,10 @@ export interface UseFileClipboardOptions {
10
10
  onCopySuccess?: () => void;
11
11
  onMoveSuccess?: () => void;
12
12
  onDuplicateSuccess?: () => void;
13
+ getCopyHeader?: (itemsCount: number, itemName?: string) => string;
14
+ getMoveHeader?: (itemsCount: number, itemName?: string) => string;
13
15
  }
14
- export declare const useFileClipboard: ({ getDestinationFiles, onCopyFiles, onMoveToFiles, onCopySuccess, onMoveSuccess, onDuplicateSuccess, }: UseFileClipboardOptions) => {
16
+ export declare const useFileClipboard: ({ getDestinationFiles, onCopyFiles, onMoveToFiles, onCopySuccess, onMoveSuccess, onDuplicateSuccess, getCopyHeader, getMoveHeader, }: UseFileClipboardOptions) => {
15
17
  handleDuplicate: (files: DialFile[]) => void;
16
18
  handleCloseDestinationFolderPopup: () => void;
17
19
  handleOpenDestinationFolderPopup: (mode: DestinationFolderMode) => void;
@@ -19,6 +21,7 @@ export declare const useFileClipboard: ({ getDestinationFiles, onCopyFiles, onMo
19
21
  handleMoveTo: (destinationFolder: string, sourceFolder: string) => void;
20
22
  openDestinationFolderPopup: boolean;
21
23
  destinationFolderMode: DestinationFolderMode;
24
+ destinationFolderTitle: string | undefined;
22
25
  handleSetCopiedFiles: (files: DialFile[]) => void;
23
26
  handleSetMovedFiles: (files: DialFile[]) => void;
24
27
  clearState: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.5.0-rc.64",
3
+ "version": "0.5.0-rc.65",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",