@atlaskit/renderer 132.5.3 → 132.6.1

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 +27 -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,50 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import React from 'react';
3
- import type { Position } from '../types';
4
- export type RangeType = 'selection' | 'hover' | null;
5
- interface AnnotationRangeStateContext {
6
- hoverDraftDocumentPosition: Position | null;
7
- hoverDraftRange: Range | null;
8
- /**
9
- * This range represents the selection that the user has made before they intend to save an annotation
10
- */
11
- range: Range | null;
12
- /**
13
- * When a selection or hover is promoted to a draft, we need to store the document position of the selection or hover.
14
- * This is only set once on promotion, the position should not change while the draft is open.
15
- */
16
- selectionDraftDocumentPosition: Position | null;
17
- /**
18
- * This range represents the "pre-committed" placeholder range that the user will eventually save as an annotation
19
- * If the user does not set allowDraftMode, this will be ignored as it only is set when we call applyAnnotationDraftAt()
20
- */
21
- selectionDraftRange: Range | null;
22
- /**
23
- * This represents the type of range that is currently set on the range property, ie, whether the range is a hover or selection.
24
- */
25
- type: RangeType;
26
- }
27
- interface AnnotationRangeDispatchContext {
28
- clearHoverDraft: () => void;
29
- clearHoverRange: () => void;
30
- clearSelectionDraft: () => void;
31
- clearSelectionRange: () => void;
32
- promoteHoverToDraft: (position: Position | null) => void;
33
- promoteSelectionToDraft: (position: Position | null) => void;
34
- setHoverTarget?: (target: HTMLElement) => void;
35
- setSelectionRange: (range: Range) => void;
36
- }
37
- export declare const AnnotationRangeStateContext: React.Context<AnnotationRangeStateContext>;
38
- export declare const AnnotationRangeDispatchContext: React.Context<AnnotationRangeDispatchContext>;
39
- export declare const AnnotationRangeProviderInner: ({ children, allowCommentsOnMedia, }: {
40
- allowCommentsOnMedia?: boolean;
41
- children?: ReactNode;
42
- }) => React.JSX.Element;
43
- export declare const AnnotationRangeProvider: ({ children, allowCommentsOnMedia, isNestedRender, }: {
44
- allowCommentsOnMedia?: boolean;
45
- children?: ReactNode;
46
- isNestedRender?: boolean;
47
- }) => React.JSX.Element;
48
- export declare const useAnnotationRangeState: () => AnnotationRangeStateContext;
49
- export declare const useAnnotationRangeDispatch: () => AnnotationRangeDispatchContext;
50
- export {};
@@ -1,30 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import { jsx } from '@emotion/react';
7
- import type { Mark } from '@atlaskit/editor-prosemirror/model';
8
- import type { Position } from '../types';
9
- import { InsertDraftPosition } from '../types';
10
- import type { TextHighlighter } from '../../../react/types';
11
- export declare const AnnotationDraft: ({ draftPosition, children, }: React.PropsWithChildren<{
12
- draftPosition: Position;
13
- }>) => jsx.JSX.Element;
14
- type ApplyAnnotationsProps = {
15
- draftPosition: Position;
16
- marks?: readonly Mark[];
17
- shouldApplyAnnotationAt: InsertDraftPosition.INSIDE | InsertDraftPosition.START | InsertDraftPosition.END;
18
- textHighlighter?: TextHighlighter;
19
- texts: string[];
20
- };
21
- export declare const getAnnotationIndex: (annotationPosition: InsertDraftPosition, fragmentCount: number) => number;
22
- export declare const applyAnnotationOnText: ({ texts, shouldApplyAnnotationAt, draftPosition, textHighlighter, marks, }: ApplyAnnotationsProps) => JSX.Element[];
23
- type Props = React.PropsWithChildren<{
24
- endPos: number;
25
- marks?: readonly Mark[];
26
- startPos: number;
27
- textHighlighter?: TextHighlighter;
28
- }>;
29
- export declare const TextWithAnnotationDraft: ({ startPos, endPos, children, textHighlighter, marks, }: Props) => jsx.JSX.Element;
30
- export {};
@@ -1,7 +0,0 @@
1
- import type { Position } from '../types';
2
- export declare const dataAttributes: ({ from, to, }: Position) => {
3
- "data-annotation-draft-mark": boolean;
4
- "data-draft-end-at": number;
5
- "data-draft-start-at": number;
6
- };
7
- export declare const updateWindowSelectionAroundDraft: (pos: Position) => boolean;
@@ -1,3 +0,0 @@
1
- import { InsertDraftPosition } from '../types';
2
- import type { Position, TextPosition } from '../types';
3
- export declare const calcInsertDraftPositionOnText: ({ start: startTextPosition, end: endTextPosition }: TextPosition, position: Position) => InsertDraftPosition | false;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import type { TextPosition, Position } from '../types';
3
- export declare const findTextString: (reactNode: React.ReactNode) => string | null;
4
- type Offset = {
5
- endOffset: number;
6
- startOffset: number;
7
- };
8
- export declare const splitText: (text: string, { startOffset, endOffset }: Offset) => string[] | null;
9
- export declare const calcTextSplitOffset: (position: Position, textPosition: TextPosition, text: string) => {
10
- endOffset: number;
11
- startOffset: number;
12
- };
13
- export {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { AnnotationId, AnnotationDataAttributes, AnnotationTypes } from '@atlaskit/adf-schema';
3
- type MarkElementProps = React.PropsWithChildren<{
4
- annotationParentIds: AnnotationId[];
5
- annotationType: AnnotationTypes;
6
- dataAttributes: AnnotationDataAttributes;
7
- id: AnnotationId;
8
- useBlockLevel?: boolean;
9
- }>;
10
- declare const MarkElement: ({ annotationParentIds, children, dataAttributes, id, useBlockLevel, }: MarkElementProps) => React.JSX.Element;
11
- export { MarkElement };
@@ -1,125 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import type React from 'react';
6
- import { type SerializedStyles } from '@emotion/react';
7
- import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
8
- import type { AnnotationId, AnnotationDataAttributes, AnnotationTypes } from '@atlaskit/adf-schema';
9
- import { AnnotationMarkStates } from '@atlaskit/adf-schema';
10
- type MarkComponentProps = {
11
- annotationParentIds: AnnotationId[];
12
- dataAttributes: AnnotationDataAttributes;
13
- hasFocus: boolean;
14
- id: AnnotationId;
15
- isHovered: boolean;
16
- onClick: (props: OnAnnotationClickPayload) => void;
17
- state: AnnotationMarkStates | null;
18
- useBlockLevel?: boolean;
19
- };
20
- export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, isHovered, onClick, useBlockLevel, }: React.PropsWithChildren<MarkComponentProps>) => React.ReactElement<{
21
- "aria-disabled": boolean;
22
- css?: (false | SerializedStyles)[] | undefined;
23
- "data-id": AnnotationId;
24
- "data-mark-annotation-state"?: AnnotationMarkStates;
25
- "data-mark-annotation-type": AnnotationTypes;
26
- "data-mark-type": string;
27
- id: string;
28
- ref: ((node: HTMLElement | null) => void) | undefined;
29
- style?: {
30
- "--ak-renderer-annotation-endmarker": string;
31
- "--ak-renderer-annotation-startmarker": string;
32
- } | undefined;
33
- } | {
34
- "aria-disabled": boolean;
35
- css?: (false | SerializedStyles)[] | undefined;
36
- "data-has-focus": boolean;
37
- "data-id": AnnotationId;
38
- "data-is-hovered": boolean;
39
- "data-mark-annotation-state": AnnotationMarkStates;
40
- "data-mark-annotation-type": AnnotationTypes;
41
- "data-mark-type": string;
42
- id: string;
43
- ref: ((node: HTMLElement | null) => void) | undefined;
44
- style?: {
45
- "--ak-renderer-annotation-endmarker": string;
46
- "--ak-renderer-annotation-startmarker": string;
47
- } | undefined;
48
- } | {
49
- "aria-details": string;
50
- "aria-disabled"?: undefined;
51
- "aria-expanded"?: undefined;
52
- css?: (false | SerializedStyles)[] | undefined;
53
- "data-id": AnnotationId;
54
- "data-mark-annotation-state"?: AnnotationMarkStates;
55
- "data-mark-annotation-type": AnnotationTypes;
56
- "data-mark-type": string;
57
- id: string;
58
- onKeyDown?: undefined;
59
- ref: ((node: HTMLElement | null) => void) | undefined;
60
- role?: undefined;
61
- style?: {
62
- "--ak-renderer-annotation-endmarker": string;
63
- "--ak-renderer-annotation-startmarker": string;
64
- } | undefined;
65
- tabIndex?: undefined;
66
- } | {
67
- "aria-details": string;
68
- "aria-disabled"?: undefined;
69
- "aria-expanded"?: undefined;
70
- css?: (false | SerializedStyles)[] | undefined;
71
- "data-has-focus": boolean;
72
- "data-id": AnnotationId;
73
- "data-is-hovered": boolean;
74
- "data-mark-annotation-state": AnnotationMarkStates;
75
- "data-mark-annotation-type": AnnotationTypes;
76
- "data-mark-type": string;
77
- id: string;
78
- onKeyDown?: undefined;
79
- ref: ((node: HTMLElement | null) => void) | undefined;
80
- role?: undefined;
81
- style?: {
82
- "--ak-renderer-annotation-endmarker": string;
83
- "--ak-renderer-annotation-startmarker": string;
84
- } | undefined;
85
- tabIndex?: undefined;
86
- } | {
87
- "aria-details": string;
88
- "aria-disabled"?: undefined;
89
- "aria-expanded": boolean;
90
- css?: (false | SerializedStyles)[] | undefined;
91
- "data-id": AnnotationId;
92
- "data-mark-annotation-state"?: AnnotationMarkStates;
93
- "data-mark-annotation-type": AnnotationTypes;
94
- "data-mark-type": string;
95
- id: string;
96
- onKeyDown: (evt: KeyboardEvent) => void;
97
- ref: ((node: HTMLElement | null) => void) | undefined;
98
- role: string;
99
- style?: {
100
- "--ak-renderer-annotation-endmarker": string;
101
- "--ak-renderer-annotation-startmarker": string;
102
- } | undefined;
103
- tabIndex: number;
104
- } | {
105
- "aria-details": string;
106
- "aria-disabled"?: undefined;
107
- "aria-expanded": boolean;
108
- css?: (false | SerializedStyles)[] | undefined;
109
- "data-has-focus": boolean;
110
- "data-id": AnnotationId;
111
- "data-is-hovered": boolean;
112
- "data-mark-annotation-state": AnnotationMarkStates;
113
- "data-mark-annotation-type": AnnotationTypes;
114
- "data-mark-type": string;
115
- id: string;
116
- onKeyDown: (evt: KeyboardEvent) => void;
117
- ref: ((node: HTMLElement | null) => void) | undefined;
118
- role: string;
119
- style?: {
120
- "--ak-renderer-annotation-endmarker": string;
121
- "--ak-renderer-annotation-startmarker": string;
122
- } | undefined;
123
- tabIndex: number;
124
- }>;
125
- export {};
@@ -1,24 +0,0 @@
1
- export type MarkDataAttributes = {
2
- dataAttributes?: {
3
- 'data-renderer-start-pos': number;
4
- };
5
- };
6
- export declare function useInlineAnnotationProps(props: MarkDataAttributes): {
7
- 'data-annotation-draft-mark'?: undefined;
8
- 'data-annotation-inline-node'?: undefined;
9
- 'data-annotation-mark'?: undefined;
10
- 'data-renderer-mark'?: undefined;
11
- 'data-renderer-start-pos'?: undefined;
12
- } | {
13
- 'data-annotation-draft-mark': boolean;
14
- 'data-annotation-inline-node': boolean;
15
- 'data-annotation-mark'?: undefined;
16
- 'data-renderer-mark': boolean;
17
- 'data-renderer-start-pos': number;
18
- } | {
19
- 'data-annotation-draft-mark'?: undefined;
20
- 'data-annotation-inline-node': boolean;
21
- 'data-annotation-mark': boolean;
22
- 'data-renderer-mark'?: undefined;
23
- 'data-renderer-start-pos': number;
24
- };
@@ -1,22 +0,0 @@
1
- import type { InlineCommentViewComponentProps, AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
2
- import type { AnnotationMarkStates, AnnotationId } from '@atlaskit/adf-schema';
3
- import { AnnotationTypes } from '@atlaskit/adf-schema';
4
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
5
- type ListenEventProps = {
6
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
7
- id: AnnotationId;
8
- isNestedRender?: boolean;
9
- updateSubscriber: AnnotationUpdateEmitter | null;
10
- };
11
- type UseAnnotationUpdateSatteByEventProps = {
12
- type: AnnotationTypes;
13
- updateSubscriber: AnnotationUpdateEmitter | null;
14
- };
15
- export declare const useAnnotationStateByTypeEvent: ({ type, updateSubscriber, }: UseAnnotationUpdateSatteByEventProps) => Record<string, AnnotationMarkStates | null>;
16
- export declare const useHasFocusEvent: ({ id, updateSubscriber, }: ListenEventProps) => {
17
- hasFocus: boolean;
18
- isHovered: boolean;
19
- };
20
- type AnnotationsWithClickTarget = Pick<InlineCommentViewComponentProps, 'annotations' | 'clickElementTarget'> | null;
21
- export declare const useAnnotationClickEvent: (props: Pick<ListenEventProps, "updateSubscriber" | "createAnalyticsEvent" | "isNestedRender">) => AnnotationsWithClickTarget;
22
- export {};
@@ -1,2 +0,0 @@
1
- import type { AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
2
- export declare const useInlineCommentSubscriberContext: () => AnnotationUpdateEmitter | null;
@@ -1,9 +0,0 @@
1
- import type { AnnotationId, AnnotationMarkStates } from '@atlaskit/adf-schema';
2
- type Props = {
3
- annotationIds: AnnotationId[];
4
- filter: {
5
- state: AnnotationMarkStates;
6
- };
7
- };
8
- export declare const useInlineCommentsFilter: ({ annotationIds, filter: { state: stateFilter }, }: Props) => string[];
9
- export {};
@@ -1,11 +0,0 @@
1
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
2
- export type LoadCompleteHandler = (params: {
3
- numberOfUnresolvedInlineComments: number;
4
- }) => void;
5
- type Props = {
6
- adfDocument: JSONDocNode;
7
- isNestedRender: boolean;
8
- onLoadComplete?: LoadCompleteHandler;
9
- };
10
- export declare const useLoadAnnotations: ({ adfDocument, isNestedRender, onLoadComplete, }: Props) => void;
11
- export {};
@@ -1,11 +0,0 @@
1
- import type { RangeType } from '../contexts/AnnotationRangeContext';
2
- type Props = {
3
- rendererRef: React.RefObject<HTMLDivElement>;
4
- };
5
- export declare const useUserSelectionRange: (props: Props) => [
6
- RangeType,
7
- Range | null,
8
- Range | null,
9
- () => void
10
- ];
11
- export {};
@@ -1,2 +0,0 @@
1
- /** Exists in its own module to allow mocking in unit tests */
2
- export declare const isRangeInsideOfRendererContainer: (rendererDOM: HTMLElement, range: Range) => boolean;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import type { AnnotationByMatches, InlineCommentHoverComponentProps } from '@atlaskit/editor-common/types';
3
- import type { ApplyAnnotation } from '../../../actions/index';
4
- import type { Position } from '../types';
5
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
6
- type Props = {
7
- applyAnnotation: ApplyAnnotation;
8
- component: React.ComponentType<InlineCommentHoverComponentProps>;
9
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
10
- documentPosition: Position | false;
11
- generateIndexMatch?: (pos: Position) => false | AnnotationByMatches;
12
- isAnnotationAllowed: boolean;
13
- isWithinRange: boolean;
14
- onClose: () => void;
15
- range: Range;
16
- wrapperDOM: React.RefObject<HTMLDivElement>;
17
- };
18
- export declare const Mounter: React.MemoExoticComponent<(props: Props) => React.JSX.Element>;
19
- export {};
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import type { InlineCommentHoverComponentProps } from '@atlaskit/editor-common/types';
3
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
- type Props = {
5
- component: React.ComponentType<InlineCommentHoverComponentProps>;
6
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
7
- rendererRef: React.RefObject<HTMLDivElement>;
8
- };
9
- export declare const RangeValidator: {
10
- (props: Props): React.JSX.Element | null;
11
- displayName: string;
12
- };
13
- export {};
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { AnnotationsWrapperProps } from './types';
3
- export declare const AnnotationsPositionContext: React.Context<{
4
- startPos: number;
5
- }>;
6
- export declare const AnnotationsWrapperInner: (props: Omit<AnnotationsWrapperProps, "annotationProvider">) => React.JSX.Element;
7
- export declare const AnnotationsWrapper: (props: AnnotationsWrapperProps) => React.JSX.Element;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import type { AnnotationByMatches, InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
3
- import type { ApplyAnnotation } from '../../../actions/index';
4
- import type { Position } from '../types';
5
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
6
- type Props = {
7
- applyAnnotation: ApplyAnnotation;
8
- component: React.ComponentType<React.PropsWithChildren<InlineCommentSelectionComponentProps>>;
9
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
10
- documentPosition: Position | false;
11
- draftRange: Range | null;
12
- generateIndexMatch?: (pos: Position) => false | AnnotationByMatches;
13
- isAnnotationAllowed: boolean;
14
- onClose: () => void;
15
- range: Range | null;
16
- wrapperDOM: React.RefObject<HTMLDivElement>;
17
- };
18
- export declare const SelectionInlineCommentMounter: React.MemoExoticComponent<(props: React.PropsWithChildren<Props>) => React.JSX.Element>;
19
- export {};
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import type { InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
3
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
- type Props = {
5
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
6
- rendererRef: React.RefObject<HTMLDivElement>;
7
- selectionComponent: React.ComponentType<React.PropsWithChildren<InlineCommentSelectionComponentProps>>;
8
- };
9
- export declare const SelectionRangeValidator: {
10
- (props: Props): React.JSX.Element | null;
11
- displayName: string;
12
- };
13
- export {};
@@ -1,33 +0,0 @@
1
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
2
- import type { AnnotationProviders } from '@atlaskit/editor-common/types';
3
- export declare enum InsertDraftPosition {
4
- AROUND_TEXT = "AROUND_TEXT",
5
- START = "START",
6
- END = "END",
7
- INSIDE = "INSIDE"
8
- }
9
- export type Position = {
10
- from: number;
11
- to: number;
12
- };
13
- export type AnnotationsWrapperProps = React.PropsWithChildren<{
14
- /**
15
- * This is set internally -- and should not be set by consumers.
16
- */
17
- _startPos?: number;
18
- adfDocument: JSONDocNode;
19
- annotationProvider: AnnotationProviders | null | undefined;
20
- /**
21
- * This is set (by consumers) for nested renderers when they are
22
- * rendering bodied extension content.
23
- */
24
- isNestedRender: boolean;
25
- onLoadComplete?: ({ numberOfUnresolvedInlineComments, }: {
26
- numberOfUnresolvedInlineComments: number;
27
- }) => void;
28
- rendererRef: React.RefObject<HTMLDivElement>;
29
- }>;
30
- export type TextPosition = {
31
- end: number;
32
- start: number;
33
- };
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
3
- type Props = {
4
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
5
- isNestedRender: boolean;
6
- };
7
- declare const AnnotationView: (props: Props) => React.JSX.Element | null;
8
- export { AnnotationView };
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
3
- type Props = {
4
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
5
- isNestedRender?: boolean;
6
- rendererRef: React.RefObject<HTMLDivElement>;
7
- };
8
- export declare const AnnotationsContextWrapper: (props: React.PropsWithChildren<Props>) => JSX.Element;
9
- export {};
@@ -1,16 +0,0 @@
1
- import type { DocNode } from '@atlaskit/adf-schema';
2
- /**
3
- * useScrollToBlock - Handler for block link scrolling in the renderer with expand support
4
- *
5
- * This hook enables scroll-to-block functionality when blocks may be hidden inside collapsed expands.
6
- * It searches the ADF document for the target block, identifies any parent expand nodes,
7
- * expands them if needed, and waits for layout stability before scrolling to the block.
8
- *
9
- * This implementation waits for the container to stabilize (no layout shifts) before scrolling,
10
- * which prevents issues with images loading, dynamic content, or other async operations that
11
- * cause layout changes.
12
- *
13
- * @param containerRef - Optional ref to the renderer container (RendererStyleContainer)
14
- * @param adfDoc - The ADF document to search for nodes and expand parents
15
- */
16
- export declare const useScrollToBlock: (containerRef?: React.RefObject<HTMLDivElement>, adfDoc?: DocNode, scrollToBlock?: (element: HTMLElement) => void) => void;
@@ -1,27 +0,0 @@
1
- export interface UseStableScrollOptions {
2
- /**
3
- * Maximum time (in ms) to wait for stability before scrolling anyway
4
- * @default 10000
5
- */
6
- maxStabilityWaitTime?: number;
7
- /**
8
- * Time to wait (in ms) after the last resize event before considering the layout stable
9
- * @default 200
10
- */
11
- stabilityWaitTime?: number;
12
- }
13
- export interface UseStableScrollReturn {
14
- /**
15
- * Cleans up all timers and observers
16
- */
17
- cleanup: () => void;
18
- /**
19
- * Starts monitoring the container for stability and calls the callback when stable
20
- */
21
- waitForStability: (container: HTMLElement, onStable: () => void) => void;
22
- }
23
- /**
24
- * Hook that provides functionality to wait for layout stability before performing an action.
25
- * Uses ResizeObserver to detect when a container has stopped resizing (e.g., images finished loading).
26
- */
27
- export declare const useStableScroll: (options?: UseStableScrollOptions) => UseStableScrollReturn;