amis-editor-core 6.6.0 → 6.8.0
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/component/Editor.d.ts +1 -0
- package/esm/component/FormConfigWrapper.d.ts +6 -0
- package/esm/component/HighlightBox.d.ts +2 -1
- package/esm/component/Panel/Outline.d.ts +5 -1
- package/esm/component/Panel/RightPanels.d.ts +2 -0
- package/esm/component/Preview.d.ts +2 -0
- package/esm/component/RegionWrapper.d.ts +28 -0
- package/esm/component/SubEditor.d.ts +3 -0
- package/esm/component/VRenderer.d.ts +28 -0
- package/esm/dnd/index.d.ts +0 -11
- package/esm/index.js +2 -2
- package/esm/layout/flex.d.ts +140 -0
- package/esm/manager.d.ts +40 -12
- package/esm/plugin.d.ts +6 -0
- package/esm/store/editor.d.ts +186 -146
- package/esm/store/node.d.ts +27 -0
- package/esm/util.d.ts +15 -0
- package/lib/component/Editor.d.ts +1 -0
- package/lib/component/FormConfigWrapper.d.ts +6 -0
- package/lib/component/HighlightBox.d.ts +2 -1
- package/lib/component/Panel/Outline.d.ts +5 -1
- package/lib/component/Panel/RightPanels.d.ts +2 -0
- package/lib/component/Preview.d.ts +2 -0
- package/lib/component/RegionWrapper.d.ts +28 -0
- package/lib/component/SubEditor.d.ts +3 -0
- package/lib/component/VRenderer.d.ts +28 -0
- package/lib/dnd/index.d.ts +0 -11
- package/lib/editor.js +1 -1
- package/lib/index.js +2 -2
- package/lib/layout/flex.d.ts +140 -1
- package/lib/manager.d.ts +40 -12
- package/lib/plugin.d.ts +6 -0
- package/lib/store/editor.d.ts +186 -147
- package/lib/store/node.d.ts +27 -0
- package/lib/style.css +1 -1
- package/lib/util.d.ts +15 -0
- package/package.json +1 -1
package/lib/store/node.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
9
9
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
10
10
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
11
11
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
12
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
12
13
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
13
14
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
14
15
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -35,6 +36,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
35
36
|
} & {
|
|
36
37
|
readonly info: RendererInfo;
|
|
37
38
|
getNodeById(id: string, regionOrType?: string): any;
|
|
39
|
+
getNodeByComponentId(id: string): any;
|
|
38
40
|
setInfo(value: RendererInfo): void;
|
|
39
41
|
updateSharedContext(value: Record<string, any>): void;
|
|
40
42
|
readonly rendererConfig: any;
|
|
@@ -72,6 +74,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
72
74
|
parentId: string;
|
|
73
75
|
parentRegion: string;
|
|
74
76
|
isCommonConfig: boolean;
|
|
77
|
+
isFormConfig: boolean;
|
|
75
78
|
id: string;
|
|
76
79
|
type: string;
|
|
77
80
|
label: string;
|
|
@@ -98,6 +101,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
98
101
|
} & {
|
|
99
102
|
readonly info: RendererInfo;
|
|
100
103
|
getNodeById(id: string, regionOrType?: string): any;
|
|
104
|
+
getNodeByComponentId(id: string): any;
|
|
101
105
|
setInfo(value: RendererInfo): void;
|
|
102
106
|
updateSharedContext(value: Record<string, any>): void;
|
|
103
107
|
readonly rendererConfig: any;
|
|
@@ -133,6 +137,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
133
137
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
134
138
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
135
139
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
140
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
136
141
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
137
142
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
138
143
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -159,6 +164,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
159
164
|
} & {
|
|
160
165
|
readonly info: RendererInfo;
|
|
161
166
|
getNodeById(id: string, regionOrType?: string): any;
|
|
167
|
+
getNodeByComponentId(id: string): any;
|
|
162
168
|
setInfo(value: RendererInfo): void;
|
|
163
169
|
updateSharedContext(value: Record<string, any>): void;
|
|
164
170
|
readonly rendererConfig: any;
|
|
@@ -192,12 +198,14 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
192
198
|
readonly isSecondFactor: boolean;
|
|
193
199
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
194
200
|
updateIsCommonConfig: (value: boolean) => void;
|
|
201
|
+
updateIsFormConfig: (value: boolean) => void;
|
|
195
202
|
addChild(props: {
|
|
196
203
|
id: string;
|
|
197
204
|
type: string;
|
|
198
205
|
label: string;
|
|
199
206
|
path: string;
|
|
200
207
|
isCommonConfig?: boolean;
|
|
208
|
+
isFormConfig?: boolean;
|
|
201
209
|
info?: RendererInfo;
|
|
202
210
|
region?: string;
|
|
203
211
|
getData?: () => any;
|
|
@@ -216,6 +224,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
216
224
|
updateSchemaStyle(value: any): void;
|
|
217
225
|
setComponent(value: any): void;
|
|
218
226
|
getComponent(): any;
|
|
227
|
+
getTarget(): null | HTMLElement | Array<HTMLElement>;
|
|
219
228
|
/**
|
|
220
229
|
* 计算高亮区域信息。
|
|
221
230
|
* @param layer
|
|
@@ -231,6 +240,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
231
240
|
parentId: string;
|
|
232
241
|
parentRegion: string;
|
|
233
242
|
isCommonConfig: boolean;
|
|
243
|
+
isFormConfig: boolean;
|
|
234
244
|
id: string;
|
|
235
245
|
type: string;
|
|
236
246
|
label: string;
|
|
@@ -257,6 +267,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
257
267
|
} & {
|
|
258
268
|
readonly info: RendererInfo;
|
|
259
269
|
getNodeById(id: string, regionOrType?: string): any;
|
|
270
|
+
getNodeByComponentId(id: string): any;
|
|
260
271
|
setInfo(value: RendererInfo): void;
|
|
261
272
|
updateSharedContext(value: Record<string, any>): void;
|
|
262
273
|
readonly rendererConfig: any;
|
|
@@ -294,6 +305,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
294
305
|
parentId: string;
|
|
295
306
|
parentRegion: string;
|
|
296
307
|
isCommonConfig: boolean;
|
|
308
|
+
isFormConfig: boolean;
|
|
297
309
|
id: string;
|
|
298
310
|
type: string;
|
|
299
311
|
label: string;
|
|
@@ -320,6 +332,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
320
332
|
} & {
|
|
321
333
|
readonly info: RendererInfo;
|
|
322
334
|
getNodeById(id: string, regionOrType?: string): any;
|
|
335
|
+
getNodeByComponentId(id: string): any;
|
|
323
336
|
setInfo(value: RendererInfo): void;
|
|
324
337
|
updateSharedContext(value: Record<string, any>): void;
|
|
325
338
|
readonly rendererConfig: any;
|
|
@@ -355,6 +368,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
355
368
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
356
369
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
357
370
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
371
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
358
372
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
359
373
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
360
374
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -381,6 +395,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
381
395
|
} & {
|
|
382
396
|
readonly info: RendererInfo;
|
|
383
397
|
getNodeById(id: string, regionOrType?: string): any;
|
|
398
|
+
getNodeByComponentId(id: string): any;
|
|
384
399
|
setInfo(value: RendererInfo): void;
|
|
385
400
|
updateSharedContext(value: Record<string, any>): void;
|
|
386
401
|
readonly rendererConfig: any;
|
|
@@ -414,12 +429,14 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
414
429
|
readonly isSecondFactor: boolean;
|
|
415
430
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
416
431
|
updateIsCommonConfig: (value: boolean) => void;
|
|
432
|
+
updateIsFormConfig: (value: boolean) => void;
|
|
417
433
|
addChild(props: {
|
|
418
434
|
id: string;
|
|
419
435
|
type: string;
|
|
420
436
|
label: string;
|
|
421
437
|
path: string;
|
|
422
438
|
isCommonConfig?: boolean;
|
|
439
|
+
isFormConfig?: boolean;
|
|
423
440
|
info?: RendererInfo;
|
|
424
441
|
region?: string;
|
|
425
442
|
getData?: () => any;
|
|
@@ -438,6 +455,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
438
455
|
updateSchemaStyle(value: any): void;
|
|
439
456
|
setComponent(value: any): void;
|
|
440
457
|
getComponent(): any;
|
|
458
|
+
getTarget(): null | HTMLElement | Array<HTMLElement>;
|
|
441
459
|
/**
|
|
442
460
|
* 计算高亮区域信息。
|
|
443
461
|
* @param layer
|
|
@@ -452,6 +470,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
452
470
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
453
471
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
454
472
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
473
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
455
474
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
456
475
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
457
476
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -478,6 +497,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
478
497
|
} & {
|
|
479
498
|
readonly info: RendererInfo;
|
|
480
499
|
getNodeById(id: string, regionOrType?: string): any;
|
|
500
|
+
getNodeByComponentId(id: string): any;
|
|
481
501
|
setInfo(value: RendererInfo): void;
|
|
482
502
|
updateSharedContext(value: Record<string, any>): void;
|
|
483
503
|
readonly rendererConfig: any;
|
|
@@ -515,6 +535,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
515
535
|
parentId: string;
|
|
516
536
|
parentRegion: string;
|
|
517
537
|
isCommonConfig: boolean;
|
|
538
|
+
isFormConfig: boolean;
|
|
518
539
|
id: string;
|
|
519
540
|
type: string;
|
|
520
541
|
label: string;
|
|
@@ -541,6 +562,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
541
562
|
} & {
|
|
542
563
|
readonly info: RendererInfo;
|
|
543
564
|
getNodeById(id: string, regionOrType?: string): any;
|
|
565
|
+
getNodeByComponentId(id: string): any;
|
|
544
566
|
setInfo(value: RendererInfo): void;
|
|
545
567
|
updateSharedContext(value: Record<string, any>): void;
|
|
546
568
|
readonly rendererConfig: any;
|
|
@@ -576,6 +598,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
576
598
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
577
599
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
578
600
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
601
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
579
602
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
580
603
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
581
604
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -602,6 +625,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
602
625
|
} & {
|
|
603
626
|
readonly info: RendererInfo;
|
|
604
627
|
getNodeById(id: string, regionOrType?: string): any;
|
|
628
|
+
getNodeByComponentId(id: string): any;
|
|
605
629
|
setInfo(value: RendererInfo): void;
|
|
606
630
|
updateSharedContext(value: Record<string, any>): void;
|
|
607
631
|
readonly rendererConfig: any;
|
|
@@ -635,12 +659,14 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
635
659
|
readonly isSecondFactor: boolean;
|
|
636
660
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
637
661
|
updateIsCommonConfig: (value: boolean) => void;
|
|
662
|
+
updateIsFormConfig: (value: boolean) => void;
|
|
638
663
|
addChild(props: {
|
|
639
664
|
id: string;
|
|
640
665
|
type: string;
|
|
641
666
|
label: string;
|
|
642
667
|
path: string;
|
|
643
668
|
isCommonConfig?: boolean;
|
|
669
|
+
isFormConfig?: boolean;
|
|
644
670
|
info?: RendererInfo;
|
|
645
671
|
region?: string;
|
|
646
672
|
getData?: () => any;
|
|
@@ -659,6 +685,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
659
685
|
updateSchemaStyle(value: any): void;
|
|
660
686
|
setComponent(value: any): void;
|
|
661
687
|
getComponent(): any;
|
|
688
|
+
getTarget(): null | HTMLElement | Array<HTMLElement>;
|
|
662
689
|
/**
|
|
663
690
|
* 计算高亮区域信息。
|
|
664
691
|
* @param layer
|