chore(changelog): update
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
# @xyflow/react
|
# @xyflow/react
|
||||||
|
|
||||||
|
## 12.0.0-next.11
|
||||||
|
|
||||||
|
## Patch changes
|
||||||
|
|
||||||
|
- fix `ref` prop for `ReactFlow` and `Handle` component
|
||||||
|
|
||||||
## 12.0.0-next.10
|
## 12.0.0-next.10
|
||||||
|
|
||||||
## ⚠️ Breaking changes
|
## ⚠️ Breaking changes
|
||||||
|
|||||||
@@ -1,15 +1,10 @@
|
|||||||
/*
|
|
||||||
* The Handle component is used to connect nodes. When the user mousedowns a handle, we start the connection process.
|
|
||||||
* The user can then drag the connection to another handle or node. When the user releases the mouse, we check if the
|
|
||||||
* connection is valid and if so, we call the onConnect callback.
|
|
||||||
*/
|
|
||||||
import {
|
import {
|
||||||
memo,
|
memo,
|
||||||
HTMLAttributes,
|
|
||||||
forwardRef,
|
forwardRef,
|
||||||
MouseEvent as ReactMouseEvent,
|
type HTMLAttributes,
|
||||||
TouchEvent as ReactTouchEvent,
|
type MouseEvent as ReactMouseEvent,
|
||||||
ForwardedRef,
|
type TouchEvent as ReactTouchEvent,
|
||||||
|
type ForwardedRef,
|
||||||
} from 'react';
|
} from 'react';
|
||||||
import cc from 'classcat';
|
import cc from 'classcat';
|
||||||
import { shallow } from 'zustand/shallow';
|
import { shallow } from 'zustand/shallow';
|
||||||
@@ -245,6 +240,6 @@ function HandleComponent(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Handle component is the part of a node that can be used to connect nodes.
|
* The Handle component is a UI element that is used to connect nodes.
|
||||||
*/
|
*/
|
||||||
export const Handle = memo(forwardRef(HandleComponent));
|
export const Handle = memo(forwardRef(HandleComponent));
|
||||||
|
|||||||
Reference in New Issue
Block a user