@xyflow/react 12.0.0-next.17 → 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.
- package/dist/base.css +93 -0
- package/dist/esm/components/Handle/index.d.ts +5 -3
- package/dist/esm/components/Handle/index.d.ts.map +1 -1
- package/dist/esm/container/GraphView/index.d.ts.map +1 -1
- package/dist/esm/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +6 -0
- package/dist/esm/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +1 -1
- package/dist/esm/container/GraphView/useStylesLoadedWarning.d.ts +2 -0
- package/dist/esm/container/GraphView/useStylesLoadedWarning.d.ts.map +1 -0
- package/dist/esm/container/ReactFlow/index.d.ts +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +25 -4
- package/dist/esm/index.mjs +25 -4
- package/dist/esm/utils/general.d.ts +2 -2
- package/dist/esm/utils/general.d.ts.map +1 -1
- package/dist/umd/components/Handle/index.d.ts +5 -3
- package/dist/umd/components/Handle/index.d.ts.map +1 -1
- package/dist/umd/container/GraphView/index.d.ts.map +1 -1
- package/dist/umd/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +6 -0
- package/dist/umd/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +1 -1
- package/dist/umd/container/GraphView/useStylesLoadedWarning.d.ts +2 -0
- package/dist/umd/container/GraphView/useStylesLoadedWarning.d.ts.map +1 -0
- package/dist/umd/container/ReactFlow/index.d.ts +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/utils/general.d.ts +2 -2
- package/dist/umd/utils/general.d.ts.map +1 -1
- package/package.json +4 -4
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
|
|
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:
|
|
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,
|
|
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/container/GraphView/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,aAAa,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":"
|
|
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 @@
|
|
|
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>) =>
|
|
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
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as ReactFlow } from './container/ReactFlow';
|
|
2
|
-
export { Handle, type
|
|
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';
|
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,
|
|
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,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,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,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE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,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,eAAe,EACf,KAAK,6BAA6B,EAClC,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,QAAQ,EACR,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,IAAI,EACT,KAAK,GAAG,EACR,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,OAAO,GACb,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,KAAK,mBAAmB,EACxB,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,KAAK,uBAAuB,EAC5B,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,WAAW,EACX,OAAO,EACP,UAAU,EACV,iBAAiB,GAClB,MAAM,gBAAgB,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -2493,21 +2493,42 @@ function ConnectionLineWrapper({ containerStyle, style, type, component }) {
|
|
|
2493
2493
|
const emptyTypes = {};
|
|
2494
2494
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2495
2495
|
function useNodeOrEdgeTypesWarning(nodeOrEdgeTypes = emptyTypes) {
|
|
2496
|
-
const
|
|
2496
|
+
const typesRef = useRef(nodeOrEdgeTypes);
|
|
2497
2497
|
const store = useStoreApi();
|
|
2498
2498
|
useEffect(() => {
|
|
2499
2499
|
if (process.env.NODE_ENV === 'development') {
|
|
2500
|
-
|
|
2501
|
-
|
|
2500
|
+
const usedKeys = new Set([...Object.keys(typesRef.current), ...Object.keys(nodeOrEdgeTypes)]);
|
|
2501
|
+
for (const key of usedKeys) {
|
|
2502
|
+
if (typesRef.current[key] !== nodeOrEdgeTypes[key]) {
|
|
2503
|
+
store.getState().onError?.('002', errorMessages['error002']());
|
|
2504
|
+
break;
|
|
2505
|
+
}
|
|
2502
2506
|
}
|
|
2503
|
-
|
|
2507
|
+
typesRef.current = nodeOrEdgeTypes;
|
|
2504
2508
|
}
|
|
2505
2509
|
}, [nodeOrEdgeTypes]);
|
|
2506
2510
|
}
|
|
2507
2511
|
|
|
2512
|
+
function useStylesLoadedWarning() {
|
|
2513
|
+
const store = useStoreApi();
|
|
2514
|
+
const checked = useRef(false);
|
|
2515
|
+
useEffect(() => {
|
|
2516
|
+
if (process.env.NODE_ENV === 'development') {
|
|
2517
|
+
if (!checked.current) {
|
|
2518
|
+
const pane = document.querySelector('.react-flow__pane');
|
|
2519
|
+
if (pane && !(window.getComputedStyle(pane).zIndex === '1')) {
|
|
2520
|
+
store.getState().onError?.('013', errorMessages['error013']('react'));
|
|
2521
|
+
}
|
|
2522
|
+
checked.current = true;
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
}, []);
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2508
2528
|
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, }) {
|
|
2509
2529
|
useNodeOrEdgeTypesWarning(nodeTypes);
|
|
2510
2530
|
useNodeOrEdgeTypesWarning(edgeTypes);
|
|
2531
|
+
useStylesLoadedWarning();
|
|
2511
2532
|
useOnInitHandler(onInit);
|
|
2512
2533
|
useViewportSync(viewport);
|
|
2513
2534
|
return (jsx(FlowRenderer, { onPaneClick: onPaneClick, onPaneMouseEnter: onPaneMouseEnter, onPaneMouseMove: onPaneMouseMove, onPaneMouseLeave: onPaneMouseLeave, onPaneContextMenu: onPaneContextMenu, onPaneScroll: onPaneScroll, deleteKeyCode: deleteKeyCode, selectionKeyCode: selectionKeyCode, selectionOnDrag: selectionOnDrag, selectionMode: selectionMode, onSelectionStart: onSelectionStart, onSelectionEnd: onSelectionEnd, multiSelectionKeyCode: multiSelectionKeyCode, panActivationKeyCode: panActivationKeyCode, zoomActivationKeyCode: zoomActivationKeyCode, elementsSelectable: elementsSelectable, zoomOnScroll: zoomOnScroll, zoomOnPinch: zoomOnPinch, zoomOnDoubleClick: zoomOnDoubleClick, panOnScroll: panOnScroll, panOnScrollSpeed: panOnScrollSpeed, panOnScrollMode: panOnScrollMode, panOnDrag: panOnDrag, defaultViewport: defaultViewport, translateExtent: translateExtent, minZoom: minZoom, maxZoom: maxZoom, onSelectionContextMenu: onSelectionContextMenu, preventScrolling: preventScrolling, noDragClassName: noDragClassName, noWheelClassName: noWheelClassName, noPanClassName: noPanClassName, disableKeyboardA11y: disableKeyboardA11y, onViewportChange: onViewportChange, isControlledViewport: !!viewport, children: jsxs(Viewport, { children: [jsx(EdgeRenderer, { edgeTypes: edgeTypes, onEdgeClick: onEdgeClick, onEdgeDoubleClick: onEdgeDoubleClick, onEdgeUpdate: onEdgeUpdate, onlyRenderVisibleElements: onlyRenderVisibleElements, onEdgeContextMenu: onEdgeContextMenu, onEdgeMouseEnter: onEdgeMouseEnter, onEdgeMouseMove: onEdgeMouseMove, onEdgeMouseLeave: onEdgeMouseLeave, onEdgeUpdateStart: onEdgeUpdateStart, onEdgeUpdateEnd: onEdgeUpdateEnd, edgeUpdaterRadius: edgeUpdaterRadius, defaultMarkerColor: defaultMarkerColor, noPanClassName: noPanClassName, disableKeyboardA11y: disableKeyboardA11y, rfId: rfId }), jsx(ConnectionLineWrapper, { style: connectionLineStyle, type: connectionLineType, component: connectionLineComponent, containerStyle: connectionLineContainerStyle }), jsx("div", { className: "react-flow__edgelabel-renderer" }), jsx(NodeRenderer, { nodeTypes: nodeTypes, onNodeClick: onNodeClick, onNodeDoubleClick: onNodeDoubleClick, onNodeMouseEnter: onNodeMouseEnter, onNodeMouseMove: onNodeMouseMove, onNodeMouseLeave: onNodeMouseLeave, onNodeContextMenu: onNodeContextMenu, onlyRenderVisibleElements: onlyRenderVisibleElements, noPanClassName: noPanClassName, noDragClassName: noDragClassName, disableKeyboardA11y: disableKeyboardA11y, nodeOrigin: nodeOrigin, nodeExtent: nodeExtent, rfId: rfId }), jsx("div", { className: "react-flow__viewport-portal" })] }) }));
|
package/dist/esm/index.mjs
CHANGED
|
@@ -2493,21 +2493,42 @@ function ConnectionLineWrapper({ containerStyle, style, type, component }) {
|
|
|
2493
2493
|
const emptyTypes = {};
|
|
2494
2494
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2495
2495
|
function useNodeOrEdgeTypesWarning(nodeOrEdgeTypes = emptyTypes) {
|
|
2496
|
-
const
|
|
2496
|
+
const typesRef = useRef(nodeOrEdgeTypes);
|
|
2497
2497
|
const store = useStoreApi();
|
|
2498
2498
|
useEffect(() => {
|
|
2499
2499
|
if (process.env.NODE_ENV === 'development') {
|
|
2500
|
-
|
|
2501
|
-
|
|
2500
|
+
const usedKeys = new Set([...Object.keys(typesRef.current), ...Object.keys(nodeOrEdgeTypes)]);
|
|
2501
|
+
for (const key of usedKeys) {
|
|
2502
|
+
if (typesRef.current[key] !== nodeOrEdgeTypes[key]) {
|
|
2503
|
+
store.getState().onError?.('002', errorMessages['error002']());
|
|
2504
|
+
break;
|
|
2505
|
+
}
|
|
2502
2506
|
}
|
|
2503
|
-
|
|
2507
|
+
typesRef.current = nodeOrEdgeTypes;
|
|
2504
2508
|
}
|
|
2505
2509
|
}, [nodeOrEdgeTypes]);
|
|
2506
2510
|
}
|
|
2507
2511
|
|
|
2512
|
+
function useStylesLoadedWarning() {
|
|
2513
|
+
const store = useStoreApi();
|
|
2514
|
+
const checked = useRef(false);
|
|
2515
|
+
useEffect(() => {
|
|
2516
|
+
if (process.env.NODE_ENV === 'development') {
|
|
2517
|
+
if (!checked.current) {
|
|
2518
|
+
const pane = document.querySelector('.react-flow__pane');
|
|
2519
|
+
if (pane && !(window.getComputedStyle(pane).zIndex === '1')) {
|
|
2520
|
+
store.getState().onError?.('013', errorMessages['error013']('react'));
|
|
2521
|
+
}
|
|
2522
|
+
checked.current = true;
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
}, []);
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2508
2528
|
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, }) {
|
|
2509
2529
|
useNodeOrEdgeTypesWarning(nodeTypes);
|
|
2510
2530
|
useNodeOrEdgeTypesWarning(edgeTypes);
|
|
2531
|
+
useStylesLoadedWarning();
|
|
2511
2532
|
useOnInitHandler(onInit);
|
|
2512
2533
|
useViewportSync(viewport);
|
|
2513
2534
|
return (jsx(FlowRenderer, { onPaneClick: onPaneClick, onPaneMouseEnter: onPaneMouseEnter, onPaneMouseMove: onPaneMouseMove, onPaneMouseLeave: onPaneMouseLeave, onPaneContextMenu: onPaneContextMenu, onPaneScroll: onPaneScroll, deleteKeyCode: deleteKeyCode, selectionKeyCode: selectionKeyCode, selectionOnDrag: selectionOnDrag, selectionMode: selectionMode, onSelectionStart: onSelectionStart, onSelectionEnd: onSelectionEnd, multiSelectionKeyCode: multiSelectionKeyCode, panActivationKeyCode: panActivationKeyCode, zoomActivationKeyCode: zoomActivationKeyCode, elementsSelectable: elementsSelectable, zoomOnScroll: zoomOnScroll, zoomOnPinch: zoomOnPinch, zoomOnDoubleClick: zoomOnDoubleClick, panOnScroll: panOnScroll, panOnScrollSpeed: panOnScrollSpeed, panOnScrollMode: panOnScrollMode, panOnDrag: panOnDrag, defaultViewport: defaultViewport, translateExtent: translateExtent, minZoom: minZoom, maxZoom: maxZoom, onSelectionContextMenu: onSelectionContextMenu, preventScrolling: preventScrolling, noDragClassName: noDragClassName, noWheelClassName: noWheelClassName, noPanClassName: noPanClassName, disableKeyboardA11y: disableKeyboardA11y, onViewportChange: onViewportChange, isControlledViewport: !!viewport, children: jsxs(Viewport, { children: [jsx(EdgeRenderer, { edgeTypes: edgeTypes, onEdgeClick: onEdgeClick, onEdgeDoubleClick: onEdgeDoubleClick, onEdgeUpdate: onEdgeUpdate, onlyRenderVisibleElements: onlyRenderVisibleElements, onEdgeContextMenu: onEdgeContextMenu, onEdgeMouseEnter: onEdgeMouseEnter, onEdgeMouseMove: onEdgeMouseMove, onEdgeMouseLeave: onEdgeMouseLeave, onEdgeUpdateStart: onEdgeUpdateStart, onEdgeUpdateEnd: onEdgeUpdateEnd, edgeUpdaterRadius: edgeUpdaterRadius, defaultMarkerColor: defaultMarkerColor, noPanClassName: noPanClassName, disableKeyboardA11y: disableKeyboardA11y, rfId: rfId }), jsx(ConnectionLineWrapper, { style: connectionLineStyle, type: connectionLineType, component: connectionLineComponent, containerStyle: connectionLineContainerStyle }), jsx("div", { className: "react-flow__edgelabel-renderer" }), jsx(NodeRenderer, { nodeTypes: nodeTypes, onNodeClick: onNodeClick, onNodeDoubleClick: onNodeDoubleClick, onNodeMouseEnter: onNodeMouseEnter, onNodeMouseMove: onNodeMouseMove, onNodeMouseLeave: onNodeMouseLeave, onNodeContextMenu: onNodeContextMenu, onlyRenderVisibleElements: onlyRenderVisibleElements, noPanClassName: noPanClassName, noDragClassName: noDragClassName, disableKeyboardA11y: disableKeyboardA11y, nodeOrigin: nodeOrigin, nodeExtent: nodeExtent, rfId: rfId }), jsx("div", { className: "react-flow__viewport-portal" })] }) }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type Ref, type RefAttributes } from 'react';
|
|
2
2
|
import type { Edge, Node } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Test whether an object is useable as a Node
|
|
@@ -16,5 +16,5 @@ export declare const isNode: <NodeType extends Node = Node>(element: unknown) =>
|
|
|
16
16
|
* @returns A boolean indicating whether the element is an Edge
|
|
17
17
|
*/
|
|
18
18
|
export declare const isEdge: <EdgeType extends Edge = Edge>(element: unknown) => element is EdgeType;
|
|
19
|
-
export declare function fixedForwardRef<T, P = {}>(render: (props: P, ref: Ref<T>) =>
|
|
19
|
+
export declare function fixedForwardRef<T, P = {}>(render: (props: P, ref: Ref<T>) => JSX.Element): (props: P & RefAttributes<T>) => JSX.Element;
|
|
20
20
|
//# sourceMappingURL=general.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/utils/general.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/utils/general.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,aAAa,EAAc,MAAM,OAAO,CAAC;AAGjE,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,0CAA2C,OAAO,wBACtC,CAAC;AAEhC;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,0CAA2C,OAAO,wBACtC,CAAC;AAGhC,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE,EACvC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,GAC7C,CAAC,KAAK,EAAE,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAG9C"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
import { type HandleProps } from '@xyflow/system';
|
|
3
|
-
export interface
|
|
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:
|
|
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,
|
|
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/container/GraphView/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,aAAa,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":"
|
|
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 @@
|
|
|
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>) =>
|
|
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
|
package/dist/umd/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as ReactFlow } from './container/ReactFlow';
|
|
2
|
-
export { Handle, type
|
|
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';
|
package/dist/umd/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,
|
|
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,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,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,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,WAAW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