amis-editor-core 6.9.0-rc.9 → 6.10.0-beta.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/esm/plugin.d.ts CHANGED
@@ -383,6 +383,15 @@ export interface RendererInfoResolveEventContext extends EventContext {
383
383
  export interface RendererJSONSchemaResolveEventContext extends BaseEventContext {
384
384
  data: string;
385
385
  }
386
+ export interface IGlobalEvent {
387
+ label: string;
388
+ name: string;
389
+ description: string;
390
+ mapping: Array<{
391
+ key: string;
392
+ type: string;
393
+ }>;
394
+ }
386
395
  /**
387
396
  * 右键菜单事件的上下文。
388
397
  */
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
2
2
  import { EditorStoreType } from '../store/editor';
3
3
  import { EditorManager, PluginClass } from '../manager';
4
4
  import { RenderOptions } from 'amis';
5
- import { PluginEventListener, RendererPluginAction } from '../plugin';
5
+ import { PluginEventListener, RendererPluginAction, IGlobalEvent } from '../plugin';
6
6
  import type { SchemaObject } from 'amis';
7
7
  import type { VariableGroup, VariableOptions } from '../variable';
8
8
  import type { EditorNodeType } from '../store/node';
@@ -74,6 +74,7 @@ export interface EditorProps extends PluginEventListener {
74
74
  customActionGetter?: (manager: EditorManager) => {
75
75
  [propName: string]: RendererPluginAction;
76
76
  };
77
+ globalEventGetter?: (manager: EditorManager) => IGlobalEvent[];
77
78
  };
78
79
  /** 上下文变量 */
79
80
  variables?: VariableGroup[];
package/lib/editor.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-editor-core v6.9.0-rc.9
2
+ * amis-editor-core v6.10.0-beta.0
3
3
  * Copyright 2018-2024 @fex
4
4
  */
5
5