Add comprehensive frontend UI and distributed infrastructure

Frontend Enhancements:
- Complete React TypeScript frontend with modern UI components
- Distributed workflows management interface with real-time updates
- Socket.IO integration for live agent status monitoring
- Agent management dashboard with cluster visualization
- Project management interface with metrics and task tracking
- Responsive design with proper error handling and loading states

Backend Infrastructure:
- Distributed coordinator for multi-agent workflow orchestration
- Cluster management API with comprehensive agent operations
- Enhanced database models for agents and projects
- Project service for filesystem-based project discovery
- Performance monitoring and metrics collection
- Comprehensive API documentation and error handling

Documentation:
- Complete distributed development guide (README_DISTRIBUTED.md)
- Comprehensive development report with architecture insights
- System configuration templates and deployment guides

The platform now provides a complete web interface for managing the distributed AI cluster
with real-time monitoring, workflow orchestration, and agent coordination capabilities.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
anthonyrawlins
2025-07-10 08:41:59 +10:00
parent fc0eec91ef
commit 85bf1341f3
28348 changed files with 2646896 additions and 69 deletions

21
frontend/node_modules/@reactflow/core/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2019-2023 webkid GmbH
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

10
frontend/node_modules/@reactflow/core/README.md generated vendored Normal file
View File

@@ -0,0 +1,10 @@
# @reactflow/core
Core components and util functions of React Flow.
## Installation
```sh
npm install @reactflow/core
```

243
frontend/node_modules/@reactflow/core/dist/base.css generated vendored Normal file
View File

@@ -0,0 +1,243 @@
/* this will be exported as base.css and can be used for a basic styling */
/* these are the necessary styles for React Flow, they get used by base.css and style.css */
.react-flow {
direction: ltr;
}
.react-flow__container {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.react-flow__pane {
z-index: 1;
cursor: -webkit-grab;
cursor: grab;
}
.react-flow__pane.selection {
cursor: pointer;
}
.react-flow__pane.dragging {
cursor: -webkit-grabbing;
cursor: grabbing;
}
.react-flow__viewport {
transform-origin: 0 0;
z-index: 2;
pointer-events: none;
}
.react-flow__renderer {
z-index: 4;
}
.react-flow__selection {
z-index: 6;
}
.react-flow__nodesselection-rect:focus,
.react-flow__nodesselection-rect:focus-visible {
outline: none;
}
.react-flow .react-flow__edges {
pointer-events: none;
overflow: visible;
}
.react-flow__edge-path,
.react-flow__connection-path {
stroke: #b1b1b7;
stroke-width: 1;
fill: none;
}
.react-flow__edge {
pointer-events: visibleStroke;
cursor: pointer;
}
.react-flow__edge.animated path {
stroke-dasharray: 5;
-webkit-animation: dashdraw 0.5s linear infinite;
animation: dashdraw 0.5s linear infinite;
}
.react-flow__edge.animated path.react-flow__edge-interaction {
stroke-dasharray: none;
-webkit-animation: none;
animation: none;
}
.react-flow__edge.inactive {
pointer-events: none;
}
.react-flow__edge.selected,
.react-flow__edge:focus,
.react-flow__edge:focus-visible {
outline: none;
}
.react-flow__edge.selected .react-flow__edge-path,
.react-flow__edge:focus .react-flow__edge-path,
.react-flow__edge:focus-visible .react-flow__edge-path {
stroke: #555;
}
.react-flow__edge-textwrapper {
pointer-events: all;
}
.react-flow__edge-textbg {
fill: white;
}
.react-flow__edge .react-flow__edge-text {
pointer-events: none;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.react-flow__connection {
pointer-events: none;
}
.react-flow__connection .animated {
stroke-dasharray: 5;
-webkit-animation: dashdraw 0.5s linear infinite;
animation: dashdraw 0.5s linear infinite;
}
.react-flow__connectionline {
z-index: 1001;
}
.react-flow__nodes {
pointer-events: none;
transform-origin: 0 0;
}
.react-flow__node {
position: absolute;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
pointer-events: all;
transform-origin: 0 0;
box-sizing: border-box;
cursor: -webkit-grab;
cursor: grab;
}
.react-flow__node.dragging {
cursor: -webkit-grabbing;
cursor: grabbing;
}
.react-flow__nodesselection {
z-index: 3;
transform-origin: left top;
pointer-events: none;
}
.react-flow__nodesselection-rect {
position: absolute;
pointer-events: all;
cursor: -webkit-grab;
cursor: grab;
}
.react-flow__handle {
position: absolute;
pointer-events: none;
min-width: 5px;
min-height: 5px;
background-color: #333;
}
.react-flow__handle.connectionindicator {
pointer-events: all;
cursor: crosshair;
}
.react-flow__handle-bottom {
top: auto;
left: 50%;
bottom: -4px;
transform: translate(-50%, 0);
}
.react-flow__handle-top {
left: 50%;
top: -4px;
transform: translate(-50%, 0);
}
.react-flow__handle-left {
top: 50%;
left: -4px;
transform: translate(0, -50%);
}
.react-flow__handle-right {
right: -4px;
top: 50%;
transform: translate(0, -50%);
}
.react-flow__edgeupdater {
cursor: move;
pointer-events: all;
}
.react-flow__panel {
position: absolute;
z-index: 5;
margin: 15px;
}
.react-flow__panel.top {
top: 0;
}
.react-flow__panel.bottom {
bottom: 0;
}
.react-flow__panel.left {
left: 0;
}
.react-flow__panel.right {
right: 0;
}
.react-flow__panel.center {
left: 50%;
transform: translateX(-50%);
}
.react-flow__attribution {
font-size: 10px;
background: rgba(255, 255, 255, 0.5);
padding: 2px 3px;
margin: 0;
}
.react-flow__attribution a {
text-decoration: none;
color: #999;
}
@-webkit-keyframes dashdraw {
from {
stroke-dashoffset: 10;
}
}
@keyframes dashdraw {
from {
stroke-dashoffset: 10;
}
}
.react-flow__edgelabel-renderer {
position: absolute;
width: 100%;
height: 100%;
pointer-events: none;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.react-flow__node-default,
.react-flow__node-input,
.react-flow__node-output,
.react-flow__node-group {
border-width: 1px;
border-style: solid;
border-color: #bbb;
}
.react-flow__node-default.selected,
.react-flow__node-default:focus,
.react-flow__node-default:focus-visible,
.react-flow__node-input.selected,
.react-flow__node-input:focus,
.react-flow__node-input:focus-visible,
.react-flow__node-output.selected,
.react-flow__node-output:focus,
.react-flow__node-output:focus-visible,
.react-flow__node-group.selected,
.react-flow__node-group:focus,
.react-flow__node-group:focus-visible {
outline: none;
border: 1px solid #555;
}
.react-flow__nodesselection-rect,
.react-flow__selection {
background: rgba(150, 150, 180, 0.1);
border: 1px dotted rgba(155, 155, 155, 0.8);
}

View File

@@ -0,0 +1,10 @@
/// <reference types="react" />
export declare const ARIA_NODE_DESC_KEY = "react-flow__node-desc";
export declare const ARIA_EDGE_DESC_KEY = "react-flow__edge-desc";
export declare const ARIA_LIVE_MESSAGE = "react-flow__aria-live";
declare function A11yDescriptions({ rfId, disableKeyboardA11y }: {
rfId: string;
disableKeyboardA11y: boolean;
}): JSX.Element;
export default A11yDescriptions;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/A11yDescriptions/index.tsx"],"names":[],"mappings":";AAkBA,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAC1D,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAC1D,eAAO,MAAM,iBAAiB,0BAA0B,CAAC;AAczD,iBAAS,gBAAgB,CAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,mBAAmB,EAAE,OAAO,CAAA;CAAE,eActG;AAED,eAAe,gBAAgB,CAAC"}

View File

@@ -0,0 +1,9 @@
/// <reference types="react" />
import type { PanelPosition, ProOptions } from '../../types';
type AttributionProps = {
proOptions?: ProOptions;
position?: PanelPosition;
};
declare function Attribution({ proOptions, position }: AttributionProps): JSX.Element | null;
export default Attribution;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Attribution/index.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE7D,KAAK,gBAAgB,GAAG;IACtB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B,CAAC;AAEF,iBAAS,WAAW,CAAC,EAAE,UAAU,EAAE,QAAyB,EAAE,EAAE,gBAAgB,sBAgB/E;AAED,eAAe,WAAW,CAAC"}

View File

@@ -0,0 +1,12 @@
import { type CSSProperties } from 'react';
import type { ConnectionLineComponent } from '../../types';
import { ConnectionLineType } from '../../types';
type ConnectionLineWrapperProps = {
type: ConnectionLineType;
component?: ConnectionLineComponent;
containerStyle?: CSSProperties;
style?: CSSProperties;
};
declare function ConnectionLineWrapper({ containerStyle, style, type, component }: ConnectionLineWrapperProps): JSX.Element | null;
export default ConnectionLineWrapper;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/ConnectionLine/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,aAAa,EAAe,MAAM,OAAO,CAAC;AAS/D,OAAO,KAAK,EACV,uBAAuB,EAKxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAY,kBAAkB,EAAkB,MAAM,aAAa,CAAC;AAgH3E,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,CAAC,EAAE,uBAAuB,CAAC;IACpC,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAWF,iBAAS,qBAAqB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,0BAA0B,sBA2BpG;AAED,eAAe,qBAAqB,CAAC"}

View File

@@ -0,0 +1,6 @@
import { type ReactNode } from 'react';
declare function EdgeLabelRenderer({ children }: {
children: ReactNode;
}): import("react").ReactPortal | null;
export default EdgeLabelRenderer;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/EdgeLabelRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,iBAAS,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,sCAQ/D;AAED,eAAe,iBAAiB,CAAC"}

View File

@@ -0,0 +1,8 @@
/// <reference types="react" />
import type { BaseEdgeProps } from '../../types';
declare const BaseEdge: {
({ id, path, labelX, labelY, label, labelStyle, labelShowBg, labelBgStyle, labelBgPadding, labelBgBorderRadius, style, markerEnd, markerStart, interactionWidth, }: BaseEdgeProps): JSX.Element;
displayName: string;
};
export default BaseEdge;
//# sourceMappingURL=BaseEdge.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BaseEdge.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Edges/BaseEdge.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,QAAA,MAAM,QAAQ;wKAeX,aAAa;;CAmCf,CAAC;AAIF,eAAe,QAAQ,CAAC"}

View File

@@ -0,0 +1,16 @@
import React from 'react';
import { Position } from '../../types';
import type { BezierEdgeProps } from '../../types';
export interface GetBezierPathParams {
sourceX: number;
sourceY: number;
sourcePosition?: Position;
targetX: number;
targetY: number;
targetPosition?: Position;
curvature?: number;
}
export declare function getBezierPath({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition, curvature, }: GetBezierPathParams): [path: string, labelX: number, labelY: number, offsetX: number, offsetY: number];
declare const BezierEdge: React.MemoExoticComponent<({ sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, label, labelStyle, labelShowBg, labelBgStyle, labelBgPadding, labelBgBorderRadius, style, markerEnd, markerStart, pathOptions, interactionWidth, }: BezierEdgeProps) => JSX.Element>;
export default BezierEdge;
//# sourceMappingURL=BezierEdge.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BezierEdge.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Edges/BezierEdge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAIpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAgCD,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,OAAO,EACP,cAAgC,EAChC,OAAO,EACP,OAAO,EACP,cAA6B,EAC7B,SAAgB,GACjB,EAAE,mBAAmB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAmCxG;AAED,QAAA,MAAM,UAAU,uPAmBX,eAAe,iBA6BnB,CAAC;AAIF,eAAe,UAAU,CAAC"}

View File

@@ -0,0 +1,14 @@
import type { FC, MouseEvent as ReactMouseEvent, SVGAttributes } from 'react';
import { Position } from '../../types';
export interface EdgeAnchorProps extends SVGAttributes<SVGGElement> {
position: Position;
centerX: number;
centerY: number;
radius?: number;
onMouseDown: (event: ReactMouseEvent<SVGGElement, MouseEvent>) => void;
onMouseEnter: (event: ReactMouseEvent<SVGGElement, MouseEvent>) => void;
onMouseOut: (event: ReactMouseEvent<SVGGElement, MouseEvent>) => void;
type: string;
}
export declare const EdgeAnchor: FC<EdgeAnchorProps>;
//# sourceMappingURL=EdgeAnchor.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"EdgeAnchor.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Edges/EdgeAnchor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,UAAU,IAAI,eAAe,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG9E,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAcvC,MAAM,WAAW,eAAgB,SAAQ,aAAa,CAAC,WAAW,CAAC;IACjE,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IACvE,YAAY,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IACxE,UAAU,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IACtE,IAAI,EAAE,MAAM,CAAC;CACd;AAID,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAqB1C,CAAC"}

View File

@@ -0,0 +1,5 @@
import React from 'react';
import { EdgeTextProps } from '../../types';
declare const _default: React.NamedExoticComponent<React.PropsWithChildren<EdgeTextProps>>;
export default _default;
//# sourceMappingURL=EdgeText.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"EdgeText.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Edges/EdgeText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAIjE,OAAO,EAAE,aAAa,EAAQ,MAAM,aAAa,CAAC;;AA8DlD,wBAA8B"}

View File

@@ -0,0 +1,15 @@
import React from 'react';
import { Position } from '../../types';
import type { EdgeProps } from '../../types';
export interface GetSimpleBezierPathParams {
sourceX: number;
sourceY: number;
sourcePosition?: Position;
targetX: number;
targetY: number;
targetPosition?: Position;
}
export declare function getSimpleBezierPath({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition, }: GetSimpleBezierPathParams): [path: string, labelX: number, labelY: number, offsetX: number, offsetY: number];
declare const SimpleBezierEdge: React.MemoExoticComponent<({ sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, label, labelStyle, labelShowBg, labelBgStyle, labelBgPadding, labelBgBorderRadius, style, markerEnd, markerStart, interactionWidth, }: EdgeProps) => JSX.Element>;
export default SimpleBezierEdge;
//# sourceMappingURL=SimpleBezierEdge.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"SimpleBezierEdge.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Edges/SimpleBezierEdge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAIpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,QAAQ,CAAC;CAC3B;AAkBD,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,OAAO,EACP,cAAgC,EAChC,OAAO,EACP,OAAO,EACP,cAA6B,GAC9B,EAAE,yBAAyB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAiC9G;AAED,QAAA,MAAM,gBAAgB,0OAkBjB,SAAS,iBA4Bb,CAAC;AAIF,eAAe,gBAAgB,CAAC"}

View File

@@ -0,0 +1,19 @@
import React from 'react';
import { Position } from '../../types';
import type { SmoothStepEdgeProps } from '../../types';
export interface GetSmoothStepPathParams {
sourceX: number;
sourceY: number;
sourcePosition?: Position;
targetX: number;
targetY: number;
targetPosition?: Position;
borderRadius?: number;
centerX?: number;
centerY?: number;
offset?: number;
}
export declare function getSmoothStepPath({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition, borderRadius, centerX, centerY, offset, }: GetSmoothStepPathParams): [path: string, labelX: number, labelY: number, offsetX: number, offsetY: number];
declare const SmoothStepEdge: React.MemoExoticComponent<({ sourceX, sourceY, targetX, targetY, label, labelStyle, labelShowBg, labelBgStyle, labelBgPadding, labelBgBorderRadius, style, sourcePosition, targetPosition, markerEnd, markerStart, pathOptions, interactionWidth, }: SmoothStepEdgeProps) => JSX.Element>;
export default SmoothStepEdge;
//# sourceMappingURL=SmoothStepEdge.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"SmoothStepEdge.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Edges/SmoothStepEdge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAIpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAc,MAAM,aAAa,CAAC;AAEnE,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAkLD,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,OAAO,EACP,cAAgC,EAChC,OAAO,EACP,OAAO,EACP,cAA6B,EAC7B,YAAgB,EAChB,OAAO,EACP,OAAO,EACP,MAAW,GACZ,EAAE,uBAAuB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAyB5G;AAED,QAAA,MAAM,cAAc,uPAmBf,mBAAmB,iBA8BvB,CAAC;AAIF,eAAe,cAAc,CAAC"}

View File

@@ -0,0 +1,5 @@
import React from 'react';
import type { SmoothStepEdgeProps } from '../../types';
declare const StepEdge: React.MemoExoticComponent<(props: SmoothStepEdgeProps) => JSX.Element>;
export default StepEdge;
//# sourceMappingURL=StepEdge.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"StepEdge.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Edges/StepEdge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAG7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,QAAA,MAAM,QAAQ,oCAAgB,mBAAmB,iBAK/C,CAAC;AAIH,eAAe,QAAQ,CAAC"}

View File

@@ -0,0 +1,12 @@
import React from 'react';
import type { EdgeProps } from '../../types';
export type GetStraightPathParams = {
sourceX: number;
sourceY: number;
targetX: number;
targetY: number;
};
export declare function getStraightPath({ sourceX, sourceY, targetX, targetY, }: GetStraightPathParams): [path: string, labelX: number, labelY: number, offsetX: number, offsetY: number];
declare const StraightEdge: React.MemoExoticComponent<({ sourceX, sourceY, targetX, targetY, label, labelStyle, labelShowBg, labelBgStyle, labelBgPadding, labelBgBorderRadius, style, markerEnd, markerStart, interactionWidth, }: EdgeProps) => JSX.Element>;
export default StraightEdge;
//# sourceMappingURL=StraightEdge.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"StraightEdge.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Edges/StraightEdge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAIpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,GACR,EAAE,qBAAqB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAS1G;AAED,QAAA,MAAM,YAAY,0MAgBb,SAAS,iBAqBb,CAAC;AAIF,eAAe,YAAY,CAAC"}

View File

@@ -0,0 +1,6 @@
export { default as SimpleBezierEdge } from './SimpleBezierEdge';
export { default as SmoothStepEdge } from './SmoothStepEdge';
export { default as StepEdge } from './StepEdge';
export { default as StraightEdge } from './StraightEdge';
export { default as BezierEdge } from './BezierEdge';
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Edges/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC"}

View File

@@ -0,0 +1,22 @@
import { MouseEvent as ReactMouseEvent } from 'react';
import { StoreApi } from 'zustand';
import type { Edge, MarkerType, ReactFlowState } from '../../types';
export declare const getMarkerEnd: (markerType?: MarkerType, markerEndId?: string) => string;
export declare function getMouseHandler(id: string, getState: StoreApi<ReactFlowState>['getState'], handler?: (event: ReactMouseEvent<SVGGElement, MouseEvent>, edge: Edge) => void): ((event: ReactMouseEvent<SVGGElement, MouseEvent>) => void) | undefined;
export declare function getEdgeCenter({ sourceX, sourceY, targetX, targetY, }: {
sourceX: number;
sourceY: number;
targetX: number;
targetY: number;
}): [number, number, number, number];
export declare function getBezierEdgeCenter({ sourceX, sourceY, targetX, targetY, sourceControlX, sourceControlY, targetControlX, targetControlY, }: {
sourceX: number;
sourceY: number;
targetX: number;
targetY: number;
sourceControlX: number;
sourceControlY: number;
targetControlX: number;
targetControlY: number;
}): [number, number, number, number];
//# sourceMappingURL=utils.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Edges/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEpE,eAAO,MAAM,YAAY,gBAAiB,UAAU,gBAAgB,MAAM,KAAG,MAM5E,CAAC;AAEF,wBAAgB,eAAe,CAC7B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,EAC9C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,YAInE,gBAAgB,WAAW,EAAE,UAAU,CAAC,uBAOrD;AAGD,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,GACR,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAQnC;AAED,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,GACf,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;CACxB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CASnC"}

View File

@@ -0,0 +1,9 @@
import React from 'react';
import type { ComponentType } from 'react';
import type { EdgeProps, WrapEdgeProps } from '../../types';
declare const _default: (EdgeComponent: ComponentType<EdgeProps>) => React.MemoExoticComponent<{
({ id, className, type, data, onClick, onEdgeDoubleClick, selected, animated, label, labelStyle, labelShowBg, labelBgStyle, labelBgPadding, labelBgBorderRadius, style, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, elementsSelectable, hidden, sourceHandleId, targetHandleId, onContextMenu, onMouseEnter, onMouseMove, onMouseLeave, reconnectRadius, onReconnect, onReconnectStart, onReconnectEnd, markerEnd, markerStart, rfId, ariaLabel, isFocusable, isReconnectable, pathOptions, interactionWidth, disableKeyboardA11y, }: WrapEdgeProps): JSX.Element | null;
displayName: string;
}>;
export default _default;
//# sourceMappingURL=wrapEdge.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"wrapEdge.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Edges/wrapEdge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AAU1D,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAc,MAAM,aAAa,CAAC;wCAIzC,cAAc,SAAS,CAAC;kjBA8ClD,aAAa,GAAG,WAAW,GAAG,IAAI;;;AA9CvC,wBA8OE"}

View File

@@ -0,0 +1,17 @@
import type { MouseEvent as ReactMouseEvent, TouchEvent as ReactTouchEvent } from 'react';
import { StoreApi } from 'zustand';
import type { OnConnect, HandleType, ReactFlowState } from '../../types';
import { ValidConnectionFunc } from './utils';
export declare function handlePointerDown({ event, handleId, nodeId, onConnect, isTarget, getState, setState, isValidConnection, edgeUpdaterType, onReconnectEnd, }: {
event: ReactMouseEvent | ReactTouchEvent;
handleId: string | null;
nodeId: string;
onConnect: OnConnect;
isTarget: boolean;
getState: StoreApi<ReactFlowState>['getState'];
setState: StoreApi<ReactFlowState>['setState'];
isValidConnection: ValidConnectionFunc;
edgeUpdaterType?: HandleType;
onReconnectEnd?: (evt: MouseEvent | TouchEvent) => void;
}): void;
//# sourceMappingURL=handler.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Handle/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,eAAe,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,OAAO,CAAC;AAC1F,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,EAAc,MAAM,aAAa,CAAC;AAErF,OAAO,EAQL,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,QAAQ,EACR,MAAM,EACN,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,cAAc,GACf,EAAE;IACD,KAAK,EAAE,eAAe,GAAG,eAAe,CAAC;IACzC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,CAAC;IAC/C,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,CAAC;IAC/C,iBAAiB,EAAE,mBAAmB,CAAC;IACvC,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,GAAG,UAAU,KAAK,IAAI,CAAC;CACzD,GAAG,IAAI,CA2JP"}

View File

@@ -0,0 +1,6 @@
import React, { HTMLAttributes } from 'react';
import { type HandleProps } from '../../types';
export type HandleComponentProps = HandleProps & Omit<HTMLAttributes<HTMLDivElement>, 'id'>;
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<HandleProps & Omit<React.HTMLAttributes<HTMLDivElement>, "id"> & React.RefAttributes<HTMLDivElement>>>;
export default _default;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Handle/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,cAAc,EAIf,MAAM,OAAO,CAAC;AASf,OAAO,EAAE,KAAK,WAAW,EAA8D,MAAM,aAAa,CAAC;AAM3G,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,CAAC;;AAqL5F,wBAA4B"}

View File

@@ -0,0 +1,49 @@
import { MouseEvent as ReactMouseEvent, TouchEvent as ReactTouchEvent } from 'react';
import { ConnectingHandle, ConnectionMode, ConnectionStatus } from '../../types';
import type { Connection, HandleType, XYPosition, Node, NodeHandleBounds } from '../../types';
export type ConnectionHandle = {
id: string | null;
type: HandleType | null;
nodeId: string;
x: number;
y: number;
};
export type ValidConnectionFunc = (connection: Connection) => boolean;
export declare function getHandles(node: Node, handleBounds: NodeHandleBounds, type: HandleType, currentHandle: string): ConnectionHandle[];
export declare function getClosestHandle(event: MouseEvent | TouchEvent | ReactMouseEvent | ReactTouchEvent, doc: Document | ShadowRoot, pos: XYPosition, connectionRadius: number, handles: ConnectionHandle[], validator: (handle: Pick<ConnectionHandle, 'nodeId' | 'id' | 'type'>) => Result): {
handle: {
id: string | null;
type: HandleType | null;
nodeId: string;
x: number;
y: number;
};
validHandleResult: Result;
} | {
handle: null;
validHandleResult: Result;
};
type Result = {
handleDomNode: Element | null;
isValid: boolean;
connection: Connection;
endHandle: ConnectingHandle | null;
};
export declare function isValidHandle(handle: Pick<ConnectionHandle, 'nodeId' | 'id' | 'type'>, connectionMode: ConnectionMode, fromNodeId: string, fromHandleId: string | null, fromType: HandleType, isValidConnection: ValidConnectionFunc, doc: Document | ShadowRoot): {
handleDomNode: Element | null;
isValid: boolean;
connection: Connection;
endHandle: ConnectingHandle | null;
};
type GetHandleLookupParams = {
nodes: Node[];
nodeId: string;
handleId: string | null;
handleType: string;
};
export declare function getHandleLookup({ nodes, nodeId, handleId, handleType }: GetHandleLookupParams): ConnectionHandle[];
export declare function getHandleType(edgeUpdaterType: HandleType | undefined, handleDomNode: Element | null): HandleType | null;
export declare function resetRecentHandle(handleDomNode: Element): void;
export declare function getConnectionStatus(isInsideConnectionRadius: boolean, isHandleValid: boolean): ConnectionStatus;
export {};
//# sourceMappingURL=utils.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Handle/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,eAAe,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,OAAO,CAAC;AAErF,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEjF,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE9F,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC;AAItE,wBAAgB,UAAU,CACxB,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,gBAAgB,EAC9B,IAAI,EAAE,UAAU,EAChB,aAAa,EAAE,MAAM,GACpB,gBAAgB,EAAE,CAapB;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,eAAe,GAAG,eAAe,EAClE,GAAG,EAAE,QAAQ,GAAG,UAAU,EAC1B,GAAG,EAAE,UAAU,EACf,gBAAgB,EAAE,MAAM,EACxB,OAAO,EAAE,gBAAgB,EAAE,EAC3B,SAAS,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,IAAI,GAAG,MAAM,CAAC,KAAK,MAAM;;;;;;;;;;;;EA6EhF;AAED,KAAK,MAAM,GAAG;IACZ,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACpC,CAAC;AAYF,wBAAgB,aAAa,CAC3B,MAAM,EAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,IAAI,GAAG,MAAM,CAAC,EACxD,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,GAAG,IAAI,EAC3B,QAAQ,EAAE,UAAU,EACpB,iBAAiB,EAAE,mBAAmB,EACtC,GAAG,EAAE,QAAQ,GAAG,UAAU;;;;;EAgD3B;AAED,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,qBAAqB,sBAgB7F;AAED,wBAAgB,aAAa,CAC3B,eAAe,EAAE,UAAU,GAAG,SAAS,EACvC,aAAa,EAAE,OAAO,GAAG,IAAI,GAC5B,UAAU,GAAG,IAAI,CAUnB;AAED,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,OAAO,GAAG,IAAI,CAE9D;AAED,wBAAgB,mBAAmB,CAAC,wBAAwB,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,oBAU5F"}

View File

@@ -0,0 +1,8 @@
import React from 'react';
import type { NodeProps } from '../../types';
declare const _default: React.MemoExoticComponent<{
({ data, isConnectable, targetPosition, sourcePosition, }: NodeProps<any>): JSX.Element;
displayName: string;
}>;
export default _default;
//# sourceMappingURL=DefaultNode.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"DefaultNode.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Nodes/DefaultNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAIpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;;;;;AAmB7C,wBAAiC"}

View File

@@ -0,0 +1,6 @@
declare const GroupNode: {
(): null;
displayName: string;
};
export default GroupNode;
//# sourceMappingURL=GroupNode.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"GroupNode.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Nodes/GroupNode.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS;;;CAAa,CAAC;AAI7B,eAAe,SAAS,CAAC"}

View File

@@ -0,0 +1,8 @@
import React from 'react';
import type { NodeProps } from '../../types';
declare const _default: React.MemoExoticComponent<{
({ data, isConnectable, sourcePosition }: NodeProps<any>): JSX.Element;
displayName: string;
}>;
export default _default;
//# sourceMappingURL=InputNode.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"InputNode.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Nodes/InputNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAIpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;;;;;AAW7C,wBAA+B"}

View File

@@ -0,0 +1,8 @@
import React from 'react';
import type { NodeProps } from '../../types';
declare const _default: React.MemoExoticComponent<{
({ data, isConnectable, targetPosition }: NodeProps<any>): JSX.Element;
displayName: string;
}>;
export default _default;
//# sourceMappingURL=OutputNode.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"OutputNode.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Nodes/OutputNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAIpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;;;;;AAW7C,wBAAgC"}

View File

@@ -0,0 +1,15 @@
import { MouseEvent, RefObject } from 'react';
import { StoreApi } from 'zustand';
import type { HandleElement, Node, NodeOrigin, ReactFlowState } from '../../types';
export declare const getHandleBounds: (selector: string, nodeElement: HTMLDivElement, zoom: number, nodeOrigin: NodeOrigin) => HandleElement[] | null;
export declare function getMouseHandler(id: string, getState: StoreApi<ReactFlowState>['getState'], handler?: (event: MouseEvent, node: Node) => void): ((event: MouseEvent) => void) | undefined;
export declare function handleNodeClick({ id, store, unselect, nodeRef, }: {
id: string;
store: {
getState: StoreApi<ReactFlowState>['getState'];
setState: StoreApi<ReactFlowState>['setState'];
};
unselect?: boolean;
nodeRef?: RefObject<HTMLDivElement>;
}): void;
//# sourceMappingURL=utils.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Nodes/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAInC,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGnF,eAAO,MAAM,eAAe,aAChB,MAAM,eACH,cAAc,QACrB,MAAM,6BAEX,aAAa,EAAE,GAAG,IAyBpB,CAAC;AAEF,wBAAgB,eAAe,CAC7B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,EAC9C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,YAIrC,UAAU,uBAOvB;AAMD,wBAAgB,eAAe,CAAC,EAC9B,EAAE,EACF,KAAK,EACL,QAAgB,EAChB,OAAO,GACR,EAAE;IACD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE;QACL,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,CAAC;QAC/C,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,CAAC;KAChD,CAAC;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;CACrC,QAkBA"}

View File

@@ -0,0 +1,10 @@
import React from 'react';
import type { ComponentType } from 'react';
import type { NodeProps, WrapNodeProps, XYPosition } from '../../types';
export declare const arrowKeyDiffs: Record<string, XYPosition>;
declare const _default: (NodeComponent: ComponentType<NodeProps>) => React.MemoExoticComponent<{
({ id, type, data, xPos, yPos, xPosOrigin, yPosOrigin, selected, onClick, onMouseEnter, onMouseMove, onMouseLeave, onContextMenu, onDoubleClick, style, className, isDraggable, isSelectable, isConnectable, isFocusable, selectNodesOnDrag, sourcePosition, targetPosition, hidden, resizeObserver, dragHandle, zIndex, isParent, noDragClassName, noPanClassName, initialized, disableKeyboardA11y, ariaLabel, rfId, hasHandleBounds, }: WrapNodeProps): JSX.Element | null;
displayName: string;
}>;
export default _default;
//# sourceMappingURL=wrapNode.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"wrapNode.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Nodes/wrapNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAA6B,MAAM,OAAO,CAAC;AAUtE,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAExE,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAKpD,CAAC;wCAE6B,cAAc,SAAS,CAAC;+aAqClD,aAAa;;;AArClB,wBAkOE"}

View File

@@ -0,0 +1,16 @@
/**
* The nodes selection rectangle gets displayed when a user
* made a selection with on or several nodes
*/
import React from 'react';
import type { MouseEvent } from 'react';
import type { Node } from '../../types';
export interface NodesSelectionProps {
onSelectionContextMenu?: (event: MouseEvent, nodes: Node[]) => void;
noPanClassName?: string;
disableKeyboardA11y: boolean;
}
declare function NodesSelection({ onSelectionContextMenu, noPanClassName, disableKeyboardA11y }: NodesSelectionProps): JSX.Element | null;
declare const _default: React.MemoExoticComponent<typeof NodesSelection>;
export default _default;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/NodesSelection/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAkC,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,OAAO,CAAC;AASvD,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,aAAa,CAAC;AAExD,MAAM,WAAW,mBAAmB;IAClC,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACpE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAWD,iBAAS,cAAc,CAAC,EAAE,sBAAsB,EAAE,cAAc,EAAE,mBAAmB,EAAE,EAAE,mBAAmB,sBAiE3G;;AAED,wBAAoC"}

View File

@@ -0,0 +1,9 @@
import { type HTMLAttributes, type ReactNode } from 'react';
import type { PanelPosition } from '../../types';
export type PanelProps = HTMLAttributes<HTMLDivElement> & {
position: PanelPosition;
children: ReactNode;
};
declare function Panel({ position, children, className, style, ...rest }: PanelProps): JSX.Element;
export default Panel;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/Panel/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAInE,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,aAAa,CAAC;AAEjE,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACxD,QAAQ,EAAE,aAAa,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAIF,iBAAS,KAAK,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,UAAU,eAa3E;AAED,eAAe,KAAK,CAAC"}

View File

@@ -0,0 +1,4 @@
import { type FC, type PropsWithChildren } from 'react';
declare const ReactFlowProvider: FC<PropsWithChildren<unknown>>;
export default ReactFlowProvider;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/ReactFlowProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAU,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAQvE,QAAA,MAAM,iBAAiB,EAAE,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAQrD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}

View File

@@ -0,0 +1,8 @@
/// <reference types="react" />
import type { OnSelectionChangeFunc } from '../../types';
type SelectionListenerProps = {
onSelectionChange?: OnSelectionChangeFunc;
};
declare function Wrapper({ onSelectionChange }: SelectionListenerProps): JSX.Element | null;
export default Wrapper;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/SelectionListener/index.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAkB,qBAAqB,EAAc,MAAM,aAAa,CAAC;AAErF,KAAK,sBAAsB,GAAG;IAC5B,iBAAiB,CAAC,EAAE,qBAAqB,CAAC;CAC3C,CAAC;AAqCF,iBAAS,OAAO,CAAC,EAAE,iBAAiB,EAAE,EAAE,sBAAsB,sBAQ7D;AAED,eAAe,OAAO,CAAC"}

View File

@@ -0,0 +1,7 @@
import type { ReactFlowProps } from '../../types';
type StoreUpdaterProps = Pick<ReactFlowProps, 'nodes' | 'edges' | 'defaultNodes' | 'defaultEdges' | 'onConnect' | 'onConnectStart' | 'onConnectEnd' | 'onClickConnectStart' | 'onClickConnectEnd' | 'nodesDraggable' | 'nodesConnectable' | 'nodesFocusable' | 'edgesFocusable' | 'edgesUpdatable' | 'minZoom' | 'maxZoom' | 'nodeExtent' | 'onNodesChange' | 'onEdgesChange' | 'elementsSelectable' | 'connectionMode' | 'snapToGrid' | 'snapGrid' | 'translateExtent' | 'connectOnClick' | 'defaultEdgeOptions' | 'fitView' | 'fitViewOptions' | 'onNodesDelete' | 'onEdgesDelete' | 'onNodeDragStart' | 'onNodeDrag' | 'onNodeDragStop' | 'onSelectionDragStart' | 'onSelectionDrag' | 'onSelectionDragStop' | 'noPanClassName' | 'nodeOrigin' | 'elevateNodesOnSelect' | 'autoPanOnConnect' | 'autoPanOnNodeDrag' | 'connectionRadius' | 'isValidConnection' | 'onError' | 'nodeDragThreshold'> & {
rfId: string;
};
declare const StoreUpdater: ({ nodes, edges, defaultNodes, defaultEdges, onConnect, onConnectStart, onConnectEnd, onClickConnectStart, onClickConnectEnd, nodesDraggable, nodesConnectable, nodesFocusable, edgesFocusable, edgesUpdatable, elevateNodesOnSelect, minZoom, maxZoom, nodeExtent, onNodesChange, onEdgesChange, elementsSelectable, connectionMode, snapGrid, snapToGrid, translateExtent, connectOnClick, defaultEdgeOptions, fitView, fitViewOptions, onNodesDelete, onEdgesDelete, onNodeDrag, onNodeDragStart, onNodeDragStop, onSelectionDrag, onSelectionDragStart, onSelectionDragStop, noPanClassName, nodeOrigin, rfId, autoPanOnConnect, autoPanOnNodeDrag, onError, connectionRadius, isValidConnection, nodeDragThreshold, }: StoreUpdaterProps) => null;
export default StoreUpdater;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/StoreUpdater/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAgD,cAAc,EAAkB,MAAM,aAAa,CAAC;AAEhH,KAAK,iBAAiB,GAAG,IAAI,CAC3B,cAAc,EACZ,OAAO,GACP,OAAO,GACP,cAAc,GACd,cAAc,GACd,WAAW,GACX,gBAAgB,GAChB,cAAc,GACd,qBAAqB,GACrB,mBAAmB,GACnB,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,SAAS,GACT,SAAS,GACT,YAAY,GACZ,eAAe,GACf,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,YAAY,GACZ,UAAU,GACV,iBAAiB,GACjB,gBAAgB,GAChB,oBAAoB,GACpB,SAAS,GACT,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,iBAAiB,GACjB,YAAY,GACZ,gBAAgB,GAChB,sBAAsB,GACtB,iBAAiB,GACjB,qBAAqB,GACrB,gBAAgB,GAChB,YAAY,GACZ,sBAAsB,GACtB,kBAAkB,GAClB,mBAAmB,GACnB,kBAAkB,GAClB,mBAAmB,GACnB,SAAS,GACT,mBAAmB,CACtB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAkCrB,QAAA,MAAM,YAAY,8rBA+Cf,iBAAiB,SAqEnB,CAAC;AAEF,eAAe,YAAY,CAAC"}

View File

@@ -0,0 +1,4 @@
/// <reference types="react" />
declare function UserSelection(): JSX.Element | null;
export default UserSelection;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/components/UserSelection/index.tsx"],"names":[],"mappings":";AAWA,iBAAS,aAAa,uBAkBrB;AAED,eAAe,aAAa,CAAC"}

View File

@@ -0,0 +1,11 @@
import React from 'react';
type MarkerDefinitionsProps = {
defaultColor: string;
rfId?: string;
};
declare const _default: React.MemoExoticComponent<{
({ defaultColor, rfId }: MarkerDefinitionsProps): JSX.Element;
displayName: string;
}>;
export default _default;
//# sourceMappingURL=MarkerDefinitions.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"MarkerDefinitions.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/container/EdgeRenderer/MarkerDefinitions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAWjD,KAAK,sBAAsB,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;;;;;AAuFF,wBAAuC"}

View File

@@ -0,0 +1,11 @@
/// <reference types="react" />
import { MarkerType } from '../../types';
import type { EdgeMarker } from '../../types';
type SymbolProps = Omit<EdgeMarker, 'type'>;
export declare const MarkerSymbols: {
arrow: ({ color, strokeWidth }: SymbolProps) => JSX.Element;
arrowclosed: ({ color, strokeWidth }: SymbolProps) => JSX.Element;
};
export declare function useMarkerSymbol(type: MarkerType): (({ color, strokeWidth }: SymbolProps) => JSX.Element) | null;
export default MarkerSymbols;
//# sourceMappingURL=MarkerSymbols.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"MarkerSymbols.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/container/EdgeRenderer/MarkerSymbols.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,KAAK,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAgC5C,eAAO,MAAM,aAAa;oCA9BgC,WAAW;0CAeL,WAAW;CAkB1E,CAAC;AAEF,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,iEAgB/C;AAED,eAAe,aAAa,CAAC"}

View File

@@ -0,0 +1,14 @@
import React, { ReactNode } from 'react';
import { GraphViewProps } from '../GraphView';
import type { EdgeTypesWrapped } from '../../types';
type EdgeRendererProps = Pick<GraphViewProps, 'onEdgeClick' | 'onEdgeDoubleClick' | 'defaultMarkerColor' | 'onlyRenderVisibleElements' | 'onEdgeContextMenu' | 'onEdgeMouseEnter' | 'onEdgeMouseMove' | 'onEdgeMouseLeave' | 'onReconnect' | 'onReconnectStart' | 'onReconnectEnd' | 'reconnectRadius' | 'noPanClassName' | 'elevateEdgesOnSelect' | 'rfId' | 'disableKeyboardA11y'> & {
edgeTypes: EdgeTypesWrapped;
elevateEdgesOnSelect: boolean;
children: ReactNode;
};
declare const _default: React.MemoExoticComponent<{
({ defaultMarkerColor, onlyRenderVisibleElements, elevateEdgesOnSelect, rfId, edgeTypes, noPanClassName, onEdgeContextMenu, onEdgeMouseEnter, onEdgeMouseMove, onEdgeMouseLeave, onEdgeClick, onEdgeDoubleClick, onReconnect, onReconnectStart, onReconnectEnd, reconnectRadius, children, disableKeyboardA11y, }: EdgeRendererProps): JSX.Element | null;
displayName: string;
}>;
export default _default;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/container/EdgeRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAQ,SAAS,EAAE,MAAM,OAAO,CAAC;AAS/C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAQ,gBAAgB,EAAkB,MAAM,aAAa,CAAC;AAG1E,KAAK,iBAAiB,GAAG,IAAI,CAC3B,cAAc,EACZ,aAAa,GACb,mBAAmB,GACnB,oBAAoB,GACpB,2BAA2B,GAC3B,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,kBAAkB,GAClB,aAAa,GACb,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,gBAAgB,GAChB,sBAAsB,GACtB,MAAM,GACN,qBAAqB,CACxB,GAAG;IACF,SAAS,EAAE,gBAAgB,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;;;;;AAgKF,wBAAkC"}

View File

@@ -0,0 +1,28 @@
import { Position } from '../../types';
import type { EdgeTypes, EdgeTypesWrapped, HandleElement, NodeHandleBounds, Node, Rect, Transform, XYPosition } from '../../types';
export type CreateEdgeTypes = (edgeTypes: EdgeTypes) => EdgeTypesWrapped;
export declare function createEdgeTypes(edgeTypes: EdgeTypes): EdgeTypesWrapped;
export declare function getHandlePosition(position: Position, nodeRect: Rect, handle?: HandleElement | null): XYPosition;
export declare function getHandle(bounds: HandleElement[], handleId?: string | null): HandleElement | null;
interface EdgePositions {
sourceX: number;
sourceY: number;
targetX: number;
targetY: number;
}
export declare const getEdgePositions: (sourceNodeRect: Rect, sourceHandle: HandleElement, sourcePosition: Position, targetNodeRect: Rect, targetHandle: HandleElement, targetPosition: Position) => EdgePositions;
interface IsEdgeVisibleParams {
sourcePos: XYPosition;
targetPos: XYPosition;
sourceWidth: number;
sourceHeight: number;
targetWidth: number;
targetHeight: number;
width: number;
height: number;
transform: Transform;
}
export declare function isEdgeVisible({ sourcePos, targetPos, sourceWidth, sourceHeight, targetWidth, targetHeight, width, height, transform, }: IsEdgeVisibleParams): boolean;
export declare function getNodeData(node?: Node): [Rect, NodeHandleBounds | null, boolean];
export {};
//# sourceMappingURL=utils.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/container/EdgeRenderer/utils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,EAEV,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,UAAU,EACX,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,SAAS,KAAK,gBAAgB,CAAC;AAEzE,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,gBAAgB,CAsBtE;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAE,aAAa,GAAG,IAAW,GAAG,UAAU,CA4BrH;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,aAAa,GAAG,IAAI,CAYjG;AAED,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,gBAAgB,mBACX,IAAI,gBACN,aAAa,kBACX,QAAQ,kBACR,IAAI,gBACN,aAAa,kBACX,QAAQ,KACvB,aAUF,CAAC;AAEF,UAAU,mBAAmB;IAC3B,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,SAAS,EACT,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,KAAK,EACL,MAAM,EACN,SAAS,GACV,EAAE,mBAAmB,GAAG,OAAO,CA4B/B;AAED,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,EAAE,OAAO,CAAC,CAoBjF"}

View File

@@ -0,0 +1,12 @@
import React from 'react';
import type { ReactNode } from 'react';
import { GraphViewProps } from '../GraphView';
export type FlowRendererProps = Omit<GraphViewProps, 'snapToGrid' | 'nodeTypes' | 'edgeTypes' | 'snapGrid' | 'connectionLineType' | 'connectionLineContainerStyle' | 'arrowHeadColor' | 'onlyRenderVisibleElements' | 'selectNodesOnDrag' | 'defaultMarkerColor' | 'rfId' | 'nodeOrigin'> & {
children: ReactNode;
};
declare const _default: React.MemoExoticComponent<{
({ children, onPaneClick, onPaneMouseEnter, onPaneMouseMove, onPaneMouseLeave, onPaneContextMenu, onPaneScroll, deleteKeyCode, onMove, onMoveStart, onMoveEnd, selectionKeyCode, selectionOnDrag, selectionMode, onSelectionStart, onSelectionEnd, multiSelectionKeyCode, panActivationKeyCode, zoomActivationKeyCode, elementsSelectable, zoomOnScroll, zoomOnPinch, panOnScroll: _panOnScroll, panOnScrollSpeed, panOnScrollMode, zoomOnDoubleClick, panOnDrag: _panOnDrag, defaultViewport, translateExtent, minZoom, maxZoom, preventScrolling, onSelectionContextMenu, noWheelClassName, noPanClassName, disableKeyboardA11y, }: FlowRendererProps): JSX.Element;
displayName: string;
}>;
export default _default;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/container/FlowRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAM9C,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,cAAc,EACZ,YAAY,GACZ,WAAW,GACX,WAAW,GACX,UAAU,GACV,oBAAoB,GACpB,8BAA8B,GAC9B,gBAAgB,GAChB,2BAA2B,GAC3B,mBAAmB,GACnB,oBAAoB,GACpB,MAAM,GACN,YAAY,CACf,GAAG;IACF,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;;;;;AAuGF,wBAAkC"}

View File

@@ -0,0 +1,11 @@
import React from 'react';
import type { ReactFlowProps } from '../../types';
export type GraphViewProps = Omit<ReactFlowProps, 'onSelectionChange' | 'nodes' | 'edges' | 'nodeTypes' | 'edgeTypes' | 'onEdgeUpdate' | 'onEdgeUpdateStart' | 'onEdgeUpdateEnd' | 'edgeUpdaterRadius'> & Required<Pick<ReactFlowProps, 'nodeTypes' | 'edgeTypes' | 'selectionKeyCode' | 'deleteKeyCode' | 'multiSelectionKeyCode' | 'connectionLineType' | 'onlyRenderVisibleElements' | 'translateExtent' | 'minZoom' | 'maxZoom' | 'defaultMarkerColor' | 'selectNodesOnDrag' | 'noDragClassName' | 'noDragClassName' | 'noWheelClassName' | 'noPanClassName' | 'defaultViewport' | 'disableKeyboardA11y' | 'nodeOrigin'>> & {
rfId: string;
};
declare const _default: React.MemoExoticComponent<{
({ nodeTypes, edgeTypes, onMove, onMoveStart, onMoveEnd, onInit, onNodeClick, onEdgeClick, onNodeDoubleClick, onEdgeDoubleClick, onNodeMouseEnter, onNodeMouseMove, onNodeMouseLeave, onNodeContextMenu, onSelectionContextMenu, onSelectionStart, onSelectionEnd, connectionLineType, connectionLineStyle, connectionLineComponent, connectionLineContainerStyle, selectionKeyCode, selectionOnDrag, selectionMode, multiSelectionKeyCode, panActivationKeyCode, zoomActivationKeyCode, deleteKeyCode, onlyRenderVisibleElements, elementsSelectable, selectNodesOnDrag, defaultViewport, translateExtent, minZoom, maxZoom, preventScrolling, defaultMarkerColor, zoomOnScroll, zoomOnPinch, panOnScroll, panOnScrollSpeed, panOnScrollMode, zoomOnDoubleClick, panOnDrag, onPaneClick, onPaneMouseEnter, onPaneMouseMove, onPaneMouseLeave, onPaneScroll, onPaneContextMenu, onEdgeContextMenu, onEdgeMouseEnter, onEdgeMouseMove, onEdgeMouseLeave, onReconnect, onReconnectStart, onReconnectEnd, reconnectRadius, noDragClassName, noWheelClassName, noPanClassName, elevateEdgesOnSelect, disableKeyboardA11y, nodeOrigin, nodeExtent, rfId, }: GraphViewProps): JSX.Element;
displayName: string;
}>;
export default _default;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/container/GraphView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAWpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,cAAc,EACZ,mBAAmB,GACnB,OAAO,GACP,OAAO,GACP,WAAW,GACX,WAAW,GACX,cAAc,GACd,mBAAmB,GACnB,iBAAiB,GACjB,mBAAmB,CACtB,GACC,QAAQ,CACN,IAAI,CACF,cAAc,EACZ,WAAW,GACX,WAAW,GACX,kBAAkB,GAClB,eAAe,GACf,uBAAuB,GACvB,oBAAoB,GACpB,2BAA2B,GAC3B,iBAAiB,GACjB,SAAS,GACT,SAAS,GACT,oBAAoB,GACpB,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,qBAAqB,GACrB,YAAY,CACf,CACF,GAAG;IACF,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;;;;;AAuKJ,wBAA+B"}

View File

@@ -0,0 +1,6 @@
import { CreateEdgeTypes } from '../EdgeRenderer/utils';
import { CreateNodeTypes } from '../NodeRenderer/utils';
import type { EdgeTypes, EdgeTypesWrapped, NodeTypes, NodeTypesWrapped } from '../../types';
export declare function useNodeOrEdgeTypes(nodeOrEdgeTypes: NodeTypes, createTypes: CreateNodeTypes): NodeTypesWrapped;
export declare function useNodeOrEdgeTypes(nodeOrEdgeTypes: EdgeTypes, createTypes: CreateEdgeTypes): EdgeTypesWrapped;
//# sourceMappingURL=utils.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/container/GraphView/utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAI5F,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,GAAG,gBAAgB,CAAC;AAC/G,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,GAAG,gBAAgB,CAAC"}

View File

@@ -0,0 +1,12 @@
import React from 'react';
import { GraphViewProps } from '../GraphView';
import type { NodeTypesWrapped } from '../../types';
type NodeRendererProps = Pick<GraphViewProps, 'selectNodesOnDrag' | 'onNodeClick' | 'onNodeDoubleClick' | 'onNodeMouseEnter' | 'onNodeMouseMove' | 'onNodeMouseLeave' | 'onNodeContextMenu' | 'onlyRenderVisibleElements' | 'noPanClassName' | 'noDragClassName' | 'rfId' | 'disableKeyboardA11y' | 'nodeOrigin' | 'nodeExtent'> & {
nodeTypes: NodeTypesWrapped;
};
declare const _default: React.MemoExoticComponent<{
(props: NodeRendererProps): JSX.Element;
displayName: string;
}>;
export default _default;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/container/NodeRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAQhE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,gBAAgB,EAAiC,MAAM,aAAa,CAAC;AAGnF,KAAK,iBAAiB,GAAG,IAAI,CAC3B,cAAc,EACZ,mBAAmB,GACnB,aAAa,GACb,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,kBAAkB,GAClB,mBAAmB,GACnB,2BAA2B,GAC3B,gBAAgB,GAChB,iBAAiB,GACjB,MAAM,GACN,qBAAqB,GACrB,YAAY,GACZ,YAAY,CACf,GAAG;IACF,SAAS,EAAE,gBAAgB,CAAC;CAC7B,CAAC;;;;;AAyHF,wBAAkC"}

View File

@@ -0,0 +1,11 @@
import type { NodeTypes, NodeTypesWrapped, NodeOrigin, XYPosition } from '../../types';
export type CreateNodeTypes = (nodeTypes: NodeTypes) => NodeTypesWrapped;
export declare function createNodeTypes(nodeTypes: NodeTypes): NodeTypesWrapped;
export declare const getPositionWithOrigin: ({ x, y, width, height, origin, }: {
x: number;
y: number;
width: number;
height: number;
origin: NodeOrigin;
}) => XYPosition;
//# sourceMappingURL=utils.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/container/NodeRenderer/utils.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAa,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAElG,MAAM,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,SAAS,KAAK,gBAAgB,CAAC;AAEzE,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,gBAAgB,CAqBtE;AAED,eAAO,MAAM,qBAAqB;OAO7B,MAAM;OACN,MAAM;WACF,MAAM;YACL,MAAM;;MAEZ,UAaH,CAAC"}

View File

@@ -0,0 +1,12 @@
/**
* The user selection rectangle gets displayed when a user drags the mouse while pressing shift
*/
import React, { ReactNode } from 'react';
import type { ReactFlowProps } from '../../types';
type PaneProps = {
isSelecting: boolean;
children: ReactNode;
} & Partial<Pick<ReactFlowProps, 'selectionMode' | 'panOnDrag' | 'onSelectionStart' | 'onSelectionEnd' | 'onPaneClick' | 'onPaneContextMenu' | 'onPaneScroll' | 'onPaneMouseEnter' | 'onPaneMouseMove' | 'onPaneMouseLeave'>>;
declare const Pane: React.MemoExoticComponent<({ isSelecting, selectionMode, panOnDrag, onSelectionStart, onSelectionEnd, onPaneClick, onPaneContextMenu, onPaneScroll, onPaneMouseEnter, onPaneMouseMove, onPaneMouseLeave, children, }: PaneProps) => JSX.Element>;
export default Pane;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/container/Pane/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,EAA+C,SAAS,EAAE,MAAM,OAAO,CAAC;AAWtF,OAAO,KAAK,EAAE,cAAc,EAA0C,MAAM,aAAa,CAAC;AAE1F,KAAK,SAAS,GAAG;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,OAAO,CACT,IAAI,CACF,cAAc,EACZ,eAAe,GACf,WAAW,GACX,kBAAkB,GAClB,gBAAgB,GAChB,aAAa,GACb,mBAAmB,GACnB,cAAc,GACd,kBAAkB,GAClB,iBAAiB,GACjB,kBAAkB,CACrB,CACF,CAAC;AAoBF,QAAA,MAAM,IAAI,wNAcL,SAAS,iBAqKb,CAAC;AAIF,eAAe,IAAI,CAAC"}

View File

@@ -0,0 +1,4 @@
import type { FC, PropsWithChildren } from 'react';
declare const Wrapper: FC<PropsWithChildren<unknown>>;
export default Wrapper;
//# sourceMappingURL=Wrapper.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/container/ReactFlow/Wrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAKnD,QAAA,MAAM,OAAO,EAAE,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAU3C,CAAC;AAIF,eAAe,OAAO,CAAC"}

View File

@@ -0,0 +1,118 @@
import React from 'react';
import { ConnectionLineType, ConnectionMode, PanOnScrollMode, SelectionMode } from '../../types';
import type { EdgeTypes, NodeOrigin, NodeTypes, Viewport } from '../../types';
declare const ReactFlow: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "onError"> & {
nodes?: import("../../types").Node<any, string | undefined>[] | undefined;
edges?: import("../../types").Edge<any>[] | undefined;
defaultNodes?: import("../../types").Node<any, string | undefined>[] | undefined;
defaultEdges?: import("../../types").Edge<any>[] | undefined;
defaultEdgeOptions?: import("../../types").DefaultEdgeOptions | undefined;
onNodeClick?: import("../../types").NodeMouseHandler | undefined;
onNodeDoubleClick?: import("../../types").NodeMouseHandler | undefined;
onNodeMouseEnter?: import("../../types").NodeMouseHandler | undefined;
onNodeMouseMove?: import("../../types").NodeMouseHandler | undefined;
onNodeMouseLeave?: import("../../types").NodeMouseHandler | undefined;
onNodeContextMenu?: import("../../types").NodeMouseHandler | undefined;
onNodeDragStart?: import("../../types").NodeDragHandler | undefined;
onNodeDrag?: import("../../types").NodeDragHandler | undefined;
onNodeDragStop?: import("../../types").NodeDragHandler | undefined;
onEdgeClick?: ((event: React.MouseEvent<Element, MouseEvent>, node: import("../../types").Edge<any>) => void) | undefined;
onEdgeUpdate?: import("../../types").OnEdgeUpdateFunc<any> | undefined;
onEdgeUpdateStart?: ((event: React.MouseEvent<Element, MouseEvent>, edge: import("../../types").Edge<any>, handleType: import("../../types").HandleType) => void) | undefined;
onEdgeUpdateEnd?: ((event: MouseEvent | TouchEvent, edge: import("../../types").Edge<any>, handleType: import("../../types").HandleType) => void) | undefined;
onReconnect?: import("../../types").OnEdgeUpdateFunc<any> | undefined;
onReconnectStart?: ((event: React.MouseEvent<Element, MouseEvent>, edge: import("../../types").Edge<any>, handleType: import("../../types").HandleType) => void) | undefined;
onReconnectEnd?: ((event: MouseEvent | TouchEvent, edge: import("../../types").Edge<any>, handleType: import("../../types").HandleType) => void) | undefined;
onEdgeContextMenu?: import("../../types").EdgeMouseHandler | undefined;
onEdgeMouseEnter?: import("../../types").EdgeMouseHandler | undefined;
onEdgeMouseMove?: import("../../types").EdgeMouseHandler | undefined;
onEdgeMouseLeave?: import("../../types").EdgeMouseHandler | undefined;
onEdgeDoubleClick?: import("../../types").EdgeMouseHandler | undefined;
onNodesChange?: import("../../types").OnNodesChange | undefined;
onEdgesChange?: import("../../types").OnEdgesChange | undefined;
onNodesDelete?: import("../../types").OnNodesDelete | undefined;
onEdgesDelete?: import("../../types").OnEdgesDelete | undefined;
onSelectionDragStart?: import("../../types").SelectionDragHandler | undefined;
onSelectionDrag?: import("../../types").SelectionDragHandler | undefined;
onSelectionDragStop?: import("../../types").SelectionDragHandler | undefined;
onSelectionStart?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
onSelectionEnd?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
onSelectionContextMenu?: ((event: React.MouseEvent<Element, MouseEvent>, nodes: import("../../types").Node<any, string | undefined>[]) => void) | undefined;
onConnect?: import("../../types").OnConnect | undefined;
onConnectStart?: import("../../types").OnConnectStart | undefined;
onConnectEnd?: import("../../types").OnConnectEnd | undefined;
onClickConnectStart?: import("../../types").OnConnectStart | undefined;
onClickConnectEnd?: import("../../types").OnConnectEnd | undefined;
onInit?: import("../../types").OnInit<any, any> | undefined;
onMove?: import("../../types").OnMove | undefined;
onMoveStart?: import("../../types").OnMove | undefined;
onMoveEnd?: import("../../types").OnMove | undefined;
onSelectionChange?: import("../../types").OnSelectionChangeFunc | undefined;
onPaneScroll?: ((event?: React.WheelEvent<Element> | undefined) => void) | undefined;
onPaneClick?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
onPaneContextMenu?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
onPaneMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
onPaneMouseMove?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
onPaneMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
nodeTypes?: NodeTypes | undefined;
edgeTypes?: EdgeTypes | undefined;
connectionLineType?: ConnectionLineType | undefined;
connectionLineStyle?: React.CSSProperties | undefined;
connectionLineComponent?: import("../../types").ConnectionLineComponent | undefined;
connectionLineContainerStyle?: React.CSSProperties | undefined;
connectionMode?: ConnectionMode | undefined;
deleteKeyCode?: import("../../types").KeyCode | null | undefined;
selectionKeyCode?: import("../../types").KeyCode | null | undefined;
selectionOnDrag?: boolean | undefined;
selectionMode?: SelectionMode | undefined;
panActivationKeyCode?: import("../../types").KeyCode | null | undefined;
multiSelectionKeyCode?: import("../../types").KeyCode | null | undefined;
zoomActivationKeyCode?: import("../../types").KeyCode | null | undefined;
snapToGrid?: boolean | undefined;
snapGrid?: [number, number] | undefined;
onlyRenderVisibleElements?: boolean | undefined;
nodesDraggable?: boolean | undefined;
nodesConnectable?: boolean | undefined;
nodesFocusable?: boolean | undefined;
nodeOrigin?: NodeOrigin | undefined;
edgesFocusable?: boolean | undefined;
edgesUpdatable?: boolean | undefined;
initNodeOrigin?: NodeOrigin | undefined;
elementsSelectable?: boolean | undefined;
selectNodesOnDrag?: boolean | undefined;
panOnDrag?: boolean | number[] | undefined;
minZoom?: number | undefined;
maxZoom?: number | undefined;
defaultViewport?: Viewport | undefined;
translateExtent?: import("../../types").CoordinateExtent | undefined;
preventScrolling?: boolean | undefined;
nodeExtent?: import("../../types").CoordinateExtent | undefined;
defaultMarkerColor?: string | undefined;
zoomOnScroll?: boolean | undefined;
zoomOnPinch?: boolean | undefined;
panOnScroll?: boolean | undefined;
panOnScrollSpeed?: number | undefined;
panOnScrollMode?: PanOnScrollMode | undefined;
zoomOnDoubleClick?: boolean | undefined;
edgeUpdaterRadius?: number | undefined;
reconnectRadius?: number | undefined;
noDragClassName?: string | undefined;
noWheelClassName?: string | undefined;
noPanClassName?: string | undefined;
fitView?: boolean | undefined;
fitViewOptions?: import("../../types").FitViewOptions | undefined;
connectOnClick?: boolean | undefined;
attributionPosition?: import("../../types").PanelPosition | undefined;
proOptions?: import("../../types").ProOptions | undefined;
elevateNodesOnSelect?: boolean | undefined;
elevateEdgesOnSelect?: boolean | undefined;
disableKeyboardA11y?: boolean | undefined;
autoPanOnNodeDrag?: boolean | undefined;
autoPanOnConnect?: boolean | undefined;
connectionRadius?: number | undefined;
onError?: import("../../types").OnError | undefined;
isValidConnection?: import("../../components/Handle/utils").ValidConnectionFunc | undefined;
nodeDragThreshold?: number | undefined;
} & React.RefAttributes<HTMLDivElement>>;
export default ReactFlow;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/container/ReactFlow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAe9D,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjG,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAoC,QAAQ,EAAE,MAAM,aAAa,CAAC;AA8BhH,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAgQd,CAAC;AAIF,eAAe,SAAS,CAAC"}

View File

@@ -0,0 +1,7 @@
import { type ReactNode } from 'react';
type ViewportProps = {
children: ReactNode;
};
declare function Viewport({ children }: ViewportProps): JSX.Element;
export default Viewport;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/container/Viewport/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAO9C,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,iBAAS,QAAQ,CAAC,EAAE,QAAQ,EAAE,EAAE,aAAa,eAQ5C;AAED,eAAe,QAAQ,CAAC"}

View File

@@ -0,0 +1,6 @@
/// <reference types="react" />
import type { FlowRendererProps } from '../FlowRenderer';
type ZoomPaneProps = Omit<FlowRendererProps, 'deleteKeyCode' | 'selectionKeyCode' | 'multiSelectionKeyCode' | 'noDragClassName' | 'disableKeyboardA11y' | 'selectionOnDrag'>;
declare const ZoomPane: ({ onMove, onMoveStart, onMoveEnd, onPaneContextMenu, zoomOnScroll, zoomOnPinch, panOnScroll, panOnScrollSpeed, panOnScrollMode, zoomOnDoubleClick, elementsSelectable, panOnDrag, defaultViewport, translateExtent, minZoom, maxZoom, zoomActivationKeyCode, preventScrolling, children, noWheelClassName, noPanClassName, }: ZoomPaneProps) => JSX.Element;
export default ZoomPane;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/container/ZoomPane/index.tsx"],"names":[],"mappings":";AAYA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,KAAK,aAAa,GAAG,IAAI,CACvB,iBAAiB,EACf,eAAe,GACf,kBAAkB,GAClB,uBAAuB,GACvB,iBAAiB,GACjB,qBAAqB,GACrB,iBAAiB,CACpB,CAAC;AA6BF,QAAA,MAAM,QAAQ,iUAsBX,aAAa,gBAmUf,CAAC;AAEF,eAAe,QAAQ,CAAC"}

View File

@@ -0,0 +1,16 @@
import { Edge, HandleElement } from './types';
export declare const errorMessages: {
error001: () => string;
error002: () => string;
error003: (nodeType: string) => string;
error004: () => string;
error005: () => string;
error006: () => string;
error007: (id: string) => string;
error009: (type: string) => string;
error008: (sourceHandle: HandleElement | null, edge: Edge) => string;
error010: () => string;
error011: (edgeType: string) => string;
error012: (id: string) => string;
};
//# sourceMappingURL=contants.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"contants.d.ts","sourceRoot":"","sources":["../../../packages/core/src/contants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,aAAa;;;yBAKH,MAAM;;;;mBAIZ,MAAM;qBACJ,MAAM;6BACE,aAAa,GAAG,IAAI,QAAQ,IAAI;;yBAKpC,MAAM;mBACZ,MAAM;CAEtB,CAAC"}

View File

@@ -0,0 +1,7 @@
/// <reference types="react" />
export declare const NodeIdContext: import("react").Context<string | null>;
export declare const Provider: import("react").Provider<string | null>;
export declare const Consumer: import("react").Consumer<string | null>;
export declare const useNodeId: () => string | null;
export default NodeIdContext;
//# sourceMappingURL=NodeIdContext.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"NodeIdContext.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/contexts/NodeIdContext.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,aAAa,wCAAqC,CAAC;AAChE,eAAO,MAAM,QAAQ,yCAAyB,CAAC;AAC/C,eAAO,MAAM,QAAQ,yCAAyB,CAAC;AAE/C,eAAO,MAAM,SAAS,QAAO,MAAM,GAAG,IAGrC,CAAC;AAEF,eAAe,aAAa,CAAC"}

View File

@@ -0,0 +1,5 @@
/// <reference types="react" />
declare const StoreContext: import("react").Context<import("zustand/traditional").UseBoundStoreWithEqualityFn<import("zustand").StoreApi<import("..").ReactFlowState>> | null>;
export declare const Provider: import("react").Provider<import("zustand/traditional").UseBoundStoreWithEqualityFn<import("zustand").StoreApi<import("..").ReactFlowState>> | null>;
export default StoreContext;
//# sourceMappingURL=RFStoreContext.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"RFStoreContext.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/contexts/RFStoreContext.ts"],"names":[],"mappings":";AAIA,QAAA,MAAM,YAAY,oJAA+D,CAAC;AAElF,eAAO,MAAM,QAAQ,qJAAwB,CAAC;AAC9C,eAAe,YAAY,CAAC"}

View File

@@ -0,0 +1,17 @@
import type { RefObject } from 'react';
export type UseDragData = {
dx: number;
dy: number;
};
type UseDragParams = {
nodeRef: RefObject<Element>;
disabled?: boolean;
noDragClassName?: string;
handleSelector?: string;
nodeId?: string;
isSelectable?: boolean;
selectNodesOnDrag?: boolean;
};
declare function useDrag({ nodeRef, disabled, noDragClassName, handleSelector, nodeId, isSelectable, selectNodesOnDrag, }: UseDragParams): boolean;
export default useDrag;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/hooks/useDrag/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAoBnD,MAAM,MAAM,WAAW,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAErD,KAAK,aAAa,GAAG;IACnB,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAMF,iBAAS,OAAO,CAAC,EACf,OAAO,EACP,QAAgB,EAChB,eAAe,EACf,cAAc,EACd,MAAM,EACN,YAAY,EACZ,iBAAiB,GAClB,EAAE,aAAa,WA2Qf;AAED,eAAe,OAAO,CAAC"}

View File

@@ -0,0 +1,15 @@
import type { RefObject } from 'react';
import type { CoordinateExtent, Node, NodeDragItem, NodeInternals, NodeOrigin, OnError, XYPosition } from '../../types';
export declare function isParentSelected(node: Node, nodeInternals: NodeInternals): boolean;
export declare function hasSelector(target: Element, selector: string, nodeRef: RefObject<Element>): boolean;
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): {
position: XYPosition;
positionAbsolute: XYPosition;
};
export declare function getEventHandlerParams({ nodeId, dragItems, nodeInternals, }: {
nodeId?: string;
dragItems: NodeDragItem[];
nodeInternals: NodeInternals;
}): [Node, Node[]];
//# sourceMappingURL=utils.d.ts.map

Some files were not shown because too many files have changed in this diff Show More