@atlaskit/editor-plugin-toolbar-lists-indentation
Version:
Toolbar lists and indentation plugin for @atlaskit/editor-core
12 lines • 1.21 kB
JavaScript
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
import { getBulletedListButtonGroup } from './toolbar-components/BulletedListButtonGroup';
import { getListsIndentationGroupForInlineToolbar } from './toolbar-components/ListsIndentationGroupForInlineToolbar';
import { getListsIndentationGroupForPrimaryToolbar } from './toolbar-components/ListsIndentationGroupForPrimaryToolbar';
import { getListsIndentationHeroButton } from './toolbar-components/ListsIndentationHeroButtonGroup';
import { getListsIndentationMenu } from './toolbar-components/ListsIndentationMenuGroup';
export var getToolbarComponents = function getToolbarComponents(_ref) {
var api = _ref.api,
showIndentationButtons = _ref.showIndentationButtons,
allowHeadingAndParagraphIndentation = _ref.allowHeadingAndParagraphIndentation;
return [].concat(_toConsumableArray(getListsIndentationGroupForPrimaryToolbar()), _toConsumableArray(getListsIndentationGroupForInlineToolbar()), _toConsumableArray(getListsIndentationHeroButton(api)), _toConsumableArray(getBulletedListButtonGroup(api)), _toConsumableArray(getListsIndentationMenu(allowHeadingAndParagraphIndentation, showIndentationButtons, api)));
};