chore(react): update changelog
This commit is contained in:
@@ -7,7 +7,6 @@ import {
|
|||||||
Node,
|
Node,
|
||||||
Position,
|
Position,
|
||||||
SnapGrid,
|
SnapGrid,
|
||||||
Connection,
|
|
||||||
useEdgesState,
|
useEdgesState,
|
||||||
Background,
|
Background,
|
||||||
Edge,
|
Edge,
|
||||||
@@ -15,6 +14,7 @@ import {
|
|||||||
OnInit,
|
OnInit,
|
||||||
applyNodeChanges,
|
applyNodeChanges,
|
||||||
OnNodesChange,
|
OnNodesChange,
|
||||||
|
OnConnect,
|
||||||
} from '@xyflow/react';
|
} from '@xyflow/react';
|
||||||
|
|
||||||
import ColorSelectorNode from './ColorSelectorNode';
|
import ColorSelectorNode from './ColorSelectorNode';
|
||||||
@@ -137,9 +137,8 @@ const CustomNodeFlow = () => {
|
|||||||
]);
|
]);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const onConnect = useCallback(
|
const onConnect: OnConnect = useCallback(
|
||||||
(connection: Connection) =>
|
(connection) => setEdges((eds) => addEdge({ ...connection, animated: true, style: { stroke: '#fff' } }, eds)),
|
||||||
setEdges((eds) => addEdge({ ...connection, animated: true, style: { stroke: '#fff' } }, eds)),
|
|
||||||
[setEdges]
|
[setEdges]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -1,19 +1,28 @@
|
|||||||
# @xyflow/react
|
# @xyflow/react
|
||||||
|
|
||||||
|
## 12.0.0-next.8
|
||||||
|
|
||||||
|
### Patch changes
|
||||||
|
|
||||||
|
- fix `OnNodeDrag` type
|
||||||
|
|
||||||
## 12.0.0-next.7
|
## 12.0.0-next.7
|
||||||
|
|
||||||
## Minor changes
|
## Minor changes
|
||||||
|
|
||||||
- pass Node/Edge types to changes thanks @FelipeEmos
|
|
||||||
- use position instead of positionAbsolute for `getNodesBounds`
|
|
||||||
- add second option param to `screenToFlowPosition` for configuring if `snapToGrid` should be used
|
- add second option param to `screenToFlowPosition` for configuring if `snapToGrid` should be used
|
||||||
|
|
||||||
|
### Patch changes
|
||||||
|
|
||||||
|
- pass `Node`/ `Edge` types to changes thanks @FelipeEmos
|
||||||
|
- use position instead of positionAbsolute for `getNodesBounds`
|
||||||
- infer types for `getIncomers`, `getOutgoers`, `updateEdge`, `addEdge` and `getConnectedEdges` thanks @joeyballentine
|
- infer types for `getIncomers`, `getOutgoers`, `updateEdge`, `addEdge` and `getConnectedEdges` thanks @joeyballentine
|
||||||
- refactor handles: prefix with flow id for handling nested flows
|
- refactor handles: prefix with flow id for handling nested flows
|
||||||
- add comments for types like `ReactFlowProps` or `Node` for a better developer experience
|
- add comments for types like `ReactFlowProps` or `Node` for a better developer experience
|
||||||
|
|
||||||
## 12.0.0-next.6
|
## 12.0.0-next.6
|
||||||
|
|
||||||
### Minor changes
|
### Patch changes
|
||||||
|
|
||||||
- fix `deleteElements`
|
- fix `deleteElements`
|
||||||
- refactor internal `applyChanges`
|
- refactor internal `applyChanges`
|
||||||
|
|||||||
Reference in New Issue
Block a user