amis-editor 4.0.2-beta.4 → 4.1.0-beta.1
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/RegionWrapper.d.ts +1 -1
- package/dist/component/RendererThumb.d.ts +1 -1
- package/dist/component/VRenderer.d.ts +1 -1
- package/dist/component/base/SearchRendererPanel.d.ts +1 -1
- package/dist/exports.min.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.min.js +1 -1
- package/dist/plugin/Collapse.d.ts +15 -6
- package/dist/plugin/CollapseGroup.d.ts +41 -0
- package/dist/plugin/DropDownButton.d.ts +1 -0
- package/dist/plugin/Form/Combo.d.ts +1 -1
- package/dist/plugin/TooltipWrapper.d.ts +30 -0
- package/dist/plugin.d.ts +3 -1
- package/dist/store/editor.d.ts +6 -2
- package/dist/style.css +1 -1
- package/dist/util.d.ts +5 -0
- package/package.json +5 -5
- package/dist/component/AvailableRenderersPanel.d.ts +0 -20
- package/dist/component/BackTop.d.ts +0 -26
- package/dist/component/CodeEditor.d.ts +0 -37
- package/dist/component/CodeEditorPanel.d.ts +0 -12
- package/dist/component/ContextMenuPanel.d.ts +0 -8
- package/dist/component/ErrorRenderer.d.ts +0 -4
- package/dist/component/InputComponentName.d.ts +0 -8
- package/dist/component/InsertSubRendererPanel.d.ts +0 -11
- package/dist/component/Outline.d.ts +0 -18
- package/dist/component/Panels.d.ts +0 -17
- package/dist/component/TargetNamePanel.d.ts +0 -7
- package/dist/plugin/Action.d.ts +0 -6
- package/dist/plugin/AvailableRenderers.d.ts +0 -8
- package/dist/plugin/BasicToolbar.d.ts +0 -11
- package/dist/plugin/Code.d.ts +0 -9
- package/dist/plugin/DataDebug.d.ts +0 -19
- package/dist/plugin/Form/Editor.d.ts +0 -39
- package/dist/plugin/Name.d.ts +0 -8
- package/dist/plugin/TableCell.d.ts +0 -8
- package/dist/plugin/Unknown.d.ts +0 -5
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { RendererProps } from 'amis/lib/factory';
|
3
|
-
interface InputCompoonentNameProps extends RendererProps {
|
4
|
-
value: any;
|
5
|
-
onChange: (value: any) => void;
|
6
|
-
}
|
7
|
-
export declare function InputCompoonentName(props: InputCompoonentNameProps): JSX.Element;
|
8
|
-
export {};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { PanelProps } from '../plugin';
|
3
|
-
export declare class InsertSubRendererPanel extends React.Component<PanelProps> {
|
4
|
-
handleLeftClick(e: React.MouseEvent): void;
|
5
|
-
handleClick(e: React.MouseEvent): void;
|
6
|
-
hadnlDBClick(e: React.MouseEvent): void;
|
7
|
-
handleInsert(): void;
|
8
|
-
handleReplace(): void;
|
9
|
-
handleCancel(): void;
|
10
|
-
render(): JSX.Element;
|
11
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { PanelProps } from '../plugin';
|
3
|
-
import { EditorNodeType } from '../store/node';
|
4
|
-
export declare class OutlinePanel extends React.Component<PanelProps> {
|
5
|
-
state: {
|
6
|
-
curSearchElemKey: string;
|
7
|
-
};
|
8
|
-
handleClick(e: React.MouseEvent<HTMLAnchorElement>): void;
|
9
|
-
handleEnter(e: React.MouseEvent): void;
|
10
|
-
handleDragStart(e: React.DragEvent): void;
|
11
|
-
handleDragOver(e: React.DragEvent): void;
|
12
|
-
handleDrop(e: React.DragEvent): void;
|
13
|
-
handleSearchElemKeyChange(searchVal: string): void;
|
14
|
-
clearSearchElemKey(): void;
|
15
|
-
renderTitleByKeyword(rendererTitle: string, curSearchTitle: string): string | JSX.Element;
|
16
|
-
renderItem(option: EditorNodeType, index: number): JSX.Element | null;
|
17
|
-
render(): JSX.Element;
|
18
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { EditorManager } from '../manager';
|
3
|
-
import { EditorStoreType } from '../store/editor';
|
4
|
-
export interface PanelsProps {
|
5
|
-
store: EditorStoreType;
|
6
|
-
manager: EditorManager;
|
7
|
-
theme?: string;
|
8
|
-
isLeftPanel?: boolean;
|
9
|
-
}
|
10
|
-
export declare class Panels extends React.Component<PanelsProps> {
|
11
|
-
isLeftPanel: boolean;
|
12
|
-
handleSelect(key: string): void;
|
13
|
-
getPopOverContainer(): HTMLElement;
|
14
|
-
resizeSensor?: () => void;
|
15
|
-
tabsRef(ref: any): void;
|
16
|
-
render(): JSX.Element;
|
17
|
-
}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { PanelProps } from '../plugin';
|
3
|
-
export declare class TargetNamePanel extends React.Component<PanelProps> {
|
4
|
-
handleClick(e: React.MouseEvent<HTMLElement>): void;
|
5
|
-
handleEnter(e: React.MouseEvent<HTMLElement>): void;
|
6
|
-
render(): JSX.Element;
|
7
|
-
}
|
package/dist/plugin/Action.d.ts
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
import { BaseEventContext, BasePlugin, BasicPanelItem, BuildPanelEventContext } from '../plugin';
|
2
|
-
export declare class ActionPlugin extends BasePlugin {
|
3
|
-
panelTitle: string;
|
4
|
-
panelBodyCreator: (context: BaseEventContext) => any[];
|
5
|
-
buildEditorPanel(context: BuildPanelEventContext, panels: Array<BasicPanelItem>): void;
|
6
|
-
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { BasePlugin, BasicPanelItem, BuildPanelEventContext } from '../plugin';
|
2
|
-
/**
|
3
|
-
* 添加源码编辑功能
|
4
|
-
*/
|
5
|
-
export declare class AvailableRenderersPlugin extends BasePlugin {
|
6
|
-
order: number;
|
7
|
-
buildEditorPanel(context: BuildPanelEventContext, panels: Array<BasicPanelItem>): void;
|
8
|
-
}
|
@@ -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
|
-
}
|
package/dist/plugin/Code.d.ts
DELETED
@@ -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
|
-
}
|
package/dist/plugin/Name.d.ts
DELETED
@@ -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
|
-
}
|
package/dist/plugin/Unknown.d.ts
DELETED
@@ -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
|
-
}
|