@atlaskit/renderer 108.0.0 → 108.1.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 (321) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/actions/package.json +2 -2
  3. package/consts/package.json +2 -2
  4. package/dist/cjs/react/marks/link.js +12 -2
  5. package/dist/cjs/react/nodes/blockCard.js +12 -2
  6. package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
  7. package/dist/cjs/react/nodes/embedCard.js +12 -2
  8. package/dist/cjs/react/nodes/inlineCard.js +16 -4
  9. package/dist/cjs/ui/Expand.js +8 -7
  10. package/dist/cjs/ui/Renderer/ErrorBoundary.js +8 -1
  11. package/dist/cjs/ui/Renderer/index.js +34 -23
  12. package/dist/cjs/ui/Renderer/style.js +11 -4
  13. package/dist/cjs/ui/SortingIcon.js +1 -2
  14. package/dist/cjs/version.json +1 -1
  15. package/dist/es2019/react/marks/link.js +12 -2
  16. package/dist/es2019/react/nodes/blockCard.js +12 -2
  17. package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +2 -2
  18. package/dist/es2019/react/nodes/embedCard.js +12 -2
  19. package/dist/es2019/react/nodes/inlineCard.js +16 -4
  20. package/dist/es2019/ui/Expand.js +8 -5
  21. package/dist/es2019/ui/Renderer/ErrorBoundary.js +8 -1
  22. package/dist/es2019/ui/Renderer/index.js +34 -23
  23. package/dist/es2019/ui/Renderer/style.js +33 -16
  24. package/dist/es2019/ui/SortingIcon.js +1 -2
  25. package/dist/es2019/version.json +1 -1
  26. package/dist/esm/react/marks/link.js +12 -2
  27. package/dist/esm/react/nodes/blockCard.js +12 -2
  28. package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +2 -2
  29. package/dist/esm/react/nodes/embedCard.js +12 -2
  30. package/dist/esm/react/nodes/inlineCard.js +16 -4
  31. package/dist/esm/ui/Expand.js +8 -7
  32. package/dist/esm/ui/Renderer/ErrorBoundary.js +8 -1
  33. package/dist/esm/ui/Renderer/index.js +34 -23
  34. package/dist/esm/ui/Renderer/style.js +11 -4
  35. package/dist/esm/ui/SortingIcon.js +1 -2
  36. package/dist/esm/version.json +1 -1
  37. package/dist/types/actions/index.d.ts +4 -4
  38. package/dist/types/analytics/enums.d.ts +1 -1
  39. package/dist/types/analytics/events.d.ts +29 -29
  40. package/dist/types/analytics/unsupported-content.d.ts +2 -2
  41. package/dist/types/i18n/cs.d.ts +6 -6
  42. package/dist/types/i18n/da.d.ts +6 -6
  43. package/dist/types/i18n/de.d.ts +6 -6
  44. package/dist/types/i18n/en.d.ts +6 -6
  45. package/dist/types/i18n/en_GB.d.ts +6 -6
  46. package/dist/types/i18n/en_ZZ.d.ts +6 -6
  47. package/dist/types/i18n/es.d.ts +6 -6
  48. package/dist/types/i18n/et.d.ts +1 -1
  49. package/dist/types/i18n/fi.d.ts +6 -6
  50. package/dist/types/i18n/fr.d.ts +6 -6
  51. package/dist/types/i18n/hu.d.ts +6 -6
  52. package/dist/types/i18n/it.d.ts +6 -6
  53. package/dist/types/i18n/ja.d.ts +6 -6
  54. package/dist/types/i18n/ko.d.ts +6 -6
  55. package/dist/types/i18n/nb.d.ts +6 -6
  56. package/dist/types/i18n/nl.d.ts +6 -6
  57. package/dist/types/i18n/pl.d.ts +6 -6
  58. package/dist/types/i18n/pt_BR.d.ts +6 -6
  59. package/dist/types/i18n/pt_PT.d.ts +1 -1
  60. package/dist/types/i18n/ru.d.ts +6 -6
  61. package/dist/types/i18n/sk.d.ts +1 -1
  62. package/dist/types/i18n/sv.d.ts +6 -6
  63. package/dist/types/i18n/th.d.ts +6 -6
  64. package/dist/types/i18n/tr.d.ts +6 -6
  65. package/dist/types/i18n/uk.d.ts +6 -6
  66. package/dist/types/i18n/vi.d.ts +6 -6
  67. package/dist/types/i18n/zh.d.ts +6 -6
  68. package/dist/types/i18n/zh_TW.d.ts +6 -6
  69. package/dist/types/react/hooks/use-observed-width.d.ts +2 -2
  70. package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +1 -1
  71. package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +1 -1
  72. package/dist/types/react/nodes/extension.d.ts +3 -3
  73. package/dist/types/react/nodes/fallback.d.ts +1 -1
  74. package/dist/types/react/nodes/heading-anchor.d.ts +2 -2
  75. package/dist/types/react/nodes/heading.d.ts +1 -1
  76. package/dist/types/react/nodes/index.d.ts +1 -1
  77. package/dist/types/react/nodes/media.d.ts +1 -1
  78. package/dist/types/react/nodes/mediaInline.d.ts +2 -2
  79. package/dist/types/react/nodes/table/sticky.d.ts +2 -2
  80. package/dist/types/react/nodes/table/table.d.ts +1 -1
  81. package/dist/types/react/nodes/table/types.d.ts +1 -1
  82. package/dist/types/react/nodes/table.d.ts +2 -2
  83. package/dist/types/react/nodes/tableCell.d.ts +2 -2
  84. package/dist/types/react/nodes/tableRow.d.ts +2 -2
  85. package/dist/types/react/nodes/text-wrapper.d.ts +1 -1
  86. package/dist/types/react/types.d.ts +2 -2
  87. package/dist/types/react/utils/getCardClickHandler.d.ts +1 -1
  88. package/dist/types/react/utils/performance/RenderTracking.d.ts +4 -4
  89. package/dist/types/render-document.d.ts +2 -2
  90. package/dist/types/renderer-context.d.ts +1 -1
  91. package/dist/types/text/nodes/index.d.ts +1 -1
  92. package/dist/types/types/mediaOptions.d.ts +1 -1
  93. package/dist/types/ui/Expand.d.ts +1 -1
  94. package/dist/types/ui/ExtensionRenderer.d.ts +2 -2
  95. package/dist/types/ui/MediaCard.d.ts +2 -2
  96. package/dist/types/ui/Renderer/ErrorBoundary.d.ts +1 -1
  97. package/dist/types/ui/Renderer/style.d.ts +2 -1
  98. package/dist/types/ui/Renderer/types.d.ts +6 -6
  99. package/dist/types/ui/RendererActionsContext/index.d.ts +1 -1
  100. package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +3 -3
  101. package/dist/types/ui/active-header-id-provider.d.ts +1 -1
  102. package/dist/types/ui/annotations/context.d.ts +4 -4
  103. package/dist/types/ui/annotations/draft/component.d.ts +2 -2
  104. package/dist/types/ui/annotations/draft/text.d.ts +1 -1
  105. package/dist/types/ui/annotations/element/index.d.ts +1 -1
  106. package/dist/types/ui/annotations/element/mark.d.ts +1 -1
  107. package/dist/types/ui/annotations/hooks/use-events.d.ts +3 -3
  108. package/dist/types/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
  109. package/dist/types/ui/annotations/hooks/use-load-annotations.d.ts +1 -1
  110. package/dist/types/ui/annotations/hooks/user-selection.d.ts +1 -1
  111. package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
  112. package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
  113. package/dist/types/ui/annotations/selection/wrapper.d.ts +1 -1
  114. package/dist/types/ui/annotations/types.d.ts +3 -3
  115. package/dist/types/ui/annotations/view/index.d.ts +1 -1
  116. package/dist/types/utils.d.ts +2 -2
  117. package/dist/types-ts4.5/actions/index.d.ts +61 -0
  118. package/dist/types-ts4.5/actions/matches-utils.d.ts +7 -0
  119. package/dist/types-ts4.5/actions.d.ts +3 -0
  120. package/dist/types-ts4.5/analytics/analyticsContext.d.ts +6 -0
  121. package/dist/types-ts4.5/analytics/enums.d.ts +58 -0
  122. package/dist/types-ts4.5/analytics/events.d.ts +118 -0
  123. package/dist/types-ts4.5/analytics/unsupported-content.d.ts +10 -0
  124. package/dist/types-ts4.5/consts.d.ts +12 -0
  125. package/dist/types-ts4.5/i18n/cs.d.ts +20 -0
  126. package/dist/types-ts4.5/i18n/da.d.ts +20 -0
  127. package/dist/types-ts4.5/i18n/de.d.ts +20 -0
  128. package/dist/types-ts4.5/i18n/en.d.ts +20 -0
  129. package/dist/types-ts4.5/i18n/en_GB.d.ts +20 -0
  130. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +20 -0
  131. package/dist/types-ts4.5/i18n/es.d.ts +20 -0
  132. package/dist/types-ts4.5/i18n/et.d.ts +8 -0
  133. package/dist/types-ts4.5/i18n/fi.d.ts +20 -0
  134. package/dist/types-ts4.5/i18n/fr.d.ts +20 -0
  135. package/dist/types-ts4.5/i18n/hu.d.ts +20 -0
  136. package/dist/types-ts4.5/i18n/index.d.ts +31 -0
  137. package/dist/types-ts4.5/i18n/it.d.ts +20 -0
  138. package/dist/types-ts4.5/i18n/ja.d.ts +20 -0
  139. package/dist/types-ts4.5/i18n/ko.d.ts +20 -0
  140. package/dist/types-ts4.5/i18n/nb.d.ts +20 -0
  141. package/dist/types-ts4.5/i18n/nl.d.ts +20 -0
  142. package/dist/types-ts4.5/i18n/pl.d.ts +20 -0
  143. package/dist/types-ts4.5/i18n/pt_BR.d.ts +20 -0
  144. package/dist/types-ts4.5/i18n/pt_PT.d.ts +8 -0
  145. package/dist/types-ts4.5/i18n/ru.d.ts +20 -0
  146. package/dist/types-ts4.5/i18n/sk.d.ts +8 -0
  147. package/dist/types-ts4.5/i18n/sv.d.ts +20 -0
  148. package/dist/types-ts4.5/i18n/th.d.ts +20 -0
  149. package/dist/types-ts4.5/i18n/tr.d.ts +20 -0
  150. package/dist/types-ts4.5/i18n/uk.d.ts +20 -0
  151. package/dist/types-ts4.5/i18n/vi.d.ts +20 -0
  152. package/dist/types-ts4.5/i18n/zh.d.ts +20 -0
  153. package/dist/types-ts4.5/i18n/zh_TW.d.ts +20 -0
  154. package/dist/types-ts4.5/index.d.ts +11 -0
  155. package/dist/types-ts4.5/messages.d.ts +61 -0
  156. package/dist/types-ts4.5/react/hooks/use-bidi-warnings.d.ts +10 -0
  157. package/dist/types-ts4.5/react/hooks/use-in-viewport.d.ts +5 -0
  158. package/dist/types-ts4.5/react/hooks/use-observed-width.d.ts +3 -0
  159. package/dist/types-ts4.5/react/index.d.ts +124 -0
  160. package/dist/types-ts4.5/react/marks/alignment.d.ts +4 -0
  161. package/dist/types-ts4.5/react/marks/annotation.d.ts +6 -0
  162. package/dist/types-ts4.5/react/marks/breakout.d.ts +6 -0
  163. package/dist/types-ts4.5/react/marks/code.d.ts +16 -0
  164. package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +8 -0
  165. package/dist/types-ts4.5/react/marks/data-consumer.d.ts +4 -0
  166. package/dist/types-ts4.5/react/marks/em.d.ts +3 -0
  167. package/dist/types-ts4.5/react/marks/fragment.d.ts +4 -0
  168. package/dist/types-ts4.5/react/marks/indentation.d.ts +4 -0
  169. package/dist/types-ts4.5/react/marks/index.d.ts +21 -0
  170. package/dist/types-ts4.5/react/marks/link.d.ts +9 -0
  171. package/dist/types-ts4.5/react/marks/strike.d.ts +3 -0
  172. package/dist/types-ts4.5/react/marks/strong.d.ts +3 -0
  173. package/dist/types-ts4.5/react/marks/subsup.d.ts +4 -0
  174. package/dist/types-ts4.5/react/marks/textColor.d.ts +4 -0
  175. package/dist/types-ts4.5/react/marks/underline.d.ts +3 -0
  176. package/dist/types-ts4.5/react/marks/unsupportedMark.d.ts +3 -0
  177. package/dist/types-ts4.5/react/marks/unsupportedNodeAttribute.d.ts +3 -0
  178. package/dist/types-ts4.5/react/nodes/blockCard.d.ts +12 -0
  179. package/dist/types-ts4.5/react/nodes/blockquote.d.ts +2 -0
  180. package/dist/types-ts4.5/react/nodes/bodiedExtension.d.ts +24 -0
  181. package/dist/types-ts4.5/react/nodes/bulletList.d.ts +5 -0
  182. package/dist/types-ts4.5/react/nodes/caption.d.ts +4 -0
  183. package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +15 -0
  184. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockButtonContainer.d.ts +12 -0
  185. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockContainer.d.ts +10 -0
  186. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +9 -0
  187. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +11 -0
  188. package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +9 -0
  189. package/dist/types-ts4.5/react/nodes/codeBlock/windowedCodeBlock.d.ts +4 -0
  190. package/dist/types-ts4.5/react/nodes/date.d.ts +11 -0
  191. package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +3 -0
  192. package/dist/types-ts4.5/react/nodes/decisionList.d.ts +7 -0
  193. package/dist/types-ts4.5/react/nodes/doc.d.ts +3 -0
  194. package/dist/types-ts4.5/react/nodes/embedCard.d.ts +17 -0
  195. package/dist/types-ts4.5/react/nodes/emoji.d.ts +12 -0
  196. package/dist/types-ts4.5/react/nodes/extension.d.ts +113 -0
  197. package/dist/types-ts4.5/react/nodes/fallback.d.ts +16 -0
  198. package/dist/types-ts4.5/react/nodes/hardBreak.d.ts +6 -0
  199. package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +14 -0
  200. package/dist/types-ts4.5/react/nodes/heading.d.ts +14 -0
  201. package/dist/types-ts4.5/react/nodes/index.d.ts +95 -0
  202. package/dist/types-ts4.5/react/nodes/inline.d.ts +1 -0
  203. package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +65 -0
  204. package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +18 -0
  205. package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +6 -0
  206. package/dist/types-ts4.5/react/nodes/layoutSection.d.ts +2 -0
  207. package/dist/types-ts4.5/react/nodes/listItem.d.ts +2 -0
  208. package/dist/types-ts4.5/react/nodes/media.d.ts +28 -0
  209. package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +29 -0
  210. package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +26 -0
  211. package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +23 -0
  212. package/dist/types-ts4.5/react/nodes/mediaSingle/styles.d.ts +2 -0
  213. package/dist/types-ts4.5/react/nodes/mention.d.ts +13 -0
  214. package/dist/types-ts4.5/react/nodes/orderedList.d.ts +9 -0
  215. package/dist/types-ts4.5/react/nodes/panel.d.ts +17 -0
  216. package/dist/types-ts4.5/react/nodes/paragraph.d.ts +3 -0
  217. package/dist/types-ts4.5/react/nodes/placeholder.d.ts +6 -0
  218. package/dist/types-ts4.5/react/nodes/rule.d.ts +2 -0
  219. package/dist/types-ts4.5/react/nodes/status.d.ts +10 -0
  220. package/dist/types-ts4.5/react/nodes/table/colgroup.d.ts +9 -0
  221. package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +38 -0
  222. package/dist/types-ts4.5/react/nodes/table/table.d.ts +7 -0
  223. package/dist/types-ts4.5/react/nodes/table/types.d.ts +7 -0
  224. package/dist/types-ts4.5/react/nodes/table.d.ts +269 -0
  225. package/dist/types-ts4.5/react/nodes/tableCell.d.ts +81 -0
  226. package/dist/types-ts4.5/react/nodes/tableRow.d.ts +24 -0
  227. package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +29 -0
  228. package/dist/types-ts4.5/react/nodes/taskItem.d.ts +19 -0
  229. package/dist/types-ts4.5/react/nodes/taskList.d.ts +8 -0
  230. package/dist/types-ts4.5/react/nodes/text-wrapper.d.ts +8 -0
  231. package/dist/types-ts4.5/react/nodes/unknownBlock.d.ts +2 -0
  232. package/dist/types-ts4.5/react/renderer-node.d.ts +4 -0
  233. package/dist/types-ts4.5/react/types.d.ts +58 -0
  234. package/dist/types-ts4.5/react/utils/clipboard.d.ts +1 -0
  235. package/dist/types-ts4.5/react/utils/element-selection.d.ts +9 -0
  236. package/dist/types-ts4.5/react/utils/getCardClickHandler.d.ts +2 -0
  237. package/dist/types-ts4.5/react/utils/inject-props.d.ts +6 -0
  238. package/dist/types-ts4.5/react/utils/links.d.ts +3 -0
  239. package/dist/types-ts4.5/react/utils/lists.d.ts +2 -0
  240. package/dist/types-ts4.5/react/utils/performance/RenderTracking.d.ts +15 -0
  241. package/dist/types-ts4.5/react/utils/use-select-all-trap.d.ts +2 -0
  242. package/dist/types-ts4.5/render-document.d.ts +23 -0
  243. package/dist/types-ts4.5/renderer-context.d.ts +7 -0
  244. package/dist/types-ts4.5/serializer.d.ts +4 -0
  245. package/dist/types-ts4.5/steps/index.d.ts +14 -0
  246. package/dist/types-ts4.5/text/index.d.ts +8 -0
  247. package/dist/types-ts4.5/text/nodes/blockquote.d.ts +3 -0
  248. package/dist/types-ts4.5/text/nodes/bulletList.d.ts +3 -0
  249. package/dist/types-ts4.5/text/nodes/date.d.ts +3 -0
  250. package/dist/types-ts4.5/text/nodes/decisionItem.d.ts +3 -0
  251. package/dist/types-ts4.5/text/nodes/hardBreak.d.ts +3 -0
  252. package/dist/types-ts4.5/text/nodes/heading.d.ts +3 -0
  253. package/dist/types-ts4.5/text/nodes/index.d.ts +6 -0
  254. package/dist/types-ts4.5/text/nodes/inlineCard.d.ts +3 -0
  255. package/dist/types-ts4.5/text/nodes/listItem.d.ts +3 -0
  256. package/dist/types-ts4.5/text/nodes/mediaGroup.d.ts +3 -0
  257. package/dist/types-ts4.5/text/nodes/mention.d.ts +3 -0
  258. package/dist/types-ts4.5/text/nodes/orderedList.d.ts +3 -0
  259. package/dist/types-ts4.5/text/nodes/panel.d.ts +3 -0
  260. package/dist/types-ts4.5/text/nodes/paragraph.d.ts +3 -0
  261. package/dist/types-ts4.5/text/nodes/rule.d.ts +3 -0
  262. package/dist/types-ts4.5/text/nodes/status.d.ts +3 -0
  263. package/dist/types-ts4.5/text/nodes/table.d.ts +3 -0
  264. package/dist/types-ts4.5/text/nodes/taskItem.d.ts +3 -0
  265. package/dist/types-ts4.5/text/nodes/unknown.d.ts +3 -0
  266. package/dist/types-ts4.5/text-serializer.d.ts +1 -0
  267. package/dist/types-ts4.5/types/i18n.d.ts +5 -0
  268. package/dist/types-ts4.5/types/mediaOptions.d.ts +12 -0
  269. package/dist/types-ts4.5/types/smartLinksOptions.d.ts +5 -0
  270. package/dist/types-ts4.5/ui/Expand.d.ts +23 -0
  271. package/dist/types-ts4.5/ui/ExtensionRenderer.d.ts +42 -0
  272. package/dist/types-ts4.5/ui/MediaCard.d.ts +77 -0
  273. package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +24 -0
  274. package/dist/types-ts4.5/ui/Renderer/breakout-ssr.d.ts +11 -0
  275. package/dist/types-ts4.5/ui/Renderer/click-to-edit.d.ts +6 -0
  276. package/dist/types-ts4.5/ui/Renderer/index.d.ts +38 -0
  277. package/dist/types-ts4.5/ui/Renderer/style.d.ts +16 -0
  278. package/dist/types-ts4.5/ui/Renderer/truncated-wrapper.d.ts +12 -0
  279. package/dist/types-ts4.5/ui/Renderer/types.d.ts +16 -0
  280. package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +6 -0
  281. package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +9 -0
  282. package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +60 -0
  283. package/dist/types-ts4.5/ui/SortingIcon.d.ts +23 -0
  284. package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +15 -0
  285. package/dist/types-ts4.5/ui/TaskItemsFormatContext/index.d.ts +2 -0
  286. package/dist/types-ts4.5/ui/active-header-id-provider.d.ts +18 -0
  287. package/dist/types-ts4.5/ui/annotations/context.d.ts +27 -0
  288. package/dist/types-ts4.5/ui/annotations/draft/component.d.ts +20 -0
  289. package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +7 -0
  290. package/dist/types-ts4.5/ui/annotations/draft/index.d.ts +2 -0
  291. package/dist/types-ts4.5/ui/annotations/draft/position.d.ts +2 -0
  292. package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +11 -0
  293. package/dist/types-ts4.5/ui/annotations/element/index.d.ts +10 -0
  294. package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +14 -0
  295. package/dist/types-ts4.5/ui/annotations/hooks/index.d.ts +3 -0
  296. package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +18 -0
  297. package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +1 -0
  298. package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comments-filter.d.ts +9 -0
  299. package/dist/types-ts4.5/ui/annotations/hooks/use-load-annotations.d.ts +6 -0
  300. package/dist/types-ts4.5/ui/annotations/hooks/user-selection.d.ts +9 -0
  301. package/dist/types-ts4.5/ui/annotations/hooks/utils.d.ts +2 -0
  302. package/dist/types-ts4.5/ui/annotations/index.d.ts +5 -0
  303. package/dist/types-ts4.5/ui/annotations/selection/index.d.ts +1 -0
  304. package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +20 -0
  305. package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +13 -0
  306. package/dist/types-ts4.5/ui/annotations/selection/wrapper.d.ts +8 -0
  307. package/dist/types-ts4.5/ui/annotations/types.d.ts +22 -0
  308. package/dist/types-ts4.5/ui/annotations/view/index.d.ts +7 -0
  309. package/dist/types-ts4.5/ui/index.d.ts +1 -0
  310. package/dist/types-ts4.5/ui/renderer-props.d.ts +104 -0
  311. package/dist/types-ts4.5/use-feature-flags.d.ts +2 -0
  312. package/dist/types-ts4.5/utils.d.ts +24 -0
  313. package/messages/package.json +2 -2
  314. package/package.json +29 -14
  315. package/render-document/package.json +2 -2
  316. package/renderer-context/package.json +2 -2
  317. package/report.api.md +4 -6
  318. package/serializer/package.json +2 -2
  319. package/text-serializer/package.json +2 -2
  320. package/use-feature-flags/package.json +2 -2
  321. package/utils/package.json +2 -2
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { Node as PMNode } from 'prosemirror-model';
3
+ import { NodeProps } from '../types';
4
+ import { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
5
+ export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
6
+ declare function Heading(props: NodeProps<{
7
+ level: HeadingLevels;
8
+ headingId?: string;
9
+ showAnchorLink?: boolean;
10
+ allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
11
+ marks?: PMNode['marks'];
12
+ invisible?: boolean;
13
+ }>): JSX.Element;
14
+ export default Heading;
@@ -0,0 +1,95 @@
1
+ import React from 'react';
2
+ import Loadable from 'react-loadable';
3
+ import { Fragment, Node, Mark } from 'prosemirror-model';
4
+ import Blockquote from './blockquote';
5
+ import BodiedExtension, { Props as BodiedExtensionProps } from './bodiedExtension';
6
+ import BulletList from './bulletList';
7
+ import Doc, { DocWithSelectAllTrap } from './doc';
8
+ import Extension, { Props as ExtensionProps } from './extension';
9
+ import HardBreak from './hardBreak';
10
+ import Heading from './heading';
11
+ import InlineExtension, { Props as InlineExtensionProps } from './inlineExtension';
12
+ import LayoutSection from './layoutSection';
13
+ import LayoutColumn from './layoutColumn';
14
+ import ListItem from './listItem';
15
+ import Caption from './caption';
16
+ import OrderedList from './orderedList';
17
+ import Paragraph from './paragraph';
18
+ import Placeholder from './placeholder';
19
+ import Rule from './rule';
20
+ import Table from './table';
21
+ import { TableCell } from './tableCell';
22
+ import TableRow from './tableRow';
23
+ import UnknownBlock from './unknownBlock';
24
+ import { NodeComponentsProps } from '../../ui/Renderer/types';
25
+ declare const WindowedCodeBlock: React.ComponentType<import("./codeBlock/codeBlock").Props> & Loadable.LoadableComponent;
26
+ declare const CodeBlock: React.ComponentType<import("react-intl-next").WithIntlProps<import("./codeBlock/codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
27
+ declare const TaskList: React.ComponentType<import("./taskList").Props> & Loadable.LoadableComponent;
28
+ declare const TaskItem: React.ComponentType<import("../types").NodeProps<import("./taskItem").Props>> & Loadable.LoadableComponent;
29
+ declare const DecisionList: React.ComponentType<import("./decisionList").Props> & Loadable.LoadableComponent;
30
+ declare const DecisionItem: React.ComponentType<import("../types").NodeMeta> & Loadable.LoadableComponent;
31
+ declare const Date: React.ComponentType<import("./date").Props> & Loadable.LoadableComponent;
32
+ declare const Status: React.ComponentType<import("./status").Props> & Loadable.LoadableComponent;
33
+ declare const Emoji: React.ComponentType<import("./emoji").EmojiProps> & Loadable.LoadableComponent;
34
+ declare const Panel: React.ComponentType<import("./panel").Props> & Loadable.LoadableComponent;
35
+ declare const EmbedCard: React.ComponentType<{
36
+ url?: string | undefined;
37
+ data?: object | undefined;
38
+ eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
39
+ portal?: HTMLElement | undefined;
40
+ originalHeight?: number | undefined;
41
+ originalWidth?: number | undefined;
42
+ width?: number | undefined;
43
+ layout: import("@atlaskit/adf-schema").RichMediaLayout;
44
+ rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
45
+ isInsideOfBlockNode?: boolean | undefined;
46
+ }> & Loadable.LoadableComponent;
47
+ declare const InlineCard: React.ComponentType<import("@atlaskit/editor-common/utils").Diff<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, import("../../ui/SmartCardStorage").WithSmartCardStorageProps>> & Loadable.LoadableComponent;
48
+ declare const BlockCard: React.ComponentType<{
49
+ url?: string | undefined;
50
+ data?: object | undefined;
51
+ eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
52
+ portal?: HTMLElement | undefined;
53
+ rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
54
+ smartLinks?: import("../../types/smartLinksOptions").SmartLinksOptions | undefined;
55
+ }> & Loadable.LoadableComponent;
56
+ declare const Media: React.ComponentType<import("./media").MediaProps> & Loadable.LoadableComponent;
57
+ declare const MediaGroup: React.ComponentType<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent;
58
+ declare const MediaInline: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaInline").MediaInlineProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
59
+ declare const MediaSingle: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
60
+ declare const Mention: React.ComponentType<import("./mention").Props> & Loadable.LoadableComponent;
61
+ declare const Expand: React.ComponentType<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
62
+ export declare const nodeToReact: {
63
+ [key: string]: React.ComponentType<any>;
64
+ };
65
+ export interface ToReactFlags {
66
+ allowSelectAllTrap?: boolean;
67
+ allowWindowedCodeBlock?: boolean;
68
+ }
69
+ export declare const toReact: (node: Node, flags?: ToReactFlags, nodeComponents?: NodeComponentsProps) => React.ComponentType<any>;
70
+ export interface TextWrapper {
71
+ type: {
72
+ name: 'textWrapper';
73
+ };
74
+ content: Node[];
75
+ nodeSize: number;
76
+ }
77
+ export interface NodeSimple {
78
+ type: {
79
+ name: string;
80
+ };
81
+ attrs?: any;
82
+ text?: string;
83
+ nodeSize: number;
84
+ }
85
+ export declare const mergeTextNodes: (nodes: (Node | NodeSimple)[]) => (Node<any> | TextWrapper | NodeSimple)[];
86
+ export declare const isText: (type: string) => type is "text";
87
+ export declare const isTextWrapper: (node: Node | TextWrapper | NodeSimple) => node is TextWrapper;
88
+ export declare function isTextNode(node: Node | Mark): node is Node;
89
+ /**
90
+ * Detects whether a fragment contains a single paragraph node
91
+ * whose content satisfies the condition for an emoji block
92
+ */
93
+ export declare const isEmojiDoc: (doc: Fragment) => boolean;
94
+ export { Blockquote, BodiedExtension, BulletList, BlockCard, Caption, CodeBlock, WindowedCodeBlock, Date, DecisionItem, DecisionList, Doc, DocWithSelectAllTrap, Emoji, Extension, Expand, HardBreak, Heading, ListItem, InlineCard, InlineExtension, LayoutSection, LayoutColumn, Media, MediaGroup, MediaInline, MediaSingle, Mention, OrderedList, Panel, Paragraph, Placeholder, Rule, Status, TaskItem, TaskList, Table, TableCell, TableRow, UnknownBlock, EmbedCard, };
95
+ export type { BodiedExtensionProps, ExtensionProps, InlineExtensionProps };
@@ -0,0 +1 @@
1
+ export default function Inline(props: any): any;
@@ -0,0 +1,65 @@
1
+ import React from 'react';
2
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
3
+ import { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
4
+ import { SmartLinksOptions } from '../../types/smartLinksOptions';
5
+ export interface InlineCardProps {
6
+ url?: string;
7
+ data?: object;
8
+ eventHandlers?: EventHandlers;
9
+ portal?: HTMLElement;
10
+ smartLinks?: SmartLinksOptions;
11
+ }
12
+ declare const _default: {
13
+ new (props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>): {
14
+ render(): JSX.Element;
15
+ context: any;
16
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
17
+ forceUpdate(callBack?: (() => void) | undefined): void;
18
+ readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>> & Readonly<{
19
+ children?: React.ReactNode;
20
+ }>;
21
+ state: Readonly<{}>;
22
+ refs: {
23
+ [key: string]: React.ReactInstance;
24
+ };
25
+ componentDidMount?(): void;
26
+ shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
27
+ componentWillUnmount?(): void;
28
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
29
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
30
+ componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
31
+ componentWillMount?(): void;
32
+ UNSAFE_componentWillMount?(): void;
33
+ componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
34
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
35
+ componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
36
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
37
+ };
38
+ new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>, context?: any): {
39
+ render(): JSX.Element;
40
+ context: any;
41
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
42
+ forceUpdate(callBack?: (() => void) | undefined): void;
43
+ readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>> & Readonly<{
44
+ children?: React.ReactNode;
45
+ }>;
46
+ state: Readonly<{}>;
47
+ refs: {
48
+ [key: string]: React.ReactInstance;
49
+ };
50
+ componentDidMount?(): void;
51
+ shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
52
+ componentWillUnmount?(): void;
53
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
54
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
55
+ componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
56
+ componentWillMount?(): void;
57
+ UNSAFE_componentWillMount?(): void;
58
+ componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
59
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
60
+ componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
61
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
62
+ };
63
+ contextType?: React.Context<any> | undefined;
64
+ };
65
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { RendererContext } from '../types';
3
+ import { Mark as PMMark } from 'prosemirror-model';
4
+ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
5
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
6
+ export interface Props {
7
+ extensionHandlers?: ExtensionHandlers;
8
+ providers: ProviderFactory;
9
+ rendererContext: RendererContext;
10
+ extensionType: string;
11
+ extensionKey: string;
12
+ text?: string;
13
+ parameters?: any;
14
+ localId?: string;
15
+ marks?: PMMark[];
16
+ }
17
+ declare const InlineExtension: React.StatelessComponent<Props>;
18
+ export default InlineExtension;
@@ -0,0 +1,6 @@
1
+ /** @jsx jsx */
2
+ import React from 'react';
3
+ import { jsx } from '@emotion/react';
4
+ export default function LayoutSection(props: {
5
+ width?: number;
6
+ } & React.Props<any>): jsx.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function LayoutSection(props: React.Props<any>): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function ListItem(props: React.Props<any>): JSX.Element;
@@ -0,0 +1,28 @@
1
+ /** @jsx jsx */
2
+ import React from 'react';
3
+ import { PureComponent } from 'react';
4
+ import { jsx } from '@emotion/react';
5
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
6
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
7
+ import { MediaCardProps } from '../../ui/MediaCard';
8
+ import { LinkDefinition, BorderMarkDefinition } from '@atlaskit/adf-schema';
9
+ import type { MediaFeatureFlags } from '@atlaskit/media-common';
10
+ import { AnalyticsEventPayload } from '../../analytics/events';
11
+ export type MediaProps = MediaCardProps & {
12
+ providers?: ProviderFactory;
13
+ allowAltTextOnImages?: boolean;
14
+ children?: React.ReactNode;
15
+ isInsideOfBlockNode?: boolean;
16
+ marks: Array<LinkDefinition | BorderMarkDefinition>;
17
+ isBorderMark: () => boolean;
18
+ isLinkMark: () => boolean;
19
+ fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
20
+ featureFlags?: MediaFeatureFlags;
21
+ eventHandlers?: EventHandlers;
22
+ enableDownloadButton?: boolean;
23
+ };
24
+ export default class Media extends PureComponent<MediaProps, {}> {
25
+ private renderCard;
26
+ private handleMediaLinkClick;
27
+ render(): jsx.JSX.Element;
28
+ }
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import { ReactElement, PureComponent } from 'react';
3
+ import { CardEvent } from '@atlaskit/media-card';
4
+ import type { EventHandlers, CardEventClickHandler } from '@atlaskit/editor-common/ui';
5
+ import { Identifier } from '@atlaskit/media-client';
6
+ import { MediaProps } from './media';
7
+ import { MediaFeatureFlags } from '@atlaskit/media-common';
8
+ export interface MediaGroupProps {
9
+ children?: React.ReactNode;
10
+ eventHandlers?: EventHandlers;
11
+ featureFlags?: MediaFeatureFlags;
12
+ enableDownloadButton?: boolean;
13
+ }
14
+ export interface MediaGroupState {
15
+ animate: boolean;
16
+ offset: number;
17
+ }
18
+ export default class MediaGroup extends PureComponent<MediaGroupProps, MediaGroupState> {
19
+ state: MediaGroupState;
20
+ private handleSize;
21
+ private handleScroll;
22
+ render(): JSX.Element;
23
+ renderSingleFile(child: ReactElement<MediaProps>): React.ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
24
+ renderSingleLink(child: ReactElement<MediaProps>): React.ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
25
+ onMediaClick: (cardClickHandler: CardEventClickHandler, child: ReactElement<MediaProps>, surroundingItems: Identifier[]) => (event: CardEvent, analyticsEvent?: any) => void;
26
+ cloneFileCard(child: ReactElement<MediaProps>, surroundingItems: Identifier[]): React.ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
27
+ renderStrip(): JSX.Element;
28
+ private mapMediaPropsToIdentifier;
29
+ }
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
+ import { FileIdentifier } from '@atlaskit/media-client';
4
+ import { MediaProvider } from '../../ui/MediaCard';
5
+ import { WrappedComponentProps } from 'react-intl-next';
6
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
7
+ import { RendererAppearance } from '../../ui/Renderer/types';
8
+ export type RenderMediaInlineProps = {
9
+ identifier: FileIdentifier;
10
+ mediaProvider: Promise<MediaProvider>;
11
+ children?: React.ReactNode;
12
+ eventHandlers?: EventHandlers;
13
+ rendererAppearance?: RendererAppearance;
14
+ };
15
+ export type MediaInlineProps = {
16
+ id: string;
17
+ collection?: string;
18
+ providers: ProviderFactory;
19
+ eventHandlers?: EventHandlers;
20
+ rendererAppearance?: RendererAppearance;
21
+ };
22
+ export declare const RenderMediaInline: React.FC<RenderMediaInlineProps>;
23
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl">>> & {
24
+ WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps<"intl">>;
25
+ };
26
+ export default _default;
@@ -0,0 +1,23 @@
1
+ /** @jsx jsx */
2
+ import { default as React } from 'react';
3
+ import { WrappedComponentProps } from 'react-intl-next';
4
+ import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
5
+ import { MediaFeatureFlags } from '@atlaskit/media-common';
6
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
7
+ import { AnalyticsEventPayload } from '../../../analytics/events';
8
+ import { RendererAppearance } from '../../../ui/Renderer/types';
9
+ export interface Props {
10
+ children: React.ReactNode;
11
+ layout: MediaSingleLayout;
12
+ eventHandlers?: EventHandlers;
13
+ width?: number;
14
+ isInsideOfBlockNode?: boolean;
15
+ rendererAppearance: RendererAppearance;
16
+ fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
17
+ featureFlags?: MediaFeatureFlags;
18
+ }
19
+ export declare const getMediaContainerWidth: (currentContainerWidth: number, layout: MediaSingleLayout) => number;
20
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
21
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
22
+ };
23
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export declare const uiMediaSingleBaseStyles: import("@emotion/react").SerializedStyles;
2
+ export declare const uiMediaSingleLayoutStyles: import("@emotion/react").SerializedStyles;
@@ -0,0 +1,13 @@
1
+ import { PureComponent } from 'react';
2
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
4
+ export interface Props {
5
+ id: string;
6
+ providers?: ProviderFactory;
7
+ eventHandlers?: EventHandlers;
8
+ text: string;
9
+ accessLevel?: string;
10
+ }
11
+ export default class MentionItem extends PureComponent<Props, {}> {
12
+ render(): JSX.Element;
13
+ }
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Node } from 'prosemirror-model';
3
+ export default function OrderedList(props: {
4
+ order?: number;
5
+ start?: number;
6
+ path?: Node[];
7
+ content?: Node[];
8
+ children: React.ReactNode;
9
+ }): JSX.Element;
@@ -0,0 +1,17 @@
1
+ /** @jsx jsx */
2
+ import React from 'react';
3
+ import { jsx } from '@emotion/react';
4
+ import { PanelType } from '@atlaskit/adf-schema';
5
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
6
+ export interface Props {
7
+ children?: React.ReactNode;
8
+ providers?: ProviderFactory;
9
+ panelType: PanelType;
10
+ allowCustomPanels?: boolean;
11
+ panelIcon?: string;
12
+ panelIconId?: string;
13
+ panelIconText?: string;
14
+ panelColor?: string;
15
+ }
16
+ declare const Panel: (props: Props) => jsx.JSX.Element;
17
+ export default Panel;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { NodeProps } from '../types';
3
+ export default function Paragraph({ children, dataAttributes }: NodeProps): JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export interface Props {
3
+ text: string;
4
+ allowPlaceholderText?: boolean;
5
+ }
6
+ export default function Placeholder(props: Props): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function Rule(): JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { PureComponent } from 'react';
2
+ import { Color } from '@atlaskit/status/element';
3
+ export interface Props {
4
+ text: string;
5
+ color: Color;
6
+ localId?: string;
7
+ }
8
+ export default class Status extends PureComponent<Props, {}> {
9
+ render(): JSX.Element;
10
+ }
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { SharedTableProps } from './types';
3
+ export interface ScaleOptions {
4
+ renderWidth: number;
5
+ tableWidth: number;
6
+ maxScale: number;
7
+ }
8
+ export declare const calcScalePercent: ({ renderWidth, tableWidth, maxScale, }: ScaleOptions) => number;
9
+ export declare const Colgroup: (props: SharedTableProps) => JSX.Element | null;
@@ -0,0 +1,38 @@
1
+ /** @jsx jsx */
2
+ import React from 'react';
3
+ import { jsx } from '@emotion/react';
4
+ import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
5
+ import { TableLayout } from '@atlaskit/adf-schema';
6
+ export type StickyMode = 'none' | 'stick' | 'pin-bottom';
7
+ export declare const tableStickyPadding = 8;
8
+ interface FixedProps {
9
+ top?: number;
10
+ wrapperWidth: number;
11
+ mode: StickyMode;
12
+ }
13
+ export declare const FixedTableDiv: React.FC<FixedProps>;
14
+ export type StickyTableProps = {
15
+ left?: number;
16
+ top?: number;
17
+ mode: StickyMode;
18
+ innerRef: React.RefObject<HTMLDivElement>;
19
+ rowHeight: number;
20
+ wrapperWidth: number;
21
+ tableWidth: string;
22
+ isNumberColumnEnabled: boolean;
23
+ children: React.ReactNode[];
24
+ layout: TableLayout;
25
+ columnWidths?: number[];
26
+ renderWidth: number;
27
+ } & OverflowShadowProps;
28
+ export declare const StickyTable: ({ top, left, mode, shadowClassNames, innerRef, wrapperWidth, tableWidth, isNumberColumnEnabled, layout, children, columnWidths, renderWidth, rowHeight, }: StickyTableProps) => jsx.JSX.Element;
29
+ export declare class OverflowParent {
30
+ private ref;
31
+ private constructor();
32
+ static fromElement(el: HTMLElement | null): OverflowParent;
33
+ get isElement(): boolean;
34
+ get top(): number;
35
+ addEventListener(type: string, cb: EventListenerOrEventListenerObject, ...args: any[]): void;
36
+ removeEventListener(type: string, cb: EventListenerOrEventListenerObject, ...args: any[]): void;
37
+ }
38
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { SharedTableProps } from './types';
3
+ export type TableProps = SharedTableProps & {
4
+ innerRef?: React.RefObject<HTMLTableElement>;
5
+ children: React.ReactNode[];
6
+ };
7
+ export declare const Table: React.MemoExoticComponent<({ innerRef, isNumberColumnEnabled, columnWidths, layout, renderWidth, children, }: TableProps) => JSX.Element>;
@@ -0,0 +1,7 @@
1
+ import { TableLayout } from '@atlaskit/adf-schema';
2
+ export type SharedTableProps = {
3
+ columnWidths?: Array<number>;
4
+ layout: TableLayout;
5
+ isNumberColumnEnabled: boolean;
6
+ renderWidth: number;
7
+ };