amis-editor 3.3.12-beta.1 → 4.0.1-beta.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/150a58f3318ca7541ed9.png +0 -0
- package/dist/471adb97c322b226e589.png +0 -0
- package/dist/4de5f42360bc5946c3c2.png +0 -0
- package/dist/4e9968bba3855f088fed.png +0 -0
- package/dist/7f09c38ebc687fea847a.png +0 -0
- package/dist/c94073576487510314ea.png +0 -0
- package/dist/component/AvailableRenderersPanel.d.ts +13 -1
- package/dist/component/BackTop.d.ts +26 -0
- package/dist/component/Breadcrumb.d.ts +1 -1
- package/dist/component/InputComponentName.d.ts +8 -0
- package/dist/component/Outline.d.ts +6 -0
- package/dist/component/Preview.d.ts +2 -0
- package/dist/component/RegionHLBox.d.ts +1 -8
- package/dist/dnd/default.d.ts +1 -1
- package/dist/dnd/index.d.ts +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.min.js +1 -1
- package/dist/manager.d.ts +14 -9
- package/dist/plugin/BasicToolbar.d.ts +1 -1
- package/dist/plugin/Date.d.ts +1 -0
- package/dist/plugin/Datetime.d.ts +3 -0
- package/dist/plugin/Form/FieldSet.d.ts +1 -0
- package/dist/plugin/Form/Group.d.ts +1 -0
- package/dist/plugin/Form/Item.d.ts +1 -1
- package/dist/plugin/Grid.d.ts +17 -20
- package/dist/plugin/HBox.d.ts +1 -0
- package/dist/plugin/Log.d.ts +1 -0
- package/dist/plugin/Plain.d.ts +1 -0
- package/dist/plugin/Reset.d.ts +1 -0
- package/dist/plugin/Steps.d.ts +1 -7
- package/dist/plugin/Submit.d.ts +1 -0
- package/dist/plugin/Time.d.ts +3 -0
- package/dist/plugin/Wrapper.d.ts +1 -0
- package/dist/plugin.d.ts +18 -0
- package/dist/store/editor.d.ts +5 -1
- package/dist/style.css +1 -1
- package/package.json +5 -4
- package/publish-local.sh +37 -0
- package/static/Code-hover.png +0 -0
- package/static/Code.png +0 -0
- package/static/Outline-hover.png +0 -0
- package/static/Outline.png +0 -0
- package/static/Renderers-hover.png +0 -0
- package/static/Renderers.png +0 -0
- package/dist/plugin/Form/Color.d.ts +0 -39
- package/dist/plugin/Form/Reset.d.ts +0 -7
- package/dist/plugin/Form/Submit.d.ts +0 -6
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,8 +1,20 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { PanelProps } from '../plugin';
|
3
|
-
|
3
|
+
declare type PanelStates = {
|
4
|
+
toggleCollapseFolderStatus: boolean;
|
5
|
+
};
|
6
|
+
export declare class AvailableRenderersPanel extends React.Component<PanelProps, PanelStates> {
|
7
|
+
state: {
|
8
|
+
toggleCollapseFolderStatus: boolean;
|
9
|
+
};
|
10
|
+
curCollapseFolded: {
|
11
|
+
[propName: string]: boolean;
|
12
|
+
};
|
4
13
|
handleRegionFilterClick(e: React.MouseEvent): void;
|
5
14
|
handleDragStart(e: React.DragEvent): void;
|
15
|
+
handleClick(e: React.MouseEvent): void;
|
16
|
+
changeCollapseFoldStatus(tagKey: string, event: any): void;
|
6
17
|
renderThumb(schema: any): JSX.Element;
|
7
18
|
render(): JSX.Element;
|
8
19
|
}
|
20
|
+
export {};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export interface BackTopProps {
|
3
|
+
visibilityHeight?: number;
|
4
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
5
|
+
target: () => HTMLElement | Window | Document;
|
6
|
+
children?: React.ReactNode;
|
7
|
+
className?: string;
|
8
|
+
visible?: boolean;
|
9
|
+
}
|
10
|
+
export interface BackTopStates {
|
11
|
+
visible: boolean;
|
12
|
+
}
|
13
|
+
export default class BackTop extends React.Component<BackTopProps, BackTopStates> {
|
14
|
+
ref: React.RefObject<HTMLDivElement>;
|
15
|
+
scrollElem: any;
|
16
|
+
constructor(props: any);
|
17
|
+
componentDidMount(): void;
|
18
|
+
componentWillUnmount(): void;
|
19
|
+
getDefaultTarget(): (Window & typeof globalThis) | Document;
|
20
|
+
handleScroll(e: React.UIEvent<HTMLElement> | {
|
21
|
+
target: any;
|
22
|
+
}): void;
|
23
|
+
bindScrollEvent(): void;
|
24
|
+
scrollToTop(e: React.MouseEvent<HTMLDivElement>): void;
|
25
|
+
render(): JSX.Element;
|
26
|
+
}
|
@@ -8,5 +8,5 @@ export interface BreadcrumbProps {
|
|
8
8
|
export default class Breadcrumb extends React.Component<BreadcrumbProps> {
|
9
9
|
handleClick(e: React.MouseEvent<HTMLAnchorElement>): void;
|
10
10
|
handleMouseEnter(e: React.MouseEvent<HTMLAnchorElement>): void;
|
11
|
-
render(): JSX.Element;
|
11
|
+
render(): JSX.Element | null;
|
12
12
|
}
|
@@ -0,0 +1,8 @@
|
|
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 {};
|
@@ -2,11 +2,17 @@ import React from 'react';
|
|
2
2
|
import { PanelProps } from '../plugin';
|
3
3
|
import { EditorNodeType } from '../store/node';
|
4
4
|
export declare class OutlinePanel extends React.Component<PanelProps> {
|
5
|
+
state: {
|
6
|
+
curSearchElemKey: string;
|
7
|
+
};
|
5
8
|
handleClick(e: React.MouseEvent<HTMLAnchorElement>): void;
|
6
9
|
handleEnter(e: React.MouseEvent): void;
|
7
10
|
handleDragStart(e: React.DragEvent): void;
|
8
11
|
handleDragOver(e: React.DragEvent): void;
|
9
12
|
handleDrop(e: React.DragEvent): void;
|
13
|
+
handleSearchElemKeyChange(searchVal: string): void;
|
14
|
+
clearSearchElemKey(): void;
|
15
|
+
renderTitleByKeyword(rendererTitle: string, curSearchTitle: string): string | JSX.Element;
|
10
16
|
renderItem(option: EditorNodeType, index: number): JSX.Element | null;
|
11
17
|
render(): JSX.Element;
|
12
18
|
}
|
@@ -20,6 +20,7 @@ export interface PreviewState {
|
|
20
20
|
ready?: boolean;
|
21
21
|
}
|
22
22
|
export default class Preview extends Component<PreviewProps> {
|
23
|
+
currentDom: HTMLElement;
|
23
24
|
env: RenderOptions;
|
24
25
|
doingSelection: boolean;
|
25
26
|
componentDidMount(): void;
|
@@ -47,6 +48,7 @@ export default class Preview extends Component<PreviewProps> {
|
|
47
48
|
handleDragLeave(e: React.DragEvent): void;
|
48
49
|
handleDragOver(e: React.DragEvent): void;
|
49
50
|
handleDrop(e: React.DragEvent): void;
|
51
|
+
getCurrentTarget(): HTMLDivElement;
|
50
52
|
rendererResolver(path: string, schema: Schema, props: any): RendererConfig;
|
51
53
|
render(): JSX.Element;
|
52
54
|
}
|
@@ -12,16 +12,9 @@ export interface HighlightBoxProps {
|
|
12
12
|
title: string;
|
13
13
|
preferTag?: string;
|
14
14
|
manager: EditorManager;
|
15
|
+
isOnlyChildRegion: boolean;
|
15
16
|
}
|
16
17
|
export default class RegionHighlightBox extends React.Component<HighlightBoxProps> {
|
17
|
-
addBtn: HTMLElement;
|
18
|
-
constructor(props: HighlightBoxProps);
|
19
|
-
componentDidMount(): void;
|
20
|
-
componentDidUpdate(): void;
|
21
|
-
componentWillUnmount(): void;
|
22
|
-
attachAddBtn(): void;
|
23
18
|
handleClick(): void;
|
24
|
-
handleMouseEnter(): void;
|
25
|
-
handleMouseLeave(): void;
|
26
19
|
render(): JSX.Element;
|
27
20
|
}
|
package/dist/dnd/default.d.ts
CHANGED
@@ -4,7 +4,7 @@ import { DNDModeInterface } from './interface';
|
|
4
4
|
export declare class DefaultDNDMode implements DNDModeInterface {
|
5
5
|
readonly dnd: EditorDNDManager;
|
6
6
|
readonly region: EditorNodeType;
|
7
|
-
readonly
|
7
|
+
readonly dndContainer: HTMLElement;
|
8
8
|
dropBeforeId?: string;
|
9
9
|
constructor(dnd: EditorDNDManager, region: EditorNodeType);
|
10
10
|
/**
|
package/dist/dnd/index.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
@@ -52,12 +52,10 @@ import './plugin/Form/Radios';
|
|
52
52
|
import './plugin/Form/InputRange';
|
53
53
|
import './plugin/Form/InputRating';
|
54
54
|
import './plugin/Form/InputRepeat';
|
55
|
-
import './plugin/Form/Reset';
|
56
55
|
import './plugin/Form/InputRichText';
|
57
56
|
import './plugin/Form/Select';
|
58
57
|
import './plugin/Form/Static';
|
59
58
|
import './plugin/Form/InputSubForm';
|
60
|
-
import './plugin/Form/Submit';
|
61
59
|
import './plugin/Form/Switch';
|
62
60
|
import './plugin/Form/InputTable';
|
63
61
|
import './plugin/Form/InputTag';
|
@@ -138,7 +136,7 @@ import './plugin/WebComponent';
|
|
138
136
|
import './plugin/DataDebug';
|
139
137
|
import * as utils from './util';
|
140
138
|
import { getSchemaTpl, defaultValue, setSchemaTpl } from './component/schemaTpl';
|
141
|
-
import { registerEditorPlugin } from './manager';
|
139
|
+
import { registerEditorPlugin, unRegisterEditorPlugin } from './manager';
|
142
140
|
import { BasePlugin } from './plugin';
|
143
141
|
import { BasicEditor, RendererEditor } from './compat';
|
144
142
|
import MiniEditor from './component/MiniEditor';
|
@@ -151,4 +149,4 @@ import { VRenderer } from './component/VRenderer';
|
|
151
149
|
import { RegionWrapper } from './component/RegionWrapper';
|
152
150
|
import { GridPlugin } from './plugin/Grid';
|
153
151
|
import { mapReactElement } from './component/factory';
|
154
|
-
export { Editor, MiniEditor, utils, BasePlugin, getSchemaTpl, setSchemaTpl, defaultValue, registerEditorPlugin, mapReactElement, RendererEditor, BasicEditor, CodeEditor, VRenderer, RegionWrapper, mountInIframe, IFramePreview as IFrameEditor, AvailableRenderersPlugin, BasicToolbarPlugin, GridPlugin };
|
152
|
+
export { Editor, MiniEditor, utils, BasePlugin, getSchemaTpl, setSchemaTpl, defaultValue, registerEditorPlugin, unRegisterEditorPlugin, mapReactElement, RendererEditor, BasicEditor, CodeEditor, VRenderer, RegionWrapper, mountInIframe, IFramePreview as IFrameEditor, AvailableRenderersPlugin, BasicToolbarPlugin, GridPlugin };
|