UNPKG

@atlaskit/renderer

Version:
55 lines (52 loc) 1.82 kB
/* eslint-disable @atlaskit/editor/no-re-export */ // Mapping file import Code from './code'; import Em from './em'; import Link from './link'; import Strike from './strike'; import Strong from './strong'; import Subsup from './subsup'; import TextColor from './textColor'; import BackgroundColor from './backgroundColor'; import Underline from './underline'; import Breakout from './breakout'; import Alignment from './alignment'; import Indentation from './indentation'; import UnsupportedMark from './unsupportedMark'; import UnsupportedNodeAttribute from './unsupportedNodeAttribute'; import DataConsumer from './data-consumer'; import FragmentMark from './fragment'; import Annotation, { isAnnotationMark } from './annotation'; import Border from './border'; import FontSize from './fontSize'; // Stage0 import ConfluenceInlineComment from './confluence-inline-comment'; export const markToReact = { code: Code, em: Em, link: Link, strike: Strike, strong: Strong, subsup: Subsup, textColor: TextColor, backgroundColor: BackgroundColor, underline: Underline, annotation: Annotation, border: Border, fontSize: FontSize, // Stage0 confluenceInlineComment: ConfluenceInlineComment, breakout: Breakout, alignment: Alignment, indentation: Indentation, unsupportedMark: UnsupportedMark, unsupportedNodeAttribute: UnsupportedNodeAttribute, dataConsumer: DataConsumer, fragment: FragmentMark }; // Ignored via go/ees005 // eslint-disable-next-line @typescript-eslint/no-explicit-any export const toReact = mark => { return markToReact[mark.type.name]; }; export { Code, Em, Link, Strike, Strong, Subsup, TextColor, BackgroundColor, Underline, Breakout, Annotation, Border, FontSize, UnsupportedMark, isAnnotationMark, UnsupportedNodeAttribute, DataConsumer, FragmentMark };