amis-editor-core 6.6.0 → 6.7.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/manager.d.ts CHANGED
@@ -70,6 +70,7 @@ export declare class EditorManager {
70
70
  parentId: string;
71
71
  parentRegion: string;
72
72
  isCommonConfig: boolean;
73
+ isFormConfig: boolean;
73
74
  id: string;
74
75
  type: string;
75
76
  label: string;
@@ -113,7 +114,7 @@ export declare class EditorManager {
113
114
  readonly isRegion: boolean;
114
115
  readonly childRegions: any[];
115
116
  readonly uniqueChildren: any[];
116
- readonly sameIdChild: any; /** 在顶层对外部注册的Plugin和builtInPlugins合并去重 */
117
+ readonly sameIdChild: any;
117
118
  readonly singleRegion: boolean;
118
119
  isExists(id: string): boolean;
119
120
  getChildById(id: string): any;
@@ -132,6 +133,7 @@ export declare class EditorManager {
132
133
  parentId: string;
133
134
  parentRegion: string;
134
135
  isCommonConfig: boolean;
136
+ isFormConfig: boolean;
135
137
  id: string;
136
138
  type: string;
137
139
  label: string;
@@ -175,7 +177,7 @@ export declare class EditorManager {
175
177
  readonly isRegion: boolean;
176
178
  readonly childRegions: any[];
177
179
  readonly uniqueChildren: any[];
178
- readonly sameIdChild: any; /** 在顶层对外部注册的Plugin和builtInPlugins合并去重 */
180
+ readonly sameIdChild: any;
179
181
  readonly singleRegion: boolean;
180
182
  isExists(id: string): boolean;
181
183
  getChildById(id: string): any;
@@ -193,6 +195,7 @@ export declare class EditorManager {
193
195
  parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
194
196
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
195
197
  isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
198
+ isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
196
199
  id: import("mobx-state-tree").IType<string | undefined, string, string>;
197
200
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
198
201
  label: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -236,7 +239,7 @@ export declare class EditorManager {
236
239
  readonly isRegion: boolean;
237
240
  readonly childRegions: any[];
238
241
  readonly uniqueChildren: any[];
239
- readonly sameIdChild: any; /** 在顶层对外部注册的Plugin和builtInPlugins合并去重 */
242
+ readonly sameIdChild: any;
240
243
  readonly singleRegion: boolean;
241
244
  isExists(id: string): boolean;
242
245
  getChildById(id: string): any;
@@ -255,6 +258,7 @@ export declare class EditorManager {
255
258
  parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
256
259
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
257
260
  isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
261
+ isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
258
262
  id: import("mobx-state-tree").IType<string | undefined, string, string>;
259
263
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
260
264
  label: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -280,6 +284,7 @@ export declare class EditorManager {
280
284
  parentId: string;
281
285
  parentRegion: string;
282
286
  isCommonConfig: boolean;
287
+ isFormConfig: boolean;
283
288
  id: string;
284
289
  type: string;
285
290
  label: string;
@@ -323,7 +328,7 @@ export declare class EditorManager {
323
328
  readonly isRegion: boolean;
324
329
  readonly childRegions: any[];
325
330
  readonly uniqueChildren: any[];
326
- readonly sameIdChild: any; /** 在顶层对外部注册的Plugin和builtInPlugins合并去重 */
331
+ readonly sameIdChild: any;
327
332
  readonly singleRegion: boolean;
328
333
  isExists(id: string): boolean;
329
334
  getChildById(id: string): any;
@@ -341,6 +346,7 @@ export declare class EditorManager {
341
346
  parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
342
347
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
343
348
  isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
349
+ isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
344
350
  id: import("mobx-state-tree").IType<string | undefined, string, string>;
345
351
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
346
352
  label: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -384,7 +390,7 @@ export declare class EditorManager {
384
390
  readonly isRegion: boolean;
385
391
  readonly childRegions: any[];
386
392
  readonly uniqueChildren: any[];
387
- readonly sameIdChild: any; /** 在顶层对外部注册的Plugin和builtInPlugins合并去重 */
393
+ readonly sameIdChild: any;
388
394
  readonly singleRegion: boolean;
389
395
  isExists(id: string): boolean;
390
396
  getChildById(id: string): any;
@@ -400,12 +406,14 @@ export declare class EditorManager {
400
406
  readonly isSecondFactor: boolean;
401
407
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
402
408
  updateIsCommonConfig: (value: boolean) => void;
409
+ updateIsFormConfig: (value: boolean) => void;
403
410
  addChild(props: {
404
411
  id: string;
405
412
  type: string;
406
413
  label: string;
407
414
  path: string;
408
415
  isCommonConfig?: boolean | undefined;
416
+ isFormConfig?: boolean | undefined;
409
417
  info?: RendererInfo | undefined;
410
418
  region?: string | undefined;
411
419
  getData?: (() => any) | undefined;
@@ -433,6 +441,7 @@ export declare class EditorManager {
433
441
  parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
434
442
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
435
443
  isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
444
+ isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
436
445
  id: import("mobx-state-tree").IType<string | undefined, string, string>;
437
446
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
438
447
  label: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -476,7 +485,7 @@ export declare class EditorManager {
476
485
  readonly isRegion: boolean;
477
486
  readonly childRegions: any[];
478
487
  readonly uniqueChildren: any[];
479
- readonly sameIdChild: any; /** 在顶层对外部注册的Plugin和builtInPlugins合并去重 */
488
+ readonly sameIdChild: any;
480
489
  readonly singleRegion: boolean;
481
490
  isExists(id: string): boolean;
482
491
  getChildById(id: string): any;
@@ -495,6 +504,7 @@ export declare class EditorManager {
495
504
  parentId: string;
496
505
  parentRegion: string;
497
506
  isCommonConfig: boolean;
507
+ isFormConfig: boolean;
498
508
  id: string;
499
509
  type: string;
500
510
  label: string;
@@ -538,7 +548,7 @@ export declare class EditorManager {
538
548
  readonly isRegion: boolean;
539
549
  readonly childRegions: any[];
540
550
  readonly uniqueChildren: any[];
541
- readonly sameIdChild: any; /** 在顶层对外部注册的Plugin和builtInPlugins合并去重 */
551
+ readonly sameIdChild: any;
542
552
  readonly singleRegion: boolean;
543
553
  isExists(id: string): boolean;
544
554
  getChildById(id: string): any;
@@ -556,6 +566,7 @@ export declare class EditorManager {
556
566
  parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
557
567
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
558
568
  isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
569
+ isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
559
570
  id: import("mobx-state-tree").IType<string | undefined, string, string>;
560
571
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
561
572
  label: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -599,7 +610,7 @@ export declare class EditorManager {
599
610
  readonly isRegion: boolean;
600
611
  readonly childRegions: any[];
601
612
  readonly uniqueChildren: any[];
602
- readonly sameIdChild: any; /** 在顶层对外部注册的Plugin和builtInPlugins合并去重 */
613
+ readonly sameIdChild: any;
603
614
  readonly singleRegion: boolean;
604
615
  isExists(id: string): boolean;
605
616
  getChildById(id: string): any;
@@ -618,6 +629,7 @@ export declare class EditorManager {
618
629
  parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
619
630
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
620
631
  isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
632
+ isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
621
633
  id: import("mobx-state-tree").IType<string | undefined, string, string>;
622
634
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
623
635
  label: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -643,6 +655,7 @@ export declare class EditorManager {
643
655
  parentId: string;
644
656
  parentRegion: string;
645
657
  isCommonConfig: boolean;
658
+ isFormConfig: boolean;
646
659
  id: string;
647
660
  type: string;
648
661
  label: string;
@@ -686,7 +699,7 @@ export declare class EditorManager {
686
699
  readonly isRegion: boolean;
687
700
  readonly childRegions: any[];
688
701
  readonly uniqueChildren: any[];
689
- readonly sameIdChild: any; /** 在顶层对外部注册的Plugin和builtInPlugins合并去重 */
702
+ readonly sameIdChild: any;
690
703
  readonly singleRegion: boolean;
691
704
  isExists(id: string): boolean;
692
705
  getChildById(id: string): any;
@@ -704,6 +717,7 @@ export declare class EditorManager {
704
717
  parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
705
718
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
706
719
  isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
720
+ isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
707
721
  id: import("mobx-state-tree").IType<string | undefined, string, string>;
708
722
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
709
723
  label: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -747,7 +761,7 @@ export declare class EditorManager {
747
761
  readonly isRegion: boolean;
748
762
  readonly childRegions: any[];
749
763
  readonly uniqueChildren: any[];
750
- readonly sameIdChild: any; /** 在顶层对外部注册的Plugin和builtInPlugins合并去重 */
764
+ readonly sameIdChild: any;
751
765
  readonly singleRegion: boolean;
752
766
  isExists(id: string): boolean;
753
767
  getChildById(id: string): any;
@@ -763,12 +777,14 @@ export declare class EditorManager {
763
777
  readonly isSecondFactor: boolean;
764
778
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
765
779
  updateIsCommonConfig: (value: boolean) => void;
780
+ updateIsFormConfig: (value: boolean) => void;
766
781
  addChild(props: {
767
782
  id: string;
768
783
  type: string;
769
784
  label: string;
770
785
  path: string;
771
786
  isCommonConfig?: boolean | undefined;
787
+ isFormConfig?: boolean | undefined;
772
788
  info?: RendererInfo | undefined;
773
789
  region?: string | undefined;
774
790
  getData?: (() => any) | undefined;
@@ -961,9 +977,9 @@ export declare class EditorManager {
961
977
  */
962
978
  paste(id: string, region?: string): Promise<void>;
963
979
  /**
964
- * 重新生成当前节点的 id
980
+ * 重新生成当前节点的重复的id
965
981
  */
966
- reGenerateCurrentNodeID(): void;
982
+ reGenerateNodeDuplicateID(types?: Array<string>): void;
967
983
  /**
968
984
  * 清空区域
969
985
  * @param id