2024-01-15 12:33:15 +00:00
|
|
|
import * as customComponents from '../article-components'
|
|
|
|
import * as apiComponents from './api-docs'
|
|
|
|
import {
|
|
|
|
A,
|
|
|
|
ApiHeading,
|
|
|
|
Blockquote,
|
|
|
|
Divider,
|
|
|
|
Embed,
|
|
|
|
Heading1,
|
|
|
|
Heading2,
|
|
|
|
Heading3,
|
|
|
|
Heading4,
|
|
|
|
Heading5,
|
|
|
|
Heading6,
|
|
|
|
Image,
|
|
|
|
ListItem,
|
|
|
|
OrderedList,
|
|
|
|
Paragraph,
|
2024-02-12 14:30:55 +00:00
|
|
|
Pre,
|
2024-01-15 12:33:15 +00:00
|
|
|
Small,
|
|
|
|
TD,
|
|
|
|
THead,
|
|
|
|
TR,
|
|
|
|
Table,
|
|
|
|
UnorderedList,
|
|
|
|
Video,
|
|
|
|
} from './generic'
|
|
|
|
|
2024-02-12 14:30:55 +00:00
|
|
|
import { Code, CodeBlock } from './code'
|
|
|
|
|
2024-01-15 12:33:15 +00:00
|
|
|
export const components = {
|
2024-02-12 14:30:55 +00:00
|
|
|
a: A,
|
|
|
|
blockquote: Blockquote,
|
|
|
|
code: Code,
|
2024-01-15 12:33:15 +00:00
|
|
|
h1: Heading1,
|
|
|
|
h2: Heading2,
|
|
|
|
h3: Heading3,
|
|
|
|
h4: Heading4,
|
|
|
|
h5: Heading5,
|
|
|
|
h6: Heading6,
|
|
|
|
hr: Divider,
|
2024-02-12 14:30:55 +00:00
|
|
|
img: Image,
|
|
|
|
li: ListItem,
|
|
|
|
ol: OrderedList,
|
2024-01-15 12:33:15 +00:00
|
|
|
p: Paragraph,
|
2024-02-12 14:30:55 +00:00
|
|
|
pre: Pre,
|
2024-01-15 12:33:15 +00:00
|
|
|
table: Table,
|
2024-02-12 14:30:55 +00:00
|
|
|
td: TD,
|
2024-01-15 12:33:15 +00:00
|
|
|
thead: THead,
|
|
|
|
tr: TR,
|
|
|
|
ul: UnorderedList,
|
2024-02-12 14:30:55 +00:00
|
|
|
video: Video,
|
|
|
|
ApiHeading,
|
|
|
|
CodeBlock,
|
|
|
|
Embed,
|
2024-01-15 12:33:15 +00:00
|
|
|
Image,
|
2024-02-12 14:30:55 +00:00
|
|
|
Small: Small,
|
2024-01-15 12:33:15 +00:00
|
|
|
Video,
|
|
|
|
...customComponents,
|
|
|
|
...apiComponents,
|
|
|
|
}
|