amis-editor-core 5.3.0 → 5.4.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/esm/builder/DSBuilder.d.ts +1 -0
- package/esm/component/Breadcrumb.d.ts +1 -1
- package/esm/component/ClassNameControl.d.ts +4 -4
- package/esm/component/ContainerWrapper.d.ts +1 -1
- package/esm/component/Editor.d.ts +9 -3
- package/esm/component/HighlightBox.d.ts +1 -1
- package/esm/component/IFrameBridge.d.ts +1 -1
- package/esm/component/IFramePreview.d.ts +1 -1
- package/esm/component/MiniEditor.d.ts +2 -1
- package/esm/component/Panel/AMisCodeEditor.d.ts +1 -1
- package/esm/component/Panel/AvailableRenderersPanel.d.ts +1 -1
- package/esm/component/Panel/CodeEditorPanel.d.ts +1 -1
- package/esm/component/Panel/ContextMenuPanel.d.ts +1 -1
- package/esm/component/Panel/DrawerPanel.d.ts +1 -1
- package/esm/component/Panel/DrawerRendererPanel.d.ts +1 -1
- package/esm/component/Panel/InsertSubRendererPanel.d.ts +1 -1
- package/esm/component/Panel/LeftPanels.d.ts +1 -1
- package/esm/component/Panel/Outline.d.ts +3 -3
- package/esm/component/Panel/RenderersPanel.d.ts +1 -1
- package/esm/component/Panel/RightPanels.d.ts +1 -1
- package/esm/component/Panel/TargetNamePanel.d.ts +1 -1
- package/esm/component/PopOverForm.d.ts +1 -1
- package/esm/component/Preview.d.ts +1 -1
- package/esm/component/RegionHLBox.d.ts +1 -1
- package/esm/component/RegionWrapper.d.ts +277 -1
- package/esm/component/RendererThumb.d.ts +1 -1
- package/esm/component/ScaffoldModal.d.ts +3 -11
- package/esm/component/SubEditor.d.ts +2 -2
- package/esm/component/VRenderer.d.ts +303 -7
- package/esm/component/base/BackTop.d.ts +1 -1
- package/esm/component/base/ErrorRenderer.d.ts +1 -1
- package/esm/component/base/SearchCustomRendererPanel.d.ts +1 -1
- package/esm/component/base/SearchPanel.d.ts +2 -2
- package/esm/component/base/SearchRendererPanel.d.ts +1 -1
- package/esm/component/base/ShortcutKey.d.ts +1 -1
- package/esm/component/base/WidthDraggableBtn.d.ts +1 -1
- package/esm/component/factory.d.ts +2 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +2 -2
- package/esm/manager.d.ts +310 -4
- package/esm/plugin/DataDebug.d.ts +2 -1
- package/esm/plugin.d.ts +3 -0
- package/esm/store/editor.d.ts +1554 -306
- package/esm/store/node.d.ts +347 -1
- package/esm/util.d.ts +1 -1
- package/lib/builder/DSBuilder.d.ts +1 -0
- package/lib/component/Breadcrumb.d.ts +1 -1
- package/lib/component/ClassNameControl.d.ts +4 -4
- package/lib/component/ContainerWrapper.d.ts +1 -1
- package/lib/component/Editor.d.ts +9 -3
- package/lib/component/HighlightBox.d.ts +1 -1
- package/lib/component/IFrameBridge.d.ts +1 -1
- package/lib/component/IFramePreview.d.ts +1 -1
- package/lib/component/MiniEditor.d.ts +2 -1
- package/lib/component/Panel/AMisCodeEditor.d.ts +1 -1
- package/lib/component/Panel/AvailableRenderersPanel.d.ts +1 -1
- package/lib/component/Panel/CodeEditorPanel.d.ts +1 -1
- package/lib/component/Panel/ContextMenuPanel.d.ts +1 -1
- package/lib/component/Panel/DrawerPanel.d.ts +1 -1
- package/lib/component/Panel/DrawerRendererPanel.d.ts +1 -1
- package/lib/component/Panel/InsertSubRendererPanel.d.ts +1 -1
- package/lib/component/Panel/LeftPanels.d.ts +1 -1
- package/lib/component/Panel/Outline.d.ts +3 -3
- package/lib/component/Panel/RenderersPanel.d.ts +1 -1
- package/lib/component/Panel/RightPanels.d.ts +1 -1
- package/lib/component/Panel/TargetNamePanel.d.ts +1 -1
- package/lib/component/PopOverForm.d.ts +1 -1
- package/lib/component/Preview.d.ts +1 -1
- package/lib/component/RegionHLBox.d.ts +1 -1
- package/lib/component/RegionWrapper.d.ts +277 -1
- package/lib/component/RendererThumb.d.ts +1 -1
- package/lib/component/ScaffoldModal.d.ts +3 -11
- package/lib/component/SubEditor.d.ts +2 -2
- package/lib/component/VRenderer.d.ts +303 -7
- package/lib/component/base/BackTop.d.ts +1 -1
- package/lib/component/base/ErrorRenderer.d.ts +1 -1
- package/lib/component/base/SearchCustomRendererPanel.d.ts +1 -1
- package/lib/component/base/SearchPanel.d.ts +2 -2
- package/lib/component/base/SearchRendererPanel.d.ts +1 -1
- package/lib/component/base/ShortcutKey.d.ts +1 -1
- package/lib/component/base/WidthDraggableBtn.d.ts +1 -1
- package/lib/component/factory.d.ts +2 -1
- package/lib/editor.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/manager.d.ts +310 -4
- package/lib/plugin/DataDebug.d.ts +2 -1
- package/lib/plugin.d.ts +3 -0
- package/lib/store/editor.d.ts +1554 -306
- package/lib/store/node.d.ts +347 -1
- package/lib/style.css +1 -1
- package/lib/util.d.ts +1 -1
- package/package.json +1 -1
package/lib/store/node.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @file 每个渲染器的节点信息存在这了。
|
|
3
3
|
* Outline 就是靠这个生成的。
|
|
4
4
|
*/
|
|
5
|
-
import { IAnyModelType, Instance } from 'mobx-state-tree';
|
|
5
|
+
import { IAnyModelType, Instance, SnapshotIn } from 'mobx-state-tree';
|
|
6
6
|
import { RegionConfig, RendererInfo } from '../plugin';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
@@ -64,6 +64,121 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
64
64
|
readonly isSecondFactor: boolean;
|
|
65
65
|
} & {
|
|
66
66
|
getClosestParentByType: (type: string) => EditorNodeType | void;
|
|
67
|
+
getParentNodeByCB: (callback: (node: EditorNodeSnapshot) => Boolean) => {
|
|
68
|
+
parentId: string;
|
|
69
|
+
parentRegion: string;
|
|
70
|
+
isCommonConfig: boolean;
|
|
71
|
+
id: string;
|
|
72
|
+
type: string;
|
|
73
|
+
label: string;
|
|
74
|
+
regionInfo: (RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>>) | undefined;
|
|
75
|
+
path: string;
|
|
76
|
+
schemaPath: string;
|
|
77
|
+
region: string;
|
|
78
|
+
preferTag: string;
|
|
79
|
+
state: any;
|
|
80
|
+
widthMutable: boolean;
|
|
81
|
+
heightMutable: boolean;
|
|
82
|
+
memberIndex: number;
|
|
83
|
+
folded: boolean;
|
|
84
|
+
patched: boolean;
|
|
85
|
+
x: number;
|
|
86
|
+
y: number;
|
|
87
|
+
w: number;
|
|
88
|
+
h: number;
|
|
89
|
+
children: import("mobx-state-tree").IMSTArray<IAnyModelType> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>>;
|
|
90
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
91
|
+
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
92
|
+
} & {
|
|
93
|
+
readonly info: RendererInfo;
|
|
94
|
+
setInfo(value: RendererInfo): void;
|
|
95
|
+
readonly rendererConfig: any;
|
|
96
|
+
setRendererConfig(value: RendererConfig): void;
|
|
97
|
+
readonly isVitualRenderer: boolean;
|
|
98
|
+
readonly clickable: boolean;
|
|
99
|
+
readonly draggable: boolean;
|
|
100
|
+
readonly moveable: boolean;
|
|
101
|
+
readonly canMoveUp: boolean;
|
|
102
|
+
readonly canMoveDown: boolean;
|
|
103
|
+
readonly removable: boolean;
|
|
104
|
+
readonly duplicatable: boolean;
|
|
105
|
+
readonly replaceable: boolean;
|
|
106
|
+
memberImmutable(region: string): boolean;
|
|
107
|
+
readonly isRegion: boolean;
|
|
108
|
+
readonly childRegions: any[];
|
|
109
|
+
readonly uniqueChildren: any[];
|
|
110
|
+
readonly sameIdChild: any;
|
|
111
|
+
readonly singleRegion: boolean;
|
|
112
|
+
isExists(id: string): boolean;
|
|
113
|
+
getChildById(id: string): any;
|
|
114
|
+
readonly parent: any;
|
|
115
|
+
readonly ancestorField: any;
|
|
116
|
+
readonly host: any;
|
|
117
|
+
readonly firstChild: any;
|
|
118
|
+
readonly index: any;
|
|
119
|
+
readonly prevSibling: any;
|
|
120
|
+
readonly nextSibling: any;
|
|
121
|
+
readonly schema: any;
|
|
122
|
+
readonly schemaParent: any;
|
|
123
|
+
readonly isSecondFactor: boolean;
|
|
124
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
125
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
126
|
+
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
127
|
+
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
128
|
+
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
129
|
+
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
130
|
+
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
131
|
+
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>;
|
|
132
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
133
|
+
schemaPath: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
134
|
+
region: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
135
|
+
preferTag: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
136
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
137
|
+
widthMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
138
|
+
heightMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
139
|
+
memberIndex: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
140
|
+
folded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
141
|
+
patched: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
142
|
+
x: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
143
|
+
y: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
144
|
+
w: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
145
|
+
h: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
146
|
+
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>;
|
|
147
|
+
}, {
|
|
148
|
+
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
149
|
+
} & {
|
|
150
|
+
readonly info: RendererInfo;
|
|
151
|
+
setInfo(value: RendererInfo): void;
|
|
152
|
+
readonly rendererConfig: any;
|
|
153
|
+
setRendererConfig(value: RendererConfig): void;
|
|
154
|
+
readonly isVitualRenderer: boolean;
|
|
155
|
+
readonly clickable: boolean;
|
|
156
|
+
readonly draggable: boolean;
|
|
157
|
+
readonly moveable: boolean;
|
|
158
|
+
readonly canMoveUp: boolean;
|
|
159
|
+
readonly canMoveDown: boolean;
|
|
160
|
+
readonly removable: boolean;
|
|
161
|
+
readonly duplicatable: boolean;
|
|
162
|
+
readonly replaceable: boolean;
|
|
163
|
+
memberImmutable(region: string): boolean;
|
|
164
|
+
readonly isRegion: boolean;
|
|
165
|
+
readonly childRegions: any[];
|
|
166
|
+
readonly uniqueChildren: any[];
|
|
167
|
+
readonly sameIdChild: any;
|
|
168
|
+
readonly singleRegion: boolean;
|
|
169
|
+
isExists(id: string): boolean;
|
|
170
|
+
getChildById(id: string): any;
|
|
171
|
+
readonly parent: any;
|
|
172
|
+
readonly ancestorField: any;
|
|
173
|
+
readonly host: any;
|
|
174
|
+
readonly firstChild: any;
|
|
175
|
+
readonly index: any;
|
|
176
|
+
readonly prevSibling: any;
|
|
177
|
+
readonly nextSibling: any;
|
|
178
|
+
readonly schema: any;
|
|
179
|
+
readonly schemaParent: any;
|
|
180
|
+
readonly isSecondFactor: boolean;
|
|
181
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
67
182
|
updateIsCommonConfig: (value: boolean) => void;
|
|
68
183
|
addChild(props: {
|
|
69
184
|
id: string;
|
|
@@ -157,6 +272,121 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
157
272
|
readonly isSecondFactor: boolean;
|
|
158
273
|
} & {
|
|
159
274
|
getClosestParentByType: (type: string) => EditorNodeType | void;
|
|
275
|
+
getParentNodeByCB: (callback: (node: EditorNodeSnapshot) => Boolean) => {
|
|
276
|
+
parentId: string;
|
|
277
|
+
parentRegion: string;
|
|
278
|
+
isCommonConfig: boolean;
|
|
279
|
+
id: string;
|
|
280
|
+
type: string;
|
|
281
|
+
label: string;
|
|
282
|
+
regionInfo: (RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>>) | undefined;
|
|
283
|
+
path: string;
|
|
284
|
+
schemaPath: string;
|
|
285
|
+
region: string;
|
|
286
|
+
preferTag: string;
|
|
287
|
+
state: any;
|
|
288
|
+
widthMutable: boolean;
|
|
289
|
+
heightMutable: boolean;
|
|
290
|
+
memberIndex: number;
|
|
291
|
+
folded: boolean;
|
|
292
|
+
patched: boolean;
|
|
293
|
+
x: number;
|
|
294
|
+
y: number;
|
|
295
|
+
w: number;
|
|
296
|
+
h: number;
|
|
297
|
+
children: import("mobx-state-tree").IMSTArray<IAnyModelType> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>>;
|
|
298
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
299
|
+
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
300
|
+
} & {
|
|
301
|
+
readonly info: RendererInfo;
|
|
302
|
+
setInfo(value: RendererInfo): void;
|
|
303
|
+
readonly rendererConfig: any;
|
|
304
|
+
setRendererConfig(value: RendererConfig): void;
|
|
305
|
+
readonly isVitualRenderer: boolean;
|
|
306
|
+
readonly clickable: boolean;
|
|
307
|
+
readonly draggable: boolean;
|
|
308
|
+
readonly moveable: boolean;
|
|
309
|
+
readonly canMoveUp: boolean;
|
|
310
|
+
readonly canMoveDown: boolean;
|
|
311
|
+
readonly removable: boolean;
|
|
312
|
+
readonly duplicatable: boolean;
|
|
313
|
+
readonly replaceable: boolean;
|
|
314
|
+
memberImmutable(region: string): boolean;
|
|
315
|
+
readonly isRegion: boolean;
|
|
316
|
+
readonly childRegions: any[];
|
|
317
|
+
readonly uniqueChildren: any[];
|
|
318
|
+
readonly sameIdChild: any;
|
|
319
|
+
readonly singleRegion: boolean;
|
|
320
|
+
isExists(id: string): boolean;
|
|
321
|
+
getChildById(id: string): any;
|
|
322
|
+
readonly parent: any;
|
|
323
|
+
readonly ancestorField: any;
|
|
324
|
+
readonly host: any;
|
|
325
|
+
readonly firstChild: any;
|
|
326
|
+
readonly index: any;
|
|
327
|
+
readonly prevSibling: any;
|
|
328
|
+
readonly nextSibling: any;
|
|
329
|
+
readonly schema: any;
|
|
330
|
+
readonly schemaParent: any;
|
|
331
|
+
readonly isSecondFactor: boolean;
|
|
332
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
333
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
334
|
+
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
335
|
+
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
336
|
+
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
337
|
+
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
338
|
+
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
339
|
+
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>;
|
|
340
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
341
|
+
schemaPath: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
342
|
+
region: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
343
|
+
preferTag: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
344
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
345
|
+
widthMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
346
|
+
heightMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
347
|
+
memberIndex: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
348
|
+
folded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
349
|
+
patched: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
350
|
+
x: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
351
|
+
y: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
352
|
+
w: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
353
|
+
h: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
354
|
+
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>;
|
|
355
|
+
}, {
|
|
356
|
+
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
357
|
+
} & {
|
|
358
|
+
readonly info: RendererInfo;
|
|
359
|
+
setInfo(value: RendererInfo): void;
|
|
360
|
+
readonly rendererConfig: any;
|
|
361
|
+
setRendererConfig(value: RendererConfig): void;
|
|
362
|
+
readonly isVitualRenderer: boolean;
|
|
363
|
+
readonly clickable: boolean;
|
|
364
|
+
readonly draggable: boolean;
|
|
365
|
+
readonly moveable: boolean;
|
|
366
|
+
readonly canMoveUp: boolean;
|
|
367
|
+
readonly canMoveDown: boolean;
|
|
368
|
+
readonly removable: boolean;
|
|
369
|
+
readonly duplicatable: boolean;
|
|
370
|
+
readonly replaceable: boolean;
|
|
371
|
+
memberImmutable(region: string): boolean;
|
|
372
|
+
readonly isRegion: boolean;
|
|
373
|
+
readonly childRegions: any[];
|
|
374
|
+
readonly uniqueChildren: any[];
|
|
375
|
+
readonly sameIdChild: any;
|
|
376
|
+
readonly singleRegion: boolean;
|
|
377
|
+
isExists(id: string): boolean;
|
|
378
|
+
getChildById(id: string): any;
|
|
379
|
+
readonly parent: any;
|
|
380
|
+
readonly ancestorField: any;
|
|
381
|
+
readonly host: any;
|
|
382
|
+
readonly firstChild: any;
|
|
383
|
+
readonly index: any;
|
|
384
|
+
readonly prevSibling: any;
|
|
385
|
+
readonly nextSibling: any;
|
|
386
|
+
readonly schema: any;
|
|
387
|
+
readonly schemaParent: any;
|
|
388
|
+
readonly isSecondFactor: boolean;
|
|
389
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
160
390
|
updateIsCommonConfig: (value: boolean) => void;
|
|
161
391
|
addChild(props: {
|
|
162
392
|
id: string;
|
|
@@ -249,6 +479,121 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
249
479
|
readonly isSecondFactor: boolean;
|
|
250
480
|
} & {
|
|
251
481
|
getClosestParentByType: (type: string) => EditorNodeType | void;
|
|
482
|
+
getParentNodeByCB: (callback: (node: EditorNodeSnapshot) => Boolean) => {
|
|
483
|
+
parentId: string;
|
|
484
|
+
parentRegion: string;
|
|
485
|
+
isCommonConfig: boolean;
|
|
486
|
+
id: string;
|
|
487
|
+
type: string;
|
|
488
|
+
label: string;
|
|
489
|
+
regionInfo: (RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>>) | undefined;
|
|
490
|
+
path: string;
|
|
491
|
+
schemaPath: string;
|
|
492
|
+
region: string;
|
|
493
|
+
preferTag: string;
|
|
494
|
+
state: any;
|
|
495
|
+
widthMutable: boolean;
|
|
496
|
+
heightMutable: boolean;
|
|
497
|
+
memberIndex: number;
|
|
498
|
+
folded: boolean;
|
|
499
|
+
patched: boolean;
|
|
500
|
+
x: number;
|
|
501
|
+
y: number;
|
|
502
|
+
w: number;
|
|
503
|
+
h: number;
|
|
504
|
+
children: import("mobx-state-tree").IMSTArray<IAnyModelType> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>>;
|
|
505
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
506
|
+
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
507
|
+
} & {
|
|
508
|
+
readonly info: RendererInfo;
|
|
509
|
+
setInfo(value: RendererInfo): void;
|
|
510
|
+
readonly rendererConfig: any;
|
|
511
|
+
setRendererConfig(value: RendererConfig): void;
|
|
512
|
+
readonly isVitualRenderer: boolean;
|
|
513
|
+
readonly clickable: boolean;
|
|
514
|
+
readonly draggable: boolean;
|
|
515
|
+
readonly moveable: boolean;
|
|
516
|
+
readonly canMoveUp: boolean;
|
|
517
|
+
readonly canMoveDown: boolean;
|
|
518
|
+
readonly removable: boolean;
|
|
519
|
+
readonly duplicatable: boolean;
|
|
520
|
+
readonly replaceable: boolean;
|
|
521
|
+
memberImmutable(region: string): boolean;
|
|
522
|
+
readonly isRegion: boolean;
|
|
523
|
+
readonly childRegions: any[];
|
|
524
|
+
readonly uniqueChildren: any[];
|
|
525
|
+
readonly sameIdChild: any;
|
|
526
|
+
readonly singleRegion: boolean;
|
|
527
|
+
isExists(id: string): boolean;
|
|
528
|
+
getChildById(id: string): any;
|
|
529
|
+
readonly parent: any;
|
|
530
|
+
readonly ancestorField: any;
|
|
531
|
+
readonly host: any;
|
|
532
|
+
readonly firstChild: any;
|
|
533
|
+
readonly index: any;
|
|
534
|
+
readonly prevSibling: any;
|
|
535
|
+
readonly nextSibling: any;
|
|
536
|
+
readonly schema: any;
|
|
537
|
+
readonly schemaParent: any;
|
|
538
|
+
readonly isSecondFactor: boolean;
|
|
539
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
540
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
541
|
+
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
542
|
+
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
543
|
+
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
544
|
+
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
545
|
+
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
546
|
+
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>;
|
|
547
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
548
|
+
schemaPath: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
549
|
+
region: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
550
|
+
preferTag: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
551
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
552
|
+
widthMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
553
|
+
heightMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
554
|
+
memberIndex: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
555
|
+
folded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
556
|
+
patched: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
557
|
+
x: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
558
|
+
y: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
559
|
+
w: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
560
|
+
h: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
561
|
+
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>;
|
|
562
|
+
}, {
|
|
563
|
+
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
564
|
+
} & {
|
|
565
|
+
readonly info: RendererInfo;
|
|
566
|
+
setInfo(value: RendererInfo): void;
|
|
567
|
+
readonly rendererConfig: any;
|
|
568
|
+
setRendererConfig(value: RendererConfig): void;
|
|
569
|
+
readonly isVitualRenderer: boolean;
|
|
570
|
+
readonly clickable: boolean;
|
|
571
|
+
readonly draggable: boolean;
|
|
572
|
+
readonly moveable: boolean;
|
|
573
|
+
readonly canMoveUp: boolean;
|
|
574
|
+
readonly canMoveDown: boolean;
|
|
575
|
+
readonly removable: boolean;
|
|
576
|
+
readonly duplicatable: boolean;
|
|
577
|
+
readonly replaceable: boolean;
|
|
578
|
+
memberImmutable(region: string): boolean;
|
|
579
|
+
readonly isRegion: boolean;
|
|
580
|
+
readonly childRegions: any[];
|
|
581
|
+
readonly uniqueChildren: any[];
|
|
582
|
+
readonly sameIdChild: any;
|
|
583
|
+
readonly singleRegion: boolean;
|
|
584
|
+
isExists(id: string): boolean;
|
|
585
|
+
getChildById(id: string): any;
|
|
586
|
+
readonly parent: any;
|
|
587
|
+
readonly ancestorField: any;
|
|
588
|
+
readonly host: any;
|
|
589
|
+
readonly firstChild: any;
|
|
590
|
+
readonly index: any;
|
|
591
|
+
readonly prevSibling: any;
|
|
592
|
+
readonly nextSibling: any;
|
|
593
|
+
readonly schema: any;
|
|
594
|
+
readonly schemaParent: any;
|
|
595
|
+
readonly isSecondFactor: boolean;
|
|
596
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
252
597
|
updateIsCommonConfig: (value: boolean) => void;
|
|
253
598
|
addChild(props: {
|
|
254
599
|
id: string;
|
|
@@ -284,3 +629,4 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
284
629
|
setHeightMutable(value: any): void;
|
|
285
630
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | null>;
|
|
286
631
|
export type EditorNodeType = Instance<typeof EditorNode>;
|
|
632
|
+
export type EditorNodeSnapshot = SnapshotIn<typeof EditorNode>;
|