@byteluck-fe/model-driven-engine 2.1.0-sourcemap.9 → 2.2.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.
@@ -5,7 +5,6 @@ export interface RuntimeProps {
5
5
  schema: SchemaBaseType | SchemaBaseType[];
6
6
  beforeCreateInstance?: BeforeCreateInstance;
7
7
  }
8
- export type InstanceMap = Record<string, ControlRuntimeInstance<ControlsKeys>[]>;
9
8
  export declare class Runtime extends RegisterControls<'Runtime'> {
10
9
  private _schema;
11
10
  private _instance;
@@ -16,7 +15,7 @@ export declare class Runtime extends RegisterControls<'Runtime'> {
16
15
  get schema(): SchemaBaseType | SchemaBaseType[];
17
16
  get instance(): ControlRuntimeInstance<ControlsKeys>[];
18
17
  get flatInstances(): ControlRuntimeInstance<ControlsKeys>[];
19
- get instanceMap(): InstanceMap;
18
+ get instanceMap(): Record<string, ControlRuntimeInstance<ControlsKeys>[]>;
20
19
  get rules(): Record<string, RuleItem>;
21
20
  get antdRules(): Record<string, RuleItem>;
22
21
  }
@@ -1,5 +1,4 @@
1
1
  import { RuntimeControl, RuntimeFormControl, ControlRuntimeInstance } from '@byteluck-fe/model-driven-core';
2
- import { InstanceMap } from './Runtime';
3
2
  export type ArrayApi = 'splice' | 'push' | 'shift' | 'pop' | 'unshift' | 'reverse';
4
3
  /**
5
4
  * @param state 当前正在操作的state数据
@@ -26,5 +25,5 @@ export declare function proxyState<T extends object>(state: T, callback: Callbac
26
25
  * @param flatInstance 拍平的instance数组
27
26
  * @param key 操作的数据在state的key - 可以是深层次的 subtable.0.input等
28
27
  * */
29
- export declare function findItem(flatInstance: RuntimeControl[], key: string, instanceMap: InstanceMap): undefined | RuntimeFormControl | ControlRuntimeInstance<'subtable'>;
28
+ export declare function findItem(flatInstance: RuntimeControl[], key: string): undefined | RuntimeFormControl | ControlRuntimeInstance<'subtable'>;
30
29
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-engine",
3
- "version": "2.1.0-sourcemap.9",
3
+ "version": "2.2.0",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -14,6 +14,10 @@
14
14
  "dist",
15
15
  "types"
16
16
  ],
17
+ "publishConfig": {
18
+ "registry": "https://registry.npmjs.org/",
19
+ "access": "public"
20
+ },
17
21
  "scripts": {
18
22
  "compiler": "tsc --emitDeclarationOnly && swc src -d dist/esm -C jsc.target=es5 -D",
19
23
  "cleanup": "rimraf ./dist",
@@ -22,12 +26,12 @@
22
26
  "postpublish": "node ../../scripts/postpublish.js"
23
27
  },
24
28
  "dependencies": {
25
- "@byteluck-fe/model-driven-core": "2.1.0-sourcemap.4",
26
- "@byteluck-fe/model-driven-shared": "2.0.9",
29
+ "@byteluck-fe/model-driven-core": "2.2.0",
30
+ "@byteluck-fe/model-driven-shared": "2.2.0",
27
31
  "mathjs": "^11.3.3"
28
32
  },
29
33
  "devDependencies": {
30
34
  "@types/node": "~18.0.3"
31
35
  },
32
- "gitHead": "c26150ff9b26f3379d23188ce52663907667172b"
36
+ "gitHead": "b74d4bd8e7b49ee0781de63b9919196562290f86"
33
37
  }