@atlaskit/editor-plugin-layout
Version:
Layout plugin for @atlaskit/editor-core
83 lines (74 loc) • 2.23 kB
JavaScript
// --- Menu surface ---
export const LAYOUT_COLUMN_MENU = {
type: 'menu',
key: 'layout-column-menu'
};
// --- Sections ---
export const LAYOUT_COLUMN_MENU_SECTION = {
type: 'menu-section',
key: 'layout-column-menu-section'
};
export const LAYOUT_COLUMN_VERTICAL_ALIGN_MENU_SECTION = {
type: 'menu-section',
key: 'layout-column-vertical-align-menu-section'
};
export const LAYOUT_COLUMN_DANGER_SECTION = {
type: 'menu-section',
key: 'layout-column-danger-section'
};
export const LAYOUT_COLUMN_MENU_RANK = {
[]: 100,
[]: 200
};
// --- Menus ---
export const VERTICAL_ALIGN_MENU = {
type: 'nested-menu',
key: 'layout-column-menu-vertical-align-menu'
};
// --- Items ---
export const INSERT_COLUMN_LEFT_MENU_ITEM = {
type: 'menu-item',
key: 'layout-column-menu-insert-left-item'
};
export const INSERT_COLUMN_RIGHT_MENU_ITEM = {
type: 'menu-item',
key: 'layout-column-menu-insert-right-item'
};
export const DISTRIBUTE_COLUMNS_MENU_ITEM = {
type: 'menu-item',
key: 'layout-column-menu-distribute-columns-item'
};
export const VERTICAL_ALIGN_TOP_MENU_ITEM = {
type: 'menu-item',
key: 'layout-column-menu-vertical-align-top-item'
};
export const VERTICAL_ALIGN_MIDDLE_MENU_ITEM = {
type: 'menu-item',
key: 'layout-column-menu-vertical-align-middle-item'
};
export const VERTICAL_ALIGN_BOTTOM_MENU_ITEM = {
type: 'menu-item',
key: 'layout-column-menu-vertical-align-bottom-item'
};
export const DELETE_COLUMN_MENU_ITEM = {
type: 'menu-item',
key: 'layout-column-menu-delete-item'
};
// --- Item ranks within sections ---
export const LAYOUT_COLUMN_MENU_SECTION_RANK = {
[]: 100,
[]: 200,
[]: 300,
[]: 400
};
export const LAYOUT_COLUMN_DANGER_SECTION_RANK = {
[]: 100
};
export const VERTICAL_ALIGN_MENU_RANK = {
[]: 100
};
export const VERTICAL_ALIGN_MENU_SECTION_RANK = {
[]: 100,
[]: 200,
[]: 300
};