@atlaskit/renderer 108.0.0 → 108.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/actions/package.json +2 -2
  3. package/consts/package.json +2 -2
  4. package/dist/cjs/react/marks/link.js +12 -2
  5. package/dist/cjs/react/nodes/blockCard.js +12 -2
  6. package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
  7. package/dist/cjs/react/nodes/embedCard.js +12 -2
  8. package/dist/cjs/react/nodes/inlineCard.js +16 -4
  9. package/dist/cjs/ui/Expand.js +8 -7
  10. package/dist/cjs/ui/Renderer/ErrorBoundary.js +8 -1
  11. package/dist/cjs/ui/Renderer/index.js +34 -23
  12. package/dist/cjs/ui/Renderer/style.js +11 -4
  13. package/dist/cjs/ui/SortingIcon.js +1 -2
  14. package/dist/cjs/version.json +1 -1
  15. package/dist/es2019/react/marks/link.js +12 -2
  16. package/dist/es2019/react/nodes/blockCard.js +12 -2
  17. package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +2 -2
  18. package/dist/es2019/react/nodes/embedCard.js +12 -2
  19. package/dist/es2019/react/nodes/inlineCard.js +16 -4
  20. package/dist/es2019/ui/Expand.js +8 -5
  21. package/dist/es2019/ui/Renderer/ErrorBoundary.js +8 -1
  22. package/dist/es2019/ui/Renderer/index.js +34 -23
  23. package/dist/es2019/ui/Renderer/style.js +33 -16
  24. package/dist/es2019/ui/SortingIcon.js +1 -2
  25. package/dist/es2019/version.json +1 -1
  26. package/dist/esm/react/marks/link.js +12 -2
  27. package/dist/esm/react/nodes/blockCard.js +12 -2
  28. package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +2 -2
  29. package/dist/esm/react/nodes/embedCard.js +12 -2
  30. package/dist/esm/react/nodes/inlineCard.js +16 -4
  31. package/dist/esm/ui/Expand.js +8 -7
  32. package/dist/esm/ui/Renderer/ErrorBoundary.js +8 -1
  33. package/dist/esm/ui/Renderer/index.js +34 -23
  34. package/dist/esm/ui/Renderer/style.js +11 -4
  35. package/dist/esm/ui/SortingIcon.js +1 -2
  36. package/dist/esm/version.json +1 -1
  37. package/dist/types/actions/index.d.ts +4 -4
  38. package/dist/types/analytics/enums.d.ts +1 -1
  39. package/dist/types/analytics/events.d.ts +29 -29
  40. package/dist/types/analytics/unsupported-content.d.ts +2 -2
  41. package/dist/types/i18n/cs.d.ts +6 -6
  42. package/dist/types/i18n/da.d.ts +6 -6
  43. package/dist/types/i18n/de.d.ts +6 -6
  44. package/dist/types/i18n/en.d.ts +6 -6
  45. package/dist/types/i18n/en_GB.d.ts +6 -6
  46. package/dist/types/i18n/en_ZZ.d.ts +6 -6
  47. package/dist/types/i18n/es.d.ts +6 -6
  48. package/dist/types/i18n/et.d.ts +1 -1
  49. package/dist/types/i18n/fi.d.ts +6 -6
  50. package/dist/types/i18n/fr.d.ts +6 -6
  51. package/dist/types/i18n/hu.d.ts +6 -6
  52. package/dist/types/i18n/it.d.ts +6 -6
  53. package/dist/types/i18n/ja.d.ts +6 -6
  54. package/dist/types/i18n/ko.d.ts +6 -6
  55. package/dist/types/i18n/nb.d.ts +6 -6
  56. package/dist/types/i18n/nl.d.ts +6 -6
  57. package/dist/types/i18n/pl.d.ts +6 -6
  58. package/dist/types/i18n/pt_BR.d.ts +6 -6
  59. package/dist/types/i18n/pt_PT.d.ts +1 -1
  60. package/dist/types/i18n/ru.d.ts +6 -6
  61. package/dist/types/i18n/sk.d.ts +1 -1
  62. package/dist/types/i18n/sv.d.ts +6 -6
  63. package/dist/types/i18n/th.d.ts +6 -6
  64. package/dist/types/i18n/tr.d.ts +6 -6
  65. package/dist/types/i18n/uk.d.ts +6 -6
  66. package/dist/types/i18n/vi.d.ts +6 -6
  67. package/dist/types/i18n/zh.d.ts +6 -6
  68. package/dist/types/i18n/zh_TW.d.ts +6 -6
  69. package/dist/types/react/hooks/use-observed-width.d.ts +2 -2
  70. package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +1 -1
  71. package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +1 -1
  72. package/dist/types/react/nodes/extension.d.ts +3 -3
  73. package/dist/types/react/nodes/fallback.d.ts +1 -1
  74. package/dist/types/react/nodes/heading-anchor.d.ts +2 -2
  75. package/dist/types/react/nodes/heading.d.ts +1 -1
  76. package/dist/types/react/nodes/index.d.ts +1 -1
  77. package/dist/types/react/nodes/media.d.ts +1 -1
  78. package/dist/types/react/nodes/mediaInline.d.ts +2 -2
  79. package/dist/types/react/nodes/table/sticky.d.ts +2 -2
  80. package/dist/types/react/nodes/table/table.d.ts +1 -1
  81. package/dist/types/react/nodes/table/types.d.ts +1 -1
  82. package/dist/types/react/nodes/table.d.ts +2 -2
  83. package/dist/types/react/nodes/tableCell.d.ts +2 -2
  84. package/dist/types/react/nodes/tableRow.d.ts +2 -2
  85. package/dist/types/react/nodes/text-wrapper.d.ts +1 -1
  86. package/dist/types/react/types.d.ts +2 -2
  87. package/dist/types/react/utils/getCardClickHandler.d.ts +1 -1
  88. package/dist/types/react/utils/performance/RenderTracking.d.ts +4 -4
  89. package/dist/types/render-document.d.ts +2 -2
  90. package/dist/types/renderer-context.d.ts +1 -1
  91. package/dist/types/text/nodes/index.d.ts +1 -1
  92. package/dist/types/types/mediaOptions.d.ts +1 -1
  93. package/dist/types/ui/Expand.d.ts +1 -1
  94. package/dist/types/ui/ExtensionRenderer.d.ts +2 -2
  95. package/dist/types/ui/MediaCard.d.ts +2 -2
  96. package/dist/types/ui/Renderer/ErrorBoundary.d.ts +1 -1
  97. package/dist/types/ui/Renderer/style.d.ts +2 -1
  98. package/dist/types/ui/Renderer/types.d.ts +6 -6
  99. package/dist/types/ui/RendererActionsContext/index.d.ts +1 -1
  100. package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +3 -3
  101. package/dist/types/ui/active-header-id-provider.d.ts +1 -1
  102. package/dist/types/ui/annotations/context.d.ts +4 -4
  103. package/dist/types/ui/annotations/draft/component.d.ts +2 -2
  104. package/dist/types/ui/annotations/draft/text.d.ts +1 -1
  105. package/dist/types/ui/annotations/element/index.d.ts +1 -1
  106. package/dist/types/ui/annotations/element/mark.d.ts +1 -1
  107. package/dist/types/ui/annotations/hooks/use-events.d.ts +3 -3
  108. package/dist/types/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
  109. package/dist/types/ui/annotations/hooks/use-load-annotations.d.ts +1 -1
  110. package/dist/types/ui/annotations/hooks/user-selection.d.ts +1 -1
  111. package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
  112. package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
  113. package/dist/types/ui/annotations/selection/wrapper.d.ts +1 -1
  114. package/dist/types/ui/annotations/types.d.ts +3 -3
  115. package/dist/types/ui/annotations/view/index.d.ts +1 -1
  116. package/dist/types/utils.d.ts +2 -2
  117. package/dist/types-ts4.5/actions/index.d.ts +61 -0
  118. package/dist/types-ts4.5/actions/matches-utils.d.ts +7 -0
  119. package/dist/types-ts4.5/actions.d.ts +3 -0
  120. package/dist/types-ts4.5/analytics/analyticsContext.d.ts +6 -0
  121. package/dist/types-ts4.5/analytics/enums.d.ts +58 -0
  122. package/dist/types-ts4.5/analytics/events.d.ts +118 -0
  123. package/dist/types-ts4.5/analytics/unsupported-content.d.ts +10 -0
  124. package/dist/types-ts4.5/consts.d.ts +12 -0
  125. package/dist/types-ts4.5/i18n/cs.d.ts +20 -0
  126. package/dist/types-ts4.5/i18n/da.d.ts +20 -0
  127. package/dist/types-ts4.5/i18n/de.d.ts +20 -0
  128. package/dist/types-ts4.5/i18n/en.d.ts +20 -0
  129. package/dist/types-ts4.5/i18n/en_GB.d.ts +20 -0
  130. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +20 -0
  131. package/dist/types-ts4.5/i18n/es.d.ts +20 -0
  132. package/dist/types-ts4.5/i18n/et.d.ts +8 -0
  133. package/dist/types-ts4.5/i18n/fi.d.ts +20 -0
  134. package/dist/types-ts4.5/i18n/fr.d.ts +20 -0
  135. package/dist/types-ts4.5/i18n/hu.d.ts +20 -0
  136. package/dist/types-ts4.5/i18n/index.d.ts +31 -0
  137. package/dist/types-ts4.5/i18n/it.d.ts +20 -0
  138. package/dist/types-ts4.5/i18n/ja.d.ts +20 -0
  139. package/dist/types-ts4.5/i18n/ko.d.ts +20 -0
  140. package/dist/types-ts4.5/i18n/nb.d.ts +20 -0
  141. package/dist/types-ts4.5/i18n/nl.d.ts +20 -0
  142. package/dist/types-ts4.5/i18n/pl.d.ts +20 -0
  143. package/dist/types-ts4.5/i18n/pt_BR.d.ts +20 -0
  144. package/dist/types-ts4.5/i18n/pt_PT.d.ts +8 -0
  145. package/dist/types-ts4.5/i18n/ru.d.ts +20 -0
  146. package/dist/types-ts4.5/i18n/sk.d.ts +8 -0
  147. package/dist/types-ts4.5/i18n/sv.d.ts +20 -0
  148. package/dist/types-ts4.5/i18n/th.d.ts +20 -0
  149. package/dist/types-ts4.5/i18n/tr.d.ts +20 -0
  150. package/dist/types-ts4.5/i18n/uk.d.ts +20 -0
  151. package/dist/types-ts4.5/i18n/vi.d.ts +20 -0
  152. package/dist/types-ts4.5/i18n/zh.d.ts +20 -0
  153. package/dist/types-ts4.5/i18n/zh_TW.d.ts +20 -0
  154. package/dist/types-ts4.5/index.d.ts +11 -0
  155. package/dist/types-ts4.5/messages.d.ts +61 -0
  156. package/dist/types-ts4.5/react/hooks/use-bidi-warnings.d.ts +10 -0
  157. package/dist/types-ts4.5/react/hooks/use-in-viewport.d.ts +5 -0
  158. package/dist/types-ts4.5/react/hooks/use-observed-width.d.ts +3 -0
  159. package/dist/types-ts4.5/react/index.d.ts +124 -0
  160. package/dist/types-ts4.5/react/marks/alignment.d.ts +4 -0
  161. package/dist/types-ts4.5/react/marks/annotation.d.ts +6 -0
  162. package/dist/types-ts4.5/react/marks/breakout.d.ts +6 -0
  163. package/dist/types-ts4.5/react/marks/code.d.ts +16 -0
  164. package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +8 -0
  165. package/dist/types-ts4.5/react/marks/data-consumer.d.ts +4 -0
  166. package/dist/types-ts4.5/react/marks/em.d.ts +3 -0
  167. package/dist/types-ts4.5/react/marks/fragment.d.ts +4 -0
  168. package/dist/types-ts4.5/react/marks/indentation.d.ts +4 -0
  169. package/dist/types-ts4.5/react/marks/index.d.ts +21 -0
  170. package/dist/types-ts4.5/react/marks/link.d.ts +9 -0
  171. package/dist/types-ts4.5/react/marks/strike.d.ts +3 -0
  172. package/dist/types-ts4.5/react/marks/strong.d.ts +3 -0
  173. package/dist/types-ts4.5/react/marks/subsup.d.ts +4 -0
  174. package/dist/types-ts4.5/react/marks/textColor.d.ts +4 -0
  175. package/dist/types-ts4.5/react/marks/underline.d.ts +3 -0
  176. package/dist/types-ts4.5/react/marks/unsupportedMark.d.ts +3 -0
  177. package/dist/types-ts4.5/react/marks/unsupportedNodeAttribute.d.ts +3 -0
  178. package/dist/types-ts4.5/react/nodes/blockCard.d.ts +12 -0
  179. package/dist/types-ts4.5/react/nodes/blockquote.d.ts +2 -0
  180. package/dist/types-ts4.5/react/nodes/bodiedExtension.d.ts +24 -0
  181. package/dist/types-ts4.5/react/nodes/bulletList.d.ts +5 -0
  182. package/dist/types-ts4.5/react/nodes/caption.d.ts +4 -0
  183. package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +15 -0
  184. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockButtonContainer.d.ts +12 -0
  185. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockContainer.d.ts +10 -0
  186. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +9 -0
  187. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +11 -0
  188. package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +9 -0
  189. package/dist/types-ts4.5/react/nodes/codeBlock/windowedCodeBlock.d.ts +4 -0
  190. package/dist/types-ts4.5/react/nodes/date.d.ts +11 -0
  191. package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +3 -0
  192. package/dist/types-ts4.5/react/nodes/decisionList.d.ts +7 -0
  193. package/dist/types-ts4.5/react/nodes/doc.d.ts +3 -0
  194. package/dist/types-ts4.5/react/nodes/embedCard.d.ts +17 -0
  195. package/dist/types-ts4.5/react/nodes/emoji.d.ts +12 -0
  196. package/dist/types-ts4.5/react/nodes/extension.d.ts +113 -0
  197. package/dist/types-ts4.5/react/nodes/fallback.d.ts +16 -0
  198. package/dist/types-ts4.5/react/nodes/hardBreak.d.ts +6 -0
  199. package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +14 -0
  200. package/dist/types-ts4.5/react/nodes/heading.d.ts +14 -0
  201. package/dist/types-ts4.5/react/nodes/index.d.ts +95 -0
  202. package/dist/types-ts4.5/react/nodes/inline.d.ts +1 -0
  203. package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +65 -0
  204. package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +18 -0
  205. package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +6 -0
  206. package/dist/types-ts4.5/react/nodes/layoutSection.d.ts +2 -0
  207. package/dist/types-ts4.5/react/nodes/listItem.d.ts +2 -0
  208. package/dist/types-ts4.5/react/nodes/media.d.ts +28 -0
  209. package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +29 -0
  210. package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +26 -0
  211. package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +23 -0
  212. package/dist/types-ts4.5/react/nodes/mediaSingle/styles.d.ts +2 -0
  213. package/dist/types-ts4.5/react/nodes/mention.d.ts +13 -0
  214. package/dist/types-ts4.5/react/nodes/orderedList.d.ts +9 -0
  215. package/dist/types-ts4.5/react/nodes/panel.d.ts +17 -0
  216. package/dist/types-ts4.5/react/nodes/paragraph.d.ts +3 -0
  217. package/dist/types-ts4.5/react/nodes/placeholder.d.ts +6 -0
  218. package/dist/types-ts4.5/react/nodes/rule.d.ts +2 -0
  219. package/dist/types-ts4.5/react/nodes/status.d.ts +10 -0
  220. package/dist/types-ts4.5/react/nodes/table/colgroup.d.ts +9 -0
  221. package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +38 -0
  222. package/dist/types-ts4.5/react/nodes/table/table.d.ts +7 -0
  223. package/dist/types-ts4.5/react/nodes/table/types.d.ts +7 -0
  224. package/dist/types-ts4.5/react/nodes/table.d.ts +269 -0
  225. package/dist/types-ts4.5/react/nodes/tableCell.d.ts +81 -0
  226. package/dist/types-ts4.5/react/nodes/tableRow.d.ts +24 -0
  227. package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +29 -0
  228. package/dist/types-ts4.5/react/nodes/taskItem.d.ts +19 -0
  229. package/dist/types-ts4.5/react/nodes/taskList.d.ts +8 -0
  230. package/dist/types-ts4.5/react/nodes/text-wrapper.d.ts +8 -0
  231. package/dist/types-ts4.5/react/nodes/unknownBlock.d.ts +2 -0
  232. package/dist/types-ts4.5/react/renderer-node.d.ts +4 -0
  233. package/dist/types-ts4.5/react/types.d.ts +58 -0
  234. package/dist/types-ts4.5/react/utils/clipboard.d.ts +1 -0
  235. package/dist/types-ts4.5/react/utils/element-selection.d.ts +9 -0
  236. package/dist/types-ts4.5/react/utils/getCardClickHandler.d.ts +2 -0
  237. package/dist/types-ts4.5/react/utils/inject-props.d.ts +6 -0
  238. package/dist/types-ts4.5/react/utils/links.d.ts +3 -0
  239. package/dist/types-ts4.5/react/utils/lists.d.ts +2 -0
  240. package/dist/types-ts4.5/react/utils/performance/RenderTracking.d.ts +15 -0
  241. package/dist/types-ts4.5/react/utils/use-select-all-trap.d.ts +2 -0
  242. package/dist/types-ts4.5/render-document.d.ts +23 -0
  243. package/dist/types-ts4.5/renderer-context.d.ts +7 -0
  244. package/dist/types-ts4.5/serializer.d.ts +4 -0
  245. package/dist/types-ts4.5/steps/index.d.ts +14 -0
  246. package/dist/types-ts4.5/text/index.d.ts +8 -0
  247. package/dist/types-ts4.5/text/nodes/blockquote.d.ts +3 -0
  248. package/dist/types-ts4.5/text/nodes/bulletList.d.ts +3 -0
  249. package/dist/types-ts4.5/text/nodes/date.d.ts +3 -0
  250. package/dist/types-ts4.5/text/nodes/decisionItem.d.ts +3 -0
  251. package/dist/types-ts4.5/text/nodes/hardBreak.d.ts +3 -0
  252. package/dist/types-ts4.5/text/nodes/heading.d.ts +3 -0
  253. package/dist/types-ts4.5/text/nodes/index.d.ts +6 -0
  254. package/dist/types-ts4.5/text/nodes/inlineCard.d.ts +3 -0
  255. package/dist/types-ts4.5/text/nodes/listItem.d.ts +3 -0
  256. package/dist/types-ts4.5/text/nodes/mediaGroup.d.ts +3 -0
  257. package/dist/types-ts4.5/text/nodes/mention.d.ts +3 -0
  258. package/dist/types-ts4.5/text/nodes/orderedList.d.ts +3 -0
  259. package/dist/types-ts4.5/text/nodes/panel.d.ts +3 -0
  260. package/dist/types-ts4.5/text/nodes/paragraph.d.ts +3 -0
  261. package/dist/types-ts4.5/text/nodes/rule.d.ts +3 -0
  262. package/dist/types-ts4.5/text/nodes/status.d.ts +3 -0
  263. package/dist/types-ts4.5/text/nodes/table.d.ts +3 -0
  264. package/dist/types-ts4.5/text/nodes/taskItem.d.ts +3 -0
  265. package/dist/types-ts4.5/text/nodes/unknown.d.ts +3 -0
  266. package/dist/types-ts4.5/text-serializer.d.ts +1 -0
  267. package/dist/types-ts4.5/types/i18n.d.ts +5 -0
  268. package/dist/types-ts4.5/types/mediaOptions.d.ts +12 -0
  269. package/dist/types-ts4.5/types/smartLinksOptions.d.ts +5 -0
  270. package/dist/types-ts4.5/ui/Expand.d.ts +23 -0
  271. package/dist/types-ts4.5/ui/ExtensionRenderer.d.ts +42 -0
  272. package/dist/types-ts4.5/ui/MediaCard.d.ts +77 -0
  273. package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +24 -0
  274. package/dist/types-ts4.5/ui/Renderer/breakout-ssr.d.ts +11 -0
  275. package/dist/types-ts4.5/ui/Renderer/click-to-edit.d.ts +6 -0
  276. package/dist/types-ts4.5/ui/Renderer/index.d.ts +38 -0
  277. package/dist/types-ts4.5/ui/Renderer/style.d.ts +16 -0
  278. package/dist/types-ts4.5/ui/Renderer/truncated-wrapper.d.ts +12 -0
  279. package/dist/types-ts4.5/ui/Renderer/types.d.ts +16 -0
  280. package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +6 -0
  281. package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +9 -0
  282. package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +60 -0
  283. package/dist/types-ts4.5/ui/SortingIcon.d.ts +23 -0
  284. package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +15 -0
  285. package/dist/types-ts4.5/ui/TaskItemsFormatContext/index.d.ts +2 -0
  286. package/dist/types-ts4.5/ui/active-header-id-provider.d.ts +18 -0
  287. package/dist/types-ts4.5/ui/annotations/context.d.ts +27 -0
  288. package/dist/types-ts4.5/ui/annotations/draft/component.d.ts +20 -0
  289. package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +7 -0
  290. package/dist/types-ts4.5/ui/annotations/draft/index.d.ts +2 -0
  291. package/dist/types-ts4.5/ui/annotations/draft/position.d.ts +2 -0
  292. package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +11 -0
  293. package/dist/types-ts4.5/ui/annotations/element/index.d.ts +10 -0
  294. package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +14 -0
  295. package/dist/types-ts4.5/ui/annotations/hooks/index.d.ts +3 -0
  296. package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +18 -0
  297. package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +1 -0
  298. package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comments-filter.d.ts +9 -0
  299. package/dist/types-ts4.5/ui/annotations/hooks/use-load-annotations.d.ts +6 -0
  300. package/dist/types-ts4.5/ui/annotations/hooks/user-selection.d.ts +9 -0
  301. package/dist/types-ts4.5/ui/annotations/hooks/utils.d.ts +2 -0
  302. package/dist/types-ts4.5/ui/annotations/index.d.ts +5 -0
  303. package/dist/types-ts4.5/ui/annotations/selection/index.d.ts +1 -0
  304. package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +20 -0
  305. package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +13 -0
  306. package/dist/types-ts4.5/ui/annotations/selection/wrapper.d.ts +8 -0
  307. package/dist/types-ts4.5/ui/annotations/types.d.ts +22 -0
  308. package/dist/types-ts4.5/ui/annotations/view/index.d.ts +7 -0
  309. package/dist/types-ts4.5/ui/index.d.ts +1 -0
  310. package/dist/types-ts4.5/ui/renderer-props.d.ts +104 -0
  311. package/dist/types-ts4.5/use-feature-flags.d.ts +2 -0
  312. package/dist/types-ts4.5/utils.d.ts +24 -0
  313. package/messages/package.json +2 -2
  314. package/package.json +29 -14
  315. package/render-document/package.json +2 -2
  316. package/renderer-context/package.json +2 -2
  317. package/report.api.md +4 -6
  318. package/serializer/package.json +2 -2
  319. package/text-serializer/package.json +2 -2
  320. package/use-feature-flags/package.json +2 -2
  321. package/utils/package.json +2 -2
@@ -0,0 +1,14 @@
1
+ /** @jsx jsx */
2
+ import React from 'react';
3
+ import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
4
+ import { AnnotationMarkStates, AnnotationId, AnnotationDataAttributes } from '@atlaskit/adf-schema';
5
+ type MarkComponentProps = {
6
+ id: AnnotationId;
7
+ annotationParentIds: AnnotationId[];
8
+ dataAttributes: AnnotationDataAttributes;
9
+ state: AnnotationMarkStates | null;
10
+ hasFocus: boolean;
11
+ onClick: (props: OnAnnotationClickPayload) => void;
12
+ };
13
+ export declare const MarkComponent: React.FC<MarkComponentProps>;
14
+ export {};
@@ -0,0 +1,3 @@
1
+ export { useHasFocusEvent, useAnnotationClickEvent } from './use-events';
2
+ export { useInlineCommentsFilter } from './use-inline-comments-filter';
3
+ export { useInlineCommentSubscriberContext } from './use-inline-comment-subscriber';
@@ -0,0 +1,18 @@
1
+ import { AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
2
+ import type { InlineCommentViewComponentProps } from '@atlaskit/editor-common/types';
3
+ import { AnnotationMarkStates, AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema';
4
+ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
5
+ type ListenEventProps = {
6
+ id: AnnotationId;
7
+ updateSubscriber: AnnotationUpdateEmitter | null;
8
+ createAnalyticsEvent?: CreateUIAnalyticsEvent;
9
+ };
10
+ type UseAnnotationUpdateSatteByEventProps = {
11
+ type: AnnotationTypes;
12
+ updateSubscriber: AnnotationUpdateEmitter | null;
13
+ };
14
+ export declare const useAnnotationStateByTypeEvent: ({ type, updateSubscriber, }: UseAnnotationUpdateSatteByEventProps) => Record<string, AnnotationMarkStates | null>;
15
+ export declare const useHasFocusEvent: ({ id, updateSubscriber, }: ListenEventProps) => boolean;
16
+ type AnnotationsWithClickTarget = Pick<InlineCommentViewComponentProps, 'annotations' | 'clickElementTarget'> | null;
17
+ export declare const useAnnotationClickEvent: (props: Pick<ListenEventProps, 'updateSubscriber' | 'createAnalyticsEvent'>) => AnnotationsWithClickTarget;
18
+ export {};
@@ -0,0 +1 @@
1
+ export declare const useInlineCommentSubscriberContext: () => import("@atlaskit/editor-common/types").AnnotationUpdateEmitter | null;
@@ -0,0 +1,9 @@
1
+ import { 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 {};
@@ -0,0 +1,6 @@
1
+ import { JSONDocNode } from '@atlaskit/editor-json-transformer';
2
+ type Props = {
3
+ adfDocument: JSONDocNode;
4
+ };
5
+ export declare const useLoadAnnotations: ({ adfDocument }: Props) => void;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ rendererRef: React.RefObject<HTMLDivElement>;
4
+ };
5
+ export declare const useUserSelectionRange: (props: Props) => [
6
+ Range | null,
7
+ () => void
8
+ ];
9
+ export {};
@@ -0,0 +1,2 @@
1
+ /** Exists in its own module to allow mocking in unit tests */
2
+ export declare const isRangeInsideOfRendererContainer: (rendererDOM: HTMLElement, range: Range) => boolean;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { AnnotationsWrapperProps } from './types';
3
+ export declare const AnnotationsWrapper: React.FC<AnnotationsWrapperProps>;
4
+ export { TextWithAnnotationDraft } from './draft';
5
+ export { MarkElement as AnnotationMark } from './element';
@@ -0,0 +1 @@
1
+ export { Wrapper as SelectionComponentWrapper } from './wrapper';
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import type { AnnotationByMatches, InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
3
+ import { ApplyAnnotation } from '../../../actions/index';
4
+ import { Position } from '../types';
5
+ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
6
+ type Props = {
7
+ range: Range;
8
+ component: React.ComponentType<InlineCommentSelectionComponentProps>;
9
+ wrapperDOM: React.RefObject<HTMLDivElement>;
10
+ documentPosition: Position | false;
11
+ isAnnotationAllowed: boolean;
12
+ onClose: () => void;
13
+ applyAnnotation: ApplyAnnotation;
14
+ applyAnnotationDraftAt: (position: Position) => void;
15
+ clearAnnotationDraft: () => void;
16
+ createAnalyticsEvent?: CreateUIAnalyticsEvent;
17
+ generateIndexMatch?: (pos: Position) => false | AnnotationByMatches;
18
+ };
19
+ export declare const SelectionInlineCommentMounter: React.FC<Props>;
20
+ export {};
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { Position } from '../types';
3
+ import type { InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
4
+ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
5
+ type Props = {
6
+ selectionComponent: React.ComponentType<InlineCommentSelectionComponentProps>;
7
+ rendererRef: React.RefObject<HTMLDivElement>;
8
+ applyAnnotationDraftAt: (position: Position) => void;
9
+ clearAnnotationDraft: () => void;
10
+ createAnalyticsEvent?: CreateUIAnalyticsEvent;
11
+ };
12
+ export declare const SelectionRangeValidator: React.FC<Props>;
13
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
3
+ type Props = {
4
+ rendererRef: React.RefObject<HTMLDivElement>;
5
+ createAnalyticsEvent?: CreateUIAnalyticsEvent;
6
+ };
7
+ export declare const Wrapper: (props: React.PropsWithChildren<Props>) => JSX.Element;
8
+ export {};
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { JSONDocNode } from '@atlaskit/editor-json-transformer';
3
+ import type { AnnotationProviders } from '@atlaskit/editor-common/types';
4
+ export declare enum InsertDraftPosition {
5
+ AROUND_TEXT = "AROUND_TEXT",
6
+ START = "START",
7
+ END = "END",
8
+ INSIDE = "INSIDE"
9
+ }
10
+ export type Position = {
11
+ from: number;
12
+ to: number;
13
+ };
14
+ export type AnnotationsWrapperProps = {
15
+ adfDocument: JSONDocNode;
16
+ annotationProvider: AnnotationProviders | null | undefined;
17
+ rendererRef: React.RefObject<HTMLDivElement>;
18
+ };
19
+ export type TextPosition = {
20
+ start: number;
21
+ end: number;
22
+ };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
3
+ type Props = {
4
+ createAnalyticsEvent?: CreateUIAnalyticsEvent;
5
+ };
6
+ declare const AnnotationView: React.FC<Props>;
7
+ export { AnnotationView };
@@ -0,0 +1 @@
1
+ export { default as Renderer } from './Renderer';
@@ -0,0 +1,104 @@
1
+ /// <reference types="react" />
2
+ import { Schema } from 'prosemirror-model';
3
+ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
4
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
5
+ import type { ADFStage } from '@atlaskit/editor-common/validator';
6
+ import type { AnnotationProviders } from '@atlaskit/editor-common/types';
7
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
8
+ import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
9
+ import { EmojiResourceConfig } from '@atlaskit/emoji/resource';
10
+ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
11
+ import { RendererContext } from '../';
12
+ import { RenderOutputStat } from '../render-document';
13
+ import { RendererAppearance, StickyHeaderProps, HeadingAnchorLinksProps, NodeComponentsProps } from './Renderer/types';
14
+ import { MediaOptions } from '../types/mediaOptions';
15
+ import { SmartLinksOptions } from '../types/smartLinksOptions';
16
+ import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
17
+ import { DocNode } from '@atlaskit/adf-schema';
18
+ export interface RawObjectFeatureFlags {
19
+ ['renderer-render-tracking']: string;
20
+ }
21
+ export interface NormalizedObjectFeatureFlags {
22
+ rendererRenderTracking: {
23
+ [ACTION_SUBJECT.RENDERER]: {
24
+ enabled: boolean;
25
+ useShallow: boolean;
26
+ };
27
+ };
28
+ }
29
+ export interface RendererProps {
30
+ document: DocNode;
31
+ dataProviders?: ProviderFactory;
32
+ eventHandlers?: EventHandlers;
33
+ extensionHandlers?: ExtensionHandlers;
34
+ enableSsrInlineScripts?: boolean;
35
+ onComplete?: (stat: RenderOutputStat) => void;
36
+ onError?: (error: any) => void;
37
+ portal?: HTMLElement;
38
+ rendererContext?: RendererContext;
39
+ schema?: Schema;
40
+ appearance?: RendererAppearance;
41
+ adfStage?: ADFStage;
42
+ disableHeadingIDs?: boolean;
43
+ disableActions?: boolean;
44
+ allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
45
+ allowPlaceholderText?: boolean;
46
+ maxHeight?: number;
47
+ fadeOutHeight?: number;
48
+ truncated?: boolean;
49
+ createAnalyticsEvent?: CreateUIAnalyticsEvent;
50
+ allowColumnSorting?: boolean;
51
+ shouldOpenMediaViewer?: boolean;
52
+ allowAltTextOnImages?: boolean;
53
+ stickyHeaders?: StickyHeaderProps;
54
+ media?: MediaOptions;
55
+ emojiResourceConfig?: EmojiResourceConfig;
56
+ smartLinks?: SmartLinksOptions;
57
+ allowAnnotations?: boolean;
58
+ annotationProvider?: AnnotationProviders | null;
59
+ innerRef?: React.RefObject<HTMLDivElement>;
60
+ useSpecBasedValidator?: boolean;
61
+ allowCopyToClipboard?: boolean;
62
+ allowWrapCodeBlock?: boolean;
63
+ allowCustomPanels?: boolean;
64
+ analyticsEventSeverityTracking?: {
65
+ enabled: boolean;
66
+ severityNormalThreshold: number;
67
+ severityDegradedThreshold: number;
68
+ };
69
+ allowUgcScrubber?: boolean;
70
+ allowSelectAllTrap?: boolean;
71
+ unsupportedContentLevelsTracking?: UnsupportedContentLevelsTracking;
72
+ nodeComponents?: NodeComponentsProps;
73
+ /**
74
+ * @default undefined
75
+ * @description
76
+ * Short lived feature flags for experiments and gradual rollouts
77
+ * Flags are expected to follow these rules or they are filtered out
78
+ *
79
+ * 1. cased in kebab-case (match [a-z-])
80
+ * 2. have boolean values or object {} values
81
+ *
82
+ * @example
83
+ * ```tsx
84
+ * (<Renderer featureFlags={{ 'my-feature': true }} />);
85
+ * getFeatureFlags()?.myFeature === true;
86
+ * ```
87
+ *
88
+ * @example
89
+ * ```tsx
90
+ * (<Renderer featureFlags={{ 'my-feature': 'thing' }} />);
91
+ * getFeatureFlags()?.myFeature === undefined;
92
+ * ```
93
+ *
94
+ * @example
95
+ * ```tsx
96
+ * (<Renderer featureFlags={{ 'product.my-feature': false }} />);
97
+ * getFeatureFlags()?.myFeature === undefined;
98
+ * getFeatureFlags()?.productMyFeature === undefined;
99
+ * ```
100
+ */
101
+ featureFlags?: {
102
+ [featureFlag: string]: boolean;
103
+ } | Partial<RawObjectFeatureFlags>;
104
+ }
@@ -0,0 +1,2 @@
1
+ import { RendererContextProps } from './renderer-context';
2
+ export declare const useFeatureFlags: () => RendererContextProps['featureFlags'] | undefined;
@@ -0,0 +1,24 @@
1
+ import type { Schema } from 'prosemirror-model';
2
+ import type { ADNode } from '@atlaskit/editor-common/validator';
3
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
4
+ import type { Transformer } from '@atlaskit/editor-common/types';
5
+ import type { Node as PMNode } from 'prosemirror-model';
6
+ import type { RendererAppearance } from './ui/Renderer/types';
7
+ export type TransformerProvider<T> = (schema: Schema) => Transformer<T>;
8
+ export declare class ADFEncoder<T> {
9
+ encode: (value: T) => any;
10
+ constructor(createTransformerWithSchema: TransformerProvider<T>);
11
+ }
12
+ export declare const getText: (node: PMNode | ADNode) => string;
13
+ export declare const getEventHandler: (eventHandlers?: EventHandlers, type?: keyof EventHandlers, eventName?: string) => any;
14
+ export declare const getPlatform: (rendererAppearance: RendererAppearance) => "mobile" | "web";
15
+ /**
16
+ * Traverse through parent elements of element. Return element for which evaluate(element) returns
17
+ * true. If topElement is reached before evaluate returns true, return false. Does not run evaluate
18
+ * on topElement.
19
+ * @param element Starting HTMLElement
20
+ * @param topElement HTMLElement to end search at. evaluate is not called on this element
21
+ * @param evaluate Function which returns true or false based on the given element. eg: Checks if
22
+ * element has desired classname.
23
+ */
24
+ export declare function findInTree(element: HTMLElement, topElement: HTMLElement, evaluate: (element: HTMLElement) => boolean): boolean;
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/messages.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/messages.d.ts"
11
+ "../dist/types-ts4.5/messages.d.ts"
12
12
  ]
13
13
  }
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "108.0.0",
3
+ "version": "108.1.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,6 +12,14 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
15
23
  "sideEffects": false,
16
24
  "atlaskit:src": "src/index.ts",
17
25
  "atlassian": {
@@ -31,29 +39,30 @@
31
39
  "@atlaskit/analytics-next": "^9.1.0",
32
40
  "@atlaskit/button": "^16.7.0",
33
41
  "@atlaskit/code": "^14.6.0",
34
- "@atlaskit/editor-common": "^74.0.0",
42
+ "@atlaskit/editor-common": "^74.1.0",
35
43
  "@atlaskit/editor-json-transformer": "^8.9.0",
36
- "@atlaskit/editor-palette": "1.4.0",
44
+ "@atlaskit/editor-palette": "1.4.1",
37
45
  "@atlaskit/editor-shared-styles": "^2.4.0",
38
46
  "@atlaskit/emoji": "^67.4.0",
39
47
  "@atlaskit/icon": "^21.12.0",
40
- "@atlaskit/media-card": "^74.8.0",
48
+ "@atlaskit/media-card": "^75.0.0",
41
49
  "@atlaskit/media-client": "^22.0.0",
42
50
  "@atlaskit/media-common": "^4.1.0",
43
51
  "@atlaskit/media-filmstrip": "^47.0.0",
44
- "@atlaskit/media-ui": "^22.4.0",
45
- "@atlaskit/media-viewer": "^47.6.0",
46
- "@atlaskit/smart-card": "^26.0.0",
52
+ "@atlaskit/media-ui": "^23.0.0",
53
+ "@atlaskit/media-viewer": "^48.0.0",
54
+ "@atlaskit/platform-feature-flags": "^0.2.0",
55
+ "@atlaskit/smart-card": "^26.1.0",
47
56
  "@atlaskit/status": "^1.3.0",
48
57
  "@atlaskit/task-decision": "^17.6.0",
49
58
  "@atlaskit/theme": "^12.5.0",
50
- "@atlaskit/tokens": "^1.3.0",
59
+ "@atlaskit/tokens": "^1.4.0",
51
60
  "@atlaskit/tooltip": "^17.8.0",
52
61
  "@babel/runtime": "^7.0.0",
53
62
  "@emotion/react": "^11.7.1",
54
63
  "lodash": "^4.17.21",
55
64
  "memoize-one": "^6.0.0",
56
- "prosemirror-model": "1.14.3",
65
+ "prosemirror-model": "1.16.0",
57
66
  "prosemirror-transform": "1.3.2",
58
67
  "prosemirror-utils": "^1.0.0-0",
59
68
  "react-intl-next": "npm:react-intl@^5.18.1",
@@ -61,8 +70,8 @@
61
70
  "uuid": "^3.1.0"
62
71
  },
63
72
  "peerDependencies": {
64
- "@atlaskit/link-provider": "^1.6.0",
65
- "@atlaskit/media-core": "^34.1.0",
73
+ "@atlaskit/link-provider": "^1.6.1",
74
+ "@atlaskit/media-core": "^34.1.1",
66
75
  "react": "^16.8.0",
67
76
  "react-dom": "^16.8.0"
68
77
  },
@@ -71,9 +80,10 @@
71
80
  "@atlaskit/avatar": "^21.3.0",
72
81
  "@atlaskit/css-reset": "^6.5.0",
73
82
  "@atlaskit/docs": "*",
74
- "@atlaskit/editor-core": "^183.0.0",
75
- "@atlaskit/editor-test-helpers": "^18.2.0",
83
+ "@atlaskit/editor-core": "^183.1.0",
84
+ "@atlaskit/editor-test-helpers": "^18.3.0",
76
85
  "@atlaskit/link-provider": "^1.6.0",
86
+ "@atlaskit/link-test-helpers": "^2.2.0",
77
87
  "@atlaskit/logo": "^13.14.0",
78
88
  "@atlaskit/media-core": "^34.1.0",
79
89
  "@atlaskit/media-integration-test-helpers": "^2.6.0",
@@ -104,7 +114,7 @@
104
114
  "react-test-renderer": "^16.8.0",
105
115
  "rxjs": "^5.5.0",
106
116
  "sinon": "^2.2.0",
107
- "typescript": "4.5.5",
117
+ "typescript": "~4.9.5",
108
118
  "worker-plugin": "^4.0.2"
109
119
  },
110
120
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
@@ -118,5 +128,10 @@
118
128
  "emotion"
119
129
  ]
120
130
  }
131
+ },
132
+ "platform-feature-flags": {
133
+ "platform.editor.sentry-error-monitoring_6bksu": {
134
+ "type": "boolean"
135
+ }
121
136
  }
122
137
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/render-document.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/render-document.d.ts"
11
+ "../dist/types-ts4.5/render-document.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/renderer-context.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/renderer-context.d.ts"
11
+ "../dist/types-ts4.5/renderer-context.d.ts"
12
12
  ]
13
13
  }
14
14
  }
package/report.api.md CHANGED
@@ -381,10 +381,8 @@ export const renderDocument: <T>(
381
381
  adfStage?: ADFStage,
382
382
  useSpecBasedValidator?: boolean,
383
383
  rendererId?: string,
384
- dispatchAnalyticsEvent?: DispatchAnalyticsEvent | undefined,
385
- unsupportedContentLevelsTracking?:
386
- | UnsupportedContentLevelsTracking
387
- | undefined,
384
+ dispatchAnalyticsEvent?: DispatchAnalyticsEvent,
385
+ unsupportedContentLevelsTracking?: UnsupportedContentLevelsTracking,
388
386
  appearance?: RendererAppearance,
389
387
  ) => RenderOutput<T | null>;
390
388
 
@@ -759,8 +757,8 @@ type VisitMediaLinkAEP = AEP<
759
757
 
760
758
  ```json
761
759
  {
762
- "@atlaskit/link-provider": "^1.5.3",
763
- "@atlaskit/media-core": "^34.0.2",
760
+ "@atlaskit/link-provider": "^1.6.1",
761
+ "@atlaskit/media-core": "^34.1.1",
764
762
  "react": "^16.8.0",
765
763
  "react-dom": "^16.8.0"
766
764
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/serializer.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/serializer.d.ts"
11
+ "../dist/types-ts4.5/serializer.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/text-serializer.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/text-serializer.d.ts"
11
+ "../dist/types-ts4.5/text-serializer.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/use-feature-flags.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/use-feature-flags.d.ts"
11
+ "../dist/types-ts4.5/use-feature-flags.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/utils.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/utils.d.ts"
11
+ "../dist/types-ts4.5/utils.d.ts"
12
12
  ]
13
13
  }
14
14
  }