@chamn/render 0.7.0 → 0.8.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.
@@ -0,0 +1,4 @@
1
+ export declare const generateObjVarProxy: (varName: string, options?: {
2
+ keyListVar: string;
3
+ getReadValCode: string;
4
+ }) => string;
@@ -5,7 +5,14 @@ export declare const isClass: (val: any) => boolean;
5
5
  export declare function shouldConstruct(Component: any): boolean;
6
6
  export declare function canAcceptsRef(Comp: any): any;
7
7
  export declare function compWrapper(Comp: any): any;
8
- export declare const runExpression: (expStr: string, context: any) => any;
8
+ export declare const runExpression: (expStr: string, options: {
9
+ nodeContext: ContextType;
10
+ storeManager: StoreManager;
11
+ /** 最近一个 API 的返回响应 */
12
+ $$response?: any;
13
+ actionVariableSpace?: Record<any, any>;
14
+ nodeModel: CNode;
15
+ }) => any;
9
16
  /** 后续考虑是否需要做沙箱 */
10
17
  export declare const convertCodeStringToFunction: (params: {
11
18
  funcBody: string;
@@ -15,6 +22,7 @@ export declare const convertCodeStringToFunction: (params: {
15
22
  /** 最近一个 API 的返回响应 */
16
23
  $$response?: any;
17
24
  actionVariableSpace?: Record<any, any>;
25
+ nodeModel: CNode;
18
26
  }) => (...args: any[]) => any;
19
27
  /**
20
28
  *
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "dist"
6
6
  ],
7
7
  "type": "module",
8
- "version": "0.7.0",
8
+ "version": "0.8.0",
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
@@ -26,7 +26,7 @@
26
26
  "react-dom": ">=16.9.0"
27
27
  },
28
28
  "dependencies": {
29
- "@chamn/model": "0.7.0",
29
+ "@chamn/model": "0.8.0",
30
30
  "html-tag-names": "^2.0.1",
31
31
  "loadjs": "4.3.0-rc1",
32
32
  "lodash-es": "^4.17.21",
@@ -34,8 +34,8 @@
34
34
  "zustand": "^4.3.8"
35
35
  },
36
36
  "devDependencies": {
37
- "@chamn/build-script": "0.7.0",
38
- "@chamn/demo-page": "0.7.0",
37
+ "@chamn/build-script": "0.8.0",
38
+ "@chamn/demo-page": "0.8.0",
39
39
  "@types/loadjs": "^4.0.1",
40
40
  "@types/lodash-es": "^4.17.6",
41
41
  "@types/node": "~18.15.9",
@@ -50,5 +50,5 @@
50
50
  "vite-plugin-dts": "^2.1.0"
51
51
  },
52
52
  "config": {},
53
- "gitHead": "5c2034c0ae973909cbea03767f5c770e865ed30e"
53
+ "gitHead": "854ae37d5f2725c83b1065a1633c92d4df331523"
54
54
  }