amis-editor-core 6.2.2 → 6.3.0

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
@@ -1,6 +1,7 @@
1
1
  /// <reference types="lodash" />
2
2
  import type { Schema } from 'amis';
3
3
  import { Diff } from 'deep-diff';
4
+ import { EditorModalBody } from './store/editor';
4
5
  declare const guid: any, omitControls: any, isObjectShallowModified: any, cloneObject: any, anyChanged: any, noop: any, makeHorizontalDeeper: any, isEmpty: any, eachTree: any, createObject: any;
5
6
  export { guid, isObjectShallowModified, anyChanged, noop, makeHorizontalDeeper, omitControls, isEmpty, cloneObject, eachTree, createObject };
6
7
  export declare let themeConfig: any;
@@ -159,16 +160,23 @@ export declare const updateComponentContext: (variables: any[]) => any[];
159
160
  * @param selector dom 选择器
160
161
  */
161
162
  export declare const scrollToActive: import("lodash").DebouncedFunc<(selector: string) => void>;
163
+ export declare function addModal(schema: any, modal: any, definitions?: any): any[];
162
164
  /**
163
- * 获取弹窗事件
164
- * @param schema 遍历的schema
165
- * @param listType 列表形式,弹窗list或label value形式的数据源
166
- * @param filterId 要过滤弹窗的id
165
+ * 弹窗转成 definitions 定义
166
+ * 这样打开子弹窗的时候,可以把父级的弹窗列表透传到子弹窗里面去
167
+ *
168
+ * 这样子弹窗里面打开弹窗才能选到外面的弹窗
169
+ * @param modals
170
+ * @param definitions
171
+ * @returns
167
172
  */
168
- export declare const getDialogActions: (schema: Schema, listType: 'list' | 'source', filterId?: string) => any[];
173
+ export declare function modalsToDefinitions(modals: Array<EditorModalBody>, definitions?: any): any;
169
174
  /**
170
- * 获取弹窗的类型,来源于事件或definitions,由于历史数据可能没有type: dialog,在这里兼容一下
171
- * @param json
172
- * @param previewDialogId
175
+ * 从子弹窗的 definitions 合并回来到主弹窗的 definitions
176
+ *
177
+ * @param originSchema
178
+ * @param definitions
179
+ * @param modal
180
+ * @returns
173
181
  */
174
- export declare const getFixDialogType: (json: Schema, dialogId: string) => any;
182
+ export declare function mergeDefinitions(originSchema: any, definitions: any, modal: any): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis-editor-core",
3
- "version": "6.2.2",
3
+ "version": "6.3.0",
4
4
  "description": "amis 可视化编辑器",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",