@reactflow/core
Advanced tools
Comparing version 11.5.2 to 11.5.3
import { MouseEvent as ReactMouseEvent, TouchEvent as ReactTouchEvent } from 'react'; | ||
import { ConnectionMode } from '../../types'; | ||
import { ConnectionMode, ConnectionStatus } from '../../types'; | ||
import type { Connection, HandleType, XYPosition, Node, NodeHandleBounds } from '../../types'; | ||
@@ -19,3 +19,3 @@ export type ConnectionHandle = { | ||
}; | ||
export declare function isValidHandle(event: MouseEvent | TouchEvent | ReactMouseEvent | ReactTouchEvent, handle: Pick<ConnectionHandle, 'nodeId' | 'id' | 'type'>, connectionMode: ConnectionMode, fromNodeId: string, fromHandleId: string | null, fromType: string, isValidConnection: ValidConnectionFunc, doc: Document | ShadowRoot): Result; | ||
export declare function isValidHandle(event: MouseEvent | TouchEvent | ReactMouseEvent | ReactTouchEvent, handle: Pick<ConnectionHandle, 'nodeId' | 'id' | 'type'> | null, connectionMode: ConnectionMode, fromNodeId: string, fromHandleId: string | null, fromType: string, isValidConnection: ValidConnectionFunc, doc: Document | ShadowRoot): Result; | ||
type GetHandleLookupParams = { | ||
@@ -30,3 +30,4 @@ nodes: Node[]; | ||
export declare function resetRecentHandle(handleDomNode: Element): void; | ||
export declare function getConnectionStatus(isInsideConnectionRadius: boolean, isHandleValid: boolean): ConnectionStatus; | ||
export {}; | ||
//# sourceMappingURL=utils.d.ts.map |
@@ -5,3 +5,3 @@ import type { RefObject } from 'react'; | ||
export declare function hasSelector(target: Element, selector: string, nodeRef: RefObject<Element>): boolean; | ||
export declare function getDragItems(nodeInternals: NodeInternals, mousePos: XYPosition, nodeId?: string): NodeDragItem[]; | ||
export declare function getDragItems(nodeInternals: NodeInternals, nodesDraggable: boolean, mousePos: XYPosition, nodeId?: string): NodeDragItem[]; | ||
export declare function calcNextPosition(node: NodeDragItem | Node, nextPosition: XYPosition, nodeInternals: NodeInternals, nodeExtent?: CoordinateExtent, nodeOrigin?: NodeOrigin, onError?: OnError): { | ||
@@ -8,0 +8,0 @@ position: XYPosition; |
import type { CSSProperties, ComponentType, HTMLAttributes, ReactNode, MouseEvent as ReactMouseEvent } from 'react'; | ||
import { Position } from '.'; | ||
import { ConnectionStatus, Position } from '.'; | ||
import type { Connection, HandleElement, HandleType, Node } from '.'; | ||
@@ -115,2 +115,3 @@ type EdgeLabelOptions = { | ||
toPosition: Position; | ||
connectionStatus: ConnectionStatus | null; | ||
}; | ||
@@ -117,0 +118,0 @@ export type ConnectionLineComponent = ComponentType<ConnectionLineComponentProps>; |
@@ -45,2 +45,3 @@ import type { MouseEvent as ReactMouseEvent, TouchEvent as ReactTouchEvent, ComponentType, MemoExoticComponent } from 'react'; | ||
} | ||
export type ConnectionStatus = 'valid' | 'invalid'; | ||
export declare enum ConnectionMode { | ||
@@ -133,2 +134,3 @@ Strict = "strict", | ||
connectionPosition: XYPosition; | ||
connectionStatus: ConnectionStatus | null; | ||
connectionMode: ConnectionMode; | ||
@@ -135,0 +137,0 @@ snapToGrid: boolean; |
import { MouseEvent as ReactMouseEvent, TouchEvent as ReactTouchEvent } from 'react'; | ||
import { ConnectionMode } from '../../types'; | ||
import { ConnectionMode, ConnectionStatus } from '../../types'; | ||
import type { Connection, HandleType, XYPosition, Node, NodeHandleBounds } from '../../types'; | ||
@@ -19,3 +19,3 @@ export type ConnectionHandle = { | ||
}; | ||
export declare function isValidHandle(event: MouseEvent | TouchEvent | ReactMouseEvent | ReactTouchEvent, handle: Pick<ConnectionHandle, 'nodeId' | 'id' | 'type'>, connectionMode: ConnectionMode, fromNodeId: string, fromHandleId: string | null, fromType: string, isValidConnection: ValidConnectionFunc, doc: Document | ShadowRoot): Result; | ||
export declare function isValidHandle(event: MouseEvent | TouchEvent | ReactMouseEvent | ReactTouchEvent, handle: Pick<ConnectionHandle, 'nodeId' | 'id' | 'type'> | null, connectionMode: ConnectionMode, fromNodeId: string, fromHandleId: string | null, fromType: string, isValidConnection: ValidConnectionFunc, doc: Document | ShadowRoot): Result; | ||
type GetHandleLookupParams = { | ||
@@ -30,3 +30,4 @@ nodes: Node[]; | ||
export declare function resetRecentHandle(handleDomNode: Element): void; | ||
export declare function getConnectionStatus(isInsideConnectionRadius: boolean, isHandleValid: boolean): ConnectionStatus; | ||
export {}; | ||
//# sourceMappingURL=utils.d.ts.map |
@@ -5,3 +5,3 @@ import type { RefObject } from 'react'; | ||
export declare function hasSelector(target: Element, selector: string, nodeRef: RefObject<Element>): boolean; | ||
export declare function getDragItems(nodeInternals: NodeInternals, mousePos: XYPosition, nodeId?: string): NodeDragItem[]; | ||
export declare function getDragItems(nodeInternals: NodeInternals, nodesDraggable: boolean, mousePos: XYPosition, nodeId?: string): NodeDragItem[]; | ||
export declare function calcNextPosition(node: NodeDragItem | Node, nextPosition: XYPosition, nodeInternals: NodeInternals, nodeExtent?: CoordinateExtent, nodeOrigin?: NodeOrigin, onError?: OnError): { | ||
@@ -8,0 +8,0 @@ position: XYPosition; |
import type { CSSProperties, ComponentType, HTMLAttributes, ReactNode, MouseEvent as ReactMouseEvent } from 'react'; | ||
import { Position } from '.'; | ||
import { ConnectionStatus, Position } from '.'; | ||
import type { Connection, HandleElement, HandleType, Node } from '.'; | ||
@@ -115,2 +115,3 @@ type EdgeLabelOptions = { | ||
toPosition: Position; | ||
connectionStatus: ConnectionStatus | null; | ||
}; | ||
@@ -117,0 +118,0 @@ export type ConnectionLineComponent = ComponentType<ConnectionLineComponentProps>; |
@@ -45,2 +45,3 @@ import type { MouseEvent as ReactMouseEvent, TouchEvent as ReactTouchEvent, ComponentType, MemoExoticComponent } from 'react'; | ||
} | ||
export type ConnectionStatus = 'valid' | 'invalid'; | ||
export declare enum ConnectionMode { | ||
@@ -133,2 +134,3 @@ Strict = "strict", | ||
connectionPosition: XYPosition; | ||
connectionStatus: ConnectionStatus | null; | ||
connectionMode: ConnectionMode; | ||
@@ -135,0 +137,0 @@ snapToGrid: boolean; |
{ | ||
"name": "@reactflow/core", | ||
"version": "11.5.2", | ||
"version": "11.5.3", | ||
"description": "Core components and util functions of React Flow.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
622455
7824