@xyflow/react 12.0.0-next.17 → 12.0.0-next.19

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 (512) hide show
  1. package/dist/base.css +93 -0
  2. package/dist/esm/components/EdgeWrapper/index.d.ts.map +1 -1
  3. package/dist/esm/components/Handle/index.d.ts +5 -3
  4. package/dist/esm/components/Handle/index.d.ts.map +1 -1
  5. package/dist/esm/components/NodeWrapper/index.d.ts.map +1 -1
  6. package/dist/esm/container/GraphView/index.d.ts.map +1 -1
  7. package/dist/esm/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +6 -0
  8. package/dist/esm/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +1 -1
  9. package/dist/esm/container/GraphView/useStylesLoadedWarning.d.ts +2 -0
  10. package/dist/esm/container/GraphView/useStylesLoadedWarning.d.ts.map +1 -0
  11. package/dist/esm/container/NodeRenderer/useResizeObserver.d.ts.map +1 -1
  12. package/dist/esm/container/ReactFlow/index.d.ts +1 -1
  13. package/dist/esm/index.d.ts +1 -1
  14. package/dist/esm/index.d.ts.map +1 -1
  15. package/dist/esm/index.js +31 -9
  16. package/dist/esm/index.mjs +31 -9
  17. package/dist/esm/tooling/tsconfig/dist/additional-components/Background/Background.d.ts +9 -0
  18. package/dist/esm/tooling/tsconfig/dist/additional-components/Background/Background.d.ts.map +1 -0
  19. package/dist/esm/tooling/tsconfig/dist/additional-components/Background/Patterns.d.ts +15 -0
  20. package/dist/esm/tooling/tsconfig/dist/additional-components/Background/Patterns.d.ts.map +1 -0
  21. package/dist/esm/tooling/tsconfig/dist/additional-components/Background/index.d.ts +3 -0
  22. package/dist/esm/tooling/tsconfig/dist/additional-components/Background/index.d.ts.map +1 -0
  23. package/dist/esm/tooling/tsconfig/dist/additional-components/Background/types.d.ts +33 -0
  24. package/dist/esm/tooling/tsconfig/dist/additional-components/Background/types.d.ts.map +1 -0
  25. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/ControlButton.d.ts +3 -0
  26. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/ControlButton.d.ts.map +1 -0
  27. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Controls.d.ts +9 -0
  28. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Controls.d.ts.map +1 -0
  29. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/FitView.d.ts +2 -0
  30. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/FitView.d.ts.map +1 -0
  31. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Lock.d.ts +2 -0
  32. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Lock.d.ts.map +1 -0
  33. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Minus.d.ts +2 -0
  34. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Minus.d.ts.map +1 -0
  35. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Plus.d.ts +2 -0
  36. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Plus.d.ts.map +1 -0
  37. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Unlock.d.ts +2 -0
  38. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Unlock.d.ts.map +1 -0
  39. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/index.d.ts +4 -0
  40. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/index.d.ts.map +1 -0
  41. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/types.d.ts +35 -0
  42. package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/types.d.ts.map +1 -0
  43. package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/MiniMap.d.ts +9 -0
  44. package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/MiniMap.d.ts.map +1 -0
  45. package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNode.d.ts +6 -0
  46. package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNode.d.ts.map +1 -0
  47. package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNodes.d.ts +6 -0
  48. package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNodes.d.ts.map +1 -0
  49. package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/index.d.ts +3 -0
  50. package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/index.d.ts.map +1 -0
  51. package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/types.d.ts +67 -0
  52. package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/types.d.ts.map +1 -0
  53. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizeControl.d.ts +7 -0
  54. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizeControl.d.ts.map +1 -0
  55. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizer.d.ts +3 -0
  56. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizer.d.ts.map +1 -0
  57. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/index.d.ts +4 -0
  58. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/index.d.ts.map +1 -0
  59. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/types.d.ts +56 -0
  60. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/types.d.ts.map +1 -0
  61. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbar.d.ts +3 -0
  62. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbar.d.ts.map +1 -0
  63. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbarPortal.d.ts +5 -0
  64. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbarPortal.d.ts.map +1 -0
  65. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/index.d.ts +3 -0
  66. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/index.d.ts.map +1 -0
  67. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/types.d.ts +20 -0
  68. package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/types.d.ts.map +1 -0
  69. package/dist/esm/tooling/tsconfig/dist/additional-components/index.d.ts +6 -0
  70. package/dist/esm/tooling/tsconfig/dist/additional-components/index.d.ts.map +1 -0
  71. package/dist/esm/tooling/tsconfig/dist/components/A11yDescriptions/index.d.ts +8 -0
  72. package/dist/esm/tooling/tsconfig/dist/components/A11yDescriptions/index.d.ts.map +1 -0
  73. package/dist/esm/tooling/tsconfig/dist/components/Attribution/index.d.ts +8 -0
  74. package/dist/esm/tooling/tsconfig/dist/components/Attribution/index.d.ts.map +1 -0
  75. package/dist/esm/tooling/tsconfig/dist/components/BatchProvider/index.d.ts +17 -0
  76. package/dist/esm/tooling/tsconfig/dist/components/BatchProvider/index.d.ts.map +1 -0
  77. package/dist/esm/tooling/tsconfig/dist/components/BatchProvider/types.d.ts +7 -0
  78. package/dist/esm/tooling/tsconfig/dist/components/BatchProvider/types.d.ts.map +1 -0
  79. package/dist/esm/tooling/tsconfig/dist/components/BatchProvider/useQueue.d.ts +11 -0
  80. package/dist/esm/tooling/tsconfig/dist/components/BatchProvider/useQueue.d.ts.map +1 -0
  81. package/dist/esm/tooling/tsconfig/dist/components/ConnectionLine/index.d.ts +12 -0
  82. package/dist/esm/tooling/tsconfig/dist/components/ConnectionLine/index.d.ts.map +1 -0
  83. package/dist/esm/tooling/tsconfig/dist/components/EdgeLabelRenderer/index.d.ts +5 -0
  84. package/dist/esm/tooling/tsconfig/dist/components/EdgeLabelRenderer/index.d.ts.map +1 -0
  85. package/dist/esm/tooling/tsconfig/dist/components/EdgeWrapper/EdgeUpdateAnchors.d.ts +17 -0
  86. package/dist/esm/tooling/tsconfig/dist/components/EdgeWrapper/EdgeUpdateAnchors.d.ts.map +1 -0
  87. package/dist/esm/tooling/tsconfig/dist/components/EdgeWrapper/index.d.ts +4 -0
  88. package/dist/esm/tooling/tsconfig/dist/components/EdgeWrapper/index.d.ts.map +1 -0
  89. package/dist/esm/tooling/tsconfig/dist/components/EdgeWrapper/utils.d.ts +11 -0
  90. package/dist/esm/tooling/tsconfig/dist/components/EdgeWrapper/utils.d.ts.map +1 -0
  91. package/dist/esm/tooling/tsconfig/dist/components/Edges/BaseEdge.d.ts +3 -0
  92. package/dist/esm/tooling/tsconfig/dist/components/Edges/BaseEdge.d.ts.map +1 -0
  93. package/dist/esm/tooling/tsconfig/dist/components/Edges/BezierEdge.d.ts +6 -0
  94. package/dist/esm/tooling/tsconfig/dist/components/Edges/BezierEdge.d.ts.map +1 -0
  95. package/dist/esm/tooling/tsconfig/dist/components/Edges/EdgeAnchor.d.ts +14 -0
  96. package/dist/esm/tooling/tsconfig/dist/components/Edges/EdgeAnchor.d.ts.map +1 -0
  97. package/dist/esm/tooling/tsconfig/dist/components/Edges/EdgeText.d.ts +9 -0
  98. package/dist/esm/tooling/tsconfig/dist/components/Edges/EdgeText.d.ts.map +1 -0
  99. package/dist/esm/tooling/tsconfig/dist/components/Edges/SimpleBezierEdge.d.ts +16 -0
  100. package/dist/esm/tooling/tsconfig/dist/components/Edges/SimpleBezierEdge.d.ts.map +1 -0
  101. package/dist/esm/tooling/tsconfig/dist/components/Edges/SmoothStepEdge.d.ts +6 -0
  102. package/dist/esm/tooling/tsconfig/dist/components/Edges/SmoothStepEdge.d.ts.map +1 -0
  103. package/dist/esm/tooling/tsconfig/dist/components/Edges/StepEdge.d.ts +6 -0
  104. package/dist/esm/tooling/tsconfig/dist/components/Edges/StepEdge.d.ts.map +1 -0
  105. package/dist/esm/tooling/tsconfig/dist/components/Edges/StraightEdge.d.ts +6 -0
  106. package/dist/esm/tooling/tsconfig/dist/components/Edges/StraightEdge.d.ts.map +1 -0
  107. package/dist/esm/tooling/tsconfig/dist/components/Edges/index.d.ts +6 -0
  108. package/dist/esm/tooling/tsconfig/dist/components/Edges/index.d.ts.map +1 -0
  109. package/dist/esm/tooling/tsconfig/dist/components/Handle/index.d.ts +11 -0
  110. package/dist/esm/tooling/tsconfig/dist/components/Handle/index.d.ts.map +1 -0
  111. package/dist/esm/tooling/tsconfig/dist/components/NodeWrapper/index.d.ts +3 -0
  112. package/dist/esm/tooling/tsconfig/dist/components/NodeWrapper/index.d.ts.map +1 -0
  113. package/dist/esm/tooling/tsconfig/dist/components/NodeWrapper/useNodeObserver.d.ts +15 -0
  114. package/dist/esm/tooling/tsconfig/dist/components/NodeWrapper/useNodeObserver.d.ts.map +1 -0
  115. package/dist/esm/tooling/tsconfig/dist/components/NodeWrapper/utils.d.ts +9 -0
  116. package/dist/esm/tooling/tsconfig/dist/components/NodeWrapper/utils.d.ts.map +1 -0
  117. package/dist/esm/tooling/tsconfig/dist/components/Nodes/DefaultNode.d.ts +3 -0
  118. package/dist/esm/tooling/tsconfig/dist/components/Nodes/DefaultNode.d.ts.map +1 -0
  119. package/dist/esm/tooling/tsconfig/dist/components/Nodes/GroupNode.d.ts +2 -0
  120. package/dist/esm/tooling/tsconfig/dist/components/Nodes/GroupNode.d.ts.map +1 -0
  121. package/dist/esm/tooling/tsconfig/dist/components/Nodes/InputNode.d.ts +3 -0
  122. package/dist/esm/tooling/tsconfig/dist/components/Nodes/InputNode.d.ts.map +1 -0
  123. package/dist/esm/tooling/tsconfig/dist/components/Nodes/OutputNode.d.ts +3 -0
  124. package/dist/esm/tooling/tsconfig/dist/components/Nodes/OutputNode.d.ts.map +1 -0
  125. package/dist/esm/tooling/tsconfig/dist/components/Nodes/utils.d.ts +13 -0
  126. package/dist/esm/tooling/tsconfig/dist/components/Nodes/utils.d.ts.map +1 -0
  127. package/dist/esm/tooling/tsconfig/dist/components/NodesSelection/index.d.ts +13 -0
  128. package/dist/esm/tooling/tsconfig/dist/components/NodesSelection/index.d.ts.map +1 -0
  129. package/dist/esm/tooling/tsconfig/dist/components/Panel/index.d.ts +11 -0
  130. package/dist/esm/tooling/tsconfig/dist/components/Panel/index.d.ts.map +1 -0
  131. package/dist/esm/tooling/tsconfig/dist/components/ReactFlowProvider/index.d.ts +14 -0
  132. package/dist/esm/tooling/tsconfig/dist/components/ReactFlowProvider/index.d.ts.map +1 -0
  133. package/dist/esm/tooling/tsconfig/dist/components/SelectionListener/index.d.ts +7 -0
  134. package/dist/esm/tooling/tsconfig/dist/components/SelectionListener/index.d.ts.map +1 -0
  135. package/dist/esm/tooling/tsconfig/dist/components/StoreUpdater/index.d.ts +9 -0
  136. package/dist/esm/tooling/tsconfig/dist/components/StoreUpdater/index.d.ts.map +1 -0
  137. package/dist/esm/tooling/tsconfig/dist/components/UserSelection/index.d.ts +2 -0
  138. package/dist/esm/tooling/tsconfig/dist/components/UserSelection/index.d.ts.map +1 -0
  139. package/dist/esm/tooling/tsconfig/dist/components/ViewportPortal/index.d.ts +5 -0
  140. package/dist/esm/tooling/tsconfig/dist/components/ViewportPortal/index.d.ts.map +1 -0
  141. package/dist/esm/tooling/tsconfig/dist/container/EdgeRenderer/MarkerDefinitions.d.ts +11 -0
  142. package/dist/esm/tooling/tsconfig/dist/container/EdgeRenderer/MarkerDefinitions.d.ts.map +1 -0
  143. package/dist/esm/tooling/tsconfig/dist/container/EdgeRenderer/MarkerSymbols.d.ts +9 -0
  144. package/dist/esm/tooling/tsconfig/dist/container/EdgeRenderer/MarkerSymbols.d.ts.map +1 -0
  145. package/dist/esm/tooling/tsconfig/dist/container/EdgeRenderer/index.d.ts +13 -0
  146. package/dist/esm/tooling/tsconfig/dist/container/EdgeRenderer/index.d.ts.map +1 -0
  147. package/dist/esm/tooling/tsconfig/dist/container/FlowRenderer/index.d.ts +14 -0
  148. package/dist/esm/tooling/tsconfig/dist/container/FlowRenderer/index.d.ts.map +1 -0
  149. package/dist/esm/tooling/tsconfig/dist/container/GraphView/index.d.ts +11 -0
  150. package/dist/esm/tooling/tsconfig/dist/container/GraphView/index.d.ts.map +1 -0
  151. package/dist/esm/tooling/tsconfig/dist/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +10 -0
  152. package/dist/esm/tooling/tsconfig/dist/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +1 -0
  153. package/dist/esm/tooling/tsconfig/dist/container/GraphView/useStylesLoadedWarning.d.ts +2 -0
  154. package/dist/esm/tooling/tsconfig/dist/container/GraphView/useStylesLoadedWarning.d.ts.map +1 -0
  155. package/dist/esm/tooling/tsconfig/dist/container/NodeRenderer/index.d.ts +10 -0
  156. package/dist/esm/tooling/tsconfig/dist/container/NodeRenderer/index.d.ts.map +1 -0
  157. package/dist/esm/tooling/tsconfig/dist/container/NodeRenderer/useResizeObserver.d.ts +2 -0
  158. package/dist/esm/tooling/tsconfig/dist/container/NodeRenderer/useResizeObserver.d.ts.map +1 -0
  159. package/dist/esm/tooling/tsconfig/dist/container/Pane/index.d.ts +12 -0
  160. package/dist/esm/tooling/tsconfig/dist/container/Pane/index.d.ts.map +1 -0
  161. package/dist/esm/tooling/tsconfig/dist/container/ReactFlow/Wrapper.d.ts +13 -0
  162. package/dist/esm/tooling/tsconfig/dist/container/ReactFlow/Wrapper.d.ts.map +1 -0
  163. package/dist/esm/tooling/tsconfig/dist/container/ReactFlow/index.d.ts +5 -0
  164. package/dist/esm/tooling/tsconfig/dist/container/ReactFlow/index.d.ts.map +1 -0
  165. package/dist/esm/tooling/tsconfig/dist/container/ReactFlow/init-values.d.ts +4 -0
  166. package/dist/esm/tooling/tsconfig/dist/container/ReactFlow/init-values.d.ts.map +1 -0
  167. package/dist/esm/tooling/tsconfig/dist/container/Viewport/index.d.ts +7 -0
  168. package/dist/esm/tooling/tsconfig/dist/container/Viewport/index.d.ts.map +1 -0
  169. package/dist/esm/tooling/tsconfig/dist/container/ZoomPane/index.d.ts +7 -0
  170. package/dist/esm/tooling/tsconfig/dist/container/ZoomPane/index.d.ts.map +1 -0
  171. package/dist/esm/tooling/tsconfig/dist/contexts/NodeIdContext.d.ts +7 -0
  172. package/dist/esm/tooling/tsconfig/dist/contexts/NodeIdContext.d.ts.map +1 -0
  173. package/dist/esm/tooling/tsconfig/dist/contexts/StoreContext.d.ts +5 -0
  174. package/dist/esm/tooling/tsconfig/dist/contexts/StoreContext.d.ts.map +1 -0
  175. package/dist/esm/tooling/tsconfig/dist/hooks/useColorModeClass.d.ts +9 -0
  176. package/dist/esm/tooling/tsconfig/dist/hooks/useColorModeClass.d.ts.map +1 -0
  177. package/dist/esm/tooling/tsconfig/dist/hooks/useConnection.d.ts +20 -0
  178. package/dist/esm/tooling/tsconfig/dist/hooks/useConnection.d.ts.map +1 -0
  179. package/dist/esm/tooling/tsconfig/dist/hooks/useDrag.d.ts +17 -0
  180. package/dist/esm/tooling/tsconfig/dist/hooks/useDrag.d.ts.map +1 -0
  181. package/dist/esm/tooling/tsconfig/dist/hooks/useEdges.d.ts +9 -0
  182. package/dist/esm/tooling/tsconfig/dist/hooks/useEdges.d.ts.map +1 -0
  183. package/dist/esm/tooling/tsconfig/dist/hooks/useGlobalKeyHandler.d.ts +11 -0
  184. package/dist/esm/tooling/tsconfig/dist/hooks/useGlobalKeyHandler.d.ts.map +1 -0
  185. package/dist/esm/tooling/tsconfig/dist/hooks/useHandleConnections.d.ts +22 -0
  186. package/dist/esm/tooling/tsconfig/dist/hooks/useHandleConnections.d.ts.map +1 -0
  187. package/dist/esm/tooling/tsconfig/dist/hooks/useInternalNode.d.ts +10 -0
  188. package/dist/esm/tooling/tsconfig/dist/hooks/useInternalNode.d.ts.map +1 -0
  189. package/dist/esm/tooling/tsconfig/dist/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  190. package/dist/esm/tooling/tsconfig/dist/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
  191. package/dist/esm/tooling/tsconfig/dist/hooks/useKeyPress.d.ts +15 -0
  192. package/dist/esm/tooling/tsconfig/dist/hooks/useKeyPress.d.ts.map +1 -0
  193. package/dist/esm/tooling/tsconfig/dist/hooks/useMoveSelectedNodes.d.ts +12 -0
  194. package/dist/esm/tooling/tsconfig/dist/hooks/useMoveSelectedNodes.d.ts.map +1 -0
  195. package/dist/esm/tooling/tsconfig/dist/hooks/useNodes.d.ts +9 -0
  196. package/dist/esm/tooling/tsconfig/dist/hooks/useNodes.d.ts.map +1 -0
  197. package/dist/esm/tooling/tsconfig/dist/hooks/useNodesData.d.ts +12 -0
  198. package/dist/esm/tooling/tsconfig/dist/hooks/useNodesData.d.ts.map +1 -0
  199. package/dist/esm/tooling/tsconfig/dist/hooks/useNodesEdgesState.d.ts +19 -0
  200. package/dist/esm/tooling/tsconfig/dist/hooks/useNodesEdgesState.d.ts.map +1 -0
  201. package/dist/esm/tooling/tsconfig/dist/hooks/useNodesInitialized.d.ts +12 -0
  202. package/dist/esm/tooling/tsconfig/dist/hooks/useNodesInitialized.d.ts.map +1 -0
  203. package/dist/esm/tooling/tsconfig/dist/hooks/useOnInitHandler.d.ts +8 -0
  204. package/dist/esm/tooling/tsconfig/dist/hooks/useOnInitHandler.d.ts.map +1 -0
  205. package/dist/esm/tooling/tsconfig/dist/hooks/useOnSelectionChange.d.ts +12 -0
  206. package/dist/esm/tooling/tsconfig/dist/hooks/useOnSelectionChange.d.ts.map +1 -0
  207. package/dist/esm/tooling/tsconfig/dist/hooks/useOnViewportChange.d.ts +16 -0
  208. package/dist/esm/tooling/tsconfig/dist/hooks/useOnViewportChange.d.ts.map +1 -0
  209. package/dist/esm/tooling/tsconfig/dist/hooks/useReactFlow.d.ts +9 -0
  210. package/dist/esm/tooling/tsconfig/dist/hooks/useReactFlow.d.ts.map +1 -0
  211. package/dist/esm/tooling/tsconfig/dist/hooks/useResizeHandler.d.ts +8 -0
  212. package/dist/esm/tooling/tsconfig/dist/hooks/useResizeHandler.d.ts.map +1 -0
  213. package/dist/esm/tooling/tsconfig/dist/hooks/useStore.d.ts +21 -0
  214. package/dist/esm/tooling/tsconfig/dist/hooks/useStore.d.ts.map +1 -0
  215. package/dist/esm/tooling/tsconfig/dist/hooks/useUpdateNodeInternals.d.ts +9 -0
  216. package/dist/esm/tooling/tsconfig/dist/hooks/useUpdateNodeInternals.d.ts.map +1 -0
  217. package/dist/esm/tooling/tsconfig/dist/hooks/useViewport.d.ts +9 -0
  218. package/dist/esm/tooling/tsconfig/dist/hooks/useViewport.d.ts.map +1 -0
  219. package/dist/esm/tooling/tsconfig/dist/hooks/useViewportHelper.d.ts +10 -0
  220. package/dist/esm/tooling/tsconfig/dist/hooks/useViewportHelper.d.ts.map +1 -0
  221. package/dist/esm/tooling/tsconfig/dist/hooks/useViewportSync.d.ts +9 -0
  222. package/dist/esm/tooling/tsconfig/dist/hooks/useViewportSync.d.ts.map +1 -0
  223. package/dist/esm/tooling/tsconfig/dist/hooks/useVisibleEdgeIds.d.ts +9 -0
  224. package/dist/esm/tooling/tsconfig/dist/hooks/useVisibleEdgeIds.d.ts.map +1 -0
  225. package/dist/esm/tooling/tsconfig/dist/hooks/useVisibleNodeIds.d.ts +9 -0
  226. package/dist/esm/tooling/tsconfig/dist/hooks/useVisibleNodeIds.d.ts.map +1 -0
  227. package/dist/esm/tooling/tsconfig/dist/index.d.ts +36 -0
  228. package/dist/esm/tooling/tsconfig/dist/index.d.ts.map +1 -0
  229. package/dist/esm/tooling/tsconfig/dist/store/index.d.ts +12 -0
  230. package/dist/esm/tooling/tsconfig/dist/store/index.d.ts.map +1 -0
  231. package/dist/esm/tooling/tsconfig/dist/store/initialState.d.ts +12 -0
  232. package/dist/esm/tooling/tsconfig/dist/store/initialState.d.ts.map +1 -0
  233. package/dist/esm/tooling/tsconfig/dist/styles/utils.d.ts +3 -0
  234. package/dist/esm/tooling/tsconfig/dist/styles/utils.d.ts.map +1 -0
  235. package/dist/esm/tooling/tsconfig/dist/types/component-props.d.ts +466 -0
  236. package/dist/esm/tooling/tsconfig/dist/types/component-props.d.ts.map +1 -0
  237. package/dist/esm/tooling/tsconfig/dist/types/edges.d.ts +155 -0
  238. package/dist/esm/tooling/tsconfig/dist/types/edges.d.ts.map +1 -0
  239. package/dist/esm/tooling/tsconfig/dist/types/general.d.ts +124 -0
  240. package/dist/esm/tooling/tsconfig/dist/types/general.d.ts.map +1 -0
  241. package/dist/esm/tooling/tsconfig/dist/types/index.d.ts +7 -0
  242. package/dist/esm/tooling/tsconfig/dist/types/index.d.ts.map +1 -0
  243. package/dist/esm/tooling/tsconfig/dist/types/instance.d.ts +146 -0
  244. package/dist/esm/tooling/tsconfig/dist/types/instance.d.ts.map +1 -0
  245. package/dist/esm/tooling/tsconfig/dist/types/nodes.d.ts +50 -0
  246. package/dist/esm/tooling/tsconfig/dist/types/nodes.d.ts.map +1 -0
  247. package/dist/esm/tooling/tsconfig/dist/types/store.d.ts +108 -0
  248. package/dist/esm/tooling/tsconfig/dist/types/store.d.ts.map +1 -0
  249. package/dist/esm/tooling/tsconfig/dist/utils/changes.d.ts +65 -0
  250. package/dist/esm/tooling/tsconfig/dist/utils/changes.d.ts.map +1 -0
  251. package/dist/esm/tooling/tsconfig/dist/utils/general.d.ts +20 -0
  252. package/dist/esm/tooling/tsconfig/dist/utils/general.d.ts.map +1 -0
  253. package/dist/esm/tooling/tsconfig/dist/utils/index.d.ts +3 -0
  254. package/dist/esm/tooling/tsconfig/dist/utils/index.d.ts.map +1 -0
  255. package/dist/esm/types/edges.d.ts +1 -1
  256. package/dist/esm/types/edges.d.ts.map +1 -1
  257. package/dist/esm/types/instance.d.ts +1 -1
  258. package/dist/esm/types/instance.d.ts.map +1 -1
  259. package/dist/esm/utils/general.d.ts +2 -2
  260. package/dist/esm/utils/general.d.ts.map +1 -1
  261. package/dist/umd/components/Handle/index.d.ts +5 -3
  262. package/dist/umd/components/Handle/index.d.ts.map +1 -1
  263. package/dist/umd/container/GraphView/index.d.ts.map +1 -1
  264. package/dist/umd/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +6 -0
  265. package/dist/umd/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +1 -1
  266. package/dist/umd/container/GraphView/useStylesLoadedWarning.d.ts +2 -0
  267. package/dist/umd/container/GraphView/useStylesLoadedWarning.d.ts.map +1 -0
  268. package/dist/umd/container/ReactFlow/index.d.ts +1 -1
  269. package/dist/umd/index.d.ts +1 -1
  270. package/dist/umd/index.d.ts.map +1 -1
  271. package/dist/umd/index.js +2 -2
  272. package/dist/umd/tooling/tsconfig/dist/additional-components/Background/Background.d.ts +9 -0
  273. package/dist/umd/tooling/tsconfig/dist/additional-components/Background/Background.d.ts.map +1 -0
  274. package/dist/umd/tooling/tsconfig/dist/additional-components/Background/Patterns.d.ts +15 -0
  275. package/dist/umd/tooling/tsconfig/dist/additional-components/Background/Patterns.d.ts.map +1 -0
  276. package/dist/umd/tooling/tsconfig/dist/additional-components/Background/index.d.ts +3 -0
  277. package/dist/umd/tooling/tsconfig/dist/additional-components/Background/index.d.ts.map +1 -0
  278. package/dist/umd/tooling/tsconfig/dist/additional-components/Background/types.d.ts +33 -0
  279. package/dist/umd/tooling/tsconfig/dist/additional-components/Background/types.d.ts.map +1 -0
  280. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/ControlButton.d.ts +3 -0
  281. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/ControlButton.d.ts.map +1 -0
  282. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Controls.d.ts +9 -0
  283. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Controls.d.ts.map +1 -0
  284. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/FitView.d.ts +2 -0
  285. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/FitView.d.ts.map +1 -0
  286. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Lock.d.ts +2 -0
  287. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Lock.d.ts.map +1 -0
  288. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Minus.d.ts +2 -0
  289. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Minus.d.ts.map +1 -0
  290. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Plus.d.ts +2 -0
  291. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Plus.d.ts.map +1 -0
  292. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Unlock.d.ts +2 -0
  293. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Unlock.d.ts.map +1 -0
  294. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/index.d.ts +4 -0
  295. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/index.d.ts.map +1 -0
  296. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/types.d.ts +35 -0
  297. package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/types.d.ts.map +1 -0
  298. package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/MiniMap.d.ts +9 -0
  299. package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/MiniMap.d.ts.map +1 -0
  300. package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNode.d.ts +6 -0
  301. package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNode.d.ts.map +1 -0
  302. package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNodes.d.ts +6 -0
  303. package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNodes.d.ts.map +1 -0
  304. package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/index.d.ts +3 -0
  305. package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/index.d.ts.map +1 -0
  306. package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/types.d.ts +67 -0
  307. package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/types.d.ts.map +1 -0
  308. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizeControl.d.ts +7 -0
  309. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizeControl.d.ts.map +1 -0
  310. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizer.d.ts +3 -0
  311. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizer.d.ts.map +1 -0
  312. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/index.d.ts +4 -0
  313. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/index.d.ts.map +1 -0
  314. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/types.d.ts +56 -0
  315. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/types.d.ts.map +1 -0
  316. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbar.d.ts +3 -0
  317. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbar.d.ts.map +1 -0
  318. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbarPortal.d.ts +5 -0
  319. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbarPortal.d.ts.map +1 -0
  320. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/index.d.ts +3 -0
  321. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/index.d.ts.map +1 -0
  322. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/types.d.ts +20 -0
  323. package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/types.d.ts.map +1 -0
  324. package/dist/umd/tooling/tsconfig/dist/additional-components/index.d.ts +6 -0
  325. package/dist/umd/tooling/tsconfig/dist/additional-components/index.d.ts.map +1 -0
  326. package/dist/umd/tooling/tsconfig/dist/components/A11yDescriptions/index.d.ts +8 -0
  327. package/dist/umd/tooling/tsconfig/dist/components/A11yDescriptions/index.d.ts.map +1 -0
  328. package/dist/umd/tooling/tsconfig/dist/components/Attribution/index.d.ts +8 -0
  329. package/dist/umd/tooling/tsconfig/dist/components/Attribution/index.d.ts.map +1 -0
  330. package/dist/umd/tooling/tsconfig/dist/components/BatchProvider/index.d.ts +17 -0
  331. package/dist/umd/tooling/tsconfig/dist/components/BatchProvider/index.d.ts.map +1 -0
  332. package/dist/umd/tooling/tsconfig/dist/components/BatchProvider/types.d.ts +7 -0
  333. package/dist/umd/tooling/tsconfig/dist/components/BatchProvider/types.d.ts.map +1 -0
  334. package/dist/umd/tooling/tsconfig/dist/components/BatchProvider/useQueue.d.ts +11 -0
  335. package/dist/umd/tooling/tsconfig/dist/components/BatchProvider/useQueue.d.ts.map +1 -0
  336. package/dist/umd/tooling/tsconfig/dist/components/ConnectionLine/index.d.ts +12 -0
  337. package/dist/umd/tooling/tsconfig/dist/components/ConnectionLine/index.d.ts.map +1 -0
  338. package/dist/umd/tooling/tsconfig/dist/components/EdgeLabelRenderer/index.d.ts +5 -0
  339. package/dist/umd/tooling/tsconfig/dist/components/EdgeLabelRenderer/index.d.ts.map +1 -0
  340. package/dist/umd/tooling/tsconfig/dist/components/EdgeWrapper/EdgeUpdateAnchors.d.ts +17 -0
  341. package/dist/umd/tooling/tsconfig/dist/components/EdgeWrapper/EdgeUpdateAnchors.d.ts.map +1 -0
  342. package/dist/umd/tooling/tsconfig/dist/components/EdgeWrapper/index.d.ts +4 -0
  343. package/dist/umd/tooling/tsconfig/dist/components/EdgeWrapper/index.d.ts.map +1 -0
  344. package/dist/umd/tooling/tsconfig/dist/components/EdgeWrapper/utils.d.ts +11 -0
  345. package/dist/umd/tooling/tsconfig/dist/components/EdgeWrapper/utils.d.ts.map +1 -0
  346. package/dist/umd/tooling/tsconfig/dist/components/Edges/BaseEdge.d.ts +3 -0
  347. package/dist/umd/tooling/tsconfig/dist/components/Edges/BaseEdge.d.ts.map +1 -0
  348. package/dist/umd/tooling/tsconfig/dist/components/Edges/BezierEdge.d.ts +6 -0
  349. package/dist/umd/tooling/tsconfig/dist/components/Edges/BezierEdge.d.ts.map +1 -0
  350. package/dist/umd/tooling/tsconfig/dist/components/Edges/EdgeAnchor.d.ts +14 -0
  351. package/dist/umd/tooling/tsconfig/dist/components/Edges/EdgeAnchor.d.ts.map +1 -0
  352. package/dist/umd/tooling/tsconfig/dist/components/Edges/EdgeText.d.ts +9 -0
  353. package/dist/umd/tooling/tsconfig/dist/components/Edges/EdgeText.d.ts.map +1 -0
  354. package/dist/umd/tooling/tsconfig/dist/components/Edges/SimpleBezierEdge.d.ts +16 -0
  355. package/dist/umd/tooling/tsconfig/dist/components/Edges/SimpleBezierEdge.d.ts.map +1 -0
  356. package/dist/umd/tooling/tsconfig/dist/components/Edges/SmoothStepEdge.d.ts +6 -0
  357. package/dist/umd/tooling/tsconfig/dist/components/Edges/SmoothStepEdge.d.ts.map +1 -0
  358. package/dist/umd/tooling/tsconfig/dist/components/Edges/StepEdge.d.ts +6 -0
  359. package/dist/umd/tooling/tsconfig/dist/components/Edges/StepEdge.d.ts.map +1 -0
  360. package/dist/umd/tooling/tsconfig/dist/components/Edges/StraightEdge.d.ts +6 -0
  361. package/dist/umd/tooling/tsconfig/dist/components/Edges/StraightEdge.d.ts.map +1 -0
  362. package/dist/umd/tooling/tsconfig/dist/components/Edges/index.d.ts +6 -0
  363. package/dist/umd/tooling/tsconfig/dist/components/Edges/index.d.ts.map +1 -0
  364. package/dist/umd/tooling/tsconfig/dist/components/Handle/index.d.ts +11 -0
  365. package/dist/umd/tooling/tsconfig/dist/components/Handle/index.d.ts.map +1 -0
  366. package/dist/umd/tooling/tsconfig/dist/components/NodeWrapper/index.d.ts +3 -0
  367. package/dist/umd/tooling/tsconfig/dist/components/NodeWrapper/index.d.ts.map +1 -0
  368. package/dist/umd/tooling/tsconfig/dist/components/NodeWrapper/useNodeObserver.d.ts +15 -0
  369. package/dist/umd/tooling/tsconfig/dist/components/NodeWrapper/useNodeObserver.d.ts.map +1 -0
  370. package/dist/umd/tooling/tsconfig/dist/components/NodeWrapper/utils.d.ts +9 -0
  371. package/dist/umd/tooling/tsconfig/dist/components/NodeWrapper/utils.d.ts.map +1 -0
  372. package/dist/umd/tooling/tsconfig/dist/components/Nodes/DefaultNode.d.ts +3 -0
  373. package/dist/umd/tooling/tsconfig/dist/components/Nodes/DefaultNode.d.ts.map +1 -0
  374. package/dist/umd/tooling/tsconfig/dist/components/Nodes/GroupNode.d.ts +2 -0
  375. package/dist/umd/tooling/tsconfig/dist/components/Nodes/GroupNode.d.ts.map +1 -0
  376. package/dist/umd/tooling/tsconfig/dist/components/Nodes/InputNode.d.ts +3 -0
  377. package/dist/umd/tooling/tsconfig/dist/components/Nodes/InputNode.d.ts.map +1 -0
  378. package/dist/umd/tooling/tsconfig/dist/components/Nodes/OutputNode.d.ts +3 -0
  379. package/dist/umd/tooling/tsconfig/dist/components/Nodes/OutputNode.d.ts.map +1 -0
  380. package/dist/umd/tooling/tsconfig/dist/components/Nodes/utils.d.ts +13 -0
  381. package/dist/umd/tooling/tsconfig/dist/components/Nodes/utils.d.ts.map +1 -0
  382. package/dist/umd/tooling/tsconfig/dist/components/NodesSelection/index.d.ts +13 -0
  383. package/dist/umd/tooling/tsconfig/dist/components/NodesSelection/index.d.ts.map +1 -0
  384. package/dist/umd/tooling/tsconfig/dist/components/Panel/index.d.ts +11 -0
  385. package/dist/umd/tooling/tsconfig/dist/components/Panel/index.d.ts.map +1 -0
  386. package/dist/umd/tooling/tsconfig/dist/components/ReactFlowProvider/index.d.ts +14 -0
  387. package/dist/umd/tooling/tsconfig/dist/components/ReactFlowProvider/index.d.ts.map +1 -0
  388. package/dist/umd/tooling/tsconfig/dist/components/SelectionListener/index.d.ts +7 -0
  389. package/dist/umd/tooling/tsconfig/dist/components/SelectionListener/index.d.ts.map +1 -0
  390. package/dist/umd/tooling/tsconfig/dist/components/StoreUpdater/index.d.ts +9 -0
  391. package/dist/umd/tooling/tsconfig/dist/components/StoreUpdater/index.d.ts.map +1 -0
  392. package/dist/umd/tooling/tsconfig/dist/components/UserSelection/index.d.ts +2 -0
  393. package/dist/umd/tooling/tsconfig/dist/components/UserSelection/index.d.ts.map +1 -0
  394. package/dist/umd/tooling/tsconfig/dist/components/ViewportPortal/index.d.ts +5 -0
  395. package/dist/umd/tooling/tsconfig/dist/components/ViewportPortal/index.d.ts.map +1 -0
  396. package/dist/umd/tooling/tsconfig/dist/container/EdgeRenderer/MarkerDefinitions.d.ts +11 -0
  397. package/dist/umd/tooling/tsconfig/dist/container/EdgeRenderer/MarkerDefinitions.d.ts.map +1 -0
  398. package/dist/umd/tooling/tsconfig/dist/container/EdgeRenderer/MarkerSymbols.d.ts +9 -0
  399. package/dist/umd/tooling/tsconfig/dist/container/EdgeRenderer/MarkerSymbols.d.ts.map +1 -0
  400. package/dist/umd/tooling/tsconfig/dist/container/EdgeRenderer/index.d.ts +13 -0
  401. package/dist/umd/tooling/tsconfig/dist/container/EdgeRenderer/index.d.ts.map +1 -0
  402. package/dist/umd/tooling/tsconfig/dist/container/FlowRenderer/index.d.ts +14 -0
  403. package/dist/umd/tooling/tsconfig/dist/container/FlowRenderer/index.d.ts.map +1 -0
  404. package/dist/umd/tooling/tsconfig/dist/container/GraphView/index.d.ts +11 -0
  405. package/dist/umd/tooling/tsconfig/dist/container/GraphView/index.d.ts.map +1 -0
  406. package/dist/umd/tooling/tsconfig/dist/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +10 -0
  407. package/dist/umd/tooling/tsconfig/dist/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +1 -0
  408. package/dist/umd/tooling/tsconfig/dist/container/GraphView/useStylesLoadedWarning.d.ts +2 -0
  409. package/dist/umd/tooling/tsconfig/dist/container/GraphView/useStylesLoadedWarning.d.ts.map +1 -0
  410. package/dist/umd/tooling/tsconfig/dist/container/NodeRenderer/index.d.ts +10 -0
  411. package/dist/umd/tooling/tsconfig/dist/container/NodeRenderer/index.d.ts.map +1 -0
  412. package/dist/umd/tooling/tsconfig/dist/container/NodeRenderer/useResizeObserver.d.ts +2 -0
  413. package/dist/umd/tooling/tsconfig/dist/container/NodeRenderer/useResizeObserver.d.ts.map +1 -0
  414. package/dist/umd/tooling/tsconfig/dist/container/Pane/index.d.ts +12 -0
  415. package/dist/umd/tooling/tsconfig/dist/container/Pane/index.d.ts.map +1 -0
  416. package/dist/umd/tooling/tsconfig/dist/container/ReactFlow/Wrapper.d.ts +13 -0
  417. package/dist/umd/tooling/tsconfig/dist/container/ReactFlow/Wrapper.d.ts.map +1 -0
  418. package/dist/umd/tooling/tsconfig/dist/container/ReactFlow/index.d.ts +5 -0
  419. package/dist/umd/tooling/tsconfig/dist/container/ReactFlow/index.d.ts.map +1 -0
  420. package/dist/umd/tooling/tsconfig/dist/container/ReactFlow/init-values.d.ts +4 -0
  421. package/dist/umd/tooling/tsconfig/dist/container/ReactFlow/init-values.d.ts.map +1 -0
  422. package/dist/umd/tooling/tsconfig/dist/container/Viewport/index.d.ts +7 -0
  423. package/dist/umd/tooling/tsconfig/dist/container/Viewport/index.d.ts.map +1 -0
  424. package/dist/umd/tooling/tsconfig/dist/container/ZoomPane/index.d.ts +7 -0
  425. package/dist/umd/tooling/tsconfig/dist/container/ZoomPane/index.d.ts.map +1 -0
  426. package/dist/umd/tooling/tsconfig/dist/contexts/NodeIdContext.d.ts +7 -0
  427. package/dist/umd/tooling/tsconfig/dist/contexts/NodeIdContext.d.ts.map +1 -0
  428. package/dist/umd/tooling/tsconfig/dist/contexts/StoreContext.d.ts +5 -0
  429. package/dist/umd/tooling/tsconfig/dist/contexts/StoreContext.d.ts.map +1 -0
  430. package/dist/umd/tooling/tsconfig/dist/hooks/useColorModeClass.d.ts +9 -0
  431. package/dist/umd/tooling/tsconfig/dist/hooks/useColorModeClass.d.ts.map +1 -0
  432. package/dist/umd/tooling/tsconfig/dist/hooks/useConnection.d.ts +20 -0
  433. package/dist/umd/tooling/tsconfig/dist/hooks/useConnection.d.ts.map +1 -0
  434. package/dist/umd/tooling/tsconfig/dist/hooks/useDrag.d.ts +17 -0
  435. package/dist/umd/tooling/tsconfig/dist/hooks/useDrag.d.ts.map +1 -0
  436. package/dist/umd/tooling/tsconfig/dist/hooks/useEdges.d.ts +9 -0
  437. package/dist/umd/tooling/tsconfig/dist/hooks/useEdges.d.ts.map +1 -0
  438. package/dist/umd/tooling/tsconfig/dist/hooks/useGlobalKeyHandler.d.ts +11 -0
  439. package/dist/umd/tooling/tsconfig/dist/hooks/useGlobalKeyHandler.d.ts.map +1 -0
  440. package/dist/umd/tooling/tsconfig/dist/hooks/useHandleConnections.d.ts +22 -0
  441. package/dist/umd/tooling/tsconfig/dist/hooks/useHandleConnections.d.ts.map +1 -0
  442. package/dist/umd/tooling/tsconfig/dist/hooks/useInternalNode.d.ts +10 -0
  443. package/dist/umd/tooling/tsconfig/dist/hooks/useInternalNode.d.ts.map +1 -0
  444. package/dist/umd/tooling/tsconfig/dist/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  445. package/dist/umd/tooling/tsconfig/dist/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
  446. package/dist/umd/tooling/tsconfig/dist/hooks/useKeyPress.d.ts +15 -0
  447. package/dist/umd/tooling/tsconfig/dist/hooks/useKeyPress.d.ts.map +1 -0
  448. package/dist/umd/tooling/tsconfig/dist/hooks/useMoveSelectedNodes.d.ts +12 -0
  449. package/dist/umd/tooling/tsconfig/dist/hooks/useMoveSelectedNodes.d.ts.map +1 -0
  450. package/dist/umd/tooling/tsconfig/dist/hooks/useNodes.d.ts +9 -0
  451. package/dist/umd/tooling/tsconfig/dist/hooks/useNodes.d.ts.map +1 -0
  452. package/dist/umd/tooling/tsconfig/dist/hooks/useNodesData.d.ts +12 -0
  453. package/dist/umd/tooling/tsconfig/dist/hooks/useNodesData.d.ts.map +1 -0
  454. package/dist/umd/tooling/tsconfig/dist/hooks/useNodesEdgesState.d.ts +19 -0
  455. package/dist/umd/tooling/tsconfig/dist/hooks/useNodesEdgesState.d.ts.map +1 -0
  456. package/dist/umd/tooling/tsconfig/dist/hooks/useNodesInitialized.d.ts +12 -0
  457. package/dist/umd/tooling/tsconfig/dist/hooks/useNodesInitialized.d.ts.map +1 -0
  458. package/dist/umd/tooling/tsconfig/dist/hooks/useOnInitHandler.d.ts +8 -0
  459. package/dist/umd/tooling/tsconfig/dist/hooks/useOnInitHandler.d.ts.map +1 -0
  460. package/dist/umd/tooling/tsconfig/dist/hooks/useOnSelectionChange.d.ts +12 -0
  461. package/dist/umd/tooling/tsconfig/dist/hooks/useOnSelectionChange.d.ts.map +1 -0
  462. package/dist/umd/tooling/tsconfig/dist/hooks/useOnViewportChange.d.ts +16 -0
  463. package/dist/umd/tooling/tsconfig/dist/hooks/useOnViewportChange.d.ts.map +1 -0
  464. package/dist/umd/tooling/tsconfig/dist/hooks/useReactFlow.d.ts +9 -0
  465. package/dist/umd/tooling/tsconfig/dist/hooks/useReactFlow.d.ts.map +1 -0
  466. package/dist/umd/tooling/tsconfig/dist/hooks/useResizeHandler.d.ts +8 -0
  467. package/dist/umd/tooling/tsconfig/dist/hooks/useResizeHandler.d.ts.map +1 -0
  468. package/dist/umd/tooling/tsconfig/dist/hooks/useStore.d.ts +21 -0
  469. package/dist/umd/tooling/tsconfig/dist/hooks/useStore.d.ts.map +1 -0
  470. package/dist/umd/tooling/tsconfig/dist/hooks/useUpdateNodeInternals.d.ts +9 -0
  471. package/dist/umd/tooling/tsconfig/dist/hooks/useUpdateNodeInternals.d.ts.map +1 -0
  472. package/dist/umd/tooling/tsconfig/dist/hooks/useViewport.d.ts +9 -0
  473. package/dist/umd/tooling/tsconfig/dist/hooks/useViewport.d.ts.map +1 -0
  474. package/dist/umd/tooling/tsconfig/dist/hooks/useViewportHelper.d.ts +10 -0
  475. package/dist/umd/tooling/tsconfig/dist/hooks/useViewportHelper.d.ts.map +1 -0
  476. package/dist/umd/tooling/tsconfig/dist/hooks/useViewportSync.d.ts +9 -0
  477. package/dist/umd/tooling/tsconfig/dist/hooks/useViewportSync.d.ts.map +1 -0
  478. package/dist/umd/tooling/tsconfig/dist/hooks/useVisibleEdgeIds.d.ts +9 -0
  479. package/dist/umd/tooling/tsconfig/dist/hooks/useVisibleEdgeIds.d.ts.map +1 -0
  480. package/dist/umd/tooling/tsconfig/dist/hooks/useVisibleNodeIds.d.ts +9 -0
  481. package/dist/umd/tooling/tsconfig/dist/hooks/useVisibleNodeIds.d.ts.map +1 -0
  482. package/dist/umd/tooling/tsconfig/dist/index.d.ts +36 -0
  483. package/dist/umd/tooling/tsconfig/dist/index.d.ts.map +1 -0
  484. package/dist/umd/tooling/tsconfig/dist/store/index.d.ts +12 -0
  485. package/dist/umd/tooling/tsconfig/dist/store/index.d.ts.map +1 -0
  486. package/dist/umd/tooling/tsconfig/dist/store/initialState.d.ts +12 -0
  487. package/dist/umd/tooling/tsconfig/dist/store/initialState.d.ts.map +1 -0
  488. package/dist/umd/tooling/tsconfig/dist/styles/utils.d.ts +3 -0
  489. package/dist/umd/tooling/tsconfig/dist/styles/utils.d.ts.map +1 -0
  490. package/dist/umd/tooling/tsconfig/dist/types/component-props.d.ts +466 -0
  491. package/dist/umd/tooling/tsconfig/dist/types/component-props.d.ts.map +1 -0
  492. package/dist/umd/tooling/tsconfig/dist/types/edges.d.ts +155 -0
  493. package/dist/umd/tooling/tsconfig/dist/types/edges.d.ts.map +1 -0
  494. package/dist/umd/tooling/tsconfig/dist/types/general.d.ts +124 -0
  495. package/dist/umd/tooling/tsconfig/dist/types/general.d.ts.map +1 -0
  496. package/dist/umd/tooling/tsconfig/dist/types/index.d.ts +7 -0
  497. package/dist/umd/tooling/tsconfig/dist/types/index.d.ts.map +1 -0
  498. package/dist/umd/tooling/tsconfig/dist/types/instance.d.ts +146 -0
  499. package/dist/umd/tooling/tsconfig/dist/types/instance.d.ts.map +1 -0
  500. package/dist/umd/tooling/tsconfig/dist/types/nodes.d.ts +50 -0
  501. package/dist/umd/tooling/tsconfig/dist/types/nodes.d.ts.map +1 -0
  502. package/dist/umd/tooling/tsconfig/dist/types/store.d.ts +108 -0
  503. package/dist/umd/tooling/tsconfig/dist/types/store.d.ts.map +1 -0
  504. package/dist/umd/tooling/tsconfig/dist/utils/changes.d.ts +65 -0
  505. package/dist/umd/tooling/tsconfig/dist/utils/changes.d.ts.map +1 -0
  506. package/dist/umd/tooling/tsconfig/dist/utils/general.d.ts +20 -0
  507. package/dist/umd/tooling/tsconfig/dist/utils/general.d.ts.map +1 -0
  508. package/dist/umd/tooling/tsconfig/dist/utils/index.d.ts +3 -0
  509. package/dist/umd/tooling/tsconfig/dist/utils/index.d.ts.map +1 -0
  510. package/dist/umd/utils/general.d.ts +2 -2
  511. package/dist/umd/utils/general.d.ts.map +1 -1
  512. package/package.json +4 -4
@@ -0,0 +1,466 @@
1
+ import type { CSSProperties, HTMLAttributes, MouseEvent as ReactMouseEvent, WheelEvent } from 'react';
2
+ import type { ConnectionMode, ConnectionLineType, OnConnect, OnConnectStart, OnConnectEnd, CoordinateExtent, KeyCode, PanOnScrollMode, ProOptions, PanelPosition, OnMove, OnMoveStart, OnMoveEnd, Viewport, NodeOrigin, HandleType, SelectionMode, OnError, ColorMode, SnapGrid } from '@xyflow/system';
3
+ import type { OnSelectionChangeFunc, NodeTypes, EdgeTypes, Node, Edge, ConnectionLineComponent, OnEdgeUpdateFunc, OnInit, DefaultEdgeOptions, FitViewOptions, OnNodesDelete, OnEdgesDelete, OnDelete, OnNodesChange, OnEdgesChange, NodeMouseHandler, SelectionDragHandler, EdgeMouseHandler, OnNodeDrag, OnBeforeDelete, IsValidConnection } from '.';
4
+ /**
5
+ * ReactFlow component props.
6
+ * @public
7
+ */
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.
10
+ * @example
11
+ * const nodes = [
12
+ * {
13
+ * id: 'node-1',
14
+ * type: 'input',
15
+ * data: { label: 'Node 1' },
16
+ * position: { x: 250, y: 50 }
17
+ * }
18
+ * ];
19
+ */
20
+ nodes?: NodeType[];
21
+ /** An array of edges to render in a controlled flow.
22
+ * @example
23
+ * const edges = [
24
+ * {
25
+ * id: 'edge-1-2',
26
+ * source: 'node-1',
27
+ * target: 'node-2',
28
+ * }
29
+ * ];
30
+ */
31
+ edges?: EdgeType[];
32
+ /** The initial nodes to render in an uncontrolled flow. */
33
+ defaultNodes?: NodeType[];
34
+ /** The initial edges to render in an uncontrolled flow. */
35
+ defaultEdges?: EdgeType[];
36
+ /** Defaults to be applied to all new edges that are added to the flow.
37
+ *
38
+ * Properties on a new edge will override these defaults if they exist.
39
+ * @example
40
+ * const defaultEdgeOptions = {
41
+ * type: 'customEdgeType',
42
+ * animated: true,
43
+ * interactionWidth: 10,
44
+ * data: { label: 'custom label' },
45
+ * hidden: false,
46
+ * deletable: true,
47
+ * selected: false,
48
+ * focusable: true,
49
+ * markerStart: EdgeMarker.ArrowClosed,
50
+ * markerEnd: EdgeMarker.ArrowClosed,
51
+ * zIndex: 12,
52
+ * ariaLabel: 'custom aria label'
53
+ * }
54
+ */
55
+ defaultEdgeOptions?: DefaultEdgeOptions;
56
+ /** This event handler is called when a user clicks on a node */
57
+ onNodeClick?: NodeMouseHandler<NodeType>;
58
+ /** This event handler is called when a user double clicks on a node */
59
+ onNodeDoubleClick?: NodeMouseHandler<NodeType>;
60
+ /** This event handler is called when mouse of a user enters a node */
61
+ onNodeMouseEnter?: NodeMouseHandler<NodeType>;
62
+ /** This event handler is called when mouse of a user moves over a node */
63
+ onNodeMouseMove?: NodeMouseHandler<NodeType>;
64
+ /** This event handler is called when mouse of a user leaves a node */
65
+ onNodeMouseLeave?: NodeMouseHandler<NodeType>;
66
+ /** This event handler is called when a user right clicks on a node */
67
+ onNodeContextMenu?: NodeMouseHandler<NodeType>;
68
+ /** This event handler is called when a user starts to drag a node */
69
+ onNodeDragStart?: OnNodeDrag<NodeType>;
70
+ /** This event handler is called when a user drags a node */
71
+ onNodeDrag?: OnNodeDrag<NodeType>;
72
+ /** This event handler is called when a user stops dragging a node */
73
+ onNodeDragStop?: OnNodeDrag<NodeType>;
74
+ /** This event handler is called when a user clicks on an edge */
75
+ onEdgeClick?: (event: ReactMouseEvent, edge: EdgeType) => void;
76
+ /** This event handler is called when a user right clicks on an edge */
77
+ onEdgeContextMenu?: EdgeMouseHandler<EdgeType>;
78
+ /** This event handler is called when mouse of a user enters an edge */
79
+ onEdgeMouseEnter?: EdgeMouseHandler<EdgeType>;
80
+ /** This event handler is called when mouse of a user moves over an edge */
81
+ onEdgeMouseMove?: EdgeMouseHandler<EdgeType>;
82
+ /** This event handler is called when mouse of a user leaves an edge */
83
+ onEdgeMouseLeave?: EdgeMouseHandler<EdgeType>;
84
+ /** This event handler is called when a user double clicks on an edge */
85
+ onEdgeDoubleClick?: EdgeMouseHandler<EdgeType>;
86
+ onEdgeUpdateStart?: (event: ReactMouseEvent, edge: EdgeType, handleType: HandleType) => void;
87
+ onEdgeUpdateEnd?: (event: MouseEvent | TouchEvent, edge: EdgeType, handleType: HandleType) => void;
88
+ onEdgeUpdate?: OnEdgeUpdateFunc<EdgeType>;
89
+ /** This event handler is called when a Node is updated
90
+ * @example // Use NodesState hook to create edges and get onNodesChange handler
91
+ * import ReactFlow, { useNodesState } from '@xyflow/react';
92
+ * const [edges, setNodes, onNodesChange] = useNodesState(initialNodes);
93
+ *
94
+ * return (<ReactFlow onNodeChange={onNodeChange} {...rest} />)
95
+ * @example // Use helper function to update edge
96
+ * import ReactFlow, { applyNodeChanges } from '@xyflow/react';
97
+ *
98
+ * const onNodeChange = useCallback(
99
+ * (changes) => setNode((eds) => applyNodeChanges(changes, eds)),
100
+ * [],
101
+ * );
102
+ *
103
+ * return (<ReactFlow onNodeChange={onNodeChange} {...rest} />)
104
+ */
105
+ onNodesChange?: OnNodesChange<NodeType>;
106
+ /** This event handler is called when a Edge is updated
107
+ * @example // Use EdgesState hook to create edges and get onEdgesChange handler
108
+ * import ReactFlow, { useEdgesState } from '@xyflow/react';
109
+ * const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges);
110
+ *
111
+ * return (<ReactFlow onEdgesChange={onEdgesChange} {...rest} />)
112
+ * @example // Use helper function to update edge
113
+ * import ReactFlow, { applyEdgeChanges } from '@xyflow/react';
114
+ *
115
+ * const onEdgesChange = useCallback(
116
+ * (changes) => setEdges((eds) => applyEdgeChanges(changes, eds)),
117
+ * [],
118
+ * );
119
+ *
120
+ * return (<ReactFlow onEdgesChange={onEdgesChange} {...rest} />)
121
+ */
122
+ onEdgesChange?: OnEdgesChange<EdgeType>;
123
+ /** This event handler gets called when a Node is deleted */
124
+ onNodesDelete?: OnNodesDelete<NodeType>;
125
+ /** This event handler gets called when a Edge is deleted */
126
+ onEdgesDelete?: OnEdgesDelete<EdgeType>;
127
+ /** This event handler gets called when a Node or Edge is deleted */
128
+ onDelete?: OnDelete<NodeType, EdgeType>;
129
+ /** This event handler gets called when a user starts to drag a selection box */
130
+ onSelectionDragStart?: SelectionDragHandler<NodeType>;
131
+ /** This event handler gets called when a user drags a selection box */
132
+ onSelectionDrag?: SelectionDragHandler<NodeType>;
133
+ /** This event handler gets called when a user stops dragging a selection box */
134
+ onSelectionDragStop?: SelectionDragHandler<NodeType>;
135
+ onSelectionStart?: (event: ReactMouseEvent) => void;
136
+ onSelectionEnd?: (event: ReactMouseEvent) => void;
137
+ 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.
139
+ *
140
+ * You can use the addEdge utility to convert the connection to a complete edge.
141
+ * @example // Use helper function to update edges onConnect
142
+ * import ReactFlow, { addEdge } from '@xyflow/react';
143
+ *
144
+ * const onConnect = useCallback(
145
+ * (params) => setEdges((eds) => addEdge(params, eds)),
146
+ * [],
147
+ * );
148
+ *
149
+ * return (<ReactFlow onConnect={onConnect} {...rest} />)
150
+ */
151
+ onConnect?: OnConnect;
152
+ /** This event handler gets called when a user starts to drag a connection line */
153
+ onConnectStart?: OnConnectStart;
154
+ /** This event handler gets called when a user stops dragging a connection line */
155
+ onConnectEnd?: OnConnectEnd;
156
+ onClickConnectStart?: OnConnectStart;
157
+ onClickConnectEnd?: OnConnectEnd;
158
+ /** This event handler gets called when a flow has finished initializing */
159
+ onInit?: OnInit<NodeType, EdgeType>;
160
+ /** This event handler is called while the user is either panning or zooming the viewport. */
161
+ onMove?: OnMove;
162
+ /** This event handler gets called when a user starts to pan or zoom the viewport */
163
+ onMoveStart?: OnMoveStart;
164
+ /** This event handler gets called when a user stops panning or zooming the viewport */
165
+ onMoveEnd?: OnMoveEnd;
166
+ /** This event handler gets called when a user changes group of selected elements in the flow */
167
+ onSelectionChange?: OnSelectionChangeFunc;
168
+ /** This event handler gets called when user scroll inside the pane */
169
+ onPaneScroll?: (event?: WheelEvent) => void;
170
+ /** This event handler gets called when user clicks inside the pane */
171
+ onPaneClick?: (event: ReactMouseEvent) => void;
172
+ /** This event handler gets called when user right clicks inside the pane */
173
+ onPaneContextMenu?: (event: ReactMouseEvent | MouseEvent) => void;
174
+ /** This event handler gets called when mouse enters the pane */
175
+ onPaneMouseEnter?: (event: ReactMouseEvent) => void;
176
+ /** This event handler gets called when mouse moves over the pane */
177
+ onPaneMouseMove?: (event: ReactMouseEvent) => void;
178
+ /** This event handler gets called when mouse leaves the pane */
179
+ onPaneMouseLeave?: (event: ReactMouseEvent) => void;
180
+ /** This handler gets called before the user deletes nodes or edges and provides a way to abort the deletion by returning false. */
181
+ onBeforeDelete?: OnBeforeDelete<NodeType, EdgeType>;
182
+ /** Custom node types to be available in a flow.
183
+ *
184
+ * React Flow matches a node's type to a component in the nodeTypes object.
185
+ * @example
186
+ * import CustomNode from './CustomNode';
187
+ *
188
+ * const nodeTypes = { nameOfNodeType: CustomNode };
189
+ */
190
+ nodeTypes?: NodeTypes;
191
+ /** Custom edge types to be available in a flow.
192
+ *
193
+ * React Flow matches an edge's type to a component in the edgeTypes object.
194
+ * @example
195
+ * import CustomEdge from './CustomEdge';
196
+ *
197
+ * const edgeTypes = { nameOfEdgeType: CustomEdge };
198
+ */
199
+ edgeTypes?: EdgeTypes;
200
+ /** The type of edge path to use for connection lines.
201
+ *
202
+ * 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!
203
+ */
204
+ connectionLineType?: ConnectionLineType;
205
+ /** Styles to be applied to the connection line */
206
+ connectionLineStyle?: CSSProperties;
207
+ /** React Component to be used as a connection line */
208
+ connectionLineComponent?: ConnectionLineComponent;
209
+ /** Styles to be applied to the container of the connection line */
210
+ connectionLineContainerStyle?: CSSProperties;
211
+ /** 'strict' connection mode will only allow you to connect source handles to target handles.
212
+ *
213
+ * 'loose' connection mode will allow you to connect handles of any type to one another.
214
+ * @default 'strict'
215
+ */
216
+ connectionMode?: ConnectionMode;
217
+ /** Pressing down this key deletes all selected nodes & edges.
218
+ * @default 'Backspace'
219
+ */
220
+ deleteKeyCode?: KeyCode | null;
221
+ /** If a key is set, you can pan the viewport while that key is held down even if panOnScroll is set to false.
222
+ *
223
+ * By setting this prop to null you can disable this functionality.
224
+ * @default 'Space'
225
+ */
226
+ selectionKeyCode?: KeyCode | null;
227
+ /** Select multiple elements with a selection box, without pressing down selectionKey */
228
+ selectionOnDrag?: boolean;
229
+ /** 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.
230
+ * @default 'full'
231
+ */
232
+ selectionMode?: SelectionMode;
233
+ /** If a key is set, you can pan the viewport while that key is held down even if panOnScroll is set to false.
234
+ *
235
+ * By setting this prop to null you can disable this functionality.
236
+ * @default 'Space'
237
+ */
238
+ panActivationKeyCode?: KeyCode | null;
239
+ /** Pressing down this key you can select multiple elements by clicking.
240
+ * @default 'Meta' for macOS, "Ctrl" for other systems
241
+ */
242
+ multiSelectionKeyCode?: KeyCode | null;
243
+ /** If a key is set, you can zoom the viewport while that key is held down even if panOnScroll is set to false.
244
+ *
245
+ * By setting this prop to null you can disable this functionality.
246
+ * @default 'Meta' for macOS, "Ctrl" for other systems
247
+ * */
248
+ zoomActivationKeyCode?: KeyCode | null;
249
+ /** Set this prop to make the flow snap to the grid */
250
+ snapToGrid?: boolean;
251
+ /** Grid all nodes will snap to
252
+ * @example [20, 20]
253
+ */
254
+ snapGrid?: SnapGrid;
255
+ /** You can enable this optimisation to instruct Svelte Flow to only render nodes and edges that would be visible in the viewport.
256
+ *
257
+ * This might improve performance when you have a large number of nodes and edges but also adds an overhead.
258
+ * @default false
259
+ */
260
+ onlyRenderVisibleElements?: boolean;
261
+ /** Controls if all nodes should be draggable
262
+ * @default true
263
+ */
264
+ nodesDraggable?: boolean;
265
+ /** Controls if all nodes should be connectable to each other
266
+ * @default true
267
+ */
268
+ nodesConnectable?: boolean;
269
+ /** Controls if all nodes should be focusable
270
+ * @default true
271
+ */
272
+ nodesFocusable?: boolean;
273
+ /** Defines nodes relative position to its coordinates
274
+ * @example
275
+ * [0, 0] // default, top left
276
+ * [0.5, 0.5] // center
277
+ * [1, 1] // bottom right
278
+ */
279
+ nodeOrigin?: NodeOrigin;
280
+ /** Controls if all edges should be focusable
281
+ * @default true
282
+ */
283
+ edgesFocusable?: boolean;
284
+ /** Controls if all edges should be updateable
285
+ * @default true
286
+ */
287
+ edgesUpdatable?: boolean;
288
+ /** Controls if all elements should (nodes & edges) be selectable
289
+ * @default true
290
+ */
291
+ elementsSelectable?: boolean;
292
+ /** If true, nodes get selected on drag
293
+ * @default true
294
+ */
295
+ selectNodesOnDrag?: boolean;
296
+ /** Enableing this prop allows users to pan the viewport by clicking and dragging.
297
+ *
298
+ * You can also set this prop to an array of numbers to limit which mouse buttons can activate panning.
299
+ * @example [0, 2] // allows panning with the left and right mouse buttons
300
+ * [0, 1, 2, 3, 4] // allows panning with all mouse buttons
301
+ */
302
+ panOnDrag?: boolean | number[];
303
+ /** Minimum zoom level
304
+ * @default 0.5
305
+ */
306
+ minZoom?: number;
307
+ /** Maximum zoom level
308
+ * @default 2
309
+ */
310
+ maxZoom?: number;
311
+ /** Controlled viewport to be used instead of internal one */
312
+ viewport?: Viewport;
313
+ /** Sets the initial position and zoom of the viewport.
314
+ *
315
+ * If a default viewport is provided but fitView is enabled, the default viewport will be ignored.
316
+ * @example
317
+ * const initialViewport = {
318
+ * zoom: 0.5,
319
+ * position: { x: 0, y: 0 }
320
+ * };
321
+ */
322
+ defaultViewport?: Viewport;
323
+ /**
324
+ * Gets called when the viewport changes.
325
+ */
326
+ onViewportChange?: (viewport: Viewport) => void;
327
+ /** By default the viewport extends infinitely. You can use this prop to set a boundary.
328
+ *
329
+ * The first pair of coordinates is the top left boundary and the second pair is the bottom right.
330
+ * @example [[-1000, -10000], [1000, 1000]]
331
+ */
332
+ translateExtent?: CoordinateExtent;
333
+ /** Disabling this prop will allow the user to scroll the page even when their pointer is over the flow.
334
+ * @default true
335
+ */
336
+ preventScrolling?: boolean;
337
+ /** By default nodes can be placed on an infinite flow. You can use this prop to set a boundary.
338
+ *
339
+ * The first pair of coordinates is the top left boundary and the second pair is the bottom right.
340
+ * @example [[-1000, -10000], [1000, 1000]]
341
+ */
342
+ nodeExtent?: CoordinateExtent;
343
+ /** Color of edge markers
344
+ * @example "#b1b1b7"
345
+ */
346
+ defaultMarkerColor?: string;
347
+ /** Controls if the viewport should zoom by scrolling inside the container */
348
+ zoomOnScroll?: boolean;
349
+ /** Controls if the viewport should zoom by pinching on a touch screen */
350
+ zoomOnPinch?: boolean;
351
+ /** Controls if the viewport should pan by scrolling inside the container
352
+ *
353
+ * Can be limited to a specific direction with panOnScrollMode
354
+ */
355
+ panOnScroll?: boolean;
356
+ /** Controls how fast viewport should be panned on scroll.
357
+ *
358
+ * Use togther with panOnScroll prop.
359
+ */
360
+ panOnScrollSpeed?: number;
361
+ /** This prop is used to limit the direction of panning when panOnScroll is enabled.
362
+ *
363
+ * The "free" option allows panning in any direction.
364
+ * @default "free"
365
+ * @example "horizontal" | "vertical"
366
+ */
367
+ panOnScrollMode?: PanOnScrollMode;
368
+ /** Controls if the viewport should zoom by double clicking somewhere on the flow */
369
+ zoomOnDoubleClick?: boolean;
370
+ edgeUpdaterRadius?: number;
371
+ noDragClassName?: string;
372
+ noWheelClassName?: string;
373
+ noPanClassName?: string;
374
+ /** If set, initial viewport will show all nodes & edges */
375
+ fitView?: boolean;
376
+ /** Options to be used in combination with fitView
377
+ * @example
378
+ * const fitViewOptions = {
379
+ * padding: 0.1,
380
+ * includeHiddenNodes: false,
381
+ * minZoom: 0.1,
382
+ * maxZoom: 1,
383
+ * duration: 200,
384
+ * nodes: [{id: 'node-1'}, {id: 'node-2'}], // nodes to fit
385
+ * };
386
+ */
387
+ fitViewOptions?: FitViewOptions;
388
+ /**The connectOnClick option lets you click or tap on a source handle to start a connection
389
+ * and then click on a target handle to complete the connection.
390
+ *
391
+ * If you set this option to false, users will need to drag the connection line to the target
392
+ * handle to create a connection.
393
+ */
394
+ connectOnClick?: boolean;
395
+ /** Set position of the attribution
396
+ * @default 'bottom-right'
397
+ * @example 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'
398
+ */
399
+ attributionPosition?: PanelPosition;
400
+ /** By default, we render a small attribution in the corner of your flows that links back to the project.
401
+ *
402
+ * Anyone is free to remove this attribution whether they're a Pro subscriber or not
403
+ * but we ask that you take a quick look at our {@link https://reactflow.dev/learn/troubleshooting/remove-attribution | removing attribution guide}
404
+ * before doing so.
405
+ */
406
+ proOptions?: ProOptions;
407
+ /** Enabling this option will raise the z-index of nodes when they are selected.
408
+ * @default true
409
+ */
410
+ elevateNodesOnSelect?: boolean;
411
+ /** Enabling this option will raise the z-index of edges when they are selected.
412
+ * @default true
413
+ */
414
+ elevateEdgesOnSelect?: boolean;
415
+ /**
416
+ * Can be set true if built-in keyboard controls should be disabled.
417
+ * @default false
418
+ */
419
+ disableKeyboardA11y?: boolean;
420
+ /** You can enable this prop to automatically pan the viewport while dragging a node.
421
+ * @default true
422
+ */
423
+ autoPanOnNodeDrag?: boolean;
424
+ /** You can enable this prop to automatically pan the viewport while dragging a node.
425
+ * @default true
426
+ */
427
+ autoPanOnConnect?: boolean;
428
+ /** You can enable this prop to automatically pan the viewport while making a new connection.
429
+ * @default true
430
+ */
431
+ connectionRadius?: number;
432
+ /** Ocassionally something may happen that causes Svelte Flow to throw an error.
433
+ *
434
+ * Instead of exploding your application, we log a message to the console and then call this event handler.
435
+ * You might use it for additional logging or to show a message to the user.
436
+ */
437
+ onError?: OnError;
438
+ /** This callback can be used to validate a new connection
439
+ *
440
+ * If you return false, the edge will not be added to your flow.
441
+ * If you have custom connection logic its preferred to use this callback over the isValidConnection prop on the handle component for performance reasons.
442
+ * @default (connection: Connection) => true
443
+ */
444
+ isValidConnection?: IsValidConnection;
445
+ /** With a threshold greater than zero you can control the distinction between node drag and click events.
446
+ *
447
+ * If threshold equals 1, you need to drag the node 1 pixel before a drag event is fired.
448
+ * @default 1
449
+ */
450
+ nodeDragThreshold?: number;
451
+ /** Sets a fixed width for the flow */
452
+ width?: number;
453
+ /** Sets a fixed height for the flow */
454
+ height?: number;
455
+ /** Controls color scheme used for styling the flow
456
+ * @default 'system'
457
+ * @example 'system' | 'light' | 'dark'
458
+ */
459
+ colorMode?: ColorMode;
460
+ /** If set true, some debug information will be logged to the console like which events are fired.
461
+ *
462
+ * @default undefined
463
+ */
464
+ debug?: boolean;
465
+ }
466
+ //# sourceMappingURL=component-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-props.d.ts","sourceRoot":"","sources":["../../../../packages/react/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,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C;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB"}
@@ -0,0 +1,155 @@
1
+ import type { CSSProperties, HTMLAttributes, ReactNode, MouseEvent as ReactMouseEvent, ComponentType } from 'react';
2
+ import type { EdgeBase, BezierPathOptions, Position, SmoothStepPathOptions, DefaultEdgeOptionsBase, HandleType, Connection, ConnectionLineType, HandleElement, ConnectionStatus, EdgePosition, StepPathOptions, OnError } from '@xyflow/system';
3
+ import { EdgeTypes, Node } from '.';
4
+ export type EdgeLabelOptions = {
5
+ label?: string | ReactNode;
6
+ labelStyle?: CSSProperties;
7
+ labelShowBg?: boolean;
8
+ labelBgStyle?: CSSProperties;
9
+ labelBgPadding?: [number, number];
10
+ labelBgBorderRadius?: number;
11
+ };
12
+ export type EdgeUpdatable = boolean | HandleType;
13
+ /**
14
+ * The Edge type is mainly used for the `edges` that get passed to the ReactFlow component
15
+ * @public
16
+ */
17
+ export type Edge<EdgeData extends Record<string, unknown> = Record<string, unknown>, EdgeType extends string | undefined = string | undefined> = EdgeBase<EdgeData, EdgeType> & EdgeLabelOptions & {
18
+ style?: CSSProperties;
19
+ className?: string;
20
+ updatable?: EdgeUpdatable;
21
+ focusable?: boolean;
22
+ };
23
+ type SmoothStepEdge<EdgeData extends Record<string, unknown> = Record<string, unknown>> = Edge<EdgeData, 'smoothstep'> & {
24
+ pathOptions?: SmoothStepPathOptions;
25
+ };
26
+ type BezierEdge<EdgeData extends Record<string, unknown> = Record<string, unknown>> = Edge<EdgeData, 'default'> & {
27
+ pathOptions?: BezierPathOptions;
28
+ };
29
+ type StepEdge<EdgeData extends Record<string, unknown> = Record<string, unknown>> = Edge<EdgeData, 'step'> & {
30
+ pathOptions?: StepPathOptions;
31
+ };
32
+ export type BuiltInEdge = SmoothStepEdge | BezierEdge | StepEdge;
33
+ export type EdgeMouseHandler<EdgeType extends Edge = Edge> = (event: ReactMouseEvent, edge: EdgeType) => void;
34
+ export type EdgeWrapperProps<EdgeType extends Edge = Edge> = {
35
+ id: string;
36
+ edgesFocusable: boolean;
37
+ edgesUpdatable: boolean;
38
+ elementsSelectable: boolean;
39
+ noPanClassName: string;
40
+ onClick?: EdgeMouseHandler<EdgeType>;
41
+ onDoubleClick?: EdgeMouseHandler<EdgeType>;
42
+ onEdgeUpdate?: OnEdgeUpdateFunc<EdgeType>;
43
+ onContextMenu?: EdgeMouseHandler<EdgeType>;
44
+ onMouseEnter?: EdgeMouseHandler<EdgeType>;
45
+ onMouseMove?: EdgeMouseHandler<EdgeType>;
46
+ onMouseLeave?: EdgeMouseHandler<EdgeType>;
47
+ edgeUpdaterRadius?: number;
48
+ onEdgeUpdateStart?: (event: ReactMouseEvent, edge: EdgeType, handleType: HandleType) => void;
49
+ onEdgeUpdateEnd?: (event: MouseEvent | TouchEvent, edge: EdgeType, handleType: HandleType) => void;
50
+ rfId?: string;
51
+ edgeTypes?: EdgeTypes;
52
+ onError?: OnError;
53
+ disableKeyboardA11y?: boolean;
54
+ };
55
+ export type DefaultEdgeOptions = DefaultEdgeOptionsBase<Edge>;
56
+ export type EdgeTextProps = HTMLAttributes<SVGElement> & EdgeLabelOptions & {
57
+ x: number;
58
+ y: number;
59
+ };
60
+ /**
61
+ * Custom edge component props
62
+ * @public
63
+ */
64
+ export type EdgeProps<EdgeType extends Edge = Edge> = Pick<EdgeType, 'id' | 'animated' | 'data' | 'style' | 'selected' | 'source' | 'target' | 'selectable' | 'deletable'> & EdgePosition & EdgeLabelOptions & {
65
+ sourceHandleId?: string | null;
66
+ targetHandleId?: string | null;
67
+ markerStart?: string;
68
+ markerEnd?: string;
69
+ pathOptions?: any;
70
+ interactionWidth?: number;
71
+ };
72
+ /**
73
+ * BaseEdge component props
74
+ * @public
75
+ */
76
+ export type BaseEdgeProps = EdgeLabelOptions & {
77
+ /** Unique id of edge */
78
+ id?: string;
79
+ /** Additional padding where interacting with an edge is still possible */
80
+ interactionWidth?: number;
81
+ className?: string;
82
+ /** The x position of edge label */
83
+ labelX?: number;
84
+ /** The y position of edge label */
85
+ labelY?: number;
86
+ /** Marker at start of edge
87
+ * @example 'url(#arrow)'
88
+ */
89
+ markerStart?: string;
90
+ /** Marker at end of edge
91
+ * @example 'url(#arrow)'
92
+ */
93
+ markerEnd?: string;
94
+ /** SVG path of the edge */
95
+ path: string;
96
+ style?: CSSProperties;
97
+ };
98
+ /**
99
+ * Helper type for edge components that get exported by the library
100
+ * @public
101
+ */
102
+ export type EdgeComponentProps = EdgePosition & EdgeLabelOptions & {
103
+ id?: EdgeProps['id'];
104
+ markerStart?: EdgeProps['markerStart'];
105
+ markerEnd?: EdgeProps['markerEnd'];
106
+ interactionWidth?: EdgeProps['interactionWidth'];
107
+ style?: EdgeProps['style'];
108
+ sourceHandleId?: EdgeProps['sourceHandleId'];
109
+ targetHandleId?: EdgeProps['targetHandleId'];
110
+ };
111
+ export type EdgeComponentWithPathOptions<PathOptions> = EdgeComponentProps & {
112
+ pathOptions?: PathOptions;
113
+ };
114
+ /**
115
+ * BezierEdge component props
116
+ * @public
117
+ */
118
+ export type BezierEdgeProps = EdgeComponentWithPathOptions<BezierPathOptions>;
119
+ /**
120
+ * SmoothStepEdge component props
121
+ * @public
122
+ */
123
+ export type SmoothStepEdgeProps = EdgeComponentWithPathOptions<SmoothStepPathOptions>;
124
+ /**
125
+ * StepEdge component props
126
+ * @public
127
+ */
128
+ export type StepEdgeProps = EdgeComponentWithPathOptions<StepPathOptions>;
129
+ /**
130
+ * StraightEdge component props
131
+ * @public
132
+ */
133
+ export type StraightEdgeProps = Omit<EdgeComponentProps, 'sourcePosition' | 'targetPosition'>;
134
+ /**
135
+ * SimpleBezier component props
136
+ * @public
137
+ */
138
+ export type SimpleBezierEdgeProps = EdgeComponentProps;
139
+ export type OnEdgeUpdateFunc<EdgeType extends Edge = Edge> = (oldEdge: EdgeType, newConnection: Connection) => void;
140
+ export type ConnectionLineComponentProps = {
141
+ connectionLineStyle?: CSSProperties;
142
+ connectionLineType: ConnectionLineType;
143
+ fromNode?: Node;
144
+ fromHandle?: HandleElement;
145
+ fromX: number;
146
+ fromY: number;
147
+ toX: number;
148
+ toY: number;
149
+ fromPosition: Position;
150
+ toPosition: Position;
151
+ connectionStatus: ConnectionStatus | null;
152
+ };
153
+ export type ConnectionLineComponent = ComponentType<ConnectionLineComponentProps>;
154
+ export {};
155
+ //# sourceMappingURL=edges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edges.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/types/edges.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,IAAI,eAAe,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACpH,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,qBAAqB,EACrB,sBAAsB,EACtB,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,OAAO,EACR,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAEpC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,UAAU,CAAC;AAEjD;;;GAGG;AACH,MAAM,MAAM,IAAI,CACd,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,E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