@zhubangyun/lowcode-core 1.1.13 → 1.1.15

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.
@@ -42,7 +42,7 @@ export var SchemaRenderBase = /*#__PURE__*/function (_Component) {
42
42
  return _context.abrupt("return");
43
43
  case 6:
44
44
  _context.next = 8;
45
- return utils.schemaCache.get(schemaId);
45
+ return utils.common.schemaCache.get(schemaId);
46
46
  case 8:
47
47
  schema = _context.sent;
48
48
  _this.setState({
@@ -61,15 +61,15 @@ export var SchemaRenderBase = /*#__PURE__*/function (_Component) {
61
61
  }));
62
62
  _this.components = void 0;
63
63
  _this.loadComponent = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
64
- var _yield$utils$lowcode$, components;
64
+ var _yield$utils$designer, components;
65
65
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
66
66
  while (1) switch (_context2.prev = _context2.next) {
67
67
  case 0:
68
68
  _context2.next = 2;
69
- return utils.lowcode.parseAssets(assets);
69
+ return utils.designer.assetsParse(assets);
70
70
  case 2:
71
- _yield$utils$lowcode$ = _context2.sent;
72
- components = _yield$utils$lowcode$.components;
71
+ _yield$utils$designer = _context2.sent;
72
+ components = _yield$utils$designer.components;
73
73
  _this.components = components;
74
74
  case 5:
75
75
  case "end":
@@ -78,7 +78,7 @@ export var SchemaRenderBase = /*#__PURE__*/function (_Component) {
78
78
  }, _callee2);
79
79
  }));
80
80
  _this.setState({
81
- key: utils.uuid("key.")
81
+ key: utils.common.uuid("key.")
82
82
  });
83
83
  return _this;
84
84
  }
package/es/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import utils from "./utils";
2
+ export * as ReactRender from "@zhubangyun/lowcode-renderer-core";
2
3
  export { RestApi } from "./utils/common/RestApi";
3
4
  export { RestFormApi } from "./utils/common/RestFormApi";
4
5
  export { ClientCache } from "./utils/common/ClientCache";
package/es/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  import utils from "./utils";
2
+ import * as _ReactRender from "@zhubangyun/lowcode-renderer-core";
3
+ export { _ReactRender as ReactRender };
2
4
  export { RestApi } from "./utils/common/RestApi";
3
5
  export { RestFormApi } from "./utils/common/RestFormApi";
4
6
  export { ClientCache } from "./utils/common/ClientCache";
@@ -1,4 +1,4 @@
1
- import { Project, Material, Plugins } from "@alilc/lowcode-shell";
1
+ import { Project, Material, Plugins, Skeleton } from "@alilc/lowcode-shell";
2
2
  import { DefaultAssertsType, DesignerAssets } from "../assets";
3
3
  import { IPublicTypeAssetsJson } from "@alilc/lowcode-utils";
4
4
  import { IPublicTypePlugin, IPublicTypePluginRegisterOptions } from "@alilc/lowcode-types";
@@ -7,6 +7,7 @@ export declare class Engine {
7
7
  plugins: Plugins;
8
8
  assets: DesignerAssets;
9
9
  material: Material;
10
+ skeleton: Skeleton;
10
11
  _engine: any;
11
12
  constructor();
12
13
  /**
@@ -9,6 +9,7 @@ export var Engine = function Engine() {
9
9
  this.plugins = void 0;
10
10
  this.assets = void 0;
11
11
  this.material = void 0;
12
+ this.skeleton = void 0;
12
13
  this._engine = void 0;
13
14
  /**
14
15
  * 注入资产
@@ -134,5 +135,6 @@ export var Engine = function Engine() {
134
135
  this.project = this._engine.project;
135
136
  this.material = this._engine.material;
136
137
  this.plugins = this._engine.plugins;
138
+ this.skeleton = this._engine.skeleton;
137
139
  this.assets = new DesignerAssets();
138
140
  };
@@ -49,7 +49,7 @@ var SchemaRenderBase = exports.SchemaRenderBase = /*#__PURE__*/function (_Compon
49
49
  return _context.abrupt("return");
50
50
  case 6:
51
51
  _context.next = 8;
52
- return _utils["default"].schemaCache.get(schemaId);
52
+ return _utils["default"].common.schemaCache.get(schemaId);
53
53
  case 8:
54
54
  schema = _context.sent;
55
55
  _this.setState({
@@ -68,15 +68,15 @@ var SchemaRenderBase = exports.SchemaRenderBase = /*#__PURE__*/function (_Compon
68
68
  }));
69
69
  _this.components = void 0;
70
70
  _this.loadComponent = /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
71
- var _yield$utils$lowcode$, components;
71
+ var _yield$utils$designer, components;
72
72
  return _regenerator["default"].wrap(function _callee2$(_context2) {
73
73
  while (1) switch (_context2.prev = _context2.next) {
74
74
  case 0:
75
75
  _context2.next = 2;
76
- return _utils["default"].lowcode.parseAssets(_assets["default"]);
76
+ return _utils["default"].designer.assetsParse(_assets["default"]);
77
77
  case 2:
78
- _yield$utils$lowcode$ = _context2.sent;
79
- components = _yield$utils$lowcode$.components;
78
+ _yield$utils$designer = _context2.sent;
79
+ components = _yield$utils$designer.components;
80
80
  _this.components = components;
81
81
  case 5:
82
82
  case "end":
@@ -85,7 +85,7 @@ var SchemaRenderBase = exports.SchemaRenderBase = /*#__PURE__*/function (_Compon
85
85
  }, _callee2);
86
86
  }));
87
87
  _this.setState({
88
- key: _utils["default"].uuid("key.")
88
+ key: _utils["default"].common.uuid("key.")
89
89
  });
90
90
  return _this;
91
91
  }
package/lib/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import utils from "./utils";
2
+ export * as ReactRender from "@zhubangyun/lowcode-renderer-core";
2
3
  export { RestApi } from "./utils/common/RestApi";
3
4
  export { RestFormApi } from "./utils/common/RestFormApi";
4
5
  export { ClientCache } from "./utils/common/ClientCache";
package/lib/index.js CHANGED
@@ -2,9 +2,11 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  exports.__esModule = true;
5
- exports.SchemaRender = exports.RestFormApi = exports.RestApi = exports.Layout = exports.ClientCache = void 0;
5
+ exports.SchemaRender = exports.RestFormApi = exports.RestApi = exports.ReactRender = exports.Layout = exports.ClientCache = void 0;
6
6
  var _utils = _interopRequireDefault(require("./utils"));
7
7
  exports.utils = _utils["default"];
8
+ var _ReactRender = _interopRequireWildcard(require("@zhubangyun/lowcode-renderer-core"));
9
+ exports.ReactRender = _ReactRender;
8
10
  var _RestApi = require("./utils/common/RestApi");
9
11
  exports.RestApi = _RestApi.RestApi;
10
12
  var _RestFormApi = require("./utils/common/RestFormApi");
@@ -14,4 +16,6 @@ exports.ClientCache = _ClientCache.ClientCache;
14
16
  var _layout = require("./components/layout");
15
17
  exports.Layout = _layout.Layout;
16
18
  var _schemaRender = require("./components/schema-render");
17
- exports.SchemaRender = _schemaRender.SchemaRender;
19
+ exports.SchemaRender = _schemaRender.SchemaRender;
20
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
21
+ 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 && {}.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; }
@@ -1,4 +1,4 @@
1
- import { Project, Material, Plugins } from "@alilc/lowcode-shell";
1
+ import { Project, Material, Plugins, Skeleton } from "@alilc/lowcode-shell";
2
2
  import { DefaultAssertsType, DesignerAssets } from "../assets";
3
3
  import { IPublicTypeAssetsJson } from "@alilc/lowcode-utils";
4
4
  import { IPublicTypePlugin, IPublicTypePluginRegisterOptions } from "@alilc/lowcode-types";
@@ -7,6 +7,7 @@ export declare class Engine {
7
7
  plugins: Plugins;
8
8
  assets: DesignerAssets;
9
9
  material: Material;
10
+ skeleton: Skeleton;
10
11
  _engine: any;
11
12
  constructor();
12
13
  /**
@@ -14,6 +14,7 @@ var Engine = exports.Engine = function Engine() {
14
14
  this.plugins = void 0;
15
15
  this.assets = void 0;
16
16
  this.material = void 0;
17
+ this.skeleton = void 0;
17
18
  this._engine = void 0;
18
19
  /**
19
20
  * 注入资产
@@ -139,5 +140,6 @@ var Engine = exports.Engine = function Engine() {
139
140
  this.project = this._engine.project;
140
141
  this.material = this._engine.material;
141
142
  this.plugins = this._engine.plugins;
143
+ this.skeleton = this._engine.skeleton;
142
144
  this.assets = new _assets.DesignerAssets();
143
145
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhubangyun/lowcode-core",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "description": "低代码核心",
5
5
  "files": [
6
6
  "lib",