UNPKG

10.4 kBJSONView Raw
1{
2 "version": 1,
3 "type": "doc",
4 "content": [
5 {
6 "type": "heading",
7 "attrs": {
8 "level": 3
9 },
10 "content": [
11 {
12 "type": "text",
13 "text": "Invalid node type"
14 }
15 ]
16 },
17 {
18 "type": "codBlock",
19 "attrs": {},
20 "content": [
21 {
22 "type": "text",
23 "text": "Invalid code block"
24 }
25 ]
26 },
27 {
28 "type": "heading",
29 "attrs": {
30 "level": 3
31 },
32 "content": [
33 {
34 "type": "text",
35 "text": "Invalid node attributes"
36 }
37 ]
38 },
39 {
40 "type": "codeBlock",
41 "attrs": {
42 "language": 1
43 },
44 "content": [
45 {
46 "type": "text",
47 "text": "Invalid attributes on code block"
48 }
49 ]
50 },
51 {
52 "type": "codeBlock",
53 "attrs": {
54 "extraAttribute": "foo"
55 },
56 "content": [
57 {
58 "type": "text",
59 "text": "Invalid attributes on code block"
60 }
61 ]
62 },
63 {
64 "type": "heading",
65 "attrs": {
66 "level": 3
67 },
68 "content": [
69 {
70 "type": "text",
71 "text": "Invalid node type – contentless node"
72 }
73 ]
74 },
75 {
76 "type": "awesome-extension",
77 "attrs": {
78 "extensionType": "com.atlassian.confluence.macro.core",
79 "extensionKey": "block-eh",
80 "parameters": {
81 "macroParams": {},
82 "macroMetadata": {
83 "placeholder": [
84 {
85 "data": {
86 "url": ""
87 },
88 "type": "icon"
89 }
90 ]
91 }
92 },
93 "text": "Block extension demo",
94 "layout": "default"
95 }
96 },
97 {
98 "type": "heading",
99 "attrs": {
100 "level": 3
101 },
102 "content": [
103 {
104 "type": "text",
105 "text": "Invalid node attributes – contentless node"
106 }
107 ]
108 },
109 {
110 "type": "extension",
111 "attrs": {
112 "extensionType": "com.atlassian.confluence.macro.core",
113 "extensionKey": 1,
114 "parameters": {
115 "macroParams": {},
116 "macroMetadata": {
117 "placeholder": [
118 {
119 "data": {
120 "url": ""
121 },
122 "type": "icon"
123 }
124 ]
125 }
126 },
127 "text": "Block extension demo",
128 "layout": "default"
129 }
130 },
131 {
132 "type": "extension",
133 "attrs": {
134 "extensionType": "com.atlassian.confluence.macro.core",
135 "extensionKey": "213",
136 "extraAttribute": true,
137 "parameters": {
138 "macroParams": {},
139 "macroMetadata": {
140 "placeholder": [
141 {
142 "data": {
143 "url": ""
144 },
145 "type": "icon"
146 }
147 ]
148 }
149 },
150 "text": "Block extension demo",
151 "layout": "default"
152 }
153 },
154 {
155 "type": "heading",
156 "attrs": {
157 "level": 3
158 },
159 "content": [
160 {
161 "type": "text",
162 "text": "Invalid inline nodes"
163 }
164 ]
165 },
166 {
167 "type": "paragraph",
168 "content": [
169 {
170 "type": "text",
171 "text": "Some text and invalid "
172 },
173 {
174 "type": "team-mention",
175 "attrs": {
176 "id": "all",
177 "text": "@all",
178 "accessLevel": "CONTAINER",
179 "userType": "SPECIAL"
180 }
181 },
182 {
183 "type": "text",
184 "text": " and also with invalid attributes "
185 },
186 {
187 "type": "emoji",
188 "attrs": {
189 "shortName": 1,
190 "id": "1f600",
191 "text": "😀"
192 }
193 },
194 {
195 "type": "text",
196 "text": " "
197 },
198 {
199 "type": "emoji",
200 "attrs": {
201 "shortName": ":grinning:",
202 "id": "1f600",
203 "extraAttribute": true,
204 "text": "😀"
205 }
206 },
207 {
208 "type": "text",
209 "text": "."
210 }
211 ]
212 },
213 {
214 "type": "heading",
215 "attrs": {
216 "level": 3
217 },
218 "content": [
219 {
220 "type": "text",
221 "text": "Invalid block mark type"
222 }
223 ]
224 },
225 {
226 "type": "codeBlock",
227 "attrs": {},
228 "content": [
229 {
230 "type": "text",
231 "text": "Invalid block mark"
232 }
233 ],
234 "marks": [
235 {
236 "type": "breakin",
237 "attrs": {
238 "mode": "wide"
239 }
240 }
241 ]
242 },
243 {
244 "type": "heading",
245 "attrs": {
246 "level": 3
247 },
248 "content": [
249 {
250 "type": "text",
251 "text": "Invalid block mark attribute"
252 }
253 ]
254 },
255 {
256 "type": "codeBlock",
257 "attrs": {},
258 "content": [
259 {
260 "type": "text",
261 "text": "Invalid block mark attribute"
262 }
263 ],
264 "marks": [
265 {
266 "type": "breakout",
267 "attrs": {
268 "mode": "sideways"
269 }
270 }
271 ]
272 },
273 {
274 "type": "heading",
275 "attrs": {
276 "level": 3
277 },
278 "content": [
279 {
280 "type": "text",
281 "text": "Invalid block mark combination"
282 }
283 ]
284 },
285 {
286 "type": "p",
287 "attrs": {},
288 "content": [
289 {
290 "type": "text",
291 "text": "Invalid block mark combination"
292 }
293 ],
294 "marks": [
295 {
296 "type": "alignment",
297 "attrs": {
298 "align": "center"
299 }
300 },
301 {
302 "type": "indentation",
303 "attrs": {
304 "level": 2
305 }
306 }
307 ]
308 },
309 {
310 "type": "heading",
311 "attrs": {
312 "level": 3
313 },
314 "content": [
315 {
316 "type": "text",
317 "text": "Invalid block mark nesting"
318 }
319 ]
320 },
321 {
322 "type": "layoutSection",
323 "content": [
324 {
325 "type": "layoutColumn",
326 "attrs": {
327 "width": 50
328 },
329 "content": [
330 {
331 "type": "codeBlock",
332 "attrs": {},
333 "content": [
334 {
335 "type": "text",
336 "text": "Invalid block mark combination"
337 }
338 ],
339 "marks": [
340 {
341 "type": "breakout",
342 "attrs": {
343 "mode": "wide"
344 }
345 }
346 ]
347 }
348 ]
349 },
350 {
351 "type": "layoutColumn",
352 "attrs": {
353 "width": 50
354 },
355 "content": [
356 {
357 "type": "paragraph",
358 "content": []
359 }
360 ]
361 }
362 ]
363 },
364 {
365 "type": "heading",
366 "attrs": {
367 "level": 3
368 },
369 "content": [
370 {
371 "type": "text",
372 "text": "Invalid inline marks"
373 }
374 ]
375 },
376 {
377 "type": "paragraph",
378 "content": [
379 {
380 "type": "text",
381 "text": "Some text with "
382 },
383 {
384 "type": "text",
385 "text": "invalid mark",
386 "marks": [
387 {
388 "type": "strongest"
389 }
390 ]
391 },
392 {
393 "type": "text",
394 "text": ". And some text with "
395 },
396 {
397 "type": "text",
398 "text": "invalid mark attribute",
399 "marks": [
400 {
401 "type": "strong",
402 "attrs": {
403 "extraAttribute": true
404 }
405 }
406 ]
407 },
408 {
409 "type": "text",
410 "text": ". As well as "
411 },
412 {
413 "type": "text",
414 "text": "invalid mark combination",
415 "marks": [
416 {
417 "type": "code"
418 },
419 {
420 "type": "strong"
421 }
422 ]
423 },
424 {
425 "type": "text",
426 "text": "."
427 }
428 ]
429 },
430 {
431 "type": "heading",
432 "attrs": {
433 "level": 3
434 },
435 "content": [
436 {
437 "type": "text",
438 "text": "Invalid nesting"
439 }
440 ]
441 },
442 {
443 "type": "table",
444 "attrs": {
445 "isNumberColumnEnabled": false,
446 "layout": "default"
447 },
448 "content": [
449 {
450 "type": "tableRow",
451 "content": [
452 {
453 "type": "tableCell",
454 "attrs": {},
455 "content": [
456 {
457 "type": "table",
458 "attrs": {
459 "isNumberColumnEnabled": false,
460 "layout": "default"
461 },
462 "content": [
463 {
464 "type": "tableRow",
465 "content": [
466 {
467 "type": "tableCell",
468 "attrs": {},
469 "content": [
470 {
471 "type": "paragraph",
472 "content": []
473 }
474 ]
475 }
476 ]
477 }
478 ]
479 }
480 ]
481 }
482 ]
483 }
484 ]
485 },
486 {
487 "type": "heading",
488 "attrs": {
489 "level": 3
490 },
491 "content": [
492 {
493 "type": "text",
494 "text": "Invalid parent with valid children"
495 }
496 ]
497 },
498 {
499 "type": "pane",
500 "attrs": {
501 "panelType": "info"
502 },
503 "content": [
504 {
505 "type": "bulletList",
506 "content": [
507 {
508 "type": "listItem",
509 "content": [
510 {
511 "type": "paragraph",
512 "content": [
513 {
514 "type": "text",
515 "text": "Hello"
516 }
517 ]
518 }
519 ]
520 }
521 ]
522 }
523 ]
524 }
525 ]
526}