UNPKG

842 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: [
11 OptionalPlugin<AnalyticsPlugin>
12 ];
13 actions: {
14 indentParagraphOrHeading: (inputMethod: IndentationInputMethod) => Command;
15 outdentParagraphOrHeading: (inputMethod: IndentationInputMethod) => Command;
16 };
17 sharedState: IndentationPluginSharedState | undefined;
18}>;
19declare const indentationPlugin: IndentationPlugin;
20export default indentationPlugin;