@atlaskit/renderer 141.0.1 → 141.0.2

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 (327) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/actions/index.js +1 -1
  3. package/dist/cjs/actions/selection.js +1 -1
  4. package/dist/cjs/analytics/unsupported-content.js +1 -1
  5. package/dist/cjs/entry-points/experimental-sync-custom-nodes/small-nodes.js +1 -1
  6. package/dist/cjs/react/index.js +9 -9
  7. package/dist/cjs/react/marks/index.js +10 -10
  8. package/dist/cjs/react/marks/link.js +3 -3
  9. package/dist/cjs/react/nodes/blockCard.js +12 -12
  10. package/dist/cjs/react/nodes/bodiedExtension.js +4 -4
  11. package/dist/cjs/react/nodes/bodiedSyncBlock.js +1 -1
  12. package/dist/cjs/react/nodes/codeBlock/codeBlock.js +1 -1
  13. package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -0
  14. package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -0
  15. package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +11 -11
  16. package/dist/cjs/react/nodes/codeBlock/components/codeBlockDownloadButton.js +3 -3
  17. package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
  18. package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
  19. package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
  20. package/dist/cjs/react/nodes/date.js +2 -2
  21. package/dist/cjs/react/nodes/embedCard.js +33 -32
  22. package/dist/cjs/react/nodes/emoji.js +12 -12
  23. package/dist/cjs/react/nodes/extension.js +19 -19
  24. package/dist/cjs/react/nodes/fallback.js +2 -2
  25. package/dist/cjs/react/nodes/heading-anchor.js +1 -38
  26. package/dist/cjs/react/nodes/heading.js +3 -3
  27. package/dist/cjs/react/nodes/index.js +5 -5
  28. package/dist/cjs/react/nodes/inlineCard.js +12 -12
  29. package/dist/cjs/react/nodes/loosely-lazy.js +0 -1
  30. package/dist/cjs/react/nodes/media/index.js +10 -10
  31. package/dist/cjs/react/nodes/mediaInline.js +6 -6
  32. package/dist/cjs/react/nodes/mediaSingle/index.js +4 -4
  33. package/dist/cjs/react/nodes/multiBodiedExtension.js +29 -29
  34. package/dist/cjs/react/nodes/panel-compiled.js +1 -1
  35. package/dist/cjs/react/nodes/panel-emotion.js +1 -1
  36. package/dist/cjs/react/nodes/status.js +1 -1
  37. package/dist/cjs/react/nodes/table/colgroup.js +2 -2
  38. package/dist/cjs/react/nodes/table/sticky.js +1 -1
  39. package/dist/cjs/react/nodes/table/table.js +2 -2
  40. package/dist/cjs/react/nodes/table.js +14 -14
  41. package/dist/cjs/react/nodes/tableCell.js +7 -7
  42. package/dist/cjs/react/nodes/tableRow.js +2 -2
  43. package/dist/cjs/react/nodes/taskItem.js +2 -2
  44. package/dist/cjs/react/utils/EditorMediaClientProvider.js +2 -2
  45. package/dist/cjs/react/utils/use-select-all-trap.js +1 -1
  46. package/dist/cjs/render-document.js +1 -1
  47. package/dist/cjs/steps/index.js +1 -1
  48. package/dist/cjs/text/nodes/status.js +1 -1
  49. package/dist/cjs/ui/Expand.js +53 -52
  50. package/dist/cjs/ui/ExtensionRenderer.js +19 -17
  51. package/dist/cjs/ui/MediaCard.js +4 -4
  52. package/dist/cjs/ui/Renderer/ErrorBoundary.js +1 -1
  53. package/dist/cjs/ui/Renderer/RendererStyleContainer.js +25 -35
  54. package/dist/cjs/ui/Renderer/breakout-ssr.js +1 -1
  55. package/dist/cjs/ui/Renderer/index.js +22 -22
  56. package/dist/cjs/ui/Renderer/truncated-wrapper.js +7 -6
  57. package/dist/cjs/ui/RendererActionsContext/index.js +2 -2
  58. package/dist/cjs/ui/annotations/draft/component.js +5 -5
  59. package/dist/cjs/ui/annotations/element/index.js +4 -4
  60. package/dist/cjs/ui/annotations/element/mark.js +1 -1
  61. package/dist/cjs/ui/annotations/hooks/use-events.js +17 -17
  62. package/dist/cjs/ui/annotations/hooks/use-load-annotations.js +1 -1
  63. package/dist/cjs/ui/annotations/hooks/user-selection.js +2 -2
  64. package/dist/cjs/ui/annotations/hover/mounter.js +2 -2
  65. package/dist/cjs/ui/annotations/hover/range-validator.js +2 -2
  66. package/dist/cjs/ui/annotations/index.js +6 -6
  67. package/dist/cjs/ui/annotations/selection/mounter.js +3 -3
  68. package/dist/cjs/ui/annotations/selection/range-validator.js +1 -1
  69. package/dist/cjs/ui/annotations/view/index.js +1 -1
  70. package/dist/cjs/utils.js +1 -0
  71. package/dist/es2019/actions/index.js +1 -1
  72. package/dist/es2019/actions/selection.js +1 -1
  73. package/dist/es2019/analytics/unsupported-content.js +1 -1
  74. package/dist/es2019/custom-nodes.js +1 -0
  75. package/dist/es2019/entry-points/actions-renderer-actions-context.js +1 -0
  76. package/dist/es2019/entry-points/actions-with-renderer-actions.js +1 -0
  77. package/dist/es2019/entry-points/annotations.js +1 -0
  78. package/dist/es2019/entry-points/consts.js +1 -0
  79. package/dist/es2019/entry-points/custom-nodes-loosely-lazy.js +1 -0
  80. package/dist/es2019/entry-points/events.js +1 -0
  81. package/dist/es2019/entry-points/experimental-sync-custom-nodes/cards.js +1 -0
  82. package/dist/es2019/entry-points/experimental-sync-custom-nodes/media.js +1 -0
  83. package/dist/es2019/entry-points/experimental-sync-custom-nodes/small-nodes.js +2 -1
  84. package/dist/es2019/entry-points/extension-renderer.js +1 -0
  85. package/dist/es2019/entry-points/loosely-lazy.js +1 -0
  86. package/dist/es2019/entry-points/messages.js +1 -0
  87. package/dist/es2019/entry-points/nodes.js +1 -0
  88. package/dist/es2019/entry-points/render-document.js +1 -0
  89. package/dist/es2019/entry-points/renderer-actions-context.js +1 -0
  90. package/dist/es2019/entry-points/renderer-context.js +1 -0
  91. package/dist/es2019/entry-points/renderer-default.js +1 -0
  92. package/dist/es2019/entry-points/renderer.js +1 -0
  93. package/dist/es2019/entry-points/text-serializer-text.js +1 -0
  94. package/dist/es2019/entry-points/text.js +1 -0
  95. package/dist/es2019/entry-points/use-feature-flags.js +1 -0
  96. package/dist/es2019/entry-points/utils.js +1 -0
  97. package/dist/es2019/entry-points/validation-context.js +1 -0
  98. package/dist/es2019/i18n/index.js +1 -0
  99. package/dist/es2019/index.js +1 -0
  100. package/dist/es2019/react/index.js +9 -9
  101. package/dist/es2019/react/marks/alignment.js +1 -0
  102. package/dist/es2019/react/marks/index.js +11 -12
  103. package/dist/es2019/react/marks/link.js +3 -3
  104. package/dist/es2019/react/nodes/blockCard.js +9 -9
  105. package/dist/es2019/react/nodes/bodiedExtension.js +4 -4
  106. package/dist/es2019/react/nodes/bodiedSyncBlock.js +1 -1
  107. package/dist/es2019/react/nodes/codeBlock/codeBlock.js +2 -1
  108. package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -0
  109. package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -0
  110. package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +7 -5
  111. package/dist/es2019/react/nodes/codeBlock/components/codeBlockDownloadButton.js +3 -3
  112. package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
  113. package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +3 -1
  114. package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +2 -1
  115. package/dist/es2019/react/nodes/date.js +2 -2
  116. package/dist/es2019/react/nodes/embedCard.js +11 -10
  117. package/dist/es2019/react/nodes/emoji.js +5 -4
  118. package/dist/es2019/react/nodes/extension.js +5 -4
  119. package/dist/es2019/react/nodes/fallback.js +2 -2
  120. package/dist/es2019/react/nodes/heading-anchor.js +2 -38
  121. package/dist/es2019/react/nodes/heading.js +3 -3
  122. package/dist/es2019/react/nodes/index.js +9 -8
  123. package/dist/es2019/react/nodes/inlineCard.js +12 -12
  124. package/dist/es2019/react/nodes/loosely-lazy.js +2 -2
  125. package/dist/es2019/react/nodes/media/index.js +11 -10
  126. package/dist/es2019/react/nodes/mediaInline.js +6 -6
  127. package/dist/es2019/react/nodes/mediaSingle/index.js +5 -4
  128. package/dist/es2019/react/nodes/multiBodiedExtension.js +6 -5
  129. package/dist/es2019/react/nodes/panel-compiled.js +1 -1
  130. package/dist/es2019/react/nodes/panel-emotion.js +1 -1
  131. package/dist/es2019/react/nodes/status.js +1 -1
  132. package/dist/es2019/react/nodes/table/colgroup.js +2 -3
  133. package/dist/es2019/react/nodes/table/sticky.js +2 -1
  134. package/dist/es2019/react/nodes/table/table.js +2 -2
  135. package/dist/es2019/react/nodes/table.js +12 -11
  136. package/dist/es2019/react/nodes/tableCell.js +7 -7
  137. package/dist/es2019/react/nodes/tableRow.js +2 -2
  138. package/dist/es2019/react/nodes/taskItem.js +2 -2
  139. package/dist/es2019/react/utils/EditorMediaClientProvider.js +2 -2
  140. package/dist/es2019/react/utils/getStandaloneBackgroundColorMarks.js +1 -0
  141. package/dist/es2019/react/utils/use-select-all-trap.js +1 -1
  142. package/dist/es2019/render-document.js +1 -1
  143. package/dist/es2019/steps/index.js +2 -1
  144. package/dist/es2019/text/nodes/status.js +1 -1
  145. package/dist/es2019/ui/Expand.js +7 -5
  146. package/dist/es2019/ui/ExtensionRenderer.js +5 -2
  147. package/dist/es2019/ui/MediaCard.js +4 -4
  148. package/dist/es2019/ui/Renderer/ErrorBoundary.js +1 -1
  149. package/dist/es2019/ui/Renderer/PortalContext.js +1 -0
  150. package/dist/es2019/ui/Renderer/RendererStyleContainer.js +16 -27
  151. package/dist/es2019/ui/Renderer/breakout-ssr.js +2 -1
  152. package/dist/es2019/ui/Renderer/count-nodes.js +1 -0
  153. package/dist/es2019/ui/Renderer/index.js +23 -24
  154. package/dist/es2019/ui/Renderer/truncated-wrapper.js +7 -2
  155. package/dist/es2019/ui/Renderer/useMemoFromPropsDerivative.js +1 -0
  156. package/dist/es2019/ui/RendererActionsContext/index.js +3 -2
  157. package/dist/es2019/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +1 -0
  158. package/dist/es2019/ui/annotations/draft/component.js +6 -5
  159. package/dist/es2019/ui/annotations/element/index.js +4 -4
  160. package/dist/es2019/ui/annotations/element/mark.js +2 -1
  161. package/dist/es2019/ui/annotations/element/useInlineAnnotationProps.js +1 -0
  162. package/dist/es2019/ui/annotations/hooks/use-events.js +2 -2
  163. package/dist/es2019/ui/annotations/hooks/use-load-annotations.js +1 -1
  164. package/dist/es2019/ui/annotations/hooks/user-selection.js +2 -2
  165. package/dist/es2019/ui/annotations/hover/mounter.js +2 -2
  166. package/dist/es2019/ui/annotations/hover/range-validator.js +2 -2
  167. package/dist/es2019/ui/annotations/index.js +6 -6
  168. package/dist/es2019/ui/annotations/selection/mounter.js +3 -3
  169. package/dist/es2019/ui/annotations/selection/range-validator.js +1 -1
  170. package/dist/es2019/ui/annotations/view/index.js +1 -1
  171. package/dist/es2019/utils.js +1 -1
  172. package/dist/esm/actions/index.js +1 -1
  173. package/dist/esm/actions/selection.js +1 -1
  174. package/dist/esm/analytics/unsupported-content.js +1 -1
  175. package/dist/esm/custom-nodes.js +1 -0
  176. package/dist/esm/entry-points/actions-renderer-actions-context.js +1 -0
  177. package/dist/esm/entry-points/actions-with-renderer-actions.js +1 -0
  178. package/dist/esm/entry-points/annotations.js +1 -0
  179. package/dist/esm/entry-points/consts.js +1 -0
  180. package/dist/esm/entry-points/custom-nodes-loosely-lazy.js +1 -0
  181. package/dist/esm/entry-points/events.js +1 -0
  182. package/dist/esm/entry-points/experimental-sync-custom-nodes/cards.js +1 -0
  183. package/dist/esm/entry-points/experimental-sync-custom-nodes/media.js +1 -0
  184. package/dist/esm/entry-points/experimental-sync-custom-nodes/small-nodes.js +2 -1
  185. package/dist/esm/entry-points/extension-renderer.js +1 -0
  186. package/dist/esm/entry-points/loosely-lazy.js +1 -0
  187. package/dist/esm/entry-points/messages.js +1 -0
  188. package/dist/esm/entry-points/nodes.js +1 -0
  189. package/dist/esm/entry-points/render-document.js +1 -0
  190. package/dist/esm/entry-points/renderer-actions-context.js +1 -0
  191. package/dist/esm/entry-points/renderer-context.js +1 -0
  192. package/dist/esm/entry-points/renderer-default.js +1 -0
  193. package/dist/esm/entry-points/renderer.js +1 -0
  194. package/dist/esm/entry-points/text-serializer-text.js +1 -0
  195. package/dist/esm/entry-points/text.js +1 -0
  196. package/dist/esm/entry-points/use-feature-flags.js +1 -0
  197. package/dist/esm/entry-points/utils.js +1 -0
  198. package/dist/esm/entry-points/validation-context.js +1 -0
  199. package/dist/esm/i18n/index.js +1 -0
  200. package/dist/esm/index.js +1 -0
  201. package/dist/esm/react/index.js +9 -9
  202. package/dist/esm/react/marks/alignment.js +1 -0
  203. package/dist/esm/react/marks/index.js +11 -12
  204. package/dist/esm/react/marks/link.js +3 -3
  205. package/dist/esm/react/nodes/blockCard.js +9 -9
  206. package/dist/esm/react/nodes/bodiedExtension.js +4 -4
  207. package/dist/esm/react/nodes/bodiedSyncBlock.js +1 -1
  208. package/dist/esm/react/nodes/codeBlock/codeBlock.js +2 -1
  209. package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -0
  210. package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -0
  211. package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +7 -5
  212. package/dist/esm/react/nodes/codeBlock/components/codeBlockDownloadButton.js +3 -3
  213. package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
  214. package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +3 -1
  215. package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +2 -1
  216. package/dist/esm/react/nodes/date.js +2 -2
  217. package/dist/esm/react/nodes/embedCard.js +11 -10
  218. package/dist/esm/react/nodes/emoji.js +5 -4
  219. package/dist/esm/react/nodes/extension.js +5 -4
  220. package/dist/esm/react/nodes/fallback.js +2 -2
  221. package/dist/esm/react/nodes/heading-anchor.js +2 -38
  222. package/dist/esm/react/nodes/heading.js +3 -3
  223. package/dist/esm/react/nodes/index.js +9 -8
  224. package/dist/esm/react/nodes/inlineCard.js +12 -12
  225. package/dist/esm/react/nodes/loosely-lazy.js +2 -2
  226. package/dist/esm/react/nodes/media/index.js +11 -10
  227. package/dist/esm/react/nodes/mediaInline.js +6 -6
  228. package/dist/esm/react/nodes/mediaSingle/index.js +5 -4
  229. package/dist/esm/react/nodes/multiBodiedExtension.js +6 -5
  230. package/dist/esm/react/nodes/panel-compiled.js +1 -1
  231. package/dist/esm/react/nodes/panel-emotion.js +1 -1
  232. package/dist/esm/react/nodes/status.js +1 -1
  233. package/dist/esm/react/nodes/table/colgroup.js +2 -3
  234. package/dist/esm/react/nodes/table/sticky.js +2 -1
  235. package/dist/esm/react/nodes/table/table.js +2 -2
  236. package/dist/esm/react/nodes/table.js +12 -11
  237. package/dist/esm/react/nodes/tableCell.js +7 -7
  238. package/dist/esm/react/nodes/tableRow.js +2 -2
  239. package/dist/esm/react/nodes/taskItem.js +2 -2
  240. package/dist/esm/react/utils/EditorMediaClientProvider.js +2 -2
  241. package/dist/esm/react/utils/getStandaloneBackgroundColorMarks.js +1 -0
  242. package/dist/esm/react/utils/use-select-all-trap.js +1 -1
  243. package/dist/esm/render-document.js +1 -1
  244. package/dist/esm/steps/index.js +2 -1
  245. package/dist/esm/text/nodes/status.js +1 -1
  246. package/dist/esm/ui/Expand.js +7 -5
  247. package/dist/esm/ui/ExtensionRenderer.js +5 -2
  248. package/dist/esm/ui/MediaCard.js +4 -4
  249. package/dist/esm/ui/Renderer/ErrorBoundary.js +1 -1
  250. package/dist/esm/ui/Renderer/PortalContext.js +1 -0
  251. package/dist/esm/ui/Renderer/RendererStyleContainer.js +20 -30
  252. package/dist/esm/ui/Renderer/breakout-ssr.js +2 -1
  253. package/dist/esm/ui/Renderer/count-nodes.js +1 -0
  254. package/dist/esm/ui/Renderer/index.js +23 -24
  255. package/dist/esm/ui/Renderer/truncated-wrapper.js +7 -2
  256. package/dist/esm/ui/Renderer/useMemoFromPropsDerivative.js +1 -0
  257. package/dist/esm/ui/RendererActionsContext/index.js +3 -2
  258. package/dist/esm/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +1 -0
  259. package/dist/esm/ui/annotations/draft/component.js +6 -5
  260. package/dist/esm/ui/annotations/element/index.js +4 -4
  261. package/dist/esm/ui/annotations/element/mark.js +2 -1
  262. package/dist/esm/ui/annotations/element/useInlineAnnotationProps.js +1 -0
  263. package/dist/esm/ui/annotations/hooks/use-events.js +2 -2
  264. package/dist/esm/ui/annotations/hooks/use-load-annotations.js +1 -1
  265. package/dist/esm/ui/annotations/hooks/user-selection.js +2 -2
  266. package/dist/esm/ui/annotations/hover/mounter.js +2 -2
  267. package/dist/esm/ui/annotations/hover/range-validator.js +2 -2
  268. package/dist/esm/ui/annotations/index.js +6 -6
  269. package/dist/esm/ui/annotations/selection/mounter.js +3 -3
  270. package/dist/esm/ui/annotations/selection/range-validator.js +1 -1
  271. package/dist/esm/ui/annotations/view/index.js +1 -1
  272. package/dist/esm/utils.js +1 -1
  273. package/dist/types/actions/index.d.ts +1 -1
  274. package/dist/types/analytics/events.d.ts +1 -1
  275. package/dist/types/react/index.d.ts +4 -4
  276. package/dist/types/react/marks/annotation.d.ts +1 -1
  277. package/dist/types/react/marks/index.d.ts +7 -7
  278. package/dist/types/react/nodes/blockCard.d.ts +2 -2
  279. package/dist/types/react/nodes/bodiedExtension.d.ts +4 -4
  280. package/dist/types/react/nodes/codeBlock/components/codeBlockButtonContainer.d.ts +1 -1
  281. package/dist/types/react/nodes/codeBlock/components/codeBlockContainer.d.ts +1 -1
  282. package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +4 -0
  283. package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +4 -0
  284. package/dist/types/react/nodes/embedCard.d.ts +3 -3
  285. package/dist/types/react/nodes/emoji.d.ts +5 -1
  286. package/dist/types/react/nodes/extension.d.ts +3 -3
  287. package/dist/types/react/nodes/extensionFrame.d.ts +3 -3
  288. package/dist/types/react/nodes/heading.d.ts +1 -1
  289. package/dist/types/react/nodes/index.d.ts +27 -27
  290. package/dist/types/react/nodes/inlineCard.d.ts +4 -4
  291. package/dist/types/react/nodes/inlineExtension.d.ts +2 -2
  292. package/dist/types/react/nodes/media/index.d.ts +6 -6
  293. package/dist/types/react/nodes/mediaGroup.d.ts +2 -2
  294. package/dist/types/react/nodes/mediaInline.d.ts +4 -4
  295. package/dist/types/react/nodes/mediaSingle/index.d.ts +1 -1
  296. package/dist/types/react/nodes/multiBodiedExtension.d.ts +4 -4
  297. package/dist/types/react/nodes/table/sticky.d.ts +2 -2
  298. package/dist/types/react/nodes/table/types.d.ts +1 -1
  299. package/dist/types/react/nodes/table.d.ts +2 -2
  300. package/dist/types/react/nodes/text-wrapper.d.ts +1 -1
  301. package/dist/types/react/types.d.ts +2 -2
  302. package/dist/types/react/utils/markBlockAsInline.d.ts +1 -1
  303. package/dist/types/react/utils/render-text-segments.d.ts +1 -1
  304. package/dist/types/types/mediaOptions.d.ts +1 -1
  305. package/dist/types/ui/Expand.d.ts +5 -1
  306. package/dist/types/ui/ExtensionRenderer.d.ts +2 -2
  307. package/dist/types/ui/MediaCard.d.ts +8 -8
  308. package/dist/types/ui/Renderer/truncated-wrapper.d.ts +1 -1
  309. package/dist/types/ui/annotations/context.d.ts +1 -1
  310. package/dist/types/ui/annotations/draft/component.d.ts +1 -1
  311. package/dist/types/ui/annotations/element/mark.d.ts +1 -1
  312. package/dist/types/ui/annotations/hooks/use-events.d.ts +1 -1
  313. package/dist/types/ui/annotations/hover/mounter.d.ts +1 -1
  314. package/dist/types/ui/annotations/hover/range-validator.d.ts +1 -1
  315. package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
  316. package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
  317. package/dist/types/ui/annotations/types.d.ts +1 -1
  318. package/dist/types/ui/renderer-props.d.ts +1 -1
  319. package/dist/types/utils.d.ts +3 -3
  320. package/package.json +3 -3
  321. package/dist/cjs/react/nodes/heading-anchor-button.compiled.css +0 -16
  322. package/dist/cjs/react/nodes/heading-anchor-button.js +0 -24
  323. package/dist/es2019/react/nodes/heading-anchor-button.compiled.css +0 -16
  324. package/dist/es2019/react/nodes/heading-anchor-button.js +0 -15
  325. package/dist/esm/react/nodes/heading-anchor-button.compiled.css +0 -16
  326. package/dist/esm/react/nodes/heading-anchor-button.js +0 -15
  327. package/dist/types/react/nodes/heading-anchor-button.d.ts +0 -7
@@ -1,55 +1,55 @@
1
1
  import type React from 'react';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
2
3
  import Loadable from 'react-loadable';
3
- import type { Fragment, Node, Mark } from '@atlaskit/editor-prosemirror/model';
4
- import { type EventHandlers } from '@atlaskit/editor-common/ui';
5
- import Blockquote from './blockquote';
6
- import BodiedExtension from './bodiedExtension';
7
- import MultiBodiedExtension from './multiBodiedExtension';
8
- import ExtensionFrame from './extensionFrame';
9
- import BulletList from './bulletList';
10
- import Doc, { DocWithSelectAllTrap } from './doc';
11
- import Extension from './extension';
12
- import HardBreak from './hardBreak';
13
- import Heading from './heading';
14
- import InlineExtension from './inlineExtension';
15
- import LayoutSection from './layoutSection';
16
- import LayoutColumn from './layoutColumn';
17
- import ListItem from './listItem';
18
- import Caption from './caption';
19
- import OrderedList from './orderedList';
20
- import Paragraph from './paragraph';
21
- import Placeholder from './placeholder';
22
- import Rule from './rule';
23
- import Table from './table';
24
- import { TableCell } from './tableCell';
25
- import TableRow from './tableRow';
26
- import UnknownBlock from './unknownBlock';
27
- import type { NodeComponentsProps, RendererAppearance } from '../../ui/Renderer/types';
28
- import type { Layout as RichMediaLayout } from '@atlaskit/adf-schema/rich-media-common';
29
4
  import type { DatasourceAttributeProperties } from '@atlaskit/adf-schema/block-card';
5
+ import type { Layout as RichMediaLayout } from '@atlaskit/adf-schema/rich-media-common';
30
6
  import type { MediaInlineAttrs } from '@atlaskit/editor-common/media-inline';
31
7
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
8
+ import { type EventHandlers } from '@atlaskit/editor-common/ui';
32
9
  import type { Diff } from '@atlaskit/editor-common/utils';
10
+ import type { Fragment, Node, Mark } from '@atlaskit/editor-prosemirror/model';
33
11
  import type { MediaFeatureFlags } from '@atlaskit/media-common';
34
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
35
12
  import type { MediaSSR } from '../../types/mediaOptions';
36
13
  import type { SmartLinksOptions } from '../../types/smartLinksOptions';
37
14
  import type { ExpandProps } from '../../ui/Expand';
15
+ import type { NodeComponentsProps, RendererAppearance } from '../../ui/Renderer/types';
38
16
  import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
39
17
  import type { NodeProps } from '../types';
18
+ import Blockquote from './blockquote';
19
+ import BodiedExtension from './bodiedExtension';
20
+ import BulletList from './bulletList';
21
+ import Caption from './caption';
40
22
  import type { Props as CodeBlockNodeProps } from './codeBlock/codeBlock';
41
23
  import type { Props as DateNodeProps } from './date';
42
24
  import type { Props as DecisionListNodeProps } from './decisionList';
25
+ import Doc, { DocWithSelectAllTrap } from './doc';
43
26
  import type { EmojiProps } from './emoji';
27
+ import Extension from './extension';
28
+ import ExtensionFrame from './extensionFrame';
29
+ import HardBreak from './hardBreak';
30
+ import Heading from './heading';
44
31
  import type { InlineCardProps } from './inlineCard';
32
+ import InlineExtension from './inlineExtension';
33
+ import LayoutColumn from './layoutColumn';
34
+ import LayoutSection from './layoutSection';
35
+ import ListItem from './listItem';
45
36
  import type { MediaProps } from './media';
46
37
  import type { MediaGroupProps } from './mediaGroup';
47
38
  import type { Props as MediaSingleNodeProps } from './mediaSingle';
48
39
  import type { Props as MentionNodeProps } from './mention';
40
+ import MultiBodiedExtension from './multiBodiedExtension';
41
+ import OrderedList from './orderedList';
49
42
  import type { Props as PanelNodeProps } from './panel';
43
+ import Paragraph from './paragraph';
44
+ import Placeholder from './placeholder';
45
+ import Rule from './rule';
50
46
  import type { Props as StatusNodeProps } from './status';
47
+ import Table from './table';
48
+ import { TableCell } from './tableCell';
49
+ import TableRow from './tableRow';
51
50
  import type { Props as TaskItemNodeProps } from './taskItem';
52
51
  import type { Props as TaskListNodeProps } from './taskList';
52
+ import UnknownBlock from './unknownBlock';
53
53
  declare const WindowedCodeBlock: React.ComponentType<CodeBlockNodeProps> & Loadable.LoadableComponent;
54
54
  declare const CodeBlock: React.ComponentType<WithIntlProps<CodeBlockNodeProps & WrappedComponentProps>> & Loadable.LoadableComponent;
55
55
  declare const TaskList: React.ComponentType<TaskListNodeProps> & Loadable.LoadableComponent;
@@ -1,12 +1,12 @@
1
1
  import type { ComponentClass } from 'react';
2
- import type { Mark } from '@atlaskit/editor-prosemirror/model';
3
2
  import type { EventHandlers } from '@atlaskit/editor-common/ui';
4
- import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
3
+ import type { Diff } from '@atlaskit/editor-common/utils';
4
+ import type { Mark } from '@atlaskit/editor-prosemirror/model';
5
+ import type { AnalyticsEventPayload } from '../../analytics/events';
5
6
  import type { SmartLinksOptions } from '../../types/smartLinksOptions';
6
7
  import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
7
8
  import type { RendererAppearance } from '../../ui/Renderer/types';
8
- import type { AnalyticsEventPayload } from '../../analytics/events';
9
- import type { Diff } from '@atlaskit/editor-common/utils';
9
+ import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
10
10
  export interface InlineCardProps extends MarkDataAttributes {
11
11
  data?: object;
12
12
  eventHandlers?: EventHandlers;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import type { RendererContext } from '../types';
3
- import type { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
4
2
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
5
3
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
+ import type { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
5
+ import type { RendererContext } from '../types';
6
6
  interface Props {
7
7
  extensionHandlers?: ExtensionHandlers;
8
8
  extensionKey: string;
@@ -5,16 +5,16 @@
5
5
  import type { PropsWithChildren } from 'react';
6
6
  import React from 'react';
7
7
  import { jsx } from '@emotion/react';
8
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
9
- import type { EventHandlers } from '@atlaskit/editor-common/ui';
10
- import type { MediaCardProps } from '../../../ui/MediaCard';
11
- import type { LinkDefinition } from '@atlaskit/adf-schema/link';
12
- import type { BorderMarkDefinition } from '@atlaskit/adf-schema/border';
13
8
  import type { AnnotationMarkDefinition } from '@atlaskit/adf-schema/annotation';
9
+ import type { BorderMarkDefinition } from '@atlaskit/adf-schema/border';
14
10
  import type { DataConsumerDefinition } from '@atlaskit/adf-schema/data-consumer';
11
+ import type { LinkDefinition } from '@atlaskit/adf-schema/link';
12
+ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
13
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
15
14
  import type { MediaFeatureFlags } from '@atlaskit/media-common';
16
- import type { MediaRenderEvent } from '../../../types/mediaOptions';
17
15
  import type { AnalyticsEventPayload } from '../../../analytics/events';
16
+ import type { MediaRenderEvent } from '../../../types/mediaOptions';
17
+ import type { MediaCardProps } from '../../../ui/MediaCard';
18
18
  export type MediaProps = MediaCardProps & {
19
19
  allowAltTextOnImages?: boolean;
20
20
  allowAnnotationsDraftMode?: boolean;
@@ -1,10 +1,10 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import React, { PureComponent } from 'react';
3
- import type { CardEvent } from '@atlaskit/media-card/types';
4
3
  import type { EventHandlers, CardEventClickHandler } from '@atlaskit/editor-common/ui';
4
+ import type { CardEvent } from '@atlaskit/media-card/types';
5
5
  import type { Identifier } from '@atlaskit/media-client';
6
- import type { MediaProps } from './media';
7
6
  import type { MediaFeatureFlags } from '@atlaskit/media-common';
7
+ import type { MediaProps } from './media';
8
8
  export interface MediaGroupProps {
9
9
  children?: React.ReactNode;
10
10
  enableDownloadButton?: boolean;
@@ -1,12 +1,12 @@
1
+ import React from 'react';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
1
3
  import type { MediaInlineAttrs } from '@atlaskit/editor-common/media-inline';
2
4
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
5
  import type { EventHandlers } from '@atlaskit/editor-common/ui';
4
- import type { MediaFeatureFlags } from '@atlaskit/media-common';
5
- import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
- import type { RendererAppearance } from '../../ui/Renderer/types';
8
6
  import type { Mark } from '@atlaskit/editor-prosemirror/model';
7
+ import type { MediaFeatureFlags } from '@atlaskit/media-common';
9
8
  import type { MediaSSR } from '../../types/mediaOptions';
9
+ import type { RendererAppearance } from '../../ui/Renderer/types';
10
10
  type MediaInlineProps = {
11
11
  collection?: string;
12
12
  eventHandlers?: EventHandlers;
@@ -1,9 +1,9 @@
1
1
  import { default as React } from 'react';
2
2
  import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { Layout as MediaSingleLayout } from '@atlaskit/adf-schema/rich-media-common';
4
- import type { MediaFeatureFlags } from '@atlaskit/media-common';
5
4
  import type { EditorAppearance } from '@atlaskit/editor-common/types';
6
5
  import type { EventHandlers, MediaSingleWidthType } from '@atlaskit/editor-common/ui';
6
+ import type { MediaFeatureFlags } from '@atlaskit/media-common';
7
7
  import type { AnalyticsEventPayload } from '../../../analytics/events';
8
8
  import type { RendererAppearance } from '../../../ui/Renderer/types';
9
9
  export interface Props {
@@ -2,15 +2,15 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { jsx } from '@emotion/react';
6
5
  import React from 'react';
7
- import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
8
- import type { RendererContext } from '../types';
9
- import type { Serializer } from '../../serializer';
6
+ import { jsx } from '@emotion/react';
10
7
  import type { Layout as ExtensionLayout } from '@atlaskit/adf-schema/extensions';
11
8
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
12
9
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
10
+ import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
11
+ import type { Serializer } from '../../serializer';
13
12
  import type { RendererAppearance } from '../../ui/Renderer/types';
13
+ import type { RendererContext } from '../types';
14
14
  type Props = React.PropsWithChildren<{
15
15
  extensionHandlers?: ExtensionHandlers;
16
16
  extensionKey: string;
@@ -4,9 +4,9 @@
4
4
  */
5
5
  import React from 'react';
6
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
7
  import type { Layout as TableLayout } from '@atlaskit/adf-schema/tableNodes';
8
+ import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
9
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
10
10
  import type { RendererAppearance } from '../../../ui/Renderer/types';
11
11
  export type StickyMode = 'none' | 'stick' | 'pin-bottom';
12
12
  export declare const tableStickyPadding = 8;
@@ -1,5 +1,5 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
1
  import type { Layout as TableLayout } from '@atlaskit/adf-schema/tableNodes';
2
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { RendererAppearance } from '../../../ui/Renderer/types';
4
4
  export type SharedTableProps = {
5
5
  allowFixedColumnWidthOption?: boolean;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
+ import { SortOrder } from '@atlaskit/editor-common/types';
3
3
  import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
4
4
  import type { Diff } from '@atlaskit/editor-common/utils';
5
- import { SortOrder } from '@atlaskit/editor-common/types';
5
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
6
6
  import type { RendererAppearance, StickyHeaderConfig } from '../../ui/Renderer/types';
7
7
  import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
8
8
  import type { StickyMode } from './table/sticky';
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import React from 'react';
3
- import type { TextHighlighter } from '../types';
4
3
  import type { Mark } from '@atlaskit/editor-prosemirror/model';
4
+ import type { TextHighlighter } from '../types';
5
5
  type Props = {
6
6
  children?: ReactNode | null;
7
7
  endPos: number;
@@ -1,12 +1,12 @@
1
1
  import type { PropsWithChildren } from 'react';
2
- import type { Node as PMNode, NodeType, Schema } from '@atlaskit/editor-prosemirror/model';
2
+ import type { AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema/annotation';
3
3
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
4
4
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
5
5
  import type { EventHandlers } from '@atlaskit/editor-common/ui';
6
+ import type { Node as PMNode, NodeType, Schema } from '@atlaskit/editor-prosemirror/model';
6
7
  import type { AnalyticsEventPayload } from '../analytics/events';
7
8
  import type { Serializer } from '../serializer';
8
9
  import type { RendererAppearance, HeadingAnchorLinksProps, RendererContentMode, NestedRendererType } from '../ui/Renderer/types';
9
- import type { AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema/annotation';
10
10
  export interface RendererContext {
11
11
  adDoc?: any;
12
12
  containerAri?: string;
@@ -1,5 +1,5 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
1
  import type { ExtensionParams, Parameters } from '@atlaskit/editor-common/extensions';
2
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  export declare function markBlockAsInline({ nodes, onMark, parentPos, shouldDisplayExtensionAsInline, isTopLevel, }: {
4
4
  isTopLevel?: boolean;
5
5
  nodes: PMNode[];
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { Mark } from '@atlaskit/editor-prosemirror/model';
3
- import type { TextSegment } from './segment-text';
4
3
  import type { TextHighlighter } from '../types';
4
+ import type { TextSegment } from './segment-text';
5
5
  export declare function renderTextSegments(segments: Array<TextSegment>, textHighlighter: TextHighlighter | undefined, marksList: readonly Mark[], startPos: number): string | React.JSX.Element;
@@ -1,5 +1,5 @@
1
- import type { MediaClientConfig } from '@atlaskit/media-core/auth';
2
1
  import type { MediaFeatureFlags, SSR } from '@atlaskit/media-common';
2
+ import type { MediaClientConfig } from '@atlaskit/media-core/auth';
3
3
  import type { MediaViewerExtensions } from '@atlaskit/media-viewer';
4
4
  export type MediaSSR = {
5
5
  config: MediaClientConfig;
@@ -1,6 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
1
5
  import React from 'react';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
6
  import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
8
  import type { AnalyticsEventPayload } from '../analytics/events';
5
9
  import type { RendererAppearance, RendererContentMode } from './Renderer/types';
6
10
  export interface ExpandProps {
@@ -2,13 +2,13 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { jsx } from '@emotion/react';
6
5
  import React from 'react';
7
- import type { RendererContext } from '../react/types';
6
+ import { jsx } from '@emotion/react';
8
7
  import type { Layout as ExtensionLayout } from '@atlaskit/adf-schema/extensions';
9
8
  import type { ExtensionHandlers, ExtensionParams, MultiBodiedExtensionActions, Parameters } from '@atlaskit/editor-common/extensions';
10
9
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
11
10
  import type { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
11
+ import type { RendererContext } from '../react/types';
12
12
  interface Props {
13
13
  actions?: MultiBodiedExtensionActions;
14
14
  children: ({ isExtensionProviderPending, node, result, }: {
@@ -1,18 +1,18 @@
1
1
  import React, { Component } from 'react';
2
- import type { ADFEntity } from '@atlaskit/adf-utils/types';
3
- import type { CardAppearance, CardDimensions, CardOnClickCallback, CardProps as AtlaskitMediaCardProps } from '@atlaskit/media-card/types';
4
- import type { NumericalCardDimensions } from '@atlaskit/media-common/main-types';
5
- import type { MediaClientConfig } from '@atlaskit/media-core/auth';
6
- import type { ImageResizeMode, Identifier, FileState, MediaClient } from '@atlaskit/media-client';
7
2
  import type { MediaType } from '@atlaskit/adf-schema/media';
3
+ import type { ADFEntity } from '@atlaskit/adf-utils/types';
8
4
  import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
9
5
  import type { ImageLoaderProps, ImageStatus } from '@atlaskit/editor-common/utils';
6
+ import type { CardAppearance, CardDimensions, CardOnClickCallback, CardProps as AtlaskitMediaCardProps } from '@atlaskit/media-card/types';
7
+ import type { ImageResizeMode, Identifier, FileState, MediaClient } from '@atlaskit/media-client';
10
8
  import type { MediaFeatureFlags } from '@atlaskit/media-common';
11
- import type { RendererAppearance } from './Renderer/types';
12
- import type { RendererContext } from '../react/types';
13
- import type { MediaSSR } from '../types/mediaOptions';
9
+ import type { NumericalCardDimensions } from '@atlaskit/media-common/main-types';
10
+ import type { MediaClientConfig } from '@atlaskit/media-core/auth';
14
11
  import type { MediaViewerExtensions } from '@atlaskit/media-viewer';
15
12
  import type { AnalyticsEventPayload } from '../analytics/events';
13
+ import type { RendererContext } from '../react/types';
14
+ import type { MediaSSR } from '../types/mediaOptions';
15
+ import type { RendererAppearance } from './Renderer/types';
16
16
  export type MediaProvider = {
17
17
  viewMediaClientConfig: MediaClientConfig;
18
18
  };
@@ -2,8 +2,8 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { jsx } from '@emotion/react';
6
5
  import { Component } from 'react';
6
+ import { jsx } from '@emotion/react';
7
7
  interface TruncatedWrapperProps {
8
8
  backgroundColor?: string;
9
9
  children?: React.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { type Context } from 'react';
2
- import type { AnnotationProviders } from '@atlaskit/editor-common/types';
3
2
  import type { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
3
+ import type { AnnotationProviders } from '@atlaskit/editor-common/types';
4
4
  export declare const ProvidersContext: Context<AnnotationProviders | null | undefined>;
5
5
  export declare const InlineCommentsStateContext: Context<Record<string, AnnotationMarkStates | null>>;
@@ -5,9 +5,9 @@
5
5
  import React from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  import type { Mark } from '@atlaskit/editor-prosemirror/model';
8
+ import type { TextHighlighter } from '../../../react/types';
8
9
  import type { Position } from '../types';
9
10
  import { InsertDraftPosition } from '../types';
10
- import type { TextHighlighter } from '../../../react/types';
11
11
  export declare const AnnotationDraft: ({ draftPosition, children, }: React.PropsWithChildren<{
12
12
  draftPosition: Position;
13
13
  }>) => jsx.JSX.Element;
@@ -4,9 +4,9 @@
4
4
  */
5
5
  import type React from 'react';
6
6
  import { type SerializedStyles } from '@emotion/react';
7
- import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
8
7
  import type { AnnotationId, AnnotationDataAttributes, AnnotationTypes } from '@atlaskit/adf-schema/annotation';
9
8
  import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
9
+ import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
10
10
  type MarkComponentProps = {
11
11
  annotationParentIds: AnnotationId[];
12
12
  dataAttributes: AnnotationDataAttributes;
@@ -1,7 +1,7 @@
1
- import type { InlineCommentViewComponentProps, AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
2
1
  import type { AnnotationMarkStates, AnnotationId } from '@atlaskit/adf-schema/annotation';
3
2
  import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
4
3
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
4
+ import type { InlineCommentViewComponentProps, AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
5
5
  type ListenEventProps = {
6
6
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
7
7
  id: AnnotationId;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
2
3
  import type { AnnotationByMatches, InlineCommentHoverComponentProps } from '@atlaskit/editor-common/types';
3
4
  import type { ApplyAnnotation } from '../../../actions/index';
4
5
  import type { Position } from '../types';
5
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
6
6
  type Props = {
7
7
  applyAnnotation: ApplyAnnotation;
8
8
  component: React.ComponentType<InlineCommentHoverComponentProps>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { InlineCommentHoverComponentProps } from '@atlaskit/editor-common/types';
3
2
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
+ import type { InlineCommentHoverComponentProps } from '@atlaskit/editor-common/types';
4
4
  type Props = {
5
5
  component: React.ComponentType<InlineCommentHoverComponentProps>;
6
6
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
2
3
  import type { AnnotationByMatches, InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
3
4
  import type { ApplyAnnotation } from '../../../actions/index';
4
5
  import type { Position } from '../types';
5
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
6
6
  type Props = {
7
7
  applyAnnotation: ApplyAnnotation;
8
8
  component: React.ComponentType<React.PropsWithChildren<InlineCommentSelectionComponentProps>>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
3
2
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
+ import type { InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
4
4
  type Props = {
5
5
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
6
6
  rendererRef: React.RefObject<HTMLDivElement>;
@@ -1,5 +1,5 @@
1
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
2
1
  import type { AnnotationProviders } from '@atlaskit/editor-common/types';
2
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
3
3
  export declare enum InsertDraftPosition {
4
4
  AROUND_TEXT = "AROUND_TEXT",
5
5
  START = "START",
@@ -1,7 +1,7 @@
1
1
  import type { DocNode } from '@atlaskit/adf-schema/doc';
2
2
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
- import type { ExtensionHandlers, ExtensionParams, Parameters } from '@atlaskit/editor-common/extensions';
4
3
  import type { GetPMNodeHeight } from '@atlaskit/editor-common/extensibility';
4
+ import type { ExtensionHandlers, ExtensionParams, Parameters } from '@atlaskit/editor-common/extensions';
5
5
  import type { MentionNodeDataProvider } from '@atlaskit/editor-common/mention';
6
6
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
7
7
  import type { AnnotationProviders } from '@atlaskit/editor-common/types';
@@ -1,7 +1,7 @@
1
- import type { Schema, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import type { ADNode } from '@atlaskit/editor-common/validator';
3
- import type { EventHandlers } from '@atlaskit/editor-common/ui';
4
1
  import type { Transformer } from '@atlaskit/editor-common/types';
2
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
3
+ import type { ADNode } from '@atlaskit/editor-common/validator';
4
+ import type { Schema, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
5
  export type TransformerProvider<T> = (schema: Schema) => Transformer<T>;
6
6
  export declare class ADFEncoder<T> {
7
7
  encode: (value: T) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "141.0.1",
3
+ "version": "141.0.2",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -73,7 +73,7 @@
73
73
  "@atlaskit/status": "^5.12.0",
74
74
  "@atlaskit/task-decision": "^21.10.0",
75
75
  "@atlaskit/theme": "^28.2.0",
76
- "@atlaskit/tmp-editor-statsig": "^200.0.0",
76
+ "@atlaskit/tmp-editor-statsig": "^201.0.0",
77
77
  "@atlaskit/tokens": "^18.2.0",
78
78
  "@atlaskit/tooltip": "^24.3.0",
79
79
  "@atlaskit/visually-hidden": "^4.4.0",
@@ -88,7 +88,7 @@
88
88
  "uuid": "^11.1.1"
89
89
  },
90
90
  "peerDependencies": {
91
- "@atlaskit/editor-common": "^123.0.0",
91
+ "@atlaskit/editor-common": "^123.2.0",
92
92
  "@atlaskit/link-provider": "^5.7.0",
93
93
  "@atlaskit/media-core": "^38.2.0",
94
94
  "react": "^18.2.0 || ^19.2.0",
@@ -1,16 +0,0 @@
1
- ._1dqoglyw{border-style:none}._12ji1r31{outline-color:currentColor}
2
- ._12y31o36{outline-width:medium}
3
- ._19bvidpf{padding-left:0}
4
- ._1bah1h6o{justify-content:center}
5
- ._1bsb1tcg{width:24px}
6
- ._1e0c116y{display:inline-flex}
7
- ._1qu2glyw{outline-style:none}
8
- ._4cvr1h6o{align-items:center}
9
- ._4t3i1tcg{height:24px}
10
- ._80omtlke{cursor:pointer}
11
- ._bfhk1j28{background-color:transparent}
12
- ._ca0qidpf{padding-top:0}
13
- ._n3tdidpf{padding-bottom:0}
14
- ._s7n4nkob{vertical-align:middle}
15
- ._u5f3idpf{padding-right:0}
16
- ._vchhusvi{box-sizing:border-box}
@@ -1,24 +0,0 @@
1
- /* heading-anchor-button.tsx generated by @compiled/babel-plugin v3.0.2 */
2
- "use strict";
3
-
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
- var _typeof = require("@babel/runtime/helpers/typeof");
6
- Object.defineProperty(exports, "__esModule", {
7
- value: true
8
- });
9
- exports.default = HeadingAnchorButton;
10
- require("./heading-anchor-button.compiled.css");
11
- var React = _interopRequireWildcard(require("react"));
12
- var _runtime = require("@compiled/react/runtime");
13
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
15
- var buttonStyles = null;
16
-
17
- /** Heading link button with a minimum 24px pointer target. */
18
- function HeadingAnchorButton(props) {
19
- // eslint-disable-next-line react/jsx-props-no-spreading -- Forward the existing heading anchor's accessibility and event props.
20
- return /*#__PURE__*/React.createElement("button", (0, _extends2.default)({}, props, {
21
- type: "button",
22
- className: (0, _runtime.ax)(["_12ji1r31 _1qu2glyw _12y31o36 _1dqoglyw _1e0c116y _vchhusvi _4cvr1h6o _1bah1h6o _1bsb1tcg _4t3i1tcg _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _s7n4nkob _bfhk1j28 _80omtlke"])
23
- }));
24
- }
@@ -1,16 +0,0 @@
1
- ._1dqoglyw{border-style:none}._12ji1r31{outline-color:currentColor}
2
- ._12y31o36{outline-width:medium}
3
- ._19bvidpf{padding-left:0}
4
- ._1bah1h6o{justify-content:center}
5
- ._1bsb1tcg{width:24px}
6
- ._1e0c116y{display:inline-flex}
7
- ._1qu2glyw{outline-style:none}
8
- ._4cvr1h6o{align-items:center}
9
- ._4t3i1tcg{height:24px}
10
- ._80omtlke{cursor:pointer}
11
- ._bfhk1j28{background-color:transparent}
12
- ._ca0qidpf{padding-top:0}
13
- ._n3tdidpf{padding-bottom:0}
14
- ._s7n4nkob{vertical-align:middle}
15
- ._u5f3idpf{padding-right:0}
16
- ._vchhusvi{box-sizing:border-box}
@@ -1,15 +0,0 @@
1
- /* heading-anchor-button.tsx generated by @compiled/babel-plugin v3.0.2 */
2
- import _extends from "@babel/runtime/helpers/extends";
3
- import "./heading-anchor-button.compiled.css";
4
- import * as React from 'react';
5
- import { ax, ix } from "@compiled/react/runtime";
6
- const buttonStyles = null;
7
-
8
- /** Heading link button with a minimum 24px pointer target. */
9
- export default function HeadingAnchorButton(props) {
10
- // eslint-disable-next-line react/jsx-props-no-spreading -- Forward the existing heading anchor's accessibility and event props.
11
- return /*#__PURE__*/React.createElement("button", _extends({}, props, {
12
- type: "button",
13
- className: ax(["_12ji1r31 _1qu2glyw _12y31o36 _1dqoglyw _1e0c116y _vchhusvi _4cvr1h6o _1bah1h6o _1bsb1tcg _4t3i1tcg _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _s7n4nkob _bfhk1j28 _80omtlke"])
14
- }));
15
- }
@@ -1,16 +0,0 @@
1
- ._1dqoglyw{border-style:none}._12ji1r31{outline-color:currentColor}
2
- ._12y31o36{outline-width:medium}
3
- ._19bvidpf{padding-left:0}
4
- ._1bah1h6o{justify-content:center}
5
- ._1bsb1tcg{width:24px}
6
- ._1e0c116y{display:inline-flex}
7
- ._1qu2glyw{outline-style:none}
8
- ._4cvr1h6o{align-items:center}
9
- ._4t3i1tcg{height:24px}
10
- ._80omtlke{cursor:pointer}
11
- ._bfhk1j28{background-color:transparent}
12
- ._ca0qidpf{padding-top:0}
13
- ._n3tdidpf{padding-bottom:0}
14
- ._s7n4nkob{vertical-align:middle}
15
- ._u5f3idpf{padding-right:0}
16
- ._vchhusvi{box-sizing:border-box}
@@ -1,15 +0,0 @@
1
- /* heading-anchor-button.tsx generated by @compiled/babel-plugin v3.0.2 */
2
- import _extends from "@babel/runtime/helpers/extends";
3
- import "./heading-anchor-button.compiled.css";
4
- import * as React from 'react';
5
- import { ax, ix } from "@compiled/react/runtime";
6
- var buttonStyles = null;
7
-
8
- /** Heading link button with a minimum 24px pointer target. */
9
- export default function HeadingAnchorButton(props) {
10
- // eslint-disable-next-line react/jsx-props-no-spreading -- Forward the existing heading anchor's accessibility and event props.
11
- return /*#__PURE__*/React.createElement("button", _extends({}, props, {
12
- type: "button",
13
- className: ax(["_12ji1r31 _1qu2glyw _12y31o36 _1dqoglyw _1e0c116y _vchhusvi _4cvr1h6o _1bah1h6o _1bsb1tcg _4t3i1tcg _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _s7n4nkob _bfhk1j28 _80omtlke"])
14
- }));
15
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import type { ButtonHTMLAttributes, JSX } from 'react';
6
- /** Heading link button with a minimum 24px pointer target. */
7
- export default function HeadingAnchorButton(props: ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;