@atlaskit/adf-schema 52.8.0 → 52.9.1

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 (41) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/next-schema/generated/nodeTypes.js +9 -27
  3. package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -1
  4. package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
  5. package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  6. package/dist/cjs/next-schema/marks/fontSize.js +1 -2
  7. package/dist/cjs/next-schema/nodes/bodiedSyncBlock.js +1 -1
  8. package/dist/cjs/next-schema/nodes/paragraph.js +3 -14
  9. package/dist/cjs/schema/default-schema.js +1 -5
  10. package/dist/cjs/validator-schema/generated/validatorSpec.js +8 -26
  11. package/dist/es2019/next-schema/generated/nodeTypes.js +8 -26
  12. package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -1
  13. package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
  14. package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  15. package/dist/es2019/next-schema/marks/fontSize.js +1 -2
  16. package/dist/es2019/next-schema/nodes/bodiedSyncBlock.js +1 -1
  17. package/dist/es2019/next-schema/nodes/paragraph.js +3 -14
  18. package/dist/es2019/schema/default-schema.js +1 -5
  19. package/dist/es2019/validator-schema/generated/validatorSpec.js +7 -25
  20. package/dist/esm/next-schema/generated/nodeTypes.js +8 -26
  21. package/dist/esm/next-schema/groups/blockContentGroup.js +1 -1
  22. package/dist/esm/next-schema/groups/blockGroup.js +1 -1
  23. package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  24. package/dist/esm/next-schema/marks/fontSize.js +1 -2
  25. package/dist/esm/next-schema/nodes/bodiedSyncBlock.js +1 -1
  26. package/dist/esm/next-schema/nodes/paragraph.js +3 -14
  27. package/dist/esm/schema/default-schema.js +1 -5
  28. package/dist/esm/validator-schema/generated/validatorSpec.js +7 -25
  29. package/dist/json-schema/v1/full.json +73 -2
  30. package/dist/json-schema/v1/stage-0.json +8 -67
  31. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +3 -3
  32. package/dist/types/next-schema/generated/nodeTypes.d.ts +18 -36
  33. package/dist/types/next-schema/nodes/paragraph.d.ts +1 -14
  34. package/dist/types/validator-schema/generated/validatorSpec.d.ts +2 -20
  35. package/dist/types-ts4.5/next-schema/generated/nodeGroupTypes.d.ts +3 -3
  36. package/dist/types-ts4.5/next-schema/generated/nodeTypes.d.ts +18 -36
  37. package/dist/types-ts4.5/next-schema/nodes/paragraph.d.ts +1 -14
  38. package/dist/types-ts4.5/validator-schema/generated/validatorSpec.d.ts +2 -20
  39. package/json-schema/v1/full.json +73 -2
  40. package/json-schema/v1/stage-0.json +8 -67
  41. package/package.json +2 -2
@@ -49,7 +49,7 @@ export const backgroundColor = {
49
49
  }
50
50
  }
51
51
  };
52
- export const block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_font_size_and_alignment', 'paragraph_with_font_size_and_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'codeBlock_with_extended_attributes', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
52
+ export const block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'codeBlock_with_extended_attributes', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
53
53
  export const blockCard = {
54
54
  props: {
55
55
  attrs: [{
@@ -248,7 +248,7 @@ export const bodiedSyncBlock = {
248
248
  },
249
249
  content: {
250
250
  allowUnsupportedBlock: true,
251
- items: [['paragraph', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_font_size_and_alignment', 'paragraph_with_font_size_and_indentation', 'paragraph_with_no_marks', 'blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'layoutSection_with_single_column', 'layoutSection_full', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel', 'rule', 'table', 'taskList']],
251
+ items: [['paragraph', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_no_marks', 'blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'layoutSection_with_single_column', 'layoutSection_full', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel', 'rule', 'table', 'taskList']],
252
252
  minItems: 1,
253
253
  type: 'array'
254
254
  },
@@ -568,7 +568,7 @@ export const doc = {
568
568
  props: {
569
569
  content: {
570
570
  allowUnsupportedBlock: true,
571
- items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_font_size_and_alignment', 'paragraph_with_font_size_and_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'codeBlock_with_extended_attributes', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'codeBlock_root_only_with_extended_attributes', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only', 'syncBlock', 'bodiedSyncBlock']],
571
+ items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'codeBlock_with_extended_attributes', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'codeBlock_root_only_with_extended_attributes', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only', 'syncBlock', 'bodiedSyncBlock']],
572
572
  type: 'array'
573
573
  },
574
574
  type: {
@@ -1601,7 +1601,7 @@ export const paragraph = {
1601
1601
  export const paragraph_with_alignment = ['paragraph', {
1602
1602
  props: {
1603
1603
  marks: {
1604
- items: ['alignment'],
1604
+ items: [['fontSize', 'alignment']],
1605
1605
  optional: true,
1606
1606
  type: 'array'
1607
1607
  }
@@ -1616,28 +1616,10 @@ export const paragraph_with_font_size = ['paragraph', {
1616
1616
  }
1617
1617
  }
1618
1618
  }];
1619
- export const paragraph_with_font_size_and_alignment = ['paragraph', {
1620
- props: {
1621
- marks: {
1622
- items: [['fontSize', 'alignment']],
1623
- optional: true,
1624
- type: 'array'
1625
- }
1626
- }
1627
- }];
1628
- export const paragraph_with_font_size_and_indentation = ['paragraph', {
1629
- props: {
1630
- marks: {
1631
- items: [['fontSize', 'indentation']],
1632
- optional: true,
1633
- type: 'array'
1634
- }
1635
- }
1636
- }];
1637
1619
  export const paragraph_with_indentation = ['paragraph', {
1638
1620
  props: {
1639
1621
  marks: {
1640
- items: ['indentation'],
1622
+ items: [['fontSize', 'indentation']],
1641
1623
  optional: true,
1642
1624
  type: 'array'
1643
1625
  }
@@ -1855,7 +1837,7 @@ export const tableCell = {
1855
1837
  },
1856
1838
  content: {
1857
1839
  allowUnsupportedBlock: true,
1858
- items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_font_size_and_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'codeBlock_with_extended_attributes', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
1840
+ items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'codeBlock_with_extended_attributes', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
1859
1841
  minItems: 1,
1860
1842
  type: 'array'
1861
1843
  },
@@ -1897,7 +1879,7 @@ export const tableHeader = {
1897
1879
  }
1898
1880
  },
1899
1881
  content: {
1900
- items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_font_size_and_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'codeBlock_with_extended_attributes', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
1882
+ items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'codeBlock_with_extended_attributes', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
1901
1883
  minItems: 1,
1902
1884
  type: 'array'
1903
1885
  },
@@ -125,7 +125,7 @@ export var bodiedExtensionWithMarks = createPMNodeSpecFactory({
125
125
  });
126
126
  export var bodiedSyncBlock = createPMNodeSpecFactory({
127
127
  content: '(paragraph | blockCard | blockquote | bulletList | codeBlock | confluenceUnsupportedBlock | decisionList | embedCard | expand | heading | layoutSection | mediaGroup | mediaSingle | orderedList | panel | rule | table | taskList | unsupportedBlock)+',
128
- marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation fontSize breakout link fragment',
128
+ marks: 'unsupportedMark unsupportedNodeAttribute fontSize alignment indentation breakout link fragment',
129
129
  attrs: {
130
130
  resourceId: {
131
131
  default: ''
@@ -334,7 +334,7 @@ export var decisionList = createPMNodeSpecFactory({
334
334
  });
335
335
  export var doc = createPMNodeSpecFactory({
336
336
  content: '(block | codeBlock | layoutSection | blockRootOnly | expand | syncBlock | bodiedSyncBlock)+',
337
- marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation fontSize dataConsumer fragment breakout'
337
+ marks: 'unsupportedMark unsupportedNodeAttribute fontSize alignment indentation dataConsumer fragment breakout'
338
338
  });
339
339
  export var embedCard = createPMNodeSpecFactory({
340
340
  group: 'block',
@@ -656,7 +656,7 @@ export var inlineExtensionWithMarks = createPMNodeSpecFactory({
656
656
  });
657
657
  export var layoutColumn = createPMNodeSpecFactory({
658
658
  content: '(block | unsupportedBlock)+',
659
- marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation fontSize dataConsumer fragment',
659
+ marks: 'unsupportedMark unsupportedNodeAttribute fontSize alignment indentation dataConsumer fragment',
660
660
  attrs: {
661
661
  width: {
662
662
  default: undefined
@@ -1062,25 +1062,7 @@ export var paragraphWithAlignment = createPMNodeSpecFactory({
1062
1062
  },
1063
1063
  selectable: false
1064
1064
  });
1065
- export var paragraphWithFontSizeAndAlignmentStage0 = createPMNodeSpecFactory({
1066
- group: 'block',
1067
- attrs: {
1068
- localId: {
1069
- default: null
1070
- }
1071
- },
1072
- selectable: false
1073
- });
1074
- export var paragraphWithFontSizeAndIndentationStage0 = createPMNodeSpecFactory({
1075
- group: 'block',
1076
- attrs: {
1077
- localId: {
1078
- default: null
1079
- }
1080
- },
1081
- selectable: false
1082
- });
1083
- export var paragraphWithFontSizeStage0 = createPMNodeSpecFactory({
1065
+ export var paragraphWithFontSize = createPMNodeSpecFactory({
1084
1066
  attrs: {
1085
1067
  localId: {
1086
1068
  default: null
@@ -1235,7 +1217,7 @@ export var tableWithNestedTable = createPMNodeSpecFactory({
1235
1217
  });
1236
1218
  export var tableCell = createPMNodeSpecFactory({
1237
1219
  content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock)+',
1238
- marks: 'alignment unsupportedMark unsupportedNodeAttribute fontSize dataConsumer fragment',
1220
+ marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1239
1221
  attrs: {
1240
1222
  colspan: {
1241
1223
  default: 1
@@ -1259,7 +1241,7 @@ export var tableCell = createPMNodeSpecFactory({
1259
1241
  });
1260
1242
  export var tableCellWithNestedTable = createPMNodeSpecFactory({
1261
1243
  content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock | table)+',
1262
- marks: 'alignment unsupportedMark unsupportedNodeAttribute fontSize dataConsumer fragment',
1244
+ marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1263
1245
  attrs: {
1264
1246
  colspan: {
1265
1247
  default: 1
@@ -1283,7 +1265,7 @@ export var tableCellWithNestedTable = createPMNodeSpecFactory({
1283
1265
  });
1284
1266
  export var tableHeader = createPMNodeSpecFactory({
1285
1267
  content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand)+',
1286
- marks: 'alignment unsupportedMark unsupportedNodeAttribute fontSize dataConsumer fragment',
1268
+ marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1287
1269
  attrs: {
1288
1270
  colspan: {
1289
1271
  default: 1
@@ -1307,7 +1289,7 @@ export var tableHeader = createPMNodeSpecFactory({
1307
1289
  });
1308
1290
  export var tableHeaderWithNestedTable = createPMNodeSpecFactory({
1309
1291
  content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | table)+',
1310
- marks: 'alignment unsupportedMark unsupportedNodeAttribute fontSize dataConsumer fragment',
1292
+ marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1311
1293
  attrs: {
1312
1294
  colspan: {
1313
1295
  default: 1
@@ -31,7 +31,7 @@ import { unsupportedBlock } from '../nodes/unsupportedBlock';
31
31
  * - no base mediaSingle
32
32
  * - no base heading
33
33
  */
34
- export var blockContentGroup = adfNodeGroup('block_content', [blockCard, paragraph.use('with_no_marks'), paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_font_size_and_alignment'), paragraph.use('with_font_size_and_indentation'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, codeBlock.use('with_extended_attributes'), taskList, bulletList, orderedList, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), mediaGroup, decisionList, rule, panel, blockquote, extension.use('with_marks'), embedCard, table,
34
+ export var blockContentGroup = adfNodeGroup('block_content', [blockCard, paragraph.use('with_no_marks'), paragraph.use('with_alignment'), paragraph.use('with_indentation'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, codeBlock.use('with_extended_attributes'), taskList, bulletList, orderedList, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), mediaGroup, decisionList, rule, panel, blockquote, extension.use('with_marks'), embedCard, table,
35
35
  // @ts-expect-error - types don't deal well with circular references for the variant
36
36
  table.use('with_nested_table'), expand, bodiedExtension.use('with_marks'), confluenceUnsupportedBlock, unsupportedBlock], {
37
37
  ignore: ['pm-spec']
@@ -18,7 +18,7 @@ import { rule } from '../nodes/rule';
18
18
  import { table } from '../nodes/tableNodes';
19
19
  import { taskList } from '../nodes/task';
20
20
  import { unsupportedBlock } from '../nodes/unsupportedBlock';
21
- export var blockGroup = adfNodeGroup('block', [blockCard, codeBlock, codeBlock.use('with_extended_attributes'), mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_font_size_and_alignment'), paragraph.use('with_font_size_and_indentation'), paragraph.use('with_no_marks'), taskList, orderedList, bulletList, blockquote, blockquote.use('legacy'), decisionList, embedCard, extension, extension.use('with_marks'), heading, heading.use('with_indentation'), heading.use('with_no_marks'), heading.use('with_alignment'), mediaGroup, rule, panel, table,
21
+ export var blockGroup = adfNodeGroup('block', [blockCard, codeBlock, codeBlock.use('with_extended_attributes'), mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), taskList, orderedList, bulletList, blockquote, blockquote.use('legacy'), decisionList, embedCard, extension, extension.use('with_marks'), heading, heading.use('with_indentation'), heading.use('with_no_marks'), heading.use('with_alignment'), mediaGroup, rule, panel, table,
22
22
  // @ts-expect-error - types don't deal well with circular references for the variant
23
23
  table.use('with_nested_table'), bodiedExtension, bodiedExtension.use('with_marks'), expand, confluenceUnsupportedBlock, unsupportedBlock], {
24
24
  // @DSLCompatibilityException
@@ -17,7 +17,7 @@ import { taskList } from '../nodes/task';
17
17
  import { unsupportedBlock } from '../nodes/unsupportedBlock';
18
18
 
19
19
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
- export var tableCellContentNodes = [paragraph.use('with_no_marks'), paragraph.use('with_alignment'), paragraph.use('with_font_size_and_alignment'), panel, blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), codeBlock, codeBlock.use('with_extended_attributes'), mediaSingle.use('caption'), mediaSingle.use('full'), mediaGroup, decisionList, taskList, blockCard, embedCard, extension.use('with_marks'), nestedExpand.use('content'), nestedExpand.use('with_no_marks')];
20
+ export var tableCellContentNodes = [paragraph.use('with_no_marks'), paragraph.use('with_alignment'), panel, blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), codeBlock, codeBlock.use('with_extended_attributes'), mediaSingle.use('caption'), mediaSingle.use('full'), mediaGroup, decisionList, taskList, blockCard, embedCard, extension.use('with_marks'), nestedExpand.use('content'), nestedExpand.use('with_no_marks')];
21
21
 
22
22
  // This is not an actual group, but a collection of nodes
23
23
  // @DSLCompatibilityException JSON Schema and PM Spec are not in sync. We need to fix it
@@ -21,6 +21,5 @@ export var fontSize = adfMark('fontSize').define({
21
21
  type: 'enum',
22
22
  values: ['small']
23
23
  }
24
- },
25
- stage0: true
24
+ }
26
25
  });
@@ -34,7 +34,7 @@ export var bodiedSyncBlock = adfNode('bodiedSyncBlock').define({
34
34
  default: ''
35
35
  }
36
36
  },
37
- content: [$onePlus($or(paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_font_size_and_alignment'), paragraph.use('with_font_size_and_indentation'), paragraph.use('with_no_marks'), blockCard, blockquote, blockquote.use('legacy'), bulletList, codeBlock, confluenceUnsupportedBlock, decisionList, embedCard, expand, heading, heading.use('with_alignment'), heading.use('with_indentation'), heading.use('with_no_marks'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), mediaGroup, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), orderedList, panel, rule, table,
37
+ content: [$onePlus($or(paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), blockCard, blockquote, blockquote.use('legacy'), bulletList, codeBlock, confluenceUnsupportedBlock, decisionList, embedCard, expand, heading, heading.use('with_alignment'), heading.use('with_indentation'), heading.use('with_no_marks'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), mediaGroup, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), orderedList, panel, rule, table,
38
38
  // @ts-expect-error - types don't deal well with circular references for the variant
39
39
  table.use('with_nested_table'), taskList, unsupportedBlock))]
40
40
  });
@@ -18,11 +18,11 @@ export var paragraph = adfNode('paragraph').define({
18
18
  hasEmptyMarks: true,
19
19
  content: [$zeroPlus($or(inlineGroup, inlineContentGroup))]
20
20
  }).variant('with_alignment', {
21
- marks: [alignment, unsupportedMark, unsupportedNodeAttribute],
21
+ marks: [fontSize, alignment, unsupportedMark, unsupportedNodeAttribute],
22
22
  content: [],
23
23
  ignore: []
24
24
  }).variant('with_indentation', {
25
- marks: [indentation, unsupportedMark, unsupportedNodeAttribute],
25
+ marks: [fontSize, indentation, unsupportedMark, unsupportedNodeAttribute],
26
26
  content: [],
27
27
  ignore: []
28
28
  }).variant('with_marks', {
@@ -37,16 +37,5 @@ export var paragraph = adfNode('paragraph').define({
37
37
  }).variant('with_font_size', {
38
38
  marks: [fontSize, unsupportedMark, unsupportedNodeAttribute],
39
39
  content: [],
40
- ignore: [],
41
- stage0: true
42
- }).variant('with_font_size_and_alignment', {
43
- marks: [fontSize, alignment, unsupportedMark, unsupportedNodeAttribute],
44
- content: [],
45
- ignore: [],
46
- stage0: true
47
- }).variant('with_font_size_and_indentation', {
48
- marks: [fontSize, indentation, unsupportedMark, unsupportedNodeAttribute],
49
- content: [],
50
- ignore: [],
51
- stage0: true
40
+ ignore: []
52
41
  });
@@ -1,11 +1,10 @@
1
1
  import memoizeOne from 'memoize-one';
2
2
  import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, codeBlockWithExtendedAttributes } from './nodes';
3
3
  import { createSchema } from './create-schema';
4
- import { fontSize } from './marks/font-size';
5
4
  var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
6
5
  var defaultSchemaConfig = {
7
6
  nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'image', 'caption', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'blockTaskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'syncBlock', 'bodiedSyncBlock', 'unsupportedBlock', 'unsupportedInline'],
8
- marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'backgroundColor', 'confluenceInlineComment', 'breakout', 'alignment', 'indentation', 'annotation', 'dataConsumer', 'border', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery',
7
+ marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'backgroundColor', 'confluenceInlineComment', 'breakout', 'alignment', 'indentation', 'annotation', 'fontSize', 'dataConsumer', 'border', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery',
9
8
  // https://product-fabric.atlassian.net/browse/ED-10214,
10
9
  'fragment']
11
10
  };
@@ -31,9 +30,6 @@ function () {
31
30
  tableHeader: tableHeaderWithNestedTable,
32
31
  codeBlock: codeBlockWithExtendedAttributes
33
32
  };
34
- defaultSchemaConfig.customMarkSpecs = {
35
- fontSize: fontSize
36
- };
37
33
  }
38
34
  return createSchema(defaultSchemaConfig);
39
35
  });
@@ -49,7 +49,7 @@ export var backgroundColor = {
49
49
  }
50
50
  }
51
51
  };
52
- export var block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_font_size_and_alignment', 'paragraph_with_font_size_and_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'codeBlock_with_extended_attributes', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
52
+ export var block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'codeBlock_with_extended_attributes', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
53
53
  export var blockCard = {
54
54
  props: {
55
55
  attrs: [{
@@ -248,7 +248,7 @@ export var bodiedSyncBlock = {
248
248
  },
249
249
  content: {
250
250
  allowUnsupportedBlock: true,
251
- items: [['paragraph', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_font_size_and_alignment', 'paragraph_with_font_size_and_indentation', 'paragraph_with_no_marks', 'blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'layoutSection_with_single_column', 'layoutSection_full', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel', 'rule', 'table', 'taskList']],
251
+ items: [['paragraph', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_no_marks', 'blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'layoutSection_with_single_column', 'layoutSection_full', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel', 'rule', 'table', 'taskList']],
252
252
  minItems: 1,
253
253
  type: 'array'
254
254
  },
@@ -568,7 +568,7 @@ export var doc = {
568
568
  props: {
569
569
  content: {
570
570
  allowUnsupportedBlock: true,
571
- items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_font_size_and_alignment', 'paragraph_with_font_size_and_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'codeBlock_with_extended_attributes', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'codeBlock_root_only_with_extended_attributes', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only', 'syncBlock', 'bodiedSyncBlock']],
571
+ items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'codeBlock_with_extended_attributes', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'codeBlock_root_only_with_extended_attributes', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only', 'syncBlock', 'bodiedSyncBlock']],
572
572
  type: 'array'
573
573
  },
574
574
  type: {
@@ -1601,7 +1601,7 @@ export var paragraph = {
1601
1601
  export var paragraph_with_alignment = ['paragraph', {
1602
1602
  props: {
1603
1603
  marks: {
1604
- items: ['alignment'],
1604
+ items: [['fontSize', 'alignment']],
1605
1605
  optional: true,
1606
1606
  type: 'array'
1607
1607
  }
@@ -1616,28 +1616,10 @@ export var paragraph_with_font_size = ['paragraph', {
1616
1616
  }
1617
1617
  }
1618
1618
  }];
1619
- export var paragraph_with_font_size_and_alignment = ['paragraph', {
1620
- props: {
1621
- marks: {
1622
- items: [['fontSize', 'alignment']],
1623
- optional: true,
1624
- type: 'array'
1625
- }
1626
- }
1627
- }];
1628
- export var paragraph_with_font_size_and_indentation = ['paragraph', {
1629
- props: {
1630
- marks: {
1631
- items: [['fontSize', 'indentation']],
1632
- optional: true,
1633
- type: 'array'
1634
- }
1635
- }
1636
- }];
1637
1619
  export var paragraph_with_indentation = ['paragraph', {
1638
1620
  props: {
1639
1621
  marks: {
1640
- items: ['indentation'],
1622
+ items: [['fontSize', 'indentation']],
1641
1623
  optional: true,
1642
1624
  type: 'array'
1643
1625
  }
@@ -1855,7 +1837,7 @@ export var tableCell = {
1855
1837
  },
1856
1838
  content: {
1857
1839
  allowUnsupportedBlock: true,
1858
- items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_font_size_and_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'codeBlock_with_extended_attributes', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
1840
+ items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'codeBlock_with_extended_attributes', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
1859
1841
  minItems: 1,
1860
1842
  type: 'array'
1861
1843
  },
@@ -1897,7 +1879,7 @@ export var tableHeader = {
1897
1879
  }
1898
1880
  },
1899
1881
  content: {
1900
- items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_font_size_and_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'codeBlock_with_extended_attributes', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
1882
+ items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'codeBlock_with_extended_attributes', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
1901
1883
  minItems: 1,
1902
1884
  type: 'array'
1903
1885
  },
@@ -309,6 +309,9 @@
309
309
  {
310
310
  "$ref": "#/definitions/paragraph_with_no_marks_node"
311
311
  },
312
+ {
313
+ "$ref": "#/definitions/paragraph_with_font_size_node"
314
+ },
312
315
  {
313
316
  "$ref": "#/definitions/extension_with_marks_node"
314
317
  }
@@ -319,6 +322,9 @@
319
322
  {
320
323
  "$ref": "#/definitions/paragraph_with_no_marks_node"
321
324
  },
325
+ {
326
+ "$ref": "#/definitions/paragraph_with_font_size_node"
327
+ },
322
328
  {
323
329
  "$ref": "#/definitions/extension_with_marks_node"
324
330
  }
@@ -1196,6 +1202,26 @@
1196
1202
  }
1197
1203
  ]
1198
1204
  },
1205
+ "fontSize_mark": {
1206
+ "type": "object",
1207
+ "properties": {
1208
+ "type": {
1209
+ "enum": ["fontSize"]
1210
+ },
1211
+ "attrs": {
1212
+ "type": "object",
1213
+ "properties": {
1214
+ "fontSize": {
1215
+ "enum": ["small"]
1216
+ }
1217
+ },
1218
+ "required": ["fontSize"],
1219
+ "additionalProperties": false
1220
+ }
1221
+ },
1222
+ "required": ["type", "attrs"],
1223
+ "additionalProperties": false
1224
+ },
1199
1225
  "formatted_text_inline_node": {
1200
1226
  "allOf": [
1201
1227
  {
@@ -1679,6 +1705,9 @@
1679
1705
  "type": "array",
1680
1706
  "items": {
1681
1707
  "anyOf": [
1708
+ {
1709
+ "$ref": "#/definitions/paragraph_with_font_size_node"
1710
+ },
1682
1711
  {
1683
1712
  "$ref": "#/definitions/paragraph_with_no_marks_node"
1684
1713
  },
@@ -2047,6 +2076,9 @@
2047
2076
  {
2048
2077
  "$ref": "#/definitions/paragraph_with_no_marks_node"
2049
2078
  },
2079
+ {
2080
+ "$ref": "#/definitions/paragraph_with_font_size_node"
2081
+ },
2050
2082
  {
2051
2083
  "$ref": "#/definitions/heading_with_no_marks_node"
2052
2084
  },
@@ -2137,6 +2169,9 @@
2137
2169
  {
2138
2170
  "$ref": "#/definitions/paragraph_with_no_marks_node"
2139
2171
  },
2172
+ {
2173
+ "$ref": "#/definitions/paragraph_with_font_size_node"
2174
+ },
2140
2175
  {
2141
2176
  "$ref": "#/definitions/panel_node"
2142
2177
  },
@@ -2263,6 +2298,9 @@
2263
2298
  {
2264
2299
  "$ref": "#/definitions/paragraph_with_no_marks_node"
2265
2300
  },
2301
+ {
2302
+ "$ref": "#/definitions/paragraph_with_font_size_node"
2303
+ },
2266
2304
  {
2267
2305
  "$ref": "#/definitions/heading_with_no_marks_node"
2268
2306
  },
@@ -2346,7 +2384,33 @@
2346
2384
  "marks": {
2347
2385
  "type": "array",
2348
2386
  "items": {
2349
- "$ref": "#/definitions/alignment_mark"
2387
+ "anyOf": [
2388
+ {
2389
+ "$ref": "#/definitions/fontSize_mark"
2390
+ },
2391
+ {
2392
+ "$ref": "#/definitions/alignment_mark"
2393
+ }
2394
+ ]
2395
+ }
2396
+ }
2397
+ },
2398
+ "additionalProperties": true
2399
+ }
2400
+ ]
2401
+ },
2402
+ "paragraph_with_font_size_node": {
2403
+ "allOf": [
2404
+ {
2405
+ "$ref": "#/definitions/paragraph_node"
2406
+ },
2407
+ {
2408
+ "type": "object",
2409
+ "properties": {
2410
+ "marks": {
2411
+ "type": "array",
2412
+ "items": {
2413
+ "$ref": "#/definitions/fontSize_mark"
2350
2414
  }
2351
2415
  }
2352
2416
  },
@@ -2365,7 +2429,14 @@
2365
2429
  "marks": {
2366
2430
  "type": "array",
2367
2431
  "items": {
2368
- "$ref": "#/definitions/indentation_mark"
2432
+ "anyOf": [
2433
+ {
2434
+ "$ref": "#/definitions/fontSize_mark"
2435
+ },
2436
+ {
2437
+ "$ref": "#/definitions/indentation_mark"
2438
+ }
2439
+ ]
2369
2440
  }
2370
2441
  }
2371
2442
  },
@@ -81,12 +81,6 @@
81
81
  {
82
82
  "$ref": "#/definitions/paragraph_with_indentation_node"
83
83
  },
84
- {
85
- "$ref": "#/definitions/paragraph_with_font_size_and_alignment_node"
86
- },
87
- {
88
- "$ref": "#/definitions/paragraph_with_font_size_and_indentation_node"
89
- },
90
84
  {
91
85
  "$ref": "#/definitions/mediaSingle_caption_node"
92
86
  },
@@ -456,12 +450,6 @@
456
450
  {
457
451
  "$ref": "#/definitions/paragraph_with_indentation_node"
458
452
  },
459
- {
460
- "$ref": "#/definitions/paragraph_with_font_size_and_alignment_node"
461
- },
462
- {
463
- "$ref": "#/definitions/paragraph_with_font_size_and_indentation_node"
464
- },
465
453
  {
466
454
  "$ref": "#/definitions/paragraph_with_no_marks_node"
467
455
  },
@@ -1006,12 +994,6 @@
1006
994
  {
1007
995
  "$ref": "#/definitions/paragraph_with_indentation_node"
1008
996
  },
1009
- {
1010
- "$ref": "#/definitions/paragraph_with_font_size_and_alignment_node"
1011
- },
1012
- {
1013
- "$ref": "#/definitions/paragraph_with_font_size_and_indentation_node"
1014
- },
1015
997
  {
1016
998
  "$ref": "#/definitions/paragraph_with_no_marks_node"
1017
999
  },
@@ -2691,25 +2673,6 @@
2691
2673
  "required": ["type"]
2692
2674
  },
2693
2675
  "paragraph_with_alignment_node": {
2694
- "allOf": [
2695
- {
2696
- "$ref": "#/definitions/paragraph_node"
2697
- },
2698
- {
2699
- "type": "object",
2700
- "properties": {
2701
- "marks": {
2702
- "type": "array",
2703
- "items": {
2704
- "$ref": "#/definitions/alignment_mark"
2705
- }
2706
- }
2707
- },
2708
- "additionalProperties": true
2709
- }
2710
- ]
2711
- },
2712
- "paragraph_with_font_size_and_alignment_node": {
2713
2676
  "allOf": [
2714
2677
  {
2715
2678
  "$ref": "#/definitions/paragraph_node"
@@ -2735,32 +2698,6 @@
2735
2698
  }
2736
2699
  ]
2737
2700
  },
2738
- "paragraph_with_font_size_and_indentation_node": {
2739
- "allOf": [
2740
- {
2741
- "$ref": "#/definitions/paragraph_node"
2742
- },
2743
- {
2744
- "type": "object",
2745
- "properties": {
2746
- "marks": {
2747
- "type": "array",
2748
- "items": {
2749
- "anyOf": [
2750
- {
2751
- "$ref": "#/definitions/fontSize_mark"
2752
- },
2753
- {
2754
- "$ref": "#/definitions/indentation_mark"
2755
- }
2756
- ]
2757
- }
2758
- }
2759
- },
2760
- "additionalProperties": true
2761
- }
2762
- ]
2763
- },
2764
2701
  "paragraph_with_font_size_node": {
2765
2702
  "allOf": [
2766
2703
  {
@@ -2791,7 +2728,14 @@
2791
2728
  "marks": {
2792
2729
  "type": "array",
2793
2730
  "items": {
2794
- "$ref": "#/definitions/indentation_mark"
2731
+ "anyOf": [
2732
+ {
2733
+ "$ref": "#/definitions/fontSize_mark"
2734
+ },
2735
+ {
2736
+ "$ref": "#/definitions/indentation_mark"
2737
+ }
2738
+ ]
2795
2739
  }
2796
2740
  }
2797
2741
  },
@@ -2973,9 +2917,6 @@
2973
2917
  {
2974
2918
  "$ref": "#/definitions/paragraph_with_alignment_node"
2975
2919
  },
2976
- {
2977
- "$ref": "#/definitions/paragraph_with_font_size_and_alignment_node"
2978
- },
2979
2920
  {
2980
2921
  "$ref": "#/definitions/panel_node"
2981
2922
  },