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

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.
@@ -507,7 +507,9 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
507
507
  scaffoldError: import("mobx-state-tree").IType<string | undefined, string, string>;
508
508
  popOverForm: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<PopOverFormContext, PopOverFormContext, PopOverFormContext>>;
509
509
  modalForm: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<ModalFormContext, ModalFormContext, ModalFormContext>>;
510
+ modalMode: import("mobx-state-tree").IType<string | undefined, string, string>;
510
511
  modalFormBuzy: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
512
+ modalFormError: import("mobx-state-tree").IType<string | undefined, string, string>;
511
513
  subEditorContext: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<SubEditorContext, SubEditorContext, SubEditorContext>>;
512
514
  superEditorData: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<any, any, any>>;
513
515
  calculateStarted: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
@@ -3627,12 +3629,12 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
3627
3629
  readonly getSuperEditorData: any;
3628
3630
  getComponentTreeSource(): any;
3629
3631
  readonly scaffoldData: any;
3630
- readonly modals: any[];
3632
+ readonly modals: EditorModalBody[];
3631
3633
  readonly modalOptions: {
3632
3634
  label: string;
3633
3635
  tip: string;
3634
- value: any;
3635
- $$ref: any;
3636
+ value: string | undefined;
3637
+ $$ref: string | undefined;
3636
3638
  }[];
3637
3639
  } & {
3638
3640
  markReady(): void;
@@ -3735,6 +3737,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
3735
3737
  openModalForm(context: ModalFormContext): void;
3736
3738
  closeModalForm(): void;
3737
3739
  markModalFormBuzy(value: any): void;
3740
+ setModalFormError(msg?: string): void;
3738
3741
  activeHighlightNodes(ids: Array<string>): void;
3739
3742
  deActiveHighlightNodes(ids: Array<string>): void;
3740
3743
  calculateHighlightBox(ids?: Array<string>): void;
package/lib/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): any[];
201
+ export declare function getModals(schema: any): (DialogSchema | DrawerSchema)[];
200
202
  /**
201
203
  * 深度 splice 数组,同时返回新的对象,按需拷贝,没有副作用
202
204
  * @param target
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis-editor-core",
3
- "version": "6.9.0-rc.5",
3
+ "version": "6.9.0-rc.6",
4
4
  "description": "amis 可视化编辑器",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",