@epam/ai-dial-ui-kit 0.4.0-rc.59 → 0.4.0-rc.60

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.
@@ -46678,7 +46678,14 @@ const Dk = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46678
46678
  o(!1), n([]);
46679
46679
  }, []), l = N(() => {
46680
46680
  const c = t();
46681
- e && i.length > 0 && e(i, c), a();
46681
+ if (e && i.length > 0) {
46682
+ const d = i.map((u) => ({
46683
+ sourceUrl: u.path,
46684
+ nodeType: u.nodeType
46685
+ }));
46686
+ e(d, c);
46687
+ }
46688
+ a();
46682
46689
  }, [i, e, t, a]);
46683
46690
  return {
46684
46691
  deleteConfirmationOpen: s,
@@ -1,6 +1,7 @@
1
1
  import { DialFile } from '../../../models/file';
2
+ import { DialDeletedItem } from '../../../types/file-manager';
2
3
  export interface UseFileDeleteOptions {
3
- onDeleteFiles?: (items: DialFile[], sourceFolder: string) => void;
4
+ onDeleteFiles?: (items: DialDeletedItem[], sourceFolder: string) => void;
4
5
  getCurrentPath: () => string;
5
6
  }
6
7
  export declare const useFileDelete: ({ onDeleteFiles, getCurrentPath, }: UseFileDeleteOptions) => {
@@ -63,7 +63,7 @@ export { TabOrientation } from './types/tab';
63
63
  export type { DialBreadcrumbPathItem } from './models/breadcrumb';
64
64
  export { FormItemOrientation } from './types/form-item';
65
65
  export { SelectSize, SelectVariant } from './types/select';
66
- export { DialFileManagerTabs, DialFileManagerActions, type DialCopiedItem, } from './types/file-manager';
66
+ export { DialFileManagerTabs, DialFileManagerActions, type DialCopiedItem, type DialDeletedItem, } from './types/file-manager';
67
67
  export { FlexibleActionsDirection } from './types/flexible-actions';
68
68
  export { DialItemType } from './types/item';
69
69
  export { useDialFileManagerTabs } from './components/FileManager/hooks/use-file-manager-tabs';
@@ -17,3 +17,7 @@ export interface DialCopiedItem {
17
17
  overwrite?: boolean;
18
18
  nodeType: DialFileNodeType;
19
19
  }
20
+ export interface DialDeletedItem {
21
+ sourceUrl: string;
22
+ nodeType: DialFileNodeType;
23
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.4.0-rc.59",
3
+ "version": "0.4.0-rc.60",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",