@atlaskit/editor-common 70.1.3 → 70.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (406) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/cjs/react-node-view/index.js +19 -17
  3. package/dist/cjs/styles/index.js +12 -0
  4. package/dist/cjs/styles/shared/code-block.js +5 -3
  5. package/dist/cjs/styles/shared/lists.js +4 -2
  6. package/dist/cjs/styles/shared/table.js +1 -1
  7. package/dist/cjs/types/copy-button.js +5 -0
  8. package/dist/cjs/ui/DropList/index.js +1 -1
  9. package/dist/cjs/ui/Expand/index.js +2 -2
  10. package/dist/cjs/ui/IntlProviderIfMissingWrapper/index.js +33 -0
  11. package/dist/cjs/ui/Popup/index.js +2 -2
  12. package/dist/cjs/ui/PortalProvider/index.js +62 -47
  13. package/dist/cjs/ui/index.js +8 -0
  14. package/dist/cjs/utils/breakout.js +53 -2
  15. package/dist/cjs/utils/collab.js +22 -0
  16. package/dist/cjs/utils/dom.js +16 -0
  17. package/dist/cjs/utils/get-performance-options.js +70 -0
  18. package/dist/cjs/utils/index.js +57 -1
  19. package/dist/cjs/utils/outdated-browsers.js +41 -0
  20. package/dist/cjs/utils/referentiality.js +49 -0
  21. package/dist/cjs/utils/sendLogs.js +19 -0
  22. package/dist/cjs/version.json +1 -1
  23. package/dist/cjs/with-plugin-state/index.js +61 -54
  24. package/dist/es2019/react-node-view/index.js +19 -24
  25. package/dist/es2019/styles/index.js +2 -2
  26. package/dist/es2019/styles/shared/code-block.js +13 -1
  27. package/dist/es2019/styles/shared/lists.js +2 -1
  28. package/dist/es2019/styles/shared/table.js +4 -2
  29. package/dist/es2019/types/copy-button.js +1 -0
  30. package/dist/es2019/ui/DropList/index.js +1 -1
  31. package/dist/es2019/ui/Expand/index.js +17 -15
  32. package/dist/es2019/ui/IntlProviderIfMissingWrapper/index.js +18 -0
  33. package/dist/es2019/ui/Popup/index.js +2 -1
  34. package/dist/es2019/ui/PortalProvider/index.js +33 -14
  35. package/dist/es2019/ui/index.js +2 -1
  36. package/dist/es2019/utils/breakout.js +47 -1
  37. package/dist/es2019/utils/collab.js +13 -0
  38. package/dist/es2019/utils/dom.js +16 -0
  39. package/dist/es2019/utils/get-performance-options.js +57 -0
  40. package/dist/es2019/utils/index.js +6 -2
  41. package/dist/es2019/utils/outdated-browsers.js +32 -0
  42. package/dist/es2019/utils/referentiality.js +34 -0
  43. package/dist/es2019/utils/sendLogs.js +8 -0
  44. package/dist/es2019/version.json +1 -1
  45. package/dist/es2019/with-plugin-state/index.js +55 -52
  46. package/dist/esm/react-node-view/index.js +19 -22
  47. package/dist/esm/styles/index.js +2 -2
  48. package/dist/esm/styles/shared/code-block.js +4 -3
  49. package/dist/esm/styles/shared/lists.js +2 -1
  50. package/dist/esm/styles/shared/table.js +1 -1
  51. package/dist/esm/types/copy-button.js +1 -0
  52. package/dist/esm/ui/DropList/index.js +1 -1
  53. package/dist/esm/ui/Expand/index.js +2 -2
  54. package/dist/esm/ui/IntlProviderIfMissingWrapper/index.js +19 -0
  55. package/dist/esm/ui/Popup/index.js +2 -2
  56. package/dist/esm/ui/PortalProvider/index.js +59 -48
  57. package/dist/esm/ui/index.js +2 -1
  58. package/dist/esm/utils/breakout.js +46 -1
  59. package/dist/esm/utils/collab.js +13 -0
  60. package/dist/esm/utils/dom.js +16 -0
  61. package/dist/esm/utils/get-performance-options.js +55 -0
  62. package/dist/esm/utils/index.js +6 -2
  63. package/dist/esm/utils/outdated-browsers.js +32 -0
  64. package/dist/esm/utils/referentiality.js +40 -0
  65. package/dist/esm/utils/sendLogs.js +10 -0
  66. package/dist/esm/version.json +1 -1
  67. package/dist/esm/with-plugin-state/index.js +59 -54
  68. package/dist/types/analytics/types/events.d.ts +1 -0
  69. package/dist/types/extensions/types/extension-handler.d.ts +1 -0
  70. package/dist/types/styles/index.d.ts +2 -2
  71. package/dist/types/styles/shared/code-block.d.ts +1 -0
  72. package/dist/types/styles/shared/lists.d.ts +1 -0
  73. package/dist/types/types/copy-button.d.ts +20 -0
  74. package/dist/types/types/editor-actions.d.ts +1 -0
  75. package/dist/types/types/editor-container-width.d.ts +14 -0
  76. package/dist/types/types/feature-flags.d.ts +0 -6
  77. package/dist/types/types/floating-toolbar.d.ts +23 -2
  78. package/dist/types/types/index.d.ts +2 -1
  79. package/dist/types/ui/IntlProviderIfMissingWrapper/index.d.ts +6 -0
  80. package/dist/types/ui/Popup/index.d.ts +1 -0
  81. package/dist/types/ui/PortalProvider/index.d.ts +2 -1
  82. package/dist/types/ui/index.d.ts +1 -0
  83. package/dist/types/utils/breakout.d.ts +25 -0
  84. package/dist/types/utils/collab.d.ts +2 -0
  85. package/dist/types/utils/dom.d.ts +15 -1
  86. package/dist/types/utils/get-performance-options.d.ts +18 -0
  87. package/dist/types/utils/getModeFromTheme.d.ts +1 -1
  88. package/dist/types/utils/index.d.ts +5 -1
  89. package/dist/types/utils/outdated-browsers.d.ts +1 -0
  90. package/dist/types/utils/referentiality.d.ts +3 -0
  91. package/dist/types/utils/sendLogs.d.ts +1 -0
  92. package/dist/types/with-plugin-state/index.d.ts +4 -2
  93. package/package.json +12 -17
  94. package/report.api.md +7 -3
  95. package/dist/types-ts4.0/__tests_external__/cases/fundamentals/collection.d.ts +0 -3
  96. package/dist/types-ts4.0/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts +0 -3
  97. package/dist/types-ts4.0/__tests_external__/cases/fundamentals/test-cases/editor-typing.d.ts +0 -3
  98. package/dist/types-ts4.0/__tests_external__/cases/smart-links/index.d.ts +0 -4
  99. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/block/delete.d.ts +0 -3
  100. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/block/edit.d.ts +0 -4
  101. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/block/index.d.ts +0 -3
  102. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/block/insert.d.ts +0 -3
  103. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/embed/delete.d.ts +0 -3
  104. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/embed/edit.d.ts +0 -4
  105. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/embed/index.d.ts +0 -3
  106. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/embed/insert.d.ts +0 -3
  107. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/inline/delete.d.ts +0 -3
  108. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/inline/edit.d.ts +0 -4
  109. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/inline/index.d.ts +0 -3
  110. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/inline/insert.d.ts +0 -3
  111. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/inline/unlink.d.ts +0 -3
  112. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/types.d.ts +0 -4
  113. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/url/index.d.ts +0 -3
  114. package/dist/types-ts4.0/__tests_external__/cases/smart-links/test-cases/url/insert.d.ts +0 -3
  115. package/dist/types-ts4.0/__tests_external__/cases/types.d.ts +0 -7
  116. package/dist/types-ts4.0/__tests_external__/index.d.ts +0 -3
  117. package/dist/types-ts4.0/__tests_external__/page-objects/Editor.d.ts +0 -9
  118. package/dist/types-ts4.0/__tests_external__/page-objects/EditorSmartLink.d.ts +0 -40
  119. package/dist/types-ts4.0/__tests_external__/page-objects/Renderer.d.ts +0 -6
  120. package/dist/types-ts4.0/analytics/api.d.ts +0 -5
  121. package/dist/types-ts4.0/analytics/index.d.ts +0 -3
  122. package/dist/types-ts4.0/analytics/types/avatar.d.ts +0 -5
  123. package/dist/types-ts4.0/analytics/types/block.d.ts +0 -3
  124. package/dist/types-ts4.0/analytics/types/config-panel-events.d.ts +0 -17
  125. package/dist/types-ts4.0/analytics/types/cut-copy-events.d.ts +0 -12
  126. package/dist/types-ts4.0/analytics/types/date-events.d.ts +0 -17
  127. package/dist/types-ts4.0/analytics/types/dispatch-analytics-event.d.ts +0 -2
  128. package/dist/types-ts4.0/analytics/types/element-browser-events.d.ts +0 -11
  129. package/dist/types-ts4.0/analytics/types/enums.d.ts +0 -314
  130. package/dist/types-ts4.0/analytics/types/events.d.ts +0 -126
  131. package/dist/types-ts4.0/analytics/types/experimental-events.d.ts +0 -17
  132. package/dist/types-ts4.0/analytics/types/extension-events.d.ts +0 -37
  133. package/dist/types-ts4.0/analytics/types/find-replace-events.d.ts +0 -23
  134. package/dist/types-ts4.0/analytics/types/format-events.d.ts +0 -49
  135. package/dist/types-ts4.0/analytics/types/general-events.d.ts +0 -179
  136. package/dist/types-ts4.0/analytics/types/index.d.ts +0 -34
  137. package/dist/types-ts4.0/analytics/types/inline-comment-events.d.ts +0 -17
  138. package/dist/types-ts4.0/analytics/types/insert-events.d.ts +0 -128
  139. package/dist/types-ts4.0/analytics/types/link-tool-bar-events.d.ts +0 -76
  140. package/dist/types-ts4.0/analytics/types/list-events.d.ts +0 -52
  141. package/dist/types-ts4.0/analytics/types/media-events.d.ts +0 -16
  142. package/dist/types-ts4.0/analytics/types/node-events.d.ts +0 -56
  143. package/dist/types-ts4.0/analytics/types/paste-events.d.ts +0 -39
  144. package/dist/types-ts4.0/analytics/types/performance-report.d.ts +0 -24
  145. package/dist/types-ts4.0/analytics/types/referentiality-events.d.ts +0 -9
  146. package/dist/types-ts4.0/analytics/types/selection-events.d.ts +0 -18
  147. package/dist/types-ts4.0/analytics/types/smart-links.d.ts +0 -13
  148. package/dist/types-ts4.0/analytics/types/substitute-events.d.ts +0 -26
  149. package/dist/types-ts4.0/analytics/types/table-events.d.ts +0 -102
  150. package/dist/types-ts4.0/analytics/types/toolbar-button.d.ts +0 -22
  151. package/dist/types-ts4.0/analytics/types/type-ahead.d.ts +0 -27
  152. package/dist/types-ts4.0/analytics/types/utils.d.ts +0 -46
  153. package/dist/types-ts4.0/card/cardOptions.d.ts +0 -9
  154. package/dist/types-ts4.0/card/index.d.ts +0 -1
  155. package/dist/types-ts4.0/collab/types.d.ts +0 -82
  156. package/dist/types-ts4.0/collab.d.ts +0 -1
  157. package/dist/types-ts4.0/core-utils/index.d.ts +0 -1
  158. package/dist/types-ts4.0/core-utils/inside.d.ts +0 -2
  159. package/dist/types-ts4.0/emoji.d.ts +0 -3
  160. package/dist/types-ts4.0/event-dispatcher/index.d.ts +0 -19
  161. package/dist/types-ts4.0/extensions/combine-extension-providers.d.ts +0 -7
  162. package/dist/types-ts4.0/extensions/default-extension-provider.d.ts +0 -17
  163. package/dist/types-ts4.0/extensions/extension-fields-helpers.d.ts +0 -10
  164. package/dist/types-ts4.0/extensions/extension-handlers.d.ts +0 -13
  165. package/dist/types-ts4.0/extensions/index.d.ts +0 -8
  166. package/dist/types-ts4.0/extensions/manifest-helpers.d.ts +0 -8
  167. package/dist/types-ts4.0/extensions/module-helpers.d.ts +0 -11
  168. package/dist/types-ts4.0/extensions/types/extension-handler.d.ts +0 -39
  169. package/dist/types-ts4.0/extensions/types/extension-manifest-common.d.ts +0 -8
  170. package/dist/types-ts4.0/extensions/types/extension-manifest-toolbar-item.d.ts +0 -45
  171. package/dist/types-ts4.0/extensions/types/extension-manifest.d.ts +0 -101
  172. package/dist/types-ts4.0/extensions/types/extension-parameters.d.ts +0 -5
  173. package/dist/types-ts4.0/extensions/types/extension-provider.d.ts +0 -8
  174. package/dist/types-ts4.0/extensions/types/field-definitions.d.ts +0 -171
  175. package/dist/types-ts4.0/extensions/types/index.d.ts +0 -8
  176. package/dist/types-ts4.0/extensions/types/utils.d.ts +0 -18
  177. package/dist/types-ts4.0/extensions.d.ts +0 -2
  178. package/dist/types-ts4.0/i18n/cs.d.ts +0 -100
  179. package/dist/types-ts4.0/i18n/da.d.ts +0 -100
  180. package/dist/types-ts4.0/i18n/de.d.ts +0 -100
  181. package/dist/types-ts4.0/i18n/en.d.ts +0 -100
  182. package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -100
  183. package/dist/types-ts4.0/i18n/en_ZZ.d.ts +0 -100
  184. package/dist/types-ts4.0/i18n/es.d.ts +0 -100
  185. package/dist/types-ts4.0/i18n/et.d.ts +0 -8
  186. package/dist/types-ts4.0/i18n/fi.d.ts +0 -100
  187. package/dist/types-ts4.0/i18n/fr.d.ts +0 -100
  188. package/dist/types-ts4.0/i18n/hu.d.ts +0 -100
  189. package/dist/types-ts4.0/i18n/index.d.ts +0 -31
  190. package/dist/types-ts4.0/i18n/it.d.ts +0 -100
  191. package/dist/types-ts4.0/i18n/ja.d.ts +0 -100
  192. package/dist/types-ts4.0/i18n/ko.d.ts +0 -100
  193. package/dist/types-ts4.0/i18n/nb.d.ts +0 -100
  194. package/dist/types-ts4.0/i18n/nl.d.ts +0 -100
  195. package/dist/types-ts4.0/i18n/pl.d.ts +0 -100
  196. package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -100
  197. package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -8
  198. package/dist/types-ts4.0/i18n/ru.d.ts +0 -100
  199. package/dist/types-ts4.0/i18n/sk.d.ts +0 -8
  200. package/dist/types-ts4.0/i18n/sv.d.ts +0 -100
  201. package/dist/types-ts4.0/i18n/th.d.ts +0 -100
  202. package/dist/types-ts4.0/i18n/tr.d.ts +0 -100
  203. package/dist/types-ts4.0/i18n/uk.d.ts +0 -100
  204. package/dist/types-ts4.0/i18n/vi.d.ts +0 -100
  205. package/dist/types-ts4.0/i18n/zh.d.ts +0 -100
  206. package/dist/types-ts4.0/i18n/zh_TW.d.ts +0 -100
  207. package/dist/types-ts4.0/icons/index.d.ts +0 -9
  208. package/dist/types-ts4.0/icons/shared/PanelErrorIcon.d.ts +0 -3
  209. package/dist/types-ts4.0/icons/shared/PanelInfoIcon.d.ts +0 -3
  210. package/dist/types-ts4.0/icons/shared/PanelNoteIcon.d.ts +0 -3
  211. package/dist/types-ts4.0/icons/shared/PanelSuccessIcon.d.ts +0 -3
  212. package/dist/types-ts4.0/icons/shared/PanelWarningIcon.d.ts +0 -3
  213. package/dist/types-ts4.0/icons/shared/table.d.ts +0 -2
  214. package/dist/types-ts4.0/in-product.d.ts +0 -1
  215. package/dist/types-ts4.0/index.d.ts +0 -1
  216. package/dist/types-ts4.0/keymaps/consts.d.ts +0 -12
  217. package/dist/types-ts4.0/keymaps/index.d.ts +0 -89
  218. package/dist/types-ts4.0/mention.d.ts +0 -2
  219. package/dist/types-ts4.0/messages/codeBidiWarning.d.ts +0 -11
  220. package/dist/types-ts4.0/messages/codeBlockCopyButton.d.ts +0 -12
  221. package/dist/types-ts4.0/messages/index.d.ts +0 -128
  222. package/dist/types-ts4.0/messages/insert-block.d.ts +0 -167
  223. package/dist/types-ts4.0/messages/link.d.ts +0 -7
  224. package/dist/types-ts4.0/messages/unsupportedContent.d.ts +0 -17
  225. package/dist/types-ts4.0/node-width/index.d.ts +0 -7
  226. package/dist/types-ts4.0/normalize-feature-flags.d.ts +0 -20
  227. package/dist/types-ts4.0/panel.d.ts +0 -1
  228. package/dist/types-ts4.0/provider-factory/autoformatting-provider.d.ts +0 -9
  229. package/dist/types-ts4.0/provider-factory/card-provider.d.ts +0 -7
  230. package/dist/types-ts4.0/provider-factory/context-identifier-provider.d.ts +0 -6
  231. package/dist/types-ts4.0/provider-factory/context.d.ts +0 -6
  232. package/dist/types-ts4.0/provider-factory/image-upload-provider.d.ts +0 -6
  233. package/dist/types-ts4.0/provider-factory/macro-provider.d.ts +0 -25
  234. package/dist/types-ts4.0/provider-factory/media-provider.d.ts +0 -15
  235. package/dist/types-ts4.0/provider-factory/profile-card-provider.d.ts +0 -6
  236. package/dist/types-ts4.0/provider-factory/provider-factory.d.ts +0 -17
  237. package/dist/types-ts4.0/provider-factory/quick-insert-provider.d.ts +0 -24
  238. package/dist/types-ts4.0/provider-factory/search-provider.d.ts +0 -12
  239. package/dist/types-ts4.0/provider-factory/types.d.ts +0 -37
  240. package/dist/types-ts4.0/provider-factory/with-providers.d.ts +0 -18
  241. package/dist/types-ts4.0/provider-factory.d.ts +0 -13
  242. package/dist/types-ts4.0/provider-helpers/combine-providers.d.ts +0 -9
  243. package/dist/types-ts4.0/provider-helpers/index.d.ts +0 -1
  244. package/dist/types-ts4.0/provider-helpers/promise-helpers.d.ts +0 -32
  245. package/dist/types-ts4.0/react-node-view/index.d.ts +0 -52
  246. package/dist/types-ts4.0/react-node-view/types.d.ts +0 -12
  247. package/dist/types-ts4.0/safe-plugin/index.d.ts +0 -6
  248. package/dist/types-ts4.0/selection/gap-cursor/selection.d.ts +0 -40
  249. package/dist/types-ts4.0/selection/gap-cursor/utils/index.d.ts +0 -2
  250. package/dist/types-ts4.0/selection/gap-cursor/utils/is-ignored.d.ts +0 -2
  251. package/dist/types-ts4.0/selection/gap-cursor/utils/is-valid-target-node.d.ts +0 -2
  252. package/dist/types-ts4.0/selection/index.d.ts +0 -5
  253. package/dist/types-ts4.0/selection/types.d.ts +0 -26
  254. package/dist/types-ts4.0/selection/utils.d.ts +0 -4
  255. package/dist/types-ts4.0/styles/index.d.ts +0 -23
  256. package/dist/types-ts4.0/styles/shared/annotation.d.ts +0 -12
  257. package/dist/types-ts4.0/styles/shared/block-marks.d.ts +0 -1
  258. package/dist/types-ts4.0/styles/shared/blockquote.d.ts +0 -1
  259. package/dist/types-ts4.0/styles/shared/code-block.d.ts +0 -10
  260. package/dist/types-ts4.0/styles/shared/code-mark.d.ts +0 -2
  261. package/dist/types-ts4.0/styles/shared/column-layout.d.ts +0 -2
  262. package/dist/types-ts4.0/styles/shared/date.d.ts +0 -5
  263. package/dist/types-ts4.0/styles/shared/emoji.d.ts +0 -7
  264. package/dist/types-ts4.0/styles/shared/extension.d.ts +0 -2
  265. package/dist/types-ts4.0/styles/shared/headings.d.ts +0 -2
  266. package/dist/types-ts4.0/styles/shared/indentation.d.ts +0 -1
  267. package/dist/types-ts4.0/styles/shared/layout.d.ts +0 -2
  268. package/dist/types-ts4.0/styles/shared/link.d.ts +0 -2
  269. package/dist/types-ts4.0/styles/shared/lists.d.ts +0 -1
  270. package/dist/types-ts4.0/styles/shared/media-single.d.ts +0 -3
  271. package/dist/types-ts4.0/styles/shared/mention.d.ts +0 -3
  272. package/dist/types-ts4.0/styles/shared/panel.d.ts +0 -84
  273. package/dist/types-ts4.0/styles/shared/paragraph.d.ts +0 -1
  274. package/dist/types-ts4.0/styles/shared/rule.d.ts +0 -2
  275. package/dist/types-ts4.0/styles/shared/shadow.d.ts +0 -15
  276. package/dist/types-ts4.0/styles/shared/smart-card.d.ts +0 -7
  277. package/dist/types-ts4.0/styles/shared/status.d.ts +0 -4
  278. package/dist/types-ts4.0/styles/shared/table.d.ts +0 -28
  279. package/dist/types-ts4.0/styles/shared/task-decision.d.ts +0 -4
  280. package/dist/types-ts4.0/styles/shared/text-color.d.ts +0 -1
  281. package/dist/types-ts4.0/styles/shared/whitespace.d.ts +0 -2
  282. package/dist/types-ts4.0/transforms/expand.d.ts +0 -5
  283. package/dist/types-ts4.0/transforms/extension.d.ts +0 -6
  284. package/dist/types-ts4.0/transforms/index.d.ts +0 -3
  285. package/dist/types-ts4.0/transforms/layout.d.ts +0 -15
  286. package/dist/types-ts4.0/type-ahead/index.d.ts +0 -12
  287. package/dist/types-ts4.0/types/annotation/emitter.d.ts +0 -33
  288. package/dist/types-ts4.0/types/annotation/index.d.ts +0 -84
  289. package/dist/types-ts4.0/types/collab.d.ts +0 -8
  290. package/dist/types-ts4.0/types/command.d.ts +0 -5
  291. package/dist/types-ts4.0/types/context-panel.d.ts +0 -3
  292. package/dist/types-ts4.0/types/editor-actions.d.ts +0 -19
  293. package/dist/types-ts4.0/types/editor-appearance.d.ts +0 -1
  294. package/dist/types-ts4.0/types/editor-container-width.d.ts +0 -6
  295. package/dist/types-ts4.0/types/editor-plugin.d.ts +0 -61
  296. package/dist/types-ts4.0/types/editor-react-context.d.ts +0 -6
  297. package/dist/types-ts4.0/types/empty-state-handler.d.ts +0 -7
  298. package/dist/types-ts4.0/types/feature-flags.d.ts +0 -350
  299. package/dist/types-ts4.0/types/floating-toolbar.d.ts +0 -189
  300. package/dist/types-ts4.0/types/index.d.ts +0 -33
  301. package/dist/types-ts4.0/types/plugin-factory.d.ts +0 -27
  302. package/dist/types-ts4.0/types/prosemirror-config.d.ts +0 -14
  303. package/dist/types-ts4.0/types/quick-insert.d.ts +0 -26
  304. package/dist/types-ts4.0/types/supported-browsers.d.ts +0 -15
  305. package/dist/types-ts4.0/types/toolbar.d.ts +0 -30
  306. package/dist/types-ts4.0/types/type-ahead.d.ts +0 -64
  307. package/dist/types-ts4.0/types/ui-components.d.ts +0 -22
  308. package/dist/types-ts4.0/ufo/experience-store.d.ts +0 -33
  309. package/dist/types-ts4.0/ufo/index.d.ts +0 -1
  310. package/dist/types-ts4.0/ui/BaseTheme/index.d.ts +0 -15
  311. package/dist/types-ts4.0/ui/Caption/index.d.ts +0 -19
  312. package/dist/types-ts4.0/ui/Caption/messages.d.ts +0 -7
  313. package/dist/types-ts4.0/ui/DropList/index.d.ts +0 -19
  314. package/dist/types-ts4.0/ui/Emoji/index.d.ts +0 -20
  315. package/dist/types-ts4.0/ui/ErrorBoundary/index.d.ts +0 -24
  316. package/dist/types-ts4.0/ui/EventHandlers/index.d.ts +0 -36
  317. package/dist/types-ts4.0/ui/Expand/index.d.ts +0 -43
  318. package/dist/types-ts4.0/ui/IntlErrorBoundary/index.d.ts +0 -15
  319. package/dist/types-ts4.0/ui/Layer/index.d.ts +0 -47
  320. package/dist/types-ts4.0/ui/Layer/internal/helpers.d.ts +0 -5
  321. package/dist/types-ts4.0/ui/MediaSingle/grid.d.ts +0 -10
  322. package/dist/types-ts4.0/ui/MediaSingle/index.d.ts +0 -24
  323. package/dist/types-ts4.0/ui/MediaSingle/link.d.ts +0 -1
  324. package/dist/types-ts4.0/ui/MediaSingle/styled.d.ts +0 -43
  325. package/dist/types-ts4.0/ui/Mention/index.d.ts +0 -21
  326. package/dist/types-ts4.0/ui/Mention/mention-with-profilecard.d.ts +0 -15
  327. package/dist/types-ts4.0/ui/Mention/mention-with-providers.d.ts +0 -22
  328. package/dist/types-ts4.0/ui/Mention/types.d.ts +0 -2
  329. package/dist/types-ts4.0/ui/Messages/index.d.ts +0 -11
  330. package/dist/types-ts4.0/ui/OverflowShadow/index.d.ts +0 -103
  331. package/dist/types-ts4.0/ui/OverflowShadow/shadowObserver.d.ts +0 -27
  332. package/dist/types-ts4.0/ui/Popup/index.d.ts +0 -63
  333. package/dist/types-ts4.0/ui/Popup/utils.d.ts +0 -42
  334. package/dist/types-ts4.0/ui/PortalProvider/PortalProviderThemesProvider.d.ts +0 -6
  335. package/dist/types-ts4.0/ui/PortalProvider/index.d.ts +0 -50
  336. package/dist/types-ts4.0/ui/UnsupportedBlock/index.d.ts +0 -14
  337. package/dist/types-ts4.0/ui/UnsupportedInline/index.d.ts +0 -14
  338. package/dist/types-ts4.0/ui/WidthProvider/index.d.ts +0 -29
  339. package/dist/types-ts4.0/ui/WithCreateAnalyticsEvent/index.d.ts +0 -6
  340. package/dist/types-ts4.0/ui/clear-next-sibling-margin-top.d.ts +0 -2
  341. package/dist/types-ts4.0/ui/index.d.ts +0 -25
  342. package/dist/types-ts4.0/ui/unsupported-content-helper.d.ts +0 -3
  343. package/dist/types-ts4.0/ui/with-outer-listeners.d.ts +0 -8
  344. package/dist/types-ts4.0/ui-color/ColorPalette/Color/index.d.ts +0 -19
  345. package/dist/types-ts4.0/ui-color/ColorPalette/Color/styles.d.ts +0 -4
  346. package/dist/types-ts4.0/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +0 -3
  347. package/dist/types-ts4.0/ui-color/ColorPalette/Palettes/common.d.ts +0 -2
  348. package/dist/types-ts4.0/ui-color/ColorPalette/Palettes/getColorMessage.d.ts +0 -2
  349. package/dist/types-ts4.0/ui-color/ColorPalette/Palettes/index.d.ts +0 -2
  350. package/dist/types-ts4.0/ui-color/ColorPalette/Palettes/paletteMessages.d.ts +0 -113
  351. package/dist/types-ts4.0/ui-color/ColorPalette/Palettes/panelBackgroundPalette.d.ts +0 -4
  352. package/dist/types-ts4.0/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +0 -4
  353. package/dist/types-ts4.0/ui-color/ColorPalette/Palettes/textColorPalette.d.ts +0 -3
  354. package/dist/types-ts4.0/ui-color/ColorPalette/Palettes/type.d.ts +0 -8
  355. package/dist/types-ts4.0/ui-color/ColorPalette/index.d.ts +0 -15
  356. package/dist/types-ts4.0/ui-color/ColorPalette/styles.d.ts +0 -1
  357. package/dist/types-ts4.0/ui-color/index.d.ts +0 -9
  358. package/dist/types-ts4.0/ui-menu/Dropdown/index.d.ts +0 -35
  359. package/dist/types-ts4.0/ui-menu/DropdownMenu/index.d.ts +0 -19
  360. package/dist/types-ts4.0/ui-menu/DropdownMenu/types.d.ts +0 -46
  361. package/dist/types-ts4.0/ui-menu/ToolbarButton/index.d.ts +0 -53
  362. package/dist/types-ts4.0/ui-menu/ToolbarButton/styles.d.ts +0 -4
  363. package/dist/types-ts4.0/ui-menu/index.d.ts +0 -5
  364. package/dist/types-ts4.0/ui-react/ReactEditorViewContext.d.ts +0 -8
  365. package/dist/types-ts4.0/ui-react/index.d.ts +0 -2
  366. package/dist/types-ts4.0/ui-react/with-react-editor-view-outer-listeners.d.ts +0 -9
  367. package/dist/types-ts4.0/utils/analytics.d.ts +0 -48
  368. package/dist/types-ts4.0/utils/annotation/index.d.ts +0 -8
  369. package/dist/types-ts4.0/utils/breakout.d.ts +0 -10
  370. package/dist/types-ts4.0/utils/browser-extensions.d.ts +0 -43
  371. package/dist/types-ts4.0/utils/browser.d.ts +0 -4
  372. package/dist/types-ts4.0/utils/compare-props.d.ts +0 -32
  373. package/dist/types-ts4.0/utils/compareNodes.d.ts +0 -31
  374. package/dist/types-ts4.0/utils/compose.d.ts +0 -30
  375. package/dist/types-ts4.0/utils/date.d.ts +0 -18
  376. package/dist/types-ts4.0/utils/dom.d.ts +0 -26
  377. package/dist/types-ts4.0/utils/editor-core-utils.d.ts +0 -24
  378. package/dist/types-ts4.0/utils/error-reporter.d.ts +0 -13
  379. package/dist/types-ts4.0/utils/extension-handler.d.ts +0 -2
  380. package/dist/types-ts4.0/utils/getModeFromTheme.d.ts +0 -1
  381. package/dist/types-ts4.0/utils/imageLoader.d.ts +0 -14
  382. package/dist/types-ts4.0/utils/index.d.ts +0 -45
  383. package/dist/types-ts4.0/utils/is-text-input.d.ts +0 -2
  384. package/dist/types-ts4.0/utils/macro.d.ts +0 -10
  385. package/dist/types-ts4.0/utils/nodes.d.ts +0 -35
  386. package/dist/types-ts4.0/utils/performance/hooks/use-component-render-tracking/index.d.ts +0 -19
  387. package/dist/types-ts4.0/utils/performance/is-performance-api-available.d.ts +0 -3
  388. package/dist/types-ts4.0/utils/performance/measure-render.d.ts +0 -41
  389. package/dist/types-ts4.0/utils/performance/measure-tti.d.ts +0 -14
  390. package/dist/types-ts4.0/utils/performance/measure.d.ts +0 -3
  391. package/dist/types-ts4.0/utils/performance/navigation.d.ts +0 -1
  392. package/dist/types-ts4.0/utils/plugin-state-factory.d.ts +0 -16
  393. package/dist/types-ts4.0/utils/profiler/render-count.d.ts +0 -50
  394. package/dist/types-ts4.0/utils/should-force-tracking.d.ts +0 -1
  395. package/dist/types-ts4.0/utils/slice.d.ts +0 -11
  396. package/dist/types-ts4.0/utils/table.d.ts +0 -4
  397. package/dist/types-ts4.0/utils/track-unsupported-content.d.ts +0 -8
  398. package/dist/types-ts4.0/utils/traversor.d.ts +0 -9
  399. package/dist/types-ts4.0/utils/types.d.ts +0 -2
  400. package/dist/types-ts4.0/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +0 -57
  401. package/dist/types-ts4.0/utils/validate-using-spec.d.ts +0 -19
  402. package/dist/types-ts4.0/utils/validator.d.ts +0 -42
  403. package/dist/types-ts4.0/utils/whitespace.d.ts +0 -2
  404. package/dist/types-ts4.0/validator.d.ts +0 -2
  405. package/dist/types-ts4.0/with-plugin-state/index.d.ts +0 -86
  406. package/dist/types-ts4.0/with-plugin-state/types.d.ts +0 -10
@@ -1,19 +0,0 @@
1
- import { Node } from 'prosemirror-model';
2
- import { EditorView } from 'prosemirror-view';
3
- import { JSONDocNode } from '@atlaskit/editor-json-transformer';
4
- import { ResolvedEditorState } from '../collab';
5
- import { EventDispatcher } from '../event-dispatcher';
6
- export declare type ContextUpdateHandler = (editorView: EditorView, eventDispatcher: EventDispatcher) => void;
7
- export interface EditorActionsOptions<T = any> {
8
- focus(): boolean;
9
- blur(): boolean;
10
- clear(): boolean;
11
- getValue(): Promise<T | JSONDocNode | undefined>;
12
- getNodeByLocalId(id: string): Node | undefined;
13
- getSelectedNode(): Node | undefined;
14
- replaceDocument(rawValue: any): boolean;
15
- replaceSelection(rawValue: Node | Object | string): boolean;
16
- appendText(text: string): boolean;
17
- isDocumentEmpty(): boolean;
18
- getResolvedEditorState(): Promise<ResolvedEditorState | undefined>;
19
- }
@@ -1 +0,0 @@
1
- export declare type EditorAppearance = 'comment' | 'full-page' | 'full-width' | 'chromeless' | 'mobile';
@@ -1,6 +0,0 @@
1
- export declare type EditorContainerWidth = {
2
- width: number;
3
- containerWidth?: number;
4
- lineLength?: number;
5
- };
6
- export declare type GetEditorContainerWidth = () => EditorContainerWidth;
@@ -1,61 +0,0 @@
1
- import type { EditorState, Transaction } from 'prosemirror-state';
2
- import type { ContextPanelHandler } from './context-panel';
3
- import type { FloatingToolbarHandler } from './floating-toolbar';
4
- import type { PMPlugin } from './plugin-factory';
5
- import type { MarkConfig, NodeConfig } from './prosemirror-config';
6
- import type { QuickInsertHandler } from './quick-insert';
7
- import type { ToolbarUIComponentFactory } from './toolbar';
8
- import type { TypeAheadHandler } from './type-ahead';
9
- import type { UIComponentFactory } from './ui-components';
10
- export declare type PluginsOptions = {
11
- [pluginName: string]: any;
12
- quickInsert?: QuickInsertHandler;
13
- typeAhead?: TypeAheadHandler;
14
- floatingToolbar?: FloatingToolbarHandler;
15
- contextPanel?: ContextPanelHandler;
16
- };
17
- declare type EditorViewStateUpdatedCallbackProps = {
18
- readonly originalTransaction: Readonly<Transaction>;
19
- readonly transactions: Transaction[];
20
- readonly oldEditorState: Readonly<EditorState>;
21
- readonly newEditorState: Readonly<EditorState>;
22
- };
23
- export interface EditorPlugin {
24
- /**
25
- * Name of a plugin, that other plugins can use to provide options to it or exclude via a preset.
26
- */
27
- name: string;
28
- /**
29
- * Options that will be passed to a plugin with a corresponding name if it exists and enabled.
30
- */
31
- pluginsOptions?: PluginsOptions;
32
- /**
33
- * List of ProseMirror-plugins. This is where we define which plugins will be added to EditorView (main-plugin, keybindings, input-rules, etc.).
34
- */
35
- pmPlugins?: (pluginOptions?: any) => Array<PMPlugin>;
36
- /**
37
- * List of Nodes to add to the schema.
38
- */
39
- nodes?: () => NodeConfig[];
40
- /**
41
- * List of Marks to add to the schema.
42
- */
43
- marks?: () => MarkConfig[];
44
- /**
45
- * Optional UI-component that lives inside the actual content-area (like mention-picker, floating toolbar for links, etc.)
46
- */
47
- contentComponent?: UIComponentFactory;
48
- /**
49
- * Optional UI-component that will be added to the toolbar at the top of the editor (doesn't exist in the compact-editor).
50
- */
51
- primaryToolbarComponent?: ToolbarUIComponentFactory;
52
- /**
53
- * Optional UI-component that will be added to the toolbar at the bottom right of the editor. (doesn't exist in the full-page editor)
54
- * In compact mode this toolbar lives on the right-hand side of the editor.
55
- */
56
- secondaryToolbarComponent?: UIComponentFactory;
57
- onEditorViewStateUpdated?: (props: EditorViewStateUpdatedCallbackProps) => void;
58
- }
59
- export declare type getPosHandler = getPosHandlerNode | boolean;
60
- export declare type getPosHandlerNode = () => number;
61
- export {};
@@ -1,6 +0,0 @@
1
- import type { IntlShape } from 'react-intl-next';
2
- import type { UIAnalyticsEventHandler } from '@atlaskit/analytics-next';
3
- export declare type EditorReactContext = {
4
- getAtlaskitAnalyticsEventHandlers: () => UIAnalyticsEventHandler[];
5
- intl: IntlShape;
6
- };
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type EmptyStateHandler = (params: EmptyStateHandlerParams) => React.ReactElement<any> | null;
3
- export declare type EmptyStateHandlerParams = {
4
- mode: string;
5
- selectedCategory?: string;
6
- searchTerm?: string;
7
- };
@@ -1,350 +0,0 @@
1
- import type { DisableSpellcheckByBrowser } from './supported-browsers';
2
- /**
3
- * Feature Flags for experimental features/behaviours.
4
- *
5
- * This feature flags are not meant to be used as plugin configuration and are only for temporary flags that will eventually be enabled be default or removed.
6
- * If your plugin requires permanent configuration options it's better to keep them in plugin options.
7
- *
8
- * # ADDING NEW FEATURE FLAG
9
- *
10
- * – Every feature flag must have a description explaining what it's meant to be doing.
11
- * – Every feature flag must have an associated ticket and a DUE DATE when this flag will be removed and an owner who will remove it.
12
- *
13
- * ## TEMPLATE
14
- *
15
- * When adding a new feature flag use the following template:
16
- *
17
- * ```
18
- * @description
19
- * What this feature flag is doing. Do not lead with "Feature flag to".
20
- *
21
- * @see https://product-fabric.atlassian.net/browse/ED-1
22
- * @default false
23
- * ```
24
- *
25
- * ## NAMING
26
- * – Name feature flags without `allow`.
27
- * – A name should read as "Feature flag to enable ...".
28
- *
29
- * Example: name = "newInsertionBehaviour" -> "Enable new insertion behaviour"
30
- */
31
- export declare type FeatureFlags = {
32
- /**
33
- * @description Enable single layout option
34
- *
35
- * @see https://hello.atlassian.net/browse/LOVE-187
36
- * @default false
37
- */
38
- singleLayout?: boolean;
39
- /**
40
- * @description Enable new insertion behaviour
41
- *
42
- * @see https://product-fabric.atlassian.net/l/c/JYoSEu00
43
- * @default false
44
- */
45
- newInsertionBehaviour?: boolean;
46
- /**
47
- * @description Allows to toggle expand open state
48
- * @default true
49
- */
50
- interactiveExpand?: boolean;
51
- /**
52
- * @description
53
- * Whether a placeholder bracket hint was provided (`string => boolean`)
54
- * Placeholder text to be displayed when a bracket '{' is typed and the line is empty e.g. 'Did you mean to use '/' to insert content?'
55
- * This is used to aid migration for TinyMCE power users to the new Fabric editor power user shortcuts.
56
- *
57
- * @see https://product-fabric.atlassian.net/l/c/4JLjusAP
58
- * @default true
59
- */
60
- placeholderBracketHint?: boolean;
61
- /**
62
- * @description
63
- * Whether placeholder hints were provided (`string[] => boolean`)
64
- * Placeholder text values to display on new empty lines.
65
- *
66
- * @see https://product-fabric.atlassian.net/l/c/GG1Yv9cK
67
- * @default false
68
- */
69
- placeholderHints?: boolean;
70
- /**
71
- * @description
72
- * Enable additional text colours within the colour palette.
73
- *
74
- * @see https://product-fabric.atlassian.net/l/c/YhyvfWqg
75
- * @default false
76
- */
77
- moreTextColors?: boolean;
78
- /**
79
- * @description
80
- * Enable find/replace functionality within the editor
81
- *
82
- * @see https://product-fabric.atlassian.net/browse/ED-3504
83
- * @default false
84
- */
85
- findReplace?: boolean;
86
- /**
87
- * @description
88
- * Enable case matching functionality in find/replace feature within the editor
89
- *
90
- * @see https://product-fabric.atlassian.net/browse/ED-9684
91
- * @default false
92
- */
93
- findReplaceMatchCase?: boolean;
94
- /**
95
- * @description
96
- * Enable `localId` generation for extensions.
97
- *
98
- * @see https://product-fabric.atlassian.net/l/c/2m0i9jLX
99
- * @default false
100
- */
101
- extensionLocalIdGeneration?: boolean;
102
- /**
103
- * @description
104
- * Enable date picker which has a textbox for internationalised keyboard date
105
- * input.
106
- *
107
- * @see https://product-fabric.atlassian.net/browse/ED-8928
108
- * @default false
109
- */
110
- keyboardAccessibleDatepicker?: boolean;
111
- /**
112
- * @description
113
- * Enable add column custom step
114
- *
115
- * @see https://product-fabric.atlassian.net/browse/ED-8856
116
- * @default false
117
- */
118
- addColumnWithCustomStep?: boolean;
119
- /**
120
- * @description
121
- * Enable undo/redo buttons and functionality within the editor
122
- *
123
- * @see https://product-fabric.atlassian.net/browse/ED-9537
124
- * @default false
125
- */
126
- undoRedoButtons?: boolean;
127
- /**
128
- * @description
129
- * Measure render performance for all tracked analytics events
130
- *
131
- * @default false
132
- */
133
- catchAllTracking?: boolean;
134
- /**
135
- * @description
136
- * Enables performance optimization for sticky headers in tables
137
- *
138
- * @see https://product-fabric.atlassian.net/browse/ED-11807
139
- * @default false
140
- */
141
- stickyHeadersOptimization?: boolean;
142
- /**
143
- * @description
144
- * Enables performance optimization for initial table render
145
- *
146
- * @see https://product-fabric.atlassian.net/browse/ED-11647
147
- * @default false
148
- */
149
- initialRenderOptimization?: boolean;
150
- /**
151
- * @description
152
- * Enables performance optimization for mousemove inside table
153
- *
154
- * @see https://product-fabric.atlassian.net/browse/ED-11577
155
- * @default false
156
- */
157
- mouseMoveOptimization?: boolean;
158
- /**
159
- * @description
160
- * Enables performance optimization for table rendering on keypress
161
- *
162
- * @see https://product-fabric.atlassian.net/browse/ED-11640
163
- * @default false
164
- */
165
- tableRenderOptimization?: boolean;
166
- /**
167
- * @description
168
- * Enables performance optimization for table rendering on keypress
169
- *
170
- * @see https://product-fabric.atlassian.net/browse/ED-11781
171
- * @default false
172
- */
173
- tableOverflowShadowsOptimization?: boolean;
174
- /**
175
- * @description
176
- * Yield to user interaction work before sending analytics
177
- *
178
- * @see https://product-fabric.atlassian.net/browse/ED-10584
179
- * @default false
180
- */
181
- queueAnalytics?: boolean;
182
- /**
183
- * Enable extend floating toolbars
184
- * @see https://product-fabric.atlassian.net/browse/ED-11963
185
- * @default false
186
- */
187
- extendFloatingToolbar?: boolean;
188
- /**
189
- * Set editor to use the input rule with unpredictable undo results
190
- * @see https://product-fabric.atlassian.net/browse/ED-12676
191
- * @default true
192
- */
193
- useUnpredictableInputRule?: boolean;
194
- /**
195
- * Show the avatar group as a plugin
196
- * @see https://product-fabric.atlassian.net/browse/CERN-747
197
- * @default false
198
- */
199
- showAvatarGroupAsPlugin?: boolean;
200
- /**
201
- * @description
202
- * Enables docStructure for unhandleErrorEvents
203
- *
204
- * @see https://product-fabric.atlassian.net/browse/ED-12998
205
- * @default false
206
- */
207
- errorBoundaryDocStructure?: boolean;
208
- /**
209
- * @description
210
- * Enables docStructure for synchronyError
211
- *
212
- * @see https://product-fabric.atlassian.net/browse/ED-12998
213
- * @default false
214
- */
215
- synchronyErrorDocStructure?: boolean;
216
- /**
217
- * @decsription
218
- * Enables the view update subscription plugin
219
- *
220
- * @default false
221
- */
222
- enableViewUpdateSubscription?: boolean;
223
- /**
224
- * @description
225
- * Enable scroll-to-telepointer for collab avatars
226
- *
227
- * @see https://product-fabric.atlassian.net/browse/ED-12460
228
- * @default false
229
- */
230
- collabAvatarScroll?: boolean;
231
- /**
232
- * @description
233
- * Enable UFO experiences
234
- *
235
- * @see https://product-fabric.atlassian.net/browse/ED-13059
236
- * @default false
237
- */
238
- ufo?: boolean;
239
- /**
240
- * Split editor toolbar to two lines when viewport is small
241
- * @see https://product-fabric.atlassian.net/browse/CERN-1124
242
- * @default false
243
- */
244
- twoLineEditorToolbar?: boolean;
245
- /**
246
- * Prevent transactions from being mutated (e.g. apply, filterTransaction,
247
- * appendTransaction) after being dispatched
248
- * @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/3131836958/Editor+DACI+013+Avoid+content+loss+with+bad+transactions+Ghost+Steps
249
- * @see https://product-fabric.atlassian.net/browse/ED-14002
250
- * @default false
251
- */
252
- saferDispatchedTransactions?: boolean;
253
- /**
254
- * Create non-smart hyperlinks on plain text paste (Cmd/Ctrl+Shift+v)
255
- * @see https://product-fabric.atlassian.net/browse/EDM-2492
256
- * @default false
257
- */
258
- plainTextPasteLinkification?: boolean;
259
- /**
260
- * @description
261
- * Enable new collab service
262
- * @see https://product-fabric.atlassian.net/browse/ED-14097
263
- * @default false
264
- */
265
- useNativeCollabPlugin?: boolean;
266
- /**
267
- * Enable custom up/down key handler when cursor below/above an inline media
268
- * @see https://product-fabric.atlassian.net/browse/ED-13066
269
- * Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1227468
270
- * @default undefined
271
- */
272
- chromeCursorHandlerFixedVersion?: number;
273
- /**
274
- * Enable table cell options in the floating toolbar
275
- * @see https://product-fabric.atlassian.net/browse/ED-14418
276
- * @default false
277
- */
278
- tableCellOptionsInFloatingToolbar?: boolean;
279
- /**
280
- * Number to distinguish between which different toolbar is being displayed
281
- * as part of the smart link view changing experiment run by the Linking Platform.
282
- * @see https://product-fabric.atlassian.net/browse/EDM-2640
283
- * @default null
284
- */
285
- viewChangingExperimentToolbarStyle?: string;
286
- /**
287
- * @description
288
- * Enable display of a preview modal on mouse over of inline smart card
289
- *
290
- * @see https://product-fabric.atlassian.net/browse/EDM-2860
291
- * @default false
292
- */
293
- showHoverPreview?: boolean;
294
- /**
295
- * @description
296
- * Generic way of disabling spellcheck per browser by version range
297
- *
298
- * @see https://product-fabric.atlassian.net/browse/ED-14510
299
- * @default {}
300
- * Example:
301
- * {
302
- * ie: {
303
- * minimum: 101,
304
- * },
305
- * chrome: {
306
- * minimum: 96,
307
- * maximum: 109,
308
- * },
309
- * };
310
- */
311
- disableSpellcheckByBrowser?: DisableSpellcheckByBrowser | undefined;
312
- /**
313
- * @description
314
- * Show indentation buttons in the Editor toolbar
315
- *
316
- * @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/3237512038/EXPLORE+Indentation+buttons+in+the+Editor+toolbar
317
- * @see https://product-fabric.atlassian.net/browse/ED-15067
318
- * @default false
319
- */
320
- indentationButtonsInTheToolbar?: boolean;
321
- /**
322
- * @description
323
- * Show copy buttons in the Floating toolbar
324
- *
325
- * @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/3237609689/Cubone+Mini+project+-+Copy+button+in+the+floating+toolbar
326
- * @see https://product-fabric.atlassian.net/browse/ED-15090
327
- * @default false
328
- */
329
- floatingToolbarCopyButton?: boolean;
330
- /**
331
- * @description
332
- * Use the linking platform link picker for link insertion and edit
333
- *
334
- * @see https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3158246501/PP+Link+Picker+-+Standalone
335
- * @see https://product-fabric.atlassian.net/browse/EDM-2577
336
- * @default false
337
- */
338
- lpLinkPicker?: boolean;
339
- /**
340
- * @description
341
- * Show link settings button in the Floating toolbar
342
- *
343
- * @see https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3199172609/POP+Some+users+need+to+work+with+URLs+to+get+their+job+done
344
- * @see https://product-fabric.atlassian.net/browse/EDM-3268
345
- * @default null
346
- */
347
- floatingToolbarLinkSettingsButton?: string;
348
- };
349
- export declare type FeatureFlagKey = keyof FeatureFlags;
350
- export declare type GetEditorFeatureFlags = () => FeatureFlags;
@@ -1,189 +0,0 @@
1
- import type React from 'react';
2
- import { Node, NodeType } from 'prosemirror-model';
3
- import { EditorState } from 'prosemirror-state';
4
- import { EditorView } from 'prosemirror-view';
5
- import { IntlShape } from 'react-intl-next';
6
- import type { EmojiId } from '@atlaskit/emoji/types';
7
- import type { DispatchAnalyticsEvent } from '../analytics/types/dispatch-analytics-event';
8
- import type { ProviderFactory } from '../provider-factory';
9
- import type { PaletteColor } from '../ui-color/ColorPalette/Palettes/type';
10
- import type { Command } from './command';
11
- export interface RenderOptionsPropsT<T> {
12
- hide: () => void;
13
- dispatchCommand: (command: T) => void;
14
- }
15
- export interface DropdownOptionT<T> {
16
- id?: string;
17
- title: string;
18
- onClick: T;
19
- selected?: boolean;
20
- disabled?: boolean;
21
- hidden?: boolean;
22
- testId?: string;
23
- tooltip?: string;
24
- elemAfter?: React.ReactNode;
25
- }
26
- export declare type DropdownOptions<T> = Array<DropdownOptionT<T>> | {
27
- render: (props: RenderOptionsPropsT<T>) => React.ReactElement<any> | null;
28
- height: number;
29
- width: number;
30
- };
31
- export interface SelectOption<T = unknown> {
32
- value: string;
33
- label: string;
34
- selected?: boolean;
35
- disabled?: boolean;
36
- hidden?: boolean;
37
- data?: T;
38
- }
39
- export declare type ButtonAppearance = 'subtle' | 'danger';
40
- export declare type Icon = React.ComponentType<{
41
- label: string;
42
- }>;
43
- export declare type RenderOptionsProps = RenderOptionsPropsT<Command>;
44
- export declare type AlignType = 'left' | 'center' | 'right';
45
- interface Position {
46
- top?: number;
47
- right?: number;
48
- bottom?: number;
49
- left?: number;
50
- }
51
- export interface ConfirmDialogOptions {
52
- title?: string;
53
- message: string;
54
- okButtonLabel?: string;
55
- cancelButtonLabel?: string;
56
- }
57
- export declare type FloatingToolbarButton<T> = {
58
- id?: string;
59
- type: 'button';
60
- title: string;
61
- onClick: T;
62
- showTitle?: boolean;
63
- onMouseEnter?: T;
64
- onMouseLeave?: T;
65
- onFocus?: T;
66
- onBlur?: T;
67
- icon?: Icon;
68
- selected?: boolean;
69
- disabled?: boolean;
70
- hidden?: boolean;
71
- appearance?: ButtonAppearance;
72
- href?: string;
73
- target?: string;
74
- className?: string;
75
- tooltipContent?: React.ReactNode;
76
- testId?: string;
77
- hideTooltipOnClick?: boolean;
78
- confirmDialog?: ConfirmDialogOptions;
79
- metadata?: {
80
- [key: string]: string;
81
- };
82
- ariaHasPopup?: boolean | 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid' | undefined;
83
- tabIndex?: number | null | undefined;
84
- };
85
- export declare type FloatingToolbarInput<T> = {
86
- id: string;
87
- type: 'input';
88
- title?: string;
89
- description?: string;
90
- onSubmit: (...args: any[]) => T;
91
- onBlur: (...args: any[]) => T;
92
- defaultValue?: string;
93
- placeholder?: string;
94
- hidden?: boolean;
95
- };
96
- export declare type FloatingToolbarCustom<T> = {
97
- type: 'custom';
98
- fallback: Array<FloatingToolbarFallbackItem<T>>;
99
- render: (view?: EditorView, idx?: number, dispatchAnalyticsEvent?: DispatchAnalyticsEvent) => React.ComponentClass | React.SFC | React.ReactElement<any> | null;
100
- hidden?: boolean;
101
- };
102
- declare type FloatingToolbarSelectBase<T, V = SelectOption> = {
103
- id: string;
104
- type: 'select';
105
- selectType: 'list' | 'emoji' | 'date' | 'color';
106
- title?: string;
107
- options: V[];
108
- hidden?: boolean;
109
- hideExpandIcon?: boolean;
110
- defaultValue?: V | null;
111
- placeholder?: string;
112
- onChange: (selected: V) => T;
113
- filterOption?: ((option: V, rawInput: string) => boolean) | null;
114
- };
115
- export declare type FloatingToolbarListPicker<T> = FloatingToolbarSelectBase<T> & {
116
- selectType: 'list';
117
- };
118
- export declare type FloatingToolbarColorPicker<T> = FloatingToolbarSelectBase<T, PaletteColor> & {
119
- selectType: 'color';
120
- };
121
- export declare type FloatingToolbarEmojiPicker<T> = FloatingToolbarSelectBase<T, EmojiId> & {
122
- selectType: 'emoji';
123
- selected?: boolean;
124
- options: never[];
125
- };
126
- export declare type FloatingToolbarDatePicker<T> = FloatingToolbarSelectBase<T, number> & {
127
- selectType: 'date';
128
- options: never[];
129
- };
130
- export declare type FloatingToolbarSelect<T> = FloatingToolbarEmojiPicker<T> | FloatingToolbarColorPicker<T> | FloatingToolbarListPicker<T> | FloatingToolbarDatePicker<T>;
131
- export declare type FloatingToolbarSeparator = {
132
- type: 'separator';
133
- hidden?: boolean;
134
- };
135
- export declare type FloatingToolbarDropdown<T> = {
136
- id?: string;
137
- type: 'dropdown';
138
- title: string;
139
- icon?: Icon;
140
- options: DropdownOptions<T>;
141
- hidden?: boolean;
142
- hideExpandIcon?: boolean;
143
- disabled?: boolean;
144
- tooltip?: string;
145
- dropdownWidth?: number;
146
- showSelected?: boolean;
147
- };
148
- declare type FloatingToolbarExtensionsPlaceholder = {
149
- type: 'extensions-placeholder';
150
- hidden?: boolean;
151
- separator?: 'start' | 'end' | 'both';
152
- };
153
- /**
154
- * This additional type is introduced in order to prevent infinite loop due to
155
- * `extract-react-types-loader`. The issue occurs when custom type `fallback` field
156
- * is an array of FloatingToolbarItem. Since FloatingToolbarItem is a FloatingToolbarCustom
157
- * type, it stucks in an infinite loop. Custom - Item -> Custom .... go on.
158
- *
159
- * This type is restricted with the items that can be used for fallback.
160
- * Make sure that this type is not a FloatingToolbarCustom type.
161
- */
162
- export declare type FloatingToolbarFallbackItem<T> = FloatingToolbarButton<T> | FloatingToolbarDropdown<T> | FloatingToolbarSelect<T> | FloatingToolbarInput<T> | FloatingToolbarSeparator;
163
- export declare type FloatingToolbarItem<T> = FloatingToolbarButton<T> | FloatingToolbarDropdown<T> | FloatingToolbarSelect<T> | FloatingToolbarInput<T> | FloatingToolbarCustom<T> | FloatingToolbarSeparator | FloatingToolbarExtensionsPlaceholder;
164
- export interface FloatingToolbarConfig {
165
- title: string;
166
- /**
167
- * Override the DOM reference used to apply as the target for the
168
- * floating toolbar, if the config matches.
169
- *
170
- * By default, it will find the DOM reference of the node from the
171
- * head of the current selection.
172
- */
173
- getDomRef?: (view: EditorView) => HTMLElement | undefined;
174
- visible?: boolean;
175
- nodeType: NodeType | NodeType[];
176
- items: Array<FloatingToolbarItem<Command>> | ((node: Node) => Array<FloatingToolbarItem<Command>>);
177
- align?: AlignType;
178
- className?: string;
179
- height?: number;
180
- width?: number;
181
- offset?: [
182
- number,
183
- number
184
- ];
185
- forcePlacement?: boolean;
186
- onPositionCalculated?: (editorView: EditorView, nextPos: Position) => Position;
187
- }
188
- export declare type FloatingToolbarHandler = (state: EditorState, intl: IntlShape, providerFactory: ProviderFactory) => FloatingToolbarConfig | undefined;
189
- export {};
@@ -1,33 +0,0 @@
1
- import { Node } from 'prosemirror-model';
2
- export interface Transformer<T> {
3
- encode(node: Node): T;
4
- parse(content: T): Node;
5
- }
6
- export declare enum SortOrder {
7
- ASC = "asc",
8
- DESC = "desc",
9
- NO_ORDER = "no_order"
10
- }
11
- export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation';
12
- export type { AnnotationState, AnnotationProviders, AnnotationUpdateEventPayloads, InlineCommentSelectionComponentProps, InlineCommentViewComponentProps, InlineCommentAnnotationProvider, OnAnnotationClickPayload, AnnotationByMatches, AnnotationActionResult, } from './annotation';
13
- export type { ContextUpdateHandler, EditorActionsOptions, } from './editor-actions';
14
- export type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler, } from './type-ahead';
15
- export type { NewCollabSyncUpErrorAttributes, SyncUpErrorFunction, } from './collab';
16
- export type { CommandDispatch, Command, HigherOrderCommand } from './command';
17
- export type { FeatureFlags, FeatureFlagKey, GetEditorFeatureFlags, } from './feature-flags';
18
- export type { Browsers, Range, DisableSpellcheckByBrowser, } from './supported-browsers';
19
- export type { EditorContainerWidth, GetEditorContainerWidth, } from './editor-container-width';
20
- export type { EmptyStateHandler, EmptyStateHandlerParams, } from './empty-state-handler';
21
- export type { RenderOptionsPropsT, DropdownOptionT, DropdownOptions, SelectOption, ButtonAppearance, Icon, RenderOptionsProps, AlignType, ConfirmDialogOptions, FloatingToolbarButton, FloatingToolbarInput, FloatingToolbarCustom, FloatingToolbarListPicker, FloatingToolbarColorPicker, FloatingToolbarEmojiPicker, FloatingToolbarDatePicker, FloatingToolbarSelect, FloatingToolbarSeparator, FloatingToolbarDropdown, FloatingToolbarFallbackItem, FloatingToolbarItem, FloatingToolbarConfig, FloatingToolbarHandler, } from './floating-toolbar';
22
- export type { ContextPanelHandler } from './context-panel';
23
- export type { EditorAppearance } from './editor-appearance';
24
- export type { ToolbarUiComponentFactoryParams, ToolbarUIComponentFactory, } from './toolbar';
25
- export { ToolbarSize, ToolbarWidths, ToolbarWidthsFullPage } from './toolbar';
26
- export type { UiComponentFactoryParams, UIComponentFactory, } from './ui-components';
27
- export type { EditorReactContext } from './editor-react-context';
28
- export type { PMPluginFactoryParams, PMPluginFactory, PMPlugin, } from './plugin-factory';
29
- export type { NodeConfig, MarkConfig, NodeViewConfig, } from './prosemirror-config';
30
- export type { PluginsOptions, EditorPlugin, getPosHandler, getPosHandlerNode, } from './editor-plugin';
31
- export declare type IconProps = {
32
- label?: string;
33
- };