@xyflow/react 12.0.0-next.7 → 12.0.0-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base.css +21 -17
- package/dist/esm/additional-components/MiniMap/MiniMap.d.ts +1 -1
- package/dist/esm/additional-components/MiniMap/MiniMap.d.ts.map +1 -1
- package/dist/esm/additional-components/MiniMap/types.d.ts +2 -0
- package/dist/esm/additional-components/MiniMap/types.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeResizer/NodeResizeControl.d.ts.map +1 -1
- package/dist/esm/components/EdgeWrapper/index.d.ts.map +1 -1
- package/dist/esm/components/Handle/index.d.ts +6 -2
- package/dist/esm/components/Handle/index.d.ts.map +1 -1
- package/dist/esm/components/NodeWrapper/index.d.ts.map +1 -1
- package/dist/esm/components/NodesSelection/index.d.ts.map +1 -1
- package/dist/esm/components/ReactFlowProvider/index.d.ts +3 -1
- package/dist/esm/components/ReactFlowProvider/index.d.ts.map +1 -1
- package/dist/esm/components/StoreUpdater/index.d.ts.map +1 -1
- package/dist/esm/container/EdgeRenderer/MarkerDefinitions.d.ts.map +1 -1
- package/dist/esm/container/FlowRenderer/index.d.ts.map +1 -1
- package/dist/esm/container/GraphView/index.d.ts +1 -1
- package/dist/esm/container/GraphView/index.d.ts.map +1 -1
- package/dist/esm/container/ReactFlow/Wrapper.d.ts +3 -1
- package/dist/esm/container/ReactFlow/Wrapper.d.ts.map +1 -1
- package/dist/esm/container/ReactFlow/index.d.ts +3 -118
- package/dist/esm/container/ReactFlow/index.d.ts.map +1 -1
- package/dist/esm/container/ReactFlow/init-values.d.ts +4 -0
- package/dist/esm/container/ReactFlow/init-values.d.ts.map +1 -0
- package/dist/esm/hooks/useConnection.d.ts +13 -7
- package/dist/esm/hooks/useConnection.d.ts.map +1 -1
- package/dist/esm/hooks/useDrag.d.ts +1 -1
- package/dist/esm/hooks/useDrag.d.ts.map +1 -1
- package/dist/esm/hooks/useHandleConnections.d.ts +4 -4
- package/dist/esm/hooks/useHandleConnections.d.ts.map +1 -1
- package/dist/esm/hooks/useKeyPress.d.ts.map +1 -1
- package/dist/esm/hooks/useMoveSelectedNodes.d.ts +12 -0
- package/dist/esm/hooks/useMoveSelectedNodes.d.ts.map +1 -0
- package/dist/esm/hooks/useNodesInitialized.d.ts.map +1 -1
- package/dist/esm/hooks/useOnSelectionChange.d.ts +1 -1
- package/dist/esm/hooks/useReactFlow.d.ts.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +276 -283
- package/dist/esm/index.mjs +276 -283
- package/dist/esm/store/index.d.ts +3 -1
- package/dist/esm/store/index.d.ts.map +1 -1
- package/dist/esm/store/initialState.d.ts +3 -1
- package/dist/esm/store/initialState.d.ts.map +1 -1
- package/dist/esm/types/component-props.d.ts +9 -9
- package/dist/esm/types/component-props.d.ts.map +1 -1
- package/dist/esm/types/general.d.ts +79 -4
- package/dist/esm/types/general.d.ts.map +1 -1
- package/dist/esm/types/instance.d.ts +93 -0
- package/dist/esm/types/instance.d.ts.map +1 -1
- package/dist/esm/types/nodes.d.ts +3 -3
- package/dist/esm/types/nodes.d.ts.map +1 -1
- package/dist/esm/types/store.d.ts +5 -4
- package/dist/esm/types/store.d.ts.map +1 -1
- package/dist/esm/utils/changes.d.ts +1 -1
- package/dist/esm/utils/changes.d.ts.map +1 -1
- package/dist/style.css +29 -13
- package/dist/umd/additional-components/MiniMap/MiniMap.d.ts +1 -1
- package/dist/umd/additional-components/MiniMap/MiniMap.d.ts.map +1 -1
- package/dist/umd/additional-components/MiniMap/types.d.ts +2 -0
- package/dist/umd/additional-components/MiniMap/types.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeResizer/NodeResizeControl.d.ts.map +1 -1
- package/dist/umd/components/EdgeWrapper/index.d.ts.map +1 -1
- package/dist/umd/components/Handle/index.d.ts +6 -2
- package/dist/umd/components/Handle/index.d.ts.map +1 -1
- package/dist/umd/components/NodeWrapper/index.d.ts.map +1 -1
- package/dist/umd/components/NodesSelection/index.d.ts.map +1 -1
- package/dist/umd/components/ReactFlowProvider/index.d.ts +3 -1
- package/dist/umd/components/ReactFlowProvider/index.d.ts.map +1 -1
- package/dist/umd/components/StoreUpdater/index.d.ts.map +1 -1
- package/dist/umd/container/EdgeRenderer/MarkerDefinitions.d.ts.map +1 -1
- package/dist/umd/container/FlowRenderer/index.d.ts.map +1 -1
- package/dist/umd/container/GraphView/index.d.ts +1 -1
- package/dist/umd/container/GraphView/index.d.ts.map +1 -1
- package/dist/umd/container/ReactFlow/Wrapper.d.ts +3 -1
- package/dist/umd/container/ReactFlow/Wrapper.d.ts.map +1 -1
- package/dist/umd/container/ReactFlow/index.d.ts +3 -118
- package/dist/umd/container/ReactFlow/index.d.ts.map +1 -1
- package/dist/umd/container/ReactFlow/init-values.d.ts +4 -0
- package/dist/umd/container/ReactFlow/init-values.d.ts.map +1 -0
- package/dist/umd/hooks/useConnection.d.ts +13 -7
- package/dist/umd/hooks/useConnection.d.ts.map +1 -1
- package/dist/umd/hooks/useDrag.d.ts +1 -1
- package/dist/umd/hooks/useDrag.d.ts.map +1 -1
- package/dist/umd/hooks/useHandleConnections.d.ts +4 -4
- package/dist/umd/hooks/useHandleConnections.d.ts.map +1 -1
- package/dist/umd/hooks/useKeyPress.d.ts.map +1 -1
- package/dist/umd/hooks/useMoveSelectedNodes.d.ts +12 -0
- package/dist/umd/hooks/useMoveSelectedNodes.d.ts.map +1 -0
- package/dist/umd/hooks/useNodesInitialized.d.ts.map +1 -1
- package/dist/umd/hooks/useOnSelectionChange.d.ts +1 -1
- package/dist/umd/hooks/useReactFlow.d.ts.map +1 -1
- package/dist/umd/hooks/useUpdateNodePositions.d.ts.map +1 -1
- package/dist/umd/index.d.ts +1 -1
- package/dist/umd/index.d.ts.map +1 -1
- package/dist/umd/index.js +2 -2
- package/dist/umd/store/index.d.ts +3 -1
- package/dist/umd/store/index.d.ts.map +1 -1
- package/dist/umd/store/initialState.d.ts +3 -1
- package/dist/umd/store/initialState.d.ts.map +1 -1
- package/dist/umd/types/component-props.d.ts +9 -9
- package/dist/umd/types/component-props.d.ts.map +1 -1
- package/dist/umd/types/general.d.ts +79 -4
- package/dist/umd/types/general.d.ts.map +1 -1
- package/dist/umd/types/instance.d.ts +93 -0
- package/dist/umd/types/instance.d.ts.map +1 -1
- package/dist/umd/types/nodes.d.ts +3 -3
- package/dist/umd/types/nodes.d.ts.map +1 -1
- package/dist/umd/types/store.d.ts +5 -4
- package/dist/umd/types/store.d.ts.map +1 -1
- package/dist/umd/utils/changes.d.ts +1 -1
- package/dist/umd/utils/changes.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/base.css
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
--xy-minimap-background-color-default: #fff;
|
|
14
14
|
--xy-minimap-mask-background-color-default: rgb(240, 240, 240, 0.6);
|
|
15
|
+
--xy-minimap-mask-stroke-color-default: transparent;
|
|
16
|
+
--xy-minimap-mask-stroke-width-default: 1;
|
|
15
17
|
--xy-minimap-node-background-color-default: #e2e2e2;
|
|
16
18
|
--xy-minimap-node-stroke-color-default: transparent;
|
|
17
19
|
--xy-minimap-node-stroke-width-default: 2;
|
|
@@ -41,6 +43,8 @@
|
|
|
41
43
|
|
|
42
44
|
--xy-minimap-background-color-default: #141414;
|
|
43
45
|
--xy-minimap-mask-background-color-default: rgb(60, 60, 60, 0.6);
|
|
46
|
+
--xy-minimap-mask-stroke-color-default: transparent;
|
|
47
|
+
--xy-minimap-mask-stroke-width-default: 1;
|
|
44
48
|
--xy-minimap-node-background-color-default: #2b2b2b;
|
|
45
49
|
--xy-minimap-node-stroke-color-default: transparent;
|
|
46
50
|
--xy-minimap-node-stroke-width-default: 2;
|
|
@@ -127,8 +131,8 @@
|
|
|
127
131
|
outline: none;
|
|
128
132
|
}
|
|
129
133
|
.react-flow__edge.selected .react-flow__edge-path,
|
|
130
|
-
.react-flow__edge:focus .react-flow__edge-path,
|
|
131
|
-
.react-flow__edge:focus-visible .react-flow__edge-path {
|
|
134
|
+
.react-flow__edge.selectable:focus .react-flow__edge-path,
|
|
135
|
+
.react-flow__edge.selectable:focus-visible .react-flow__edge-path {
|
|
132
136
|
stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default));
|
|
133
137
|
}
|
|
134
138
|
.react-flow__edge-textwrapper {
|
|
@@ -275,13 +279,27 @@ svg.react-flow__connectionline {
|
|
|
275
279
|
top: 0;
|
|
276
280
|
}
|
|
277
281
|
.react-flow__minimap {
|
|
278
|
-
background: var(
|
|
282
|
+
background: var(
|
|
283
|
+
--xy-minimap-background-color-props,
|
|
284
|
+
var(--xy-minimap-background-color, var(--xy-minimap-background-color-default))
|
|
285
|
+
);
|
|
279
286
|
}
|
|
287
|
+
.react-flow__minimap-svg {
|
|
288
|
+
display: block;
|
|
289
|
+
}
|
|
280
290
|
.react-flow__minimap-mask {
|
|
281
291
|
fill: var(
|
|
282
292
|
--xy-minimap-mask-background-color-props,
|
|
283
293
|
var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default))
|
|
284
294
|
);
|
|
295
|
+
stroke: var(
|
|
296
|
+
--xy-minimap-mask-stroke-color-props,
|
|
297
|
+
var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default))
|
|
298
|
+
);
|
|
299
|
+
stroke-width: var(
|
|
300
|
+
--xy-minimap-mask-stroke-width-props,
|
|
301
|
+
var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default))
|
|
302
|
+
);
|
|
285
303
|
}
|
|
286
304
|
.react-flow__minimap-node {
|
|
287
305
|
fill: var(
|
|
@@ -356,17 +374,3 @@ svg.react-flow__connectionline {
|
|
|
356
374
|
background: var(--xy-selection-background-color, var(--xy-selection-background-color-default));
|
|
357
375
|
border: var(--xy-selection-border, var(--xy-selection-border-default));
|
|
358
376
|
}
|
|
359
|
-
.react-flow {
|
|
360
|
-
--edge-label-background-color-default: #ffffff;
|
|
361
|
-
--edge-label-color-default: inherit;
|
|
362
|
-
}
|
|
363
|
-
.react-flow.dark {
|
|
364
|
-
--edge-label-background-color-default: #141414;
|
|
365
|
-
--edge-label-color-default: #f8f8f8;
|
|
366
|
-
}
|
|
367
|
-
.react-flow__edge-textbg {
|
|
368
|
-
fill: var(--edge-label-background-color, var(--edge-label-background-color-default));
|
|
369
|
-
}
|
|
370
|
-
.react-flow__edge-text {
|
|
371
|
-
fill: var(--edge-label-color, var(--edge-label-color-default));
|
|
372
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { MiniMapProps } from './types';
|
|
3
|
-
declare function MiniMapComponent({ style, className, nodeStrokeColor, nodeColor, nodeClassName, nodeBorderRadius, nodeStrokeWidth, nodeComponent, maskColor, maskStrokeColor, maskStrokeWidth, position, onClick, onNodeClick, pannable, zoomable, ariaLabel, inversePan, zoomStep, offsetScale, }: MiniMapProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function MiniMapComponent({ style, className, nodeStrokeColor, nodeColor, nodeClassName, nodeBorderRadius, nodeStrokeWidth, nodeComponent, bgColor, maskColor, maskStrokeColor, maskStrokeWidth, position, onClick, onNodeClick, pannable, zoomable, ariaLabel, inversePan, zoomStep, offsetScale, }: MiniMapProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare namespace MiniMapComponent {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MiniMap.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/MiniMap/MiniMap.tsx"],"names":[],"mappings":";AAYA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"MiniMap.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/MiniMap/MiniMap.tsx"],"names":[],"mappings":";AAYA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA4B5C,iBAAS,gBAAgB,CAAC,EACxB,KAAK,EACL,SAAS,EACT,eAAe,EACf,SAAS,EACT,aAAkB,EAClB,gBAAoB,EACpB,eAAe,EAGf,aAAa,EACb,OAAO,EACP,SAAS,EACT,eAAe,EACf,eAAe,EACf,QAAyB,EACzB,OAAO,EACP,WAAW,EACX,QAAgB,EAChB,QAAgB,EAChB,SAAiC,EACjC,UAAU,EACV,QAAa,EACb,WAAe,GAChB,EAAE,YAAY,2CAgHd;kBAxIQ,gBAAgB;;;AA4IzB,eAAO,MAAM,OAAO,8DAAyB,CAAC"}
|
|
@@ -15,6 +15,8 @@ export type MiniMapProps<NodeType extends Node = Node> = Omit<HTMLAttributes<SVG
|
|
|
15
15
|
nodeStrokeWidth?: number;
|
|
16
16
|
/** Component used to render nodes on minimap */
|
|
17
17
|
nodeComponent?: ComponentType<MiniMapNodeProps>;
|
|
18
|
+
/** Background color of minimap */
|
|
19
|
+
bgColor?: string;
|
|
18
20
|
/** Color of mask representing viewport */
|
|
19
21
|
maskColor?: string;
|
|
20
22
|
/** Stroke color of mask representing viewport */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/MiniMap/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,uBAAuB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,KAAK,MAAM,CAAC;AAE/F,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,IAA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;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,IAAI,CAC3D,YAAY,CAAC,QAAQ,CAAC,EACtB,WAAW,GAAG,iBAAiB,GAAG,eAAe,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,eAAe,CAC7G,GAAG;IACF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/MiniMap/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,uBAAuB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI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GAAG,IAAI,CAAC;IAC1B,yDAAyD;IACzD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,IAAI,CAC3D,YAAY,CAAC,QAAQ,CAAC,EACtB,WAAW,GAAG,iBAAiB,GAAG,eAAe,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,eAAe,CAC7G,GAAG;IACF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeResizeControl.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/NodeResizer/NodeResizeControl.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"NodeResizeControl.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/NodeResizer/NodeResizeControl.tsx"],"names":[],"mappings":";AAaA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAE1E,iBAAS,aAAa,CAAC,EACrB,MAAM,EACN,QAAQ,EACR,OAAqC,EACrC,SAAS,EACT,KAAU,EACV,QAAQ,EACR,KAAK,EACL,QAAa,EACb,SAAc,EACd,QAA2B,EAC3B,SAA4B,EAC5B,eAAuB,EACvB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,WAAW,GACZ,EAAE,kBAAkB,2CA8HpB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAE9D;AAED,eAAO,MAAM,iBAAiB,2DAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/EdgeWrapper/index.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,wBAAgB,WAAW,CAAC,EAC1B,EAAE,EACF,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,aAAa,EACb,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,IAAI,EACJ,SAAS,EACT,cAAc,EACd,OAAO,GACR,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/EdgeWrapper/index.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,wBAAgB,WAAW,CAAC,EAC1B,EAAE,EACF,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,aAAa,EACb,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,IAAI,EACJ,SAAS,EACT,cAAc,EACd,OAAO,GACR,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAgOvC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { type HandleProps } from '@xyflow/system';
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export interface HandleComponentProps extends HandleProps, Omit<HTMLAttributes<HTMLDivElement>, 'id'> {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The Handle component is the part of a node that can be used to connect nodes.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Handle: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<HandleComponentProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
5
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/Handle/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAQ,cAAc,EAA4E,MAAM,OAAO,CAAC;AAGvH,OAAO,EAOL,KAAK,WAAW,EAGjB,MAAM,gBAAgB,CAAC;AAMxB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/Handle/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAQ,cAAc,EAA4E,MAAM,OAAO,CAAC;AAGvH,OAAO,EAOL,KAAK,WAAW,EAGjB,MAAM,gBAAgB,CAAC;AAMxB,MAAM,WAAW,oBAAqB,SAAQ,WAAW,EAAE,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC;CAAG;AAuMxG;;GAEG;AACH,eAAO,MAAM,MAAM,sJAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/NodeWrapper/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,wBAAgB,WAAW,CAAC,EAC1B,EAAE,EACF,OAAO,EACP,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,IAAI,EACJ,SAAS,EACT,UAAU,EACV,UAAU,EACV,OAAO,GACR,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/NodeWrapper/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,wBAAgB,WAAW,CAAC,EAC1B,EAAE,EACF,OAAO,EACP,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,IAAI,EACJ,SAAS,EACT,UAAU,EACV,UAAU,EACV,OAAO,GACR,EAAE,gBAAgB,kDAmOlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/NodesSelection/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAqB,KAAK,UAAU,EAAsB,MAAM,OAAO,CAAC;AAS/E,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,aAAa,CAAC;AAExD,MAAM,MAAM,mBAAmB,GAAG;IAChC,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,CAAC;AAcF,wBAAgB,cAAc,CAAC,EAAE,sBAAsB,EAAE,cAAc,EAAE,mBAAmB,EAAE,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/NodesSelection/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAqB,KAAK,UAAU,EAAsB,MAAM,OAAO,CAAC;AAS/E,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,aAAa,CAAC;AAExD,MAAM,MAAM,mBAAmB,GAAG;IAChC,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,CAAC;AAcF,wBAAgB,cAAc,CAAC,EAAE,sBAAsB,EAAE,cAAc,EAAE,mBAAmB,EAAE,EAAE,mBAAmB,kDA2DlH"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { Node, Edge } from '../../types';
|
|
3
|
-
export declare function ReactFlowProvider({ children, initialNodes, initialEdges, initialWidth, initialHeight, fitView, }: {
|
|
3
|
+
export declare function ReactFlowProvider({ children, initialNodes, initialEdges, defaultNodes, defaultEdges, initialWidth, initialHeight, fitView, }: {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
initialNodes?: Node[];
|
|
6
6
|
initialEdges?: Edge[];
|
|
7
|
+
defaultNodes?: Node[];
|
|
8
|
+
defaultEdges?: Edge[];
|
|
7
9
|
initialWidth?: number;
|
|
8
10
|
initialHeight?: number;
|
|
9
11
|
fitView?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/ReactFlowProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAM/C,OAAO,KAAK,EAAkB,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAE9D,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,OAAO,GACR,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/ReactFlowProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAM/C,OAAO,KAAK,EAAkB,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAE9D,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,OAAO,GACR,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,2CAeA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/StoreUpdater/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAA8B,cAAc,EAAkB,MAAM,aAAa,CAAC;AAI9F,QAAA,MAAM,sBAAsB,s4BAqDlB,CAAC;AAEX,KAAK,sBAAsB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AACtE,KAAK,iBAAiB,GAAG,IAAI,CAAC,cAAc,EAAE,sBAAsB,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/StoreUpdater/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAA8B,cAAc,EAAkB,MAAM,aAAa,CAAC;AAI9F,QAAA,MAAM,sBAAsB,s4BAqDlB,CAAC;AAEX,KAAK,sBAAsB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AACtE,KAAK,iBAAiB,GAAG,IAAI,CAAC,cAAc,EAAE,sBAAsB,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AA6BzF,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,QAuDpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkerDefinitions.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/EdgeRenderer/MarkerDefinitions.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"MarkerDefinitions.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/EdgeRenderer/MarkerDefinitions.tsx"],"names":[],"mappings":";AAMA,KAAK,sBAAsB,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;;;;;AAgFF,wBAAuC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/FlowRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK7C,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,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/FlowRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK7C,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,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAuGF,eAAO,MAAM,YAAY;knBA7DtB,iBAAiB;;EA6DmC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ReactFlowProps } from '../../types';
|
|
3
|
-
export type GraphViewProps = Omit<ReactFlowProps, 'onSelectionChange' | 'nodes' | 'edges' | 'onMove' | 'onMoveStart' | 'onMoveEnd' | 'elevateEdgesOnSelect'> & Required<Pick<ReactFlowProps, 'selectionKeyCode' | 'deleteKeyCode' | 'multiSelectionKeyCode' | 'connectionLineType' | 'onlyRenderVisibleElements' | 'translateExtent' | 'minZoom' | 'maxZoom' | 'defaultMarkerColor' | 'noDragClassName' | '
|
|
3
|
+
export type GraphViewProps = Omit<ReactFlowProps, 'onSelectionChange' | 'nodes' | 'edges' | 'onMove' | 'onMoveStart' | 'onMoveEnd' | 'elevateEdgesOnSelect'> & Required<Pick<ReactFlowProps, 'selectionKeyCode' | 'deleteKeyCode' | 'multiSelectionKeyCode' | 'connectionLineType' | 'onlyRenderVisibleElements' | 'translateExtent' | 'minZoom' | 'maxZoom' | 'defaultMarkerColor' | 'noDragClassName' | 'noWheelClassName' | 'noPanClassName' | 'defaultViewport' | 'disableKeyboardA11y' | 'nodeOrigin'>> & {
|
|
4
4
|
rfId: string;
|
|
5
5
|
};
|
|
6
6
|
declare function GraphViewComponent({ nodeTypes, edgeTypes, 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, defaultViewport, translateExtent, minZoom, maxZoom, preventScrolling, defaultMarkerColor, zoomOnScroll, zoomOnPinch, panOnScroll, panOnScrollSpeed, panOnScrollMode, zoomOnDoubleClick, panOnDrag, onPaneClick, onPaneMouseEnter, onPaneMouseMove, onPaneMouseLeave, onPaneScroll, onPaneContextMenu, onEdgeUpdate, onEdgeContextMenu, onEdgeMouseEnter, onEdgeMouseMove, onEdgeMouseLeave, edgeUpdaterRadius, onEdgeUpdateStart, onEdgeUpdateEnd, noDragClassName, noWheelClassName, noPanClassName, disableKeyboardA11y, nodeOrigin, nodeExtent, rfId, viewport, onViewportChange, }: GraphViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/GraphView/index.tsx"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,cAAc,EACd,mBAAmB,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,aAAa,GAAG,WAAW,GAAG,sBAAsB,CAC1G,GACC,QAAQ,CACN,IAAI,CACF,cAAc,EACZ,kBAAkB,GAClB,eAAe,GACf,uBAAuB,GACvB,oBAAoB,GACpB,2BAA2B,GAC3B,iBAAiB,GACjB,SAAS,GACT,SAAS,GACT,oBAAoB,GACpB,iBAAiB,GACjB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/GraphView/index.tsx"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,cAAc,EACd,mBAAmB,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,aAAa,GAAG,WAAW,GAAG,sBAAsB,CAC1G,GACC,QAAQ,CACN,IAAI,CACF,cAAc,EACZ,kBAAkB,GAClB,eAAe,GACf,uBAAuB,GACvB,oBAAoB,GACpB,2BAA2B,GAC3B,iBAAiB,GACjB,SAAS,GACT,SAAS,GACT,oBAAoB,GACpB,iBAAiB,GACjB,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,qBAAqB,GACrB,YAAY,CACf,CACF,GAAG;IACF,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEJ,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,SAAS,EACT,MAAM,EACN,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,4BAA4B,EAC5B,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,EACb,yBAAyB,EACzB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,gBAAgB,GACjB,EAAE,cAAc,2CA2FhB;kBA3JQ,kBAAkB;;;AA+J3B,eAAO,MAAM,SAAS,gEAA2B,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { Node, Edge } from '../../types';
|
|
3
|
-
export declare function Wrapper({ children, nodes, edges, width, height, fitView, }: {
|
|
3
|
+
export declare function Wrapper({ children, nodes, edges, defaultNodes, defaultEdges, width, height, fitView, }: {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
nodes?: Node[];
|
|
6
6
|
edges?: Edge[];
|
|
7
|
+
defaultNodes?: Node[];
|
|
8
|
+
defaultEdges?: Edge[];
|
|
7
9
|
width?: number;
|
|
8
10
|
height?: number;
|
|
9
11
|
fitView?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/ReactFlow/Wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAE9C,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,KAAK,EACL,KAAK,EACL,KAAK,EACL,MAAM,EACN,OAAO,GACR,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,
|
|
1
|
+
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/ReactFlow/Wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAE9C,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,KAAK,EACL,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,KAAK,EACL,MAAM,EACN,OAAO,GACR,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,2CAsBA"}
|
|
@@ -1,120 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
declare const ReactFlow: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement>, "onError"> & {
|
|
5
|
-
nodes?: import("../../types").Node<any, string | undefined>[] | undefined;
|
|
6
|
-
edges?: import("../../types").Edge<any>[] | undefined;
|
|
7
|
-
defaultNodes?: import("../../types").Node<any, string | undefined>[] | undefined;
|
|
8
|
-
defaultEdges?: import("../../types").Edge<any>[] | undefined;
|
|
9
|
-
defaultEdgeOptions?: import("../../types").DefaultEdgeOptions | undefined;
|
|
10
|
-
onNodeClick?: import("../../types").NodeMouseHandler | undefined;
|
|
11
|
-
onNodeDoubleClick?: import("../../types").NodeMouseHandler | undefined;
|
|
12
|
-
onNodeMouseEnter?: import("../../types").NodeMouseHandler | undefined;
|
|
13
|
-
onNodeMouseMove?: import("../../types").NodeMouseHandler | undefined;
|
|
14
|
-
onNodeMouseLeave?: import("../../types").NodeMouseHandler | undefined;
|
|
15
|
-
onNodeContextMenu?: import("../../types").NodeMouseHandler | undefined;
|
|
16
|
-
onNodeDragStart?: import("../../types").NodeDragHandler | undefined;
|
|
17
|
-
onNodeDrag?: import("../../types").NodeDragHandler | undefined;
|
|
18
|
-
onNodeDragStop?: import("../../types").NodeDragHandler | undefined;
|
|
19
|
-
onEdgeClick?: ((event: import("react").MouseEvent<Element, MouseEvent>, edge: import("../../types").Edge<any>) => void) | undefined;
|
|
20
|
-
onEdgeContextMenu?: import("../../types").EdgeMouseHandler | undefined;
|
|
21
|
-
onEdgeMouseEnter?: import("../../types").EdgeMouseHandler | undefined;
|
|
22
|
-
onEdgeMouseMove?: import("../../types").EdgeMouseHandler | undefined;
|
|
23
|
-
onEdgeMouseLeave?: import("../../types").EdgeMouseHandler | undefined;
|
|
24
|
-
onEdgeDoubleClick?: import("../../types").EdgeMouseHandler | undefined;
|
|
25
|
-
onEdgeUpdateStart?: ((event: import("react").MouseEvent<Element, MouseEvent>, edge: import("../../types").Edge<any>, handleType: import("@xyflow/system").HandleType) => void) | undefined;
|
|
26
|
-
onEdgeUpdateEnd?: ((event: MouseEvent | TouchEvent, edge: import("../../types").Edge<any>, handleType: import("@xyflow/system").HandleType) => void) | undefined;
|
|
27
|
-
onEdgeUpdate?: import("../../types").OnEdgeUpdateFunc<any> | undefined;
|
|
28
|
-
onNodesChange?: import("../../types").OnNodesChange<import("../../types").Node<any, string | undefined>> | undefined;
|
|
29
|
-
onEdgesChange?: import("../../types").OnEdgesChange<import("../../types").Edge<any>> | undefined;
|
|
30
|
-
onNodesDelete?: import("../../types").OnNodesDelete | undefined;
|
|
31
|
-
onEdgesDelete?: import("../../types").OnEdgesDelete | undefined;
|
|
32
|
-
onDelete?: import("../../types").OnDelete | undefined;
|
|
33
|
-
onSelectionDragStart?: import("../../types").SelectionDragHandler | undefined;
|
|
34
|
-
onSelectionDrag?: import("../../types").SelectionDragHandler | undefined;
|
|
35
|
-
onSelectionDragStop?: import("../../types").SelectionDragHandler | undefined;
|
|
36
|
-
onSelectionStart?: ((event: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
37
|
-
onSelectionEnd?: ((event: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
38
|
-
onSelectionContextMenu?: ((event: import("react").MouseEvent<Element, MouseEvent>, nodes: import("../../types").Node<any, string | undefined>[]) => void) | undefined;
|
|
39
|
-
onConnect?: import("@xyflow/system").OnConnect | undefined;
|
|
40
|
-
onConnectStart?: import("@xyflow/system").OnConnectStart | undefined;
|
|
41
|
-
onConnectEnd?: import("@xyflow/system").OnConnectEnd | undefined;
|
|
42
|
-
onClickConnectStart?: import("@xyflow/system").OnConnectStart | undefined;
|
|
43
|
-
onClickConnectEnd?: import("@xyflow/system").OnConnectEnd | undefined;
|
|
44
|
-
onInit?: import("../../types").OnInit<import("../../types").Node<any, string | undefined>, import("../../types").Edge<any>> | undefined;
|
|
45
|
-
onMove?: import("@xyflow/system").OnMove | undefined;
|
|
46
|
-
onMoveStart?: import("@xyflow/system").OnMove | undefined;
|
|
47
|
-
onMoveEnd?: import("@xyflow/system").OnMove | undefined;
|
|
48
|
-
onSelectionChange?: import("../../types").OnSelectionChangeFunc | undefined;
|
|
49
|
-
onPaneScroll?: ((event?: import("react").WheelEvent<Element> | undefined) => void) | undefined;
|
|
50
|
-
onPaneClick?: ((event: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
51
|
-
onPaneContextMenu?: ((event: MouseEvent | import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
52
|
-
onPaneMouseEnter?: ((event: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
53
|
-
onPaneMouseMove?: ((event: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
54
|
-
onPaneMouseLeave?: ((event: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
55
|
-
onBeforeDelete?: import("@xyflow/system").OnBeforeDelete | undefined;
|
|
56
|
-
nodeTypes?: import("../../types").NodeTypes | undefined;
|
|
57
|
-
edgeTypes?: import("../../types").EdgeTypes | undefined;
|
|
58
|
-
connectionLineType?: ConnectionLineType | undefined;
|
|
59
|
-
connectionLineStyle?: CSSProperties | undefined;
|
|
60
|
-
connectionLineComponent?: import("../../types").ConnectionLineComponent | undefined;
|
|
61
|
-
connectionLineContainerStyle?: CSSProperties | undefined;
|
|
62
|
-
connectionMode?: import("@xyflow/system").ConnectionMode | undefined;
|
|
63
|
-
deleteKeyCode?: import("@xyflow/system").KeyCode | null | undefined;
|
|
64
|
-
selectionKeyCode?: import("@xyflow/system").KeyCode | null | undefined;
|
|
65
|
-
selectionOnDrag?: boolean | undefined;
|
|
66
|
-
selectionMode?: SelectionMode | undefined;
|
|
67
|
-
panActivationKeyCode?: import("@xyflow/system").KeyCode | null | undefined;
|
|
68
|
-
multiSelectionKeyCode?: import("@xyflow/system").KeyCode | null | undefined;
|
|
69
|
-
zoomActivationKeyCode?: import("@xyflow/system").KeyCode | null | undefined;
|
|
70
|
-
snapToGrid?: boolean | undefined;
|
|
71
|
-
snapGrid?: import("@xyflow/system").SnapGrid | undefined;
|
|
72
|
-
onlyRenderVisibleElements?: boolean | undefined;
|
|
73
|
-
nodesDraggable?: boolean | undefined;
|
|
74
|
-
nodesConnectable?: boolean | undefined;
|
|
75
|
-
nodesFocusable?: boolean | undefined;
|
|
76
|
-
nodeOrigin?: NodeOrigin | undefined;
|
|
77
|
-
edgesFocusable?: boolean | undefined;
|
|
78
|
-
edgesUpdatable?: boolean | undefined;
|
|
79
|
-
elementsSelectable?: boolean | undefined;
|
|
80
|
-
selectNodesOnDrag?: boolean | undefined;
|
|
81
|
-
panOnDrag?: boolean | number[] | undefined;
|
|
82
|
-
minZoom?: number | undefined;
|
|
83
|
-
maxZoom?: number | undefined;
|
|
84
|
-
viewport?: Viewport | undefined;
|
|
85
|
-
defaultViewport?: Viewport | undefined;
|
|
86
|
-
onViewportChange?: ((viewport: Viewport) => void) | undefined;
|
|
87
|
-
translateExtent?: import("@xyflow/system").CoordinateExtent | undefined;
|
|
88
|
-
preventScrolling?: boolean | undefined;
|
|
89
|
-
nodeExtent?: import("@xyflow/system").CoordinateExtent | undefined;
|
|
90
|
-
defaultMarkerColor?: string | undefined;
|
|
91
|
-
zoomOnScroll?: boolean | undefined;
|
|
92
|
-
zoomOnPinch?: boolean | undefined;
|
|
93
|
-
panOnScroll?: boolean | undefined;
|
|
94
|
-
panOnScrollSpeed?: number | undefined;
|
|
95
|
-
panOnScrollMode?: PanOnScrollMode | undefined;
|
|
96
|
-
zoomOnDoubleClick?: boolean | undefined;
|
|
97
|
-
edgeUpdaterRadius?: number | undefined;
|
|
98
|
-
noDragClassName?: string | undefined;
|
|
99
|
-
noWheelClassName?: string | undefined;
|
|
100
|
-
noPanClassName?: string | undefined;
|
|
101
|
-
fitView?: boolean | undefined;
|
|
102
|
-
fitViewOptions?: import("../../types").FitViewOptions | undefined;
|
|
103
|
-
connectOnClick?: boolean | undefined;
|
|
104
|
-
attributionPosition?: import("@xyflow/system").PanelPosition | undefined;
|
|
105
|
-
proOptions?: import("@xyflow/system").ProOptions | undefined;
|
|
106
|
-
elevateNodesOnSelect?: boolean | undefined;
|
|
107
|
-
elevateEdgesOnSelect?: boolean | undefined;
|
|
108
|
-
disableKeyboardA11y?: boolean | undefined;
|
|
109
|
-
autoPanOnNodeDrag?: boolean | undefined;
|
|
110
|
-
autoPanOnConnect?: boolean | undefined;
|
|
111
|
-
connectionRadius?: number | undefined;
|
|
112
|
-
onError?: import("@xyflow/system").OnError | undefined;
|
|
113
|
-
isValidConnection?: import("@xyflow/system").IsValidConnection | undefined;
|
|
114
|
-
nodeDragThreshold?: number | undefined;
|
|
115
|
-
width?: number | undefined;
|
|
116
|
-
height?: number | undefined;
|
|
117
|
-
colorMode?: import("@xyflow/system").ColorMode | undefined;
|
|
118
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ReactFlowProps } from '../../types';
|
|
3
|
+
declare const ReactFlow: import("react").ForwardRefExoticComponent<ReactFlowProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
119
4
|
export default ReactFlow;
|
|
120
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/ReactFlow/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/ReactFlow/index.tsx"],"names":[],"mappings":";AAWA,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,aAAa,CAAC;AAWpE,QAAA,MAAM,SAAS,2GAgRd,CAAC;AAIF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-values.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/ReactFlow/init-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE3D,eAAO,MAAM,iBAAiB,EAAE,UAAmB,CAAC;AACpD,eAAO,MAAM,eAAe,EAAE,QAAkC,CAAC"}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import type { ReactFlowStore } from '../types/store';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
* @public
|
|
6
|
-
* @returns ongoing connection: startHandle, endHandle, status, position
|
|
7
|
-
*/
|
|
8
|
-
export declare function useConnection(): {
|
|
2
|
+
type UseConnectionResult = {
|
|
3
|
+
/** The start handle where the user interaction started or null */
|
|
9
4
|
startHandle: ReactFlowStore['connectionStartHandle'];
|
|
5
|
+
/** The target handle that's inside the connection radius or null */
|
|
10
6
|
endHandle: ReactFlowStore['connectionEndHandle'];
|
|
7
|
+
/** The current connection status 'valid', 'invalid' or null*/
|
|
11
8
|
status: ReactFlowStore['connectionStatus'];
|
|
9
|
+
/** The current connection position or null */
|
|
12
10
|
position: ReactFlowStore['connectionPosition'] | null;
|
|
13
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Hook for accessing the ongoing connection.
|
|
14
|
+
*
|
|
15
|
+
* @public
|
|
16
|
+
* @returns ongoing connection
|
|
17
|
+
*/
|
|
18
|
+
export declare function useConnection(): UseConnectionResult;
|
|
19
|
+
export {};
|
|
14
20
|
//# sourceMappingURL=useConnection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConnection.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useConnection.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AASrD
|
|
1
|
+
{"version":3,"file":"useConnection.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useConnection.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AASrD,KAAK,mBAAmB,GAAG;IACzB,kEAAkE;IAClE,WAAW,EAAE,cAAc,CAAC,uBAAuB,CAAC,CAAC;IACrD,qEAAqE;IACrE,SAAS,EAAE,cAAc,CAAC,qBAAqB,CAAC,CAAC;IACjD,8DAA8D;IAC9D,MAAM,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;IAC3C,8CAA8C;IAC9C,QAAQ,EAAE,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC;CACvD,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,aAAa,IAAI,mBAAmB,CAInD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrag.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useDrag.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMpE,KAAK,aAAa,GAAG;IACnB,OAAO,EAAE,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"useDrag.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useDrag.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMpE,KAAK,aAAa,GAAG;IACnB,OAAO,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACnC,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;CACxB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,EACtB,OAAO,EACP,QAAgB,EAChB,eAAe,EACf,cAAc,EACd,MAAM,EACN,YAAY,GACb,EAAE,aAAa,WA6Cf"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Connection, HandleType } from '@xyflow/system';
|
|
1
|
+
import { Connection, HandleConnection, HandleType } from '@xyflow/system';
|
|
2
2
|
type useHandleConnectionsParams = {
|
|
3
3
|
type: HandleType;
|
|
4
4
|
id?: string | null;
|
|
@@ -7,7 +7,7 @@ type useHandleConnectionsParams = {
|
|
|
7
7
|
onDisconnect?: (connections: Connection[]) => void;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Hook to check if a <Handle /> is connected to another <Handle /> and get the connections.
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
13
|
* @param param.type - handle type 'source' or 'target'
|
|
@@ -15,8 +15,8 @@ type useHandleConnectionsParams = {
|
|
|
15
15
|
* @param param.id - the handle id (this is only needed if the node has multiple handles of the same type)
|
|
16
16
|
* @param param.onConnect - gets called when a connection is established
|
|
17
17
|
* @param param.onDisconnect - gets called when a connection is removed
|
|
18
|
-
* @returns an array with connections
|
|
18
|
+
* @returns an array with handle connections
|
|
19
19
|
*/
|
|
20
|
-
export declare function useHandleConnections({ type, id, nodeId, onConnect, onDisconnect, }: useHandleConnectionsParams):
|
|
20
|
+
export declare function useHandleConnections({ type, id, nodeId, onConnect, onDisconnect, }: useHandleConnectionsParams): HandleConnection[];
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=useHandleConnections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHandleConnections.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useHandleConnections.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"useHandleConnections.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useHandleConnections.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EAGX,MAAM,gBAAgB,CAAC;AAKxB,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,UAAU,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IAChD,YAAY,CAAC,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;CACpD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,EAAS,EACT,MAAM,EACN,SAAS,EACT,YAAY,GACb,EAAE,0BAA0B,GAAG,gBAAgB,EAAE,CAuBjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyPress.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useKeyPress.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAM9D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,IAAI,CAAC;IAC7D,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC,CAAC;AAIF;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAKzB,OAAO,GAAE,OAAO,GAAG,IAAW,EAC9B,OAAO,GAAE,kBAA6E,GACrF,OAAO,
|
|
1
|
+
{"version":3,"file":"useKeyPress.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useKeyPress.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAM9D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,IAAI,CAAC;IAC7D,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC,CAAC;AAIF;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAKzB,OAAO,GAAE,OAAO,GAAG,IAAW,EAC9B,OAAO,GAAE,kBAA6E,GACrF,OAAO,CA4FT"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type XYPosition } from '@xyflow/system';
|
|
2
|
+
/**
|
|
3
|
+
* Hook for updating node positions by passing a direction and factor
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
* @returns function for updating node positions
|
|
7
|
+
*/
|
|
8
|
+
export declare function useMoveSelectedNodes(): (params: {
|
|
9
|
+
direction: XYPosition;
|
|
10
|
+
factor: number;
|
|
11
|
+
}) => void;
|
|
12
|
+
//# sourceMappingURL=useMoveSelectedNodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMoveSelectedNodes.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useMoveSelectedNodes.ts"],"names":[],"mappings":"AACA,OAAO,EAAuC,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAQtF;;;;;GAKG;AACH,wBAAgB,oBAAoB,aAGa;IAAE,SAAS,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,UAoDzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNodesInitialized.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useNodesInitialized.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,0BAA0B,GAAG;IACvC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;
|
|
1
|
+
{"version":3,"file":"useNodesInitialized.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useNodesInitialized.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,0BAA0B,GAAG;IACvC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAsBF;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,0BAA2C,GAAG,OAAO,CAIjG"}
|
|
@@ -6,7 +6,7 @@ export type UseOnSelectionChangeOptions = {
|
|
|
6
6
|
* Hook for registering an onSelectionChange handler.
|
|
7
7
|
*
|
|
8
8
|
* @public
|
|
9
|
-
* @
|
|
9
|
+
* @param params.onChange - The handler to register
|
|
10
10
|
*/
|
|
11
11
|
export declare function useOnSelectionChange({ onChange }: UseOnSelectionChangeOptions): void;
|
|
12
12
|
//# sourceMappingURL=useOnSelectionChange.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useReactFlow.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useReactFlow.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useReactFlow.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useReactFlow.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAY,IAAI,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGxE;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,KAAK,iBAAiB,CAC3G,QAAQ,EACR,QAAQ,CACT,CAgUA"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -30,6 +30,6 @@ export { applyNodeChanges, applyEdgeChanges, handleParentExpand } from './utils/
|
|
|
30
30
|
export { isNode, isEdge } from './utils/general';
|
|
31
31
|
export * from './additional-components';
|
|
32
32
|
export * from './types';
|
|
33
|
-
export { type SmoothStepPathOptions, type BezierPathOptions, ConnectionLineType, type EdgeMarker, type EdgeMarkerType, MarkerType, type OnMove, type OnMoveStart, type OnMoveEnd, type Connection, type ConnectionStatus, ConnectionMode, type OnConnectStartParams, type OnConnectStart, type OnConnect, type OnConnectEnd, type IsValidConnection, type Viewport, type SnapGrid, PanOnScrollMode, type ViewportHelperFunctionOptions, type SetCenterOptions, type FitBoundsOptions, type PanelPosition, type ProOptions, SelectionMode, type SelectionRect, type OnError, type NodeProps, type NodeOrigin, type
|
|
33
|
+
export { type SmoothStepPathOptions, type BezierPathOptions, ConnectionLineType, type EdgeMarker, type EdgeMarkerType, MarkerType, type OnMove, type OnMoveStart, type OnMoveEnd, type Connection, type ConnectionStatus, ConnectionMode, type OnConnectStartParams, type OnConnectStart, type OnConnect, type OnConnectEnd, type IsValidConnection, type Viewport, type SnapGrid, PanOnScrollMode, type ViewportHelperFunctionOptions, type SetCenterOptions, type FitBoundsOptions, type PanelPosition, type ProOptions, SelectionMode, type SelectionRect, type OnError, type NodeProps, type NodeOrigin, type OnSelectionDrag, Position, type XYPosition, type XYZPosition, type Dimensions, type Rect, type Box, type Transform, type CoordinateExtent, type ColorMode, type ColorModeClass, type HandleType, type ShouldResize, type OnResizeStart, type OnResize, type OnResizeEnd, type ControlPosition, type ControlLinePosition, type ResizeControlVariant, } from '@xyflow/system';
|
|
34
34
|
export { type GetBezierPathParams, getBezierEdgeCenter, getBezierPath, getEdgeCenter, type GetSmoothStepPathParams, getSmoothStepPath, type GetStraightPathParams, getStraightPath, getViewportForBounds, getNodesBounds, getIncomers, getOutgoers, addEdge, updateEdge, getConnectedEdges, internalsSymbol, } from '@xyflow/system';
|
|
35
35
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/react/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE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