@atlaskit/adf-schema 49.0.6 → 50.0.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 +12 -0
- package/dist/cjs/index.js +132 -0
- package/dist/cjs/next-schema/generated/nodeTypes.js +140 -1
- package/dist/cjs/next-schema/nodes/blockCard.js +15 -0
- package/dist/cjs/next-schema/nodes/blockquote.js +16 -2
- package/dist/cjs/next-schema/nodes/caption.js +7 -0
- package/dist/cjs/next-schema/nodes/codeBlock.js +5 -0
- package/dist/cjs/next-schema/nodes/date.js +5 -0
- package/dist/cjs/next-schema/nodes/embedCard.js +5 -0
- package/dist/cjs/next-schema/nodes/emoji.js +5 -0
- package/dist/cjs/next-schema/nodes/expand.js +5 -0
- package/dist/cjs/next-schema/nodes/hardBreak.js +5 -0
- package/dist/cjs/next-schema/nodes/inlineCard.js +10 -0
- package/dist/cjs/next-schema/nodes/layoutColumn.js +5 -0
- package/dist/cjs/next-schema/nodes/layoutSection.js +12 -0
- package/dist/cjs/next-schema/nodes/list.js +20 -1
- package/dist/cjs/next-schema/nodes/media.js +10 -0
- package/dist/cjs/next-schema/nodes/mediaInline.js +5 -0
- package/dist/cjs/next-schema/nodes/mediaSingle.js +10 -0
- package/dist/cjs/next-schema/nodes/nestedExpand.js +5 -0
- package/dist/cjs/next-schema/nodes/panel.js +5 -0
- package/dist/cjs/next-schema/nodes/placeholder.js +5 -0
- package/dist/cjs/next-schema/nodes/rule.js +9 -1
- package/dist/cjs/next-schema/nodes/tableNodes.js +17 -0
- package/dist/cjs/schema/index.js +138 -0
- package/dist/cjs/schema/nodes/block-card.js +48 -1
- package/dist/cjs/schema/nodes/blockquote.js +20 -2
- package/dist/cjs/schema/nodes/bullet-list.js +20 -1
- package/dist/cjs/schema/nodes/caption.js +20 -1
- package/dist/cjs/schema/nodes/code-block.js +72 -2
- package/dist/cjs/schema/nodes/date.js +22 -1
- package/dist/cjs/schema/nodes/embed-card.js +36 -1
- package/dist/cjs/schema/nodes/emoji.js +73 -1
- package/dist/cjs/schema/nodes/expand.js +56 -1
- package/dist/cjs/schema/nodes/hard-break.js +18 -1
- package/dist/cjs/schema/nodes/index.js +138 -0
- package/dist/cjs/schema/nodes/inline-card.js +46 -1
- package/dist/cjs/schema/nodes/layout-column.js +37 -1
- package/dist/cjs/schema/nodes/layout-section.js +31 -1
- package/dist/cjs/schema/nodes/list-item.js +34 -1
- package/dist/cjs/schema/nodes/media-inline.js +12 -2
- package/dist/cjs/schema/nodes/media-single.js +22 -2
- package/dist/cjs/schema/nodes/media.js +21 -4
- package/dist/cjs/schema/nodes/nested-expand.js +34 -7
- package/dist/cjs/schema/nodes/ordered-list.js +54 -3
- package/dist/cjs/schema/nodes/panel.js +13 -5
- package/dist/cjs/schema/nodes/placeholder.js +24 -1
- package/dist/cjs/schema/nodes/rule.js +18 -1
- package/dist/cjs/schema/nodes/tableNodes.js +69 -6
- package/dist/cjs/validator-schema/generated/validatorSpec.js +159 -0
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/next-schema/generated/nodeTypes.js +140 -1
- package/dist/es2019/next-schema/nodes/blockCard.js +15 -0
- package/dist/es2019/next-schema/nodes/blockquote.js +16 -2
- package/dist/es2019/next-schema/nodes/caption.js +7 -0
- package/dist/es2019/next-schema/nodes/codeBlock.js +5 -0
- package/dist/es2019/next-schema/nodes/date.js +5 -0
- package/dist/es2019/next-schema/nodes/embedCard.js +5 -0
- package/dist/es2019/next-schema/nodes/emoji.js +5 -0
- package/dist/es2019/next-schema/nodes/expand.js +5 -0
- package/dist/es2019/next-schema/nodes/hardBreak.js +5 -0
- package/dist/es2019/next-schema/nodes/inlineCard.js +10 -0
- package/dist/es2019/next-schema/nodes/layoutColumn.js +5 -0
- package/dist/es2019/next-schema/nodes/layoutSection.js +12 -0
- package/dist/es2019/next-schema/nodes/list.js +20 -1
- package/dist/es2019/next-schema/nodes/media.js +10 -0
- package/dist/es2019/next-schema/nodes/mediaInline.js +5 -0
- package/dist/es2019/next-schema/nodes/mediaSingle.js +10 -0
- package/dist/es2019/next-schema/nodes/nestedExpand.js +5 -0
- package/dist/es2019/next-schema/nodes/panel.js +5 -0
- package/dist/es2019/next-schema/nodes/placeholder.js +5 -0
- package/dist/es2019/next-schema/nodes/rule.js +9 -1
- package/dist/es2019/next-schema/nodes/tableNodes.js +17 -0
- package/dist/es2019/schema/default-schema.js +1 -1
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/block-card.js +50 -0
- package/dist/es2019/schema/nodes/blockquote.js +19 -1
- package/dist/es2019/schema/nodes/bullet-list.js +19 -0
- package/dist/es2019/schema/nodes/caption.js +19 -0
- package/dist/es2019/schema/nodes/code-block.js +68 -0
- package/dist/es2019/schema/nodes/date.js +19 -0
- package/dist/es2019/schema/nodes/embed-card.js +34 -0
- package/dist/es2019/schema/nodes/emoji.js +71 -0
- package/dist/es2019/schema/nodes/expand.js +59 -0
- package/dist/es2019/schema/nodes/hard-break.js +15 -0
- package/dist/es2019/schema/nodes/index.js +20 -20
- package/dist/es2019/schema/nodes/inline-card.js +45 -0
- package/dist/es2019/schema/nodes/layout-column.js +38 -0
- package/dist/es2019/schema/nodes/layout-section.js +32 -0
- package/dist/es2019/schema/nodes/list-item.js +29 -0
- package/dist/es2019/schema/nodes/media-inline.js +8 -1
- package/dist/es2019/schema/nodes/media-single.js +20 -1
- package/dist/es2019/schema/nodes/media.js +17 -4
- package/dist/es2019/schema/nodes/nested-expand.js +21 -6
- package/dist/es2019/schema/nodes/ordered-list.js +51 -2
- package/dist/es2019/schema/nodes/panel.js +11 -5
- package/dist/es2019/schema/nodes/placeholder.js +23 -0
- package/dist/es2019/schema/nodes/rule.js +15 -0
- package/dist/es2019/schema/nodes/tableNodes.js +59 -3
- package/dist/es2019/validator-schema/generated/validatorSpec.js +159 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/next-schema/generated/nodeTypes.js +140 -1
- package/dist/esm/next-schema/nodes/blockCard.js +15 -0
- package/dist/esm/next-schema/nodes/blockquote.js +16 -2
- package/dist/esm/next-schema/nodes/caption.js +7 -0
- package/dist/esm/next-schema/nodes/codeBlock.js +5 -0
- package/dist/esm/next-schema/nodes/date.js +5 -0
- package/dist/esm/next-schema/nodes/embedCard.js +5 -0
- package/dist/esm/next-schema/nodes/emoji.js +5 -0
- package/dist/esm/next-schema/nodes/expand.js +5 -0
- package/dist/esm/next-schema/nodes/hardBreak.js +5 -0
- package/dist/esm/next-schema/nodes/inlineCard.js +10 -0
- package/dist/esm/next-schema/nodes/layoutColumn.js +5 -0
- package/dist/esm/next-schema/nodes/layoutSection.js +12 -0
- package/dist/esm/next-schema/nodes/list.js +20 -1
- package/dist/esm/next-schema/nodes/media.js +10 -0
- package/dist/esm/next-schema/nodes/mediaInline.js +5 -0
- package/dist/esm/next-schema/nodes/mediaSingle.js +10 -0
- package/dist/esm/next-schema/nodes/nestedExpand.js +5 -0
- package/dist/esm/next-schema/nodes/panel.js +5 -0
- package/dist/esm/next-schema/nodes/placeholder.js +5 -0
- package/dist/esm/next-schema/nodes/rule.js +9 -1
- package/dist/esm/next-schema/nodes/tableNodes.js +17 -0
- package/dist/esm/schema/default-schema.js +1 -1
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/block-card.js +47 -0
- package/dist/esm/schema/nodes/blockquote.js +19 -1
- package/dist/esm/schema/nodes/bullet-list.js +19 -0
- package/dist/esm/schema/nodes/caption.js +19 -0
- package/dist/esm/schema/nodes/code-block.js +71 -1
- package/dist/esm/schema/nodes/date.js +21 -0
- package/dist/esm/schema/nodes/embed-card.js +35 -0
- package/dist/esm/schema/nodes/emoji.js +71 -0
- package/dist/esm/schema/nodes/expand.js +55 -0
- package/dist/esm/schema/nodes/hard-break.js +17 -0
- package/dist/esm/schema/nodes/index.js +20 -20
- package/dist/esm/schema/nodes/inline-card.js +45 -0
- package/dist/esm/schema/nodes/layout-column.js +36 -0
- package/dist/esm/schema/nodes/layout-section.js +30 -0
- package/dist/esm/schema/nodes/list-item.js +33 -0
- package/dist/esm/schema/nodes/media-inline.js +10 -1
- package/dist/esm/schema/nodes/media-single.js +21 -1
- package/dist/esm/schema/nodes/media.js +19 -3
- package/dist/esm/schema/nodes/nested-expand.js +32 -6
- package/dist/esm/schema/nodes/ordered-list.js +53 -2
- package/dist/esm/schema/nodes/panel.js +12 -4
- package/dist/esm/schema/nodes/placeholder.js +23 -0
- package/dist/esm/schema/nodes/rule.js +17 -0
- package/dist/esm/schema/nodes/tableNodes.js +68 -5
- package/dist/esm/validator-schema/generated/validatorSpec.js +159 -0
- package/dist/json-schema/v1/full.json +140 -2
- package/dist/json-schema/v1/stage-0.json +152 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +72 -0
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +7 -0
- package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +7 -0
- package/dist/types/next-schema/nodes/blockquote.d.ts +7 -0
- package/dist/types/next-schema/nodes/layoutSection.d.ts +5 -0
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/block-card.d.ts +4 -0
- package/dist/types/schema/nodes/blockquote.d.ts +4 -0
- package/dist/types/schema/nodes/bullet-list.d.ts +1 -0
- package/dist/types/schema/nodes/caption.d.ts +4 -0
- package/dist/types/schema/nodes/code-block.d.ts +2 -0
- package/dist/types/schema/nodes/date.d.ts +2 -0
- package/dist/types/schema/nodes/embed-card.d.ts +2 -0
- package/dist/types/schema/nodes/emoji.d.ts +2 -0
- package/dist/types/schema/nodes/expand.d.ts +2 -0
- package/dist/types/schema/nodes/hard-break.d.ts +2 -0
- package/dist/types/schema/nodes/index.d.ts +20 -20
- package/dist/types/schema/nodes/inline-card.d.ts +1 -0
- package/dist/types/schema/nodes/layout-column.d.ts +2 -0
- package/dist/types/schema/nodes/layout-section.d.ts +4 -0
- package/dist/types/schema/nodes/list-item.d.ts +2 -0
- package/dist/types/schema/nodes/media-inline.d.ts +1 -0
- package/dist/types/schema/nodes/media-single.d.ts +3 -1
- package/dist/types/schema/nodes/media.d.ts +3 -1
- package/dist/types/schema/nodes/nested-expand.d.ts +2 -0
- package/dist/types/schema/nodes/ordered-list.d.ts +2 -0
- package/dist/types/schema/nodes/panel.d.ts +2 -0
- package/dist/types/schema/nodes/placeholder.d.ts +2 -0
- package/dist/types/schema/nodes/rule.d.ts +4 -0
- package/dist/types/schema/nodes/tableNodes.d.ts +6 -0
- package/dist/types/schema/nodes/types/list.d.ts +7 -0
- package/dist/types/schema/nodes/types/rich-media-common.d.ts +1 -0
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +159 -0
- package/json-schema/v1/full.json +140 -2
- package/json-schema/v1/stage-0.json +152 -2
- package/package.json +2 -2
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -0
@@ -8,6 +8,9 @@ import { createPMNodeSpecFactory } from '../../schema/createPMSpecFactory';
|
|
8
8
|
export const blockCard = createPMNodeSpecFactory({
|
9
9
|
group: 'block',
|
10
10
|
attrs: {
|
11
|
+
localId: {
|
12
|
+
default: null
|
13
|
+
},
|
11
14
|
url: {
|
12
15
|
default: null
|
13
16
|
},
|
@@ -31,6 +34,11 @@ export const blockquote = createPMNodeSpecFactory({
|
|
31
34
|
content: '(paragraph | orderedList | bulletList | unsupportedBlock | codeBlock | mediaSingle | mediaGroup | extension)+',
|
32
35
|
marks: 'unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
33
36
|
group: 'block',
|
37
|
+
attrs: {
|
38
|
+
localId: {
|
39
|
+
default: null
|
40
|
+
}
|
41
|
+
},
|
34
42
|
selectable: true,
|
35
43
|
defining: true
|
36
44
|
});
|
@@ -38,6 +46,11 @@ export const blockquoteLegacy = createPMNodeSpecFactory({
|
|
38
46
|
content: '(paragraph | unsupportedBlock)+',
|
39
47
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
40
48
|
group: 'block',
|
49
|
+
attrs: {
|
50
|
+
localId: {
|
51
|
+
default: null
|
52
|
+
}
|
53
|
+
},
|
41
54
|
selectable: true,
|
42
55
|
defining: true
|
43
56
|
});
|
@@ -100,11 +113,21 @@ export const bulletList = createPMNodeSpecFactory({
|
|
100
113
|
content: 'listItem+',
|
101
114
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
102
115
|
group: 'block',
|
116
|
+
attrs: {
|
117
|
+
localId: {
|
118
|
+
default: null
|
119
|
+
}
|
120
|
+
},
|
103
121
|
selectable: false
|
104
122
|
});
|
105
123
|
export const caption = createPMNodeSpecFactory({
|
106
124
|
content: '(hardBreak | mention | emoji | date | placeholder | inlineCard | status | text | unsupportedInline)*',
|
107
125
|
marks: '_',
|
126
|
+
attrs: {
|
127
|
+
localId: {
|
128
|
+
default: null
|
129
|
+
}
|
130
|
+
},
|
108
131
|
selectable: false,
|
109
132
|
isolating: true
|
110
133
|
});
|
@@ -118,6 +141,9 @@ export const codeBlock = createPMNodeSpecFactory({
|
|
118
141
|
},
|
119
142
|
uniqueId: {
|
120
143
|
default: null
|
144
|
+
},
|
145
|
+
localId: {
|
146
|
+
default: null
|
121
147
|
}
|
122
148
|
},
|
123
149
|
code: true,
|
@@ -132,6 +158,9 @@ export const codeBlockRootOnly = createPMNodeSpecFactory({
|
|
132
158
|
},
|
133
159
|
uniqueId: {
|
134
160
|
default: null
|
161
|
+
},
|
162
|
+
localId: {
|
163
|
+
default: null
|
135
164
|
}
|
136
165
|
},
|
137
166
|
code: true,
|
@@ -183,6 +212,9 @@ export const date = createPMNodeSpecFactory({
|
|
183
212
|
attrs: {
|
184
213
|
timestamp: {
|
185
214
|
default: ''
|
215
|
+
},
|
216
|
+
localId: {
|
217
|
+
default: null
|
186
218
|
}
|
187
219
|
},
|
188
220
|
selectable: true
|
@@ -193,6 +225,9 @@ export const dateStage0 = createPMNodeSpecFactory({
|
|
193
225
|
attrs: {
|
194
226
|
timestamp: {
|
195
227
|
default: ''
|
228
|
+
},
|
229
|
+
localId: {
|
230
|
+
default: null
|
196
231
|
}
|
197
232
|
},
|
198
233
|
selectable: true
|
@@ -243,6 +278,9 @@ export const embedCard = createPMNodeSpecFactory({
|
|
243
278
|
},
|
244
279
|
originalWidth: {
|
245
280
|
default: null
|
281
|
+
},
|
282
|
+
localId: {
|
283
|
+
default: null
|
246
284
|
}
|
247
285
|
},
|
248
286
|
selectable: true
|
@@ -259,6 +297,9 @@ export const emoji = createPMNodeSpecFactory({
|
|
259
297
|
},
|
260
298
|
text: {
|
261
299
|
default: ''
|
300
|
+
},
|
301
|
+
localId: {
|
302
|
+
default: null
|
262
303
|
}
|
263
304
|
},
|
264
305
|
selectable: true
|
@@ -275,6 +316,9 @@ export const emojiStage0 = createPMNodeSpecFactory({
|
|
275
316
|
},
|
276
317
|
text: {
|
277
318
|
default: ''
|
319
|
+
},
|
320
|
+
localId: {
|
321
|
+
default: null
|
278
322
|
}
|
279
323
|
},
|
280
324
|
selectable: true
|
@@ -289,6 +333,9 @@ export const expand = createPMNodeSpecFactory({
|
|
289
333
|
},
|
290
334
|
__expanded: {
|
291
335
|
default: true
|
336
|
+
},
|
337
|
+
localId: {
|
338
|
+
default: null
|
292
339
|
}
|
293
340
|
},
|
294
341
|
selectable: true,
|
@@ -303,6 +350,9 @@ export const expandRootOnly = createPMNodeSpecFactory({
|
|
303
350
|
},
|
304
351
|
__expanded: {
|
305
352
|
default: true
|
353
|
+
},
|
354
|
+
localId: {
|
355
|
+
default: null
|
306
356
|
}
|
307
357
|
},
|
308
358
|
selectable: true,
|
@@ -373,6 +423,9 @@ export const hardBreak = createPMNodeSpecFactory({
|
|
373
423
|
attrs: {
|
374
424
|
text: {
|
375
425
|
default: '\n'
|
426
|
+
},
|
427
|
+
localId: {
|
428
|
+
default: null
|
376
429
|
}
|
377
430
|
},
|
378
431
|
selectable: false,
|
@@ -455,6 +508,9 @@ export const inlineCard = createPMNodeSpecFactory({
|
|
455
508
|
url: {
|
456
509
|
default: null
|
457
510
|
},
|
511
|
+
localId: {
|
512
|
+
default: null
|
513
|
+
},
|
458
514
|
data: {
|
459
515
|
default: null
|
460
516
|
}
|
@@ -469,6 +525,9 @@ export const inlineCardStage0 = createPMNodeSpecFactory({
|
|
469
525
|
url: {
|
470
526
|
default: null
|
471
527
|
},
|
528
|
+
localId: {
|
529
|
+
default: null
|
530
|
+
},
|
472
531
|
data: {
|
473
532
|
default: null
|
474
533
|
}
|
@@ -526,6 +585,9 @@ export const layoutColumn = createPMNodeSpecFactory({
|
|
526
585
|
attrs: {
|
527
586
|
width: {
|
528
587
|
default: undefined
|
588
|
+
},
|
589
|
+
localId: {
|
590
|
+
default: null
|
529
591
|
}
|
530
592
|
},
|
531
593
|
selectable: false,
|
@@ -534,11 +596,21 @@ export const layoutColumn = createPMNodeSpecFactory({
|
|
534
596
|
export const layoutSection = createPMNodeSpecFactory({
|
535
597
|
content: '(layoutColumn | unsupportedBlock){1,3} unsupportedBlock*',
|
536
598
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
599
|
+
attrs: {
|
600
|
+
localId: {
|
601
|
+
default: null
|
602
|
+
}
|
603
|
+
},
|
537
604
|
isolating: true
|
538
605
|
});
|
539
606
|
export const layoutSectionFull = createPMNodeSpecFactory({
|
540
607
|
content: '(layoutColumn | unsupportedBlock){2,3}',
|
541
608
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
609
|
+
attrs: {
|
610
|
+
localId: {
|
611
|
+
default: null
|
612
|
+
}
|
613
|
+
},
|
542
614
|
isolating: true
|
543
615
|
});
|
544
616
|
export const layoutSectionWithSingleColumnStage0 = createPMNodeSpecFactory({
|
@@ -547,6 +619,9 @@ export const layoutSectionWithSingleColumnStage0 = createPMNodeSpecFactory({
|
|
547
619
|
attrs: {
|
548
620
|
columnRuleStyle: {
|
549
621
|
default: null
|
622
|
+
},
|
623
|
+
localId: {
|
624
|
+
default: null
|
550
625
|
}
|
551
626
|
},
|
552
627
|
isolating: true
|
@@ -554,12 +629,22 @@ export const layoutSectionWithSingleColumnStage0 = createPMNodeSpecFactory({
|
|
554
629
|
export const listItem = createPMNodeSpecFactory({
|
555
630
|
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock | extension) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | extension)*',
|
556
631
|
marks: 'dataConsumer fragment unsupportedMark unsupportedNodeAttribute',
|
632
|
+
attrs: {
|
633
|
+
localId: {
|
634
|
+
default: null
|
635
|
+
}
|
636
|
+
},
|
557
637
|
selectable: false,
|
558
638
|
defining: true
|
559
639
|
});
|
560
640
|
export const listItemWithNestedDecisionStage0 = createPMNodeSpecFactory({
|
561
641
|
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock | decisionList | extension) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | decisionList | extension)*',
|
562
642
|
marks: 'unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
643
|
+
attrs: {
|
644
|
+
localId: {
|
645
|
+
default: null
|
646
|
+
}
|
647
|
+
},
|
563
648
|
selectable: false,
|
564
649
|
defining: true
|
565
650
|
});
|
@@ -568,6 +653,9 @@ export const media = createPMNodeSpecFactory({
|
|
568
653
|
type: {
|
569
654
|
default: 'file'
|
570
655
|
},
|
656
|
+
localId: {
|
657
|
+
default: null
|
658
|
+
},
|
571
659
|
id: {
|
572
660
|
default: ''
|
573
661
|
},
|
@@ -627,6 +715,9 @@ export const mediaInline = createPMNodeSpecFactory({
|
|
627
715
|
type: {
|
628
716
|
default: 'file'
|
629
717
|
},
|
718
|
+
localId: {
|
719
|
+
default: null
|
720
|
+
},
|
630
721
|
url: {
|
631
722
|
default: null
|
632
723
|
},
|
@@ -708,6 +799,9 @@ export const mediaSingleFull = createPMNodeSpecFactory({
|
|
708
799
|
group: 'block',
|
709
800
|
atom: false,
|
710
801
|
attrs: {
|
802
|
+
localId: {
|
803
|
+
default: null
|
804
|
+
},
|
711
805
|
width: {
|
712
806
|
default: null
|
713
807
|
},
|
@@ -726,6 +820,9 @@ export const mediaSingleWidthType = createPMNodeSpecFactory({
|
|
726
820
|
group: 'block',
|
727
821
|
atom: true,
|
728
822
|
attrs: {
|
823
|
+
localId: {
|
824
|
+
default: null
|
825
|
+
},
|
729
826
|
width: {
|
730
827
|
default: null
|
731
828
|
},
|
@@ -818,6 +915,9 @@ export const nestedExpand = createPMNodeSpecFactory({
|
|
818
915
|
},
|
819
916
|
__expanded: {
|
820
917
|
default: true
|
918
|
+
},
|
919
|
+
localId: {
|
920
|
+
default: null
|
821
921
|
}
|
822
922
|
},
|
823
923
|
selectable: true,
|
@@ -830,6 +930,9 @@ export const nestedExpandWithNoMarks = createPMNodeSpecFactory({
|
|
830
930
|
},
|
831
931
|
__expanded: {
|
832
932
|
default: true
|
933
|
+
},
|
934
|
+
localId: {
|
935
|
+
default: null
|
833
936
|
}
|
834
937
|
},
|
835
938
|
selectable: true,
|
@@ -842,6 +945,9 @@ export const orderedList = createPMNodeSpecFactory({
|
|
842
945
|
attrs: {
|
843
946
|
order: {
|
844
947
|
default: 1
|
948
|
+
},
|
949
|
+
localId: {
|
950
|
+
default: null
|
845
951
|
}
|
846
952
|
},
|
847
953
|
selectable: false
|
@@ -865,6 +971,9 @@ export const panel = createPMNodeSpecFactory({
|
|
865
971
|
},
|
866
972
|
panelColor: {
|
867
973
|
default: null
|
974
|
+
},
|
975
|
+
localId: {
|
976
|
+
default: null
|
868
977
|
}
|
869
978
|
},
|
870
979
|
selectable: true
|
@@ -914,12 +1023,20 @@ export const placeholder = createPMNodeSpecFactory({
|
|
914
1023
|
attrs: {
|
915
1024
|
text: {
|
916
1025
|
default: ''
|
1026
|
+
},
|
1027
|
+
localId: {
|
1028
|
+
default: null
|
917
1029
|
}
|
918
1030
|
},
|
919
1031
|
selectable: false
|
920
1032
|
});
|
921
1033
|
export const rule = createPMNodeSpecFactory({
|
922
|
-
group: 'block'
|
1034
|
+
group: 'block',
|
1035
|
+
attrs: {
|
1036
|
+
localId: {
|
1037
|
+
default: null
|
1038
|
+
}
|
1039
|
+
}
|
923
1040
|
});
|
924
1041
|
export const status = createPMNodeSpecFactory({
|
925
1042
|
group: 'inline',
|
@@ -1030,6 +1147,9 @@ export const tableCell = createPMNodeSpecFactory({
|
|
1030
1147
|
},
|
1031
1148
|
background: {
|
1032
1149
|
default: null
|
1150
|
+
},
|
1151
|
+
localId: {
|
1152
|
+
default: null
|
1033
1153
|
}
|
1034
1154
|
},
|
1035
1155
|
selectable: false,
|
@@ -1051,6 +1171,9 @@ export const tableCellWithNestedTable = createPMNodeSpecFactory({
|
|
1051
1171
|
},
|
1052
1172
|
background: {
|
1053
1173
|
default: null
|
1174
|
+
},
|
1175
|
+
localId: {
|
1176
|
+
default: null
|
1054
1177
|
}
|
1055
1178
|
},
|
1056
1179
|
selectable: false,
|
@@ -1072,6 +1195,9 @@ export const tableHeader = createPMNodeSpecFactory({
|
|
1072
1195
|
},
|
1073
1196
|
background: {
|
1074
1197
|
default: null
|
1198
|
+
},
|
1199
|
+
localId: {
|
1200
|
+
default: null
|
1075
1201
|
}
|
1076
1202
|
},
|
1077
1203
|
selectable: false,
|
@@ -1093,6 +1219,9 @@ export const tableHeaderWithNestedTable = createPMNodeSpecFactory({
|
|
1093
1219
|
},
|
1094
1220
|
background: {
|
1095
1221
|
default: null
|
1222
|
+
},
|
1223
|
+
localId: {
|
1224
|
+
default: null
|
1096
1225
|
}
|
1097
1226
|
},
|
1098
1227
|
selectable: false,
|
@@ -1102,12 +1231,22 @@ export const tableHeaderWithNestedTable = createPMNodeSpecFactory({
|
|
1102
1231
|
export const tableRow = createPMNodeSpecFactory({
|
1103
1232
|
content: '(tableCell | tableHeader)+',
|
1104
1233
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
1234
|
+
attrs: {
|
1235
|
+
localId: {
|
1236
|
+
default: null
|
1237
|
+
}
|
1238
|
+
},
|
1105
1239
|
selectable: false,
|
1106
1240
|
tableRole: 'row'
|
1107
1241
|
});
|
1108
1242
|
export const tableRowWithNestedTable = createPMNodeSpecFactory({
|
1109
1243
|
content: '(tableCell | tableHeader)+',
|
1110
1244
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
1245
|
+
attrs: {
|
1246
|
+
localId: {
|
1247
|
+
default: null
|
1248
|
+
}
|
1249
|
+
},
|
1111
1250
|
selectable: false,
|
1112
1251
|
tableRole: 'row'
|
1113
1252
|
});
|
@@ -7,6 +7,11 @@ export const blockCard = adfNode('blockCard').define({
|
|
7
7
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
8
8
|
attrs: {
|
9
9
|
anyOf: [{
|
10
|
+
localId: {
|
11
|
+
type: 'string',
|
12
|
+
default: null,
|
13
|
+
optional: true
|
14
|
+
},
|
10
15
|
url: {
|
11
16
|
type: 'string',
|
12
17
|
optional: true,
|
@@ -62,11 +67,21 @@ export const blockCard = adfNode('blockCard').define({
|
|
62
67
|
url: {
|
63
68
|
type: 'string',
|
64
69
|
validatorFn: 'safeUrl'
|
70
|
+
},
|
71
|
+
localId: {
|
72
|
+
type: 'string',
|
73
|
+
default: null,
|
74
|
+
optional: true
|
65
75
|
}
|
66
76
|
}, {
|
67
77
|
data: {
|
68
78
|
type: 'object',
|
69
79
|
default: null
|
80
|
+
},
|
81
|
+
localId: {
|
82
|
+
type: 'string',
|
83
|
+
default: null,
|
84
|
+
optional: true
|
70
85
|
}
|
71
86
|
}]
|
72
87
|
}
|
@@ -13,8 +13,22 @@ export const blockquote = adfNode('blockquote').define({
|
|
13
13
|
defining: true,
|
14
14
|
selectable: true,
|
15
15
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
16
|
-
content: [$onePlus($or(...blockQuoteContent))]
|
16
|
+
content: [$onePlus($or(...blockQuoteContent))],
|
17
|
+
attrs: {
|
18
|
+
localId: {
|
19
|
+
type: 'string',
|
20
|
+
default: null,
|
21
|
+
optional: true
|
22
|
+
}
|
23
|
+
}
|
17
24
|
}).variant('legacy', {
|
18
25
|
ignore: ['json-schema', 'validator-spec'],
|
19
|
-
content: [$onePlus($or(paragraph, unsupportedBlock))]
|
26
|
+
content: [$onePlus($or(paragraph, unsupportedBlock))],
|
27
|
+
attrs: {
|
28
|
+
localId: {
|
29
|
+
type: 'string',
|
30
|
+
default: null,
|
31
|
+
optional: true
|
32
|
+
}
|
33
|
+
}
|
20
34
|
});
|
@@ -15,5 +15,12 @@ export const caption = adfNode('caption').define({
|
|
15
15
|
selectable: false,
|
16
16
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
17
17
|
allowAnyChildMark: true,
|
18
|
+
attrs: {
|
19
|
+
localId: {
|
20
|
+
type: 'string',
|
21
|
+
default: null,
|
22
|
+
optional: true
|
23
|
+
}
|
24
|
+
},
|
18
25
|
content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))]
|
19
26
|
});
|
@@ -18,6 +18,11 @@ export const expand = adfNode('expand').define({
|
|
18
18
|
type: 'boolean',
|
19
19
|
default: true,
|
20
20
|
optional: true
|
21
|
+
},
|
22
|
+
localId: {
|
23
|
+
type: 'string',
|
24
|
+
default: null,
|
25
|
+
optional: true
|
21
26
|
}
|
22
27
|
},
|
23
28
|
content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks')))]
|
@@ -13,11 +13,21 @@ export const inlineCard = adfNode('inlineCard').define({
|
|
13
13
|
type: 'string',
|
14
14
|
default: null,
|
15
15
|
validatorFn: 'safeUrl'
|
16
|
+
},
|
17
|
+
localId: {
|
18
|
+
type: 'string',
|
19
|
+
default: null,
|
20
|
+
optional: true
|
16
21
|
}
|
17
22
|
}, {
|
18
23
|
data: {
|
19
24
|
type: 'object',
|
20
25
|
default: null
|
26
|
+
},
|
27
|
+
localId: {
|
28
|
+
type: 'string',
|
29
|
+
default: null,
|
30
|
+
optional: true
|
21
31
|
}
|
22
32
|
}]
|
23
33
|
},
|
@@ -14,6 +14,11 @@ export const layoutColumn = adfNode('layoutColumn').define({
|
|
14
14
|
minimum: 0,
|
15
15
|
maximum: 100,
|
16
16
|
default: undefined
|
17
|
+
},
|
18
|
+
localId: {
|
19
|
+
type: 'string',
|
20
|
+
default: null,
|
21
|
+
optional: true
|
17
22
|
}
|
18
23
|
},
|
19
24
|
content: [$onePlus($or(blockGroup, blockContentGroup, unsupportedBlock))]
|
@@ -6,6 +6,13 @@ import { layoutColumn } from './layoutColumn';
|
|
6
6
|
import { unsupportedBlock } from './unsupportedBlock';
|
7
7
|
export const layoutSection = adfNode('layoutSection').define({
|
8
8
|
isolating: true,
|
9
|
+
attrs: {
|
10
|
+
localId: {
|
11
|
+
type: 'string',
|
12
|
+
default: null,
|
13
|
+
optional: true
|
14
|
+
}
|
15
|
+
},
|
9
16
|
marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
|
10
17
|
content: [$range(1, 3, $or(layoutColumn, unsupportedBlock)), $zeroPlus($or(unsupportedBlock))]
|
11
18
|
}).variant('with_single_column', {
|
@@ -18,6 +25,11 @@ export const layoutSection = adfNode('layoutSection').define({
|
|
18
25
|
values: ['solid'],
|
19
26
|
default: null,
|
20
27
|
optional: true
|
28
|
+
},
|
29
|
+
localId: {
|
30
|
+
type: 'string',
|
31
|
+
default: null,
|
32
|
+
optional: true
|
21
33
|
}
|
22
34
|
}
|
23
35
|
}).variant('full', {
|
@@ -13,6 +13,13 @@ export const bulletList = adfNode('bulletList');
|
|
13
13
|
const listItem = adfNode('listItem').define({
|
14
14
|
defining: true,
|
15
15
|
selectable: false,
|
16
|
+
attrs: {
|
17
|
+
localId: {
|
18
|
+
type: 'string',
|
19
|
+
default: null,
|
20
|
+
optional: true
|
21
|
+
}
|
22
|
+
},
|
16
23
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
17
24
|
contentMinItems: 1,
|
18
25
|
content: [$or(paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, unsupportedBlock, extension.use('with_marks')), $zeroPlus($or(paragraph.use('with_no_marks'), bulletList, orderedList, taskList, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, unsupportedBlock, extension.use('with_marks')))]
|
@@ -30,6 +37,11 @@ orderedList.define({
|
|
30
37
|
minimum: 0,
|
31
38
|
default: 1,
|
32
39
|
optional: true
|
40
|
+
},
|
41
|
+
localId: {
|
42
|
+
type: 'string',
|
43
|
+
default: null,
|
44
|
+
optional: true
|
33
45
|
}
|
34
46
|
},
|
35
47
|
content: [$onePlus($or(listItem, listItem.use('with_nested_decision')))]
|
@@ -37,5 +49,12 @@ orderedList.define({
|
|
37
49
|
bulletList.define({
|
38
50
|
selectable: false,
|
39
51
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
40
|
-
content: [$onePlus($or(listItem, listItem.use('with_nested_decision')))]
|
52
|
+
content: [$onePlus($or(listItem, listItem.use('with_nested_decision')))],
|
53
|
+
attrs: {
|
54
|
+
localId: {
|
55
|
+
type: 'string',
|
56
|
+
default: null,
|
57
|
+
optional: true
|
58
|
+
}
|
59
|
+
}
|
41
60
|
});
|
@@ -14,6 +14,11 @@ export const media = adfNode('media').define({
|
|
14
14
|
values: ['link', 'file'],
|
15
15
|
default: 'file'
|
16
16
|
},
|
17
|
+
localId: {
|
18
|
+
type: 'string',
|
19
|
+
default: null,
|
20
|
+
optional: true
|
21
|
+
},
|
17
22
|
id: {
|
18
23
|
minLength: 1,
|
19
24
|
type: 'string',
|
@@ -86,6 +91,11 @@ export const media = adfNode('media').define({
|
|
86
91
|
values: ['external'],
|
87
92
|
default: 'file'
|
88
93
|
},
|
94
|
+
localId: {
|
95
|
+
type: 'string',
|
96
|
+
default: null,
|
97
|
+
optional: true
|
98
|
+
},
|
89
99
|
alt: {
|
90
100
|
type: 'string',
|
91
101
|
default: '',
|
@@ -11,6 +11,11 @@ export const mediaSingle = adfNode('mediaSingle').define({
|
|
11
11
|
marks: [link, unsupportedMark, unsupportedNodeAttribute],
|
12
12
|
attrs: {
|
13
13
|
anyOf: [{
|
14
|
+
localId: {
|
15
|
+
type: 'string',
|
16
|
+
default: null,
|
17
|
+
optional: true
|
18
|
+
},
|
14
19
|
width: {
|
15
20
|
type: 'number',
|
16
21
|
minimum: 0,
|
@@ -30,6 +35,11 @@ export const mediaSingle = adfNode('mediaSingle').define({
|
|
30
35
|
optional: true
|
31
36
|
}
|
32
37
|
}, {
|
38
|
+
localId: {
|
39
|
+
type: 'string',
|
40
|
+
default: null,
|
41
|
+
optional: true
|
42
|
+
},
|
33
43
|
width: {
|
34
44
|
type: 'number',
|
35
45
|
minimum: 0,
|