amis-editor-core 6.2.1 → 6.3.0
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 +1 -1
- package/esm/component/HighlightBox.d.ts +2 -16
- package/esm/component/Panel/DialogList.d.ts +9 -0
- package/esm/component/Panel/Outline.d.ts +1 -1
- package/esm/component/Panel/RenderersPanel.d.ts +2 -0
- package/esm/component/RegionHLBox.d.ts +2 -4
- package/esm/component/base/SchemaForm.d.ts +24 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -2
- package/esm/manager.d.ts +2 -2
- package/esm/plugin.d.ts +1 -1
- package/esm/store/editor.d.ts +35 -16
- package/esm/util.d.ts +17 -9
- package/lib/component/Editor.d.ts +1 -1
- package/lib/component/HighlightBox.d.ts +2 -16
- package/lib/component/Panel/DialogList.d.ts +9 -0
- package/lib/component/Panel/Outline.d.ts +1 -1
- package/lib/component/Panel/RenderersPanel.d.ts +2 -0
- package/lib/component/RegionHLBox.d.ts +2 -4
- package/lib/component/base/BackTop.d.ts +1 -1
- package/lib/component/base/SchemaForm.d.ts +24 -0
- package/lib/editor.js +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -2
- package/lib/manager.d.ts +2 -2
- package/lib/plugin.d.ts +1 -1
- package/lib/store/editor.d.ts +35 -16
- package/lib/style.css +1 -1
- package/lib/util.d.ts +17 -9
- package/package.json +1 -1
|
@@ -103,7 +103,7 @@ export default class Editor extends Component<EditorProps> {
|
|
|
103
103
|
componentWillUnmount(): void;
|
|
104
104
|
handleKeyDown(e: KeyboardEvent): void;
|
|
105
105
|
handleMessage(event: any): void;
|
|
106
|
-
handleContextMenu(e: React.MouseEvent<HTMLElement>): void
|
|
106
|
+
handleContextMenu(e: React.MouseEvent<HTMLElement>): Promise<void>;
|
|
107
107
|
canUndo(): boolean;
|
|
108
108
|
canRedo(): boolean;
|
|
109
109
|
undo(): void;
|
|
@@ -13,19 +13,5 @@ export interface HighlightBoxProps {
|
|
|
13
13
|
manager: EditorManager;
|
|
14
14
|
children?: React.ReactNode;
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
handleWResizerMouseDown(e: MouseEvent): void;
|
|
19
|
-
handleHResizerMouseDown(e: MouseEvent): void;
|
|
20
|
-
handleResizerMouseDown(e: MouseEvent): void;
|
|
21
|
-
startResize(e: MouseEvent, direction?: 'horizontal' | 'vertical' | 'both'): void;
|
|
22
|
-
wResizerDom: HTMLElement;
|
|
23
|
-
wResizerRef(ref: any): void;
|
|
24
|
-
hResizerDom: HTMLElement;
|
|
25
|
-
hResizerRef(ref: any): void;
|
|
26
|
-
resizerDom: HTMLElement;
|
|
27
|
-
resizerRef(ref: any): void;
|
|
28
|
-
handleMouseEnter(): void;
|
|
29
|
-
handleDragStart(e: React.DragEvent): void;
|
|
30
|
-
render(): React.JSX.Element;
|
|
31
|
-
}
|
|
16
|
+
declare const _default: ({ className, store, id, title, children, node, toolbarContainer, onSwitch, manager }: HighlightBoxProps) => React.JSX.Element;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClassNamesFn } from 'amis-core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { EditorStoreType } from '../../store/editor';
|
|
4
|
+
export interface DialogListProps {
|
|
5
|
+
classnames: ClassNamesFn;
|
|
6
|
+
store: EditorStoreType;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: ({ classnames: cx, store }: DialogListProps) => React.JSX.Element;
|
|
9
|
+
export default _default;
|
|
@@ -19,6 +19,6 @@ export declare class OutlinePanel extends React.Component<PanelProps> {
|
|
|
19
19
|
renderItem(option: EditorNodeType, index: number, type?: 'dialog' | 'dialogView'): React.JSX.Element | null;
|
|
20
20
|
getDialogNodeLabel(option: EditorNodeType, type?: 'dialog' | 'dialogView'): string;
|
|
21
21
|
getDialogLabel(option: any, isNode: boolean, title?: 'title' | 'dialogTitle'): string;
|
|
22
|
-
renderDialogItem(option: any, index: number): React.JSX.Element
|
|
22
|
+
renderDialogItem(option: any, index: number): React.JSX.Element;
|
|
23
23
|
render(): React.JSX.Element;
|
|
24
24
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TestIdBuilder } from 'amis';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { EditorStoreType } from '../../store/editor';
|
|
3
4
|
import { EditorManager } from '../../manager';
|
|
@@ -10,6 +11,7 @@ type PanelProps = {
|
|
|
10
11
|
};
|
|
11
12
|
searchRendererType: string;
|
|
12
13
|
className?: string;
|
|
14
|
+
testIdBuilder?: TestIdBuilder;
|
|
13
15
|
};
|
|
14
16
|
type PanelStates = {
|
|
15
17
|
toggleCollapseFolderStatus: boolean;
|
|
@@ -14,7 +14,5 @@ export interface HighlightBoxProps {
|
|
|
14
14
|
manager: EditorManager;
|
|
15
15
|
isOnlyChildRegion: boolean;
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
render(): React.JSX.Element;
|
|
20
|
-
}
|
|
17
|
+
declare const _default: (props: HighlightBoxProps) => React.JSX.Element;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EditorNodeType } from '../../store/node';
|
|
2
|
+
import { EditorManager } from '../../manager';
|
|
3
|
+
export declare function SchemaFrom({ propKey, body, definitions, controls, onChange, value, env, api, popOverContainer, submitOnChange, node, manager, justify, ctx, pipeIn, pipeOut }: {
|
|
4
|
+
propKey?: string;
|
|
5
|
+
env: any;
|
|
6
|
+
body?: Array<any>;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated 用 body 代替
|
|
9
|
+
*/
|
|
10
|
+
controls?: Array<any>;
|
|
11
|
+
definitions?: any;
|
|
12
|
+
value: any;
|
|
13
|
+
api?: any;
|
|
14
|
+
onChange: (value: any, diff: any, filter: (schema: any, value: any, id: string, diff?: any) => any) => void;
|
|
15
|
+
popOverContainer?: () => HTMLElement | void;
|
|
16
|
+
submitOnChange?: boolean;
|
|
17
|
+
node?: EditorNodeType;
|
|
18
|
+
manager: EditorManager;
|
|
19
|
+
panelById?: string;
|
|
20
|
+
justify?: boolean;
|
|
21
|
+
ctx?: any;
|
|
22
|
+
pipeIn?: (value: any) => any;
|
|
23
|
+
pipeOut?: (value: any, oldValue: any) => any;
|
|
24
|
+
}): any;
|
package/esm/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import type { EditorStoreType } from './store/editor';
|
|
|
33
33
|
import { AvailableRenderersPlugin } from './plugin/AvailableRenderers';
|
|
34
34
|
import ShortcutKey from './component/base/ShortcutKey';
|
|
35
35
|
import WidthDraggableContainer from './component/base/WidthDraggableContainer';
|
|
36
|
+
import { SchemaFrom } from './component/base/SchemaForm';
|
|
36
37
|
export declare const version = "__buildVersion";
|
|
37
38
|
export default Editor;
|
|
38
|
-
export { Editor, MiniEditor, utils, mapReactElement, RendererEditor, BasicEditor, CodeEditor, VRenderer, RegionWrapper, IFramePreview as IFrameEditor, SearchPanel, EditorNodeType, EditorNodeSnapshot, EditorStoreType, ContainerWrapper, AvailableRenderersPlugin, ShortcutKey, WidthDraggableContainer };
|
|
39
|
+
export { Editor, MiniEditor, utils, mapReactElement, RendererEditor, BasicEditor, CodeEditor, VRenderer, RegionWrapper, IFramePreview as IFrameEditor, SearchPanel, EditorNodeType, EditorNodeSnapshot, EditorStoreType, ContainerWrapper, AvailableRenderersPlugin, ShortcutKey, SchemaFrom, WidthDraggableContainer };
|