@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.
- package/dist/base.css +93 -0
- package/dist/esm/components/EdgeWrapper/index.d.ts.map +1 -1
- package/dist/esm/components/Handle/index.d.ts +5 -3
- package/dist/esm/components/Handle/index.d.ts.map +1 -1
- package/dist/esm/components/NodeWrapper/index.d.ts.map +1 -1
- package/dist/esm/container/GraphView/index.d.ts.map +1 -1
- package/dist/esm/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +6 -0
- package/dist/esm/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +1 -1
- package/dist/esm/container/GraphView/useStylesLoadedWarning.d.ts +2 -0
- package/dist/esm/container/GraphView/useStylesLoadedWarning.d.ts.map +1 -0
- package/dist/esm/container/NodeRenderer/useResizeObserver.d.ts.map +1 -1
- package/dist/esm/container/ReactFlow/index.d.ts +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +31 -9
- package/dist/esm/index.mjs +31 -9
- package/dist/esm/tooling/tsconfig/dist/additional-components/Background/Background.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Background/Background.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Background/Patterns.d.ts +15 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Background/Patterns.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Background/index.d.ts +3 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Background/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Background/types.d.ts +33 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Background/types.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/ControlButton.d.ts +3 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/ControlButton.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Controls.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Controls.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/FitView.d.ts +2 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/FitView.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Lock.d.ts +2 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Lock.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Minus.d.ts +2 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Minus.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Plus.d.ts +2 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Plus.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Unlock.d.ts +2 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/Icons/Unlock.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/index.d.ts +4 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/types.d.ts +35 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/Controls/types.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/MiniMap.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/MiniMap.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNode.d.ts +6 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNode.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNodes.d.ts +6 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNodes.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/index.d.ts +3 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/types.d.ts +67 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/MiniMap/types.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizeControl.d.ts +7 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizeControl.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizer.d.ts +3 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizer.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/index.d.ts +4 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/types.d.ts +56 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeResizer/types.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbar.d.ts +3 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbar.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbarPortal.d.ts +5 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbarPortal.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/index.d.ts +3 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/types.d.ts +20 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/NodeToolbar/types.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/index.d.ts +6 -0
- package/dist/esm/tooling/tsconfig/dist/additional-components/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/A11yDescriptions/index.d.ts +8 -0
- package/dist/esm/tooling/tsconfig/dist/components/A11yDescriptions/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Attribution/index.d.ts +8 -0
- package/dist/esm/tooling/tsconfig/dist/components/Attribution/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/BatchProvider/index.d.ts +17 -0
- package/dist/esm/tooling/tsconfig/dist/components/BatchProvider/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/BatchProvider/types.d.ts +7 -0
- package/dist/esm/tooling/tsconfig/dist/components/BatchProvider/types.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/BatchProvider/useQueue.d.ts +11 -0
- package/dist/esm/tooling/tsconfig/dist/components/BatchProvider/useQueue.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/ConnectionLine/index.d.ts +12 -0
- package/dist/esm/tooling/tsconfig/dist/components/ConnectionLine/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/EdgeLabelRenderer/index.d.ts +5 -0
- package/dist/esm/tooling/tsconfig/dist/components/EdgeLabelRenderer/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/EdgeWrapper/EdgeUpdateAnchors.d.ts +17 -0
- package/dist/esm/tooling/tsconfig/dist/components/EdgeWrapper/EdgeUpdateAnchors.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/EdgeWrapper/index.d.ts +4 -0
- package/dist/esm/tooling/tsconfig/dist/components/EdgeWrapper/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/EdgeWrapper/utils.d.ts +11 -0
- package/dist/esm/tooling/tsconfig/dist/components/EdgeWrapper/utils.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/BaseEdge.d.ts +3 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/BaseEdge.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/BezierEdge.d.ts +6 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/BezierEdge.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/EdgeAnchor.d.ts +14 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/EdgeAnchor.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/EdgeText.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/EdgeText.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/SimpleBezierEdge.d.ts +16 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/SimpleBezierEdge.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/SmoothStepEdge.d.ts +6 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/SmoothStepEdge.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/StepEdge.d.ts +6 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/StepEdge.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/StraightEdge.d.ts +6 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/StraightEdge.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/index.d.ts +6 -0
- package/dist/esm/tooling/tsconfig/dist/components/Edges/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Handle/index.d.ts +11 -0
- package/dist/esm/tooling/tsconfig/dist/components/Handle/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/NodeWrapper/index.d.ts +3 -0
- package/dist/esm/tooling/tsconfig/dist/components/NodeWrapper/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/NodeWrapper/useNodeObserver.d.ts +15 -0
- package/dist/esm/tooling/tsconfig/dist/components/NodeWrapper/useNodeObserver.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/NodeWrapper/utils.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/components/NodeWrapper/utils.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Nodes/DefaultNode.d.ts +3 -0
- package/dist/esm/tooling/tsconfig/dist/components/Nodes/DefaultNode.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Nodes/GroupNode.d.ts +2 -0
- package/dist/esm/tooling/tsconfig/dist/components/Nodes/GroupNode.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Nodes/InputNode.d.ts +3 -0
- package/dist/esm/tooling/tsconfig/dist/components/Nodes/InputNode.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Nodes/OutputNode.d.ts +3 -0
- package/dist/esm/tooling/tsconfig/dist/components/Nodes/OutputNode.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Nodes/utils.d.ts +13 -0
- package/dist/esm/tooling/tsconfig/dist/components/Nodes/utils.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/NodesSelection/index.d.ts +13 -0
- package/dist/esm/tooling/tsconfig/dist/components/NodesSelection/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/Panel/index.d.ts +11 -0
- package/dist/esm/tooling/tsconfig/dist/components/Panel/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/ReactFlowProvider/index.d.ts +14 -0
- package/dist/esm/tooling/tsconfig/dist/components/ReactFlowProvider/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/SelectionListener/index.d.ts +7 -0
- package/dist/esm/tooling/tsconfig/dist/components/SelectionListener/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/StoreUpdater/index.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/components/StoreUpdater/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/UserSelection/index.d.ts +2 -0
- package/dist/esm/tooling/tsconfig/dist/components/UserSelection/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/components/ViewportPortal/index.d.ts +5 -0
- package/dist/esm/tooling/tsconfig/dist/components/ViewportPortal/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/container/EdgeRenderer/MarkerDefinitions.d.ts +11 -0
- package/dist/esm/tooling/tsconfig/dist/container/EdgeRenderer/MarkerDefinitions.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/container/EdgeRenderer/MarkerSymbols.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/container/EdgeRenderer/MarkerSymbols.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/container/EdgeRenderer/index.d.ts +13 -0
- package/dist/esm/tooling/tsconfig/dist/container/EdgeRenderer/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/container/FlowRenderer/index.d.ts +14 -0
- package/dist/esm/tooling/tsconfig/dist/container/FlowRenderer/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/container/GraphView/index.d.ts +11 -0
- package/dist/esm/tooling/tsconfig/dist/container/GraphView/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +10 -0
- package/dist/esm/tooling/tsconfig/dist/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/container/GraphView/useStylesLoadedWarning.d.ts +2 -0
- package/dist/esm/tooling/tsconfig/dist/container/GraphView/useStylesLoadedWarning.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/container/NodeRenderer/index.d.ts +10 -0
- package/dist/esm/tooling/tsconfig/dist/container/NodeRenderer/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/container/NodeRenderer/useResizeObserver.d.ts +2 -0
- package/dist/esm/tooling/tsconfig/dist/container/NodeRenderer/useResizeObserver.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/container/Pane/index.d.ts +12 -0
- package/dist/esm/tooling/tsconfig/dist/container/Pane/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/container/ReactFlow/Wrapper.d.ts +13 -0
- package/dist/esm/tooling/tsconfig/dist/container/ReactFlow/Wrapper.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/container/ReactFlow/index.d.ts +5 -0
- package/dist/esm/tooling/tsconfig/dist/container/ReactFlow/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/container/ReactFlow/init-values.d.ts +4 -0
- package/dist/esm/tooling/tsconfig/dist/container/ReactFlow/init-values.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/container/Viewport/index.d.ts +7 -0
- package/dist/esm/tooling/tsconfig/dist/container/Viewport/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/container/ZoomPane/index.d.ts +7 -0
- package/dist/esm/tooling/tsconfig/dist/container/ZoomPane/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/contexts/NodeIdContext.d.ts +7 -0
- package/dist/esm/tooling/tsconfig/dist/contexts/NodeIdContext.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/contexts/StoreContext.d.ts +5 -0
- package/dist/esm/tooling/tsconfig/dist/contexts/StoreContext.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useColorModeClass.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useColorModeClass.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useConnection.d.ts +20 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useConnection.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useDrag.d.ts +17 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useDrag.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useEdges.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useEdges.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useGlobalKeyHandler.d.ts +11 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useGlobalKeyHandler.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useHandleConnections.d.ts +22 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useHandleConnections.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useInternalNode.d.ts +10 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useInternalNode.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useKeyPress.d.ts +15 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useKeyPress.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useMoveSelectedNodes.d.ts +12 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useMoveSelectedNodes.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useNodes.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useNodes.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useNodesData.d.ts +12 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useNodesData.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useNodesEdgesState.d.ts +19 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useNodesEdgesState.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useNodesInitialized.d.ts +12 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useNodesInitialized.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useOnInitHandler.d.ts +8 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useOnInitHandler.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useOnSelectionChange.d.ts +12 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useOnSelectionChange.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useOnViewportChange.d.ts +16 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useOnViewportChange.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useReactFlow.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useReactFlow.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useResizeHandler.d.ts +8 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useResizeHandler.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useStore.d.ts +21 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useStore.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useUpdateNodeInternals.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useUpdateNodeInternals.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useViewport.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useViewport.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useViewportHelper.d.ts +10 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useViewportHelper.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useViewportSync.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useViewportSync.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useVisibleEdgeIds.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useVisibleEdgeIds.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useVisibleNodeIds.d.ts +9 -0
- package/dist/esm/tooling/tsconfig/dist/hooks/useVisibleNodeIds.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/index.d.ts +36 -0
- package/dist/esm/tooling/tsconfig/dist/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/store/index.d.ts +12 -0
- package/dist/esm/tooling/tsconfig/dist/store/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/store/initialState.d.ts +12 -0
- package/dist/esm/tooling/tsconfig/dist/store/initialState.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/styles/utils.d.ts +3 -0
- package/dist/esm/tooling/tsconfig/dist/styles/utils.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/types/component-props.d.ts +466 -0
- package/dist/esm/tooling/tsconfig/dist/types/component-props.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/types/edges.d.ts +155 -0
- package/dist/esm/tooling/tsconfig/dist/types/edges.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/types/general.d.ts +124 -0
- package/dist/esm/tooling/tsconfig/dist/types/general.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/types/index.d.ts +7 -0
- package/dist/esm/tooling/tsconfig/dist/types/index.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/types/instance.d.ts +146 -0
- package/dist/esm/tooling/tsconfig/dist/types/instance.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/types/nodes.d.ts +50 -0
- package/dist/esm/tooling/tsconfig/dist/types/nodes.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/types/store.d.ts +108 -0
- package/dist/esm/tooling/tsconfig/dist/types/store.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/utils/changes.d.ts +65 -0
- package/dist/esm/tooling/tsconfig/dist/utils/changes.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/utils/general.d.ts +20 -0
- package/dist/esm/tooling/tsconfig/dist/utils/general.d.ts.map +1 -0
- package/dist/esm/tooling/tsconfig/dist/utils/index.d.ts +3 -0
- package/dist/esm/tooling/tsconfig/dist/utils/index.d.ts.map +1 -0
- package/dist/esm/types/edges.d.ts +1 -1
- package/dist/esm/types/edges.d.ts.map +1 -1
- package/dist/esm/types/instance.d.ts +1 -1
- package/dist/esm/types/instance.d.ts.map +1 -1
- package/dist/esm/utils/general.d.ts +2 -2
- package/dist/esm/utils/general.d.ts.map +1 -1
- package/dist/umd/components/Handle/index.d.ts +5 -3
- package/dist/umd/components/Handle/index.d.ts.map +1 -1
- package/dist/umd/container/GraphView/index.d.ts.map +1 -1
- package/dist/umd/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +6 -0
- package/dist/umd/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +1 -1
- package/dist/umd/container/GraphView/useStylesLoadedWarning.d.ts +2 -0
- package/dist/umd/container/GraphView/useStylesLoadedWarning.d.ts.map +1 -0
- package/dist/umd/container/ReactFlow/index.d.ts +1 -1
- package/dist/umd/index.d.ts +1 -1
- package/dist/umd/index.d.ts.map +1 -1
- package/dist/umd/index.js +2 -2
- package/dist/umd/tooling/tsconfig/dist/additional-components/Background/Background.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Background/Background.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Background/Patterns.d.ts +15 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Background/Patterns.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Background/index.d.ts +3 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Background/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Background/types.d.ts +33 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Background/types.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/ControlButton.d.ts +3 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/ControlButton.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Controls.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Controls.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/FitView.d.ts +2 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/FitView.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Lock.d.ts +2 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Lock.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Minus.d.ts +2 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Minus.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Plus.d.ts +2 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Plus.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Unlock.d.ts +2 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/Icons/Unlock.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/index.d.ts +4 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/types.d.ts +35 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/Controls/types.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/MiniMap.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/MiniMap.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNode.d.ts +6 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNode.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNodes.d.ts +6 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/MiniMapNodes.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/index.d.ts +3 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/types.d.ts +67 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/MiniMap/types.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizeControl.d.ts +7 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizeControl.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizer.d.ts +3 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/NodeResizer.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/index.d.ts +4 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/types.d.ts +56 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeResizer/types.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbar.d.ts +3 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbar.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbarPortal.d.ts +5 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/NodeToolbarPortal.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/index.d.ts +3 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/types.d.ts +20 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/NodeToolbar/types.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/index.d.ts +6 -0
- package/dist/umd/tooling/tsconfig/dist/additional-components/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/A11yDescriptions/index.d.ts +8 -0
- package/dist/umd/tooling/tsconfig/dist/components/A11yDescriptions/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Attribution/index.d.ts +8 -0
- package/dist/umd/tooling/tsconfig/dist/components/Attribution/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/BatchProvider/index.d.ts +17 -0
- package/dist/umd/tooling/tsconfig/dist/components/BatchProvider/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/BatchProvider/types.d.ts +7 -0
- package/dist/umd/tooling/tsconfig/dist/components/BatchProvider/types.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/BatchProvider/useQueue.d.ts +11 -0
- package/dist/umd/tooling/tsconfig/dist/components/BatchProvider/useQueue.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/ConnectionLine/index.d.ts +12 -0
- package/dist/umd/tooling/tsconfig/dist/components/ConnectionLine/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/EdgeLabelRenderer/index.d.ts +5 -0
- package/dist/umd/tooling/tsconfig/dist/components/EdgeLabelRenderer/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/EdgeWrapper/EdgeUpdateAnchors.d.ts +17 -0
- package/dist/umd/tooling/tsconfig/dist/components/EdgeWrapper/EdgeUpdateAnchors.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/EdgeWrapper/index.d.ts +4 -0
- package/dist/umd/tooling/tsconfig/dist/components/EdgeWrapper/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/EdgeWrapper/utils.d.ts +11 -0
- package/dist/umd/tooling/tsconfig/dist/components/EdgeWrapper/utils.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/BaseEdge.d.ts +3 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/BaseEdge.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/BezierEdge.d.ts +6 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/BezierEdge.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/EdgeAnchor.d.ts +14 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/EdgeAnchor.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/EdgeText.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/EdgeText.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/SimpleBezierEdge.d.ts +16 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/SimpleBezierEdge.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/SmoothStepEdge.d.ts +6 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/SmoothStepEdge.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/StepEdge.d.ts +6 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/StepEdge.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/StraightEdge.d.ts +6 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/StraightEdge.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/index.d.ts +6 -0
- package/dist/umd/tooling/tsconfig/dist/components/Edges/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Handle/index.d.ts +11 -0
- package/dist/umd/tooling/tsconfig/dist/components/Handle/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/NodeWrapper/index.d.ts +3 -0
- package/dist/umd/tooling/tsconfig/dist/components/NodeWrapper/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/NodeWrapper/useNodeObserver.d.ts +15 -0
- package/dist/umd/tooling/tsconfig/dist/components/NodeWrapper/useNodeObserver.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/NodeWrapper/utils.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/components/NodeWrapper/utils.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Nodes/DefaultNode.d.ts +3 -0
- package/dist/umd/tooling/tsconfig/dist/components/Nodes/DefaultNode.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Nodes/GroupNode.d.ts +2 -0
- package/dist/umd/tooling/tsconfig/dist/components/Nodes/GroupNode.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Nodes/InputNode.d.ts +3 -0
- package/dist/umd/tooling/tsconfig/dist/components/Nodes/InputNode.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Nodes/OutputNode.d.ts +3 -0
- package/dist/umd/tooling/tsconfig/dist/components/Nodes/OutputNode.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Nodes/utils.d.ts +13 -0
- package/dist/umd/tooling/tsconfig/dist/components/Nodes/utils.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/NodesSelection/index.d.ts +13 -0
- package/dist/umd/tooling/tsconfig/dist/components/NodesSelection/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/Panel/index.d.ts +11 -0
- package/dist/umd/tooling/tsconfig/dist/components/Panel/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/ReactFlowProvider/index.d.ts +14 -0
- package/dist/umd/tooling/tsconfig/dist/components/ReactFlowProvider/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/SelectionListener/index.d.ts +7 -0
- package/dist/umd/tooling/tsconfig/dist/components/SelectionListener/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/StoreUpdater/index.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/components/StoreUpdater/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/UserSelection/index.d.ts +2 -0
- package/dist/umd/tooling/tsconfig/dist/components/UserSelection/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/components/ViewportPortal/index.d.ts +5 -0
- package/dist/umd/tooling/tsconfig/dist/components/ViewportPortal/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/container/EdgeRenderer/MarkerDefinitions.d.ts +11 -0
- package/dist/umd/tooling/tsconfig/dist/container/EdgeRenderer/MarkerDefinitions.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/container/EdgeRenderer/MarkerSymbols.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/container/EdgeRenderer/MarkerSymbols.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/container/EdgeRenderer/index.d.ts +13 -0
- package/dist/umd/tooling/tsconfig/dist/container/EdgeRenderer/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/container/FlowRenderer/index.d.ts +14 -0
- package/dist/umd/tooling/tsconfig/dist/container/FlowRenderer/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/container/GraphView/index.d.ts +11 -0
- package/dist/umd/tooling/tsconfig/dist/container/GraphView/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +10 -0
- package/dist/umd/tooling/tsconfig/dist/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/container/GraphView/useStylesLoadedWarning.d.ts +2 -0
- package/dist/umd/tooling/tsconfig/dist/container/GraphView/useStylesLoadedWarning.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/container/NodeRenderer/index.d.ts +10 -0
- package/dist/umd/tooling/tsconfig/dist/container/NodeRenderer/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/container/NodeRenderer/useResizeObserver.d.ts +2 -0
- package/dist/umd/tooling/tsconfig/dist/container/NodeRenderer/useResizeObserver.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/container/Pane/index.d.ts +12 -0
- package/dist/umd/tooling/tsconfig/dist/container/Pane/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/container/ReactFlow/Wrapper.d.ts +13 -0
- package/dist/umd/tooling/tsconfig/dist/container/ReactFlow/Wrapper.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/container/ReactFlow/index.d.ts +5 -0
- package/dist/umd/tooling/tsconfig/dist/container/ReactFlow/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/container/ReactFlow/init-values.d.ts +4 -0
- package/dist/umd/tooling/tsconfig/dist/container/ReactFlow/init-values.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/container/Viewport/index.d.ts +7 -0
- package/dist/umd/tooling/tsconfig/dist/container/Viewport/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/container/ZoomPane/index.d.ts +7 -0
- package/dist/umd/tooling/tsconfig/dist/container/ZoomPane/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/contexts/NodeIdContext.d.ts +7 -0
- package/dist/umd/tooling/tsconfig/dist/contexts/NodeIdContext.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/contexts/StoreContext.d.ts +5 -0
- package/dist/umd/tooling/tsconfig/dist/contexts/StoreContext.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useColorModeClass.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useColorModeClass.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useConnection.d.ts +20 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useConnection.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useDrag.d.ts +17 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useDrag.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useEdges.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useEdges.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useGlobalKeyHandler.d.ts +11 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useGlobalKeyHandler.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useHandleConnections.d.ts +22 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useHandleConnections.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useInternalNode.d.ts +10 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useInternalNode.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useKeyPress.d.ts +15 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useKeyPress.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useMoveSelectedNodes.d.ts +12 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useMoveSelectedNodes.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useNodes.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useNodes.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useNodesData.d.ts +12 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useNodesData.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useNodesEdgesState.d.ts +19 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useNodesEdgesState.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useNodesInitialized.d.ts +12 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useNodesInitialized.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useOnInitHandler.d.ts +8 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useOnInitHandler.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useOnSelectionChange.d.ts +12 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useOnSelectionChange.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useOnViewportChange.d.ts +16 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useOnViewportChange.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useReactFlow.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useReactFlow.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useResizeHandler.d.ts +8 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useResizeHandler.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useStore.d.ts +21 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useStore.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useUpdateNodeInternals.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useUpdateNodeInternals.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useViewport.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useViewport.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useViewportHelper.d.ts +10 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useViewportHelper.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useViewportSync.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useViewportSync.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useVisibleEdgeIds.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useVisibleEdgeIds.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useVisibleNodeIds.d.ts +9 -0
- package/dist/umd/tooling/tsconfig/dist/hooks/useVisibleNodeIds.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/index.d.ts +36 -0
- package/dist/umd/tooling/tsconfig/dist/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/store/index.d.ts +12 -0
- package/dist/umd/tooling/tsconfig/dist/store/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/store/initialState.d.ts +12 -0
- package/dist/umd/tooling/tsconfig/dist/store/initialState.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/styles/utils.d.ts +3 -0
- package/dist/umd/tooling/tsconfig/dist/styles/utils.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/types/component-props.d.ts +466 -0
- package/dist/umd/tooling/tsconfig/dist/types/component-props.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/types/edges.d.ts +155 -0
- package/dist/umd/tooling/tsconfig/dist/types/edges.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/types/general.d.ts +124 -0
- package/dist/umd/tooling/tsconfig/dist/types/general.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/types/index.d.ts +7 -0
- package/dist/umd/tooling/tsconfig/dist/types/index.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/types/instance.d.ts +146 -0
- package/dist/umd/tooling/tsconfig/dist/types/instance.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/types/nodes.d.ts +50 -0
- package/dist/umd/tooling/tsconfig/dist/types/nodes.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/types/store.d.ts +108 -0
- package/dist/umd/tooling/tsconfig/dist/types/store.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/utils/changes.d.ts +65 -0
- package/dist/umd/tooling/tsconfig/dist/utils/changes.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/utils/general.d.ts +20 -0
- package/dist/umd/tooling/tsconfig/dist/utils/general.d.ts.map +1 -0
- package/dist/umd/tooling/tsconfig/dist/utils/index.d.ts +3 -0
- package/dist/umd/tooling/tsconfig/dist/utils/index.d.ts.map +1 -0
- package/dist/umd/utils/general.d.ts +2 -2
- package/dist/umd/utils/general.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { FitViewParamsBase, FitViewOptionsBase, ZoomInOut, ZoomTo, SetViewport, GetZoom, GetViewport, SetCenter, FitBounds, XYPosition, OnBeforeDeleteBase, Connection, NodeChange, EdgeChange } from '@xyflow/system';
|
|
3
|
+
import type { Node, Edge, ReactFlowInstance, EdgeProps, NodeProps } from '.';
|
|
4
|
+
export type OnNodesChange<NodeType extends Node = Node> = (changes: NodeChange<NodeType>[]) => void;
|
|
5
|
+
export type OnEdgesChange<EdgeType extends Edge = Edge> = (changes: EdgeChange<EdgeType>[]) => void;
|
|
6
|
+
export type OnNodesDelete<NodeType extends Node = Node> = (nodes: NodeType[]) => void;
|
|
7
|
+
export type OnEdgesDelete<EdgeType extends Edge = Edge> = (edges: EdgeType[]) => void;
|
|
8
|
+
export type OnDelete<NodeType extends Node = Node, EdgeType extends Edge = Edge> = (params: {
|
|
9
|
+
nodes: NodeType[];
|
|
10
|
+
edges: EdgeType[];
|
|
11
|
+
}) => void;
|
|
12
|
+
export type NodeTypes = Record<string, ComponentType<NodeProps & {
|
|
13
|
+
data: any;
|
|
14
|
+
type: any;
|
|
15
|
+
}>>;
|
|
16
|
+
export type EdgeTypes = Record<string, ComponentType<EdgeProps & {
|
|
17
|
+
data: any;
|
|
18
|
+
type: any;
|
|
19
|
+
}>>;
|
|
20
|
+
export type UnselectNodesAndEdgesParams = {
|
|
21
|
+
nodes?: Node[];
|
|
22
|
+
edges?: Edge[];
|
|
23
|
+
};
|
|
24
|
+
export type OnSelectionChangeParams = {
|
|
25
|
+
nodes: Node[];
|
|
26
|
+
edges: Edge[];
|
|
27
|
+
};
|
|
28
|
+
export type OnSelectionChangeFunc = (params: OnSelectionChangeParams) => void;
|
|
29
|
+
export type FitViewParams<NodeType extends Node = Node> = FitViewParamsBase<NodeType>;
|
|
30
|
+
export type FitViewOptions<NodeType extends Node = Node> = FitViewOptionsBase<NodeType>;
|
|
31
|
+
export type FitView = (fitViewOptions?: FitViewOptions) => boolean;
|
|
32
|
+
export type OnInit<NodeType extends Node = Node, EdgeType extends Edge = Edge> = (reactFlowInstance: ReactFlowInstance<NodeType, EdgeType>) => void;
|
|
33
|
+
export type ViewportHelperFunctions = {
|
|
34
|
+
/**
|
|
35
|
+
* Zooms viewport in by 1.2.
|
|
36
|
+
*
|
|
37
|
+
* @param options.duration - optional duration. If set, a transition will be applied
|
|
38
|
+
*/
|
|
39
|
+
zoomIn: ZoomInOut;
|
|
40
|
+
/**
|
|
41
|
+
* Zooms viewport out by 1 / 1.2.
|
|
42
|
+
*
|
|
43
|
+
* @param options.duration - optional duration. If set, a transition will be applied
|
|
44
|
+
*/
|
|
45
|
+
zoomOut: ZoomInOut;
|
|
46
|
+
/**
|
|
47
|
+
* Sets the current zoom level.
|
|
48
|
+
*
|
|
49
|
+
* @param zoomLevel - the zoom level to set
|
|
50
|
+
* @param options.duration - optional duration. If set, a transition will be applied
|
|
51
|
+
*/
|
|
52
|
+
zoomTo: ZoomTo;
|
|
53
|
+
/**
|
|
54
|
+
* Returns the current zoom level.
|
|
55
|
+
*
|
|
56
|
+
* @returns current zoom as a number
|
|
57
|
+
*/
|
|
58
|
+
getZoom: GetZoom;
|
|
59
|
+
/**
|
|
60
|
+
* Sets the current viewport.
|
|
61
|
+
*
|
|
62
|
+
* @param viewport - the viewport to set
|
|
63
|
+
* @param options.duration - optional duration. If set, a transition will be applied
|
|
64
|
+
*/
|
|
65
|
+
setViewport: SetViewport;
|
|
66
|
+
/**
|
|
67
|
+
* Returns the current viewport.
|
|
68
|
+
*
|
|
69
|
+
* @returns Viewport
|
|
70
|
+
*/
|
|
71
|
+
getViewport: GetViewport;
|
|
72
|
+
/**
|
|
73
|
+
* Fits the view.
|
|
74
|
+
*
|
|
75
|
+
* @param options.padding - optional padding
|
|
76
|
+
* @param options.includeHiddenNodes - optional includeHiddenNodes
|
|
77
|
+
* @param options.minZoom - optional minZoom
|
|
78
|
+
* @param options.maxZoom - optional maxZoom
|
|
79
|
+
* @param options.duration - optional duration. If set, a transition will be applied
|
|
80
|
+
* @param options.nodes - optional nodes to fit the view to
|
|
81
|
+
*/
|
|
82
|
+
fitView: FitView;
|
|
83
|
+
/**
|
|
84
|
+
* Sets the center of the view to the given position.
|
|
85
|
+
*
|
|
86
|
+
* @param x - x position
|
|
87
|
+
* @param y - y position
|
|
88
|
+
* @param options.zoom - optional zoom
|
|
89
|
+
*/
|
|
90
|
+
setCenter: SetCenter;
|
|
91
|
+
/**
|
|
92
|
+
* Fits the view to the given bounds .
|
|
93
|
+
*
|
|
94
|
+
* @param bounds - the bounds ({ x: number, y: number, width: number, height: number }) to fit the view to
|
|
95
|
+
* @param options.padding - optional padding
|
|
96
|
+
*/
|
|
97
|
+
fitBounds: FitBounds;
|
|
98
|
+
/**
|
|
99
|
+
* Converts a screen / client position to a flow position.
|
|
100
|
+
*
|
|
101
|
+
* @param clientPosition - the screen / client position. When you are working with events you can use event.clientX and event.clientY
|
|
102
|
+
* @param options.snapToGrid - if true, the converted position will be snapped to the grid
|
|
103
|
+
* @returns position as { x: number, y: number }
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* const flowPosition = screenToFlowPosition({ x: event.clientX, y: event.clientY })
|
|
107
|
+
*/
|
|
108
|
+
screenToFlowPosition: (clientPosition: XYPosition, options?: {
|
|
109
|
+
snapToGrid: boolean;
|
|
110
|
+
}) => XYPosition;
|
|
111
|
+
/**
|
|
112
|
+
* Converts a flow position to a screen / client position.
|
|
113
|
+
*
|
|
114
|
+
* @param flowPosition - the screen / client position. When you are working with events you can use event.clientX and event.clientY
|
|
115
|
+
* @returns position as { x: number, y: number }
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* const clientPosition = flowToScreenPosition({ x: node.position.x, y: node.position.y })
|
|
119
|
+
*/
|
|
120
|
+
flowToScreenPosition: (flowPosition: XYPosition) => XYPosition;
|
|
121
|
+
};
|
|
122
|
+
export type OnBeforeDelete<NodeType extends Node = Node, EdgeType extends Edge = Edge> = OnBeforeDeleteBase<NodeType, EdgeType>;
|
|
123
|
+
export type IsValidConnection<EdgeType extends Edge = Edge> = (edge: EdgeType | Connection) => boolean;
|
|
124
|
+
//# sourceMappingURL=general.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/types/general.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,MAAM,EACN,WAAW,EACX,OAAO,EACP,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,UAAU,EACX,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,iBAAiB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AAE7E,MAAM,MAAM,aAAa,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE,KAAK,IAAI,CAAC;AACpG,MAAM,MAAM,aAAa,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE,KAAK,IAAI,CAAC;AAEpG,MAAM,MAAM,aA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,UAAU,KAAK,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import type { Rect, Viewport } from '@xyflow/system';
|
|
2
|
+
import type { Node, Edge, ViewportHelperFunctions, InternalNode } from '.';
|
|
3
|
+
export type ReactFlowJsonObject<NodeType extends Node = Node, EdgeType extends Edge = Edge> = {
|
|
4
|
+
nodes: NodeType[];
|
|
5
|
+
edges: EdgeType[];
|
|
6
|
+
viewport: Viewport;
|
|
7
|
+
};
|
|
8
|
+
export type DeleteElementsOptions = {
|
|
9
|
+
nodes?: (Node | {
|
|
10
|
+
id: Node['id'];
|
|
11
|
+
})[];
|
|
12
|
+
edges?: (Edge | {
|
|
13
|
+
id: Edge['id'];
|
|
14
|
+
})[];
|
|
15
|
+
};
|
|
16
|
+
export type GeneralHelpers<NodeType extends Node = Node, EdgeType extends Edge = Edge> = {
|
|
17
|
+
/**
|
|
18
|
+
* Returns nodes.
|
|
19
|
+
*
|
|
20
|
+
* @returns nodes array
|
|
21
|
+
*/
|
|
22
|
+
getNodes: () => NodeType[];
|
|
23
|
+
/**
|
|
24
|
+
* Sets nodes.
|
|
25
|
+
*
|
|
26
|
+
* @param payload - the nodes to set or a function that receives the current nodes and returns the new nodes
|
|
27
|
+
*/
|
|
28
|
+
setNodes: (payload: NodeType[] | ((nodes: NodeType[]) => NodeType[])) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Adds nodes.
|
|
31
|
+
*
|
|
32
|
+
* @param payload - the nodes to add
|
|
33
|
+
*/
|
|
34
|
+
addNodes: (payload: NodeType[] | NodeType) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Returns a node by id.
|
|
37
|
+
*
|
|
38
|
+
* @param id - the node id
|
|
39
|
+
* @returns the node or undefined if no node was found
|
|
40
|
+
*/
|
|
41
|
+
getNode: (id: string) => NodeType | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Returns an internal node by id.
|
|
44
|
+
*
|
|
45
|
+
* @param id - the node id
|
|
46
|
+
* @returns the internal node or undefined if no node was found
|
|
47
|
+
*/
|
|
48
|
+
getInternalNode: (id: string) => InternalNode<NodeType> | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Returns edges.
|
|
51
|
+
*
|
|
52
|
+
* @returns edges array
|
|
53
|
+
*/
|
|
54
|
+
getEdges: () => EdgeType[];
|
|
55
|
+
/**
|
|
56
|
+
* Sets edges.
|
|
57
|
+
*
|
|
58
|
+
* @param payload - the edges to set or a function that receives the current edges and returns the new edges
|
|
59
|
+
*/
|
|
60
|
+
setEdges: (payload: EdgeType[] | ((edges: EdgeType[]) => EdgeType[])) => void;
|
|
61
|
+
/**
|
|
62
|
+
* Adds edges.
|
|
63
|
+
*
|
|
64
|
+
* @param payload - the edges to add
|
|
65
|
+
*/
|
|
66
|
+
addEdges: (payload: EdgeType[] | EdgeType) => void;
|
|
67
|
+
/**
|
|
68
|
+
* Returns an edge by id.
|
|
69
|
+
*
|
|
70
|
+
* @param id - the edge id
|
|
71
|
+
* @returns the edge or undefined if no edge was found
|
|
72
|
+
*/
|
|
73
|
+
getEdge: (id: string) => EdgeType | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the nodes, edges and the viewport as a JSON object.
|
|
76
|
+
*
|
|
77
|
+
* @returns the nodes, edges and the viewport as a JSON object
|
|
78
|
+
*/
|
|
79
|
+
toObject: () => ReactFlowJsonObject<NodeType, EdgeType>;
|
|
80
|
+
/**
|
|
81
|
+
* Deletes nodes and edges.
|
|
82
|
+
*
|
|
83
|
+
* @param params.nodes - optional nodes array to delete
|
|
84
|
+
* @param params.edges - optional edges array to delete
|
|
85
|
+
*
|
|
86
|
+
* @returns a promise that resolves with the deleted nodes and edges
|
|
87
|
+
*/
|
|
88
|
+
deleteElements: (params: DeleteElementsOptions) => Promise<{
|
|
89
|
+
deletedNodes: Node[];
|
|
90
|
+
deletedEdges: Edge[];
|
|
91
|
+
}>;
|
|
92
|
+
/**
|
|
93
|
+
* Returns all nodes that intersect with the given node or rect.
|
|
94
|
+
*
|
|
95
|
+
* @param node - the node or rect to check for intersections
|
|
96
|
+
* @param partially - if true, the node is considered to be intersecting if it partially overlaps with the passed node or rect
|
|
97
|
+
* @param nodes - optional nodes array to check for intersections
|
|
98
|
+
*
|
|
99
|
+
* @returns an array of intersecting nodes
|
|
100
|
+
*/
|
|
101
|
+
getIntersectingNodes: (node: NodeType | {
|
|
102
|
+
id: Node['id'];
|
|
103
|
+
} | Rect, partially?: boolean, nodes?: NodeType[]) => NodeType[];
|
|
104
|
+
/**
|
|
105
|
+
* Checks if the given node or rect intersects with the passed rect.
|
|
106
|
+
*
|
|
107
|
+
* @param node - the node or rect to check for intersections
|
|
108
|
+
* @param area - the rect to check for intersections
|
|
109
|
+
* @param partially - if true, the node is considered to be intersecting if it partially overlaps with the passed react
|
|
110
|
+
*
|
|
111
|
+
* @returns true if the node or rect intersects with the given area
|
|
112
|
+
*/
|
|
113
|
+
isNodeIntersecting: (node: NodeType | {
|
|
114
|
+
id: Node['id'];
|
|
115
|
+
} | Rect, area: Rect, partially?: boolean) => boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Updates a node.
|
|
118
|
+
*
|
|
119
|
+
* @param id - id of the node to update
|
|
120
|
+
* @param nodeUpdate - the node update as an object or a function that receives the current node and returns the node update
|
|
121
|
+
* @param options.replace - if true, the node is replaced with the node update, otherwise the changes get merged
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* updateNode('node-1', (node) => ({ position: { x: node.position.x + 10, y: node.position.y } }));
|
|
125
|
+
*/
|
|
126
|
+
updateNode: (id: string, nodeUpdate: Partial<NodeType> | ((node: NodeType) => Partial<NodeType>), options?: {
|
|
127
|
+
replace: boolean;
|
|
128
|
+
}) => void;
|
|
129
|
+
/**
|
|
130
|
+
* Updates the data attribute of a node.
|
|
131
|
+
*
|
|
132
|
+
* @param id - id of the node to update
|
|
133
|
+
* @param dataUpdate - the data update as an object or a function that receives the current data and returns the data update
|
|
134
|
+
* @param options.replace - if true, the data is replaced with the data update, otherwise the changes get merged
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* updateNodeData('node-1', { label: 'A new label' });
|
|
138
|
+
*/
|
|
139
|
+
updateNodeData: (id: string, dataUpdate: Partial<NodeType['data']> | ((node: NodeType) => Partial<NodeType['data']>), options?: {
|
|
140
|
+
replace: boolean;
|
|
141
|
+
}) => void;
|
|
142
|
+
};
|
|
143
|
+
export type ReactFlowInstance<NodeType extends Node = Node, EdgeType extends Edge = Edge> = GeneralHelpers<NodeType, EdgeType> & Omit<ViewportHelperFunctions, 'initialized'> & {
|
|
144
|
+
viewportInitialized: boolean;
|
|
145
|
+
};
|
|
146
|
+
//# sourceMappingURL=instance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/types/instance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC;AAE3E,MAAM,MAAM,mBAAmB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI;IAC5F,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;I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AAA;KAAE,KAC3B,IAAI,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,cAAc,CACxG,QAAQ,EACR,QAAQ,CACT,GACC,IAAI,CAAC,uBAAuB,EAAE,aAAa,CAAC,GAAG;IAC7C,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { CSSProperties, MouseEvent as ReactMouseEvent } from 'react';
|
|
2
|
+
import type { CoordinateExtent, NodeBase, NodeOrigin, OnError, NodeProps as NodePropsBase, InternalNodeBase } from '@xyflow/system';
|
|
3
|
+
import { NodeTypes } from './general';
|
|
4
|
+
/**
|
|
5
|
+
* The node data structure that gets used for the nodes prop.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type Node<NodeData extends Record<string, unknown> = Record<string, unknown>, NodeType extends string = string> = NodeBase<NodeData, NodeType> & {
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
className?: string;
|
|
11
|
+
resizing?: boolean;
|
|
12
|
+
focusable?: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The node data structure that gets used for internal nodes.
|
|
16
|
+
* There are some data structures added under node.internal
|
|
17
|
+
* that are needed for tracking some properties
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export type InternalNode<NodeType extends Node = Node> = InternalNodeBase<NodeType>;
|
|
21
|
+
export type NodeMouseHandler<NodeType extends Node = Node> = (event: ReactMouseEvent, node: NodeType) => void;
|
|
22
|
+
export type SelectionDragHandler<NodeType extends Node = Node> = (event: ReactMouseEvent, nodes: NodeType[]) => void;
|
|
23
|
+
export type OnNodeDrag<NodeType extends Node = Node> = (event: ReactMouseEvent, node: NodeType, nodes: NodeType[]) => void;
|
|
24
|
+
export type NodeWrapperProps<NodeType extends Node> = {
|
|
25
|
+
id: string;
|
|
26
|
+
nodesConnectable: boolean;
|
|
27
|
+
elementsSelectable: boolean;
|
|
28
|
+
nodesDraggable: boolean;
|
|
29
|
+
nodesFocusable: boolean;
|
|
30
|
+
onClick?: NodeMouseHandler<NodeType>;
|
|
31
|
+
onDoubleClick?: NodeMouseHandler<NodeType>;
|
|
32
|
+
onMouseEnter?: NodeMouseHandler<NodeType>;
|
|
33
|
+
onMouseMove?: NodeMouseHandler<NodeType>;
|
|
34
|
+
onMouseLeave?: NodeMouseHandler<NodeType>;
|
|
35
|
+
onContextMenu?: NodeMouseHandler<NodeType>;
|
|
36
|
+
resizeObserver: ResizeObserver | null;
|
|
37
|
+
noDragClassName: string;
|
|
38
|
+
noPanClassName: string;
|
|
39
|
+
rfId: string;
|
|
40
|
+
disableKeyboardA11y: boolean;
|
|
41
|
+
nodeTypes?: NodeTypes;
|
|
42
|
+
nodeExtent?: CoordinateExtent;
|
|
43
|
+
nodeOrigin: NodeOrigin;
|
|
44
|
+
onError?: OnError;
|
|
45
|
+
};
|
|
46
|
+
export type BuiltInNode = Node<{
|
|
47
|
+
label: string;
|
|
48
|
+
}, 'input' | 'output' | 'default'>;
|
|
49
|
+
export type NodeProps<NodeType extends Node = Node> = NodePropsBase<NodeType>;
|
|
50
|
+
//# sourceMappingURL=nodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/types/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,KAAK,EACV,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,OAAO,EACP,SAAS,IAAI,aAAa,EAC1B,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC;;;GAGG;AACH,MAAM,MAAM,IAAI,CACd,QA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C3C,YAAY,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IACzC,YAAY,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC1C,aAAa,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC3C,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAC;AAElF,MAAM,MAAM,SAAS,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { ConnectionMode, type ConnectionStatus, type CoordinateExtent, type InternalNodeUpdate, type UpdateNodePositions, type NodeOrigin, type OnConnect, type OnError, type OnViewportChange, type SelectionRect, type SnapGrid, type ConnectingHandle, type Transform, type XYPosition, type PanZoomInstance, type PanBy, type OnConnectStart, type OnConnectEnd, type OnSelectionDrag, type OnMoveStart, type OnMove, type OnMoveEnd, type UpdateConnection, type EdgeLookup, type ConnectionLookup, type NodeLookup, NodeChange, EdgeChange } from '@xyflow/system';
|
|
2
|
+
import type { Edge, Node, OnNodesChange, OnEdgesChange, DefaultEdgeOptions, FitViewOptions, OnNodesDelete, OnEdgesDelete, OnSelectionChangeFunc, UnselectNodesAndEdgesParams, OnDelete, OnNodeDrag, OnBeforeDelete, IsValidConnection, InternalNode } from '.';
|
|
3
|
+
export type ReactFlowStore<NodeType extends Node = Node, EdgeType extends Edge = Edge> = {
|
|
4
|
+
rfId: string;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
transform: Transform;
|
|
8
|
+
nodes: NodeType[];
|
|
9
|
+
nodeLookup: NodeLookup<InternalNode<NodeType>>;
|
|
10
|
+
parentLookup: Map<string, InternalNode<NodeType>[]>;
|
|
11
|
+
edges: Edge[];
|
|
12
|
+
edgeLookup: EdgeLookup<EdgeType>;
|
|
13
|
+
connectionLookup: ConnectionLookup;
|
|
14
|
+
onNodesChange: OnNodesChange<NodeType> | null;
|
|
15
|
+
onEdgesChange: OnEdgesChange<EdgeType> | null;
|
|
16
|
+
hasDefaultNodes: boolean;
|
|
17
|
+
hasDefaultEdges: boolean;
|
|
18
|
+
domNode: HTMLDivElement | null;
|
|
19
|
+
paneDragging: boolean;
|
|
20
|
+
noPanClassName: string;
|
|
21
|
+
panZoom: PanZoomInstance | null;
|
|
22
|
+
minZoom: number;
|
|
23
|
+
maxZoom: number;
|
|
24
|
+
translateExtent: CoordinateExtent;
|
|
25
|
+
nodeExtent: CoordinateExtent;
|
|
26
|
+
nodeOrigin: NodeOrigin;
|
|
27
|
+
nodeDragThreshold: number;
|
|
28
|
+
nodesSelectionActive: boolean;
|
|
29
|
+
userSelectionActive: boolean;
|
|
30
|
+
userSelectionRect: SelectionRect | null;
|
|
31
|
+
connectionPosition: XYPosition;
|
|
32
|
+
connectionStatus: ConnectionStatus | null;
|
|
33
|
+
connectionMode: ConnectionMode;
|
|
34
|
+
snapToGrid: boolean;
|
|
35
|
+
snapGrid: SnapGrid;
|
|
36
|
+
nodesDraggable: boolean;
|
|
37
|
+
nodesConnectable: boolean;
|
|
38
|
+
nodesFocusable: boolean;
|
|
39
|
+
edgesFocusable: boolean;
|
|
40
|
+
edgesUpdatable: boolean;
|
|
41
|
+
elementsSelectable: boolean;
|
|
42
|
+
elevateNodesOnSelect: boolean;
|
|
43
|
+
elevateEdgesOnSelect: boolean;
|
|
44
|
+
selectNodesOnDrag: boolean;
|
|
45
|
+
multiSelectionActive: boolean;
|
|
46
|
+
connectionStartHandle: ConnectingHandle | null;
|
|
47
|
+
connectionEndHandle: ConnectingHandle | null;
|
|
48
|
+
connectionClickStartHandle: ConnectingHandle | null;
|
|
49
|
+
onNodeDragStart?: OnNodeDrag<NodeType>;
|
|
50
|
+
onNodeDrag?: OnNodeDrag<NodeType>;
|
|
51
|
+
onNodeDragStop?: OnNodeDrag<NodeType>;
|
|
52
|
+
onSelectionDragStart?: OnSelectionDrag;
|
|
53
|
+
onSelectionDrag?: OnSelectionDrag;
|
|
54
|
+
onSelectionDragStop?: OnSelectionDrag;
|
|
55
|
+
onMoveStart?: OnMoveStart;
|
|
56
|
+
onMove?: OnMove;
|
|
57
|
+
onMoveEnd?: OnMoveEnd;
|
|
58
|
+
onConnect?: OnConnect;
|
|
59
|
+
onConnectStart?: OnConnectStart;
|
|
60
|
+
onConnectEnd?: OnConnectEnd;
|
|
61
|
+
onClickConnectStart?: OnConnectStart;
|
|
62
|
+
onClickConnectEnd?: OnConnectEnd;
|
|
63
|
+
connectOnClick: boolean;
|
|
64
|
+
defaultEdgeOptions?: DefaultEdgeOptions;
|
|
65
|
+
fitViewOnInit: boolean;
|
|
66
|
+
fitViewDone: boolean;
|
|
67
|
+
fitViewOnInitOptions: FitViewOptions | undefined;
|
|
68
|
+
onNodesDelete?: OnNodesDelete<NodeType>;
|
|
69
|
+
onEdgesDelete?: OnEdgesDelete<EdgeType>;
|
|
70
|
+
onDelete?: OnDelete;
|
|
71
|
+
onError?: OnError;
|
|
72
|
+
onViewportChangeStart?: OnViewportChange;
|
|
73
|
+
onViewportChange?: OnViewportChange;
|
|
74
|
+
onViewportChangeEnd?: OnViewportChange;
|
|
75
|
+
onBeforeDelete?: OnBeforeDelete<NodeType, EdgeType>;
|
|
76
|
+
onSelectionChangeHandlers: OnSelectionChangeFunc[];
|
|
77
|
+
ariaLiveMessage: string;
|
|
78
|
+
autoPanOnConnect: boolean;
|
|
79
|
+
autoPanOnNodeDrag: boolean;
|
|
80
|
+
connectionRadius: number;
|
|
81
|
+
isValidConnection?: IsValidConnection<EdgeType>;
|
|
82
|
+
lib: string;
|
|
83
|
+
debug: boolean;
|
|
84
|
+
};
|
|
85
|
+
export type ReactFlowActions<NodeType extends Node, EdgeType extends Edge> = {
|
|
86
|
+
setNodes: (nodes: NodeType[]) => void;
|
|
87
|
+
setEdges: (edges: EdgeType[]) => void;
|
|
88
|
+
setDefaultNodesAndEdges: (nodes?: NodeType[], edges?: EdgeType[]) => void;
|
|
89
|
+
updateNodeInternals: (updates: Map<string, InternalNodeUpdate>) => void;
|
|
90
|
+
updateNodePositions: UpdateNodePositions;
|
|
91
|
+
resetSelectedElements: () => void;
|
|
92
|
+
unselectNodesAndEdges: (params?: UnselectNodesAndEdgesParams) => void;
|
|
93
|
+
addSelectedNodes: (nodeIds: string[]) => void;
|
|
94
|
+
addSelectedEdges: (edgeIds: string[]) => void;
|
|
95
|
+
setMinZoom: (minZoom: number) => void;
|
|
96
|
+
setMaxZoom: (maxZoom: number) => void;
|
|
97
|
+
setTranslateExtent: (translateExtent: CoordinateExtent) => void;
|
|
98
|
+
setNodeExtent: (nodeExtent: CoordinateExtent) => void;
|
|
99
|
+
cancelConnection: () => void;
|
|
100
|
+
updateConnection: UpdateConnection;
|
|
101
|
+
reset: () => void;
|
|
102
|
+
triggerNodeChanges: (changes: NodeChange<NodeType>[]) => void;
|
|
103
|
+
triggerEdgeChanges: (changes: EdgeChange<EdgeType>[]) => void;
|
|
104
|
+
panBy: PanBy;
|
|
105
|
+
fitView: (options?: FitViewOptions) => boolean;
|
|
106
|
+
};
|
|
107
|
+
export type ReactFlowState<NodeType extends Node = Node, EdgeType extends Edge = Edge> = ReactFlowStore<NodeType, EdgeType> & ReactFlowActions<NodeType, EdgeType>;
|
|
108
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/types/store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,UAAU,EACV,UAAU,EACX,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EACV,IAAI,EACJ,IAAI,EACJ,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,2BAA2B,EAC3B,QAAQ,EACR,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,YAAY,EACb,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,cAAc,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI;IACvF,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/C,Y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C,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,kBAAkB,EAAE,CAAC,eAAe,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAChE,aAAa,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACtD,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,kBAAkB,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE,KAAK,IAAI,CAAC;IAC9D,kBAAkB,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE,KAAK,IAAI,CAAC;IAC9D,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,cAAc,CACrG,QAAQ,EACR,QAAQ,CACT,GACC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { EdgeLookup, NodeLookup, EdgeChange, NodeChange, NodeSelectionChange, EdgeSelectionChange, NodeRemoveChange, EdgeRemoveChange } from '@xyflow/system';
|
|
2
|
+
import type { Node, Edge, InternalNode } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Drop in function that applies node changes to an array of nodes.
|
|
5
|
+
* @public
|
|
6
|
+
* @remarks Various events on the <ReactFlow /> component can produce an {@link NodeChange} that describes how to update the edges of your flow in some way.
|
|
7
|
+
If you don't need any custom behaviour, this util can be used to take an array of these changes and apply them to your edges.
|
|
8
|
+
* @param changes - Array of changes to apply
|
|
9
|
+
* @param nodes - Array of nodes to apply the changes to
|
|
10
|
+
* @returns Array of updated nodes
|
|
11
|
+
* @example
|
|
12
|
+
* const onNodesChange = useCallback(
|
|
13
|
+
(changes) => {
|
|
14
|
+
setNodes((oldNodes) => applyNodeChanges(changes, oldNodes));
|
|
15
|
+
},
|
|
16
|
+
[setNodes],
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<ReactFLow nodes={nodes} edges={edges} onNodesChange={onNodesChange} />
|
|
21
|
+
);
|
|
22
|
+
*/
|
|
23
|
+
export declare function applyNodeChanges<NodeType extends Node = Node>(changes: NodeChange<NodeType>[], nodes: NodeType[]): NodeType[];
|
|
24
|
+
/**
|
|
25
|
+
* Drop in function that applies edge changes to an array of edges.
|
|
26
|
+
* @public
|
|
27
|
+
* @remarks Various events on the <ReactFlow /> component can produce an {@link EdgeChange} that describes how to update the edges of your flow in some way.
|
|
28
|
+
If you don't need any custom behaviour, this util can be used to take an array of these changes and apply them to your edges.
|
|
29
|
+
* @param changes - Array of changes to apply
|
|
30
|
+
* @param edges - Array of edge to apply the changes to
|
|
31
|
+
* @returns Array of updated edges
|
|
32
|
+
* @example
|
|
33
|
+
* const onEdgesChange = useCallback(
|
|
34
|
+
(changes) => {
|
|
35
|
+
setEdges((oldEdges) => applyEdgeChanges(changes, oldEdges));
|
|
36
|
+
},
|
|
37
|
+
[setEdges],
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<ReactFlow nodes={nodes} edges={edges} onEdgesChange={onEdgesChange} />
|
|
42
|
+
);
|
|
43
|
+
*/
|
|
44
|
+
export declare function applyEdgeChanges<EdgeType extends Edge = Edge>(changes: EdgeChange<EdgeType>[], edges: EdgeType[]): EdgeType[];
|
|
45
|
+
export declare function createSelectionChange(id: string, selected: boolean): NodeSelectionChange | EdgeSelectionChange;
|
|
46
|
+
export declare function getSelectionChanges(items: Map<string, any>, selectedIds?: Set<string>, mutateItem?: boolean): NodeSelectionChange[] | EdgeSelectionChange[];
|
|
47
|
+
/**
|
|
48
|
+
* This function is used to find the changes between two sets of elements.
|
|
49
|
+
* It is used to determine which nodes or edges have been added, removed or replaced.
|
|
50
|
+
*
|
|
51
|
+
* @internal
|
|
52
|
+
* @param params.items = the next set of elements (nodes or edges)
|
|
53
|
+
* @param params.lookup = a lookup map of the current store elements
|
|
54
|
+
* @returns an array of changes
|
|
55
|
+
*/
|
|
56
|
+
export declare function getElementsDiffChanges({ items, lookup, }: {
|
|
57
|
+
items: Node[] | undefined;
|
|
58
|
+
lookup: NodeLookup<InternalNode<Node>>;
|
|
59
|
+
}): NodeChange[];
|
|
60
|
+
export declare function getElementsDiffChanges({ items, lookup, }: {
|
|
61
|
+
items: Edge[] | undefined;
|
|
62
|
+
lookup: EdgeLookup;
|
|
63
|
+
}): EdgeChange[];
|
|
64
|
+
export declare function elementToRemoveChange<T extends Node | Edge>(item: T): NodeRemoveChange | EdgeRemoveChange;
|
|
65
|
+
//# sourceMappingURL=changes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/utils/changes.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AA4GzD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC3D,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE,EAC/B,KAAK,EAAE,QAAQ,EAAE,GAChB,QAAQ,EAAE,CAEZ;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC3D,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE,EAC/B,KAAK,EAAE,QAAQ,EAAE,GAChB,QAAQ,EAAE,CAEZ;AAED,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,mBAAmB,GAAG,mBAAmB,CAM9G;AAED,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,EACvB,WAAW,GAAE,GAAG,CAAC,MAAM,CAAa,EACpC,UAAU,UAAQ,GACjB,mBAAmB,EAAE,GAAG,mBAAmB,EAAE,CAmB/C;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,MAAM,GACP,EAAE;IACD,KAAK,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;CACxC,GAAG,UAAU,EAAE,CAAC;AACjB,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,MAAM,GACP,EAAE;IACD,KAAK,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,UAAU,CAAC;CACpB,GAAG,UAAU,EAAE,CAAC;AAmCjB,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,EAAE,IAAI,EAAE,CAAC,GAAG,gBAAgB,GAAG,gBAAgB,CAKzG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type Ref, type RefAttributes } from 'react';
|
|
2
|
+
import type { Edge, Node } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Test whether an object is useable as a Node
|
|
5
|
+
* @public
|
|
6
|
+
* @remarks In TypeScript this is a type guard that will narrow the type of whatever you pass in to Node if it returns true
|
|
7
|
+
* @param element - The element to test
|
|
8
|
+
* @returns A boolean indicating whether the element is an Node
|
|
9
|
+
*/
|
|
10
|
+
export declare const isNode: <NodeType extends Node = Node>(element: unknown) => element is NodeType;
|
|
11
|
+
/**
|
|
12
|
+
* Test whether an object is useable as an Edge
|
|
13
|
+
* @public
|
|
14
|
+
* @remarks In TypeScript this is a type guard that will narrow the type of whatever you pass in to Edge if it returns true
|
|
15
|
+
* @param element - The element to test
|
|
16
|
+
* @returns A boolean indicating whether the element is an Edge
|
|
17
|
+
*/
|
|
18
|
+
export declare const isEdge: <EdgeType extends Edge = Edge>(element: unknown) => element is EdgeType;
|
|
19
|
+
export declare function fixedForwardRef<T, P = {}>(render: (props: P, ref: Ref<T>) => JSX.Element): (props: P & RefAttributes<T>) => JSX.Element;
|
|
20
|
+
//# sourceMappingURL=general.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/utils/general.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,aAAa,EAAc,MAAM,OAAO,CAAC;AAGjE,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,0CAA2C,OAAO,wBACtC,CAAC;AAEhC;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,0CAA2C,OAAO,wBACtC,CAAC;AAGhC,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE,EACvC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,GAC7C,CAAC,KAAK,EAAE,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAG9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
|
@@ -61,7 +61,7 @@ export type EdgeTextProps = HTMLAttributes<SVGElement> & EdgeLabelOptions & {
|
|
|
61
61
|
* Custom edge component props
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
|
-
export type EdgeProps<EdgeType extends Edge = Edge> = Pick<EdgeType, 'id' | 'animated' | 'data' | 'style' | 'selected' | 'source' | 'target'> & EdgePosition & EdgeLabelOptions & {
|
|
64
|
+
export type EdgeProps<EdgeType extends Edge = Edge> = Pick<EdgeType, 'id' | 'animated' | 'data' | 'style' | 'selected' | 'source' | 'target' | 'selectable' | 'deletable'> & EdgePosition & EdgeLabelOptions & {
|
|
65
65
|
sourceHandleId?: string | null;
|
|
66
66
|
targetHandleId?: string | null;
|
|
67
67
|
markerStart?: string;
|
|
@@ -1 +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,mBAAm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AE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,QAAQ,CAAC;IACvB,UAAU,EAAE,QAAQ,CAAC;IACrB,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,4BAA4B,CAAC,CAAC"}
|
|
@@ -136,7 +136,7 @@ export type GeneralHelpers<NodeType extends Node = Node, EdgeType extends Edge =
|
|
|
136
136
|
* @example
|
|
137
137
|
* updateNodeData('node-1', { label: 'A new label' });
|
|
138
138
|
*/
|
|
139
|
-
updateNodeData: (id: string, dataUpdate:
|
|
139
|
+
updateNodeData: (id: string, dataUpdate: Partial<NodeType['data']> | ((node: NodeType) => Partial<NodeType['data']>), options?: {
|
|
140
140
|
replace: boolean;
|
|
141
141
|
}) => void;
|
|
142
142
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/types/instance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC;AAE3E,MAAM,MAAM,mBAAmB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI;IAC5F,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,CAAC,EAAE,CAAC,IAAI,GAAG;QAAE,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;KAAE,CAAC,EAAE,CAAC;IACtC,KAAK,CAAC,EAAE,CAAC,IAAI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