mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-12 03:36:59 +00:00
chore(deps): bump frontend dependencies (#1345)
Apply the queued frontend dependency group update (29 packages, notably @xyflow/react 12.11.0, radix-ui minors, react 19.2.7, vite 8.0.16, and vitest 4.1.8) and regenerate the lockfile. @xyflow/react 12.11.0 retyped OnNodeDrag so the drag event is the DOM MouseEvent | TouchEvent rather than a React synthetic event. Update the FleetTopology onNodeDragStop handler signature to match.
This commit is contained in:
@@ -349,7 +349,7 @@ export function FleetTopology({
|
||||
}
|
||||
}, []);
|
||||
|
||||
const handleNodeDragStop = useCallback((_event: React.MouseEvent, _node: Node, allDragged: Node[]) => {
|
||||
const handleNodeDragStop = useCallback((_event: MouseEvent | TouchEvent, _node: Node, allDragged: Node[]) => {
|
||||
if (effectiveMode !== 'free') return;
|
||||
setFlowNodes(current => {
|
||||
const dragged = new Map(allDragged.map(n => [n.id, n.position]));
|
||||
|
||||
Reference in New Issue
Block a user