@gant-lowcode/plugin-code-generator 2.0.3 → 2.0.5

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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { CodeGenPreviewProps } from "../code-gen-preview/index";
3
2
  import "./index.less";
4
3
  export declare function CodeSandboxPreview({ code, height }: CodeGenPreviewProps): JSX.Element;
@@ -29,7 +29,7 @@ export function CodeSandboxPreview(_ref) {
29
29
  // 入口文件需要顺便引入下样式
30
30
  files["src/index.js"] = {
31
31
  isBinary: false,
32
- content: "\n // \u76EE\u524D\u9700\u8981\u5355\u72EC\u5F15\u5165\u4E0B\u6837\u5F0F\u6587\u4EF6\n import \"@alifd/next/dist/next.css\";\n import \"@alifd/pro-layout/dist/AlifdProLayout.css\";\n\n // \u5F15\u5165\u5165\u53E3\u6587\u4EF6\n import './app';\n"
32
+ content: "\n // \u76EE\u524D\u9700\u8981\u5355\u72EC\u5F15\u5165\u4E0B\u6837\u5F0F\u6587\u4EF6\n\n // \u5F15\u5165\u5165\u53E3\u6587\u4EF6\n import './app';\n"
33
33
  };
34
34
  }
35
35
  return {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CodeModules } from "../../types";
3
2
  import "./index.less";
4
3
  interface FileTreeProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "@gant-lowcode/lowcode-plugin-base-monaco-editor/lib/style.js";
3
2
  import { GravityCode } from "../../types";
4
3
  import "./index.less";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { CodeGenPreviewProps } from "../code-gen-preview/index";
3
2
  import "./index.less";
4
3
  export declare function CodeSandboxPreview({ code, height }: CodeGenPreviewProps): JSX.Element;
@@ -36,7 +36,7 @@ function CodeSandboxPreview(_ref) {
36
36
  // 入口文件需要顺便引入下样式
37
37
  files["src/index.js"] = {
38
38
  isBinary: false,
39
- content: "\n // \u76EE\u524D\u9700\u8981\u5355\u72EC\u5F15\u5165\u4E0B\u6837\u5F0F\u6587\u4EF6\n import \"@alifd/next/dist/next.css\";\n import \"@alifd/pro-layout/dist/AlifdProLayout.css\";\n\n // \u5F15\u5165\u5165\u53E3\u6587\u4EF6\n import './app';\n"
39
+ content: "\n // \u76EE\u524D\u9700\u8981\u5355\u72EC\u5F15\u5165\u4E0B\u6837\u5F0F\u6587\u4EF6\n\n // \u5F15\u5165\u5165\u53E3\u6587\u4EF6\n import './app';\n"
40
40
  };
41
41
  }
42
42
  return {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CodeModules } from "../../types";
3
2
  import "./index.less";
4
3
  interface FileTreeProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "@gant-lowcode/lowcode-plugin-base-monaco-editor/lib/style.js";
3
2
  import { GravityCode } from "../../types";
4
3
  import "./index.less";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gant-lowcode/plugin-code-generator",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "types": "es/index.d.ts",
@@ -32,8 +32,6 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@ant-design/icons": "^5.5.2",
35
- "@gant-lowcode/lowcode-plugin-base-monaco-editor": "^2.0.2",
36
- "@gant-lowcode/lowcode-plugin-code-editor": "^3.0.3",
37
35
  "@types/react": "^18",
38
36
  "@types/react-dom": "^18",
39
37
  "ahooks": "^3.8.4",
@@ -46,10 +44,12 @@
46
44
  "react-window": "^1.8.10",
47
45
  "semver": "^7.6.3",
48
46
  "string-natural-compare": "^3.0.1",
49
- "@gant-lowcode/eslint-config": "1.0.3",
50
- "@gant-lowcode/lowcode-types": "2.0.3",
51
- "@gant-lowcode/typescript-config": "1.0.3",
52
- "@gant-lowcode/code-generator": "1.0.3"
47
+ "@gant-lowcode/code-generator": "1.0.5",
48
+ "@gant-lowcode/lowcode-plugin-base-monaco-editor": "2.0.4",
49
+ "@gant-lowcode/lowcode-types": "2.0.5",
50
+ "@gant-lowcode/eslint-config": "1.0.5",
51
+ "@gant-lowcode/typescript-config": "1.0.5",
52
+ "@gant-lowcode/lowcode-plugin-code-editor": "3.0.8"
53
53
  },
54
54
  "publishConfig": {
55
55
  "registry": "https://registry.npmjs.org/",