UNPKG

@atlaskit/editor-plugin-insert-block

Version:

Insert block plugin for @atlaskit/editor-core

16 lines (15 loc) 767 B
import type { Command, ExtractInjectionAPI } from '@atlaskit/editor-common/types'; import type { RegisterComponent } from '@atlaskit/editor-toolbar-model'; import type { InsertBlockPlugin } from '../insertBlockPluginType'; import type { InsertBlockPluginOptions } from '../types'; type GetToolbarComponentsProps = { api?: ExtractInjectionAPI<InsertBlockPlugin>; onInsertBlockType?: (name: string) => Command; options: InsertBlockPluginOptions; }; /** * Updated toolbar components function that uses the new configuration resolver. * This function replaces the hardcoded approach with a config-driven one. */ export declare const getToolbarComponents: ({ api, options, onInsertBlockType, }: GetToolbarComponentsProps) => RegisterComponent[]; export {};