@epam/ai-dial-ui-kit 0.4.0-rc.45 → 0.4.0-rc.47

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.
@@ -39,7 +39,7 @@ export interface FileManagerContextValue {
39
39
  };
40
40
  onCopy: (files: string[]) => void;
41
41
  onCut: (files: string[]) => void;
42
- onPaste: () => void;
42
+ onPaste: (overwrite?: boolean) => void;
43
43
  handlePathChange: (nextPath?: string) => void;
44
44
  handleTreeItemClick: (item: DialFile) => void;
45
45
  handleBreadcrumbItemClick: (href?: string) => void;
@@ -1,12 +1,13 @@
1
- import { DialFile } from '../../../index';
1
+ import { DialFile } from '../../../models/file';
2
2
  import { DialCopiedItem } from '../../../types/file-manager';
3
3
  export interface UseFileClipboardOptions {
4
4
  getDestination: () => string;
5
5
  getDestinationFiles: () => DialFile[];
6
+ getSourceFiles: () => DialFile[];
6
7
  onCopyFiles?: (items: DialCopiedItem[]) => void;
7
8
  onMoveToFiles?: (items: DialCopiedItem[]) => void;
8
9
  }
9
- export declare const useFileClipboard: ({ getDestination, getDestinationFiles, onCopyFiles, onMoveToFiles, }: UseFileClipboardOptions) => {
10
+ export declare const useFileClipboard: ({ getDestination, getDestinationFiles, getSourceFiles, onCopyFiles, onMoveToFiles, }: UseFileClipboardOptions) => {
10
11
  state: {
11
12
  copied: Set<string>;
12
13
  cut: Set<string>;
@@ -14,6 +15,6 @@ export declare const useFileClipboard: ({ getDestination, getDestinationFiles, o
14
15
  };
15
16
  copy: (files: string[]) => void;
16
17
  cut: (files: string[]) => void;
17
- paste: () => void;
18
+ paste: (overwrite?: boolean) => void;
18
19
  clear: () => void;
19
20
  };
@@ -3,7 +3,6 @@ import { FC } from 'react';
3
3
  export interface DialTabProps {
4
4
  tab: TabModel;
5
5
  active: boolean;
6
- disabled?: boolean;
7
6
  invalid?: boolean;
8
7
  horizontal?: boolean;
9
8
  cssClass?: string;
@@ -24,10 +23,8 @@ export interface DialTabProps {
24
23
  * />
25
24
  * ```
26
25
  *
27
- * @param tab - The tab model containing its `id` and `name`.
26
+ * @param tab - The tab model containing its `id`, `name`, [`disabled`], [`invalid`].
28
27
  * @param active - Whether the tab is currently active.
29
- * @param [disabled=false] - Whether the tab is disabled and non-interactive.
30
- * @param [invalid=false] - Whether the tab is marked as invalid, displaying an error icon.
31
28
  * @param [horizontal=false] - Whether the tab is displayed in horizontal orientation.
32
29
  * @param [cssClass] - Additional CSS classes applied to the tab element.
33
30
  * @param onClick - Callback fired when the tab is clicked. Receives the tab’s `id`.
@@ -20,7 +20,6 @@ export { DialFileName } from './components/FileName/FileName';
20
20
  export { DialFolderName } from './components/FolderName/FolderName';
21
21
  export { DialDateCellRenderer } from './components/Grid/renderers/DateCellRenderer';
22
22
  export { DialTabs } from './components/Tabs/Tabs';
23
- export { DialTab } from './components/Tab/Tab';
24
23
  export { DialBreadcrumb } from './components/Breadcrumb/Breadcrumb';
25
24
  export { DialBreadcrumbItem } from './components/Breadcrumb/BreadcrumbItem';
26
25
  export { DialButton } from './components/Button/Button';
@@ -2,4 +2,5 @@ export interface TabModel {
2
2
  id: string;
3
3
  name: string;
4
4
  invalid?: boolean;
5
+ disabled?: boolean;
5
6
  }
@@ -1,3 +1,4 @@
1
+ import { DialFileNodeType } from '../models/file';
1
2
  export declare enum DialFileManagerTabs {
2
3
  MyFiles = "my_files",
3
4
  Shared = "shared",
@@ -13,4 +14,5 @@ export interface DialCopiedItem {
13
14
  sourceUrl: string;
14
15
  destinationUrl: string;
15
16
  overwrite?: boolean;
17
+ nodeType: DialFileNodeType;
16
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.4.0-rc.45",
3
+ "version": "0.4.0-rc.47",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",