amis-editor 4.0.2-beta.12 → 4.0.2-beta.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +0,0 @@
1
- import { BasePlugin, BaseEventContext, BasicToolbarItem, ContextMenuItem, ContextMenuEventContext, BasicPanelItem, BuildPanelEventContext, PluginEvent, InsertEventContext } from '../plugin';
2
- /**
3
- * 用来给当前选中的元素添加一些基本的工具栏按钮。
4
- */
5
- export declare class BasicToolbarPlugin extends BasePlugin {
6
- order: number;
7
- buildEditorToolbar({ id, schema }: BaseEventContext, toolbars: Array<BasicToolbarItem>): void;
8
- buildEditorContextMenu({ id, schema, region, selections }: ContextMenuEventContext, menus: Array<ContextMenuItem>): void;
9
- buildEditorPanel(context: BuildPanelEventContext, panels: Array<BasicPanelItem>): void;
10
- afterInsert(event: PluginEvent<InsertEventContext>): void;
11
- }
@@ -1,9 +0,0 @@
1
- import { BasePlugin, BasicPanelItem, RendererJSONSchemaResolveEventContext, BuildPanelEventContext } from '../plugin';
2
- /**
3
- * 添加源码编辑功能
4
- */
5
- export declare class CodePlugin extends BasePlugin {
6
- order: number;
7
- buildJSONSchema({ info }: RendererJSONSchemaResolveEventContext): string | undefined;
8
- buildEditorPanel({ info, selections }: BuildPanelEventContext, panels: Array<BasicPanelItem>): void;
9
- }
@@ -1,19 +0,0 @@
1
- import { BaseEventContext, BasePlugin, BasicToolbarItem } from '../plugin';
2
- /**
3
- * 添加调试功能
4
- */
5
- export declare class DataDebugPlugin extends BasePlugin {
6
- buildEditorToolbar({ id, schema, node }: BaseEventContext, toolbars: Array<BasicToolbarItem>): void;
7
- dataViewer: {
8
- type: string;
9
- name: string;
10
- asFormItem: boolean;
11
- className: string;
12
- component: ({ value, onChange, readOnly }: {
13
- value: any;
14
- onChange: (value: any) => void;
15
- readOnly?: boolean | undefined;
16
- }) => JSX.Element;
17
- };
18
- openDebugForm(data: any, callback?: (values: any) => void): Promise<void>;
19
- }
@@ -1,39 +0,0 @@
1
- import { BasePlugin } from '../../plugin';
2
- export declare class EditorControlPlugin extends BasePlugin {
3
- rendererName: string;
4
- $schema: string;
5
- name: string;
6
- icon: string;
7
- description: string;
8
- docLink: string;
9
- tags: string[];
10
- scaffold: {
11
- type: string;
12
- label: string;
13
- name: string;
14
- };
15
- previewSchema: any;
16
- panelTitle: string;
17
- panelBody: ({
18
- label: string;
19
- name: string;
20
- type: string;
21
- value: string;
22
- searchable: boolean;
23
- options: string[];
24
- size?: undefined;
25
- pipeIn?: undefined;
26
- } | {
27
- name: string;
28
- type: string;
29
- size: string;
30
- pipeIn: (value: any) => any;
31
- label: string;
32
- options: {
33
- label: string;
34
- value: string;
35
- }[];
36
- value?: undefined;
37
- searchable?: undefined;
38
- })[];
39
- }
@@ -1,8 +0,0 @@
1
- import { BasePlugin, BasicPanelItem, BuildPanelEventContext } from '../plugin';
2
- /**
3
- * 添加名字面板,方便根据组件名字定位节点
4
- */
5
- export declare class NamePlugin extends BasePlugin {
6
- order: number;
7
- buildEditorPanel({ info, selections }: BuildPanelEventContext, panels: Array<BasicPanelItem>): void;
8
- }
@@ -1,8 +0,0 @@
1
- import { BasePlugin, BasicRendererInfo, BaseEventContext, RendererInfoResolveEventContext, ReplaceEventContext, PluginEvent } from '../plugin';
2
- export declare class TableCellPlugin extends BasePlugin {
3
- panelTitle: string;
4
- panelIcon: string;
5
- panelBodyCreator: (context: BaseEventContext) => any[];
6
- getRendererInfo({ renderer, schema }: RendererInfoResolveEventContext): BasicRendererInfo | void;
7
- beforeReplace(event: PluginEvent<ReplaceEventContext>): void;
8
- }
@@ -1,5 +0,0 @@
1
- import { BasePlugin, BasicRendererInfo, RendererInfoResolveEventContext } from '../plugin';
2
- export declare class UnkownRendererPlugin extends BasePlugin {
3
- order: number;
4
- getRendererInfo({ renderer, schema, path }: RendererInfoResolveEventContext): BasicRendererInfo | void;
5
- }