@atlaskit/adf-schema 36.3.0 → 36.5.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 (263) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/next-schema/full-schema.adf.js +15 -0
  3. package/dist/cjs/next-schema/groups/alignementMarkExclusionGroup.js +9 -0
  4. package/dist/cjs/next-schema/groups/annotationGroup.js +8 -0
  5. package/dist/cjs/next-schema/groups/blockGroup.js +25 -0
  6. package/dist/cjs/next-schema/groups/blockRootOnlyGroup.js +8 -0
  7. package/dist/cjs/next-schema/groups/colorGroup.js +9 -0
  8. package/dist/cjs/next-schema/groups/fontStyleGroup.js +13 -0
  9. package/dist/cjs/next-schema/groups/indentationMarkExclusionGroup.js +9 -0
  10. package/dist/cjs/next-schema/groups/inlineGroup.js +18 -0
  11. package/dist/cjs/next-schema/groups/linkMarkGroup.js +9 -0
  12. package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +24 -0
  13. package/dist/cjs/next-schema/groups/searchQueryMarkGroup.js +8 -0
  14. package/dist/cjs/next-schema/marks/alignment.js +18 -0
  15. package/dist/cjs/next-schema/marks/annotation.js +21 -0
  16. package/dist/cjs/next-schema/marks/border.js +20 -0
  17. package/dist/cjs/next-schema/marks/breakout.js +18 -0
  18. package/dist/cjs/next-schema/marks/code.js +15 -0
  19. package/dist/cjs/next-schema/marks/dataConsumer.js +18 -0
  20. package/dist/cjs/next-schema/marks/em.js +10 -0
  21. package/dist/cjs/next-schema/marks/fragment.js +21 -0
  22. package/dist/cjs/next-schema/marks/indentation.js +18 -0
  23. package/dist/cjs/next-schema/marks/link.js +40 -0
  24. package/dist/cjs/next-schema/marks/strike.js +10 -0
  25. package/dist/cjs/next-schema/marks/strong.js +10 -0
  26. package/dist/cjs/next-schema/marks/subsup.js +17 -0
  27. package/dist/cjs/next-schema/marks/textColor.js +15 -0
  28. package/dist/cjs/next-schema/marks/underline.js +10 -0
  29. package/dist/cjs/next-schema/nodes/blockCard.js +34 -0
  30. package/dist/cjs/next-schema/nodes/blockquote.js +16 -0
  31. package/dist/cjs/next-schema/nodes/bodiedExtension.js +51 -0
  32. package/dist/cjs/next-schema/nodes/caption.js +21 -0
  33. package/dist/cjs/next-schema/nodes/codeBlock.js +27 -0
  34. package/dist/cjs/next-schema/nodes/date.js +17 -0
  35. package/dist/cjs/next-schema/nodes/decisionItem.js +22 -0
  36. package/dist/cjs/next-schema/nodes/decisionList.js +19 -0
  37. package/dist/cjs/next-schema/nodes/embedCard.js +36 -0
  38. package/dist/cjs/next-schema/nodes/emoji.js +27 -0
  39. package/dist/cjs/next-schema/nodes/expand.js +30 -0
  40. package/dist/cjs/next-schema/nodes/extension.js +45 -0
  41. package/dist/cjs/next-schema/nodes/extensionFrame.js +33 -0
  42. package/dist/cjs/next-schema/nodes/hardBreak.js +18 -0
  43. package/dist/cjs/next-schema/nodes/heading.js +28 -0
  44. package/dist/cjs/next-schema/nodes/inlineCard.js +27 -0
  45. package/dist/cjs/next-schema/nodes/inlineExtension.js +36 -0
  46. package/dist/cjs/next-schema/nodes/layoutColumn.js +21 -0
  47. package/dist/cjs/next-schema/nodes/layoutSection.js +14 -0
  48. package/dist/cjs/next-schema/nodes/list.js +34 -0
  49. package/dist/cjs/next-schema/nodes/media.js +89 -0
  50. package/dist/cjs/next-schema/nodes/mediaGroup.js +12 -0
  51. package/dist/cjs/next-schema/nodes/mediaInline.js +78 -0
  52. package/dist/cjs/next-schema/nodes/mediaSingle.js +39 -0
  53. package/dist/cjs/next-schema/nodes/mention.js +33 -0
  54. package/dist/cjs/next-schema/nodes/multiBodiedExtension.js +46 -0
  55. package/dist/cjs/next-schema/nodes/nestedExpand.js +35 -0
  56. package/dist/cjs/next-schema/nodes/panel.js +48 -0
  57. package/dist/cjs/next-schema/nodes/paragraph.js +21 -0
  58. package/dist/cjs/next-schema/nodes/placeholder.js +16 -0
  59. package/dist/cjs/next-schema/nodes/rule.js +8 -0
  60. package/dist/cjs/next-schema/nodes/status.js +31 -0
  61. package/dist/cjs/next-schema/nodes/table.js +43 -0
  62. package/dist/cjs/next-schema/nodes/tableCell.js +50 -0
  63. package/dist/cjs/next-schema/nodes/tableHeader.js +50 -0
  64. package/dist/cjs/next-schema/nodes/tableRow.js +13 -0
  65. package/dist/cjs/next-schema/nodes/task.js +37 -0
  66. package/dist/cjs/next-schema/nodes/text.js +21 -0
  67. package/dist/es2019/next-schema/full-schema.adf.js +9 -0
  68. package/dist/es2019/next-schema/groups/alignementMarkExclusionGroup.js +3 -0
  69. package/dist/es2019/next-schema/groups/annotationGroup.js +2 -0
  70. package/dist/es2019/next-schema/groups/blockGroup.js +19 -0
  71. package/dist/es2019/next-schema/groups/blockRootOnlyGroup.js +2 -0
  72. package/dist/es2019/next-schema/groups/colorGroup.js +3 -0
  73. package/dist/es2019/next-schema/groups/fontStyleGroup.js +7 -0
  74. package/dist/es2019/next-schema/groups/indentationMarkExclusionGroup.js +3 -0
  75. package/dist/es2019/next-schema/groups/inlineGroup.js +12 -0
  76. package/dist/es2019/next-schema/groups/linkMarkGroup.js +3 -0
  77. package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +19 -0
  78. package/dist/es2019/next-schema/groups/searchQueryMarkGroup.js +2 -0
  79. package/dist/es2019/next-schema/marks/alignment.js +12 -0
  80. package/dist/es2019/next-schema/marks/annotation.js +15 -0
  81. package/dist/es2019/next-schema/marks/border.js +14 -0
  82. package/dist/es2019/next-schema/marks/breakout.js +12 -0
  83. package/dist/es2019/next-schema/marks/code.js +9 -0
  84. package/dist/es2019/next-schema/marks/dataConsumer.js +12 -0
  85. package/dist/es2019/next-schema/marks/em.js +4 -0
  86. package/dist/es2019/next-schema/marks/fragment.js +15 -0
  87. package/dist/es2019/next-schema/marks/indentation.js +12 -0
  88. package/dist/es2019/next-schema/marks/link.js +34 -0
  89. package/dist/es2019/next-schema/marks/strike.js +4 -0
  90. package/dist/es2019/next-schema/marks/strong.js +4 -0
  91. package/dist/es2019/next-schema/marks/subsup.js +11 -0
  92. package/dist/es2019/next-schema/marks/textColor.js +9 -0
  93. package/dist/es2019/next-schema/marks/underline.js +4 -0
  94. package/dist/es2019/next-schema/nodes/blockCard.js +28 -0
  95. package/dist/es2019/next-schema/nodes/blockquote.js +10 -0
  96. package/dist/es2019/next-schema/nodes/bodiedExtension.js +43 -0
  97. package/dist/es2019/next-schema/nodes/caption.js +16 -0
  98. package/dist/es2019/next-schema/nodes/codeBlock.js +21 -0
  99. package/dist/es2019/next-schema/nodes/date.js +11 -0
  100. package/dist/es2019/next-schema/nodes/decisionItem.js +16 -0
  101. package/dist/es2019/next-schema/nodes/decisionList.js +13 -0
  102. package/dist/es2019/next-schema/nodes/embedCard.js +30 -0
  103. package/dist/es2019/next-schema/nodes/emoji.js +21 -0
  104. package/dist/es2019/next-schema/nodes/expand.js +22 -0
  105. package/dist/es2019/next-schema/nodes/extension.js +39 -0
  106. package/dist/es2019/next-schema/nodes/extensionFrame.js +27 -0
  107. package/dist/es2019/next-schema/nodes/hardBreak.js +12 -0
  108. package/dist/es2019/next-schema/nodes/heading.js +22 -0
  109. package/dist/es2019/next-schema/nodes/inlineCard.js +21 -0
  110. package/dist/es2019/next-schema/nodes/inlineExtension.js +30 -0
  111. package/dist/es2019/next-schema/nodes/layoutColumn.js +15 -0
  112. package/dist/es2019/next-schema/nodes/layoutSection.js +8 -0
  113. package/dist/es2019/next-schema/nodes/list.js +28 -0
  114. package/dist/es2019/next-schema/nodes/media.js +83 -0
  115. package/dist/es2019/next-schema/nodes/mediaGroup.js +6 -0
  116. package/dist/es2019/next-schema/nodes/mediaInline.js +72 -0
  117. package/dist/es2019/next-schema/nodes/mediaSingle.js +33 -0
  118. package/dist/es2019/next-schema/nodes/mention.js +27 -0
  119. package/dist/es2019/next-schema/nodes/multiBodiedExtension.js +40 -0
  120. package/dist/es2019/next-schema/nodes/nestedExpand.js +29 -0
  121. package/dist/es2019/next-schema/nodes/panel.js +42 -0
  122. package/dist/es2019/next-schema/nodes/paragraph.js +15 -0
  123. package/dist/es2019/next-schema/nodes/placeholder.js +10 -0
  124. package/dist/es2019/next-schema/nodes/rule.js +2 -0
  125. package/dist/es2019/next-schema/nodes/status.js +25 -0
  126. package/dist/es2019/next-schema/nodes/table.js +37 -0
  127. package/dist/es2019/next-schema/nodes/tableCell.js +44 -0
  128. package/dist/es2019/next-schema/nodes/tableHeader.js +44 -0
  129. package/dist/es2019/next-schema/nodes/tableRow.js +7 -0
  130. package/dist/es2019/next-schema/nodes/task.js +31 -0
  131. package/dist/es2019/next-schema/nodes/text.js +15 -0
  132. package/dist/esm/next-schema/full-schema.adf.js +9 -0
  133. package/dist/esm/next-schema/groups/alignementMarkExclusionGroup.js +3 -0
  134. package/dist/esm/next-schema/groups/annotationGroup.js +2 -0
  135. package/dist/esm/next-schema/groups/blockGroup.js +19 -0
  136. package/dist/esm/next-schema/groups/blockRootOnlyGroup.js +2 -0
  137. package/dist/esm/next-schema/groups/colorGroup.js +3 -0
  138. package/dist/esm/next-schema/groups/fontStyleGroup.js +7 -0
  139. package/dist/esm/next-schema/groups/indentationMarkExclusionGroup.js +3 -0
  140. package/dist/esm/next-schema/groups/inlineGroup.js +12 -0
  141. package/dist/esm/next-schema/groups/linkMarkGroup.js +3 -0
  142. package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +19 -0
  143. package/dist/esm/next-schema/groups/searchQueryMarkGroup.js +2 -0
  144. package/dist/esm/next-schema/marks/alignment.js +12 -0
  145. package/dist/esm/next-schema/marks/annotation.js +15 -0
  146. package/dist/esm/next-schema/marks/border.js +14 -0
  147. package/dist/esm/next-schema/marks/breakout.js +12 -0
  148. package/dist/esm/next-schema/marks/code.js +9 -0
  149. package/dist/esm/next-schema/marks/dataConsumer.js +12 -0
  150. package/dist/esm/next-schema/marks/em.js +4 -0
  151. package/dist/esm/next-schema/marks/fragment.js +15 -0
  152. package/dist/esm/next-schema/marks/indentation.js +12 -0
  153. package/dist/esm/next-schema/marks/link.js +34 -0
  154. package/dist/esm/next-schema/marks/strike.js +4 -0
  155. package/dist/esm/next-schema/marks/strong.js +4 -0
  156. package/dist/esm/next-schema/marks/subsup.js +11 -0
  157. package/dist/esm/next-schema/marks/textColor.js +9 -0
  158. package/dist/esm/next-schema/marks/underline.js +4 -0
  159. package/dist/esm/next-schema/nodes/blockCard.js +28 -0
  160. package/dist/esm/next-schema/nodes/blockquote.js +10 -0
  161. package/dist/esm/next-schema/nodes/bodiedExtension.js +44 -0
  162. package/dist/esm/next-schema/nodes/caption.js +16 -0
  163. package/dist/esm/next-schema/nodes/codeBlock.js +21 -0
  164. package/dist/esm/next-schema/nodes/date.js +11 -0
  165. package/dist/esm/next-schema/nodes/decisionItem.js +16 -0
  166. package/dist/esm/next-schema/nodes/decisionList.js +13 -0
  167. package/dist/esm/next-schema/nodes/embedCard.js +30 -0
  168. package/dist/esm/next-schema/nodes/emoji.js +21 -0
  169. package/dist/esm/next-schema/nodes/expand.js +23 -0
  170. package/dist/esm/next-schema/nodes/extension.js +39 -0
  171. package/dist/esm/next-schema/nodes/extensionFrame.js +27 -0
  172. package/dist/esm/next-schema/nodes/hardBreak.js +12 -0
  173. package/dist/esm/next-schema/nodes/heading.js +22 -0
  174. package/dist/esm/next-schema/nodes/inlineCard.js +21 -0
  175. package/dist/esm/next-schema/nodes/inlineExtension.js +30 -0
  176. package/dist/esm/next-schema/nodes/layoutColumn.js +15 -0
  177. package/dist/esm/next-schema/nodes/layoutSection.js +8 -0
  178. package/dist/esm/next-schema/nodes/list.js +28 -0
  179. package/dist/esm/next-schema/nodes/media.js +83 -0
  180. package/dist/esm/next-schema/nodes/mediaGroup.js +6 -0
  181. package/dist/esm/next-schema/nodes/mediaInline.js +72 -0
  182. package/dist/esm/next-schema/nodes/mediaSingle.js +33 -0
  183. package/dist/esm/next-schema/nodes/mention.js +27 -0
  184. package/dist/esm/next-schema/nodes/multiBodiedExtension.js +40 -0
  185. package/dist/esm/next-schema/nodes/nestedExpand.js +29 -0
  186. package/dist/esm/next-schema/nodes/panel.js +42 -0
  187. package/dist/esm/next-schema/nodes/paragraph.js +15 -0
  188. package/dist/esm/next-schema/nodes/placeholder.js +10 -0
  189. package/dist/esm/next-schema/nodes/rule.js +2 -0
  190. package/dist/esm/next-schema/nodes/status.js +25 -0
  191. package/dist/esm/next-schema/nodes/table.js +37 -0
  192. package/dist/esm/next-schema/nodes/tableCell.js +44 -0
  193. package/dist/esm/next-schema/nodes/tableHeader.js +44 -0
  194. package/dist/esm/next-schema/nodes/tableRow.js +7 -0
  195. package/dist/esm/next-schema/nodes/task.js +31 -0
  196. package/dist/esm/next-schema/nodes/text.js +15 -0
  197. package/dist/types/next-schema/full-schema.adf.d.ts +18 -0
  198. package/dist/types/next-schema/groups/alignementMarkExclusionGroup.d.ts +1 -0
  199. package/dist/types/next-schema/groups/annotationGroup.d.ts +1 -0
  200. package/dist/types/next-schema/groups/blockGroup.d.ts +1 -0
  201. package/dist/types/next-schema/groups/blockRootOnlyGroup.d.ts +1 -0
  202. package/dist/types/next-schema/groups/colorGroup.d.ts +1 -0
  203. package/dist/types/next-schema/groups/fontStyleGroup.d.ts +1 -0
  204. package/dist/types/next-schema/groups/indentationMarkExclusionGroup.d.ts +1 -0
  205. package/dist/types/next-schema/groups/inlineGroup.d.ts +1 -0
  206. package/dist/types/next-schema/groups/linkMarkGroup.d.ts +1 -0
  207. package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +114 -0
  208. package/dist/types/next-schema/groups/searchQueryMarkGroup.d.ts +1 -0
  209. package/dist/types/next-schema/marks/alignment.d.ts +1 -0
  210. package/dist/types/next-schema/marks/annotation.d.ts +1 -0
  211. package/dist/types/next-schema/marks/border.d.ts +1 -0
  212. package/dist/types/next-schema/marks/breakout.d.ts +1 -0
  213. package/dist/types/next-schema/marks/code.d.ts +1 -0
  214. package/dist/types/next-schema/marks/dataConsumer.d.ts +1 -0
  215. package/dist/types/next-schema/marks/em.d.ts +1 -0
  216. package/dist/types/next-schema/marks/fragment.d.ts +1 -0
  217. package/dist/types/next-schema/marks/indentation.d.ts +1 -0
  218. package/dist/types/next-schema/marks/link.d.ts +1 -0
  219. package/dist/types/next-schema/marks/strike.d.ts +1 -0
  220. package/dist/types/next-schema/marks/strong.d.ts +1 -0
  221. package/dist/types/next-schema/marks/subsup.d.ts +1 -0
  222. package/dist/types/next-schema/marks/textColor.d.ts +1 -0
  223. package/dist/types/next-schema/marks/underline.d.ts +1 -0
  224. package/dist/types/next-schema/nodes/blockCard.d.ts +17 -0
  225. package/dist/types/next-schema/nodes/blockquote.d.ts +19 -0
  226. package/dist/types/next-schema/nodes/bodiedExtension.d.ts +19 -0
  227. package/dist/types/next-schema/nodes/caption.d.ts +17 -0
  228. package/dist/types/next-schema/nodes/codeBlock.d.ts +38 -0
  229. package/dist/types/next-schema/nodes/date.d.ts +17 -0
  230. package/dist/types/next-schema/nodes/decisionItem.d.ts +17 -0
  231. package/dist/types/next-schema/nodes/decisionList.d.ts +17 -0
  232. package/dist/types/next-schema/nodes/embedCard.d.ts +17 -0
  233. package/dist/types/next-schema/nodes/emoji.d.ts +17 -0
  234. package/dist/types/next-schema/nodes/expand.d.ts +19 -0
  235. package/dist/types/next-schema/nodes/extension.d.ts +17 -0
  236. package/dist/types/next-schema/nodes/extensionFrame.d.ts +17 -0
  237. package/dist/types/next-schema/nodes/hardBreak.d.ts +17 -0
  238. package/dist/types/next-schema/nodes/heading.d.ts +42 -0
  239. package/dist/types/next-schema/nodes/inlineCard.d.ts +19 -0
  240. package/dist/types/next-schema/nodes/inlineExtension.d.ts +17 -0
  241. package/dist/types/next-schema/nodes/layoutColumn.d.ts +17 -0
  242. package/dist/types/next-schema/nodes/layoutSection.d.ts +17 -0
  243. package/dist/types/next-schema/nodes/list.d.ts +34 -0
  244. package/dist/types/next-schema/nodes/media.d.ts +17 -0
  245. package/dist/types/next-schema/nodes/mediaGroup.d.ts +17 -0
  246. package/dist/types/next-schema/nodes/mediaInline.d.ts +17 -0
  247. package/dist/types/next-schema/nodes/mediaSingle.d.ts +20 -0
  248. package/dist/types/next-schema/nodes/mention.d.ts +17 -0
  249. package/dist/types/next-schema/nodes/multiBodiedExtension.d.ts +17 -0
  250. package/dist/types/next-schema/nodes/nestedExpand.d.ts +17 -0
  251. package/dist/types/next-schema/nodes/panel.d.ts +17 -0
  252. package/dist/types/next-schema/nodes/paragraph.d.ts +23 -0
  253. package/dist/types/next-schema/nodes/placeholder.d.ts +17 -0
  254. package/dist/types/next-schema/nodes/rule.d.ts +17 -0
  255. package/dist/types/next-schema/nodes/status.d.ts +17 -0
  256. package/dist/types/next-schema/nodes/table.d.ts +17 -0
  257. package/dist/types/next-schema/nodes/tableCell.d.ts +17 -0
  258. package/dist/types/next-schema/nodes/tableHeader.d.ts +17 -0
  259. package/dist/types/next-schema/nodes/tableRow.d.ts +17 -0
  260. package/dist/types/next-schema/nodes/task.d.ts +34 -0
  261. package/dist/types/next-schema/nodes/text.d.ts +21 -0
  262. package/package.json +5 -2
  263. package/schema-generators/full-schema.ts +7 -0
@@ -0,0 +1,83 @@
1
+ import { adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { annotation } from '../marks/annotation';
3
+ import { border } from '../marks/border';
4
+ import { link } from '../marks/link';
5
+ export var media = adfNode('media').define({
6
+ selectable: true,
7
+ marks: [link, border, annotation],
8
+ attrs: {
9
+ type: {
10
+ type: 'enum',
11
+ values: ['file', 'link', 'external'],
12
+ default: 'file'
13
+ },
14
+ alt: {
15
+ type: 'string',
16
+ default: '',
17
+ optional: true
18
+ },
19
+ collection: {
20
+ type: 'string',
21
+ default: ''
22
+ },
23
+ id: {
24
+ type: 'string',
25
+ default: ''
26
+ },
27
+ height: {
28
+ type: 'number',
29
+ default: null,
30
+ optional: true
31
+ },
32
+ occurrenceKey: {
33
+ type: 'string',
34
+ default: null,
35
+ optional: true
36
+ },
37
+ url: {
38
+ type: 'string',
39
+ default: null,
40
+ optional: true
41
+ },
42
+ width: {
43
+ type: 'number',
44
+ default: null,
45
+ optional: true
46
+ },
47
+ __contextId: {
48
+ type: 'string',
49
+ default: null,
50
+ optional: true
51
+ },
52
+ __displayType: {
53
+ type: 'string',
54
+ default: null,
55
+ optional: true
56
+ },
57
+ __external: {
58
+ type: 'number',
59
+ default: null,
60
+ optional: true
61
+ },
62
+ __fileMimeType: {
63
+ type: 'string',
64
+ default: null,
65
+ optional: true
66
+ },
67
+ __fileName: {
68
+ type: 'string',
69
+ default: null,
70
+ optional: true
71
+ },
72
+ __fileSize: {
73
+ type: 'string',
74
+ default: null,
75
+ optional: true
76
+ },
77
+ __mediaTraceId: {
78
+ type: 'string',
79
+ default: null,
80
+ optional: true
81
+ }
82
+ }
83
+ });
@@ -0,0 +1,6 @@
1
+ import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { media } from './media';
3
+ export var mediaGroup = adfNode('mediaGroup').define({
4
+ selectable: false,
5
+ content: [$onePlus($or(media))]
6
+ });
@@ -0,0 +1,72 @@
1
+ import { $or, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { annotation } from '../marks/annotation';
3
+ import { border } from '../marks/border';
4
+ import { link } from '../marks/link';
5
+ import { caption } from './caption';
6
+ import { media } from './media';
7
+ export var mediaInline = adfNode('mediaInline').define({
8
+ selectable: true,
9
+ atom: false,
10
+ marks: [link, border, annotation],
11
+ attrs: {
12
+ data: {
13
+ type: 'object',
14
+ optional: true
15
+ },
16
+ type: {
17
+ type: 'enum',
18
+ values: ['file', 'link', 'image'],
19
+ optional: true
20
+ },
21
+ id: {
22
+ type: 'string'
23
+ },
24
+ collection: {
25
+ type: 'string'
26
+ },
27
+ occurrenceKey: {
28
+ type: 'string',
29
+ optional: true
30
+ },
31
+ width: {
32
+ type: 'number',
33
+ default: null,
34
+ optional: true
35
+ },
36
+ height: {
37
+ type: 'number',
38
+ default: null,
39
+ optional: true
40
+ },
41
+ __fileName: {
42
+ type: 'string',
43
+ optional: true
44
+ },
45
+ __fileSize: {
46
+ type: 'number',
47
+ optional: true
48
+ },
49
+ __fileMimeType: {
50
+ type: 'string',
51
+ optional: true
52
+ },
53
+ __displayType: {
54
+ type: 'enum',
55
+ values: ['file', 'thumbnail'],
56
+ optional: true
57
+ },
58
+ __contextId: {
59
+ type: 'string',
60
+ optional: true
61
+ },
62
+ __mediaTraceId: {
63
+ type: 'string',
64
+ optional: true
65
+ },
66
+ __external: {
67
+ type: 'boolean',
68
+ optional: true
69
+ }
70
+ },
71
+ content: [$or(media), $or(caption)]
72
+ });
@@ -0,0 +1,33 @@
1
+ import { $or, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { link } from '../marks/link';
3
+ import { caption } from './caption';
4
+ import { media } from './media';
5
+ export var mediaSingle = adfNode('mediaSingle').define({
6
+ atom: false,
7
+ selectable: true,
8
+ marks: [link],
9
+ attrs: {
10
+ width: {
11
+ type: 'number',
12
+ minimum: 0,
13
+ // maximum: 100, – can't encode both? 100 is for percentage, and for pixel it's unlimited
14
+ default: null,
15
+ optional: true
16
+ },
17
+ layout: {
18
+ type: 'enum',
19
+ values: ['wrap-right', 'center', 'wrap-left', 'wide', 'full-width', 'align-end', 'align-start'],
20
+ default: 'center'
21
+ },
22
+ widthType: {
23
+ type: 'enum',
24
+ values: ['pixel', 'percentage'],
25
+ default: 'percentage',
26
+ optional: true
27
+ }
28
+ },
29
+ content: [$or(media)]
30
+ }).variant('caption', {
31
+ atom: false,
32
+ content: [$or(media), $or(caption)]
33
+ });
@@ -0,0 +1,27 @@
1
+ import { adfNode } from '@atlaskit/adf-schema-generator';
2
+ export var mention = adfNode('mention').define({
3
+ inline: true,
4
+ selectable: true,
5
+ attrs: {
6
+ id: {
7
+ type: 'string',
8
+ default: ''
9
+ },
10
+ text: {
11
+ type: 'string',
12
+ default: '',
13
+ optional: true
14
+ },
15
+ accessLevel: {
16
+ type: 'string',
17
+ default: '',
18
+ optional: true
19
+ },
20
+ userType: {
21
+ type: 'enum',
22
+ values: ['DEFAULT', 'SPECIAL', 'APP'],
23
+ default: null,
24
+ optional: true
25
+ }
26
+ }
27
+ });
@@ -0,0 +1,40 @@
1
+ import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { blockRootOnlyGroup } from '../groups/blockRootOnlyGroup';
3
+ import { extensionFrame } from './extensionFrame';
4
+ export var multiBodiedExtension = adfNode('multiBodiedExtension').define({
5
+ definingAsContext: true,
6
+ selectable: true,
7
+ group: blockRootOnlyGroup,
8
+ attrs: {
9
+ extensionKey: {
10
+ type: 'string',
11
+ default: ''
12
+ },
13
+ extensionType: {
14
+ type: 'string',
15
+ default: ''
16
+ },
17
+ parameters: {
18
+ type: 'object',
19
+ optional: true,
20
+ default: null
21
+ },
22
+ text: {
23
+ type: 'string',
24
+ optional: true,
25
+ default: null
26
+ },
27
+ layout: {
28
+ type: 'enum',
29
+ values: ['default', 'wide', 'full-width'],
30
+ optional: true,
31
+ default: 'default'
32
+ },
33
+ localId: {
34
+ type: 'string',
35
+ optional: true,
36
+ default: null
37
+ }
38
+ },
39
+ content: [$onePlus($or(extensionFrame))]
40
+ });
@@ -0,0 +1,29 @@
1
+ import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { blockquote } from './blockquote';
3
+ import { codeBlock } from './codeBlock';
4
+ import { decisionList } from './decisionList';
5
+ import { heading } from './heading';
6
+ import { bulletList, orderedList } from './list';
7
+ import { mediaGroup } from './mediaGroup';
8
+ import { mediaSingle } from './mediaSingle';
9
+ import { panel } from './panel';
10
+ import { paragraph } from './paragraph';
11
+ import { rule } from './rule';
12
+ import { taskList } from './task';
13
+ export var nestedExpand = adfNode('nestedExpand').define({
14
+ isolating: true,
15
+ selectable: true,
16
+ attrs: {
17
+ title: {
18
+ type: 'string',
19
+ default: '',
20
+ optional: true
21
+ },
22
+ __expanded: {
23
+ type: 'boolean',
24
+ default: true,
25
+ optional: true
26
+ }
27
+ },
28
+ content: [$onePlus($or(paragraph, heading, mediaSingle, mediaGroup, codeBlock, bulletList, orderedList, taskList, decisionList, rule, panel, blockquote))]
29
+ });
@@ -0,0 +1,42 @@
1
+ import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { blockCard } from './blockCard';
3
+ import { codeBlock } from './codeBlock';
4
+ import { decisionList } from './decisionList';
5
+ import { heading } from './heading';
6
+ import { bulletList, orderedList } from './list';
7
+ import { mediaGroup } from './mediaGroup';
8
+ import { mediaSingle } from './mediaSingle';
9
+ import { paragraph } from './paragraph';
10
+ import { rule } from './rule';
11
+ import { taskList } from './task';
12
+ export var panel = adfNode('panel').define({
13
+ selectable: true,
14
+ attrs: {
15
+ panelType: {
16
+ type: 'enum',
17
+ values: ['info', 'note', 'tip', 'warning', 'error', 'success'],
18
+ default: 'info'
19
+ },
20
+ panelIcon: {
21
+ type: 'string',
22
+ default: null,
23
+ optional: true
24
+ },
25
+ panelIconId: {
26
+ type: 'string',
27
+ default: null,
28
+ optional: true
29
+ },
30
+ panelIconText: {
31
+ type: 'string',
32
+ default: null,
33
+ optional: true
34
+ },
35
+ panelColor: {
36
+ type: 'string',
37
+ default: null,
38
+ optional: true
39
+ }
40
+ },
41
+ content: [$onePlus($or(paragraph, heading, bulletList, orderedList, blockCard, codeBlock, mediaGroup, mediaSingle, decisionList, taskList, rule))]
42
+ });
@@ -0,0 +1,15 @@
1
+ import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { inlineGroup } from '../groups/inlineGroup';
3
+ import { alignment } from '../marks/alignment';
4
+ import { indentation } from '../marks/indentation';
5
+ export var paragraph = adfNode('paragraph').define({
6
+ selectable: false,
7
+ marks: [alignment],
8
+ content: [$zeroPlus($or(inlineGroup))]
9
+ }).variant('with_alignment', {
10
+ marks: [alignment]
11
+ }).variant('with_indentation', {
12
+ marks: [indentation]
13
+ }).variant('with_marks', {
14
+ marks: [alignment, indentation]
15
+ });
@@ -0,0 +1,10 @@
1
+ import { adfNode } from '@atlaskit/adf-schema-generator';
2
+ export var placeholder = adfNode('placeholder').define({
3
+ selectable: false,
4
+ attrs: {
5
+ text: {
6
+ type: 'string',
7
+ default: ''
8
+ }
9
+ }
10
+ });
@@ -0,0 +1,2 @@
1
+ import { adfNode } from '@atlaskit/adf-schema-generator';
2
+ export var rule = adfNode('rule').define({});
@@ -0,0 +1,25 @@
1
+ import { adfNode } from '@atlaskit/adf-schema-generator';
2
+ export var status = adfNode('status').define({
3
+ selectable: true,
4
+ attrs: {
5
+ text: {
6
+ type: 'string',
7
+ default: ''
8
+ },
9
+ color: {
10
+ type: 'enum',
11
+ values: ['neutral', 'purple', 'blue', 'red', 'yellow', 'green'],
12
+ default: ''
13
+ },
14
+ localId: {
15
+ type: 'string',
16
+ optional: true,
17
+ default: ''
18
+ },
19
+ style: {
20
+ type: 'string',
21
+ optional: true,
22
+ default: ''
23
+ }
24
+ }
25
+ });
@@ -0,0 +1,37 @@
1
+ import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { fragment } from '../marks/fragment';
3
+ import { tableRow } from './tableRow';
4
+ export var table = adfNode('table').define({
5
+ isolating: true,
6
+ selectable: true,
7
+ marks: [fragment],
8
+ attrs: {
9
+ isNumberColumnEnabled: {
10
+ type: 'boolean',
11
+ default: false,
12
+ optional: true
13
+ },
14
+ layout: {
15
+ type: 'enum',
16
+ values: ['default', 'wide', 'full-width'],
17
+ default: 'default',
18
+ optional: true
19
+ },
20
+ localId: {
21
+ type: 'string',
22
+ default: '',
23
+ optional: true
24
+ },
25
+ width: {
26
+ type: 'number',
27
+ default: null,
28
+ optional: true
29
+ },
30
+ __autoSize: {
31
+ type: 'boolean',
32
+ default: false,
33
+ optional: true
34
+ }
35
+ },
36
+ content: [$onePlus($or(tableRow))]
37
+ });
@@ -0,0 +1,44 @@
1
+ import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { blockCard } from './blockCard';
3
+ import { blockquote } from './blockquote';
4
+ import { codeBlock } from './codeBlock';
5
+ import { decisionList } from './decisionList';
6
+ import { embedCard } from './embedCard';
7
+ import { extension } from './extension';
8
+ import { heading } from './heading';
9
+ import { bulletList, orderedList } from './list';
10
+ import { mediaGroup } from './mediaGroup';
11
+ import { mediaSingle } from './mediaSingle';
12
+ import { nestedExpand } from './nestedExpand';
13
+ import { panel } from './panel';
14
+ import { paragraph } from './paragraph';
15
+ import { rule } from './rule';
16
+ import { taskList } from './task';
17
+ export var tableCell = adfNode('tableCell').define({
18
+ isolating: true,
19
+ selectable: false,
20
+ tableRole: 'cell',
21
+ attrs: {
22
+ colspan: {
23
+ type: 'number',
24
+ default: 1,
25
+ optional: true
26
+ },
27
+ rowspan: {
28
+ type: 'number',
29
+ default: 1,
30
+ optional: true
31
+ },
32
+ colswidth: {
33
+ type: 'numberList',
34
+ default: [],
35
+ optional: true
36
+ },
37
+ background: {
38
+ type: 'string',
39
+ default: '',
40
+ optional: true
41
+ }
42
+ },
43
+ content: [$onePlus($or(panel, paragraph, paragraph.use('with_marks'), blockquote, orderedList, bulletList, rule, heading, heading.use('with_alignment'), heading.use('with_indentation'), codeBlock, mediaGroup, mediaSingle, decisionList, taskList, extension, blockCard, nestedExpand, embedCard))]
44
+ });
@@ -0,0 +1,44 @@
1
+ import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { blockCard } from './blockCard';
3
+ import { blockquote } from './blockquote';
4
+ import { codeBlock } from './codeBlock';
5
+ import { decisionList } from './decisionList';
6
+ import { embedCard } from './embedCard';
7
+ import { extension } from './extension';
8
+ import { heading } from './heading';
9
+ import { bulletList, orderedList } from './list';
10
+ import { mediaGroup } from './mediaGroup';
11
+ import { mediaSingle } from './mediaSingle';
12
+ import { nestedExpand } from './nestedExpand';
13
+ import { panel } from './panel';
14
+ import { paragraph } from './paragraph';
15
+ import { rule } from './rule';
16
+ import { taskList } from './task';
17
+ export var tableHeader = adfNode('tableHeader').define({
18
+ isolating: true,
19
+ selectable: false,
20
+ tableRole: 'header_cell',
21
+ attrs: {
22
+ colspan: {
23
+ type: 'number',
24
+ default: 1,
25
+ optional: true
26
+ },
27
+ rowspan: {
28
+ type: 'number',
29
+ default: 1,
30
+ optional: true
31
+ },
32
+ colswidth: {
33
+ type: 'numberList',
34
+ default: [],
35
+ optional: true
36
+ },
37
+ background: {
38
+ type: 'string',
39
+ default: '',
40
+ optional: true
41
+ }
42
+ },
43
+ content: [$onePlus($or(panel, paragraph, paragraph.use('with_marks'), blockquote, orderedList, bulletList, rule, heading, heading.use('with_alignment'), heading.use('with_indentation'), codeBlock, mediaGroup, mediaSingle, decisionList, taskList, extension, blockCard, nestedExpand, embedCard))]
44
+ });
@@ -0,0 +1,7 @@
1
+ import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { tableCell } from './tableCell';
3
+ import { tableHeader } from './tableHeader';
4
+ export var tableRow = adfNode('tableRow').define({
5
+ selectable: false,
6
+ content: [$onePlus($or(tableCell, tableHeader))]
7
+ });
@@ -0,0 +1,31 @@
1
+ import { $onePlus, $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { inlineGroup } from '../groups/inlineGroup';
3
+ export var taskItem = adfNode('taskItem');
4
+ export var taskList = adfNode('taskList');
5
+ taskItem.define({
6
+ defining: true,
7
+ selectable: false,
8
+ attrs: {
9
+ localId: {
10
+ type: 'string',
11
+ default: ''
12
+ },
13
+ state: {
14
+ type: 'enum',
15
+ values: ['TODO', 'DONE'],
16
+ default: 'TODO'
17
+ }
18
+ },
19
+ content: [$zeroPlus($or(inlineGroup))]
20
+ });
21
+ taskList.define({
22
+ defining: true,
23
+ selectable: false,
24
+ attrs: {
25
+ localId: {
26
+ type: 'string',
27
+ default: ''
28
+ }
29
+ },
30
+ content: [$onePlus($or(taskItem)), $zeroPlus($or(taskItem, taskList))]
31
+ });
@@ -0,0 +1,15 @@
1
+ import { adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { annotation } from '../marks/annotation';
3
+ import { code } from '../marks/code';
4
+ import { em } from '../marks/em';
5
+ import { link } from '../marks/link';
6
+ import { strike } from '../marks/strike';
7
+ import { strong } from '../marks/strong';
8
+ import { subsup } from '../marks/subsup';
9
+ import { textColor } from '../marks/textColor';
10
+ import { underline } from '../marks/underline';
11
+ export var text = adfNode('text').define({}).variant('formatted', {
12
+ marks: [link, em, strong, strike, subsup, underline, textColor, annotation]
13
+ }).variant('code_inline', {
14
+ marks: [code, link, annotation]
15
+ });
@@ -0,0 +1,18 @@
1
+ declare const doc: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
2
+ root?: boolean;
3
+ atom?: boolean;
4
+ attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
5
+ inline?: true;
6
+ code?: boolean;
7
+ content?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentSpec[];
8
+ defining?: boolean;
9
+ definingAsContext?: boolean;
10
+ definingForContent?: boolean;
11
+ draggable?: boolean;
12
+ group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
13
+ isolating?: boolean;
14
+ marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
15
+ selectable?: boolean;
16
+ whitespace?: "pre" | "normal";
17
+ }>;
18
+ export default doc;
@@ -0,0 +1 @@
1
+ export declare const alignementMarkExclusionGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkGroup").ADFMarkGroup;
@@ -0,0 +1 @@
1
+ export declare const annotationGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkGroup").ADFMarkGroup;
@@ -0,0 +1 @@
1
+ export declare const blockGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
@@ -0,0 +1 @@
1
+ export declare const blockRootOnlyGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
@@ -0,0 +1 @@
1
+ export declare const colorGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkGroup").ADFMarkGroup;
@@ -0,0 +1 @@
1
+ export declare const fontStyleGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkGroup").ADFMarkGroup;
@@ -0,0 +1 @@
1
+ export declare const indentationMarkExclusionGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkGroup").ADFMarkGroup;
@@ -0,0 +1 @@
1
+ export declare const inlineGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
@@ -0,0 +1 @@
1
+ export declare const linkMarkGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkGroup").ADFMarkGroup;