UNPKG

@atlaskit/editor-plugin-rule

Version:

Rule plugin for @atlaskit/editor-core

10 lines (9 loc) • 1.09 kB
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api'; import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums'; import type { Command } from '@atlaskit/editor-common/types/command'; import { type DividerStyle, type DividerWeight } from '../ui/constants'; export declare const insertHorizontalRule: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod: INPUT_METHOD.ELEMENT_BROWSER | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT) => Command; export declare const removeHorizontalRule: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command; export declare const updateHorizontalRuleWeight: (weight: DividerWeight, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command; export declare const updateHorizontalRuleStyle: (style: DividerStyle, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command; export declare const updateHorizontalRuleColor: (color: string, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;