@chamn/engine 0.0.22 → 0.0.23

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.
@@ -6,8 +6,13 @@ import { CPluginCtx } from '../../../../core/pluginManager';
6
6
  import { AdvanceCustomHook } from './advanceCustomHook';
7
7
  import { DesignerPluginConfig } from '../../type';
8
8
  import { AdvanceCustomFuncParam } from '@chamn/model';
9
+ export type DesignerCtx = CPluginCtx<DesignerPluginConfig>;
9
10
  export type DesignerPropsType = {
10
- pluginCtx: CPluginCtx<DesignerPluginConfig>;
11
+ pluginCtx: DesignerCtx;
12
+ };
13
+ export type WrapComponentOptionsType = {
14
+ ctx: DesignerCtx;
15
+ node: CNode | CRootNode;
11
16
  };
12
17
  type DesignerStateType = {
13
18
  pageModel: CPage;
@@ -7,6 +7,6 @@ export type HistoryExport = {
7
7
  canGoPreStep: () => boolean;
8
8
  canGoNextStep: () => boolean;
9
9
  };
10
- export type DesignerPluginConfig = any;
11
- export type HistoryPluginType = CPlugin<DesignerPluginConfig, HistoryExport>;
12
- export type HistoryPluginInstance = PluginInstance<DesignerPluginConfig, HistoryExport>;
10
+ export type HistoryPluginConfig = any;
11
+ export type HistoryPluginType = CPlugin<HistoryPluginConfig, HistoryExport>;
12
+ export type HistoryPluginInstance = PluginInstance<HistoryPluginConfig, HistoryExport>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chamn/engine",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -38,9 +38,9 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@ant-design/icons": "^4.8.0",
41
- "@chamn/layout": "^0.0.22",
42
- "@chamn/model": "^0.0.22",
43
- "@chamn/render": "^0.0.22",
41
+ "@chamn/layout": "^0.0.23",
42
+ "@chamn/model": "^0.0.23",
43
+ "@chamn/render": "^0.0.23",
44
44
  "@dnd-kit/core": "^6.0.7",
45
45
  "@dnd-kit/modifiers": "^6.0.1",
46
46
  "@dnd-kit/sortable": "^7.0.2",
@@ -57,8 +57,8 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@babel/core": "^7.21.0",
60
- "@chamn/build-script": "^0.0.22",
61
- "@chamn/demo-page": "^0.0.22",
60
+ "@chamn/build-script": "^0.0.23",
61
+ "@chamn/demo-page": "^0.0.23",
62
62
  "@storybook/addon-actions": "^6.5.16",
63
63
  "@storybook/addon-essentials": "^6.5.16",
64
64
  "@storybook/addon-interactions": "^6.5.16",
@@ -84,5 +84,5 @@
84
84
  "sass": "^1.54.0"
85
85
  },
86
86
  "config": {},
87
- "gitHead": "55e153288dbe586a5f36bdd0b858d923fb0d9b2e"
87
+ "gitHead": "499694173c90eaff1d7626180e59b9c3a57371db"
88
88
  }