@xyflow/react 12.4.1 → 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 +1090 -185
  94. package/dist/esm/index.mjs +1090 -185
  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":"types.d.ts","sourceRoot":"","sources":["../../../src/additional-components/MiniMap/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,uBAAuB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,KAAK,MAAM,CAAC;AAE/F,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC,GAAG;IACxG,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IACvD,uCAAuC;IACvC,eAAe,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAC7D,4CAA4C;IAC5C,aAAa,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAC3D,wCAAwC;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uCAAuC;IACvC,eAAe,CAAC,EAAE,MAAM,CAA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AAe,CAC7G,GAAG;IACF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD,CAAC"}
@@ -2,6 +2,11 @@
2
2
  import type { ResizeControlProps, ResizeControlLineProps } from './types';
3
3
  declare function ResizeControl({ nodeId, position, variant, className, style, children, color, minWidth, minHeight, maxWidth, maxHeight, keepAspectRatio, shouldResize, onResizeStart, onResize, onResizeEnd, }: ResizeControlProps): import("react/jsx-runtime").JSX.Element;
4
4
  export declare function ResizeControlLine(props: ResizeControlLineProps): import("react/jsx-runtime").JSX.Element;
5
+ /**
6
+ * To create your own resizing UI, you can use the `NodeResizeControl` component where you can pass children (such as icons).
7
+ * @public
8
+ *
9
+ */
5
10
  export declare const NodeResizeControl: import("react").MemoExoticComponent<typeof ResizeControl>;
6
11
  export {};
7
12
  //# sourceMappingURL=NodeResizeControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NodeResizeControl.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeResizer/NodeResizeControl.tsx"],"names":[],"mappings":";AAmBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAE1E,iBAAS,aAAa,CAAC,EACrB,MAAM,EACN,QAAQ,EACR,OAAqC,EACrC,SAAS,EACT,KAAU,EACV,QAAQ,EACR,KAAK,EACL,QAAa,EACb,SAAc,EACd,QAA2B,EAC3B,SAA4B,EAC5B,eAAuB,EACvB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,WAAW,GACZ,EAAE,kBAAkB,2CA+JpB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAE9D;AAED,eAAO,MAAM,iBAAiB,2DAAsB,CAAC"}
1
+ {"version":3,"file":"NodeResizeControl.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeResizer/NodeResizeControl.tsx"],"names":[],"mappings":";AAmBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAE1E,iBAAS,aAAa,CAAC,EACrB,MAAM,EACN,QAAQ,EACR,OAAqC,EACrC,SAAS,EACT,KAAU,EACV,QAAQ,EACR,KAAK,EACL,QAAa,EACb,SAAc,EACd,QAA2B,EAC3B,SAA4B,EAC5B,eAAuB,EACvB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,WAAW,GACZ,EAAE,kBAAkB,2CAiKpB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAE9D;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,2DAAsB,CAAC"}
@@ -1,3 +1,27 @@
1
1
  import type { NodeResizerProps } from './types';
2
+ /**
3
+ * The `<NodeResizer />` component can be used to add a resize functionality to your
4
+ * nodes. It renders draggable controls around the node to resize in all directions.
5
+ * @public
6
+ *
7
+ * @example
8
+ *```jsx
9
+ *import { memo } from 'react';
10
+ *import { Handle, Position, NodeResizer } from '@xyflow/react';
11
+ *
12
+ *function ResizableNode({ data }) {
13
+ * return (
14
+ * <>
15
+ * <NodeResizer minWidth={100} minHeight={30} />
16
+ * <Handle type="target" position={Position.Left} />
17
+ * <div style={{ padding: 10 }}>{data.label}</div>
18
+ * <Handle type="source" position={Position.Right} />
19
+ * </>
20
+ * );
21
+ *};
22
+ *
23
+ *export default memo(ResizableNode);
24
+ *```
25
+ */
2
26
  export declare function NodeResizer({ nodeId, isVisible, handleClassName, handleStyle, lineClassName, lineStyle, color, minWidth, minHeight, maxWidth, maxHeight, keepAspectRatio, shouldResize, onResizeStart, onResize, onResizeEnd, }: NodeResizerProps): import("react/jsx-runtime").JSX.Element | null;
3
27
  //# sourceMappingURL=NodeResizer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NodeResizer.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeResizer/NodeResizer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,SAAgB,EAChB,eAAe,EACf,WAAW,EACX,aAAa,EACb,SAAS,EACT,KAAK,EACL,QAAa,EACb,SAAc,EACd,QAA2B,EAC3B,SAA4B,EAC5B,eAAuB,EACvB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,WAAW,GACZ,EAAE,gBAAgB,kDAgDlB"}
1
+ {"version":3,"file":"NodeResizer.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeResizer/NodeResizer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,SAAgB,EAChB,eAAe,EACf,WAAW,EACX,aAAa,EACb,SAAS,EACT,KAAK,EACL,QAAa,EACb,SAAc,EACd,QAA2B,EAC3B,SAA4B,EAC5B,eAAuB,EACvB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,WAAW,GACZ,EAAE,gBAAgB,kDAgDlB"}
@@ -1,7 +1,11 @@
1
1
  import type { CSSProperties, ReactNode } from 'react';
2
2
  import type { ControlPosition, ControlLinePosition, ResizeControlVariant, ShouldResize, OnResizeStart, OnResize, OnResizeEnd } from '@xyflow/system';
3
+ /**
4
+ * @expand
5
+ */
3
6
  export type NodeResizerProps = {
4
- /** Id of the node it is resizing
7
+ /**
8
+ * Id of the node it is resizing
5
9
  * @remarks optional if used inside custom node
6
10
  */
7
11
  nodeId?: string;
@@ -36,13 +40,18 @@ export type NodeResizerProps = {
36
40
  /** Callback called when resizing ends */
37
41
  onResizeEnd?: OnResizeEnd;
38
42
  };
43
+ /**
44
+ * @expand
45
+ */
39
46
  export type ResizeControlProps = Pick<NodeResizerProps, 'nodeId' | 'color' | 'minWidth' | 'minHeight' | 'maxWidth' | 'maxHeight' | 'keepAspectRatio' | 'shouldResize' | 'onResizeStart' | 'onResize' | 'onResizeEnd'> & {
40
- /** Position of the control
47
+ /**
48
+ * Position of the control
41
49
  * @example ControlPosition.TopLeft, ControlPosition.TopRight,
42
50
  * ControlPosition.BottomLeft, ControlPosition.BottomRight
43
51
  */
44
52
  position?: ControlPosition;
45
- /** Variant of the control
53
+ /**
54
+ * Variant of the control
46
55
  * @example ResizeControlVariant.Handle, ResizeControlVariant.Line
47
56
  */
48
57
  variant?: ResizeControlVariant;
@@ -50,6 +59,9 @@ export type ResizeControlProps = Pick<NodeResizerProps, 'nodeId' | 'color' | 'mi
50
59
  style?: CSSProperties;
51
60
  children?: ReactNode;
52
61
  };
62
+ /**
63
+ * @expand
64
+ */
53
65
  export type ResizeControlLineProps = ResizeControlProps & {
54
66
  position?: ControlLinePosition;
55
67
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeResizer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAA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;OAEG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,GAAG;IACxD,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeResizer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,gCAAgC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,+BAA+B;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kDAAkD;IAClD,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,2CAA2C;IAC3C,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,oCAAoC;IACpC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,yCAAyC;IACzC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,gBAAgB,EACd,QAAQ,GACR,OAAO,GACP,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,iBAAiB,GACjB,cAAc,GACd,eAAe,GACf,UAAU,GACV,aAAa,CAChB,GAAG;IACF;;;;OAIG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B;;;OAGG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,GAAG;IACxD,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC,CAAC"}
@@ -1,3 +1,38 @@
1
1
  import type { NodeToolbarProps } from './types';
2
+ /**
3
+ * This component can render a toolbar or tooltip to one side of a custom node. This
4
+ * toolbar doesn't scale with the viewport so that the content is always visible.
5
+ *
6
+ * @public
7
+ * @example
8
+ * ```jsx
9
+ *import { memo } from 'react';
10
+ *import { Handle, Position, NodeToolbar } from '@xyflow/react';
11
+ *
12
+ *function CustomNode({ data }) {
13
+ * return (
14
+ * <>
15
+ * <NodeToolbar isVisible={data.toolbarVisible} position={data.toolbarPosition}>
16
+ * <button>delete</button>
17
+ * <button>copy</button>
18
+ * <button>expand</button>
19
+ * </NodeToolbar>
20
+ *
21
+ * <div style={{ padding: '10px 20px' }}>
22
+ * {data.label}
23
+ * </div>
24
+ *
25
+ * <Handle type="target" position={Position.Left} />
26
+ * <Handle type="source" position={Position.Right} />
27
+ * </>
28
+ * );
29
+ *};
30
+ *
31
+ *export default memo(CustomNode);
32
+ *```
33
+ * @remarks By default, the toolbar is only visible when a node is selected. If multiple
34
+ * nodes are selected it will not be visible to prevent overlapping toolbars or
35
+ * clutter. You can override this behavior by setting the `isVisible` prop to `true`.
36
+ */
2
37
  export declare function NodeToolbar({ nodeId, children, className, style, isVisible, position, offset, align, ...rest }: NodeToolbarProps): import("react/jsx-runtime").JSX.Element | null;
3
38
  //# sourceMappingURL=NodeToolbar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NodeToolbar.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeToolbar/NodeToolbar.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA+BhD,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,QAAQ,EACR,SAAS,EACT,KAAK,EACL,SAAS,EACT,QAAuB,EACvB,MAAW,EACX,KAAgB,EAChB,GAAG,IAAI,EACR,EAAE,gBAAgB,kDAwDlB"}
1
+ {"version":3,"file":"NodeToolbar.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeToolbar/NodeToolbar.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA+BhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,QAAQ,EACR,SAAS,EACT,KAAK,EACL,SAAS,EACT,QAAuB,EACvB,MAAW,EACX,KAAgB,EAChB,GAAG,IAAI,EACR,EAAE,gBAAgB,kDAwDlB"}
@@ -1,18 +1,23 @@
1
1
  import type { HTMLAttributes } from 'react';
2
2
  import type { Position, Align } from '@xyflow/system';
3
+ /**
4
+ * @expand
5
+ */
3
6
  export type NodeToolbarProps = HTMLAttributes<HTMLDivElement> & {
4
7
  /** Id of the node, or array of ids the toolbar should be displayed at */
5
8
  nodeId?: string | string[];
6
9
  /** If true, node toolbar is visible even if node is not selected */
7
10
  isVisible?: boolean;
8
- /** Position of the toolbar relative to the node
11
+ /**
12
+ * Position of the toolbar relative to the node
9
13
  * @example Position.TopLeft, Position.TopRight,
10
14
  * Position.BottomLeft, Position.BottomRight
11
15
  */
12
16
  position?: Position;
13
17
  /** Offset the toolbar from the node */
14
18
  offset?: number;
15
- /** Align the toolbar relative to the node
19
+ /**
20
+ * Align the toolbar relative to the node
16
21
  * @example Align.Start, Align.Center, Align.End
17
22
  */
18
23
  align?: Align;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeToolbar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC9D,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,oEAAoE;IACpE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeToolbar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC9D,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,oEAAoE;IACpE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BatchProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAoC,MAAM,OAAO,CAAC;AAKnF,OAAO,EAAE,KAAK,EAAa,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAU9C;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,EACxF,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;CACrB,2CAmDA;AAED,wBAAgB,eAAe;;;EAQ9B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BatchProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAoC,MAAM,OAAO,CAAC;AAKnF,OAAO,EAAE,KAAK,EAAa,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAU9C;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,EACxF,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;CACrB,2CAqDA;AAED,wBAAgB,eAAe;;;EAQ9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"useQueue.d.ts","sourceRoot":"","sources":["../../../src/components/BatchProvider/useQueue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,YA2BpE"}
1
+ {"version":3,"file":"useQueue.d.ts","sourceRoot":"","sources":["../../../src/components/BatchProvider/useQueue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,YAiCpE"}
@@ -1,12 +1,12 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import { ConnectionLineType } from '@xyflow/system';
3
- import type { ConnectionLineComponent } from '../../types';
4
- type ConnectionLineWrapperProps = {
3
+ import type { ConnectionLineComponent, Node } from '../../types';
4
+ type ConnectionLineWrapperProps<NodeType extends Node = Node> = {
5
5
  type: ConnectionLineType;
6
- component?: ConnectionLineComponent;
6
+ component?: ConnectionLineComponent<NodeType>;
7
7
  containerStyle?: CSSProperties;
8
8
  style?: CSSProperties;
9
9
  };
10
- export declare function ConnectionLineWrapper({ containerStyle, style, type, component }: ConnectionLineWrapperProps): import("react/jsx-runtime").JSX.Element | null;
10
+ export declare function ConnectionLineWrapper<NodeType extends Node = Node>({ containerStyle, style, type, component, }: ConnectionLineWrapperProps<NodeType>): import("react/jsx-runtime").JSX.Element | null;
11
11
  export {};
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectionLine/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,EACL,kBAAkB,EAKnB,MAAM,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAAE,uBAAuB,EAAkB,MAAM,aAAa,CAAC;AAG3E,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,CAAC,EAAE,uBAAuB,CAAC;IACpC,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAUF,wBAAgB,qBAAqB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,0BAA0B,kDAoB3G"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectionLine/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,EACL,kBAAkB,EAKnB,MAAM,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAAE,uBAAuB,EAAE,IAAI,EAAkB,MAAM,aAAa,CAAC;AAGjF,KAAK,0BAA0B,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI;IAC9D,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,CAAC,EAAE,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAC9C,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAUF,wBAAgB,qBAAqB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,EAClE,cAAc,EACd,KAAK,EACL,IAAI,EACJ,SAAS,GACV,EAAE,0BAA0B,CAAC,QAAQ,CAAC,kDAoBtC"}
@@ -1,4 +1,44 @@
1
1
  import type { ReactNode } from 'react';
2
+ /**
3
+ * Edges are SVG-based. If you want to render more complex labels you can use the
4
+ * `<EdgeLabelRenderer />` component to access a div based renderer. This component
5
+ * is a portal that renders the label in a `<div />` that is positioned on top of
6
+ * the edges. You can see an example usage of the component in the [edge label renderer](/examples/edges/edge-label-renderer) example.
7
+ * @public
8
+ *
9
+ * @example
10
+ *```jsx
11
+ *import React from 'react';
12
+ *import { getBezierPath, EdgeLabelRenderer, BaseEdge } from '@xyflow/react';
13
+ *
14
+ *export function CustomEdge({ id, data, ...props }) {
15
+ * const [edgePath, labelX, labelY] = getBezierPath(props);
16
+ *
17
+ * return (
18
+ * <>
19
+ * <BaseEdge id={id} path={edgePath} />
20
+ * <EdgeLabelRenderer>
21
+ * <div
22
+ * style={{
23
+ * position: 'absolute',
24
+ * transform: `translate(-50%, -50%) translate(${labelX}px,${labelY}px)`,
25
+ * background: '#ffcc00',
26
+ * padding: 10,
27
+ * }}
28
+ * className="nodrag nopan"
29
+ * >
30
+ * {data.label}
31
+ * </div>
32
+ * </EdgeLabelRenderer>
33
+ * </>
34
+ * );
35
+ *};
36
+ *```
37
+ *
38
+ * @remarks The `<EdgeLabelRenderer />` has no pointer events by default. If you want to
39
+ * add mouse interactions you need to set the style `pointerEvents: all` and add
40
+ * the `nopan` class on the label or the element you want to interact with.
41
+ */
2
42
  export declare function EdgeLabelRenderer({ children }: {
3
43
  children: ReactNode;
4
44
  }): import("react").ReactPortal | null;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/EdgeLabelRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,sCAQtE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/EdgeLabelRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,sCAQtE"}
@@ -1,3 +1,30 @@
1
1
  import type { BaseEdgeProps } from '../../types';
2
+ /**
3
+ * The `<BaseEdge />` component gets used internally for all the edges. It can be
4
+ * used inside a custom edge and handles the invisible helper edge and the edge label
5
+ * for you.
6
+ *
7
+ * @public
8
+ * @example
9
+ * ```jsx
10
+ *import { BaseEdge } from '@xyflow/react';
11
+ *
12
+ *export function CustomEdge({ sourceX, sourceY, targetX, targetY, ...props }) {
13
+ * const [edgePath] = getStraightPath({
14
+ * sourceX,
15
+ * sourceY,
16
+ * targetX,
17
+ * targetY,
18
+ * });
19
+ *
20
+ * return <BaseEdge path={edgePath} {...props} />;
21
+ *}
22
+ *```
23
+ *
24
+ * @remarks If you want to use an edge marker with the [`<BaseEdge />`](/api-reference/components/base-edge) component,
25
+ * you can pass the `markerStart` or `markerEnd` props passed to your custom edge
26
+ * through to the [`<BaseEdge />`](/api-reference/components/base-edge) component.
27
+ * You can see all the props passed to a custom edge by looking at the [`EdgeProps`](/api-reference/types/edge-props) type.
28
+ */
2
29
  export declare function BaseEdge({ path, labelX, labelY, label, labelStyle, labelShowBg, labelBgStyle, labelBgPadding, labelBgBorderRadius, interactionWidth, ...props }: BaseEdgeProps): import("react/jsx-runtime").JSX.Element;
3
30
  //# sourceMappingURL=BaseEdge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseEdge.d.ts","sourceRoot":"","sources":["../../../src/components/Edges/BaseEdge.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,MAAM,EACN,MAAM,EACN,KAAK,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,gBAAqB,EACrB,GAAG,KAAK,EACT,EAAE,aAAa,2CA2Bf"}
1
+ {"version":3,"file":"BaseEdge.d.ts","sourceRoot":"","sources":["../../../src/components/Edges/BaseEdge.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,MAAM,EACN,MAAM,EACN,KAAK,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,gBAAqB,EACrB,GAAG,KAAK,EACT,EAAE,aAAa,2CA2Bf"}
@@ -4,6 +4,32 @@ declare function EdgeTextComponent({ x, y, label, labelStyle, labelShowBg, label
4
4
  declare namespace EdgeTextComponent {
5
5
  var displayName: string;
6
6
  }
7
+ /**
8
+ * You can use the `<EdgeText />` component as a helper component to display text
9
+ * within your custom edges.
10
+ *
11
+ *@public
12
+ *
13
+ *@example
14
+ *```jsx
15
+ *import { EdgeText } from '@xyflow/react';
16
+ *
17
+ *export function CustomEdgeLabel({ label }) {
18
+ * return (
19
+ * <EdgeText
20
+ * x={100}
21
+ * y={100}
22
+ * label={label}
23
+ * labelStyle={{ fill: 'white' }}
24
+ * labelShowBg
25
+ * labelBgStyle={{ fill: 'red' }}
26
+ * labelBgPadding={[2, 4]}
27
+ * labelBgBorderRadius={2}
28
+ * />
29
+ * );
30
+ *}
31
+ *```
32
+ */
7
33
  export declare const EdgeText: import("react").MemoExoticComponent<typeof EdgeTextComponent>;
8
34
  export {};
9
35
  //# sourceMappingURL=EdgeText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EdgeText.d.ts","sourceRoot":"","sources":["../../../src/components/Edges/EdgeText.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,iBAAS,iBAAiB,CAAC,EACzB,CAAC,EACD,CAAC,EACD,KAAK,EACL,UAAe,EACf,WAAkB,EAClB,YAAiB,EACjB,cAAuB,EACvB,mBAAuB,EACvB,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,aAAa,kDAqDf;kBAjEQ,iBAAiB;;;AAqE1B,eAAO,MAAM,QAAQ,+DAA0B,CAAC"}
1
+ {"version":3,"file":"EdgeText.d.ts","sourceRoot":"","sources":["../../../src/components/Edges/EdgeText.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,iBAAS,iBAAiB,CAAC,EACzB,CAAC,EACD,CAAC,EACD,KAAK,EACL,UAAe,EACf,WAAkB,EAClB,YAAiB,EACjB,cAAuB,EACvB,mBAAuB,EACvB,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,aAAa,kDAqDf;kBAjEQ,iBAAiB;;;AAqE1B;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,QAAQ,+DAA0B,CAAC"}
@@ -9,6 +9,11 @@ export interface GetSimpleBezierPathParams {
9
9
  targetY: number;
10
10
  targetPosition?: Position;
11
11
  }
12
+ /**
13
+ * The `getSimpleBezierPath` util returns everything you need to render a simple
14
+ * bezier edge between two nodes.
15
+ * @public
16
+ */
12
17
  export declare function getSimpleBezierPath({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition, }: GetSimpleBezierPathParams): [path: string, labelX: number, labelY: number, offsetX: number, offsetY: number];
13
18
  declare const SimpleBezierEdge: import("react").MemoExoticComponent<({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, label, labelStyle, labelShowBg, labelBgStyle, labelBgPadding, labelBgBorderRadius, style, markerEnd, markerStart, interactionWidth, }: SimpleBezierEdgeProps) => import("react/jsx-runtime").JSX.Element>;
14
19
  declare const SimpleBezierEdgeInternal: import("react").MemoExoticComponent<({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, label, labelStyle, labelShowBg, labelBgStyle, labelBgPadding, labelBgBorderRadius, style, markerEnd, markerStart, interactionWidth, }: SimpleBezierEdgeProps) => import("react/jsx-runtime").JSX.Element>;
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleBezierEdge.d.ts","sourceRoot":"","sources":["../../../src/components/Edges/SimpleBezierEdge.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAuB,MAAM,gBAAgB,CAAC;AAG/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,QAAQ,CAAC;CAC3B;AAkBD,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,OAAO,EACP,cAAgC,EAChC,OAAO,EACP,OAAO,EACP,cAA6B,GAC9B,EAAE,yBAAyB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAiC9G;AAyDD,QAAA,MAAM,gBAAgB,wPAlCf,qBAAqB,6CAkC0C,CAAC;AACvE,QAAA,MAAM,wBAAwB,wPAnCvB,qBAAqB,6CAmCiD,CAAC;AAK9E,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,CAAC"}
1
+ {"version":3,"file":"SimpleBezierEdge.d.ts","sourceRoot":"","sources":["../../../src/components/Edges/SimpleBezierEdge.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAuB,MAAM,gBAAgB,CAAC;AAG/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,QAAQ,CAAC;CAC3B;AAkBD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,OAAO,EACP,cAAgC,EAChC,OAAO,EACP,OAAO,EACP,cAA6B,GAC9B,EAAE,yBAAyB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAiC9G;AAyDD,QAAA,MAAM,gBAAgB,wPAlCf,qBAAqB,6CAkC0C,CAAC;AACvE,QAAA,MAAM,wBAAwB,wPAnCvB,qBAAqB,6CAmCiD,CAAC;AAK9E,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Edges/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Edges/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC"}
@@ -1,11 +1,39 @@
1
1
  import { type HTMLAttributes } from 'react';
2
2
  import { type HandleProps as HandlePropsSystem, OnConnect } from '@xyflow/system';
3
- export interface HandleProps extends HandlePropsSystem, Omit<HTMLAttributes<HTMLDivElement>, 'id'> {
3
+ /**
4
+ * @expand
5
+ */
6
+ export type HandleProps = HandlePropsSystem & Omit<HTMLAttributes<HTMLDivElement>, 'id'> & {
4
7
  /** Callback called when connection is made */
5
8
  onConnect?: OnConnect;
6
- }
9
+ };
7
10
  /**
8
- * The Handle component is a UI element that is used to connect nodes.
11
+ * The `<Handle />` component is used in your [custom nodes](/learn/customization/custom-nodes)
12
+ * to define connection points.
13
+ *
14
+ *@public
15
+ *
16
+ *@example
17
+ *
18
+ *```jsx
19
+ *import { Handle, Position } from '@xyflow/react';
20
+ *
21
+ *export function CustomNode({ data }) {
22
+ * return (
23
+ * <>
24
+ * <div style={{ padding: '10px 20px' }}>
25
+ * {data.label}
26
+ * </div>
27
+ *
28
+ * <Handle type="target" position={Position.Left} />
29
+ * <Handle type="source" position={Position.Right} />
30
+ * </>
31
+ * );
32
+ *};
33
+ *```
9
34
  */
10
- export declare const Handle: import("react").MemoExoticComponent<(props: HandleProps & import("react").RefAttributes<HTMLDivElement>) => JSX.Element>;
35
+ export declare const Handle: import("react").MemoExoticComponent<(props: HandlePropsSystem & Omit<HTMLAttributes<HTMLDivElement>, "id"> & {
36
+ /** Callback called when connection is made */
37
+ onConnect?: OnConnect | undefined;
38
+ } & import("react").RefAttributes<HTMLDivElement>) => JSX.Element>;
11
39
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Handle/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAKpB,MAAM,OAAO,CAAC;AAGf,OAAO,EAOL,KAAK,WAAW,IAAI,iBAAiB,EAIrC,SAAS,EAGV,MAAM,gBAAgB,CAAC;AAOxB,MAAM,WAAW,WAAY,SAAQ,iBAAiB,EAAE,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC;IAChG,8CAA8C;IAC9C,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAwND;;GAEG;AACH,eAAO,MAAM,MAAM,0HAAyC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Handle/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAKpB,MAAM,OAAO,CAAC;AAGf,OAAO,EAOL,KAAK,WAAW,IAAI,iBAAiB,EAIrC,SAAS,EAGV,MAAM,gBAAgB,CAAC;AAOxB;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,iBAAiB,GACzC,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,GAAG;IAC3C,8CAA8C;IAC9C,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AA0NJ;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,MAAM;IArPf,8CAA8C;;kEAqPU,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { Node, NodeWrapperProps } from '../../types';
2
- export declare function NodeWrapper<NodeType extends Node>({ id, onClick, onMouseEnter, onMouseMove, onMouseLeave, onContextMenu, onDoubleClick, nodesDraggable, elementsSelectable, nodesConnectable, nodesFocusable, resizeObserver, noDragClassName, noPanClassName, disableKeyboardA11y, rfId, nodeTypes, nodeExtent, nodeClickDistance, onError, }: NodeWrapperProps<NodeType>): import("react/jsx-runtime").JSX.Element | null;
2
+ export declare function NodeWrapper<NodeType extends Node>({ id, onClick, onMouseEnter, onMouseMove, onMouseLeave, onContextMenu, onDoubleClick, nodesDraggable, elementsSelectable, nodesConnectable, nodesFocusable, resizeObserver, noDragClassName, noPanClassName, disableKeyboardA11y, rfId, nodeTypes, nodeClickDistance, onError, }: NodeWrapperProps<NodeType>): import("react/jsx-runtime").JSX.Element | null;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NodeWrapper/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAgB,IAAI,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAExE,wBAAgB,WAAW,CAAC,QAAQ,SAAS,IAAI,EAAE,EACjD,EAAE,EACF,OAAO,EACP,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,IAAI,EACJ,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,OAAO,GACR,EAAE,gBAAgB,CAAC,QAAQ,CAAC,kDAkL5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NodeWrapper/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAgB,IAAI,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAExE,wBAAgB,WAAW,CAAC,QAAQ,SAAS,IAAI,EAAE,EACjD,EAAE,EACF,OAAO,EACP,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,IAAI,EACJ,SAAS,EACT,iBAAiB,EACjB,OAAO,GACR,EAAE,gBAAgB,CAAC,QAAQ,CAAC,kDAoL5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"useNodeObserver.d.ts","sourceRoot":"","sources":["../../../src/components/NodeWrapper/useNodeObserver.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,cAAc,GACf,EAAE;IACD,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;CACvC,2DAiDA"}
1
+ {"version":3,"file":"useNodeObserver.d.ts","sourceRoot":"","sources":["../../../src/components/NodeWrapper/useNodeObserver.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,cAAc,GACf,EAAE;IACD,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;CACvC,2DAmDA"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/NodeWrapper/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAMjD,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEjE,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAKpD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,SAK9B,CAAC;AAEF,wBAAgB,4BAA4B,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EACvE,IAAI,EAAE,YAAY,CAAC,QAAQ,CAAC,GAC3B;IACD,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACrC,CAYA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/NodeWrapper/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAMjD,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEjE,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAKpD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,SAK9B,CAAC;AAEF,wBAAgB,4BAA4B,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EACvE,IAAI,EAAE,YAAY,CAAC,QAAQ,CAAC,GAC3B;IACC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACrC,CAYF"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Nodes/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMlD,wBAAgB,eAAe,CAAC,EAC9B,EAAE,EACF,KAAK,EACL,QAAgB,EAChB,OAAO,GACR,EAAE;IACD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE;QACL,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,CAAC;QAC/C,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,CAAC;KAChD,CAAC;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;CACrC,QAkBA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Nodes/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAQlD,wBAAgB,eAAe,CAAC,EAC9B,EAAE,EACF,KAAK,EACL,QAAgB,EAChB,OAAO,GACR,EAAE;IACD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE;QACL,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,CAAC;QAC/C,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,CAAC;KAChD,CAAC;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;CACrC,QAkBA"}
@@ -1,15 +1,43 @@
1
1
  import { type HTMLAttributes, type ReactNode } from 'react';
2
2
  import type { PanelPosition } from '@xyflow/system';
3
+ /**
4
+ * @expand
5
+ */
3
6
  export type PanelProps = HTMLAttributes<HTMLDivElement> & {
4
- /** Set position of the panel
5
- * @example 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'
7
+ /**
8
+ * The position of the panel
6
9
  */
7
10
  position?: PanelPosition;
8
11
  children: ReactNode;
9
12
  };
13
+ /**
14
+ * The `<Panel />` component helps you position content above the viewport.
15
+ * It is used internally by the [`<MiniMap />`](/api-reference/components/minimap)
16
+ * and [`<Controls />`](/api-reference/components/controls) components.
17
+ *
18
+ * @public
19
+ *
20
+ * @example
21
+ * ```jsx
22
+ *import { ReactFlow, Background, Panel } from '@xyflow/react';
23
+ *
24
+ *export default function Flow() {
25
+ * return (
26
+ * <ReactFlow nodes={[]} fitView>
27
+ * <Panel position="top-left">top-left</Panel>
28
+ * <Panel position="top-center">top-center</Panel>
29
+ * <Panel position="top-right">top-right</Panel>
30
+ * <Panel position="bottom-left">bottom-left</Panel>
31
+ * <Panel position="bottom-center">bottom-center</Panel>
32
+ * <Panel position="bottom-right">bottom-right</Panel>
33
+ * </ReactFlow>
34
+ * );
35
+ *}
36
+ *```
37
+ */
10
38
  export declare const Panel: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
11
- /** Set position of the panel
12
- * @example 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'
39
+ /**
40
+ * The position of the panel
13
41
  */
14
42
  position?: PanelPosition | undefined;
15
43
  children: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKpD,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACxD;;OAEG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAIF,eAAO,MAAM,KAAK;IAThB;;OAEG;;cAEO,SAAS;kDAqBpB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKpD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACxD;;OAEG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,KAAK;IAlChB;;OAEG;;cAEO,SAAS;kDA8CpB,CAAC"}
@@ -13,5 +13,39 @@ export type ReactFlowProviderProps = {
13
13
  nodeExtent?: CoordinateExtent;
14
14
  children: ReactNode;
15
15
  };
16
+ /**
17
+ * The `<ReactFlowProvider />` component is a [context provider](https://react.dev/learn/passing-data-deeply-with-context#)
18
+ * that makes it possible to access a flow's internal state outside of the
19
+ * [`<ReactFlow />`](/api-reference/react-flow) component. Many of the hooks we
20
+ * provide rely on this component to work.
21
+ * @public
22
+ *
23
+ * @example
24
+ * ```tsx
25
+ *import { ReactFlow, ReactFlowProvider, useNodes } from '@xyflow/react'
26
+ *
27
+ *export default function Flow() {
28
+ * return (
29
+ * <ReactFlowProvider>
30
+ * <ReactFlow nodes={...} edges={...} />
31
+ * <Sidebar />
32
+ * </ReactFlowProvider>
33
+ * );
34
+ *}
35
+ *
36
+ *function Sidebar() {
37
+ * // This hook will only work if the component it's used in is a child of a
38
+ * // <ReactFlowProvider />.
39
+ * const nodes = useNodes()
40
+ *
41
+ * return <aside>do something with nodes</aside>;
42
+ *}
43
+ *```
44
+ *
45
+ * @remarks If you're using a router and want your flow's state to persist across routes,
46
+ * it's vital that you place the `<ReactFlowProvider />` component _outside_ of
47
+ * your router. If you have multiple flows on the same page you will need to use a separate
48
+ * `<ReactFlowProvider />` for each flow.
49
+ */
16
50
  export declare function ReactFlowProvider({ initialNodes: nodes, initialEdges: edges, defaultNodes, defaultEdges, initialWidth: width, initialHeight: height, fitView, nodeOrigin, nodeExtent, children, }: ReactFlowProviderProps): import("react/jsx-runtime").JSX.Element;
17
51
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ReactFlowProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKjD,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE9D,MAAM,MAAM,sBAAsB,GAAG;IACnC,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAChC,YAAY,EAAE,KAAK,EACnB,YAAY,EAAE,KAAK,EACnB,YAAY,EACZ,YAAY,EACZ,YAAY,EAAE,KAAK,EACnB,aAAa,EAAE,MAAM,EACrB,OAAO,EACP,UAAU,EACV,UAAU,EACV,QAAQ,GACT,EAAE,sBAAsB,2CAoBxB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ReactFlowProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKjD,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE9D,MAAM,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C,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,EACrF,KAAK,EAAE,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAyD7C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StoreUpdater/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAkB,cAAc,EAAkB,MAAM,aAAa,CAAC;AAI9F,QAAA,MAAM,sBAAsB,w7BAwDlB,CAAC;AAEX,KAAK,sBAAsB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AACtE,KAAK,iBAAiB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,IAAI,CACvF,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAClC,sBAAsB,CACvB,GAAG;IACF,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAiCF,wBAAgB,YAAY,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,EACrF,KAAK,EAAE,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAyD7C"}
@@ -1,4 +1,29 @@
1
1
  import type { ReactNode } from 'react';
2
+ /**
3
+ * The `<ViewportPortal />` component can be used to add components to the same viewport
4
+ * of the flow where nodes and edges are rendered. This is useful when you want to render
5
+ * your own components that are adhere to the same coordinate system as the nodes & edges
6
+ * and are also affected by zooming and panning
7
+ * @public
8
+ * @example
9
+ *
10
+ * ```jsx
11
+ *import React from 'react';
12
+ *import { ViewportPortal } from '@xyflow/react';
13
+ *
14
+ *export default function () {
15
+ * return (
16
+ * <ViewportPortal>
17
+ * <div
18
+ * style={{ transform: 'translate(100px, 100px)', position: 'absolute' }}
19
+ * >
20
+ * This div is positioned at [100, 100] on the flow.
21
+ * </div>
22
+ * </ViewportPortal>
23
+ * );
24
+ *}
25
+ *```
26
+ */
2
27
  export declare function ViewportPortal({ children }: {
3
28
  children: ReactNode;
4
29
  }): import("react").ReactPortal | null;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ViewportPortal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,sCAQnE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ViewportPortal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,sCAQnE"}