@xyflow/react 12.0.0-next.16 → 12.0.0-next.18

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.
Files changed (47) hide show
  1. package/dist/base.css +93 -0
  2. package/dist/esm/components/Handle/index.d.ts +5 -3
  3. package/dist/esm/components/Handle/index.d.ts.map +1 -1
  4. package/dist/esm/components/NodeWrapper/index.d.ts.map +1 -1
  5. package/dist/esm/container/GraphView/index.d.ts.map +1 -1
  6. package/dist/esm/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +6 -0
  7. package/dist/esm/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +1 -1
  8. package/dist/esm/container/GraphView/useStylesLoadedWarning.d.ts +2 -0
  9. package/dist/esm/container/GraphView/useStylesLoadedWarning.d.ts.map +1 -0
  10. package/dist/esm/container/ReactFlow/index.d.ts +1 -1
  11. package/dist/esm/hooks/useReactFlow.d.ts.map +1 -1
  12. package/dist/esm/hooks/useViewportHelper.d.ts.map +1 -1
  13. package/dist/esm/index.d.ts +2 -2
  14. package/dist/esm/index.d.ts.map +1 -1
  15. package/dist/esm/index.js +181 -178
  16. package/dist/esm/index.mjs +181 -178
  17. package/dist/esm/types/general.d.ts +2 -3
  18. package/dist/esm/types/general.d.ts.map +1 -1
  19. package/dist/esm/types/instance.d.ts +30 -45
  20. package/dist/esm/types/instance.d.ts.map +1 -1
  21. package/dist/esm/utils/changes.d.ts +2 -1
  22. package/dist/esm/utils/changes.d.ts.map +1 -1
  23. package/dist/esm/utils/general.d.ts +2 -2
  24. package/dist/esm/utils/general.d.ts.map +1 -1
  25. package/dist/umd/components/Handle/index.d.ts +5 -3
  26. package/dist/umd/components/Handle/index.d.ts.map +1 -1
  27. package/dist/umd/components/NodeWrapper/index.d.ts.map +1 -1
  28. package/dist/umd/container/GraphView/index.d.ts.map +1 -1
  29. package/dist/umd/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +6 -0
  30. package/dist/umd/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +1 -1
  31. package/dist/umd/container/GraphView/useStylesLoadedWarning.d.ts +2 -0
  32. package/dist/umd/container/GraphView/useStylesLoadedWarning.d.ts.map +1 -0
  33. package/dist/umd/container/ReactFlow/index.d.ts +1 -1
  34. package/dist/umd/hooks/useReactFlow.d.ts.map +1 -1
  35. package/dist/umd/hooks/useViewportHelper.d.ts.map +1 -1
  36. package/dist/umd/index.d.ts +2 -2
  37. package/dist/umd/index.d.ts.map +1 -1
  38. package/dist/umd/index.js +2 -2
  39. package/dist/umd/types/general.d.ts +2 -3
  40. package/dist/umd/types/general.d.ts.map +1 -1
  41. package/dist/umd/types/instance.d.ts +30 -45
  42. package/dist/umd/types/instance.d.ts.map +1 -1
  43. package/dist/umd/utils/changes.d.ts +2 -1
  44. package/dist/umd/utils/changes.d.ts.map +1 -1
  45. package/dist/umd/utils/general.d.ts +2 -2
  46. package/dist/umd/utils/general.d.ts.map +1 -1
  47. package/package.json +3 -3
package/dist/base.css CHANGED
@@ -32,6 +32,7 @@
32
32
 
33
33
  --xy-selection-background-color-default: rgba(150, 150, 180, 0.1);
34
34
  --xy-selection-border-default: 1px dotted rgba(155, 155, 155, 0.8);
35
+ --xy-resize-background-color-default: #3367d9;
35
36
  }
36
37
  .react-flow.dark {
37
38
  --xy-edge-stroke-default: #3e3e3e;
@@ -395,3 +396,95 @@ svg.react-flow__connectionline {
395
396
  background: var(--xy-selection-background-color, var(--xy-selection-background-color-default));
396
397
  border: var(--xy-selection-border, var(--xy-selection-border-default));
397
398
  }
399
+ .react-flow__resize-control {
400
+ position: absolute;
401
+ }
402
+ .react-flow__resize-control.left,
403
+ .react-flow__resize-control.right {
404
+ cursor: ew-resize;
405
+ }
406
+ .react-flow__resize-control.top,
407
+ .react-flow__resize-control.bottom {
408
+ cursor: ns-resize;
409
+ }
410
+ .react-flow__resize-control.top.left,
411
+ .react-flow__resize-control.bottom.right {
412
+ cursor: nwse-resize;
413
+ }
414
+ .react-flow__resize-control.bottom.left,
415
+ .react-flow__resize-control.top.right {
416
+ cursor: nesw-resize;
417
+ }
418
+ /* handle styles */
419
+ .react-flow__resize-control.handle {
420
+ width: 4px;
421
+ height: 4px;
422
+ border: 1px solid #fff;
423
+ border-radius: 1px;
424
+ background-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
425
+ transform: translate(-50%, -50%);
426
+ }
427
+ .react-flow__resize-control.handle.left {
428
+ left: 0;
429
+ top: 50%;
430
+ }
431
+ .react-flow__resize-control.handle.right {
432
+ left: 100%;
433
+ top: 50%;
434
+ }
435
+ .react-flow__resize-control.handle.top {
436
+ left: 50%;
437
+ top: 0;
438
+ }
439
+ .react-flow__resize-control.handle.bottom {
440
+ left: 50%;
441
+ top: 100%;
442
+ }
443
+ .react-flow__resize-control.handle.top.left {
444
+ left: 0;
445
+ }
446
+ .react-flow__resize-control.handle.bottom.left {
447
+ left: 0;
448
+ }
449
+ .react-flow__resize-control.handle.top.right {
450
+ left: 100%;
451
+ }
452
+ .react-flow__resize-control.handle.bottom.right {
453
+ left: 100%;
454
+ }
455
+ /* line styles */
456
+ .react-flow__resize-control.line {
457
+ border-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
458
+ border-width: 0;
459
+ border-style: solid;
460
+ }
461
+ .react-flow__resize-control.line.left,
462
+ .react-flow__resize-control.line.right {
463
+ width: 1px;
464
+ transform: translate(-50%, 0);
465
+ top: 0;
466
+ height: 100%;
467
+ }
468
+ .react-flow__resize-control.line.left {
469
+ left: 0;
470
+ border-left-width: 1px;
471
+ }
472
+ .react-flow__resize-control.line.right {
473
+ left: 100%;
474
+ border-right-width: 1px;
475
+ }
476
+ .react-flow__resize-control.line.top,
477
+ .react-flow__resize-control.line.bottom {
478
+ height: 1px;
479
+ transform: translate(0, -50%);
480
+ left: 0;
481
+ width: 100%;
482
+ }
483
+ .react-flow__resize-control.line.top {
484
+ top: 0;
485
+ border-top-width: 1px;
486
+ }
487
+ .react-flow__resize-control.line.bottom {
488
+ border-bottom-width: 1px;
489
+ top: 100%;
490
+ }
@@ -1,9 +1,11 @@
1
1
  import { type HTMLAttributes } from 'react';
2
- import { type HandleProps } from '@xyflow/system';
3
- export interface HandleComponentProps extends HandleProps, Omit<HTMLAttributes<HTMLDivElement>, 'id'> {
2
+ import { type HandleProps as HandlePropsSystem, OnConnect } from '@xyflow/system';
3
+ export interface HandleProps extends HandlePropsSystem, Omit<HTMLAttributes<HTMLDivElement>, 'id'> {
4
+ /** Callback called when connection is made */
5
+ onConnect?: OnConnect;
4
6
  }
5
7
  /**
6
8
  * The Handle component is a UI element that is used to connect nodes.
7
9
  */
8
- export declare const Handle: import("react").MemoExoticComponent<(props: HandleComponentProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactNode>;
10
+ export declare const Handle: import("react").MemoExoticComponent<(props: HandleProps & import("react").RefAttributes<HTMLDivElement>) => JSX.Element>;
9
11
  //# 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":"AAAA,OAAO,EACL,KAAK,cAAc,EAKpB,MAAM,OAAO,CAAC;AAGf,OAAO,EAOL,KAAK,WAAW,EAIjB,MAAM,gBAAgB,CAAC;AAOxB,MAAM,WAAW,oBAAqB,SAAQ,WAAW,EAAE,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC;CAAG;AAuNxG;;GAEG;AACH,eAAO,MAAM,MAAM,iJAAyC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/Handle/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAKpB,MAAM,OAAO,CAAC;AAGf,OAAO,EAOL,KAAK,WAAW,IAAI,iBAAiB,EAIrC,SAAS,EACV,MAAM,gBAAgB,CAAC;AAOxB,MAAM,WAAW,WAAY,SAAQ,iBAAiB,EAAE,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC;IAChG,8CAA8C;IAC9C,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAuND;;GAEG;AACH,eAAO,MAAM,MAAM,0HAAyC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/NodeWrapper/index.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAgB,IAAI,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAExE,wBAAgB,WAAW,CAAC,QAAQ,SAAS,IAAI,EAAE,EACjD,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,CAAC,QAAQ,CAAC,kDAwK5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/NodeWrapper/index.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAgB,IAAI,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAExE,wBAAgB,WAAW,CAAC,QAAQ,SAAS,IAAI,EAAE,EACjD,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,CAAC,QAAQ,CAAC,kDAkL5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/Gra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,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,CAAC,QAAQ,EAAE,QAAQ,CAAC,2CA2FpC;kBA3JQ,kBAAkB;;;AA+J3B,eAAO,MAAM,SAAS,2BAAwD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/GraphView/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG9D,MAAM,MAAM,cAAc,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,IAAI,CAC3F,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAClC,mBAAmB,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,aAAa,GAAG,WAAW,GAAG,sBAAsB,CAC1G,GACC,QAAQ,CACN,IAAI,CACF,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAChC,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,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,EACtF,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,CAAC,QAAQ,EAAE,QAAQ,CAAC,2CA4FpC;kBA5JQ,kBAAkB;;;AAgK3B,eAAO,MAAM,SAAS,2BAAwD,CAAC"}
@@ -1,4 +1,10 @@
1
1
  import type { EdgeTypes, NodeTypes } from '../../types';
2
+ /**
3
+ * This hook warns the user if nodeTypes or edgeTypes changed.
4
+ * It is only used in development mode.
5
+ *
6
+ * @internal
7
+ */
2
8
  export declare function useNodeOrEdgeTypesWarning(nodeOrEdgeTypes?: NodeTypes): void;
3
9
  export declare function useNodeOrEdgeTypesWarning(nodeOrEdgeTypes?: EdgeTypes): void;
4
10
  //# sourceMappingURL=useNodeOrEdgeTypesWarning.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useNodeOrEdgeTypesWarning.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/GraphView/useNodeOrEdgeTypesWarning.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQxD,wBAAgB,yBAAyB,CAAC,eAAe,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;AAC7E,wBAAgB,yBAAyB,CAAC,eAAe,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"useNodeOrEdgeTypesWarning.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/GraphView/useNodeOrEdgeTypesWarning.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAIxD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,eAAe,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;AAC7E,wBAAgB,yBAAyB,CAAC,eAAe,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function useStylesLoadedWarning(): void;
2
+ //# sourceMappingURL=useStylesLoadedWarning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStylesLoadedWarning.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/container/GraphView/useStylesLoadedWarning.ts"],"names":[],"mappings":"AAKA,wBAAgB,sBAAsB,SAiBrC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import type { Edge, Node, ReactFlowProps } from '../../types';
3
- declare const _default: <NodeType extends Node = Node, EdgeType extends Edge = Edge>(props: ReactFlowProps<NodeType, EdgeType> & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactNode;
3
+ declare const _default: <NodeType extends Node = Node, EdgeType extends Edge = Edge>(props: ReactFlowProps<NodeType, EdgeType> & import("react").RefAttributes<HTMLDivElement>) => JSX.Element;
4
4
  export default _default;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useReactFlow.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useReactFlow.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,iBAAiB,EAAY,IAAI,EAAE,IAAI,EAAgB,MAAM,UAAU,CAAC;AAEtF;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,KAAK,iBAAiB,CAC3G,QAAQ,EACR,QAAQ,CACT,CAwPA"}
1
+ {"version":3,"file":"useReactFlow.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useReactFlow.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,EAAgD,MAAM,UAAU,CAAC;AAI5G;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,KAAK,iBAAiB,CAC3G,QAAQ,EACR,QAAQ,CACT,CAuLA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useViewportHelper.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useViewportHelper.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,uBAAuB,EAAkB,MAAM,UAAU,CAAC;AAIxE;;;;;GAKG;AACH,QAAA,MAAM,iBAAiB,QAAO,uBAwG7B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"useViewportHelper.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useViewportHelper.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD;;;;;GAKG;AACH,QAAA,MAAM,iBAAiB,QAAO,uBAoG7B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export { default as ReactFlow } from './container/ReactFlow';
2
- export { Handle, type HandleComponentProps } from './components/Handle';
2
+ export { Handle, type HandleProps } from './components/Handle';
3
3
  export { EdgeText } from './components/Edges/EdgeText';
4
4
  export { StraightEdge } from './components/Edges/StraightEdge';
5
5
  export { StepEdge } from './components/Edges/StepEdge';
@@ -31,6 +31,6 @@ export { applyNodeChanges, applyEdgeChanges } from './utils/changes';
31
31
  export { isNode, isEdge } from './utils/general';
32
32
  export * from './additional-components';
33
33
  export * from './types';
34
- 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 Viewport, type SnapGrid, PanOnScrollMode, type ViewportHelperFunctionOptions, type SetCenterOptions, type FitBoundsOptions, type PanelPosition, type ProOptions, SelectionMode, type SelectionRect, type OnError, 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, type NodeChange, type NodeDimensionChange, type NodePositionChange, type NodeSelectionChange, type NodeRemoveChange, type NodeAddChange, type NodeReplaceChange, type EdgeChange, type EdgeSelectionChange, type EdgeRemoveChange, type EdgeAddChange, type EdgeReplaceChange, } from '@xyflow/system';
34
+ export { type Align, 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 Viewport, type SnapGrid, PanOnScrollMode, type ViewportHelperFunctionOptions, type SetCenterOptions, type FitBoundsOptions, type PanelPosition, type ProOptions, SelectionMode, type SelectionRect, type OnError, 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, type NodeChange, type NodeDimensionChange, type NodePositionChange, type NodeSelectionChange, type NodeRemoveChange, type NodeAddChange, type NodeReplaceChange, type EdgeChange, type EdgeSelectionChange, type EdgeRemoveChange, type EdgeAddChange, type EdgeReplaceChange, type KeyCode, } from '@xyflow/system';
35
35
  export { type GetBezierPathParams, getBezierEdgeCenter, getBezierPath, getEdgeCenter, type GetSmoothStepPathParams, getSmoothStepPath, type GetStraightPathParams, getStraightPath, getViewportForBounds, getNodesBounds, getIncomers, getOutgoers, addEdge, updateEdge, getConnectedEdges, } from '@xyflow/system';
36
36
  //# sourceMappingURL=index.d.ts.map
@@ -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,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,C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