UNPKG

@atlaskit/editor-plugin-rule

Version:

Rule plugin for @atlaskit/editor-core

72 lines (55 loc) 1.97 kB
<!-- API Report Version: 2.3 --> ## API Report File for "@atlaskit/editor-plugin-rule" > 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 { Command } from '@atlaskit/editor-common/types'; import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics'; import type { FeatureFlags } from '@atlaskit/editor-common/types'; import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags'; import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics'; import type { NextEditorPlugin } from '@atlaskit/editor-common/types'; import type { OptionalPlugin } from '@atlaskit/editor-common/types'; // @public (undocumented) const insertHorizontalRule: ( featureFlags: FeatureFlags, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, ) => ( inputMethod: | INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR, ) => Command; // @public (undocumented) export type RulePlugin = NextEditorPlugin< 'rule', { pluginConfiguration: undefined; dependencies: [OptionalPlugin<FeatureFlagsPlugin>, OptionalPlugin<AnalyticsPlugin>]; actions: { insertHorizontalRule: ReturnType<typeof insertHorizontalRule>; }; } >; // @public (undocumented) export const rulePlugin: RulePlugin; // (No @packageDocumentation comment for this package) ``` <!--SECTION END: Main Entry Types--> ### Peer Dependencies <!--SECTION START: Peer Dependencies--> ```json { "react": "^16.8.0" } ``` <!--SECTION END: Peer Dependencies-->