wechen-agent-editor-v1 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -6
- package/package.json +5 -6
- package/node_modules/@types/d3-color/LICENSE +0 -21
- package/node_modules/@types/d3-color/README.md +0 -15
- package/node_modules/@types/d3-color/index.d.ts +0 -669
- package/node_modules/@types/d3-color/package.json +0 -55
- package/node_modules/@types/d3-drag/LICENSE +0 -21
- package/node_modules/@types/d3-drag/README.md +0 -15
- package/node_modules/@types/d3-drag/index.d.ts +0 -395
- package/node_modules/@types/d3-drag/package.json +0 -42
- package/node_modules/@types/d3-interpolate/LICENSE +0 -21
- package/node_modules/@types/d3-interpolate/README.md +0 -15
- package/node_modules/@types/d3-interpolate/index.d.ts +0 -387
- package/node_modules/@types/d3-interpolate/package.json +0 -47
- package/node_modules/@types/d3-selection/LICENSE +0 -21
- package/node_modules/@types/d3-selection/README.md +0 -15
- package/node_modules/@types/d3-selection/index.d.ts +0 -1173
- package/node_modules/@types/d3-selection/package.json +0 -50
- package/node_modules/@types/d3-transition/LICENSE +0 -21
- package/node_modules/@types/d3-transition/README.md +0 -15
- package/node_modules/@types/d3-transition/index.d.ts +0 -664
- package/node_modules/@types/d3-transition/package.json +0 -47
- package/node_modules/@types/d3-zoom/LICENSE +0 -21
- package/node_modules/@types/d3-zoom/README.md +0 -15
- package/node_modules/@types/d3-zoom/index.d.ts +0 -611
- package/node_modules/@types/d3-zoom/package.json +0 -48
- package/node_modules/@xyflow/react/LICENSE +0 -21
- package/node_modules/@xyflow/react/README.md +0 -135
- package/node_modules/@xyflow/react/dist/base.css +0 -504
- package/node_modules/@xyflow/react/dist/esm/additional-components/Background/Background.d.ts +0 -61
- package/node_modules/@xyflow/react/dist/esm/additional-components/Background/Background.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/Background/Patterns.d.ts +0 -15
- package/node_modules/@xyflow/react/dist/esm/additional-components/Background/Patterns.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/Background/index.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/esm/additional-components/Background/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/Background/types.d.ts +0 -59
- package/node_modules/@xyflow/react/dist/esm/additional-components/Background/types.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/ControlButton.d.ts +0 -26
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/ControlButton.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/Controls.d.ts +0 -29
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/Controls.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/Icons/FitView.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/Icons/FitView.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/Icons/Lock.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/Icons/Lock.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/Icons/Minus.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/Icons/Minus.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/Icons/Plus.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/Icons/Plus.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/Icons/Unlock.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/Icons/Unlock.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/index.d.ts +0 -4
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/types.d.ts +0 -66
- package/node_modules/@xyflow/react/dist/esm/additional-components/Controls/types.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/EdgeToolbar/EdgeToolbar.d.ts +0 -26
- package/node_modules/@xyflow/react/dist/esm/additional-components/EdgeToolbar/EdgeToolbar.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/EdgeToolbar/index.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/esm/additional-components/EdgeToolbar/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/EdgeToolbar/types.d.ts +0 -13
- package/node_modules/@xyflow/react/dist/esm/additional-components/EdgeToolbar/types.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/MiniMap/MiniMap.d.ts +0 -29
- package/node_modules/@xyflow/react/dist/esm/additional-components/MiniMap/MiniMap.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/MiniMap/MiniMapNode.d.ts +0 -5
- package/node_modules/@xyflow/react/dist/esm/additional-components/MiniMap/MiniMapNode.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/MiniMap/MiniMapNodes.d.ts +0 -6
- package/node_modules/@xyflow/react/dist/esm/additional-components/MiniMap/MiniMapNodes.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/MiniMap/index.d.ts +0 -4
- package/node_modules/@xyflow/react/dist/esm/additional-components/MiniMap/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/MiniMap/types.d.ts +0 -123
- package/node_modules/@xyflow/react/dist/esm/additional-components/MiniMap/types.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeResizer/NodeResizeControl.d.ts +0 -11
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeResizer/NodeResizeControl.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeResizer/NodeResizer.d.ts +0 -27
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeResizer/NodeResizer.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeResizer/index.d.ts +0 -4
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeResizer/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeResizer/types.d.ts +0 -97
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeResizer/types.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeToolbar/NodeToolbar.d.ts +0 -38
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeToolbar/NodeToolbar.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeToolbar/NodeToolbarPortal.d.ts +0 -5
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeToolbar/NodeToolbarPortal.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeToolbar/index.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeToolbar/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeToolbar/types.d.ts +0 -32
- package/node_modules/@xyflow/react/dist/esm/additional-components/NodeToolbar/types.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/additional-components/index.d.ts +0 -7
- package/node_modules/@xyflow/react/dist/esm/additional-components/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/A11yDescriptions/index.d.ts +0 -8
- package/node_modules/@xyflow/react/dist/esm/components/A11yDescriptions/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Attribution/index.d.ts +0 -8
- package/node_modules/@xyflow/react/dist/esm/components/Attribution/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/BatchProvider/index.d.ts +0 -17
- package/node_modules/@xyflow/react/dist/esm/components/BatchProvider/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/BatchProvider/types.d.ts +0 -7
- package/node_modules/@xyflow/react/dist/esm/components/BatchProvider/types.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/BatchProvider/useQueue.d.ts +0 -11
- package/node_modules/@xyflow/react/dist/esm/components/BatchProvider/useQueue.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/ConnectionLine/index.d.ts +0 -12
- package/node_modules/@xyflow/react/dist/esm/components/ConnectionLine/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/EdgeLabelRenderer/index.d.ts +0 -47
- package/node_modules/@xyflow/react/dist/esm/components/EdgeLabelRenderer/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/EdgeWrapper/EdgeUpdateAnchors.d.ts +0 -15
- package/node_modules/@xyflow/react/dist/esm/components/EdgeWrapper/EdgeUpdateAnchors.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/EdgeWrapper/index.d.ts +0 -6
- package/node_modules/@xyflow/react/dist/esm/components/EdgeWrapper/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/EdgeWrapper/utils.d.ts +0 -11
- package/node_modules/@xyflow/react/dist/esm/components/EdgeWrapper/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Edges/BaseEdge.d.ts +0 -30
- package/node_modules/@xyflow/react/dist/esm/components/Edges/BaseEdge.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Edges/BezierEdge.d.ts +0 -31
- package/node_modules/@xyflow/react/dist/esm/components/Edges/BezierEdge.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Edges/EdgeAnchor.d.ts +0 -17
- package/node_modules/@xyflow/react/dist/esm/components/Edges/EdgeAnchor.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Edges/EdgeText.d.ts +0 -34
- package/node_modules/@xyflow/react/dist/esm/components/Edges/EdgeText.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Edges/SimpleBezierEdge.d.ts +0 -30
- package/node_modules/@xyflow/react/dist/esm/components/Edges/SimpleBezierEdge.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Edges/SmoothStepEdge.d.ts +0 -31
- package/node_modules/@xyflow/react/dist/esm/components/Edges/SmoothStepEdge.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Edges/StepEdge.d.ts +0 -31
- package/node_modules/@xyflow/react/dist/esm/components/Edges/StepEdge.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Edges/StraightEdge.d.ts +0 -29
- package/node_modules/@xyflow/react/dist/esm/components/Edges/StraightEdge.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Edges/index.d.ts +0 -6
- package/node_modules/@xyflow/react/dist/esm/components/Edges/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Handle/index.d.ts +0 -39
- package/node_modules/@xyflow/react/dist/esm/components/Handle/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/NodeWrapper/index.d.ts +0 -5
- package/node_modules/@xyflow/react/dist/esm/components/NodeWrapper/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/NodeWrapper/useNodeObserver.d.ts +0 -14
- package/node_modules/@xyflow/react/dist/esm/components/NodeWrapper/useNodeObserver.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/NodeWrapper/utils.d.ts +0 -9
- package/node_modules/@xyflow/react/dist/esm/components/NodeWrapper/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Nodes/DefaultNode.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/esm/components/Nodes/DefaultNode.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Nodes/GroupNode.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/esm/components/Nodes/GroupNode.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Nodes/InputNode.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/esm/components/Nodes/InputNode.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Nodes/OutputNode.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/esm/components/Nodes/OutputNode.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Nodes/utils.d.ts +0 -13
- package/node_modules/@xyflow/react/dist/esm/components/Nodes/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/NodesSelection/index.d.ts +0 -13
- package/node_modules/@xyflow/react/dist/esm/components/NodesSelection/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/Panel/index.d.ts +0 -45
- package/node_modules/@xyflow/react/dist/esm/components/Panel/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/ReactFlowProvider/index.d.ts +0 -83
- package/node_modules/@xyflow/react/dist/esm/components/ReactFlowProvider/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/SelectionListener/index.d.ts +0 -7
- package/node_modules/@xyflow/react/dist/esm/components/SelectionListener/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/StoreUpdater/index.d.ts +0 -9
- package/node_modules/@xyflow/react/dist/esm/components/StoreUpdater/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/UserSelection/index.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/esm/components/UserSelection/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/components/ViewportPortal/index.d.ts +0 -30
- package/node_modules/@xyflow/react/dist/esm/components/ViewportPortal/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/container/EdgeRenderer/MarkerDefinitions.d.ts +0 -10
- package/node_modules/@xyflow/react/dist/esm/container/EdgeRenderer/MarkerDefinitions.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/container/EdgeRenderer/MarkerSymbols.d.ts +0 -9
- package/node_modules/@xyflow/react/dist/esm/container/EdgeRenderer/MarkerSymbols.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/container/EdgeRenderer/index.d.ts +0 -13
- package/node_modules/@xyflow/react/dist/esm/container/EdgeRenderer/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/container/FlowRenderer/index.d.ts +0 -14
- package/node_modules/@xyflow/react/dist/esm/container/FlowRenderer/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/container/GraphView/index.d.ts +0 -11
- package/node_modules/@xyflow/react/dist/esm/container/GraphView/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +0 -10
- package/node_modules/@xyflow/react/dist/esm/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/container/GraphView/useStylesLoadedWarning.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/esm/container/GraphView/useStylesLoadedWarning.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/container/NodeRenderer/index.d.ts +0 -10
- package/node_modules/@xyflow/react/dist/esm/container/NodeRenderer/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/container/NodeRenderer/useResizeObserver.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/esm/container/NodeRenderer/useResizeObserver.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/container/Pane/index.d.ts +0 -11
- package/node_modules/@xyflow/react/dist/esm/container/Pane/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/container/ReactFlow/Wrapper.d.ts +0 -20
- package/node_modules/@xyflow/react/dist/esm/container/ReactFlow/Wrapper.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/container/ReactFlow/index.d.ts +0 -24
- package/node_modules/@xyflow/react/dist/esm/container/ReactFlow/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/container/ReactFlow/init-values.d.ts +0 -4
- package/node_modules/@xyflow/react/dist/esm/container/ReactFlow/init-values.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/container/Viewport/index.d.ts +0 -7
- package/node_modules/@xyflow/react/dist/esm/container/Viewport/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/container/ZoomPane/index.d.ts +0 -7
- package/node_modules/@xyflow/react/dist/esm/container/ZoomPane/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/contexts/NodeIdContext.d.ts +0 -34
- package/node_modules/@xyflow/react/dist/esm/contexts/NodeIdContext.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/contexts/StoreContext.d.ts +0 -4
- package/node_modules/@xyflow/react/dist/esm/contexts/StoreContext.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useColorModeClass.d.ts +0 -9
- package/node_modules/@xyflow/react/dist/esm/hooks/useColorModeClass.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useConnection.d.ts +0 -33
- package/node_modules/@xyflow/react/dist/esm/hooks/useConnection.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useDrag.d.ts +0 -18
- package/node_modules/@xyflow/react/dist/esm/hooks/useDrag.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useEdges.d.ts +0 -21
- package/node_modules/@xyflow/react/dist/esm/hooks/useEdges.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useGlobalKeyHandler.d.ts +0 -11
- package/node_modules/@xyflow/react/dist/esm/hooks/useGlobalKeyHandler.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useHandleConnections.d.ts +0 -23
- package/node_modules/@xyflow/react/dist/esm/hooks/useHandleConnections.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useInternalNode.d.ts +0 -30
- package/node_modules/@xyflow/react/dist/esm/hooks/useInternalNode.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useIsomorphicLayoutEffect.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/esm/hooks/useIsomorphicLayoutEffect.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useKeyPress.d.ts +0 -53
- package/node_modules/@xyflow/react/dist/esm/hooks/useKeyPress.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useMoveSelectedNodes.d.ts +0 -12
- package/node_modules/@xyflow/react/dist/esm/hooks/useMoveSelectedNodes.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useNodeConnections.d.ts +0 -38
- package/node_modules/@xyflow/react/dist/esm/hooks/useNodeConnections.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useNodes.d.ts +0 -22
- package/node_modules/@xyflow/react/dist/esm/hooks/useNodes.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useNodesData.d.ts +0 -27
- package/node_modules/@xyflow/react/dist/esm/hooks/useNodesData.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useNodesEdgesState.d.ts +0 -105
- package/node_modules/@xyflow/react/dist/esm/hooks/useNodesEdgesState.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useNodesInitialized.d.ts +0 -39
- package/node_modules/@xyflow/react/dist/esm/hooks/useNodesInitialized.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useOnEdgesChangeMiddleware.d.ts +0 -10
- package/node_modules/@xyflow/react/dist/esm/hooks/useOnEdgesChangeMiddleware.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useOnInitHandler.d.ts +0 -8
- package/node_modules/@xyflow/react/dist/esm/hooks/useOnInitHandler.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useOnNodesChangeMiddleware.d.ts +0 -10
- package/node_modules/@xyflow/react/dist/esm/hooks/useOnNodesChangeMiddleware.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useOnSelectionChange.d.ts +0 -43
- package/node_modules/@xyflow/react/dist/esm/hooks/useOnSelectionChange.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useOnViewportChange.d.ts +0 -33
- package/node_modules/@xyflow/react/dist/esm/hooks/useOnViewportChange.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useReactFlow.d.ts +0 -30
- package/node_modules/@xyflow/react/dist/esm/hooks/useReactFlow.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useResizeHandler.d.ts +0 -8
- package/node_modules/@xyflow/react/dist/esm/hooks/useResizeHandler.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useStore.d.ts +0 -45
- package/node_modules/@xyflow/react/dist/esm/hooks/useStore.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useUpdateNodeInternals.d.ts +0 -48
- package/node_modules/@xyflow/react/dist/esm/hooks/useUpdateNodeInternals.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useViewport.d.ts +0 -32
- package/node_modules/@xyflow/react/dist/esm/hooks/useViewport.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useViewportHelper.d.ts +0 -10
- package/node_modules/@xyflow/react/dist/esm/hooks/useViewportHelper.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useViewportSync.d.ts +0 -9
- package/node_modules/@xyflow/react/dist/esm/hooks/useViewportSync.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useVisibleEdgeIds.d.ts +0 -9
- package/node_modules/@xyflow/react/dist/esm/hooks/useVisibleEdgeIds.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/hooks/useVisibleNodeIds.d.ts +0 -9
- package/node_modules/@xyflow/react/dist/esm/hooks/useVisibleNodeIds.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/index.d.ts +0 -41
- package/node_modules/@xyflow/react/dist/esm/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/index.js +0 -4987
- package/node_modules/@xyflow/react/dist/esm/index.mjs +0 -4987
- package/node_modules/@xyflow/react/dist/esm/store/index.d.ts +0 -19
- package/node_modules/@xyflow/react/dist/esm/store/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/store/initialState.d.ts +0 -19
- package/node_modules/@xyflow/react/dist/esm/store/initialState.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/styles/utils.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/esm/styles/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/types/component-props.d.ts +0 -649
- package/node_modules/@xyflow/react/dist/esm/types/component-props.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/types/edges.d.ts +0 -217
- package/node_modules/@xyflow/react/dist/esm/types/edges.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/types/general.d.ts +0 -179
- package/node_modules/@xyflow/react/dist/esm/types/general.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/types/index.d.ts +0 -7
- package/node_modules/@xyflow/react/dist/esm/types/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/types/instance.d.ts +0 -242
- package/node_modules/@xyflow/react/dist/esm/types/instance.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/types/nodes.d.ts +0 -101
- package/node_modules/@xyflow/react/dist/esm/types/nodes.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/types/store.d.ts +0 -115
- package/node_modules/@xyflow/react/dist/esm/types/store.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/utils/changes.d.ts +0 -87
- package/node_modules/@xyflow/react/dist/esm/utils/changes.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/utils/general.d.ts +0 -48
- package/node_modules/@xyflow/react/dist/esm/utils/general.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/esm/utils/index.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/esm/utils/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/style.css +0 -624
- package/node_modules/@xyflow/react/dist/umd/additional-components/Background/Background.d.ts +0 -61
- package/node_modules/@xyflow/react/dist/umd/additional-components/Background/Background.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/Background/Patterns.d.ts +0 -15
- package/node_modules/@xyflow/react/dist/umd/additional-components/Background/Patterns.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/Background/index.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/umd/additional-components/Background/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/Background/types.d.ts +0 -59
- package/node_modules/@xyflow/react/dist/umd/additional-components/Background/types.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/ControlButton.d.ts +0 -26
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/ControlButton.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/Controls.d.ts +0 -29
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/Controls.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/FitView.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/FitView.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Lock.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Lock.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Minus.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Minus.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Plus.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Plus.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Unlock.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Unlock.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/index.d.ts +0 -4
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/types.d.ts +0 -66
- package/node_modules/@xyflow/react/dist/umd/additional-components/Controls/types.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/EdgeToolbar.d.ts +0 -26
- package/node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/EdgeToolbar.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/index.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/types.d.ts +0 -13
- package/node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/types.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMap.d.ts +0 -29
- package/node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMap.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMapNode.d.ts +0 -5
- package/node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMapNode.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMapNodes.d.ts +0 -6
- package/node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMapNodes.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/index.d.ts +0 -4
- package/node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/types.d.ts +0 -123
- package/node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/types.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/NodeResizeControl.d.ts +0 -11
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/NodeResizeControl.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/NodeResizer.d.ts +0 -27
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/NodeResizer.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/index.d.ts +0 -4
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/types.d.ts +0 -97
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/types.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/NodeToolbar.d.ts +0 -38
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/NodeToolbar.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/NodeToolbarPortal.d.ts +0 -5
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/NodeToolbarPortal.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/index.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/types.d.ts +0 -32
- package/node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/types.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/additional-components/index.d.ts +0 -7
- package/node_modules/@xyflow/react/dist/umd/additional-components/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/A11yDescriptions/index.d.ts +0 -8
- package/node_modules/@xyflow/react/dist/umd/components/A11yDescriptions/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Attribution/index.d.ts +0 -8
- package/node_modules/@xyflow/react/dist/umd/components/Attribution/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/BatchProvider/index.d.ts +0 -17
- package/node_modules/@xyflow/react/dist/umd/components/BatchProvider/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/BatchProvider/types.d.ts +0 -7
- package/node_modules/@xyflow/react/dist/umd/components/BatchProvider/types.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/BatchProvider/useQueue.d.ts +0 -11
- package/node_modules/@xyflow/react/dist/umd/components/BatchProvider/useQueue.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/ConnectionLine/index.d.ts +0 -12
- package/node_modules/@xyflow/react/dist/umd/components/ConnectionLine/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/EdgeLabelRenderer/index.d.ts +0 -47
- package/node_modules/@xyflow/react/dist/umd/components/EdgeLabelRenderer/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/EdgeWrapper/EdgeUpdateAnchors.d.ts +0 -15
- package/node_modules/@xyflow/react/dist/umd/components/EdgeWrapper/EdgeUpdateAnchors.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/EdgeWrapper/index.d.ts +0 -6
- package/node_modules/@xyflow/react/dist/umd/components/EdgeWrapper/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/EdgeWrapper/utils.d.ts +0 -11
- package/node_modules/@xyflow/react/dist/umd/components/EdgeWrapper/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Edges/BaseEdge.d.ts +0 -30
- package/node_modules/@xyflow/react/dist/umd/components/Edges/BaseEdge.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Edges/BezierEdge.d.ts +0 -31
- package/node_modules/@xyflow/react/dist/umd/components/Edges/BezierEdge.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Edges/EdgeAnchor.d.ts +0 -17
- package/node_modules/@xyflow/react/dist/umd/components/Edges/EdgeAnchor.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Edges/EdgeText.d.ts +0 -34
- package/node_modules/@xyflow/react/dist/umd/components/Edges/EdgeText.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Edges/SimpleBezierEdge.d.ts +0 -30
- package/node_modules/@xyflow/react/dist/umd/components/Edges/SimpleBezierEdge.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Edges/SmoothStepEdge.d.ts +0 -31
- package/node_modules/@xyflow/react/dist/umd/components/Edges/SmoothStepEdge.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Edges/StepEdge.d.ts +0 -31
- package/node_modules/@xyflow/react/dist/umd/components/Edges/StepEdge.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Edges/StraightEdge.d.ts +0 -29
- package/node_modules/@xyflow/react/dist/umd/components/Edges/StraightEdge.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Edges/index.d.ts +0 -6
- package/node_modules/@xyflow/react/dist/umd/components/Edges/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Handle/index.d.ts +0 -39
- package/node_modules/@xyflow/react/dist/umd/components/Handle/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/NodeWrapper/index.d.ts +0 -5
- package/node_modules/@xyflow/react/dist/umd/components/NodeWrapper/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/NodeWrapper/useNodeObserver.d.ts +0 -14
- package/node_modules/@xyflow/react/dist/umd/components/NodeWrapper/useNodeObserver.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/NodeWrapper/utils.d.ts +0 -9
- package/node_modules/@xyflow/react/dist/umd/components/NodeWrapper/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Nodes/DefaultNode.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/umd/components/Nodes/DefaultNode.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Nodes/GroupNode.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/umd/components/Nodes/GroupNode.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Nodes/InputNode.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/umd/components/Nodes/InputNode.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Nodes/OutputNode.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/umd/components/Nodes/OutputNode.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Nodes/utils.d.ts +0 -13
- package/node_modules/@xyflow/react/dist/umd/components/Nodes/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/NodesSelection/index.d.ts +0 -13
- package/node_modules/@xyflow/react/dist/umd/components/NodesSelection/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/Panel/index.d.ts +0 -45
- package/node_modules/@xyflow/react/dist/umd/components/Panel/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/ReactFlowProvider/index.d.ts +0 -83
- package/node_modules/@xyflow/react/dist/umd/components/ReactFlowProvider/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/SelectionListener/index.d.ts +0 -7
- package/node_modules/@xyflow/react/dist/umd/components/SelectionListener/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/StoreUpdater/index.d.ts +0 -9
- package/node_modules/@xyflow/react/dist/umd/components/StoreUpdater/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/UserSelection/index.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/umd/components/UserSelection/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/components/ViewportPortal/index.d.ts +0 -30
- package/node_modules/@xyflow/react/dist/umd/components/ViewportPortal/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/container/EdgeRenderer/MarkerDefinitions.d.ts +0 -10
- package/node_modules/@xyflow/react/dist/umd/container/EdgeRenderer/MarkerDefinitions.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/container/EdgeRenderer/MarkerSymbols.d.ts +0 -9
- package/node_modules/@xyflow/react/dist/umd/container/EdgeRenderer/MarkerSymbols.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/container/EdgeRenderer/index.d.ts +0 -13
- package/node_modules/@xyflow/react/dist/umd/container/EdgeRenderer/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/container/FlowRenderer/index.d.ts +0 -14
- package/node_modules/@xyflow/react/dist/umd/container/FlowRenderer/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/container/GraphView/index.d.ts +0 -11
- package/node_modules/@xyflow/react/dist/umd/container/GraphView/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +0 -10
- package/node_modules/@xyflow/react/dist/umd/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/container/GraphView/useStylesLoadedWarning.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/umd/container/GraphView/useStylesLoadedWarning.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/container/NodeRenderer/index.d.ts +0 -10
- package/node_modules/@xyflow/react/dist/umd/container/NodeRenderer/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/container/NodeRenderer/useResizeObserver.d.ts +0 -2
- package/node_modules/@xyflow/react/dist/umd/container/NodeRenderer/useResizeObserver.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/container/Pane/index.d.ts +0 -11
- package/node_modules/@xyflow/react/dist/umd/container/Pane/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/container/ReactFlow/Wrapper.d.ts +0 -20
- package/node_modules/@xyflow/react/dist/umd/container/ReactFlow/Wrapper.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/container/ReactFlow/index.d.ts +0 -24
- package/node_modules/@xyflow/react/dist/umd/container/ReactFlow/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/container/ReactFlow/init-values.d.ts +0 -4
- package/node_modules/@xyflow/react/dist/umd/container/ReactFlow/init-values.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/container/Viewport/index.d.ts +0 -7
- package/node_modules/@xyflow/react/dist/umd/container/Viewport/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/container/ZoomPane/index.d.ts +0 -7
- package/node_modules/@xyflow/react/dist/umd/container/ZoomPane/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/contexts/NodeIdContext.d.ts +0 -34
- package/node_modules/@xyflow/react/dist/umd/contexts/NodeIdContext.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/contexts/StoreContext.d.ts +0 -4
- package/node_modules/@xyflow/react/dist/umd/contexts/StoreContext.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useColorModeClass.d.ts +0 -9
- package/node_modules/@xyflow/react/dist/umd/hooks/useColorModeClass.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useConnection.d.ts +0 -33
- package/node_modules/@xyflow/react/dist/umd/hooks/useConnection.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useDrag.d.ts +0 -18
- package/node_modules/@xyflow/react/dist/umd/hooks/useDrag.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useEdges.d.ts +0 -21
- package/node_modules/@xyflow/react/dist/umd/hooks/useEdges.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useGlobalKeyHandler.d.ts +0 -11
- package/node_modules/@xyflow/react/dist/umd/hooks/useGlobalKeyHandler.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useHandleConnections.d.ts +0 -23
- package/node_modules/@xyflow/react/dist/umd/hooks/useHandleConnections.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useInternalNode.d.ts +0 -30
- package/node_modules/@xyflow/react/dist/umd/hooks/useInternalNode.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useIsomorphicLayoutEffect.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/umd/hooks/useIsomorphicLayoutEffect.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useKeyPress.d.ts +0 -53
- package/node_modules/@xyflow/react/dist/umd/hooks/useKeyPress.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useMoveSelectedNodes.d.ts +0 -12
- package/node_modules/@xyflow/react/dist/umd/hooks/useMoveSelectedNodes.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useNodeConnections.d.ts +0 -38
- package/node_modules/@xyflow/react/dist/umd/hooks/useNodeConnections.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useNodes.d.ts +0 -22
- package/node_modules/@xyflow/react/dist/umd/hooks/useNodes.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useNodesData.d.ts +0 -27
- package/node_modules/@xyflow/react/dist/umd/hooks/useNodesData.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useNodesEdgesState.d.ts +0 -105
- package/node_modules/@xyflow/react/dist/umd/hooks/useNodesEdgesState.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useNodesInitialized.d.ts +0 -39
- package/node_modules/@xyflow/react/dist/umd/hooks/useNodesInitialized.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useOnEdgesChangeMiddleware.d.ts +0 -10
- package/node_modules/@xyflow/react/dist/umd/hooks/useOnEdgesChangeMiddleware.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useOnInitHandler.d.ts +0 -8
- package/node_modules/@xyflow/react/dist/umd/hooks/useOnInitHandler.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useOnNodesChangeMiddleware.d.ts +0 -10
- package/node_modules/@xyflow/react/dist/umd/hooks/useOnNodesChangeMiddleware.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useOnSelectionChange.d.ts +0 -43
- package/node_modules/@xyflow/react/dist/umd/hooks/useOnSelectionChange.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useOnViewportChange.d.ts +0 -33
- package/node_modules/@xyflow/react/dist/umd/hooks/useOnViewportChange.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useReactFlow.d.ts +0 -30
- package/node_modules/@xyflow/react/dist/umd/hooks/useReactFlow.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useResizeHandler.d.ts +0 -8
- package/node_modules/@xyflow/react/dist/umd/hooks/useResizeHandler.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useStore.d.ts +0 -45
- package/node_modules/@xyflow/react/dist/umd/hooks/useStore.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useUpdateNodeInternals.d.ts +0 -48
- package/node_modules/@xyflow/react/dist/umd/hooks/useUpdateNodeInternals.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useViewport.d.ts +0 -32
- package/node_modules/@xyflow/react/dist/umd/hooks/useViewport.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useViewportHelper.d.ts +0 -10
- package/node_modules/@xyflow/react/dist/umd/hooks/useViewportHelper.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useViewportSync.d.ts +0 -9
- package/node_modules/@xyflow/react/dist/umd/hooks/useViewportSync.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useVisibleEdgeIds.d.ts +0 -9
- package/node_modules/@xyflow/react/dist/umd/hooks/useVisibleEdgeIds.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/hooks/useVisibleNodeIds.d.ts +0 -9
- package/node_modules/@xyflow/react/dist/umd/hooks/useVisibleNodeIds.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/index.d.ts +0 -41
- package/node_modules/@xyflow/react/dist/umd/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/index.js +0 -10
- package/node_modules/@xyflow/react/dist/umd/store/index.d.ts +0 -19
- package/node_modules/@xyflow/react/dist/umd/store/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/store/initialState.d.ts +0 -19
- package/node_modules/@xyflow/react/dist/umd/store/initialState.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/styles/utils.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/umd/styles/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/types/component-props.d.ts +0 -649
- package/node_modules/@xyflow/react/dist/umd/types/component-props.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/types/edges.d.ts +0 -217
- package/node_modules/@xyflow/react/dist/umd/types/edges.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/types/general.d.ts +0 -179
- package/node_modules/@xyflow/react/dist/umd/types/general.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/types/index.d.ts +0 -7
- package/node_modules/@xyflow/react/dist/umd/types/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/types/instance.d.ts +0 -242
- package/node_modules/@xyflow/react/dist/umd/types/instance.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/types/nodes.d.ts +0 -101
- package/node_modules/@xyflow/react/dist/umd/types/nodes.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/types/store.d.ts +0 -115
- package/node_modules/@xyflow/react/dist/umd/types/store.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/utils/changes.d.ts +0 -87
- package/node_modules/@xyflow/react/dist/umd/utils/changes.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/utils/general.d.ts +0 -48
- package/node_modules/@xyflow/react/dist/umd/utils/general.d.ts.map +0 -1
- package/node_modules/@xyflow/react/dist/umd/utils/index.d.ts +0 -3
- package/node_modules/@xyflow/react/dist/umd/utils/index.d.ts.map +0 -1
- package/node_modules/@xyflow/react/package.json +0 -98
- package/node_modules/@xyflow/system/LICENSE +0 -21
- package/node_modules/@xyflow/system/README.md +0 -62
- package/node_modules/@xyflow/system/dist/esm/constants.d.ts +0 -43
- package/node_modules/@xyflow/system/dist/esm/constants.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/index.d.ts +0 -9
- package/node_modules/@xyflow/system/dist/esm/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/index.js +0 -3514
- package/node_modules/@xyflow/system/dist/esm/index.mjs +0 -3514
- package/node_modules/@xyflow/system/dist/esm/types/changes.d.ts +0 -64
- package/node_modules/@xyflow/system/dist/esm/types/changes.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/types/edges.d.ts +0 -140
- package/node_modules/@xyflow/system/dist/esm/types/edges.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/types/general.d.ts +0 -296
- package/node_modules/@xyflow/system/dist/esm/types/general.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/types/handles.d.ts +0 -58
- package/node_modules/@xyflow/system/dist/esm/types/handles.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/types/index.d.ts +0 -8
- package/node_modules/@xyflow/system/dist/esm/types/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/types/nodes.d.ts +0 -157
- package/node_modules/@xyflow/system/dist/esm/types/nodes.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/types/panzoom.d.ts +0 -55
- package/node_modules/@xyflow/system/dist/esm/types/panzoom.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/types/utils.d.ts +0 -61
- package/node_modules/@xyflow/system/dist/esm/types/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/connections.d.ts +0 -13
- package/node_modules/@xyflow/system/dist/esm/utils/connections.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/dom.d.ts +0 -21
- package/node_modules/@xyflow/system/dist/esm/utils/dom.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/edge-toolbar.d.ts +0 -2
- package/node_modules/@xyflow/system/dist/esm/utils/edge-toolbar.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/edges/bezier-edge.d.ts +0 -77
- package/node_modules/@xyflow/system/dist/esm/utils/edges/bezier-edge.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/edges/general.d.ts +0 -91
- package/node_modules/@xyflow/system/dist/esm/utils/edges/general.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/edges/index.d.ts +0 -6
- package/node_modules/@xyflow/system/dist/esm/utils/edges/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/edges/positions.d.ts +0 -17
- package/node_modules/@xyflow/system/dist/esm/utils/edges/positions.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/edges/smoothstep-edge.d.ts +0 -66
- package/node_modules/@xyflow/system/dist/esm/utils/edges/smoothstep-edge.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/edges/straight-edge.d.ts +0 -41
- package/node_modules/@xyflow/system/dist/esm/utils/edges/straight-edge.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/general.d.ts +0 -85
- package/node_modules/@xyflow/system/dist/esm/utils/general.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/graph.d.ts +0 -191
- package/node_modules/@xyflow/system/dist/esm/utils/graph.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/index.d.ts +0 -12
- package/node_modules/@xyflow/system/dist/esm/utils/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/marker.d.ts +0 -9
- package/node_modules/@xyflow/system/dist/esm/utils/marker.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/node-toolbar.d.ts +0 -3
- package/node_modules/@xyflow/system/dist/esm/utils/node-toolbar.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/shallow-node-data.d.ts +0 -5
- package/node_modules/@xyflow/system/dist/esm/utils/shallow-node-data.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/store.d.ts +0 -34
- package/node_modules/@xyflow/system/dist/esm/utils/store.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/utils/types.d.ts +0 -8
- package/node_modules/@xyflow/system/dist/esm/utils/types.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xydrag/XYDrag.d.ts +0 -55
- package/node_modules/@xyflow/system/dist/esm/xydrag/XYDrag.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xydrag/index.d.ts +0 -2
- package/node_modules/@xyflow/system/dist/esm/xydrag/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xydrag/utils.d.ts +0 -24
- package/node_modules/@xyflow/system/dist/esm/xydrag/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xyhandle/XYHandle.d.ts +0 -3
- package/node_modules/@xyflow/system/dist/esm/xyhandle/XYHandle.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xyhandle/index.d.ts +0 -2
- package/node_modules/@xyflow/system/dist/esm/xyhandle/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xyhandle/types.d.ts +0 -50
- package/node_modules/@xyflow/system/dist/esm/xyhandle/types.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xyhandle/utils.d.ts +0 -10
- package/node_modules/@xyflow/system/dist/esm/xyhandle/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xyminimap/index.d.ts +0 -28
- package/node_modules/@xyflow/system/dist/esm/xyminimap/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xypanzoom/XYPanZoom.d.ts +0 -12
- package/node_modules/@xyflow/system/dist/esm/xypanzoom/XYPanZoom.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xypanzoom/eventhandler.d.ts +0 -46
- package/node_modules/@xyflow/system/dist/esm/xypanzoom/eventhandler.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xypanzoom/filter.d.ts +0 -15
- package/node_modules/@xyflow/system/dist/esm/xypanzoom/filter.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xypanzoom/index.d.ts +0 -2
- package/node_modules/@xyflow/system/dist/esm/xypanzoom/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xypanzoom/utils.d.ts +0 -9
- package/node_modules/@xyflow/system/dist/esm/xypanzoom/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xyresizer/XYResizer.d.ts +0 -49
- package/node_modules/@xyflow/system/dist/esm/xyresizer/XYResizer.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xyresizer/index.d.ts +0 -3
- package/node_modules/@xyflow/system/dist/esm/xyresizer/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xyresizer/types.d.ts +0 -59
- package/node_modules/@xyflow/system/dist/esm/xyresizer/types.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/esm/xyresizer/utils.d.ts +0 -76
- package/node_modules/@xyflow/system/dist/esm/xyresizer/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/constants.d.ts +0 -43
- package/node_modules/@xyflow/system/dist/umd/constants.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/index.d.ts +0 -9
- package/node_modules/@xyflow/system/dist/umd/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/index.js +0 -1
- package/node_modules/@xyflow/system/dist/umd/types/changes.d.ts +0 -64
- package/node_modules/@xyflow/system/dist/umd/types/changes.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/types/edges.d.ts +0 -140
- package/node_modules/@xyflow/system/dist/umd/types/edges.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/types/general.d.ts +0 -296
- package/node_modules/@xyflow/system/dist/umd/types/general.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/types/handles.d.ts +0 -58
- package/node_modules/@xyflow/system/dist/umd/types/handles.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/types/index.d.ts +0 -8
- package/node_modules/@xyflow/system/dist/umd/types/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/types/nodes.d.ts +0 -157
- package/node_modules/@xyflow/system/dist/umd/types/nodes.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/types/panzoom.d.ts +0 -55
- package/node_modules/@xyflow/system/dist/umd/types/panzoom.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/types/utils.d.ts +0 -61
- package/node_modules/@xyflow/system/dist/umd/types/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/connections.d.ts +0 -13
- package/node_modules/@xyflow/system/dist/umd/utils/connections.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/dom.d.ts +0 -21
- package/node_modules/@xyflow/system/dist/umd/utils/dom.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/edge-toolbar.d.ts +0 -2
- package/node_modules/@xyflow/system/dist/umd/utils/edge-toolbar.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/edges/bezier-edge.d.ts +0 -77
- package/node_modules/@xyflow/system/dist/umd/utils/edges/bezier-edge.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/edges/general.d.ts +0 -91
- package/node_modules/@xyflow/system/dist/umd/utils/edges/general.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/edges/index.d.ts +0 -6
- package/node_modules/@xyflow/system/dist/umd/utils/edges/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/edges/positions.d.ts +0 -17
- package/node_modules/@xyflow/system/dist/umd/utils/edges/positions.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/edges/smoothstep-edge.d.ts +0 -66
- package/node_modules/@xyflow/system/dist/umd/utils/edges/smoothstep-edge.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/edges/straight-edge.d.ts +0 -41
- package/node_modules/@xyflow/system/dist/umd/utils/edges/straight-edge.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/general.d.ts +0 -85
- package/node_modules/@xyflow/system/dist/umd/utils/general.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/graph.d.ts +0 -191
- package/node_modules/@xyflow/system/dist/umd/utils/graph.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/index.d.ts +0 -12
- package/node_modules/@xyflow/system/dist/umd/utils/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/marker.d.ts +0 -9
- package/node_modules/@xyflow/system/dist/umd/utils/marker.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/node-toolbar.d.ts +0 -3
- package/node_modules/@xyflow/system/dist/umd/utils/node-toolbar.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/shallow-node-data.d.ts +0 -5
- package/node_modules/@xyflow/system/dist/umd/utils/shallow-node-data.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/store.d.ts +0 -34
- package/node_modules/@xyflow/system/dist/umd/utils/store.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/utils/types.d.ts +0 -8
- package/node_modules/@xyflow/system/dist/umd/utils/types.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xydrag/XYDrag.d.ts +0 -55
- package/node_modules/@xyflow/system/dist/umd/xydrag/XYDrag.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xydrag/index.d.ts +0 -2
- package/node_modules/@xyflow/system/dist/umd/xydrag/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xydrag/utils.d.ts +0 -24
- package/node_modules/@xyflow/system/dist/umd/xydrag/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xyhandle/XYHandle.d.ts +0 -3
- package/node_modules/@xyflow/system/dist/umd/xyhandle/XYHandle.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xyhandle/index.d.ts +0 -2
- package/node_modules/@xyflow/system/dist/umd/xyhandle/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xyhandle/types.d.ts +0 -50
- package/node_modules/@xyflow/system/dist/umd/xyhandle/types.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xyhandle/utils.d.ts +0 -10
- package/node_modules/@xyflow/system/dist/umd/xyhandle/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xyminimap/index.d.ts +0 -28
- package/node_modules/@xyflow/system/dist/umd/xyminimap/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xypanzoom/XYPanZoom.d.ts +0 -12
- package/node_modules/@xyflow/system/dist/umd/xypanzoom/XYPanZoom.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xypanzoom/eventhandler.d.ts +0 -46
- package/node_modules/@xyflow/system/dist/umd/xypanzoom/eventhandler.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xypanzoom/filter.d.ts +0 -15
- package/node_modules/@xyflow/system/dist/umd/xypanzoom/filter.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xypanzoom/index.d.ts +0 -2
- package/node_modules/@xyflow/system/dist/umd/xypanzoom/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xypanzoom/utils.d.ts +0 -9
- package/node_modules/@xyflow/system/dist/umd/xypanzoom/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xyresizer/XYResizer.d.ts +0 -49
- package/node_modules/@xyflow/system/dist/umd/xyresizer/XYResizer.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xyresizer/index.d.ts +0 -3
- package/node_modules/@xyflow/system/dist/umd/xyresizer/index.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xyresizer/types.d.ts +0 -59
- package/node_modules/@xyflow/system/dist/umd/xyresizer/types.d.ts.map +0 -1
- package/node_modules/@xyflow/system/dist/umd/xyresizer/utils.d.ts +0 -76
- package/node_modules/@xyflow/system/dist/umd/xyresizer/utils.d.ts.map +0 -1
- package/node_modules/@xyflow/system/package.json +0 -79
- package/node_modules/classcat/LICENSE.md +0 -7
- package/node_modules/classcat/README.md +0 -88
- package/node_modules/classcat/index.cjs +0 -19
- package/node_modules/classcat/index.d.ts +0 -15
- package/node_modules/classcat/index.js +0 -19
- package/node_modules/classcat/package.json +0 -38
- package/node_modules/d3-color/LICENSE +0 -13
- package/node_modules/d3-color/README.md +0 -203
- package/node_modules/d3-color/dist/d3-color.js +0 -606
- package/node_modules/d3-color/dist/d3-color.min.js +0 -2
- package/node_modules/d3-color/package.json +0 -54
- package/node_modules/d3-color/src/color.js +0 -396
- package/node_modules/d3-color/src/cubehelix.js +0 -61
- package/node_modules/d3-color/src/define.js +0 -10
- package/node_modules/d3-color/src/index.js +0 -3
- package/node_modules/d3-color/src/lab.js +0 -123
- package/node_modules/d3-color/src/math.js +0 -2
- package/node_modules/d3-dispatch/LICENSE +0 -13
- package/node_modules/d3-dispatch/README.md +0 -94
- package/node_modules/d3-dispatch/dist/d3-dispatch.js +0 -95
- package/node_modules/d3-dispatch/dist/d3-dispatch.min.js +0 -2
- package/node_modules/d3-dispatch/package.json +0 -50
- package/node_modules/d3-dispatch/src/dispatch.js +0 -84
- package/node_modules/d3-dispatch/src/index.js +0 -1
- package/node_modules/d3-drag/LICENSE +0 -13
- package/node_modules/d3-drag/README.md +0 -248
- package/node_modules/d3-drag/dist/d3-drag.js +0 -273
- package/node_modules/d3-drag/dist/d3-drag.min.js +0 -2
- package/node_modules/d3-drag/package.json +0 -54
- package/node_modules/d3-drag/src/constant.js +0 -1
- package/node_modules/d3-drag/src/drag.js +0 -194
- package/node_modules/d3-drag/src/event.js +0 -28
- package/node_modules/d3-drag/src/index.js +0 -2
- package/node_modules/d3-drag/src/nodrag.js +0 -28
- package/node_modules/d3-drag/src/noevent.js +0 -13
- package/node_modules/d3-ease/LICENSE +0 -28
- package/node_modules/d3-ease/README.md +0 -253
- package/node_modules/d3-ease/dist/d3-ease.js +0 -262
- package/node_modules/d3-ease/dist/d3-ease.min.js +0 -2
- package/node_modules/d3-ease/package.json +0 -51
- package/node_modules/d3-ease/src/back.js +0 -37
- package/node_modules/d3-ease/src/bounce.js +0 -22
- package/node_modules/d3-ease/src/circle.js +0 -11
- package/node_modules/d3-ease/src/cubic.js +0 -11
- package/node_modules/d3-ease/src/elastic.js +0 -46
- package/node_modules/d3-ease/src/exp.js +0 -13
- package/node_modules/d3-ease/src/index.js +0 -66
- package/node_modules/d3-ease/src/linear.js +0 -1
- package/node_modules/d3-ease/src/math.js +0 -4
- package/node_modules/d3-ease/src/poly.js +0 -37
- package/node_modules/d3-ease/src/quad.js +0 -11
- package/node_modules/d3-ease/src/sin.js +0 -14
- package/node_modules/d3-interpolate/LICENSE +0 -13
- package/node_modules/d3-interpolate/README.md +0 -268
- package/node_modules/d3-interpolate/dist/d3-interpolate.js +0 -590
- package/node_modules/d3-interpolate/dist/d3-interpolate.min.js +0 -2
- package/node_modules/d3-interpolate/package.json +0 -53
- package/node_modules/d3-interpolate/src/array.js +0 -22
- package/node_modules/d3-interpolate/src/basis.js +0 -19
- package/node_modules/d3-interpolate/src/basisClosed.js +0 -13
- package/node_modules/d3-interpolate/src/color.js +0 -29
- package/node_modules/d3-interpolate/src/constant.js +0 -1
- package/node_modules/d3-interpolate/src/cubehelix.js +0 -29
- package/node_modules/d3-interpolate/src/date.js +0 -6
- package/node_modules/d3-interpolate/src/discrete.js +0 -6
- package/node_modules/d3-interpolate/src/hcl.js +0 -21
- package/node_modules/d3-interpolate/src/hsl.js +0 -21
- package/node_modules/d3-interpolate/src/hue.js +0 -9
- package/node_modules/d3-interpolate/src/index.js +0 -21
- package/node_modules/d3-interpolate/src/lab.js +0 -16
- package/node_modules/d3-interpolate/src/number.js +0 -5
- package/node_modules/d3-interpolate/src/numberArray.js +0 -14
- package/node_modules/d3-interpolate/src/object.js +0 -23
- package/node_modules/d3-interpolate/src/piecewise.js +0 -11
- package/node_modules/d3-interpolate/src/quantize.js +0 -5
- package/node_modules/d3-interpolate/src/rgb.js +0 -55
- package/node_modules/d3-interpolate/src/round.js +0 -5
- package/node_modules/d3-interpolate/src/string.js +0 -64
- package/node_modules/d3-interpolate/src/transform/decompose.js +0 -26
- package/node_modules/d3-interpolate/src/transform/index.js +0 -63
- package/node_modules/d3-interpolate/src/transform/parse.js +0 -18
- package/node_modules/d3-interpolate/src/value.js +0 -22
- package/node_modules/d3-interpolate/src/zoom.js +0 -71
- package/node_modules/d3-selection/LICENSE +0 -13
- package/node_modules/d3-selection/README.md +0 -863
- package/node_modules/d3-selection/dist/d3-selection.js +0 -1022
- package/node_modules/d3-selection/dist/d3-selection.min.js +0 -2
- package/node_modules/d3-selection/package.json +0 -51
- package/node_modules/d3-selection/src/array.js +0 -9
- package/node_modules/d3-selection/src/constant.js +0 -5
- package/node_modules/d3-selection/src/create.js +0 -6
- package/node_modules/d3-selection/src/creator.js +0 -25
- package/node_modules/d3-selection/src/identity.js +0 -3
- package/node_modules/d3-selection/src/index.js +0 -15
- package/node_modules/d3-selection/src/local.js +0 -27
- package/node_modules/d3-selection/src/matcher.js +0 -12
- package/node_modules/d3-selection/src/namespace.js +0 -7
- package/node_modules/d3-selection/src/namespaces.js +0 -9
- package/node_modules/d3-selection/src/pointer.js +0 -20
- package/node_modules/d3-selection/src/pointers.js +0 -11
- package/node_modules/d3-selection/src/select.js +0 -7
- package/node_modules/d3-selection/src/selectAll.js +0 -8
- package/node_modules/d3-selection/src/selection/append.js +0 -8
- package/node_modules/d3-selection/src/selection/attr.js +0 -57
- package/node_modules/d3-selection/src/selection/call.js +0 -6
- package/node_modules/d3-selection/src/selection/classed.js +0 -75
- package/node_modules/d3-selection/src/selection/clone.js +0 -13
- package/node_modules/d3-selection/src/selection/data.js +0 -128
- package/node_modules/d3-selection/src/selection/datum.js +0 -5
- package/node_modules/d3-selection/src/selection/dispatch.js +0 -34
- package/node_modules/d3-selection/src/selection/each.js +0 -10
- package/node_modules/d3-selection/src/selection/empty.js +0 -3
- package/node_modules/d3-selection/src/selection/enter.js +0 -22
- package/node_modules/d3-selection/src/selection/exit.js +0 -6
- package/node_modules/d3-selection/src/selection/filter.js +0 -16
- package/node_modules/d3-selection/src/selection/html.js +0 -25
- package/node_modules/d3-selection/src/selection/index.js +0 -90
- package/node_modules/d3-selection/src/selection/insert.js +0 -14
- package/node_modules/d3-selection/src/selection/iterator.js +0 -7
- package/node_modules/d3-selection/src/selection/join.js +0 -15
- package/node_modules/d3-selection/src/selection/lower.js +0 -7
- package/node_modules/d3-selection/src/selection/merge.js +0 -19
- package/node_modules/d3-selection/src/selection/node.js +0 -11
- package/node_modules/d3-selection/src/selection/nodes.js +0 -3
- package/node_modules/d3-selection/src/selection/on.js +0 -67
- package/node_modules/d3-selection/src/selection/order.js +0 -13
- package/node_modules/d3-selection/src/selection/property.js +0 -28
- package/node_modules/d3-selection/src/selection/raise.js +0 -7
- package/node_modules/d3-selection/src/selection/remove.js +0 -8
- package/node_modules/d3-selection/src/selection/select.js +0 -17
- package/node_modules/d3-selection/src/selection/selectAll.js +0 -25
- package/node_modules/d3-selection/src/selection/selectChild.js +0 -18
- package/node_modules/d3-selection/src/selection/selectChildren.js +0 -18
- package/node_modules/d3-selection/src/selection/size.js +0 -5
- package/node_modules/d3-selection/src/selection/sort.js +0 -24
- package/node_modules/d3-selection/src/selection/sparse.js +0 -3
- package/node_modules/d3-selection/src/selection/style.js +0 -35
- package/node_modules/d3-selection/src/selection/text.js +0 -25
- package/node_modules/d3-selection/src/selector.js +0 -7
- package/node_modules/d3-selection/src/selectorAll.js +0 -9
- package/node_modules/d3-selection/src/sourceEvent.js +0 -5
- package/node_modules/d3-selection/src/window.js +0 -5
- package/node_modules/d3-timer/LICENSE +0 -13
- package/node_modules/d3-timer/README.md +0 -87
- package/node_modules/d3-timer/dist/d3-timer.js +0 -153
- package/node_modules/d3-timer/dist/d3-timer.min.js +0 -2
- package/node_modules/d3-timer/package.json +0 -53
- package/node_modules/d3-timer/src/index.js +0 -13
- package/node_modules/d3-timer/src/interval.js +0 -17
- package/node_modules/d3-timer/src/timeout.js +0 -11
- package/node_modules/d3-timer/src/timer.js +0 -110
- package/node_modules/d3-transition/LICENSE +0 -13
- package/node_modules/d3-transition/README.md +0 -490
- package/node_modules/d3-transition/dist/d3-transition.js +0 -900
- package/node_modules/d3-transition/dist/d3-transition.min.js +0 -2
- package/node_modules/d3-transition/package.json +0 -65
- package/node_modules/d3-transition/src/active.js +0 -21
- package/node_modules/d3-transition/src/index.js +0 -4
- package/node_modules/d3-transition/src/interrupt.js +0 -24
- package/node_modules/d3-transition/src/selection/index.js +0 -6
- package/node_modules/d3-transition/src/selection/interrupt.js +0 -7
- package/node_modules/d3-transition/src/selection/transition.js +0 -42
- package/node_modules/d3-transition/src/transition/attr.js +0 -78
- package/node_modules/d3-transition/src/transition/attrTween.js +0 -44
- package/node_modules/d3-transition/src/transition/delay.js +0 -23
- package/node_modules/d3-transition/src/transition/duration.js +0 -23
- package/node_modules/d3-transition/src/transition/ease.js +0 -16
- package/node_modules/d3-transition/src/transition/easeVarying.js +0 -14
- package/node_modules/d3-transition/src/transition/end.js +0 -29
- package/node_modules/d3-transition/src/transition/filter.js +0 -16
- package/node_modules/d3-transition/src/transition/index.js +0 -73
- package/node_modules/d3-transition/src/transition/interpolate.js +0 -10
- package/node_modules/d3-transition/src/transition/merge.js +0 -19
- package/node_modules/d3-transition/src/transition/on.js +0 -32
- package/node_modules/d3-transition/src/transition/remove.js +0 -11
- package/node_modules/d3-transition/src/transition/schedule.js +0 -153
- package/node_modules/d3-transition/src/transition/select.js +0 -22
- package/node_modules/d3-transition/src/transition/selectAll.js +0 -26
- package/node_modules/d3-transition/src/transition/selection.js +0 -7
- package/node_modules/d3-transition/src/transition/style.js +0 -80
- package/node_modules/d3-transition/src/transition/styleTween.js +0 -24
- package/node_modules/d3-transition/src/transition/text.js +0 -20
- package/node_modules/d3-transition/src/transition/textTween.js +0 -24
- package/node_modules/d3-transition/src/transition/transition.js +0 -24
- package/node_modules/d3-transition/src/transition/tween.js +0 -81
- package/node_modules/d3-zoom/LICENSE +0 -13
- package/node_modules/d3-zoom/README.md +0 -414
- package/node_modules/d3-zoom/dist/d3-zoom.js +0 -531
- package/node_modules/d3-zoom/dist/d3-zoom.min.js +0 -2
- package/node_modules/d3-zoom/package.json +0 -57
- package/node_modules/d3-zoom/src/constant.js +0 -1
- package/node_modules/d3-zoom/src/event.js +0 -14
- package/node_modules/d3-zoom/src/index.js +0 -2
- package/node_modules/d3-zoom/src/noevent.js +0 -8
- package/node_modules/d3-zoom/src/transform.js +0 -51
- package/node_modules/d3-zoom/src/zoom.js +0 -447
- package/node_modules/use-sync-external-store/LICENSE +0 -21
- package/node_modules/use-sync-external-store/README.md +0 -5
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -97
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +0 -85
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -95
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.development.js +0 -88
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.production.js +0 -59
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -66
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -96
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -84
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store.development.js +0 -27
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js +0 -13
- package/node_modules/use-sync-external-store/index.js +0 -7
- package/node_modules/use-sync-external-store/package.json +0 -43
- package/node_modules/use-sync-external-store/shim/index.js +0 -7
- package/node_modules/use-sync-external-store/shim/index.native.js +0 -7
- package/node_modules/use-sync-external-store/shim/with-selector.js +0 -7
- package/node_modules/use-sync-external-store/with-selector.js +0 -7
- package/node_modules/zustand/LICENSE +0 -21
- package/node_modules/zustand/context.d.ts +0 -25
- package/node_modules/zustand/context.js +0 -60
- package/node_modules/zustand/esm/context.d.mts +0 -25
- package/node_modules/zustand/esm/context.d.ts +0 -25
- package/node_modules/zustand/esm/context.js +0 -61
- package/node_modules/zustand/esm/context.mjs +0 -61
- package/node_modules/zustand/esm/index.d.mts +0 -3
- package/node_modules/zustand/esm/index.d.ts +0 -3
- package/node_modules/zustand/esm/index.js +0 -48
- package/node_modules/zustand/esm/index.mjs +0 -48
- package/node_modules/zustand/esm/middleware/combine.d.mts +0 -5
- package/node_modules/zustand/esm/middleware/combine.d.ts +0 -5
- package/node_modules/zustand/esm/middleware/devtools.d.mts +0 -49
- package/node_modules/zustand/esm/middleware/devtools.d.ts +0 -49
- package/node_modules/zustand/esm/middleware/immer.d.mts +0 -25
- package/node_modules/zustand/esm/middleware/immer.d.ts +0 -25
- package/node_modules/zustand/esm/middleware/immer.js +0 -12
- package/node_modules/zustand/esm/middleware/immer.mjs +0 -12
- package/node_modules/zustand/esm/middleware/persist.d.mts +0 -119
- package/node_modules/zustand/esm/middleware/persist.d.ts +0 -119
- package/node_modules/zustand/esm/middleware/redux.d.mts +0 -21
- package/node_modules/zustand/esm/middleware/redux.d.ts +0 -21
- package/node_modules/zustand/esm/middleware/subscribeWithSelector.d.mts +0 -25
- package/node_modules/zustand/esm/middleware/subscribeWithSelector.d.ts +0 -25
- package/node_modules/zustand/esm/middleware.d.mts +0 -5
- package/node_modules/zustand/esm/middleware.d.ts +0 -5
- package/node_modules/zustand/esm/middleware.js +0 -583
- package/node_modules/zustand/esm/middleware.mjs +0 -583
- package/node_modules/zustand/esm/react/shallow.d.mts +0 -1
- package/node_modules/zustand/esm/react/shallow.d.ts +0 -1
- package/node_modules/zustand/esm/react/shallow.js +0 -49
- package/node_modules/zustand/esm/react/shallow.mjs +0 -49
- package/node_modules/zustand/esm/react.d.mts +0 -38
- package/node_modules/zustand/esm/react.d.ts +0 -38
- package/node_modules/zustand/esm/shallow.d.mts +0 -7
- package/node_modules/zustand/esm/shallow.d.ts +0 -7
- package/node_modules/zustand/esm/shallow.js +0 -47
- package/node_modules/zustand/esm/shallow.mjs +0 -47
- package/node_modules/zustand/esm/traditional.d.mts +0 -21
- package/node_modules/zustand/esm/traditional.d.ts +0 -21
- package/node_modules/zustand/esm/traditional.js +0 -27
- package/node_modules/zustand/esm/traditional.mjs +0 -27
- package/node_modules/zustand/esm/vanilla/shallow.d.mts +0 -1
- package/node_modules/zustand/esm/vanilla/shallow.d.ts +0 -1
- package/node_modules/zustand/esm/vanilla/shallow.js +0 -38
- package/node_modules/zustand/esm/vanilla/shallow.mjs +0 -38
- package/node_modules/zustand/esm/vanilla.d.mts +0 -81
- package/node_modules/zustand/esm/vanilla.d.ts +0 -81
- package/node_modules/zustand/esm/vanilla.js +0 -40
- package/node_modules/zustand/esm/vanilla.mjs +0 -40
- package/node_modules/zustand/index.d.ts +0 -3
- package/node_modules/zustand/index.js +0 -60
- package/node_modules/zustand/middleware/combine.d.ts +0 -5
- package/node_modules/zustand/middleware/devtools.d.ts +0 -49
- package/node_modules/zustand/middleware/immer.d.ts +0 -25
- package/node_modules/zustand/middleware/immer.js +0 -19
- package/node_modules/zustand/middleware/persist.d.ts +0 -119
- package/node_modules/zustand/middleware/redux.d.ts +0 -21
- package/node_modules/zustand/middleware/subscribeWithSelector.d.ts +0 -25
- package/node_modules/zustand/middleware.d.ts +0 -5
- package/node_modules/zustand/middleware.js +0 -609
- package/node_modules/zustand/package.json +0 -232
- package/node_modules/zustand/react/shallow.d.ts +0 -1
- package/node_modules/zustand/react/shallow.js +0 -86
- package/node_modules/zustand/react.d.ts +0 -38
- package/node_modules/zustand/readme.md +0 -505
- package/node_modules/zustand/shallow.d.ts +0 -7
- package/node_modules/zustand/shallow.js +0 -87
- package/node_modules/zustand/system/context.development.js +0 -73
- package/node_modules/zustand/system/context.production.js +0 -1
- package/node_modules/zustand/system/index.development.js +0 -71
- package/node_modules/zustand/system/index.production.js +0 -1
- package/node_modules/zustand/system/middleware/immer.development.js +0 -21
- package/node_modules/zustand/system/middleware/immer.production.js +0 -1
- package/node_modules/zustand/system/middleware.development.js +0 -592
- package/node_modules/zustand/system/middleware.production.js +0 -5
- package/node_modules/zustand/system/react/shallow.development.js +0 -60
- package/node_modules/zustand/system/react/shallow.production.js +0 -1
- package/node_modules/zustand/system/shallow.development.js +0 -56
- package/node_modules/zustand/system/shallow.production.js +0 -1
- package/node_modules/zustand/system/traditional.development.js +0 -40
- package/node_modules/zustand/system/traditional.production.js +0 -1
- package/node_modules/zustand/system/vanilla/shallow.development.js +0 -47
- package/node_modules/zustand/system/vanilla/shallow.production.js +0 -1
- package/node_modules/zustand/system/vanilla.development.js +0 -47
- package/node_modules/zustand/system/vanilla.production.js +0 -1
- package/node_modules/zustand/traditional.d.ts +0 -21
- package/node_modules/zustand/traditional.js +0 -36
- package/node_modules/zustand/ts3.4/context.d.ts +0 -25
- package/node_modules/zustand/ts3.4/esm/context.d.ts +0 -25
- package/node_modules/zustand/ts3.4/esm/index.d.ts +0 -3
- package/node_modules/zustand/ts3.4/esm/middleware/combine.d.ts +0 -13
- package/node_modules/zustand/ts3.4/esm/middleware/devtools.d.ts +0 -102
- package/node_modules/zustand/ts3.4/esm/middleware/immer.d.ts +0 -60
- package/node_modules/zustand/ts3.4/esm/middleware/persist.d.ts +0 -139
- package/node_modules/zustand/ts3.4/esm/middleware/redux.d.ts +0 -30
- package/node_modules/zustand/ts3.4/esm/middleware/subscribeWithSelector.d.ts +0 -42
- package/node_modules/zustand/ts3.4/esm/middleware.d.ts +0 -5
- package/node_modules/zustand/ts3.4/esm/react/shallow.d.ts +0 -1
- package/node_modules/zustand/ts3.4/esm/react.d.ts +0 -48
- package/node_modules/zustand/ts3.4/esm/shallow.d.ts +0 -7
- package/node_modules/zustand/ts3.4/esm/traditional.d.ts +0 -31
- package/node_modules/zustand/ts3.4/esm/vanilla/shallow.d.ts +0 -1
- package/node_modules/zustand/ts3.4/esm/vanilla.d.ts +0 -106
- package/node_modules/zustand/ts3.4/index.d.ts +0 -3
- package/node_modules/zustand/ts3.4/middleware/combine.d.ts +0 -13
- package/node_modules/zustand/ts3.4/middleware/devtools.d.ts +0 -102
- package/node_modules/zustand/ts3.4/middleware/immer.d.ts +0 -60
- package/node_modules/zustand/ts3.4/middleware/persist.d.ts +0 -139
- package/node_modules/zustand/ts3.4/middleware/redux.d.ts +0 -30
- package/node_modules/zustand/ts3.4/middleware/subscribeWithSelector.d.ts +0 -42
- package/node_modules/zustand/ts3.4/middleware.d.ts +0 -5
- package/node_modules/zustand/ts3.4/react/shallow.d.ts +0 -1
- package/node_modules/zustand/ts3.4/react.d.ts +0 -48
- package/node_modules/zustand/ts3.4/shallow.d.ts +0 -7
- package/node_modules/zustand/ts3.4/traditional.d.ts +0 -31
- package/node_modules/zustand/ts3.4/vanilla/shallow.d.ts +0 -1
- package/node_modules/zustand/ts3.4/vanilla.d.ts +0 -106
- package/node_modules/zustand/umd/context.development.js +0 -63
- package/node_modules/zustand/umd/context.production.js +0 -1
- package/node_modules/zustand/umd/index.development.js +0 -58
- package/node_modules/zustand/umd/index.production.js +0 -1
- package/node_modules/zustand/umd/middleware/immer.development.js +0 -23
- package/node_modules/zustand/umd/middleware/immer.production.js +0 -1
- package/node_modules/zustand/umd/middleware.development.js +0 -615
- package/node_modules/zustand/umd/middleware.production.js +0 -1
- package/node_modules/zustand/umd/react/shallow.development.js +0 -90
- package/node_modules/zustand/umd/react/shallow.production.js +0 -1
- package/node_modules/zustand/umd/shallow.development.js +0 -91
- package/node_modules/zustand/umd/shallow.production.js +0 -1
- package/node_modules/zustand/umd/traditional.development.js +0 -38
- package/node_modules/zustand/umd/traditional.production.js +0 -1
- package/node_modules/zustand/umd/vanilla/shallow.development.js +0 -81
- package/node_modules/zustand/umd/vanilla/shallow.production.js +0 -1
- package/node_modules/zustand/umd/vanilla.development.js +0 -63
- package/node_modules/zustand/umd/vanilla.production.js +0 -1
- package/node_modules/zustand/vanilla/shallow.d.ts +0 -1
- package/node_modules/zustand/vanilla/shallow.js +0 -75
- package/node_modules/zustand/vanilla.d.ts +0 -81
- package/node_modules/zustand/vanilla.js +0 -59
|
@@ -1,505 +0,0 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="bear.jpg" />
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
[](https://github.com/pmndrs/zustand/actions?query=workflow%3ALint)
|
|
6
|
-
[](https://bundlephobia.com/result?p=zustand)
|
|
7
|
-
[](https://www.npmjs.com/package/zustand)
|
|
8
|
-
[](https://www.npmjs.com/package/zustand)
|
|
9
|
-
[](https://discord.gg/poimandres)
|
|
10
|
-
|
|
11
|
-
A small, fast and scalable bearbones state-management solution using simplified flux principles. Has a comfy API based on hooks, isn't boilerplatey or opinionated.
|
|
12
|
-
|
|
13
|
-
Don't disregard it because it's cute. It has quite the claws, lots of time was spent dealing with common pitfalls, like the dreaded [zombie child problem](https://react-redux.js.org/api/hooks#stale-props-and-zombie-children), [react concurrency](https://github.com/bvaughn/rfcs/blob/useMutableSource/text/0000-use-mutable-source.md), and [context loss](https://github.com/facebook/react/issues/13332) between mixed renderers. It may be the one state-manager in the React space that gets all of these right.
|
|
14
|
-
|
|
15
|
-
You can try a live demo [here](https://githubbox.com/pmndrs/zustand/tree/main/examples/demo).
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npm i zustand
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
:warning: This readme is written for JavaScript users. If you are a TypeScript user, be sure to check out our [TypeScript Usage section](#typescript-usage).
|
|
22
|
-
|
|
23
|
-
## First create a store
|
|
24
|
-
|
|
25
|
-
Your store is a hook! You can put anything in it: primitives, objects, functions. State has to be updated immutably and the `set` function [merges state](./docs/guides/immutable-state-and-merging.md) to help it.
|
|
26
|
-
|
|
27
|
-
```jsx
|
|
28
|
-
import { create } from 'zustand'
|
|
29
|
-
|
|
30
|
-
const useBearStore = create((set) => ({
|
|
31
|
-
bears: 0,
|
|
32
|
-
increasePopulation: () => set((state) => ({ bears: state.bears + 1 })),
|
|
33
|
-
removeAllBears: () => set({ bears: 0 }),
|
|
34
|
-
}))
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## Then bind your components, and that's it!
|
|
38
|
-
|
|
39
|
-
Use the hook anywhere, no providers are needed. Select your state and the component will re-render on changes.
|
|
40
|
-
|
|
41
|
-
```jsx
|
|
42
|
-
function BearCounter() {
|
|
43
|
-
const bears = useBearStore((state) => state.bears)
|
|
44
|
-
return <h1>{bears} around here ...</h1>
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function Controls() {
|
|
48
|
-
const increasePopulation = useBearStore((state) => state.increasePopulation)
|
|
49
|
-
return <button onClick={increasePopulation}>one up</button>
|
|
50
|
-
}
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
### Why zustand over redux?
|
|
54
|
-
|
|
55
|
-
- Simple and un-opinionated
|
|
56
|
-
- Makes hooks the primary means of consuming state
|
|
57
|
-
- Doesn't wrap your app in context providers
|
|
58
|
-
- [Can inform components transiently (without causing render)](#transient-updates-for-often-occurring-state-changes)
|
|
59
|
-
|
|
60
|
-
### Why zustand over context?
|
|
61
|
-
|
|
62
|
-
- Less boilerplate
|
|
63
|
-
- Renders components only on changes
|
|
64
|
-
- Centralized, action-based state management
|
|
65
|
-
|
|
66
|
-
---
|
|
67
|
-
|
|
68
|
-
# Recipes
|
|
69
|
-
|
|
70
|
-
## Fetching everything
|
|
71
|
-
|
|
72
|
-
You can, but bear in mind that it will cause the component to update on every state change!
|
|
73
|
-
|
|
74
|
-
```jsx
|
|
75
|
-
const state = useBearStore()
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## Selecting multiple state slices
|
|
79
|
-
|
|
80
|
-
It detects changes with strict-equality (old === new) by default, this is efficient for atomic state picks.
|
|
81
|
-
|
|
82
|
-
```jsx
|
|
83
|
-
const nuts = useBearStore((state) => state.nuts)
|
|
84
|
-
const honey = useBearStore((state) => state.honey)
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
If you want to construct a single object with multiple state-picks inside, similar to redux's mapStateToProps, you can use [useShallow](./docs/guides/prevent-rerenders-with-use-shallow.md) to prevent unnecessary rerenders when the selector output does not change according to shallow equal.
|
|
88
|
-
|
|
89
|
-
```jsx
|
|
90
|
-
import { create } from 'zustand'
|
|
91
|
-
import { useShallow } from 'zustand/react/shallow'
|
|
92
|
-
|
|
93
|
-
const useBearStore = create((set) => ({
|
|
94
|
-
bears: 0,
|
|
95
|
-
increasePopulation: () => set((state) => ({ bears: state.bears + 1 })),
|
|
96
|
-
removeAllBears: () => set({ bears: 0 }),
|
|
97
|
-
}))
|
|
98
|
-
|
|
99
|
-
// Object pick, re-renders the component when either state.nuts or state.honey change
|
|
100
|
-
const { nuts, honey } = useBearStore(
|
|
101
|
-
useShallow((state) => ({ nuts: state.nuts, honey: state.honey })),
|
|
102
|
-
)
|
|
103
|
-
|
|
104
|
-
// Array pick, re-renders the component when either state.nuts or state.honey change
|
|
105
|
-
const [nuts, honey] = useBearStore(
|
|
106
|
-
useShallow((state) => [state.nuts, state.honey]),
|
|
107
|
-
)
|
|
108
|
-
|
|
109
|
-
// Mapped picks, re-renders the component when state.treats changes in order, count or keys
|
|
110
|
-
const treats = useBearStore(useShallow((state) => Object.keys(state.treats)))
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
For more control over re-rendering, you may provide any custom equality function.
|
|
114
|
-
|
|
115
|
-
```jsx
|
|
116
|
-
const treats = useBearStore(
|
|
117
|
-
(state) => state.treats,
|
|
118
|
-
(oldTreats, newTreats) => compare(oldTreats, newTreats),
|
|
119
|
-
)
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
## Overwriting state
|
|
123
|
-
|
|
124
|
-
The `set` function has a second argument, `false` by default. Instead of merging, it will replace the state model. Be careful not to wipe out parts you rely on, like actions.
|
|
125
|
-
|
|
126
|
-
```jsx
|
|
127
|
-
import omit from 'lodash-es/omit'
|
|
128
|
-
|
|
129
|
-
const useFishStore = create((set) => ({
|
|
130
|
-
salmon: 1,
|
|
131
|
-
tuna: 2,
|
|
132
|
-
deleteEverything: () => set({}, true), // clears the entire store, actions included
|
|
133
|
-
deleteTuna: () => set((state) => omit(state, ['tuna']), true),
|
|
134
|
-
}))
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
## Async actions
|
|
138
|
-
|
|
139
|
-
Just call `set` when you're ready, zustand doesn't care if your actions are async or not.
|
|
140
|
-
|
|
141
|
-
```jsx
|
|
142
|
-
const useFishStore = create((set) => ({
|
|
143
|
-
fishies: {},
|
|
144
|
-
fetch: async (pond) => {
|
|
145
|
-
const response = await fetch(pond)
|
|
146
|
-
set({ fishies: await response.json() })
|
|
147
|
-
},
|
|
148
|
-
}))
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
## Read from state in actions
|
|
152
|
-
|
|
153
|
-
`set` allows fn-updates `set(state => result)`, but you still have access to state outside of it through `get`.
|
|
154
|
-
|
|
155
|
-
```jsx
|
|
156
|
-
const useSoundStore = create((set, get) => ({
|
|
157
|
-
sound: 'grunt',
|
|
158
|
-
action: () => {
|
|
159
|
-
const sound = get().sound
|
|
160
|
-
...
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
## Reading/writing state and reacting to changes outside of components
|
|
164
|
-
|
|
165
|
-
Sometimes you need to access state in a non-reactive way or act upon the store. For these cases, the resulting hook has utility functions attached to its prototype.
|
|
166
|
-
|
|
167
|
-
:warning: This technique is not recommended for adding state in [React Server Components](https://github.com/reactjs/rfcs/blob/main/text/0188-server-components.md) (typically in Next.js 13 and above). It can lead to unexpected bugs and privacy issues for your users. For more details, see [#2200](https://github.com/pmndrs/zustand/discussions/2200).
|
|
168
|
-
|
|
169
|
-
```jsx
|
|
170
|
-
const useDogStore = create(() => ({ paw: true, snout: true, fur: true }))
|
|
171
|
-
|
|
172
|
-
// Getting non-reactive fresh state
|
|
173
|
-
const paw = useDogStore.getState().paw
|
|
174
|
-
// Listening to all changes, fires synchronously on every change
|
|
175
|
-
const unsub1 = useDogStore.subscribe(console.log)
|
|
176
|
-
// Updating state, will trigger listeners
|
|
177
|
-
useDogStore.setState({ paw: false })
|
|
178
|
-
// Unsubscribe listeners
|
|
179
|
-
unsub1()
|
|
180
|
-
|
|
181
|
-
// You can of course use the hook as you always would
|
|
182
|
-
function Component() {
|
|
183
|
-
const paw = useDogStore((state) => state.paw)
|
|
184
|
-
...
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
### Using subscribe with selector
|
|
188
|
-
|
|
189
|
-
If you need to subscribe with a selector,
|
|
190
|
-
`subscribeWithSelector` middleware will help.
|
|
191
|
-
|
|
192
|
-
With this middleware `subscribe` accepts an additional signature:
|
|
193
|
-
|
|
194
|
-
```ts
|
|
195
|
-
subscribe(selector, callback, options?: { equalityFn, fireImmediately }): Unsubscribe
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
```js
|
|
199
|
-
import { subscribeWithSelector } from 'zustand/middleware'
|
|
200
|
-
const useDogStore = create(
|
|
201
|
-
subscribeWithSelector(() => ({ paw: true, snout: true, fur: true })),
|
|
202
|
-
)
|
|
203
|
-
|
|
204
|
-
// Listening to selected changes, in this case when "paw" changes
|
|
205
|
-
const unsub2 = useDogStore.subscribe((state) => state.paw, console.log)
|
|
206
|
-
// Subscribe also exposes the previous value
|
|
207
|
-
const unsub3 = useDogStore.subscribe(
|
|
208
|
-
(state) => state.paw,
|
|
209
|
-
(paw, previousPaw) => console.log(paw, previousPaw),
|
|
210
|
-
)
|
|
211
|
-
// Subscribe also supports an optional equality function
|
|
212
|
-
const unsub4 = useDogStore.subscribe(
|
|
213
|
-
(state) => [state.paw, state.fur],
|
|
214
|
-
console.log,
|
|
215
|
-
{ equalityFn: shallow },
|
|
216
|
-
)
|
|
217
|
-
// Subscribe and fire immediately
|
|
218
|
-
const unsub5 = useDogStore.subscribe((state) => state.paw, console.log, {
|
|
219
|
-
fireImmediately: true,
|
|
220
|
-
})
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
## Using zustand without React
|
|
224
|
-
|
|
225
|
-
Zustand core can be imported and used without the React dependency. The only difference is that the create function does not return a hook, but the API utilities.
|
|
226
|
-
|
|
227
|
-
```jsx
|
|
228
|
-
import { createStore } from 'zustand/vanilla'
|
|
229
|
-
|
|
230
|
-
const store = createStore((set) => ...)
|
|
231
|
-
const { getState, setState, subscribe, getInitialState } = store
|
|
232
|
-
|
|
233
|
-
export default store
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
You can use a vanilla store with `useStore` hook available since v4.
|
|
237
|
-
|
|
238
|
-
```jsx
|
|
239
|
-
import { useStore } from 'zustand'
|
|
240
|
-
import { vanillaStore } from './vanillaStore'
|
|
241
|
-
|
|
242
|
-
const useBoundStore = (selector) => useStore(vanillaStore, selector)
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
:warning: Note that middlewares that modify `set` or `get` are not applied to `getState` and `setState`.
|
|
246
|
-
|
|
247
|
-
## Transient updates (for often occurring state-changes)
|
|
248
|
-
|
|
249
|
-
The subscribe function allows components to bind to a state-portion without forcing re-render on changes. Best combine it with useEffect for automatic unsubscribe on unmount. This can make a [drastic](https://codesandbox.io/s/peaceful-johnson-txtws) performance impact when you are allowed to mutate the view directly.
|
|
250
|
-
|
|
251
|
-
```jsx
|
|
252
|
-
const useScratchStore = create((set) => ({ scratches: 0, ... }))
|
|
253
|
-
|
|
254
|
-
const Component = () => {
|
|
255
|
-
// Fetch initial state
|
|
256
|
-
const scratchRef = useRef(useScratchStore.getState().scratches)
|
|
257
|
-
// Connect to the store on mount, disconnect on unmount, catch state-changes in a reference
|
|
258
|
-
useEffect(() => useScratchStore.subscribe(
|
|
259
|
-
state => (scratchRef.current = state.scratches)
|
|
260
|
-
), [])
|
|
261
|
-
...
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
## Sick of reducers and changing nested states? Use Immer!
|
|
265
|
-
|
|
266
|
-
Reducing nested structures is tiresome. Have you tried [immer](https://github.com/mweststrate/immer)?
|
|
267
|
-
|
|
268
|
-
```jsx
|
|
269
|
-
import { produce } from 'immer'
|
|
270
|
-
|
|
271
|
-
const useLushStore = create((set) => ({
|
|
272
|
-
lush: { forest: { contains: { a: 'bear' } } },
|
|
273
|
-
clearForest: () =>
|
|
274
|
-
set(
|
|
275
|
-
produce((state) => {
|
|
276
|
-
state.lush.forest.contains = null
|
|
277
|
-
}),
|
|
278
|
-
),
|
|
279
|
-
}))
|
|
280
|
-
|
|
281
|
-
const clearForest = useLushStore((state) => state.clearForest)
|
|
282
|
-
clearForest()
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
[Alternatively, there are some other solutions.](./docs/guides/updating-state.md#with-immer)
|
|
286
|
-
|
|
287
|
-
## Persist middleware
|
|
288
|
-
|
|
289
|
-
You can persist your store's data using any kind of storage.
|
|
290
|
-
|
|
291
|
-
```jsx
|
|
292
|
-
import { create } from 'zustand'
|
|
293
|
-
import { persist, createJSONStorage } from 'zustand/middleware'
|
|
294
|
-
|
|
295
|
-
const useFishStore = create(
|
|
296
|
-
persist(
|
|
297
|
-
(set, get) => ({
|
|
298
|
-
fishes: 0,
|
|
299
|
-
addAFish: () => set({ fishes: get().fishes + 1 }),
|
|
300
|
-
}),
|
|
301
|
-
{
|
|
302
|
-
name: 'food-storage', // name of the item in the storage (must be unique)
|
|
303
|
-
storage: createJSONStorage(() => sessionStorage), // (optional) by default, 'localStorage' is used
|
|
304
|
-
},
|
|
305
|
-
),
|
|
306
|
-
)
|
|
307
|
-
```
|
|
308
|
-
|
|
309
|
-
[See the full documentation for this middleware.](./docs/integrations/persisting-store-data.md)
|
|
310
|
-
|
|
311
|
-
## Immer middleware
|
|
312
|
-
|
|
313
|
-
Immer is available as middleware too.
|
|
314
|
-
|
|
315
|
-
```jsx
|
|
316
|
-
import { create } from 'zustand'
|
|
317
|
-
import { immer } from 'zustand/middleware/immer'
|
|
318
|
-
|
|
319
|
-
const useBeeStore = create(
|
|
320
|
-
immer((set) => ({
|
|
321
|
-
bees: 0,
|
|
322
|
-
addBees: (by) =>
|
|
323
|
-
set((state) => {
|
|
324
|
-
state.bees += by
|
|
325
|
-
}),
|
|
326
|
-
})),
|
|
327
|
-
)
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
## Can't live without redux-like reducers and action types?
|
|
331
|
-
|
|
332
|
-
```jsx
|
|
333
|
-
const types = { increase: 'INCREASE', decrease: 'DECREASE' }
|
|
334
|
-
|
|
335
|
-
const reducer = (state, { type, by = 1 }) => {
|
|
336
|
-
switch (type) {
|
|
337
|
-
case types.increase:
|
|
338
|
-
return { grumpiness: state.grumpiness + by }
|
|
339
|
-
case types.decrease:
|
|
340
|
-
return { grumpiness: state.grumpiness - by }
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
const useGrumpyStore = create((set) => ({
|
|
345
|
-
grumpiness: 0,
|
|
346
|
-
dispatch: (args) => set((state) => reducer(state, args)),
|
|
347
|
-
}))
|
|
348
|
-
|
|
349
|
-
const dispatch = useGrumpyStore((state) => state.dispatch)
|
|
350
|
-
dispatch({ type: types.increase, by: 2 })
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
Or, just use our redux-middleware. It wires up your main-reducer, sets the initial state, and adds a dispatch function to the state itself and the vanilla API.
|
|
354
|
-
|
|
355
|
-
```jsx
|
|
356
|
-
import { redux } from 'zustand/middleware'
|
|
357
|
-
|
|
358
|
-
const useGrumpyStore = create(redux(reducer, initialState))
|
|
359
|
-
```
|
|
360
|
-
|
|
361
|
-
## Redux devtools
|
|
362
|
-
|
|
363
|
-
```jsx
|
|
364
|
-
import { devtools } from 'zustand/middleware'
|
|
365
|
-
|
|
366
|
-
// Usage with a plain action store, it will log actions as "setState"
|
|
367
|
-
const usePlainStore = create(devtools((set) => ...))
|
|
368
|
-
// Usage with a redux store, it will log full action types
|
|
369
|
-
const useReduxStore = create(devtools(redux(reducer, initialState)))
|
|
370
|
-
```
|
|
371
|
-
|
|
372
|
-
One redux devtools connection for multiple stores
|
|
373
|
-
|
|
374
|
-
```jsx
|
|
375
|
-
import { devtools } from 'zustand/middleware'
|
|
376
|
-
|
|
377
|
-
// Usage with a plain action store, it will log actions as "setState"
|
|
378
|
-
const usePlainStore1 = create(devtools((set) => ..., { name, store: storeName1 }))
|
|
379
|
-
const usePlainStore2 = create(devtools((set) => ..., { name, store: storeName2 }))
|
|
380
|
-
// Usage with a redux store, it will log full action types
|
|
381
|
-
const useReduxStore = create(devtools(redux(reducer, initialState)), , { name, store: storeName3 })
|
|
382
|
-
const useReduxStore = create(devtools(redux(reducer, initialState)), , { name, store: storeName4 })
|
|
383
|
-
```
|
|
384
|
-
|
|
385
|
-
Assigning different connection names will separate stores in redux devtools. This also helps group different stores into separate redux devtools connections.
|
|
386
|
-
|
|
387
|
-
devtools takes the store function as its first argument, optionally you can name the store or configure [serialize](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md#serialize) options with a second argument.
|
|
388
|
-
|
|
389
|
-
Name store: `devtools(..., {name: "MyStore"})`, which will create a separate instance named "MyStore" in the devtools.
|
|
390
|
-
|
|
391
|
-
Serialize options: `devtools(..., { serialize: { options: true } })`.
|
|
392
|
-
|
|
393
|
-
#### Logging Actions
|
|
394
|
-
|
|
395
|
-
devtools will only log actions from each separated store unlike in a typical _combined reducers_ redux store. See an approach to combining stores https://github.com/pmndrs/zustand/issues/163
|
|
396
|
-
|
|
397
|
-
You can log a specific action type for each `set` function by passing a third parameter:
|
|
398
|
-
|
|
399
|
-
```jsx
|
|
400
|
-
const useBearStore = create(devtools((set) => ({
|
|
401
|
-
...
|
|
402
|
-
eatFish: () => set(
|
|
403
|
-
(prev) => ({ fishes: prev.fishes > 1 ? prev.fishes - 1 : 0 }),
|
|
404
|
-
undefined,
|
|
405
|
-
'bear/eatFish'
|
|
406
|
-
),
|
|
407
|
-
...
|
|
408
|
-
```
|
|
409
|
-
|
|
410
|
-
You can also log the action's type along with its payload:
|
|
411
|
-
|
|
412
|
-
```jsx
|
|
413
|
-
...
|
|
414
|
-
addFishes: (count) => set(
|
|
415
|
-
(prev) => ({ fishes: prev.fishes + count }),
|
|
416
|
-
undefined,
|
|
417
|
-
{ type: 'bear/addFishes', count, }
|
|
418
|
-
),
|
|
419
|
-
...
|
|
420
|
-
```
|
|
421
|
-
|
|
422
|
-
If an action type is not provided, it is defaulted to "anonymous". You can customize this default value by providing an `anonymousActionType` parameter:
|
|
423
|
-
|
|
424
|
-
```jsx
|
|
425
|
-
devtools(..., { anonymousActionType: 'unknown', ... })
|
|
426
|
-
```
|
|
427
|
-
|
|
428
|
-
If you wish to disable devtools (on production for instance). You can customize this setting by providing the `enabled` parameter:
|
|
429
|
-
|
|
430
|
-
```jsx
|
|
431
|
-
devtools(..., { enabled: false, ... })
|
|
432
|
-
```
|
|
433
|
-
|
|
434
|
-
## React context
|
|
435
|
-
|
|
436
|
-
The store created with `create` doesn't require context providers. In some cases, you may want to use contexts for dependency injection or if you want to initialize your store with props from a component. Because the normal store is a hook, passing it as a normal context value may violate the rules of hooks.
|
|
437
|
-
|
|
438
|
-
The recommended method available since v4 is to use the vanilla store.
|
|
439
|
-
|
|
440
|
-
```jsx
|
|
441
|
-
import { createContext, useContext } from 'react'
|
|
442
|
-
import { createStore, useStore } from 'zustand'
|
|
443
|
-
|
|
444
|
-
const store = createStore(...) // vanilla store without hooks
|
|
445
|
-
|
|
446
|
-
const StoreContext = createContext()
|
|
447
|
-
|
|
448
|
-
const App = () => (
|
|
449
|
-
<StoreContext.Provider value={store}>
|
|
450
|
-
...
|
|
451
|
-
</StoreContext.Provider>
|
|
452
|
-
)
|
|
453
|
-
|
|
454
|
-
const Component = () => {
|
|
455
|
-
const store = useContext(StoreContext)
|
|
456
|
-
const slice = useStore(store, selector)
|
|
457
|
-
...
|
|
458
|
-
```
|
|
459
|
-
|
|
460
|
-
## TypeScript Usage
|
|
461
|
-
|
|
462
|
-
Basic typescript usage doesn't require anything special except for writing `create<State>()(...)` instead of `create(...)`...
|
|
463
|
-
|
|
464
|
-
```ts
|
|
465
|
-
import { create } from 'zustand'
|
|
466
|
-
import { devtools, persist } from 'zustand/middleware'
|
|
467
|
-
import type {} from '@redux-devtools/extension' // required for devtools typing
|
|
468
|
-
|
|
469
|
-
interface BearState {
|
|
470
|
-
bears: number
|
|
471
|
-
increase: (by: number) => void
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
const useBearStore = create<BearState>()(
|
|
475
|
-
devtools(
|
|
476
|
-
persist(
|
|
477
|
-
(set) => ({
|
|
478
|
-
bears: 0,
|
|
479
|
-
increase: (by) => set((state) => ({ bears: state.bears + by })),
|
|
480
|
-
}),
|
|
481
|
-
{
|
|
482
|
-
name: 'bear-storage',
|
|
483
|
-
},
|
|
484
|
-
),
|
|
485
|
-
),
|
|
486
|
-
)
|
|
487
|
-
```
|
|
488
|
-
|
|
489
|
-
A more complete TypeScript guide is [here](docs/guides/typescript.md).
|
|
490
|
-
|
|
491
|
-
## Best practices
|
|
492
|
-
|
|
493
|
-
- You may wonder how to organize your code for better maintenance: [Splitting the store into separate slices](./docs/guides/slices-pattern.md).
|
|
494
|
-
- Recommended usage for this unopinionated library: [Flux inspired practice](./docs/guides/flux-inspired-practice.md).
|
|
495
|
-
- [Calling actions outside a React event handler in pre-React 18](./docs/guides/event-handler-in-pre-react-18.md).
|
|
496
|
-
- [Testing](./docs/guides/testing.md)
|
|
497
|
-
- For more, have a look [in the docs folder](./docs/)
|
|
498
|
-
|
|
499
|
-
## Third-Party Libraries
|
|
500
|
-
|
|
501
|
-
Some users may want to extend Zustand's feature set which can be done using third-party libraries made by the community. For information regarding third-party libraries with Zustand, visit [the doc](./docs/integrations/third-party-libraries.md).
|
|
502
|
-
|
|
503
|
-
## Comparison with other libraries
|
|
504
|
-
|
|
505
|
-
- [Difference between zustand and other state management libraries for React](https://docs.pmnd.rs/zustand/getting-started/comparison)
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function _arrayLikeToArray(r, a) {
|
|
4
|
-
(null == a || a > r.length) && (a = r.length);
|
|
5
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
6
|
-
return n;
|
|
7
|
-
}
|
|
8
|
-
function _createForOfIteratorHelperLoose(r, e) {
|
|
9
|
-
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
10
|
-
if (t) return (t = t.call(r)).next.bind(t);
|
|
11
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
|
|
12
|
-
t && (r = t);
|
|
13
|
-
var o = 0;
|
|
14
|
-
return function () {
|
|
15
|
-
return o >= r.length ? {
|
|
16
|
-
done: !0
|
|
17
|
-
} : {
|
|
18
|
-
done: !1,
|
|
19
|
-
value: r[o++]
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24
|
-
}
|
|
25
|
-
function _unsupportedIterableToArray(r, a) {
|
|
26
|
-
if (r) {
|
|
27
|
-
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
28
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
29
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function shallow$1(objA, objB) {
|
|
34
|
-
if (Object.is(objA, objB)) {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
if (objA instanceof Map && objB instanceof Map) {
|
|
41
|
-
if (objA.size !== objB.size) return false;
|
|
42
|
-
for (var _iterator = _createForOfIteratorHelperLoose(objA), _step; !(_step = _iterator()).done;) {
|
|
43
|
-
var _step$value = _step.value,
|
|
44
|
-
key = _step$value[0],
|
|
45
|
-
value = _step$value[1];
|
|
46
|
-
if (!Object.is(value, objB.get(key))) {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
if (objA instanceof Set && objB instanceof Set) {
|
|
53
|
-
if (objA.size !== objB.size) return false;
|
|
54
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose(objA), _step2; !(_step2 = _iterator2()).done;) {
|
|
55
|
-
var _value = _step2.value;
|
|
56
|
-
if (!objB.has(_value)) {
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
return true;
|
|
61
|
-
}
|
|
62
|
-
var keysA = Object.keys(objA);
|
|
63
|
-
if (keysA.length !== Object.keys(objB).length) {
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
for (var _i = 0, _keysA = keysA; _i < _keysA.length; _i++) {
|
|
67
|
-
var keyA = _keysA[_i];
|
|
68
|
-
if (!Object.prototype.hasOwnProperty.call(objB, keyA) || !Object.is(objA[keyA], objB[keyA])) {
|
|
69
|
-
return false;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return true;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
var shallow = (function (objA, objB) {
|
|
76
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
77
|
-
console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { shallow } from 'zustand/shallow'`.");
|
|
78
|
-
}
|
|
79
|
-
return shallow$1(objA, objB);
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
exports.default = shallow;
|
|
83
|
-
exports.shallow = shallow$1;
|
|
84
|
-
|
|
85
|
-
module.exports = shallow;
|
|
86
|
-
module.exports.shallow = shallow$1;
|
|
87
|
-
exports.default = module.exports;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
System.register(['react', 'zustand/traditional'], (function (exports) {
|
|
2
|
-
'use strict';
|
|
3
|
-
var ReactExports, useStoreWithEqualityFn;
|
|
4
|
-
return {
|
|
5
|
-
setters: [function (module) {
|
|
6
|
-
ReactExports = module.default;
|
|
7
|
-
}, function (module) {
|
|
8
|
-
useStoreWithEqualityFn = module.useStoreWithEqualityFn;
|
|
9
|
-
}],
|
|
10
|
-
execute: (function () {
|
|
11
|
-
|
|
12
|
-
exports("default", createContext);
|
|
13
|
-
|
|
14
|
-
const {
|
|
15
|
-
createElement,
|
|
16
|
-
createContext: reactCreateContext,
|
|
17
|
-
useContext,
|
|
18
|
-
useMemo,
|
|
19
|
-
useRef
|
|
20
|
-
} = ReactExports;
|
|
21
|
-
function createContext() {
|
|
22
|
-
{
|
|
23
|
-
console.warn(
|
|
24
|
-
"[DEPRECATED] `context` will be removed in a future version. Instead use `import { createStore, useStore } from 'zustand'`. See: https://github.com/pmndrs/zustand/discussions/1180."
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
const ZustandContext = reactCreateContext(void 0);
|
|
28
|
-
const Provider = ({
|
|
29
|
-
createStore,
|
|
30
|
-
children
|
|
31
|
-
}) => {
|
|
32
|
-
const storeRef = useRef();
|
|
33
|
-
if (!storeRef.current) {
|
|
34
|
-
storeRef.current = createStore();
|
|
35
|
-
}
|
|
36
|
-
return createElement(
|
|
37
|
-
ZustandContext.Provider,
|
|
38
|
-
{ value: storeRef.current },
|
|
39
|
-
children
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
const useContextStore = (selector, equalityFn) => {
|
|
43
|
-
const store = useContext(ZustandContext);
|
|
44
|
-
if (!store) {
|
|
45
|
-
throw new Error(
|
|
46
|
-
"Seems like you have not used zustand provider as an ancestor."
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
return useStoreWithEqualityFn(
|
|
50
|
-
store,
|
|
51
|
-
selector,
|
|
52
|
-
equalityFn
|
|
53
|
-
);
|
|
54
|
-
};
|
|
55
|
-
const useStoreApi = () => {
|
|
56
|
-
const store = useContext(ZustandContext);
|
|
57
|
-
if (!store) {
|
|
58
|
-
throw new Error(
|
|
59
|
-
"Seems like you have not used zustand provider as an ancestor."
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
return useMemo(() => ({ ...store }), [store]);
|
|
63
|
-
};
|
|
64
|
-
return {
|
|
65
|
-
Provider,
|
|
66
|
-
useStore: useContextStore,
|
|
67
|
-
useStoreApi
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
})
|
|
72
|
-
};
|
|
73
|
-
}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["react","zustand/traditional"],function(a){"use strict";var o,s;return{setters:[function(r){o=r.default},function(r){s=r.useStoreWithEqualityFn}],execute:function(){a("default",l);const{createElement:r,createContext:c,useContext:i,useMemo:d,useRef:f}=o;function l(){const n=c(void 0);return{Provider:({createStore:e,children:u})=>{const t=f();return t.current||(t.current=e()),r(n.Provider,{value:t.current},u)},useStore:(e,u)=>{const t=i(n);if(!t)throw new Error("Seems like you have not used zustand provider as an ancestor.");return s(t,e,u)},useStoreApi:()=>{const e=i(n);if(!e)throw new Error("Seems like you have not used zustand provider as an ancestor.");return d(()=>({...e}),[e])}}}}}});
|