@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.
package/dist/dial-ui-kit.es.js
CHANGED
|
@@ -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
|
|
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:
|
|
4
|
+
onDeleteFiles?: (items: DialDeletedItem[], sourceFolder: string) => void;
|
|
4
5
|
getCurrentPath: () => string;
|
|
5
6
|
}
|
|
6
7
|
export declare const useFileDelete: ({ onDeleteFiles, getCurrentPath, }: UseFileDeleteOptions) => {
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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';
|