@atlaskit/adf-schema 45.0.0 → 45.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 45.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0ad17eb: Remove DSL inconsistency for code block with text with new no mark text variant - no functionality changes.
8
+
9
+ Added: `text_with_no_marks` variant
10
+
11
+ ## 45.1.0
12
+
13
+ ### Minor Changes
14
+
15
+ - aab5f4d: Validator will now correctly validate media inline nodes with the URL attribute
16
+
17
+ ### Patch Changes
18
+
19
+ - 162fff6: Remove exception for uniqueId on codeBlock and allow property on validator and json schema.
20
+
3
21
  ## 45.0.0
4
22
 
5
23
  ### Major Changes
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.unsupportedInline = exports.unsupportedBlock = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTable = exports.tableHeader = exports.tableCellWithNestedTable = exports.tableCell = exports.table = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panelWithNestedBlockquoteStage0 = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItemWithNestedDecisionStage0 = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandWithoutNestedExpand = exports.expandWithNoMark = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockRootOnly = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteWithoutNestedCodeblockOrMedia = exports.blockquoteLegacy = exports.blockquote = exports.blockCard = void 0;
6
+ exports.unsupportedInline = exports.unsupportedBlock = exports.textWithNoMarks = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTable = exports.tableHeader = exports.tableCellWithNestedTable = exports.tableCell = exports.table = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panelWithNestedBlockquoteStage0 = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItemWithNestedDecisionStage0 = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandWithoutNestedExpand = exports.expandWithNoMark = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockRootOnly = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteWithoutNestedCodeblockOrMedia = exports.blockquoteLegacy = exports.blockquote = exports.blockCard = void 0;
7
7
  var _createPMSpecFactory = require("../../schema/createPMSpecFactory");
8
8
  /**
9
9
  * This file was automatically generated by @atlaskit/adf-schema-generator
@@ -1196,6 +1196,7 @@ var textCodeInline = exports.textCodeInline = (0, _createPMSpecFactory.createPMN
1196
1196
  var textFormatted = exports.textFormatted = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
1197
1197
  group: 'inline'
1198
1198
  });
1199
+ var textWithNoMarks = exports.textWithNoMarks = (0, _createPMSpecFactory.createPMNodeSpecFactory)({});
1199
1200
  var unsupportedBlock = exports.unsupportedBlock = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
1200
1201
  group: 'block',
1201
1202
  atom: true,
@@ -26,28 +26,7 @@ var codeBlock = exports.codeBlock = (0, _adfSchemaGenerator.adfNode)('codeBlock'
26
26
  }
27
27
  },
28
28
  noMarks: true,
29
- content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_text.text, _unsupportedInline.unsupportedInline))],
30
- DANGEROUS_MANUAL_OVERRIDE: {
31
- 'validator-spec': {
32
- 'props.attrs.props.uniqueId': {
33
- remove: true,
34
- reason: '@DSLCompatibilityException - uniqueId is missing in the existing validator spec'
35
- },
36
- 'props.content.items': {
37
- value: [['text', {
38
- props: {
39
- marks: {
40
- items: [],
41
- maxItems: 0,
42
- optional: true,
43
- type: 'array'
44
- }
45
- }
46
- }]],
47
- reason: '@DSLCompatibilityException - text variant is inlined, which is not supported by current transformation'
48
- }
49
- }
50
- }
29
+ content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_text.text.use('with_no_marks'), _unsupportedInline.unsupportedInline))]
51
30
  })
52
31
  // Variant used root scenario where we have breakout
53
32
  .variant('root_only', {
@@ -97,13 +97,5 @@ var mediaInline = exports.mediaInline = (0, _adfSchemaGenerator.adfNode)('mediaI
97
97
  type: 'object',
98
98
  optional: true
99
99
  }
100
- },
101
- DANGEROUS_MANUAL_OVERRIDE: {
102
- 'validator-spec': {
103
- 'props.attrs.props.url': {
104
- remove: true,
105
- reason: '@DSLCompatibilityException - url is not specified on the validator spec (but it probably should be)'
106
- }
107
- }
108
100
  }
109
101
  });
@@ -21,6 +21,9 @@ var _confluenceInlineComment = require("../marks/confluenceInlineComment");
21
21
  var text = exports.text = (0, _adfSchemaGenerator.adfNode)('text').define({
22
22
  marks: [],
23
23
  hasEmptyMarks: true
24
+ }).variant('with_no_marks', {
25
+ marks: [],
26
+ noMarks: true
24
27
  }).variant('link_inline', {
25
28
  marks: [_link.link],
26
29
  ignore: ['pm-spec', 'json-schema']
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.underline = exports.text_link_inline = exports.text_formatted = exports.text_code_inline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = 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_with_nested_blockquote = 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_with_nested_decision = exports.listItem = exports.link = exports.layoutSection_with_single_column = exports.layoutSection_full = exports.layoutSection = exports.layoutColumn = exports.inline_content = exports.inlineExtension_with_marks = exports.inlineExtension = exports.inlineCard = exports.indentation = exports.heading_with_no_marks = exports.heading_with_indentation = exports.heading_with_alignment = exports.heading = exports.hardBreak = exports.fragment = 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.confluenceInlineComment = exports.codeBlock_root_only = exports.codeBlock = exports.code = exports.caption = exports.bulletList = exports.breakout = exports.border = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.blockquote = exports.block_content = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.annotation = exports.alignment = void 0;
6
+ exports.underline = exports.text_with_no_marks = exports.text_link_inline = exports.text_formatted = exports.text_code_inline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = 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_with_nested_blockquote = 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_with_nested_decision = exports.listItem = exports.link = exports.layoutSection_with_single_column = exports.layoutSection_full = exports.layoutSection = exports.layoutColumn = exports.inline_content = exports.inlineExtension_with_marks = exports.inlineExtension = exports.inlineCard = exports.indentation = exports.heading_with_no_marks = exports.heading_with_indentation = exports.heading_with_alignment = exports.heading = exports.hardBreak = exports.fragment = 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.confluenceInlineComment = exports.codeBlock_root_only = exports.codeBlock = exports.code = exports.caption = exports.bulletList = exports.breakout = exports.border = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.blockquote = exports.block_content = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.annotation = exports.alignment = void 0;
7
7
  var alignment = exports.alignment = {
8
8
  props: {
9
9
  type: {
@@ -281,22 +281,17 @@ var codeBlock = exports.codeBlock = {
281
281
  language: {
282
282
  type: 'string',
283
283
  optional: true
284
+ },
285
+ uniqueId: {
286
+ type: 'string',
287
+ optional: true
284
288
  }
285
289
  },
286
290
  optional: true
287
291
  },
288
292
  content: {
289
293
  type: 'array',
290
- items: [['text', {
291
- props: {
292
- marks: {
293
- items: [],
294
- maxItems: 0,
295
- optional: true,
296
- type: 'array'
297
- }
298
- }
299
- }]],
294
+ items: ['text_with_no_marks'],
300
295
  optional: true,
301
296
  allowUnsupportedInline: true
302
297
  }
@@ -1043,6 +1038,10 @@ var mediaInline = exports.mediaInline = {
1043
1038
  values: ['link', 'file', 'image'],
1044
1039
  optional: true
1045
1040
  },
1041
+ url: {
1042
+ type: 'string',
1043
+ optional: true
1044
+ },
1046
1045
  id: {
1047
1046
  minLength: 1,
1048
1047
  type: 'string'
@@ -1721,6 +1720,16 @@ var text_link_inline = exports.text_link_inline = ['text', {
1721
1720
  }
1722
1721
  }
1723
1722
  }];
1723
+ var text_with_no_marks = exports.text_with_no_marks = ['text', {
1724
+ props: {
1725
+ marks: {
1726
+ type: 'array',
1727
+ maxItems: 0,
1728
+ items: [],
1729
+ optional: true
1730
+ }
1731
+ }
1732
+ }];
1724
1733
  var textColor = exports.textColor = {
1725
1734
  props: {
1726
1735
  type: {
@@ -1190,6 +1190,7 @@ export const textCodeInline = createPMNodeSpecFactory({
1190
1190
  export const textFormatted = createPMNodeSpecFactory({
1191
1191
  group: 'inline'
1192
1192
  });
1193
+ export const textWithNoMarks = createPMNodeSpecFactory({});
1193
1194
  export const unsupportedBlock = createPMNodeSpecFactory({
1194
1195
  group: 'block',
1195
1196
  atom: true,
@@ -20,28 +20,7 @@ export const codeBlock = adfNode('codeBlock').define({
20
20
  }
21
21
  },
22
22
  noMarks: true,
23
- content: [$zeroPlus($or(text, unsupportedInline))],
24
- DANGEROUS_MANUAL_OVERRIDE: {
25
- 'validator-spec': {
26
- 'props.attrs.props.uniqueId': {
27
- remove: true,
28
- reason: '@DSLCompatibilityException - uniqueId is missing in the existing validator spec'
29
- },
30
- 'props.content.items': {
31
- value: [['text', {
32
- props: {
33
- marks: {
34
- items: [],
35
- maxItems: 0,
36
- optional: true,
37
- type: 'array'
38
- }
39
- }
40
- }]],
41
- reason: '@DSLCompatibilityException - text variant is inlined, which is not supported by current transformation'
42
- }
43
- }
44
- }
23
+ content: [$zeroPlus($or(text.use('with_no_marks'), unsupportedInline))]
45
24
  })
46
25
  // Variant used root scenario where we have breakout
47
26
  .variant('root_only', {
@@ -91,13 +91,5 @@ export const mediaInline = adfNode('mediaInline').define({
91
91
  type: 'object',
92
92
  optional: true
93
93
  }
94
- },
95
- DANGEROUS_MANUAL_OVERRIDE: {
96
- 'validator-spec': {
97
- 'props.attrs.props.url': {
98
- remove: true,
99
- reason: '@DSLCompatibilityException - url is not specified on the validator spec (but it probably should be)'
100
- }
101
- }
102
94
  }
103
95
  });
@@ -15,6 +15,9 @@ import { confluenceInlineComment } from '../marks/confluenceInlineComment';
15
15
  export const text = adfNode('text').define({
16
16
  marks: [],
17
17
  hasEmptyMarks: true
18
+ }).variant('with_no_marks', {
19
+ marks: [],
20
+ noMarks: true
18
21
  }).variant('link_inline', {
19
22
  marks: [link],
20
23
  ignore: ['pm-spec', 'json-schema']
@@ -275,22 +275,17 @@ export const codeBlock = {
275
275
  language: {
276
276
  type: 'string',
277
277
  optional: true
278
+ },
279
+ uniqueId: {
280
+ type: 'string',
281
+ optional: true
278
282
  }
279
283
  },
280
284
  optional: true
281
285
  },
282
286
  content: {
283
287
  type: 'array',
284
- items: [['text', {
285
- props: {
286
- marks: {
287
- items: [],
288
- maxItems: 0,
289
- optional: true,
290
- type: 'array'
291
- }
292
- }
293
- }]],
288
+ items: ['text_with_no_marks'],
294
289
  optional: true,
295
290
  allowUnsupportedInline: true
296
291
  }
@@ -1037,6 +1032,10 @@ export const mediaInline = {
1037
1032
  values: ['link', 'file', 'image'],
1038
1033
  optional: true
1039
1034
  },
1035
+ url: {
1036
+ type: 'string',
1037
+ optional: true
1038
+ },
1040
1039
  id: {
1041
1040
  minLength: 1,
1042
1041
  type: 'string'
@@ -1715,6 +1714,16 @@ export const text_link_inline = ['text', {
1715
1714
  }
1716
1715
  }
1717
1716
  }];
1717
+ export const text_with_no_marks = ['text', {
1718
+ props: {
1719
+ marks: {
1720
+ type: 'array',
1721
+ maxItems: 0,
1722
+ items: [],
1723
+ optional: true
1724
+ }
1725
+ }
1726
+ }];
1718
1727
  export const textColor = {
1719
1728
  props: {
1720
1729
  type: {
@@ -1190,6 +1190,7 @@ export var textCodeInline = createPMNodeSpecFactory({
1190
1190
  export var textFormatted = createPMNodeSpecFactory({
1191
1191
  group: 'inline'
1192
1192
  });
1193
+ export var textWithNoMarks = createPMNodeSpecFactory({});
1193
1194
  export var unsupportedBlock = createPMNodeSpecFactory({
1194
1195
  group: 'block',
1195
1196
  atom: true,
@@ -20,28 +20,7 @@ export var codeBlock = adfNode('codeBlock').define({
20
20
  }
21
21
  },
22
22
  noMarks: true,
23
- content: [$zeroPlus($or(text, unsupportedInline))],
24
- DANGEROUS_MANUAL_OVERRIDE: {
25
- 'validator-spec': {
26
- 'props.attrs.props.uniqueId': {
27
- remove: true,
28
- reason: '@DSLCompatibilityException - uniqueId is missing in the existing validator spec'
29
- },
30
- 'props.content.items': {
31
- value: [['text', {
32
- props: {
33
- marks: {
34
- items: [],
35
- maxItems: 0,
36
- optional: true,
37
- type: 'array'
38
- }
39
- }
40
- }]],
41
- reason: '@DSLCompatibilityException - text variant is inlined, which is not supported by current transformation'
42
- }
43
- }
44
- }
23
+ content: [$zeroPlus($or(text.use('with_no_marks'), unsupportedInline))]
45
24
  })
46
25
  // Variant used root scenario where we have breakout
47
26
  .variant('root_only', {
@@ -91,13 +91,5 @@ export var mediaInline = adfNode('mediaInline').define({
91
91
  type: 'object',
92
92
  optional: true
93
93
  }
94
- },
95
- DANGEROUS_MANUAL_OVERRIDE: {
96
- 'validator-spec': {
97
- 'props.attrs.props.url': {
98
- remove: true,
99
- reason: '@DSLCompatibilityException - url is not specified on the validator spec (but it probably should be)'
100
- }
101
- }
102
94
  }
103
95
  });
@@ -15,6 +15,9 @@ import { confluenceInlineComment } from '../marks/confluenceInlineComment';
15
15
  export var text = adfNode('text').define({
16
16
  marks: [],
17
17
  hasEmptyMarks: true
18
+ }).variant('with_no_marks', {
19
+ marks: [],
20
+ noMarks: true
18
21
  }).variant('link_inline', {
19
22
  marks: [link],
20
23
  ignore: ['pm-spec', 'json-schema']
@@ -275,22 +275,17 @@ export var codeBlock = {
275
275
  language: {
276
276
  type: 'string',
277
277
  optional: true
278
+ },
279
+ uniqueId: {
280
+ type: 'string',
281
+ optional: true
278
282
  }
279
283
  },
280
284
  optional: true
281
285
  },
282
286
  content: {
283
287
  type: 'array',
284
- items: [['text', {
285
- props: {
286
- marks: {
287
- items: [],
288
- maxItems: 0,
289
- optional: true,
290
- type: 'array'
291
- }
292
- }
293
- }]],
288
+ items: ['text_with_no_marks'],
294
289
  optional: true,
295
290
  allowUnsupportedInline: true
296
291
  }
@@ -1037,6 +1032,10 @@ export var mediaInline = {
1037
1032
  values: ['link', 'file', 'image'],
1038
1033
  optional: true
1039
1034
  },
1035
+ url: {
1036
+ type: 'string',
1037
+ optional: true
1038
+ },
1040
1039
  id: {
1041
1040
  minLength: 1,
1042
1041
  type: 'string'
@@ -1715,6 +1714,16 @@ export var text_link_inline = ['text', {
1715
1714
  }
1716
1715
  }
1717
1716
  }];
1717
+ export var text_with_no_marks = ['text', {
1718
+ props: {
1719
+ marks: {
1720
+ type: 'array',
1721
+ maxItems: 0,
1722
+ items: [],
1723
+ optional: true
1724
+ }
1725
+ }
1726
+ }];
1718
1727
  export var textColor = {
1719
1728
  props: {
1720
1729
  type: {
@@ -497,6 +497,9 @@
497
497
  "properties": {
498
498
  "language": {
499
499
  "type": "string"
500
+ },
501
+ "uniqueId": {
502
+ "type": "string"
500
503
  }
501
504
  },
502
505
  "additionalProperties": false
@@ -504,21 +507,7 @@
504
507
  "content": {
505
508
  "type": "array",
506
509
  "items": {
507
- "allOf": [
508
- {
509
- "$ref": "#/definitions/text_node"
510
- },
511
- {
512
- "type": "object",
513
- "properties": {
514
- "marks": {
515
- "type": "array",
516
- "maxItems": 0
517
- }
518
- },
519
- "additionalProperties": true
520
- }
521
- ]
510
+ "$ref": "#/definitions/text_with_no_marks_node"
522
511
  }
523
512
  }
524
513
  },
@@ -552,21 +541,7 @@
552
541
  "content": {
553
542
  "type": "array",
554
543
  "items": {
555
- "allOf": [
556
- {
557
- "$ref": "#/definitions/text_node"
558
- },
559
- {
560
- "type": "object",
561
- "properties": {
562
- "marks": {
563
- "type": "array",
564
- "maxItems": 0
565
- }
566
- },
567
- "additionalProperties": true
568
- }
569
- ]
544
+ "$ref": "#/definitions/text_with_no_marks_node"
570
545
  }
571
546
  }
572
547
  },
@@ -2529,6 +2504,23 @@
2529
2504
  "additionalProperties": false,
2530
2505
  "required": ["type", "text"]
2531
2506
  },
2507
+ "text_with_no_marks_node": {
2508
+ "allOf": [
2509
+ {
2510
+ "$ref": "#/definitions/text_node"
2511
+ },
2512
+ {
2513
+ "type": "object",
2514
+ "properties": {
2515
+ "marks": {
2516
+ "type": "array",
2517
+ "maxItems": 0
2518
+ }
2519
+ },
2520
+ "additionalProperties": true
2521
+ }
2522
+ ]
2523
+ },
2532
2524
  "textColor_mark": {
2533
2525
  "type": "object",
2534
2526
  "properties": {
@@ -507,6 +507,9 @@
507
507
  "properties": {
508
508
  "language": {
509
509
  "type": "string"
510
+ },
511
+ "uniqueId": {
512
+ "type": "string"
510
513
  }
511
514
  },
512
515
  "additionalProperties": false
@@ -514,21 +517,7 @@
514
517
  "content": {
515
518
  "type": "array",
516
519
  "items": {
517
- "allOf": [
518
- {
519
- "$ref": "#/definitions/text_node"
520
- },
521
- {
522
- "type": "object",
523
- "properties": {
524
- "marks": {
525
- "type": "array",
526
- "maxItems": 0
527
- }
528
- },
529
- "additionalProperties": true
530
- }
531
- ]
520
+ "$ref": "#/definitions/text_with_no_marks_node"
532
521
  }
533
522
  }
534
523
  },
@@ -562,21 +551,7 @@
562
551
  "content": {
563
552
  "type": "array",
564
553
  "items": {
565
- "allOf": [
566
- {
567
- "$ref": "#/definitions/text_node"
568
- },
569
- {
570
- "type": "object",
571
- "properties": {
572
- "marks": {
573
- "type": "array",
574
- "maxItems": 0
575
- }
576
- },
577
- "additionalProperties": true
578
- }
579
- ]
554
+ "$ref": "#/definitions/text_with_no_marks_node"
580
555
  }
581
556
  }
582
557
  },
@@ -2898,6 +2873,23 @@
2898
2873
  "additionalProperties": false,
2899
2874
  "required": ["type", "text"]
2900
2875
  },
2876
+ "text_with_no_marks_node": {
2877
+ "allOf": [
2878
+ {
2879
+ "$ref": "#/definitions/text_node"
2880
+ },
2881
+ {
2882
+ "type": "object",
2883
+ "properties": {
2884
+ "marks": {
2885
+ "type": "array",
2886
+ "maxItems": 0
2887
+ }
2888
+ },
2889
+ "additionalProperties": true
2890
+ }
2891
+ ]
2892
+ },
2901
2893
  "textColor_mark": {
2902
2894
  "type": "object",
2903
2895
  "properties": {
@@ -91,7 +91,7 @@ export type CaptionNode = PMNode & CaptionDefinition;
91
91
  export declare const caption: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<CaptionNode>) => import("prosemirror-model").NodeSpec;
92
92
  export interface CodeBlockDefinition {
93
93
  type: 'codeBlock';
94
- content: Array<TextDefinition | UnsupportedInlineDefinition>;
94
+ content: Array<TextWithNoMarksDefinition | UnsupportedInlineDefinition>;
95
95
  attrs: {
96
96
  language?: string;
97
97
  uniqueId?: string;
@@ -101,7 +101,7 @@ export type CodeBlockNode = PMNode & CodeBlockDefinition;
101
101
  export declare const codeBlock: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<CodeBlockNode>) => import("prosemirror-model").NodeSpec;
102
102
  export interface CodeBlockRootOnlyDefinition {
103
103
  type: 'codeBlock';
104
- content: Array<TextDefinition | UnsupportedInlineDefinition>;
104
+ content: Array<TextWithNoMarksDefinition | UnsupportedInlineDefinition>;
105
105
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
106
106
  attrs: {
107
107
  language?: string;
@@ -880,6 +880,11 @@ export interface TextFormattedDefinition {
880
880
  }
881
881
  export type TextFormattedNode = PMNode & TextFormattedDefinition;
882
882
  export declare const textFormatted: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TextFormattedNode>) => import("prosemirror-model").NodeSpec;
883
+ export interface TextWithNoMarksDefinition {
884
+ type: 'text';
885
+ }
886
+ export type TextWithNoMarksNode = PMNode & TextWithNoMarksDefinition;
887
+ export declare const textWithNoMarks: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TextWithNoMarksNode>) => import("prosemirror-model").NodeSpec;
883
888
  export interface UnsupportedBlockDefinition {
884
889
  type: 'unsupportedBlock';
885
890
  attrs: {
@@ -1,4 +1,7 @@
1
- export declare const text: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "link_inline", "formatted", "code_inline"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
1
+ export declare const text: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_no_marks", "link_inline", "formatted", "code_inline"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
2
+ marks: any[];
3
+ noMarks: true;
4
+ } & {
2
5
  marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
3
6
  ignore: ("pm-spec" | "json-schema")[];
4
7
  } & {
@@ -286,21 +286,16 @@ export declare const codeBlock: {
286
286
  type: string;
287
287
  optional: boolean;
288
288
  };
289
+ uniqueId: {
290
+ type: string;
291
+ optional: boolean;
292
+ };
289
293
  };
290
294
  optional: boolean;
291
295
  };
292
296
  content: {
293
297
  type: string;
294
- items: (string | {
295
- props: {
296
- marks: {
297
- items: any[];
298
- maxItems: number;
299
- optional: boolean;
300
- type: string;
301
- };
302
- };
303
- })[][];
298
+ items: string[];
304
299
  optional: boolean;
305
300
  allowUnsupportedInline: boolean;
306
301
  };
@@ -1053,6 +1048,10 @@ export declare const mediaInline: {
1053
1048
  values: string[];
1054
1049
  optional: boolean;
1055
1050
  };
1051
+ url: {
1052
+ type: string;
1053
+ optional: boolean;
1054
+ };
1056
1055
  id: {
1057
1056
  minLength: number;
1058
1057
  type: string;
@@ -1734,6 +1733,16 @@ export declare const text_link_inline: (string | {
1734
1733
  };
1735
1734
  };
1736
1735
  })[];
1736
+ export declare const text_with_no_marks: (string | {
1737
+ props: {
1738
+ marks: {
1739
+ type: string;
1740
+ maxItems: number;
1741
+ items: any[];
1742
+ optional: boolean;
1743
+ };
1744
+ };
1745
+ })[];
1737
1746
  export declare const textColor: {
1738
1747
  props: {
1739
1748
  type: {
@@ -497,6 +497,9 @@
497
497
  "properties": {
498
498
  "language": {
499
499
  "type": "string"
500
+ },
501
+ "uniqueId": {
502
+ "type": "string"
500
503
  }
501
504
  },
502
505
  "additionalProperties": false
@@ -504,21 +507,7 @@
504
507
  "content": {
505
508
  "type": "array",
506
509
  "items": {
507
- "allOf": [
508
- {
509
- "$ref": "#/definitions/text_node"
510
- },
511
- {
512
- "type": "object",
513
- "properties": {
514
- "marks": {
515
- "type": "array",
516
- "maxItems": 0
517
- }
518
- },
519
- "additionalProperties": true
520
- }
521
- ]
510
+ "$ref": "#/definitions/text_with_no_marks_node"
522
511
  }
523
512
  }
524
513
  },
@@ -552,21 +541,7 @@
552
541
  "content": {
553
542
  "type": "array",
554
543
  "items": {
555
- "allOf": [
556
- {
557
- "$ref": "#/definitions/text_node"
558
- },
559
- {
560
- "type": "object",
561
- "properties": {
562
- "marks": {
563
- "type": "array",
564
- "maxItems": 0
565
- }
566
- },
567
- "additionalProperties": true
568
- }
569
- ]
544
+ "$ref": "#/definitions/text_with_no_marks_node"
570
545
  }
571
546
  }
572
547
  },
@@ -2529,6 +2504,23 @@
2529
2504
  "additionalProperties": false,
2530
2505
  "required": ["type", "text"]
2531
2506
  },
2507
+ "text_with_no_marks_node": {
2508
+ "allOf": [
2509
+ {
2510
+ "$ref": "#/definitions/text_node"
2511
+ },
2512
+ {
2513
+ "type": "object",
2514
+ "properties": {
2515
+ "marks": {
2516
+ "type": "array",
2517
+ "maxItems": 0
2518
+ }
2519
+ },
2520
+ "additionalProperties": true
2521
+ }
2522
+ ]
2523
+ },
2532
2524
  "textColor_mark": {
2533
2525
  "type": "object",
2534
2526
  "properties": {
@@ -507,6 +507,9 @@
507
507
  "properties": {
508
508
  "language": {
509
509
  "type": "string"
510
+ },
511
+ "uniqueId": {
512
+ "type": "string"
510
513
  }
511
514
  },
512
515
  "additionalProperties": false
@@ -514,21 +517,7 @@
514
517
  "content": {
515
518
  "type": "array",
516
519
  "items": {
517
- "allOf": [
518
- {
519
- "$ref": "#/definitions/text_node"
520
- },
521
- {
522
- "type": "object",
523
- "properties": {
524
- "marks": {
525
- "type": "array",
526
- "maxItems": 0
527
- }
528
- },
529
- "additionalProperties": true
530
- }
531
- ]
520
+ "$ref": "#/definitions/text_with_no_marks_node"
532
521
  }
533
522
  }
534
523
  },
@@ -562,21 +551,7 @@
562
551
  "content": {
563
552
  "type": "array",
564
553
  "items": {
565
- "allOf": [
566
- {
567
- "$ref": "#/definitions/text_node"
568
- },
569
- {
570
- "type": "object",
571
- "properties": {
572
- "marks": {
573
- "type": "array",
574
- "maxItems": 0
575
- }
576
- },
577
- "additionalProperties": true
578
- }
579
- ]
554
+ "$ref": "#/definitions/text_with_no_marks_node"
580
555
  }
581
556
  }
582
557
  },
@@ -2898,6 +2873,23 @@
2898
2873
  "additionalProperties": false,
2899
2874
  "required": ["type", "text"]
2900
2875
  },
2876
+ "text_with_no_marks_node": {
2877
+ "allOf": [
2878
+ {
2879
+ "$ref": "#/definitions/text_node"
2880
+ },
2881
+ {
2882
+ "type": "object",
2883
+ "properties": {
2884
+ "marks": {
2885
+ "type": "array",
2886
+ "maxItems": 0
2887
+ }
2888
+ },
2889
+ "additionalProperties": true
2890
+ }
2891
+ ]
2892
+ },
2901
2893
  "textColor_mark": {
2902
2894
  "type": "object",
2903
2895
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "45.0.0",
3
+ "version": "45.2.0",
4
4
  "description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@atlassian/adf-schema-json": "^1.24.0",
49
- "@atlaskit/adf-schema-generator": "^1.38.2",
49
+ "@atlaskit/adf-schema-generator": "^1.38.4",
50
50
  "@atlaskit/codemod-utils": "^4.2.4",
51
51
  "@babel/cli": "^7.22.9",
52
52
  "@babel/core": "^7.22.9",