@atlaskit/adf-schema 36.14.1 → 36.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/next-schema/generated/nodeTypes.js +1 -0
  3. package/dist/cjs/next-schema/nodes/blockCard.js +1 -0
  4. package/dist/cjs/next-schema/nodes/bodiedExtension.js +1 -0
  5. package/dist/cjs/next-schema/nodes/caption.js +1 -0
  6. package/dist/cjs/next-schema/nodes/decisionItem.js +1 -0
  7. package/dist/cjs/next-schema/nodes/extension.js +1 -0
  8. package/dist/cjs/next-schema/nodes/inlineCard.js +1 -0
  9. package/dist/cjs/next-schema/nodes/inlineExtension.js +1 -0
  10. package/dist/cjs/next-schema/nodes/mediaInline.js +1 -0
  11. package/dist/cjs/next-schema/nodes/multiBodiedExtension.js +1 -0
  12. package/dist/cjs/next-schema/nodes/placeholder.js +1 -0
  13. package/dist/cjs/next-schema/nodes/task.js +1 -0
  14. package/dist/es2019/next-schema/generated/nodeTypes.js +1 -0
  15. package/dist/es2019/next-schema/nodes/blockCard.js +1 -0
  16. package/dist/es2019/next-schema/nodes/bodiedExtension.js +1 -0
  17. package/dist/es2019/next-schema/nodes/caption.js +1 -0
  18. package/dist/es2019/next-schema/nodes/decisionItem.js +1 -0
  19. package/dist/es2019/next-schema/nodes/extension.js +1 -0
  20. package/dist/es2019/next-schema/nodes/inlineCard.js +1 -0
  21. package/dist/es2019/next-schema/nodes/inlineExtension.js +1 -0
  22. package/dist/es2019/next-schema/nodes/mediaInline.js +1 -0
  23. package/dist/es2019/next-schema/nodes/multiBodiedExtension.js +1 -0
  24. package/dist/es2019/next-schema/nodes/placeholder.js +1 -0
  25. package/dist/es2019/next-schema/nodes/task.js +1 -0
  26. package/dist/esm/next-schema/generated/nodeTypes.js +1 -0
  27. package/dist/esm/next-schema/nodes/blockCard.js +1 -0
  28. package/dist/esm/next-schema/nodes/bodiedExtension.js +1 -0
  29. package/dist/esm/next-schema/nodes/caption.js +1 -0
  30. package/dist/esm/next-schema/nodes/decisionItem.js +1 -0
  31. package/dist/esm/next-schema/nodes/extension.js +1 -0
  32. package/dist/esm/next-schema/nodes/inlineCard.js +1 -0
  33. package/dist/esm/next-schema/nodes/inlineExtension.js +1 -0
  34. package/dist/esm/next-schema/nodes/mediaInline.js +1 -0
  35. package/dist/esm/next-schema/nodes/multiBodiedExtension.js +1 -0
  36. package/dist/esm/next-schema/nodes/placeholder.js +1 -0
  37. package/dist/esm/next-schema/nodes/task.js +1 -0
  38. package/dist/types/next-schema/full-schema.adf.d.ts +3 -0
  39. package/dist/types/next-schema/generated/nodeTypes.d.ts +81 -41
  40. package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +12 -0
  41. package/dist/types/next-schema/nodes/blockCard.d.ts +3 -0
  42. package/dist/types/next-schema/nodes/blockquote.d.ts +3 -0
  43. package/dist/types/next-schema/nodes/bodiedExtension.d.ts +3 -0
  44. package/dist/types/next-schema/nodes/caption.d.ts +3 -0
  45. package/dist/types/next-schema/nodes/codeBlock.d.ts +6 -0
  46. package/dist/types/next-schema/nodes/confluenceUnsupportedBlock.d.ts +3 -0
  47. package/dist/types/next-schema/nodes/confluenceUnsupportedInline.d.ts +3 -0
  48. package/dist/types/next-schema/nodes/date.d.ts +3 -0
  49. package/dist/types/next-schema/nodes/decisionItem.d.ts +3 -0
  50. package/dist/types/next-schema/nodes/decisionList.d.ts +3 -0
  51. package/dist/types/next-schema/nodes/embedCard.d.ts +3 -0
  52. package/dist/types/next-schema/nodes/emoji.d.ts +3 -0
  53. package/dist/types/next-schema/nodes/expand.d.ts +3 -0
  54. package/dist/types/next-schema/nodes/extension.d.ts +3 -0
  55. package/dist/types/next-schema/nodes/extensionFrame.d.ts +3 -0
  56. package/dist/types/next-schema/nodes/hardBreak.d.ts +3 -0
  57. package/dist/types/next-schema/nodes/heading.d.ts +3 -0
  58. package/dist/types/next-schema/nodes/inlineCard.d.ts +3 -0
  59. package/dist/types/next-schema/nodes/inlineExtension.d.ts +3 -0
  60. package/dist/types/next-schema/nodes/layoutColumn.d.ts +3 -0
  61. package/dist/types/next-schema/nodes/layoutSection.d.ts +3 -0
  62. package/dist/types/next-schema/nodes/list.d.ts +6 -0
  63. package/dist/types/next-schema/nodes/media.d.ts +3 -0
  64. package/dist/types/next-schema/nodes/mediaGroup.d.ts +3 -0
  65. package/dist/types/next-schema/nodes/mediaInline.d.ts +3 -0
  66. package/dist/types/next-schema/nodes/mediaSingle.d.ts +3 -0
  67. package/dist/types/next-schema/nodes/mention.d.ts +3 -0
  68. package/dist/types/next-schema/nodes/multiBodiedExtension.d.ts +3 -0
  69. package/dist/types/next-schema/nodes/nestedExpand.d.ts +3 -0
  70. package/dist/types/next-schema/nodes/panel.d.ts +3 -0
  71. package/dist/types/next-schema/nodes/paragraph.d.ts +3 -0
  72. package/dist/types/next-schema/nodes/placeholder.d.ts +3 -0
  73. package/dist/types/next-schema/nodes/rule.d.ts +3 -0
  74. package/dist/types/next-schema/nodes/status.d.ts +3 -0
  75. package/dist/types/next-schema/nodes/table.d.ts +3 -0
  76. package/dist/types/next-schema/nodes/tableCell.d.ts +3 -0
  77. package/dist/types/next-schema/nodes/tableHeader.d.ts +3 -0
  78. package/dist/types/next-schema/nodes/tableRow.d.ts +3 -0
  79. package/dist/types/next-schema/nodes/task.d.ts +6 -0
  80. package/dist/types/next-schema/nodes/text.d.ts +3 -0
  81. package/dist/types/next-schema/nodes/unsupportedBlock.d.ts +3 -0
  82. package/dist/types/next-schema/nodes/unsupportedInline.d.ts +3 -0
  83. package/package.json +2 -2
  84. package/schema-generators/__tests__/unit/json-full-schema.unit.ts +9 -3
  85. package/schema-generators/__tests__/unit/validate-pm-schema.unit.ts +0 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 36.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - bd85ab9: Fix handling of anyOf in PM Spec
8
+
9
+ ## 36.15.0
10
+
11
+ ### Minor Changes
12
+
13
+ - e0c8b0e: Add suuport for all and no child marks in DSL
14
+
3
15
  ## 36.14.1
4
16
 
5
17
  ### Patch Changes
@@ -188,6 +188,7 @@ var date = exports.date = (0, _adfSchemaGenerator.createPMNodeSpecFactory)({
188
188
  selectable: true
189
189
  });
190
190
  var placeholder = exports.placeholder = (0, _adfSchemaGenerator.createPMNodeSpecFactory)({
191
+ marks: '',
191
192
  group: 'inline',
192
193
  inline: true,
193
194
  attrs: {
@@ -64,6 +64,7 @@ var blockCard = exports.blockCard = (0, _adfSchemaGenerator.adfNode)('blockCard'
64
64
  }
65
65
  }, {
66
66
  data: {
67
+ type: 'object',
67
68
  default: null
68
69
  }
69
70
  }]
@@ -29,6 +29,7 @@ var bodiedExtension = exports.bodiedExtension = (0, _adfSchemaGenerator.adfNode)
29
29
  default: ''
30
30
  },
31
31
  parameters: {
32
+ type: 'object',
32
33
  optional: true,
33
34
  default: null
34
35
  },
@@ -20,5 +20,6 @@ var caption = exports.caption = (0, _adfSchemaGenerator.adfNode)('caption').defi
20
20
  isolating: true,
21
21
  selectable: false,
22
22
  marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
23
+ allowAnyChildMark: true,
23
24
  content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_hardBreak.hardBreak, _mention.mention, _emoji.emoji, _date.date, _placeholder.placeholder, _inlineCard.inlineCard, _status.status, _text.text.use('formatted'), _text.text.use('code_inline'), _unsupportedInline.unsupportedInline))]
24
25
  });
@@ -12,6 +12,7 @@ var _unsupportedBlock = require("./unsupportedBlock");
12
12
  var decisionItem = exports.decisionItem = (0, _adfSchemaGenerator.adfNode)('decisionItem').define({
13
13
  defining: true,
14
14
  marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
15
+ allowAnyChildMark: true,
15
16
  attrs: {
16
17
  localId: {
17
18
  type: 'string',
@@ -25,6 +25,7 @@ var extension = exports.extension = (0, _adfSchemaGenerator.adfNode)('extension'
25
25
  default: ''
26
26
  },
27
27
  parameters: {
28
+ type: 'object',
28
29
  optional: true,
29
30
  default: null
30
31
  },
@@ -21,6 +21,7 @@ var inlineCard = exports.inlineCard = (0, _adfSchemaGenerator.adfNode)('inlineCa
21
21
  }
22
22
  }, {
23
23
  data: {
24
+ type: 'object',
24
25
  default: null
25
26
  }
26
27
  }]
@@ -25,6 +25,7 @@ var inlineExtension = exports.inlineExtension = (0, _adfSchemaGenerator.adfNode)
25
25
  default: ''
26
26
  },
27
27
  parameters: {
28
+ type: 'object',
28
29
  optional: true,
29
30
  default: null
30
31
  },
@@ -17,6 +17,7 @@ var mediaInline = exports.mediaInline = (0, _adfSchemaGenerator.adfNode)('mediaI
17
17
  marks: [_link.link, _annotation.annotation, _border.border, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
18
18
  attrs: {
19
19
  data: {
20
+ type: 'object',
20
21
  optional: true
21
22
  },
22
23
  type: {
@@ -24,6 +24,7 @@ var multiBodiedExtension = exports.multiBodiedExtension = (0, _adfSchemaGenerato
24
24
  default: ''
25
25
  },
26
26
  parameters: {
27
+ type: 'object',
27
28
  optional: true,
28
29
  default: null
29
30
  },
@@ -11,6 +11,7 @@ var placeholder = exports.placeholder = (0, _adfSchemaGenerator.adfNode)('placeh
11
11
  selectable: false,
12
12
  inline: true,
13
13
  marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
14
+ allowNoChildMark: true,
14
15
  attrs: {
15
16
  text: {
16
17
  type: 'string',
@@ -16,6 +16,7 @@ taskItem.define({
16
16
  defining: true,
17
17
  selectable: false,
18
18
  marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
19
+ allowAnyChildMark: true,
19
20
  attrs: {
20
21
  localId: {
21
22
  type: 'string',
@@ -182,6 +182,7 @@ export const date = createPMNodeSpecFactory({
182
182
  selectable: true
183
183
  });
184
184
  export const placeholder = createPMNodeSpecFactory({
185
+ marks: '',
185
186
  group: 'inline',
186
187
  inline: true,
187
188
  attrs: {
@@ -58,6 +58,7 @@ export const blockCard = adfNode('blockCard').define({
58
58
  }
59
59
  }, {
60
60
  data: {
61
+ type: 'object',
61
62
  default: null
62
63
  }
63
64
  }]
@@ -21,6 +21,7 @@ export const bodiedExtension = adfNode('bodiedExtension').define({
21
21
  default: ''
22
22
  },
23
23
  parameters: {
24
+ type: 'object',
24
25
  optional: true,
25
26
  default: null
26
27
  },
@@ -14,5 +14,6 @@ export const caption = adfNode('caption').define({
14
14
  isolating: true,
15
15
  selectable: false,
16
16
  marks: [unsupportedNodeAttribute, unsupportedMark],
17
+ allowAnyChildMark: true,
17
18
  content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))]
18
19
  });
@@ -6,6 +6,7 @@ import { unsupportedBlock } from './unsupportedBlock';
6
6
  export const decisionItem = adfNode('decisionItem').define({
7
7
  defining: true,
8
8
  marks: [unsupportedNodeAttribute, unsupportedMark],
9
+ allowAnyChildMark: true,
9
10
  attrs: {
10
11
  localId: {
11
12
  type: 'string',
@@ -19,6 +19,7 @@ export const extension = adfNode('extension').define({
19
19
  default: ''
20
20
  },
21
21
  parameters: {
22
+ type: 'object',
22
23
  optional: true,
23
24
  default: null
24
25
  },
@@ -15,6 +15,7 @@ export const inlineCard = adfNode('inlineCard').define({
15
15
  }
16
16
  }, {
17
17
  data: {
18
+ type: 'object',
18
19
  default: null
19
20
  }
20
21
  }]
@@ -19,6 +19,7 @@ export const inlineExtension = adfNode('inlineExtension').define({
19
19
  default: ''
20
20
  },
21
21
  parameters: {
22
+ type: 'object',
22
23
  optional: true,
23
24
  default: null
24
25
  },
@@ -11,6 +11,7 @@ export const mediaInline = adfNode('mediaInline').define({
11
11
  marks: [link, annotation, border, unsupportedNodeAttribute, unsupportedMark],
12
12
  attrs: {
13
13
  data: {
14
+ type: 'object',
14
15
  optional: true
15
16
  },
16
17
  type: {
@@ -18,6 +18,7 @@ export const multiBodiedExtension = adfNode('multiBodiedExtension').define({
18
18
  default: ''
19
19
  },
20
20
  parameters: {
21
+ type: 'object',
21
22
  optional: true,
22
23
  default: null
23
24
  },
@@ -5,6 +5,7 @@ export const placeholder = adfNode('placeholder').define({
5
5
  selectable: false,
6
6
  inline: true,
7
7
  marks: [unsupportedNodeAttribute, unsupportedMark],
8
+ allowNoChildMark: true,
8
9
  attrs: {
9
10
  text: {
10
11
  type: 'string',
@@ -10,6 +10,7 @@ taskItem.define({
10
10
  defining: true,
11
11
  selectable: false,
12
12
  marks: [unsupportedNodeAttribute, unsupportedMark],
13
+ allowAnyChildMark: true,
13
14
  attrs: {
14
15
  localId: {
15
16
  type: 'string',
@@ -182,6 +182,7 @@ export var date = createPMNodeSpecFactory({
182
182
  selectable: true
183
183
  });
184
184
  export var placeholder = createPMNodeSpecFactory({
185
+ marks: '',
185
186
  group: 'inline',
186
187
  inline: true,
187
188
  attrs: {
@@ -58,6 +58,7 @@ export var blockCard = adfNode('blockCard').define({
58
58
  }
59
59
  }, {
60
60
  data: {
61
+ type: 'object',
61
62
  default: null
62
63
  }
63
64
  }]
@@ -22,6 +22,7 @@ export var bodiedExtension = adfNode('bodiedExtension').define({
22
22
  default: ''
23
23
  },
24
24
  parameters: {
25
+ type: 'object',
25
26
  optional: true,
26
27
  default: null
27
28
  },
@@ -14,5 +14,6 @@ export var caption = adfNode('caption').define({
14
14
  isolating: true,
15
15
  selectable: false,
16
16
  marks: [unsupportedNodeAttribute, unsupportedMark],
17
+ allowAnyChildMark: true,
17
18
  content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))]
18
19
  });
@@ -6,6 +6,7 @@ import { unsupportedBlock } from './unsupportedBlock';
6
6
  export var decisionItem = adfNode('decisionItem').define({
7
7
  defining: true,
8
8
  marks: [unsupportedNodeAttribute, unsupportedMark],
9
+ allowAnyChildMark: true,
9
10
  attrs: {
10
11
  localId: {
11
12
  type: 'string',
@@ -19,6 +19,7 @@ export var extension = adfNode('extension').define({
19
19
  default: ''
20
20
  },
21
21
  parameters: {
22
+ type: 'object',
22
23
  optional: true,
23
24
  default: null
24
25
  },
@@ -15,6 +15,7 @@ export var inlineCard = adfNode('inlineCard').define({
15
15
  }
16
16
  }, {
17
17
  data: {
18
+ type: 'object',
18
19
  default: null
19
20
  }
20
21
  }]
@@ -19,6 +19,7 @@ export var inlineExtension = adfNode('inlineExtension').define({
19
19
  default: ''
20
20
  },
21
21
  parameters: {
22
+ type: 'object',
22
23
  optional: true,
23
24
  default: null
24
25
  },
@@ -11,6 +11,7 @@ export var mediaInline = adfNode('mediaInline').define({
11
11
  marks: [link, annotation, border, unsupportedNodeAttribute, unsupportedMark],
12
12
  attrs: {
13
13
  data: {
14
+ type: 'object',
14
15
  optional: true
15
16
  },
16
17
  type: {
@@ -18,6 +18,7 @@ export var multiBodiedExtension = adfNode('multiBodiedExtension').define({
18
18
  default: ''
19
19
  },
20
20
  parameters: {
21
+ type: 'object',
21
22
  optional: true,
22
23
  default: null
23
24
  },
@@ -5,6 +5,7 @@ export var placeholder = adfNode('placeholder').define({
5
5
  selectable: false,
6
6
  inline: true,
7
7
  marks: [unsupportedNodeAttribute, unsupportedMark],
8
+ allowNoChildMark: true,
8
9
  attrs: {
9
10
  text: {
10
11
  type: 'string',
@@ -10,6 +10,7 @@ taskItem.define({
10
10
  defining: true,
11
11
  selectable: false,
12
12
  marks: [unsupportedNodeAttribute, unsupportedMark],
13
+ allowAnyChildMark: true,
13
14
  attrs: {
14
15
  localId: {
15
16
  type: 'string',
@@ -14,7 +14,10 @@ declare const doc: import("@atlaskit/adf-schema-generator/dist/types/adfNode").A
14
14
  group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
15
15
  isolating?: boolean;
16
16
  marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
17
+ allowAnyChildMark?: boolean;
18
+ allowNoChildMark?: boolean;
17
19
  selectable?: boolean;
18
20
  whitespace?: "pre" | "normal";
21
+ tableRole?: "table" | "row" | "cell" | "header_cell";
19
22
  }>;
20
23
  export default doc;
@@ -1,15 +1,22 @@
1
1
  import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
2
  import { InlineDefinition, BlockDefinition } from './nodeGroupTypes';
3
3
  import { UnsupportedNodeAttributeMark, UnsupportedMarkMark, LinkMark, AnnotationMark, BorderMark, EmMark, StrongMark, StrikeMark, SubsupMark, UnderlineMark, TextColorMark, BackgroundColorMark, CodeMark, DataConsumerMark, FragmentMark, AlignmentMark, IndentationMark, BreakoutMark } from './markTypes';
4
+ export interface BlockCardNodeAttributes0 {
5
+ url?: string;
6
+ datasource: Record<string, unknown>;
7
+ width?: number;
8
+ layout?: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
9
+ }
10
+ export interface BlockCardNodeAttributes1 {
11
+ url: string;
12
+ }
13
+ export interface BlockCardNodeAttributes2 {
14
+ data: Record<string, unknown>;
15
+ }
4
16
  export interface BlockCardDefinition {
5
17
  type: 'blockCard';
6
18
  marks: Array<UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
7
- attrs: {
8
- url?: string;
9
- datasource: Record<string, unknown>;
10
- width?: number;
11
- layout?: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
12
- };
19
+ attrs: BlockCardNodeAttributes0 | BlockCardNodeAttributes1 | BlockCardNodeAttributes2;
13
20
  }
14
21
  export type BlockCardNode = PMNode & BlockCardDefinition;
15
22
  export declare const blockCard: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<BlockCardNode>) => import("prosemirror-model").NodeSpec;
@@ -36,38 +43,51 @@ export interface CodeBlockWithNoMarksDefinition {
36
43
  }
37
44
  export type CodeBlockWithNoMarksNode = PMNode & CodeBlockWithNoMarksDefinition;
38
45
  export declare const codeBlockWithNoMarks: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<CodeBlockWithNoMarksNode>) => import("prosemirror-model").NodeSpec;
46
+ export interface MediaNodeAttributes0 {
47
+ type: 'link' | 'file';
48
+ id: string;
49
+ alt?: string;
50
+ collection: string;
51
+ height?: number;
52
+ occurrenceKey?: string;
53
+ width?: number;
54
+ __contextId?: string;
55
+ __displayType?: string;
56
+ __external?: boolean;
57
+ __fileMimeType?: string;
58
+ __fileName?: string;
59
+ __fileSize?: string;
60
+ __mediaTraceId?: string;
61
+ }
62
+ export interface MediaNodeAttributes1 {
63
+ type: 'external';
64
+ alt?: string;
65
+ height?: number;
66
+ width?: number;
67
+ url: string;
68
+ }
39
69
  export interface MediaDefinition {
40
70
  type: 'media';
41
71
  marks: Array<LinkMark | AnnotationMark | BorderMark | UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
42
- attrs: {
43
- type: 'external' | 'file';
44
- id: string;
45
- alt?: string;
46
- collection: string;
47
- height?: number;
48
- occurrenceKey?: string;
49
- width?: number;
50
- __contextId?: string;
51
- __displayType?: string;
52
- __external?: boolean;
53
- __fileMimeType?: string;
54
- __fileName?: string;
55
- __fileSize?: string;
56
- __mediaTraceId?: string;
57
- url: string;
58
- };
72
+ attrs: MediaNodeAttributes0 | MediaNodeAttributes1;
59
73
  }
60
74
  export type MediaNode = PMNode & MediaDefinition;
61
75
  export declare const media: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<MediaNode>) => import("prosemirror-model").NodeSpec;
76
+ export interface MediaSingleNodeAttributes0 {
77
+ width?: number;
78
+ layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
79
+ widthType?: 'percentage';
80
+ }
81
+ export interface MediaSingleNodeAttributes1 {
82
+ width: number;
83
+ widthType: 'pixel';
84
+ layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
85
+ }
62
86
  export interface MediaSingleDefinition {
63
87
  type: 'mediaSingle';
64
88
  content: Array<MediaDefinition>;
65
89
  marks: Array<LinkMark | UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
66
- attrs: {
67
- width?: number;
68
- layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
69
- widthType?: 'pixel';
70
- };
90
+ attrs: MediaSingleNodeAttributes0 | MediaSingleNodeAttributes1;
71
91
  }
72
92
  export type MediaSingleNode = PMNode & MediaSingleDefinition;
73
93
  export declare const mediaSingle: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<MediaSingleNode>) => import("prosemirror-model").NodeSpec;
@@ -130,12 +150,16 @@ export interface PlaceholderDefinition {
130
150
  }
131
151
  export type PlaceholderNode = PMNode & PlaceholderDefinition;
132
152
  export declare const placeholder: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<PlaceholderNode>) => import("prosemirror-model").NodeSpec;
153
+ export interface InlineCardNodeAttributes0 {
154
+ url: string;
155
+ }
156
+ export interface InlineCardNodeAttributes1 {
157
+ data: Record<string, unknown>;
158
+ }
133
159
  export interface InlineCardDefinition {
134
160
  type: 'inlineCard';
135
161
  marks: Array<UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
136
- attrs: {
137
- url: string;
138
- };
162
+ attrs: InlineCardNodeAttributes0 | InlineCardNodeAttributes1;
139
163
  }
140
164
  export type InlineCardNode = PMNode & InlineCardDefinition;
141
165
  export declare const inlineCard: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<InlineCardNode>) => import("prosemirror-model").NodeSpec;
@@ -170,27 +194,39 @@ export interface CaptionDefinition {
170
194
  }
171
195
  export type CaptionNode = PMNode & CaptionDefinition;
172
196
  export declare const caption: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<CaptionNode>) => import("prosemirror-model").NodeSpec;
197
+ export interface MediaSingleCaptionNodeAttributes0 {
198
+ width?: number;
199
+ layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
200
+ widthType?: 'percentage';
201
+ }
202
+ export interface MediaSingleCaptionNodeAttributes1 {
203
+ width: number;
204
+ widthType: 'pixel';
205
+ layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
206
+ }
173
207
  export interface MediaSingleCaptionDefinition {
174
208
  type: 'mediaSingle';
175
209
  content: Array<MediaDefinition | UnsupportedBlockDefinition | CaptionDefinition | UnsupportedBlockDefinition>;
176
210
  marks: Array<LinkMark | UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
177
- attrs: {
178
- width?: number;
179
- layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
180
- widthType?: 'pixel';
181
- };
211
+ attrs: MediaSingleCaptionNodeAttributes0 | MediaSingleCaptionNodeAttributes1;
182
212
  }
183
213
  export type MediaSingleCaptionNode = PMNode & MediaSingleCaptionDefinition;
184
214
  export declare const mediaSingleCaption: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<MediaSingleCaptionNode>) => import("prosemirror-model").NodeSpec;
215
+ export interface MediaSingleFullNodeAttributes0 {
216
+ width?: number;
217
+ layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
218
+ widthType?: 'percentage';
219
+ }
220
+ export interface MediaSingleFullNodeAttributes1 {
221
+ width: number;
222
+ widthType: 'pixel';
223
+ layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
224
+ }
185
225
  export interface MediaSingleFullDefinition {
186
226
  type: 'mediaSingle';
187
227
  content: Array<MediaDefinition>;
188
228
  marks: Array<LinkMark | UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
189
- attrs: {
190
- width?: number;
191
- layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
192
- widthType?: 'pixel';
193
- };
229
+ attrs: MediaSingleFullNodeAttributes0 | MediaSingleFullNodeAttributes1;
194
230
  }
195
231
  export type MediaSingleFullNode = PMNode & MediaSingleFullDefinition;
196
232
  export declare const mediaSingleFull: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<MediaSingleFullNode>) => import("prosemirror-model").NodeSpec;
@@ -200,6 +236,7 @@ export interface InlineExtensionWithMarksDefinition {
200
236
  attrs: {
201
237
  extensionKey: string;
202
238
  extensionType: string;
239
+ parameters?: Record<string, unknown>;
203
240
  text?: string;
204
241
  localId?: string;
205
242
  };
@@ -210,6 +247,7 @@ export interface MediaInlineDefinition {
210
247
  type: 'mediaInline';
211
248
  marks: Array<LinkMark | AnnotationMark | BorderMark | UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
212
249
  attrs: {
250
+ data?: Record<string, unknown>;
213
251
  type?: 'link' | 'file' | 'image';
214
252
  url: string;
215
253
  id: string;
@@ -357,6 +395,7 @@ export interface ExtensionWithMarksDefinition {
357
395
  attrs: {
358
396
  extensionKey: string;
359
397
  extensionType: string;
398
+ parameters?: Record<string, unknown>;
360
399
  text?: string;
361
400
  layout?: 'wide' | 'full-width' | 'default';
362
401
  localId?: string;
@@ -503,6 +542,7 @@ export interface BodiedExtensionWithMarksDefinition {
503
542
  attrs: {
504
543
  extensionKey: string;
505
544
  extensionType: string;
545
+ parameters?: Record<string, unknown>;
506
546
  text?: string;
507
547
  layout?: 'wide' | 'full-width' | 'default';
508
548
  localId?: string;
@@ -14,8 +14,11 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
14
14
  group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
15
15
  isolating?: boolean;
16
16
  marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
17
+ allowAnyChildMark?: boolean;
18
+ allowNoChildMark?: boolean;
17
19
  selectable?: boolean;
18
20
  whitespace?: "pre" | "normal";
21
+ tableRole?: "table" | "row" | "cell" | "header_cell";
19
22
  }> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<any, {
20
23
  ignore?: import("@atlaskit/adf-schema-generator/dist/types/transforms/transformerNames").TransformerNames[];
21
24
  root?: boolean;
@@ -32,8 +35,11 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
32
35
  group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
33
36
  isolating?: boolean;
34
37
  marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
38
+ allowAnyChildMark?: boolean;
39
+ allowNoChildMark?: boolean;
35
40
  selectable?: boolean;
36
41
  whitespace?: "pre" | "normal";
42
+ tableRole?: "table" | "row" | "cell" | "header_cell";
37
43
  } & {
38
44
  marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
39
45
  }> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<any, {
@@ -52,8 +58,11 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
52
58
  group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
53
59
  isolating?: boolean;
54
60
  marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
61
+ allowAnyChildMark?: boolean;
62
+ allowNoChildMark?: boolean;
55
63
  selectable?: boolean;
56
64
  whitespace?: "pre" | "normal";
65
+ tableRole?: "table" | "row" | "cell" | "header_cell";
57
66
  } & {
58
67
  atom: false;
59
68
  content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOrSpec[];
@@ -73,8 +82,11 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
73
82
  group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
74
83
  isolating?: boolean;
75
84
  marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
85
+ allowAnyChildMark?: boolean;
86
+ allowNoChildMark?: boolean;
76
87
  selectable?: boolean;
77
88
  whitespace?: "pre" | "normal";
89
+ tableRole?: "table" | "row" | "cell" | "header_cell";
78
90
  } & {
79
91
  content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
80
92
  }>)[];
@@ -14,6 +14,9 @@ export declare const blockCard: import("@atlaskit/adf-schema-generator/dist/type
14
14
  group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
15
15
  isolating?: boolean;
16
16
  marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
17
+ allowAnyChildMark?: boolean;
18
+ allowNoChildMark?: boolean;
17
19
  selectable?: boolean;
18
20
  whitespace?: "pre" | "normal";
21
+ tableRole?: "table" | "row" | "cell" | "header_cell";
19
22
  }>;
@@ -14,8 +14,11 @@ export declare const blockquote: import("@atlaskit/adf-schema-generator/dist/typ
14
14
  group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
15
15
  isolating?: boolean;
16
16
  marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
17
+ allowAnyChildMark?: boolean;
18
+ allowNoChildMark?: boolean;
17
19
  selectable?: boolean;
18
20
  whitespace?: "pre" | "normal";
21
+ tableRole?: "table" | "row" | "cell" | "header_cell";
19
22
  } & {
20
23
  content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
21
24
  }>;
@@ -14,8 +14,11 @@ export declare const bodiedExtension: import("@atlaskit/adf-schema-generator/dis
14
14
  group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
15
15
  isolating?: boolean;
16
16
  marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
17
+ allowAnyChildMark?: boolean;
18
+ allowNoChildMark?: boolean;
17
19
  selectable?: boolean;
18
20
  whitespace?: "pre" | "normal";
21
+ tableRole?: "table" | "row" | "cell" | "header_cell";
19
22
  } & {
20
23
  marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
21
24
  }>;