@atlaskit/adf-schema 37.1.41 → 37.1.43

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 (25) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/next-schema/groups/atomicInlineGroup.js +19 -0
  3. package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  4. package/dist/cjs/next-schema/nodes/nestedExpand.js +1 -1
  5. package/dist/cjs/next-schema/nodes/paragraph.js +2 -1
  6. package/dist/cjs/next-schema/nodes/tableCellContent.js +1 -1
  7. package/dist/cjs/validator-schema/generated/validatorSpec.js +59 -63
  8. package/dist/es2019/next-schema/groups/atomicInlineGroup.js +13 -0
  9. package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  10. package/dist/es2019/next-schema/nodes/nestedExpand.js +1 -1
  11. package/dist/es2019/next-schema/nodes/paragraph.js +2 -1
  12. package/dist/es2019/next-schema/nodes/tableCellContent.js +1 -1
  13. package/dist/es2019/validator-schema/generated/validatorSpec.js +58 -62
  14. package/dist/esm/next-schema/groups/atomicInlineGroup.js +13 -0
  15. package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  16. package/dist/esm/next-schema/nodes/nestedExpand.js +1 -1
  17. package/dist/esm/next-schema/nodes/paragraph.js +2 -1
  18. package/dist/esm/next-schema/nodes/tableCellContent.js +1 -1
  19. package/dist/esm/validator-schema/generated/validatorSpec.js +58 -62
  20. package/dist/types/next-schema/groups/atomicInlineGroup.d.ts +1 -0
  21. package/dist/types/next-schema/nodes/nestedExpand.d.ts +1 -1
  22. package/dist/types/validator-schema/generated/validatorSpec.d.ts +35 -39
  23. package/package.json +2 -2
  24. package/schema-generators/__tests__/unit/adfToValidatorSpecValidation.unit.ts +1 -7
  25. package/schema-generators/__tests__/unit/json-full-schema-backwards-compat.unit.ts +23 -46
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 37.1.43
4
+
5
+ ### Patch Changes
6
+
7
+ - 73eec15: Improve types in adf-schema-generator package
8
+
9
+ ## 37.1.42
10
+
11
+ ### Patch Changes
12
+
13
+ - 758ee06: last hacks to support tableCell_content, nestedExpand_content and atomic_inlines pseudo groups in validator spec
14
+
3
15
  ## 37.1.41
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.atomicInlineGroup = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _date = require("../nodes/date");
9
+ var _emoji = require("../nodes/emoji");
10
+ var _hardBreak = require("../nodes/hardBreak");
11
+ var _inlineCard = require("../nodes/inlineCard");
12
+ var _inlineExtension = require("../nodes/inlineExtension");
13
+ var _mediaInline = require("../nodes/mediaInline");
14
+ var _mention = require("../nodes/mention");
15
+ var _placeholder = require("../nodes/placeholder");
16
+ var _status = require("../nodes/status");
17
+ var atomicInlineGroup = exports.atomicInlineGroup = (0, _adfSchemaGenerator.adfNodeGroup)('atomic_inline', [_hardBreak.hardBreak, _mention.mention, _emoji.emoji, _inlineExtension.inlineExtension.use('with_marks'), _date.date, _placeholder.placeholder, _inlineCard.inlineCard, _status.status, _mediaInline.mediaInline], {
18
+ ignore: ['pm-spec', 'json-schema']
19
+ });
@@ -27,6 +27,6 @@ var tableCellContentNodes = [_codeBlock.codeBlock.use('with_no_marks'), _blockCa
27
27
  // @DSLCompatibilityException JSON Schema and PM Spec are not in sync. We need to fix it
28
28
  // In PM Spec, they contain different items. (tableHeader using tableHeaderContentPseudoGroup, tableCell using tableCellContentPseudoGroup)
29
29
  // In JSON Schema, both tableHeader and tableCell points to tableCellContentPseudoGroup
30
- // The differences are highighted below.
30
+ // The differences are highlighted below.
31
31
  var tableCellContentPseudoGroup = exports.tableCellContentPseudoGroup = (0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, tableCellContentNodes.concat([_unsupportedBlock.unsupportedBlock])));
32
32
  var tableHeaderContentPseudoGroup = exports.tableHeaderContentPseudoGroup = (0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, tableCellContentNodes.concat([_nestedExpand.nestedExpand])));
@@ -53,7 +53,7 @@ var nestedExpand = exports.nestedExpand = (0, _adfSchemaGenerator.adfNode)('nest
53
53
  }
54
54
  }
55
55
  }).variant('content', {
56
- ignore: ['pm-spec', 'validator-spec']
56
+ ignore: ['pm-spec']
57
57
  }).variant('with_no_marks', {
58
58
  marks: [],
59
59
  content: [],
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.paragraph = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _atomicInlineGroup = require("../groups/atomicInlineGroup");
8
9
  var _inlineContentGroup = require("../groups/inlineContentGroup");
9
10
  var _inlineGroup = require("../groups/inlineGroup");
10
11
  var _alignmentAndIndentation = require("../marks/alignmentAndIndentation");
@@ -21,7 +22,7 @@ var paragraph = exports.paragraph = (0, _adfSchemaGenerator.adfNode)('paragraph'
21
22
  selectable: false,
22
23
  marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
23
24
  hasEmptyMarks: true,
24
- content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup, _inlineContentGroup.inlineContentGroup))],
25
+ content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup, _atomicInlineGroup.atomicInlineGroup, _inlineContentGroup.inlineContentGroup))],
25
26
  DANGEROUS_MANUAL_OVERRIDE: {
26
27
  'validator-spec': {
27
28
  'props.marks': {
@@ -9,6 +9,6 @@ var _tableCellContentPseudoGroup = require("../groups/tableCellContentPseudoGrou
9
9
  // @DSLCompatibilityException This is only used by JSON schema to group the table cell content into a definition.
10
10
  // This node should be deleted and the content should be replicated in the JSON schema for table header and table cell node
11
11
  var tableCellContent = exports.tableCellContent = (0, _adfSchemaGenerator.adfNode)('tableCellContent').define({
12
- ignore: ['pm-spec', 'validator-spec'],
12
+ ignore: ['pm-spec'],
13
13
  content: [_tableCellContentPseudoGroup.tableCellContentPseudoGroup]
14
14
  });
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.unsupportedInline = exports.unsupportedBlock = exports.underline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCellContent = exports.tableCell = exports.table = exports.subsup = exports.strong = exports.strike = exports.status = exports.rule = exports.placeholder = exports.paragraph_with_no_marks = exports.paragraph_with_indentation = exports.paragraph_with_alignment = exports.paragraph = exports.panel_legacy = exports.panel = exports.orderedList = exports.non_nestable_block_content = exports.nestedExpand_with_no_marks = exports.nestedExpand_content = exports.nestedExpand = exports.multiBodiedExtension = exports.mention = exports.mediaSingle_width_type = exports.mediaSingle_full = exports.mediaSingle_caption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem_legacy = exports.listItem = exports.link_text_inline = exports.link = exports.layoutSection_with_single_column = exports.layoutSection_full = exports.layoutSection = exports.layoutColumn = exports.inline_comment_marker = exports.inlineExtension_with_marks = exports.inlineExtension = exports.inlineCard = exports.inline = exports.indentation = exports.image = exports.heading_with_no_marks = exports.heading_with_indentation = exports.heading_with_alignment = exports.heading = exports.hardBreak = exports.fragment = exports.formatted_text_inline = exports.extension_with_marks = exports.extensionFrame = exports.extension = exports.expand_with_no_mark = exports.expand_with_breakout_mark = exports.expand = exports.emoji = exports.embedCard = exports.em = exports.doc = exports.decisionList = exports.decisionItem = exports.date = exports.dataConsumer = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.code_inline = exports.codeBlock_with_no_marks = exports.codeBlock_with_marks = exports.codeBlock = exports.code = exports.caption = exports.bulletList = exports.breakout = exports.border = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.blockquote_legacy = exports.blockquote = exports.block_content = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.annotation = exports.alignment = void 0;
6
+ exports.unsupportedInline = exports.unsupportedBlock = exports.underline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell_content = exports.tableCell = exports.table = exports.subsup = exports.strong = exports.strike = exports.status = exports.rule = exports.placeholder = exports.paragraph_with_no_marks = exports.paragraph_with_indentation = exports.paragraph_with_alignment = exports.paragraph = exports.panel_legacy = exports.panel = exports.orderedList = exports.non_nestable_block_content = exports.nestedExpand_with_no_marks = exports.nestedExpand_content = exports.nestedExpand = exports.multiBodiedExtension = exports.mention = exports.mediaSingle_width_type = exports.mediaSingle_full = exports.mediaSingle_caption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem_legacy = exports.listItem = exports.link_text_inline = exports.link = exports.layoutSection_with_single_column = exports.layoutSection_full = exports.layoutSection = exports.layoutColumn = exports.inline_comment_marker = exports.inlineExtension_with_marks = exports.inlineExtension = exports.inlineCard = exports.inline = exports.indentation = exports.image = exports.heading_with_no_marks = exports.heading_with_indentation = exports.heading_with_alignment = exports.heading = exports.hardBreak = exports.fragment = exports.formatted_text_inline = exports.extension_with_marks = exports.extensionFrame = exports.extension = exports.expand_with_no_mark = exports.expand_with_breakout_mark = exports.expand = exports.emoji = exports.embedCard = exports.em = exports.doc = exports.decisionList = exports.decisionItem = exports.date = exports.dataConsumer = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.code_inline = exports.codeBlock_with_no_marks = exports.codeBlock_with_marks = exports.codeBlock = exports.code = exports.caption = exports.bulletList = exports.breakout = exports.border = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.blockquote_legacy = exports.blockquote = exports.block_content = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.atomic_inline = exports.annotation = exports.alignment = void 0;
7
7
  var blockCard = exports.blockCard = {
8
8
  props: {
9
9
  type: {
@@ -142,8 +142,8 @@ var codeBlock_with_marks = exports.codeBlock_with_marks = ['codeBlock', {
142
142
  props: {
143
143
  marks: {
144
144
  type: 'array',
145
- items: ['breakout'],
146
- optional: true
145
+ optional: true,
146
+ items: ['breakout']
147
147
  }
148
148
  }
149
149
  }];
@@ -199,8 +199,8 @@ var mediaSingle = exports.mediaSingle = {
199
199
  }],
200
200
  marks: {
201
201
  type: 'array',
202
- items: ['link'],
203
- optional: true
202
+ optional: true,
203
+ items: ['link']
204
204
  }
205
205
  }
206
206
  };
@@ -266,8 +266,8 @@ var media = exports.media = {
266
266
  }],
267
267
  marks: {
268
268
  type: 'array',
269
- items: [['annotation', 'border', 'link']],
270
- optional: true
269
+ optional: true,
270
+ items: [['annotation', 'border', 'link']]
271
271
  }
272
272
  },
273
273
  required: ['attrs']
@@ -409,8 +409,8 @@ var mention = exports.mention = {
409
409
  },
410
410
  marks: {
411
411
  type: 'array',
412
- items: ['annotation'],
413
- optional: true
412
+ optional: true,
413
+ items: ['annotation']
414
414
  }
415
415
  }
416
416
  };
@@ -437,8 +437,8 @@ var emoji = exports.emoji = {
437
437
  },
438
438
  marks: {
439
439
  type: 'array',
440
- items: ['annotation'],
441
- optional: true
440
+ optional: true,
441
+ items: ['annotation']
442
442
  }
443
443
  }
444
444
  };
@@ -458,8 +458,8 @@ var date = exports.date = {
458
458
  },
459
459
  marks: {
460
460
  type: 'array',
461
- items: ['annotation'],
462
- optional: true
461
+ optional: true,
462
+ items: ['annotation']
463
463
  }
464
464
  }
465
465
  };
@@ -534,8 +534,8 @@ var status = exports.status = {
534
534
  },
535
535
  marks: {
536
536
  type: 'array',
537
- items: ['annotation'],
538
- optional: true
537
+ optional: true,
538
+ items: ['annotation']
539
539
  }
540
540
  }
541
541
  };
@@ -543,8 +543,8 @@ var formatted_text_inline = exports.formatted_text_inline = ['text', {
543
543
  props: {
544
544
  marks: {
545
545
  type: 'array',
546
- items: [['annotation', 'backgroundColor', 'em', 'link', 'strike', 'strong', 'subsup', 'textColor', 'underline', null]],
547
- optional: true
546
+ optional: true,
547
+ items: [['annotation', 'backgroundColor', 'em', 'link', 'strike', 'strong', 'subsup', 'textColor', 'underline', null]]
548
548
  }
549
549
  }
550
550
  }];
@@ -552,8 +552,8 @@ var code_inline = exports.code_inline = ['text', {
552
552
  props: {
553
553
  marks: {
554
554
  type: 'array',
555
- items: [['annotation', 'code', 'link']],
556
- optional: true
555
+ optional: true,
556
+ items: [['annotation', 'code', 'link']]
557
557
  }
558
558
  }
559
559
  }];
@@ -712,8 +712,8 @@ var link_text_inline = exports.link_text_inline = ['text', {
712
712
  props: {
713
713
  marks: {
714
714
  type: 'array',
715
- items: ['link'],
716
- optional: true
715
+ optional: true,
716
+ items: ['link']
717
717
  }
718
718
  }
719
719
  }];
@@ -759,8 +759,8 @@ var inlineExtension_with_marks = exports.inlineExtension_with_marks = ['inlineEx
759
759
  props: {
760
760
  marks: {
761
761
  type: 'array',
762
- items: [['dataConsumer', 'fragment']],
763
- optional: true
762
+ optional: true,
763
+ items: [['dataConsumer', 'fragment']]
764
764
  }
765
765
  }
766
766
  }];
@@ -809,8 +809,8 @@ var mediaInline = exports.mediaInline = {
809
809
  },
810
810
  marks: {
811
811
  type: 'array',
812
- items: [['annotation', 'border', 'link']],
813
- optional: true
812
+ optional: true,
813
+ items: [['annotation', 'border', 'link']]
814
814
  }
815
815
  }
816
816
  };
@@ -883,6 +883,7 @@ var confluenceUnsupportedInline = exports.confluenceUnsupportedInline = {
883
883
  }
884
884
  }
885
885
  };
886
+ var atomic_inline = exports.atomic_inline = ['date', 'emoji', 'hardBreak', 'inlineCard', 'inlineExtension_with_marks', 'mediaInline', 'mention', 'placeholder', 'status'];
886
887
  var inline = exports.inline = ['code_inline', 'date', 'emoji', 'formatted_text_inline', 'hardBreak', 'inlineCard', 'inlineExtension_with_marks', 'mediaInline', 'mention', 'placeholder', 'status'];
887
888
  var paragraph = exports.paragraph = {
888
889
  props: {
@@ -916,8 +917,8 @@ var paragraph_with_alignment = exports.paragraph_with_alignment = ['paragraph',
916
917
  props: {
917
918
  marks: {
918
919
  type: 'array',
919
- items: ['alignment'],
920
- optional: true
920
+ optional: true,
921
+ items: ['alignment']
921
922
  }
922
923
  }
923
924
  }];
@@ -925,8 +926,8 @@ var paragraph_with_indentation = exports.paragraph_with_indentation = ['paragrap
925
926
  props: {
926
927
  marks: {
927
928
  type: 'array',
928
- items: ['indentation'],
929
- optional: true
929
+ optional: true,
930
+ items: ['indentation']
930
931
  }
931
932
  }
932
933
  }];
@@ -1199,8 +1200,8 @@ var extension_with_marks = exports.extension_with_marks = ['extension', {
1199
1200
  props: {
1200
1201
  marks: {
1201
1202
  type: 'array',
1202
- items: [['dataConsumer', 'fragment']],
1203
- optional: true
1203
+ optional: true,
1204
+ items: [['dataConsumer', 'fragment']]
1204
1205
  }
1205
1206
  }
1206
1207
  }];
@@ -1240,8 +1241,8 @@ var heading_with_indentation = exports.heading_with_indentation = ['heading', {
1240
1241
  props: {
1241
1242
  marks: {
1242
1243
  type: 'array',
1243
- items: ['indentation'],
1244
- optional: true
1244
+ optional: true,
1245
+ items: ['indentation']
1245
1246
  }
1246
1247
  }
1247
1248
  }];
@@ -1259,8 +1260,8 @@ var heading_with_alignment = exports.heading_with_alignment = ['heading', {
1259
1260
  props: {
1260
1261
  marks: {
1261
1262
  type: 'array',
1262
- items: ['alignment'],
1263
- optional: true
1263
+ optional: true,
1264
+ items: ['alignment']
1264
1265
  }
1265
1266
  }
1266
1267
  }];
@@ -1334,9 +1335,12 @@ var panel_legacy = exports.panel_legacy = ['panel', {
1334
1335
  }
1335
1336
  }
1336
1337
  }];
1337
- var nestedExpand_content = exports.nestedExpand_content = ['nestedExpand', {
1338
- props: {}
1339
- }];
1338
+ var nestedExpand_content = exports.nestedExpand_content = {
1339
+ type: 'array',
1340
+ items: [['blockquote', 'bulletList', 'codeBlock_with_no_marks', 'decisionList', 'heading_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'orderedList', 'panel', 'paragraph_with_no_marks', 'rule', 'taskList']],
1341
+ minItems: 1,
1342
+ allowUnsupportedBlock: true
1343
+ };
1340
1344
  var nestedExpand_with_no_marks = exports.nestedExpand_with_no_marks = ['nestedExpand', {
1341
1345
  props: {
1342
1346
  marks: {
@@ -1505,19 +1509,11 @@ var tableHeader = exports.tableHeader = {
1505
1509
  },
1506
1510
  required: ['content']
1507
1511
  };
1508
- var tableCellContent = exports.tableCellContent = {
1509
- props: {
1510
- type: {
1511
- type: 'enum',
1512
- values: ['tableCellContent']
1513
- },
1514
- content: {
1515
- type: 'array',
1516
- items: [['blockCard', 'blockquote', 'bulletList', 'codeBlock_with_no_marks', 'decisionList', 'embedCard', 'extension_with_marks', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'nestedExpand_with_no_marks', 'orderedList', 'panel', 'paragraph_with_alignment', 'paragraph_with_no_marks', 'rule', 'taskList']],
1517
- minItems: 1,
1518
- allowUnsupportedBlock: true
1519
- }
1520
- }
1512
+ var tableCell_content = exports.tableCell_content = {
1513
+ type: 'array',
1514
+ items: [['blockCard', 'blockquote', 'bulletList', 'codeBlock_with_no_marks', 'decisionList', 'embedCard', 'extension_with_marks', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'nestedExpand_with_no_marks', 'orderedList', 'panel', 'paragraph_with_alignment', 'paragraph_with_no_marks', 'rule', 'taskList']],
1515
+ minItems: 1,
1516
+ allowUnsupportedBlock: true
1521
1517
  };
1522
1518
  var tableRow = exports.tableRow = {
1523
1519
  props: {
@@ -1572,8 +1568,8 @@ var table = exports.table = {
1572
1568
  },
1573
1569
  marks: {
1574
1570
  type: 'array',
1575
- items: ['fragment'],
1576
- optional: true
1571
+ optional: true,
1572
+ items: ['fragment']
1577
1573
  }
1578
1574
  }
1579
1575
  };
@@ -1631,8 +1627,8 @@ var bodiedExtension_with_marks = exports.bodiedExtension_with_marks = ['bodiedEx
1631
1627
  props: {
1632
1628
  marks: {
1633
1629
  type: 'array',
1634
- items: [['dataConsumer', 'fragment']],
1635
- optional: true
1630
+ optional: true,
1631
+ items: [['dataConsumer', 'fragment']]
1636
1632
  }
1637
1633
  }
1638
1634
  }];
@@ -1677,8 +1673,8 @@ var expand_with_breakout_mark = exports.expand_with_breakout_mark = ['expand', {
1677
1673
  props: {
1678
1674
  marks: {
1679
1675
  type: 'array',
1680
- items: ['breakout'],
1681
- optional: true
1676
+ optional: true,
1677
+ items: ['breakout']
1682
1678
  }
1683
1679
  }
1684
1680
  }];
@@ -1733,8 +1729,8 @@ var layoutSection = exports.layoutSection = {
1733
1729
  },
1734
1730
  marks: {
1735
1731
  type: 'array',
1736
- items: ['breakout'],
1737
- optional: true
1732
+ optional: true,
1733
+ items: ['breakout']
1738
1734
  }
1739
1735
  }
1740
1736
  };
@@ -1749,8 +1745,8 @@ var layoutSection_full = exports.layoutSection_full = ['layoutSection', {
1749
1745
  },
1750
1746
  marks: {
1751
1747
  type: 'array',
1752
- items: ['breakout'],
1753
- optional: true
1748
+ optional: true,
1749
+ items: ['breakout']
1754
1750
  },
1755
1751
  type: {
1756
1752
  type: 'enum',
@@ -1791,8 +1787,8 @@ var extensionFrame = exports.extensionFrame = {
1791
1787
  },
1792
1788
  marks: {
1793
1789
  type: 'array',
1794
- items: [['dataConsumer', 'fragment']],
1795
- optional: true
1790
+ optional: true,
1791
+ items: [['dataConsumer', 'fragment']]
1796
1792
  }
1797
1793
  }
1798
1794
  };
@@ -0,0 +1,13 @@
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 { inlineExtension } from '../nodes/inlineExtension';
7
+ import { mediaInline } from '../nodes/mediaInline';
8
+ import { mention } from '../nodes/mention';
9
+ import { placeholder } from '../nodes/placeholder';
10
+ import { status } from '../nodes/status';
11
+ export const atomicInlineGroup = adfNodeGroup('atomic_inline', [hardBreak, mention, emoji, inlineExtension.use('with_marks'), date, placeholder, inlineCard, status, mediaInline], {
12
+ ignore: ['pm-spec', 'json-schema']
13
+ });
@@ -21,6 +21,6 @@ const tableCellContentNodes = [codeBlock.use('with_no_marks'), blockCard, paragr
21
21
  // @DSLCompatibilityException JSON Schema and PM Spec are not in sync. We need to fix it
22
22
  // In PM Spec, they contain different items. (tableHeader using tableHeaderContentPseudoGroup, tableCell using tableCellContentPseudoGroup)
23
23
  // In JSON Schema, both tableHeader and tableCell points to tableCellContentPseudoGroup
24
- // The differences are highighted below.
24
+ // The differences are highlighted below.
25
25
  export const tableCellContentPseudoGroup = $onePlus($or(...tableCellContentNodes, unsupportedBlock));
26
26
  export const tableHeaderContentPseudoGroup = $onePlus($or(...tableCellContentNodes, nestedExpand));
@@ -47,7 +47,7 @@ export const nestedExpand = adfNode('nestedExpand').define({
47
47
  }
48
48
  }
49
49
  }).variant('content', {
50
- ignore: ['pm-spec', 'validator-spec']
50
+ ignore: ['pm-spec']
51
51
  }).variant('with_no_marks', {
52
52
  marks: [],
53
53
  content: [],
@@ -1,4 +1,5 @@
1
1
  import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { atomicInlineGroup } from '../groups/atomicInlineGroup';
2
3
  import { inlineContentGroup } from '../groups/inlineContentGroup';
3
4
  import { inlineGroup } from '../groups/inlineGroup';
4
5
  import { alignment, indentation } from '../marks/alignmentAndIndentation';
@@ -15,7 +16,7 @@ export const paragraph = adfNode('paragraph').define({
15
16
  selectable: false,
16
17
  marks: [unsupportedNodeAttribute, unsupportedMark],
17
18
  hasEmptyMarks: true,
18
- content: [$zeroPlus($or(inlineGroup, inlineContentGroup))],
19
+ content: [$zeroPlus($or(inlineGroup, atomicInlineGroup, inlineContentGroup))],
19
20
  DANGEROUS_MANUAL_OVERRIDE: {
20
21
  'validator-spec': {
21
22
  'props.marks': {
@@ -4,6 +4,6 @@ import { tableCellContentPseudoGroup } from '../groups/tableCellContentPseudoGro
4
4
  // @DSLCompatibilityException This is only used by JSON schema to group the table cell content into a definition.
5
5
  // This node should be deleted and the content should be replicated in the JSON schema for table header and table cell node
6
6
  export const tableCellContent = adfNode('tableCellContent').define({
7
- ignore: ['pm-spec', 'validator-spec'],
7
+ ignore: ['pm-spec'],
8
8
  content: [tableCellContentPseudoGroup]
9
9
  });