1 | const objectValues = require("object-values");
|
2 |
|
3 | const BLOCKS = require("./blocks");
|
4 |
|
5 | const ALL_BLOCKS = objectValues(BLOCKS);
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | module.exports = {
|
14 | [BLOCKS.DOCUMENT]: [BLOCKS.PARAGRAPH, ...ALL_BLOCKS],
|
15 | [BLOCKS.BLOCKQUOTE]: [BLOCKS.TEXT, ...ALL_BLOCKS],
|
16 | [BLOCKS.TABLE]: [BLOCKS.TABLE_ROW],
|
17 | [BLOCKS.TABLE_ROW]: [BLOCKS.TABLE_CELL],
|
18 | [BLOCKS.LIST_ITEM]: [BLOCKS.TEXT, ...ALL_BLOCKS],
|
19 | [BLOCKS.OL_LIST]: [BLOCKS.LIST_ITEM],
|
20 | [BLOCKS.UL_LIST]: [BLOCKS.LIST_ITEM]
|
21 | }; |
\ | No newline at end of file |