@epam/ai-dial-ui-kit 0.5.0-rc.79 → 0.5.0-rc.80

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.
@@ -0,0 +1,20 @@
1
+ import { FileManagerRenameTriggerView } from '../../../types/file-manager';
2
+ interface UseTriggerViewRenameOptions {
3
+ onRename: (path: string) => void;
4
+ }
5
+ /**
6
+ * Manages which view ("tree" or "grid") triggered a rename action.
7
+ *
8
+ * Useful when both TreeView and GridView can initiate renaming,
9
+ * and the parent needs to know which source triggered it
10
+ * to apply view-specific logic or UI updates.
11
+ *
12
+ * Returns the last rename trigger source and two handlers
13
+ * (`onGridRename`, `onTreeRename`) that wrap the provided `onRename` callback.
14
+ */
15
+ export declare const useTriggerViewRename: ({ onRename, }: UseTriggerViewRenameOptions) => {
16
+ renameTriggerView: FileManagerRenameTriggerView;
17
+ onGridRename: (path: string) => void;
18
+ onTreeRename: (path: string) => void;
19
+ };
20
+ export {};
@@ -25,6 +25,10 @@ export declare enum DestinationFolderMode {
25
25
  Copy = "copy",
26
26
  Move = "move"
27
27
  }
28
+ export declare enum FileManagerRenameTriggerView {
29
+ Tree = "tree",
30
+ Grid = "grid"
31
+ }
28
32
  export declare enum FileManagerColumnKey {
29
33
  Name = "name",
30
34
  UpdatedAt = "updatedAt",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.5.0-rc.79",
3
+ "version": "0.5.0-rc.80",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",