@rxflow/workflow 0.0.4-alpha.2 → 0.0.4-alpha.3

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/index.js CHANGED
@@ -21,7 +21,18 @@ Object.keys(_components).forEach(function (key) {
21
21
  }
22
22
  });
23
23
  });
24
- var _useWorkFlowProps = require("./hooks/useWorkFlowProps");
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
+ });
25
36
  var _types = require("./types");
26
37
  Object.keys(_types).forEach(function (key) {
27
38
  if (key === "default" || key === "__esModule") return;
@@ -58,18 +69,6 @@ Object.keys(_RunningStatus).forEach(function (key) {
58
69
  }
59
70
  });
60
71
  });
61
- var _hooks = require("./hooks");
62
- Object.keys(_hooks).forEach(function (key) {
63
- if (key === "default" || key === "__esModule") return;
64
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
65
- if (key in exports && exports[key] === _hooks[key]) return;
66
- Object.defineProperty(exports, key, {
67
- enumerable: true,
68
- get: function () {
69
- return _hooks[key];
70
- }
71
- });
72
- });
73
72
  /**
74
73
  * @author: yanxianliang
75
74
  * @date: 2025-06-27 09:32
@@ -81,7 +80,7 @@ Object.keys(_hooks).forEach(function (key) {
81
80
  * Copyright (c) 2025 by yanxianliang, All Rights Reserved.
82
81
  */
83
82
 
84
- const WorkFlow = (0, _base.createFlow)(_components.Layout, _useWorkFlowProps.useWorkFlowProps);
83
+ const WorkFlow = (0, _base.createFlow)(_components.Layout, _hooks.useWorkFlowProps);
85
84
  var _default = exports.default = /*#__PURE__*/(0, _react.memo)(WorkFlow, (prevProps, nextProps) => (0, _lodash.isEqual)(prevProps, nextProps)); // 类型导出
86
85
  // 工具函数导出
87
86
  // 常量导出
package/esm/index.js CHANGED
@@ -14,7 +14,7 @@ import { createFlow } from "@rxflow/base";
14
14
  import { isEqual } from 'lodash';
15
15
  import { memo } from "react";
16
16
  import { Layout } from "./components";
17
- import { useWorkFlowProps } from "./hooks/useWorkFlowProps";
17
+ import { useWorkFlowProps } from "./hooks";
18
18
  var WorkFlow = createFlow(Layout, useWorkFlowProps);
19
19
  export default /*#__PURE__*/memo(WorkFlow, function (prevProps, nextProps) {
20
20
  return isEqual(prevProps, nextProps);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxflow/workflow",
3
- "version": "0.0.4-alpha.2",
3
+ "version": "0.0.4-alpha.3",
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.4-alpha.2",
44
+ "@rxflow/base": "^0.0.4-alpha.3",
45
45
  "@uiw/react-codemirror": "^4.24.1",
46
46
  "@xterm/addon-fit": "^0.10.0",
47
47
  "@xterm/xterm": "^5.5.0",