@tachybase/module-cloud-component 0.23.40 → 0.23.47

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.
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  /**
3
3
  * 组件代码编辑
4
4
  */
5
- declare const _default: React.ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & React.RefAttributes<unknown>>;
5
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
6
6
  export default _default;
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import 'bytemd/dist/index.css';
3
3
  import 'highlight.js/styles/vs.min.css';
4
4
  import 'github-markdown-css';
5
- declare const _default: React.ForwardRefExoticComponent<Omit<Partial<{
5
+ declare const _default: React.ForwardRefExoticComponent<Omit<{
6
6
  [x: string]: any;
7
7
  value: any;
8
- }>, "ref"> & React.RefAttributes<unknown>>;
8
+ }, "ref"> & React.RefAttributes<unknown>>;
9
9
  export default _default;
@@ -1,15 +1,15 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "0.23.40",
4
- "@tachybase/schema": "0.23.40",
5
- "@tachybase/utils": "0.23.40",
6
- "@tachybase/server": "0.23.40",
3
+ "@tachybase/client": "0.23.47",
4
+ "@tachybase/schema": "0.23.47",
5
+ "@tachybase/utils": "0.23.47",
6
+ "@tachybase/server": "0.23.47",
7
7
  "lodash": "4.17.21",
8
8
  "dayjs": "1.11.13",
9
9
  "antd": "5.22.5",
10
10
  "react-router-dom": "6.28.1",
11
- "@tachybase/components": "0.23.40",
11
+ "@tachybase/components": "0.23.47",
12
12
  "ahooks": "3.8.4",
13
- "@tachybase/actions": "0.23.40",
14
- "@tachybase/database": "0.23.40"
13
+ "@tachybase/actions": "0.23.47",
14
+ "@tachybase/database": "0.23.47"
15
15
  };
@@ -1 +1 @@
1
- {"name":"@babel/core","version":"7.26.0","description":"Babel compiler core.","main":"./lib/index.js","author":"The Babel Team (https://babel.dev/team)","license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-core"},"homepage":"https://babel.dev/docs/en/next/babel-core","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20core%22+is%3Aopen","keywords":["6to5","babel","classes","const","es6","harmony","let","modules","transpile","transpiler","var","babel-core","compiler"],"engines":{"node":">=6.9.0"},"funding":{"type":"opencollective","url":"https://opencollective.com/babel"},"browser":{"./lib/config/files/index.js":"./lib/config/files/index-browser.js","./lib/config/resolve-targets.js":"./lib/config/resolve-targets-browser.js","./lib/transform-file.js":"./lib/transform-file-browser.js","./src/config/files/index.ts":"./src/config/files/index-browser.ts","./src/config/resolve-targets.ts":"./src/config/resolve-targets-browser.ts","./src/transform-file.ts":"./src/transform-file-browser.ts"},"dependencies":{"@ampproject/remapping":"^2.2.0","@babel/code-frame":"^7.26.0","@babel/generator":"^7.26.0","@babel/helper-compilation-targets":"^7.25.9","@babel/helper-module-transforms":"^7.26.0","@babel/helpers":"^7.26.0","@babel/parser":"^7.26.0","@babel/template":"^7.25.9","@babel/traverse":"^7.25.9","@babel/types":"^7.26.0","convert-source-map":"^2.0.0","debug":"^4.1.0","gensync":"^1.0.0-beta.2","json5":"^2.2.3","semver":"^6.3.1"},"devDependencies":{"@babel/helper-transform-fixture-test-runner":"^7.26.0","@babel/plugin-syntax-flow":"^7.26.0","@babel/plugin-transform-flow-strip-types":"^7.25.9","@babel/plugin-transform-modules-commonjs":"^7.25.9","@babel/preset-env":"^7.26.0","@babel/preset-typescript":"^7.26.0","@jridgewell/trace-mapping":"^0.3.25","@types/convert-source-map":"^2.0.0","@types/debug":"^4.1.0","@types/gensync":"^1.0.0","@types/resolve":"^1.3.2","@types/semver":"^5.4.0","rimraf":"^3.0.0","ts-node":"^11.0.0-beta.1"},"type":"commonjs","_lastModified":"2025-01-18T18:47:39.517Z"}
1
+ {"name":"@babel/core","version":"7.26.0","description":"Babel compiler core.","main":"./lib/index.js","author":"The Babel Team (https://babel.dev/team)","license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-core"},"homepage":"https://babel.dev/docs/en/next/babel-core","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20core%22+is%3Aopen","keywords":["6to5","babel","classes","const","es6","harmony","let","modules","transpile","transpiler","var","babel-core","compiler"],"engines":{"node":">=6.9.0"},"funding":{"type":"opencollective","url":"https://opencollective.com/babel"},"browser":{"./lib/config/files/index.js":"./lib/config/files/index-browser.js","./lib/config/resolve-targets.js":"./lib/config/resolve-targets-browser.js","./lib/transform-file.js":"./lib/transform-file-browser.js","./src/config/files/index.ts":"./src/config/files/index-browser.ts","./src/config/resolve-targets.ts":"./src/config/resolve-targets-browser.ts","./src/transform-file.ts":"./src/transform-file-browser.ts"},"dependencies":{"@ampproject/remapping":"^2.2.0","@babel/code-frame":"^7.26.0","@babel/generator":"^7.26.0","@babel/helper-compilation-targets":"^7.25.9","@babel/helper-module-transforms":"^7.26.0","@babel/helpers":"^7.26.0","@babel/parser":"^7.26.0","@babel/template":"^7.25.9","@babel/traverse":"^7.25.9","@babel/types":"^7.26.0","convert-source-map":"^2.0.0","debug":"^4.1.0","gensync":"^1.0.0-beta.2","json5":"^2.2.3","semver":"^6.3.1"},"devDependencies":{"@babel/helper-transform-fixture-test-runner":"^7.26.0","@babel/plugin-syntax-flow":"^7.26.0","@babel/plugin-transform-flow-strip-types":"^7.25.9","@babel/plugin-transform-modules-commonjs":"^7.25.9","@babel/preset-env":"^7.26.0","@babel/preset-typescript":"^7.26.0","@jridgewell/trace-mapping":"^0.3.25","@types/convert-source-map":"^2.0.0","@types/debug":"^4.1.0","@types/gensync":"^1.0.0","@types/resolve":"^1.3.2","@types/semver":"^5.4.0","rimraf":"^3.0.0","ts-node":"^11.0.0-beta.1"},"type":"commonjs","_lastModified":"2025-02-21T02:26:11.536Z"}
@@ -1 +1 @@
1
- {"name":"@babel/parser","version":"7.26.3","description":"A JavaScript parser","author":"The Babel Team (https://babel.dev/team)","homepage":"https://babel.dev/docs/en/next/babel-parser","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A+parser+%28babylon%29%22+is%3Aopen","license":"MIT","publishConfig":{"access":"public"},"keywords":["babel","javascript","parser","tc39","ecmascript","@babel/parser"],"repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-parser"},"main":"./lib/index.js","types":"./typings/babel-parser.d.ts","files":["bin","lib","typings/babel-parser.d.ts","index.cjs"],"engines":{"node":">=6.0.0"},"# dependencies":"This package doesn't actually have runtime dependencies. @babel/types is only needed for type definitions.","dependencies":{"@babel/types":"^7.26.3"},"devDependencies":{"@babel/code-frame":"^7.26.2","@babel/helper-check-duplicate-nodes":"^7.25.9","@babel/helper-fixtures":"^7.26.0","@babel/helper-string-parser":"^7.25.9","@babel/helper-validator-identifier":"^7.25.9","charcodes":"^0.2.0"},"bin":"./bin/babel-parser.js","type":"commonjs","_lastModified":"2025-01-18T18:47:40.630Z"}
1
+ {"name":"@babel/parser","version":"7.26.3","description":"A JavaScript parser","author":"The Babel Team (https://babel.dev/team)","homepage":"https://babel.dev/docs/en/next/babel-parser","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A+parser+%28babylon%29%22+is%3Aopen","license":"MIT","publishConfig":{"access":"public"},"keywords":["babel","javascript","parser","tc39","ecmascript","@babel/parser"],"repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-parser"},"main":"./lib/index.js","types":"./typings/babel-parser.d.ts","files":["bin","lib","typings/babel-parser.d.ts","index.cjs"],"engines":{"node":">=6.0.0"},"# dependencies":"This package doesn't actually have runtime dependencies. @babel/types is only needed for type definitions.","dependencies":{"@babel/types":"^7.26.3"},"devDependencies":{"@babel/code-frame":"^7.26.2","@babel/helper-check-duplicate-nodes":"^7.25.9","@babel/helper-fixtures":"^7.26.0","@babel/helper-string-parser":"^7.25.9","@babel/helper-validator-identifier":"^7.25.9","charcodes":"^0.2.0"},"bin":"./bin/babel-parser.js","type":"commonjs","_lastModified":"2025-02-21T02:26:12.689Z"}
@@ -1 +1 @@
1
- {"name":"@babel/traverse","version":"7.26.4","description":"The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes","author":"The Babel Team (https://babel.dev/team)","homepage":"https://babel.dev/docs/en/next/babel-traverse","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20traverse%22+is%3Aopen","license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-traverse"},"main":"./lib/index.js","dependencies":{"@babel/code-frame":"^7.26.2","@babel/generator":"^7.26.3","@babel/parser":"^7.26.3","@babel/template":"^7.25.9","@babel/types":"^7.26.3","debug":"^4.3.1","globals":"^11.1.0"},"devDependencies":{"@babel/core":"^7.26.0","@babel/helper-plugin-test-runner":"^7.25.9"},"engines":{"node":">=6.9.0"},"type":"commonjs","_lastModified":"2025-01-18T18:47:43.548Z"}
1
+ {"name":"@babel/traverse","version":"7.26.4","description":"The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes","author":"The Babel Team (https://babel.dev/team)","homepage":"https://babel.dev/docs/en/next/babel-traverse","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20traverse%22+is%3Aopen","license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-traverse"},"main":"./lib/index.js","dependencies":{"@babel/code-frame":"^7.26.2","@babel/generator":"^7.26.3","@babel/parser":"^7.26.3","@babel/template":"^7.25.9","@babel/types":"^7.26.3","debug":"^4.3.1","globals":"^11.1.0"},"devDependencies":{"@babel/core":"^7.26.0","@babel/helper-plugin-test-runner":"^7.25.9"},"engines":{"node":">=6.9.0"},"type":"commonjs","_lastModified":"2025-02-21T02:26:15.562Z"}
@@ -1 +1 @@
1
- {"name":"@hapi/topo","description":"Topological sorting with grouping support","version":"6.0.2","repository":"git://github.com/hapijs/topo","main":"lib/index.js","types":"lib/index.d.ts","files":["lib"],"keywords":["topological","sort","toposort","topsort"],"eslintConfig":{"extends":["plugin:@hapi/module"]},"dependencies":{"@hapi/hoek":"^11.0.2"},"devDependencies":{"@hapi/code":"^9.0.3","@hapi/eslint-plugin":"*","@hapi/lab":"^25.1.2","@types/node":"^17.0.31","typescript":"~4.6.4"},"scripts":{"test":"lab -a @hapi/code -t 100 -L -Y","test-cov-html":"lab -a @hapi/code -t 100 -L -r html -o coverage.html"},"license":"BSD-3-Clause","_lastModified":"2025-01-18T18:47:43.755Z"}
1
+ {"name":"@hapi/topo","description":"Topological sorting with grouping support","version":"6.0.2","repository":"git://github.com/hapijs/topo","main":"lib/index.js","types":"lib/index.d.ts","files":["lib"],"keywords":["topological","sort","toposort","topsort"],"eslintConfig":{"extends":["plugin:@hapi/module"]},"dependencies":{"@hapi/hoek":"^11.0.2"},"devDependencies":{"@hapi/code":"^9.0.3","@hapi/eslint-plugin":"*","@hapi/lab":"^25.1.2","@types/node":"^17.0.31","typescript":"~4.6.4"},"scripts":{"test":"lab -a @hapi/code -t 100 -L -Y","test-cov-html":"lab -a @hapi/code -t 100 -L -r html -o coverage.html"},"license":"BSD-3-Clause","_lastModified":"2025-02-21T02:26:15.770Z"}
@@ -64,7 +64,6 @@ var __decorateElement = (array, flags, name, decorators, target, extra) => {
64
64
  }
65
65
  return k || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p ? k ^ 4 ? extra : desc : target;
66
66
  };
67
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
68
67
  var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
69
68
  var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj);
70
69
  var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
@@ -83,7 +82,7 @@ _CloudLibrariesController_decorators = [(0, import_utils.Controller)("cloudLibra
83
82
  class CloudLibrariesController {
84
83
  constructor() {
85
84
  __runInitializers(_init, 5, this);
86
- __publicField(this, "compiler", __runInitializers(_init, 8, this)), __runInitializers(_init, 11, this);
85
+ this.compiler = __runInitializers(_init, 8, this), __runInitializers(_init, 11, this);
87
86
  }
88
87
  async update(ctx, next) {
89
88
  const { name, code, module: module2, isClient, isServer, serverPlugin, clientPlugin, enabled, component } = ctx.action.params.values;
@@ -64,7 +64,6 @@ var __decorateElement = (array, flags, name, decorators, target, extra) => {
64
64
  }
65
65
  return k || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p ? k ^ 4 ? extra : desc : target;
66
66
  };
67
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
68
67
  var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
69
68
  var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj);
70
69
  var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
@@ -85,10 +84,10 @@ var _compiler_dec, _logger_dec, _app_dec, _db_dec, _CloudLibrariesService_decora
85
84
  _CloudLibrariesService_decorators = [(0, import_utils.Service)()], _db_dec = [(0, import_utils.Db)()], _app_dec = [(0, import_utils.App)()], _logger_dec = [(0, import_utils.InjectLog)()], _compiler_dec = [(0, import_utils.Inject)(() => import_cloud_compiler.CloudCompiler)];
86
85
  class CloudLibrariesService {
87
86
  constructor() {
88
- __publicField(this, "db", __runInitializers(_init, 8, this)), __runInitializers(_init, 11, this);
89
- __publicField(this, "app", __runInitializers(_init, 12, this)), __runInitializers(_init, 15, this);
90
- __publicField(this, "logger", __runInitializers(_init, 16, this)), __runInitializers(_init, 19, this);
91
- __publicField(this, "compiler", __runInitializers(_init, 20, this)), __runInitializers(_init, 23, this);
87
+ this.db = __runInitializers(_init, 8, this), __runInitializers(_init, 11, this);
88
+ this.app = __runInitializers(_init, 12, this), __runInitializers(_init, 15, this);
89
+ this.logger = __runInitializers(_init, 16, this), __runInitializers(_init, 19, this);
90
+ this.compiler = __runInitializers(_init, 20, this), __runInitializers(_init, 23, this);
92
91
  }
93
92
  async compileLibraries() {
94
93
  const libRepo = this.app.db.getRepository("cloudLibraries");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/module-cloud-component",
3
3
  "displayName": "Cloud component",
4
- "version": "0.23.40",
4
+ "version": "0.23.47",
5
5
  "description": "Cloud component",
6
6
  "main": "dist/server/index.js",
7
7
  "dependencies": {},
@@ -30,16 +30,16 @@
30
30
  "react-error-boundary": "4.1.2",
31
31
  "react-router-dom": "6.28.1",
32
32
  "react-use": "17.6.0",
33
- "@tachybase/components": "0.23.40"
33
+ "@tachybase/components": "0.23.47"
34
34
  },
35
35
  "peerDependencies": {
36
- "@tachybase/actions": "0.23.40",
37
- "@tachybase/client": "0.23.40",
38
- "@tachybase/server": "0.23.40",
39
- "@tachybase/schema": "0.23.40",
40
- "@tachybase/database": "0.23.40",
41
- "@tachybase/test": "0.23.40",
42
- "@tachybase/utils": "0.23.40"
36
+ "@tachybase/client": "0.23.47",
37
+ "@tachybase/actions": "0.23.47",
38
+ "@tachybase/database": "0.23.47",
39
+ "@tachybase/schema": "0.23.47",
40
+ "@tachybase/test": "0.23.47",
41
+ "@tachybase/utils": "0.23.47",
42
+ "@tachybase/server": "0.23.47"
43
43
  },
44
44
  "description.zh-CN": "云组件",
45
45
  "displayName.zh-CN": "云组件",