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

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
@@ -68,7 +68,7 @@ export declare function filterSchemaForConfig(schema: any, valueWithConfig?: any
68
68
  */
69
69
  export declare function filterSchemaForEditor(schema: any): any;
70
70
  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;
71
+ export declare function sortByList(list: Array<string>, attr: string | Function): (a: any, b: any) => 1 | -1 | 0;
72
72
  export declare function persistGet(key: string, defaultValue?: any): any;
73
73
  export declare function persistSet(key: string, value: any): void;
74
74
  export declare function normalizeId(id: string): string;
@@ -199,6 +199,15 @@ export declare function modalsToDefinitions(modals: Array<EditorModalBody>, defi
199
199
  export declare function mergeDefinitions(originSchema: any, definitions: any, modal: any): any;
200
200
  export declare function setDefaultColSize(regionList: any[], row: number, preRow?: number): any[];
201
201
  export declare function getModals(schema: any): (DialogSchema | DrawerSchema)[];
202
+ /**
203
+ * 深度 splice 数组,同时返回新的对象,按需拷贝,没有副作用
204
+ * @param target
205
+ * @param path
206
+ * @param numberToDelete
207
+ * @param items
208
+ * @returns
209
+ */
210
+ export declare function deepSplice(target: any, path: string, numberToDelete: number, ...items: any[]): any;
202
211
  export declare const RAW_TYPE_MAP: {
203
212
  [k in SchemaType | 'user-select' | 'department-select']?: 'string' | 'number' | 'array' | 'boolean' | 'object' | 'enum' | 'date' | 'datetime' | 'time' | 'quarter' | 'year' | 'month' | 'user' | 'department';
204
213
  };
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.4",
4
4
  "description": "amis 可视化编辑器",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",