From cefdfd4e708d027cf0d864130e05da5d2b6c41fa Mon Sep 17 00:00:00 2001 From: moklick Date: Mon, 12 Jun 2023 12:14:57 +0200 Subject: [PATCH] chore(utils): cleanup --- packages/system/src/constants.ts | 1 + packages/system/src/utils/graph.ts | 2 +- packages/system/src/xyhandle/XYHandle.ts | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/system/src/constants.ts b/packages/system/src/constants.ts index 1819445b..44fda8b7 100644 --- a/packages/system/src/constants.ts +++ b/packages/system/src/constants.ts @@ -1,5 +1,6 @@ import { HandleType } from './types'; +// @todo: update URLs to xyflow export const errorMessages = { error001: () => '[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001', diff --git a/packages/system/src/utils/graph.ts b/packages/system/src/utils/graph.ts index dda06687..01360264 100644 --- a/packages/system/src/utils/graph.ts +++ b/packages/system/src/utils/graph.ts @@ -62,7 +62,7 @@ export const getIncomersBase = - `reactflow__edge-${source}${sourceHandle || ''}-${target}${targetHandle || ''}`; + `xyflow__edge-${source}${sourceHandle || ''}-${target}${targetHandle || ''}`; const connectionExists = (edge: BaseEdge, edges: BaseEdge[]) => { return edges.some( diff --git a/packages/system/src/xyhandle/XYHandle.ts b/packages/system/src/xyhandle/XYHandle.ts index 16d6e99f..25ad28d2 100644 --- a/packages/system/src/xyhandle/XYHandle.ts +++ b/packages/system/src/xyhandle/XYHandle.ts @@ -194,7 +194,6 @@ function onPointerDown( if (connection.source !== connection.target && handleDomNode) { resetRecentHandle(prevActiveHandle, lib); prevActiveHandle = handleDomNode; - // @todo: remove the old class names "react-flow__handle-" in the next major version handleDomNode.classList.add('connecting', `${lib}-flow__handle-connecting`); handleDomNode.classList.toggle('valid', isValid); handleDomNode.classList.toggle(`${lib}-flow__handle-valid`, isValid);