UNPKG

@atlaskit/editor-plugin-insert-block

Version:

Insert block plugin for @atlaskit/editor-core

17 lines (16 loc) • 853 B
import type { Command } from '@atlaskit/editor-common/types/command'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin'; import type { RegisterComponent } from '@atlaskit/editor-toolbar-model/types'; 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 {};