amis-editor-core 6.9.0-rc.3 → 6.9.0-rc.5

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/lib/util.d.ts CHANGED
@@ -4,8 +4,6 @@ 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';
9
7
  declare const guid: any, omitControls: any, isObjectShallowModified: any, cloneObject: any, anyChanged: any, noop: any, makeHorizontalDeeper: any, isEmpty: any, eachTree: any, createObject: any;
10
8
  export { guid, isObjectShallowModified, anyChanged, noop, makeHorizontalDeeper, omitControls, isEmpty, cloneObject, eachTree, createObject };
11
9
  export declare let themeConfig: any;
@@ -68,7 +66,7 @@ export declare function filterSchemaForConfig(schema: any, valueWithConfig?: any
68
66
  */
69
67
  export declare function filterSchemaForEditor(schema: any): any;
70
68
  export declare function blackList(list: Array<string>): (str: string) => boolean;
71
- export declare function sortByList(list: Array<string>, attr: string | Function): (a: any, b: any) => 0 | 1 | -1;
69
+ export declare function sortByList(list: Array<string>, attr: string | Function): (a: any, b: any) => 1 | -1 | 0;
72
70
  export declare function persistGet(key: string, defaultValue?: any): any;
73
71
  export declare function persistSet(key: string, value: any): void;
74
72
  export declare function normalizeId(id: string): string;
@@ -198,7 +196,16 @@ export declare function modalsToDefinitions(modals: Array<EditorModalBody>, defi
198
196
  */
199
197
  export declare function mergeDefinitions(originSchema: any, definitions: any, modal: any): any;
200
198
  export declare function setDefaultColSize(regionList: any[], row: number, preRow?: number): any[];
201
- export declare function getModals(schema: any): (DialogSchema | DrawerSchema)[];
199
+ export declare function getModals(schema: any): any[];
200
+ /**
201
+ * 深度 splice 数组,同时返回新的对象,按需拷贝,没有副作用
202
+ * @param target
203
+ * @param path
204
+ * @param numberToDelete
205
+ * @param items
206
+ * @returns
207
+ */
208
+ export declare function deepSplice(target: any, path: string, numberToDelete: number, ...items: any[]): any;
202
209
  export declare const RAW_TYPE_MAP: {
203
210
  [k in SchemaType | 'user-select' | 'department-select']?: 'string' | 'number' | 'array' | 'boolean' | 'object' | 'enum' | 'date' | 'datetime' | 'time' | 'quarter' | 'year' | 'month' | 'user' | 'department';
204
211
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis-editor-core",
3
- "version": "6.9.0-rc.3",
3
+ "version": "6.9.0-rc.5",
4
4
  "description": "amis 可视化编辑器",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",