@atlaskit/adf-schema 45.1.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,13 @@
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
+
3
11
  ## 45.1.0
4
12
 
5
13
  ### Minor 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,24 +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.content.items': {
33
- value: [['text', {
34
- props: {
35
- marks: {
36
- items: [],
37
- maxItems: 0,
38
- optional: true,
39
- type: 'array'
40
- }
41
- }
42
- }]],
43
- reason: '@DSLCompatibilityException - text variant is inlined, which is not supported by current transformation'
44
- }
45
- }
46
- }
29
+ content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_text.text.use('with_no_marks'), _unsupportedInline.unsupportedInline))]
47
30
  })
48
31
  // Variant used root scenario where we have breakout
49
32
  .variant('root_only', {
@@ -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: {
@@ -291,16 +291,7 @@ var codeBlock = exports.codeBlock = {
291
291
  },
292
292
  content: {
293
293
  type: 'array',
294
- items: [['text', {
295
- props: {
296
- marks: {
297
- items: [],
298
- maxItems: 0,
299
- optional: true,
300
- type: 'array'
301
- }
302
- }
303
- }]],
294
+ items: ['text_with_no_marks'],
304
295
  optional: true,
305
296
  allowUnsupportedInline: true
306
297
  }
@@ -1729,6 +1720,16 @@ var text_link_inline = exports.text_link_inline = ['text', {
1729
1720
  }
1730
1721
  }
1731
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
+ }];
1732
1733
  var textColor = exports.textColor = {
1733
1734
  props: {
1734
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,24 +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.content.items': {
27
- value: [['text', {
28
- props: {
29
- marks: {
30
- items: [],
31
- maxItems: 0,
32
- optional: true,
33
- type: 'array'
34
- }
35
- }
36
- }]],
37
- reason: '@DSLCompatibilityException - text variant is inlined, which is not supported by current transformation'
38
- }
39
- }
40
- }
23
+ content: [$zeroPlus($or(text.use('with_no_marks'), unsupportedInline))]
41
24
  })
42
25
  // Variant used root scenario where we have breakout
43
26
  .variant('root_only', {
@@ -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']
@@ -285,16 +285,7 @@ export const codeBlock = {
285
285
  },
286
286
  content: {
287
287
  type: 'array',
288
- items: [['text', {
289
- props: {
290
- marks: {
291
- items: [],
292
- maxItems: 0,
293
- optional: true,
294
- type: 'array'
295
- }
296
- }
297
- }]],
288
+ items: ['text_with_no_marks'],
298
289
  optional: true,
299
290
  allowUnsupportedInline: true
300
291
  }
@@ -1723,6 +1714,16 @@ export const text_link_inline = ['text', {
1723
1714
  }
1724
1715
  }
1725
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
+ }];
1726
1727
  export const textColor = {
1727
1728
  props: {
1728
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,24 +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.content.items': {
27
- value: [['text', {
28
- props: {
29
- marks: {
30
- items: [],
31
- maxItems: 0,
32
- optional: true,
33
- type: 'array'
34
- }
35
- }
36
- }]],
37
- reason: '@DSLCompatibilityException - text variant is inlined, which is not supported by current transformation'
38
- }
39
- }
40
- }
23
+ content: [$zeroPlus($or(text.use('with_no_marks'), unsupportedInline))]
41
24
  })
42
25
  // Variant used root scenario where we have breakout
43
26
  .variant('root_only', {
@@ -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']
@@ -285,16 +285,7 @@ export var codeBlock = {
285
285
  },
286
286
  content: {
287
287
  type: 'array',
288
- items: [['text', {
289
- props: {
290
- marks: {
291
- items: [],
292
- maxItems: 0,
293
- optional: true,
294
- type: 'array'
295
- }
296
- }
297
- }]],
288
+ items: ['text_with_no_marks'],
298
289
  optional: true,
299
290
  allowUnsupportedInline: true
300
291
  }
@@ -1723,6 +1714,16 @@ export var text_link_inline = ['text', {
1723
1714
  }
1724
1715
  }
1725
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
+ }];
1726
1727
  export var textColor = {
1727
1728
  props: {
1728
1729
  type: {
@@ -507,21 +507,7 @@
507
507
  "content": {
508
508
  "type": "array",
509
509
  "items": {
510
- "allOf": [
511
- {
512
- "$ref": "#/definitions/text_node"
513
- },
514
- {
515
- "type": "object",
516
- "properties": {
517
- "marks": {
518
- "type": "array",
519
- "maxItems": 0
520
- }
521
- },
522
- "additionalProperties": true
523
- }
524
- ]
510
+ "$ref": "#/definitions/text_with_no_marks_node"
525
511
  }
526
512
  }
527
513
  },
@@ -555,21 +541,7 @@
555
541
  "content": {
556
542
  "type": "array",
557
543
  "items": {
558
- "allOf": [
559
- {
560
- "$ref": "#/definitions/text_node"
561
- },
562
- {
563
- "type": "object",
564
- "properties": {
565
- "marks": {
566
- "type": "array",
567
- "maxItems": 0
568
- }
569
- },
570
- "additionalProperties": true
571
- }
572
- ]
544
+ "$ref": "#/definitions/text_with_no_marks_node"
573
545
  }
574
546
  }
575
547
  },
@@ -2532,6 +2504,23 @@
2532
2504
  "additionalProperties": false,
2533
2505
  "required": ["type", "text"]
2534
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
+ },
2535
2524
  "textColor_mark": {
2536
2525
  "type": "object",
2537
2526
  "properties": {
@@ -517,21 +517,7 @@
517
517
  "content": {
518
518
  "type": "array",
519
519
  "items": {
520
- "allOf": [
521
- {
522
- "$ref": "#/definitions/text_node"
523
- },
524
- {
525
- "type": "object",
526
- "properties": {
527
- "marks": {
528
- "type": "array",
529
- "maxItems": 0
530
- }
531
- },
532
- "additionalProperties": true
533
- }
534
- ]
520
+ "$ref": "#/definitions/text_with_no_marks_node"
535
521
  }
536
522
  }
537
523
  },
@@ -565,21 +551,7 @@
565
551
  "content": {
566
552
  "type": "array",
567
553
  "items": {
568
- "allOf": [
569
- {
570
- "$ref": "#/definitions/text_node"
571
- },
572
- {
573
- "type": "object",
574
- "properties": {
575
- "marks": {
576
- "type": "array",
577
- "maxItems": 0
578
- }
579
- },
580
- "additionalProperties": true
581
- }
582
- ]
554
+ "$ref": "#/definitions/text_with_no_marks_node"
583
555
  }
584
556
  }
585
557
  },
@@ -2901,6 +2873,23 @@
2901
2873
  "additionalProperties": false,
2902
2874
  "required": ["type", "text"]
2903
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
+ },
2904
2893
  "textColor_mark": {
2905
2894
  "type": "object",
2906
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
  } & {
@@ -295,16 +295,7 @@ export declare const codeBlock: {
295
295
  };
296
296
  content: {
297
297
  type: string;
298
- items: (string | {
299
- props: {
300
- marks: {
301
- items: any[];
302
- maxItems: number;
303
- optional: boolean;
304
- type: string;
305
- };
306
- };
307
- })[][];
298
+ items: string[];
308
299
  optional: boolean;
309
300
  allowUnsupportedInline: boolean;
310
301
  };
@@ -1742,6 +1733,16 @@ export declare const text_link_inline: (string | {
1742
1733
  };
1743
1734
  };
1744
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
+ })[];
1745
1746
  export declare const textColor: {
1746
1747
  props: {
1747
1748
  type: {
@@ -507,21 +507,7 @@
507
507
  "content": {
508
508
  "type": "array",
509
509
  "items": {
510
- "allOf": [
511
- {
512
- "$ref": "#/definitions/text_node"
513
- },
514
- {
515
- "type": "object",
516
- "properties": {
517
- "marks": {
518
- "type": "array",
519
- "maxItems": 0
520
- }
521
- },
522
- "additionalProperties": true
523
- }
524
- ]
510
+ "$ref": "#/definitions/text_with_no_marks_node"
525
511
  }
526
512
  }
527
513
  },
@@ -555,21 +541,7 @@
555
541
  "content": {
556
542
  "type": "array",
557
543
  "items": {
558
- "allOf": [
559
- {
560
- "$ref": "#/definitions/text_node"
561
- },
562
- {
563
- "type": "object",
564
- "properties": {
565
- "marks": {
566
- "type": "array",
567
- "maxItems": 0
568
- }
569
- },
570
- "additionalProperties": true
571
- }
572
- ]
544
+ "$ref": "#/definitions/text_with_no_marks_node"
573
545
  }
574
546
  }
575
547
  },
@@ -2532,6 +2504,23 @@
2532
2504
  "additionalProperties": false,
2533
2505
  "required": ["type", "text"]
2534
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
+ },
2535
2524
  "textColor_mark": {
2536
2525
  "type": "object",
2537
2526
  "properties": {
@@ -517,21 +517,7 @@
517
517
  "content": {
518
518
  "type": "array",
519
519
  "items": {
520
- "allOf": [
521
- {
522
- "$ref": "#/definitions/text_node"
523
- },
524
- {
525
- "type": "object",
526
- "properties": {
527
- "marks": {
528
- "type": "array",
529
- "maxItems": 0
530
- }
531
- },
532
- "additionalProperties": true
533
- }
534
- ]
520
+ "$ref": "#/definitions/text_with_no_marks_node"
535
521
  }
536
522
  }
537
523
  },
@@ -565,21 +551,7 @@
565
551
  "content": {
566
552
  "type": "array",
567
553
  "items": {
568
- "allOf": [
569
- {
570
- "$ref": "#/definitions/text_node"
571
- },
572
- {
573
- "type": "object",
574
- "properties": {
575
- "marks": {
576
- "type": "array",
577
- "maxItems": 0
578
- }
579
- },
580
- "additionalProperties": true
581
- }
582
- ]
554
+ "$ref": "#/definitions/text_with_no_marks_node"
583
555
  }
584
556
  }
585
557
  },
@@ -2901,6 +2873,23 @@
2901
2873
  "additionalProperties": false,
2902
2874
  "required": ["type", "text"]
2903
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
+ },
2904
2893
  "textColor_mark": {
2905
2894
  "type": "object",
2906
2895
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "45.1.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.3",
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",