UNPKG

@atlaskit/editor-plugin-alignment

Version:

Alignment plugin for @atlaskit/editor-core

41 lines (40 loc) • 1.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.alignmentOptions = void 0; var _alignment = require("@atlaskit/editor-common/alignment"); var _keymaps = require("@atlaskit/editor-common/keymaps"); var _keys = require("@atlaskit/editor-common/toolbar/keys"); var _rank = require("@atlaskit/editor-common/toolbar/rank"); var _alignTextCenterIcon = require("@atlaskit/editor-toolbar/align-text-center-icon"); var _alignTextLeftIcon = require("@atlaskit/editor-toolbar/align-text-left-icon"); var _alignTextRightIcon = require("@atlaskit/editor-toolbar/align-text-right-icon"); var alignmentOptions = exports.alignmentOptions = function alignmentOptions() { return { start: { key: _keys.ALIGN_LEFT_MENU_ITEM.key, type: _keys.ALIGN_LEFT_MENU_ITEM.type, rank: _rank.ALIGNMENT_MENU_SECTION_RANK[_keys.ALIGN_LEFT_MENU_ITEM.key], label: _alignment.alignmentMessages.alignLeft, icon: _alignTextLeftIcon.AlignTextLeftIcon, keymap: _keymaps.alignLeft }, center: { key: _keys.ALIGN_CENTER_MENU_ITEM.key, type: _keys.ALIGN_CENTER_MENU_ITEM.type, rank: _rank.ALIGNMENT_MENU_SECTION_RANK[_keys.ALIGN_CENTER_MENU_ITEM.key], label: _alignment.alignmentMessages.alignCenter, icon: _alignTextCenterIcon.AlignTextCenterIcon, keymap: _keymaps.alignCenter }, end: { key: _keys.ALIGN_RIGHT_MENU_ITEM.key, type: _keys.ALIGN_RIGHT_MENU_ITEM.type, rank: _rank.ALIGNMENT_MENU_SECTION_RANK[_keys.ALIGN_RIGHT_MENU_ITEM.key], label: _alignment.alignmentMessages.alignRight, icon: _alignTextRightIcon.AlignTextRightIcon, keymap: _keymaps.alignRight } }; };