amis-editor-core 6.14.0-beta.10 → 6.14.0-beta.11
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/util.d.ts +3 -1
- package/lib/component/base/BackTop.d.ts +1 -1
- package/lib/dnd/default.d.ts +1 -1
- package/lib/dnd/flex.d.ts +1 -1
- package/lib/editor.js +1 -1
- package/lib/index.js +2 -2
- package/lib/util.d.ts +3 -1
- package/package.json +1 -1
package/esm/util.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import type { VariableItem } from 'amis-ui';
|
|
|
3
3
|
import { Diff } from 'deep-diff';
|
|
4
4
|
import { EditorModalBody } from './store/editor';
|
|
5
5
|
import type { SchemaType } from 'amis/lib/Schema';
|
|
6
|
+
import type { DialogSchema } from 'amis/lib/renderers/Dialog';
|
|
7
|
+
import type { DrawerSchema } from 'amis/lib/renderers/Drawer';
|
|
6
8
|
declare const guid: any, omitControls: any, isObjectShallowModified: any, cloneObject: any, anyChanged: any, noop: any, makeHorizontalDeeper: any, isEmpty: any, eachTree: any, createObject: any;
|
|
7
9
|
export { guid, isObjectShallowModified, anyChanged, noop, makeHorizontalDeeper, omitControls, isEmpty, cloneObject, eachTree, createObject };
|
|
8
10
|
export declare let themeConfig: any;
|
|
@@ -195,7 +197,7 @@ export declare function modalsToDefinitions(modals: Array<EditorModalBody>, defi
|
|
|
195
197
|
*/
|
|
196
198
|
export declare function mergeDefinitions(originSchema: any, definitions: any, modal: any): any;
|
|
197
199
|
export declare function setDefaultColSize(regionList: any[], row: number, preRow?: number): any[];
|
|
198
|
-
export declare function getModals(schema: any): (
|
|
200
|
+
export declare function getModals(schema: any): (DialogSchema | DrawerSchema)[];
|
|
199
201
|
export declare function collectRefs(schema: any): string[];
|
|
200
202
|
/**
|
|
201
203
|
* 深度 splice 数组,同时返回新的对象,按需拷贝,没有副作用
|
|
@@ -16,7 +16,7 @@ export default class BackTop extends React.Component<BackTopProps, BackTopStates
|
|
|
16
16
|
constructor(props: any);
|
|
17
17
|
componentDidMount(): void;
|
|
18
18
|
componentWillUnmount(): void;
|
|
19
|
-
getDefaultTarget(): (Window & typeof globalThis)
|
|
19
|
+
getDefaultTarget(): Document | (Window & typeof globalThis);
|
|
20
20
|
handleScroll(e: React.UIEvent<HTMLElement> | {
|
|
21
21
|
target: any;
|
|
22
22
|
}): void;
|
package/lib/dnd/default.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export declare class DefaultDNDMode implements DNDModeInterface {
|
|
|
40
40
|
getTarget(e: DragEvent): HTMLElement | null;
|
|
41
41
|
getChildren(region: HTMLElement): Array<HTMLElement>;
|
|
42
42
|
detectDropPosition(event: DragEvent, dropTarget: HTMLElement): 'top' | 'bottom' | 'left' | 'right';
|
|
43
|
-
reductionPosition(position: 'top' | 'bottom' | 'left' | 'right', isHorizontal?: boolean): "left" | "right" | "
|
|
43
|
+
reductionPosition(position: 'top' | 'bottom' | 'left' | 'right', isHorizontal?: boolean): "left" | "right" | "bottom" | "top";
|
|
44
44
|
updateIndicator(ghost: HTMLElement, target: HTMLElement, dropPosition: 'top' | 'bottom' | 'left' | 'right' | 'center' | 'middle'): void;
|
|
45
45
|
/**
|
|
46
46
|
* 销毁
|
package/lib/dnd/flex.d.ts
CHANGED
|
@@ -47,6 +47,6 @@ export declare class FlexDNDMode implements DNDModeInterface {
|
|
|
47
47
|
* 销毁
|
|
48
48
|
*/
|
|
49
49
|
dispose(): void;
|
|
50
|
-
getDropPosition(): "left" | "right" | "
|
|
50
|
+
getDropPosition(): "left" | "right" | "bottom" | "top" | undefined;
|
|
51
51
|
interruptionDrop(): boolean;
|
|
52
52
|
}
|
package/lib/editor.js
CHANGED