@chamn/engine 0.0.32 → 0.0.34
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/core/assetPackagesListManage.d.ts +7 -0
- package/dist/core/pluginManager.d.ts +6 -4
- package/dist/index.d.ts +6 -1
- package/dist/index.js +34 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3935 -3868
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/Designer/components/Canvas/index.d.ts +4 -0
- package/dist/plugins/Designer/type.d.ts +1 -0
- package/package.json +7 -7
|
@@ -33,6 +33,10 @@ export declare class Designer extends React.Component<DesignerPropsType, Designe
|
|
|
33
33
|
setView: (view: React.ReactNode) => void;
|
|
34
34
|
clearView: () => void;
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* 更新 render 中的 components ;
|
|
38
|
+
*/
|
|
39
|
+
updateRenderComponents(newComponentMap?: Record<string, any>): Promise<void>;
|
|
36
40
|
componentDidMount(): void;
|
|
37
41
|
updateAssets(assets: AssetPackage[]): void;
|
|
38
42
|
reloadRender({ assets }: {
|
|
@@ -19,6 +19,7 @@ export type DesignerExport = {
|
|
|
19
19
|
getDynamicComponentInstances: (id: string) => RenderInstance;
|
|
20
20
|
getLayoutRef: () => React.RefObject<Layout>;
|
|
21
21
|
getDesignerWindow: () => Window | null;
|
|
22
|
+
updateRenderComponents: (newComponentMap: Record<string, string>) => void;
|
|
22
23
|
};
|
|
23
24
|
export type DesignerPluginConfig = Omit<LayoutPropsType, 'selectRectViewRender' | 'hoverRectViewRender' | 'dropViewRender' | 'ghostView' | 'selectToolBarView' | 'hoverToolBarView'> & Pick<AdvanceCustom, 'selectRectViewRender' | 'hoverRectViewRender' | 'dropViewRender' | 'ghostViewRender' | 'toolbarViewRender'>;
|
|
24
25
|
export type DesignerPluginType = CPlugin<DesignerPluginConfig, DesignerExport>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chamn/engine",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
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.
|
|
42
|
-
"@chamn/model": "^0.0.
|
|
43
|
-
"@chamn/render": "^0.0.
|
|
41
|
+
"@chamn/layout": "^0.0.34",
|
|
42
|
+
"@chamn/model": "^0.0.34",
|
|
43
|
+
"@chamn/render": "^0.0.34",
|
|
44
44
|
"@dnd-kit/core": "^6.0.7",
|
|
45
45
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
46
46
|
"@dnd-kit/sortable": "^7.0.2",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@babel/core": "^7.21.0",
|
|
63
|
-
"@chamn/build-script": "^0.0.
|
|
64
|
-
"@chamn/demo-page": "^0.0.
|
|
63
|
+
"@chamn/build-script": "^0.0.34",
|
|
64
|
+
"@chamn/demo-page": "^0.0.34",
|
|
65
65
|
"@storybook/addon-docs": "^7.4.0",
|
|
66
66
|
"@storybook/addon-essentials": "^7.4.0",
|
|
67
67
|
"@storybook/addon-interactions": "^7.4.0",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"storybook": "^7.4.0"
|
|
95
95
|
},
|
|
96
96
|
"config": {},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "0d0c2421882660710b5c5a85c61f21d7e45aff69"
|
|
98
98
|
}
|