UNPKG

@atlaskit/editor-plugin-toolbar-lists-indentation

Version:

Toolbar lists and indentation plugin for @atlaskit/editor-core

47 lines (46 loc) 2.01 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.getListsIndentationHeroButton = void 0; var _react = _interopRequireDefault(require("react")); var _toolbar = require("@atlaskit/editor-common/toolbar"); var _ListsIndentationHeroButton = require("./ListsIndentationHeroButton"); var getListsIndentationHeroButton = exports.getListsIndentationHeroButton = function getListsIndentationHeroButton(api) { return [{ type: _toolbar.LISTS_INDENTATION_HERO_BUTTON.type, key: _toolbar.LISTS_INDENTATION_HERO_BUTTON.key, parents: [{ type: _toolbar.LISTS_INDENTATION_GROUP.type, key: _toolbar.LISTS_INDENTATION_GROUP.key, rank: _toolbar.LISTS_INDENTATION_GROUP_RANK[_toolbar.LISTS_INDENTATION_HERO_BUTTON.key] }], component: function component(_ref) { var parents = _ref.parents; return /*#__PURE__*/_react.default.createElement(_ListsIndentationHeroButton.ListsIndentationHeroButtonNew, { api: api, parents: parents }); } }, { type: _toolbar.LISTS_INDENTATION_HERO_BUTTON_COLLAPSED.type, key: _toolbar.LISTS_INDENTATION_HERO_BUTTON_COLLAPSED.key, parents: [{ type: _toolbar.LISTS_INDENTATION_GROUP_COLLAPSED.type, key: _toolbar.LISTS_INDENTATION_GROUP_COLLAPSED.key, rank: _toolbar.LISTS_INDENTATION_GROUP_COLLAPSED_RANK[_toolbar.LISTS_INDENTATION_HERO_BUTTON_COLLAPSED.key] }, { type: _toolbar.LISTS_INDENTATION_GROUP_INLINE.type, key: _toolbar.LISTS_INDENTATION_GROUP_INLINE.key, rank: _toolbar.LISTS_INDENTATION_GROUP_COLLAPSED_RANK[_toolbar.LISTS_INDENTATION_HERO_BUTTON_COLLAPSED.key] }], component: function component(_ref2) { var parents = _ref2.parents; return /*#__PURE__*/_react.default.createElement(_ListsIndentationHeroButton.ListsIndentationHeroButtonCollapsed, { api: api, parents: parents }); } }]; };