@gant-lowcode/plugin-code-generator 1.0.7 → 1.0.9

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.
@@ -176,9 +176,9 @@ async function fixSchema(schema) {
176
176
  };
177
177
  }
178
178
  // 修正 gantd-lowcode-materials 的版本,最小为1.0.6
179
- if ('gantd-lowcode-materials' === c.package && (0, __WEBPACK_EXTERNAL_MODULE_semver_functions_compare_js__["default"])((0, __WEBPACK_EXTERNAL_MODULE_semver_functions_coerce_js__["default"])(c.version) || '', '1.0.6') <= 0) return {
179
+ if ('gantd-lowcode-materials' === c.package && (0, __WEBPACK_EXTERNAL_MODULE_semver_functions_compare_js__["default"])((0, __WEBPACK_EXTERNAL_MODULE_semver_functions_coerce_js__["default"])(c.version) || '', '1.1.0') <= 0) return {
180
180
  ...c,
181
- version: '1.0.6'
181
+ version: 'latest'
182
182
  };
183
183
  return c;
184
184
  })
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { IPublicModelPluginContext } from "@gant-lowcode/lowcode-types";
2
+ import * as CodeGenerator from "@gant-lowcode/code-generator/standalone-loader";
2
3
  export type CodeGenPluginOptions = {
3
4
  /** 是否要禁用出码的动作按钮(默认: 否) */
4
5
  disableCodeGenActionBtn?: boolean;
@@ -6,7 +7,7 @@ export type CodeGenPluginOptions = {
6
7
  declare const plugin: {
7
8
  (ctx: IPublicModelPluginContext, options?: CodeGenPluginOptions): {
8
9
  exports(): {
9
- generateCode: any;
10
+ generateCode: typeof CodeGenerator.generateCode;
10
11
  };
11
12
  init(): Promise<void>;
12
13
  destroy(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gant-lowcode/plugin-code-generator",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -44,7 +44,7 @@
44
44
  "string-natural-compare": "^3.0.1",
45
45
  "@gant-lowcode/eslint-config": "0.0.0",
46
46
  "@gant-lowcode/typescript-config": "0.0.0",
47
- "@gant-lowcode/code-generator": "0.0.5"
47
+ "@gant-lowcode/code-generator": "0.0.7"
48
48
  },
49
49
  "publishConfig": {
50
50
  "registry": "https://registry.npmjs.org/",