amis-editor-core 6.9.0-rc.2 → 6.9.0-rc.4
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/esm/component/Editor.d.ts +9 -1
- package/esm/component/ModalForm.d.ts +25 -0
- package/esm/component/Preview.d.ts +1 -0
- package/esm/index.js +2 -2
- package/esm/plugin.d.ts +2 -0
- package/esm/store/editor.d.ts +21 -36
- package/esm/util.d.ts +9 -0
- package/lib/component/Editor.d.ts +9 -1
- package/lib/component/ModalForm.d.ts +25 -0
- package/lib/component/Preview.d.ts +1 -0
- package/lib/editor.js +1 -1
- package/lib/index.js +2 -2
- package/lib/plugin.d.ts +2 -0
- package/lib/store/editor.d.ts +21 -36
- package/lib/style.css +1 -1
- package/lib/util.d.ts +9 -0
- package/package.json +1 -1
|
@@ -92,10 +92,18 @@ export interface EditorProps extends PluginEventListener {
|
|
|
92
92
|
getAvaiableContextFields?: (node: EditorNodeType) => Promise<any>;
|
|
93
93
|
readonly?: boolean;
|
|
94
94
|
}
|
|
95
|
-
export default class Editor extends Component<EditorProps
|
|
95
|
+
export default class Editor extends Component<EditorProps, {
|
|
96
|
+
mobileDimensions: {
|
|
97
|
+
width: number;
|
|
98
|
+
height: number;
|
|
99
|
+
};
|
|
100
|
+
mobileScale: number;
|
|
101
|
+
}> {
|
|
96
102
|
readonly store: EditorStoreType;
|
|
97
103
|
readonly manager: EditorManager;
|
|
98
104
|
readonly mainRef: React.RefObject<HTMLDivElement>;
|
|
105
|
+
readonly mainPreviewRef: React.RefObject<HTMLDivElement>;
|
|
106
|
+
readonly mainPreviewBodyRef: React.RefObject<any>;
|
|
99
107
|
toDispose: Array<Function>;
|
|
100
108
|
lastResult: any;
|
|
101
109
|
curCopySchemaData: any;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EditorManager } from '../manager';
|
|
3
|
+
import { EditorStoreType } from '../store/editor';
|
|
4
|
+
export interface ModalFormProps {
|
|
5
|
+
store: EditorStoreType;
|
|
6
|
+
manager: EditorManager;
|
|
7
|
+
theme?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class ModalForm extends React.Component<ModalFormProps> {
|
|
10
|
+
handleConfirmClick(): Promise<void>;
|
|
11
|
+
amisScope: any;
|
|
12
|
+
scopeRef(scoped: any): void;
|
|
13
|
+
buildSchema(): {
|
|
14
|
+
type: string;
|
|
15
|
+
wrapWithPanel: boolean;
|
|
16
|
+
mode: string;
|
|
17
|
+
wrapperComponent: string;
|
|
18
|
+
initApi: any;
|
|
19
|
+
api: any;
|
|
20
|
+
body: any[];
|
|
21
|
+
submitOnChange: boolean;
|
|
22
|
+
autoFocus: boolean;
|
|
23
|
+
};
|
|
24
|
+
render(): React.JSX.Element | null;
|
|
25
|
+
}
|