@atlaskit/adf-schema 37.0.2 → 37.1.19

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 (150) hide show
  1. package/CHANGELOG.md +151 -0
  2. package/dist/cjs/next-schema/full-schema.adf.js +1 -1
  3. package/dist/cjs/next-schema/generated/nodeTypes.js +101 -31
  4. package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
  5. package/dist/cjs/next-schema/groups/inlineGroup.js +1 -1
  6. package/dist/cjs/next-schema/index.js +511 -0
  7. package/dist/cjs/next-schema/nodes/blockquote.js +3 -2
  8. package/dist/cjs/next-schema/nodes/bodiedExtension.js +6 -2
  9. package/dist/cjs/next-schema/nodes/codeBlock.js +10 -3
  10. package/dist/cjs/next-schema/nodes/date.js +2 -1
  11. package/dist/cjs/next-schema/nodes/emoji.js +2 -1
  12. package/dist/cjs/next-schema/nodes/expand.js +11 -3
  13. package/dist/cjs/next-schema/nodes/extension.js +5 -2
  14. package/dist/cjs/next-schema/nodes/heading.js +28 -5
  15. package/dist/cjs/next-schema/nodes/inlineExtension.js +1 -0
  16. package/dist/cjs/next-schema/nodes/layoutSection.js +15 -2
  17. package/dist/cjs/next-schema/nodes/list.js +12 -9
  18. package/dist/cjs/next-schema/nodes/mediaInline.js +2 -1
  19. package/dist/cjs/next-schema/nodes/mediaSingle.js +75 -4
  20. package/dist/cjs/next-schema/nodes/mention.js +2 -1
  21. package/dist/cjs/next-schema/nodes/multiBodiedExtension.js +8 -4
  22. package/dist/cjs/next-schema/nodes/nestedExpand.js +5 -1
  23. package/dist/cjs/next-schema/nodes/panel.js +3 -0
  24. package/dist/cjs/next-schema/nodes/paragraph.js +29 -5
  25. package/dist/cjs/next-schema/nodes/status.js +2 -1
  26. package/dist/cjs/next-schema/nodes/tableCell.js +4 -1
  27. package/dist/cjs/next-schema/nodes/tableHeader.js +5 -2
  28. package/dist/cjs/next-schema/nodes/task.js +1 -0
  29. package/dist/cjs/next-schema/nodes/text.js +7 -1
  30. package/dist/cjs/schema/nodes/media.js +10 -4
  31. package/dist/cjs/schema/nodes/text.js +1 -0
  32. package/dist/es2019/next-schema/full-schema.adf.js +1 -1
  33. package/dist/es2019/next-schema/generated/nodeTypes.js +100 -30
  34. package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
  35. package/dist/es2019/next-schema/groups/inlineGroup.js +1 -1
  36. package/dist/es2019/next-schema/index.js +2 -0
  37. package/dist/es2019/next-schema/nodes/blockquote.js +3 -2
  38. package/dist/es2019/next-schema/nodes/bodiedExtension.js +6 -2
  39. package/dist/es2019/next-schema/nodes/codeBlock.js +10 -3
  40. package/dist/es2019/next-schema/nodes/date.js +2 -1
  41. package/dist/es2019/next-schema/nodes/emoji.js +2 -1
  42. package/dist/es2019/next-schema/nodes/expand.js +11 -3
  43. package/dist/es2019/next-schema/nodes/extension.js +5 -2
  44. package/dist/es2019/next-schema/nodes/heading.js +27 -4
  45. package/dist/es2019/next-schema/nodes/inlineExtension.js +1 -0
  46. package/dist/es2019/next-schema/nodes/layoutSection.js +15 -2
  47. package/dist/es2019/next-schema/nodes/list.js +12 -9
  48. package/dist/es2019/next-schema/nodes/mediaInline.js +2 -1
  49. package/dist/es2019/next-schema/nodes/mediaSingle.js +76 -5
  50. package/dist/es2019/next-schema/nodes/mention.js +2 -1
  51. package/dist/es2019/next-schema/nodes/multiBodiedExtension.js +8 -4
  52. package/dist/es2019/next-schema/nodes/nestedExpand.js +5 -1
  53. package/dist/es2019/next-schema/nodes/panel.js +3 -0
  54. package/dist/es2019/next-schema/nodes/paragraph.js +29 -5
  55. package/dist/es2019/next-schema/nodes/status.js +2 -1
  56. package/dist/es2019/next-schema/nodes/tableCell.js +4 -1
  57. package/dist/es2019/next-schema/nodes/tableHeader.js +5 -2
  58. package/dist/es2019/next-schema/nodes/task.js +1 -0
  59. package/dist/es2019/next-schema/nodes/text.js +7 -1
  60. package/dist/es2019/schema/nodes/media.js +3 -1
  61. package/dist/es2019/schema/nodes/text.js +1 -0
  62. package/dist/esm/next-schema/full-schema.adf.js +1 -1
  63. package/dist/esm/next-schema/generated/nodeTypes.js +100 -30
  64. package/dist/esm/next-schema/groups/blockGroup.js +1 -1
  65. package/dist/esm/next-schema/groups/inlineGroup.js +1 -1
  66. package/dist/esm/next-schema/index.js +2 -0
  67. package/dist/esm/next-schema/nodes/blockquote.js +3 -2
  68. package/dist/esm/next-schema/nodes/bodiedExtension.js +6 -2
  69. package/dist/esm/next-schema/nodes/codeBlock.js +10 -3
  70. package/dist/esm/next-schema/nodes/date.js +2 -1
  71. package/dist/esm/next-schema/nodes/emoji.js +2 -1
  72. package/dist/esm/next-schema/nodes/expand.js +11 -3
  73. package/dist/esm/next-schema/nodes/extension.js +5 -2
  74. package/dist/esm/next-schema/nodes/heading.js +27 -4
  75. package/dist/esm/next-schema/nodes/inlineExtension.js +1 -0
  76. package/dist/esm/next-schema/nodes/layoutSection.js +15 -2
  77. package/dist/esm/next-schema/nodes/list.js +12 -9
  78. package/dist/esm/next-schema/nodes/mediaInline.js +2 -1
  79. package/dist/esm/next-schema/nodes/mediaSingle.js +76 -5
  80. package/dist/esm/next-schema/nodes/mention.js +2 -1
  81. package/dist/esm/next-schema/nodes/multiBodiedExtension.js +8 -4
  82. package/dist/esm/next-schema/nodes/nestedExpand.js +5 -1
  83. package/dist/esm/next-schema/nodes/panel.js +3 -0
  84. package/dist/esm/next-schema/nodes/paragraph.js +29 -5
  85. package/dist/esm/next-schema/nodes/status.js +2 -1
  86. package/dist/esm/next-schema/nodes/tableCell.js +4 -1
  87. package/dist/esm/next-schema/nodes/tableHeader.js +5 -2
  88. package/dist/esm/next-schema/nodes/task.js +1 -0
  89. package/dist/esm/next-schema/nodes/text.js +7 -1
  90. package/dist/esm/schema/nodes/media.js +9 -4
  91. package/dist/esm/schema/nodes/text.js +1 -0
  92. package/dist/types/next-schema/full-schema.adf.d.ts +18 -0
  93. package/dist/types/next-schema/generated/markTypes.d.ts +20 -20
  94. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
  95. package/dist/types/next-schema/generated/nodeTypes.d.ts +145 -96
  96. package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +128 -6
  97. package/dist/types/next-schema/index.d.ts +5 -0
  98. package/dist/types/next-schema/nodes/blockCard.d.ts +18 -0
  99. package/dist/types/next-schema/nodes/blockquote.d.ts +20 -1
  100. package/dist/types/next-schema/nodes/bodiedExtension.d.ts +20 -0
  101. package/dist/types/next-schema/nodes/caption.d.ts +18 -0
  102. package/dist/types/next-schema/nodes/codeBlock.d.ts +48 -0
  103. package/dist/types/next-schema/nodes/confluenceJiraIssue.d.ts +18 -0
  104. package/dist/types/next-schema/nodes/confluenceUnsupportedBlock.d.ts +18 -0
  105. package/dist/types/next-schema/nodes/confluenceUnsupportedInline.d.ts +18 -0
  106. package/dist/types/next-schema/nodes/date.d.ts +18 -0
  107. package/dist/types/next-schema/nodes/decisionItem.d.ts +18 -0
  108. package/dist/types/next-schema/nodes/decisionList.d.ts +18 -0
  109. package/dist/types/next-schema/nodes/embedCard.d.ts +18 -0
  110. package/dist/types/next-schema/nodes/emoji.d.ts +18 -0
  111. package/dist/types/next-schema/nodes/expand.d.ts +25 -0
  112. package/dist/types/next-schema/nodes/extension.d.ts +19 -0
  113. package/dist/types/next-schema/nodes/extensionFrame.d.ts +18 -0
  114. package/dist/types/next-schema/nodes/hardBreak.d.ts +18 -0
  115. package/dist/types/next-schema/nodes/heading.d.ts +80 -0
  116. package/dist/types/next-schema/nodes/image.d.ts +18 -0
  117. package/dist/types/next-schema/nodes/inlineCard.d.ts +18 -0
  118. package/dist/types/next-schema/nodes/inlineExtension.d.ts +18 -0
  119. package/dist/types/next-schema/nodes/layoutColumn.d.ts +18 -0
  120. package/dist/types/next-schema/nodes/layoutSection.d.ts +22 -0
  121. package/dist/types/next-schema/nodes/list.d.ts +36 -0
  122. package/dist/types/next-schema/nodes/media.d.ts +18 -0
  123. package/dist/types/next-schema/nodes/mediaGroup.d.ts +18 -0
  124. package/dist/types/next-schema/nodes/mediaInline.d.ts +18 -0
  125. package/dist/types/next-schema/nodes/mediaSingle.d.ts +67 -1
  126. package/dist/types/next-schema/nodes/mention.d.ts +18 -0
  127. package/dist/types/next-schema/nodes/multiBodiedExtension.d.ts +18 -0
  128. package/dist/types/next-schema/nodes/nestedExpand.d.ts +22 -0
  129. package/dist/types/next-schema/nodes/panel.d.ts +22 -1
  130. package/dist/types/next-schema/nodes/paragraph.d.ts +29 -0
  131. package/dist/types/next-schema/nodes/placeholder.d.ts +18 -0
  132. package/dist/types/next-schema/nodes/rule.d.ts +18 -0
  133. package/dist/types/next-schema/nodes/status.d.ts +18 -0
  134. package/dist/types/next-schema/nodes/table.d.ts +18 -0
  135. package/dist/types/next-schema/nodes/tableCell.d.ts +18 -0
  136. package/dist/types/next-schema/nodes/tableHeader.d.ts +18 -0
  137. package/dist/types/next-schema/nodes/tableRow.d.ts +18 -0
  138. package/dist/types/next-schema/nodes/task.d.ts +36 -0
  139. package/dist/types/next-schema/nodes/text.d.ts +22 -1
  140. package/dist/types/next-schema/nodes/unsupportedBlock.d.ts +18 -0
  141. package/dist/types/next-schema/nodes/unsupportedInline.d.ts +18 -0
  142. package/package.json +8 -3
  143. package/schema-generators/__tests__/unit/__fixtures__/index.fixture.ts +140 -0
  144. package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -45
  145. package/schema-generators/__tests__/unit/adfToValidatorSpecValidation.unit.ts +88 -0
  146. package/schema-generators/__tests__/unit/json-full-schema-backwards-compat.unit.ts +70 -61
  147. package/schema-generators/__tests__/unit/validate-pm-schema.unit.ts +152 -46
  148. package/schema-next/package.json +9 -0
  149. package/schema-generators/__tests__/unit/jqueries.md +0 -194
  150. package/schema-generators/__tests__/unit/json-full-schema.unit.ts +0 -2320
@@ -0,0 +1,511 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "alignment", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _markTypes.alignment;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "annotation", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _markTypes.annotation;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "backgroundColor", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _markTypes.backgroundColor;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "blockCard", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _nodeTypes.blockCard;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "blockquote", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _nodeTypes.blockquote;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "blockquoteLegacy", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _nodeTypes.blockquoteLegacy;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "bodiedExtension", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _nodeTypes.bodiedExtension;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "bodiedExtensionWithMarks", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _nodeTypes.bodiedExtensionWithMarks;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "border", {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _markTypes.border;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "breakout", {
61
+ enumerable: true,
62
+ get: function get() {
63
+ return _markTypes.breakout;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "bulletList", {
67
+ enumerable: true,
68
+ get: function get() {
69
+ return _nodeTypes.bulletList;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "caption", {
73
+ enumerable: true,
74
+ get: function get() {
75
+ return _nodeTypes.caption;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "code", {
79
+ enumerable: true,
80
+ get: function get() {
81
+ return _markTypes.code;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "codeBlock", {
85
+ enumerable: true,
86
+ get: function get() {
87
+ return _nodeTypes.codeBlock;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "codeBlockWithNoMarks", {
91
+ enumerable: true,
92
+ get: function get() {
93
+ return _nodeTypes.codeBlockWithNoMarks;
94
+ }
95
+ });
96
+ Object.defineProperty(exports, "confluenceInlineComment", {
97
+ enumerable: true,
98
+ get: function get() {
99
+ return _markTypes.confluenceInlineComment;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, "confluenceJiraIssue", {
103
+ enumerable: true,
104
+ get: function get() {
105
+ return _nodeTypes.confluenceJiraIssue;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, "confluenceUnsupportedBlock", {
109
+ enumerable: true,
110
+ get: function get() {
111
+ return _nodeTypes.confluenceUnsupportedBlock;
112
+ }
113
+ });
114
+ Object.defineProperty(exports, "confluenceUnsupportedInline", {
115
+ enumerable: true,
116
+ get: function get() {
117
+ return _nodeTypes.confluenceUnsupportedInline;
118
+ }
119
+ });
120
+ Object.defineProperty(exports, "dataConsumer", {
121
+ enumerable: true,
122
+ get: function get() {
123
+ return _markTypes.dataConsumer;
124
+ }
125
+ });
126
+ Object.defineProperty(exports, "date", {
127
+ enumerable: true,
128
+ get: function get() {
129
+ return _nodeTypes.date;
130
+ }
131
+ });
132
+ Object.defineProperty(exports, "decisionItem", {
133
+ enumerable: true,
134
+ get: function get() {
135
+ return _nodeTypes.decisionItem;
136
+ }
137
+ });
138
+ Object.defineProperty(exports, "decisionList", {
139
+ enumerable: true,
140
+ get: function get() {
141
+ return _nodeTypes.decisionList;
142
+ }
143
+ });
144
+ Object.defineProperty(exports, "doc", {
145
+ enumerable: true,
146
+ get: function get() {
147
+ return _nodeTypes.doc;
148
+ }
149
+ });
150
+ Object.defineProperty(exports, "em", {
151
+ enumerable: true,
152
+ get: function get() {
153
+ return _markTypes.em;
154
+ }
155
+ });
156
+ Object.defineProperty(exports, "embedCard", {
157
+ enumerable: true,
158
+ get: function get() {
159
+ return _nodeTypes.embedCard;
160
+ }
161
+ });
162
+ Object.defineProperty(exports, "emoji", {
163
+ enumerable: true,
164
+ get: function get() {
165
+ return _nodeTypes.emoji;
166
+ }
167
+ });
168
+ Object.defineProperty(exports, "expandWithNoMark", {
169
+ enumerable: true,
170
+ get: function get() {
171
+ return _nodeTypes.expandWithNoMark;
172
+ }
173
+ });
174
+ Object.defineProperty(exports, "extension", {
175
+ enumerable: true,
176
+ get: function get() {
177
+ return _nodeTypes.extension;
178
+ }
179
+ });
180
+ Object.defineProperty(exports, "extensionFrame", {
181
+ enumerable: true,
182
+ get: function get() {
183
+ return _nodeTypes.extensionFrame;
184
+ }
185
+ });
186
+ Object.defineProperty(exports, "extensionWithMarks", {
187
+ enumerable: true,
188
+ get: function get() {
189
+ return _nodeTypes.extensionWithMarks;
190
+ }
191
+ });
192
+ Object.defineProperty(exports, "fragment", {
193
+ enumerable: true,
194
+ get: function get() {
195
+ return _markTypes.fragment;
196
+ }
197
+ });
198
+ Object.defineProperty(exports, "hardBreak", {
199
+ enumerable: true,
200
+ get: function get() {
201
+ return _nodeTypes.hardBreak;
202
+ }
203
+ });
204
+ Object.defineProperty(exports, "heading", {
205
+ enumerable: true,
206
+ get: function get() {
207
+ return _nodeTypes.heading;
208
+ }
209
+ });
210
+ Object.defineProperty(exports, "headingWithAlignment", {
211
+ enumerable: true,
212
+ get: function get() {
213
+ return _nodeTypes.headingWithAlignment;
214
+ }
215
+ });
216
+ Object.defineProperty(exports, "headingWithIndentation", {
217
+ enumerable: true,
218
+ get: function get() {
219
+ return _nodeTypes.headingWithIndentation;
220
+ }
221
+ });
222
+ Object.defineProperty(exports, "headingWithNoMarks", {
223
+ enumerable: true,
224
+ get: function get() {
225
+ return _nodeTypes.headingWithNoMarks;
226
+ }
227
+ });
228
+ Object.defineProperty(exports, "image", {
229
+ enumerable: true,
230
+ get: function get() {
231
+ return _nodeTypes.image;
232
+ }
233
+ });
234
+ Object.defineProperty(exports, "indentation", {
235
+ enumerable: true,
236
+ get: function get() {
237
+ return _markTypes.indentation;
238
+ }
239
+ });
240
+ Object.defineProperty(exports, "inlineCard", {
241
+ enumerable: true,
242
+ get: function get() {
243
+ return _nodeTypes.inlineCard;
244
+ }
245
+ });
246
+ Object.defineProperty(exports, "inlineExtensionWithMarks", {
247
+ enumerable: true,
248
+ get: function get() {
249
+ return _nodeTypes.inlineExtensionWithMarks;
250
+ }
251
+ });
252
+ Object.defineProperty(exports, "layoutColumn", {
253
+ enumerable: true,
254
+ get: function get() {
255
+ return _nodeTypes.layoutColumn;
256
+ }
257
+ });
258
+ Object.defineProperty(exports, "layoutSection", {
259
+ enumerable: true,
260
+ get: function get() {
261
+ return _nodeTypes.layoutSection;
262
+ }
263
+ });
264
+ Object.defineProperty(exports, "layoutSectionFull", {
265
+ enumerable: true,
266
+ get: function get() {
267
+ return _nodeTypes.layoutSectionFull;
268
+ }
269
+ });
270
+ Object.defineProperty(exports, "link", {
271
+ enumerable: true,
272
+ get: function get() {
273
+ return _markTypes.link;
274
+ }
275
+ });
276
+ Object.defineProperty(exports, "listItem", {
277
+ enumerable: true,
278
+ get: function get() {
279
+ return _nodeTypes.listItem;
280
+ }
281
+ });
282
+ Object.defineProperty(exports, "listItemLegacy", {
283
+ enumerable: true,
284
+ get: function get() {
285
+ return _nodeTypes.listItemLegacy;
286
+ }
287
+ });
288
+ Object.defineProperty(exports, "media", {
289
+ enumerable: true,
290
+ get: function get() {
291
+ return _nodeTypes.media;
292
+ }
293
+ });
294
+ Object.defineProperty(exports, "mediaGroup", {
295
+ enumerable: true,
296
+ get: function get() {
297
+ return _nodeTypes.mediaGroup;
298
+ }
299
+ });
300
+ Object.defineProperty(exports, "mediaInline", {
301
+ enumerable: true,
302
+ get: function get() {
303
+ return _nodeTypes.mediaInline;
304
+ }
305
+ });
306
+ Object.defineProperty(exports, "mediaSingle", {
307
+ enumerable: true,
308
+ get: function get() {
309
+ return _nodeTypes.mediaSingle;
310
+ }
311
+ });
312
+ Object.defineProperty(exports, "mediaSingleCaption", {
313
+ enumerable: true,
314
+ get: function get() {
315
+ return _nodeTypes.mediaSingleCaption;
316
+ }
317
+ });
318
+ Object.defineProperty(exports, "mediaSingleFull", {
319
+ enumerable: true,
320
+ get: function get() {
321
+ return _nodeTypes.mediaSingleFull;
322
+ }
323
+ });
324
+ Object.defineProperty(exports, "mention", {
325
+ enumerable: true,
326
+ get: function get() {
327
+ return _nodeTypes.mention;
328
+ }
329
+ });
330
+ Object.defineProperty(exports, "multiBodiedExtension", {
331
+ enumerable: true,
332
+ get: function get() {
333
+ return _nodeTypes.multiBodiedExtension;
334
+ }
335
+ });
336
+ Object.defineProperty(exports, "nestedExpandWithNoMarks", {
337
+ enumerable: true,
338
+ get: function get() {
339
+ return _nodeTypes.nestedExpandWithNoMarks;
340
+ }
341
+ });
342
+ Object.defineProperty(exports, "orderedList", {
343
+ enumerable: true,
344
+ get: function get() {
345
+ return _nodeTypes.orderedList;
346
+ }
347
+ });
348
+ Object.defineProperty(exports, "panel", {
349
+ enumerable: true,
350
+ get: function get() {
351
+ return _nodeTypes.panel;
352
+ }
353
+ });
354
+ Object.defineProperty(exports, "panelLegacy", {
355
+ enumerable: true,
356
+ get: function get() {
357
+ return _nodeTypes.panelLegacy;
358
+ }
359
+ });
360
+ Object.defineProperty(exports, "paragraph", {
361
+ enumerable: true,
362
+ get: function get() {
363
+ return _nodeTypes.paragraph;
364
+ }
365
+ });
366
+ Object.defineProperty(exports, "paragraphWithAlignment", {
367
+ enumerable: true,
368
+ get: function get() {
369
+ return _nodeTypes.paragraphWithAlignment;
370
+ }
371
+ });
372
+ Object.defineProperty(exports, "paragraphWithNoMarks", {
373
+ enumerable: true,
374
+ get: function get() {
375
+ return _nodeTypes.paragraphWithNoMarks;
376
+ }
377
+ });
378
+ Object.defineProperty(exports, "placeholder", {
379
+ enumerable: true,
380
+ get: function get() {
381
+ return _nodeTypes.placeholder;
382
+ }
383
+ });
384
+ Object.defineProperty(exports, "rule", {
385
+ enumerable: true,
386
+ get: function get() {
387
+ return _nodeTypes.rule;
388
+ }
389
+ });
390
+ Object.defineProperty(exports, "status", {
391
+ enumerable: true,
392
+ get: function get() {
393
+ return _nodeTypes.status;
394
+ }
395
+ });
396
+ Object.defineProperty(exports, "strike", {
397
+ enumerable: true,
398
+ get: function get() {
399
+ return _markTypes.strike;
400
+ }
401
+ });
402
+ Object.defineProperty(exports, "strong", {
403
+ enumerable: true,
404
+ get: function get() {
405
+ return _markTypes.strong;
406
+ }
407
+ });
408
+ Object.defineProperty(exports, "subsup", {
409
+ enumerable: true,
410
+ get: function get() {
411
+ return _markTypes.subsup;
412
+ }
413
+ });
414
+ Object.defineProperty(exports, "table", {
415
+ enumerable: true,
416
+ get: function get() {
417
+ return _nodeTypes.table;
418
+ }
419
+ });
420
+ Object.defineProperty(exports, "tableCell", {
421
+ enumerable: true,
422
+ get: function get() {
423
+ return _nodeTypes.tableCell;
424
+ }
425
+ });
426
+ Object.defineProperty(exports, "tableHeader", {
427
+ enumerable: true,
428
+ get: function get() {
429
+ return _nodeTypes.tableHeader;
430
+ }
431
+ });
432
+ Object.defineProperty(exports, "tableRow", {
433
+ enumerable: true,
434
+ get: function get() {
435
+ return _nodeTypes.tableRow;
436
+ }
437
+ });
438
+ Object.defineProperty(exports, "taskItem", {
439
+ enumerable: true,
440
+ get: function get() {
441
+ return _nodeTypes.taskItem;
442
+ }
443
+ });
444
+ Object.defineProperty(exports, "taskList", {
445
+ enumerable: true,
446
+ get: function get() {
447
+ return _nodeTypes.taskList;
448
+ }
449
+ });
450
+ Object.defineProperty(exports, "text", {
451
+ enumerable: true,
452
+ get: function get() {
453
+ return _nodeTypes.text;
454
+ }
455
+ });
456
+ Object.defineProperty(exports, "textCodeInline", {
457
+ enumerable: true,
458
+ get: function get() {
459
+ return _nodeTypes.textCodeInline;
460
+ }
461
+ });
462
+ Object.defineProperty(exports, "textColor", {
463
+ enumerable: true,
464
+ get: function get() {
465
+ return _markTypes.textColor;
466
+ }
467
+ });
468
+ Object.defineProperty(exports, "textFormatted", {
469
+ enumerable: true,
470
+ get: function get() {
471
+ return _nodeTypes.textFormatted;
472
+ }
473
+ });
474
+ Object.defineProperty(exports, "typeAheadQuery", {
475
+ enumerable: true,
476
+ get: function get() {
477
+ return _markTypes.typeAheadQuery;
478
+ }
479
+ });
480
+ Object.defineProperty(exports, "underline", {
481
+ enumerable: true,
482
+ get: function get() {
483
+ return _markTypes.underline;
484
+ }
485
+ });
486
+ Object.defineProperty(exports, "unsupportedBlock", {
487
+ enumerable: true,
488
+ get: function get() {
489
+ return _nodeTypes.unsupportedBlock;
490
+ }
491
+ });
492
+ Object.defineProperty(exports, "unsupportedInline", {
493
+ enumerable: true,
494
+ get: function get() {
495
+ return _nodeTypes.unsupportedInline;
496
+ }
497
+ });
498
+ Object.defineProperty(exports, "unsupportedMark", {
499
+ enumerable: true,
500
+ get: function get() {
501
+ return _markTypes.unsupportedMark;
502
+ }
503
+ });
504
+ Object.defineProperty(exports, "unsupportedNodeAttribute", {
505
+ enumerable: true,
506
+ get: function get() {
507
+ return _markTypes.unsupportedNodeAttribute;
508
+ }
509
+ });
510
+ var _markTypes = require("./generated/markTypes");
511
+ var _nodeTypes = require("./generated/nodeTypes");
@@ -15,6 +15,7 @@ var blockquote = exports.blockquote = (0, _adfSchemaGenerator.adfNode)('blockquo
15
15
  selectable: false,
16
16
  marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
17
17
  content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _list.bulletList, _list.orderedList, _unsupportedBlock.unsupportedBlock))]
18
- }).variant('with_list', {
19
- content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph, _list.orderedList, _list.bulletList, _unsupportedBlock.unsupportedBlock))]
18
+ }).variant('legacy', {
19
+ ignore: ['json-schema', 'validator-spec'],
20
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph, _unsupportedBlock.unsupportedBlock))]
20
21
  });
@@ -17,6 +17,7 @@ var bodiedExtension = exports.bodiedExtension = (0, _adfSchemaGenerator.adfNode)
17
17
  selectable: true,
18
18
  isolating: true,
19
19
  marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
20
+ hasEmptyMarks: true,
20
21
  attrs: {
21
22
  extensionKey: {
22
23
  minLength: 1,
@@ -51,7 +52,10 @@ var bodiedExtension = exports.bodiedExtension = (0, _adfSchemaGenerator.adfNode)
51
52
  default: null
52
53
  }
53
54
  },
54
- content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, (0, _toConsumableArray2.default)(_nonNestableBlockContentGroup.nonNestableBlockContent)))]
55
+ content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, (0, _toConsumableArray2.default)(_nonNestableBlockContentGroup.nonNestableBlockContent)))],
56
+ ignore: ['json-schema']
55
57
  }).variant('with_marks', {
56
- marks: [_dataConsumer.dataConsumer, _fragment.fragment, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark]
58
+ marks: [_dataConsumer.dataConsumer, _fragment.fragment, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
59
+ content: [],
60
+ ignore: []
57
61
  });
@@ -26,8 +26,15 @@ var codeBlock = exports.codeBlock = (0, _adfSchemaGenerator.adfNode)('codeBlock'
26
26
  optional: true
27
27
  }
28
28
  },
29
- content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_text.text, _unsupportedInline.unsupportedInline))]
29
+ content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_text.text, _unsupportedInline.unsupportedInline))],
30
+ ignore: ['json-schema']
30
31
  }).variant('with_marks', {
31
- marks: [_breakout.breakout, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark]
32
- }).variant('with_no_marks', {});
32
+ marks: [_breakout.breakout, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
33
+ ignore: ['pm-spec']
34
+ }).variant('with_no_marks', {
35
+ content: [],
36
+ marks: [],
37
+ noMarks: true,
38
+ ignore: []
39
+ });
33
40
  var codeBlockWithNoMarks = exports.codeBlockWithNoMarks = codeBlock;
@@ -5,12 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.date = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _annotation = require("../marks/annotation");
8
9
  var _unsupportedMark = require("../marks/unsupportedMark");
9
10
  var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
10
11
  var date = exports.date = (0, _adfSchemaGenerator.adfNode)('date').define({
11
12
  inline: true,
12
13
  selectable: true,
13
- marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
14
+ marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark, _annotation.annotation],
14
15
  attrs: {
15
16
  timestamp: {
16
17
  minLength: 1,
@@ -5,12 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.emoji = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _annotation = require("../marks/annotation");
8
9
  var _unsupportedMark = require("../marks/unsupportedMark");
9
10
  var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
10
11
  var emoji = exports.emoji = (0, _adfSchemaGenerator.adfNode)('emoji').define({
11
12
  inline: true,
12
13
  selectable: true,
13
- marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
14
+ marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark, _annotation.annotation],
14
15
  attrs: {
15
16
  shortName: {
16
17
  type: 'string',
@@ -27,7 +27,15 @@ var expand = exports.expand = (0, _adfSchemaGenerator.adfNode)('expand').define(
27
27
  optional: true
28
28
  }
29
29
  },
30
- content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, (0, _toConsumableArray2.default)(_nonNestableBlockContentGroup.nonNestableBlockContent)))]
30
+ content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, (0, _toConsumableArray2.default)(_nonNestableBlockContentGroup.nonNestableBlockContent)))],
31
+ ignore: ['json-schema']
31
32
  }).variant('with_breakout_mark', {
32
- marks: [_breakout.breakout, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark]
33
- }).variant('with_no_mark', {});
33
+ marks: [_breakout.breakout, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
34
+ content: [],
35
+ ignore: ['pm-spec']
36
+ }).variant('with_no_mark', {
37
+ content: [],
38
+ marks: [],
39
+ noMarks: true,
40
+ ignore: []
41
+ });
@@ -13,6 +13,7 @@ var extension = exports.extension = (0, _adfSchemaGenerator.adfNode)('extension'
13
13
  atom: true,
14
14
  selectable: true,
15
15
  marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
16
+ hasEmptyMarks: true,
16
17
  attrs: {
17
18
  extensionKey: {
18
19
  minLength: 1,
@@ -46,7 +47,9 @@ var extension = exports.extension = (0, _adfSchemaGenerator.adfNode)('extension'
46
47
  optional: true,
47
48
  default: null
48
49
  }
49
- }
50
+ },
51
+ ignore: ['json-schema']
50
52
  }).variant('with_marks', {
51
- marks: [_dataConsumer.dataConsumer, _fragment.fragment, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark]
53
+ marks: [_dataConsumer.dataConsumer, _fragment.fragment, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
54
+ ignore: []
52
55
  });
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.heading = void 0;
6
+ exports.headingWithMarks = exports.heading = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
8
  var _inlineGroup = require("../groups/inlineGroup");
9
9
  var _alignmentAndIndentation = require("../marks/alignmentAndIndentation");
@@ -13,6 +13,7 @@ var heading = exports.heading = (0, _adfSchemaGenerator.adfNode)('heading').defi
13
13
  defining: true,
14
14
  selectable: false,
15
15
  marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
16
+ hasEmptyMarks: true,
16
17
  attrs: {
17
18
  level: {
18
19
  type: 'number',
@@ -26,9 +27,31 @@ var heading = exports.heading = (0, _adfSchemaGenerator.adfNode)('heading').defi
26
27
  default: null
27
28
  }
28
29
  },
29
- content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup))]
30
+ content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup))],
31
+ DANGEROUS_MANUAL_OVERRIDE: {
32
+ 'validator-spec': {
33
+ marks: {
34
+ value: {
35
+ type: 'array',
36
+ items: [],
37
+ optional: true
38
+ },
39
+ reason: 'In old types, some nodes have marks: Array<any>, which is not possible to represent in new DSL'
40
+ }
41
+ }
42
+ }
30
43
  }).variant('with_alignment', {
31
- marks: [_alignmentAndIndentation.alignment, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark]
44
+ marks: [_alignmentAndIndentation.alignment, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
45
+ content: [],
46
+ ignore: []
32
47
  }).variant('with_indentation', {
33
- marks: [_alignmentAndIndentation.indentation, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark]
34
- }).variant('with_no_marks', {});
48
+ marks: [_alignmentAndIndentation.indentation, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
49
+ content: [],
50
+ ignore: []
51
+ }).variant('with_no_marks', {
52
+ content: [],
53
+ marks: [],
54
+ noMarks: true,
55
+ ignore: []
56
+ });
57
+ var headingWithMarks = exports.headingWithMarks = heading;
@@ -13,6 +13,7 @@ var inlineExtension = exports.inlineExtension = (0, _adfSchemaGenerator.adfNode)
13
13
  inline: true,
14
14
  selectable: true,
15
15
  marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
16
+ hasEmptyMarks: true,
16
17
  attrs: {
17
18
  extensionKey: {
18
19
  minLength: 1,