@xyflow/react 12.4.2 → 12.4.3

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.
Files changed (218) hide show
  1. package/dist/esm/additional-components/Background/Background.d.ts +53 -0
  2. package/dist/esm/additional-components/Background/Background.d.ts.map +1 -1
  3. package/dist/esm/additional-components/Background/types.d.ts +11 -1
  4. package/dist/esm/additional-components/Background/types.d.ts.map +1 -1
  5. package/dist/esm/additional-components/Controls/ControlButton.d.ts +23 -0
  6. package/dist/esm/additional-components/Controls/ControlButton.d.ts.map +1 -1
  7. package/dist/esm/additional-components/Controls/Controls.d.ts +21 -0
  8. package/dist/esm/additional-components/Controls/Controls.d.ts.map +1 -1
  9. package/dist/esm/additional-components/Controls/types.d.ts +8 -1
  10. package/dist/esm/additional-components/Controls/types.d.ts.map +1 -1
  11. package/dist/esm/additional-components/MiniMap/MiniMap.d.ts +20 -0
  12. package/dist/esm/additional-components/MiniMap/MiniMap.d.ts.map +1 -1
  13. package/dist/esm/additional-components/MiniMap/MiniMapNodes.d.ts.map +1 -1
  14. package/dist/esm/additional-components/MiniMap/types.d.ts +11 -1
  15. package/dist/esm/additional-components/MiniMap/types.d.ts.map +1 -1
  16. package/dist/esm/additional-components/NodeResizer/NodeResizeControl.d.ts +5 -0
  17. package/dist/esm/additional-components/NodeResizer/NodeResizeControl.d.ts.map +1 -1
  18. package/dist/esm/additional-components/NodeResizer/NodeResizer.d.ts +24 -0
  19. package/dist/esm/additional-components/NodeResizer/NodeResizer.d.ts.map +1 -1
  20. package/dist/esm/additional-components/NodeResizer/types.d.ts +15 -3
  21. package/dist/esm/additional-components/NodeResizer/types.d.ts.map +1 -1
  22. package/dist/esm/additional-components/NodeToolbar/NodeToolbar.d.ts +35 -0
  23. package/dist/esm/additional-components/NodeToolbar/NodeToolbar.d.ts.map +1 -1
  24. package/dist/esm/additional-components/NodeToolbar/types.d.ts +7 -2
  25. package/dist/esm/additional-components/NodeToolbar/types.d.ts.map +1 -1
  26. package/dist/esm/components/BatchProvider/index.d.ts.map +1 -1
  27. package/dist/esm/components/BatchProvider/useQueue.d.ts.map +1 -1
  28. package/dist/esm/components/ConnectionLine/index.d.ts +4 -4
  29. package/dist/esm/components/ConnectionLine/index.d.ts.map +1 -1
  30. package/dist/esm/components/EdgeLabelRenderer/index.d.ts +40 -0
  31. package/dist/esm/components/EdgeLabelRenderer/index.d.ts.map +1 -1
  32. package/dist/esm/components/Edges/BaseEdge.d.ts +27 -0
  33. package/dist/esm/components/Edges/BaseEdge.d.ts.map +1 -1
  34. package/dist/esm/components/Edges/EdgeText.d.ts +26 -0
  35. package/dist/esm/components/Edges/EdgeText.d.ts.map +1 -1
  36. package/dist/esm/components/Edges/SimpleBezierEdge.d.ts +5 -0
  37. package/dist/esm/components/Edges/SimpleBezierEdge.d.ts.map +1 -1
  38. package/dist/esm/components/Edges/index.d.ts.map +1 -1
  39. package/dist/esm/components/Handle/index.d.ts +32 -4
  40. package/dist/esm/components/Handle/index.d.ts.map +1 -1
  41. package/dist/esm/components/NodeWrapper/index.d.ts +1 -1
  42. package/dist/esm/components/NodeWrapper/index.d.ts.map +1 -1
  43. package/dist/esm/components/NodeWrapper/useNodeObserver.d.ts.map +1 -1
  44. package/dist/esm/components/NodeWrapper/utils.d.ts.map +1 -1
  45. package/dist/esm/components/Nodes/utils.d.ts.map +1 -1
  46. package/dist/esm/components/Panel/index.d.ts +32 -4
  47. package/dist/esm/components/Panel/index.d.ts.map +1 -1
  48. package/dist/esm/components/ReactFlowProvider/index.d.ts +34 -0
  49. package/dist/esm/components/ReactFlowProvider/index.d.ts.map +1 -1
  50. package/dist/esm/components/StoreUpdater/index.d.ts.map +1 -1
  51. package/dist/esm/components/ViewportPortal/index.d.ts +25 -0
  52. package/dist/esm/components/ViewportPortal/index.d.ts.map +1 -1
  53. package/dist/esm/container/EdgeRenderer/MarkerDefinitions.d.ts.map +1 -1
  54. package/dist/esm/container/NodeRenderer/index.d.ts.map +1 -1
  55. package/dist/esm/container/Pane/index.d.ts.map +1 -1
  56. package/dist/esm/container/ReactFlow/Wrapper.d.ts.map +1 -1
  57. package/dist/esm/container/ReactFlow/index.d.ts +20 -0
  58. package/dist/esm/container/ReactFlow/index.d.ts.map +1 -1
  59. package/dist/esm/contexts/NodeIdContext.d.ts +28 -0
  60. package/dist/esm/contexts/NodeIdContext.d.ts.map +1 -1
  61. package/dist/esm/hooks/useConnection.d.ts +20 -1
  62. package/dist/esm/hooks/useConnection.d.ts.map +1 -1
  63. package/dist/esm/hooks/useEdges.d.ts +13 -1
  64. package/dist/esm/hooks/useEdges.d.ts.map +1 -1
  65. package/dist/esm/hooks/useInternalNode.d.ts +21 -1
  66. package/dist/esm/hooks/useInternalNode.d.ts.map +1 -1
  67. package/dist/esm/hooks/useKeyPress.d.ts +19 -1
  68. package/dist/esm/hooks/useKeyPress.d.ts.map +1 -1
  69. package/dist/esm/hooks/useMoveSelectedNodes.d.ts.map +1 -1
  70. package/dist/esm/hooks/useNodeConnections.d.ts +17 -1
  71. package/dist/esm/hooks/useNodeConnections.d.ts.map +1 -1
  72. package/dist/esm/hooks/useNodes.d.ts +14 -1
  73. package/dist/esm/hooks/useNodes.d.ts.map +1 -1
  74. package/dist/esm/hooks/useNodesData.d.ts +14 -2
  75. package/dist/esm/hooks/useNodesData.d.ts.map +1 -1
  76. package/dist/esm/hooks/useNodesEdgesState.d.ts +62 -2
  77. package/dist/esm/hooks/useNodesEdgesState.d.ts.map +1 -1
  78. package/dist/esm/hooks/useNodesInitialized.d.ts +27 -1
  79. package/dist/esm/hooks/useNodesInitialized.d.ts.map +1 -1
  80. package/dist/esm/hooks/useOnSelectionChange.d.ts +33 -1
  81. package/dist/esm/hooks/useOnSelectionChange.d.ts.map +1 -1
  82. package/dist/esm/hooks/useOnViewportChange.d.ts +19 -1
  83. package/dist/esm/hooks/useOnViewportChange.d.ts.map +1 -1
  84. package/dist/esm/hooks/useReactFlow.d.ts +24 -1
  85. package/dist/esm/hooks/useReactFlow.d.ts.map +1 -1
  86. package/dist/esm/hooks/useStore.d.ts +23 -2
  87. package/dist/esm/hooks/useStore.d.ts.map +1 -1
  88. package/dist/esm/hooks/useUpdateNodeInternals.d.ts +39 -1
  89. package/dist/esm/hooks/useUpdateNodeInternals.d.ts.map +1 -1
  90. package/dist/esm/hooks/useViewport.d.ts +24 -1
  91. package/dist/esm/hooks/useViewport.d.ts.map +1 -1
  92. package/dist/esm/hooks/useViewportHelper.d.ts.map +1 -1
  93. package/dist/esm/index.js +1089 -184
  94. package/dist/esm/index.mjs +1089 -184
  95. package/dist/esm/store/index.d.ts.map +1 -1
  96. package/dist/esm/types/component-props.d.ts +111 -56
  97. package/dist/esm/types/component-props.d.ts.map +1 -1
  98. package/dist/esm/types/edges.d.ts +27 -2
  99. package/dist/esm/types/edges.d.ts.map +1 -1
  100. package/dist/esm/types/general.d.ts +41 -0
  101. package/dist/esm/types/general.d.ts.map +1 -1
  102. package/dist/esm/types/instance.d.ts +11 -0
  103. package/dist/esm/types/instance.d.ts.map +1 -1
  104. package/dist/esm/types/nodes.d.ts +46 -4
  105. package/dist/esm/types/nodes.d.ts.map +1 -1
  106. package/dist/esm/utils/changes.d.ts +45 -23
  107. package/dist/esm/utils/changes.d.ts.map +1 -1
  108. package/dist/esm/utils/general.d.ts +26 -2
  109. package/dist/esm/utils/general.d.ts.map +1 -1
  110. package/dist/umd/additional-components/Background/Background.d.ts +53 -0
  111. package/dist/umd/additional-components/Background/Background.d.ts.map +1 -1
  112. package/dist/umd/additional-components/Background/types.d.ts +11 -1
  113. package/dist/umd/additional-components/Background/types.d.ts.map +1 -1
  114. package/dist/umd/additional-components/Controls/ControlButton.d.ts +23 -0
  115. package/dist/umd/additional-components/Controls/ControlButton.d.ts.map +1 -1
  116. package/dist/umd/additional-components/Controls/Controls.d.ts +21 -0
  117. package/dist/umd/additional-components/Controls/Controls.d.ts.map +1 -1
  118. package/dist/umd/additional-components/Controls/types.d.ts +8 -1
  119. package/dist/umd/additional-components/Controls/types.d.ts.map +1 -1
  120. package/dist/umd/additional-components/MiniMap/MiniMap.d.ts +20 -0
  121. package/dist/umd/additional-components/MiniMap/MiniMap.d.ts.map +1 -1
  122. package/dist/umd/additional-components/MiniMap/MiniMapNodes.d.ts.map +1 -1
  123. package/dist/umd/additional-components/MiniMap/types.d.ts +11 -1
  124. package/dist/umd/additional-components/MiniMap/types.d.ts.map +1 -1
  125. package/dist/umd/additional-components/NodeResizer/NodeResizeControl.d.ts +5 -0
  126. package/dist/umd/additional-components/NodeResizer/NodeResizeControl.d.ts.map +1 -1
  127. package/dist/umd/additional-components/NodeResizer/NodeResizer.d.ts +24 -0
  128. package/dist/umd/additional-components/NodeResizer/NodeResizer.d.ts.map +1 -1
  129. package/dist/umd/additional-components/NodeResizer/types.d.ts +15 -3
  130. package/dist/umd/additional-components/NodeResizer/types.d.ts.map +1 -1
  131. package/dist/umd/additional-components/NodeToolbar/NodeToolbar.d.ts +35 -0
  132. package/dist/umd/additional-components/NodeToolbar/NodeToolbar.d.ts.map +1 -1
  133. package/dist/umd/additional-components/NodeToolbar/types.d.ts +7 -2
  134. package/dist/umd/additional-components/NodeToolbar/types.d.ts.map +1 -1
  135. package/dist/umd/components/BatchProvider/index.d.ts.map +1 -1
  136. package/dist/umd/components/BatchProvider/useQueue.d.ts.map +1 -1
  137. package/dist/umd/components/ConnectionLine/index.d.ts +4 -4
  138. package/dist/umd/components/ConnectionLine/index.d.ts.map +1 -1
  139. package/dist/umd/components/EdgeLabelRenderer/index.d.ts +40 -0
  140. package/dist/umd/components/EdgeLabelRenderer/index.d.ts.map +1 -1
  141. package/dist/umd/components/Edges/BaseEdge.d.ts +27 -0
  142. package/dist/umd/components/Edges/BaseEdge.d.ts.map +1 -1
  143. package/dist/umd/components/Edges/EdgeText.d.ts +26 -0
  144. package/dist/umd/components/Edges/EdgeText.d.ts.map +1 -1
  145. package/dist/umd/components/Edges/SimpleBezierEdge.d.ts +5 -0
  146. package/dist/umd/components/Edges/SimpleBezierEdge.d.ts.map +1 -1
  147. package/dist/umd/components/Edges/index.d.ts.map +1 -1
  148. package/dist/umd/components/Handle/index.d.ts +32 -4
  149. package/dist/umd/components/Handle/index.d.ts.map +1 -1
  150. package/dist/umd/components/NodeWrapper/index.d.ts +1 -1
  151. package/dist/umd/components/NodeWrapper/index.d.ts.map +1 -1
  152. package/dist/umd/components/NodeWrapper/useNodeObserver.d.ts.map +1 -1
  153. package/dist/umd/components/NodeWrapper/utils.d.ts.map +1 -1
  154. package/dist/umd/components/Nodes/utils.d.ts.map +1 -1
  155. package/dist/umd/components/Panel/index.d.ts +32 -4
  156. package/dist/umd/components/Panel/index.d.ts.map +1 -1
  157. package/dist/umd/components/ReactFlowProvider/index.d.ts +34 -0
  158. package/dist/umd/components/ReactFlowProvider/index.d.ts.map +1 -1
  159. package/dist/umd/components/StoreUpdater/index.d.ts.map +1 -1
  160. package/dist/umd/components/ViewportPortal/index.d.ts +25 -0
  161. package/dist/umd/components/ViewportPortal/index.d.ts.map +1 -1
  162. package/dist/umd/container/EdgeRenderer/MarkerDefinitions.d.ts.map +1 -1
  163. package/dist/umd/container/NodeRenderer/index.d.ts.map +1 -1
  164. package/dist/umd/container/Pane/index.d.ts.map +1 -1
  165. package/dist/umd/container/ReactFlow/Wrapper.d.ts.map +1 -1
  166. package/dist/umd/container/ReactFlow/index.d.ts +20 -0
  167. package/dist/umd/container/ReactFlow/index.d.ts.map +1 -1
  168. package/dist/umd/contexts/NodeIdContext.d.ts +28 -0
  169. package/dist/umd/contexts/NodeIdContext.d.ts.map +1 -1
  170. package/dist/umd/hooks/useConnection.d.ts +20 -1
  171. package/dist/umd/hooks/useConnection.d.ts.map +1 -1
  172. package/dist/umd/hooks/useEdges.d.ts +13 -1
  173. package/dist/umd/hooks/useEdges.d.ts.map +1 -1
  174. package/dist/umd/hooks/useInternalNode.d.ts +21 -1
  175. package/dist/umd/hooks/useInternalNode.d.ts.map +1 -1
  176. package/dist/umd/hooks/useKeyPress.d.ts +19 -1
  177. package/dist/umd/hooks/useKeyPress.d.ts.map +1 -1
  178. package/dist/umd/hooks/useMoveSelectedNodes.d.ts.map +1 -1
  179. package/dist/umd/hooks/useNodeConnections.d.ts +17 -1
  180. package/dist/umd/hooks/useNodeConnections.d.ts.map +1 -1
  181. package/dist/umd/hooks/useNodes.d.ts +14 -1
  182. package/dist/umd/hooks/useNodes.d.ts.map +1 -1
  183. package/dist/umd/hooks/useNodesData.d.ts +14 -2
  184. package/dist/umd/hooks/useNodesData.d.ts.map +1 -1
  185. package/dist/umd/hooks/useNodesEdgesState.d.ts +62 -2
  186. package/dist/umd/hooks/useNodesEdgesState.d.ts.map +1 -1
  187. package/dist/umd/hooks/useNodesInitialized.d.ts +27 -1
  188. package/dist/umd/hooks/useNodesInitialized.d.ts.map +1 -1
  189. package/dist/umd/hooks/useOnSelectionChange.d.ts +33 -1
  190. package/dist/umd/hooks/useOnSelectionChange.d.ts.map +1 -1
  191. package/dist/umd/hooks/useOnViewportChange.d.ts +19 -1
  192. package/dist/umd/hooks/useOnViewportChange.d.ts.map +1 -1
  193. package/dist/umd/hooks/useReactFlow.d.ts +24 -1
  194. package/dist/umd/hooks/useReactFlow.d.ts.map +1 -1
  195. package/dist/umd/hooks/useStore.d.ts +23 -2
  196. package/dist/umd/hooks/useStore.d.ts.map +1 -1
  197. package/dist/umd/hooks/useUpdateNodeInternals.d.ts +39 -1
  198. package/dist/umd/hooks/useUpdateNodeInternals.d.ts.map +1 -1
  199. package/dist/umd/hooks/useViewport.d.ts +24 -1
  200. package/dist/umd/hooks/useViewport.d.ts.map +1 -1
  201. package/dist/umd/hooks/useViewportHelper.d.ts.map +1 -1
  202. package/dist/umd/index.js +2 -2
  203. package/dist/umd/store/index.d.ts.map +1 -1
  204. package/dist/umd/types/component-props.d.ts +111 -56
  205. package/dist/umd/types/component-props.d.ts.map +1 -1
  206. package/dist/umd/types/edges.d.ts +27 -2
  207. package/dist/umd/types/edges.d.ts.map +1 -1
  208. package/dist/umd/types/general.d.ts +41 -0
  209. package/dist/umd/types/general.d.ts.map +1 -1
  210. package/dist/umd/types/instance.d.ts +11 -0
  211. package/dist/umd/types/instance.d.ts.map +1 -1
  212. package/dist/umd/types/nodes.d.ts +46 -4
  213. package/dist/umd/types/nodes.d.ts.map +1 -1
  214. package/dist/umd/utils/changes.d.ts +45 -23
  215. package/dist/umd/utils/changes.d.ts.map +1 -1
  216. package/dist/umd/utils/general.d.ts +26 -2
  217. package/dist/umd/utils/general.d.ts.map +1 -1
  218. package/package.json +4 -3
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AACA,OAAO,EAcL,UAAU,EACV,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,EAA+C,MAAM,UAAU,CAAC;AAExG,QAAA,MAAM,WAAW;;;;;;;;;;2GAsWd,CAAC;AAEJ,OAAO,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AACA,OAAO,EAcL,UAAU,EACV,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,EAA+C,MAAM,UAAU,CAAC;AAExG,QAAA,MAAM,WAAW;;;;;;;;;;2GAgXd,CAAC;AAEJ,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -6,7 +6,8 @@ import type { OnSelectionChangeFunc, NodeTypes, EdgeTypes, Node, Edge, Connectio
6
6
  * @public
7
7
  */
8
8
  export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends Edge = Edge> extends Omit<HTMLAttributes<HTMLDivElement>, 'onError'> {
9
- /** An array of nodes to render in a controlled flow.
9
+ /**
10
+ * An array of nodes to render in a controlled flow.
10
11
  * @example
11
12
  * const nodes = [
12
13
  * {
@@ -18,7 +19,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
18
19
  * ];
19
20
  */
20
21
  nodes?: NodeType[];
21
- /** An array of edges to render in a controlled flow.
22
+ /**
23
+ * An array of edges to render in a controlled flow.
22
24
  * @example
23
25
  * const edges = [
24
26
  * {
@@ -33,7 +35,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
33
35
  defaultNodes?: NodeType[];
34
36
  /** The initial edges to render in an uncontrolled flow. */
35
37
  defaultEdges?: EdgeType[];
36
- /** Defaults to be applied to all new edges that are added to the flow.
38
+ /**
39
+ * Defaults to be applied to all new edges that are added to the flow.
37
40
  *
38
41
  * Properties on a new edge will override these defaults if they exist.
39
42
  * @example
@@ -86,7 +89,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
86
89
  onReconnect?: OnReconnect<EdgeType>;
87
90
  onReconnectStart?: (event: ReactMouseEvent, edge: EdgeType, handleType: HandleType) => void;
88
91
  onReconnectEnd?: (event: MouseEvent | TouchEvent, edge: EdgeType, handleType: HandleType) => void;
89
- /** This event handler is called when a Node is updated
92
+ /**
93
+ * This event handler is called when a Node is updated
90
94
  * @example // Use NodesState hook to create edges and get onNodesChange handler
91
95
  * import ReactFlow, { useNodesState } from '@xyflow/react';
92
96
  * const [edges, setNodes, onNodesChange] = useNodesState(initialNodes);
@@ -103,7 +107,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
103
107
  * return (<ReactFlow onNodeChange={onNodeChange} {...rest} />)
104
108
  */
105
109
  onNodesChange?: OnNodesChange<NodeType>;
106
- /** This event handler is called when a Edge is updated
110
+ /**
111
+ * This event handler is called when a Edge is updated
107
112
  * @example // Use EdgesState hook to create edges and get onEdgesChange handler
108
113
  * import ReactFlow, { useEdgesState } from '@xyflow/react';
109
114
  * const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges);
@@ -135,7 +140,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
135
140
  onSelectionStart?: (event: ReactMouseEvent) => void;
136
141
  onSelectionEnd?: (event: ReactMouseEvent) => void;
137
142
  onSelectionContextMenu?: (event: ReactMouseEvent, nodes: NodeType[]) => void;
138
- /** When a connection line is completed and two nodes are connected by the user, this event fires with the new connection.
143
+ /**
144
+ * When a connection line is completed and two nodes are connected by the user, this event fires with the new connection.
139
145
  *
140
146
  * You can use the addEdge utility to convert the connection to a complete edge.
141
147
  * @example // Use helper function to update edges onConnect
@@ -177,17 +183,20 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
177
183
  onPaneMouseMove?: (event: ReactMouseEvent) => void;
178
184
  /** This event handler gets called when mouse leaves the pane */
179
185
  onPaneMouseLeave?: (event: ReactMouseEvent) => void;
180
- /** Distance that the mouse can move between mousedown/up that will trigger a click
186
+ /**
187
+ * Distance that the mouse can move between mousedown/up that will trigger a click
181
188
  * @default 0
182
189
  */
183
190
  paneClickDistance?: number;
184
- /** Distance that the mouse can move between mousedown/up that will trigger a click
191
+ /**
192
+ * Distance that the mouse can move between mousedown/up that will trigger a click
185
193
  * @default 0
186
194
  */
187
195
  nodeClickDistance?: number;
188
196
  /** This handler gets called before the user deletes nodes or edges and provides a way to abort the deletion by returning false. */
189
197
  onBeforeDelete?: OnBeforeDelete<NodeType, EdgeType>;
190
- /** Custom node types to be available in a flow.
198
+ /**
199
+ * Custom node types to be available in a flow.
191
200
  *
192
201
  * React Flow matches a node's type to a component in the nodeTypes object.
193
202
  * @example
@@ -196,7 +205,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
196
205
  * const nodeTypes = { nameOfNodeType: CustomNode };
197
206
  */
198
207
  nodeTypes?: NodeTypes;
199
- /** Custom edge types to be available in a flow.
208
+ /**
209
+ * Custom edge types to be available in a flow.
200
210
  *
201
211
  * React Flow matches an edge's type to a component in the edgeTypes object.
202
212
  * @example
@@ -205,7 +215,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
205
215
  * const edgeTypes = { nameOfEdgeType: CustomEdge };
206
216
  */
207
217
  edgeTypes?: EdgeTypes;
208
- /** The type of edge path to use for connection lines.
218
+ /**
219
+ * The type of edge path to use for connection lines.
209
220
  *
210
221
  * Although created edges can be of any type, React Flow needs to know what type of path to render for the connection line before the edge is created!
211
222
  */
@@ -213,20 +224,23 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
213
224
  /** Styles to be applied to the connection line */
214
225
  connectionLineStyle?: CSSProperties;
215
226
  /** React Component to be used as a connection line */
216
- connectionLineComponent?: ConnectionLineComponent;
227
+ connectionLineComponent?: ConnectionLineComponent<NodeType>;
217
228
  /** Styles to be applied to the container of the connection line */
218
229
  connectionLineContainerStyle?: CSSProperties;
219
- /** 'strict' connection mode will only allow you to connect source handles to target handles.
230
+ /**
231
+ * 'strict' connection mode will only allow you to connect source handles to target handles.
220
232
  *
221
233
  * 'loose' connection mode will allow you to connect handles of any type to one another.
222
234
  * @default 'strict'
223
235
  */
224
236
  connectionMode?: ConnectionMode;
225
- /** Pressing down this key deletes all selected nodes & edges.
237
+ /**
238
+ * Pressing down this key deletes all selected nodes & edges.
226
239
  * @default 'Backspace'
227
240
  */
228
241
  deleteKeyCode?: KeyCode | null;
229
- /** If a key is set, you can pan the viewport while that key is held down even if panOnScroll is set to false.
242
+ /**
243
+ * If a key is set, you can pan the viewport while that key is held down even if panOnScroll is set to false.
230
244
  *
231
245
  * By setting this prop to null you can disable this functionality.
232
246
  * @default 'Space'
@@ -234,91 +248,110 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
234
248
  selectionKeyCode?: KeyCode | null;
235
249
  /** Select multiple elements with a selection box, without pressing down selectionKey */
236
250
  selectionOnDrag?: boolean;
237
- /** When set to "partial", when the user creates a selection box by click and dragging nodes that are only partially in the box are still selected.
251
+ /**
252
+ * When set to "partial", when the user creates a selection box by click and dragging nodes that are only partially in the box are still selected.
238
253
  * @default 'full'
239
254
  */
240
255
  selectionMode?: SelectionMode;
241
- /** If a key is set, you can pan the viewport while that key is held down even if panOnScroll is set to false.
256
+ /**
257
+ * If a key is set, you can pan the viewport while that key is held down even if panOnScroll is set to false.
242
258
  *
243
259
  * By setting this prop to null you can disable this functionality.
244
260
  * @default 'Space'
245
261
  */
246
262
  panActivationKeyCode?: KeyCode | null;
247
- /** Pressing down this key you can select multiple elements by clicking.
263
+ /**
264
+ * Pressing down this key you can select multiple elements by clicking.
248
265
  * @default 'Meta' for macOS, "Ctrl" for other systems
249
266
  */
250
267
  multiSelectionKeyCode?: KeyCode | null;
251
- /** If a key is set, you can zoom the viewport while that key is held down even if panOnScroll is set to false.
268
+ /**
269
+ * If a key is set, you can zoom the viewport while that key is held down even if panOnScroll is set to false.
252
270
  *
253
271
  * By setting this prop to null you can disable this functionality.
254
272
  * @default 'Meta' for macOS, "Ctrl" for other systems
255
- * */
273
+ *
274
+ */
256
275
  zoomActivationKeyCode?: KeyCode | null;
257
276
  /** Set this prop to make the flow snap to the grid */
258
277
  snapToGrid?: boolean;
259
- /** Grid all nodes will snap to
278
+ /**
279
+ * Grid all nodes will snap to
260
280
  * @example [20, 20]
261
281
  */
262
282
  snapGrid?: SnapGrid;
263
- /** You can enable this optimisation to instruct Svelte Flow to only render nodes and edges that would be visible in the viewport.
283
+ /**
284
+ * You can enable this optimisation to instruct Svelte Flow to only render nodes and edges that would be visible in the viewport.
264
285
  *
265
286
  * This might improve performance when you have a large number of nodes and edges but also adds an overhead.
266
287
  * @default false
267
288
  */
268
289
  onlyRenderVisibleElements?: boolean;
269
- /** Controls if all nodes should be draggable
290
+ /**
291
+ * Controls if all nodes should be draggable
270
292
  * @default true
271
293
  */
272
294
  nodesDraggable?: boolean;
273
- /** Controls if all nodes should be connectable to each other
295
+ /**
296
+ * Controls if all nodes should be connectable to each other
274
297
  * @default true
275
298
  */
276
299
  nodesConnectable?: boolean;
277
- /** Controls if all nodes should be focusable
300
+ /**
301
+ * Controls if all nodes should be focusable
278
302
  * @default true
279
303
  */
280
304
  nodesFocusable?: boolean;
281
- /** Defines nodes relative position to its coordinates
305
+ /**
306
+ * Defines nodes relative position to its coordinates
282
307
  * @example
283
308
  * [0, 0] // default, top left
284
309
  * [0.5, 0.5] // center
285
310
  * [1, 1] // bottom right
286
311
  */
287
312
  nodeOrigin?: NodeOrigin;
288
- /** Controls if all edges should be focusable
313
+ /**
314
+ * Controls if all edges should be focusable
289
315
  * @default true
290
316
  */
291
317
  edgesFocusable?: boolean;
292
- /** Controls if all edges should be updateable
318
+ /**
319
+ * Controls if all edges should be updateable
293
320
  * @default true
294
321
  */
295
322
  edgesReconnectable?: boolean;
296
- /** Controls if all elements should (nodes & edges) be selectable
323
+ /**
324
+ * Controls if all elements should (nodes & edges) be selectable
297
325
  * @default true
298
326
  */
299
327
  elementsSelectable?: boolean;
300
- /** If true, nodes get selected on drag
328
+ /**
329
+ * If true, nodes get selected on drag
301
330
  * @default true
302
331
  */
303
332
  selectNodesOnDrag?: boolean;
304
- /** Enableing this prop allows users to pan the viewport by clicking and dragging.
333
+ /**
334
+ * Enableing this prop allows users to pan the viewport by clicking and dragging.
305
335
  *
306
336
  * You can also set this prop to an array of numbers to limit which mouse buttons can activate panning.
307
337
  * @example [0, 2] // allows panning with the left and right mouse buttons
308
338
  * [0, 1, 2, 3, 4] // allows panning with all mouse buttons
309
339
  */
310
340
  panOnDrag?: boolean | number[];
311
- /** Minimum zoom level
341
+ /**
342
+ * Minimum zoom level
312
343
  * @default 0.5
313
344
  */
314
345
  minZoom?: number;
315
- /** Maximum zoom level
346
+ /**
347
+ * Maximum zoom level
316
348
  * @default 2
317
349
  */
318
350
  maxZoom?: number;
319
351
  /** Controlled viewport to be used instead of internal one */
320
352
  viewport?: Viewport;
321
- /** Sets the initial position and zoom of the viewport.
353
+ /**
354
+ * Sets the initial position and zoom of the viewport.
322
355
  *
323
356
  * If a default viewport is provided but fitView is enabled, the default viewport will be ignored.
324
357
  * @example
@@ -332,23 +365,27 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
332
365
  * Gets called when the viewport changes.
333
366
  */
334
367
  onViewportChange?: (viewport: Viewport) => void;
335
- /** By default the viewport extends infinitely. You can use this prop to set a boundary.
368
+ /**
369
+ * By default the viewport extends infinitely. You can use this prop to set a boundary.
336
370
  *
337
371
  * The first pair of coordinates is the top left boundary and the second pair is the bottom right.
338
372
  * @example [[-1000, -10000], [1000, 1000]]
339
373
  */
340
374
  translateExtent?: CoordinateExtent;
341
- /** Disabling this prop will allow the user to scroll the page even when their pointer is over the flow.
375
+ /**
376
+ * Disabling this prop will allow the user to scroll the page even when their pointer is over the flow.
342
377
  * @default true
343
378
  */
344
379
  preventScrolling?: boolean;
345
- /** By default nodes can be placed on an infinite flow. You can use this prop to set a boundary.
380
+ /**
381
+ * By default nodes can be placed on an infinite flow. You can use this prop to set a boundary.
346
382
  *
347
383
  * The first pair of coordinates is the top left boundary and the second pair is the bottom right.
348
384
  * @example [[-1000, -10000], [1000, 1000]]
349
385
  */
350
386
  nodeExtent?: CoordinateExtent;
351
- /** Color of edge markers
387
+ /**
388
+ * Color of edge markers
352
389
  * @example "#b1b1b7"
353
390
  */
354
391
  defaultMarkerColor?: string;
@@ -356,17 +393,20 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
356
393
  zoomOnScroll?: boolean;
357
394
  /** Controls if the viewport should zoom by pinching on a touch screen */
358
395
  zoomOnPinch?: boolean;
359
- /** Controls if the viewport should pan by scrolling inside the container
396
+ /**
397
+ * Controls if the viewport should pan by scrolling inside the container
360
398
  *
361
399
  * Can be limited to a specific direction with panOnScrollMode
362
400
  */
363
401
  panOnScroll?: boolean;
364
- /** Controls how fast viewport should be panned on scroll.
402
+ /**
403
+ * Controls how fast viewport should be panned on scroll.
365
404
  *
366
405
  * Use togther with panOnScroll prop.
367
406
  */
368
407
  panOnScrollSpeed?: number;
369
- /** This prop is used to limit the direction of panning when panOnScroll is enabled.
408
+ /**
409
+ * This prop is used to limit the direction of panning when panOnScroll is enabled.
370
410
  *
371
411
  * The "free" option allows panning in any direction.
372
412
  * @default "free"
@@ -381,7 +421,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
381
421
  noPanClassName?: string;
382
422
  /** If set, initial viewport will show all nodes & edges */
383
423
  fitView?: boolean;
384
- /** Options to be used in combination with fitView
424
+ /**
425
+ * Options to be used in combination with fitView
385
426
  * @example
386
427
  * const fitViewOptions = {
387
428
  * padding: 0.1,
@@ -393,30 +434,35 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
393
434
  * };
394
435
  */
395
436
  fitViewOptions?: FitViewOptions;
396
- /**The connectOnClick option lets you click or tap on a source handle to start a connection
437
+ /**
438
+ *The connectOnClick option lets you click or tap on a source handle to start a connection
397
439
  * and then click on a target handle to complete the connection.
398
440
  *
399
441
  * If you set this option to false, users will need to drag the connection line to the target
400
442
  * handle to create a connection.
401
443
  */
402
444
  connectOnClick?: boolean;
403
- /** Set position of the attribution
445
+ /**
446
+ * Set position of the attribution
404
447
  * @default 'bottom-right'
405
448
  * @example 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'
406
449
  */
407
450
  attributionPosition?: PanelPosition;
408
- /** By default, we render a small attribution in the corner of your flows that links back to the project.
451
+ /**
452
+ * By default, we render a small attribution in the corner of your flows that links back to the project.
409
453
  *
410
454
  * Anyone is free to remove this attribution whether they're a Pro subscriber or not
411
455
  * but we ask that you take a quick look at our {@link https://reactflow.dev/learn/troubleshooting/remove-attribution | removing attribution guide}
412
456
  * before doing so.
413
457
  */
414
458
  proOptions?: ProOptions;
415
- /** Enabling this option will raise the z-index of nodes when they are selected.
459
+ /**
460
+ * Enabling this option will raise the z-index of nodes when they are selected.
416
461
  * @default true
417
462
  */
418
463
  elevateNodesOnSelect?: boolean;
419
- /** Enabling this option will raise the z-index of edges when they are selected.
464
+ /**
465
+ * Enabling this option will raise the z-index of edges when they are selected.
420
466
  * @default true
421
467
  */
422
468
  elevateEdgesOnSelect?: boolean;
@@ -425,36 +471,43 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
425
471
  * @default false
426
472
  */
427
473
  disableKeyboardA11y?: boolean;
428
- /** You can enable this prop to automatically pan the viewport while dragging a node.
474
+ /**
475
+ * You can enable this prop to automatically pan the viewport while dragging a node.
429
476
  * @default true
430
477
  */
431
478
  autoPanOnNodeDrag?: boolean;
432
- /** You can enable this prop to automatically pan the viewport while dragging a node.
479
+ /**
480
+ * You can enable this prop to automatically pan the viewport while dragging a node.
433
481
  * @default true
434
482
  */
435
483
  autoPanOnConnect?: boolean;
436
- /** The speed at which the viewport pans while dragging a node or a selection box.
484
+ /**
485
+ * The speed at which the viewport pans while dragging a node or a selection box.
437
486
  * @default 15
438
487
  */
439
488
  autoPanSpeed?: number;
440
- /** You can enable this prop to automatically pan the viewport while making a new connection.
489
+ /**
490
+ * You can enable this prop to automatically pan the viewport while making a new connection.
441
491
  * @default true
442
492
  */
443
493
  connectionRadius?: number;
444
- /** Ocassionally something may happen that causes Svelte Flow to throw an error.
494
+ /**
495
+ * Ocassionally something may happen that causes Svelte Flow to throw an error.
445
496
  *
446
497
  * Instead of exploding your application, we log a message to the console and then call this event handler.
447
498
  * You might use it for additional logging or to show a message to the user.
448
499
  */
449
500
  onError?: OnError;
450
- /** This callback can be used to validate a new connection
501
+ /**
502
+ * This callback can be used to validate a new connection
451
503
  *
452
504
  * If you return false, the edge will not be added to your flow.
453
505
  * If you have custom connection logic its preferred to use this callback over the isValidConnection prop on the handle component for performance reasons.
454
506
  * @default (connection: Connection) => true
455
507
  */
456
508
  isValidConnection?: IsValidConnection<EdgeType>;
457
- /** With a threshold greater than zero you can control the distinction between node drag and click events.
509
+ /**
510
+ * With a threshold greater than zero you can control the distinction between node drag and click events.
458
511
  *
459
512
  * If threshold equals 1, you need to drag the node 1 pixel before a drag event is fired.
460
513
  * @default 1
@@ -464,12 +517,14 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
464
517
  width?: number;
465
518
  /** Sets a fixed height for the flow */
466
519
  height?: number;
467
- /** Controls color scheme used for styling the flow
520
+ /**
521
+ * Controls color scheme used for styling the flow
468
522
  * @default 'system'
469
523
  * @example 'system' | 'light' | 'dark'
470
524
  */
471
525
  colorMode?: ColorMode;
472
- /** If set true, some debug information will be logged to the console like which events are fired.
526
+ /**
527
+ * If set true, some debug information will be logged to the console like which events are fired.
473
528
  *
474
529
  * @default undefined
475
530
  */
@@ -1 +1 @@
1
- {"version":3,"file":"component-props.d.ts","sourceRoot":"","sources":["../../src/types/component-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,IAAI,eAAe,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACtG,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,OAAO,EACP,eAAe,EACf,UAAU,EACV,aAAa,EACb,MAAM,EACN,WAAW,EACX,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,aAAa,EACb,OAAO,EACP,SAAS,EACT,QAAQ,EACT,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EACV,qBAAqB,EACrB,SAAS,EACT,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,uBAAuB,EACvB,WAAW,EACX,MAAM,EACN,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,aAAa,EACb,QAAQ,EACR,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,GAAG,CAAC;AAEX;;;GAGG;AACH,MAAM,WAAW,cAAc,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,CACxF,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC;IACvD;;;;;;;;;;OA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,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,aAAa,CAAC;IACpC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAChD;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB"}
1
+ {"version":3,"file":"component-props.d.ts","sourceRoot":"","sources":["../../src/types/component-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,IAAI,eAAe,EAAE,UAAU,EAAE,MAAM,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B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAChD;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB"}
@@ -1,6 +1,9 @@
1
1
  import type { CSSProperties, SVGAttributes, ReactNode, MouseEvent as ReactMouseEvent, ComponentType } from 'react';
2
2
  import type { EdgeBase, BezierPathOptions, Position, SmoothStepPathOptions, DefaultEdgeOptionsBase, HandleType, Connection, ConnectionLineType, Handle, EdgePosition, StepPathOptions, OnError, FinalConnectionState } from '@xyflow/system';
3
3
  import { EdgeTypes, InternalNode, Node } from '.';
4
+ /**
5
+ * @inline
6
+ */
4
7
  export type EdgeLabelOptions = {
5
8
  label?: string | ReactNode;
6
9
  labelStyle?: CSSProperties;
@@ -10,7 +13,8 @@ export type EdgeLabelOptions = {
10
13
  labelBgBorderRadius?: number;
11
14
  };
12
15
  /**
13
- * The Edge type is mainly used for the `edges` that get passed to the ReactFlow component
16
+ * An `Edge` is the complete description with everything React Flow needs
17
+ * to know in order to render it.
14
18
  * @public
15
19
  */
16
20
  export type Edge<EdgeData extends Record<string, unknown> = Record<string, unknown>, EdgeType extends string | undefined = string | undefined> = EdgeBase<EdgeData, EdgeType> & EdgeLabelOptions & {
@@ -52,14 +56,21 @@ export type EdgeWrapperProps<EdgeType extends Edge = Edge> = {
52
56
  onError?: OnError;
53
57
  disableKeyboardA11y?: boolean;
54
58
  };
59
+ /**
60
+ * Many properties on an [`Edge`](/api-reference/types/edge) are optional. When a new edge is created,
61
+ * the properties that are not provided will be filled in with the default values
62
+ * passed to the `defaultEdgeOptions` prop of the [`<ReactFlow />`](/api-reference/react-flow#defaultedgeoptions) component.
63
+ */
55
64
  export type DefaultEdgeOptions = DefaultEdgeOptionsBase<Edge>;
56
65
  export type EdgeTextProps = SVGAttributes<SVGElement> & EdgeLabelOptions & {
57
66
  x: number;
58
67
  y: number;
59
68
  };
60
69
  /**
61
- * Custom edge component props
70
+ * When you implement a custom edge it is wrapped in a component that enables some
71
+ * basic functionality. The `EdgeProps` type is the props that are passed to this.
62
72
  * @public
73
+ * @expand
63
74
  */
64
75
  export type EdgeProps<EdgeType extends Edge = Edge> = Pick<EdgeType, 'id' | 'animated' | 'data' | 'style' | 'selected' | 'source' | 'target' | 'selectable' | 'deletable'> & EdgePosition & EdgeLabelOptions & {
65
76
  sourceHandleId?: string | null;
@@ -72,6 +83,7 @@ export type EdgeProps<EdgeType extends Edge = Edge> = Pick<EdgeType, 'id' | 'ani
72
83
  /**
73
84
  * BaseEdge component props
74
85
  * @public
86
+ * @expand
75
87
  */
76
88
  export type BaseEdgeProps = Omit<SVGAttributes<SVGPathElement>, 'd'> & EdgeLabelOptions & {
77
89
  /** Additional padding where interacting with an edge is still possible */
@@ -86,6 +98,7 @@ export type BaseEdgeProps = Omit<SVGAttributes<SVGPathElement>, 'd'> & EdgeLabel
86
98
  /**
87
99
  * Helper type for edge components that get exported by the library
88
100
  * @public
101
+ * @expand
89
102
  */
90
103
  export type EdgeComponentProps = EdgePosition & EdgeLabelOptions & {
91
104
  id?: EdgeProps['id'];
@@ -102,29 +115,41 @@ export type EdgeComponentWithPathOptions<PathOptions> = EdgeComponentProps & {
102
115
  /**
103
116
  * BezierEdge component props
104
117
  * @public
118
+ * @expand
105
119
  */
106
120
  export type BezierEdgeProps = EdgeComponentWithPathOptions<BezierPathOptions>;
107
121
  /**
108
122
  * SmoothStepEdge component props
109
123
  * @public
124
+ * @expand
110
125
  */
111
126
  export type SmoothStepEdgeProps = EdgeComponentWithPathOptions<SmoothStepPathOptions>;
112
127
  /**
113
128
  * StepEdge component props
114
129
  * @public
130
+ * @expand
115
131
  */
116
132
  export type StepEdgeProps = EdgeComponentWithPathOptions<StepPathOptions>;
117
133
  /**
118
134
  * StraightEdge component props
119
135
  * @public
136
+ * @expand
120
137
  */
121
138
  export type StraightEdgeProps = Omit<EdgeComponentProps, 'sourcePosition' | 'targetPosition'>;
122
139
  /**
123
140
  * SimpleBezier component props
124
141
  * @public
142
+ * @expand
125
143
  */
126
144
  export type SimpleBezierEdgeProps = EdgeComponentProps;
127
145
  export type OnReconnect<EdgeType extends Edge = Edge> = (oldEdge: EdgeType, newConnection: Connection) => void;
146
+ /**
147
+ * If you want to render a custom component for connection lines, you can set the
148
+ * `connectionLineComponent` prop on the [`<ReactFlow />`](/api-reference/react-flow#connection-connectionLineComponent)
149
+ * component. The `ConnectionLineComponentProps` are passed to your custom component.
150
+ *
151
+ * @public
152
+ */
128
153
  export type ConnectionLineComponentProps<NodeType extends Node = Node> = {
129
154
  connectionLineStyle?: CSSProperties;
130
155
  connectionLineType: ConnectionLineType;
@@ -1 +1 @@
1
- {"version":3,"file":"edges.d.ts","sourceRoot":"","sources":["../../src/types/edges.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,IAAI,eAAe,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACnH,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EAC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