@atlaskit/editor-plugin-toolbar-lists-indentation
Version:
Toolbar lists and indentation plugin for @atlaskit/editor-core
19 lines (18 loc) • 1.72 kB
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getToolbarComponents = void 0;
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
var _BulletedListButtonGroup = require("./toolbar-components/BulletedListButtonGroup");
var _ListsIndentationGroupForInlineToolbar = require("./toolbar-components/ListsIndentationGroupForInlineToolbar");
var _ListsIndentationGroupForPrimaryToolbar = require("./toolbar-components/ListsIndentationGroupForPrimaryToolbar");
var _ListsIndentationHeroButtonGroup = require("./toolbar-components/ListsIndentationHeroButtonGroup");
var _ListsIndentationMenuGroup = require("./toolbar-components/ListsIndentationMenuGroup");
var getToolbarComponents = exports.getToolbarComponents = function getToolbarComponents(_ref) {
var api = _ref.api,
showIndentationButtons = _ref.showIndentationButtons,
allowHeadingAndParagraphIndentation = _ref.allowHeadingAndParagraphIndentation;
return [].concat((0, _toConsumableArray2.default)((0, _ListsIndentationGroupForPrimaryToolbar.getListsIndentationGroupForPrimaryToolbar)()), (0, _toConsumableArray2.default)((0, _ListsIndentationGroupForInlineToolbar.getListsIndentationGroupForInlineToolbar)()), (0, _toConsumableArray2.default)((0, _ListsIndentationHeroButtonGroup.getListsIndentationHeroButton)(api)), (0, _toConsumableArray2.default)((0, _BulletedListButtonGroup.getBulletedListButtonGroup)(api)), (0, _toConsumableArray2.default)((0, _ListsIndentationMenuGroup.getListsIndentationMenu)(allowHeadingAndParagraphIndentation, showIndentationButtons, api)));
};