@atlaskit/editor-core 185.16.3 → 185.16.6

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 (366) hide show
  1. package/.eslintrc.js +1 -0
  2. package/CHANGELOG.md +14 -0
  3. package/dist/cjs/i18n/cs.js +0 -35
  4. package/dist/cjs/i18n/da.js +0 -35
  5. package/dist/cjs/i18n/de.js +0 -35
  6. package/dist/cjs/i18n/en.js +0 -35
  7. package/dist/cjs/i18n/en_GB.js +0 -35
  8. package/dist/cjs/i18n/en_ZZ.js +0 -35
  9. package/dist/cjs/i18n/es.js +1 -35
  10. package/dist/cjs/i18n/fi.js +0 -35
  11. package/dist/cjs/i18n/fr.js +1 -35
  12. package/dist/cjs/i18n/hu.js +1 -35
  13. package/dist/cjs/i18n/it.js +1 -35
  14. package/dist/cjs/i18n/ja.js +1 -35
  15. package/dist/cjs/i18n/ko.js +0 -35
  16. package/dist/cjs/i18n/nb.js +1 -35
  17. package/dist/cjs/i18n/nl.js +1 -35
  18. package/dist/cjs/i18n/pl.js +1 -35
  19. package/dist/cjs/i18n/pt_BR.js +1 -35
  20. package/dist/cjs/i18n/ru.js +1 -35
  21. package/dist/cjs/i18n/sv.js +0 -35
  22. package/dist/cjs/i18n/th.js +0 -35
  23. package/dist/cjs/i18n/tr.js +1 -35
  24. package/dist/cjs/i18n/uk.js +1 -35
  25. package/dist/cjs/i18n/vi.js +0 -35
  26. package/dist/cjs/i18n/zh.js +1 -35
  27. package/dist/cjs/i18n/zh_TW.js +1 -35
  28. package/dist/cjs/labs/next/presets/mobile.js +1 -1
  29. package/dist/cjs/labs/next/presets/universal.js +2 -2
  30. package/dist/cjs/plugins/deprecated-card/doc.js +111 -0
  31. package/dist/cjs/plugins/deprecated-hyperlink/commands.js +1 -1
  32. package/dist/cjs/plugins/expand/commands.js +15 -12
  33. package/dist/cjs/plugins/expand/nodeviews/index.js +4 -1
  34. package/dist/cjs/plugins/index.js +0 -7
  35. package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +14 -25
  36. package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +39 -27
  37. package/dist/cjs/version-wrapper.js +1 -1
  38. package/dist/cjs/version.json +1 -1
  39. package/dist/es2019/i18n/cs.js +0 -35
  40. package/dist/es2019/i18n/da.js +0 -35
  41. package/dist/es2019/i18n/de.js +0 -35
  42. package/dist/es2019/i18n/en.js +0 -35
  43. package/dist/es2019/i18n/en_GB.js +0 -35
  44. package/dist/es2019/i18n/en_ZZ.js +0 -35
  45. package/dist/es2019/i18n/es.js +1 -35
  46. package/dist/es2019/i18n/fi.js +0 -35
  47. package/dist/es2019/i18n/fr.js +1 -35
  48. package/dist/es2019/i18n/hu.js +1 -35
  49. package/dist/es2019/i18n/it.js +1 -35
  50. package/dist/es2019/i18n/ja.js +1 -35
  51. package/dist/es2019/i18n/ko.js +0 -35
  52. package/dist/es2019/i18n/nb.js +1 -35
  53. package/dist/es2019/i18n/nl.js +1 -35
  54. package/dist/es2019/i18n/pl.js +1 -35
  55. package/dist/es2019/i18n/pt_BR.js +1 -35
  56. package/dist/es2019/i18n/ru.js +1 -35
  57. package/dist/es2019/i18n/sv.js +0 -35
  58. package/dist/es2019/i18n/th.js +0 -35
  59. package/dist/es2019/i18n/tr.js +1 -35
  60. package/dist/es2019/i18n/uk.js +1 -35
  61. package/dist/es2019/i18n/vi.js +0 -35
  62. package/dist/es2019/i18n/zh.js +1 -35
  63. package/dist/es2019/i18n/zh_TW.js +1 -35
  64. package/dist/es2019/labs/next/presets/mobile.js +1 -1
  65. package/dist/es2019/labs/next/presets/universal.js +1 -1
  66. package/dist/es2019/plugins/deprecated-card/doc.js +97 -0
  67. package/dist/es2019/plugins/deprecated-hyperlink/commands.js +1 -1
  68. package/dist/es2019/plugins/expand/commands.js +13 -14
  69. package/dist/es2019/plugins/expand/nodeviews/index.js +4 -1
  70. package/dist/es2019/plugins/index.js +0 -1
  71. package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +2 -14
  72. package/dist/es2019/plugins/media/ui/ResizableMediaSingle/index.js +13 -0
  73. package/dist/es2019/version-wrapper.js +1 -1
  74. package/dist/es2019/version.json +1 -1
  75. package/dist/esm/i18n/cs.js +0 -35
  76. package/dist/esm/i18n/da.js +0 -35
  77. package/dist/esm/i18n/de.js +0 -35
  78. package/dist/esm/i18n/en.js +0 -35
  79. package/dist/esm/i18n/en_GB.js +0 -35
  80. package/dist/esm/i18n/en_ZZ.js +0 -35
  81. package/dist/esm/i18n/es.js +1 -35
  82. package/dist/esm/i18n/fi.js +0 -35
  83. package/dist/esm/i18n/fr.js +1 -35
  84. package/dist/esm/i18n/hu.js +1 -35
  85. package/dist/esm/i18n/it.js +1 -35
  86. package/dist/esm/i18n/ja.js +1 -35
  87. package/dist/esm/i18n/ko.js +0 -35
  88. package/dist/esm/i18n/nb.js +1 -35
  89. package/dist/esm/i18n/nl.js +1 -35
  90. package/dist/esm/i18n/pl.js +1 -35
  91. package/dist/esm/i18n/pt_BR.js +1 -35
  92. package/dist/esm/i18n/ru.js +1 -35
  93. package/dist/esm/i18n/sv.js +0 -35
  94. package/dist/esm/i18n/th.js +0 -35
  95. package/dist/esm/i18n/tr.js +1 -35
  96. package/dist/esm/i18n/uk.js +1 -35
  97. package/dist/esm/i18n/vi.js +0 -35
  98. package/dist/esm/i18n/zh.js +1 -35
  99. package/dist/esm/i18n/zh_TW.js +1 -35
  100. package/dist/esm/labs/next/presets/mobile.js +1 -1
  101. package/dist/esm/labs/next/presets/universal.js +1 -1
  102. package/dist/esm/plugins/deprecated-card/doc.js +105 -0
  103. package/dist/esm/plugins/deprecated-hyperlink/commands.js +1 -1
  104. package/dist/esm/plugins/expand/commands.js +16 -13
  105. package/dist/esm/plugins/expand/nodeviews/index.js +4 -1
  106. package/dist/esm/plugins/index.js +0 -1
  107. package/dist/esm/plugins/media/nodeviews/mediaSingle.js +14 -25
  108. package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +39 -27
  109. package/dist/esm/version-wrapper.js +1 -1
  110. package/dist/esm/version.json +1 -1
  111. package/dist/types/i18n/cs.d.ts +0 -35
  112. package/dist/types/i18n/da.d.ts +0 -35
  113. package/dist/types/i18n/de.d.ts +0 -35
  114. package/dist/types/i18n/en.d.ts +0 -35
  115. package/dist/types/i18n/en_GB.d.ts +0 -35
  116. package/dist/types/i18n/en_ZZ.d.ts +0 -35
  117. package/dist/types/i18n/es.d.ts +1 -35
  118. package/dist/types/i18n/fi.d.ts +0 -35
  119. package/dist/types/i18n/fr.d.ts +1 -35
  120. package/dist/types/i18n/hu.d.ts +1 -35
  121. package/dist/types/i18n/it.d.ts +1 -35
  122. package/dist/types/i18n/ja.d.ts +1 -35
  123. package/dist/types/i18n/ko.d.ts +0 -35
  124. package/dist/types/i18n/nb.d.ts +1 -35
  125. package/dist/types/i18n/nl.d.ts +1 -35
  126. package/dist/types/i18n/pl.d.ts +1 -35
  127. package/dist/types/i18n/pt_BR.d.ts +1 -35
  128. package/dist/types/i18n/ru.d.ts +1 -35
  129. package/dist/types/i18n/sv.d.ts +0 -35
  130. package/dist/types/i18n/th.d.ts +0 -35
  131. package/dist/types/i18n/tr.d.ts +1 -35
  132. package/dist/types/i18n/uk.d.ts +1 -35
  133. package/dist/types/i18n/vi.d.ts +0 -35
  134. package/dist/types/i18n/zh.d.ts +1 -35
  135. package/dist/types/i18n/zh_TW.d.ts +1 -35
  136. package/dist/types/plugins/deprecated-card/doc.d.ts +20 -0
  137. package/dist/types/plugins/expand/commands.d.ts +1 -1
  138. package/dist/types/plugins/index.d.ts +0 -1
  139. package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +0 -1
  140. package/dist/types/plugins/media/ui/ResizableMediaSingle/index.d.ts +1 -0
  141. package/dist/types/plugins/media/ui/ResizableMediaSingle/types.d.ts +3 -2
  142. package/dist/types/plugins/paste/index.d.ts +1 -1
  143. package/dist/types-ts4.5/i18n/cs.d.ts +0 -35
  144. package/dist/types-ts4.5/i18n/da.d.ts +0 -35
  145. package/dist/types-ts4.5/i18n/de.d.ts +0 -35
  146. package/dist/types-ts4.5/i18n/en.d.ts +0 -35
  147. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -35
  148. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -35
  149. package/dist/types-ts4.5/i18n/es.d.ts +1 -35
  150. package/dist/types-ts4.5/i18n/fi.d.ts +0 -35
  151. package/dist/types-ts4.5/i18n/fr.d.ts +1 -35
  152. package/dist/types-ts4.5/i18n/hu.d.ts +1 -35
  153. package/dist/types-ts4.5/i18n/it.d.ts +1 -35
  154. package/dist/types-ts4.5/i18n/ja.d.ts +1 -35
  155. package/dist/types-ts4.5/i18n/ko.d.ts +0 -35
  156. package/dist/types-ts4.5/i18n/nb.d.ts +1 -35
  157. package/dist/types-ts4.5/i18n/nl.d.ts +1 -35
  158. package/dist/types-ts4.5/i18n/pl.d.ts +1 -35
  159. package/dist/types-ts4.5/i18n/pt_BR.d.ts +1 -35
  160. package/dist/types-ts4.5/i18n/ru.d.ts +1 -35
  161. package/dist/types-ts4.5/i18n/sv.d.ts +0 -35
  162. package/dist/types-ts4.5/i18n/th.d.ts +0 -35
  163. package/dist/types-ts4.5/i18n/tr.d.ts +1 -35
  164. package/dist/types-ts4.5/i18n/uk.d.ts +1 -35
  165. package/dist/types-ts4.5/i18n/vi.d.ts +0 -35
  166. package/dist/types-ts4.5/i18n/zh.d.ts +1 -35
  167. package/dist/types-ts4.5/i18n/zh_TW.d.ts +1 -35
  168. package/dist/types-ts4.5/plugins/deprecated-card/doc.d.ts +20 -0
  169. package/dist/types-ts4.5/plugins/expand/commands.d.ts +1 -1
  170. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  171. package/dist/types-ts4.5/plugins/media/nodeviews/mediaSingle.d.ts +0 -1
  172. package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/index.d.ts +1 -0
  173. package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/types.d.ts +3 -2
  174. package/dist/types-ts4.5/plugins/paste/index.d.ts +1 -1
  175. package/package.json +6 -5
  176. package/tmp/api-report-tmp.d.ts +2307 -0
  177. package/dist/cjs/plugins/card/index.js +0 -139
  178. package/dist/cjs/plugins/card/messages.js +0 -20
  179. package/dist/cjs/plugins/card/nodeviews/blockCard.js +0 -163
  180. package/dist/cjs/plugins/card/nodeviews/datasource.js +0 -172
  181. package/dist/cjs/plugins/card/nodeviews/embedCard.js +0 -396
  182. package/dist/cjs/plugins/card/nodeviews/genericCard.js +0 -118
  183. package/dist/cjs/plugins/card/nodeviews/inlineCard.js +0 -131
  184. package/dist/cjs/plugins/card/pm-plugins/actions.js +0 -122
  185. package/dist/cjs/plugins/card/pm-plugins/analytics/create-analytics-queue.js +0 -48
  186. package/dist/cjs/plugins/card/pm-plugins/analytics/events-from-tr.js +0 -353
  187. package/dist/cjs/plugins/card/pm-plugins/analytics/index.js +0 -19
  188. package/dist/cjs/plugins/card/pm-plugins/analytics/types.js +0 -5
  189. package/dist/cjs/plugins/card/pm-plugins/analytics/utils.js +0 -178
  190. package/dist/cjs/plugins/card/pm-plugins/doc.js +0 -478
  191. package/dist/cjs/plugins/card/pm-plugins/keymap.js +0 -64
  192. package/dist/cjs/plugins/card/pm-plugins/main.js +0 -212
  193. package/dist/cjs/plugins/card/pm-plugins/mountHyperlink.js +0 -47
  194. package/dist/cjs/plugins/card/pm-plugins/plugin-key.js +0 -9
  195. package/dist/cjs/plugins/card/pm-plugins/reducers.js +0 -111
  196. package/dist/cjs/plugins/card/pm-plugins/shouldReplaceLink.js +0 -35
  197. package/dist/cjs/plugins/card/pm-plugins/util/resolve.js +0 -58
  198. package/dist/cjs/plugins/card/pm-plugins/util/state.js +0 -49
  199. package/dist/cjs/plugins/card/toolbar.js +0 -364
  200. package/dist/cjs/plugins/card/types.js +0 -5
  201. package/dist/cjs/plugins/card/ui/DatasourceModal/ModalWithState.js +0 -25
  202. package/dist/cjs/plugins/card/ui/DatasourceModal/index.js +0 -60
  203. package/dist/cjs/plugins/card/ui/EditLinkToolbar.js +0 -256
  204. package/dist/cjs/plugins/card/ui/EditorSmartCardEvents.js +0 -21
  205. package/dist/cjs/plugins/card/ui/EditorSmartCardEventsNext.js +0 -213
  206. package/dist/cjs/plugins/card/ui/HyperlinkToolbarAppearance.js +0 -173
  207. package/dist/cjs/plugins/card/ui/LayoutButton/index.js +0 -113
  208. package/dist/cjs/plugins/card/ui/LayoutButton/styled.js +0 -17
  209. package/dist/cjs/plugins/card/ui/LayoutButton/types.js +0 -5
  210. package/dist/cjs/plugins/card/ui/LayoutButton/utils.js +0 -19
  211. package/dist/cjs/plugins/card/ui/LinkToolbarAppearance.js +0 -151
  212. package/dist/cjs/plugins/card/ui/ResizableEmbedCard.js +0 -360
  213. package/dist/cjs/plugins/card/ui/SmallerEditIcon.js +0 -20
  214. package/dist/cjs/plugins/card/utils.js +0 -60
  215. package/dist/es2019/plugins/card/index.js +0 -131
  216. package/dist/es2019/plugins/card/messages.js +0 -13
  217. package/dist/es2019/plugins/card/nodeviews/blockCard.js +0 -130
  218. package/dist/es2019/plugins/card/nodeviews/datasource.js +0 -136
  219. package/dist/es2019/plugins/card/nodeviews/embedCard.js +0 -368
  220. package/dist/es2019/plugins/card/nodeviews/genericCard.js +0 -92
  221. package/dist/es2019/plugins/card/nodeviews/inlineCard.js +0 -112
  222. package/dist/es2019/plugins/card/pm-plugins/actions.js +0 -57
  223. package/dist/es2019/plugins/card/pm-plugins/analytics/create-analytics-queue.js +0 -38
  224. package/dist/es2019/plugins/card/pm-plugins/analytics/events-from-tr.js +0 -333
  225. package/dist/es2019/plugins/card/pm-plugins/analytics/index.js +0 -2
  226. package/dist/es2019/plugins/card/pm-plugins/analytics/types.js +0 -1
  227. package/dist/es2019/plugins/card/pm-plugins/analytics/utils.js +0 -160
  228. package/dist/es2019/plugins/card/pm-plugins/doc.js +0 -451
  229. package/dist/es2019/plugins/card/pm-plugins/keymap.js +0 -59
  230. package/dist/es2019/plugins/card/pm-plugins/main.js +0 -208
  231. package/dist/es2019/plugins/card/pm-plugins/mountHyperlink.js +0 -37
  232. package/dist/es2019/plugins/card/pm-plugins/plugin-key.js +0 -2
  233. package/dist/es2019/plugins/card/pm-plugins/reducers.js +0 -110
  234. package/dist/es2019/plugins/card/pm-plugins/shouldReplaceLink.js +0 -25
  235. package/dist/es2019/plugins/card/pm-plugins/util/resolve.js +0 -48
  236. package/dist/es2019/plugins/card/pm-plugins/util/state.js +0 -26
  237. package/dist/es2019/plugins/card/toolbar.js +0 -362
  238. package/dist/es2019/plugins/card/types.js +0 -1
  239. package/dist/es2019/plugins/card/ui/DatasourceModal/ModalWithState.js +0 -19
  240. package/dist/es2019/plugins/card/ui/DatasourceModal/index.js +0 -48
  241. package/dist/es2019/plugins/card/ui/EditLinkToolbar.js +0 -225
  242. package/dist/es2019/plugins/card/ui/EditorSmartCardEvents.js +0 -15
  243. package/dist/es2019/plugins/card/ui/EditorSmartCardEventsNext.js +0 -198
  244. package/dist/es2019/plugins/card/ui/HyperlinkToolbarAppearance.js +0 -86
  245. package/dist/es2019/plugins/card/ui/LayoutButton/index.js +0 -106
  246. package/dist/es2019/plugins/card/ui/LayoutButton/styled.js +0 -10
  247. package/dist/es2019/plugins/card/ui/LayoutButton/types.js +0 -1
  248. package/dist/es2019/plugins/card/ui/LayoutButton/utils.js +0 -15
  249. package/dist/es2019/plugins/card/ui/LinkToolbarAppearance.js +0 -117
  250. package/dist/es2019/plugins/card/ui/ResizableEmbedCard.js +0 -332
  251. package/dist/es2019/plugins/card/ui/SmallerEditIcon.js +0 -11
  252. package/dist/es2019/plugins/card/utils.js +0 -46
  253. package/dist/esm/plugins/card/index.js +0 -132
  254. package/dist/esm/plugins/card/messages.js +0 -13
  255. package/dist/esm/plugins/card/nodeviews/blockCard.js +0 -155
  256. package/dist/esm/plugins/card/nodeviews/datasource.js +0 -164
  257. package/dist/esm/plugins/card/nodeviews/embedCard.js +0 -387
  258. package/dist/esm/plugins/card/nodeviews/genericCard.js +0 -111
  259. package/dist/esm/plugins/card/nodeviews/inlineCard.js +0 -123
  260. package/dist/esm/plugins/card/pm-plugins/actions.js +0 -102
  261. package/dist/esm/plugins/card/pm-plugins/analytics/create-analytics-queue.js +0 -41
  262. package/dist/esm/plugins/card/pm-plugins/analytics/events-from-tr.js +0 -344
  263. package/dist/esm/plugins/card/pm-plugins/analytics/index.js +0 -2
  264. package/dist/esm/plugins/card/pm-plugins/analytics/types.js +0 -1
  265. package/dist/esm/plugins/card/pm-plugins/analytics/utils.js +0 -160
  266. package/dist/esm/plugins/card/pm-plugins/doc.js +0 -460
  267. package/dist/esm/plugins/card/pm-plugins/keymap.js +0 -58
  268. package/dist/esm/plugins/card/pm-plugins/main.js +0 -199
  269. package/dist/esm/plugins/card/pm-plugins/mountHyperlink.js +0 -39
  270. package/dist/esm/plugins/card/pm-plugins/plugin-key.js +0 -2
  271. package/dist/esm/plugins/card/pm-plugins/reducers.js +0 -103
  272. package/dist/esm/plugins/card/pm-plugins/shouldReplaceLink.js +0 -29
  273. package/dist/esm/plugins/card/pm-plugins/util/resolve.js +0 -50
  274. package/dist/esm/plugins/card/pm-plugins/util/state.js +0 -40
  275. package/dist/esm/plugins/card/toolbar.js +0 -353
  276. package/dist/esm/plugins/card/types.js +0 -1
  277. package/dist/esm/plugins/card/ui/DatasourceModal/ModalWithState.js +0 -17
  278. package/dist/esm/plugins/card/ui/DatasourceModal/index.js +0 -49
  279. package/dist/esm/plugins/card/ui/EditLinkToolbar.js +0 -243
  280. package/dist/esm/plugins/card/ui/EditorSmartCardEvents.js +0 -14
  281. package/dist/esm/plugins/card/ui/EditorSmartCardEventsNext.js +0 -202
  282. package/dist/esm/plugins/card/ui/HyperlinkToolbarAppearance.js +0 -163
  283. package/dist/esm/plugins/card/ui/LayoutButton/index.js +0 -102
  284. package/dist/esm/plugins/card/ui/LayoutButton/styled.js +0 -10
  285. package/dist/esm/plugins/card/ui/LayoutButton/types.js +0 -1
  286. package/dist/esm/plugins/card/ui/LayoutButton/utils.js +0 -12
  287. package/dist/esm/plugins/card/ui/LinkToolbarAppearance.js +0 -140
  288. package/dist/esm/plugins/card/ui/ResizableEmbedCard.js +0 -355
  289. package/dist/esm/plugins/card/ui/SmallerEditIcon.js +0 -11
  290. package/dist/esm/plugins/card/utils.js +0 -48
  291. package/dist/types/plugins/card/index.d.ts +0 -26
  292. package/dist/types/plugins/card/messages.d.ts +0 -12
  293. package/dist/types/plugins/card/nodeviews/blockCard.d.ts +0 -26
  294. package/dist/types/plugins/card/nodeviews/datasource.d.ts +0 -42
  295. package/dist/types/plugins/card/nodeviews/embedCard.d.ts +0 -46
  296. package/dist/types/plugins/card/nodeviews/genericCard.d.ts +0 -37
  297. package/dist/types/plugins/card/nodeviews/inlineCard.d.ts +0 -23
  298. package/dist/types/plugins/card/pm-plugins/actions.d.ts +0 -23
  299. package/dist/types/plugins/card/pm-plugins/analytics/create-analytics-queue.d.ts +0 -10
  300. package/dist/types/plugins/card/pm-plugins/analytics/events-from-tr.d.ts +0 -17
  301. package/dist/types/plugins/card/pm-plugins/analytics/index.d.ts +0 -2
  302. package/dist/types/plugins/card/pm-plugins/analytics/types.d.ts +0 -12
  303. package/dist/types/plugins/card/pm-plugins/analytics/utils.d.ts +0 -32
  304. package/dist/types/plugins/card/pm-plugins/doc.d.ts +0 -23
  305. package/dist/types/plugins/card/pm-plugins/keymap.d.ts +0 -3
  306. package/dist/types/plugins/card/pm-plugins/main.d.ts +0 -6
  307. package/dist/types/plugins/card/pm-plugins/mountHyperlink.d.ts +0 -5
  308. package/dist/types/plugins/card/pm-plugins/plugin-key.d.ts +0 -3
  309. package/dist/types/plugins/card/pm-plugins/reducers.d.ts +0 -3
  310. package/dist/types/plugins/card/pm-plugins/shouldReplaceLink.d.ts +0 -2
  311. package/dist/types/plugins/card/pm-plugins/util/resolve.d.ts +0 -8
  312. package/dist/types/plugins/card/pm-plugins/util/state.d.ts +0 -31
  313. package/dist/types/plugins/card/toolbar.d.ts +0 -12
  314. package/dist/types/plugins/card/types.d.ts +0 -165
  315. package/dist/types/plugins/card/ui/DatasourceModal/ModalWithState.d.ts +0 -9
  316. package/dist/types/plugins/card/ui/DatasourceModal/index.d.ts +0 -11
  317. package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +0 -47
  318. package/dist/types/plugins/card/ui/EditorSmartCardEvents.d.ts +0 -5
  319. package/dist/types/plugins/card/ui/EditorSmartCardEventsNext.d.ts +0 -18
  320. package/dist/types/plugins/card/ui/HyperlinkToolbarAppearance.d.ts +0 -32
  321. package/dist/types/plugins/card/ui/LayoutButton/index.d.ts +0 -9
  322. package/dist/types/plugins/card/ui/LayoutButton/styled.d.ts +0 -1
  323. package/dist/types/plugins/card/ui/LayoutButton/types.d.ts +0 -19
  324. package/dist/types/plugins/card/ui/LayoutButton/utils.d.ts +0 -5
  325. package/dist/types/plugins/card/ui/LinkToolbarAppearance.d.ts +0 -29
  326. package/dist/types/plugins/card/ui/ResizableEmbedCard.d.ts +0 -61
  327. package/dist/types/plugins/card/ui/SmallerEditIcon.d.ts +0 -3
  328. package/dist/types/plugins/card/utils.d.ts +0 -19
  329. package/dist/types-ts4.5/plugins/card/index.d.ts +0 -26
  330. package/dist/types-ts4.5/plugins/card/messages.d.ts +0 -12
  331. package/dist/types-ts4.5/plugins/card/nodeviews/blockCard.d.ts +0 -26
  332. package/dist/types-ts4.5/plugins/card/nodeviews/datasource.d.ts +0 -42
  333. package/dist/types-ts4.5/plugins/card/nodeviews/embedCard.d.ts +0 -46
  334. package/dist/types-ts4.5/plugins/card/nodeviews/genericCard.d.ts +0 -37
  335. package/dist/types-ts4.5/plugins/card/nodeviews/inlineCard.d.ts +0 -23
  336. package/dist/types-ts4.5/plugins/card/pm-plugins/actions.d.ts +0 -23
  337. package/dist/types-ts4.5/plugins/card/pm-plugins/analytics/create-analytics-queue.d.ts +0 -10
  338. package/dist/types-ts4.5/plugins/card/pm-plugins/analytics/events-from-tr.d.ts +0 -17
  339. package/dist/types-ts4.5/plugins/card/pm-plugins/analytics/index.d.ts +0 -2
  340. package/dist/types-ts4.5/plugins/card/pm-plugins/analytics/types.d.ts +0 -12
  341. package/dist/types-ts4.5/plugins/card/pm-plugins/analytics/utils.d.ts +0 -32
  342. package/dist/types-ts4.5/plugins/card/pm-plugins/doc.d.ts +0 -23
  343. package/dist/types-ts4.5/plugins/card/pm-plugins/keymap.d.ts +0 -3
  344. package/dist/types-ts4.5/plugins/card/pm-plugins/main.d.ts +0 -6
  345. package/dist/types-ts4.5/plugins/card/pm-plugins/mountHyperlink.d.ts +0 -5
  346. package/dist/types-ts4.5/plugins/card/pm-plugins/plugin-key.d.ts +0 -3
  347. package/dist/types-ts4.5/plugins/card/pm-plugins/reducers.d.ts +0 -3
  348. package/dist/types-ts4.5/plugins/card/pm-plugins/shouldReplaceLink.d.ts +0 -2
  349. package/dist/types-ts4.5/plugins/card/pm-plugins/util/resolve.d.ts +0 -8
  350. package/dist/types-ts4.5/plugins/card/pm-plugins/util/state.d.ts +0 -31
  351. package/dist/types-ts4.5/plugins/card/toolbar.d.ts +0 -12
  352. package/dist/types-ts4.5/plugins/card/types.d.ts +0 -165
  353. package/dist/types-ts4.5/plugins/card/ui/DatasourceModal/ModalWithState.d.ts +0 -9
  354. package/dist/types-ts4.5/plugins/card/ui/DatasourceModal/index.d.ts +0 -11
  355. package/dist/types-ts4.5/plugins/card/ui/EditLinkToolbar.d.ts +0 -47
  356. package/dist/types-ts4.5/plugins/card/ui/EditorSmartCardEvents.d.ts +0 -5
  357. package/dist/types-ts4.5/plugins/card/ui/EditorSmartCardEventsNext.d.ts +0 -18
  358. package/dist/types-ts4.5/plugins/card/ui/HyperlinkToolbarAppearance.d.ts +0 -32
  359. package/dist/types-ts4.5/plugins/card/ui/LayoutButton/index.d.ts +0 -9
  360. package/dist/types-ts4.5/plugins/card/ui/LayoutButton/styled.d.ts +0 -1
  361. package/dist/types-ts4.5/plugins/card/ui/LayoutButton/types.d.ts +0 -19
  362. package/dist/types-ts4.5/plugins/card/ui/LayoutButton/utils.d.ts +0 -5
  363. package/dist/types-ts4.5/plugins/card/ui/LinkToolbarAppearance.d.ts +0 -29
  364. package/dist/types-ts4.5/plugins/card/ui/ResizableEmbedCard.d.ts +0 -61
  365. package/dist/types-ts4.5/plugins/card/ui/SmallerEditIcon.d.ts +0 -3
  366. package/dist/types-ts4.5/plugins/card/utils.d.ts +0 -19
@@ -0,0 +1,2307 @@
1
+ ## API Report File for "@atlaskit/editor-core"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ /// <reference types="node" />
8
+ /// <reference types="react" />
9
+
10
+ import { AbstractMentionResource } from '@atlaskit/mention/resource';
11
+ import { ACTION } from '@atlaskit/editor-common/analytics';
12
+ import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
13
+ import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
14
+ import { ActivityProvider } from '@atlaskit/activity-provider';
15
+ import { AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
16
+ import { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
17
+ import { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit/analytics-next/AnalyticsEvent';
18
+ import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
19
+ import { AnnotationTypes } from '@atlaskit/adf-schema';
20
+ import { BrowserFreezetracking } from '@atlaskit/editor-common/types';
21
+ import { CardOptions } from '@atlaskit/editor-common/card';
22
+ import { CardProvider } from '@atlaskit/editor-common/provider-factory';
23
+ import { Color } from '@atlaskit/status/element';
24
+ import { Command as Command_2 } from '@atlaskit/editor-common/types';
25
+ import { ComponentType } from 'react';
26
+ import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
27
+ import { ContextUpdateHandler } from '@atlaskit/editor-common/types';
28
+ import { createTable } from '@atlaskit/editor-plugin-table/commands';
29
+ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
30
+ import { CreateUIAnalyticsEvent as CreateUIAnalyticsEvent_2 } from '@atlaskit/analytics-next/types';
31
+ import { darkModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
32
+ import { DecorationSet } from 'prosemirror-view';
33
+ import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
34
+ import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
35
+ import { DirectEditorProps } from 'prosemirror-view';
36
+ import { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
37
+ import { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
38
+ import { DropdownOptionT } from '@atlaskit/editor-common/types';
39
+ import { EditorActionsOptions } from '@atlaskit/editor-common/types';
40
+ import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
41
+ import { EditorAppearance } from '@atlaskit/editor-common/types';
42
+ import { FeatureFlags as EditorFeatureFlags } from '@atlaskit/editor-common/types';
43
+ import { EditorPlugin } from '@atlaskit/editor-common/types';
44
+ import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
45
+ import { EditorReactContext } from '@atlaskit/editor-common/types';
46
+ import { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
47
+ import { EditorState } from 'prosemirror-state';
48
+ import { EditorView } from 'prosemirror-view';
49
+ import { EmojiResource } from '@atlaskit/emoji/resource';
50
+ import { EmptyStateHandler } from '@atlaskit/editor-common/types';
51
+ import { ErrorReporter } from '@atlaskit/editor-common/utils';
52
+ import type { ErrorReportingHandler } from '@atlaskit/editor-common/utils';
53
+ import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
54
+ import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
55
+ import { EventEmitter as EventEmitter_2 } from 'events';
56
+ import { ExperienceStore } from '@atlaskit/editor-common/ufo';
57
+ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
58
+ import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
59
+ import { ExtensionType } from '@atlaskit/editor-common/provider-factory';
60
+ import { FC } from 'react';
61
+ import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
62
+ import { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
63
+ import { FloatingToolbarButton } from '@atlaskit/editor-common/types';
64
+ import { FloatingToolbarColorPicker } from '@atlaskit/editor-common/types';
65
+ import { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
66
+ import { FloatingToolbarDatePicker } from '@atlaskit/editor-common/types';
67
+ import { FloatingToolbarDropdown } from '@atlaskit/editor-common/types';
68
+ import { FloatingToolbarEmojiPicker } from '@atlaskit/editor-common/types';
69
+ import { FloatingToolbarInput } from '@atlaskit/editor-common/types';
70
+ import { FloatingToolbarItem } from '@atlaskit/editor-common/types';
71
+ import { FloatingToolbarListPicker } from '@atlaskit/editor-common/types';
72
+ import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
73
+ import { FloatingToolbarSelect } from '@atlaskit/editor-common/types';
74
+ import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
75
+ import { GapCursorSelection } from '@atlaskit/editor-common/selection';
76
+ import { Side as GapCursorSide } from '@atlaskit/editor-common/selection';
77
+ import { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
78
+ import type { gridPlugin } from '@atlaskit/editor-plugin-grid';
79
+ import { HeadingLevelsAndNormalText } from '@atlaskit/editor-common/types';
80
+ import { InsertStatus as HyperlinkInsertStatus } from '@atlaskit/editor-common/link';
81
+ import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
82
+ import { HyperlinkState } from '@atlaskit/editor-common/link';
83
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
84
+ import { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
85
+ import { InputTracking } from '@atlaskit/editor-common/types';
86
+ import { IntlShape } from 'react-intl-next';
87
+ import { isLinkAtPos } from '@atlaskit/editor-common/link';
88
+ import { isTextAtPos } from '@atlaskit/editor-common/link';
89
+ import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
90
+ import { jsx } from '@emotion/react';
91
+ import { lightModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
92
+ import type { LinkingOptions } from '@atlaskit/editor-common/types';
93
+ import type { LinkInputType } from '@atlaskit/editor-common/types';
94
+ import { MacroAttributes } from '@atlaskit/editor-common/provider-factory';
95
+ import { MacroProvider } from '@atlaskit/editor-common/provider-factory';
96
+ import { MarkConfig } from '@atlaskit/editor-common/types';
97
+ import { MediaClientConfig } from '@atlaskit/media-core';
98
+ import { MediaFeatureFlags } from '@atlaskit/media-common';
99
+ import { MediaFeatureFlags as MediaFeatureFlags_2 } from '@atlaskit/media-common/mediaFeatureFlags';
100
+ import { MediaFile } from '@atlaskit/media-picker/types';
101
+ import { MediaProvider as MediaProvider_2 } from '@atlaskit/editor-common/provider-factory';
102
+ import type { MentionDescription } from '@atlaskit/mention';
103
+ import { MentionProvider } from '@atlaskit/mention/resource';
104
+ import type { MentionProvider as MentionProvider_2 } from '@atlaskit/mention';
105
+ import { MentionResource } from '@atlaskit/mention/resource';
106
+ import { MenuItem } from '@atlaskit/editor-common/ui-menu';
107
+ import { default as messages } from '@atlaskit/editor-common/messages';
108
+ import { NextEditorPlugin } from '@atlaskit/editor-common/types';
109
+ import { Node as Node_2 } from 'prosemirror-model';
110
+ import { NodeConfig } from '@atlaskit/editor-common/types';
111
+ import { NodeType } from 'prosemirror-model';
112
+ import { NodeView } from 'prosemirror-view';
113
+ import { OptionalPlugin } from '@atlaskit/editor-common/types';
114
+ import { PaletteColor } from '@atlaskit/editor-common/ui-color';
115
+ import { PerformanceTracking } from '@atlaskit/editor-common/types';
116
+ import { PluginConfig } from '@atlaskit/editor-plugin-table/types';
117
+ import { PluginKey } from 'prosemirror-state';
118
+ import { PMPlugin } from '@atlaskit/editor-common/types';
119
+ import { PortalProvider } from '@atlaskit/editor-common/portal-provider';
120
+ import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
121
+ import { PortalRenderer } from '@atlaskit/editor-common/portal-provider';
122
+ import { PositionType } from '@atlaskit/tooltip/types';
123
+ import { PresenceProvider } from '@atlaskit/mention/resource';
124
+ import { PresenceResource } from '@atlaskit/mention/resource';
125
+ import PropTypes from 'prop-types';
126
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
127
+ import { Providers } from '@atlaskit/editor-common/provider-factory';
128
+ import { PureComponent } from 'react';
129
+ import { QuickInsertActionInsert } from '@atlaskit/editor-common/provider-factory';
130
+ import { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
131
+ import { QuickInsertItemId } from '@atlaskit/editor-common/provider-factory';
132
+ import { QuickInsertProvider } from '@atlaskit/editor-common/provider-factory';
133
+ import { default as React_2 } from 'react';
134
+ import { ReactElement } from 'react';
135
+ import type { ReactHookFactory } from '@atlaskit/editor-common/types';
136
+ import { RefObject } from 'react';
137
+ import { ReplaceRawValue } from '@atlaskit/editor-common/types';
138
+ import type { ResolvedEditorState } from '@atlaskit/collab-provider';
139
+ import { RichMediaLayout } from '@atlaskit/adf-schema';
140
+ import { Schema } from 'prosemirror-model';
141
+ import type { SearchProvider } from '@atlaskit/editor-common/provider-factory';
142
+ import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
143
+ import type { SelectOption } from '@atlaskit/editor-common/types';
144
+ import { setTextSelection } from '@atlaskit/editor-common/utils';
145
+ import { SEVERITY } from '@atlaskit/editor-common/utils';
146
+ import { TaskDecisionProvider } from '@atlaskit/task-decision';
147
+ import { TeamMentionResource } from '@atlaskit/mention/team-resource';
148
+ import { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
149
+ import { Transaction } from 'prosemirror-state';
150
+ import { TransactionTracking } from '@atlaskit/editor-common/types';
151
+ import { Transformer as Transformer_2 } from '@atlaskit/editor-common/types';
152
+ import type { TypeAheadHandler } from '@atlaskit/editor-common/types';
153
+ import type { TypeAheadItem } from '@atlaskit/editor-common/types';
154
+ import type { TypeAheadItem as TypeAheadItem_2 } from '@atlaskit/editor-common/provider-factory';
155
+ import type { TypeAheadStats } from '@atlaskit/editor-common/types';
156
+ import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
157
+ import { UIComponentFactory } from '@atlaskit/editor-common/types';
158
+ import { UploadEndEventPayload } from '@atlaskit/media-picker/types';
159
+ import { UploadErrorEventPayload } from '@atlaskit/media-picker/types';
160
+ import { UploadParams } from '@atlaskit/media-picker/types';
161
+ import { UploadPreviewUpdateEventPayload } from '@atlaskit/media-picker/types';
162
+ import type { WeekDay } from '@atlaskit/calendar/types';
163
+ import type { widthPlugin } from '@atlaskit/editor-plugin-width';
164
+ import { WithIntlProps } from 'react-intl-next';
165
+ import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
166
+ import { WrappedComponentProps } from 'react-intl-next';
167
+
168
+ export { AbstractMentionResource }
169
+
170
+ export { ACTION }
171
+
172
+ export { ACTION_SUBJECT }
173
+
174
+ export { ACTION_SUBJECT_ID }
175
+
176
+ // @public (undocumented)
177
+ type AddItemTransactionCreator = (opts: {
178
+ state: EditorState;
179
+ tr: Transaction;
180
+ list: NodeType;
181
+ item: NodeType;
182
+ listLocalId: string;
183
+ itemLocalId: string;
184
+ }) => Transaction | null;
185
+
186
+ // @public (undocumented)
187
+ type AllowedBlockTypes = 'blockquote' | 'codeBlock' | 'hardBreak' | 'heading';
188
+
189
+ // @public (undocumented)
190
+ interface AllSelectionData {
191
+ // (undocumented)
192
+ type: 'all';
193
+ }
194
+
195
+ export { AnalyticsEventPayload }
196
+
197
+ // @public (undocumented)
198
+ type AnnotationComponentProps = {
199
+ textSelection?: string;
200
+ dom?: HTMLElement;
201
+ onClose?: () => void;
202
+ };
203
+
204
+ // @public (undocumented)
205
+ export type AnnotationInfo = {
206
+ id: string;
207
+ type: AnnotationTypes.INLINE_COMMENT;
208
+ };
209
+
210
+ // @public (undocumented)
211
+ export interface AnnotationProviders {
212
+ // (undocumented)
213
+ inlineComment: InlineCommentAnnotationProvider;
214
+ }
215
+
216
+ // @public (undocumented)
217
+ export interface AnnotationState<Type, State> {
218
+ // (undocumented)
219
+ annotationType: Type;
220
+ // (undocumented)
221
+ id: string;
222
+ // (undocumented)
223
+ state: State;
224
+ }
225
+
226
+ // @public (undocumented)
227
+ export interface AnnotationTypeProvider<Type, State> {
228
+ // (undocumented)
229
+ disallowOnWhitespace?: boolean;
230
+ // (undocumented)
231
+ getState: (annotationIds: string[]) => Promise<AnnotationState<Type, State>[]>;
232
+ // (undocumented)
233
+ updateSubscriber?: AnnotationUpdateEmitter;
234
+ }
235
+
236
+ // @public (undocumented)
237
+ export class AnnotationUpdateEmitter extends EventEmitter_2 {
238
+ // (undocumented)
239
+ on(event: VisibilityEvent, listener: (isVisible: boolean) => void): this;
240
+ // (undocumented)
241
+ on(event: UpdateEvent, listener: (annotationId: string) => void): this;
242
+ }
243
+
244
+ // @public (undocumented)
245
+ interface BasePluginOptions {
246
+ // (undocumented)
247
+ allowInlineCursorTarget?: boolean;
248
+ // (undocumented)
249
+ allowScrollGutter?: ScrollGutterPluginOptions;
250
+ // (undocumented)
251
+ browserFreezeTracking?: BrowserFreezetracking;
252
+ // (undocumented)
253
+ inputTracking?: InputTracking;
254
+ // (undocumented)
255
+ ufo?: boolean;
256
+ }
257
+
258
+ // @public (undocumented)
259
+ export class BaseReactEditorView<T = {}> extends ReactEditorView_2<T> {
260
+ }
261
+
262
+ // @public (undocumented)
263
+ type BeforeAndAfterToolbarComponents = {
264
+ before: ReactComponents;
265
+ after: ReactComponents;
266
+ };
267
+
268
+ // @public (undocumented)
269
+ export const blockPluginStateKey: PluginKey<BlockTypeState>;
270
+
271
+ // @public (undocumented)
272
+ interface BlockType {
273
+ // (undocumented)
274
+ level?: HeadingLevelsAndNormalText;
275
+ // (undocumented)
276
+ name: string;
277
+ // (undocumented)
278
+ nodeName: string;
279
+ // (undocumented)
280
+ tagName?: string;
281
+ // (undocumented)
282
+ title: MessageDescriptor;
283
+ }
284
+
285
+ // @public (undocumented)
286
+ export type BlockTypeInputMethod = INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR;
287
+
288
+ // @public (undocumented)
289
+ interface BlockTypePluginOptions {
290
+ // (undocumented)
291
+ allowBlockType?: {
292
+ exclude?: Array<AllowedBlockTypes>;
293
+ };
294
+ // (undocumented)
295
+ isUndoRedoButtonsEnabled?: boolean;
296
+ // (undocumented)
297
+ lastNodeMustBeParagraph?: boolean;
298
+ }
299
+
300
+ // @public (undocumented)
301
+ export type BlockTypeState = {
302
+ currentBlockType: BlockType;
303
+ blockTypesDisabled: boolean;
304
+ availableBlockTypes: BlockType[];
305
+ availableWrapperBlockTypes: BlockType[];
306
+ };
307
+
308
+ export { CardProvider }
309
+
310
+ // @public (undocumented)
311
+ interface CellSelectionData {
312
+ // (undocumented)
313
+ anchor: number;
314
+ // (undocumented)
315
+ head: number;
316
+ // (undocumented)
317
+ type: 'cell';
318
+ }
319
+
320
+ // @public (undocumented)
321
+ export const changeColor: (color: string) => Command;
322
+
323
+ // @public (undocumented)
324
+ export const clearEditorContent: Command;
325
+
326
+ // @public (undocumented)
327
+ type CloseOptions = {
328
+ insertCurrentQueryAsRawText: boolean;
329
+ attachCommand?: Command;
330
+ };
331
+
332
+ // @public (undocumented)
333
+ interface CodeBlockOptions extends LongPressSelectionPluginOptions {
334
+ // (undocumented)
335
+ allowCompositionInputOverride?: boolean;
336
+ // (undocumented)
337
+ allowCopyToClipboard?: boolean;
338
+ // (undocumented)
339
+ appearance?: EditorAppearance | undefined;
340
+ }
341
+
342
+ // @public (undocumented)
343
+ interface CollabAnalyticsProps {
344
+ EXPERIMENTAL_allowInternalErrorAnalytics?: boolean;
345
+ }
346
+
347
+ // @public (undocumented)
348
+ type CollabEditOptions = {
349
+ provider?: Providers['collabEditProvider'];
350
+ userId?: string;
351
+ useNativePlugin?: boolean;
352
+ } & CollabInviteToEditProps & CollabAnalyticsProps;
353
+
354
+ // @public (undocumented)
355
+ interface CollabInviteToEditProps {
356
+ // (undocumented)
357
+ inviteToEditComponent?: React.ComponentType<InviteToEditComponentProps>;
358
+ // (undocumented)
359
+ inviteToEditHandler?: (event: React.MouseEvent<HTMLElement>) => void;
360
+ // (undocumented)
361
+ isInviteToEditButtonSelected?: boolean;
362
+ }
363
+
364
+ // @public (undocumented)
365
+ export class CollapsedEditor extends React_2.Component<Props, State> {
366
+ // (undocumented)
367
+ componentDidUpdate(): void;
368
+ // (undocumented)
369
+ editorComponent?: Editor | EditorNext;
370
+ // (undocumented)
371
+ handleEditorRef: (editorRef?: Editor, editorRefCallback?: any) => void;
372
+ // (undocumented)
373
+ previouslyExpanded?: boolean;
374
+ // (undocumented)
375
+ render(): JSX.Element;
376
+ }
377
+
378
+ // @public (undocumented)
379
+ export type Command = (state: EditorState, dispatch?: CommandDispatch, view?: EditorView) => boolean;
380
+
381
+ // @public (undocumented)
382
+ export type CommandDispatch = (tr: Transaction) => void;
383
+
384
+ // @public (undocumented)
385
+ export const commitStatusPicker: () => (editorView: EditorView) => void;
386
+
387
+ // @public (undocumented)
388
+ type ConfigWithNodeInfo = {
389
+ config: FloatingToolbarConfig | undefined;
390
+ pos: number;
391
+ node: Node_2;
392
+ };
393
+
394
+ // @public (undocumented)
395
+ type Context = {
396
+ editorActions?: EditorActions;
397
+ intl: IntlShape;
398
+ };
399
+
400
+ // @public (undocumented)
401
+ export function ContextPanel(props: Props_4): jsx.JSX.Element;
402
+
403
+ // @public (undocumented)
404
+ interface CreateEditorStateOptions {
405
+ // (undocumented)
406
+ context: EditorReactContext;
407
+ // (undocumented)
408
+ doc?: Object | Node_2 | string;
409
+ // (undocumented)
410
+ props: EditorViewProps;
411
+ // (undocumented)
412
+ resetting?: boolean;
413
+ // (undocumented)
414
+ selectionAtStart?: boolean;
415
+ }
416
+
417
+ // @public (undocumented)
418
+ export const createQuickInsertTools: (editorView: EditorView) => {
419
+ getItems: (query: string, options?: QuickInsertPluginOptions) => QuickInsertItem[];
420
+ };
421
+
422
+ export { createTable }
423
+
424
+ // @public (undocumented)
425
+ export const createTypeAheadTools: (editorView: EditorView) => {
426
+ isOpen: () => TypeAheadHandler | false;
427
+ currentQuery: () => string | undefined;
428
+ close: (options?: CloseOptions) => boolean;
429
+ openMention: (inputMethod: TypeAheadInputMethod) => boolean;
430
+ searchMention: (query?: string) => {
431
+ type: (appendValue: string) => Promise<TypeAheadItem_2[]> | undefined;
432
+ result: () => Promise<TypeAheadItem_2[] | undefined>;
433
+ close: (options?: CloseOptions) => boolean;
434
+ insert: ({ index, mode }: {
435
+ index: number;
436
+ mode?: SelectItemMode | undefined;
437
+ }) => Promise<void>;
438
+ };
439
+ openQuickInsert: (inputMethod: TypeAheadInputMethod) => boolean;
440
+ searchQuickInsert: (query?: string) => {
441
+ type: (appendValue: string) => Promise<TypeAheadItem_2[]> | undefined;
442
+ result: () => Promise<TypeAheadItem_2[] | undefined>;
443
+ close: (options?: CloseOptions) => boolean;
444
+ insert: ({ index, mode }: {
445
+ index: number;
446
+ mode?: SelectItemMode | undefined;
447
+ }) => Promise<void>;
448
+ };
449
+ openEmoji: (inputMethod: TypeAheadInputMethod) => boolean;
450
+ searchEmoji: (query?: string) => {
451
+ type: (appendValue: string) => Promise<TypeAheadItem_2[]> | undefined;
452
+ result: () => Promise<TypeAheadItem_2[] | undefined>;
453
+ close: (options?: CloseOptions) => boolean;
454
+ insert: ({ index, mode }: {
455
+ index: number;
456
+ mode?: SelectItemMode | undefined;
457
+ }) => Promise<void>;
458
+ };
459
+ insertItemMention: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
460
+ insertItemEmoji: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
461
+ insertItemQuickInsert: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
462
+ };
463
+
464
+ // @public (undocumented)
465
+ export interface CustomMediaPicker {
466
+ // (undocumented)
467
+ destroy(): void;
468
+ // (undocumented)
469
+ emit(event: string, data: any): void;
470
+ // (undocumented)
471
+ on(event: string, cb: Listener): void;
472
+ // (undocumented)
473
+ removeAllListeners(event: any): void;
474
+ // (undocumented)
475
+ setUploadParams(uploadParams: UploadParams): void;
476
+ }
477
+
478
+ export { darkModeStatusColorPalette }
479
+
480
+ // @public (undocumented)
481
+ export const dateMessages: {
482
+ editText: {
483
+ id: string;
484
+ defaultMessage: string;
485
+ description: string;
486
+ };
487
+ };
488
+
489
+ // @public (undocumented)
490
+ interface DatePluginConfig {
491
+ // (undocumented)
492
+ weekStartDay?: WeekDay;
493
+ }
494
+
495
+ // @public (undocumented)
496
+ export const datePluginKey: PluginKey<DatePluginState>;
497
+
498
+ // @public (undocumented)
499
+ export type DatePluginState = {
500
+ isQuickInsertAction?: boolean;
501
+ isNew: boolean;
502
+ showDatePickerAt: null | number;
503
+ isDateEmpty: boolean;
504
+ focusDateInput: boolean;
505
+ };
506
+
507
+ // @public
508
+ export function dateToDateType(date: Date): DateType;
509
+
510
+ // @public (undocumented)
511
+ type DateType = {
512
+ year: number;
513
+ month: number;
514
+ day?: number;
515
+ };
516
+
517
+ // @public (undocumented)
518
+ export function dedupe<T>(list?: T[], iteratee?: (p: T) => T | T[keyof T]): T[];
519
+
520
+ export { DEFAULT_BORDER_COLOR }
521
+
522
+ // @public (undocumented)
523
+ type DefaultPresetPluginOptions = {
524
+ paste: PastePluginOptions;
525
+ base?: BasePluginOptions;
526
+ blockType?: BlockTypePluginOptions;
527
+ placeholder?: PlaceholderPluginOptions;
528
+ textFormatting?: TextFormattingOptions;
529
+ submitEditor?: EditorProps_2['onSave'];
530
+ annotationProviders?: AnnotationProviders;
531
+ quickInsert?: QuickInsertPluginOptions;
532
+ codeBlock?: CodeBlockOptions;
533
+ selection?: SelectionPluginOptions;
534
+ cardOptions?: CardOptions;
535
+ hyperlinkOptions?: HyperlinkPluginOptions;
536
+ createAnalyticsEvent?: CreateUIAnalyticsEvent;
537
+ typeAhead?: TypeAheadPluginOptions;
538
+ allowAnalyticsGASV3?: boolean;
539
+ performanceTracking?: EditorProps['performanceTracking'];
540
+ };
541
+
542
+ // @public
543
+ export const deleteDate: () => Command;
544
+
545
+ export { DropdownOptionT }
546
+
547
+ // @public (undocumented)
548
+ export class Editor extends React_2.Component<EditorProps> {
549
+ // (undocumented)
550
+ static defaultProps: EditorProps;
551
+ // (undocumented)
552
+ render(): jsx.JSX.Element;
553
+ }
554
+
555
+ // @public (undocumented)
556
+ export class EditorActions<T = any> implements EditorActionsOptions<T> {
557
+ // (undocumented)
558
+ __temporaryFixForConfigPanel(): Promise<void>;
559
+ // (undocumented)
560
+ appendText(text: string): boolean;
561
+ // (undocumented)
562
+ blur(): boolean;
563
+ // (undocumented)
564
+ clear(): boolean;
565
+ // (undocumented)
566
+ dispatchAnalyticsEvent: (payload: AnalyticsEventPayload_2) => void;
567
+ // (undocumented)
568
+ focus(): boolean;
569
+ // (undocumented)
570
+ static from<T>(view: EditorView, eventDispatcher: EventDispatcher, transformer?: Transformer_2<T>): EditorActions<T>;
571
+ // (undocumented)
572
+ getNodeByFragmentLocalId(id: string): Node_2 | undefined;
573
+ // (undocumented)
574
+ getNodeByLocalId(id: string): Node_2 | undefined;
575
+ getResolvedEditorState: () => Promise<ResolvedEditorState | undefined>;
576
+ getSelectedNode(): Node_2 | undefined;
577
+ // (undocumented)
578
+ getValue(): Promise<T | JSONDocNode | undefined>;
579
+ // (undocumented)
580
+ isDocumentEmpty(): boolean;
581
+ // (undocumented)
582
+ _privateGetEditorView(): EditorView | undefined;
583
+ // (undocumented)
584
+ _privateGetEventDispatcher(): EventDispatcher | undefined;
585
+ // (undocumented)
586
+ _privateRegisterEditor(editorView: EditorView, eventDispatcher: EventDispatcher, contentTransformer?: Transformer_2<T>, getFeatureFlags?: () => EditorFeatureFlags): void;
587
+ // (undocumented)
588
+ _privateSubscribe(cb: ContextUpdateHandler): void;
589
+ // (undocumented)
590
+ _privateUnregisterEditor(): void;
591
+ // (undocumented)
592
+ _privateUnsubscribe(cb: ContextUpdateHandler): void;
593
+ // (undocumented)
594
+ replaceDocument(rawValue: any, shouldScrollToBottom?: boolean,
595
+ shouldAddToHistory?: boolean): boolean;
596
+ // (undocumented)
597
+ replaceSelection(rawValue: Array<ReplaceRawValue> | ReplaceRawValue, tryToReplace?: boolean): boolean;
598
+ }
599
+
600
+ // @public (undocumented)
601
+ interface EditorBaseProps {
602
+ // (undocumented)
603
+ appearance?: EditorAppearance;
604
+ // (undocumented)
605
+ assistiveLabel?: string;
606
+ // (undocumented)
607
+ codeBlock?: CodeBlockOptions;
608
+ // (undocumented)
609
+ contentComponents?: ReactComponents;
610
+ // (undocumented)
611
+ contentTransformerProvider?: (schema: Schema) => Transformer_2<string>;
612
+ // (undocumented)
613
+ contextPanel?: ReactComponents;
614
+ // (undocumented)
615
+ defaultValue?: Node_2 | Object | string;
616
+ // (undocumented)
617
+ disabled?: boolean;
618
+ // (undocumented)
619
+ editorActions?: EditorActions;
620
+ // (undocumented)
621
+ errorReporterHandler?: ErrorReportingHandler;
622
+ // (undocumented)
623
+ extensionProviders?: ExtensionProvidersProp;
624
+ featureFlags?: {
625
+ [featureFlag: string]: boolean | string;
626
+ };
627
+ // @deprecated
628
+ inputSamplingLimit?: number;
629
+ // (undocumented)
630
+ maxHeight?: number;
631
+ // (undocumented)
632
+ minHeight?: number;
633
+ // (undocumented)
634
+ onCancel?: (editorView: EditorView) => void;
635
+ // (undocumented)
636
+ onChange?: EditorOnChangeHandler;
637
+ // (undocumented)
638
+ onDestroy?: () => void;
639
+ // (undocumented)
640
+ onEditorReady?: (editorActions: EditorActions) => void;
641
+ // (undocumented)
642
+ persistScrollGutter?: boolean;
643
+ // (undocumented)
644
+ placeholder?: string;
645
+ // (undocumented)
646
+ placeholderBracketHint?: string;
647
+ // (undocumented)
648
+ popupsBoundariesElement?: HTMLElement;
649
+ // (undocumented)
650
+ popupsMountPoint?: HTMLElement;
651
+ // (undocumented)
652
+ popupsScrollableElement?: HTMLElement;
653
+ // (undocumented)
654
+ primaryToolbarIconBefore?: ReactElement;
655
+ // (undocumented)
656
+ quickInsert?: QuickInsertOptions;
657
+ // (undocumented)
658
+ secondaryToolbarComponents?: ReactComponents;
659
+ // (undocumented)
660
+ shouldFocus?: boolean;
661
+ // (undocumented)
662
+ textFormatting?: TextFormattingOptions;
663
+ trackValidTransactions?: boolean | {
664
+ samplingRate: number;
665
+ };
666
+ // (undocumented)
667
+ UNSAFE_useAnalyticsContext?: boolean;
668
+ useStickyToolbar?: UseStickyToolbarType;
669
+ }
670
+
671
+ // @public (undocumented)
672
+ interface EditorConfig {
673
+ // (undocumented)
674
+ contentComponents: UIComponentFactory[];
675
+ // (undocumented)
676
+ marks: MarkConfig[];
677
+ // (undocumented)
678
+ nodes: NodeConfig[];
679
+ // (undocumented)
680
+ onEditorViewStateUpdatedCallbacks: Array<{
681
+ pluginName: string;
682
+ callback: (props: EditorViewStateUpdatedCallbackProps) => void;
683
+ }>;
684
+ // (undocumented)
685
+ pluginHooks: ReactHookFactory[];
686
+ // (undocumented)
687
+ pmPlugins: Array<PMPlugin>;
688
+ // (undocumented)
689
+ primaryToolbarComponents: ToolbarUIComponentFactory[];
690
+ // (undocumented)
691
+ secondaryToolbarComponents: UIComponentFactory[];
692
+ }
693
+
694
+ // @public (undocumented)
695
+ export class EditorContext extends React_2.Component<EditorContextProps, {}> {
696
+ constructor(props: EditorContextProps);
697
+ // (undocumented)
698
+ static childContextTypes: {
699
+ editorActions: PropTypes.Requireable<object>;
700
+ };
701
+ // (undocumented)
702
+ getChildContext(): {
703
+ editorActions: EditorActions<any>;
704
+ };
705
+ // (undocumented)
706
+ render(): JSX.Element;
707
+ }
708
+
709
+ // @public (undocumented)
710
+ type EditorContextProps = {
711
+ editorActions?: EditorActions;
712
+ };
713
+
714
+ // @public (undocumented)
715
+ const editorDisabledPlugin: NextEditorPlugin<'editorDisabled', {
716
+ sharedState: EditorDisabledPluginState;
717
+ }>;
718
+
719
+ // @public (undocumented)
720
+ type EditorDisabledPluginState = {
721
+ editorDisabled: boolean;
722
+ };
723
+
724
+ export { EditorFeatureFlags }
725
+
726
+ // @public (undocumented)
727
+ export interface EditorInstance {
728
+ // (undocumented)
729
+ contentComponents: UIComponentFactory[];
730
+ // (undocumented)
731
+ contentTransformer?: Transformer<string>;
732
+ // (undocumented)
733
+ editorView: EditorView;
734
+ // (undocumented)
735
+ eventDispatcher: EventDispatcher;
736
+ // (undocumented)
737
+ insertMenuItems?: MenuItem[];
738
+ // (undocumented)
739
+ onEditorViewStateUpdatedCallbacks: {
740
+ pluginName: string;
741
+ callback: OnEditorViewStateUpdated;
742
+ }[];
743
+ // (undocumented)
744
+ primaryToolbarComponents: ToolbarUIComponentFactory[];
745
+ // (undocumented)
746
+ secondaryToolbarComponents: UIComponentFactory[];
747
+ }
748
+
749
+ // @public (undocumented)
750
+ class EditorNext extends React_2.Component<EditorNextProps> {
751
+ constructor(props: EditorNextProps, context: Context);
752
+ // (undocumented)
753
+ static contextTypes: {
754
+ editorActions: PropTypes.Requireable<object>;
755
+ };
756
+ // (undocumented)
757
+ static defaultProps: {
758
+ appearance: string;
759
+ disabled: boolean;
760
+ quickInsert: boolean;
761
+ };
762
+ // (undocumented)
763
+ static propTypes: {
764
+ preset: ({ preset }: Pick<EditorNextProps, 'preset'>) => Error | null;
765
+ minHeight: ({ appearance, minHeight, }: Pick<EditorProps, "appearance" | "minHeight">) => Error | null;
766
+ };
767
+ // (undocumented)
768
+ render(): jsx.JSX.Element;
769
+ }
770
+
771
+ // @public (undocumented)
772
+ interface EditorNextProps extends EditorBaseProps, EditorSharedPropsWithPlugins, EditorProviderProps {
773
+ // (undocumented)
774
+ preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
775
+ }
776
+
777
+ // @public (undocumented)
778
+ type EditorOnChangeHandler = (editorView: EditorView, meta: {
779
+ source: 'local' | 'remote';
780
+ }) => void;
781
+
782
+ export { EditorPlugin }
783
+
784
+ // @public (undocumented)
785
+ interface EditorPluginFeatureProps {
786
+ // (undocumented)
787
+ allowBlockType?: BlockTypePluginOptions['allowBlockType'];
788
+ // (undocumented)
789
+ allowBreakout?: boolean;
790
+ // (undocumented)
791
+ allowConfluenceInlineComment?: boolean;
792
+ // (undocumented)
793
+ allowDate?: DatePluginConfig | boolean;
794
+ // (undocumented)
795
+ allowExpand?: boolean | {
796
+ allowInsertion?: boolean;
797
+ allowInteractiveExpand?: boolean;
798
+ };
799
+ // (undocumented)
800
+ allowExtension?: ExtensionConfig | boolean;
801
+ // (undocumented)
802
+ allowFindReplace?: FindReplaceOptions | boolean;
803
+ allowFragmentMark?: boolean;
804
+ // (undocumented)
805
+ allowHelpDialog?: boolean;
806
+ // (undocumented)
807
+ allowIndentation?: boolean;
808
+ // (undocumented)
809
+ allowJiraIssue?: boolean;
810
+ // (undocumented)
811
+ allowLayouts?: LayoutPluginOptions | boolean;
812
+ // (undocumented)
813
+ allowNestedTasks?: boolean;
814
+ allowNewInsertionBehaviour?: boolean;
815
+ // (undocumented)
816
+ allowPanel?: PanelPluginConfig | boolean;
817
+ // (undocumented)
818
+ allowRule?: boolean;
819
+ // (undocumented)
820
+ allowStatus?: boolean | {
821
+ menuDisabled: boolean;
822
+ };
823
+ // (undocumented)
824
+ allowTasksAndDecisions?: boolean;
825
+ // (undocumented)
826
+ allowTemplatePlaceholders?: PlaceholderTextOptions | boolean;
827
+ // (undocumented)
828
+ allowTextAlignment?: boolean;
829
+ autoScrollIntoView?: boolean;
830
+ // (undocumented)
831
+ elementBrowser?: {
832
+ showModal?: boolean;
833
+ replacePlusMenu?: boolean;
834
+ helpUrl?: string;
835
+ emptyStateHandler?: EmptyStateHandler;
836
+ };
837
+ // (undocumented)
838
+ extensionHandlers?: ExtensionHandlers;
839
+ // (undocumented)
840
+ feedbackInfo?: FeedbackInfo;
841
+ // (undocumented)
842
+ maxContentSize?: number;
843
+ // (undocumented)
844
+ mention?: MentionPluginConfig;
845
+ // @deprecated
846
+ mentionInsertDisplayName?: boolean;
847
+ // (undocumented)
848
+ saveOnEnter?: boolean;
849
+ UNSAFE_allowBorderMark?: boolean;
850
+ // (undocumented)
851
+ uploadErrorHandler?: (state: MediaState) => void;
852
+ // (undocumented)
853
+ waitForMediaUpload?: boolean;
854
+ }
855
+
856
+ // @public (undocumented)
857
+ interface EditorPresetProps {
858
+ // (undocumented)
859
+ excludes?: Set<string>;
860
+ // (undocumented)
861
+ experimental?: Array<string>;
862
+ // (undocumented)
863
+ featureFlags?: EditorFeatureFlags;
864
+ }
865
+
866
+ // @public (undocumented)
867
+ type EditorProduct = 'bitbucket' | 'confluence' | 'jira' | 'stride' | undefined;
868
+
869
+ // @public (undocumented)
870
+ export interface EditorProps extends EditorBaseProps, EditorPluginFeatureProps, EditorSharedPropsWithPlugins, EditorProviderProps {
871
+ // @deprecated (undocumented)
872
+ dangerouslyAppendPlugins?: {
873
+ __plugins: EditorPlugin[];
874
+ };
875
+ }
876
+
877
+ // @public (undocumented)
878
+ type EditorProps_2 = {
879
+ plugins?: Array<EditorPlugin>;
880
+ transformer?: (schema: Schema) => Transformer_2<any>;
881
+ children?: React.ReactChild;
882
+ defaultValue?: object | string;
883
+ popupsMountPoint?: HTMLElement;
884
+ popupsBoundariesElement?: HTMLElement;
885
+ popupsScrollableElement?: HTMLElement;
886
+ disabled?: boolean;
887
+ placeholder?: string;
888
+ onAnalyticsEvent?: FireAnalyticsCallback;
889
+ onChange?: (value: any, meta: {
890
+ source: 'local' | 'remote';
891
+ }) => void;
892
+ onSave?: (value: any) => void;
893
+ onCancel?: (value: any) => void;
894
+ onMount?: (actions: EditorActions) => void;
895
+ onDestroy?: () => void;
896
+ };
897
+
898
+ // @public (undocumented)
899
+ interface EditorProviderProps {
900
+ // (undocumented)
901
+ activityProvider?: Promise<ActivityProvider>;
902
+ // (undocumented)
903
+ annotationProviders?: AnnotationProviders;
904
+ // (undocumented)
905
+ autoformattingProvider?: Providers['autoformattingProvider'];
906
+ // (undocumented)
907
+ collabEditProvider?: Providers['collabEditProvider'];
908
+ // (undocumented)
909
+ emojiProvider?: Providers['emojiProvider'];
910
+ // (undocumented)
911
+ legacyImageUploadProvider?: Providers['imageUploadProvider'];
912
+ // (undocumented)
913
+ macroProvider?: Providers['macroProvider'];
914
+ // (undocumented)
915
+ mentionProvider?: Promise<MentionProvider>;
916
+ // (undocumented)
917
+ presenceProvider?: Promise<any>;
918
+ // (undocumented)
919
+ searchProvider?: Promise<SearchProvider>;
920
+ // (undocumented)
921
+ taskDecisionProvider?: Promise<TaskDecisionProvider>;
922
+ }
923
+
924
+ // @public (undocumented)
925
+ interface EditorSharedPropsWithPlugins {
926
+ // (undocumented)
927
+ allowAnalyticsGASV3?: boolean;
928
+ // (undocumented)
929
+ allowTables?: PluginConfig | boolean;
930
+ // (undocumented)
931
+ allowTextColor?: TextColorPluginConfig | boolean;
932
+ // (undocumented)
933
+ allowUndoRedoButtons?: boolean;
934
+ // (undocumented)
935
+ collabEdit?: CollabEditOptions;
936
+ // (undocumented)
937
+ contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
938
+ // (undocumented)
939
+ insertMenuItems?: MenuItem[];
940
+ linking?: LinkingOptions;
941
+ // (undocumented)
942
+ media?: MediaOptions;
943
+ // (undocumented)
944
+ onSave?: (editorView: EditorView) => void;
945
+ performanceTracking?: PerformanceTracking;
946
+ // (undocumented)
947
+ primaryToolbarComponents?: PrimaryToolbarComponents;
948
+ // (undocumented)
949
+ sanitizePrivateContent?: boolean;
950
+ // @deprecated (undocumented)
951
+ smartLinks?: CardOptions;
952
+ // @deprecated (undocumented)
953
+ UNSAFE_cards?: CardOptions;
954
+ }
955
+
956
+ // @public (undocumented)
957
+ interface EditorViewProps {
958
+ // (undocumented)
959
+ allowAnalyticsGASV3?: boolean;
960
+ // (undocumented)
961
+ createAnalyticsEvent?: CreateUIAnalyticsEvent;
962
+ // (undocumented)
963
+ disabled?: boolean;
964
+ // (undocumented)
965
+ editorProps: EditorNextProps | EditorProps;
966
+ // (undocumented)
967
+ experienceStore?: ExperienceStore;
968
+ // (undocumented)
969
+ onEditorCreated: (instance: {
970
+ view: EditorView;
971
+ config: EditorConfig;
972
+ eventDispatcher: EventDispatcher;
973
+ transformer?: Transformer_2<string>;
974
+ }) => void;
975
+ // (undocumented)
976
+ onEditorDestroyed: (instance: {
977
+ view: EditorView;
978
+ config: EditorConfig;
979
+ eventDispatcher: EventDispatcher;
980
+ transformer?: Transformer_2<string>;
981
+ }) => void;
982
+ // (undocumented)
983
+ portalProviderAPI: PortalProviderAPI;
984
+ // (undocumented)
985
+ preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
986
+ // (undocumented)
987
+ providerFactory: ProviderFactory;
988
+ // (undocumented)
989
+ render?: (props: {
990
+ editor: JSX.Element;
991
+ view?: EditorView;
992
+ config: EditorConfig;
993
+ eventDispatcher: EventDispatcher;
994
+ transformer?: Transformer_2<string>;
995
+ dispatchAnalyticsEvent: DispatchAnalyticsEvent;
996
+ editorRef: React_2.RefObject<HTMLDivElement>;
997
+ }) => JSX.Element;
998
+ }
999
+
1000
+ // @public (undocumented)
1001
+ type EditorViewStateUpdatedCallbackProps = {
1002
+ readonly originalTransaction: Readonly<Transaction>;
1003
+ readonly transactions: readonly Transaction[];
1004
+ readonly oldEditorState: Readonly<EditorState>;
1005
+ readonly newEditorState: Readonly<EditorState>;
1006
+ };
1007
+
1008
+ export { EmojiResource }
1009
+
1010
+ export { EVENT_TYPE }
1011
+
1012
+ export { EventDispatcher }
1013
+
1014
+ // @public (undocumented)
1015
+ interface ExtensionConfig {
1016
+ // (undocumented)
1017
+ allowAutoSave?: boolean;
1018
+ // (undocumented)
1019
+ allowBreakout?: boolean;
1020
+ // (undocumented)
1021
+ allowExtendFloatingToolbars?: boolean;
1022
+ }
1023
+
1024
+ // @public (undocumented)
1025
+ type ExtensionProviders = (ExtensionProvider | Promise<ExtensionProvider>)[];
1026
+
1027
+ // @public (undocumented)
1028
+ type ExtensionProvidersProp = ExtensionProviders | ExtensionProvidersWithEditorAction;
1029
+
1030
+ // @public (undocumented)
1031
+ type ExtensionProvidersWithEditorAction = (editorActions?: EditorActions) => ExtensionProviders;
1032
+
1033
+ export { ExtensionType }
1034
+
1035
+ // @public (undocumented)
1036
+ type FeedbackInfo = {
1037
+ product?: string;
1038
+ packageVersion?: string;
1039
+ packageName?: string;
1040
+ labels?: Array<string>;
1041
+ sessionId?: string;
1042
+ contentId?: string;
1043
+ tabId?: string;
1044
+ };
1045
+
1046
+ // @public (undocumented)
1047
+ type FindReplaceOptions = {
1048
+ allowMatchCase?: boolean;
1049
+ };
1050
+
1051
+ export { FloatingToolbarButton }
1052
+
1053
+ export { FloatingToolbarColorPicker }
1054
+
1055
+ export { FloatingToolbarConfig }
1056
+
1057
+ export { FloatingToolbarDatePicker }
1058
+
1059
+ export { FloatingToolbarDropdown }
1060
+
1061
+ export { FloatingToolbarEmojiPicker }
1062
+
1063
+ export { FloatingToolbarInput }
1064
+
1065
+ export { FloatingToolbarItem }
1066
+
1067
+ export { FloatingToolbarListPicker }
1068
+
1069
+ // @public
1070
+ export const floatingToolbarPluginKey: PluginKey<FloatingToolbarPluginState>;
1071
+
1072
+ // @public (undocumented)
1073
+ export type FloatingToolbarPluginState = Record<'getConfigWithNodeInfo', (state: EditorState) => ConfigWithNodeInfo | null | undefined>;
1074
+
1075
+ export { FloatingToolbarSelect }
1076
+
1077
+ export { GapCursorSelection }
1078
+
1079
+ export { GapCursorSide }
1080
+
1081
+ // @public (undocumented)
1082
+ interface GapSelectionData {
1083
+ // (undocumented)
1084
+ pos: number;
1085
+ // (undocumented)
1086
+ type: 'gapcursor';
1087
+ }
1088
+
1089
+ // @public (undocumented)
1090
+ export function getDefaultPresetOptionsFromEditorProps(props: EditorProps, createAnalyticsEvent?: CreateUIAnalyticsEvent): EditorPresetProps & DefaultPresetPluginOptions & EditorPluginFeatureProps;
1091
+
1092
+ // @public (undocumented)
1093
+ export const getListCommands: () => {
1094
+ indentList: typeof indentList;
1095
+ outdentList: typeof outdentList;
1096
+ toggleOrderedList: typeof toggleOrderedList;
1097
+ toggleBulletList: typeof toggleBulletList;
1098
+ };
1099
+
1100
+ // @public (undocumented)
1101
+ export function getNodesCount(node: Node_2): Record<string, number>;
1102
+
1103
+ // @public (undocumented)
1104
+ type getPosHandler = boolean | getPosHandlerNode;
1105
+
1106
+ // @public (undocumented)
1107
+ type getPosHandlerNode = () => number | undefined;
1108
+
1109
+ // @public
1110
+ export function hasVisibleContent(node: Node_2): boolean;
1111
+
1112
+ // @public
1113
+ export const historyPluginKey: PluginKey<HistoryPluginState>;
1114
+
1115
+ // @public (undocumented)
1116
+ export interface HistoryPluginState {
1117
+ // (undocumented)
1118
+ canRedo: boolean;
1119
+ // (undocumented)
1120
+ canUndo: boolean;
1121
+ }
1122
+
1123
+ export { HyperlinkInsertStatus }
1124
+
1125
+ export { HyperlinkState }
1126
+
1127
+ // @public @deprecated (undocumented)
1128
+ export const hyperlinkStateKey: PluginKey<any>;
1129
+
1130
+ // @public (undocumented)
1131
+ function indentList(inputMethod?: InputMethod): Command;
1132
+
1133
+ // @public (undocumented)
1134
+ export type InlineCommentAnnotationProvider = AnnotationTypeProvider<AnnotationTypes.INLINE_COMMENT, InlineCommentState> & {
1135
+ createComponent?: React_2.ComponentType<InlineCommentCreateComponentProps>;
1136
+ viewComponent?: React_2.ComponentType<InlineCommentViewComponentProps>;
1137
+ isToolbarAbove?: boolean;
1138
+ };
1139
+
1140
+ // @public (undocumented)
1141
+ export type InlineCommentCreateComponentProps = AnnotationComponentProps & {
1142
+ onCreate: (id: string) => void;
1143
+ };
1144
+
1145
+ // @public (undocumented)
1146
+ export type InlineCommentState = {
1147
+ resolved: boolean;
1148
+ };
1149
+
1150
+ // @public (undocumented)
1151
+ export type InlineCommentViewComponentProps = AnnotationComponentProps & {
1152
+ annotations: Array<AnnotationInfo>;
1153
+ onResolve: (id: string) => void;
1154
+ onDelete?: (id: string) => void;
1155
+ };
1156
+
1157
+ export { INPUT_METHOD }
1158
+
1159
+ // @public (undocumented)
1160
+ type InputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
1161
+
1162
+ // @public (undocumented)
1163
+ type InputMethod_2 = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
1164
+
1165
+ // @public (undocumented)
1166
+ export type InsertBlockInputMethodToolbar = INPUT_METHOD.INSERT_MENU | INPUT_METHOD.TOOLBAR;
1167
+
1168
+ // @public (undocumented)
1169
+ export function insertBlockType(name: string): Command;
1170
+
1171
+ // @public (undocumented)
1172
+ export const insertBlockTypesWithAnalytics: (name: string, inputMethod: BlockTypeInputMethod, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command_2;
1173
+
1174
+ // @public (undocumented)
1175
+ export const insertDate: (date?: DateType, inputMethod?: InsertBlockInputMethodToolbar, commitMethod?: INPUT_METHOD.KEYBOARD | INPUT_METHOD.PICKER, enterPressed?: boolean) => Command;
1176
+
1177
+ // @public (undocumented)
1178
+ export const insertExpand: Command;
1179
+
1180
+ // @public (undocumented)
1181
+ export const insertHorizontalRule: (inputMethod: INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR, featureFlags: EditorFeatureFlags) => Command;
1182
+
1183
+ // @public (undocumented)
1184
+ type InsertItemProps = {
1185
+ contentItem: TypeAheadItem_2;
1186
+ query: string;
1187
+ sourceListItem: TypeAheadItem_2[];
1188
+ };
1189
+
1190
+ // @public @deprecated (undocumented)
1191
+ export function insertLink(from: number, to: number, incomingHref: string, incomingTitle?: string, displayText?: string, source?: LinkInputType, sourceEvent?: UIAnalyticsEvent | null | undefined): Command_2;
1192
+
1193
+ // @public @deprecated (undocumented)
1194
+ export const insertLinkWithAnalytics: (inputMethod: LinkInputType, from: number, to: number, href: string, title?: string, displayText?: string, cardsAvailable?: boolean, sourceEvent?: UIAnalyticsEvent | null | undefined) => Command_2;
1195
+
1196
+ // @public @deprecated (undocumented)
1197
+ export const insertLinkWithAnalyticsMobileNative: (inputMethod: LinkInputType, from: number, to: number, href: string, title?: string, displayText?: string) => Command;
1198
+
1199
+ // @public (undocumented)
1200
+ export const insertMediaSingleNode: (view: EditorView, mediaState: MediaState, inputMethod?: InputMethodInsertMedia, collection?: string, alignLeftOnInsert?: boolean, newInsertionBehaviour?: boolean) => boolean;
1201
+
1202
+ // @public (undocumented)
1203
+ export const insertTaskDecisionCommand: (listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | InsertBlockInputMethodToolbar, addItem?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string) => Command;
1204
+
1205
+ // @public (undocumented)
1206
+ type InviteToEditButtonProps = {
1207
+ onClick: (event: React.MouseEvent<HTMLElement>) => void;
1208
+ selected: boolean;
1209
+ };
1210
+
1211
+ // @public (undocumented)
1212
+ type InviteToEditComponentProps = {
1213
+ children: ReactElement<InviteToEditButtonProps>;
1214
+ };
1215
+
1216
+ export { isLinkAtPos }
1217
+
1218
+ export { isTextAtPos }
1219
+
1220
+ // @public (undocumented)
1221
+ interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
1222
+ // (undocumented)
1223
+ allowBreakout?: boolean;
1224
+ // (undocumented)
1225
+ UNSAFE_addSidebarLayouts?: boolean;
1226
+ // (undocumented)
1227
+ UNSAFE_allowSingleColumnLayout?: boolean;
1228
+ }
1229
+
1230
+ export { lightModeStatusColorPalette }
1231
+
1232
+ // @public (undocumented)
1233
+ type Listener = (data: any) => void;
1234
+
1235
+ // @public (undocumented)
1236
+ export type ListInputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
1237
+
1238
+ // @public (undocumented)
1239
+ export interface ListState {
1240
+ // (undocumented)
1241
+ bulletListActive: boolean;
1242
+ // (undocumented)
1243
+ bulletListDisabled: boolean;
1244
+ // (undocumented)
1245
+ decorationSet: DecorationSet;
1246
+ // (undocumented)
1247
+ orderedListActive: boolean;
1248
+ // (undocumented)
1249
+ orderedListDisabled: boolean;
1250
+ }
1251
+
1252
+ // @public (undocumented)
1253
+ export const listStateKey: PluginKey<ListState>;
1254
+
1255
+ // @public (undocumented)
1256
+ interface LongPressSelectionPluginOptions {
1257
+ // (undocumented)
1258
+ useLongPressSelection?: boolean;
1259
+ }
1260
+
1261
+ export { MacroAttributes }
1262
+
1263
+ export { MacroProvider }
1264
+
1265
+ // @public (undocumented)
1266
+ interface MeasureHelpers {
1267
+ // (undocumented)
1268
+ startMeasure: (measureName: string) => void;
1269
+ // (undocumented)
1270
+ stopMeasure: (measureName: string, onMeasureComplete?: (duration: number, startTime: number) => void) => void;
1271
+ }
1272
+
1273
+ // @public (undocumented)
1274
+ type MeasureListener = (entry: SimpleEntry) => void;
1275
+
1276
+ // @public (undocumented)
1277
+ export const measurements: {
1278
+ EDITOR_MOUNTED: string;
1279
+ PROSEMIRROR_RENDERED: string;
1280
+ PROSEMIRROR_CONTENT_RENDERED: string;
1281
+ ON_EDITOR_READY_CALLBACK: string;
1282
+ PASTE: string;
1283
+ };
1284
+
1285
+ // @public (undocumented)
1286
+ interface MediaNodeWithPosHandler {
1287
+ // (undocumented)
1288
+ getPos: ProsemirrorGetPosHandler;
1289
+ // (undocumented)
1290
+ node: Node_2;
1291
+ }
1292
+
1293
+ // @public (undocumented)
1294
+ export interface MediaOptions {
1295
+ // (undocumented)
1296
+ alignLeftOnInsert?: boolean;
1297
+ // (undocumented)
1298
+ allowAdvancedToolBarOptions?: boolean;
1299
+ // (undocumented)
1300
+ allowAltTextOnImages?: boolean;
1301
+ // (undocumented)
1302
+ allowBreakoutSnapPoints?: boolean;
1303
+ // (undocumented)
1304
+ allowDropzoneDropLine?: boolean;
1305
+ // (undocumented)
1306
+ allowLazyLoading?: boolean;
1307
+ // (undocumented)
1308
+ allowLinking?: boolean;
1309
+ // (undocumented)
1310
+ allowMarkingUploadsAsIncomplete?: boolean;
1311
+ // (undocumented)
1312
+ allowMediaGroup?: boolean;
1313
+ // (undocumented)
1314
+ allowMediaSingle?: MediaSingleOptions | boolean;
1315
+ // (undocumented)
1316
+ allowMediaSingleEditable?: boolean;
1317
+ // (undocumented)
1318
+ allowRemoteDimensionsFetch?: boolean;
1319
+ // (undocumented)
1320
+ allowResizing?: boolean;
1321
+ // (undocumented)
1322
+ allowResizingInTables?: boolean;
1323
+ // (undocumented)
1324
+ allowTemplatePlaceholders?: PlaceholderTextOptions | boolean;
1325
+ // (undocumented)
1326
+ altTextValidator?: (value: string) => string[];
1327
+ // (undocumented)
1328
+ customDropzoneContainer?: HTMLElement;
1329
+ // (undocumented)
1330
+ customMediaPicker?: CustomMediaPicker;
1331
+ // (undocumented)
1332
+ editorSelectionAPI?: EditorSelectionAPI;
1333
+ // (undocumented)
1334
+ enableDownloadButton?: boolean;
1335
+ // (undocumented)
1336
+ featureFlags?: MediaFeatureFlags;
1337
+ // (undocumented)
1338
+ fullWidthEnabled?: boolean;
1339
+ // (undocumented)
1340
+ getEditorFeatureFlags?: GetEditorFeatureFlags;
1341
+ // (undocumented)
1342
+ isCopyPasteEnabled?: boolean;
1343
+ // (undocumented)
1344
+ provider?: Providers['mediaProvider'];
1345
+ // (undocumented)
1346
+ uploadErrorHandler?: (state: MediaState) => void;
1347
+ // (undocumented)
1348
+ useForgePlugins?: boolean;
1349
+ // (undocumented)
1350
+ waitForMediaUpload?: boolean;
1351
+ }
1352
+
1353
+ // @public (undocumented)
1354
+ export const mediaPlugin: NextEditorPlugin<'media', {
1355
+ pluginConfiguration: MediaOptions | undefined;
1356
+ dependencies: [
1357
+ typeof featureFlagsPlugin,
1358
+ OptionalPlugin<typeof analyticsPlugin>,
1359
+ typeof gridPlugin,
1360
+ typeof widthPlugin,
1361
+ typeof decorationsPlugin,
1362
+ FloatingToolbarPlugin,
1363
+ typeof editorDisabledPlugin
1364
+ ];
1365
+ sharedState: MediaPluginState | null;
1366
+ }>;
1367
+
1368
+ // @public (undocumented)
1369
+ export const mediaPluginKey: PluginKey<MediaPluginState>;
1370
+
1371
+ // @public (undocumented)
1372
+ type MediaPluginOptions = {
1373
+ providerFactory: ProviderFactory;
1374
+ nodeViews: {
1375
+ [name: string]: (node: Node_2, view: EditorView, getPos: getPosHandler) => NodeView;
1376
+ };
1377
+ errorReporter?: ErrorReporter;
1378
+ uploadErrorHandler?: (state: MediaState) => void;
1379
+ waitForMediaUpload?: boolean;
1380
+ customDropzoneContainer?: HTMLElement;
1381
+ customMediaPicker?: CustomMediaPicker;
1382
+ allowResizing: boolean;
1383
+ };
1384
+
1385
+ // @public (undocumented)
1386
+ interface MediaPluginState {
1387
+ // (undocumented)
1388
+ addPendingTask: (promise: Promise<any>) => void;
1389
+ // (undocumented)
1390
+ allowsUploads: boolean;
1391
+ // (undocumented)
1392
+ allUploadsFinished: boolean;
1393
+ // (undocumented)
1394
+ destroy(): void;
1395
+ // (undocumented)
1396
+ dispatch?: Dispatch;
1397
+ // (undocumented)
1398
+ editingMediaSinglePos?: number;
1399
+ // (undocumented)
1400
+ element?: HTMLElement;
1401
+ // (undocumented)
1402
+ findMediaNode: (id: string) => MediaNodeWithPosHandler | null;
1403
+ // (undocumented)
1404
+ getMediaOptions: () => MediaPluginOptions;
1405
+ // (undocumented)
1406
+ handleDrag: (dragState: 'enter' | 'leave') => void;
1407
+ // (undocumented)
1408
+ handleMediaGroupUpdate: (oldNodes: Node_2[], newNodes: Node_2[]) => void;
1409
+ // (undocumented)
1410
+ handleMediaNodeMount: (node: Node_2, getPos: ProsemirrorGetPosHandler) => void;
1411
+ // (undocumented)
1412
+ handleMediaNodeRemoval: (node: Node_2 | undefined, getPos: ProsemirrorGetPosHandler) => void;
1413
+ // (undocumented)
1414
+ handleMediaNodeUnmount: (oldNode: Node_2) => void;
1415
+ // (undocumented)
1416
+ ignoreLinks: boolean;
1417
+ // (undocumented)
1418
+ insertFile: (mediaState: MediaState, onMediaStateChanged: MediaStateEventSubscriber, pickerType?: string) => void;
1419
+ // (undocumented)
1420
+ isFullscreen: boolean;
1421
+ // (undocumented)
1422
+ layout: RichMediaLayout;
1423
+ // (undocumented)
1424
+ mediaClientConfig?: MediaClientConfig;
1425
+ // (undocumented)
1426
+ mediaNodes: MediaNodeWithPosHandler[];
1427
+ // (undocumented)
1428
+ mediaOptions?: MediaOptions;
1429
+ // (undocumented)
1430
+ mediaProvider?: MediaProvider_2;
1431
+ // (undocumented)
1432
+ onContextIdentifierProvider: (_name: string, provider?: Promise<ContextIdentifierProvider>) => Promise<void>;
1433
+ // (undocumented)
1434
+ onPopupPickerClose: () => void;
1435
+ // (undocumented)
1436
+ onPopupToggle: (onPopupToogleCallback: (isOpen: boolean) => void) => void;
1437
+ // (undocumented)
1438
+ options: MediaPluginOptions;
1439
+ // (undocumented)
1440
+ pickerPromises: Array<Promise<PickerFacade>>;
1441
+ // (undocumented)
1442
+ pickers: PickerFacade[];
1443
+ // (undocumented)
1444
+ removeSelectedMediaContainer: () => boolean;
1445
+ // (undocumented)
1446
+ selectedMediaContainerNode: () => Node_2 | undefined;
1447
+ // (undocumented)
1448
+ setBrowseFn: (browseFn: () => void) => void;
1449
+ // (undocumented)
1450
+ setMediaProvider: (mediaProvider?: Promise<MediaProvider_2>) => Promise<void>;
1451
+ // (undocumented)
1452
+ setView(view: EditorView): void;
1453
+ // (undocumented)
1454
+ showDropzone: boolean;
1455
+ // (undocumented)
1456
+ showEditingDialog?: boolean;
1457
+ // (undocumented)
1458
+ showMediaPicker: () => void;
1459
+ // (undocumented)
1460
+ splitMediaGroup: () => boolean;
1461
+ // (undocumented)
1462
+ updateAndDispatch(props: Partial<Pick<this, 'allUploadsFinished' | 'allowsUploads' | 'isFullscreen'>>): void;
1463
+ // (undocumented)
1464
+ updateElement(): void;
1465
+ // (undocumented)
1466
+ updateMediaSingleNodeAttrs: (id: string, attrs: object) => boolean | undefined;
1467
+ // (undocumented)
1468
+ uploadMediaClientConfig?: MediaClientConfig;
1469
+ // (undocumented)
1470
+ waitForMediaUpload: boolean;
1471
+ // (undocumented)
1472
+ waitForPendingTasks: (timeout?: number, lastTask?: Promise<MediaState | null>) => Promise<MediaState | null>;
1473
+ }
1474
+
1475
+ export { MediaProvider_2 as MediaProvider }
1476
+
1477
+ // @public (undocumented)
1478
+ interface MediaSingleOptions {
1479
+ // (undocumented)
1480
+ disableLayout?: boolean;
1481
+ }
1482
+
1483
+ // @public (undocumented)
1484
+ export interface MediaState {
1485
+ // (undocumented)
1486
+ collection?: string;
1487
+ // (undocumented)
1488
+ contextId?: string;
1489
+ // (undocumented)
1490
+ dimensions?: {
1491
+ width: number | undefined;
1492
+ height: number | undefined;
1493
+ };
1494
+ // (undocumented)
1495
+ error?: {
1496
+ name: string;
1497
+ description: string;
1498
+ };
1499
+ // (undocumented)
1500
+ fileMimeType?: string;
1501
+ // (undocumented)
1502
+ fileName?: string;
1503
+ // (undocumented)
1504
+ fileSize?: number;
1505
+ // (undocumented)
1506
+ id: string;
1507
+ publicId?: string;
1508
+ // (undocumented)
1509
+ scaleFactor?: number;
1510
+ // (undocumented)
1511
+ status?: MediaStateStatus;
1512
+ }
1513
+
1514
+ // @public (undocumented)
1515
+ type MediaStateEvent = MediaState;
1516
+
1517
+ // @public (undocumented)
1518
+ type MediaStateEventListener = (evt: MediaStateEvent) => void;
1519
+
1520
+ // @public (undocumented)
1521
+ type MediaStateEventSubscriber = (listener: MediaStateEventListener) => void;
1522
+
1523
+ // @public (undocumented)
1524
+ type MediaStateStatus = 'cancelled' | 'error' | 'mobile-upload-end' | 'preview' | 'ready' | 'unknown';
1525
+
1526
+ // @public (undocumented)
1527
+ interface MentionPluginConfig {
1528
+ // (undocumented)
1529
+ HighlightComponent?: React.ComponentType;
1530
+ // (undocumented)
1531
+ insertDisplayName?: boolean;
1532
+ }
1533
+
1534
+ // @public (undocumented)
1535
+ export const mentionPluginKey: PluginKey<MentionPluginState>;
1536
+
1537
+ // @public (undocumented)
1538
+ export type MentionPluginState = {
1539
+ mentionProvider?: MentionProvider_2;
1540
+ contextIdentifierProvider?: ContextIdentifierProvider;
1541
+ mentions?: Array<MentionDescription>;
1542
+ };
1543
+
1544
+ export { MentionProvider }
1545
+
1546
+ export { MentionResource }
1547
+
1548
+ // @public (undocumented)
1549
+ interface MessageDescriptor {
1550
+ // (undocumented)
1551
+ defaultMessage: string;
1552
+ // (undocumented)
1553
+ description: string;
1554
+ // (undocumented)
1555
+ id: string;
1556
+ }
1557
+
1558
+ export { messages }
1559
+
1560
+ // @public (undocumented)
1561
+ type MobileUploadEndEventPayload = {
1562
+ readonly file: MediaFile & {
1563
+ readonly collectionName?: string;
1564
+ readonly publicId?: string;
1565
+ };
1566
+ };
1567
+
1568
+ // @public (undocumented)
1569
+ const name_2: string;
1570
+ export { name_2 as name }
1571
+
1572
+ // @public (undocumented)
1573
+ type NewMediaEvent = (state: MediaState, onStateChanged: MediaStateEventSubscriber, pickerType?: string) => void;
1574
+
1575
+ // @public (undocumented)
1576
+ interface NodeSelectionData {
1577
+ // (undocumented)
1578
+ anchor: number;
1579
+ // (undocumented)
1580
+ type: 'node';
1581
+ }
1582
+
1583
+ // @public (undocumented)
1584
+ type OnEditorViewStateUpdated = (props: {
1585
+ readonly originalTransaction: Readonly<Transaction>;
1586
+ readonly transactions: ReadonlyArray<Transaction>;
1587
+ readonly oldEditorState: Readonly<EditorState>;
1588
+ readonly newEditorState: Readonly<EditorState>;
1589
+ }) => void;
1590
+
1591
+ // @public (undocumented)
1592
+ export const openDatePicker: () => Command;
1593
+
1594
+ // @public (undocumented)
1595
+ function outdentList(inputMethod: InputMethod_2 | undefined, featureFlags: EditorFeatureFlags): Command;
1596
+
1597
+ export { PaletteColor }
1598
+
1599
+ // @public (undocumented)
1600
+ interface PanelPluginConfig {
1601
+ // (undocumented)
1602
+ allowCustomPanel?: boolean;
1603
+ // (undocumented)
1604
+ allowCustomPanelEdit?: boolean;
1605
+ }
1606
+
1607
+ // @public (undocumented)
1608
+ type PastePluginOptions = {
1609
+ cardOptions?: CardOptions;
1610
+ sanitizePrivateContent?: boolean;
1611
+ };
1612
+
1613
+ // @public (undocumented)
1614
+ class PickerFacade {
1615
+ constructor(pickerType: PickerType, config: PickerFacadeConfig, pickerConfig?: CustomMediaPicker | null | undefined, analyticsName?: string);
1616
+ // (undocumented)
1617
+ readonly config: PickerFacadeConfig;
1618
+ // (undocumented)
1619
+ destroy(): void;
1620
+ // (undocumented)
1621
+ erroredFiles: Set<string>;
1622
+ // (undocumented)
1623
+ handleMobileUploadEnd: (event: MobileUploadEndEventPayload) => void;
1624
+ // (undocumented)
1625
+ handleReady: (event: UploadEndEventPayload) => void;
1626
+ // (undocumented)
1627
+ handleUploadError: ({ error, fileId }: UploadErrorEventPayload) => void;
1628
+ // (undocumented)
1629
+ handleUploadPreviewUpdate: (event: UploadPreviewUpdateEventPayload) => void;
1630
+ // (undocumented)
1631
+ init(): Promise<PickerFacade>;
1632
+ // (undocumented)
1633
+ get mediaPicker(): CustomMediaPicker | undefined;
1634
+ // (undocumented)
1635
+ onDrag(cb: (state: 'enter' | 'leave') => any): void;
1636
+ // (undocumented)
1637
+ onNewMedia(cb: NewMediaEvent): void;
1638
+ // (undocumented)
1639
+ readonly pickerConfig?: CustomMediaPicker | null | undefined;
1640
+ // (undocumented)
1641
+ setUploadParams(params: UploadParams): void;
1642
+ // (undocumented)
1643
+ get type(): PickerType;
1644
+ }
1645
+
1646
+ // @public (undocumented)
1647
+ type PickerFacadeConfig = {
1648
+ mediaClientConfig: MediaClientConfig;
1649
+ errorReporter: ErrorReportingHandler;
1650
+ featureFlags?: MediaFeatureFlags_2;
1651
+ };
1652
+
1653
+ // @public (undocumented)
1654
+ type PickerType = 'clipboard' | 'customMediaPicker' | 'dropzone';
1655
+
1656
+ // @public (undocumented)
1657
+ interface PlaceholderPluginOptions {
1658
+ // (undocumented)
1659
+ placeholder?: string;
1660
+ // (undocumented)
1661
+ placeholderBracketHint?: string;
1662
+ }
1663
+
1664
+ // @public (undocumented)
1665
+ interface PlaceholderTextOptions {
1666
+ // (undocumented)
1667
+ allowInserting?: boolean;
1668
+ }
1669
+
1670
+ export { PortalProvider }
1671
+
1672
+ export { PortalProviderAPI }
1673
+
1674
+ export { PortalRenderer }
1675
+
1676
+ export { PresenceProvider }
1677
+
1678
+ export { PresenceResource }
1679
+
1680
+ // @public (undocumented)
1681
+ type PrimaryToolbarComponents = BeforeAndAfterToolbarComponents | ReactComponents;
1682
+
1683
+ // @public (undocumented)
1684
+ const processItems: (items: Array<QuickInsertHandler | QuickInsertItem>, intl: IntlShape, extendedActions?: Record<string, Function>) => QuickInsertItem[];
1685
+
1686
+ // @public (undocumented)
1687
+ export const processQuickInsertItems: typeof processItems;
1688
+
1689
+ // @public (undocumented)
1690
+ interface Props {
1691
+ // (undocumented)
1692
+ children?: any;
1693
+ // (undocumented)
1694
+ isExpanded?: boolean;
1695
+ // (undocumented)
1696
+ onExpand?: () => void;
1697
+ // (undocumented)
1698
+ onFocus?: (e: React_2.FocusEvent<HTMLInputElement>) => void;
1699
+ // (undocumented)
1700
+ placeholder?: string;
1701
+ }
1702
+
1703
+ // @public (undocumented)
1704
+ interface Props_2 {
1705
+ // (undocumented)
1706
+ title?: string;
1707
+ // (undocumented)
1708
+ titlePosition?: PositionType;
1709
+ }
1710
+
1711
+ // @public (undocumented)
1712
+ interface Props_3 {
1713
+ // @deprecated (undocumented)
1714
+ labels?: string[];
1715
+ // @deprecated (undocumented)
1716
+ packageName?: string;
1717
+ // @deprecated (undocumented)
1718
+ packageVersion?: string;
1719
+ // (undocumented)
1720
+ popupsBoundariesElement?: HTMLElement;
1721
+ // (undocumented)
1722
+ popupsMountPoint?: HTMLElement;
1723
+ // (undocumented)
1724
+ popupsScrollableElement?: HTMLElement;
1725
+ // (undocumented)
1726
+ product?: EditorProduct;
1727
+ }
1728
+
1729
+ // @public (undocumented)
1730
+ type Props_4 = {
1731
+ visible: boolean;
1732
+ children?: React_2.ReactElement;
1733
+ };
1734
+
1735
+ // @public (undocumented)
1736
+ type Props_5 = {
1737
+ oldPluginState: TypeAheadPluginState;
1738
+ newPluginState: TypeAheadPluginState;
1739
+ };
1740
+
1741
+ // @public (undocumented)
1742
+ type ProsemirrorGetPosHandler = () => number | undefined;
1743
+
1744
+ export { QuickInsertActionInsert }
1745
+
1746
+ // @public (undocumented)
1747
+ type QuickInsertHandler = ((intl: IntlShape) => Array<QuickInsertItem>) | Array<QuickInsertItem>;
1748
+
1749
+ export { QuickInsertItem }
1750
+
1751
+ export { QuickInsertItemId }
1752
+
1753
+ // @public (undocumented)
1754
+ type QuickInsertOptions = boolean | {
1755
+ provider: Promise<QuickInsertProvider>;
1756
+ };
1757
+
1758
+ // @public (undocumented)
1759
+ export const quickInsertPluginKey: PluginKey<QuickInsertPluginState>;
1760
+
1761
+ // @public (undocumented)
1762
+ interface QuickInsertPluginOptions {
1763
+ // (undocumented)
1764
+ disableDefaultItems?: boolean;
1765
+ // (undocumented)
1766
+ elementBrowserHelpUrl?: string;
1767
+ // (undocumented)
1768
+ emptyStateHandler?: EmptyStateHandler;
1769
+ // (undocumented)
1770
+ enableElementBrowser?: boolean;
1771
+ // (undocumented)
1772
+ headless?: boolean;
1773
+ }
1774
+
1775
+ // @public (undocumented)
1776
+ export type QuickInsertPluginState = {
1777
+ isElementBrowserModalOpen: boolean;
1778
+ lazyDefaultItems: () => QuickInsertItem[];
1779
+ providedItems?: QuickInsertItem[];
1780
+ provider?: QuickInsertProvider;
1781
+ emptyStateHandler?: EmptyStateHandler;
1782
+ };
1783
+
1784
+ export { QuickInsertProvider }
1785
+
1786
+ // @public (undocumented)
1787
+ type ReactComponents = ReactElement<any> | ReactElement<any>[];
1788
+
1789
+ // @public (undocumented)
1790
+ export const ReactEditorView: FC<WithIntlProps<EditorViewProps & WrappedComponentProps<"intl">>> & {
1791
+ WrappedComponent: ComponentType<EditorViewProps & WrappedComponentProps<"intl">>;
1792
+ };
1793
+
1794
+ // @public (undocumented)
1795
+ class ReactEditorView_2<T = {}> extends React_2.Component<EditorViewProps & WrappedComponentProps & T, {}, EditorReactContext> {
1796
+ constructor(props: EditorViewProps & WrappedComponentProps & T, context: EditorReactContext);
1797
+ // (undocumented)
1798
+ blur: () => void;
1799
+ // (undocumented)
1800
+ componentDidMount(): void;
1801
+ componentWillUnmount(): void;
1802
+ // (undocumented)
1803
+ config: EditorConfig;
1804
+ // (undocumented)
1805
+ contentTransformer?: Transformer_2<string>;
1806
+ // (undocumented)
1807
+ static contextTypes: {
1808
+ getAtlaskitAnalyticsEventHandlers: PropTypes.Requireable<(...args: any[]) => any>;
1809
+ };
1810
+ // (undocumented)
1811
+ createEditorState: (options: CreateEditorStateOptions) => EditorState;
1812
+ // (undocumented)
1813
+ dispatch: Dispatch;
1814
+ // (undocumented)
1815
+ dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
1816
+ // (undocumented)
1817
+ editorRef: React_2.RefObject<HTMLDivElement>;
1818
+ // (undocumented)
1819
+ editorState: EditorState;
1820
+ // (undocumented)
1821
+ errorReporter: ErrorReporter;
1822
+ // (undocumented)
1823
+ eventDispatcher: EventDispatcher;
1824
+ // (undocumented)
1825
+ experienceStore?: ExperienceStore;
1826
+ // (undocumented)
1827
+ formatFullWidthAppearance: (appearance: EditorAppearance | undefined) => FULL_WIDTH_MODE;
1828
+ // (undocumented)
1829
+ getDirectEditorProps: (state?: EditorState) => DirectEditorProps;
1830
+ // (undocumented)
1831
+ getEditorState: () => EditorState | undefined;
1832
+ // (undocumented)
1833
+ getPlugins(preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>): EditorPlugin[];
1834
+ // (undocumented)
1835
+ handleAnalyticsEvent: FireAnalyticsCallback;
1836
+ // (undocumented)
1837
+ handleEditorViewRef: (node: HTMLDivElement) => void;
1838
+ // (undocumented)
1839
+ proseMirrorRenderedSeverity?: SEVERITY;
1840
+ // (undocumented)
1841
+ reconfigureState(props: EditorViewProps): void;
1842
+ // (undocumented)
1843
+ render(): JSX.Element;
1844
+ // (undocumented)
1845
+ resetEditorState: ({ doc, shouldScrollToBottom, }: {
1846
+ doc: string;
1847
+ shouldScrollToBottom: boolean;
1848
+ }) => void;
1849
+ // (undocumented)
1850
+ transactionTracker: TransactionTracker;
1851
+ // (undocumented)
1852
+ get transactionTracking(): TransactionTracking;
1853
+ // (undocumented)
1854
+ UNSAFE_componentWillReceiveProps(nextProps: EditorViewProps): void;
1855
+ // (undocumented)
1856
+ validTransactionCount: number;
1857
+ // (undocumented)
1858
+ view?: EditorView;
1859
+ }
1860
+
1861
+ // @public (undocumented)
1862
+ interface RectData {
1863
+ // (undocumented)
1864
+ left: number;
1865
+ // (undocumented)
1866
+ top: number;
1867
+ }
1868
+
1869
+ // @public (undocumented)
1870
+ export const removeStatus: (showStatusPickerAt: number) => Command;
1871
+
1872
+ // @public (undocumented)
1873
+ type ScrollGutterPluginOptions = {
1874
+ getScrollElement?: (view: EditorView) => HTMLElement | null;
1875
+ allowCustomScrollHandler?: boolean;
1876
+ persistScrollGutter?: boolean;
1877
+ gutterSize?: number;
1878
+ };
1879
+
1880
+ // @public (undocumented)
1881
+ export type SelectionData = AllSelectionData | CellSelectionData | GapSelectionData | NodeSelectionData | TextSelectionData;
1882
+
1883
+ // @public (undocumented)
1884
+ export interface SelectionDataState {
1885
+ // (undocumented)
1886
+ markTypes: string[];
1887
+ // (undocumented)
1888
+ nodeTypes: string[];
1889
+ // (undocumented)
1890
+ rect: RectData;
1891
+ // (undocumented)
1892
+ selection: SelectionData;
1893
+ }
1894
+
1895
+ // @public (undocumented)
1896
+ export const selectionPluginKey: PluginKey<any>;
1897
+
1898
+ // @public (undocumented)
1899
+ interface SelectionPluginOptions extends LongPressSelectionPluginOptions {
1900
+ }
1901
+
1902
+ export { SelectOption }
1903
+
1904
+ // @public (undocumented)
1905
+ export function setBlockType(name: string): Command;
1906
+
1907
+ // @public (undocumented)
1908
+ export function setBlockTypeWithAnalytics(name: string, inputMethod: BlockTypeInputMethod): Command;
1909
+
1910
+ // @public (undocumented)
1911
+ export const setIsExpanded: (isExpanded: boolean) => Command_2;
1912
+
1913
+ // @public (undocumented)
1914
+ export const setKeyboardHeight: (keyboardHeight: number) => Command_2;
1915
+
1916
+ // @public (undocumented)
1917
+ export const setMobilePaddingTop: (paddingTop: number) => Command_2;
1918
+
1919
+ // @public (undocumented)
1920
+ export const setStatusPickerAt: (showStatusPickerAt: null | number) => (state: EditorState, dispatch: (tr: Transaction) => void) => boolean;
1921
+
1922
+ export { setTextSelection }
1923
+
1924
+ // @public (undocumented)
1925
+ interface SimpleEntry {
1926
+ // (undocumented)
1927
+ duration: number;
1928
+ // (undocumented)
1929
+ name: string;
1930
+ // (undocumented)
1931
+ startTime: number;
1932
+ }
1933
+
1934
+ // @public (undocumented)
1935
+ interface State {
1936
+ }
1937
+
1938
+ // @public (undocumented)
1939
+ interface State_2 {
1940
+ // (undocumented)
1941
+ jiraIssueCollectorScriptLoading: boolean;
1942
+ // (undocumented)
1943
+ showOptOutOption?: boolean;
1944
+ // (undocumented)
1945
+ target?: HTMLElement;
1946
+ }
1947
+
1948
+ // @public (undocumented)
1949
+ export const statusMessages: {
1950
+ placeholder: {
1951
+ id: string;
1952
+ defaultMessage: string;
1953
+ description: string;
1954
+ };
1955
+ editText: {
1956
+ id: string;
1957
+ defaultMessage: string;
1958
+ description: string;
1959
+ };
1960
+ editColor: {
1961
+ id: string;
1962
+ defaultMessage: string;
1963
+ description: string;
1964
+ };
1965
+ };
1966
+
1967
+ // @public (undocumented)
1968
+ export const statusPluginKey: PluginKey<StatusState>;
1969
+
1970
+ // @public (undocumented)
1971
+ export type StatusState = {
1972
+ isNew: boolean;
1973
+ showStatusPickerAt: null | number;
1974
+ };
1975
+
1976
+ // @public (undocumented)
1977
+ export type StatusType = {
1978
+ color: Color;
1979
+ text: string;
1980
+ localId?: string;
1981
+ };
1982
+
1983
+ // @public (undocumented)
1984
+ type SubscribeToToolbarAndPickerUpdates = (editorView: EditorView, cb: (args: SubscribeToToolbarAndPickerUpdatesCallbackArgs) => void) => () => void;
1985
+
1986
+ // @public (undocumented)
1987
+ export const subscribeToToolbarAndPickerUpdates: SubscribeToToolbarAndPickerUpdates;
1988
+
1989
+ // @public (undocumented)
1990
+ type SubscribeToToolbarAndPickerUpdatesCallbackArgs = {
1991
+ dateState?: DatePluginState;
1992
+ statusState?: StatusState;
1993
+ toolbarConfig: ConfigWithNodeInfo | null | undefined;
1994
+ };
1995
+
1996
+ // @public (undocumented)
1997
+ type SubscribeTypeAheadUpdates = (editorView: EditorView, cb: (props: Props_5) => void) => () => void;
1998
+
1999
+ // @public (undocumented)
2000
+ export const subscribeTypeAheadUpdates: SubscribeTypeAheadUpdates;
2001
+
2002
+ // @public (undocumented)
2003
+ export type TaskDecisionInputMethod = INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR;
2004
+
2005
+ // @public (undocumented)
2006
+ type TaskDecisionListType = 'decisionList' | 'taskList';
2007
+
2008
+ export { TeamMentionResource }
2009
+
2010
+ // @public (undocumented)
2011
+ type TextColorDefaultColor = {
2012
+ color: string;
2013
+ label: string;
2014
+ };
2015
+
2016
+ // @public (undocumented)
2017
+ interface TextColorPluginConfig {
2018
+ // (undocumented)
2019
+ defaultColor?: TextColorDefaultColor;
2020
+ }
2021
+
2022
+ // @public (undocumented)
2023
+ export const textColorPluginKey: PluginKey<TextColorPluginState>;
2024
+
2025
+ // @public (undocumented)
2026
+ export type TextColorPluginState = {
2027
+ palette: Array<PaletteColor>;
2028
+ defaultColor: string;
2029
+ disabled?: boolean;
2030
+ color: null | string;
2031
+ };
2032
+
2033
+ // @public (undocumented)
2034
+ export type TextFormattingInputMethodBasic = INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | TextFormattingInputMethodToolbar;
2035
+
2036
+ // @public (undocumented)
2037
+ export type TextFormattingInputMethodToolbar = INPUT_METHOD.TOOLBAR;
2038
+
2039
+ // @public (undocumented)
2040
+ interface TextFormattingOptions {
2041
+ // (undocumented)
2042
+ disableCode?: boolean;
2043
+ // (undocumented)
2044
+ disableSmartTextCompletion?: boolean;
2045
+ // (undocumented)
2046
+ disableSuperscriptAndSubscript?: boolean;
2047
+ // (undocumented)
2048
+ disableUnderline?: boolean;
2049
+ // (undocumented)
2050
+ responsiveToolbarMenu?: boolean;
2051
+ }
2052
+
2053
+ // @public (undocumented)
2054
+ export interface TextFormattingState {
2055
+ // (undocumented)
2056
+ codeActive?: boolean;
2057
+ // (undocumented)
2058
+ codeDisabled?: boolean;
2059
+ // (undocumented)
2060
+ codeHidden?: boolean;
2061
+ // (undocumented)
2062
+ emActive?: boolean;
2063
+ // (undocumented)
2064
+ emDisabled?: boolean;
2065
+ // (undocumented)
2066
+ emHidden?: boolean;
2067
+ // (undocumented)
2068
+ strikeActive?: boolean;
2069
+ // (undocumented)
2070
+ strikeDisabled?: boolean;
2071
+ // (undocumented)
2072
+ strikeHidden?: boolean;
2073
+ // (undocumented)
2074
+ strongActive?: boolean;
2075
+ // (undocumented)
2076
+ strongDisabled?: boolean;
2077
+ // (undocumented)
2078
+ strongHidden?: boolean;
2079
+ // (undocumented)
2080
+ subscriptActive?: boolean;
2081
+ // (undocumented)
2082
+ subscriptDisabled?: boolean;
2083
+ // (undocumented)
2084
+ subscriptHidden?: boolean;
2085
+ // (undocumented)
2086
+ superscriptActive?: boolean;
2087
+ // (undocumented)
2088
+ superscriptDisabled?: boolean;
2089
+ // (undocumented)
2090
+ superscriptHidden?: boolean;
2091
+ // (undocumented)
2092
+ underlineActive?: boolean;
2093
+ // (undocumented)
2094
+ underlineDisabled?: boolean;
2095
+ // (undocumented)
2096
+ underlineHidden?: boolean;
2097
+ }
2098
+
2099
+ // @public (undocumented)
2100
+ export const textFormattingStateKey: PluginKey<TextFormattingState>;
2101
+
2102
+ // @public (undocumented)
2103
+ interface TextSelectionData {
2104
+ // (undocumented)
2105
+ anchor: number;
2106
+ // (undocumented)
2107
+ head: number;
2108
+ // (undocumented)
2109
+ type: 'text';
2110
+ }
2111
+
2112
+ // @public (undocumented)
2113
+ function toggleBulletList(view: EditorView, inputMethod?: ListInputMethod): boolean;
2114
+
2115
+ // @public (undocumented)
2116
+ export const toggleCode: () => Command;
2117
+
2118
+ // @public (undocumented)
2119
+ export const toggleCodeWithAnalytics: ({ inputMethod, }: {
2120
+ inputMethod: TextFormattingInputMethodBasic;
2121
+ }) => Command;
2122
+
2123
+ // @public (undocumented)
2124
+ export const toggleEm: () => Command;
2125
+
2126
+ // @public (undocumented)
2127
+ export const toggleEmWithAnalytics: ({ inputMethod, }: {
2128
+ inputMethod: TextFormattingInputMethodBasic;
2129
+ }) => Command;
2130
+
2131
+ // @public (undocumented)
2132
+ function toggleOrderedList(view: EditorView, inputMethod?: ListInputMethod): boolean;
2133
+
2134
+ // @public (undocumented)
2135
+ export const toggleStrike: () => Command;
2136
+
2137
+ // @public (undocumented)
2138
+ export const toggleStrikeWithAnalytics: ({ inputMethod, }: {
2139
+ inputMethod: TextFormattingInputMethodBasic;
2140
+ }) => Command;
2141
+
2142
+ // @public (undocumented)
2143
+ export const toggleStrong: () => Command;
2144
+
2145
+ // @public (undocumented)
2146
+ export const toggleStrongWithAnalytics: ({ inputMethod, }: {
2147
+ inputMethod: TextFormattingInputMethodBasic;
2148
+ }) => Command;
2149
+
2150
+ // @public (undocumented)
2151
+ export const toggleSubscript: () => Command;
2152
+
2153
+ // @public (undocumented)
2154
+ export const toggleSubscriptWithAnalytics: ({ inputMethod, }: {
2155
+ inputMethod: TextFormattingInputMethodBasic;
2156
+ }) => Command;
2157
+
2158
+ // @public (undocumented)
2159
+ export const toggleSuperscript: () => Command;
2160
+
2161
+ // @public (undocumented)
2162
+ export const toggleSuperscriptWithAnalytics: ({ inputMethod, }: {
2163
+ inputMethod: TextFormattingInputMethodBasic;
2164
+ }) => Command;
2165
+
2166
+ // @public (undocumented)
2167
+ export const toggleUnderline: () => Command;
2168
+
2169
+ // @public (undocumented)
2170
+ export const toggleUnderlineWithAnalytics: ({ inputMethod, }: {
2171
+ inputMethod: TextFormattingInputMethodBasic;
2172
+ }) => Command;
2173
+
2174
+ // @public (undocumented)
2175
+ export class ToolbarFeedback extends PureComponent<Props_3, State_2> {
2176
+ constructor(props: Props_3);
2177
+ // (undocumented)
2178
+ static contextTypes: {
2179
+ editorActions: PropTypes.Validator<object>;
2180
+ };
2181
+ // (undocumented)
2182
+ render(): jsx.JSX.Element | null;
2183
+ // (undocumented)
2184
+ showJiraCollectorDialogCallback?: () => void;
2185
+ // (undocumented)
2186
+ state: State_2;
2187
+ }
2188
+
2189
+ // @public (undocumented)
2190
+ export const ToolbarHelp: React_2.FC<WithIntlProps<Props_2 & WrappedComponentProps<"intl">>> & {
2191
+ WrappedComponent: React_2.ComponentType<Props_2 & WrappedComponentProps<"intl">>;
2192
+ };
2193
+
2194
+ // @public (undocumented)
2195
+ class TransactionTracker {
2196
+ // (undocumented)
2197
+ addMeasureListener(listener: MeasureListener): void;
2198
+ // (undocumented)
2199
+ bumpDispatchCounter: (options: TransactionTracking) => number;
2200
+ // (undocumented)
2201
+ getMeasureHelpers: (options: TransactionTracking) => MeasureHelpers;
2202
+ // (undocumented)
2203
+ removeMeasureListener(listener: MeasureListener): void;
2204
+ // (undocumented)
2205
+ shouldTrackTransaction(options: TransactionTracking): boolean;
2206
+ }
2207
+
2208
+ // @public (undocumented)
2209
+ type TypeAheadInputMethod = INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR;
2210
+
2211
+ export { TypeAheadItem }
2212
+
2213
+ // @public (undocumented)
2214
+ export const typeAheadPluginKey: PluginKey<TypeAheadPluginState>;
2215
+
2216
+ // @public (undocumented)
2217
+ type TypeAheadPluginOptions = {
2218
+ isMobile?: boolean;
2219
+ createAnalyticsEvent?: CreateUIAnalyticsEvent_2;
2220
+ useBetterTypeaheadNavigation?: boolean;
2221
+ };
2222
+
2223
+ // @public (undocumented)
2224
+ export type TypeAheadPluginState = {
2225
+ decorationSet: DecorationSet;
2226
+ decorationElement: HTMLElement | null;
2227
+ typeAheadHandlers: Array<TypeAheadHandler>;
2228
+ query: string;
2229
+ items: Array<TypeAheadItem>;
2230
+ triggerHandler?: TypeAheadHandler;
2231
+ selectedIndex: number;
2232
+ stats: TypeAheadStatsSerializable | null;
2233
+ inputMethod: TypeAheadInputMethod | null;
2234
+ };
2235
+
2236
+ // @public (undocumented)
2237
+ interface TypeAheadStatsSerializable extends TypeAheadStats {
2238
+ // (undocumented)
2239
+ serialize: () => TypeAheadStats;
2240
+ }
2241
+
2242
+ // @public (undocumented)
2243
+ export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve';
2244
+
2245
+ // @public @deprecated (undocumented)
2246
+ export function updateLink(href: string, text: string, pos: number, to?: number): Command_2;
2247
+
2248
+ // @public (undocumented)
2249
+ export const updateStatus: (status?: StatusType) => Command;
2250
+
2251
+ // @public (undocumented)
2252
+ export const updateStatusWithAnalytics: (inputMethod: InsertBlockInputMethodToolbar, status?: StatusType) => Command;
2253
+
2254
+ // @public (undocumented)
2255
+ type UseStickyToolbarType = RefObject<HTMLElement> | boolean | {
2256
+ offsetTop: number;
2257
+ };
2258
+
2259
+ // @public (undocumented)
2260
+ export const version: string;
2261
+
2262
+ // @public (undocumented)
2263
+ type VisibilityEvent = 'setvisibility';
2264
+
2265
+ // @public (undocumented)
2266
+ export class WithEditorActions extends React_2.Component<WithEditorActionsProps, any> {
2267
+ // (undocumented)
2268
+ componentDidMount(): void;
2269
+ // (undocumented)
2270
+ componentWillUnmount(): void;
2271
+ // (undocumented)
2272
+ context: {
2273
+ editorActions: EditorActions;
2274
+ };
2275
+ // (undocumented)
2276
+ static contextTypes: {
2277
+ editorActions: PropTypes.Validator<object>;
2278
+ };
2279
+ // (undocumented)
2280
+ render(): React_2.ReactElement<any, React_2.JSXElementConstructor<any> | string> | null;
2281
+ }
2282
+
2283
+ // @public (undocumented)
2284
+ interface WithEditorActionsProps {
2285
+ // (undocumented)
2286
+ render(actions: EditorActions): React_2.ReactElement<any> | null;
2287
+ }
2288
+
2289
+ // @public (undocumented)
2290
+ export class WithHelpTrigger extends React_2.Component<{
2291
+ render: (openHelp: () => void) => React_2.ReactNode;
2292
+ }, any> {
2293
+ // (undocumented)
2294
+ static contextTypes: {
2295
+ editorActions: PropTypes.Validator<object>;
2296
+ };
2297
+ // (undocumented)
2298
+ openHelp: () => void;
2299
+ // (undocumented)
2300
+ render(): React_2.ReactNode;
2301
+ }
2302
+
2303
+ export { WithPluginState }
2304
+
2305
+ // (No @packageDocumentation comment for this package)
2306
+
2307
+ ```