Merge branch 'fix-mail-constant' into 'main'
[ProtonMail-WebClient.git] / applications / docs-editor / src / app / AllNodes.ts
blobc931500ae4bd3fff7d3f1dadf48efdabeecac559
1 import { CodeHighlightNode, CodeNode } from '@lexical/code'
2 import { HashtagNode } from '@lexical/hashtag'
3 import { AutoLinkNode, LinkNode } from '@lexical/link'
4 import { ListItemNode, ListNode } from '@lexical/list'
5 import { OverflowNode } from '@lexical/overflow'
6 import { HorizontalRuleNode } from '@lexical/react/LexicalHorizontalRuleNode'
7 import { HeadingNode, QuoteNode } from '@lexical/rich-text'
8 import { TableCellNode, TableNode, TableRowNode } from '@lexical/table'
9 import { ImageNode } from './Plugins/Image/ImageNode'
10 import { CommentThreadMarkNode } from './Plugins/Comments/CommentThreadMarkNode'
11 import { CustomListNode } from './Plugins/CustomList/CustomListNode'
12 import { ProtonNode } from './Plugins/Suggestions/ProtonNode'
14 const CommonNodes = [
15   AutoLinkNode,
16   CodeHighlightNode,
17   CodeNode,
18   CommentThreadMarkNode,
19   HashtagNode,
20   HeadingNode,
21   HorizontalRuleNode,
22   ImageNode,
23   LinkNode,
24   ListItemNode,
25   ListNode,
26   CustomListNode,
27   {
28     replace: ListNode,
29     with: (node: ListNode) => {
30       return new CustomListNode(node.__listType, node.__start)
31     },
32   },
33   OverflowNode,
34   QuoteNode,
35   TableCellNode,
36   TableNode,
37   TableRowNode,
38   ProtonNode,
41 export const AllNodes = CommonNodes