@atlaskit/editor-plugin-block-type
Version:
BlockType plugin for @atlaskit/editor-core
39 lines (38 loc) • 1.64 kB
TypeScript
import type { BlockType, BlockTypeWithRank } from './types';
export declare const NORMAL_TEXT: BlockType;
export declare const SMALL_TEXT: BlockType;
export declare const HEADING_1: BlockType;
export declare const HEADING_2: BlockType;
export declare const HEADING_3: BlockType;
export declare const HEADING_4: BlockType;
export declare const HEADING_5: BlockType;
export declare const HEADING_6: BlockType;
export declare const BLOCK_QUOTE: BlockType;
export declare const CODE_BLOCK: BlockType;
export declare const PANEL: BlockType;
export declare const OTHER: BlockType;
export declare const TEXT_BLOCK_TYPES: BlockType[];
declare enum ToolbarBlockTypes {
normal = "normal",
heading1 = "heading1",
heading2 = "heading2",
heading3 = "heading3",
heading4 = "heading4",
heading5 = "heading5",
heading6 = "heading6",
blockquote = "blockquote"
}
export declare const toolbarBlockTypesWithRank: ({ allowFontSize, }: {
allowFontSize?: boolean;
}) => Record<ToolbarBlockTypes, BlockTypeWithRank>;
export type TextBlockTypes = 'normal' | 'smallText' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6';
export declare const FORMATTING_NODE_TYPES: string[];
export declare const FORMATTING_MARK_TYPES: string[];
export declare const WRAPPER_BLOCK_TYPES: BlockType[];
export declare const ALL_BLOCK_TYPES: BlockType[];
export declare const getBlockTypesInDropdown: (includeBlockQuoteAsTextstyleOption?: boolean) => BlockType[];
export declare const HEADINGS_BY_LEVEL: Record<number, BlockType>;
export declare const HEADINGS_BY_NAME: {
[blockType: string]: BlockType;
};
export {};