amis-editor-core 6.9.0-rc.5 → 6.9.0-rc.6
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/ModalForm.d.ts +1 -1
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -2
- package/esm/store/editor.d.ts +6 -3
- package/esm/util.d.ts +3 -1
- package/lib/component/ModalForm.d.ts +1 -1
- package/lib/dnd/flex.d.ts +1 -1
- package/lib/editor.js +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -2
- package/lib/store/editor.d.ts +6 -3
- package/lib/util.d.ts +3 -1
- package/package.json +1 -1
package/esm/store/editor.d.ts
CHANGED
|
@@ -508,7 +508,9 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
508
508
|
scaffoldError: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
509
509
|
popOverForm: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<PopOverFormContext, PopOverFormContext, PopOverFormContext>>;
|
|
510
510
|
modalForm: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<ModalFormContext, ModalFormContext, ModalFormContext>>;
|
|
511
|
+
modalMode: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
511
512
|
modalFormBuzy: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
513
|
+
modalFormError: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
512
514
|
subEditorContext: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<SubEditorContext, SubEditorContext, SubEditorContext>>;
|
|
513
515
|
superEditorData: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<any, any, any>>;
|
|
514
516
|
calculateStarted: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
@@ -3628,12 +3630,12 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
3628
3630
|
readonly getSuperEditorData: any;
|
|
3629
3631
|
getComponentTreeSource(): any;
|
|
3630
3632
|
readonly scaffoldData: any;
|
|
3631
|
-
readonly modals:
|
|
3633
|
+
readonly modals: EditorModalBody[];
|
|
3632
3634
|
readonly modalOptions: {
|
|
3633
3635
|
label: string;
|
|
3634
3636
|
tip: string;
|
|
3635
|
-
value:
|
|
3636
|
-
$$ref:
|
|
3637
|
+
value: string | undefined;
|
|
3638
|
+
$$ref: string | undefined;
|
|
3637
3639
|
}[];
|
|
3638
3640
|
} & {
|
|
3639
3641
|
markReady(): void;
|
|
@@ -3736,6 +3738,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
3736
3738
|
openModalForm(context: ModalFormContext): void;
|
|
3737
3739
|
closeModalForm(): void;
|
|
3738
3740
|
markModalFormBuzy(value: any): void;
|
|
3741
|
+
setModalFormError(msg?: string): void;
|
|
3739
3742
|
activeHighlightNodes(ids: Array<string>): void;
|
|
3740
3743
|
deActiveHighlightNodes(ids: Array<string>): void;
|
|
3741
3744
|
calculateHighlightBox(ids?: Array<string>): void;
|
package/esm/util.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import type { VariableItem } from 'amis-ui';
|
|
|
4
4
|
import { Diff } from 'deep-diff';
|
|
5
5
|
import { EditorModalBody } from './store/editor';
|
|
6
6
|
import type { SchemaType } from 'amis/lib/Schema';
|
|
7
|
+
import type { DialogSchema } from 'amis/lib/renderers/Dialog';
|
|
8
|
+
import type { DrawerSchema } from 'amis/lib/renderers/Drawer';
|
|
7
9
|
declare const guid: any, omitControls: any, isObjectShallowModified: any, cloneObject: any, anyChanged: any, noop: any, makeHorizontalDeeper: any, isEmpty: any, eachTree: any, createObject: any;
|
|
8
10
|
export { guid, isObjectShallowModified, anyChanged, noop, makeHorizontalDeeper, omitControls, isEmpty, cloneObject, eachTree, createObject };
|
|
9
11
|
export declare let themeConfig: any;
|
|
@@ -196,7 +198,7 @@ export declare function modalsToDefinitions(modals: Array<EditorModalBody>, defi
|
|
|
196
198
|
*/
|
|
197
199
|
export declare function mergeDefinitions(originSchema: any, definitions: any, modal: any): any;
|
|
198
200
|
export declare function setDefaultColSize(regionList: any[], row: number, preRow?: number): any[];
|
|
199
|
-
export declare function getModals(schema: any):
|
|
201
|
+
export declare function getModals(schema: any): (DialogSchema | DrawerSchema)[];
|
|
200
202
|
/**
|
|
201
203
|
* 深度 splice 数组,同时返回新的对象,按需拷贝,没有副作用
|
|
202
204
|
* @param target
|
package/lib/dnd/flex.d.ts
CHANGED
|
@@ -45,6 +45,6 @@ export declare class FlexDNDMode implements DNDModeInterface {
|
|
|
45
45
|
* 销毁
|
|
46
46
|
*/
|
|
47
47
|
dispose(): void;
|
|
48
|
-
getDropPosition(): "
|
|
48
|
+
getDropPosition(): "top" | "bottom" | "right" | "left" | undefined;
|
|
49
49
|
interruptionDrop(): boolean;
|
|
50
50
|
}
|
package/lib/editor.js
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ import { UnknownRendererPlugin } from './plugin/Unknown';
|
|
|
39
39
|
import ShortcutKey from './component/base/ShortcutKey';
|
|
40
40
|
import WidthDraggableContainer from './component/base/WidthDraggableContainer';
|
|
41
41
|
import { SchemaFrom } from './component/base/SchemaForm';
|
|
42
|
+
import { RendererThumb } from './component/RendererThumb';
|
|
42
43
|
export declare const version = "__buildVersion";
|
|
43
44
|
export default Editor;
|
|
44
|
-
export { Editor, MiniEditor, utils, mapReactElement, RendererEditor, BasicEditor, CodeEditor, VRenderer, RegionWrapper, IFramePreview as IFrameEditor, SearchPanel, EditorNodeType, EditorNodeSnapshot, EditorStoreType, ContainerWrapper, AvailableRenderersPlugin, BasicToolbarPlugin, CodePlugin, ErrorRendererPlugin, OutlinePlugin, UnknownRendererPlugin, ShortcutKey, SchemaFrom, WidthDraggableContainer };
|
|
45
|
+
export { Editor, MiniEditor, utils, mapReactElement, RendererEditor, BasicEditor, CodeEditor, VRenderer, RegionWrapper, IFramePreview as IFrameEditor, SearchPanel, EditorNodeType, EditorNodeSnapshot, EditorStoreType, ContainerWrapper, AvailableRenderersPlugin, BasicToolbarPlugin, CodePlugin, ErrorRendererPlugin, OutlinePlugin, UnknownRendererPlugin, ShortcutKey, SchemaFrom, WidthDraggableContainer, RendererThumb };
|