@rxflow/workflow 0.0.2-alpha.0 → 0.0.2-alpha.2
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/cjs/components/CanvasLoading/index.d.ts +2 -2
- package/cjs/components/CanvasLoading/index.d.ts.map +1 -1
- package/cjs/components/CanvasLoading/index.js +3 -4
- package/cjs/components/Layout/index.d.ts +1 -1
- package/cjs/components/Layout/index.d.ts.map +1 -1
- package/cjs/components/Layout/index.js +5 -6
- package/cjs/components/Sider/index.js +3 -3
- package/cjs/components/index.d.ts +16 -0
- package/cjs/components/index.d.ts.map +1 -0
- package/cjs/components/index.js +82 -0
- package/cjs/hooks/index.d.ts +29 -0
- package/cjs/hooks/index.d.ts.map +1 -0
- package/cjs/hooks/index.js +225 -0
- package/cjs/hooks/useIsValidConnection.d.ts.map +1 -1
- package/cjs/hooks/{useUpstream.d.ts → useUpstreams.d.ts} +1 -1
- package/cjs/hooks/useUpstreams.d.ts.map +1 -0
- package/cjs/hooks/useWorkFlowProps.d.ts +36 -36
- package/cjs/index.d.ts +2 -1
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +25 -15
- package/esm/components/CanvasLoading/index.d.ts +2 -2
- package/esm/components/CanvasLoading/index.d.ts.map +1 -1
- package/esm/components/CanvasLoading/index.js +2 -3
- package/esm/components/Layout/index.d.ts +1 -1
- package/esm/components/Layout/index.d.ts.map +1 -1
- package/esm/components/Layout/index.js +2 -2
- package/esm/components/Sider/index.js +1 -1
- package/esm/components/index.d.ts +16 -0
- package/esm/components/index.d.ts.map +1 -0
- package/esm/components/index.js +15 -0
- package/esm/hooks/index.d.ts +29 -0
- package/esm/hooks/index.d.ts.map +1 -0
- package/esm/hooks/index.js +28 -0
- package/esm/hooks/useIsValidConnection.d.ts.map +1 -1
- package/esm/hooks/{useUpstream.d.ts → useUpstreams.d.ts} +1 -1
- package/esm/hooks/useUpstreams.d.ts.map +1 -0
- package/esm/hooks/useWorkFlowProps.d.ts +36 -36
- package/esm/index.d.ts +2 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +5 -4
- package/package.json +2 -2
- package/cjs/hooks/useUpstream.d.ts.map +0 -1
- package/esm/hooks/useUpstream.d.ts.map +0 -1
- /package/cjs/hooks/{useUpstream.js → useUpstreams.js} +0 -0
- /package/esm/hooks/{useUpstream.js → useUpstreams.js} +0 -0
|
@@ -9,6 +9,6 @@ interface CanvasLoadingProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* 画布加载组件
|
|
11
11
|
*/
|
|
12
|
-
declare const CanvasLoading: import("react").NamedExoticComponent<CanvasLoadingProps>;
|
|
13
|
-
export
|
|
12
|
+
export declare const CanvasLoading: import("react").NamedExoticComponent<CanvasLoadingProps>;
|
|
13
|
+
export {};
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAOA,OAAO,cAAc,CAAC;AAItB,OAAO,EAAO,SAAS,EAAC,MAAM,OAAO,CAAC;AAEtC,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAOA,OAAO,cAAc,CAAC;AAItB,OAAO,EAAO,SAAS,EAAC,MAAM,OAAO,CAAC;AAEtC,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,0DAoCzB,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.CanvasLoading = void 0;
|
|
7
7
|
require("./index.less");
|
|
8
8
|
var _classcat = _interopRequireDefault(require("classcat"));
|
|
9
9
|
var _lodash = require("lodash");
|
|
@@ -21,7 +21,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
21
21
|
/**
|
|
22
22
|
* 画布加载组件
|
|
23
23
|
*/
|
|
24
|
-
const CanvasLoading = /*#__PURE__*/(0, _react.memo)(({
|
|
24
|
+
const CanvasLoading = exports.CanvasLoading = /*#__PURE__*/(0, _react.memo)(({
|
|
25
25
|
children,
|
|
26
26
|
loading,
|
|
27
27
|
tip = '工作流加载中...',
|
|
@@ -47,5 +47,4 @@ const CanvasLoading = /*#__PURE__*/(0, _react.memo)(({
|
|
|
47
47
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
48
48
|
children: [loading ? content : null, children]
|
|
49
49
|
});
|
|
50
|
-
});
|
|
51
|
-
var _default = exports.default = CanvasLoading;
|
|
50
|
+
});
|
|
@@ -10,5 +10,5 @@ import { type IBaseFlowProps } from "@rxflow/base";
|
|
|
10
10
|
import { WorkflowExtendProps, WorkflowNode } from "../..";
|
|
11
11
|
import './index.less';
|
|
12
12
|
import { Edge } from "@xyflow/react";
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const Layout: <NodeType extends WorkflowNode = WorkflowNode, EdgeType extends Edge = Edge>(props: IBaseFlowProps<NodeType, EdgeType> & WorkflowExtendProps<NodeType>) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAO,KAAK,cAAc,EAAC,MAAM,cAAc,CAAC;AACvD,OAAO,EAAC,mBAAmB,EAAE,YAAY,EAAC,cAAyB;AACnE,OAAO,cAAc,CAAC;AACtB,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAInC,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAO,KAAK,cAAc,EAAC,MAAM,cAAc,CAAC;AACvD,OAAO,EAAC,mBAAmB,EAAE,YAAY,EAAC,cAAyB;AACnE,OAAO,cAAc,CAAC;AACtB,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAInC,eAAO,MAAM,MAAM,sFAGV,eAAe,QAAQ,EAAE,QAAQ,CAAC,GAAG,oBAAoB,QAAQ,CAAC,4CAkB1E,CAAA"}
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Layout = void 0;
|
|
7
7
|
var _base = require("@rxflow/base");
|
|
8
8
|
require("./index.less");
|
|
9
|
-
var _CanvasLoading =
|
|
9
|
+
var _CanvasLoading = require("../CanvasLoading");
|
|
10
10
|
var _Sider = require("../Sider");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
12
|
/**
|
|
14
13
|
* @author: yanxianliang
|
|
15
14
|
* @date: 2025-07-27 12:11
|
|
@@ -19,7 +18,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
19
18
|
* Copyright (c) 2025 by yanxianliang, All Rights Reserved.
|
|
20
19
|
*/
|
|
21
20
|
|
|
22
|
-
const
|
|
21
|
+
const Layout = props => {
|
|
23
22
|
const {
|
|
24
23
|
readOnly,
|
|
25
24
|
sider,
|
|
@@ -36,7 +35,7 @@ const WorkFlowLayout = props => {
|
|
|
36
35
|
nodeTypes: props.nodeTypes
|
|
37
36
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
38
37
|
className: 'rxflow-graph',
|
|
39
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CanvasLoading.
|
|
38
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CanvasLoading.CanvasLoading, {
|
|
40
39
|
loading: loading,
|
|
41
40
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_base.Flow, {
|
|
42
41
|
...props,
|
|
@@ -46,4 +45,4 @@ const WorkFlowLayout = props => {
|
|
|
46
45
|
})]
|
|
47
46
|
});
|
|
48
47
|
};
|
|
49
|
-
exports.
|
|
48
|
+
exports.Layout = Layout;
|
|
@@ -6,16 +6,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Sider = void 0;
|
|
7
7
|
require("./index.less");
|
|
8
8
|
var _dragDataTransfer = require("../../utils/dragDataTransfer");
|
|
9
|
-
var _CanvasLoading =
|
|
9
|
+
var _CanvasLoading = require("../CanvasLoading");
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _groupBy = _interopRequireDefault(require("lodash/groupBy"));
|
|
12
12
|
var _antd = require("antd");
|
|
13
13
|
var _SearchOutlined = _interopRequireDefault(require("@ant-design/icons/lib/icons/SearchOutlined"));
|
|
14
14
|
var _reactHighlightWords = _interopRequireDefault(require("react-highlight-words"));
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
18
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
/**
|
|
20
20
|
* @author: yanxianliang
|
|
21
21
|
* @date: 2025-07-27 11:34
|
|
@@ -79,7 +79,7 @@ const Sider = ({
|
|
|
79
79
|
})
|
|
80
80
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
81
81
|
className: 'rxflow-sider-scroll',
|
|
82
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CanvasLoading.
|
|
82
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CanvasLoading.CanvasLoading, {
|
|
83
83
|
loading: loading,
|
|
84
84
|
tip: '节点加载中...',
|
|
85
85
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: yanxianliang
|
|
3
|
+
* @date: 2025-11-23 18:44
|
|
4
|
+
* @modified:2025/11/23 18:44 by yanxianliang
|
|
5
|
+
* @desc: export all components
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2025 by yanxianliang, All Rights Reserved.
|
|
8
|
+
*/
|
|
9
|
+
export * from './CanvasLoading';
|
|
10
|
+
export * from './CodeEditor';
|
|
11
|
+
export * from './Handle';
|
|
12
|
+
export * from './InlineCodeEditor';
|
|
13
|
+
export * from './Layout';
|
|
14
|
+
export * from './Sider';
|
|
15
|
+
export * from './LoadingButton';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _CanvasLoading = require("./CanvasLoading");
|
|
7
|
+
Object.keys(_CanvasLoading).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _CanvasLoading[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _CanvasLoading[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _CodeEditor = require("./CodeEditor");
|
|
18
|
+
Object.keys(_CodeEditor).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _CodeEditor[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _CodeEditor[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _Handle = require("./Handle");
|
|
29
|
+
Object.keys(_Handle).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _Handle[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _Handle[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _InlineCodeEditor = require("./InlineCodeEditor");
|
|
40
|
+
Object.keys(_InlineCodeEditor).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _InlineCodeEditor[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _InlineCodeEditor[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
var _Layout = require("./Layout");
|
|
51
|
+
Object.keys(_Layout).forEach(function (key) {
|
|
52
|
+
if (key === "default" || key === "__esModule") return;
|
|
53
|
+
if (key in exports && exports[key] === _Layout[key]) return;
|
|
54
|
+
Object.defineProperty(exports, key, {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _Layout[key];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
var _Sider = require("./Sider");
|
|
62
|
+
Object.keys(_Sider).forEach(function (key) {
|
|
63
|
+
if (key === "default" || key === "__esModule") return;
|
|
64
|
+
if (key in exports && exports[key] === _Sider[key]) return;
|
|
65
|
+
Object.defineProperty(exports, key, {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () {
|
|
68
|
+
return _Sider[key];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
var _LoadingButton = require("./LoadingButton");
|
|
73
|
+
Object.keys(_LoadingButton).forEach(function (key) {
|
|
74
|
+
if (key === "default" || key === "__esModule") return;
|
|
75
|
+
if (key in exports && exports[key] === _LoadingButton[key]) return;
|
|
76
|
+
Object.defineProperty(exports, key, {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return _LoadingButton[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: yanxianliang
|
|
3
|
+
* @date: 2025-11-23 18:48
|
|
4
|
+
* @modified:2025/11/23 18:48 by yanxianliang
|
|
5
|
+
* @desc: export all hooks
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2025 by yanxianliang, All Rights Reserved.
|
|
8
|
+
*/
|
|
9
|
+
export * from './state';
|
|
10
|
+
export * from './useDeleteNode';
|
|
11
|
+
export * from './useEdgeIsHover';
|
|
12
|
+
export * from './useGetSelection';
|
|
13
|
+
export * from './useGetUpstreamNodes';
|
|
14
|
+
export * from './useGetWillDropTarget';
|
|
15
|
+
export * from './useGroupIsWillDrop';
|
|
16
|
+
export * from './useNodes';
|
|
17
|
+
export * from './useSetEdges';
|
|
18
|
+
export * from './useSetSelection';
|
|
19
|
+
export * from './useUpstreams';
|
|
20
|
+
export * from './useWatchSelectionNodes';
|
|
21
|
+
export * from './useWorkFlow';
|
|
22
|
+
export * from './useWorkFlowProps';
|
|
23
|
+
export * from './run/useActiveEdge';
|
|
24
|
+
export * from './run/useCleanRunState';
|
|
25
|
+
export * from './run/useNodeRunningState';
|
|
26
|
+
export * from './run/useRunState';
|
|
27
|
+
export * from './run/useSetRunState';
|
|
28
|
+
export * from './useMouseEvents';
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _state = require("./state");
|
|
7
|
+
Object.keys(_state).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _state[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _state[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _useDeleteNode = require("./useDeleteNode");
|
|
18
|
+
Object.keys(_useDeleteNode).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _useDeleteNode[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _useDeleteNode[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _useEdgeIsHover = require("./useEdgeIsHover");
|
|
29
|
+
Object.keys(_useEdgeIsHover).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _useEdgeIsHover[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _useEdgeIsHover[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _useGetSelection = require("./useGetSelection");
|
|
40
|
+
Object.keys(_useGetSelection).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _useGetSelection[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _useGetSelection[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
var _useGetUpstreamNodes = require("./useGetUpstreamNodes");
|
|
51
|
+
Object.keys(_useGetUpstreamNodes).forEach(function (key) {
|
|
52
|
+
if (key === "default" || key === "__esModule") return;
|
|
53
|
+
if (key in exports && exports[key] === _useGetUpstreamNodes[key]) return;
|
|
54
|
+
Object.defineProperty(exports, key, {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _useGetUpstreamNodes[key];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
var _useGetWillDropTarget = require("./useGetWillDropTarget");
|
|
62
|
+
Object.keys(_useGetWillDropTarget).forEach(function (key) {
|
|
63
|
+
if (key === "default" || key === "__esModule") return;
|
|
64
|
+
if (key in exports && exports[key] === _useGetWillDropTarget[key]) return;
|
|
65
|
+
Object.defineProperty(exports, key, {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () {
|
|
68
|
+
return _useGetWillDropTarget[key];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
var _useGroupIsWillDrop = require("./useGroupIsWillDrop");
|
|
73
|
+
Object.keys(_useGroupIsWillDrop).forEach(function (key) {
|
|
74
|
+
if (key === "default" || key === "__esModule") return;
|
|
75
|
+
if (key in exports && exports[key] === _useGroupIsWillDrop[key]) return;
|
|
76
|
+
Object.defineProperty(exports, key, {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return _useGroupIsWillDrop[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
var _useNodes = require("./useNodes");
|
|
84
|
+
Object.keys(_useNodes).forEach(function (key) {
|
|
85
|
+
if (key === "default" || key === "__esModule") return;
|
|
86
|
+
if (key in exports && exports[key] === _useNodes[key]) return;
|
|
87
|
+
Object.defineProperty(exports, key, {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () {
|
|
90
|
+
return _useNodes[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
var _useSetEdges = require("./useSetEdges");
|
|
95
|
+
Object.keys(_useSetEdges).forEach(function (key) {
|
|
96
|
+
if (key === "default" || key === "__esModule") return;
|
|
97
|
+
if (key in exports && exports[key] === _useSetEdges[key]) return;
|
|
98
|
+
Object.defineProperty(exports, key, {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function () {
|
|
101
|
+
return _useSetEdges[key];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
var _useSetSelection = require("./useSetSelection");
|
|
106
|
+
Object.keys(_useSetSelection).forEach(function (key) {
|
|
107
|
+
if (key === "default" || key === "__esModule") return;
|
|
108
|
+
if (key in exports && exports[key] === _useSetSelection[key]) return;
|
|
109
|
+
Object.defineProperty(exports, key, {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function () {
|
|
112
|
+
return _useSetSelection[key];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
var _useUpstreams = require("./useUpstreams");
|
|
117
|
+
Object.keys(_useUpstreams).forEach(function (key) {
|
|
118
|
+
if (key === "default" || key === "__esModule") return;
|
|
119
|
+
if (key in exports && exports[key] === _useUpstreams[key]) return;
|
|
120
|
+
Object.defineProperty(exports, key, {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _useUpstreams[key];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
var _useWatchSelectionNodes = require("./useWatchSelectionNodes");
|
|
128
|
+
Object.keys(_useWatchSelectionNodes).forEach(function (key) {
|
|
129
|
+
if (key === "default" || key === "__esModule") return;
|
|
130
|
+
if (key in exports && exports[key] === _useWatchSelectionNodes[key]) return;
|
|
131
|
+
Object.defineProperty(exports, key, {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () {
|
|
134
|
+
return _useWatchSelectionNodes[key];
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
var _useWorkFlow = require("./useWorkFlow");
|
|
139
|
+
Object.keys(_useWorkFlow).forEach(function (key) {
|
|
140
|
+
if (key === "default" || key === "__esModule") return;
|
|
141
|
+
if (key in exports && exports[key] === _useWorkFlow[key]) return;
|
|
142
|
+
Object.defineProperty(exports, key, {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function () {
|
|
145
|
+
return _useWorkFlow[key];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
var _useWorkFlowProps = require("./useWorkFlowProps");
|
|
150
|
+
Object.keys(_useWorkFlowProps).forEach(function (key) {
|
|
151
|
+
if (key === "default" || key === "__esModule") return;
|
|
152
|
+
if (key in exports && exports[key] === _useWorkFlowProps[key]) return;
|
|
153
|
+
Object.defineProperty(exports, key, {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function () {
|
|
156
|
+
return _useWorkFlowProps[key];
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
var _useActiveEdge = require("./run/useActiveEdge");
|
|
161
|
+
Object.keys(_useActiveEdge).forEach(function (key) {
|
|
162
|
+
if (key === "default" || key === "__esModule") return;
|
|
163
|
+
if (key in exports && exports[key] === _useActiveEdge[key]) return;
|
|
164
|
+
Object.defineProperty(exports, key, {
|
|
165
|
+
enumerable: true,
|
|
166
|
+
get: function () {
|
|
167
|
+
return _useActiveEdge[key];
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
var _useCleanRunState = require("./run/useCleanRunState");
|
|
172
|
+
Object.keys(_useCleanRunState).forEach(function (key) {
|
|
173
|
+
if (key === "default" || key === "__esModule") return;
|
|
174
|
+
if (key in exports && exports[key] === _useCleanRunState[key]) return;
|
|
175
|
+
Object.defineProperty(exports, key, {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function () {
|
|
178
|
+
return _useCleanRunState[key];
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
var _useNodeRunningState = require("./run/useNodeRunningState");
|
|
183
|
+
Object.keys(_useNodeRunningState).forEach(function (key) {
|
|
184
|
+
if (key === "default" || key === "__esModule") return;
|
|
185
|
+
if (key in exports && exports[key] === _useNodeRunningState[key]) return;
|
|
186
|
+
Object.defineProperty(exports, key, {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () {
|
|
189
|
+
return _useNodeRunningState[key];
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
var _useRunState = require("./run/useRunState");
|
|
194
|
+
Object.keys(_useRunState).forEach(function (key) {
|
|
195
|
+
if (key === "default" || key === "__esModule") return;
|
|
196
|
+
if (key in exports && exports[key] === _useRunState[key]) return;
|
|
197
|
+
Object.defineProperty(exports, key, {
|
|
198
|
+
enumerable: true,
|
|
199
|
+
get: function () {
|
|
200
|
+
return _useRunState[key];
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
var _useSetRunState = require("./run/useSetRunState");
|
|
205
|
+
Object.keys(_useSetRunState).forEach(function (key) {
|
|
206
|
+
if (key === "default" || key === "__esModule") return;
|
|
207
|
+
if (key in exports && exports[key] === _useSetRunState[key]) return;
|
|
208
|
+
Object.defineProperty(exports, key, {
|
|
209
|
+
enumerable: true,
|
|
210
|
+
get: function () {
|
|
211
|
+
return _useSetRunState[key];
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
var _useMouseEvents = require("./useMouseEvents");
|
|
216
|
+
Object.keys(_useMouseEvents).forEach(function (key) {
|
|
217
|
+
if (key === "default" || key === "__esModule") return;
|
|
218
|
+
if (key in exports && exports[key] === _useMouseEvents[key]) return;
|
|
219
|
+
Object.defineProperty(exports, key, {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function () {
|
|
222
|
+
return _useMouseEvents[key];
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsValidConnection.d.ts","sourceRoot":"","sources":["useIsValidConnection.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"useIsValidConnection.d.ts","sourceRoot":"","sources":["useIsValidConnection.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAC,cAAc,EAAC,WAAyB;AAChD,OAAO,EAAC,UAAU,EAAE,IAAI,EAAe,IAAI,EAA4B,MAAM,eAAe,CAAC;AAG7F,eAAO,MAAM,oBAAoB,sEAIxB,eAAe,QAAQ,EAAE,QAAQ,CAAC,qFAuD1C,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Edge, Node } from "@xyflow/react";
|
|
2
2
|
export declare const useUpstreams: <NodeType extends Node = Node, EdgeType extends Edge = Edge>(id: string, allowParentFlow?: boolean) => string[];
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=useUpstreams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUpstreams.d.ts","sourceRoot":"","sources":["useUpstreams.ts"],"names":[],"mappings":"AAQA,OAAO,EAAC,IAAI,EAAc,IAAI,EAAe,MAAM,eAAe,CAAC;AAanE,eAAO,MAAM,YAAY,mEAInB,MAAM,wCA8EX,CAAA"}
|
|
@@ -42,7 +42,6 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
42
42
|
onNodeDragStop: (event: import("react").MouseEvent<Element, MouseEvent>, node: NodeType, nodes: NodeType[]) => void;
|
|
43
43
|
width?: string | number | undefined;
|
|
44
44
|
height?: string | number | undefined;
|
|
45
|
-
id?: string | undefined;
|
|
46
45
|
onError?: import("@xyflow/react").OnError | undefined;
|
|
47
46
|
defaultChecked?: boolean | undefined;
|
|
48
47
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -52,16 +51,17 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
52
51
|
autoCapitalize?: "none" | (string & {}) | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
53
52
|
autoFocus?: boolean | undefined;
|
|
54
53
|
className?: string | undefined;
|
|
55
|
-
contentEditable?:
|
|
54
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
56
55
|
contextMenu?: string | undefined;
|
|
57
56
|
dir?: string | undefined;
|
|
58
|
-
draggable?: (boolean | "
|
|
59
|
-
enterKeyHint?: "search" | "
|
|
57
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
58
|
+
enterKeyHint?: "search" | "done" | "enter" | "go" | "next" | "previous" | "send" | undefined;
|
|
60
59
|
hidden?: boolean | undefined;
|
|
60
|
+
id?: string | undefined;
|
|
61
61
|
lang?: string | undefined;
|
|
62
62
|
nonce?: string | undefined;
|
|
63
63
|
slot?: string | undefined;
|
|
64
|
-
spellCheck?: (boolean | "
|
|
64
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
65
65
|
style?: import("react").CSSProperties | undefined;
|
|
66
66
|
tabIndex?: number | undefined;
|
|
67
67
|
title?: string | undefined;
|
|
@@ -91,7 +91,7 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
91
91
|
security?: string | undefined;
|
|
92
92
|
unselectable?: "off" | "on" | undefined;
|
|
93
93
|
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
94
|
-
popoverTargetAction?: "
|
|
94
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
95
95
|
popoverTarget?: string | undefined;
|
|
96
96
|
inert?: boolean | undefined;
|
|
97
97
|
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
@@ -99,52 +99,52 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
99
99
|
exportparts?: string | undefined;
|
|
100
100
|
part?: string | undefined;
|
|
101
101
|
"aria-activedescendant"?: string | undefined;
|
|
102
|
-
"aria-atomic"?: (boolean | "
|
|
103
|
-
"aria-autocomplete"?: "list" | "none" | "
|
|
102
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
103
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
104
104
|
"aria-braillelabel"?: string | undefined;
|
|
105
105
|
"aria-brailleroledescription"?: string | undefined;
|
|
106
|
-
"aria-busy"?: (boolean | "
|
|
107
|
-
"aria-checked"?: boolean | "
|
|
106
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
107
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
108
108
|
"aria-colcount"?: number | undefined;
|
|
109
109
|
"aria-colindex"?: number | undefined;
|
|
110
110
|
"aria-colindextext"?: string | undefined;
|
|
111
111
|
"aria-colspan"?: number | undefined;
|
|
112
112
|
"aria-controls"?: string | undefined;
|
|
113
|
-
"aria-current"?: boolean | "
|
|
113
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
114
114
|
"aria-describedby"?: string | undefined;
|
|
115
115
|
"aria-description"?: string | undefined;
|
|
116
116
|
"aria-details"?: string | undefined;
|
|
117
|
-
"aria-disabled"?: (boolean | "
|
|
118
|
-
"aria-dropeffect"?: "link" | "none" | "copy" | "
|
|
117
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
118
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
119
119
|
"aria-errormessage"?: string | undefined;
|
|
120
|
-
"aria-expanded"?: (boolean | "
|
|
120
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
121
121
|
"aria-flowto"?: string | undefined;
|
|
122
|
-
"aria-grabbed"?: (boolean | "
|
|
123
|
-
"aria-haspopup"?: boolean | "dialog" | "grid" | "listbox" | "menu" | "tree" | "
|
|
124
|
-
"aria-hidden"?: (boolean | "
|
|
125
|
-
"aria-invalid"?: boolean | "
|
|
122
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
123
|
+
"aria-haspopup"?: boolean | "dialog" | "grid" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
|
|
124
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
125
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
126
126
|
"aria-keyshortcuts"?: string | undefined;
|
|
127
127
|
"aria-label"?: string | undefined;
|
|
128
128
|
"aria-labelledby"?: string | undefined;
|
|
129
129
|
"aria-level"?: number | undefined;
|
|
130
130
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
131
|
-
"aria-modal"?: (boolean | "
|
|
132
|
-
"aria-multiline"?: (boolean | "
|
|
133
|
-
"aria-multiselectable"?: (boolean | "
|
|
131
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
132
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
133
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
134
134
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
135
135
|
"aria-owns"?: string | undefined;
|
|
136
136
|
"aria-placeholder"?: string | undefined;
|
|
137
137
|
"aria-posinset"?: number | undefined;
|
|
138
|
-
"aria-pressed"?: boolean | "
|
|
139
|
-
"aria-readonly"?: (boolean | "
|
|
140
|
-
"aria-relevant"?: "
|
|
141
|
-
"aria-required"?: (boolean | "
|
|
138
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
139
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
140
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
141
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
142
142
|
"aria-roledescription"?: string | undefined;
|
|
143
143
|
"aria-rowcount"?: number | undefined;
|
|
144
144
|
"aria-rowindex"?: number | undefined;
|
|
145
145
|
"aria-rowindextext"?: string | undefined;
|
|
146
146
|
"aria-rowspan"?: number | undefined;
|
|
147
|
-
"aria-selected"?: (boolean | "
|
|
147
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
148
148
|
"aria-setsize"?: number | undefined;
|
|
149
149
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
150
150
|
"aria-valuemax"?: number | undefined;
|
|
@@ -433,35 +433,35 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
433
433
|
'minimap.ariaLabel': string;
|
|
434
434
|
'handle.ariaLabel': string;
|
|
435
435
|
}> | undefined;
|
|
436
|
+
background?: string | undefined;
|
|
437
|
+
theme?: import("@rxflow/base").BaseThemeConfig | undefined;
|
|
436
438
|
showControls?: boolean | undefined;
|
|
437
439
|
controlsOrientation?: "horizontal" | "vertical" | undefined;
|
|
440
|
+
customControls?: import("react").ReactNode;
|
|
438
441
|
showMiniMap: boolean;
|
|
439
|
-
|
|
440
|
-
showAll?: boolean | undefined;
|
|
441
|
-
} | undefined;
|
|
442
|
-
background?: string | undefined;
|
|
442
|
+
getMiniMapNodeColor?: ((node: import("@xyflow/react").Node) => string) | undefined;
|
|
443
443
|
showFullscreen?: boolean | undefined;
|
|
444
444
|
showForceLayout?: boolean | undefined;
|
|
445
445
|
showInteractive?: boolean | undefined;
|
|
446
446
|
showFitView?: boolean | undefined;
|
|
447
447
|
showZoom?: boolean | undefined;
|
|
448
|
-
|
|
448
|
+
showLegend?: boolean | {
|
|
449
|
+
showAll?: boolean | undefined;
|
|
450
|
+
} | undefined;
|
|
449
451
|
autoCenter?: boolean | undefined;
|
|
452
|
+
rootStyle?: import("react").CSSProperties | undefined;
|
|
450
453
|
forceLayout?: boolean | undefined;
|
|
451
|
-
getMiniMapNodeColor?: ((node: import("@xyflow/react").Node) => string) | undefined;
|
|
452
454
|
markers?: import("packages/base/src/components/MarkerDefinitions/types").MarkDefinition[] | undefined;
|
|
453
455
|
plugins?: {
|
|
454
456
|
scroller?: false | import("packages/base/src/plugins/scrollbar/types").ScrollbarPluginOptions | undefined;
|
|
455
457
|
} | undefined;
|
|
456
458
|
readOnly?: boolean | undefined;
|
|
457
|
-
onZoomOut?: (() => void) | undefined;
|
|
458
459
|
onZoomIn?: (() => void) | undefined;
|
|
460
|
+
onZoomOut?: (() => void) | undefined;
|
|
459
461
|
onFitView?: (() => void) | undefined;
|
|
460
462
|
onInteractiveChange?: ((interactiveStatus: boolean) => void) | undefined;
|
|
461
|
-
customControls?: import("react").ReactNode;
|
|
462
|
-
forceFitView?: boolean | undefined;
|
|
463
|
-
theme?: import("@rxflow/base").BaseThemeConfig | undefined;
|
|
464
463
|
onRender?: ((nodes: NodeType[], edges: EdgeType[], timing: number) => void) | undefined;
|
|
464
|
+
forceFitView?: boolean | undefined;
|
|
465
465
|
loading?: boolean | undefined;
|
|
466
466
|
quickAdd?: boolean | undefined;
|
|
467
467
|
renderNodeIcon?: ((nodeDefinition: import("..").WorkFlowNodeDefinition<NodeType["data"]>) => import("react").ReactNode) | undefined;
|
package/cjs/index.d.ts
CHANGED
|
@@ -19,5 +19,6 @@ export default _default;
|
|
|
19
19
|
export * from './types';
|
|
20
20
|
export * from './utils';
|
|
21
21
|
export * from './constants/RunningStatus';
|
|
22
|
-
export * from './components
|
|
22
|
+
export * from './components';
|
|
23
|
+
export * from './hooks';
|
|
23
24
|
//# sourceMappingURL=index.d.ts.map
|
package/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAExC,OAAO,KAAa,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAC,cAAc,EAAsB,MAAM,SAAS,CAAC;8DAM+E,eAAe,QAAQ,CAAC,KAAK,MAAM,YAAY;AAA1L,wBAA2L;AAE3L,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAExC,OAAO,KAAa,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAC,cAAc,EAAsB,MAAM,SAAS,CAAC;8DAM+E,eAAe,QAAQ,CAAC,KAAK,MAAM,YAAY;AAA1L,wBAA2L;AAE3L,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
package/cjs/index.js
CHANGED
|
@@ -9,8 +9,30 @@ require("@xyflow/react/dist/style.css");
|
|
|
9
9
|
var _base = require("@rxflow/base");
|
|
10
10
|
var _lodash = require("lodash");
|
|
11
11
|
var _react = require("react");
|
|
12
|
-
var
|
|
13
|
-
|
|
12
|
+
var _components = require("./components");
|
|
13
|
+
Object.keys(_components).forEach(function (key) {
|
|
14
|
+
if (key === "default" || key === "__esModule") return;
|
|
15
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
16
|
+
if (key in exports && exports[key] === _components[key]) return;
|
|
17
|
+
Object.defineProperty(exports, key, {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () {
|
|
20
|
+
return _components[key];
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
var _hooks = require("./hooks");
|
|
25
|
+
Object.keys(_hooks).forEach(function (key) {
|
|
26
|
+
if (key === "default" || key === "__esModule") return;
|
|
27
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
28
|
+
if (key in exports && exports[key] === _hooks[key]) return;
|
|
29
|
+
Object.defineProperty(exports, key, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return _hooks[key];
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
});
|
|
14
36
|
var _types = require("./types");
|
|
15
37
|
Object.keys(_types).forEach(function (key) {
|
|
16
38
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -47,18 +69,6 @@ Object.keys(_RunningStatus).forEach(function (key) {
|
|
|
47
69
|
}
|
|
48
70
|
});
|
|
49
71
|
});
|
|
50
|
-
var _Handle = require("./components/Handle");
|
|
51
|
-
Object.keys(_Handle).forEach(function (key) {
|
|
52
|
-
if (key === "default" || key === "__esModule") return;
|
|
53
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
54
|
-
if (key in exports && exports[key] === _Handle[key]) return;
|
|
55
|
-
Object.defineProperty(exports, key, {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function () {
|
|
58
|
-
return _Handle[key];
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
72
|
/**
|
|
63
73
|
* @author: yanxianliang
|
|
64
74
|
* @date: 2025-06-27 09:32
|
|
@@ -73,5 +83,5 @@ Object.keys(_Handle).forEach(function (key) {
|
|
|
73
83
|
*/
|
|
74
84
|
|
|
75
85
|
// 怎么把 nodeType 和 EdgeType 传递进去
|
|
76
|
-
const WorkFlow = (0, _base.createFlow)(
|
|
86
|
+
const WorkFlow = (0, _base.createFlow)(_components.Layout, _hooks.useWorkFlowProps);
|
|
77
87
|
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(WorkFlow, (prevProps, nextProps) => (0, _lodash.isEqual)(prevProps, nextProps));
|
|
@@ -9,6 +9,6 @@ interface CanvasLoadingProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* 画布加载组件
|
|
11
11
|
*/
|
|
12
|
-
declare const CanvasLoading: import("react").NamedExoticComponent<CanvasLoadingProps>;
|
|
13
|
-
export
|
|
12
|
+
export declare const CanvasLoading: import("react").NamedExoticComponent<CanvasLoadingProps>;
|
|
13
|
+
export {};
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAOA,OAAO,cAAc,CAAC;AAItB,OAAO,EAAO,SAAS,EAAC,MAAM,OAAO,CAAC;AAEtC,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAOA,OAAO,cAAc,CAAC;AAItB,OAAO,EAAO,SAAS,EAAC,MAAM,OAAO,CAAC;AAEtC,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,0DAoCzB,CAAC"}
|
|
@@ -15,7 +15,7 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
15
15
|
/**
|
|
16
16
|
* 画布加载组件
|
|
17
17
|
*/
|
|
18
|
-
var CanvasLoading = /*#__PURE__*/memo(function (_ref) {
|
|
18
|
+
export var CanvasLoading = /*#__PURE__*/memo(function (_ref) {
|
|
19
19
|
var children = _ref.children,
|
|
20
20
|
loading = _ref.loading,
|
|
21
21
|
_ref$tip = _ref.tip,
|
|
@@ -41,5 +41,4 @@ var CanvasLoading = /*#__PURE__*/memo(function (_ref) {
|
|
|
41
41
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
42
42
|
children: [loading ? content : null, children]
|
|
43
43
|
});
|
|
44
|
-
});
|
|
45
|
-
export default CanvasLoading;
|
|
44
|
+
});
|
|
@@ -10,5 +10,5 @@ import { type IBaseFlowProps } from "@rxflow/base";
|
|
|
10
10
|
import { WorkflowExtendProps, WorkflowNode } from "../..";
|
|
11
11
|
import './index.less';
|
|
12
12
|
import { Edge } from "@xyflow/react";
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const Layout: <NodeType extends WorkflowNode = WorkflowNode, EdgeType extends Edge = Edge>(props: IBaseFlowProps<NodeType, EdgeType> & WorkflowExtendProps<NodeType>) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAO,KAAK,cAAc,EAAC,MAAM,cAAc,CAAC;AACvD,OAAO,EAAC,mBAAmB,EAAE,YAAY,EAAC,cAAyB;AACnE,OAAO,cAAc,CAAC;AACtB,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAInC,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAO,KAAK,cAAc,EAAC,MAAM,cAAc,CAAC;AACvD,OAAO,EAAC,mBAAmB,EAAE,YAAY,EAAC,cAAyB;AACnE,OAAO,cAAc,CAAC;AACtB,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAInC,eAAO,MAAM,MAAM,sFAGV,eAAe,QAAQ,EAAE,QAAQ,CAAC,GAAG,oBAAoB,QAAQ,CAAC,4CAkB1E,CAAA"}
|
|
@@ -14,11 +14,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
14
14
|
*/
|
|
15
15
|
import { Flow } from "@rxflow/base";
|
|
16
16
|
import "./index.less";
|
|
17
|
-
import CanvasLoading from "../CanvasLoading";
|
|
17
|
+
import { CanvasLoading } from "../CanvasLoading";
|
|
18
18
|
import { Sider } from "../Sider";
|
|
19
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
20
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
-
export var
|
|
21
|
+
export var Layout = function Layout(props) {
|
|
22
22
|
var readOnly = props.readOnly,
|
|
23
23
|
sider = props.sider,
|
|
24
24
|
loading = props.loading,
|
|
@@ -14,7 +14,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
14
14
|
*/
|
|
15
15
|
import "./index.less";
|
|
16
16
|
import { setDragDataTransfer } from "../../utils/dragDataTransfer";
|
|
17
|
-
import CanvasLoading from "../CanvasLoading";
|
|
17
|
+
import { CanvasLoading } from "../CanvasLoading";
|
|
18
18
|
import { useCallback, useMemo, useState } from 'react';
|
|
19
19
|
import groupBy from 'lodash/groupBy';
|
|
20
20
|
import { Input, List, Space } from "antd";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: yanxianliang
|
|
3
|
+
* @date: 2025-11-23 18:44
|
|
4
|
+
* @modified:2025/11/23 18:44 by yanxianliang
|
|
5
|
+
* @desc: export all components
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2025 by yanxianliang, All Rights Reserved.
|
|
8
|
+
*/
|
|
9
|
+
export * from './CanvasLoading';
|
|
10
|
+
export * from './CodeEditor';
|
|
11
|
+
export * from './Handle';
|
|
12
|
+
export * from './InlineCodeEditor';
|
|
13
|
+
export * from './Layout';
|
|
14
|
+
export * from './Sider';
|
|
15
|
+
export * from './LoadingButton';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: yanxianliang
|
|
3
|
+
* @date: 2025-11-23 18:44
|
|
4
|
+
* @modified:2025/11/23 18:44 by yanxianliang
|
|
5
|
+
* @desc: export all components
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2025 by yanxianliang, All Rights Reserved.
|
|
8
|
+
*/
|
|
9
|
+
export * from "./CanvasLoading";
|
|
10
|
+
export * from "./CodeEditor";
|
|
11
|
+
export * from "./Handle";
|
|
12
|
+
export * from "./InlineCodeEditor";
|
|
13
|
+
export * from "./Layout";
|
|
14
|
+
export * from "./Sider";
|
|
15
|
+
export * from "./LoadingButton";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: yanxianliang
|
|
3
|
+
* @date: 2025-11-23 18:48
|
|
4
|
+
* @modified:2025/11/23 18:48 by yanxianliang
|
|
5
|
+
* @desc: export all hooks
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2025 by yanxianliang, All Rights Reserved.
|
|
8
|
+
*/
|
|
9
|
+
export * from './state';
|
|
10
|
+
export * from './useDeleteNode';
|
|
11
|
+
export * from './useEdgeIsHover';
|
|
12
|
+
export * from './useGetSelection';
|
|
13
|
+
export * from './useGetUpstreamNodes';
|
|
14
|
+
export * from './useGetWillDropTarget';
|
|
15
|
+
export * from './useGroupIsWillDrop';
|
|
16
|
+
export * from './useNodes';
|
|
17
|
+
export * from './useSetEdges';
|
|
18
|
+
export * from './useSetSelection';
|
|
19
|
+
export * from './useUpstreams';
|
|
20
|
+
export * from './useWatchSelectionNodes';
|
|
21
|
+
export * from './useWorkFlow';
|
|
22
|
+
export * from './useWorkFlowProps';
|
|
23
|
+
export * from './run/useActiveEdge';
|
|
24
|
+
export * from './run/useCleanRunState';
|
|
25
|
+
export * from './run/useNodeRunningState';
|
|
26
|
+
export * from './run/useRunState';
|
|
27
|
+
export * from './run/useSetRunState';
|
|
28
|
+
export * from './useMouseEvents';
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author: yanxianliang
|
|
3
|
+
* @date: 2025-11-23 18:48
|
|
4
|
+
* @modified:2025/11/23 18:48 by yanxianliang
|
|
5
|
+
* @desc: export all hooks
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2025 by yanxianliang, All Rights Reserved.
|
|
8
|
+
*/
|
|
9
|
+
export * from "./state";
|
|
10
|
+
export * from "./useDeleteNode";
|
|
11
|
+
export * from "./useEdgeIsHover";
|
|
12
|
+
export * from "./useGetSelection";
|
|
13
|
+
export * from "./useGetUpstreamNodes";
|
|
14
|
+
export * from "./useGetWillDropTarget";
|
|
15
|
+
export * from "./useGroupIsWillDrop";
|
|
16
|
+
export * from "./useNodes";
|
|
17
|
+
export * from "./useSetEdges";
|
|
18
|
+
export * from "./useSetSelection";
|
|
19
|
+
export * from "./useUpstreams";
|
|
20
|
+
export * from "./useWatchSelectionNodes";
|
|
21
|
+
export * from "./useWorkFlow";
|
|
22
|
+
export * from "./useWorkFlowProps";
|
|
23
|
+
export * from "./run/useActiveEdge";
|
|
24
|
+
export * from "./run/useCleanRunState";
|
|
25
|
+
export * from "./run/useNodeRunningState";
|
|
26
|
+
export * from "./run/useRunState";
|
|
27
|
+
export * from "./run/useSetRunState";
|
|
28
|
+
export * from "./useMouseEvents";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsValidConnection.d.ts","sourceRoot":"","sources":["useIsValidConnection.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"useIsValidConnection.d.ts","sourceRoot":"","sources":["useIsValidConnection.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAC,cAAc,EAAC,WAAyB;AAChD,OAAO,EAAC,UAAU,EAAE,IAAI,EAAe,IAAI,EAA4B,MAAM,eAAe,CAAC;AAG7F,eAAO,MAAM,oBAAoB,sEAIxB,eAAe,QAAQ,EAAE,QAAQ,CAAC,qFAuD1C,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Edge, Node } from "@xyflow/react";
|
|
2
2
|
export declare const useUpstreams: <NodeType extends Node = Node, EdgeType extends Edge = Edge>(id: string, allowParentFlow?: boolean) => string[];
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=useUpstreams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUpstreams.d.ts","sourceRoot":"","sources":["useUpstreams.ts"],"names":[],"mappings":"AAQA,OAAO,EAAC,IAAI,EAAc,IAAI,EAAe,MAAM,eAAe,CAAC;AAanE,eAAO,MAAM,YAAY,mEAInB,MAAM,wCA8EX,CAAA"}
|
|
@@ -42,7 +42,6 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
42
42
|
onNodeDragStop: (event: import("react").MouseEvent<Element, MouseEvent>, node: NodeType, nodes: NodeType[]) => void;
|
|
43
43
|
width?: string | number | undefined;
|
|
44
44
|
height?: string | number | undefined;
|
|
45
|
-
id?: string | undefined;
|
|
46
45
|
onError?: import("@xyflow/react").OnError | undefined;
|
|
47
46
|
defaultChecked?: boolean | undefined;
|
|
48
47
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -52,16 +51,17 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
52
51
|
autoCapitalize?: "none" | (string & {}) | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
53
52
|
autoFocus?: boolean | undefined;
|
|
54
53
|
className?: string | undefined;
|
|
55
|
-
contentEditable?:
|
|
54
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
56
55
|
contextMenu?: string | undefined;
|
|
57
56
|
dir?: string | undefined;
|
|
58
|
-
draggable?: (boolean | "
|
|
59
|
-
enterKeyHint?: "search" | "
|
|
57
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
58
|
+
enterKeyHint?: "search" | "done" | "enter" | "go" | "next" | "previous" | "send" | undefined;
|
|
60
59
|
hidden?: boolean | undefined;
|
|
60
|
+
id?: string | undefined;
|
|
61
61
|
lang?: string | undefined;
|
|
62
62
|
nonce?: string | undefined;
|
|
63
63
|
slot?: string | undefined;
|
|
64
|
-
spellCheck?: (boolean | "
|
|
64
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
65
65
|
style?: import("react").CSSProperties | undefined;
|
|
66
66
|
tabIndex?: number | undefined;
|
|
67
67
|
title?: string | undefined;
|
|
@@ -91,7 +91,7 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
91
91
|
security?: string | undefined;
|
|
92
92
|
unselectable?: "off" | "on" | undefined;
|
|
93
93
|
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
94
|
-
popoverTargetAction?: "
|
|
94
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
95
95
|
popoverTarget?: string | undefined;
|
|
96
96
|
inert?: boolean | undefined;
|
|
97
97
|
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
@@ -99,52 +99,52 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
99
99
|
exportparts?: string | undefined;
|
|
100
100
|
part?: string | undefined;
|
|
101
101
|
"aria-activedescendant"?: string | undefined;
|
|
102
|
-
"aria-atomic"?: (boolean | "
|
|
103
|
-
"aria-autocomplete"?: "list" | "none" | "
|
|
102
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
103
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
104
104
|
"aria-braillelabel"?: string | undefined;
|
|
105
105
|
"aria-brailleroledescription"?: string | undefined;
|
|
106
|
-
"aria-busy"?: (boolean | "
|
|
107
|
-
"aria-checked"?: boolean | "
|
|
106
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
107
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
108
108
|
"aria-colcount"?: number | undefined;
|
|
109
109
|
"aria-colindex"?: number | undefined;
|
|
110
110
|
"aria-colindextext"?: string | undefined;
|
|
111
111
|
"aria-colspan"?: number | undefined;
|
|
112
112
|
"aria-controls"?: string | undefined;
|
|
113
|
-
"aria-current"?: boolean | "
|
|
113
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
114
114
|
"aria-describedby"?: string | undefined;
|
|
115
115
|
"aria-description"?: string | undefined;
|
|
116
116
|
"aria-details"?: string | undefined;
|
|
117
|
-
"aria-disabled"?: (boolean | "
|
|
118
|
-
"aria-dropeffect"?: "link" | "none" | "copy" | "
|
|
117
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
118
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
119
119
|
"aria-errormessage"?: string | undefined;
|
|
120
|
-
"aria-expanded"?: (boolean | "
|
|
120
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
121
121
|
"aria-flowto"?: string | undefined;
|
|
122
|
-
"aria-grabbed"?: (boolean | "
|
|
123
|
-
"aria-haspopup"?: boolean | "dialog" | "grid" | "listbox" | "menu" | "tree" | "
|
|
124
|
-
"aria-hidden"?: (boolean | "
|
|
125
|
-
"aria-invalid"?: boolean | "
|
|
122
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
123
|
+
"aria-haspopup"?: boolean | "dialog" | "grid" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
|
|
124
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
125
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
126
126
|
"aria-keyshortcuts"?: string | undefined;
|
|
127
127
|
"aria-label"?: string | undefined;
|
|
128
128
|
"aria-labelledby"?: string | undefined;
|
|
129
129
|
"aria-level"?: number | undefined;
|
|
130
130
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
131
|
-
"aria-modal"?: (boolean | "
|
|
132
|
-
"aria-multiline"?: (boolean | "
|
|
133
|
-
"aria-multiselectable"?: (boolean | "
|
|
131
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
132
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
133
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
134
134
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
135
135
|
"aria-owns"?: string | undefined;
|
|
136
136
|
"aria-placeholder"?: string | undefined;
|
|
137
137
|
"aria-posinset"?: number | undefined;
|
|
138
|
-
"aria-pressed"?: boolean | "
|
|
139
|
-
"aria-readonly"?: (boolean | "
|
|
140
|
-
"aria-relevant"?: "
|
|
141
|
-
"aria-required"?: (boolean | "
|
|
138
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
139
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
140
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
141
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
142
142
|
"aria-roledescription"?: string | undefined;
|
|
143
143
|
"aria-rowcount"?: number | undefined;
|
|
144
144
|
"aria-rowindex"?: number | undefined;
|
|
145
145
|
"aria-rowindextext"?: string | undefined;
|
|
146
146
|
"aria-rowspan"?: number | undefined;
|
|
147
|
-
"aria-selected"?: (boolean | "
|
|
147
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
148
148
|
"aria-setsize"?: number | undefined;
|
|
149
149
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
150
150
|
"aria-valuemax"?: number | undefined;
|
|
@@ -433,35 +433,35 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
433
433
|
'minimap.ariaLabel': string;
|
|
434
434
|
'handle.ariaLabel': string;
|
|
435
435
|
}> | undefined;
|
|
436
|
+
background?: string | undefined;
|
|
437
|
+
theme?: import("@rxflow/base").BaseThemeConfig | undefined;
|
|
436
438
|
showControls?: boolean | undefined;
|
|
437
439
|
controlsOrientation?: "horizontal" | "vertical" | undefined;
|
|
440
|
+
customControls?: import("react").ReactNode;
|
|
438
441
|
showMiniMap: boolean;
|
|
439
|
-
|
|
440
|
-
showAll?: boolean | undefined;
|
|
441
|
-
} | undefined;
|
|
442
|
-
background?: string | undefined;
|
|
442
|
+
getMiniMapNodeColor?: ((node: import("@xyflow/react").Node) => string) | undefined;
|
|
443
443
|
showFullscreen?: boolean | undefined;
|
|
444
444
|
showForceLayout?: boolean | undefined;
|
|
445
445
|
showInteractive?: boolean | undefined;
|
|
446
446
|
showFitView?: boolean | undefined;
|
|
447
447
|
showZoom?: boolean | undefined;
|
|
448
|
-
|
|
448
|
+
showLegend?: boolean | {
|
|
449
|
+
showAll?: boolean | undefined;
|
|
450
|
+
} | undefined;
|
|
449
451
|
autoCenter?: boolean | undefined;
|
|
452
|
+
rootStyle?: import("react").CSSProperties | undefined;
|
|
450
453
|
forceLayout?: boolean | undefined;
|
|
451
|
-
getMiniMapNodeColor?: ((node: import("@xyflow/react").Node) => string) | undefined;
|
|
452
454
|
markers?: import("packages/base/src/components/MarkerDefinitions/types").MarkDefinition[] | undefined;
|
|
453
455
|
plugins?: {
|
|
454
456
|
scroller?: false | import("packages/base/src/plugins/scrollbar/types").ScrollbarPluginOptions | undefined;
|
|
455
457
|
} | undefined;
|
|
456
458
|
readOnly?: boolean | undefined;
|
|
457
|
-
onZoomOut?: (() => void) | undefined;
|
|
458
459
|
onZoomIn?: (() => void) | undefined;
|
|
460
|
+
onZoomOut?: (() => void) | undefined;
|
|
459
461
|
onFitView?: (() => void) | undefined;
|
|
460
462
|
onInteractiveChange?: ((interactiveStatus: boolean) => void) | undefined;
|
|
461
|
-
customControls?: import("react").ReactNode;
|
|
462
|
-
forceFitView?: boolean | undefined;
|
|
463
|
-
theme?: import("@rxflow/base").BaseThemeConfig | undefined;
|
|
464
463
|
onRender?: ((nodes: NodeType[], edges: EdgeType[], timing: number) => void) | undefined;
|
|
464
|
+
forceFitView?: boolean | undefined;
|
|
465
465
|
loading?: boolean | undefined;
|
|
466
466
|
quickAdd?: boolean | undefined;
|
|
467
467
|
renderNodeIcon?: ((nodeDefinition: import("..").WorkFlowNodeDefinition<NodeType["data"]>) => import("react").ReactNode) | undefined;
|
package/esm/index.d.ts
CHANGED
|
@@ -19,5 +19,6 @@ export default _default;
|
|
|
19
19
|
export * from './types';
|
|
20
20
|
export * from './utils';
|
|
21
21
|
export * from './constants/RunningStatus';
|
|
22
|
-
export * from './components
|
|
22
|
+
export * from './components';
|
|
23
|
+
export * from './hooks';
|
|
23
24
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAExC,OAAO,KAAa,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAC,cAAc,EAAsB,MAAM,SAAS,CAAC;8DAM+E,eAAe,QAAQ,CAAC,KAAK,MAAM,YAAY;AAA1L,wBAA2L;AAE3L,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAExC,OAAO,KAAa,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAC,cAAc,EAAsB,MAAM,SAAS,CAAC;8DAM+E,eAAe,QAAQ,CAAC,KAAK,MAAM,YAAY;AAA1L,wBAA2L;AAE3L,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
package/esm/index.js
CHANGED
|
@@ -15,14 +15,15 @@ import '@xyflow/react/dist/style.css';
|
|
|
15
15
|
import { createFlow } from "@rxflow/base";
|
|
16
16
|
import { isEqual } from 'lodash';
|
|
17
17
|
import { memo } from "react";
|
|
18
|
-
import {
|
|
19
|
-
import { useWorkFlowProps } from "./hooks
|
|
18
|
+
import { Layout } from "./components";
|
|
19
|
+
import { useWorkFlowProps } from "./hooks";
|
|
20
20
|
// 怎么把 nodeType 和 EdgeType 传递进去
|
|
21
|
-
var WorkFlow = createFlow(
|
|
21
|
+
var WorkFlow = createFlow(Layout, useWorkFlowProps);
|
|
22
22
|
export default /*#__PURE__*/memo(WorkFlow, function (prevProps, nextProps) {
|
|
23
23
|
return isEqual(prevProps, nextProps);
|
|
24
24
|
});
|
|
25
25
|
export * from "./types";
|
|
26
26
|
export * from "./utils";
|
|
27
27
|
export * from "./constants/RunningStatus";
|
|
28
|
-
export * from "./components
|
|
28
|
+
export * from "./components";
|
|
29
|
+
export * from "./hooks";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxflow/workflow",
|
|
3
|
-
"version": "0.0.2-alpha.
|
|
3
|
+
"version": "0.0.2-alpha.2",
|
|
4
4
|
"description": "工作流",
|
|
5
5
|
"homepage": "https://tree-graph.publib.cn/packages/workflow",
|
|
6
6
|
"repository": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
42
42
|
"@fsegurai/codemirror-theme-github-dark": "^6.2.0",
|
|
43
43
|
"@fsegurai/codemirror-theme-github-light": "^6.2.0",
|
|
44
|
-
"@rxflow/base": "^0.0.2-alpha.
|
|
44
|
+
"@rxflow/base": "^0.0.2-alpha.2",
|
|
45
45
|
"@uiw/react-codemirror": "^4.24.1",
|
|
46
46
|
"@xterm/addon-fit": "^0.10.0",
|
|
47
47
|
"@xterm/xterm": "^5.5.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUpstream.d.ts","sourceRoot":"","sources":["useUpstream.ts"],"names":[],"mappings":"AAQA,OAAO,EAAC,IAAI,EAAc,IAAI,EAAe,MAAM,eAAe,CAAC;AAanE,eAAO,MAAM,YAAY,mEAInB,MAAM,wCA8EX,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUpstream.d.ts","sourceRoot":"","sources":["useUpstream.ts"],"names":[],"mappings":"AAQA,OAAO,EAAC,IAAI,EAAc,IAAI,EAAe,MAAM,eAAe,CAAC;AAanE,eAAO,MAAM,YAAY,mEAInB,MAAM,wCA8EX,CAAA"}
|
|
File without changes
|
|
File without changes
|