@zhubangyun/lowcode-core 1.1.20 → 1.1.21

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.
@@ -1,8 +1,8 @@
1
1
  import React, { PureComponent } from "react";
2
2
  export declare class ReactRender extends PureComponent<{
3
3
  schema: any;
4
- style?: React.CSSProperties;
5
4
  components?: any;
5
+ style?: React.CSSProperties;
6
6
  }> {
7
7
  key: string;
8
8
  jsx: any;
@@ -0,0 +1 @@
1
+ export declare function loadMaterials(): Promise<Record<string, React.FC>>;
@@ -0,0 +1,37 @@
1
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
+ import { loadPlugins } from "./LoadPlugins";
4
+ export function loadMaterials() {
5
+ return _loadMaterials.apply(this, arguments);
6
+ }
7
+ function _loadMaterials() {
8
+ _loadMaterials = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
9
+ var urls, components;
10
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
11
+ while (1) switch (_context.prev = _context.next) {
12
+ case 0:
13
+ urls = ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/view.css", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.css", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.css"];
14
+ _context.next = 3;
15
+ return loadPlugins(urls);
16
+ case 3:
17
+ components = {};
18
+ ["RootMaterial", "AntdMaterial", "AntdProMaterial"].forEach(function (lib) {
19
+ var data = window[lib];
20
+ if (data) {
21
+ Object.entries(data).forEach(function (_ref) {
22
+ var key = _ref[0],
23
+ value = _ref[1];
24
+ // @ts-ignore
25
+ components[key] = value;
26
+ });
27
+ }
28
+ });
29
+ return _context.abrupt("return", components);
30
+ case 6:
31
+ case "end":
32
+ return _context.stop();
33
+ }
34
+ }, _callee);
35
+ }));
36
+ return _loadMaterials.apply(this, arguments);
37
+ }
@@ -1,15 +1,5 @@
1
1
  export var AntdAssets = {
2
- packages: [{
3
- "package": "antd-material",
4
- "version": "0.1.0",
5
- "library": "AntdMaterial",
6
- "urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.css"]
7
- }, {
8
- "package": "@zhubangyun/antd-pro-material",
9
- "version": "0.1.0",
10
- "library": "AntdProMaterial",
11
- "urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.css"]
12
- }],
2
+ packages: [],
13
3
  components: [{
14
4
  "exportName": "AntdMaterialMeta",
15
5
  "npm": {
@@ -24,6 +24,16 @@ var BaseAssets = {
24
24
  "version": "0.1.0",
25
25
  "library": "RootMaterial",
26
26
  "urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/view.css"]
27
+ }, {
28
+ "package": "antd-material",
29
+ "version": "0.1.0",
30
+ "library": "AntdMaterial",
31
+ "urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.css"]
32
+ }, {
33
+ "package": "@zhubangyun/antd-pro-material",
34
+ "version": "0.1.0",
35
+ "library": "AntdProMaterial",
36
+ "urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.css"]
27
37
  }],
28
38
  "components": [{
29
39
  "exportName": "RootMaterialMeta",
@@ -1,8 +1,8 @@
1
1
  import React, { PureComponent } from "react";
2
2
  export declare class ReactRender extends PureComponent<{
3
3
  schema: any;
4
- style?: React.CSSProperties;
5
4
  components?: any;
5
+ style?: React.CSSProperties;
6
6
  }> {
7
7
  key: string;
8
8
  jsx: any;
@@ -0,0 +1 @@
1
+ export declare function loadMaterials(): Promise<Record<string, React.FC>>;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ exports.loadMaterials = loadMaterials;
6
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
7
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
8
+ var _LoadPlugins = require("./LoadPlugins");
9
+ function loadMaterials() {
10
+ return _loadMaterials.apply(this, arguments);
11
+ }
12
+ function _loadMaterials() {
13
+ _loadMaterials = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
14
+ var urls, components;
15
+ return _regenerator["default"].wrap(function _callee$(_context) {
16
+ while (1) switch (_context.prev = _context.next) {
17
+ case 0:
18
+ urls = ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/view.css", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.css", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.css"];
19
+ _context.next = 3;
20
+ return (0, _LoadPlugins.loadPlugins)(urls);
21
+ case 3:
22
+ components = {};
23
+ ["RootMaterial", "AntdMaterial", "AntdProMaterial"].forEach(function (lib) {
24
+ var data = window[lib];
25
+ if (data) {
26
+ Object.entries(data).forEach(function (_ref) {
27
+ var key = _ref[0],
28
+ value = _ref[1];
29
+ // @ts-ignore
30
+ components[key] = value;
31
+ });
32
+ }
33
+ });
34
+ return _context.abrupt("return", components);
35
+ case 6:
36
+ case "end":
37
+ return _context.stop();
38
+ }
39
+ }, _callee);
40
+ }));
41
+ return _loadMaterials.apply(this, arguments);
42
+ }
@@ -3,17 +3,7 @@
3
3
  exports.__esModule = true;
4
4
  exports["default"] = exports.AntdAssets = void 0;
5
5
  var AntdAssets = exports.AntdAssets = {
6
- packages: [{
7
- "package": "antd-material",
8
- "version": "0.1.0",
9
- "library": "AntdMaterial",
10
- "urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.css"]
11
- }, {
12
- "package": "@zhubangyun/antd-pro-material",
13
- "version": "0.1.0",
14
- "library": "AntdProMaterial",
15
- "urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.css"]
16
- }],
6
+ packages: [],
17
7
  components: [{
18
8
  "exportName": "AntdMaterialMeta",
19
9
  "npm": {
@@ -28,6 +28,16 @@ var BaseAssets = {
28
28
  "version": "0.1.0",
29
29
  "library": "RootMaterial",
30
30
  "urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/view.css"]
31
+ }, {
32
+ "package": "antd-material",
33
+ "version": "0.1.0",
34
+ "library": "AntdMaterial",
35
+ "urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.css"]
36
+ }, {
37
+ "package": "@zhubangyun/antd-pro-material",
38
+ "version": "0.1.0",
39
+ "library": "AntdProMaterial",
40
+ "urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.css"]
31
41
  }],
32
42
  "components": [{
33
43
  "exportName": "RootMaterialMeta",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhubangyun/lowcode-core",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "低代码核心",
5
5
  "files": [
6
6
  "lib",