amis-editor 4.1.0-beta.26 → 4.1.0-beta.27

Sign up to get free protection for your applications and to get access to all the features.
package/dist/manager.d.ts CHANGED
@@ -44,6 +44,8 @@ export declare class EditorManager {
44
44
  readonly dnd: EditorDNDManager;
45
45
  readonly id: string;
46
46
  disableHover: boolean;
47
+ private renderersId;
48
+ private panelsId;
47
49
  private clipboardData;
48
50
  readonly hackIn: any;
49
51
  constructor(config: EditorManagerConfig, store: EditorStoreType, parent?: EditorManager | undefined);
@@ -115,15 +117,15 @@ export declare class EditorManager {
115
117
  preferTag?: string | undefined;
116
118
  schemaPath?: string | undefined;
117
119
  regionInfo?: RegionConfig | undefined;
118
- /**
119
- * 可用组件面板里面会点进来,不同的区域可能可插入的组件不一样。
120
- * @param region 区域的 key
121
- */
122
120
  widthMutable?: boolean | undefined;
123
121
  memberIndex?: number | undefined;
124
122
  }): any;
125
123
  removeChild(child: any): void;
126
- toggleFold(e: import("react").MouseEvent<HTMLAnchorElement, MouseEvent>): void;
124
+ toggleFold(e: import("react").MouseEvent<HTMLAnchorElement, MouseEvent>): void; /**
125
+ * 显示插入面板
126
+ * @param region
127
+ * @param preferTag
128
+ */
127
129
  patch(store: any, force?: boolean): void;
128
130
  updateSchema(value: any): void;
129
131
  setComponent(value: any): void;
@@ -131,6 +133,11 @@ export declare class EditorManager {
131
133
  calculateHighlightBox(root?: any): void;
132
134
  resetHighlightBox(root: any): void;
133
135
  updateState(state: any, replace?: boolean): void;
136
+ /**
137
+ * 在当前选中元素插入或追加新的元素
138
+ * @param rendererIdOrSchema
139
+ * 备注:可以根据渲染器ID添加新元素,也可以根据现有schema片段添加新元素
140
+ */
134
141
  setWidthMutable(value: any): void;
135
142
  setHeightMutable(value: any): void;
136
143
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
@@ -199,15 +206,15 @@ export declare class EditorManager {
199
206
  preferTag?: string | undefined;
200
207
  schemaPath?: string | undefined;
201
208
  regionInfo?: RegionConfig | undefined;
202
- /**
203
- * 可用组件面板里面会点进来,不同的区域可能可插入的组件不一样。
204
- * @param region 区域的 key
205
- */
206
209
  widthMutable?: boolean | undefined;
207
210
  memberIndex?: number | undefined;
208
211
  }): any;
209
212
  removeChild(child: any): void;
210
- toggleFold(e: import("react").MouseEvent<HTMLAnchorElement, MouseEvent>): void;
213
+ toggleFold(e: import("react").MouseEvent<HTMLAnchorElement, MouseEvent>): void; /**
214
+ * 显示插入面板
215
+ * @param region
216
+ * @param preferTag
217
+ */
211
218
  patch(store: any, force?: boolean): void;
212
219
  updateSchema(value: any): void;
213
220
  setComponent(value: any): void;
@@ -215,6 +222,11 @@ export declare class EditorManager {
215
222
  calculateHighlightBox(root?: any): void;
216
223
  resetHighlightBox(root: any): void;
217
224
  updateState(state: any, replace?: boolean): void;
225
+ /**
226
+ * 在当前选中元素插入或追加新的元素
227
+ * @param rendererIdOrSchema
228
+ * 备注:可以根据渲染器ID添加新元素,也可以根据现有schema片段添加新元素
229
+ */
218
230
  setWidthMutable(value: any): void;
219
231
  setHeightMutable(value: any): void;
220
232
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
@@ -232,7 +244,7 @@ export declare class EditorManager {
232
244
  buildToolbars(): void;
233
245
  collectPanels(node: EditorNodeType, triggerEvent?: boolean, secondFactor?: boolean): BasicPanelItem[];
234
246
  buildPanels(curRendererId?: string): void;
235
- collectRenderers(region?: string, curId?: string): Promise<SubRendererInfo[]>;
247
+ collectRenderers(region?: string, activeContainerId?: string): Promise<SubRendererInfo[]>;
236
248
  buildRenderers(region?: string): Promise<void>;
237
249
  rebuild(): Promise<void>;
238
250
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis-editor",
3
- "version": "4.1.0-beta.26",
3
+ "version": "4.1.0-beta.27",
4
4
  "description": "amis 可视化编辑器",
5
5
  "main": "dist/index.min.js",
6
6
  "types": "dist/index.d.ts",