amis-editor-core 6.9.0-rc.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/store/editor.d.ts +5 -5
- package/esm/util.d.ts +3 -1
- package/lib/dnd/flex.d.ts +1 -1
- package/lib/editor.js +1 -1
- package/lib/index.js +2 -2
- package/lib/store/editor.d.ts +6 -5
- package/lib/util.d.ts +3 -1
- package/package.json +1 -1
package/esm/store/editor.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { Instance } from 'mobx-state-tree';
|
|
|
3
3
|
import { InsertEventContext, PluginEvent, RendererInfo, SubRendererInfo, ToolbarItem, PanelItem, MoveEventContext, ScaffoldForm, PopOverForm, DeleteEventContext, BaseEventContext } from '../plugin';
|
|
4
4
|
import type { Schema } from 'amis';
|
|
5
5
|
import { EditorNodeType } from './node';
|
|
6
|
-
import type { DialogSchema } from '
|
|
7
|
-
import type { DrawerSchema } from '
|
|
6
|
+
import type { DialogSchema } from 'amis/lib/renderers/Dialog';
|
|
7
|
+
import type { DrawerSchema } from 'amis/lib/renderers/Drawer';
|
|
8
8
|
export interface SchemaHistory {
|
|
9
9
|
versionId: number;
|
|
10
10
|
schema: any;
|
|
@@ -3619,12 +3619,12 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
3619
3619
|
readonly getSuperEditorData: any;
|
|
3620
3620
|
getComponentTreeSource(): any;
|
|
3621
3621
|
readonly scaffoldData: any;
|
|
3622
|
-
readonly modals:
|
|
3622
|
+
readonly modals: EditorModalBody[];
|
|
3623
3623
|
readonly modalOptions: {
|
|
3624
3624
|
label: string;
|
|
3625
3625
|
tip: string;
|
|
3626
|
-
value:
|
|
3627
|
-
$$ref:
|
|
3626
|
+
value: string | undefined;
|
|
3627
|
+
$$ref: string | undefined;
|
|
3628
3628
|
}[];
|
|
3629
3629
|
} & {
|
|
3630
3630
|
markReady(): 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
|
export declare const RAW_TYPE_MAP: {
|
|
201
203
|
[k in SchemaType | 'user-select' | 'department-select']?: 'string' | 'number' | 'array' | 'boolean' | 'object' | 'enum' | 'date' | 'datetime' | 'time' | 'quarter' | 'year' | 'month' | 'user' | 'department';
|
|
202
204
|
};
|
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(): "left" | "right" | "
|
|
48
|
+
getDropPosition(): "left" | "right" | "bottom" | "top" | undefined;
|
|
49
49
|
interruptionDrop(): boolean;
|
|
50
50
|
}
|
package/lib/editor.js
CHANGED