@atlaskit/renderer 132.5.2 → 132.6.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 (305) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/actions/main/package.json +1 -8
  3. package/actions/package.json +1 -8
  4. package/actions/renderer-actions-context/package.json +1 -8
  5. package/actions/with-renderer-actions/package.json +1 -8
  6. package/annotations/package.json +1 -8
  7. package/consts/package.json +1 -8
  8. package/custom-nodes/loosely-lazy/package.json +1 -8
  9. package/custom-nodes/package.json +1 -8
  10. package/dist/cjs/react/nodes/emoji.js +28 -2
  11. package/dist/cjs/ui/Renderer/index.js +1 -1
  12. package/dist/es2019/react/nodes/emoji.js +28 -2
  13. package/dist/es2019/ui/Renderer/index.js +1 -1
  14. package/dist/esm/react/nodes/emoji.js +28 -2
  15. package/dist/esm/ui/Renderer/index.js +1 -1
  16. package/events/package.json +1 -8
  17. package/experimental-sync-custom-nodes/cards/package.json +1 -8
  18. package/experimental-sync-custom-nodes/media/package.json +1 -8
  19. package/experimental-sync-custom-nodes/small-nodes/package.json +1 -8
  20. package/extension-renderer/package.json +1 -8
  21. package/loosely-lazy/package.json +1 -8
  22. package/media-options/package.json +1 -8
  23. package/messages/package.json +1 -8
  24. package/nodes/package.json +1 -8
  25. package/package.json +7 -3
  26. package/react/package.json +1 -8
  27. package/react/types/package.json +1 -8
  28. package/render-document/package.json +1 -8
  29. package/renderer/package.json +1 -8
  30. package/renderer-actions-context/package.json +1 -8
  31. package/renderer-context/package.json +1 -8
  32. package/renderer-props/package.json +1 -8
  33. package/serializer/package.json +1 -8
  34. package/text/package.json +1 -8
  35. package/text-serializer/package.json +1 -8
  36. package/text-serializer/text/package.json +1 -8
  37. package/types/package.json +1 -8
  38. package/use-feature-flags/package.json +1 -8
  39. package/utils/package.json +1 -8
  40. package/validation-context/package.json +1 -8
  41. package/dist/types-ts4.5/actions/get-renderer-range-inline-node-names.d.ts +0 -23
  42. package/dist/types-ts4.5/actions/index.d.ts +0 -76
  43. package/dist/types-ts4.5/actions/matches-utils.d.ts +0 -8
  44. package/dist/types-ts4.5/actions/selection.d.ts +0 -8
  45. package/dist/types-ts4.5/analytics/analyticsContext.d.ts +0 -6
  46. package/dist/types-ts4.5/analytics/enums.d.ts +0 -59
  47. package/dist/types-ts4.5/analytics/events.d.ts +0 -184
  48. package/dist/types-ts4.5/analytics/unsupported-content.d.ts +0 -10
  49. package/dist/types-ts4.5/consts.d.ts +0 -24
  50. package/dist/types-ts4.5/custom-nodes.d.ts +0 -1
  51. package/dist/types-ts4.5/entry-points/actions-main.d.ts +0 -1
  52. package/dist/types-ts4.5/entry-points/actions-renderer-actions-context.d.ts +0 -1
  53. package/dist/types-ts4.5/entry-points/actions-with-renderer-actions.d.ts +0 -1
  54. package/dist/types-ts4.5/entry-points/annotations.d.ts +0 -1
  55. package/dist/types-ts4.5/entry-points/consts.d.ts +0 -1
  56. package/dist/types-ts4.5/entry-points/custom-nodes-loosely-lazy.d.ts +0 -1
  57. package/dist/types-ts4.5/entry-points/events.d.ts +0 -2
  58. package/dist/types-ts4.5/entry-points/experimental-sync-custom-nodes/cards.d.ts +0 -9
  59. package/dist/types-ts4.5/entry-points/experimental-sync-custom-nodes/media.d.ts +0 -9
  60. package/dist/types-ts4.5/entry-points/experimental-sync-custom-nodes/small-nodes.d.ts +0 -9
  61. package/dist/types-ts4.5/entry-points/extension-renderer.d.ts +0 -2
  62. package/dist/types-ts4.5/entry-points/loosely-lazy.d.ts +0 -1
  63. package/dist/types-ts4.5/entry-points/media-options.d.ts +0 -1
  64. package/dist/types-ts4.5/entry-points/messages.d.ts +0 -1
  65. package/dist/types-ts4.5/entry-points/nodes.d.ts +0 -2
  66. package/dist/types-ts4.5/entry-points/react-types.d.ts +0 -1
  67. package/dist/types-ts4.5/entry-points/react.d.ts +0 -2
  68. package/dist/types-ts4.5/entry-points/render-document.d.ts +0 -2
  69. package/dist/types-ts4.5/entry-points/renderer-actions-context.d.ts +0 -1
  70. package/dist/types-ts4.5/entry-points/renderer-context.d.ts +0 -2
  71. package/dist/types-ts4.5/entry-points/renderer-props.d.ts +0 -1
  72. package/dist/types-ts4.5/entry-points/renderer.d.ts +0 -3
  73. package/dist/types-ts4.5/entry-points/serializer.d.ts +0 -1
  74. package/dist/types-ts4.5/entry-points/text-serializer-text.d.ts +0 -1
  75. package/dist/types-ts4.5/entry-points/text.d.ts +0 -1
  76. package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
  77. package/dist/types-ts4.5/entry-points/use-feature-flags.d.ts +0 -1
  78. package/dist/types-ts4.5/entry-points/utils.d.ts +0 -2
  79. package/dist/types-ts4.5/entry-points/validation-context.d.ts +0 -1
  80. package/dist/types-ts4.5/i18n/cs.d.ts +0 -18
  81. package/dist/types-ts4.5/i18n/da.d.ts +0 -18
  82. package/dist/types-ts4.5/i18n/de.d.ts +0 -18
  83. package/dist/types-ts4.5/i18n/en.d.ts +0 -18
  84. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -18
  85. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -18
  86. package/dist/types-ts4.5/i18n/es.d.ts +0 -18
  87. package/dist/types-ts4.5/i18n/et.d.ts +0 -8
  88. package/dist/types-ts4.5/i18n/fi.d.ts +0 -18
  89. package/dist/types-ts4.5/i18n/fr.d.ts +0 -18
  90. package/dist/types-ts4.5/i18n/hr.d.ts +0 -18
  91. package/dist/types-ts4.5/i18n/hu.d.ts +0 -18
  92. package/dist/types-ts4.5/i18n/index.d.ts +0 -33
  93. package/dist/types-ts4.5/i18n/it.d.ts +0 -18
  94. package/dist/types-ts4.5/i18n/ja.d.ts +0 -18
  95. package/dist/types-ts4.5/i18n/ko.d.ts +0 -18
  96. package/dist/types-ts4.5/i18n/nb.d.ts +0 -18
  97. package/dist/types-ts4.5/i18n/nl.d.ts +0 -18
  98. package/dist/types-ts4.5/i18n/pl.d.ts +0 -18
  99. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -18
  100. package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -8
  101. package/dist/types-ts4.5/i18n/ru.d.ts +0 -18
  102. package/dist/types-ts4.5/i18n/sk.d.ts +0 -18
  103. package/dist/types-ts4.5/i18n/sl.d.ts +0 -18
  104. package/dist/types-ts4.5/i18n/sr.d.ts +0 -18
  105. package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -18
  106. package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -18
  107. package/dist/types-ts4.5/i18n/sv.d.ts +0 -18
  108. package/dist/types-ts4.5/i18n/th.d.ts +0 -18
  109. package/dist/types-ts4.5/i18n/tr.d.ts +0 -18
  110. package/dist/types-ts4.5/i18n/uk.d.ts +0 -18
  111. package/dist/types-ts4.5/i18n/vi.d.ts +0 -18
  112. package/dist/types-ts4.5/i18n/zh.d.ts +0 -18
  113. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -18
  114. package/dist/types-ts4.5/index.d.ts +0 -16
  115. package/dist/types-ts4.5/messages.d.ts +0 -61
  116. package/dist/types-ts4.5/react/hooks/use-bidi-warnings.d.ts +0 -10
  117. package/dist/types-ts4.5/react/hooks/use-in-viewport.d.ts +0 -5
  118. package/dist/types-ts4.5/react/index.d.ts +0 -158
  119. package/dist/types-ts4.5/react/marks/alignment.d.ts +0 -4
  120. package/dist/types-ts4.5/react/marks/annotation.d.ts +0 -6
  121. package/dist/types-ts4.5/react/marks/backgroundColor.d.ts +0 -4
  122. package/dist/types-ts4.5/react/marks/border.d.ts +0 -8
  123. package/dist/types-ts4.5/react/marks/breakout.d.ts +0 -14
  124. package/dist/types-ts4.5/react/marks/code.d.ts +0 -20
  125. package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +0 -9
  126. package/dist/types-ts4.5/react/marks/data-consumer.d.ts +0 -4
  127. package/dist/types-ts4.5/react/marks/em.d.ts +0 -3
  128. package/dist/types-ts4.5/react/marks/fontSize.d.ts +0 -4
  129. package/dist/types-ts4.5/react/marks/fragment.d.ts +0 -4
  130. package/dist/types-ts4.5/react/marks/indentation.d.ts +0 -4
  131. package/dist/types-ts4.5/react/marks/index.d.ts +0 -24
  132. package/dist/types-ts4.5/react/marks/link-compiled.d.ts +0 -13
  133. package/dist/types-ts4.5/react/marks/link-emotion.d.ts +0 -14
  134. package/dist/types-ts4.5/react/marks/link.d.ts +0 -13
  135. package/dist/types-ts4.5/react/marks/strike.d.ts +0 -3
  136. package/dist/types-ts4.5/react/marks/strong.d.ts +0 -3
  137. package/dist/types-ts4.5/react/marks/subsup.d.ts +0 -4
  138. package/dist/types-ts4.5/react/marks/textColor.d.ts +0 -4
  139. package/dist/types-ts4.5/react/marks/underline.d.ts +0 -3
  140. package/dist/types-ts4.5/react/marks/unsupportedMark.d.ts +0 -3
  141. package/dist/types-ts4.5/react/marks/unsupportedNodeAttribute.d.ts +0 -3
  142. package/dist/types-ts4.5/react/nodes/TableStickyScrollbar.d.ts +0 -21
  143. package/dist/types-ts4.5/react/nodes/blockCard.d.ts +0 -22
  144. package/dist/types-ts4.5/react/nodes/blockquote.d.ts +0 -4
  145. package/dist/types-ts4.5/react/nodes/bodiedExtension.d.ts +0 -31
  146. package/dist/types-ts4.5/react/nodes/bodiedSyncBlock.d.ts +0 -8
  147. package/dist/types-ts4.5/react/nodes/bulletList.d.ts +0 -6
  148. package/dist/types-ts4.5/react/nodes/caption.d.ts +0 -4
  149. package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +0 -22
  150. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockButtonContainer.d.ts +0 -15
  151. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockContainer.d.ts +0 -14
  152. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +0 -9
  153. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +0 -10
  154. package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +0 -17
  155. package/dist/types-ts4.5/react/nodes/codeBlock/windowedCodeBlock.d.ts +0 -4
  156. package/dist/types-ts4.5/react/nodes/date.d.ts +0 -12
  157. package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +0 -3
  158. package/dist/types-ts4.5/react/nodes/decisionList.d.ts +0 -7
  159. package/dist/types-ts4.5/react/nodes/doc.d.ts +0 -3
  160. package/dist/types-ts4.5/react/nodes/embedCard.d.ts +0 -28
  161. package/dist/types-ts4.5/react/nodes/emoji.d.ts +0 -16
  162. package/dist/types-ts4.5/react/nodes/extension.d.ts +0 -42
  163. package/dist/types-ts4.5/react/nodes/extensionFrame.d.ts +0 -27
  164. package/dist/types-ts4.5/react/nodes/fallback.d.ts +0 -25
  165. package/dist/types-ts4.5/react/nodes/hardBreak.d.ts +0 -6
  166. package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +0 -15
  167. package/dist/types-ts4.5/react/nodes/heading.d.ts +0 -27
  168. package/dist/types-ts4.5/react/nodes/index.d.ts +0 -139
  169. package/dist/types-ts4.5/react/nodes/inline.d.ts +0 -1
  170. package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +0 -22
  171. package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +0 -18
  172. package/dist/types-ts4.5/react/nodes/layoutColumn-compiled.d.ts +0 -16
  173. package/dist/types-ts4.5/react/nodes/layoutColumn-emotion.d.ts +0 -16
  174. package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +0 -9
  175. package/dist/types-ts4.5/react/nodes/layoutSection.d.ts +0 -6
  176. package/dist/types-ts4.5/react/nodes/listItem.d.ts +0 -2
  177. package/dist/types-ts4.5/react/nodes/loosely-lazy.d.ts +0 -4
  178. package/dist/types-ts4.5/react/nodes/media/index.d.ts +0 -35
  179. package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +0 -30
  180. package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +0 -24
  181. package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +0 -28
  182. package/dist/types-ts4.5/react/nodes/mention.d.ts +0 -14
  183. package/dist/types-ts4.5/react/nodes/multiBodiedExtension/actions.d.ts +0 -10
  184. package/dist/types-ts4.5/react/nodes/multiBodiedExtension/context.d.ts +0 -19
  185. package/dist/types-ts4.5/react/nodes/multiBodiedExtension.d.ts +0 -32
  186. package/dist/types-ts4.5/react/nodes/orderedList.d.ts +0 -10
  187. package/dist/types-ts4.5/react/nodes/panel-compiled.d.ts +0 -22
  188. package/dist/types-ts4.5/react/nodes/panel-emotion.d.ts +0 -23
  189. package/dist/types-ts4.5/react/nodes/panel.d.ts +0 -16
  190. package/dist/types-ts4.5/react/nodes/paragraph.d.ts +0 -3
  191. package/dist/types-ts4.5/react/nodes/placeholder.d.ts +0 -7
  192. package/dist/types-ts4.5/react/nodes/rule.d.ts +0 -2
  193. package/dist/types-ts4.5/react/nodes/status.d.ts +0 -11
  194. package/dist/types-ts4.5/react/nodes/syncBlock.d.ts +0 -7
  195. package/dist/types-ts4.5/react/nodes/table/colgroup.d.ts +0 -4
  196. package/dist/types-ts4.5/react/nodes/table/content-mode.d.ts +0 -10
  197. package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +0 -75
  198. package/dist/types-ts4.5/react/nodes/table/table.d.ts +0 -10
  199. package/dist/types-ts4.5/react/nodes/table/types.d.ts +0 -16
  200. package/dist/types-ts4.5/react/nodes/table.d.ts +0 -116
  201. package/dist/types-ts4.5/react/nodes/tableCell.d.ts +0 -30
  202. package/dist/types-ts4.5/react/nodes/tableNew.d.ts +0 -173
  203. package/dist/types-ts4.5/react/nodes/tableRow.d.ts +0 -26
  204. package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +0 -23
  205. package/dist/types-ts4.5/react/nodes/taskItem.d.ts +0 -20
  206. package/dist/types-ts4.5/react/nodes/taskList.d.ts +0 -9
  207. package/dist/types-ts4.5/react/nodes/text-wrapper.d.ts +0 -13
  208. package/dist/types-ts4.5/react/nodes/unknownBlock.d.ts +0 -2
  209. package/dist/types-ts4.5/react/renderer-node.d.ts +0 -7
  210. package/dist/types-ts4.5/react/types.d.ts +0 -78
  211. package/dist/types-ts4.5/react/utils/EditorMediaClientProvider.d.ts +0 -5
  212. package/dist/types-ts4.5/react/utils/appearance.d.ts +0 -6
  213. package/dist/types-ts4.5/react/utils/breakout.d.ts +0 -1
  214. package/dist/types-ts4.5/react/utils/clipboard.d.ts +0 -1
  215. package/dist/types-ts4.5/react/utils/element-selection.d.ts +0 -9
  216. package/dist/types-ts4.5/react/utils/getCardClickHandler.d.ts +0 -3
  217. package/dist/types-ts4.5/react/utils/getStandaloneBackgroundColorMarks.d.ts +0 -12
  218. package/dist/types-ts4.5/react/utils/inject-props.d.ts +0 -6
  219. package/dist/types-ts4.5/react/utils/links.d.ts +0 -3
  220. package/dist/types-ts4.5/react/utils/lists.d.ts +0 -2
  221. package/dist/types-ts4.5/react/utils/markBlockAsInline.d.ts +0 -10
  222. package/dist/types-ts4.5/react/utils/render-text-segments.d.ts +0 -5
  223. package/dist/types-ts4.5/react/utils/segment-text.d.ts +0 -10
  224. package/dist/types-ts4.5/react/utils/use-select-all-trap.d.ts +0 -2
  225. package/dist/types-ts4.5/render-document.d.ts +0 -27
  226. package/dist/types-ts4.5/renderer-context.d.ts +0 -11
  227. package/dist/types-ts4.5/serializer.d.ts +0 -4
  228. package/dist/types-ts4.5/steps/index.d.ts +0 -17
  229. package/dist/types-ts4.5/text/index.d.ts +0 -8
  230. package/dist/types-ts4.5/text/nodes/blockquote.d.ts +0 -3
  231. package/dist/types-ts4.5/text/nodes/bulletList.d.ts +0 -3
  232. package/dist/types-ts4.5/text/nodes/date.d.ts +0 -3
  233. package/dist/types-ts4.5/text/nodes/decisionItem.d.ts +0 -3
  234. package/dist/types-ts4.5/text/nodes/hardBreak.d.ts +0 -3
  235. package/dist/types-ts4.5/text/nodes/heading.d.ts +0 -3
  236. package/dist/types-ts4.5/text/nodes/index.d.ts +0 -3
  237. package/dist/types-ts4.5/text/nodes/inlineCard.d.ts +0 -3
  238. package/dist/types-ts4.5/text/nodes/listItem.d.ts +0 -3
  239. package/dist/types-ts4.5/text/nodes/mediaGroup.d.ts +0 -3
  240. package/dist/types-ts4.5/text/nodes/mention.d.ts +0 -3
  241. package/dist/types-ts4.5/text/nodes/orderedList.d.ts +0 -3
  242. package/dist/types-ts4.5/text/nodes/panel.d.ts +0 -3
  243. package/dist/types-ts4.5/text/nodes/paragraph.d.ts +0 -3
  244. package/dist/types-ts4.5/text/nodes/rule.d.ts +0 -3
  245. package/dist/types-ts4.5/text/nodes/status.d.ts +0 -3
  246. package/dist/types-ts4.5/text/nodes/table.d.ts +0 -3
  247. package/dist/types-ts4.5/text/nodes/taskItem.d.ts +0 -3
  248. package/dist/types-ts4.5/text/nodes/unknown.d.ts +0 -3
  249. package/dist/types-ts4.5/text-serializer.d.ts +0 -1
  250. package/dist/types-ts4.5/types/i18n.d.ts +0 -5
  251. package/dist/types-ts4.5/types/mediaOptions.d.ts +0 -23
  252. package/dist/types-ts4.5/types/smartLinksOptions.d.ts +0 -59
  253. package/dist/types-ts4.5/ui/Expand.d.ts +0 -19
  254. package/dist/types-ts4.5/ui/ExtensionRenderer.d.ts +0 -38
  255. package/dist/types-ts4.5/ui/MediaCard.d.ts +0 -98
  256. package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +0 -30
  257. package/dist/types-ts4.5/ui/Renderer/PortalContext.d.ts +0 -4
  258. package/dist/types-ts4.5/ui/Renderer/RendererStyleContainer.d.ts +0 -14
  259. package/dist/types-ts4.5/ui/Renderer/ValidationContext.d.ts +0 -14
  260. package/dist/types-ts4.5/ui/Renderer/analytics-utils.d.ts +0 -3
  261. package/dist/types-ts4.5/ui/Renderer/breakout-ssr.d.ts +0 -19
  262. package/dist/types-ts4.5/ui/Renderer/click-to-edit.d.ts +0 -6
  263. package/dist/types-ts4.5/ui/Renderer/count-nodes.d.ts +0 -1
  264. package/dist/types-ts4.5/ui/Renderer/get-base-font-size.d.ts +0 -2
  265. package/dist/types-ts4.5/ui/Renderer/index.d.ts +0 -51
  266. package/dist/types-ts4.5/ui/Renderer/rendererHelper.d.ts +0 -2
  267. package/dist/types-ts4.5/ui/Renderer/style.d.ts +0 -2
  268. package/dist/types-ts4.5/ui/Renderer/truncated-wrapper.d.ts +0 -17
  269. package/dist/types-ts4.5/ui/Renderer/types.d.ts +0 -37
  270. package/dist/types-ts4.5/ui/Renderer/useMemoFromPropsDerivative.d.ts +0 -1
  271. package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +0 -8
  272. package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +0 -10
  273. package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +0 -8
  274. package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +0 -16
  275. package/dist/types-ts4.5/ui/active-header-id-provider.d.ts +0 -18
  276. package/dist/types-ts4.5/ui/annotations/context.d.ts +0 -5
  277. package/dist/types-ts4.5/ui/annotations/contexts/AnnotationHoverContext.d.ts +0 -18
  278. package/dist/types-ts4.5/ui/annotations/contexts/AnnotationManagerContext.d.ts +0 -73
  279. package/dist/types-ts4.5/ui/annotations/contexts/AnnotationRangeContext.d.ts +0 -50
  280. package/dist/types-ts4.5/ui/annotations/draft/component.d.ts +0 -30
  281. package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +0 -7
  282. package/dist/types-ts4.5/ui/annotations/draft/position.d.ts +0 -3
  283. package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +0 -13
  284. package/dist/types-ts4.5/ui/annotations/element/index.d.ts +0 -11
  285. package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +0 -125
  286. package/dist/types-ts4.5/ui/annotations/element/useInlineAnnotationProps.d.ts +0 -24
  287. package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +0 -22
  288. package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +0 -2
  289. package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comments-filter.d.ts +0 -9
  290. package/dist/types-ts4.5/ui/annotations/hooks/use-load-annotations.d.ts +0 -11
  291. package/dist/types-ts4.5/ui/annotations/hooks/user-selection.d.ts +0 -11
  292. package/dist/types-ts4.5/ui/annotations/hooks/utils.d.ts +0 -2
  293. package/dist/types-ts4.5/ui/annotations/hover/mounter.d.ts +0 -19
  294. package/dist/types-ts4.5/ui/annotations/hover/range-validator.d.ts +0 -13
  295. package/dist/types-ts4.5/ui/annotations/index.d.ts +0 -7
  296. package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +0 -19
  297. package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +0 -13
  298. package/dist/types-ts4.5/ui/annotations/types.d.ts +0 -33
  299. package/dist/types-ts4.5/ui/annotations/view/index.d.ts +0 -8
  300. package/dist/types-ts4.5/ui/annotations/wrapper.d.ts +0 -9
  301. package/dist/types-ts4.5/ui/hooks/useScrollToBlock.d.ts +0 -16
  302. package/dist/types-ts4.5/ui/hooks/useStableScroll.d.ts +0 -27
  303. package/dist/types-ts4.5/ui/renderer-props.d.ts +0 -172
  304. package/dist/types-ts4.5/use-feature-flags.d.ts +0 -2
  305. package/dist/types-ts4.5/utils.d.ts +0 -21
@@ -1,173 +0,0 @@
1
- import React from 'react';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { TableLayout } from '@atlaskit/adf-schema';
4
- import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
5
- import { SortOrder } from '@atlaskit/editor-common/types';
6
- import type { RendererAppearance, StickyHeaderConfig } from '../../ui/Renderer/types';
7
- import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
8
- import type { StickyMode } from './table/sticky';
9
- import { OverflowParent } from './table/sticky';
10
- import type { SharedTableProps } from './table/types';
11
- import { TableStickyScrollbar } from './TableStickyScrollbar';
12
- export type TableArrayMapped = {
13
- rowNodes: Array<PMNode | null>;
14
- rowReact: React.ReactElement;
15
- };
16
- export declare const isTableResizingEnabled: (appearance: RendererAppearance) => boolean;
17
- export declare const isStickyScrollbarEnabled: (appearance: RendererAppearance) => boolean;
18
- export declare const orderChildren: (children: React.ReactElement[], tableNode: PMNode, smartCardStorage: WithSmartCardStorageProps["smartCardStorage"], tableOrderStatus?: TableOrderStatus) => React.ReactElement[];
19
- export declare const hasRowspan: (row: PMNode) => boolean;
20
- export declare const getRefTop: (refElement: HTMLElement) => number;
21
- export declare const shouldHeaderStick: (scrollTop: number, tableTop: number, tableBottom: number, rowHeight: number) => boolean;
22
- export declare const shouldHeaderPinBottom: (scrollTop: number, tableBottom: number, rowHeight: number) => boolean;
23
- export declare const addSortableColumn: (rows: React.ReactElement<any>[], tableOrderStatus: TableOrderStatus | undefined, onSorting: (columnIndex: number, sortOrder: SortOrder) => void) => React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
24
- export type TableProps = SharedTableProps & {
25
- allowColumnSorting?: boolean;
26
- allowTableAlignment?: boolean;
27
- allowTableResizing?: boolean;
28
- children: React.ReactElement<any> | Array<React.ReactElement<any>>;
29
- isPresentational?: boolean;
30
- rendererAppearance?: RendererAppearance;
31
- stickyHeaders?: StickyHeaderConfig;
32
- tableNode?: PMNode;
33
- };
34
- export declare const isHeaderRowEnabled: (rows: (React.ReactChild | React.ReactFragment | React.ReactPortal)[]) => any;
35
- export declare const tableCanBeSticky: (node: PMNode | undefined, children: (React.ReactChild | React.ReactFragment | React.ReactPortal)[]) => any;
36
- export interface TableOrderStatus {
37
- columnIndex: number;
38
- order: SortOrder;
39
- }
40
- export interface TableState {
41
- headerRowHeight: number;
42
- stickyMode: StickyMode;
43
- wrapperWidth: number;
44
- }
45
- /**
46
- * Reads `nestedRendererType` from RendererContext and renders the fake left/right
47
- * borders only when the current renderer is the nested renderer for a reference
48
- * synced block.
49
- */
50
- export declare const RefSyncBlockFakeBorders: ({ isNumberColumnEnabled, }: {
51
- isNumberColumnEnabled: boolean;
52
- }) => React.JSX.Element | null;
53
- /**
54
- * TableContainer renders tables using only CSS-based rules
55
- */
56
- /**
57
- *
58
- */
59
- export declare class TableContainer extends React.Component<TableProps & OverflowShadowProps & WithSmartCardStorageProps, TableState> {
60
- state: TableState;
61
- tableRef: React.RefObject<HTMLTableElement>;
62
- stickyHeaderRef: React.RefObject<HTMLElement>;
63
- stickyScrollbarRef: React.RefObject<HTMLDivElement>;
64
- stickyWrapperRef: React.RefObject<HTMLDivElement>;
65
- wrapperRef: React.RefObject<HTMLDivElement>;
66
- stickyScrollbar?: TableStickyScrollbar;
67
- nextFrame: number | undefined;
68
- overflowParent: OverflowParent | null;
69
- updatedLayout: TableLayout | 'custom';
70
- private containerRef;
71
- private _isInsideNestedRenderer;
72
- private _isInsideTableCell;
73
- private lastComputedStyle;
74
- private resizeObserver;
75
- private applyResizerChange;
76
- /**
77
- * Checks if this table is inside a nested renderer (e.g. Include Page macro)
78
- * by looking for multiple .ak-renderer-document ancestors in the DOM.
79
- * The result is cached since a table's position in the DOM tree is stable after mount.
80
- */
81
- private isInsideNestedRenderer;
82
- /**
83
- * Checks if this table is inside a table cell in the DOM. The result is cached
84
- * since a table's position in the DOM tree is stable after mount.
85
- */
86
- private isInsideTableCell;
87
- private isInsideTableContext;
88
- /**
89
- * For tables inside nested renderers (e.g. Include Page macro), the parent
90
- * renderer's CSS override forces width:100%!important and left:0!important
91
- * which overrides the inline styles set by this component. Using
92
- * style.setProperty with 'important' priority on inline styles beats
93
- * stylesheet !important rules per the CSS cascade.
94
- *
95
- * Tables that are nested inside another table need to remain constrained by
96
- * their table-cell context. Do not promote their width to inline !important,
97
- * otherwise nested tables rendered through macros such as Excerpt Include can
98
- * overflow and overlap adjacent cells.
99
- *
100
- * Top-level tables in nested renderers still preserve their saved width, but
101
- * are capped to their containing block so wide tables do not escape constrained
102
- * macro bodies such as Excerpt Include panels.
103
- *
104
- * Uses lastComputedStyle (populated during render) rather than reading from
105
- * element.style, because React may remove properties from the DOM when their
106
- * values transition to undefined between renders.
107
- */
108
- private applyNestedRendererTableFix;
109
- /**
110
- * Callback ref that captures the container DOM element and also forwards
111
- * to the handleRef prop from the overflow shadow HOC.
112
- */
113
- private setContainerRef;
114
- /**
115
- * Starts observing table dimensions and wires sticky header/scrollbar behavior after mount.
116
- *
117
- * @example
118
- */
119
- componentDidMount(): void;
120
- /**
121
- * Updates sticky header wiring and scroll synchronization after prop or state changes.
122
- *
123
- * @param prevProps
124
- * @param prevState
125
- * @example
126
- */
127
- componentDidUpdate(prevProps: TableProps, prevState: TableState): void;
128
- componentWillUnmount: () => void;
129
- getScrollTop: () => number;
130
- updateSticky: () => void;
131
- onScroll: () => void;
132
- onWrapperScrolled: () => void;
133
- /**
134
- * Calculates the top offset used when the sticky header is pinned to the table bottom.
135
- */
136
- get pinTop(): number | undefined;
137
- /**
138
- * Determines whether sticky header positioning should include the default scroll root offset.
139
- */
140
- get shouldAddOverflowParentOffsetTop_DO_NOT_USE(): boolean | null | undefined;
141
- /**
142
- * Resolves the top position for the sticky header based on the current sticky mode.
143
- */
144
- get stickyTop(): number | undefined;
145
- /**
146
- * Renders the table container, sticky header, table content, sticky scrollbar, and synced block borders.
147
- *
148
- * @example
149
- */
150
- render(): React.JSX.Element;
151
- private grabFirstRowRef;
152
- }
153
- type TableProcessorState = {
154
- tableOrderStatus?: TableOrderStatus;
155
- };
156
- /**
157
- * Processes table children before passing them to the styled table container.
158
- */
159
- export declare class TableProcessorWithContainerStyles extends React.Component<TableProps & OverflowShadowProps & WithSmartCardStorageProps, TableProcessorState> {
160
- state: {
161
- tableOrderStatus: undefined;
162
- };
163
- /**
164
- * Renders processed table children inside the table container.
165
- *
166
- * @example
167
- */
168
- render(): React.JSX.Element | null;
169
- private addSortableColumn;
170
- private changeSortOrder;
171
- private addNumberColumnIndexes;
172
- }
173
- export {};
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import { SortOrder } from '@atlaskit/editor-common/types';
3
- type Props = {
4
- allowColumnSorting?: boolean;
5
- children?: React.ReactNode;
6
- index?: number;
7
- innerRef?: React.Ref<HTMLTableRowElement>;
8
- isFirstRow?: boolean;
9
- isLastRow?: boolean;
10
- isNumberColumnEnabled?: number;
11
- onSorting?: (columnIndex?: number, currentSortOrdered?: SortOrder) => void;
12
- tableOrderStatus?: {
13
- columnIndex: number;
14
- order: SortOrder;
15
- };
16
- };
17
- type State = {
18
- colGroupWidths: string[];
19
- };
20
- export default class TableRow extends React.Component<Props, State> {
21
- state: State;
22
- addSortableColumn: (childrenArray: React.ReactNode[]) => React.ReactNode[];
23
- addColGroupWidth: (childrenArray: React.ReactNode[]) => React.ReactNode[];
24
- render(): React.JSX.Element;
25
- }
26
- export {};
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import type { ReactNode } from 'react';
3
- import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
4
- import type { ContentRef, TaskDecisionProvider } from '@atlaskit/task-decision';
5
- interface Props {
6
- children?: ReactNode;
7
- contentRef?: ContentRef;
8
- contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
9
- dataAttributes?: {
10
- [key: string]: string | number;
11
- };
12
- disabled?: boolean;
13
- disableOnChange?: boolean;
14
- isDone: boolean;
15
- isRenderer?: boolean;
16
- objectAri: string;
17
- onChange?: (taskId: string, isChecked: boolean) => void;
18
- showPlaceholder?: boolean;
19
- taskDecisionProvider?: Promise<TaskDecisionProvider>;
20
- taskId: string;
21
- }
22
- export default function TaskItemWithProviders(props: Props): React.JSX.Element;
23
- export {};
@@ -1,20 +0,0 @@
1
- import React, { PureComponent } from 'react';
2
- import type { ReactNode } from 'react';
3
- import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
- import type { RendererContext, NodeProps } from '../types';
5
- export interface Props {
6
- children?: ReactNode;
7
- disabled?: boolean;
8
- disableOnChange?: boolean;
9
- localId: string;
10
- providers?: ProviderFactory;
11
- rendererContext?: RendererContext;
12
- state?: string;
13
- }
14
- export default class TaskItem extends PureComponent<NodeProps<Props>, Object> {
15
- private providerFactory;
16
- constructor(props: NodeProps<Props>);
17
- componentWillUnmount(): void;
18
- private renderWithProvider;
19
- render(): React.JSX.Element;
20
- }
@@ -1,9 +0,0 @@
1
- import React, { PureComponent } from 'react';
2
- import type { ReactNode } from 'react';
3
- export interface Props {
4
- children?: ReactNode;
5
- localId?: string;
6
- }
7
- export default class TaskList extends PureComponent<Props, Object> {
8
- render(): React.JSX.Element | null;
9
- }
@@ -1,13 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import React from 'react';
3
- import type { TextHighlighter } from '../types';
4
- import type { Mark } from '@atlaskit/editor-prosemirror/model';
5
- type Props = {
6
- children?: ReactNode | null;
7
- endPos: number;
8
- marks?: readonly Mark[];
9
- startPos: number;
10
- textHighlighter?: TextHighlighter;
11
- };
12
- declare const TextWrapper: (props: Props) => React.JSX.Element | null;
13
- export default TextWrapper;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function UnknownBlock(props: React.PropsWithChildren<unknown>): React.JSX.Element;
@@ -1,7 +0,0 @@
1
- import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
2
- export declare const insideBreakoutLayout: (path: Node[]) => boolean;
3
- export declare const insideBreakoutExpand: (path: Node[]) => boolean;
4
- export declare const insideBlockNode: (path: Node[], schema: Schema) => boolean;
5
- export declare const insideMultiBodiedExtension: (path: Node[], schema: Schema) => boolean;
6
- export declare const insideTable: (path: Node[], schema: Schema) => boolean;
7
- export declare const getNestedUnderNodes: (path: Node[], nodeTypeNames: string[]) => string | undefined;
@@ -1,78 +0,0 @@
1
- import type { PropsWithChildren } from 'react';
2
- import type { Node as PMNode, NodeType, Schema } from '@atlaskit/editor-prosemirror/model';
3
- import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
4
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
5
- import type { EventHandlers } from '@atlaskit/editor-common/ui';
6
- import type { AnalyticsEventPayload } from '../analytics/events';
7
- import type { Serializer } from '../serializer';
8
- import type { RendererAppearance, HeadingAnchorLinksProps, RendererContentMode, NestedRendererType } from '../ui/Renderer/types';
9
- import type { AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema';
10
- export interface RendererContext {
11
- adDoc?: any;
12
- containerAri?: string;
13
- nestedRendererType?: NestedRendererType;
14
- objectAri?: string;
15
- schema?: Schema;
16
- }
17
- export interface NodeMeta {
18
- [key: string]: any;
19
- allowCopyToClipboard?: boolean;
20
- allowCustomPanels?: boolean;
21
- allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
22
- allowPlaceholderText?: boolean;
23
- allowWrapCodeBlock?: boolean;
24
- asInline?: 'on' | undefined;
25
- content?: {
26
- [key: string]: any;
27
- } | null;
28
- dataAttributes: {
29
- 'data-renderer-start-pos': number;
30
- };
31
- eventHandlers?: EventHandlers | undefined;
32
- extensionHandlers?: ExtensionHandlers | undefined;
33
- fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
34
- marks: PMNode['marks'];
35
- nodeType: NodeType['name'];
36
- portal?: HTMLElement | undefined;
37
- providers?: ProviderFactory | undefined;
38
- rendererAppearance?: RendererAppearance;
39
- rendererContentMode?: RendererContentMode;
40
- rendererContext?: RendererContext;
41
- serializer: Serializer<JSX.Element>;
42
- text?: PMNode['text'];
43
- }
44
- export interface MarkMeta {
45
- [key: string]: any;
46
- dataAttributes: {
47
- 'data-block-mark'?: true;
48
- 'data-renderer-mark': true;
49
- };
50
- eventHandlers?: EventHandlers;
51
- fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
52
- isInline?: boolean;
53
- markKey?: any;
54
- }
55
- export interface AnnotationMarkMeta extends MarkMeta {
56
- allowAnnotations: boolean;
57
- annotationParentIds: string[];
58
- annotationType: AnnotationTypes;
59
- id: AnnotationId;
60
- isMediaInline?: boolean;
61
- useBlockLevel?: boolean;
62
- }
63
- export type NodeProps<NodeAttrs = Object> = NodeAttrs & PropsWithChildren<NodeMeta>;
64
- export type MarkProps<MarkAttrs = Object> = MarkAttrs & PropsWithChildren<MarkMeta>;
65
- export type TextHighlighter = {
66
- component: React.ComponentType<{
67
- children: React.ReactNode;
68
- groups: Array<string> | undefined;
69
- marks: Set<string>;
70
- match: string;
71
- startPos: number;
72
- }>;
73
- pattern: RegExp;
74
- };
75
- export interface ExtensionViewportSize {
76
- extensionId?: string;
77
- viewportSize?: string;
78
- }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { MediaSSR } from '../../types/mediaOptions';
3
- export declare const EditorMediaClientProvider: ({ children, ssr, }: React.PropsWithChildren<{
4
- ssr?: MediaSSR;
5
- }>) => React.JSX.Element;
@@ -1,6 +0,0 @@
1
- import type { RendererAppearance } from '../../ui/Renderer/types';
2
- export declare const isFullWidthAppearance: (appearance: RendererAppearance) => appearance is "full-width";
3
- export declare const isMaxWidthAppearance: (appearance: RendererAppearance) => appearance is "max";
4
- export declare const isFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-page";
5
- export declare const isCommentAppearance: (appearance: RendererAppearance) => appearance is "comment";
6
- export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-width" | "full-page" | "max";
@@ -1 +0,0 @@
1
- export declare const calcBreakoutWidthCss: (layout: "full-width" | "wide" | "default") => "100%" | "min(var(--ak-editor--breakout-container-without-gutter-width), var(--ak-editor--full-width-layout-width))" | "min(var(--ak-editor--breakout-container-without-gutter-width), var(--ak-editor--breakout-wide-layout-width))";
@@ -1 +0,0 @@
1
- export declare const copyTextToClipboard: (text: string) => Promise<void>;
@@ -1,9 +0,0 @@
1
- export declare class ElementSelection {
2
- readonly type: string;
3
- readonly range?: Range;
4
- private constructor();
5
- eq(selection?: ElementSelection): boolean;
6
- inside(el: HTMLElement): boolean;
7
- select(el: HTMLElement): ElementSelection;
8
- static fromWindow(win?: Window): ElementSelection;
9
- }
@@ -1,3 +0,0 @@
1
- import type { EventHandlers } from '@atlaskit/editor-common/ui';
2
- import type { CardProps } from '@atlaskit/smart-card';
3
- export declare const getCardClickHandler: (eventHandlers?: EventHandlers, url?: string) => CardProps["onClick"] | undefined;
@@ -1,12 +0,0 @@
1
- import type { Mark, Node } from '@atlaskit/editor-prosemirror/model';
2
- /**
3
- * Returns an array of **backgroundColor marks** that should be considered "standalone"
4
- * for highlight padding purposes.
5
- *
6
- * Standalone backgroundColor marks are determined by scanning the content array and
7
- * checking for backgroundColor marks that are separated by whitespace boundaries.
8
- *
9
- * @param content Array of ProseMirror nodes to scan for standalone backgroundColor marks.
10
- * @returns Array of backgroundColor marks that are standalone.
11
- */
12
- export declare const getStandaloneBackgroundColorMarks: (content: Node[]) => Mark[];
@@ -1,6 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- /**
3
- * Helper function to recursively injects props to
4
- * all valid children react nodes.
5
- */
6
- export declare function recursivelyInjectProps(children: ReactNode[], propsToInject: Object): ReactNode[];
@@ -1,3 +0,0 @@
1
- import type { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
2
- export declare function isNestedHeaderLinksEnabled(allowHeadingAnchorLinks?: HeadingAnchorLinksProps): boolean;
3
- export declare function getActiveHeadingId(allowHeadingAnchorLinks?: HeadingAnchorLinksProps): string | undefined;
@@ -1,2 +0,0 @@
1
- import type { Node } from '@atlaskit/editor-prosemirror/model';
2
- export declare function getListIndentLevel(path: Node[]): number;
@@ -1,10 +0,0 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import type { ExtensionParams, Parameters } from '@atlaskit/editor-common/extensions';
3
- export declare function markBlockAsInline({ nodes, onMark, parentPos, shouldDisplayExtensionAsInline, }: {
4
- nodes: PMNode[];
5
- onMark: ({ pos }: {
6
- pos: number;
7
- }) => void;
8
- parentPos: number;
9
- shouldDisplayExtensionAsInline: (extensionParams: ExtensionParams<Parameters>) => boolean;
10
- }): void;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { Mark } from '@atlaskit/editor-prosemirror/model';
3
- import type { TextSegment } from './segment-text';
4
- import type { TextHighlighter } from '../types';
5
- export declare function renderTextSegments(segments: Array<TextSegment>, textHighlighter: TextHighlighter | undefined, marksList: readonly Mark[], startPos: number): string | React.JSX.Element;
@@ -1,10 +0,0 @@
1
- import type { TextHighlighter } from '../types';
2
- export type TextSegment = {
3
- text: string;
4
- type: 'plain';
5
- } | {
6
- groups: Array<string> | undefined;
7
- text: string;
8
- type: 'match';
9
- };
10
- export declare function segmentText(text: string | undefined, highlighter: TextHighlighter | undefined): Array<TextSegment>;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const useSelectAllTrap: <T extends HTMLElement>() => React.MutableRefObject<T | null>;
@@ -1,27 +0,0 @@
1
- import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
2
- import type { ADFStage } from '@atlaskit/editor-common/validator';
3
- import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
4
- import type { AnalyticsEventPayload } from './analytics/events';
5
- import type { Serializer } from './serializer';
6
- import type { RendererAppearance } from './ui/Renderer/types';
7
- export interface RenderOutput<T> {
8
- pmDoc?: PMNode;
9
- result: T;
10
- stat: RenderOutputStat;
11
- }
12
- export interface RenderOutputStat {
13
- buildTreeTime?: number;
14
- nodesCount?: Record<string, number>;
15
- sanitizeTime: number;
16
- serializeTime?: number;
17
- }
18
- export interface ResultWithTime<T> {
19
- output: T;
20
- time: number;
21
- }
22
- type DispatchAnalyticsEvent = (event: AnalyticsEventPayload) => void;
23
- export declare const renderDocument: <T>(doc: any, serializer: Serializer<T>, schema?: Schema, adfStage?: ADFStage, useSpecBasedValidator?: boolean, rendererId?: string, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, unsupportedContentLevelsTracking?: UnsupportedContentLevelsTracking, appearance?: RendererAppearance, includeNodesCountInStats?: boolean, skipValidation?: boolean, validationOverrides?: {
24
- allowNestedTables?: boolean;
25
- allowTableInPanel?: boolean;
26
- }) => RenderOutput<T | null>;
27
- export {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { FeatureFlags } from '@atlaskit/editor-common/types';
3
- import type { NestedRendererType } from './ui/Renderer/types';
4
- export type RendererContextProps = {
5
- featureFlags?: FeatureFlags;
6
- isTopLevelRenderer?: boolean;
7
- nestedRendererType?: NestedRendererType;
8
- timeZone?: string;
9
- };
10
- export declare const useRendererContext: () => RendererContextProps;
11
- export declare const RendererContextProvider: React.Provider<{}>;
@@ -1,4 +0,0 @@
1
- import type { Fragment } from '@atlaskit/editor-prosemirror/model';
2
- export interface Serializer<T> {
3
- serializeFragment(fragment: Fragment, props?: any, target?: any, key?: string): T | null;
4
- }
@@ -1,17 +0,0 @@
1
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
- import { AddMarkStep } from '@atlaskit/editor-prosemirror/transform';
3
- export declare function getStartPos(element: HTMLElement): number;
4
- export declare function findParent(element: ChildNode | Node): HTMLElement | null;
5
- export declare function isRendererRoot(element: HTMLElement | null): boolean;
6
- export declare function resolvePos(node: Node | null, offset: number, findEnd?: boolean): number | false;
7
- interface AnnotationStepOptions {
8
- annotationId: string;
9
- annotationType: 'inlineComment';
10
- schema: Schema;
11
- }
12
- export declare function getPosFromRange(range: Range): {
13
- from: number;
14
- to: number;
15
- } | false;
16
- export declare function createAnnotationStep(from: number, to: number, opts: AnnotationStepOptions): AddMarkStep;
17
- export {};
@@ -1,8 +0,0 @@
1
- import type { Fragment, Schema } from '@atlaskit/editor-prosemirror/model';
2
- import type { Serializer } from '../serializer';
3
- export default class TextSerializer implements Serializer<string> {
4
- private schema;
5
- constructor(schema: Schema);
6
- serializeFragment(fragment: Fragment): string;
7
- static fromSchema(schema?: Schema): TextSerializer;
8
- }
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const blockquote: NodeReducer;
3
- export default blockquote;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const bulletList: NodeReducer;
3
- export default bulletList;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const date: NodeReducer;
3
- export default date;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const decisionItem: NodeReducer;
3
- export default decisionItem;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const hardBreak: NodeReducer;
3
- export default hardBreak;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const heading: NodeReducer;
3
- export default heading;
@@ -1,3 +0,0 @@
1
- import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
- export type NodeReducer = (node: PMNode, schema: Schema) => string;
3
- export declare const reduce: NodeReducer;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const inlineCard: NodeReducer;
3
- export default inlineCard;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const listItem: NodeReducer;
3
- export default listItem;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const mediaGroup: NodeReducer;
3
- export default mediaGroup;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const mention: NodeReducer;
3
- export default mention;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const orderedList: NodeReducer;
3
- export default orderedList;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const panel: NodeReducer;
3
- export default panel;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const paragraph: NodeReducer;
3
- export default paragraph;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const rule: NodeReducer;
3
- export default rule;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const status: NodeReducer;
3
- export default status;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const table: NodeReducer;
3
- export default table;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const taskItem: NodeReducer;
3
- export default taskItem;
@@ -1,3 +0,0 @@
1
- import type { NodeReducer } from './';
2
- declare const unknown: NodeReducer;
3
- export default unknown;
@@ -1 +0,0 @@
1
- export { default as TextSerializer } from './text';