@atlaskit/renderer 132.5.3 → 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 +15 -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 +6 -2
  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,28 +0,0 @@
1
- import { default as React } from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
- import type { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
4
- import type { MediaFeatureFlags } from '@atlaskit/media-common';
5
- import type { EditorAppearance } from '@atlaskit/editor-common/types';
6
- import type { EventHandlers, MediaSingleWidthType } from '@atlaskit/editor-common/ui';
7
- import type { AnalyticsEventPayload } from '../../../analytics/events';
8
- import type { RendererAppearance } from '../../../ui/Renderer/types';
9
- export interface Props {
10
- allowCaptions?: boolean;
11
- children: React.ReactNode;
12
- dataAttributes?: Record<string, any>;
13
- editorAppearance?: EditorAppearance;
14
- eventHandlers?: EventHandlers;
15
- featureFlags?: MediaFeatureFlags;
16
- fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
17
- isInsideOfBlockNode?: boolean;
18
- isInsideOfInlineExtension?: boolean;
19
- layout: MediaSingleLayout;
20
- rendererAppearance: RendererAppearance;
21
- width?: number;
22
- widthType?: MediaSingleWidthType;
23
- }
24
- export declare const getMediaContainerWidth: (currentContainerWidth: number, layout: MediaSingleLayout) => number;
25
- declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
26
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
27
- };
28
- export default _default_1;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
- import type { EventHandlers } from '@atlaskit/editor-common/ui';
4
- import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
5
- export interface Props extends MarkDataAttributes {
6
- accessLevel?: string;
7
- eventHandlers?: EventHandlers;
8
- id: string;
9
- localId?: string;
10
- providers?: ProviderFactory;
11
- text: string;
12
- }
13
- declare const _default_1: React.NamedExoticComponent<Props>;
14
- export default _default_1;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { MultiBodiedExtensionActions } from '@atlaskit/editor-common/extensions';
3
- type ActionsProps = {
4
- allowBodiedOverride: boolean;
5
- children: React.ReactNode;
6
- childrenContainer: React.ReactNode;
7
- updateActiveChild: (index: number) => void;
8
- };
9
- export declare const useMultiBodiedExtensionActions: ({ updateActiveChild, children, allowBodiedOverride, childrenContainer, }: ActionsProps) => MultiBodiedExtensionActions;
10
- export {};
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
3
- type useMultiBodiedExtensionContextProps = {
4
- extensionHandlers?: ExtensionHandlers;
5
- extensionKey: string;
6
- extensionType: string;
7
- };
8
- type MultiBodiedExtensionLoadingContext = {
9
- extensionContext: MultiBodiedExtensionContext | null;
10
- loading: boolean;
11
- };
12
- export type MultiBodiedExtensionContext = {
13
- NodeRenderer: React.ComponentType<any>;
14
- privateProps: {
15
- [prop: string]: any;
16
- };
17
- };
18
- export declare const useMultiBodiedExtensionContext: ({ extensionHandlers, extensionType, extensionKey, }: useMultiBodiedExtensionContextProps) => MultiBodiedExtensionLoadingContext;
19
- export {};
@@ -1,32 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- * @jsxFrag
5
- */
6
- import { jsx } from '@emotion/react';
7
- import React from 'react';
8
- import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
9
- import type { RendererContext } from '../types';
10
- import type { Serializer } from '../../serializer';
11
- import type { ExtensionLayout } from '@atlaskit/adf-schema';
12
- import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
13
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
14
- import type { RendererAppearance } from '../../ui/Renderer/types';
15
- type Props = React.PropsWithChildren<{
16
- content?: any;
17
- extensionHandlers?: ExtensionHandlers;
18
- extensionKey: string;
19
- extensionType: string;
20
- layout?: ExtensionLayout;
21
- localId?: string;
22
- marks?: PMMark[];
23
- originalContent?: any;
24
- parameters?: any;
25
- path?: PMNode[];
26
- providers: ProviderFactory;
27
- rendererAppearance?: RendererAppearance;
28
- rendererContext: RendererContext;
29
- serializer: Serializer<any>;
30
- }>;
31
- declare const MultiBodiedExtension: (props: Props) => jsx.JSX.Element;
32
- export default MultiBodiedExtension;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { Node } from '@atlaskit/editor-prosemirror/model';
3
- export default function OrderedList(props: {
4
- children: React.ReactNode;
5
- content?: Node[];
6
- localId?: string;
7
- order?: number;
8
- path?: Node[];
9
- start?: number;
10
- }): React.JSX.Element;
@@ -1,22 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- /**
6
- * Compiled branch of the `platform_editor_static_css` experiment.
7
- * Used via `componentWithCondition` in `panel.tsx`.
8
- *
9
- * Cleanup: delete this file once the experiment has shipped.
10
- */
11
- import React from 'react';
12
- import { PanelType } from '@atlaskit/adf-schema';
13
- interface PanelStyledProps {
14
- backgroundColor?: string;
15
- 'data-panel-type': PanelType;
16
- hasIcon?: boolean;
17
- }
18
- export declare const PanelStyledCompiled: {
19
- ({ backgroundColor, children, className, hasIcon, ...props }: React.PropsWithChildren<PanelStyledProps & React.HTMLAttributes<HTMLDivElement>>): JSX.Element;
20
- displayName: string;
21
- };
22
- export {};
@@ -1,23 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- /**
6
- * Emotion branch of the `platform_editor_static_css` experiment.
7
- * Used via `componentWithCondition` in `panel.tsx`.
8
- *
9
- * Cleanup: delete this file once the experiment has shipped.
10
- */
11
- import React from 'react';
12
- import { jsx } from '@emotion/react';
13
- import { PanelType } from '@atlaskit/adf-schema';
14
- interface PanelStyledProps {
15
- backgroundColor?: string;
16
- 'data-panel-type': PanelType;
17
- hasIcon?: boolean;
18
- }
19
- export declare const PanelStyledEmotion: {
20
- ({ backgroundColor, hasIcon, ...props }: React.PropsWithChildren<PanelStyledProps & React.HTMLAttributes<HTMLDivElement>>): jsx.JSX.Element;
21
- displayName: string;
22
- };
23
- export {};
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { PanelType } from '@atlaskit/adf-schema';
3
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
- export interface Props {
5
- allowCustomPanels?: boolean;
6
- children?: React.ReactNode;
7
- localId?: string;
8
- panelColor?: string;
9
- panelIcon?: string;
10
- panelIconId?: string;
11
- panelIconText?: string;
12
- panelType: PanelType;
13
- providers?: ProviderFactory;
14
- }
15
- declare const Panel: (props: Props) => React.JSX.Element;
16
- export default Panel;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import type { NodeProps } from '../types';
3
- export default function Paragraph({ children, dataAttributes, localId, asInline, }: NodeProps): React.JSX.Element;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- allowPlaceholderText?: boolean;
4
- text: string;
5
- }
6
- export default function Placeholder(props: Props): React.JSX.Element;
7
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function Rule(): React.JSX.Element;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { Color } from '@atlaskit/status/element';
3
- import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
4
- export interface Props extends MarkDataAttributes {
5
- color: Color;
6
- localId?: string;
7
- style?: string;
8
- text: string;
9
- }
10
- declare const _default_1: React.NamedExoticComponent<Props>;
11
- export default _default_1;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- export default function SyncBlock(props: React.PropsWithChildren<{
4
- content?: PMNode[];
5
- localId?: string;
6
- resourceId?: string;
7
- }>): React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { SharedTableProps } from './types';
3
- export declare const colWidthSum: (columnWidths: number[]) => number;
4
- export declare const Colgroup: (props: SharedTableProps) => React.JSX.Element | null;
@@ -1,10 +0,0 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import type { RendererAppearance } from '../../../ui/Renderer/types';
3
- type ContentModeOptions = {
4
- allowTableResizing?: boolean;
5
- isTableNested?: boolean;
6
- rendererAppearance?: RendererAppearance;
7
- tableNode: PMNode | undefined;
8
- };
9
- export declare const isContentModeSupported: ({ allowTableResizing, rendererAppearance, }: Pick<ContentModeOptions, "allowTableResizing" | "rendererAppearance">) => boolean;
10
- export {};
@@ -1,75 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import { jsx } from '@emotion/react';
7
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
8
- import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
9
- import type { TableLayout } from '@atlaskit/adf-schema';
10
- import type { RendererAppearance } from '../../../ui/Renderer/types';
11
- export type StickyMode = 'none' | 'stick' | 'pin-bottom';
12
- export declare const tableStickyPadding = 8;
13
- type StickyTableProps = {
14
- allowFixedColumnWidthOption?: boolean;
15
- allowTableResizing?: boolean;
16
- children: React.ReactNode[];
17
- columnWidths?: number[];
18
- fixTableSSRResizing?: boolean;
19
- innerRef: React.RefObject<HTMLDivElement>;
20
- isNumberColumnEnabled: boolean;
21
- layout: TableLayout;
22
- left?: number;
23
- mode: StickyMode;
24
- rendererAppearance: RendererAppearance;
25
- renderWidth: number;
26
- rowHeight: number;
27
- tableNode?: PMNode;
28
- tableWidth: 'inherit' | number;
29
- top?: number;
30
- wrapperWidth: number;
31
- } & OverflowShadowProps;
32
- export declare const StickyTable: ({ top, left, mode, shadowClassNames, innerRef, wrapperWidth, tableWidth, isNumberColumnEnabled, layout, children, columnWidths, renderWidth, rowHeight, tableNode, rendererAppearance, allowTableResizing, fixTableSSRResizing, allowFixedColumnWidthOption, }: StickyTableProps) => jsx.JSX.Element;
33
- /**
34
- *
35
- */
36
- export declare class OverflowParent {
37
- private ref;
38
- private constructor();
39
- /**
40
- *
41
- * @param el
42
- * @param defaultScrollRootId
43
- * @example
44
- */
45
- static fromElement(el: HTMLElement | null, defaultScrollRootId?: string): OverflowParent;
46
- /**
47
- *
48
- */
49
- get isElement(): boolean;
50
- /**
51
- *
52
- */
53
- get id(): string;
54
- /**
55
- *
56
- */
57
- get top(): number;
58
- /**
59
- *
60
- * @param type
61
- * @param cb
62
- * @param {...any} args
63
- * @example
64
- */
65
- addEventListener(type: string, cb: EventListenerOrEventListenerObject, ...args: any[]): void;
66
- /**
67
- *
68
- * @param type
69
- * @param cb
70
- * @param {...any} args
71
- * @example
72
- */
73
- removeEventListener(type: string, cb: EventListenerOrEventListenerObject, ...args: any[]): void;
74
- }
75
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { SharedTableProps } from './types';
3
- type TableProps = SharedTableProps & {
4
- children: React.ReactNode[];
5
- fixTableSSRResizing?: boolean;
6
- innerRef?: React.RefObject<HTMLTableElement>;
7
- isPresentational?: boolean;
8
- };
9
- export declare const Table: React.MemoExoticComponent<({ innerRef, isNumberColumnEnabled, columnWidths, layout, renderWidth, children, tableNode, rendererAppearance, isInsideOfBlockNode, isInsideOfTable, isinsideMultiBodiedExtension, allowTableResizing, isPresentational, fixTableSSRResizing, allowFixedColumnWidthOption, }: TableProps) => React.JSX.Element>;
10
- export {};
@@ -1,16 +0,0 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import type { TableLayout } from '@atlaskit/adf-schema';
3
- import type { RendererAppearance } from '../../../ui/Renderer/types';
4
- export type SharedTableProps = {
5
- allowFixedColumnWidthOption?: boolean;
6
- allowTableResizing?: boolean;
7
- columnWidths?: Array<number>;
8
- isinsideMultiBodiedExtension?: boolean;
9
- isInsideOfBlockNode?: boolean;
10
- isInsideOfTable?: boolean;
11
- isNumberColumnEnabled: boolean;
12
- layout: TableLayout;
13
- rendererAppearance: RendererAppearance;
14
- renderWidth: number;
15
- tableNode?: PMNode;
16
- };
@@ -1,116 +0,0 @@
1
- import React from 'react';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
4
- import type { Diff } from '@atlaskit/editor-common/utils';
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
- disableTableOverflowShadow?: boolean;
30
- isPresentational?: boolean;
31
- rendererAppearance?: RendererAppearance;
32
- stickyHeaders?: StickyHeaderConfig;
33
- tableNode?: PMNode;
34
- };
35
- export declare const isHeaderRowEnabled: (rows: (React.ReactChild | React.ReactFragment | React.ReactPortal)[]) => any;
36
- export declare const tableCanBeSticky: (node: PMNode | undefined, children: (React.ReactChild | React.ReactFragment | React.ReactPortal)[]) => any;
37
- export interface TableOrderStatus {
38
- columnIndex: number;
39
- order: SortOrder;
40
- }
41
- export interface TableState {
42
- headerRowHeight: number;
43
- stickyMode: StickyMode;
44
- wrapperWidth: number;
45
- } /**
46
- *
47
- */
48
- export declare class TableContainer extends React.Component<TableProps & OverflowShadowProps & WithSmartCardStorageProps, TableState> {
49
- state: TableState;
50
- tableRef: React.RefObject<HTMLTableElement>;
51
- stickyHeaderRef: React.RefObject<HTMLElement>;
52
- stickyScrollbarRef: React.RefObject<HTMLDivElement>;
53
- stickyWrapperRef: React.RefObject<HTMLDivElement>;
54
- wrapperRef: React.RefObject<HTMLDivElement>;
55
- stickyScrollbar?: TableStickyScrollbar;
56
- nextFrame: number | undefined;
57
- overflowParent: OverflowParent | null;
58
- private resizeObserver;
59
- private applyResizerChange;
60
- /**
61
- *
62
- * @example
63
- */
64
- componentDidMount(): void;
65
- /**
66
- *
67
- * @param prevProps
68
- * @param prevState
69
- * @example
70
- */
71
- componentDidUpdate(prevProps: TableProps, prevState: TableState): void;
72
- componentWillUnmount: () => void;
73
- getScrollTop: () => number;
74
- updateSticky: () => void;
75
- onScroll: () => void;
76
- onWrapperScrolled: () => void;
77
- /**
78
- *
79
- */
80
- get pinTop(): number | undefined;
81
- /**
82
- *
83
- */
84
- get shouldAddOverflowParentOffsetTop_DO_NOT_USE(): boolean | null | undefined;
85
- /**
86
- *
87
- */
88
- get stickyTop(): number | undefined;
89
- /**
90
- *
91
- * @example
92
- */
93
- render(): React.JSX.Element;
94
- private grabFirstRowRef;
95
- }
96
- type TableProcessorState = {
97
- tableOrderStatus?: TableOrderStatus;
98
- };
99
- /**
100
- *
101
- */
102
- export declare class TableProcessor extends React.Component<TableProps & OverflowShadowProps & WithSmartCardStorageProps, TableProcessorState> {
103
- state: {
104
- tableOrderStatus: undefined;
105
- };
106
- /**
107
- *
108
- * @example
109
- */
110
- render(): React.JSX.Element | null;
111
- private addSortableColumn;
112
- private changeSortOrder;
113
- private addNumberColumnIndexes;
114
- }
115
- declare const _default_1: React.ComponentClass<Diff<any, WithSmartCardStorageProps>>;
116
- export default _default_1;
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import type { CellAttributes } from '@atlaskit/adf-schema';
3
- import { SortOrder } from '@atlaskit/editor-common/types';
4
- import type { AnalyticsEventPayload } from '../../analytics/events';
5
- export type TableCellEdgeProps = {
6
- reachesBottom?: boolean;
7
- reachesLeft?: boolean;
8
- reachesRight?: boolean;
9
- reachesTop?: boolean;
10
- };
11
- type CellProps = CellAttributes & TableCellEdgeProps & {
12
- ariaSort?: string;
13
- children?: React.ReactNode;
14
- className?: string;
15
- colGroupWidth?: string;
16
- offsetTop?: number;
17
- onClick?: () => void;
18
- };
19
- export type CellWithSortingProps = CellProps & {
20
- allowColumnSorting?: boolean;
21
- columnIndex?: number;
22
- fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
23
- isHeaderRow?: boolean;
24
- onSorting?: (columnIndex?: number, currentSortOrdered?: SortOrder) => void;
25
- sortOrdered?: SortOrder;
26
- };
27
- export declare const withSortableColumn: (WrapperComponent: React.ElementType) => (props: CellWithSortingProps) => React.JSX.Element;
28
- export declare const TableHeader: (props: CellWithSortingProps) => React.JSX.Element;
29
- export declare const TableCell: (props: CellProps) => React.JSX.Element;
30
- export {};
@@ -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 {};