amis-editor-core 6.9.0-rc.0 → 6.9.0-rc.1

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.
@@ -1,9 +1,10 @@
1
+ /// <reference types="react" />
1
2
  import { Instance } from 'mobx-state-tree';
2
3
  import { InsertEventContext, PluginEvent, RendererInfo, SubRendererInfo, ToolbarItem, PanelItem, MoveEventContext, ScaffoldForm, PopOverForm, DeleteEventContext, BaseEventContext } from '../plugin';
3
4
  import type { Schema } from 'amis';
4
5
  import { EditorNodeType } from './node';
5
- import type { DialogSchema } from '../../../amis/src/renderers/Dialog';
6
- import type { DrawerSchema } from '../../../amis/src/renderers/Drawer';
6
+ import type { DialogSchema } from 'amis/lib/renderers/Dialog';
7
+ import type { DrawerSchema } from 'amis/lib/renderers/Drawer';
7
8
  export interface SchemaHistory {
8
9
  versionId: number;
9
10
  schema: any;
@@ -3618,12 +3619,12 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
3618
3619
  readonly getSuperEditorData: any;
3619
3620
  getComponentTreeSource(): any;
3620
3621
  readonly scaffoldData: any;
3621
- readonly modals: any[];
3622
+ readonly modals: EditorModalBody[];
3622
3623
  readonly modalOptions: {
3623
3624
  label: string;
3624
3625
  tip: string;
3625
- value: any;
3626
- $$ref: any;
3626
+ value: string | undefined;
3627
+ $$ref: string | undefined;
3627
3628
  }[];
3628
3629
  } & {
3629
3630
  markReady(): 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
  export declare const RAW_TYPE_MAP: {
201
203
  [k in SchemaType | 'user-select' | 'department-select']?: 'string' | 'number' | 'array' | 'boolean' | 'object' | 'enum' | 'date' | 'datetime' | 'time' | 'quarter' | 'year' | 'month' | 'user' | 'department';
202
204
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis-editor-core",
3
- "version": "6.9.0-rc.0",
3
+ "version": "6.9.0-rc.1",
4
4
  "description": "amis 可视化编辑器",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",