amis-editor 4.0.2-beta.16 → 4.1.0-beta.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { EditorManager } from '../manager';
3
- import { RegionConfig } from '../plugin';
3
+ import { RegionConfig, RendererInfo } from '../plugin';
4
4
  import { EditorStoreType } from '../store/editor';
5
5
  import { EditorNodeType } from '../store/node';
6
6
  export interface RegionWrapperProps {
@@ -13,6 +13,8 @@ export interface RegionWrapperProps {
13
13
  manager: EditorManager;
14
14
  rendererName?: string;
15
15
  regionConfig: RegionConfig;
16
+ node?: EditorNodeType;
17
+ $$editor?: RendererInfo;
16
18
  }
17
19
  /**
18
20
  * 1.DOM标记 添加 data-region、data-region-host 和 data-renderer 属性
@@ -44,8 +46,8 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
44
46
  } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
45
47
  getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
46
48
  } & {
47
- readonly info: import("../plugin").RendererInfo;
48
- setInfo(value: import("../plugin").RendererInfo): void;
49
+ readonly info: RendererInfo;
50
+ setInfo(value: RendererInfo): void;
49
51
  readonly isVitualRenderer: boolean;
50
52
  readonly clickable: boolean;
51
53
  readonly draggable: boolean;
@@ -77,7 +79,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
77
79
  label: string;
78
80
  path: string;
79
81
  isCommonConfig?: boolean | undefined;
80
- info?: import("../plugin").RendererInfo | undefined;
82
+ info?: RendererInfo | undefined;
81
83
  region?: string | undefined;
82
84
  getData?: (() => any) | undefined;
83
85
  preferTag?: string | undefined;
@@ -122,8 +124,8 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
122
124
  }, {
123
125
  getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
124
126
  } & {
125
- readonly info: import("../plugin").RendererInfo;
126
- setInfo(value: import("../plugin").RendererInfo): void;
127
+ readonly info: RendererInfo;
128
+ setInfo(value: RendererInfo): void;
127
129
  readonly isVitualRenderer: boolean;
128
130
  readonly clickable: boolean;
129
131
  readonly draggable: boolean;
@@ -155,7 +157,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
155
157
  label: string;
156
158
  path: string;
157
159
  isCommonConfig?: boolean | undefined;
158
- info?: import("../plugin").RendererInfo | undefined;
160
+ info?: RendererInfo | undefined;
159
161
  region?: string | undefined;
160
162
  getData?: (() => any) | undefined;
161
163
  preferTag?: string | undefined;
@@ -176,8 +178,9 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
176
178
  setWidthMutable(value: any): void;
177
179
  setHeightMutable(value: any): void;
178
180
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | null>;
181
+ parentNode: EditorNodeType;
179
182
  editorNode: EditorNodeType;
180
- componentWillMount(): void;
183
+ UNSAFE_componentWillMount(): void;
181
184
  componentDidMount(): void;
182
185
  componentDidUpdate(prevProps: RegionWrapperProps): void;
183
186
  componentWillUnmount(): void;
@@ -5,14 +5,14 @@ interface ThumbProps {
5
5
  theme?: string;
6
6
  env: any;
7
7
  }
8
- export declare class RendererThumb extends React.Component<ThumbProps> {
8
+ interface ThumbStates {
9
+ scale: Boolean;
10
+ }
11
+ export declare class RendererThumb extends React.Component<ThumbProps, ThumbStates> {
9
12
  ref: HTMLDivElement;
10
13
  unSensor: Function;
11
- state: {
12
- scale: boolean;
13
- };
14
+ constructor(props: ThumbProps);
14
15
  env: any;
15
- componentWillMount(): void;
16
16
  componentWillUnmount(): void;
17
17
  rootRef(ref: HTMLDivElement): void;
18
18
  syncHeight(): void;
@@ -165,7 +165,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
165
165
  setHeightMutable(value: any): void;
166
166
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | null>;
167
167
  editorNode: EditorNodeType;
168
- componentWillMount(): void;
168
+ UNSAFE_componentWillMount(): void;
169
169
  componentDidMount(): void;
170
170
  componentDidUpdate(): void;
171
171
  componentWillUnmount(): void;
@@ -27,7 +27,7 @@ export default class SearchRendererPanel extends React.Component<SearchRendererP
27
27
  lastSubRenderersTag: string;
28
28
  constructor(props: any);
29
29
  componentDidMount(): void;
30
- componentWillReceiveProps(nextProps: any): void;
30
+ UNSAFE_componentWillReceiveProps(nextProps: any): void;
31
31
  componentWillUnmount(): void;
32
32
  bindFocusEvent(): void;
33
33
  bindBlurEvent(): void;