@atlaskit/adf-schema 36.12.2 → 36.13.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.
Files changed (152) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/next-schema/full-schema.adf.js +2 -1
  3. package/dist/cjs/next-schema/groups/blockGroup.js +3 -1
  4. package/dist/cjs/next-schema/groups/inlineGroup.js +3 -1
  5. package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
  6. package/dist/cjs/next-schema/marks/unsupportedMark.js +16 -0
  7. package/dist/cjs/next-schema/marks/unsupportedNodeAttribute.js +20 -0
  8. package/dist/cjs/next-schema/nodes/blockCard.js +5 -0
  9. package/dist/cjs/next-schema/nodes/blockquote.js +6 -2
  10. package/dist/cjs/next-schema/nodes/bodiedExtension.js +4 -1
  11. package/dist/cjs/next-schema/nodes/caption.js +5 -2
  12. package/dist/cjs/next-schema/nodes/codeBlock.js +6 -2
  13. package/dist/cjs/next-schema/nodes/confluenceUnsupportedBlock.js +16 -0
  14. package/dist/cjs/next-schema/nodes/confluenceUnsupportedInline.js +18 -0
  15. package/dist/cjs/next-schema/nodes/date.js +3 -0
  16. package/dist/cjs/next-schema/nodes/decisionItem.js +5 -1
  17. package/dist/cjs/next-schema/nodes/decisionList.js +5 -1
  18. package/dist/cjs/next-schema/nodes/embedCard.js +3 -0
  19. package/dist/cjs/next-schema/nodes/emoji.js +3 -0
  20. package/dist/cjs/next-schema/nodes/expand.js +4 -1
  21. package/dist/cjs/next-schema/nodes/extension.js +4 -1
  22. package/dist/cjs/next-schema/nodes/extensionFrame.js +3 -1
  23. package/dist/cjs/next-schema/nodes/hardBreak.js +3 -0
  24. package/dist/cjs/next-schema/nodes/heading.js +9 -6
  25. package/dist/cjs/next-schema/nodes/inlineCard.js +4 -1
  26. package/dist/cjs/next-schema/nodes/inlineExtension.js +3 -0
  27. package/dist/cjs/next-schema/nodes/layoutColumn.js +3 -0
  28. package/dist/cjs/next-schema/nodes/layoutSection.js +5 -2
  29. package/dist/cjs/next-schema/nodes/list.js +7 -1
  30. package/dist/cjs/next-schema/nodes/media.js +3 -1
  31. package/dist/cjs/next-schema/nodes/mediaGroup.js +5 -1
  32. package/dist/cjs/next-schema/nodes/mediaInline.js +3 -1
  33. package/dist/cjs/next-schema/nodes/mediaSingle.js +5 -2
  34. package/dist/cjs/next-schema/nodes/mention.js +3 -0
  35. package/dist/cjs/next-schema/nodes/multiBodiedExtension.js +3 -0
  36. package/dist/cjs/next-schema/nodes/nestedExpand.js +5 -1
  37. package/dist/cjs/next-schema/nodes/panel.js +5 -1
  38. package/dist/cjs/next-schema/nodes/paragraph.js +8 -4
  39. package/dist/cjs/next-schema/nodes/placeholder.js +3 -0
  40. package/dist/cjs/next-schema/nodes/status.js +3 -0
  41. package/dist/cjs/next-schema/nodes/table.js +3 -1
  42. package/dist/cjs/next-schema/nodes/tableCell.js +5 -1
  43. package/dist/cjs/next-schema/nodes/tableHeader.js +3 -0
  44. package/dist/cjs/next-schema/nodes/tableRow.js +3 -0
  45. package/dist/cjs/next-schema/nodes/task.js +8 -2
  46. package/dist/cjs/next-schema/nodes/text.js +4 -2
  47. package/dist/cjs/next-schema/nodes/unsupportedBlock.js +18 -0
  48. package/dist/cjs/next-schema/nodes/unsupportedInline.js +18 -0
  49. package/dist/es2019/next-schema/full-schema.adf.js +2 -1
  50. package/dist/es2019/next-schema/groups/blockGroup.js +3 -1
  51. package/dist/es2019/next-schema/groups/inlineGroup.js +3 -1
  52. package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
  53. package/dist/es2019/next-schema/marks/unsupportedMark.js +10 -0
  54. package/dist/es2019/next-schema/marks/unsupportedNodeAttribute.js +14 -0
  55. package/dist/es2019/next-schema/nodes/blockCard.js +5 -0
  56. package/dist/es2019/next-schema/nodes/blockquote.js +6 -2
  57. package/dist/es2019/next-schema/nodes/bodiedExtension.js +4 -1
  58. package/dist/es2019/next-schema/nodes/caption.js +5 -3
  59. package/dist/es2019/next-schema/nodes/codeBlock.js +6 -2
  60. package/dist/es2019/next-schema/nodes/confluenceUnsupportedBlock.js +10 -0
  61. package/dist/es2019/next-schema/nodes/confluenceUnsupportedInline.js +12 -0
  62. package/dist/es2019/next-schema/nodes/date.js +3 -0
  63. package/dist/es2019/next-schema/nodes/decisionItem.js +5 -1
  64. package/dist/es2019/next-schema/nodes/decisionList.js +5 -1
  65. package/dist/es2019/next-schema/nodes/embedCard.js +3 -0
  66. package/dist/es2019/next-schema/nodes/emoji.js +3 -0
  67. package/dist/es2019/next-schema/nodes/expand.js +4 -1
  68. package/dist/es2019/next-schema/nodes/extension.js +4 -1
  69. package/dist/es2019/next-schema/nodes/extensionFrame.js +3 -1
  70. package/dist/es2019/next-schema/nodes/hardBreak.js +3 -0
  71. package/dist/es2019/next-schema/nodes/heading.js +8 -5
  72. package/dist/es2019/next-schema/nodes/inlineCard.js +4 -1
  73. package/dist/es2019/next-schema/nodes/inlineExtension.js +3 -0
  74. package/dist/es2019/next-schema/nodes/layoutColumn.js +3 -0
  75. package/dist/es2019/next-schema/nodes/layoutSection.js +5 -2
  76. package/dist/es2019/next-schema/nodes/list.js +7 -1
  77. package/dist/es2019/next-schema/nodes/media.js +3 -1
  78. package/dist/es2019/next-schema/nodes/mediaGroup.js +5 -1
  79. package/dist/es2019/next-schema/nodes/mediaInline.js +3 -1
  80. package/dist/es2019/next-schema/nodes/mediaSingle.js +5 -2
  81. package/dist/es2019/next-schema/nodes/mention.js +3 -0
  82. package/dist/es2019/next-schema/nodes/multiBodiedExtension.js +3 -0
  83. package/dist/es2019/next-schema/nodes/nestedExpand.js +5 -1
  84. package/dist/es2019/next-schema/nodes/panel.js +5 -1
  85. package/dist/es2019/next-schema/nodes/paragraph.js +8 -4
  86. package/dist/es2019/next-schema/nodes/placeholder.js +3 -0
  87. package/dist/es2019/next-schema/nodes/status.js +3 -0
  88. package/dist/es2019/next-schema/nodes/table.js +3 -1
  89. package/dist/es2019/next-schema/nodes/tableCell.js +5 -1
  90. package/dist/es2019/next-schema/nodes/tableHeader.js +3 -0
  91. package/dist/es2019/next-schema/nodes/tableRow.js +4 -1
  92. package/dist/es2019/next-schema/nodes/task.js +8 -2
  93. package/dist/es2019/next-schema/nodes/text.js +4 -2
  94. package/dist/es2019/next-schema/nodes/unsupportedBlock.js +12 -0
  95. package/dist/es2019/next-schema/nodes/unsupportedInline.js +12 -0
  96. package/dist/esm/next-schema/full-schema.adf.js +2 -1
  97. package/dist/esm/next-schema/groups/blockGroup.js +3 -1
  98. package/dist/esm/next-schema/groups/inlineGroup.js +3 -1
  99. package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
  100. package/dist/esm/next-schema/marks/unsupportedMark.js +10 -0
  101. package/dist/esm/next-schema/marks/unsupportedNodeAttribute.js +14 -0
  102. package/dist/esm/next-schema/nodes/blockCard.js +5 -0
  103. package/dist/esm/next-schema/nodes/blockquote.js +6 -2
  104. package/dist/esm/next-schema/nodes/bodiedExtension.js +4 -1
  105. package/dist/esm/next-schema/nodes/caption.js +5 -3
  106. package/dist/esm/next-schema/nodes/codeBlock.js +6 -2
  107. package/dist/esm/next-schema/nodes/confluenceUnsupportedBlock.js +10 -0
  108. package/dist/esm/next-schema/nodes/confluenceUnsupportedInline.js +12 -0
  109. package/dist/esm/next-schema/nodes/date.js +3 -0
  110. package/dist/esm/next-schema/nodes/decisionItem.js +5 -1
  111. package/dist/esm/next-schema/nodes/decisionList.js +5 -1
  112. package/dist/esm/next-schema/nodes/embedCard.js +3 -0
  113. package/dist/esm/next-schema/nodes/emoji.js +3 -0
  114. package/dist/esm/next-schema/nodes/expand.js +4 -1
  115. package/dist/esm/next-schema/nodes/extension.js +4 -1
  116. package/dist/esm/next-schema/nodes/extensionFrame.js +3 -1
  117. package/dist/esm/next-schema/nodes/hardBreak.js +3 -0
  118. package/dist/esm/next-schema/nodes/heading.js +8 -5
  119. package/dist/esm/next-schema/nodes/inlineCard.js +4 -1
  120. package/dist/esm/next-schema/nodes/inlineExtension.js +3 -0
  121. package/dist/esm/next-schema/nodes/layoutColumn.js +3 -0
  122. package/dist/esm/next-schema/nodes/layoutSection.js +5 -2
  123. package/dist/esm/next-schema/nodes/list.js +7 -1
  124. package/dist/esm/next-schema/nodes/media.js +3 -1
  125. package/dist/esm/next-schema/nodes/mediaGroup.js +5 -1
  126. package/dist/esm/next-schema/nodes/mediaInline.js +3 -1
  127. package/dist/esm/next-schema/nodes/mediaSingle.js +5 -2
  128. package/dist/esm/next-schema/nodes/mention.js +3 -0
  129. package/dist/esm/next-schema/nodes/multiBodiedExtension.js +3 -0
  130. package/dist/esm/next-schema/nodes/nestedExpand.js +5 -1
  131. package/dist/esm/next-schema/nodes/panel.js +5 -1
  132. package/dist/esm/next-schema/nodes/paragraph.js +8 -4
  133. package/dist/esm/next-schema/nodes/placeholder.js +3 -0
  134. package/dist/esm/next-schema/nodes/status.js +3 -0
  135. package/dist/esm/next-schema/nodes/table.js +3 -1
  136. package/dist/esm/next-schema/nodes/tableCell.js +5 -1
  137. package/dist/esm/next-schema/nodes/tableHeader.js +3 -0
  138. package/dist/esm/next-schema/nodes/tableRow.js +4 -1
  139. package/dist/esm/next-schema/nodes/task.js +8 -2
  140. package/dist/esm/next-schema/nodes/text.js +4 -2
  141. package/dist/esm/next-schema/nodes/unsupportedBlock.js +12 -0
  142. package/dist/esm/next-schema/nodes/unsupportedInline.js +12 -0
  143. package/dist/types/next-schema/marks/unsupportedMark.d.ts +1 -0
  144. package/dist/types/next-schema/marks/unsupportedNodeAttribute.d.ts +1 -0
  145. package/dist/types/next-schema/nodes/confluenceUnsupportedBlock.d.ts +19 -0
  146. package/dist/types/next-schema/nodes/confluenceUnsupportedInline.d.ts +19 -0
  147. package/dist/types/next-schema/nodes/heading.d.ts +0 -23
  148. package/dist/types/next-schema/nodes/unsupportedBlock.d.ts +19 -0
  149. package/dist/types/next-schema/nodes/unsupportedInline.d.ts +19 -0
  150. package/package.json +2 -2
  151. package/schema-generators/__tests__/unit/jqueries.md +13 -0
  152. package/schema-generators/__tests__/unit/json-full-schema.unit.ts +103 -0
@@ -6,12 +6,15 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.mediaSingle = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
8
  var _link = require("../marks/link");
9
+ var _unsupportedMark = require("../marks/unsupportedMark");
10
+ var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
9
11
  var _caption = require("./caption");
10
12
  var _media = require("./media");
13
+ var _unsupportedBlock = require("./unsupportedBlock");
11
14
  var mediaSingle = exports.mediaSingle = (0, _adfSchemaGenerator.adfNode)('mediaSingle').define({
12
15
  atom: false,
13
16
  selectable: true,
14
- marks: [_link.link],
17
+ marks: [_link.link, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
15
18
  attrs: {
16
19
  anyOf: [{
17
20
  width: {
@@ -52,5 +55,5 @@ var mediaSingle = exports.mediaSingle = (0, _adfSchemaGenerator.adfNode)('mediaS
52
55
  }
53
56
  }).variant('caption', {
54
57
  atom: false,
55
- content: [(0, _adfSchemaGenerator.$or)(_media.media), (0, _adfSchemaGenerator.$or)(_caption.caption)]
58
+ content: [(0, _adfSchemaGenerator.$or)(_media.media, _unsupportedBlock.unsupportedBlock), (0, _adfSchemaGenerator.$or)(_caption.caption, _unsupportedBlock.unsupportedBlock)]
56
59
  }).variant('full', {});
@@ -5,9 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.mention = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _unsupportedMark = require("../marks/unsupportedMark");
9
+ var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
8
10
  var mention = exports.mention = (0, _adfSchemaGenerator.adfNode)('mention').define({
9
11
  inline: true,
10
12
  selectable: true,
13
+ marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
11
14
  attrs: {
12
15
  id: {
13
16
  type: 'string',
@@ -6,11 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.multiBodiedExtension = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
8
  var _blockRootOnlyGroup = require("../groups/blockRootOnlyGroup");
9
+ var _unsupportedMark = require("../marks/unsupportedMark");
10
+ var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
9
11
  var _extensionFrame = require("./extensionFrame");
10
12
  var multiBodiedExtension = exports.multiBodiedExtension = (0, _adfSchemaGenerator.adfNode)('multiBodiedExtension').define({
11
13
  definingAsContext: true,
12
14
  selectable: true,
13
15
  group: _blockRootOnlyGroup.blockRootOnlyGroup,
16
+ marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
14
17
  attrs: {
15
18
  extensionKey: {
16
19
  type: 'string',
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.nestedExpand = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _unsupportedMark = require("../marks/unsupportedMark");
9
+ var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
8
10
  var _blockquote = require("./blockquote");
9
11
  var _codeBlock = require("./codeBlock");
10
12
  var _decisionList = require("./decisionList");
@@ -16,9 +18,11 @@ var _panel = require("./panel");
16
18
  var _paragraph = require("./paragraph");
17
19
  var _rule = require("./rule");
18
20
  var _task = require("./task");
21
+ var _unsupportedBlock = require("./unsupportedBlock");
19
22
  var nestedExpand = exports.nestedExpand = (0, _adfSchemaGenerator.adfNode)('nestedExpand').define({
20
23
  isolating: true,
21
24
  selectable: true,
25
+ marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
22
26
  attrs: {
23
27
  title: {
24
28
  type: 'string',
@@ -31,5 +35,5 @@ var nestedExpand = exports.nestedExpand = (0, _adfSchemaGenerator.adfNode)('nest
31
35
  optional: true
32
36
  }
33
37
  },
34
- content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_codeBlock.codeBlock.use('with_no_marks'), _paragraph.paragraph.use('with_no_marks'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _panel.panel, _blockquote.blockquote))]
38
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_codeBlock.codeBlock.use('with_no_marks'), _paragraph.paragraph.use('with_no_marks'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _panel.panel, _blockquote.blockquote, _unsupportedBlock.unsupportedBlock))]
35
39
  }).variant('with_no_marks', {});
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.panel = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _unsupportedMark = require("../marks/unsupportedMark");
9
+ var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
8
10
  var _blockCard = require("./blockCard");
9
11
  var _codeBlock = require("./codeBlock");
10
12
  var _decisionList = require("./decisionList");
@@ -15,8 +17,10 @@ var _mediaSingle = require("./mediaSingle");
15
17
  var _paragraph = require("./paragraph");
16
18
  var _rule = require("./rule");
17
19
  var _task = require("./task");
20
+ var _unsupportedBlock = require("./unsupportedBlock");
18
21
  var panel = exports.panel = (0, _adfSchemaGenerator.adfNode)('panel').define({
19
22
  selectable: true,
23
+ marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
20
24
  attrs: {
21
25
  panelType: {
22
26
  type: 'enum',
@@ -44,5 +48,5 @@ var panel = exports.panel = (0, _adfSchemaGenerator.adfNode)('panel').define({
44
48
  optional: true
45
49
  }
46
50
  },
47
- content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_codeBlock.codeBlock.use('with_no_marks'), _blockCard.blockCard, _paragraph.paragraph.use('with_no_marks'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule))]
51
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_codeBlock.codeBlock.use('with_no_marks'), _blockCard.blockCard, _paragraph.paragraph.use('with_no_marks'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _unsupportedBlock.unsupportedBlock))]
48
52
  });
@@ -7,13 +7,17 @@ exports.paragraph = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
8
  var _inlineGroup = require("../groups/inlineGroup");
9
9
  var _alignmentAndIndentation = require("../marks/alignmentAndIndentation");
10
+ var _unsupportedMark = require("../marks/unsupportedMark");
11
+ var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
12
+ var _unsupportedInline = require("./unsupportedInline");
10
13
  var paragraph = exports.paragraph = (0, _adfSchemaGenerator.adfNode)('paragraph').define({
11
14
  selectable: false,
12
- content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup))]
15
+ marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
16
+ content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup, _unsupportedInline.unsupportedInline))]
13
17
  }).variant('with_alignment', {
14
- marks: [_alignmentAndIndentation.alignment]
18
+ marks: [_alignmentAndIndentation.alignment, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark]
15
19
  }).variant('with_indentation', {
16
- marks: [_alignmentAndIndentation.indentation]
20
+ marks: [_alignmentAndIndentation.indentation, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark]
17
21
  }).variant('with_marks', {
18
- marks: [_alignmentAndIndentation.alignment, _alignmentAndIndentation.indentation]
22
+ marks: [_alignmentAndIndentation.alignment, _alignmentAndIndentation.indentation, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark]
19
23
  }).variant('with_no_marks', {});
@@ -5,8 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.placeholder = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _unsupportedMark = require("../marks/unsupportedMark");
9
+ var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
8
10
  var placeholder = exports.placeholder = (0, _adfSchemaGenerator.adfNode)('placeholder').define({
9
11
  selectable: false,
12
+ marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
10
13
  attrs: {
11
14
  text: {
12
15
  type: 'string',
@@ -5,8 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.status = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _unsupportedMark = require("../marks/unsupportedMark");
9
+ var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
8
10
  var status = exports.status = (0, _adfSchemaGenerator.adfNode)('status').define({
9
11
  selectable: true,
12
+ marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
10
13
  attrs: {
11
14
  text: {
12
15
  minLength: 1,
@@ -6,11 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.table = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
8
  var _fragment = require("../marks/fragment");
9
+ var _unsupportedMark = require("../marks/unsupportedMark");
10
+ var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
9
11
  var _tableRow = require("./tableRow");
10
12
  var table = exports.table = (0, _adfSchemaGenerator.adfNode)('table').define({
11
13
  isolating: true,
12
14
  selectable: true,
13
- marks: [_fragment.fragment],
15
+ marks: [_fragment.fragment, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
14
16
  attrs: {
15
17
  displayMode: {
16
18
  type: 'enum',
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.tableCell = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _unsupportedMark = require("../marks/unsupportedMark");
9
+ var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
8
10
  var _blockCard = require("./blockCard");
9
11
  var _blockquote = require("./blockquote");
10
12
  var _codeBlock = require("./codeBlock");
@@ -20,10 +22,12 @@ var _panel = require("./panel");
20
22
  var _paragraph = require("./paragraph");
21
23
  var _rule = require("./rule");
22
24
  var _task = require("./task");
25
+ var _unsupportedBlock = require("./unsupportedBlock");
23
26
  var tableCell = exports.tableCell = (0, _adfSchemaGenerator.adfNode)('tableCell').define({
24
27
  isolating: true,
25
28
  selectable: false,
26
29
  tableRole: 'cell',
30
+ marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
27
31
  attrs: {
28
32
  colspan: {
29
33
  type: 'number',
@@ -46,5 +50,5 @@ var tableCell = exports.tableCell = (0, _adfSchemaGenerator.adfNode)('tableCell'
46
50
  optional: true
47
51
  }
48
52
  },
49
- content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_codeBlock.codeBlock.use('with_no_marks'), _blockCard.blockCard, _paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_alignment'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _panel.panel, _blockquote.blockquote, _extension.extension.use('with_marks'), _embedCard.embedCard, _nestedExpand.nestedExpand.use('with_no_marks')))]
53
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_codeBlock.codeBlock.use('with_no_marks'), _blockCard.blockCard, _paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_alignment'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _panel.panel, _blockquote.blockquote, _extension.extension.use('with_marks'), _embedCard.embedCard, _nestedExpand.nestedExpand.use('with_no_marks'), _unsupportedBlock.unsupportedBlock))]
50
54
  });
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.tableHeader = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _unsupportedMark = require("../marks/unsupportedMark");
9
+ var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
8
10
  var _blockCard = require("./blockCard");
9
11
  var _blockquote = require("./blockquote");
10
12
  var _codeBlock = require("./codeBlock");
@@ -24,6 +26,7 @@ var tableHeader = exports.tableHeader = (0, _adfSchemaGenerator.adfNode)('tableH
24
26
  isolating: true,
25
27
  selectable: false,
26
28
  tableRole: 'header_cell',
29
+ marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
27
30
  attrs: {
28
31
  colspan: {
29
32
  type: 'number',
@@ -5,9 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.tableRow = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _unsupportedMark = require("../marks/unsupportedMark");
9
+ var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
8
10
  var _tableCell = require("./tableCell");
9
11
  var _tableHeader = require("./tableHeader");
10
12
  var tableRow = exports.tableRow = (0, _adfSchemaGenerator.adfNode)('tableRow').define({
11
13
  selectable: false,
14
+ marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
12
15
  content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_tableCell.tableCell, _tableHeader.tableHeader))]
13
16
  });
@@ -6,11 +6,16 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.taskList = exports.taskItem = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
8
  var _inlineGroup = require("../groups/inlineGroup");
9
+ var _unsupportedMark = require("../marks/unsupportedMark");
10
+ var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
11
+ var _unsupportedInline = require("./unsupportedInline");
12
+ var _unsupportedBlock = require("./unsupportedBlock");
9
13
  var taskItem = exports.taskItem = (0, _adfSchemaGenerator.adfNode)('taskItem');
10
14
  var taskList = exports.taskList = (0, _adfSchemaGenerator.adfNode)('taskList');
11
15
  taskItem.define({
12
16
  defining: true,
13
17
  selectable: false,
18
+ marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
14
19
  attrs: {
15
20
  localId: {
16
21
  type: 'string',
@@ -22,16 +27,17 @@ taskItem.define({
22
27
  default: 'TODO'
23
28
  }
24
29
  },
25
- content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup))]
30
+ content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup, _unsupportedInline.unsupportedInline))]
26
31
  });
27
32
  taskList.define({
28
33
  defining: true,
29
34
  selectable: false,
35
+ marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
30
36
  attrs: {
31
37
  localId: {
32
38
  type: 'string',
33
39
  default: ''
34
40
  }
35
41
  },
36
- content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(taskItem)), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(taskItem, taskList))]
42
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(taskItem, _unsupportedBlock.unsupportedBlock)), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(taskItem, taskList, _unsupportedBlock.unsupportedBlock))]
37
43
  });
@@ -14,8 +14,10 @@ var _strong = require("../marks/strong");
14
14
  var _subsup = require("../marks/subsup");
15
15
  var _underline = require("../marks/underline");
16
16
  var _color = require("../marks/color");
17
+ var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
18
+ var _unsupportedMark = require("../marks/unsupportedMark");
17
19
  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, _color.textColor, _annotation.annotation, _color.backgroundColor]
20
+ marks: [_link.link, _em.em, _strong.strong, _strike.strike, _subsup.subsup, _underline.underline, _color.textColor, _annotation.annotation, _color.backgroundColor, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark]
19
21
  }).variant('code_inline', {
20
- marks: [_code.code, _link.link, _annotation.annotation]
22
+ marks: [_code.code, _link.link, _annotation.annotation, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark]
21
23
  });
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.unsupportedBlock = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var unsupportedBlock = exports.unsupportedBlock = (0, _adfSchemaGenerator.adfNode)('unsupportedBlock').define({
9
+ ignore: [_adfSchemaGenerator.JSONSchemaTransformerName, _adfSchemaGenerator.ValidatorSpecTransformerName],
10
+ atom: true,
11
+ selectable: true,
12
+ attrs: {
13
+ originalValue: {
14
+ type: 'object',
15
+ default: {}
16
+ }
17
+ }
18
+ });
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.unsupportedInline = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var unsupportedInline = exports.unsupportedInline = (0, _adfSchemaGenerator.adfNode)('unsupportedInline').define({
9
+ ignore: [_adfSchemaGenerator.JSONSchemaTransformerName, _adfSchemaGenerator.ValidatorSpecTransformerName],
10
+ inline: true,
11
+ selectable: true,
12
+ attrs: {
13
+ originalValue: {
14
+ type: 'object',
15
+ default: {}
16
+ }
17
+ }
18
+ });
@@ -4,9 +4,10 @@ import { layoutSection } from './nodes/layoutSection';
4
4
  import { blockRootOnlyGroup } from './groups/blockRootOnlyGroup';
5
5
  import { nestedExpand } from './nodes/nestedExpand';
6
6
  import { paragraph } from './nodes/paragraph';
7
+ import { unsupportedBlock } from './nodes/unsupportedBlock';
7
8
  const doc = adfNode('doc').define({
8
9
  root: true,
9
10
  version: 1,
10
- content: [$onePlus($or(blockGroup, layoutSection, layoutSection.use('full'), blockRootOnlyGroup, nestedExpand, paragraph))]
11
+ content: [$onePlus($or(blockGroup, layoutSection, layoutSection.use('full'), blockRootOnlyGroup, nestedExpand, paragraph, unsupportedBlock))]
11
12
  });
12
13
  export default doc;
@@ -3,6 +3,7 @@ import { blockCard } from '../nodes/blockCard';
3
3
  import { blockquote } from '../nodes/blockquote';
4
4
  import { bodiedExtension } from '../nodes/bodiedExtension';
5
5
  import { codeBlock } from '../nodes/codeBlock';
6
+ import { confluenceUnsupportedBlock } from '../nodes/confluenceUnsupportedBlock';
6
7
  import { decisionList } from '../nodes/decisionList';
7
8
  import { embedCard } from '../nodes/embedCard';
8
9
  import { expand } from '../nodes/expand';
@@ -16,4 +17,5 @@ import { paragraph } from '../nodes/paragraph';
16
17
  import { rule } from '../nodes/rule';
17
18
  import { table } from '../nodes/table';
18
19
  import { taskList } from '../nodes/task';
19
- export const blockGroup = adfNodeGroup('block', [blockCard, codeBlock, codeBlock.use('with_marks'), codeBlock.use('with_no_marks'), mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), taskList, orderedList, bulletList, blockquote, decisionList, embedCard, extension, extension.use('with_marks'), heading, heading.use('with_no_marks'), mediaGroup, rule, panel, table, bodiedExtension, bodiedExtension.use('with_marks'), expand, expand.use('with_breakout_mark'), expand.use('with_no_mark')]);
20
+ import { unsupportedBlock } from '../nodes/unsupportedBlock';
21
+ export const blockGroup = adfNodeGroup('block', [blockCard, codeBlock, codeBlock.use('with_marks'), codeBlock.use('with_no_marks'), mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), taskList, orderedList, bulletList, blockquote, decisionList, embedCard, extension, extension.use('with_marks'), heading, heading.use('with_no_marks'), mediaGroup, rule, panel, table, bodiedExtension, bodiedExtension.use('with_marks'), expand, expand.use('with_breakout_mark'), expand.use('with_no_mark'), confluenceUnsupportedBlock, unsupportedBlock]);
@@ -9,6 +9,8 @@ import { text } from '../nodes/text';
9
9
  import { status } from '../nodes/status';
10
10
  import { inlineExtension } from '../nodes/inlineExtension';
11
11
  import { mediaInline } from '../nodes/mediaInline';
12
+ import { unsupportedInline } from '../nodes/unsupportedInline';
13
+ import { confluenceUnsupportedInline } from '../nodes/confluenceUnsupportedInline';
12
14
  export const inlineGroup = adfNodeGroup('inline', [
13
15
  // text,
14
- text.use('formatted'), text.use('code_inline'), date, emoji, hardBreak, inlineCard, mention, placeholder, status, inlineExtension, inlineExtension.use('with_marks'), mediaInline]);
16
+ text.use('formatted'), text.use('code_inline'), date, emoji, hardBreak, inlineCard, mention, placeholder, status, inlineExtension, inlineExtension.use('with_marks'), mediaInline, confluenceUnsupportedInline, unsupportedInline]);
@@ -13,7 +13,8 @@ import { paragraph } from '../nodes/paragraph';
13
13
  import { rule } from '../nodes/rule';
14
14
  import { table } from '../nodes/table';
15
15
  import { taskList } from '../nodes/task';
16
+ import { unsupportedBlock } from '../nodes/unsupportedBlock';
16
17
 
17
18
  // Not an actual group, but a collection of nodes that can't be nested inside each other
18
19
  // TODO: make it an actual group
19
- export const nonNestableBlockContent = [codeBlock.use('with_no_marks'), blockCard, paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), taskList, bulletList, orderedList, heading.use('with_no_marks'), mediaGroup, decisionList, rule, panel, blockquote, extension.use('with_marks'), embedCard, table];
20
+ export const nonNestableBlockContent = [codeBlock.use('with_no_marks'), blockCard, paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), taskList, bulletList, orderedList, heading.use('with_no_marks'), mediaGroup, decisionList, rule, panel, blockquote, extension.use('with_marks'), embedCard, table, unsupportedBlock];
@@ -0,0 +1,10 @@
1
+ import { adfMark, JSONSchemaTransformerName, ValidatorSpecTransformerName } from '@atlaskit/adf-schema-generator';
2
+ export const unsupportedMark = adfMark('unsupportedMark').define({
3
+ ignore: [JSONSchemaTransformerName, ValidatorSpecTransformerName],
4
+ attrs: {
5
+ originalValue: {
6
+ type: 'object',
7
+ default: {}
8
+ }
9
+ }
10
+ });
@@ -0,0 +1,14 @@
1
+ import { adfMark, JSONSchemaTransformerName, ValidatorSpecTransformerName } from '@atlaskit/adf-schema-generator';
2
+ export const unsupportedNodeAttribute = adfMark('unsupportedNodeAttribute').define({
3
+ ignore: [JSONSchemaTransformerName, ValidatorSpecTransformerName],
4
+ attrs: {
5
+ type: {
6
+ type: 'string',
7
+ default: null
8
+ },
9
+ unsupported: {
10
+ type: 'object',
11
+ default: {}
12
+ }
13
+ }
14
+ });
@@ -1,7 +1,10 @@
1
1
  import { adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { unsupportedMark } from '../marks/unsupportedMark';
3
+ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
2
4
  export const blockCard = adfNode('blockCard').define({
3
5
  draggable: true,
4
6
  selectable: true,
7
+ marks: [unsupportedNodeAttribute, unsupportedMark],
5
8
  attrs: {
6
9
  anyOf: [{
7
10
  url: {
@@ -10,6 +13,7 @@ export const blockCard = adfNode('blockCard').define({
10
13
  },
11
14
  datasource: {
12
15
  type: 'object',
16
+ additionalProperties: false,
13
17
  properties: {
14
18
  id: {
15
19
  type: 'string'
@@ -18,6 +22,7 @@ export const blockCard = adfNode('blockCard').define({
18
22
  parameters: {},
19
23
  views: {
20
24
  items: {
25
+ additionalProperties: false,
21
26
  properties: {
22
27
  // Empty properties object carried over from original JSON Schema
23
28
  properties: {},
@@ -1,10 +1,14 @@
1
1
  import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { unsupportedMark } from '../marks/unsupportedMark';
3
+ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
2
4
  import { bulletList, orderedList } from './list';
3
5
  import { paragraph } from './paragraph';
6
+ import { unsupportedBlock } from './unsupportedBlock';
4
7
  export const blockquote = adfNode('blockquote').define({
5
8
  defining: true,
6
9
  selectable: false,
7
- content: [$onePlus($or(paragraph.use('with_no_marks'), bulletList, orderedList))]
10
+ marks: [unsupportedNodeAttribute, unsupportedMark],
11
+ content: [$onePlus($or(paragraph.use('with_no_marks'), bulletList, orderedList, unsupportedBlock))]
8
12
  }).variant('with_list', {
9
- content: [$onePlus($or(paragraph, orderedList, bulletList))]
13
+ content: [$onePlus($or(paragraph, orderedList, bulletList, unsupportedBlock))]
10
14
  });
@@ -2,10 +2,13 @@ import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
2
2
  import { nonNestableBlockContent } from '../groups/nonNestableBlockContentGroup';
3
3
  import { dataConsumer } from '../marks/dataConsumer';
4
4
  import { fragment } from '../marks/fragment';
5
+ import { unsupportedMark } from '../marks/unsupportedMark';
6
+ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
5
7
  export const bodiedExtension = adfNode('bodiedExtension').define({
6
8
  defining: true,
7
9
  selectable: true,
8
10
  isolating: true,
11
+ marks: [unsupportedNodeAttribute, unsupportedMark],
9
12
  attrs: {
10
13
  extensionKey: {
11
14
  minLength: 1,
@@ -41,5 +44,5 @@ export const bodiedExtension = adfNode('bodiedExtension').define({
41
44
  },
42
45
  content: [$onePlus($or(...nonNestableBlockContent))]
43
46
  }).variant('with_marks', {
44
- marks: [dataConsumer, fragment]
47
+ marks: [dataConsumer, fragment, unsupportedNodeAttribute, unsupportedMark]
45
48
  });
@@ -1,4 +1,6 @@
1
1
  import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { unsupportedMark } from '../marks/unsupportedMark';
3
+ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
2
4
  import { date } from './date';
3
5
  import { emoji } from './emoji';
4
6
  import { hardBreak } from './hardBreak';
@@ -7,10 +9,10 @@ import { mention } from './mention';
7
9
  import { placeholder } from './placeholder';
8
10
  import { status } from './status';
9
11
  import { text } from './text';
10
-
11
- // TODO: marks
12
+ import { unsupportedInline } from './unsupportedInline';
12
13
  export const caption = adfNode('caption').define({
13
14
  isolating: true,
14
15
  selectable: false,
15
- content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline')))]
16
+ marks: [unsupportedNodeAttribute, unsupportedMark],
17
+ content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))]
16
18
  });
@@ -1,9 +1,13 @@
1
1
  import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
2
2
  import { breakout } from '../marks/breakout';
3
+ import { unsupportedMark } from '../marks/unsupportedMark';
4
+ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
3
5
  import { text } from './text';
6
+ import { unsupportedInline } from './unsupportedInline';
4
7
  export const codeBlock = adfNode('codeBlock').define({
5
8
  code: true,
6
9
  defining: true,
10
+ marks: [unsupportedNodeAttribute, unsupportedMark],
7
11
  attrs: {
8
12
  language: {
9
13
  type: 'string',
@@ -11,8 +15,8 @@ export const codeBlock = adfNode('codeBlock').define({
11
15
  optional: true
12
16
  }
13
17
  },
14
- content: [$zeroPlus($or(text))]
18
+ content: [$zeroPlus($or(text, unsupportedInline))]
15
19
  }).variant('with_marks', {
16
- marks: [breakout]
20
+ marks: [breakout, unsupportedNodeAttribute, unsupportedMark]
17
21
  }).variant('with_no_marks', {});
18
22
  export const codeBlockWithMarks = codeBlock;
@@ -0,0 +1,10 @@
1
+ import { adfNode, ValidatorSpecTransformerName, JSONSchemaTransformerName } from '@atlaskit/adf-schema-generator';
2
+ export const confluenceUnsupportedBlock = adfNode('confluenceUnsupportedBlock').define({
3
+ ignore: [JSONSchemaTransformerName, ValidatorSpecTransformerName],
4
+ attrs: {
5
+ cxhtml: {
6
+ type: 'string',
7
+ default: null
8
+ }
9
+ }
10
+ });
@@ -0,0 +1,12 @@
1
+ import { adfNode, ValidatorSpecTransformerName, JSONSchemaTransformerName } from '@atlaskit/adf-schema-generator';
2
+ export const confluenceUnsupportedInline = adfNode('confluenceUnsupportedInline').define({
3
+ ignore: [JSONSchemaTransformerName, ValidatorSpecTransformerName],
4
+ atom: true,
5
+ inline: true,
6
+ attrs: {
7
+ cxhtml: {
8
+ type: 'string',
9
+ default: null
10
+ }
11
+ }
12
+ });
@@ -1,7 +1,10 @@
1
1
  import { adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { unsupportedMark } from '../marks/unsupportedMark';
3
+ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
2
4
  export const date = adfNode('date').define({
3
5
  inline: true,
4
6
  selectable: true,
7
+ marks: [unsupportedNodeAttribute, unsupportedMark],
5
8
  attrs: {
6
9
  timestamp: {
7
10
  minLength: 1,
@@ -1,7 +1,11 @@
1
1
  import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
2
2
  import { inlineGroup } from '../groups/inlineGroup';
3
+ import { unsupportedMark } from '../marks/unsupportedMark';
4
+ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
5
+ import { unsupportedBlock } from './unsupportedBlock';
3
6
  export const decisionItem = adfNode('decisionItem').define({
4
7
  defining: true,
8
+ marks: [unsupportedNodeAttribute, unsupportedMark],
5
9
  attrs: {
6
10
  localId: {
7
11
  type: 'string',
@@ -12,5 +16,5 @@ export const decisionItem = adfNode('decisionItem').define({
12
16
  default: 'DECIDED'
13
17
  }
14
18
  },
15
- content: [$zeroPlus($or(inlineGroup))]
19
+ content: [$zeroPlus($or(inlineGroup, unsupportedBlock))]
16
20
  });
@@ -1,13 +1,17 @@
1
1
  import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { unsupportedMark } from '../marks/unsupportedMark';
3
+ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
2
4
  import { decisionItem } from './decisionItem';
5
+ import { unsupportedBlock } from './unsupportedBlock';
3
6
  export const decisionList = adfNode('decisionList').define({
4
7
  defining: true,
5
8
  selectable: false,
9
+ marks: [unsupportedNodeAttribute, unsupportedMark],
6
10
  attrs: {
7
11
  localId: {
8
12
  type: 'string',
9
13
  default: ''
10
14
  }
11
15
  },
12
- content: [$onePlus($or(decisionItem))]
16
+ content: [$onePlus($or(decisionItem, unsupportedBlock))]
13
17
  });
@@ -1,6 +1,9 @@
1
1
  import { adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { unsupportedMark } from '../marks/unsupportedMark';
3
+ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
2
4
  export const embedCard = adfNode('embedCard').define({
3
5
  selectable: true,
6
+ marks: [unsupportedNodeAttribute, unsupportedMark],
4
7
  attrs: {
5
8
  url: {
6
9
  type: 'string',
@@ -1,7 +1,10 @@
1
1
  import { adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { unsupportedMark } from '../marks/unsupportedMark';
3
+ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
2
4
  export const emoji = adfNode('emoji').define({
3
5
  inline: true,
4
6
  selectable: true,
7
+ marks: [unsupportedNodeAttribute, unsupportedMark],
5
8
  attrs: {
6
9
  shortName: {
7
10
  type: 'string',