@atlaskit/adf-schema 52.7.1 → 52.9.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 (80) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/index.js +6 -0
  3. package/dist/cjs/next-schema/full-schema.adf.js +1 -1
  4. package/dist/cjs/next-schema/generated/nodeTypes.js +56 -27
  5. package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -1
  6. package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
  7. package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
  8. package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  9. package/dist/cjs/next-schema/marks/fontSize.js +1 -2
  10. package/dist/cjs/next-schema/nodes/bodiedSyncBlock.js +1 -1
  11. package/dist/cjs/next-schema/nodes/codeBlock.js +65 -0
  12. package/dist/cjs/next-schema/nodes/paragraph.js +3 -14
  13. package/dist/cjs/schema/createPMSpecFactory.js +4 -0
  14. package/dist/cjs/schema/default-schema.js +3 -6
  15. package/dist/cjs/schema/index.js +6 -0
  16. package/dist/cjs/schema/nodes/code-block.js +110 -2
  17. package/dist/cjs/schema/nodes/index.js +6 -0
  18. package/dist/cjs/validator-schema/generated/validatorSpec.js +867 -822
  19. package/dist/es2019/index.js +1 -1
  20. package/dist/es2019/next-schema/full-schema.adf.js +1 -1
  21. package/dist/es2019/next-schema/generated/nodeTypes.js +55 -26
  22. package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -1
  23. package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
  24. package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
  25. package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  26. package/dist/es2019/next-schema/marks/fontSize.js +1 -2
  27. package/dist/es2019/next-schema/nodes/bodiedSyncBlock.js +1 -1
  28. package/dist/es2019/next-schema/nodes/codeBlock.js +65 -0
  29. package/dist/es2019/next-schema/nodes/paragraph.js +3 -14
  30. package/dist/es2019/schema/createPMSpecFactory.js +4 -0
  31. package/dist/es2019/schema/default-schema.js +4 -7
  32. package/dist/es2019/schema/index.js +1 -1
  33. package/dist/es2019/schema/nodes/code-block.js +107 -3
  34. package/dist/es2019/schema/nodes/index.js +1 -1
  35. package/dist/es2019/validator-schema/generated/validatorSpec.js +866 -821
  36. package/dist/esm/index.js +1 -1
  37. package/dist/esm/next-schema/full-schema.adf.js +1 -1
  38. package/dist/esm/next-schema/generated/nodeTypes.js +55 -26
  39. package/dist/esm/next-schema/groups/blockContentGroup.js +1 -1
  40. package/dist/esm/next-schema/groups/blockGroup.js +1 -1
  41. package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
  42. package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  43. package/dist/esm/next-schema/marks/fontSize.js +1 -2
  44. package/dist/esm/next-schema/nodes/bodiedSyncBlock.js +1 -1
  45. package/dist/esm/next-schema/nodes/codeBlock.js +65 -0
  46. package/dist/esm/next-schema/nodes/paragraph.js +3 -14
  47. package/dist/esm/schema/createPMSpecFactory.js +4 -0
  48. package/dist/esm/schema/default-schema.js +4 -7
  49. package/dist/esm/schema/index.js +1 -1
  50. package/dist/esm/schema/nodes/code-block.js +109 -2
  51. package/dist/esm/schema/nodes/index.js +1 -1
  52. package/dist/esm/validator-schema/generated/validatorSpec.js +866 -821
  53. package/dist/json-schema/v1/full.json +73 -2
  54. package/dist/json-schema/v1/stage-0.json +107 -67
  55. package/dist/types/index.d.ts +1 -1
  56. package/dist/types/next-schema/generated/markTypes.d.ts +22 -21
  57. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +3 -3
  58. package/dist/types/next-schema/generated/nodeTypes.d.ts +128 -118
  59. package/dist/types/next-schema/nodes/codeBlock.d.ts +3 -1
  60. package/dist/types/next-schema/nodes/paragraph.d.ts +1 -14
  61. package/dist/types/schema/createPMSpecFactory.d.ts +4 -0
  62. package/dist/types/schema/index.d.ts +1 -1
  63. package/dist/types/schema/nodes/code-block.d.ts +10 -0
  64. package/dist/types/schema/nodes/index.d.ts +1 -1
  65. package/dist/types/validator-schema/generated/validatorSpec.d.ts +697 -652
  66. package/dist/types-ts4.5/index.d.ts +1 -1
  67. package/dist/types-ts4.5/next-schema/generated/markTypes.d.ts +22 -21
  68. package/dist/types-ts4.5/next-schema/generated/nodeGroupTypes.d.ts +3 -3
  69. package/dist/types-ts4.5/next-schema/generated/nodeTypes.d.ts +128 -118
  70. package/dist/types-ts4.5/next-schema/nodes/codeBlock.d.ts +3 -1
  71. package/dist/types-ts4.5/next-schema/nodes/paragraph.d.ts +1 -14
  72. package/dist/types-ts4.5/schema/createPMSpecFactory.d.ts +4 -0
  73. package/dist/types-ts4.5/schema/index.d.ts +1 -1
  74. package/dist/types-ts4.5/schema/nodes/code-block.d.ts +10 -0
  75. package/dist/types-ts4.5/schema/nodes/index.d.ts +1 -1
  76. package/dist/types-ts4.5/validator-schema/generated/validatorSpec.d.ts +697 -652
  77. package/json-schema/v1/full.json +73 -2
  78. package/json-schema/v1/stage-0.json +107 -67
  79. package/package.json +2 -2
  80. package/schema-generators/validator-full-schema.ts +59 -1
@@ -1,9 +1,5 @@
1
1
  export var alignment = {
2
2
  props: {
3
- type: {
4
- type: 'enum',
5
- values: ['alignment']
6
- },
7
3
  attrs: {
8
4
  props: {
9
5
  align: {
@@ -11,34 +7,34 @@ export var alignment = {
11
7
  values: ['center', 'end']
12
8
  }
13
9
  }
10
+ },
11
+ type: {
12
+ type: 'enum',
13
+ values: ['alignment']
14
14
  }
15
15
  }
16
16
  };
17
17
  export var annotation = {
18
18
  props: {
19
- type: {
20
- type: 'enum',
21
- values: ['annotation']
22
- },
23
19
  attrs: {
24
20
  props: {
25
- id: {
26
- type: 'string'
27
- },
28
21
  annotationType: {
29
22
  type: 'enum',
30
23
  values: ['inlineComment']
24
+ },
25
+ id: {
26
+ type: 'string'
31
27
  }
32
28
  }
29
+ },
30
+ type: {
31
+ type: 'enum',
32
+ values: ['annotation']
33
33
  }
34
34
  }
35
35
  };
36
36
  export var backgroundColor = {
37
37
  props: {
38
- type: {
39
- type: 'enum',
40
- values: ['backgroundColor']
41
- },
42
38
  attrs: {
43
39
  props: {
44
40
  color: {
@@ -46,27 +42,18 @@ export var backgroundColor = {
46
42
  type: 'string'
47
43
  }
48
44
  }
45
+ },
46
+ type: {
47
+ type: 'enum',
48
+ values: ['backgroundColor']
49
49
  }
50
50
  }
51
51
  };
52
- export var block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_font_size_and_alignment', 'paragraph_with_font_size_and_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
52
+ export var block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'codeBlock_with_extended_attributes', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
53
53
  export var blockCard = {
54
54
  props: {
55
- type: {
56
- type: 'enum',
57
- values: ['blockCard']
58
- },
59
55
  attrs: [{
60
56
  props: {
61
- localId: {
62
- type: 'string',
63
- optional: true
64
- },
65
- url: {
66
- type: 'string',
67
- optional: true,
68
- validatorFn: 'safeUrl'
69
- },
70
57
  datasource: {
71
58
  props: {
72
59
  id: {
@@ -92,25 +79,34 @@ export var blockCard = {
92
79
  }
93
80
  }
94
81
  },
95
- width: {
96
- type: 'number',
97
- optional: true
98
- },
99
82
  layout: {
83
+ optional: true,
100
84
  type: 'enum',
101
- values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start'],
102
- optional: true
85
+ values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
86
+ },
87
+ localId: {
88
+ optional: true,
89
+ type: 'string'
90
+ },
91
+ url: {
92
+ optional: true,
93
+ type: 'string',
94
+ validatorFn: 'safeUrl'
95
+ },
96
+ width: {
97
+ optional: true,
98
+ type: 'number'
103
99
  }
104
100
  }
105
101
  }, {
106
102
  props: {
103
+ localId: {
104
+ optional: true,
105
+ type: 'string'
106
+ },
107
107
  url: {
108
108
  type: 'string',
109
109
  validatorFn: 'safeUrl'
110
- },
111
- localId: {
112
- type: 'string',
113
- optional: true
114
110
  }
115
111
  }
116
112
  }, {
@@ -119,44 +115,44 @@ export var blockCard = {
119
115
  type: 'object'
120
116
  },
121
117
  localId: {
122
- type: 'string',
123
- optional: true
118
+ optional: true,
119
+ type: 'string'
124
120
  }
125
121
  }
126
- }]
122
+ }],
123
+ type: {
124
+ type: 'enum',
125
+ values: ['blockCard']
126
+ }
127
127
  },
128
128
  required: ['attrs']
129
129
  };
130
130
  export var blockquote = {
131
131
  props: {
132
- type: {
133
- type: 'enum',
134
- values: ['blockquote']
135
- },
136
132
  attrs: {
133
+ optional: true,
137
134
  props: {
138
135
  localId: {
139
- type: 'string',
140
- optional: true
136
+ optional: true,
137
+ type: 'string'
141
138
  }
142
- },
143
- optional: true
139
+ }
144
140
  },
145
141
  content: {
146
- type: 'array',
142
+ allowUnsupportedBlock: true,
147
143
  items: [['paragraph_with_no_marks', 'orderedList', 'bulletList', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'extension_with_marks']],
148
144
  minItems: 1,
149
- allowUnsupportedBlock: true
145
+ type: 'array'
146
+ },
147
+ type: {
148
+ type: 'enum',
149
+ values: ['blockquote']
150
150
  }
151
151
  }
152
152
  };
153
153
  export var blockRootOnly = ['multiBodiedExtension'];
154
154
  export var blockTaskItem = {
155
155
  props: {
156
- type: {
157
- type: 'enum',
158
- values: ['blockTaskItem']
159
- },
160
156
  attrs: {
161
157
  props: {
162
158
  localId: {
@@ -169,19 +165,19 @@ export var blockTaskItem = {
169
165
  }
170
166
  },
171
167
  content: {
172
- type: 'array',
173
168
  isTupleLike: true,
174
169
  items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'extension_with_marks'], ['paragraph_with_no_marks', 'paragraph_with_font_size', 'extension_with_marks']],
175
- minItems: 1
170
+ minItems: 1,
171
+ type: 'array'
172
+ },
173
+ type: {
174
+ type: 'enum',
175
+ values: ['blockTaskItem']
176
176
  }
177
177
  }
178
178
  };
179
179
  export var bodiedExtension = {
180
180
  props: {
181
- type: {
182
- type: 'enum',
183
- values: ['bodiedExtension']
184
- },
185
181
  attrs: {
186
182
  props: {
187
183
  extensionKey: {
@@ -192,104 +188,104 @@ export var bodiedExtension = {
192
188
  minLength: 1,
193
189
  type: 'string'
194
190
  },
195
- parameters: {
196
- type: 'object',
197
- optional: true
198
- },
199
- text: {
200
- type: 'string',
201
- optional: true
202
- },
203
191
  layout: {
192
+ optional: true,
204
193
  type: 'enum',
205
- values: ['wide', 'full-width', 'default'],
206
- optional: true
194
+ values: ['wide', 'full-width', 'default']
207
195
  },
208
196
  localId: {
209
197
  minLength: 1,
210
- type: 'string',
211
- optional: true
198
+ optional: true,
199
+ type: 'string'
200
+ },
201
+ parameters: {
202
+ optional: true,
203
+ type: 'object'
204
+ },
205
+ text: {
206
+ optional: true,
207
+ type: 'string'
212
208
  }
213
209
  }
214
210
  },
215
211
  content: {
216
- type: 'array',
212
+ allowUnsupportedBlock: true,
217
213
  items: ['non_nestable_block_content'],
218
214
  minItems: 1,
219
- allowUnsupportedBlock: true
215
+ type: 'array'
220
216
  },
221
217
  marks: {
222
- type: 'array',
223
218
  items: [],
224
- optional: true
219
+ optional: true,
220
+ type: 'array'
221
+ },
222
+ type: {
223
+ type: 'enum',
224
+ values: ['bodiedExtension']
225
225
  }
226
226
  }
227
227
  };
228
228
  export var bodiedExtension_with_marks = ['bodiedExtension', {
229
229
  props: {
230
230
  marks: {
231
- type: 'array',
231
+ items: [['dataConsumer', 'fragment']],
232
232
  optional: true,
233
- items: [['dataConsumer', 'fragment']]
233
+ type: 'array'
234
234
  }
235
235
  }
236
236
  }];
237
237
  export var bodiedSyncBlock = {
238
238
  props: {
239
- type: {
240
- type: 'enum',
241
- values: ['bodiedSyncBlock']
242
- },
243
239
  attrs: {
244
240
  props: {
245
- resourceId: {
241
+ localId: {
246
242
  type: 'string'
247
243
  },
248
- localId: {
244
+ resourceId: {
249
245
  type: 'string'
250
246
  }
251
247
  }
252
248
  },
253
249
  content: {
254
- type: 'array',
255
- items: [['paragraph', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_font_size_and_alignment', 'paragraph_with_font_size_and_indentation', 'paragraph_with_no_marks', 'blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'layoutSection_with_single_column', 'layoutSection_full', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel', 'rule', 'table', 'taskList']],
250
+ allowUnsupportedBlock: true,
251
+ items: [['paragraph', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_no_marks', 'blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'layoutSection_with_single_column', 'layoutSection_full', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel', 'rule', 'table', 'taskList']],
256
252
  minItems: 1,
257
- allowUnsupportedBlock: true
253
+ type: 'array'
258
254
  },
259
255
  marks: {
260
- type: 'array',
256
+ items: ['breakout'],
261
257
  optional: true,
262
- items: ['breakout']
258
+ type: 'array'
259
+ },
260
+ type: {
261
+ type: 'enum',
262
+ values: ['bodiedSyncBlock']
263
263
  }
264
264
  }
265
265
  };
266
266
  export var border = {
267
267
  props: {
268
- type: {
269
- type: 'enum',
270
- values: ['border']
271
- },
272
268
  attrs: {
273
269
  props: {
274
- size: {
275
- type: 'number',
276
- minimum: 1,
277
- maximum: 3
278
- },
279
270
  color: {
280
271
  pattern: '^#[0-9a-fA-F]{8}$|^#[0-9a-fA-F]{6}$',
281
272
  type: 'string'
273
+ },
274
+ size: {
275
+ maximum: 3,
276
+ minimum: 1,
277
+ type: 'number'
282
278
  }
283
279
  }
280
+ },
281
+ type: {
282
+ type: 'enum',
283
+ values: ['border']
284
284
  }
285
285
  }
286
286
  };
287
287
  export var breakout = {
288
288
  props: {
289
- type: {
290
- type: 'enum',
291
- values: ['breakout']
292
- },
293
289
  attrs: {
294
290
  props: {
295
291
  mode: {
@@ -297,55 +293,59 @@ export var breakout = {
297
293
  values: ['wide', 'full-width']
298
294
  },
299
295
  width: {
300
- type: 'number',
301
- optional: true
296
+ optional: true,
297
+ type: 'number'
302
298
  }
303
299
  }
300
+ },
301
+ type: {
302
+ type: 'enum',
303
+ values: ['breakout']
304
304
  }
305
305
  }
306
306
  };
307
307
  export var bulletList = {
308
308
  props: {
309
- type: {
310
- type: 'enum',
311
- values: ['bulletList']
312
- },
313
309
  attrs: {
310
+ optional: true,
314
311
  props: {
315
312
  localId: {
316
- type: 'string',
317
- optional: true
313
+ optional: true,
314
+ type: 'string'
318
315
  }
319
- },
320
- optional: true
316
+ }
321
317
  },
322
318
  content: {
323
- type: 'array',
324
319
  items: ['listItem'],
325
- minItems: 1
320
+ minItems: 1,
321
+ type: 'array'
322
+ },
323
+ type: {
324
+ type: 'enum',
325
+ values: ['bulletList']
326
326
  }
327
327
  }
328
328
  };
329
329
  export var caption = {
330
330
  props: {
331
- type: {
332
- type: 'enum',
333
- values: ['caption']
334
- },
335
331
  attrs: {
332
+ optional: true,
336
333
  props: {
337
334
  localId: {
338
- type: 'string',
339
- optional: true
335
+ optional: true,
336
+ type: 'string'
340
337
  }
341
- },
342
- optional: true
338
+ }
343
339
  },
344
340
  content: {
345
- type: 'array',
341
+ allowUnsupportedInline: true,
346
342
  items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', 'text_formatted', 'text_code_inline']],
347
343
  optional: true,
348
- allowUnsupportedInline: true
344
+ type: 'array'
345
+ },
346
+ type: {
347
+ type: 'enum',
348
+ values: ['caption']
349
349
  }
350
350
  }
351
351
  };
@@ -359,109 +359,168 @@ export var code = {
359
359
  };
360
360
  export var codeBlock = {
361
361
  props: {
362
- type: {
363
- type: 'enum',
364
- values: ['codeBlock']
365
- },
366
362
  attrs: {
363
+ optional: true,
367
364
  props: {
368
365
  language: {
369
- type: 'string',
370
- optional: true
371
- },
372
- uniqueId: {
373
- type: 'string',
374
- optional: true
366
+ optional: true,
367
+ type: 'string'
375
368
  },
376
369
  localId: {
377
- type: 'string',
378
- optional: true
370
+ optional: true,
371
+ type: 'string'
372
+ },
373
+ uniqueId: {
374
+ optional: true,
375
+ type: 'string'
379
376
  }
380
- },
381
- optional: true
377
+ }
382
378
  },
383
379
  content: {
384
- type: 'array',
380
+ allowUnsupportedInline: true,
385
381
  items: ['text_with_no_marks'],
386
382
  optional: true,
387
- allowUnsupportedInline: true
383
+ type: 'array'
384
+ },
385
+ type: {
386
+ type: 'enum',
387
+ values: ['codeBlock']
388
388
  }
389
389
  }
390
390
  };
391
391
  export var codeBlock_root_only = ['codeBlock', {
392
392
  props: {
393
393
  marks: {
394
- type: 'array',
394
+ items: ['breakout'],
395
395
  optional: true,
396
- items: ['breakout']
396
+ type: 'array'
397
397
  }
398
398
  }
399
399
  }];
400
- export var confluenceInlineComment = {
400
+ export var codeBlock_root_only_with_extended_attributes = ['codeBlock', {
401
401
  props: {
402
- type: {
403
- type: 'enum',
404
- values: ['confluenceInlineComment']
405
- },
406
402
  attrs: {
403
+ optional: true,
407
404
  props: {
408
- reference: {
405
+ hideLineNumbers: {
406
+ optional: true,
407
+ type: 'boolean'
408
+ },
409
+ language: {
410
+ optional: true,
411
+ type: 'string'
412
+ },
413
+ localId: {
414
+ optional: true,
415
+ type: 'string'
416
+ },
417
+ uniqueId: {
418
+ optional: true,
409
419
  type: 'string'
420
+ },
421
+ wrap: {
422
+ optional: true,
423
+ type: 'boolean'
410
424
  }
411
425
  }
412
- }
413
- }
414
- };
415
- export var dataConsumer = {
416
- props: {
417
- type: {
418
- type: 'enum',
419
- values: ['dataConsumer']
420
426
  },
421
- attrs: {
422
- props: {
423
- sources: {
424
- type: 'array',
425
- items: [{
426
- type: 'string'
427
- }],
428
- minItems: 1
429
- }
430
- }
427
+ marks: {
428
+ items: ['breakout'],
429
+ optional: true,
430
+ type: 'array'
431
431
  }
432
432
  }
433
- };
434
- export var date = {
433
+ }];
434
+ export var codeBlock_with_extended_attributes = ['codeBlock', {
435
435
  props: {
436
- type: {
437
- type: 'enum',
438
- values: ['date']
439
- },
440
436
  attrs: {
437
+ optional: true,
441
438
  props: {
442
- timestamp: {
443
- minLength: 1,
444
- type: 'string'
439
+ hideLineNumbers: {
440
+ optional: true,
441
+ type: 'boolean'
442
+ },
443
+ language: {
444
+ optional: true,
445
+ type: 'string'
445
446
  },
446
447
  localId: {
447
- type: 'string',
448
- optional: true
448
+ optional: true,
449
+ type: 'string'
450
+ },
451
+ uniqueId: {
452
+ optional: true,
453
+ type: 'string'
454
+ },
455
+ wrap: {
456
+ optional: true,
457
+ type: 'boolean'
458
+ }
459
+ }
460
+ }
461
+ }
462
+ }];
463
+ export var confluenceInlineComment = {
464
+ props: {
465
+ attrs: {
466
+ props: {
467
+ reference: {
468
+ type: 'string'
449
469
  }
450
470
  }
451
471
  },
452
- marks: {
453
- type: 'array',
454
- optional: true,
455
- items: ['annotation']
472
+ type: {
473
+ type: 'enum',
474
+ values: ['confluenceInlineComment']
456
475
  }
457
476
  }
458
477
  };
459
- export var decisionItem = {
478
+ export var dataConsumer = {
460
479
  props: {
480
+ attrs: {
481
+ props: {
482
+ sources: {
483
+ items: [{
484
+ type: 'string'
485
+ }],
486
+ minItems: 1,
487
+ type: 'array'
488
+ }
489
+ }
490
+ },
461
491
  type: {
462
492
  type: 'enum',
463
- values: ['decisionItem']
493
+ values: ['dataConsumer']
494
+ }
495
+ }
496
+ };
497
+ export var date = {
498
+ props: {
499
+ attrs: {
500
+ props: {
501
+ localId: {
502
+ optional: true,
503
+ type: 'string'
504
+ },
505
+ timestamp: {
506
+ minLength: 1,
507
+ type: 'string'
508
+ }
509
+ }
510
+ },
511
+ marks: {
512
+ items: ['annotation'],
513
+ optional: true,
514
+ type: 'array'
464
515
  },
516
+ type: {
517
+ type: 'enum',
518
+ values: ['date']
519
+ }
520
+ }
521
+ };
522
+ export var decisionItem = {
523
+ props: {
465
524
  attrs: {
466
525
  props: {
467
526
  localId: {
@@ -473,19 +532,19 @@ export var decisionItem = {
473
532
  }
474
533
  },
475
534
  content: {
476
- type: 'array',
535
+ allowUnsupportedInline: true,
477
536
  items: ['inline_content'],
478
537
  optional: true,
479
- allowUnsupportedInline: true
538
+ type: 'array'
539
+ },
540
+ type: {
541
+ type: 'enum',
542
+ values: ['decisionItem']
480
543
  }
481
544
  }
482
545
  };
483
546
  export var decisionList = {
484
547
  props: {
485
- type: {
486
- type: 'enum',
487
- values: ['decisionList']
488
- },
489
548
  attrs: {
490
549
  props: {
491
550
  localId: {
@@ -494,15 +553,24 @@ export var decisionList = {
494
553
  }
495
554
  },
496
555
  content: {
497
- type: 'array',
556
+ allowUnsupportedBlock: true,
498
557
  items: ['decisionItem'],
499
558
  minItems: 1,
500
- allowUnsupportedBlock: true
559
+ type: 'array'
560
+ },
561
+ type: {
562
+ type: 'enum',
563
+ values: ['decisionList']
501
564
  }
502
565
  }
503
566
  };
504
567
  export var doc = {
505
568
  props: {
569
+ content: {
570
+ allowUnsupportedBlock: true,
571
+ items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'codeBlock_with_extended_attributes', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'codeBlock_root_only_with_extended_attributes', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only', 'syncBlock', 'bodiedSyncBlock']],
572
+ type: 'array'
573
+ },
506
574
  type: {
507
575
  type: 'enum',
508
576
  values: ['doc']
@@ -510,11 +578,6 @@ export var doc = {
510
578
  version: {
511
579
  type: 'enum',
512
580
  values: [1]
513
- },
514
- content: {
515
- type: 'array',
516
- items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_font_size_and_alignment', 'paragraph_with_font_size_and_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only', 'syncBlock', 'bodiedSyncBlock']],
517
- allowUnsupportedBlock: true
518
581
  }
519
582
  }
520
583
  };
@@ -528,116 +591,112 @@ export var em = {
528
591
  };
529
592
  export var embedCard = {
530
593
  props: {
531
- type: {
532
- type: 'enum',
533
- values: ['embedCard']
534
- },
535
594
  attrs: {
536
595
  props: {
537
- url: {
538
- type: 'string',
539
- validatorFn: 'safeUrl'
540
- },
541
596
  layout: {
542
597
  type: 'enum',
543
598
  values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
544
599
  },
545
- width: {
546
- type: 'number',
547
- maximum: 100,
548
- minimum: 0,
549
- optional: true
600
+ localId: {
601
+ optional: true,
602
+ type: 'string'
550
603
  },
551
604
  originalHeight: {
552
- type: 'number',
553
- optional: true
605
+ optional: true,
606
+ type: 'number'
554
607
  },
555
608
  originalWidth: {
556
- type: 'number',
557
- optional: true
609
+ optional: true,
610
+ type: 'number'
558
611
  },
559
- localId: {
612
+ url: {
560
613
  type: 'string',
561
- optional: true
614
+ validatorFn: 'safeUrl'
615
+ },
616
+ width: {
617
+ maximum: 100,
618
+ minimum: 0,
619
+ optional: true,
620
+ type: 'number'
562
621
  }
563
622
  }
623
+ },
624
+ type: {
625
+ type: 'enum',
626
+ values: ['embedCard']
564
627
  }
565
628
  }
566
629
  };
567
630
  export var emoji = {
568
631
  props: {
569
- type: {
570
- type: 'enum',
571
- values: ['emoji']
572
- },
573
632
  attrs: {
574
633
  props: {
575
- shortName: {
634
+ id: {
635
+ optional: true,
576
636
  type: 'string'
577
637
  },
578
- id: {
579
- type: 'string',
580
- optional: true
638
+ localId: {
639
+ optional: true,
640
+ type: 'string'
581
641
  },
582
- text: {
583
- type: 'string',
584
- optional: true
642
+ shortName: {
643
+ type: 'string'
585
644
  },
586
- localId: {
587
- type: 'string',
588
- optional: true
645
+ text: {
646
+ optional: true,
647
+ type: 'string'
589
648
  }
590
649
  }
591
650
  },
592
651
  marks: {
593
- type: 'array',
652
+ items: ['annotation'],
594
653
  optional: true,
595
- items: ['annotation']
654
+ type: 'array'
655
+ },
656
+ type: {
657
+ type: 'enum',
658
+ values: ['emoji']
596
659
  }
597
660
  }
598
661
  };
599
662
  export var expand = {
600
663
  props: {
601
- type: {
602
- type: 'enum',
603
- values: ['expand']
604
- },
605
664
  attrs: {
665
+ optional: true,
606
666
  props: {
607
- title: {
608
- type: 'string',
609
- optional: true
610
- },
611
667
  localId: {
612
- type: 'string',
613
- optional: true
668
+ optional: true,
669
+ type: 'string'
670
+ },
671
+ title: {
672
+ optional: true,
673
+ type: 'string'
614
674
  }
615
- },
616
- optional: true
675
+ }
617
676
  },
618
677
  content: {
619
- type: 'array',
620
- items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
678
+ allowUnsupportedBlock: true,
679
+ items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'codeBlock_with_extended_attributes', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
621
680
  minItems: 1,
622
- allowUnsupportedBlock: true
681
+ type: 'array'
682
+ },
683
+ type: {
684
+ type: 'enum',
685
+ values: ['expand']
623
686
  }
624
687
  }
625
688
  };
626
689
  export var expand_root_only = ['expand', {
627
690
  props: {
628
691
  marks: {
629
- type: 'array',
692
+ items: ['breakout'],
630
693
  optional: true,
631
- items: ['breakout']
694
+ type: 'array'
632
695
  }
633
696
  }
634
697
  }];
635
698
  export var extension = {
636
699
  props: {
637
- type: {
638
- type: 'enum',
639
- values: ['extension']
640
- },
641
700
  attrs: {
642
701
  props: {
643
702
  extensionKey: {
@@ -648,66 +707,66 @@ export var extension = {
648
707
  minLength: 1,
649
708
  type: 'string'
650
709
  },
651
- parameters: {
652
- type: 'object',
653
- optional: true
654
- },
655
- text: {
656
- type: 'string',
657
- optional: true
658
- },
659
710
  layout: {
711
+ optional: true,
660
712
  type: 'enum',
661
- values: ['wide', 'full-width', 'default'],
662
- optional: true
713
+ values: ['wide', 'full-width', 'default']
663
714
  },
664
715
  localId: {
665
716
  minLength: 1,
666
- type: 'string',
667
- optional: true
717
+ optional: true,
718
+ type: 'string'
719
+ },
720
+ parameters: {
721
+ optional: true,
722
+ type: 'object'
723
+ },
724
+ text: {
725
+ optional: true,
726
+ type: 'string'
668
727
  }
669
728
  }
670
729
  },
671
730
  marks: {
672
- type: 'array',
673
731
  items: [],
674
- optional: true
732
+ optional: true,
733
+ type: 'array'
734
+ },
735
+ type: {
736
+ type: 'enum',
737
+ values: ['extension']
675
738
  }
676
739
  }
677
740
  };
678
741
  export var extension_with_marks = ['extension', {
679
742
  props: {
680
743
  marks: {
681
- type: 'array',
744
+ items: [['dataConsumer', 'fragment']],
682
745
  optional: true,
683
- items: [['dataConsumer', 'fragment']]
746
+ type: 'array'
684
747
  }
685
748
  }
686
749
  }];
687
750
  export var extensionFrame = {
688
751
  props: {
689
- type: {
690
- type: 'enum',
691
- values: ['extensionFrame']
692
- },
693
752
  content: {
694
- type: 'array',
695
753
  items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_full', 'mediaSingle_caption', 'decisionList', 'taskList', 'table', 'extension_with_marks', 'bodiedExtension_with_marks', 'blockCard', 'embedCard']],
696
- minItems: 1
754
+ minItems: 1,
755
+ type: 'array'
697
756
  },
698
757
  marks: {
699
- type: 'array',
758
+ items: [['dataConsumer', 'fragment']],
700
759
  optional: true,
701
- items: [['dataConsumer', 'fragment']]
760
+ type: 'array'
761
+ },
762
+ type: {
763
+ type: 'enum',
764
+ values: ['extensionFrame']
702
765
  }
703
766
  }
704
767
  };
705
768
  export var fontSize = {
706
769
  props: {
707
- type: {
708
- type: 'enum',
709
- values: ['fontSize']
710
- },
711
770
  attrs: {
712
771
  props: {
713
772
  fontSize: {
@@ -715,15 +774,15 @@ export var fontSize = {
715
774
  values: ['small']
716
775
  }
717
776
  }
777
+ },
778
+ type: {
779
+ type: 'enum',
780
+ values: ['fontSize']
718
781
  }
719
782
  }
720
783
  };
721
784
  export var fragment = {
722
785
  props: {
723
- type: {
724
- type: 'enum',
725
- values: ['fragment']
726
- },
727
786
  attrs: {
728
787
  props: {
729
788
  localId: {
@@ -731,128 +790,128 @@ export var fragment = {
731
790
  type: 'string'
732
791
  },
733
792
  name: {
734
- type: 'string',
735
- optional: true
793
+ optional: true,
794
+ type: 'string'
736
795
  }
737
796
  }
797
+ },
798
+ type: {
799
+ type: 'enum',
800
+ values: ['fragment']
738
801
  }
739
802
  }
740
803
  };
741
804
  export var hardBreak = {
742
805
  props: {
743
- type: {
744
- type: 'enum',
745
- values: ['hardBreak']
746
- },
747
806
  attrs: {
807
+ optional: true,
748
808
  props: {
809
+ localId: {
810
+ optional: true,
811
+ type: 'string'
812
+ },
749
813
  text: {
814
+ optional: true,
750
815
  type: 'enum',
751
- values: ['\n'],
752
- optional: true
753
- },
754
- localId: {
755
- type: 'string',
756
- optional: true
816
+ values: ['\n']
757
817
  }
758
- },
759
- optional: true
818
+ }
819
+ },
820
+ type: {
821
+ type: 'enum',
822
+ values: ['hardBreak']
760
823
  }
761
824
  }
762
825
  };
763
826
  export var heading = {
764
827
  props: {
765
- type: {
766
- type: 'enum',
767
- values: ['heading']
768
- },
769
828
  attrs: {
770
829
  props: {
771
830
  level: {
772
- type: 'number',
831
+ maximum: 6,
773
832
  minimum: 1,
774
- maximum: 6
833
+ type: 'number'
775
834
  },
776
835
  localId: {
777
- type: 'string',
778
- optional: true
836
+ optional: true,
837
+ type: 'string'
779
838
  }
780
839
  }
781
840
  },
782
841
  content: {
783
- type: 'array',
842
+ allowUnsupportedInline: true,
784
843
  items: ['inline_content'],
785
844
  optional: true,
786
- allowUnsupportedInline: true
845
+ type: 'array'
787
846
  },
788
847
  marks: {
789
- type: 'array',
790
848
  items: [],
791
- optional: true
849
+ optional: true,
850
+ type: 'array'
851
+ },
852
+ type: {
853
+ type: 'enum',
854
+ values: ['heading']
792
855
  }
793
856
  }
794
857
  };
795
858
  export var heading_with_alignment = ['heading', {
796
859
  props: {
797
860
  marks: {
798
- type: 'array',
861
+ items: ['alignment'],
799
862
  optional: true,
800
- items: ['alignment']
863
+ type: 'array'
801
864
  }
802
865
  }
803
866
  }];
804
867
  export var heading_with_indentation = ['heading', {
805
868
  props: {
806
869
  marks: {
807
- type: 'array',
870
+ items: ['indentation'],
808
871
  optional: true,
809
- items: ['indentation']
872
+ type: 'array'
810
873
  }
811
874
  }
812
875
  }];
813
876
  export var heading_with_no_marks = ['heading', {
814
877
  props: {
815
878
  marks: {
816
- type: 'array',
817
- maxItems: 0,
818
879
  items: [],
819
- optional: true
880
+ maxItems: 0,
881
+ optional: true,
882
+ type: 'array'
820
883
  }
821
884
  }
822
885
  }];
823
886
  export var indentation = {
824
887
  props: {
825
- type: {
826
- type: 'enum',
827
- values: ['indentation']
828
- },
829
888
  attrs: {
830
889
  props: {
831
890
  level: {
832
- type: 'number',
891
+ maximum: 6,
833
892
  minimum: 1,
834
- maximum: 6
893
+ type: 'number'
835
894
  }
836
895
  }
896
+ },
897
+ type: {
898
+ type: 'enum',
899
+ values: ['indentation']
837
900
  }
838
901
  }
839
902
  };
840
903
  export var inline_content = ['text_formatted', 'text_code_inline', 'date', 'emoji', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status', 'inlineExtension_with_marks', 'mediaInline'];
841
904
  export var inlineCard = {
842
905
  props: {
843
- type: {
844
- type: 'enum',
845
- values: ['inlineCard']
846
- },
847
906
  attrs: [{
848
907
  props: {
908
+ localId: {
909
+ optional: true,
910
+ type: 'string'
911
+ },
849
912
  url: {
850
913
  type: 'string',
851
914
  validatorFn: 'safeUrl'
852
- },
853
- localId: {
854
- type: 'string',
855
- optional: true
856
915
  }
857
916
  }
858
917
  }, {
@@ -861,25 +920,25 @@ export var inlineCard = {
861
920
  type: 'object'
862
921
  },
863
922
  localId: {
864
- type: 'string',
865
- optional: true
923
+ optional: true,
924
+ type: 'string'
866
925
  }
867
926
  }
868
927
  }],
869
928
  marks: {
870
- type: 'array',
929
+ items: ['annotation'],
871
930
  optional: true,
872
- items: ['annotation']
931
+ type: 'array'
932
+ },
933
+ type: {
934
+ type: 'enum',
935
+ values: ['inlineCard']
873
936
  }
874
937
  },
875
938
  required: ['attrs']
876
939
  };
877
940
  export var inlineExtension = {
878
941
  props: {
879
- type: {
880
- type: 'enum',
881
- values: ['inlineExtension']
882
- },
883
942
  attrs: {
884
943
  props: {
885
944
  extensionKey: {
@@ -890,772 +949,758 @@ export var inlineExtension = {
890
949
  minLength: 1,
891
950
  type: 'string'
892
951
  },
952
+ localId: {
953
+ minLength: 1,
954
+ optional: true,
955
+ type: 'string'
956
+ },
893
957
  parameters: {
894
- type: 'object',
895
- optional: true
958
+ optional: true,
959
+ type: 'object'
896
960
  },
897
961
  text: {
898
- type: 'string',
899
- optional: true
900
- },
901
- localId: {
902
- minLength: 1,
903
- type: 'string',
904
- optional: true
962
+ optional: true,
963
+ type: 'string'
905
964
  }
906
965
  }
907
966
  },
908
967
  marks: {
909
- type: 'array',
910
968
  items: [],
911
- optional: true
969
+ optional: true,
970
+ type: 'array'
971
+ },
972
+ type: {
973
+ type: 'enum',
974
+ values: ['inlineExtension']
912
975
  }
913
976
  }
914
977
  };
915
978
  export var inlineExtension_with_marks = ['inlineExtension', {
916
979
  props: {
917
980
  marks: {
918
- type: 'array',
981
+ items: [['dataConsumer', 'fragment']],
919
982
  optional: true,
920
- items: [['dataConsumer', 'fragment']]
983
+ type: 'array'
921
984
  }
922
985
  }
923
986
  }];
924
987
  export var layoutColumn = {
925
988
  props: {
926
- type: {
927
- type: 'enum',
928
- values: ['layoutColumn']
929
- },
930
989
  attrs: {
931
990
  props: {
991
+ localId: {
992
+ optional: true,
993
+ type: 'string'
994
+ },
932
995
  width: {
933
- type: 'number',
996
+ maximum: 100,
934
997
  minimum: 0,
935
- maximum: 100
936
- },
937
- localId: {
938
- type: 'string',
939
- optional: true
998
+ type: 'number'
940
999
  }
941
1000
  }
942
1001
  },
943
1002
  content: {
944
- type: 'array',
1003
+ allowUnsupportedBlock: true,
945
1004
  items: ['block_content'],
946
1005
  minItems: 1,
947
- allowUnsupportedBlock: true
1006
+ type: 'array'
1007
+ },
1008
+ type: {
1009
+ type: 'enum',
1010
+ values: ['layoutColumn']
948
1011
  }
949
1012
  }
950
1013
  };
951
1014
  export var layoutSection = {
952
1015
  props: {
953
- type: {
954
- type: 'enum',
955
- values: ['layoutSection']
956
- },
957
1016
  attrs: {
1017
+ optional: true,
958
1018
  props: {
959
1019
  localId: {
960
- type: 'string',
961
- optional: true
1020
+ optional: true,
1021
+ type: 'string'
962
1022
  }
963
- },
964
- optional: true
1023
+ }
965
1024
  },
966
1025
  content: {
967
- type: 'array',
1026
+ allowUnsupportedBlock: true,
968
1027
  items: ['layoutColumn'],
969
- minItems: 1,
970
1028
  maxItems: 3,
971
- allowUnsupportedBlock: true
1029
+ minItems: 1,
1030
+ type: 'array'
972
1031
  },
973
1032
  marks: {
974
- type: 'array',
1033
+ items: ['breakout'],
975
1034
  optional: true,
976
- items: ['breakout']
1035
+ type: 'array'
1036
+ },
1037
+ type: {
1038
+ type: 'enum',
1039
+ values: ['layoutSection']
977
1040
  }
978
1041
  }
979
1042
  };
980
1043
  export var layoutSection_full = ['layoutSection', {
981
1044
  props: {
982
1045
  content: {
983
- type: 'array',
1046
+ allowUnsupportedBlock: true,
984
1047
  items: ['layoutColumn'],
985
- minItems: 2,
986
1048
  maxItems: 3,
987
- allowUnsupportedBlock: true
1049
+ minItems: 2,
1050
+ type: 'array'
988
1051
  },
989
1052
  marks: {
990
- type: 'array',
1053
+ items: ['breakout'],
991
1054
  optional: true,
992
- items: ['breakout']
1055
+ type: 'array'
993
1056
  }
994
1057
  }
995
1058
  }];
996
1059
  export var layoutSection_with_single_column = ['layoutSection', {
997
1060
  props: {
998
1061
  attrs: {
1062
+ optional: true,
999
1063
  props: {
1000
1064
  columnRuleStyle: {
1065
+ optional: true,
1001
1066
  type: 'enum',
1002
- values: ['solid'],
1003
- optional: true
1067
+ values: ['solid']
1004
1068
  },
1005
1069
  localId: {
1006
- type: 'string',
1007
- optional: true
1070
+ optional: true,
1071
+ type: 'string'
1008
1072
  }
1009
- },
1010
- optional: true
1073
+ }
1011
1074
  },
1012
1075
  content: {
1013
- type: 'array',
1076
+ allowUnsupportedBlock: true,
1014
1077
  items: ['layoutColumn'],
1015
- minItems: 1,
1016
1078
  maxItems: 5,
1017
- allowUnsupportedBlock: true
1079
+ minItems: 1,
1080
+ type: 'array'
1018
1081
  },
1019
1082
  marks: {
1020
- type: 'array',
1083
+ items: ['breakout'],
1021
1084
  optional: true,
1022
- items: ['breakout']
1085
+ type: 'array'
1023
1086
  }
1024
1087
  }
1025
1088
  }];
1026
1089
  export var link = {
1027
1090
  props: {
1028
- type: {
1029
- type: 'enum',
1030
- values: ['link']
1031
- },
1032
1091
  attrs: {
1033
1092
  props: {
1093
+ collection: {
1094
+ optional: true,
1095
+ type: 'string'
1096
+ },
1034
1097
  href: {
1035
1098
  type: 'string',
1036
1099
  validatorFn: 'safeUrl'
1037
1100
  },
1038
- title: {
1039
- type: 'string',
1040
- optional: true
1041
- },
1042
1101
  id: {
1043
- type: 'string',
1044
- optional: true
1045
- },
1046
- collection: {
1047
- type: 'string',
1048
- optional: true
1102
+ optional: true,
1103
+ type: 'string'
1049
1104
  },
1050
1105
  occurrenceKey: {
1051
- type: 'string',
1052
- optional: true
1106
+ optional: true,
1107
+ type: 'string'
1108
+ },
1109
+ title: {
1110
+ optional: true,
1111
+ type: 'string'
1053
1112
  }
1054
1113
  }
1114
+ },
1115
+ type: {
1116
+ type: 'enum',
1117
+ values: ['link']
1055
1118
  }
1056
1119
  }
1057
1120
  };
1058
1121
  export var listItem = {
1059
1122
  props: {
1060
- type: {
1061
- type: 'enum',
1062
- values: ['listItem']
1063
- },
1064
1123
  attrs: {
1124
+ optional: true,
1065
1125
  props: {
1066
1126
  localId: {
1067
- type: 'string',
1068
- optional: true
1127
+ optional: true,
1128
+ type: 'string'
1069
1129
  }
1070
- },
1071
- optional: true
1130
+ }
1072
1131
  },
1073
1132
  content: {
1074
- type: 'array',
1133
+ allowUnsupportedBlock: true,
1075
1134
  items: [['paragraph_with_font_size', 'paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'extension_with_marks']],
1076
1135
  minItems: 1,
1077
- allowUnsupportedBlock: true
1136
+ type: 'array'
1137
+ },
1138
+ type: {
1139
+ type: 'enum',
1140
+ values: ['listItem']
1078
1141
  }
1079
1142
  }
1080
1143
  };
1081
1144
  export var media = {
1082
1145
  props: {
1083
- type: {
1084
- type: 'enum',
1085
- values: ['media']
1086
- },
1087
1146
  attrs: [{
1088
1147
  props: {
1089
- type: {
1090
- type: 'enum',
1091
- values: ['link', 'file']
1148
+ alt: {
1149
+ optional: true,
1150
+ type: 'string'
1092
1151
  },
1093
- localId: {
1094
- type: 'string',
1095
- optional: true
1152
+ collection: {
1153
+ type: 'string'
1154
+ },
1155
+ height: {
1156
+ optional: true,
1157
+ type: 'number'
1096
1158
  },
1097
1159
  id: {
1098
1160
  minLength: 1,
1099
1161
  type: 'string'
1100
1162
  },
1101
- alt: {
1102
- type: 'string',
1103
- optional: true
1104
- },
1105
- collection: {
1163
+ localId: {
1164
+ optional: true,
1106
1165
  type: 'string'
1107
1166
  },
1108
- height: {
1109
- type: 'number',
1110
- optional: true
1111
- },
1112
1167
  occurrenceKey: {
1113
1168
  minLength: 1,
1114
- type: 'string',
1115
- optional: true
1169
+ optional: true,
1170
+ type: 'string'
1171
+ },
1172
+ type: {
1173
+ type: 'enum',
1174
+ values: ['link', 'file']
1116
1175
  },
1117
1176
  width: {
1118
- type: 'number',
1119
- optional: true
1177
+ optional: true,
1178
+ type: 'number'
1120
1179
  }
1121
1180
  }
1122
1181
  }, {
1123
1182
  props: {
1124
- type: {
1125
- type: 'enum',
1126
- values: ['external']
1127
- },
1128
- localId: {
1129
- type: 'string',
1130
- optional: true
1131
- },
1132
1183
  alt: {
1133
- type: 'string',
1134
- optional: true
1184
+ optional: true,
1185
+ type: 'string'
1135
1186
  },
1136
1187
  height: {
1137
- type: 'number',
1138
- optional: true
1188
+ optional: true,
1189
+ type: 'number'
1139
1190
  },
1140
- width: {
1141
- type: 'number',
1142
- optional: true
1191
+ localId: {
1192
+ optional: true,
1193
+ type: 'string'
1194
+ },
1195
+ type: {
1196
+ type: 'enum',
1197
+ values: ['external']
1143
1198
  },
1144
1199
  url: {
1145
1200
  type: 'string'
1201
+ },
1202
+ width: {
1203
+ optional: true,
1204
+ type: 'number'
1146
1205
  }
1147
1206
  }
1148
1207
  }],
1149
1208
  marks: {
1150
- type: 'array',
1209
+ items: [['dataConsumer', 'link', 'annotation', 'border']],
1151
1210
  optional: true,
1152
- items: [['dataConsumer', 'link', 'annotation', 'border']]
1211
+ type: 'array'
1212
+ },
1213
+ type: {
1214
+ type: 'enum',
1215
+ values: ['media']
1153
1216
  }
1154
1217
  },
1155
1218
  required: ['attrs']
1156
1219
  };
1157
1220
  export var mediaGroup = {
1158
1221
  props: {
1159
- type: {
1160
- type: 'enum',
1161
- values: ['mediaGroup']
1162
- },
1163
1222
  content: {
1164
- type: 'array',
1223
+ allowUnsupportedBlock: true,
1165
1224
  items: ['media'],
1166
1225
  minItems: 1,
1167
- allowUnsupportedBlock: true
1226
+ type: 'array'
1227
+ },
1228
+ type: {
1229
+ type: 'enum',
1230
+ values: ['mediaGroup']
1168
1231
  }
1169
1232
  }
1170
1233
  };
1171
1234
  export var mediaInline = {
1172
1235
  props: {
1173
- type: {
1174
- type: 'enum',
1175
- values: ['mediaInline']
1176
- },
1177
1236
  attrs: {
1178
1237
  props: {
1179
- type: {
1180
- type: 'enum',
1181
- values: ['link', 'file', 'image'],
1182
- optional: true
1238
+ alt: {
1239
+ optional: true,
1240
+ type: 'string'
1183
1241
  },
1184
- localId: {
1185
- type: 'string',
1186
- optional: true
1242
+ collection: {
1243
+ type: 'string'
1187
1244
  },
1188
- url: {
1189
- type: 'string',
1190
- optional: true
1245
+ data: {
1246
+ optional: true,
1247
+ type: 'object'
1248
+ },
1249
+ height: {
1250
+ optional: true,
1251
+ type: 'number'
1191
1252
  },
1192
1253
  id: {
1193
1254
  minLength: 1,
1194
1255
  type: 'string'
1195
1256
  },
1196
- alt: {
1197
- type: 'string',
1198
- optional: true
1199
- },
1200
- collection: {
1257
+ localId: {
1258
+ optional: true,
1201
1259
  type: 'string'
1202
1260
  },
1203
1261
  occurrenceKey: {
1204
1262
  minLength: 1,
1205
- type: 'string',
1206
- optional: true
1263
+ optional: true,
1264
+ type: 'string'
1207
1265
  },
1208
- width: {
1209
- type: 'number',
1210
- optional: true
1266
+ type: {
1267
+ optional: true,
1268
+ type: 'enum',
1269
+ values: ['link', 'file', 'image']
1211
1270
  },
1212
- height: {
1213
- type: 'number',
1214
- optional: true
1271
+ url: {
1272
+ optional: true,
1273
+ type: 'string'
1215
1274
  },
1216
- data: {
1217
- type: 'object',
1218
- optional: true
1275
+ width: {
1276
+ optional: true,
1277
+ type: 'number'
1219
1278
  }
1220
1279
  }
1221
1280
  },
1222
1281
  marks: {
1223
- type: 'array',
1282
+ items: [['dataConsumer', 'link', 'annotation', 'border']],
1224
1283
  optional: true,
1225
- items: [['dataConsumer', 'link', 'annotation', 'border']]
1284
+ type: 'array'
1285
+ },
1286
+ type: {
1287
+ type: 'enum',
1288
+ values: ['mediaInline']
1226
1289
  }
1227
1290
  }
1228
1291
  };
1229
1292
  export var mediaSingle = {
1230
1293
  props: {
1231
- type: {
1232
- type: 'enum',
1233
- values: ['mediaSingle']
1234
- },
1235
1294
  attrs: [{
1236
1295
  props: {
1296
+ layout: {
1297
+ type: 'enum',
1298
+ values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
1299
+ },
1237
1300
  localId: {
1238
- type: 'string',
1239
- optional: true
1301
+ optional: true,
1302
+ type: 'string'
1240
1303
  },
1241
1304
  width: {
1242
- type: 'number',
1243
- minimum: 0,
1244
1305
  maximum: 100,
1245
- optional: true
1246
- },
1247
- layout: {
1248
- type: 'enum',
1249
- values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
1306
+ minimum: 0,
1307
+ optional: true,
1308
+ type: 'number'
1250
1309
  },
1251
1310
  widthType: {
1311
+ optional: true,
1252
1312
  type: 'enum',
1253
- values: ['percentage'],
1254
- optional: true
1313
+ values: ['percentage']
1255
1314
  }
1256
1315
  }
1257
1316
  }, {
1258
1317
  props: {
1318
+ layout: {
1319
+ type: 'enum',
1320
+ values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
1321
+ },
1259
1322
  localId: {
1260
- type: 'string',
1261
- optional: true
1323
+ optional: true,
1324
+ type: 'string'
1262
1325
  },
1263
1326
  width: {
1264
- type: 'number',
1265
- minimum: 0
1327
+ minimum: 0,
1328
+ type: 'number'
1266
1329
  },
1267
1330
  widthType: {
1268
1331
  type: 'enum',
1269
1332
  values: ['pixel']
1270
- },
1271
- layout: {
1272
- type: 'enum',
1273
- values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
1274
1333
  }
1275
1334
  }
1276
1335
  }],
1277
1336
  marks: {
1278
- type: 'array',
1337
+ items: ['link'],
1279
1338
  optional: true,
1280
- items: ['link']
1339
+ type: 'array'
1340
+ },
1341
+ type: {
1342
+ type: 'enum',
1343
+ values: ['mediaSingle']
1281
1344
  }
1282
1345
  }
1283
1346
  };
1284
1347
  export var mediaSingle_caption = ['mediaSingle', {
1285
1348
  props: {
1286
1349
  content: {
1287
- type: 'array',
1350
+ allowUnsupportedBlock: true,
1288
1351
  isTupleLike: true,
1289
1352
  items: ['media', 'caption'],
1290
- minItems: 1,
1291
1353
  maxItems: 2,
1292
- allowUnsupportedBlock: true
1354
+ minItems: 1,
1355
+ type: 'array'
1293
1356
  }
1294
1357
  }
1295
1358
  }];
1296
1359
  export var mediaSingle_full = ['mediaSingle', {
1297
1360
  props: {
1298
1361
  content: {
1299
- type: 'array',
1362
+ allowUnsupportedBlock: true,
1300
1363
  items: ['media'],
1301
- minItems: 1,
1302
1364
  maxItems: 1,
1303
- allowUnsupportedBlock: true
1365
+ minItems: 1,
1366
+ type: 'array'
1304
1367
  }
1305
1368
  }
1306
1369
  }];
1307
1370
  export var mediaSingle_width_type = ['mediaSingle', {
1308
1371
  props: {
1309
1372
  content: {
1310
- type: 'array',
1373
+ allowUnsupportedBlock: true,
1311
1374
  items: ['media'],
1312
- minItems: 1,
1313
1375
  maxItems: 1,
1314
- allowUnsupportedBlock: true
1376
+ minItems: 1,
1377
+ type: 'array'
1315
1378
  }
1316
1379
  }
1317
1380
  }];
1318
1381
  export var mention = {
1319
1382
  props: {
1320
- type: {
1321
- type: 'enum',
1322
- values: ['mention']
1323
- },
1324
1383
  attrs: {
1325
1384
  props: {
1385
+ accessLevel: {
1386
+ optional: true,
1387
+ type: 'string'
1388
+ },
1326
1389
  id: {
1327
1390
  type: 'string'
1328
1391
  },
1329
1392
  localId: {
1330
- type: 'string',
1331
- optional: true
1393
+ optional: true,
1394
+ type: 'string'
1332
1395
  },
1333
1396
  text: {
1334
- type: 'string',
1335
- optional: true
1336
- },
1337
- accessLevel: {
1338
- type: 'string',
1339
- optional: true
1397
+ optional: true,
1398
+ type: 'string'
1340
1399
  },
1341
1400
  userType: {
1401
+ optional: true,
1342
1402
  type: 'enum',
1343
- values: ['DEFAULT', 'SPECIAL', 'APP'],
1344
- optional: true
1403
+ values: ['DEFAULT', 'SPECIAL', 'APP']
1345
1404
  }
1346
1405
  }
1347
1406
  },
1348
1407
  marks: {
1349
- type: 'array',
1408
+ items: ['annotation'],
1350
1409
  optional: true,
1351
- items: ['annotation']
1410
+ type: 'array'
1411
+ },
1412
+ type: {
1413
+ type: 'enum',
1414
+ values: ['mention']
1352
1415
  }
1353
1416
  }
1354
1417
  };
1355
1418
  export var multiBodiedExtension = {
1356
1419
  props: {
1357
- type: {
1358
- type: 'enum',
1359
- values: ['multiBodiedExtension']
1360
- },
1361
1420
  attrs: {
1362
1421
  props: {
1363
1422
  extensionKey: {
1364
- type: 'string',
1365
- minLength: 1
1423
+ minLength: 1,
1424
+ type: 'string'
1366
1425
  },
1367
1426
  extensionType: {
1368
- type: 'string',
1369
- minLength: 1
1370
- },
1371
- parameters: {
1372
- type: 'object',
1373
- optional: true
1374
- },
1375
- text: {
1376
- type: 'string',
1377
- optional: true
1427
+ minLength: 1,
1428
+ type: 'string'
1378
1429
  },
1379
1430
  layout: {
1431
+ optional: true,
1380
1432
  type: 'enum',
1381
- values: ['default', 'wide', 'full-width'],
1382
- optional: true
1433
+ values: ['default', 'wide', 'full-width']
1383
1434
  },
1384
1435
  localId: {
1385
- type: 'string',
1436
+ minLength: 1,
1437
+ optional: true,
1438
+ type: 'string'
1439
+ },
1440
+ parameters: {
1386
1441
  optional: true,
1387
- minLength: 1
1442
+ type: 'object'
1443
+ },
1444
+ text: {
1445
+ optional: true,
1446
+ type: 'string'
1388
1447
  }
1389
1448
  }
1390
1449
  },
1391
1450
  content: {
1392
- type: 'array',
1393
- items: ['extensionFrame']
1451
+ items: ['extensionFrame'],
1452
+ type: 'array'
1394
1453
  },
1395
1454
  marks: {
1396
- type: 'array',
1397
1455
  items: [],
1398
- optional: true
1456
+ optional: true,
1457
+ type: 'array'
1458
+ },
1459
+ type: {
1460
+ type: 'enum',
1461
+ values: ['multiBodiedExtension']
1399
1462
  }
1400
1463
  }
1401
1464
  };
1402
1465
  export var nestedExpand = {
1403
1466
  props: {
1404
- type: {
1405
- type: 'enum',
1406
- values: ['nestedExpand']
1407
- },
1408
1467
  attrs: {
1409
1468
  props: {
1410
- title: {
1411
- type: 'string',
1412
- optional: true
1413
- },
1414
1469
  localId: {
1415
- type: 'string',
1416
- optional: true
1470
+ optional: true,
1471
+ type: 'string'
1472
+ },
1473
+ title: {
1474
+ optional: true,
1475
+ type: 'string'
1417
1476
  }
1418
1477
  }
1419
1478
  },
1420
- content: 'nestedExpand_content'
1479
+ content: 'nestedExpand_content',
1480
+ type: {
1481
+ type: 'enum',
1482
+ values: ['nestedExpand']
1483
+ }
1421
1484
  },
1422
1485
  required: ['content']
1423
1486
  };
1424
1487
  export var nestedExpand_content = {
1425
- type: 'array',
1488
+ allowUnsupportedBlock: true,
1426
1489
  items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks']],
1427
1490
  minItems: 1,
1428
- allowUnsupportedBlock: true
1491
+ type: 'array'
1429
1492
  };
1430
1493
  export var nestedExpand_with_no_marks = ['nestedExpand', {
1431
1494
  props: {
1432
1495
  marks: {
1433
- type: 'array',
1434
- maxItems: 0,
1435
1496
  items: [],
1436
- optional: true
1497
+ maxItems: 0,
1498
+ optional: true,
1499
+ type: 'array'
1437
1500
  }
1438
1501
  }
1439
1502
  }];
1440
- export var non_nestable_block_content = ['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks'];
1503
+ export var non_nestable_block_content = ['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'codeBlock_with_extended_attributes', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks'];
1441
1504
  export var orderedList = {
1442
1505
  props: {
1443
- type: {
1444
- type: 'enum',
1445
- values: ['orderedList']
1446
- },
1447
1506
  attrs: {
1507
+ optional: true,
1448
1508
  props: {
1509
+ localId: {
1510
+ optional: true,
1511
+ type: 'string'
1512
+ },
1449
1513
  order: {
1450
- type: 'number',
1451
1514
  minimum: 0,
1452
- optional: true
1453
- },
1454
- localId: {
1455
- type: 'string',
1456
- optional: true
1515
+ optional: true,
1516
+ type: 'number'
1457
1517
  }
1458
- },
1459
- optional: true
1518
+ }
1460
1519
  },
1461
1520
  content: {
1462
- type: 'array',
1463
1521
  items: ['listItem'],
1464
- minItems: 1
1522
+ minItems: 1,
1523
+ type: 'array'
1524
+ },
1525
+ type: {
1526
+ type: 'enum',
1527
+ values: ['orderedList']
1465
1528
  }
1466
1529
  }
1467
1530
  };
1468
1531
  export var panel = {
1469
1532
  props: {
1470
- type: {
1471
- type: 'enum',
1472
- values: ['panel']
1473
- },
1474
- attrs: {
1475
- props: {
1476
- panelType: {
1477
- type: 'enum',
1478
- values: ['info', 'note', 'tip', 'warning', 'error', 'success', 'custom']
1533
+ attrs: {
1534
+ props: {
1535
+ localId: {
1536
+ optional: true,
1537
+ type: 'string'
1538
+ },
1539
+ panelColor: {
1540
+ optional: true,
1541
+ type: 'string'
1479
1542
  },
1480
1543
  panelIcon: {
1481
- type: 'string',
1482
- optional: true
1544
+ optional: true,
1545
+ type: 'string'
1483
1546
  },
1484
1547
  panelIconId: {
1485
- type: 'string',
1486
- optional: true
1548
+ optional: true,
1549
+ type: 'string'
1487
1550
  },
1488
1551
  panelIconText: {
1489
- type: 'string',
1490
- optional: true
1491
- },
1492
- panelColor: {
1493
- type: 'string',
1494
- optional: true
1552
+ optional: true,
1553
+ type: 'string'
1495
1554
  },
1496
- localId: {
1497
- type: 'string',
1498
- optional: true
1555
+ panelType: {
1556
+ type: 'enum',
1557
+ values: ['info', 'note', 'tip', 'warning', 'error', 'success', 'custom']
1499
1558
  }
1500
1559
  }
1501
1560
  },
1502
1561
  content: {
1503
- type: 'array',
1562
+ allowUnsupportedBlock: true,
1504
1563
  items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'decisionList', 'extension_with_marks']],
1505
1564
  minItems: 1,
1506
- allowUnsupportedBlock: true
1565
+ type: 'array'
1566
+ },
1567
+ type: {
1568
+ type: 'enum',
1569
+ values: ['panel']
1507
1570
  }
1508
1571
  }
1509
1572
  };
1510
1573
  export var paragraph = {
1511
1574
  props: {
1512
- type: {
1513
- type: 'enum',
1514
- values: ['paragraph']
1515
- },
1516
1575
  attrs: {
1576
+ optional: true,
1517
1577
  props: {
1518
1578
  localId: {
1519
- type: 'string',
1520
- optional: true
1579
+ optional: true,
1580
+ type: 'string'
1521
1581
  }
1522
- },
1523
- optional: true
1582
+ }
1524
1583
  },
1525
1584
  content: {
1526
- type: 'array',
1585
+ allowUnsupportedInline: true,
1527
1586
  items: ['inline_content'],
1528
1587
  optional: true,
1529
- allowUnsupportedInline: true
1588
+ type: 'array'
1530
1589
  },
1531
1590
  marks: {
1532
- type: 'array',
1533
1591
  items: [],
1534
- optional: true
1592
+ optional: true,
1593
+ type: 'array'
1594
+ },
1595
+ type: {
1596
+ type: 'enum',
1597
+ values: ['paragraph']
1535
1598
  }
1536
1599
  }
1537
1600
  };
1538
1601
  export var paragraph_with_alignment = ['paragraph', {
1539
1602
  props: {
1540
1603
  marks: {
1541
- type: 'array',
1604
+ items: [['fontSize', 'alignment']],
1542
1605
  optional: true,
1543
- items: ['alignment']
1606
+ type: 'array'
1544
1607
  }
1545
1608
  }
1546
1609
  }];
1547
1610
  export var paragraph_with_font_size = ['paragraph', {
1548
1611
  props: {
1549
1612
  marks: {
1550
- type: 'array',
1551
- optional: true,
1552
- items: ['fontSize']
1553
- }
1554
- }
1555
- }];
1556
- export var paragraph_with_font_size_and_alignment = ['paragraph', {
1557
- props: {
1558
- marks: {
1559
- type: 'array',
1560
- optional: true,
1561
- items: [['fontSize', 'alignment']]
1562
- }
1563
- }
1564
- }];
1565
- export var paragraph_with_font_size_and_indentation = ['paragraph', {
1566
- props: {
1567
- marks: {
1568
- type: 'array',
1613
+ items: ['fontSize'],
1569
1614
  optional: true,
1570
- items: [['fontSize', 'indentation']]
1615
+ type: 'array'
1571
1616
  }
1572
1617
  }
1573
1618
  }];
1574
1619
  export var paragraph_with_indentation = ['paragraph', {
1575
1620
  props: {
1576
1621
  marks: {
1577
- type: 'array',
1622
+ items: [['fontSize', 'indentation']],
1578
1623
  optional: true,
1579
- items: ['indentation']
1624
+ type: 'array'
1580
1625
  }
1581
1626
  }
1582
1627
  }];
1583
1628
  export var paragraph_with_no_marks = ['paragraph', {
1584
1629
  props: {
1585
1630
  marks: {
1586
- type: 'array',
1587
- maxItems: 0,
1588
1631
  items: [],
1589
- optional: true
1632
+ maxItems: 0,
1633
+ optional: true,
1634
+ type: 'array'
1590
1635
  }
1591
1636
  }
1592
1637
  }];
1593
1638
  export var placeholder = {
1594
1639
  props: {
1595
- type: {
1596
- type: 'enum',
1597
- values: ['placeholder']
1598
- },
1599
1640
  attrs: {
1600
1641
  props: {
1601
- text: {
1642
+ localId: {
1643
+ optional: true,
1602
1644
  type: 'string'
1603
1645
  },
1604
- localId: {
1605
- type: 'string',
1606
- optional: true
1646
+ text: {
1647
+ type: 'string'
1607
1648
  }
1608
1649
  }
1650
+ },
1651
+ type: {
1652
+ type: 'enum',
1653
+ values: ['placeholder']
1609
1654
  }
1610
1655
  }
1611
1656
  };
1612
1657
  export var rule = {
1613
1658
  props: {
1614
- type: {
1615
- type: 'enum',
1616
- values: ['rule']
1617
- },
1618
1659
  attrs: {
1660
+ optional: true,
1619
1661
  props: {
1620
1662
  localId: {
1621
- type: 'string',
1622
- optional: true
1663
+ optional: true,
1664
+ type: 'string'
1623
1665
  }
1624
- },
1625
- optional: true
1666
+ }
1667
+ },
1668
+ type: {
1669
+ type: 'enum',
1670
+ values: ['rule']
1626
1671
  }
1627
1672
  }
1628
1673
  };
1629
1674
  export var status = {
1630
1675
  props: {
1631
- type: {
1632
- type: 'enum',
1633
- values: ['status']
1634
- },
1635
1676
  attrs: {
1636
1677
  props: {
1637
- text: {
1638
- minLength: 1,
1639
- type: 'string'
1640
- },
1641
1678
  color: {
1642
1679
  type: 'enum',
1643
1680
  values: ['neutral', 'purple', 'blue', 'red', 'yellow', 'green']
1644
1681
  },
1645
1682
  localId: {
1646
- type: 'string',
1647
- optional: true
1683
+ optional: true,
1684
+ type: 'string'
1648
1685
  },
1649
1686
  style: {
1650
- type: 'string',
1651
- optional: true
1687
+ optional: true,
1688
+ type: 'string'
1689
+ },
1690
+ text: {
1691
+ minLength: 1,
1692
+ type: 'string'
1652
1693
  }
1653
1694
  }
1654
1695
  },
1655
1696
  marks: {
1656
- type: 'array',
1697
+ items: ['annotation'],
1657
1698
  optional: true,
1658
- items: ['annotation']
1699
+ type: 'array'
1700
+ },
1701
+ type: {
1702
+ type: 'enum',
1703
+ values: ['status']
1659
1704
  }
1660
1705
  }
1661
1706
  };
@@ -1677,10 +1722,6 @@ export var strong = {
1677
1722
  };
1678
1723
  export var subsup = {
1679
1724
  props: {
1680
- type: {
1681
- type: 'enum',
1682
- values: ['subsup']
1683
- },
1684
1725
  attrs: {
1685
1726
  props: {
1686
1727
  type: {
@@ -1688,190 +1729,190 @@ export var subsup = {
1688
1729
  values: ['sub', 'sup']
1689
1730
  }
1690
1731
  }
1732
+ },
1733
+ type: {
1734
+ type: 'enum',
1735
+ values: ['subsup']
1691
1736
  }
1692
1737
  }
1693
1738
  };
1694
1739
  export var syncBlock = {
1695
1740
  props: {
1696
- type: {
1697
- type: 'enum',
1698
- values: ['syncBlock']
1699
- },
1700
1741
  attrs: {
1701
1742
  props: {
1702
- resourceId: {
1743
+ localId: {
1703
1744
  type: 'string'
1704
1745
  },
1705
- localId: {
1746
+ resourceId: {
1706
1747
  type: 'string'
1707
1748
  }
1708
1749
  }
1709
1750
  },
1710
1751
  marks: {
1711
- type: 'array',
1752
+ items: ['breakout'],
1712
1753
  optional: true,
1713
- items: ['breakout']
1754
+ type: 'array'
1755
+ },
1756
+ type: {
1757
+ type: 'enum',
1758
+ values: ['syncBlock']
1714
1759
  }
1715
1760
  }
1716
1761
  };
1717
1762
  export var table = {
1718
1763
  props: {
1719
- type: {
1720
- type: 'enum',
1721
- values: ['table']
1722
- },
1723
1764
  attrs: {
1765
+ optional: true,
1724
1766
  props: {
1725
1767
  displayMode: {
1768
+ optional: true,
1726
1769
  type: 'enum',
1727
- values: ['default', 'fixed'],
1728
- optional: true
1770
+ values: ['default', 'fixed']
1729
1771
  },
1730
1772
  isNumberColumnEnabled: {
1731
- type: 'boolean',
1732
- optional: true
1773
+ optional: true,
1774
+ type: 'boolean'
1733
1775
  },
1734
1776
  layout: {
1777
+ optional: true,
1735
1778
  type: 'enum',
1736
- values: ['wide', 'full-width', 'center', 'align-end', 'align-start', 'default'],
1737
- optional: true
1779
+ values: ['wide', 'full-width', 'center', 'align-end', 'align-start', 'default']
1738
1780
  },
1739
1781
  localId: {
1740
- type: 'string',
1741
1782
  minLength: 1,
1742
- optional: true
1783
+ optional: true,
1784
+ type: 'string'
1743
1785
  },
1744
1786
  width: {
1745
- type: 'number',
1746
- optional: true
1787
+ optional: true,
1788
+ type: 'number'
1747
1789
  }
1748
- },
1749
- optional: true
1790
+ }
1750
1791
  },
1751
1792
  content: {
1752
- type: 'array',
1753
1793
  items: ['tableRow'],
1754
- minItems: 1
1794
+ minItems: 1,
1795
+ type: 'array'
1755
1796
  },
1756
1797
  marks: {
1757
- type: 'array',
1798
+ items: ['fragment'],
1758
1799
  optional: true,
1759
- items: ['fragment']
1800
+ type: 'array'
1801
+ },
1802
+ type: {
1803
+ type: 'enum',
1804
+ values: ['table']
1760
1805
  }
1761
1806
  }
1762
1807
  };
1763
1808
  export var tableCell = {
1764
1809
  props: {
1765
- type: {
1766
- type: 'enum',
1767
- values: ['tableCell']
1768
- },
1769
1810
  attrs: {
1811
+ optional: true,
1770
1812
  props: {
1771
- colspan: {
1772
- type: 'number',
1773
- optional: true
1813
+ background: {
1814
+ optional: true,
1815
+ type: 'string'
1774
1816
  },
1775
- rowspan: {
1776
- type: 'number',
1777
- optional: true
1817
+ colspan: {
1818
+ optional: true,
1819
+ type: 'number'
1778
1820
  },
1779
1821
  colwidth: {
1780
- type: 'array',
1781
1822
  items: [{
1782
1823
  type: 'number'
1783
1824
  }],
1784
- optional: true
1785
- },
1786
- background: {
1787
- type: 'string',
1788
- optional: true
1825
+ optional: true,
1826
+ type: 'array'
1789
1827
  },
1790
1828
  localId: {
1791
- type: 'string',
1792
- optional: true
1829
+ optional: true,
1830
+ type: 'string'
1831
+ },
1832
+ rowspan: {
1833
+ optional: true,
1834
+ type: 'number'
1793
1835
  }
1794
- },
1795
- optional: true
1836
+ }
1796
1837
  },
1797
1838
  content: {
1798
- type: 'array',
1799
- items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_font_size_and_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
1839
+ allowUnsupportedBlock: true,
1840
+ items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'codeBlock_with_extended_attributes', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
1800
1841
  minItems: 1,
1801
- allowUnsupportedBlock: true
1842
+ type: 'array'
1843
+ },
1844
+ type: {
1845
+ type: 'enum',
1846
+ values: ['tableCell']
1802
1847
  }
1803
1848
  },
1804
1849
  required: ['content']
1805
1850
  };
1806
1851
  export var tableHeader = {
1807
1852
  props: {
1808
- type: {
1809
- type: 'enum',
1810
- values: ['tableHeader']
1811
- },
1812
1853
  attrs: {
1854
+ optional: true,
1813
1855
  props: {
1814
- colspan: {
1815
- type: 'number',
1816
- optional: true
1856
+ background: {
1857
+ optional: true,
1858
+ type: 'string'
1817
1859
  },
1818
- rowspan: {
1819
- type: 'number',
1820
- optional: true
1860
+ colspan: {
1861
+ optional: true,
1862
+ type: 'number'
1821
1863
  },
1822
1864
  colwidth: {
1823
- type: 'array',
1824
1865
  items: [{
1825
1866
  type: 'number'
1826
1867
  }],
1827
- optional: true
1828
- },
1829
- background: {
1830
- type: 'string',
1831
- optional: true
1868
+ optional: true,
1869
+ type: 'array'
1832
1870
  },
1833
1871
  localId: {
1834
- type: 'string',
1835
- optional: true
1872
+ optional: true,
1873
+ type: 'string'
1874
+ },
1875
+ rowspan: {
1876
+ optional: true,
1877
+ type: 'number'
1836
1878
  }
1837
- },
1838
- optional: true
1879
+ }
1839
1880
  },
1840
1881
  content: {
1841
- type: 'array',
1842
- items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_font_size_and_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
1843
- minItems: 1
1882
+ items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'codeBlock_with_extended_attributes', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
1883
+ minItems: 1,
1884
+ type: 'array'
1885
+ },
1886
+ type: {
1887
+ type: 'enum',
1888
+ values: ['tableHeader']
1844
1889
  }
1845
1890
  },
1846
1891
  required: ['content']
1847
1892
  };
1848
1893
  export var tableRow = {
1849
1894
  props: {
1850
- type: {
1851
- type: 'enum',
1852
- values: ['tableRow']
1853
- },
1854
1895
  attrs: {
1896
+ optional: true,
1855
1897
  props: {
1856
1898
  localId: {
1857
- type: 'string',
1858
- optional: true
1899
+ optional: true,
1900
+ type: 'string'
1859
1901
  }
1860
- },
1861
- optional: true
1902
+ }
1862
1903
  },
1863
1904
  content: {
1864
- type: 'array',
1865
- items: [['tableCell', 'tableHeader']]
1905
+ items: [['tableCell', 'tableHeader']],
1906
+ type: 'array'
1907
+ },
1908
+ type: {
1909
+ type: 'enum',
1910
+ values: ['tableRow']
1866
1911
  }
1867
1912
  }
1868
1913
  };
1869
1914
  export var taskItem = {
1870
1915
  props: {
1871
- type: {
1872
- type: 'enum',
1873
- values: ['taskItem']
1874
- },
1875
1916
  attrs: {
1876
1917
  props: {
1877
1918
  localId: {
@@ -1884,19 +1925,19 @@ export var taskItem = {
1884
1925
  }
1885
1926
  },
1886
1927
  content: {
1887
- type: 'array',
1928
+ allowUnsupportedInline: true,
1888
1929
  items: ['inline_content'],
1889
1930
  optional: true,
1890
- allowUnsupportedInline: true
1931
+ type: 'array'
1932
+ },
1933
+ type: {
1934
+ type: 'enum',
1935
+ values: ['taskItem']
1891
1936
  }
1892
1937
  }
1893
1938
  };
1894
1939
  export var taskList = {
1895
1940
  props: {
1896
- type: {
1897
- type: 'enum',
1898
- values: ['taskList']
1899
- },
1900
1941
  attrs: {
1901
1942
  props: {
1902
1943
  localId: {
@@ -1905,80 +1946,84 @@ export var taskList = {
1905
1946
  }
1906
1947
  },
1907
1948
  content: {
1908
- type: 'array',
1949
+ allowUnsupportedBlock: true,
1909
1950
  items: [['taskItem', 'taskList', 'blockTaskItem']],
1910
1951
  minItems: 1,
1911
- allowUnsupportedBlock: true
1952
+ type: 'array'
1953
+ },
1954
+ type: {
1955
+ type: 'enum',
1956
+ values: ['taskList']
1912
1957
  }
1913
1958
  }
1914
1959
  };
1915
1960
  export var text = {
1916
1961
  props: {
1917
- type: {
1918
- type: 'enum',
1919
- values: ['text']
1962
+ marks: {
1963
+ items: [],
1964
+ optional: true,
1965
+ type: 'array'
1920
1966
  },
1921
1967
  text: {
1922
- type: 'string',
1923
- minLength: 1
1968
+ minLength: 1,
1969
+ type: 'string'
1924
1970
  },
1925
- marks: {
1926
- type: 'array',
1927
- items: [],
1928
- optional: true
1971
+ type: {
1972
+ type: 'enum',
1973
+ values: ['text']
1929
1974
  }
1930
1975
  }
1931
1976
  };
1932
1977
  export var text_code_inline = ['text', {
1933
1978
  props: {
1934
1979
  marks: {
1935
- type: 'array',
1980
+ items: [['code', 'link', 'annotation']],
1936
1981
  optional: true,
1937
- items: [['code', 'link', 'annotation']]
1982
+ type: 'array'
1938
1983
  }
1939
1984
  }
1940
1985
  }];
1941
1986
  export var text_formatted = ['text', {
1942
1987
  props: {
1943
1988
  marks: {
1944
- type: 'array',
1989
+ items: [['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'textColor', 'annotation', 'backgroundColor']],
1945
1990
  optional: true,
1946
- items: [['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'textColor', 'annotation', 'backgroundColor', null]]
1991
+ type: 'array'
1947
1992
  }
1948
1993
  }
1949
1994
  }];
1950
1995
  export var text_link_inline = ['text', {
1951
1996
  props: {
1952
1997
  marks: {
1953
- type: 'array',
1998
+ items: ['link'],
1954
1999
  optional: true,
1955
- items: ['link']
2000
+ type: 'array'
1956
2001
  }
1957
2002
  }
1958
2003
  }];
1959
2004
  export var text_with_no_marks = ['text', {
1960
2005
  props: {
1961
2006
  marks: {
1962
- type: 'array',
1963
- maxItems: 0,
1964
2007
  items: [],
1965
- optional: true
2008
+ maxItems: 0,
2009
+ optional: true,
2010
+ type: 'array'
1966
2011
  }
1967
2012
  }
1968
2013
  }];
1969
2014
  export var textColor = {
1970
2015
  props: {
1971
- type: {
1972
- type: 'enum',
1973
- values: ['textColor']
1974
- },
1975
2016
  attrs: {
1976
2017
  props: {
1977
2018
  color: {
1978
- type: 'string',
1979
- pattern: '^#[0-9a-fA-F]{6}$'
2019
+ pattern: '^#[0-9a-fA-F]{6}$',
2020
+ type: 'string'
1980
2021
  }
1981
2022
  }
2023
+ },
2024
+ type: {
2025
+ type: 'enum',
2026
+ values: ['textColor']
1982
2027
  }
1983
2028
  }
1984
2029
  };