@chamn/engine 0.0.22 → 0.0.24

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.
@@ -3,7 +3,7 @@ import { CNode, CRootNode } from '@chamn/model';
3
3
  import { CPluginCtx } from '../../core/pluginManager';
4
4
  import { CRightPanelItem } from '../RightPanel/view';
5
5
  export type AdvancePanelProps = {
6
- node: CNode | CRootNode;
6
+ node: CNode | CRootNode | null;
7
7
  pluginCtx: CPluginCtx;
8
8
  };
9
9
  export declare const AdvancePanel: (props: AdvancePanelProps) => JSX.Element;
@@ -3,7 +3,7 @@ import { CNode, CRootNode } from '@chamn/model';
3
3
  import { CPluginCtx } from '../../core/pluginManager';
4
4
  import { CRightPanelItem } from '../RightPanel/view';
5
5
  export type ComponentStatePanelProps = {
6
- node: CNode | CRootNode;
6
+ node: CNode | CRootNode | null;
7
7
  pluginCtx: CPluginCtx;
8
8
  };
9
9
  export declare const ComponentStatePanel: (props: ComponentStatePanelProps) => JSX.Element;
@@ -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>;
@@ -3,7 +3,7 @@ import { CNode, CRootNode } from '@chamn/model';
3
3
  import { CPluginCtx } from '../../core/pluginManager';
4
4
  import { CRightPanelItem } from '../RightPanel/view';
5
5
  export declare const PropertyPanel: (props: {
6
- node: CNode | CRootNode;
6
+ node: CNode | CRootNode | null;
7
7
  pluginCtx: CPluginCtx;
8
8
  }) => JSX.Element;
9
9
  export declare const PropertyPanelConfig: CRightPanelItem;
@@ -2,7 +2,7 @@ import { CNode, CRootNode } from '@chamn/model';
2
2
  import React from 'react';
3
3
  import { CPluginCtx } from '../../core/pluginManager';
4
4
  export type RightPanelOptions = {
5
- node: CNode | CRootNode;
5
+ node: CNode | CRootNode | null;
6
6
  pluginCtx: CPluginCtx;
7
7
  };
8
8
  export type CRightPanelItem = {
@@ -3,7 +3,7 @@ import { CNode, CRootNode } from '@chamn/model';
3
3
  import { CPluginCtx } from '../../core/pluginManager';
4
4
  import { CRightPanelItem } from '../RightPanel/view';
5
5
  export declare const VisualPanelPlus: (props: {
6
- node: CNode | CRootNode;
6
+ node: CNode | CRootNode | null;
7
7
  pluginCtx: CPluginCtx;
8
8
  }) => JSX.Element;
9
9
  export declare const VisualPanelPlusConfig: CRightPanelItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chamn/engine",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
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.24",
42
+ "@chamn/model": "^0.0.24",
43
+ "@chamn/render": "^0.0.24",
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.24",
61
+ "@chamn/demo-page": "^0.0.24",
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": "4128ec7bc08270146aa75e79579123ed3a90caa9"
88
88
  }