UNPKG

@atlaskit/editor-plugin-insert-block

Version:

Insert block plugin for @atlaskit/editor-core

116 lines (98 loc) 3.92 kB
<!-- API Report Version: 2.3 --> ## API Report File for "@atlaskit/editor-plugin-insert-block" > Do not edit this file. This report is auto-generated using > [API Extractor](https://api-extractor.com/). > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports) ### Table of contents - [Main Entry Types](#main-entry-types) - [Peer Dependencies](#peer-dependencies) ### Main Entry Types <!--SECTION START: Main Entry Types--> ```ts import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics'; import type { BlockTypePlugin } from '@atlaskit/editor-plugin-block-type'; import type { CodeBlockPlugin } from '@atlaskit/editor-plugin-code-block'; import type { DatePlugin } from '@atlaskit/editor-plugin-date'; import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji'; import type { ExpandPlugin } from '@atlaskit/editor-plugin-expand'; import type { ExtensionPlugin } from '@atlaskit/editor-plugin-extension'; import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags'; import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink'; import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload'; import type { LayoutPlugin } from '@atlaskit/editor-plugin-layout'; import type { MediaPlugin } from '@atlaskit/editor-plugin-media'; import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions'; import type { NextEditorPlugin } from '@atlaskit/editor-common/types'; import type { OptionalPlugin } from '@atlaskit/editor-common/types'; import type { PanelPlugin } from '@atlaskit/editor-plugin-panel'; import type { PlaceholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text'; import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert'; import type { RulePlugin } from '@atlaskit/editor-plugin-rule'; import type { StatusPlugin } from '@atlaskit/editor-plugin-status'; import type { TablePlugin } from '@atlaskit/editor-plugin-table'; import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions'; import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead'; // @public (undocumented) interface InsertBlockOptions { // (undocumented) allowExpand?: boolean; // (undocumented) allowTables?: boolean; // (undocumented) horizontalRuleEnabled?: boolean; // (undocumented) insertMenuItems?: any; // (undocumented) nativeStatusSupported?: boolean; // (undocumented) replacePlusMenuWithElementBrowser?: boolean; // (undocumented) showElementBrowserLink?: boolean; } // @public (undocumented) export type InsertBlockPlugin = NextEditorPlugin< 'insertBlock', { pluginConfiguration: InsertBlockOptions | undefined; dependencies: InsertBlockPluginDependencies; } >; // @public (undocumented) export const insertBlockPlugin: InsertBlockPlugin; // @public (undocumented) type InsertBlockPluginDependencies = [ OptionalPlugin<FeatureFlagsPlugin>, TypeAheadPlugin, OptionalPlugin<TablePlugin>, OptionalPlugin<HyperlinkPlugin>, OptionalPlugin<DatePlugin>, OptionalPlugin<BlockTypePlugin>, OptionalPlugin<AnalyticsPlugin>, OptionalPlugin<ImageUploadPlugin>, OptionalPlugin<EmojiPlugin>, OptionalPlugin<QuickInsertPlugin>, OptionalPlugin<RulePlugin>, OptionalPlugin<CodeBlockPlugin>, OptionalPlugin<PanelPlugin>, OptionalPlugin<MediaPlugin>, OptionalPlugin<MentionsPlugin>, OptionalPlugin<StatusPlugin>, OptionalPlugin<LayoutPlugin>, OptionalPlugin<ExpandPlugin>, OptionalPlugin<PlaceholderTextPlugin>, OptionalPlugin<ExtensionPlugin>, OptionalPlugin<TasksAndDecisionsPlugin>, ]; // (No @packageDocumentation comment for this package) ``` <!--SECTION END: Main Entry Types--> ### Peer Dependencies <!--SECTION START: Peer Dependencies--> ```json { "react": "^16.8.0", "react-dom": "^16.8.0", "react-intl": "npm:react-intl@^5.18.1" } ``` <!--SECTION END: Peer Dependencies-->