treege 3.0.0-beta.50 → 3.0.0-beta.51

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.
@@ -2,6 +2,8 @@ interface BottomHandleDropdownProps {
2
2
  nodeId: string;
3
3
  isConnectable?: boolean;
4
4
  hidden?: boolean;
5
+ /** Whether branching (forking into two nodes) is allowed — only for input nodes. */
6
+ canBranch?: boolean;
5
7
  }
6
- declare const BottomHandleDropdown: ({ nodeId, isConnectable, hidden }: BottomHandleDropdownProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const BottomHandleDropdown: ({ nodeId, isConnectable, hidden, canBranch }: BottomHandleDropdownProps) => import("react/jsx-runtime").JSX.Element;
7
9
  export default BottomHandleDropdown;
@@ -22,6 +22,7 @@ declare const useFlowConnections: () => {
22
22
  onAddFromHandle: (sourceNodeId: string, nodeInit?: NodeInit) => void;
23
23
  onConnect: OnConnect;
24
24
  onConnectEnd: OnConnectEnd;
25
+ onCreateBranch: (sourceNodeId: string, nodeInit?: NodeInit) => void;
25
26
  onEdgesDelete: OnEdgesDelete;
26
27
  onInsertAfter: (sourceNodeId: string, nodeInit?: NodeInit) => void;
27
28
  };