UNPKG

828 BTypeScriptView Raw
1import type { Command, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3import type { IndentationInputMethod } from './commands/utils';
4type IndentationPluginSharedState = {
5 isIndentationAllowed: boolean;
6 indentDisabled: boolean;
7 outdentDisabled: boolean;
8};
9export type IndentationPlugin = NextEditorPlugin<'indentation', {
10 dependencies: [OptionalPlugin<AnalyticsPlugin>];
11 actions: {
12 indentParagraphOrHeading: (inputMethod: IndentationInputMethod) => Command;
13 outdentParagraphOrHeading: (inputMethod: IndentationInputMethod) => Command;
14 };
15 sharedState: IndentationPluginSharedState | undefined;
16}>;
17declare const indentationPlugin: IndentationPlugin;
18export default indentationPlugin;