amis-editor-core 6.8.0 → 6.9.0-rc.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/index.js +2 -2
- package/esm/manager.d.ts +1 -1
- package/esm/store/editor.d.ts +16 -14
- package/esm/util.d.ts +3 -1
- package/lib/editor.js +1 -1
- package/lib/index.js +2 -2
- package/lib/layout/flex.d.ts +1 -0
- package/lib/manager.d.ts +1 -1
- package/lib/store/editor.d.ts +17 -14
- package/lib/style.css +1 -1
- package/lib/util.d.ts +3 -1
- 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/layout/flex.d.ts
CHANGED
package/lib/manager.d.ts
CHANGED
|
@@ -1049,7 +1049,7 @@ export declare class EditorManager {
|
|
|
1049
1049
|
/**
|
|
1050
1050
|
* 把设置了特殊 region 的,hack 一下。
|
|
1051
1051
|
*/
|
|
1052
|
-
hackRenderers(renderers?: any): void
|
|
1052
|
+
hackRenderers(renderers?: any): Promise<void>;
|
|
1053
1053
|
/**
|
|
1054
1054
|
* 入口在 Preview,用来生成包括元素头部快捷工具栏。
|
|
1055
1055
|
* @param info
|
package/lib/store/editor.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { Instance } from 'mobx-state-tree';
|
|
2
3
|
import { InsertEventContext, PluginEvent, RendererInfo, SubRendererInfo, ToolbarItem, PanelItem, MoveEventContext, ScaffoldForm, PopOverForm, DeleteEventContext, BaseEventContext } from '../plugin';
|
|
3
4
|
import type { Schema } from 'amis';
|
|
4
5
|
import { EditorNodeType } from './node';
|
|
5
|
-
import type { DialogSchema } from '
|
|
6
|
-
import type { DrawerSchema } from '
|
|
6
|
+
import type { DialogSchema } from 'amis/lib/renderers/Dialog';
|
|
7
|
+
import type { DrawerSchema } from 'amis/lib/renderers/Drawer';
|
|
7
8
|
export interface SchemaHistory {
|
|
8
9
|
versionId: number;
|
|
9
10
|
schema: any;
|
|
@@ -65,6 +66,7 @@ export type EditorModalBody = (DialogSchema | DrawerSchema) & {
|
|
|
65
66
|
actionType?: string;
|
|
66
67
|
};
|
|
67
68
|
export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
69
|
+
ready: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
68
70
|
isMobile: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
69
71
|
isSubEditor: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
70
72
|
amisDocHost: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -444,7 +446,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
444
446
|
resetHighlightBox(root: any): void;
|
|
445
447
|
updateState(state: any, replace?: boolean): void;
|
|
446
448
|
setWidthMutable(value: any): void;
|
|
447
|
-
setHeightMutable(value: any): void;
|
|
449
|
+
setHeightMutable(value: any): void;
|
|
448
450
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
449
451
|
theme: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
450
452
|
toolbarMode: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -896,7 +898,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
896
898
|
resetHighlightBox(root: any): void;
|
|
897
899
|
updateState(state: any, replace?: boolean): void;
|
|
898
900
|
setWidthMutable(value: any): void;
|
|
899
|
-
setHeightMutable(value: any): void;
|
|
901
|
+
setHeightMutable(value: any): void;
|
|
900
902
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
901
903
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
902
904
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -1273,7 +1275,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
1273
1275
|
resetHighlightBox(root: any): void;
|
|
1274
1276
|
updateState(state: any, replace?: boolean): void;
|
|
1275
1277
|
setWidthMutable(value: any): void;
|
|
1276
|
-
setHeightMutable(value: any): void;
|
|
1278
|
+
setHeightMutable(value: any): void;
|
|
1277
1279
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
1278
1280
|
getNodeById(id: string, regionOrType?: string): EditorNodeType | undefined;
|
|
1279
1281
|
getNodeByComponentId(id: string): EditorNodeType | undefined;
|
|
@@ -1673,7 +1675,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
1673
1675
|
resetHighlightBox(root: any): void;
|
|
1674
1676
|
updateState(state: any, replace?: boolean): void;
|
|
1675
1677
|
setWidthMutable(value: any): void;
|
|
1676
|
-
setHeightMutable(value: any): void;
|
|
1678
|
+
setHeightMutable(value: any): void;
|
|
1677
1679
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
1678
1680
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
1679
1681
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -2050,7 +2052,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2050
2052
|
resetHighlightBox(root: any): void;
|
|
2051
2053
|
updateState(state: any, replace?: boolean): void;
|
|
2052
2054
|
setWidthMutable(value: any): void;
|
|
2053
|
-
setHeightMutable(value: any): void;
|
|
2055
|
+
setHeightMutable(value: any): void;
|
|
2054
2056
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
2055
2057
|
readonly activePath: ({
|
|
2056
2058
|
parentId: string;
|
|
@@ -2428,7 +2430,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2428
2430
|
resetHighlightBox(root: any): void;
|
|
2429
2431
|
updateState(state: any, replace?: boolean): void;
|
|
2430
2432
|
setWidthMutable(value: any): void;
|
|
2431
|
-
setHeightMutable(value: any): void;
|
|
2433
|
+
setHeightMutable(value: any): void;
|
|
2432
2434
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
2433
2435
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
2434
2436
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -2805,7 +2807,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2805
2807
|
resetHighlightBox(root: any): void;
|
|
2806
2808
|
updateState(state: any, replace?: boolean): void;
|
|
2807
2809
|
setWidthMutable(value: any): void;
|
|
2808
|
-
setHeightMutable(value: any): void;
|
|
2810
|
+
setHeightMutable(value: any): void;
|
|
2809
2811
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
2810
2812
|
getNodePathById(id: string): ({
|
|
2811
2813
|
parentId: string;
|
|
@@ -3183,7 +3185,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
3183
3185
|
resetHighlightBox(root: any): void;
|
|
3184
3186
|
updateState(state: any, replace?: boolean): void;
|
|
3185
3187
|
setWidthMutable(value: any): void;
|
|
3186
|
-
setHeightMutable(value: any): void;
|
|
3188
|
+
setHeightMutable(value: any): void;
|
|
3187
3189
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
3188
3190
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
3189
3191
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -3560,7 +3562,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
3560
3562
|
resetHighlightBox(root: any): void;
|
|
3561
3563
|
updateState(state: any, replace?: boolean): void;
|
|
3562
3564
|
setWidthMutable(value: any): void;
|
|
3563
|
-
setHeightMutable(value: any): void;
|
|
3565
|
+
setHeightMutable(value: any): void;
|
|
3564
3566
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
3565
3567
|
readonly dragging: boolean;
|
|
3566
3568
|
readonly needPatch: boolean;
|
|
@@ -3617,14 +3619,15 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
3617
3619
|
readonly getSuperEditorData: any;
|
|
3618
3620
|
getComponentTreeSource(): any;
|
|
3619
3621
|
readonly scaffoldData: any;
|
|
3620
|
-
readonly modals:
|
|
3622
|
+
readonly modals: EditorModalBody[];
|
|
3621
3623
|
readonly modalOptions: {
|
|
3622
3624
|
label: string;
|
|
3623
3625
|
tip: string;
|
|
3624
|
-
value:
|
|
3625
|
-
$$ref:
|
|
3626
|
+
value: string | undefined;
|
|
3627
|
+
$$ref: string | undefined;
|
|
3626
3628
|
}[];
|
|
3627
3629
|
} & {
|
|
3630
|
+
markReady(): void;
|
|
3628
3631
|
setLayer(value: any): void;
|
|
3629
3632
|
getLayer(): HTMLElement | undefined;
|
|
3630
3633
|
setDoc(value: any): void;
|