@chamn/engine 0.3.1 → 0.3.3
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.
- package/dist/index.cjs +47 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2083 -2069
- package/dist/index.js.map +1 -1
- package/dist/plugins/RightPanel/type.d.ts +9 -8
- package/dist/utils/index.d.ts +1 -0
- package/package.json +7 -7
|
@@ -3,13 +3,14 @@ import { TLogicRequestAPIItem } from '@chamn/model';
|
|
|
3
3
|
export type RightPanelConfig = {
|
|
4
4
|
customPropertySetterMap?: Record<string, CSetter>;
|
|
5
5
|
requestAPINode?: {
|
|
6
|
-
customAPIInput
|
|
7
|
-
value: any;
|
|
8
|
-
onChange: (value: any) => void;
|
|
9
|
-
form: {
|
|
10
|
-
updateFields: (newValue: Partial<TLogicRequestAPIItem>) => void;
|
|
11
|
-
getFields: () => Pick<TLogicRequestAPIItem, 'apiPath' | 'body' | 'header' | 'query' | 'method' | 'responseVarName'>;
|
|
12
|
-
};
|
|
13
|
-
}) => React.ReactNode;
|
|
6
|
+
customAPIInput: TCustomAPIInput;
|
|
14
7
|
};
|
|
15
8
|
};
|
|
9
|
+
export type TCustomAPIInput = (props: {
|
|
10
|
+
value: any;
|
|
11
|
+
onChange: (value: any) => void;
|
|
12
|
+
form: {
|
|
13
|
+
updateFields: (newValue: Partial<TLogicRequestAPIItem>) => void;
|
|
14
|
+
getFields: () => Pick<TLogicRequestAPIItem, 'apiPath' | 'body' | 'header' | 'query' | 'method' | 'responseVarName'>;
|
|
15
|
+
};
|
|
16
|
+
}) => React.ReactNode;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare const waitReactUpdate: ({ time, cb, }?: {
|
|
|
9
9
|
}) => Promise<unknown>;
|
|
10
10
|
/** 确保 key 一定存在 */
|
|
11
11
|
export declare const ensureKeyExist: (obj: any, key: string, defaultValue: any) => void;
|
|
12
|
+
export declare const sageJSONParse: (jsonStr: string, errorValue: any) => any;
|
|
12
13
|
export * from './css';
|
|
13
14
|
export * from './defaultEngineConfig';
|
|
14
15
|
export * from './logger';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chamn/engine",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@ant-design/icons": "^5.4.0",
|
|
40
|
-
"@chamn/layout": "0.3.
|
|
41
|
-
"@chamn/model": "0.3.
|
|
42
|
-
"@chamn/render": "0.3.
|
|
40
|
+
"@chamn/layout": "0.3.3",
|
|
41
|
+
"@chamn/model": "0.3.3",
|
|
42
|
+
"@chamn/render": "0.3.3",
|
|
43
43
|
"@dagrejs/dagre": "^1.1.4",
|
|
44
44
|
"@dnd-kit/core": "^6.0.7",
|
|
45
45
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@babel/core": "^7.21.0",
|
|
65
|
-
"@chamn/build-script": "0.3.
|
|
66
|
-
"@chamn/demo-page": "0.3.
|
|
65
|
+
"@chamn/build-script": "0.3.3",
|
|
66
|
+
"@chamn/demo-page": "0.3.3",
|
|
67
67
|
"@chromatic-com/storybook": "^3.2.3",
|
|
68
68
|
"@storybook/addon-essentials": "^8.4.7",
|
|
69
69
|
"@storybook/addon-interactions": "^8.4.7",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"storybook": "^8.4.7"
|
|
97
97
|
},
|
|
98
98
|
"config": {},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "a305bd6e67bfa001723037a29bb0f40d8537ea4b"
|
|
100
100
|
}
|