@gant-lowcode/plugin-code-generator 0.0.0 → 1.0.0

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.
@@ -3,7 +3,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE__gant_lowcode_code_generator_standalone_loader__ from "@gant-lowcode/code-generator/standalone-loader";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE__gant_lowcode_lowcode_types__ from "@gant-lowcode/lowcode-types";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
6
- import * as __WEBPACK_EXTERNAL_MODULE_semver_functions_coerce__ from "semver/functions/coerce";
6
+ import * as __WEBPACK_EXTERNAL_MODULE_semver_functions_coerce_js__ from "semver/functions/coerce.js";
7
7
  import * as __WEBPACK_EXTERNAL_MODULE__code_gen_result_index_js__ from "../code-gen-result/index.js";
8
8
  import "./index.css";
9
9
  import * as __WEBPACK_EXTERNAL_MODULE__ant_design_icons__ from "@ant-design/icons";
@@ -138,6 +138,6 @@ function isValidVersion(version) {
138
138
  // 对于 latest/beta/rc 这样的 tag 版本号要支持下
139
139
  if (/^[a-z][a-z0-9]+([a-z0-9-]+)?$/i.test(version)) return true;
140
140
  // 最后支持下所有 semver 能识别的版本
141
- return null !== (0, __WEBPACK_EXTERNAL_MODULE_semver_functions_coerce__["default"])(version);
141
+ return null !== (0, __WEBPACK_EXTERNAL_MODULE_semver_functions_coerce_js__["default"])(version);
142
142
  }
143
143
  export { CodeGenActionBtn, fixSchema };
@@ -1,4 +1,4 @@
1
- import "@gant-lowcode/lowcode-plugin-base-monaco-editor/lib/style";
1
+ import "@gant-lowcode/lowcode-plugin-base-monaco-editor/lib/style.js";
2
2
  import { GravityCode } from "../../types";
3
3
  import "./index.less";
4
4
  export declare function SourcesView({ code, onCodeChange, }: {
@@ -2,7 +2,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtim
2
2
  import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE__gant_lowcode_lowcode_plugin_base_monaco_editor__ from "@gant-lowcode/lowcode-plugin-base-monaco-editor";
5
- import "@gant-lowcode/lowcode-plugin-base-monaco-editor/lib/style";
5
+ import "@gant-lowcode/lowcode-plugin-base-monaco-editor/lib/style.js";
6
6
  import * as __WEBPACK_EXTERNAL_MODULE__file_tree_index_js__ from "../file-tree/index.js";
7
7
  import "./index.css";
8
8
  const DEBOUNCE_UPDATE_INTERVAL_IN_MS = 500;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gant-lowcode/plugin-code-generator",
3
- "version": "0.0.0",
3
+ "version": "1.0.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -13,10 +13,6 @@
13
13
  "files": [
14
14
  "dist"
15
15
  ],
16
- "scripts": {
17
- "build": "rslib build",
18
- "dev": "rslib build --watch"
19
- },
20
16
  "devDependencies": {
21
17
  "@rsbuild/plugin-less": "^1.1.0",
22
18
  "@rsbuild/plugin-react": "^1.0.7",
@@ -35,7 +31,6 @@
35
31
  },
36
32
  "dependencies": {
37
33
  "@ant-design/icons": "^5.5.2",
38
- "@gant-lowcode/code-generator": "workspace:*",
39
34
  "@gant-lowcode/lowcode-engine": "^1.3.7",
40
35
  "@gant-lowcode/lowcode-plugin-base-monaco-editor": "^2.1.3",
41
36
  "@gant-lowcode/lowcode-plugin-code-editor": "^2.1.3",
@@ -48,10 +43,15 @@
48
43
  "react-virtualized-auto-sizer": "^1.0.24",
49
44
  "react-window": "^1.8.10",
50
45
  "semver": "^7.6.3",
51
- "string-natural-compare": "^3.0.1"
46
+ "string-natural-compare": "^3.0.1",
47
+ "@gant-lowcode/code-generator": "0.0.1"
52
48
  },
53
49
  "publishConfig": {
54
50
  "registry": "https://registry.npmjs.org/",
55
51
  "access": "public"
52
+ },
53
+ "scripts": {
54
+ "build": "rslib build",
55
+ "dev": "rslib build --watch"
56
56
  }
57
- }
57
+ }