treege 3.0.0-beta.41 → 3.0.0-beta.43

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.
@@ -1,6 +1,25 @@
1
1
  import { Edge, Node } from '@xyflow/react';
2
+ import { ReactNode } from 'react';
2
3
  import { AIConfig } from './ai';
3
4
  import { Flow } from '../../shared/types/node';
5
+ export interface ExtraMenuItem {
6
+ /**
7
+ * Label displayed in the menu item.
8
+ */
9
+ label: ReactNode;
10
+ /**
11
+ * Optional icon rendered before the label.
12
+ */
13
+ icon?: ReactNode;
14
+ /**
15
+ * Callback triggered when the menu item is clicked.
16
+ */
17
+ onClick?: () => void;
18
+ /**
19
+ * When true, styles the item as destructive.
20
+ */
21
+ destructive?: boolean;
22
+ }
4
23
  export interface TreegeEditorProps {
5
24
  /**
6
25
  * Default flow structure containing combined nodes and edges.
@@ -35,4 +54,8 @@ export interface TreegeEditorProps {
35
54
  * Additional CSS class names for custom styling.
36
55
  */
37
56
  className?: string;
57
+ /**
58
+ * Extra menu items to append to the "more" dropdown of the actions panel.
59
+ */
60
+ extraMenuItems?: ExtraMenuItem[];
38
61
  }