UNPKG

752 BTypeScriptView Raw
1import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2import type { InsertBlockPluginDependencies } from './types';
3export interface InsertBlockOptions {
4 allowTables?: boolean;
5 allowExpand?: boolean;
6 insertMenuItems?: any;
7 horizontalRuleEnabled?: boolean;
8 nativeStatusSupported?: boolean;
9 replacePlusMenuWithElementBrowser?: boolean;
10 showElementBrowserLink?: boolean;
11 tableSelectorSupported?: boolean;
12}
13export type InsertBlockPlugin = NextEditorPlugin<'insertBlock', {
14 pluginConfiguration: InsertBlockOptions | undefined;
15 dependencies: InsertBlockPluginDependencies;
16 actions: {
17 toggleAdditionalMenu: () => void;
18 };
19}>;
20export declare const insertBlockPlugin: InsertBlockPlugin;