UNPKG

1.99 kBJavaScriptView Raw
1import { createSchema } from './create-schema';
2import { mediaWithAltText } from './nodes';
3export var getSchemaBasedOnStage = function (stage) {
4 if (stage === void 0) { stage = 'final'; }
5 var config = {
6 nodes: [
7 'doc',
8 'paragraph',
9 'text',
10 'bulletList',
11 'orderedList',
12 'listItem',
13 'heading',
14 'blockquote',
15 'codeBlock',
16 'panel',
17 'rule',
18 'image',
19 'mention',
20 'media',
21 'mediaGroup',
22 'mediaSingle',
23 'confluenceUnsupportedBlock',
24 'confluenceUnsupportedInline',
25 'confluenceJiraIssue',
26 'expand',
27 'nestedExpand',
28 'extension',
29 'inlineExtension',
30 'bodiedExtension',
31 'hardBreak',
32 'emoji',
33 'table',
34 'tableCell',
35 'tableHeader',
36 'tableRow',
37 'decisionList',
38 'decisionItem',
39 'taskList',
40 'taskItem',
41 'unknownBlock',
42 'date',
43 'status',
44 'placeholder',
45 'layoutSection',
46 'layoutColumn',
47 'inlineCard',
48 'blockCard',
49 'unsupportedBlock',
50 'unsupportedInline',
51 ],
52 marks: [
53 'link',
54 'em',
55 'strong',
56 'strike',
57 'subsup',
58 'underline',
59 'code',
60 'textColor',
61 'confluenceInlineComment',
62 'breakout',
63 'alignment',
64 'indentation',
65 'annotation',
66 ],
67 };
68 if (stage === 'stage0') {
69 config.customNodeSpecs = {
70 media: mediaWithAltText,
71 };
72 }
73 return createSchema(config);
74};
75export var defaultSchema = getSchemaBasedOnStage();
76//# sourceMappingURL=default-schema.js.map
\No newline at end of file