@chamn/engine 0.0.11 → 0.0.13
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/component/ClassNameEditor/index.d.ts +2 -2
- package/dist/component/CustomSchemaForm/components/Setters/ExpressionSetter/index.d.ts +5 -3
- package/dist/component/Workbench/index.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +36 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4922 -4830
- package/dist/index.mjs.map +1 -1
- package/dist/material/innerMaterial.d.ts +1 -1
- package/dist/plugins/Designer/index.d.ts +3 -0
- package/dist/plugins/Designer/view.d.ts +11 -4
- package/dist/style.css +1 -1
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ClassNameType } from '@chamn/model';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
export type ClassNameEditorProps = {
|
|
4
4
|
initialValue?: {
|
|
5
5
|
key: string;
|
|
@@ -13,4 +13,4 @@ export type ClassNameEditorRef = {
|
|
|
13
13
|
value: string;
|
|
14
14
|
}[]) => void;
|
|
15
15
|
};
|
|
16
|
-
export declare const ClassNameEditor:
|
|
16
|
+
export declare const ClassNameEditor: React.ForwardRefExoticComponent<ClassNameEditorProps & React.RefAttributes<ClassNameEditorRef>>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
1
|
+
import { CSetter, CSetterProps } from '../type';
|
|
2
|
+
import { ChangeEventHandler } from 'react';
|
|
3
|
+
export type ExpressionSetterProps = CSetterProps<{
|
|
4
4
|
value: {
|
|
5
5
|
type: string;
|
|
6
6
|
value: string;
|
|
7
7
|
};
|
|
8
|
+
onChange: ChangeEventHandler<HTMLTextAreaElement>;
|
|
8
9
|
}>;
|
|
10
|
+
export declare const ExpressionSetter: CSetter<ExpressionSetterProps>;
|
|
@@ -30,7 +30,7 @@ type WorkbenchStateType = {
|
|
|
30
30
|
bodyView: React.ReactNode | null;
|
|
31
31
|
rightView: React.ReactNode | null;
|
|
32
32
|
topToolBarView: React.ReactNode | null;
|
|
33
|
-
|
|
33
|
+
subTopToolBarView: React.ReactNode | null;
|
|
34
34
|
};
|
|
35
35
|
export type WorkbenchPropsType = {
|
|
36
36
|
emitter: Emitter<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export type EngineProps = {
|
|
|
20
20
|
renderJSUrl?: string;
|
|
21
21
|
};
|
|
22
22
|
export declare class Engine extends React.Component<EngineProps> {
|
|
23
|
+
static version: string;
|
|
23
24
|
currentSelectNode: CNode | CRootNode | null;
|
|
24
25
|
pluginManager: PluginManager;
|
|
25
26
|
workbenchRef: React.RefObject<Workbench>;
|
|
@@ -28,7 +29,7 @@ export declare class Engine extends React.Component<EngineProps> {
|
|
|
28
29
|
material: CMaterialType[] | undefined;
|
|
29
30
|
emitter: Emitter<any>;
|
|
30
31
|
constructor(props: EngineProps);
|
|
31
|
-
updateCurrentSelectNode(node: CNode | CRootNode): void;
|
|
32
|
+
updateCurrentSelectNode(node: CNode | CRootNode | null): void;
|
|
32
33
|
componentDidMount(): Promise<void>;
|
|
33
34
|
getActiveNode(): CNode | CRootNode | null;
|
|
34
35
|
updatePage: (page: CPageDataType) => void;
|