@atlaskit/adf-schema 36.4.0 → 36.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/next-schema/full-schema.adf.js +15 -0
- package/dist/cjs/next-schema/groups/annotationGroup.js +8 -0
- package/dist/cjs/next-schema/groups/blockGroup.js +25 -0
- package/dist/cjs/next-schema/groups/blockRootOnlyGroup.js +8 -0
- package/dist/cjs/next-schema/groups/colorGroup.js +9 -0
- package/dist/cjs/next-schema/groups/fontStyleGroup.js +13 -0
- package/dist/cjs/next-schema/groups/inlineGroup.js +18 -0
- package/dist/cjs/next-schema/groups/linkMarkGroup.js +9 -0
- package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +24 -0
- package/dist/cjs/next-schema/groups/searchQueryMarkGroup.js +8 -0
- package/dist/cjs/next-schema/marks/alignmentAndIndentation.js +32 -0
- package/dist/cjs/next-schema/marks/annotation.js +21 -0
- package/dist/cjs/next-schema/marks/border.js +20 -0
- package/dist/cjs/next-schema/marks/breakout.js +18 -0
- package/dist/cjs/next-schema/marks/code.js +15 -0
- package/dist/cjs/next-schema/marks/dataConsumer.js +18 -0
- package/dist/cjs/next-schema/marks/em.js +10 -0
- package/dist/cjs/next-schema/marks/fragment.js +21 -0
- package/dist/cjs/next-schema/marks/link.js +40 -0
- package/dist/cjs/next-schema/marks/strike.js +10 -0
- package/dist/cjs/next-schema/marks/strong.js +10 -0
- package/dist/cjs/next-schema/marks/subsup.js +17 -0
- package/dist/cjs/next-schema/marks/textColor.js +15 -0
- package/dist/cjs/next-schema/marks/underline.js +10 -0
- package/dist/cjs/next-schema/nodes/blockCard.js +34 -0
- package/dist/cjs/next-schema/nodes/blockquote.js +16 -0
- package/dist/cjs/next-schema/nodes/bodiedExtension.js +51 -0
- package/dist/cjs/next-schema/nodes/caption.js +21 -0
- package/dist/cjs/next-schema/nodes/codeBlock.js +27 -0
- package/dist/cjs/next-schema/nodes/date.js +17 -0
- package/dist/cjs/next-schema/nodes/decisionItem.js +22 -0
- package/dist/cjs/next-schema/nodes/decisionList.js +19 -0
- package/dist/cjs/next-schema/nodes/embedCard.js +36 -0
- package/dist/cjs/next-schema/nodes/emoji.js +27 -0
- package/dist/cjs/next-schema/nodes/expand.js +30 -0
- package/dist/cjs/next-schema/nodes/extension.js +45 -0
- package/dist/cjs/next-schema/nodes/extensionFrame.js +33 -0
- package/dist/cjs/next-schema/nodes/hardBreak.js +18 -0
- package/dist/cjs/next-schema/nodes/heading.js +27 -0
- package/dist/cjs/next-schema/nodes/inlineCard.js +27 -0
- package/dist/cjs/next-schema/nodes/inlineExtension.js +36 -0
- package/dist/cjs/next-schema/nodes/layoutColumn.js +21 -0
- package/dist/cjs/next-schema/nodes/layoutSection.js +14 -0
- package/dist/cjs/next-schema/nodes/list.js +34 -0
- package/dist/cjs/next-schema/nodes/media.js +89 -0
- package/dist/cjs/next-schema/nodes/mediaGroup.js +12 -0
- package/dist/cjs/next-schema/nodes/mediaInline.js +78 -0
- package/dist/cjs/next-schema/nodes/mediaSingle.js +39 -0
- package/dist/cjs/next-schema/nodes/mention.js +33 -0
- package/dist/cjs/next-schema/nodes/multiBodiedExtension.js +46 -0
- package/dist/cjs/next-schema/nodes/nestedExpand.js +35 -0
- package/dist/cjs/next-schema/nodes/panel.js +48 -0
- package/dist/cjs/next-schema/nodes/paragraph.js +20 -0
- package/dist/cjs/next-schema/nodes/placeholder.js +16 -0
- package/dist/cjs/next-schema/nodes/rule.js +8 -0
- package/dist/cjs/next-schema/nodes/status.js +31 -0
- package/dist/cjs/next-schema/nodes/table.js +43 -0
- package/dist/cjs/next-schema/nodes/tableCell.js +50 -0
- package/dist/cjs/next-schema/nodes/tableHeader.js +50 -0
- package/dist/cjs/next-schema/nodes/tableRow.js +13 -0
- package/dist/cjs/next-schema/nodes/task.js +37 -0
- package/dist/cjs/next-schema/nodes/text.js +21 -0
- package/dist/es2019/next-schema/full-schema.adf.js +9 -0
- package/dist/es2019/next-schema/groups/annotationGroup.js +2 -0
- package/dist/es2019/next-schema/groups/blockGroup.js +19 -0
- package/dist/es2019/next-schema/groups/blockRootOnlyGroup.js +2 -0
- package/dist/es2019/next-schema/groups/colorGroup.js +3 -0
- package/dist/es2019/next-schema/groups/fontStyleGroup.js +7 -0
- package/dist/es2019/next-schema/groups/inlineGroup.js +12 -0
- package/dist/es2019/next-schema/groups/linkMarkGroup.js +3 -0
- package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +19 -0
- package/dist/es2019/next-schema/groups/searchQueryMarkGroup.js +2 -0
- package/dist/es2019/next-schema/marks/alignmentAndIndentation.js +28 -0
- package/dist/es2019/next-schema/marks/annotation.js +15 -0
- package/dist/es2019/next-schema/marks/border.js +14 -0
- package/dist/es2019/next-schema/marks/breakout.js +12 -0
- package/dist/es2019/next-schema/marks/code.js +9 -0
- package/dist/es2019/next-schema/marks/dataConsumer.js +12 -0
- package/dist/es2019/next-schema/marks/em.js +4 -0
- package/dist/es2019/next-schema/marks/fragment.js +15 -0
- package/dist/es2019/next-schema/marks/link.js +34 -0
- package/dist/es2019/next-schema/marks/strike.js +4 -0
- package/dist/es2019/next-schema/marks/strong.js +4 -0
- package/dist/es2019/next-schema/marks/subsup.js +11 -0
- package/dist/es2019/next-schema/marks/textColor.js +9 -0
- package/dist/es2019/next-schema/marks/underline.js +4 -0
- package/dist/es2019/next-schema/nodes/blockCard.js +28 -0
- package/dist/es2019/next-schema/nodes/blockquote.js +10 -0
- package/dist/es2019/next-schema/nodes/bodiedExtension.js +43 -0
- package/dist/es2019/next-schema/nodes/caption.js +16 -0
- package/dist/es2019/next-schema/nodes/codeBlock.js +21 -0
- package/dist/es2019/next-schema/nodes/date.js +11 -0
- package/dist/es2019/next-schema/nodes/decisionItem.js +16 -0
- package/dist/es2019/next-schema/nodes/decisionList.js +13 -0
- package/dist/es2019/next-schema/nodes/embedCard.js +30 -0
- package/dist/es2019/next-schema/nodes/emoji.js +21 -0
- package/dist/es2019/next-schema/nodes/expand.js +22 -0
- package/dist/es2019/next-schema/nodes/extension.js +39 -0
- package/dist/es2019/next-schema/nodes/extensionFrame.js +27 -0
- package/dist/es2019/next-schema/nodes/hardBreak.js +12 -0
- package/dist/es2019/next-schema/nodes/heading.js +21 -0
- package/dist/es2019/next-schema/nodes/inlineCard.js +21 -0
- package/dist/es2019/next-schema/nodes/inlineExtension.js +30 -0
- package/dist/es2019/next-schema/nodes/layoutColumn.js +15 -0
- package/dist/es2019/next-schema/nodes/layoutSection.js +8 -0
- package/dist/es2019/next-schema/nodes/list.js +28 -0
- package/dist/es2019/next-schema/nodes/media.js +83 -0
- package/dist/es2019/next-schema/nodes/mediaGroup.js +6 -0
- package/dist/es2019/next-schema/nodes/mediaInline.js +72 -0
- package/dist/es2019/next-schema/nodes/mediaSingle.js +33 -0
- package/dist/es2019/next-schema/nodes/mention.js +27 -0
- package/dist/es2019/next-schema/nodes/multiBodiedExtension.js +40 -0
- package/dist/es2019/next-schema/nodes/nestedExpand.js +29 -0
- package/dist/es2019/next-schema/nodes/panel.js +42 -0
- package/dist/es2019/next-schema/nodes/paragraph.js +14 -0
- package/dist/es2019/next-schema/nodes/placeholder.js +10 -0
- package/dist/es2019/next-schema/nodes/rule.js +2 -0
- package/dist/es2019/next-schema/nodes/status.js +25 -0
- package/dist/es2019/next-schema/nodes/table.js +37 -0
- package/dist/es2019/next-schema/nodes/tableCell.js +44 -0
- package/dist/es2019/next-schema/nodes/tableHeader.js +44 -0
- package/dist/es2019/next-schema/nodes/tableRow.js +7 -0
- package/dist/es2019/next-schema/nodes/task.js +31 -0
- package/dist/es2019/next-schema/nodes/text.js +15 -0
- package/dist/esm/next-schema/full-schema.adf.js +9 -0
- package/dist/esm/next-schema/groups/annotationGroup.js +2 -0
- package/dist/esm/next-schema/groups/blockGroup.js +19 -0
- package/dist/esm/next-schema/groups/blockRootOnlyGroup.js +2 -0
- package/dist/esm/next-schema/groups/colorGroup.js +3 -0
- package/dist/esm/next-schema/groups/fontStyleGroup.js +7 -0
- package/dist/esm/next-schema/groups/inlineGroup.js +12 -0
- package/dist/esm/next-schema/groups/linkMarkGroup.js +3 -0
- package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +19 -0
- package/dist/esm/next-schema/groups/searchQueryMarkGroup.js +2 -0
- package/dist/esm/next-schema/marks/alignmentAndIndentation.js +28 -0
- package/dist/esm/next-schema/marks/annotation.js +15 -0
- package/dist/esm/next-schema/marks/border.js +14 -0
- package/dist/esm/next-schema/marks/breakout.js +12 -0
- package/dist/esm/next-schema/marks/code.js +9 -0
- package/dist/esm/next-schema/marks/dataConsumer.js +12 -0
- package/dist/esm/next-schema/marks/em.js +4 -0
- package/dist/esm/next-schema/marks/fragment.js +15 -0
- package/dist/esm/next-schema/marks/link.js +34 -0
- package/dist/esm/next-schema/marks/strike.js +4 -0
- package/dist/esm/next-schema/marks/strong.js +4 -0
- package/dist/esm/next-schema/marks/subsup.js +11 -0
- package/dist/esm/next-schema/marks/textColor.js +9 -0
- package/dist/esm/next-schema/marks/underline.js +4 -0
- package/dist/esm/next-schema/nodes/blockCard.js +28 -0
- package/dist/esm/next-schema/nodes/blockquote.js +10 -0
- package/dist/esm/next-schema/nodes/bodiedExtension.js +44 -0
- package/dist/esm/next-schema/nodes/caption.js +16 -0
- package/dist/esm/next-schema/nodes/codeBlock.js +21 -0
- package/dist/esm/next-schema/nodes/date.js +11 -0
- package/dist/esm/next-schema/nodes/decisionItem.js +16 -0
- package/dist/esm/next-schema/nodes/decisionList.js +13 -0
- package/dist/esm/next-schema/nodes/embedCard.js +30 -0
- package/dist/esm/next-schema/nodes/emoji.js +21 -0
- package/dist/esm/next-schema/nodes/expand.js +23 -0
- package/dist/esm/next-schema/nodes/extension.js +39 -0
- package/dist/esm/next-schema/nodes/extensionFrame.js +27 -0
- package/dist/esm/next-schema/nodes/hardBreak.js +12 -0
- package/dist/esm/next-schema/nodes/heading.js +21 -0
- package/dist/esm/next-schema/nodes/inlineCard.js +21 -0
- package/dist/esm/next-schema/nodes/inlineExtension.js +30 -0
- package/dist/esm/next-schema/nodes/layoutColumn.js +15 -0
- package/dist/esm/next-schema/nodes/layoutSection.js +8 -0
- package/dist/esm/next-schema/nodes/list.js +28 -0
- package/dist/esm/next-schema/nodes/media.js +83 -0
- package/dist/esm/next-schema/nodes/mediaGroup.js +6 -0
- package/dist/esm/next-schema/nodes/mediaInline.js +72 -0
- package/dist/esm/next-schema/nodes/mediaSingle.js +33 -0
- package/dist/esm/next-schema/nodes/mention.js +27 -0
- package/dist/esm/next-schema/nodes/multiBodiedExtension.js +40 -0
- package/dist/esm/next-schema/nodes/nestedExpand.js +29 -0
- package/dist/esm/next-schema/nodes/panel.js +42 -0
- package/dist/esm/next-schema/nodes/paragraph.js +14 -0
- package/dist/esm/next-schema/nodes/placeholder.js +10 -0
- package/dist/esm/next-schema/nodes/rule.js +2 -0
- package/dist/esm/next-schema/nodes/status.js +25 -0
- package/dist/esm/next-schema/nodes/table.js +37 -0
- package/dist/esm/next-schema/nodes/tableCell.js +44 -0
- package/dist/esm/next-schema/nodes/tableHeader.js +44 -0
- package/dist/esm/next-schema/nodes/tableRow.js +7 -0
- package/dist/esm/next-schema/nodes/task.js +31 -0
- package/dist/esm/next-schema/nodes/text.js +15 -0
- package/dist/types/next-schema/full-schema.adf.d.ts +18 -0
- package/dist/types/next-schema/groups/annotationGroup.d.ts +1 -0
- package/dist/types/next-schema/groups/blockGroup.d.ts +1 -0
- package/dist/types/next-schema/groups/blockRootOnlyGroup.d.ts +1 -0
- package/dist/types/next-schema/groups/colorGroup.d.ts +1 -0
- package/dist/types/next-schema/groups/fontStyleGroup.d.ts +1 -0
- package/dist/types/next-schema/groups/inlineGroup.d.ts +1 -0
- package/dist/types/next-schema/groups/linkMarkGroup.d.ts +1 -0
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +114 -0
- package/dist/types/next-schema/groups/searchQueryMarkGroup.d.ts +1 -0
- package/dist/types/next-schema/marks/alignmentAndIndentation.d.ts +2 -0
- package/dist/types/next-schema/marks/annotation.d.ts +1 -0
- package/dist/types/next-schema/marks/border.d.ts +1 -0
- package/dist/types/next-schema/marks/breakout.d.ts +1 -0
- package/dist/types/next-schema/marks/code.d.ts +1 -0
- package/dist/types/next-schema/marks/dataConsumer.d.ts +1 -0
- package/dist/types/next-schema/marks/em.d.ts +1 -0
- package/dist/types/next-schema/marks/fragment.d.ts +1 -0
- package/dist/types/next-schema/marks/link.d.ts +1 -0
- package/dist/types/next-schema/marks/strike.d.ts +1 -0
- package/dist/types/next-schema/marks/strong.d.ts +1 -0
- package/dist/types/next-schema/marks/subsup.d.ts +1 -0
- package/dist/types/next-schema/marks/textColor.d.ts +1 -0
- package/dist/types/next-schema/marks/underline.d.ts +1 -0
- package/dist/types/next-schema/nodes/blockCard.d.ts +17 -0
- package/dist/types/next-schema/nodes/blockquote.d.ts +19 -0
- package/dist/types/next-schema/nodes/bodiedExtension.d.ts +19 -0
- package/dist/types/next-schema/nodes/caption.d.ts +17 -0
- package/dist/types/next-schema/nodes/codeBlock.d.ts +38 -0
- package/dist/types/next-schema/nodes/date.d.ts +17 -0
- package/dist/types/next-schema/nodes/decisionItem.d.ts +17 -0
- package/dist/types/next-schema/nodes/decisionList.d.ts +17 -0
- package/dist/types/next-schema/nodes/embedCard.d.ts +17 -0
- package/dist/types/next-schema/nodes/emoji.d.ts +17 -0
- package/dist/types/next-schema/nodes/expand.d.ts +19 -0
- package/dist/types/next-schema/nodes/extension.d.ts +17 -0
- package/dist/types/next-schema/nodes/extensionFrame.d.ts +17 -0
- package/dist/types/next-schema/nodes/hardBreak.d.ts +17 -0
- package/dist/types/next-schema/nodes/heading.d.ts +42 -0
- package/dist/types/next-schema/nodes/inlineCard.d.ts +19 -0
- package/dist/types/next-schema/nodes/inlineExtension.d.ts +17 -0
- package/dist/types/next-schema/nodes/layoutColumn.d.ts +17 -0
- package/dist/types/next-schema/nodes/layoutSection.d.ts +17 -0
- package/dist/types/next-schema/nodes/list.d.ts +34 -0
- package/dist/types/next-schema/nodes/media.d.ts +17 -0
- package/dist/types/next-schema/nodes/mediaGroup.d.ts +17 -0
- package/dist/types/next-schema/nodes/mediaInline.d.ts +17 -0
- package/dist/types/next-schema/nodes/mediaSingle.d.ts +20 -0
- package/dist/types/next-schema/nodes/mention.d.ts +17 -0
- package/dist/types/next-schema/nodes/multiBodiedExtension.d.ts +17 -0
- package/dist/types/next-schema/nodes/nestedExpand.d.ts +17 -0
- package/dist/types/next-schema/nodes/panel.d.ts +17 -0
- package/dist/types/next-schema/nodes/paragraph.d.ts +23 -0
- package/dist/types/next-schema/nodes/placeholder.d.ts +17 -0
- package/dist/types/next-schema/nodes/rule.d.ts +17 -0
- package/dist/types/next-schema/nodes/status.d.ts +17 -0
- package/dist/types/next-schema/nodes/table.d.ts +17 -0
- package/dist/types/next-schema/nodes/tableCell.d.ts +17 -0
- package/dist/types/next-schema/nodes/tableHeader.d.ts +17 -0
- package/dist/types/next-schema/nodes/tableRow.d.ts +17 -0
- package/dist/types/next-schema/nodes/task.d.ts +34 -0
- package/dist/types/next-schema/nodes/text.d.ts +21 -0
- package/package.json +3 -3
- package/schema-generators/full-schema.ts +7 -1
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.nestedExpand = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _blockquote = require("./blockquote");
|
9
|
+
var _codeBlock = require("./codeBlock");
|
10
|
+
var _decisionList = require("./decisionList");
|
11
|
+
var _heading = require("./heading");
|
12
|
+
var _list = require("./list");
|
13
|
+
var _mediaGroup = require("./mediaGroup");
|
14
|
+
var _mediaSingle = require("./mediaSingle");
|
15
|
+
var _panel = require("./panel");
|
16
|
+
var _paragraph = require("./paragraph");
|
17
|
+
var _rule = require("./rule");
|
18
|
+
var _task = require("./task");
|
19
|
+
var nestedExpand = exports.nestedExpand = (0, _adfSchemaGenerator.adfNode)('nestedExpand').define({
|
20
|
+
isolating: true,
|
21
|
+
selectable: true,
|
22
|
+
attrs: {
|
23
|
+
title: {
|
24
|
+
type: 'string',
|
25
|
+
default: '',
|
26
|
+
optional: true
|
27
|
+
},
|
28
|
+
__expanded: {
|
29
|
+
type: 'boolean',
|
30
|
+
default: true,
|
31
|
+
optional: true
|
32
|
+
}
|
33
|
+
},
|
34
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph, _heading.heading, _mediaSingle.mediaSingle, _mediaGroup.mediaGroup, _codeBlock.codeBlock, _list.bulletList, _list.orderedList, _task.taskList, _decisionList.decisionList, _rule.rule, _panel.panel, _blockquote.blockquote))]
|
35
|
+
});
|
@@ -0,0 +1,48 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.panel = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _blockCard = require("./blockCard");
|
9
|
+
var _codeBlock = require("./codeBlock");
|
10
|
+
var _decisionList = require("./decisionList");
|
11
|
+
var _heading = require("./heading");
|
12
|
+
var _list = require("./list");
|
13
|
+
var _mediaGroup = require("./mediaGroup");
|
14
|
+
var _mediaSingle = require("./mediaSingle");
|
15
|
+
var _paragraph = require("./paragraph");
|
16
|
+
var _rule = require("./rule");
|
17
|
+
var _task = require("./task");
|
18
|
+
var panel = exports.panel = (0, _adfSchemaGenerator.adfNode)('panel').define({
|
19
|
+
selectable: true,
|
20
|
+
attrs: {
|
21
|
+
panelType: {
|
22
|
+
type: 'enum',
|
23
|
+
values: ['info', 'note', 'tip', 'warning', 'error', 'success'],
|
24
|
+
default: 'info'
|
25
|
+
},
|
26
|
+
panelIcon: {
|
27
|
+
type: 'string',
|
28
|
+
default: null,
|
29
|
+
optional: true
|
30
|
+
},
|
31
|
+
panelIconId: {
|
32
|
+
type: 'string',
|
33
|
+
default: null,
|
34
|
+
optional: true
|
35
|
+
},
|
36
|
+
panelIconText: {
|
37
|
+
type: 'string',
|
38
|
+
default: null,
|
39
|
+
optional: true
|
40
|
+
},
|
41
|
+
panelColor: {
|
42
|
+
type: 'string',
|
43
|
+
default: null,
|
44
|
+
optional: true
|
45
|
+
}
|
46
|
+
},
|
47
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph, _heading.heading, _list.bulletList, _list.orderedList, _blockCard.blockCard, _codeBlock.codeBlock, _mediaGroup.mediaGroup, _mediaSingle.mediaSingle, _decisionList.decisionList, _task.taskList, _rule.rule))]
|
48
|
+
});
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.paragraph = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _inlineGroup = require("../groups/inlineGroup");
|
9
|
+
var _alignmentAndIndentation = require("../marks/alignmentAndIndentation");
|
10
|
+
var paragraph = exports.paragraph = (0, _adfSchemaGenerator.adfNode)('paragraph').define({
|
11
|
+
selectable: false,
|
12
|
+
marks: [_alignmentAndIndentation.alignment],
|
13
|
+
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup))]
|
14
|
+
}).variant('with_alignment', {
|
15
|
+
marks: [_alignmentAndIndentation.alignment]
|
16
|
+
}).variant('with_indentation', {
|
17
|
+
marks: [_alignmentAndIndentation.indentation]
|
18
|
+
}).variant('with_marks', {
|
19
|
+
marks: [_alignmentAndIndentation.alignment, _alignmentAndIndentation.indentation]
|
20
|
+
});
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.placeholder = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var placeholder = exports.placeholder = (0, _adfSchemaGenerator.adfNode)('placeholder').define({
|
9
|
+
selectable: false,
|
10
|
+
attrs: {
|
11
|
+
text: {
|
12
|
+
type: 'string',
|
13
|
+
default: ''
|
14
|
+
}
|
15
|
+
}
|
16
|
+
});
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.status = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var status = exports.status = (0, _adfSchemaGenerator.adfNode)('status').define({
|
9
|
+
selectable: true,
|
10
|
+
attrs: {
|
11
|
+
text: {
|
12
|
+
type: 'string',
|
13
|
+
default: ''
|
14
|
+
},
|
15
|
+
color: {
|
16
|
+
type: 'enum',
|
17
|
+
values: ['neutral', 'purple', 'blue', 'red', 'yellow', 'green'],
|
18
|
+
default: ''
|
19
|
+
},
|
20
|
+
localId: {
|
21
|
+
type: 'string',
|
22
|
+
optional: true,
|
23
|
+
default: ''
|
24
|
+
},
|
25
|
+
style: {
|
26
|
+
type: 'string',
|
27
|
+
optional: true,
|
28
|
+
default: ''
|
29
|
+
}
|
30
|
+
}
|
31
|
+
});
|
@@ -0,0 +1,43 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.table = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _fragment = require("../marks/fragment");
|
9
|
+
var _tableRow = require("./tableRow");
|
10
|
+
var table = exports.table = (0, _adfSchemaGenerator.adfNode)('table').define({
|
11
|
+
isolating: true,
|
12
|
+
selectable: true,
|
13
|
+
marks: [_fragment.fragment],
|
14
|
+
attrs: {
|
15
|
+
isNumberColumnEnabled: {
|
16
|
+
type: 'boolean',
|
17
|
+
default: false,
|
18
|
+
optional: true
|
19
|
+
},
|
20
|
+
layout: {
|
21
|
+
type: 'enum',
|
22
|
+
values: ['default', 'wide', 'full-width'],
|
23
|
+
default: 'default',
|
24
|
+
optional: true
|
25
|
+
},
|
26
|
+
localId: {
|
27
|
+
type: 'string',
|
28
|
+
default: '',
|
29
|
+
optional: true
|
30
|
+
},
|
31
|
+
width: {
|
32
|
+
type: 'number',
|
33
|
+
default: null,
|
34
|
+
optional: true
|
35
|
+
},
|
36
|
+
__autoSize: {
|
37
|
+
type: 'boolean',
|
38
|
+
default: false,
|
39
|
+
optional: true
|
40
|
+
}
|
41
|
+
},
|
42
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_tableRow.tableRow))]
|
43
|
+
});
|
@@ -0,0 +1,50 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.tableCell = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _blockCard = require("./blockCard");
|
9
|
+
var _blockquote = require("./blockquote");
|
10
|
+
var _codeBlock = require("./codeBlock");
|
11
|
+
var _decisionList = require("./decisionList");
|
12
|
+
var _embedCard = require("./embedCard");
|
13
|
+
var _extension = require("./extension");
|
14
|
+
var _heading = require("./heading");
|
15
|
+
var _list = require("./list");
|
16
|
+
var _mediaGroup = require("./mediaGroup");
|
17
|
+
var _mediaSingle = require("./mediaSingle");
|
18
|
+
var _nestedExpand = require("./nestedExpand");
|
19
|
+
var _panel = require("./panel");
|
20
|
+
var _paragraph = require("./paragraph");
|
21
|
+
var _rule = require("./rule");
|
22
|
+
var _task = require("./task");
|
23
|
+
var tableCell = exports.tableCell = (0, _adfSchemaGenerator.adfNode)('tableCell').define({
|
24
|
+
isolating: true,
|
25
|
+
selectable: false,
|
26
|
+
tableRole: 'cell',
|
27
|
+
attrs: {
|
28
|
+
colspan: {
|
29
|
+
type: 'number',
|
30
|
+
default: 1,
|
31
|
+
optional: true
|
32
|
+
},
|
33
|
+
rowspan: {
|
34
|
+
type: 'number',
|
35
|
+
default: 1,
|
36
|
+
optional: true
|
37
|
+
},
|
38
|
+
colswidth: {
|
39
|
+
type: 'numberList',
|
40
|
+
default: [],
|
41
|
+
optional: true
|
42
|
+
},
|
43
|
+
background: {
|
44
|
+
type: 'string',
|
45
|
+
default: '',
|
46
|
+
optional: true
|
47
|
+
}
|
48
|
+
},
|
49
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_panel.panel, _paragraph.paragraph, _paragraph.paragraph.use('with_marks'), _blockquote.blockquote, _list.orderedList, _list.bulletList, _rule.rule, _heading.heading, _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _codeBlock.codeBlock, _mediaGroup.mediaGroup, _mediaSingle.mediaSingle, _decisionList.decisionList, _task.taskList, _extension.extension, _blockCard.blockCard, _nestedExpand.nestedExpand, _embedCard.embedCard))]
|
50
|
+
});
|
@@ -0,0 +1,50 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.tableHeader = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _blockCard = require("./blockCard");
|
9
|
+
var _blockquote = require("./blockquote");
|
10
|
+
var _codeBlock = require("./codeBlock");
|
11
|
+
var _decisionList = require("./decisionList");
|
12
|
+
var _embedCard = require("./embedCard");
|
13
|
+
var _extension = require("./extension");
|
14
|
+
var _heading = require("./heading");
|
15
|
+
var _list = require("./list");
|
16
|
+
var _mediaGroup = require("./mediaGroup");
|
17
|
+
var _mediaSingle = require("./mediaSingle");
|
18
|
+
var _nestedExpand = require("./nestedExpand");
|
19
|
+
var _panel = require("./panel");
|
20
|
+
var _paragraph = require("./paragraph");
|
21
|
+
var _rule = require("./rule");
|
22
|
+
var _task = require("./task");
|
23
|
+
var tableHeader = exports.tableHeader = (0, _adfSchemaGenerator.adfNode)('tableHeader').define({
|
24
|
+
isolating: true,
|
25
|
+
selectable: false,
|
26
|
+
tableRole: 'header_cell',
|
27
|
+
attrs: {
|
28
|
+
colspan: {
|
29
|
+
type: 'number',
|
30
|
+
default: 1,
|
31
|
+
optional: true
|
32
|
+
},
|
33
|
+
rowspan: {
|
34
|
+
type: 'number',
|
35
|
+
default: 1,
|
36
|
+
optional: true
|
37
|
+
},
|
38
|
+
colswidth: {
|
39
|
+
type: 'numberList',
|
40
|
+
default: [],
|
41
|
+
optional: true
|
42
|
+
},
|
43
|
+
background: {
|
44
|
+
type: 'string',
|
45
|
+
default: '',
|
46
|
+
optional: true
|
47
|
+
}
|
48
|
+
},
|
49
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_panel.panel, _paragraph.paragraph, _paragraph.paragraph.use('with_marks'), _blockquote.blockquote, _list.orderedList, _list.bulletList, _rule.rule, _heading.heading, _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _codeBlock.codeBlock, _mediaGroup.mediaGroup, _mediaSingle.mediaSingle, _decisionList.decisionList, _task.taskList, _extension.extension, _blockCard.blockCard, _nestedExpand.nestedExpand, _embedCard.embedCard))]
|
50
|
+
});
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.tableRow = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _tableCell = require("./tableCell");
|
9
|
+
var _tableHeader = require("./tableHeader");
|
10
|
+
var tableRow = exports.tableRow = (0, _adfSchemaGenerator.adfNode)('tableRow').define({
|
11
|
+
selectable: false,
|
12
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_tableCell.tableCell, _tableHeader.tableHeader))]
|
13
|
+
});
|
@@ -0,0 +1,37 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.taskList = exports.taskItem = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _inlineGroup = require("../groups/inlineGroup");
|
9
|
+
var taskItem = exports.taskItem = (0, _adfSchemaGenerator.adfNode)('taskItem');
|
10
|
+
var taskList = exports.taskList = (0, _adfSchemaGenerator.adfNode)('taskList');
|
11
|
+
taskItem.define({
|
12
|
+
defining: true,
|
13
|
+
selectable: false,
|
14
|
+
attrs: {
|
15
|
+
localId: {
|
16
|
+
type: 'string',
|
17
|
+
default: ''
|
18
|
+
},
|
19
|
+
state: {
|
20
|
+
type: 'enum',
|
21
|
+
values: ['TODO', 'DONE'],
|
22
|
+
default: 'TODO'
|
23
|
+
}
|
24
|
+
},
|
25
|
+
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup))]
|
26
|
+
});
|
27
|
+
taskList.define({
|
28
|
+
defining: true,
|
29
|
+
selectable: false,
|
30
|
+
attrs: {
|
31
|
+
localId: {
|
32
|
+
type: 'string',
|
33
|
+
default: ''
|
34
|
+
}
|
35
|
+
},
|
36
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(taskItem)), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(taskItem, taskList))]
|
37
|
+
});
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.text = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _annotation = require("../marks/annotation");
|
9
|
+
var _code = require("../marks/code");
|
10
|
+
var _em = require("../marks/em");
|
11
|
+
var _link = require("../marks/link");
|
12
|
+
var _strike = require("../marks/strike");
|
13
|
+
var _strong = require("../marks/strong");
|
14
|
+
var _subsup = require("../marks/subsup");
|
15
|
+
var _textColor = require("../marks/textColor");
|
16
|
+
var _underline = require("../marks/underline");
|
17
|
+
var text = exports.text = (0, _adfSchemaGenerator.adfNode)('text').define({}).variant('formatted', {
|
18
|
+
marks: [_link.link, _em.em, _strong.strong, _strike.strike, _subsup.subsup, _underline.underline, _textColor.textColor, _annotation.annotation]
|
19
|
+
}).variant('code_inline', {
|
20
|
+
marks: [_code.code, _link.link, _annotation.annotation]
|
21
|
+
});
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { blockGroup } from './groups/blockGroup';
|
3
|
+
import { layoutSection } from './nodes/layoutSection';
|
4
|
+
import { blockRootOnlyGroup } from './groups/blockRootOnlyGroup';
|
5
|
+
const doc = adfNode('doc').define({
|
6
|
+
root: true,
|
7
|
+
content: [$onePlus($or(blockGroup, layoutSection, blockRootOnlyGroup))]
|
8
|
+
});
|
9
|
+
export default doc;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { blockCard } from '../nodes/blockCard';
|
3
|
+
import { blockquote } from '../nodes/blockquote';
|
4
|
+
import { bodiedExtension } from '../nodes/bodiedExtension';
|
5
|
+
import { codeBlock } from '../nodes/codeBlock';
|
6
|
+
import { decisionList } from '../nodes/decisionList';
|
7
|
+
import { embedCard } from '../nodes/embedCard';
|
8
|
+
import { expand } from '../nodes/expand';
|
9
|
+
import { extension } from '../nodes/extension';
|
10
|
+
import { heading } from '../nodes/heading';
|
11
|
+
import { bulletList, orderedList } from '../nodes/list';
|
12
|
+
import { mediaGroup } from '../nodes/mediaGroup';
|
13
|
+
import { mediaSingle } from '../nodes/mediaSingle';
|
14
|
+
import { panel } from '../nodes/panel';
|
15
|
+
import { paragraph } from '../nodes/paragraph';
|
16
|
+
import { rule } from '../nodes/rule';
|
17
|
+
import { table } from '../nodes/table';
|
18
|
+
import { taskList } from '../nodes/task';
|
19
|
+
export const blockGroup = adfNodeGroup('block', [blockCard, codeBlock, mediaSingle, paragraph.use('with_marks'), taskList, orderedList, bulletList, blockquote, decisionList, embedCard, extension, heading, mediaGroup, rule, panel, table, bodiedExtension, expand]);
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { adfMarkGroup } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { em } from '../marks/em';
|
3
|
+
import { strike } from '../marks/strike';
|
4
|
+
import { strong } from '../marks/strong';
|
5
|
+
import { subsup } from '../marks/subsup';
|
6
|
+
import { underline } from '../marks/underline';
|
7
|
+
export const fontStyleGroup = adfMarkGroup('fontStyle', [em, strike, strong, subsup, underline]);
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { date } from '../nodes/date';
|
3
|
+
import { emoji } from '../nodes/emoji';
|
4
|
+
import { hardBreak } from '../nodes/hardBreak';
|
5
|
+
import { inlineCard } from '../nodes/inlineCard';
|
6
|
+
import { mention } from '../nodes/mention';
|
7
|
+
import { placeholder } from '../nodes/placeholder';
|
8
|
+
import { text } from '../nodes/text';
|
9
|
+
import { status } from '../nodes/status';
|
10
|
+
import { inlineExtension } from '../nodes/inlineExtension';
|
11
|
+
import { mediaInline } from '../nodes/mediaInline';
|
12
|
+
export const inlineGroup = adfNodeGroup('inline', [text, date, emoji, hardBreak, inlineCard, mention, placeholder, status, inlineExtension, mediaInline]);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { blockCard } from '../nodes/blockCard';
|
2
|
+
import { blockquote } from '../nodes/blockquote';
|
3
|
+
import { codeBlock } from '../nodes/codeBlock';
|
4
|
+
import { decisionList } from '../nodes/decisionList';
|
5
|
+
import { embedCard } from '../nodes/embedCard';
|
6
|
+
import { extension } from '../nodes/extension';
|
7
|
+
import { heading } from '../nodes/heading';
|
8
|
+
import { bulletList, orderedList } from '../nodes/list';
|
9
|
+
import { mediaGroup } from '../nodes/mediaGroup';
|
10
|
+
import { mediaSingle } from '../nodes/mediaSingle';
|
11
|
+
import { panel } from '../nodes/panel';
|
12
|
+
import { paragraph } from '../nodes/paragraph';
|
13
|
+
import { rule } from '../nodes/rule';
|
14
|
+
import { table } from '../nodes/table';
|
15
|
+
import { taskList } from '../nodes/task';
|
16
|
+
|
17
|
+
// Not an actual group, but a collection of nodes that can't be nested inside each other
|
18
|
+
// TODO: make it an actual group
|
19
|
+
export const nonNestableBlockContent = [panel, paragraph, blockquote, orderedList, bulletList, rule, heading, codeBlock, mediaGroup, mediaSingle, decisionList, taskList, table, extension, blockCard, embedCard];
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { adfMark } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { adfMarkGroup } from '@atlaskit/adf-schema-generator';
|
3
|
+
|
4
|
+
// These marks defined together because they form a cycle within the excludes.
|
5
|
+
export const alignment = adfMark('alignment');
|
6
|
+
export const indentation = adfMark('indentation');
|
7
|
+
const alignementMarkExclusionGroup = adfMarkGroup('alignmentMarkExclusion', [alignment]);
|
8
|
+
const indentationMarkExclusionGroup = adfMarkGroup('indentationMarkExclusion', [indentation]);
|
9
|
+
alignment.define({
|
10
|
+
excludes: [indentationMarkExclusionGroup],
|
11
|
+
attrs: {
|
12
|
+
align: {
|
13
|
+
type: 'enum',
|
14
|
+
values: ['center', 'end'],
|
15
|
+
default: 'center'
|
16
|
+
}
|
17
|
+
}
|
18
|
+
});
|
19
|
+
indentation.define({
|
20
|
+
excludes: [alignementMarkExclusionGroup],
|
21
|
+
attrs: {
|
22
|
+
level: {
|
23
|
+
type: 'number',
|
24
|
+
minimum: 0,
|
25
|
+
maximum: 6
|
26
|
+
}
|
27
|
+
}
|
28
|
+
});
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { adfMark } from '@atlaskit/adf-schema-generator';
|
2
|
+
export const annotation = adfMark('annotation').define({
|
3
|
+
inclusive: true,
|
4
|
+
attrs: {
|
5
|
+
id: {
|
6
|
+
type: 'string',
|
7
|
+
default: ''
|
8
|
+
},
|
9
|
+
annotationType: {
|
10
|
+
type: 'enum',
|
11
|
+
values: ['inlineComment'],
|
12
|
+
default: 'inlineComment'
|
13
|
+
}
|
14
|
+
}
|
15
|
+
});
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { adfMark } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { colorGroup } from '../groups/colorGroup';
|
3
|
+
import { fontStyleGroup } from '../groups/fontStyleGroup';
|
4
|
+
import { linkMarkGroup } from '../groups/linkMarkGroup';
|
5
|
+
import { searchQueryMarkGroup } from '../groups/searchQueryMarkGroup';
|
6
|
+
export const code = adfMark('code').define({
|
7
|
+
excludes: [fontStyleGroup, linkMarkGroup, searchQueryMarkGroup, colorGroup],
|
8
|
+
inclusive: true
|
9
|
+
});
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { adfMark } from '@atlaskit/adf-schema-generator';
|
2
|
+
export const fragment = adfMark('fragment').define({
|
3
|
+
inclusive: false,
|
4
|
+
attrs: {
|
5
|
+
localId: {
|
6
|
+
type: 'string',
|
7
|
+
default: ''
|
8
|
+
},
|
9
|
+
name: {
|
10
|
+
type: 'string',
|
11
|
+
default: null,
|
12
|
+
optional: true
|
13
|
+
}
|
14
|
+
}
|
15
|
+
});
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { adfMark } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { linkMarkGroup } from '../groups/linkMarkGroup';
|
3
|
+
export const link = adfMark('link').define({
|
4
|
+
excludes: [linkMarkGroup],
|
5
|
+
inclusive: false,
|
6
|
+
attrs: {
|
7
|
+
href: {
|
8
|
+
type: 'string'
|
9
|
+
},
|
10
|
+
title: {
|
11
|
+
type: 'string',
|
12
|
+
optional: true
|
13
|
+
},
|
14
|
+
id: {
|
15
|
+
type: 'string',
|
16
|
+
optional: true
|
17
|
+
},
|
18
|
+
collection: {
|
19
|
+
type: 'string',
|
20
|
+
optional: true
|
21
|
+
},
|
22
|
+
occurenceKey: {
|
23
|
+
type: 'string',
|
24
|
+
optional: true
|
25
|
+
},
|
26
|
+
// TODO: expand object
|
27
|
+
// packages/adf-schema/src/schema/marks/link.ts
|
28
|
+
__confluenceMetadata: {
|
29
|
+
type: 'object',
|
30
|
+
optional: true,
|
31
|
+
default: null
|
32
|
+
}
|
33
|
+
}
|
34
|
+
});
|