@atlaskit/adf-schema 36.4.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 (262) hide show
  1. package/CHANGELOG.md +6 -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 +3 -3
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.multiBodiedExtension = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _blockRootOnlyGroup = require("../groups/blockRootOnlyGroup");
9
+ var _extensionFrame = require("./extensionFrame");
10
+ var multiBodiedExtension = exports.multiBodiedExtension = (0, _adfSchemaGenerator.adfNode)('multiBodiedExtension').define({
11
+ definingAsContext: true,
12
+ selectable: true,
13
+ group: _blockRootOnlyGroup.blockRootOnlyGroup,
14
+ attrs: {
15
+ extensionKey: {
16
+ type: 'string',
17
+ default: ''
18
+ },
19
+ extensionType: {
20
+ type: 'string',
21
+ default: ''
22
+ },
23
+ parameters: {
24
+ type: 'object',
25
+ optional: true,
26
+ default: null
27
+ },
28
+ text: {
29
+ type: 'string',
30
+ optional: true,
31
+ default: null
32
+ },
33
+ layout: {
34
+ type: 'enum',
35
+ values: ['default', 'wide', 'full-width'],
36
+ optional: true,
37
+ default: 'default'
38
+ },
39
+ localId: {
40
+ type: 'string',
41
+ optional: true,
42
+ default: null
43
+ }
44
+ },
45
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_extensionFrame.extensionFrame))]
46
+ });
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.nestedExpand = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _blockquote = require("./blockquote");
9
+ var _codeBlock = require("./codeBlock");
10
+ var _decisionList = require("./decisionList");
11
+ var _heading = require("./heading");
12
+ var _list = require("./list");
13
+ var _mediaGroup = require("./mediaGroup");
14
+ var _mediaSingle = require("./mediaSingle");
15
+ var _panel = require("./panel");
16
+ var _paragraph = require("./paragraph");
17
+ var _rule = require("./rule");
18
+ var _task = require("./task");
19
+ var nestedExpand = exports.nestedExpand = (0, _adfSchemaGenerator.adfNode)('nestedExpand').define({
20
+ isolating: true,
21
+ selectable: true,
22
+ attrs: {
23
+ title: {
24
+ type: 'string',
25
+ default: '',
26
+ optional: true
27
+ },
28
+ __expanded: {
29
+ type: 'boolean',
30
+ default: true,
31
+ optional: true
32
+ }
33
+ },
34
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph, _heading.heading, _mediaSingle.mediaSingle, _mediaGroup.mediaGroup, _codeBlock.codeBlock, _list.bulletList, _list.orderedList, _task.taskList, _decisionList.decisionList, _rule.rule, _panel.panel, _blockquote.blockquote))]
35
+ });
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.panel = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _blockCard = require("./blockCard");
9
+ var _codeBlock = require("./codeBlock");
10
+ var _decisionList = require("./decisionList");
11
+ var _heading = require("./heading");
12
+ var _list = require("./list");
13
+ var _mediaGroup = require("./mediaGroup");
14
+ var _mediaSingle = require("./mediaSingle");
15
+ var _paragraph = require("./paragraph");
16
+ var _rule = require("./rule");
17
+ var _task = require("./task");
18
+ var panel = exports.panel = (0, _adfSchemaGenerator.adfNode)('panel').define({
19
+ selectable: true,
20
+ attrs: {
21
+ panelType: {
22
+ type: 'enum',
23
+ values: ['info', 'note', 'tip', 'warning', 'error', 'success'],
24
+ default: 'info'
25
+ },
26
+ panelIcon: {
27
+ type: 'string',
28
+ default: null,
29
+ optional: true
30
+ },
31
+ panelIconId: {
32
+ type: 'string',
33
+ default: null,
34
+ optional: true
35
+ },
36
+ panelIconText: {
37
+ type: 'string',
38
+ default: null,
39
+ optional: true
40
+ },
41
+ panelColor: {
42
+ type: 'string',
43
+ default: null,
44
+ optional: true
45
+ }
46
+ },
47
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph, _heading.heading, _list.bulletList, _list.orderedList, _blockCard.blockCard, _codeBlock.codeBlock, _mediaGroup.mediaGroup, _mediaSingle.mediaSingle, _decisionList.decisionList, _task.taskList, _rule.rule))]
48
+ });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.paragraph = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _inlineGroup = require("../groups/inlineGroup");
9
+ var _alignment = require("../marks/alignment");
10
+ var _indentation = require("../marks/indentation");
11
+ var paragraph = exports.paragraph = (0, _adfSchemaGenerator.adfNode)('paragraph').define({
12
+ selectable: false,
13
+ marks: [_alignment.alignment],
14
+ content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup))]
15
+ }).variant('with_alignment', {
16
+ marks: [_alignment.alignment]
17
+ }).variant('with_indentation', {
18
+ marks: [_indentation.indentation]
19
+ }).variant('with_marks', {
20
+ marks: [_alignment.alignment, _indentation.indentation]
21
+ });
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.placeholder = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var placeholder = exports.placeholder = (0, _adfSchemaGenerator.adfNode)('placeholder').define({
9
+ selectable: false,
10
+ attrs: {
11
+ text: {
12
+ type: 'string',
13
+ default: ''
14
+ }
15
+ }
16
+ });
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.rule = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var rule = exports.rule = (0, _adfSchemaGenerator.adfNode)('rule').define({});
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.status = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var status = exports.status = (0, _adfSchemaGenerator.adfNode)('status').define({
9
+ selectable: true,
10
+ attrs: {
11
+ text: {
12
+ type: 'string',
13
+ default: ''
14
+ },
15
+ color: {
16
+ type: 'enum',
17
+ values: ['neutral', 'purple', 'blue', 'red', 'yellow', 'green'],
18
+ default: ''
19
+ },
20
+ localId: {
21
+ type: 'string',
22
+ optional: true,
23
+ default: ''
24
+ },
25
+ style: {
26
+ type: 'string',
27
+ optional: true,
28
+ default: ''
29
+ }
30
+ }
31
+ });
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.table = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _fragment = require("../marks/fragment");
9
+ var _tableRow = require("./tableRow");
10
+ var table = exports.table = (0, _adfSchemaGenerator.adfNode)('table').define({
11
+ isolating: true,
12
+ selectable: true,
13
+ marks: [_fragment.fragment],
14
+ attrs: {
15
+ isNumberColumnEnabled: {
16
+ type: 'boolean',
17
+ default: false,
18
+ optional: true
19
+ },
20
+ layout: {
21
+ type: 'enum',
22
+ values: ['default', 'wide', 'full-width'],
23
+ default: 'default',
24
+ optional: true
25
+ },
26
+ localId: {
27
+ type: 'string',
28
+ default: '',
29
+ optional: true
30
+ },
31
+ width: {
32
+ type: 'number',
33
+ default: null,
34
+ optional: true
35
+ },
36
+ __autoSize: {
37
+ type: 'boolean',
38
+ default: false,
39
+ optional: true
40
+ }
41
+ },
42
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_tableRow.tableRow))]
43
+ });
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.tableCell = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _blockCard = require("./blockCard");
9
+ var _blockquote = require("./blockquote");
10
+ var _codeBlock = require("./codeBlock");
11
+ var _decisionList = require("./decisionList");
12
+ var _embedCard = require("./embedCard");
13
+ var _extension = require("./extension");
14
+ var _heading = require("./heading");
15
+ var _list = require("./list");
16
+ var _mediaGroup = require("./mediaGroup");
17
+ var _mediaSingle = require("./mediaSingle");
18
+ var _nestedExpand = require("./nestedExpand");
19
+ var _panel = require("./panel");
20
+ var _paragraph = require("./paragraph");
21
+ var _rule = require("./rule");
22
+ var _task = require("./task");
23
+ var tableCell = exports.tableCell = (0, _adfSchemaGenerator.adfNode)('tableCell').define({
24
+ isolating: true,
25
+ selectable: false,
26
+ tableRole: 'cell',
27
+ attrs: {
28
+ colspan: {
29
+ type: 'number',
30
+ default: 1,
31
+ optional: true
32
+ },
33
+ rowspan: {
34
+ type: 'number',
35
+ default: 1,
36
+ optional: true
37
+ },
38
+ colswidth: {
39
+ type: 'numberList',
40
+ default: [],
41
+ optional: true
42
+ },
43
+ background: {
44
+ type: 'string',
45
+ default: '',
46
+ optional: true
47
+ }
48
+ },
49
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_panel.panel, _paragraph.paragraph, _paragraph.paragraph.use('with_marks'), _blockquote.blockquote, _list.orderedList, _list.bulletList, _rule.rule, _heading.heading, _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _codeBlock.codeBlock, _mediaGroup.mediaGroup, _mediaSingle.mediaSingle, _decisionList.decisionList, _task.taskList, _extension.extension, _blockCard.blockCard, _nestedExpand.nestedExpand, _embedCard.embedCard))]
50
+ });
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.tableHeader = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _blockCard = require("./blockCard");
9
+ var _blockquote = require("./blockquote");
10
+ var _codeBlock = require("./codeBlock");
11
+ var _decisionList = require("./decisionList");
12
+ var _embedCard = require("./embedCard");
13
+ var _extension = require("./extension");
14
+ var _heading = require("./heading");
15
+ var _list = require("./list");
16
+ var _mediaGroup = require("./mediaGroup");
17
+ var _mediaSingle = require("./mediaSingle");
18
+ var _nestedExpand = require("./nestedExpand");
19
+ var _panel = require("./panel");
20
+ var _paragraph = require("./paragraph");
21
+ var _rule = require("./rule");
22
+ var _task = require("./task");
23
+ var tableHeader = exports.tableHeader = (0, _adfSchemaGenerator.adfNode)('tableHeader').define({
24
+ isolating: true,
25
+ selectable: false,
26
+ tableRole: 'header_cell',
27
+ attrs: {
28
+ colspan: {
29
+ type: 'number',
30
+ default: 1,
31
+ optional: true
32
+ },
33
+ rowspan: {
34
+ type: 'number',
35
+ default: 1,
36
+ optional: true
37
+ },
38
+ colswidth: {
39
+ type: 'numberList',
40
+ default: [],
41
+ optional: true
42
+ },
43
+ background: {
44
+ type: 'string',
45
+ default: '',
46
+ optional: true
47
+ }
48
+ },
49
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_panel.panel, _paragraph.paragraph, _paragraph.paragraph.use('with_marks'), _blockquote.blockquote, _list.orderedList, _list.bulletList, _rule.rule, _heading.heading, _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _codeBlock.codeBlock, _mediaGroup.mediaGroup, _mediaSingle.mediaSingle, _decisionList.decisionList, _task.taskList, _extension.extension, _blockCard.blockCard, _nestedExpand.nestedExpand, _embedCard.embedCard))]
50
+ });
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.tableRow = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _tableCell = require("./tableCell");
9
+ var _tableHeader = require("./tableHeader");
10
+ var tableRow = exports.tableRow = (0, _adfSchemaGenerator.adfNode)('tableRow').define({
11
+ selectable: false,
12
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_tableCell.tableCell, _tableHeader.tableHeader))]
13
+ });
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.taskList = exports.taskItem = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _inlineGroup = require("../groups/inlineGroup");
9
+ var taskItem = exports.taskItem = (0, _adfSchemaGenerator.adfNode)('taskItem');
10
+ var taskList = exports.taskList = (0, _adfSchemaGenerator.adfNode)('taskList');
11
+ taskItem.define({
12
+ defining: true,
13
+ selectable: false,
14
+ attrs: {
15
+ localId: {
16
+ type: 'string',
17
+ default: ''
18
+ },
19
+ state: {
20
+ type: 'enum',
21
+ values: ['TODO', 'DONE'],
22
+ default: 'TODO'
23
+ }
24
+ },
25
+ content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup))]
26
+ });
27
+ taskList.define({
28
+ defining: true,
29
+ selectable: false,
30
+ attrs: {
31
+ localId: {
32
+ type: 'string',
33
+ default: ''
34
+ }
35
+ },
36
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(taskItem)), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(taskItem, taskList))]
37
+ });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.text = void 0;
7
+ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
+ var _annotation = require("../marks/annotation");
9
+ var _code = require("../marks/code");
10
+ var _em = require("../marks/em");
11
+ var _link = require("../marks/link");
12
+ var _strike = require("../marks/strike");
13
+ var _strong = require("../marks/strong");
14
+ var _subsup = require("../marks/subsup");
15
+ var _textColor = require("../marks/textColor");
16
+ var _underline = require("../marks/underline");
17
+ var text = exports.text = (0, _adfSchemaGenerator.adfNode)('text').define({}).variant('formatted', {
18
+ marks: [_link.link, _em.em, _strong.strong, _strike.strike, _subsup.subsup, _underline.underline, _textColor.textColor, _annotation.annotation]
19
+ }).variant('code_inline', {
20
+ marks: [_code.code, _link.link, _annotation.annotation]
21
+ });
@@ -0,0 +1,9 @@
1
+ import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { blockGroup } from './groups/blockGroup';
3
+ import { layoutSection } from './nodes/layoutSection';
4
+ import { blockRootOnlyGroup } from './groups/blockRootOnlyGroup';
5
+ const doc = adfNode('doc').define({
6
+ root: true,
7
+ content: [$onePlus($or(blockGroup, layoutSection, blockRootOnlyGroup))]
8
+ });
9
+ export default doc;
@@ -0,0 +1,3 @@
1
+ import { adfMarkGroup } from '@atlaskit/adf-schema-generator';
2
+ import { alignment } from '../marks/alignment';
3
+ export const alignementMarkExclusionGroup = adfMarkGroup('alignmentMarkExclusion', [alignment]);
@@ -0,0 +1,2 @@
1
+ import { adfMarkGroup } from '@atlaskit/adf-schema-generator';
2
+ export const annotationGroup = adfMarkGroup('annotation');
@@ -0,0 +1,19 @@
1
+ import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
2
+ import { blockCard } from '../nodes/blockCard';
3
+ import { blockquote } from '../nodes/blockquote';
4
+ import { bodiedExtension } from '../nodes/bodiedExtension';
5
+ import { codeBlock } from '../nodes/codeBlock';
6
+ import { decisionList } from '../nodes/decisionList';
7
+ import { embedCard } from '../nodes/embedCard';
8
+ import { expand } from '../nodes/expand';
9
+ import { extension } from '../nodes/extension';
10
+ import { heading } from '../nodes/heading';
11
+ import { bulletList, orderedList } from '../nodes/list';
12
+ import { mediaGroup } from '../nodes/mediaGroup';
13
+ import { mediaSingle } from '../nodes/mediaSingle';
14
+ import { panel } from '../nodes/panel';
15
+ import { paragraph } from '../nodes/paragraph';
16
+ import { rule } from '../nodes/rule';
17
+ import { table } from '../nodes/table';
18
+ import { taskList } from '../nodes/task';
19
+ export const blockGroup = adfNodeGroup('block', [blockCard, codeBlock, mediaSingle, paragraph.use('with_marks'), taskList, orderedList, bulletList, blockquote, decisionList, embedCard, extension, heading, mediaGroup, rule, panel, table, bodiedExtension, expand]);
@@ -0,0 +1,2 @@
1
+ import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
2
+ export const blockRootOnlyGroup = adfNodeGroup('blockRootOnly');
@@ -0,0 +1,3 @@
1
+ import { adfMarkGroup } from '@atlaskit/adf-schema-generator';
2
+ import { textColor } from '../marks/textColor';
3
+ export const colorGroup = adfMarkGroup('color', [textColor]);
@@ -0,0 +1,7 @@
1
+ import { adfMarkGroup } from '@atlaskit/adf-schema-generator';
2
+ import { em } from '../marks/em';
3
+ import { strike } from '../marks/strike';
4
+ import { strong } from '../marks/strong';
5
+ import { subsup } from '../marks/subsup';
6
+ import { underline } from '../marks/underline';
7
+ export const fontStyleGroup = adfMarkGroup('fontStyle', [em, strike, strong, subsup, underline]);
@@ -0,0 +1,3 @@
1
+ import { adfMarkGroup } from '@atlaskit/adf-schema-generator';
2
+ import { indentation } from '../marks/indentation';
3
+ export const indentationMarkExclusionGroup = adfMarkGroup('indentationMarkExclusion', [indentation]);
@@ -0,0 +1,12 @@
1
+ import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
2
+ import { date } from '../nodes/date';
3
+ import { emoji } from '../nodes/emoji';
4
+ import { hardBreak } from '../nodes/hardBreak';
5
+ import { inlineCard } from '../nodes/inlineCard';
6
+ import { mention } from '../nodes/mention';
7
+ import { placeholder } from '../nodes/placeholder';
8
+ import { text } from '../nodes/text';
9
+ import { status } from '../nodes/status';
10
+ import { inlineExtension } from '../nodes/inlineExtension';
11
+ import { mediaInline } from '../nodes/mediaInline';
12
+ export const inlineGroup = adfNodeGroup('inline', [text, date, emoji, hardBreak, inlineCard, mention, placeholder, status, inlineExtension, mediaInline]);
@@ -0,0 +1,3 @@
1
+ import { adfMarkGroup } from '@atlaskit/adf-schema-generator';
2
+ import { link } from '../marks/link';
3
+ export const linkMarkGroup = adfMarkGroup('link', [link]);
@@ -0,0 +1,19 @@
1
+ import { blockCard } from '../nodes/blockCard';
2
+ import { blockquote } from '../nodes/blockquote';
3
+ import { codeBlock } from '../nodes/codeBlock';
4
+ import { decisionList } from '../nodes/decisionList';
5
+ import { embedCard } from '../nodes/embedCard';
6
+ import { extension } from '../nodes/extension';
7
+ import { heading } from '../nodes/heading';
8
+ import { bulletList, orderedList } from '../nodes/list';
9
+ import { mediaGroup } from '../nodes/mediaGroup';
10
+ import { mediaSingle } from '../nodes/mediaSingle';
11
+ import { panel } from '../nodes/panel';
12
+ import { paragraph } from '../nodes/paragraph';
13
+ import { rule } from '../nodes/rule';
14
+ import { table } from '../nodes/table';
15
+ import { taskList } from '../nodes/task';
16
+
17
+ // Not an actual group, but a collection of nodes that can't be nested inside each other
18
+ // TODO: make it an actual group
19
+ export const nonNestableBlockContent = [panel, paragraph, blockquote, orderedList, bulletList, rule, heading, codeBlock, mediaGroup, mediaSingle, decisionList, taskList, table, extension, blockCard, embedCard];
@@ -0,0 +1,2 @@
1
+ import { adfMarkGroup } from '@atlaskit/adf-schema-generator';
2
+ export const searchQueryMarkGroup = adfMarkGroup('searchQuery');
@@ -0,0 +1,12 @@
1
+ import { adfMark } from '@atlaskit/adf-schema-generator';
2
+ import { indentationMarkExclusionGroup } from '../groups/indentationMarkExclusionGroup';
3
+ export const alignment = adfMark('alignment').define({
4
+ excludes: [indentationMarkExclusionGroup],
5
+ attrs: {
6
+ align: {
7
+ type: 'enum',
8
+ values: ['center', 'end'],
9
+ default: 'center'
10
+ }
11
+ }
12
+ });
@@ -0,0 +1,15 @@
1
+ import { adfMark } from '@atlaskit/adf-schema-generator';
2
+ export const annotation = adfMark('annotation').define({
3
+ inclusive: true,
4
+ attrs: {
5
+ id: {
6
+ type: 'string',
7
+ default: ''
8
+ },
9
+ annotationType: {
10
+ type: 'enum',
11
+ values: ['inlineComment'],
12
+ default: 'inlineComment'
13
+ }
14
+ }
15
+ });
@@ -0,0 +1,14 @@
1
+ import { adfMark } from '@atlaskit/adf-schema-generator';
2
+ export const border = adfMark('border').define({
3
+ inclusive: false,
4
+ attrs: {
5
+ size: {
6
+ type: 'number',
7
+ minimum: 1,
8
+ maximum: 3
9
+ },
10
+ color: {
11
+ type: 'string'
12
+ }
13
+ }
14
+ });
@@ -0,0 +1,12 @@
1
+ import { adfMark } from '@atlaskit/adf-schema-generator';
2
+ export const breakout = adfMark('breakout').define({
3
+ spanning: false,
4
+ inclusive: true,
5
+ attrs: {
6
+ mode: {
7
+ type: 'enum',
8
+ values: ['wide', 'full-width'],
9
+ default: 'wide'
10
+ }
11
+ }
12
+ });
@@ -0,0 +1,9 @@
1
+ import { adfMark } from '@atlaskit/adf-schema-generator';
2
+ import { colorGroup } from '../groups/colorGroup';
3
+ import { fontStyleGroup } from '../groups/fontStyleGroup';
4
+ import { linkMarkGroup } from '../groups/linkMarkGroup';
5
+ import { searchQueryMarkGroup } from '../groups/searchQueryMarkGroup';
6
+ export const code = adfMark('code').define({
7
+ excludes: [fontStyleGroup, linkMarkGroup, searchQueryMarkGroup, colorGroup],
8
+ inclusive: true
9
+ });
@@ -0,0 +1,12 @@
1
+ import { adfMark } from '@atlaskit/adf-schema-generator';
2
+ export const dataConsumer = adfMark('dataConsumer').define({
3
+ attrs: {
4
+ sources: {
5
+ type: 'array',
6
+ items: {
7
+ type: 'string',
8
+ min: 1
9
+ }
10
+ }
11
+ }
12
+ });
@@ -0,0 +1,4 @@
1
+ import { adfMark } from '@atlaskit/adf-schema-generator';
2
+ export const em = adfMark('em').define({
3
+ inclusive: true
4
+ });
@@ -0,0 +1,15 @@
1
+ import { adfMark } from '@atlaskit/adf-schema-generator';
2
+ export const fragment = adfMark('fragment').define({
3
+ inclusive: false,
4
+ attrs: {
5
+ localId: {
6
+ type: 'string',
7
+ default: ''
8
+ },
9
+ name: {
10
+ type: 'string',
11
+ default: null,
12
+ optional: true
13
+ }
14
+ }
15
+ });