amis-editor-core 6.7.0 → 6.9.0-beta.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 +3 -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 +3 -0
- package/esm/component/RegionWrapper.d.ts +14 -2
- package/esm/component/SubEditor.d.ts +17 -2
- package/esm/component/VRenderer.d.ts +14 -2
- package/esm/component/base/SchemaForm.d.ts +2 -1
- package/esm/component/factory.d.ts +1 -1
- package/esm/dnd/index.d.ts +0 -11
- package/esm/index.js +2 -2
- package/esm/layout/flex.d.ts +70 -10
- package/esm/manager.d.ts +16 -4
- package/esm/plugin.d.ts +7 -0
- package/esm/store/editor.d.ts +103 -16
- package/esm/store/node.d.ts +15 -3
- package/esm/util.d.ts +12 -0
- package/lib/component/Editor.d.ts +3 -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 +3 -0
- package/lib/component/RegionWrapper.d.ts +14 -2
- package/lib/component/SubEditor.d.ts +17 -2
- package/lib/component/VRenderer.d.ts +14 -2
- package/lib/component/base/SchemaForm.d.ts +2 -1
- package/lib/component/factory.d.ts +1 -1
- package/lib/dnd/flex.d.ts +1 -1
- 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 +70 -10
- package/lib/manager.d.ts +16 -4
- package/lib/plugin.d.ts +7 -0
- package/lib/store/editor.d.ts +103 -16
- package/lib/store/node.d.ts +15 -3
- package/lib/style.css +1 -1
- package/lib/util.d.ts +12 -0
- package/package.json +1 -1
- package/static/check.svg +1 -16
- package/static/search.svg +1 -8
- package/static/side_hide_left.svg +1 -10
package/lib/store/node.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
36
36
|
} & {
|
|
37
37
|
readonly info: RendererInfo;
|
|
38
38
|
getNodeById(id: string, regionOrType?: string): any;
|
|
39
|
+
getNodeByComponentId(id: string): any;
|
|
39
40
|
setInfo(value: RendererInfo): void;
|
|
40
41
|
updateSharedContext(value: Record<string, any>): void;
|
|
41
42
|
readonly rendererConfig: any;
|
|
@@ -100,6 +101,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
100
101
|
} & {
|
|
101
102
|
readonly info: RendererInfo;
|
|
102
103
|
getNodeById(id: string, regionOrType?: string): any;
|
|
104
|
+
getNodeByComponentId(id: string): any;
|
|
103
105
|
setInfo(value: RendererInfo): void;
|
|
104
106
|
updateSharedContext(value: Record<string, any>): void;
|
|
105
107
|
readonly rendererConfig: any;
|
|
@@ -162,6 +164,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
162
164
|
} & {
|
|
163
165
|
readonly info: RendererInfo;
|
|
164
166
|
getNodeById(id: string, regionOrType?: string): any;
|
|
167
|
+
getNodeByComponentId(id: string): any;
|
|
165
168
|
setInfo(value: RendererInfo): void;
|
|
166
169
|
updateSharedContext(value: Record<string, any>): void;
|
|
167
170
|
readonly rendererConfig: any;
|
|
@@ -216,11 +219,12 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
216
219
|
}): any;
|
|
217
220
|
removeChild(child: any): void;
|
|
218
221
|
toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
|
|
219
|
-
patch(store: any, force?: boolean, setPatchInfo?: ((id: string, value: any) => void) | undefined): void;
|
|
222
|
+
patch(store: any, force?: boolean, setPatchInfo?: ((id: string, value: any) => void) | undefined, ids?: Map<string, string>): void;
|
|
220
223
|
updateSchema(value: any): void;
|
|
221
224
|
updateSchemaStyle(value: any): void;
|
|
222
225
|
setComponent(value: any): void;
|
|
223
226
|
getComponent(): any;
|
|
227
|
+
getTarget(): null | HTMLElement | Array<HTMLElement>;
|
|
224
228
|
/**
|
|
225
229
|
* 计算高亮区域信息。
|
|
226
230
|
* @param layer
|
|
@@ -263,6 +267,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
263
267
|
} & {
|
|
264
268
|
readonly info: RendererInfo;
|
|
265
269
|
getNodeById(id: string, regionOrType?: string): any;
|
|
270
|
+
getNodeByComponentId(id: string): any;
|
|
266
271
|
setInfo(value: RendererInfo): void;
|
|
267
272
|
updateSharedContext(value: Record<string, any>): void;
|
|
268
273
|
readonly rendererConfig: any;
|
|
@@ -327,6 +332,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
327
332
|
} & {
|
|
328
333
|
readonly info: RendererInfo;
|
|
329
334
|
getNodeById(id: string, regionOrType?: string): any;
|
|
335
|
+
getNodeByComponentId(id: string): any;
|
|
330
336
|
setInfo(value: RendererInfo): void;
|
|
331
337
|
updateSharedContext(value: Record<string, any>): void;
|
|
332
338
|
readonly rendererConfig: any;
|
|
@@ -389,6 +395,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
389
395
|
} & {
|
|
390
396
|
readonly info: RendererInfo;
|
|
391
397
|
getNodeById(id: string, regionOrType?: string): any;
|
|
398
|
+
getNodeByComponentId(id: string): any;
|
|
392
399
|
setInfo(value: RendererInfo): void;
|
|
393
400
|
updateSharedContext(value: Record<string, any>): void;
|
|
394
401
|
readonly rendererConfig: any;
|
|
@@ -443,11 +450,12 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
443
450
|
}): any;
|
|
444
451
|
removeChild(child: any): void;
|
|
445
452
|
toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
|
|
446
|
-
patch(store: any, force?: boolean, setPatchInfo?: ((id: string, value: any) => void) | undefined): void;
|
|
453
|
+
patch(store: any, force?: boolean, setPatchInfo?: ((id: string, value: any) => void) | undefined, ids?: Map<string, string>): void;
|
|
447
454
|
updateSchema(value: any): void;
|
|
448
455
|
updateSchemaStyle(value: any): void;
|
|
449
456
|
setComponent(value: any): void;
|
|
450
457
|
getComponent(): any;
|
|
458
|
+
getTarget(): null | HTMLElement | Array<HTMLElement>;
|
|
451
459
|
/**
|
|
452
460
|
* 计算高亮区域信息。
|
|
453
461
|
* @param layer
|
|
@@ -489,6 +497,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
489
497
|
} & {
|
|
490
498
|
readonly info: RendererInfo;
|
|
491
499
|
getNodeById(id: string, regionOrType?: string): any;
|
|
500
|
+
getNodeByComponentId(id: string): any;
|
|
492
501
|
setInfo(value: RendererInfo): void;
|
|
493
502
|
updateSharedContext(value: Record<string, any>): void;
|
|
494
503
|
readonly rendererConfig: any;
|
|
@@ -553,6 +562,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
553
562
|
} & {
|
|
554
563
|
readonly info: RendererInfo;
|
|
555
564
|
getNodeById(id: string, regionOrType?: string): any;
|
|
565
|
+
getNodeByComponentId(id: string): any;
|
|
556
566
|
setInfo(value: RendererInfo): void;
|
|
557
567
|
updateSharedContext(value: Record<string, any>): void;
|
|
558
568
|
readonly rendererConfig: any;
|
|
@@ -615,6 +625,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
615
625
|
} & {
|
|
616
626
|
readonly info: RendererInfo;
|
|
617
627
|
getNodeById(id: string, regionOrType?: string): any;
|
|
628
|
+
getNodeByComponentId(id: string): any;
|
|
618
629
|
setInfo(value: RendererInfo): void;
|
|
619
630
|
updateSharedContext(value: Record<string, any>): void;
|
|
620
631
|
readonly rendererConfig: any;
|
|
@@ -669,11 +680,12 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
669
680
|
}): any;
|
|
670
681
|
removeChild(child: any): void;
|
|
671
682
|
toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
|
|
672
|
-
patch(store: any, force?: boolean, setPatchInfo?: ((id: string, value: any) => void) | undefined): void;
|
|
683
|
+
patch(store: any, force?: boolean, setPatchInfo?: ((id: string, value: any) => void) | undefined, ids?: Map<string, string>): void;
|
|
673
684
|
updateSchema(value: any): void;
|
|
674
685
|
updateSchemaStyle(value: any): void;
|
|
675
686
|
setComponent(value: any): void;
|
|
676
687
|
getComponent(): any;
|
|
688
|
+
getTarget(): null | HTMLElement | Array<HTMLElement>;
|
|
677
689
|
/**
|
|
678
690
|
* 计算高亮区域信息。
|
|
679
691
|
* @param layer
|