amis-editor-core 6.11.0-beta.1 → 6.11.0-beta.2

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/lib/manager.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="lodash" />
3
3
  import { DataSchema } from 'amis';
4
- import { RenderOptions } from 'amis-core';
4
+ import { RenderOptions, GlobalVariableItem } from 'amis-core';
5
5
  import { PluginInterface, BasicPanelItem, RendererInfo, SubRendererInfo, PluginEvent, RegionConfig, ContextMenuItem, ContextMenuEventContext, EventContext, PluginEventFn, ScaffoldForm, RendererPluginEvent, PluginEvents, PluginActions } from './plugin';
6
6
  import { EditorStoreType, SubEditorContext } from './store/editor';
7
7
  import { EditorNodeType } from './store/node';
@@ -112,6 +112,10 @@ export declare class EditorManager {
112
112
  readonly removable: boolean;
113
113
  readonly duplicatable: boolean;
114
114
  readonly replaceable: boolean;
115
+ /**
116
+ * 在 component/Editor.tsx 里面实例化的。
117
+ * 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
118
+ */
115
119
  memberImmutable(region: string): boolean;
116
120
  readonly isRegion: boolean;
117
121
  readonly childRegions: any[];
@@ -176,6 +180,10 @@ export declare class EditorManager {
176
180
  readonly removable: boolean;
177
181
  readonly duplicatable: boolean;
178
182
  readonly replaceable: boolean;
183
+ /**
184
+ * 在 component/Editor.tsx 里面实例化的。
185
+ * 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
186
+ */
179
187
  memberImmutable(region: string): boolean;
180
188
  readonly isRegion: boolean;
181
189
  readonly childRegions: any[];
@@ -239,6 +247,10 @@ export declare class EditorManager {
239
247
  readonly removable: boolean;
240
248
  readonly duplicatable: boolean;
241
249
  readonly replaceable: boolean;
250
+ /**
251
+ * 在 component/Editor.tsx 里面实例化的。
252
+ * 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
253
+ */
242
254
  memberImmutable(region: string): boolean;
243
255
  readonly isRegion: boolean;
244
256
  readonly childRegions: any[];
@@ -329,6 +341,10 @@ export declare class EditorManager {
329
341
  readonly removable: boolean;
330
342
  readonly duplicatable: boolean;
331
343
  readonly replaceable: boolean;
344
+ /**
345
+ * 在 component/Editor.tsx 里面实例化的。
346
+ * 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
347
+ */
332
348
  memberImmutable(region: string): boolean;
333
349
  readonly isRegion: boolean;
334
350
  readonly childRegions: any[];
@@ -392,6 +408,10 @@ export declare class EditorManager {
392
408
  readonly removable: boolean;
393
409
  readonly duplicatable: boolean;
394
410
  readonly replaceable: boolean;
411
+ /**
412
+ * 在 component/Editor.tsx 里面实例化的。
413
+ * 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
414
+ */
395
415
  memberImmutable(region: string): boolean;
396
416
  readonly isRegion: boolean;
397
417
  readonly childRegions: any[];
@@ -441,11 +461,6 @@ export declare class EditorManager {
441
461
  getTarget(): HTMLElement | HTMLElement[] | null;
442
462
  calculateHighlightBox(root?: any): void;
443
463
  resetHighlightBox(root: any): void;
444
- /**
445
- * 显示插入面板
446
- * @param region
447
- * @param preferTag
448
- */
449
464
  updateState(state: any, replace?: boolean): void;
450
465
  setWidthMutable(value: any): void;
451
466
  setHeightMutable(value: any): void;
@@ -494,6 +509,10 @@ export declare class EditorManager {
494
509
  readonly removable: boolean;
495
510
  readonly duplicatable: boolean;
496
511
  readonly replaceable: boolean;
512
+ /**
513
+ * 在 component/Editor.tsx 里面实例化的。
514
+ * 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
515
+ */
497
516
  memberImmutable(region: string): boolean;
498
517
  readonly isRegion: boolean;
499
518
  readonly childRegions: any[];
@@ -558,6 +577,10 @@ export declare class EditorManager {
558
577
  readonly removable: boolean;
559
578
  readonly duplicatable: boolean;
560
579
  readonly replaceable: boolean;
580
+ /**
581
+ * 在 component/Editor.tsx 里面实例化的。
582
+ * 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
583
+ */
561
584
  memberImmutable(region: string): boolean;
562
585
  readonly isRegion: boolean;
563
586
  readonly childRegions: any[];
@@ -621,6 +644,10 @@ export declare class EditorManager {
621
644
  readonly removable: boolean;
622
645
  readonly duplicatable: boolean;
623
646
  readonly replaceable: boolean;
647
+ /**
648
+ * 在 component/Editor.tsx 里面实例化的。
649
+ * 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
650
+ */
624
651
  memberImmutable(region: string): boolean;
625
652
  readonly isRegion: boolean;
626
653
  readonly childRegions: any[];
@@ -711,6 +738,10 @@ export declare class EditorManager {
711
738
  readonly removable: boolean;
712
739
  readonly duplicatable: boolean;
713
740
  readonly replaceable: boolean;
741
+ /**
742
+ * 在 component/Editor.tsx 里面实例化的。
743
+ * 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
744
+ */
714
745
  memberImmutable(region: string): boolean;
715
746
  readonly isRegion: boolean;
716
747
  readonly childRegions: any[];
@@ -774,6 +805,10 @@ export declare class EditorManager {
774
805
  readonly removable: boolean;
775
806
  readonly duplicatable: boolean;
776
807
  readonly replaceable: boolean;
808
+ /**
809
+ * 在 component/Editor.tsx 里面实例化的。
810
+ * 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
811
+ */
777
812
  memberImmutable(region: string): boolean;
778
813
  readonly isRegion: boolean;
779
814
  readonly childRegions: any[];
@@ -823,11 +858,6 @@ export declare class EditorManager {
823
858
  getTarget(): HTMLElement | HTMLElement[] | null;
824
859
  calculateHighlightBox(root?: any): void;
825
860
  resetHighlightBox(root: any): void;
826
- /**
827
- * 显示插入面板
828
- * @param region
829
- * @param preferTag
830
- */
831
861
  updateState(state: any, replace?: boolean): void;
832
862
  setWidthMutable(value: any): void;
833
863
  setHeightMutable(value: any): void;
@@ -1140,6 +1170,22 @@ export declare class EditorManager {
1140
1170
  * 获取可用上下文待绑定字段
1141
1171
  */
1142
1172
  getAvailableContextFields(node: EditorNodeType): Promise<any>;
1173
+ /**
1174
+ * 初始化全局变量
1175
+ */
1176
+ initGlobalVariables(): Promise<void>;
1177
+ /**
1178
+ * 获取全局变量详情
1179
+ */
1180
+ getGlobalVariableDetail(variable: Partial<GlobalVariableItem>): Promise<any>;
1181
+ /**
1182
+ * 保存全局变量,包括新增保存和编辑保存
1183
+ */
1184
+ saveGlobalVariable(variable: Partial<GlobalVariableItem>): Promise<any>;
1185
+ /**
1186
+ * 删除全局变量
1187
+ */
1188
+ deleteGlobalVariable(variable: Partial<GlobalVariableItem>): Promise<any>;
1143
1189
  beforeDispatchEvent(originHook: any, e: any, component: any, scoped: IScopedContext, data: any, broadcasts?: any): void;
1144
1190
  /**
1145
1191
  * 销毁函数
package/lib/plugin.d.ts CHANGED
@@ -7,7 +7,7 @@ import { EditorStoreType } from './store/editor';
7
7
  import { EditorNodeType } from './store/node';
8
8
  import React from 'react';
9
9
  import { DiffChange } from './util';
10
- import type { RendererConfig, Schema } from 'amis-core';
10
+ import type { GlobalVariableItem, RendererConfig, Schema } from 'amis-core';
11
11
  import type { MenuDivider, MenuItem } from 'amis-ui/lib/components/ContextMenu';
12
12
  import type { BaseSchema, SchemaCollection } from 'amis';
13
13
  import type { AsyncLayerOptions } from './component/AsyncLayer';
@@ -470,6 +470,12 @@ export interface ResizeMoveEventContext extends EventContext {
470
470
  node: EditorNodeType;
471
471
  store: EditorStoreType;
472
472
  }
473
+ export interface GlobalVariablesEventContext extends EventContext {
474
+ data: Array<GlobalVariableItem>;
475
+ }
476
+ export interface GlobalVariableEventContext extends EventContext {
477
+ data: Partial<GlobalVariableItem>;
478
+ }
473
479
  export interface AfterBuildPanelBody extends EventContext {
474
480
  data: SchemaCollection;
475
481
  plugin: BasePlugin;
@@ -549,6 +555,10 @@ export interface PluginEventListener {
549
555
  onMove(e: MouseEvent): void;
550
556
  onEnd(e: MouseEvent): void;
551
557
  }>) => void;
558
+ onGlobalVariableInit?: (event: PluginEvent<GlobalVariablesEventContext>) => void;
559
+ onGlobalVariableDetail?: (event: PluginEvent<GlobalVariableEventContext>) => void;
560
+ onGlobalVariableSave?: (event: PluginEvent<GlobalVariableEventContext>) => void;
561
+ onGlobalVariableDelete?: (event: PluginEvent<GlobalVariableEventContext>) => void;
552
562
  }
553
563
  /**
554
564
  * 插件的 interface 定义
@@ -1,3 +1,4 @@
1
+ import { GlobalVariableItem } from 'amis-core';
1
2
  import { Instance } from 'mobx-state-tree';
2
3
  import { InsertEventContext, PluginEvent, RendererInfo, SubRendererInfo, ToolbarItem, PanelItem, MoveEventContext, ScaffoldForm, PopOverForm, DeleteEventContext, BaseEventContext, IGlobalEvent } from '../plugin';
3
4
  import type { Schema } from 'amis';
@@ -124,7 +125,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
124
125
  memberImmutable(region: string): boolean;
125
126
  readonly isRegion: boolean;
126
127
  readonly childRegions: any[];
127
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
128
+ readonly uniqueChildren: any[];
128
129
  readonly sameIdChild: any;
129
130
  readonly singleRegion: boolean;
130
131
  isExists(id: string): boolean;
@@ -188,7 +189,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
188
189
  memberImmutable(region: string): boolean;
189
190
  readonly isRegion: boolean;
190
191
  readonly childRegions: any[];
191
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
192
+ readonly uniqueChildren: any[];
192
193
  readonly sameIdChild: any;
193
194
  readonly singleRegion: boolean;
194
195
  isExists(id: string): boolean;
@@ -251,7 +252,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
251
252
  memberImmutable(region: string): boolean;
252
253
  readonly isRegion: boolean;
253
254
  readonly childRegions: any[];
254
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
255
+ readonly uniqueChildren: any[];
255
256
  readonly sameIdChild: any;
256
257
  readonly singleRegion: boolean;
257
258
  isExists(id: string): boolean;
@@ -341,7 +342,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
341
342
  memberImmutable(region: string): boolean;
342
343
  readonly isRegion: boolean;
343
344
  readonly childRegions: any[];
344
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
345
+ readonly uniqueChildren: any[];
345
346
  readonly sameIdChild: any;
346
347
  readonly singleRegion: boolean;
347
348
  isExists(id: string): boolean;
@@ -404,7 +405,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
404
405
  memberImmutable(region: string): boolean;
405
406
  readonly isRegion: boolean;
406
407
  readonly childRegions: any[];
407
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
408
+ readonly uniqueChildren: any[];
408
409
  readonly sameIdChild: any;
409
410
  readonly singleRegion: boolean;
410
411
  isExists(id: string): boolean;
@@ -520,6 +521,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
520
521
  appCorpusData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
521
522
  appLocaleState: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
522
523
  globalEvents: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<IGlobalEvent[], IGlobalEvent[], IGlobalEvent[]>, [undefined]>;
524
+ globalVariables: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
523
525
  }, {
524
526
  readonly filteredSchema: any;
525
527
  readonly filteredSchemaForPreview: any;
@@ -582,7 +584,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
582
584
  memberImmutable(region: string): boolean;
583
585
  readonly isRegion: boolean;
584
586
  readonly childRegions: any[];
585
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
587
+ readonly uniqueChildren: any[];
586
588
  readonly sameIdChild: any;
587
589
  readonly singleRegion: boolean;
588
590
  isExists(id: string): boolean;
@@ -646,7 +648,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
646
648
  memberImmutable(region: string): boolean;
647
649
  readonly isRegion: boolean;
648
650
  readonly childRegions: any[];
649
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
651
+ readonly uniqueChildren: any[];
650
652
  readonly sameIdChild: any;
651
653
  readonly singleRegion: boolean;
652
654
  isExists(id: string): boolean;
@@ -709,7 +711,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
709
711
  memberImmutable(region: string): boolean;
710
712
  readonly isRegion: boolean;
711
713
  readonly childRegions: any[];
712
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
714
+ readonly uniqueChildren: any[];
713
715
  readonly sameIdChild: any;
714
716
  readonly singleRegion: boolean;
715
717
  isExists(id: string): boolean;
@@ -799,7 +801,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
799
801
  memberImmutable(region: string): boolean;
800
802
  readonly isRegion: boolean;
801
803
  readonly childRegions: any[];
802
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
804
+ readonly uniqueChildren: any[];
803
805
  readonly sameIdChild: any;
804
806
  readonly singleRegion: boolean;
805
807
  isExists(id: string): boolean;
@@ -862,7 +864,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
862
864
  memberImmutable(region: string): boolean;
863
865
  readonly isRegion: boolean;
864
866
  readonly childRegions: any[];
865
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
867
+ readonly uniqueChildren: any[];
866
868
  readonly sameIdChild: any;
867
869
  readonly singleRegion: boolean;
868
870
  isExists(id: string): boolean;
@@ -959,7 +961,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
959
961
  memberImmutable(region: string): boolean;
960
962
  readonly isRegion: boolean;
961
963
  readonly childRegions: any[];
962
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
964
+ readonly uniqueChildren: any[];
963
965
  readonly sameIdChild: any;
964
966
  readonly singleRegion: boolean;
965
967
  isExists(id: string): boolean;
@@ -1023,7 +1025,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
1023
1025
  memberImmutable(region: string): boolean;
1024
1026
  readonly isRegion: boolean;
1025
1027
  readonly childRegions: any[];
1026
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
1028
+ readonly uniqueChildren: any[];
1027
1029
  readonly sameIdChild: any;
1028
1030
  readonly singleRegion: boolean;
1029
1031
  isExists(id: string): boolean;
@@ -1086,7 +1088,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
1086
1088
  memberImmutable(region: string): boolean;
1087
1089
  readonly isRegion: boolean;
1088
1090
  readonly childRegions: any[];
1089
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
1091
+ readonly uniqueChildren: any[];
1090
1092
  readonly sameIdChild: any;
1091
1093
  readonly singleRegion: boolean;
1092
1094
  isExists(id: string): boolean;
@@ -1176,7 +1178,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
1176
1178
  memberImmutable(region: string): boolean;
1177
1179
  readonly isRegion: boolean;
1178
1180
  readonly childRegions: any[];
1179
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
1181
+ readonly uniqueChildren: any[];
1180
1182
  readonly sameIdChild: any;
1181
1183
  readonly singleRegion: boolean;
1182
1184
  isExists(id: string): boolean;
@@ -1239,7 +1241,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
1239
1241
  memberImmutable(region: string): boolean;
1240
1242
  readonly isRegion: boolean;
1241
1243
  readonly childRegions: any[];
1242
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
1244
+ readonly uniqueChildren: any[];
1243
1245
  readonly sameIdChild: any;
1244
1246
  readonly singleRegion: boolean;
1245
1247
  isExists(id: string): boolean;
@@ -1359,7 +1361,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
1359
1361
  memberImmutable(region: string): boolean;
1360
1362
  readonly isRegion: boolean;
1361
1363
  readonly childRegions: any[];
1362
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
1364
+ readonly uniqueChildren: any[];
1363
1365
  readonly sameIdChild: any;
1364
1366
  readonly singleRegion: boolean;
1365
1367
  isExists(id: string): boolean;
@@ -1423,7 +1425,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
1423
1425
  memberImmutable(region: string): boolean;
1424
1426
  readonly isRegion: boolean;
1425
1427
  readonly childRegions: any[];
1426
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
1428
+ readonly uniqueChildren: any[];
1427
1429
  readonly sameIdChild: any;
1428
1430
  readonly singleRegion: boolean;
1429
1431
  isExists(id: string): boolean;
@@ -1486,7 +1488,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
1486
1488
  memberImmutable(region: string): boolean;
1487
1489
  readonly isRegion: boolean;
1488
1490
  readonly childRegions: any[];
1489
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
1491
+ readonly uniqueChildren: any[];
1490
1492
  readonly sameIdChild: any;
1491
1493
  readonly singleRegion: boolean;
1492
1494
  isExists(id: string): boolean;
@@ -1576,7 +1578,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
1576
1578
  memberImmutable(region: string): boolean;
1577
1579
  readonly isRegion: boolean;
1578
1580
  readonly childRegions: any[];
1579
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
1581
+ readonly uniqueChildren: any[];
1580
1582
  readonly sameIdChild: any;
1581
1583
  readonly singleRegion: boolean;
1582
1584
  isExists(id: string): boolean;
@@ -1639,7 +1641,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
1639
1641
  memberImmutable(region: string): boolean;
1640
1642
  readonly isRegion: boolean;
1641
1643
  readonly childRegions: any[];
1642
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
1644
+ readonly uniqueChildren: any[];
1643
1645
  readonly sameIdChild: any;
1644
1646
  readonly singleRegion: boolean;
1645
1647
  isExists(id: string): boolean;
@@ -1736,7 +1738,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
1736
1738
  memberImmutable(region: string): boolean;
1737
1739
  readonly isRegion: boolean;
1738
1740
  readonly childRegions: any[];
1739
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
1741
+ readonly uniqueChildren: any[];
1740
1742
  readonly sameIdChild: any;
1741
1743
  readonly singleRegion: boolean;
1742
1744
  isExists(id: string): boolean;
@@ -1800,7 +1802,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
1800
1802
  memberImmutable(region: string): boolean;
1801
1803
  readonly isRegion: boolean;
1802
1804
  readonly childRegions: any[];
1803
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
1805
+ readonly uniqueChildren: any[];
1804
1806
  readonly sameIdChild: any;
1805
1807
  readonly singleRegion: boolean;
1806
1808
  isExists(id: string): boolean;
@@ -1863,7 +1865,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
1863
1865
  memberImmutable(region: string): boolean;
1864
1866
  readonly isRegion: boolean;
1865
1867
  readonly childRegions: any[];
1866
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
1868
+ readonly uniqueChildren: any[];
1867
1869
  readonly sameIdChild: any;
1868
1870
  readonly singleRegion: boolean;
1869
1871
  isExists(id: string): boolean;
@@ -1953,7 +1955,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
1953
1955
  memberImmutable(region: string): boolean;
1954
1956
  readonly isRegion: boolean;
1955
1957
  readonly childRegions: any[];
1956
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
1958
+ readonly uniqueChildren: any[];
1957
1959
  readonly sameIdChild: any;
1958
1960
  readonly singleRegion: boolean;
1959
1961
  isExists(id: string): boolean;
@@ -2016,7 +2018,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
2016
2018
  memberImmutable(region: string): boolean;
2017
2019
  readonly isRegion: boolean;
2018
2020
  readonly childRegions: any[];
2019
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
2021
+ readonly uniqueChildren: any[];
2020
2022
  readonly sameIdChild: any;
2021
2023
  readonly singleRegion: boolean;
2022
2024
  isExists(id: string): boolean;
@@ -2114,7 +2116,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
2114
2116
  memberImmutable(region: string): boolean;
2115
2117
  readonly isRegion: boolean;
2116
2118
  readonly childRegions: any[];
2117
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
2119
+ readonly uniqueChildren: any[];
2118
2120
  readonly sameIdChild: any;
2119
2121
  readonly singleRegion: boolean;
2120
2122
  isExists(id: string): boolean;
@@ -2178,7 +2180,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
2178
2180
  memberImmutable(region: string): boolean;
2179
2181
  readonly isRegion: boolean;
2180
2182
  readonly childRegions: any[];
2181
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
2183
+ readonly uniqueChildren: any[];
2182
2184
  readonly sameIdChild: any;
2183
2185
  readonly singleRegion: boolean;
2184
2186
  isExists(id: string): boolean;
@@ -2241,7 +2243,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
2241
2243
  memberImmutable(region: string): boolean;
2242
2244
  readonly isRegion: boolean;
2243
2245
  readonly childRegions: any[];
2244
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
2246
+ readonly uniqueChildren: any[];
2245
2247
  readonly sameIdChild: any;
2246
2248
  readonly singleRegion: boolean;
2247
2249
  isExists(id: string): boolean;
@@ -2331,7 +2333,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
2331
2333
  memberImmutable(region: string): boolean;
2332
2334
  readonly isRegion: boolean;
2333
2335
  readonly childRegions: any[];
2334
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
2336
+ readonly uniqueChildren: any[];
2335
2337
  readonly sameIdChild: any;
2336
2338
  readonly singleRegion: boolean;
2337
2339
  isExists(id: string): boolean;
@@ -2394,7 +2396,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
2394
2396
  memberImmutable(region: string): boolean;
2395
2397
  readonly isRegion: boolean;
2396
2398
  readonly childRegions: any[];
2397
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
2399
+ readonly uniqueChildren: any[];
2398
2400
  readonly sameIdChild: any;
2399
2401
  readonly singleRegion: boolean;
2400
2402
  isExists(id: string): boolean;
@@ -2491,7 +2493,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
2491
2493
  memberImmutable(region: string): boolean;
2492
2494
  readonly isRegion: boolean;
2493
2495
  readonly childRegions: any[];
2494
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
2496
+ readonly uniqueChildren: any[];
2495
2497
  readonly sameIdChild: any;
2496
2498
  readonly singleRegion: boolean;
2497
2499
  isExists(id: string): boolean;
@@ -2555,7 +2557,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
2555
2557
  memberImmutable(region: string): boolean;
2556
2558
  readonly isRegion: boolean;
2557
2559
  readonly childRegions: any[];
2558
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
2560
+ readonly uniqueChildren: any[];
2559
2561
  readonly sameIdChild: any;
2560
2562
  readonly singleRegion: boolean;
2561
2563
  isExists(id: string): boolean;
@@ -2618,7 +2620,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
2618
2620
  memberImmutable(region: string): boolean;
2619
2621
  readonly isRegion: boolean;
2620
2622
  readonly childRegions: any[];
2621
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
2623
+ readonly uniqueChildren: any[];
2622
2624
  readonly sameIdChild: any;
2623
2625
  readonly singleRegion: boolean;
2624
2626
  isExists(id: string): boolean;
@@ -2708,7 +2710,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
2708
2710
  memberImmutable(region: string): boolean;
2709
2711
  readonly isRegion: boolean;
2710
2712
  readonly childRegions: any[];
2711
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
2713
+ readonly uniqueChildren: any[];
2712
2714
  readonly sameIdChild: any;
2713
2715
  readonly singleRegion: boolean;
2714
2716
  isExists(id: string): boolean;
@@ -2771,7 +2773,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
2771
2773
  memberImmutable(region: string): boolean;
2772
2774
  readonly isRegion: boolean;
2773
2775
  readonly childRegions: any[];
2774
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
2776
+ readonly uniqueChildren: any[];
2775
2777
  readonly sameIdChild: any;
2776
2778
  readonly singleRegion: boolean;
2777
2779
  isExists(id: string): boolean;
@@ -2869,7 +2871,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
2869
2871
  memberImmutable(region: string): boolean;
2870
2872
  readonly isRegion: boolean;
2871
2873
  readonly childRegions: any[];
2872
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
2874
+ readonly uniqueChildren: any[];
2873
2875
  readonly sameIdChild: any;
2874
2876
  readonly singleRegion: boolean;
2875
2877
  isExists(id: string): boolean;
@@ -2933,7 +2935,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
2933
2935
  memberImmutable(region: string): boolean;
2934
2936
  readonly isRegion: boolean;
2935
2937
  readonly childRegions: any[];
2936
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
2938
+ readonly uniqueChildren: any[];
2937
2939
  readonly sameIdChild: any;
2938
2940
  readonly singleRegion: boolean;
2939
2941
  isExists(id: string): boolean;
@@ -2996,7 +2998,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
2996
2998
  memberImmutable(region: string): boolean;
2997
2999
  readonly isRegion: boolean;
2998
3000
  readonly childRegions: any[];
2999
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
3001
+ readonly uniqueChildren: any[];
3000
3002
  readonly sameIdChild: any;
3001
3003
  readonly singleRegion: boolean;
3002
3004
  isExists(id: string): boolean;
@@ -3086,7 +3088,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
3086
3088
  memberImmutable(region: string): boolean;
3087
3089
  readonly isRegion: boolean;
3088
3090
  readonly childRegions: any[];
3089
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
3091
+ readonly uniqueChildren: any[];
3090
3092
  readonly sameIdChild: any;
3091
3093
  readonly singleRegion: boolean;
3092
3094
  isExists(id: string): boolean;
@@ -3149,7 +3151,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
3149
3151
  memberImmutable(region: string): boolean;
3150
3152
  readonly isRegion: boolean;
3151
3153
  readonly childRegions: any[];
3152
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
3154
+ readonly uniqueChildren: any[];
3153
3155
  readonly sameIdChild: any;
3154
3156
  readonly singleRegion: boolean;
3155
3157
  isExists(id: string): boolean;
@@ -3246,7 +3248,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
3246
3248
  memberImmutable(region: string): boolean;
3247
3249
  readonly isRegion: boolean;
3248
3250
  readonly childRegions: any[];
3249
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
3251
+ readonly uniqueChildren: any[];
3250
3252
  readonly sameIdChild: any;
3251
3253
  readonly singleRegion: boolean;
3252
3254
  isExists(id: string): boolean;
@@ -3310,7 +3312,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
3310
3312
  memberImmutable(region: string): boolean;
3311
3313
  readonly isRegion: boolean;
3312
3314
  readonly childRegions: any[];
3313
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
3315
+ readonly uniqueChildren: any[];
3314
3316
  readonly sameIdChild: any;
3315
3317
  readonly singleRegion: boolean;
3316
3318
  isExists(id: string): boolean;
@@ -3373,7 +3375,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
3373
3375
  memberImmutable(region: string): boolean;
3374
3376
  readonly isRegion: boolean;
3375
3377
  readonly childRegions: any[];
3376
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
3378
+ readonly uniqueChildren: any[];
3377
3379
  readonly sameIdChild: any;
3378
3380
  readonly singleRegion: boolean;
3379
3381
  isExists(id: string): boolean;
@@ -3463,7 +3465,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
3463
3465
  memberImmutable(region: string): boolean;
3464
3466
  readonly isRegion: boolean;
3465
3467
  readonly childRegions: any[];
3466
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
3468
+ readonly uniqueChildren: any[];
3467
3469
  readonly sameIdChild: any;
3468
3470
  readonly singleRegion: boolean;
3469
3471
  isExists(id: string): boolean;
@@ -3526,7 +3528,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
3526
3528
  memberImmutable(region: string): boolean;
3527
3529
  readonly isRegion: boolean;
3528
3530
  readonly childRegions: any[];
3529
- readonly uniqueChildren: any[]; /** 应用多语言状态,用于其它组件进行订阅 */
3531
+ readonly uniqueChildren: any[];
3530
3532
  readonly sameIdChild: any;
3531
3533
  readonly singleRegion: boolean;
3532
3534
  isExists(id: string): boolean;
@@ -3764,6 +3766,9 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
3764
3766
  /** 设置应用的语料数据 */
3765
3767
  setAppCorpusData(data?: any): void;
3766
3768
  setGlobalEvents(events: IGlobalEvent[]): void;
3769
+ setGlobalVariables(variables: Array<GlobalVariableItem & {
3770
+ id: string | number;
3771
+ }>): void;
3767
3772
  beforeDestroy(): void;
3768
3773
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
3769
3774
  export type EditorStoreType = Instance<typeof MainStore>;