@atlaskit/editor-core 220.4.2 → 220.4.4

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 (348) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/CollapsedEditor/package.json +1 -8
  3. package/ContextPanel/package.json +1 -8
  4. package/EditorContext/package.json +1 -8
  5. package/ReactEditorView/package.json +1 -8
  6. package/ToolbarHelp/package.json +1 -8
  7. package/ToolbarPortal/package.json +1 -8
  8. package/WithEditorActions/package.json +1 -8
  9. package/WithHelpTrigger/package.json +1 -8
  10. package/actions/package.json +1 -8
  11. package/appearance-editor-chromeless/package.json +1 -8
  12. package/appearance-editor-comment/package.json +1 -8
  13. package/appearance-editor-full-page/package.json +1 -8
  14. package/appearance-editor-full-width/package.json +1 -8
  15. package/command/package.json +1 -8
  16. package/composable-editor/package.json +1 -8
  17. package/create-plugins-list/package.json +1 -8
  18. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +9 -2
  19. package/dist/cjs/utils/outdatedBrowsers.js +4 -5
  20. package/dist/cjs/version-wrapper.js +1 -1
  21. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +9 -2
  22. package/dist/es2019/utils/outdatedBrowsers.js +4 -5
  23. package/dist/es2019/version-wrapper.js +1 -1
  24. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +9 -2
  25. package/dist/esm/utils/outdatedBrowsers.js +4 -5
  26. package/dist/esm/version-wrapper.js +1 -1
  27. package/editor/package.json +1 -8
  28. package/editor-context/package.json +1 -8
  29. package/editor-instance/package.json +1 -8
  30. package/editor-props/package.json +1 -8
  31. package/exclude-from-hydration/package.json +1 -8
  32. package/feature-flags-from-props/package.json +1 -8
  33. package/getNodesCount/package.json +1 -8
  34. package/i18n/package.json +1 -8
  35. package/i18n-languages/package.json +1 -8
  36. package/labs-next/package.json +1 -8
  37. package/measure-enum/package.json +1 -8
  38. package/package.json +6 -3
  39. package/preset-default/package.json +1 -8
  40. package/preset-universal/package.json +1 -8
  41. package/preset-universal/universal/package.json +1 -8
  42. package/preset-universal/useUniversalPreset/package.json +1 -8
  43. package/test-utils/package.json +1 -8
  44. package/use-preset/package.json +1 -8
  45. package/use-preset-context/package.json +1 -8
  46. package/version-wrapper/package.json +1 -8
  47. package/dist/types-ts4.5/CollapsedEditor/index.d.ts +0 -26
  48. package/dist/types-ts4.5/actions/index.d.ts +0 -97
  49. package/dist/types-ts4.5/actions/isEmptyParagraph.d.ts +0 -5
  50. package/dist/types-ts4.5/actions/temp-is-empty-document.d.ts +0 -11
  51. package/dist/types-ts4.5/actions/temp-nodes-by-localids.d.ts +0 -7
  52. package/dist/types-ts4.5/actions/temp-to-json.d.ts +0 -3
  53. package/dist/types-ts4.5/composable-editor/BaseThemeWrapper.d.ts +0 -7
  54. package/dist/types-ts4.5/composable-editor/composable-editor.d.ts +0 -3
  55. package/dist/types-ts4.5/composable-editor/core-editor.d.ts +0 -15
  56. package/dist/types-ts4.5/composable-editor/editor-inp-metrics.d.ts +0 -1
  57. package/dist/types-ts4.5/composable-editor/editor-internal-compiled.d.ts +0 -15
  58. package/dist/types-ts4.5/composable-editor/editor-internal-emotion.d.ts +0 -15
  59. package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +0 -38
  60. package/dist/types-ts4.5/composable-editor/hooks/useEditorMeasuresConstructor.d.ts +0 -10
  61. package/dist/types-ts4.5/composable-editor/hooks/useMeasureEditorMountTime.d.ts +0 -11
  62. package/dist/types-ts4.5/composable-editor/hooks/useMemoEditorProps.d.ts +0 -7
  63. package/dist/types-ts4.5/composable-editor/hooks/useProviderFactory.d.ts +0 -14
  64. package/dist/types-ts4.5/composable-editor/hooks/useProviders.d.ts +0 -40
  65. package/dist/types-ts4.5/composable-editor/utils/getBaseFontSize.d.ts +0 -6
  66. package/dist/types-ts4.5/composable-editor/utils/getProvidersFromEditorProps.d.ts +0 -9
  67. package/dist/types-ts4.5/composable-editor/utils/handleProviders.d.ts +0 -12
  68. package/dist/types-ts4.5/composable-editor/utils/sendDurationAnalytics.d.ts +0 -13
  69. package/dist/types-ts4.5/composable-editor.d.ts +0 -2
  70. package/dist/types-ts4.5/create-editor/ErrorBoundary.d.ts +0 -53
  71. package/dist/types-ts4.5/create-editor/ReactEditorView/focusEditorElement.d.ts +0 -1
  72. package/dist/types-ts4.5/create-editor/ReactEditorView/formatFullWidthAppearance.d.ts +0 -3
  73. package/dist/types-ts4.5/create-editor/ReactEditorView/getUAPrefix.d.ts +0 -1
  74. package/dist/types-ts4.5/create-editor/ReactEditorView/handleEditorFocus.d.ts +0 -2
  75. package/dist/types-ts4.5/create-editor/ReactEditorView/useDispatchTransaction.d.ts +0 -13
  76. package/dist/types-ts4.5/create-editor/ReactEditorView/useFireFullWidthEvent.d.ts +0 -3
  77. package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +0 -55
  78. package/dist/types-ts4.5/create-editor/WithEditorView.d.ts +0 -6
  79. package/dist/types-ts4.5/create-editor/addMetadataAttributes.d.ts +0 -16
  80. package/dist/types-ts4.5/create-editor/consts.d.ts +0 -3
  81. package/dist/types-ts4.5/create-editor/create-editor.d.ts +0 -3
  82. package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +0 -13
  83. package/dist/types-ts4.5/create-editor/create-schema.d.ts +0 -36
  84. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +0 -7
  85. package/dist/types-ts4.5/create-editor/createErrorReporter.d.ts +0 -3
  86. package/dist/types-ts4.5/create-editor/createPMPlugins.d.ts +0 -3
  87. package/dist/types-ts4.5/create-editor/editorNativeAnchorSupportPlugin.d.ts +0 -3
  88. package/dist/types-ts4.5/create-editor/editorStateNotificationPlugin.d.ts +0 -13
  89. package/dist/types-ts4.5/create-editor/filter-plugins-for-reconfigure.d.ts +0 -19
  90. package/dist/types-ts4.5/create-editor/fixExcludes.d.ts +0 -6
  91. package/dist/types-ts4.5/create-editor/get-plugins.d.ts +0 -43
  92. package/dist/types-ts4.5/create-editor/get-ui-component.d.ts +0 -5
  93. package/dist/types-ts4.5/create-editor/getScrollGutterOptions.d.ts +0 -3
  94. package/dist/types-ts4.5/create-editor/messages.d.ts +0 -12
  95. package/dist/types-ts4.5/create-editor/preset-utils.d.ts +0 -2
  96. package/dist/types-ts4.5/create-editor/sortByRank.d.ts +0 -5
  97. package/dist/types-ts4.5/editor-appearances/ChromelessEditor.d.ts +0 -14
  98. package/dist/types-ts4.5/editor-appearances/CommentEditor.d.ts +0 -14
  99. package/dist/types-ts4.5/editor-appearances/FullPageEditor.d.ts +0 -19
  100. package/dist/types-ts4.5/editor-appearances/FullWidthEditor.d.ts +0 -18
  101. package/dist/types-ts4.5/editor-context.d.ts +0 -1
  102. package/dist/types-ts4.5/editor.d.ts +0 -24
  103. package/dist/types-ts4.5/entry-points/CollapsedEditor.d.ts +0 -1
  104. package/dist/types-ts4.5/entry-points/ContextPanel.d.ts +0 -1
  105. package/dist/types-ts4.5/entry-points/EditorContext.d.ts +0 -1
  106. package/dist/types-ts4.5/entry-points/ReactEditorView.d.ts +0 -1
  107. package/dist/types-ts4.5/entry-points/ToolbarHelp.d.ts +0 -1
  108. package/dist/types-ts4.5/entry-points/ToolbarPortal.d.ts +0 -1
  109. package/dist/types-ts4.5/entry-points/WithEditorActions.d.ts +0 -1
  110. package/dist/types-ts4.5/entry-points/WithHelpTrigger.d.ts +0 -1
  111. package/dist/types-ts4.5/entry-points/actions.d.ts +0 -1
  112. package/dist/types-ts4.5/entry-points/appearance-editor-chromeless.d.ts +0 -2
  113. package/dist/types-ts4.5/entry-points/appearance-editor-comment.d.ts +0 -2
  114. package/dist/types-ts4.5/entry-points/appearance-editor-full-page.d.ts +0 -2
  115. package/dist/types-ts4.5/entry-points/appearance-editor-full-width.d.ts +0 -2
  116. package/dist/types-ts4.5/entry-points/command.d.ts +0 -1
  117. package/dist/types-ts4.5/entry-points/create-plugins-list.d.ts +0 -1
  118. package/dist/types-ts4.5/entry-points/editor-instance.d.ts +0 -1
  119. package/dist/types-ts4.5/entry-points/editor-props.d.ts +0 -1
  120. package/dist/types-ts4.5/entry-points/editor.d.ts +0 -11
  121. package/dist/types-ts4.5/entry-points/exclude-from-hydration.d.ts +0 -1
  122. package/dist/types-ts4.5/entry-points/feature-flags-from-props.d.ts +0 -1
  123. package/dist/types-ts4.5/entry-points/getNodesCount.d.ts +0 -1
  124. package/dist/types-ts4.5/entry-points/i18n-languages.d.ts +0 -1
  125. package/dist/types-ts4.5/entry-points/measure-enum.d.ts +0 -1
  126. package/dist/types-ts4.5/entry-points/preset-universal-universal.d.ts +0 -2
  127. package/dist/types-ts4.5/entry-points/preset-universal-useUniversalPreset.d.ts +0 -1
  128. package/dist/types-ts4.5/entry-points/test-utils.d.ts +0 -5
  129. package/dist/types-ts4.5/entry-points/use-preset-context.d.ts +0 -2
  130. package/dist/types-ts4.5/entry-points/version-wrapper.d.ts +0 -1
  131. package/dist/types-ts4.5/i18n/cs.d.ts +0 -12
  132. package/dist/types-ts4.5/i18n/da.d.ts +0 -12
  133. package/dist/types-ts4.5/i18n/de.d.ts +0 -12
  134. package/dist/types-ts4.5/i18n/en.d.ts +0 -12
  135. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -12
  136. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -12
  137. package/dist/types-ts4.5/i18n/es.d.ts +0 -12
  138. package/dist/types-ts4.5/i18n/et.d.ts +0 -168
  139. package/dist/types-ts4.5/i18n/fi.d.ts +0 -12
  140. package/dist/types-ts4.5/i18n/fr.d.ts +0 -12
  141. package/dist/types-ts4.5/i18n/hr.d.ts +0 -12
  142. package/dist/types-ts4.5/i18n/hu.d.ts +0 -12
  143. package/dist/types-ts4.5/i18n/index.d.ts +0 -36
  144. package/dist/types-ts4.5/i18n/is.d.ts +0 -153
  145. package/dist/types-ts4.5/i18n/it.d.ts +0 -12
  146. package/dist/types-ts4.5/i18n/ja.d.ts +0 -12
  147. package/dist/types-ts4.5/i18n/ko.d.ts +0 -12
  148. package/dist/types-ts4.5/i18n/languages.d.ts +0 -39
  149. package/dist/types-ts4.5/i18n/nb.d.ts +0 -12
  150. package/dist/types-ts4.5/i18n/nl.d.ts +0 -12
  151. package/dist/types-ts4.5/i18n/pl.d.ts +0 -12
  152. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -12
  153. package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -180
  154. package/dist/types-ts4.5/i18n/ro.d.ts +0 -153
  155. package/dist/types-ts4.5/i18n/ru.d.ts +0 -12
  156. package/dist/types-ts4.5/i18n/sk.d.ts +0 -12
  157. package/dist/types-ts4.5/i18n/sl.d.ts +0 -12
  158. package/dist/types-ts4.5/i18n/sr.d.ts +0 -12
  159. package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -12
  160. package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -12
  161. package/dist/types-ts4.5/i18n/sv.d.ts +0 -12
  162. package/dist/types-ts4.5/i18n/th.d.ts +0 -12
  163. package/dist/types-ts4.5/i18n/tr.d.ts +0 -12
  164. package/dist/types-ts4.5/i18n/uk.d.ts +0 -12
  165. package/dist/types-ts4.5/i18n/vi.d.ts +0 -12
  166. package/dist/types-ts4.5/i18n/zh.d.ts +0 -12
  167. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -12
  168. package/dist/types-ts4.5/index.d.ts +0 -34
  169. package/dist/types-ts4.5/isElementBySelectorInDocument.d.ts +0 -7
  170. package/dist/types-ts4.5/labs-next.d.ts +0 -1
  171. package/dist/types-ts4.5/nodeviews/types.d.ts +0 -12
  172. package/dist/types-ts4.5/preset-default.d.ts +0 -1
  173. package/dist/types-ts4.5/preset-universal.d.ts +0 -3
  174. package/dist/types-ts4.5/presets/context.d.ts +0 -15
  175. package/dist/types-ts4.5/presets/default-preset-type.d.ts +0 -87
  176. package/dist/types-ts4.5/presets/default.d.ts +0 -66
  177. package/dist/types-ts4.5/presets/universal.d.ts +0 -98
  178. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +0 -8
  179. package/dist/types-ts4.5/setTextSelection.d.ts +0 -2
  180. package/dist/types-ts4.5/test-utils.d.ts +0 -24
  181. package/dist/types-ts4.5/ts-hack.d.ts +0 -10
  182. package/dist/types-ts4.5/types/command.d.ts +0 -5
  183. package/dist/types-ts4.5/types/dom-at-pos.d.ts +0 -4
  184. package/dist/types-ts4.5/types/editor-appearance-component.d.ts +0 -57
  185. package/dist/types-ts4.5/types/editor-config.d.ts +0 -21
  186. package/dist/types-ts4.5/types/editor-instance.d.ts +0 -19
  187. package/dist/types-ts4.5/types/editor-onchange.d.ts +0 -14
  188. package/dist/types-ts4.5/types/editor-props.d.ts +0 -317
  189. package/dist/types-ts4.5/types/extension-config.d.ts +0 -4
  190. package/dist/types-ts4.5/types/i18n.d.ts +0 -5
  191. package/dist/types-ts4.5/types/markdown-mode.d.ts +0 -11
  192. package/dist/types-ts4.5/types/pm-plugin-list.d.ts +0 -10
  193. package/dist/types-ts4.5/types/with-appearance-component.d.ts +0 -5
  194. package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +0 -10
  195. package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.d.ts +0 -12
  196. package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/contentComponentWrapper.d.ts +0 -6
  197. package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +0 -9
  198. package/dist/types-ts4.5/ui/Addon/checkForModal.d.ts +0 -10
  199. package/dist/types-ts4.5/ui/Addon/click-area-helper.d.ts +0 -3
  200. package/dist/types-ts4.5/ui/Addon/outsideProsemirrorEditorClickHandler.d.ts +0 -2
  201. package/dist/types-ts4.5/ui/Addon/types.d.ts +0 -16
  202. package/dist/types-ts4.5/ui/Appearance/Chromeless-compiled.d.ts +0 -18
  203. package/dist/types-ts4.5/ui/Appearance/Chromeless-emotion.d.ts +0 -18
  204. package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +0 -22
  205. package/dist/types-ts4.5/ui/Appearance/ChromelessEditorContainer.d.ts +0 -9
  206. package/dist/types-ts4.5/ui/Appearance/Comment/Comment.d.ts +0 -20
  207. package/dist/types-ts4.5/ui/Appearance/Comment/CommentToolbar.d.ts +0 -21
  208. package/dist/types-ts4.5/ui/Appearance/Comment/Toolbar.d.ts +0 -12
  209. package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper-compiled.d.ts +0 -16
  210. package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper-emotion.d.ts +0 -16
  211. package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper.d.ts +0 -6
  212. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.d.ts +0 -3
  213. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.d.ts +0 -14
  214. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +0 -10
  215. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapperMigration.d.ts +0 -4
  216. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage-compiled.d.ts +0 -7
  217. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage-emotion.d.ts +0 -7
  218. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage.d.ts +0 -18
  219. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +0 -56
  220. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +0 -51
  221. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +0 -30
  222. package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbar-compiled.d.ts +0 -21
  223. package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbar-emotion.d.ts +0 -21
  224. package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbar.d.ts +0 -1
  225. package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.d.ts +0 -4
  226. package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper-compiled.d.ts +0 -19
  227. package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper-emotion.d.ts +0 -19
  228. package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +0 -3
  229. package/dist/types-ts4.5/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.d.ts +0 -4
  230. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +0 -5
  231. package/dist/types-ts4.5/ui/Appearance/FullPage/types.d.ts +0 -5
  232. package/dist/types-ts4.5/ui/ChromeCollapsed/ChromeCollapsed-compiled.d.ts +0 -13
  233. package/dist/types-ts4.5/ui/ChromeCollapsed/ChromeCollapsed-emotion.d.ts +0 -13
  234. package/dist/types-ts4.5/ui/ChromeCollapsed/index.d.ts +0 -11
  235. package/dist/types-ts4.5/ui/ChromeCollapsed/messages.d.ts +0 -7
  236. package/dist/types-ts4.5/ui/ChromeCollapsed/styles.d.ts +0 -2
  237. package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +0 -19
  238. package/dist/types-ts4.5/ui/ContextPanel/index-compiled.d.ts +0 -25
  239. package/dist/types-ts4.5/ui/ContextPanel/index-emotion.d.ts +0 -15
  240. package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +0 -24
  241. package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer-compiled.d.ts +0 -29
  242. package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer-emotion.d.ts +0 -32
  243. package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer.d.ts +0 -9
  244. package/dist/types-ts4.5/ui/EditorContentContainer/styles/aiPanel.d.ts +0 -29
  245. package/dist/types-ts4.5/ui/EditorContentContainer/styles/annotationStyles.d.ts +0 -8
  246. package/dist/types-ts4.5/ui/EditorContentContainer/styles/backgroundColorStyles.d.ts +0 -15
  247. package/dist/types-ts4.5/ui/EditorContentContainer/styles/baseStyles.d.ts +0 -43
  248. package/dist/types-ts4.5/ui/EditorContentContainer/styles/blockMarksStyles.d.ts +0 -8
  249. package/dist/types-ts4.5/ui/EditorContentContainer/styles/blockTypeStyles.d.ts +0 -71
  250. package/dist/types-ts4.5/ui/EditorContentContainer/styles/codeBlockStyles.d.ts +0 -46
  251. package/dist/types-ts4.5/ui/EditorContentContainer/styles/codeMarkStyles.d.ts +0 -15
  252. package/dist/types-ts4.5/ui/EditorContentContainer/styles/commentEditorStyles.d.ts +0 -8
  253. package/dist/types-ts4.5/ui/EditorContentContainer/styles/cursorStyles.d.ts +0 -8
  254. package/dist/types-ts4.5/ui/EditorContentContainer/styles/dateStyles.d.ts +0 -32
  255. package/dist/types-ts4.5/ui/EditorContentContainer/styles/editorUGCTokenStyles.d.ts +0 -40
  256. package/dist/types-ts4.5/ui/EditorContentContainer/styles/embedCardStyles.d.ts +0 -8
  257. package/dist/types-ts4.5/ui/EditorContentContainer/styles/emoji.d.ts +0 -42
  258. package/dist/types-ts4.5/ui/EditorContentContainer/styles/expandStyles.d.ts +0 -59
  259. package/dist/types-ts4.5/ui/EditorContentContainer/styles/extensionStyles.d.ts +0 -20
  260. package/dist/types-ts4.5/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +0 -36
  261. package/dist/types-ts4.5/ui/EditorContentContainer/styles/firstBlockNodeStyles.d.ts +0 -8
  262. package/dist/types-ts4.5/ui/EditorContentContainer/styles/floatingToolbarStyles.d.ts +0 -8
  263. package/dist/types-ts4.5/ui/EditorContentContainer/styles/fontSizeStyles.d.ts +0 -8
  264. package/dist/types-ts4.5/ui/EditorContentContainer/styles/fullPageEditorStyles.d.ts +0 -8
  265. package/dist/types-ts4.5/ui/EditorContentContainer/styles/gapCursorStyles.d.ts +0 -22
  266. package/dist/types-ts4.5/ui/EditorContentContainer/styles/gridStyles.d.ts +0 -8
  267. package/dist/types-ts4.5/ui/EditorContentContainer/styles/indentationStyles.d.ts +0 -8
  268. package/dist/types-ts4.5/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.d.ts +0 -8
  269. package/dist/types-ts4.5/ui/EditorContentContainer/styles/layout.d.ts +0 -220
  270. package/dist/types-ts4.5/ui/EditorContentContainer/styles/link.d.ts +0 -22
  271. package/dist/types-ts4.5/ui/EditorContentContainer/styles/list.d.ts +0 -50
  272. package/dist/types-ts4.5/ui/EditorContentContainer/styles/mediaStyles.d.ts +0 -36
  273. package/dist/types-ts4.5/ui/EditorContentContainer/styles/mentions.d.ts +0 -36
  274. package/dist/types-ts4.5/ui/EditorContentContainer/styles/overflowShadowStyles.d.ts +0 -8
  275. package/dist/types-ts4.5/ui/EditorContentContainer/styles/panelStyles.d.ts +0 -43
  276. package/dist/types-ts4.5/ui/EditorContentContainer/styles/paragraphStyles.d.ts +0 -36
  277. package/dist/types-ts4.5/ui/EditorContentContainer/styles/placeholderStyles.d.ts +0 -29
  278. package/dist/types-ts4.5/ui/EditorContentContainer/styles/resizerStyles.d.ts +0 -131
  279. package/dist/types-ts4.5/ui/EditorContentContainer/styles/rule.d.ts +0 -15
  280. package/dist/types-ts4.5/ui/EditorContentContainer/styles/scrollbarStyles.d.ts +0 -8
  281. package/dist/types-ts4.5/ui/EditorContentContainer/styles/selectionStyles.d.ts +0 -74
  282. package/dist/types-ts4.5/ui/EditorContentContainer/styles/selectionToolbarStyles.d.ts +0 -8
  283. package/dist/types-ts4.5/ui/EditorContentContainer/styles/shadowStyles.d.ts +0 -29
  284. package/dist/types-ts4.5/ui/EditorContentContainer/styles/smartCardStyles.d.ts +0 -98
  285. package/dist/types-ts4.5/ui/EditorContentContainer/styles/statusStyles.d.ts +0 -50
  286. package/dist/types-ts4.5/ui/EditorContentContainer/styles/syncBlockStyles.d.ts +0 -36
  287. package/dist/types-ts4.5/ui/EditorContentContainer/styles/tableStyles.d.ts +0 -50
  288. package/dist/types-ts4.5/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +0 -77
  289. package/dist/types-ts4.5/ui/EditorContentContainer/styles/telepointerStyles.d.ts +0 -15
  290. package/dist/types-ts4.5/ui/EditorContentContainer/styles/textColorStyles.d.ts +0 -8
  291. package/dist/types-ts4.5/ui/EditorContentContainer/styles/textHighlightStyles.d.ts +0 -8
  292. package/dist/types-ts4.5/ui/EditorContentContainer/styles/unsupportedStyles.d.ts +0 -18
  293. package/dist/types-ts4.5/ui/EditorContentContainer/styles/whitespaceStyles.d.ts +0 -8
  294. package/dist/types-ts4.5/ui/EditorContext/index.d.ts +0 -15
  295. package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +0 -26
  296. package/dist/types-ts4.5/ui/ExcludeFromHydration/index.d.ts +0 -13
  297. package/dist/types-ts4.5/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.d.ts +0 -6
  298. package/dist/types-ts4.5/ui/PluginSlot/PluginSlot-compiled.d.ts +0 -12
  299. package/dist/types-ts4.5/ui/PluginSlot/PluginSlot-emotion.d.ts +0 -12
  300. package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +0 -26
  301. package/dist/types-ts4.5/ui/PluginSlot/mount-plugin-hooks.d.ts +0 -10
  302. package/dist/types-ts4.5/ui/Toolbar/Toolbar.d.ts +0 -32
  303. package/dist/types-ts4.5/ui/Toolbar/ToolbarInner.d.ts +0 -11
  304. package/dist/types-ts4.5/ui/Toolbar/ToolbarPortal.d.ts +0 -21
  305. package/dist/types-ts4.5/ui/Toolbar/ToolbarWithSizeDetector.d.ts +0 -3
  306. package/dist/types-ts4.5/ui/Toolbar/getPrimaryToolbarComponents.d.ts +0 -7
  307. package/dist/types-ts4.5/ui/Toolbar/hooks.d.ts +0 -4
  308. package/dist/types-ts4.5/ui/Toolbar/toolbar-size.d.ts +0 -4
  309. package/dist/types-ts4.5/ui/Toolbar/toolbar-types.d.ts +0 -33
  310. package/dist/types-ts4.5/ui/ToolbarHelp/index.d.ts +0 -14
  311. package/dist/types-ts4.5/ui/ToolbarHelp/messages.d.ts +0 -7
  312. package/dist/types-ts4.5/ui/WithEditorActions/index.d.ts +0 -9
  313. package/dist/types-ts4.5/ui/WithFlash/index.d.ts +0 -7
  314. package/dist/types-ts4.5/ui/WithFlash/withFlash-compiled.d.ts +0 -19
  315. package/dist/types-ts4.5/ui/WithFlash/withFlash-emotion.d.ts +0 -19
  316. package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +0 -14
  317. package/dist/types-ts4.5/use-preset.d.ts +0 -43
  318. package/dist/types-ts4.5/utils/action.d.ts +0 -3
  319. package/dist/types-ts4.5/utils/combineQuickInsertProviders.d.ts +0 -2
  320. package/dist/types-ts4.5/utils/deprecation-warnings.d.ts +0 -8
  321. package/dist/types-ts4.5/utils/editorDeprecationWarnings.d.ts +0 -2
  322. package/dist/types-ts4.5/utils/extensions.d.ts +0 -10
  323. package/dist/types-ts4.5/utils/feature-flags-from-props.d.ts +0 -7
  324. package/dist/types-ts4.5/utils/findChangedNodesFromTransaction.d.ts +0 -8
  325. package/dist/types-ts4.5/utils/getNodesCount.d.ts +0 -2
  326. package/dist/types-ts4.5/utils/getNodesCountWithExtensionKeys.d.ts +0 -12
  327. package/dist/types-ts4.5/utils/getNodesVisibleInViewport.d.ts +0 -5
  328. package/dist/types-ts4.5/utils/is-chromeless.d.ts +0 -2
  329. package/dist/types-ts4.5/utils/is-full-page.d.ts +0 -2
  330. package/dist/types-ts4.5/utils/isNodeVisible.d.ts +0 -5
  331. package/dist/types-ts4.5/utils/nodes-by-localIds.d.ts +0 -3
  332. package/dist/types-ts4.5/utils/outdatedBrowsers.d.ts +0 -1
  333. package/dist/types-ts4.5/utils/performance/components/RenderTracking.d.ts +0 -13
  334. package/dist/types-ts4.5/utils/performance/getTimeSince.d.ts +0 -8
  335. package/dist/types-ts4.5/utils/performance/measure-enum.d.ts +0 -7
  336. package/dist/types-ts4.5/utils/performance/outlier.d.ts +0 -1
  337. package/dist/types-ts4.5/utils/performance/percentile.d.ts +0 -1
  338. package/dist/types-ts4.5/utils/performance/plugin-performance-observer.d.ts +0 -23
  339. package/dist/types-ts4.5/utils/performance/plugin-performance-report.d.ts +0 -47
  340. package/dist/types-ts4.5/utils/performance/safer-transactions.d.ts +0 -8
  341. package/dist/types-ts4.5/utils/performance/simple-measure-to-entries.d.ts +0 -28
  342. package/dist/types-ts4.5/utils/performance/track-transactions.d.ts +0 -30
  343. package/dist/types-ts4.5/utils/prepare-extension-provider.d.ts +0 -5
  344. package/dist/types-ts4.5/utils/prepare-quick-insert-provider.d.ts +0 -19
  345. package/dist/types-ts4.5/utils/toolbar.d.ts +0 -2
  346. package/dist/types-ts4.5/utils/validNode.d.ts +0 -2
  347. package/dist/types-ts4.5/utils/validateNodes.d.ts +0 -3
  348. package/dist/types-ts4.5/version-wrapper.d.ts +0 -2
@@ -1,317 +0,0 @@
1
- import type { ReactElement } from 'react';
2
- import type { ActivityProvider } from '@atlaskit/activity-provider';
3
- import type { CardOptions } from '@atlaskit/editor-common/card';
4
- import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
5
- import type { ErrorReportingHandler } from '@atlaskit/editor-common/error-reporter';
6
- import type { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
7
- import type { AllEditorPresetPluginTypes, AllPluginNames, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
8
- import type { ContextIdentifierProvider, Providers, SearchProvider } from '@atlaskit/editor-common/provider-factory';
9
- import type { EditorAppearance, EmptyStateHandler, FeedbackInfo, LinkingOptions, PerformanceTracking, QuickInsertOptions, PasteWarningOptions, Transformer } from '@atlaskit/editor-common/types';
10
- import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
11
- import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
12
- import type { AnnotationProviders } from '@atlaskit/editor-plugins/annotation';
13
- import type { BlockTypePluginOptions } from '@atlaskit/editor-plugins/block-type';
14
- import type { CodeBlockPluginOptions } from '@atlaskit/editor-plugins/code-block';
15
- import type { DatePluginOptions } from '@atlaskit/editor-plugins/date';
16
- import type { FindReplaceOptions } from '@atlaskit/editor-plugins/find-replace';
17
- import type { LayoutPluginOptions } from '@atlaskit/editor-plugins/layout';
18
- import type { MediaPluginOptions, MediaState } from '@atlaskit/editor-plugins/media/types';
19
- import type { MentionPluginConfig } from '@atlaskit/editor-plugins/mentions';
20
- import type { PanelPluginConfig } from '@atlaskit/editor-plugins/panel';
21
- import type { PlaceholderTextPluginOptions } from '@atlaskit/editor-plugins/placeholder-text';
22
- import type { SyncedBlockPluginOptions } from '@atlaskit/editor-plugins/synced-block';
23
- import type { PluginConfig as TablesPluginConfig } from '@atlaskit/editor-plugins/table/types';
24
- import type { TextColorPluginConfig } from '@atlaskit/editor-plugins/text-color';
25
- import type { TextFormattingPluginOptions } from '@atlaskit/editor-plugins/text-formatting';
26
- import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
27
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
28
- import type { SyncedBlockProvider } from '@atlaskit/editor-synced-block-provider';
29
- import type { MentionProvider } from '@atlaskit/mention/resource';
30
- import type { TaskDecisionProvider } from '@atlaskit/task-decision';
31
- import type EditorActions from '../actions';
32
- import type { EditorOnChangeHandler } from './editor-onchange';
33
- import type { ExtensionConfig } from './extension-config';
34
- export type ReactComponents = ReactElement | ReactElement[];
35
- type ExtensionProviders = (ExtensionProvider | Promise<ExtensionProvider>)[];
36
- type ExtensionProvidersWithEditorAction = (editorActions?: EditorActions) => ExtensionProviders;
37
- export type ExtensionProvidersProp = ExtensionProviders | ExtensionProvidersWithEditorAction;
38
- export type BeforeAndAfterToolbarComponents = {
39
- after: ReactComponents;
40
- before: ReactComponents;
41
- };
42
- export type PrimaryToolbarComponents = BeforeAndAfterToolbarComponents | ReactComponents;
43
- export type BeforeAndAfterContentComponents = {
44
- after: ReactComponents;
45
- before: ReactComponents;
46
- };
47
- export type ContentComponents = BeforeAndAfterContentComponents | ReactComponents;
48
- interface EditorBaseProps {
49
- /**
50
- * This is required for accessing whether a page is a live page or not when rendering the appearance component.
51
- *
52
- * All other consumers should use the editorViewModePlugin to access live page and content mode status.
53
- *
54
- * @default false
55
- */
56
- __livePage?: boolean;
57
- appearance?: EditorAppearance;
58
- assistiveLabel?: string;
59
- contentComponents?: ContentComponents;
60
- isEditorModernisationEnabled?: boolean;
61
- /**
62
- * **WARNING** this attribute is not supported outside of Confluence Full Page editors
63
- *
64
- * Configures the content mode of the editor.
65
- *
66
- * - `"standard"` | `undefined` - normal content mode <- Default
67
- * - `"compact"` - content in editor has reduced size
68
- *
69
- * @private
70
- * @deprecated this attribute is not supported outside of Confluence Full Page editors
71
- */
72
- contentMode?: 'standard' | 'compact' | undefined;
73
- contentTransformerProvider?: (schema: Schema) => Transformer<string>;
74
- contextPanel?: ReactComponents;
75
- defaultValue?: Node | string | Object;
76
- disabled?: boolean;
77
- editorActions?: EditorActions;
78
- errorReporterHandler?: ErrorReportingHandler;
79
- extensionProviders?: ExtensionProvidersProp;
80
- /**
81
- * @default undefined
82
- * @description
83
- * Short lived feature flags for experiments and gradual rollouts
84
- * Flags are expected to follow these rules or they are filtered out
85
- *
86
- * 1. cased in kebab-case (match [a-z-])
87
- * 2. have boolean values
88
- *
89
- * @example
90
- * ```tsx
91
- * (<Editor featureFlags={{ 'my-feature': true }} />);
92
- * getFeatureFlags()?.myFeature === true;
93
- * ```
94
- *
95
- * @example
96
- * ```tsx
97
- * (<Editor featureFlags={{ 'my-feature': 'thing' }} />);
98
- * getFeatureFlags()?.myFeature === undefined;
99
- * ```
100
- *
101
- * @example
102
- * ```tsx
103
- * (<Editor featureFlags={{ 'product.my-feature': false }} />);
104
- * getFeatureFlags()?.myFeature === undefined;
105
- * getFeatureFlags()?.productMyFeature === undefined;
106
- * ```
107
- */
108
- featureFlags?: {
109
- [featureFlag: string]: string | boolean;
110
- };
111
- /**
112
- * @deprecated do not use, value is hardcoded. Can be mocked for tests. Config exists here: platform/packages/editor/editor-plugin-base/src/pm-plugins/utils/inputTrackingConfig.ts
113
- * @description The nth keystroke after which an input time taken event is sent, 0 to disable it
114
- * @default 100
115
- */
116
- inputSamplingLimit?: number;
117
- maxHeight?: number;
118
- minHeight?: number;
119
- onCancel?: (editorView: EditorView) => void;
120
- onChange?: EditorOnChangeHandler;
121
- onDestroy?: () => void;
122
- onEditorReady?: (editorActions: EditorActions) => void;
123
- /**
124
- * Callback for measuring Server-Side Rendering (SSR) performance metrics.
125
- * Invoked during SSR to track timing information for different segments of the rendering process.
126
- *
127
- * @param measure - Performance measurement data
128
- * @param measure.startTimestamp - Absolute timestamp when the segment started (from `performance.now()`)
129
- * @param measure.endTimestamp - Absolute timestamp when the segment completed (from `performance.now()`)
130
- * @param measure.segmentName - Name identifier of the SSR segment being measured
131
- *
132
- * @remarks
133
- * Both timestamps are absolute values from `performance.now()`, not relative to measurement start.
134
- * Calculate duration as: `measure.endTimestamp - measure.startTimestamp`
135
- *
136
- * @example
137
- * ```typescript
138
- * onSSRMeasure={(measure) => {
139
- * const duration = measure.endTimestamp - measure.startTimestamp;
140
- * console.log(`${measure.segmentName}: ${duration}ms`);
141
- * }}
142
- * ```
143
- */
144
- onSSRMeasure?: (measure: {
145
- endTimestamp: number;
146
- segmentName: string;
147
- startTimestamp: number;
148
- }) => void;
149
- persistScrollGutter?: boolean;
150
- popupsBoundariesElement?: HTMLElement;
151
- popupsMountPoint?: HTMLElement;
152
- popupsScrollableElement?: HTMLElement;
153
- primaryToolbarIconBefore?: ReactElement;
154
- quickInsert?: QuickInsertOptions;
155
- secondaryToolbarComponents?: ReactComponents;
156
- shouldFocus?: boolean;
157
- skipValidation?: boolean;
158
- UNSAFE_useAnalyticsContext?: boolean;
159
- /**
160
- * @default undefined
161
- * @description
162
- * Enables the sticky toolbar in the comment/standard editor.
163
- * If a boolean is specified and it's `true`, the sticky toolbar will be enabled, sticking to the top of the scroll parent.
164
- * Instead a reference can be specified to an existing sticky toolbar on the page that the editor toolbar should stay below (experimental).
165
- * if {offsetTop: number} is passed in, the toolbar is sticky and the toolbar's 'top' will be set to the offsetTop
166
- * so the toolbar will sticks to `{offsetTop}` below the scroll parent.
167
- */
168
- useStickyToolbar?: UseStickyToolbarType;
169
- }
170
- export interface EditorSharedPropsWithPlugins {
171
- allowUndoRedoButtons?: boolean;
172
- collabEdit?: CollabEditOptions;
173
- onSave?: (editorView: EditorView) => void;
174
- /**
175
- * @deprecated do not use, value is hardcoded. Can be mocked for tests. Config exists here: platform/packages/editor/editor-plugin-base/src/pm-plugins/utils/inputTrackingConfig.ts
176
- * @description Control performance metric measurements and tracking
177
- */
178
- performanceTracking?: PerformanceTracking;
179
- primaryToolbarComponents?: PrimaryToolbarComponents;
180
- sanitizePrivateContent?: boolean;
181
- }
182
- export interface EditorProps extends EditorBaseProps, EditorPluginFeatureProps, EditorSharedPropsWithPlugins, EditorProviderProps {
183
- assistiveDescribedBy?: string;
184
- }
185
- export interface EditorNextProps extends EditorBaseProps, EditorSharedPropsWithPlugins, EditorProviderProps {
186
- assistiveDescribedBy?: string;
187
- autoformattingProvider?: Providers['autoformattingProvider'];
188
- emojiProvider?: Providers['emojiProvider'];
189
- /**
190
- * @deprecated
191
- * This prop does nothing and will be removed soon.
192
- * Configuration of this parameter should be done via `editor-plugin-card` or the `universal` preset.
193
- *
194
- * Example:
195
- * // In preset creation you can pass the props passed to the editor like this:
196
- * preset.add([cardPlugin, { ...linking.smartLinks, linkPicker: linking.linkPicker }])
197
- */
198
- linking?: LinkingOptions;
199
- /**
200
- * @deprecated
201
- * This prop is no longer required and will be removed soon.
202
- * Configuration of this parameter should be done via `editor-plugin-media` or the `universal` preset.
203
- *
204
- * Example:
205
- * ```ts
206
- * // In preset creation you can pass the props passed to the editor like this:
207
- * preset.add([mediaPlugin, MediaPluginOptions])
208
- * ```
209
- *
210
- * Note: Props you pass to the media plugin via the preset do not re-render like in React.
211
- * Therefore if you need to update the media provider later you will need to explicitly update it like so:
212
- *
213
- * ```ts
214
- * const { preset, editorApi } = usePreset(createPreset)
215
- * ...
216
- * // If we need to update the media provider later on
217
- * editorApi?.media.actions.setProvider(mediaProvider);
218
- * ```
219
- */
220
- media?: MediaPluginOptions;
221
- preset: EditorPresetBuilder<AllPluginNames[], AllEditorPresetPluginTypes[]>;
222
- taskDecisionProvider?: Promise<TaskDecisionProvider>;
223
- }
224
- export interface EditorProviderProps {
225
- activityProvider?: Promise<ActivityProvider>;
226
- annotationProviders?: AnnotationProviders;
227
- autoformattingProvider?: Providers['autoformattingProvider'];
228
- collabEditProvider?: Providers['collabEditProvider'];
229
- contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
230
- emojiProvider?: Providers['emojiProvider'];
231
- legacyImageUploadProvider?: Providers['imageUploadProvider'];
232
- macroProvider?: Providers['macroProvider'];
233
- mentionProvider?: Promise<MentionProvider>;
234
- presenceProvider?: Promise<any>;
235
- searchProvider?: Promise<SearchProvider>;
236
- syncedBlockProvider?: SyncedBlockProvider;
237
- taskDecisionProvider?: Promise<TaskDecisionProvider>;
238
- }
239
- export interface EditorPluginFeatureProps {
240
- allowAnalyticsGASV3?: boolean;
241
- allowBlockType?: BlockTypePluginOptions['allowBlockType'];
242
- /**
243
- * Enable support for the "border" mark.
244
- * Refer to ADF Change proposal #65 for more details.
245
- */
246
- allowBorderMark?: boolean;
247
- allowBreakout?: boolean;
248
- allowConfluenceInlineComment?: boolean;
249
- allowDate?: boolean | DatePluginOptions;
250
- allowExpand?: boolean | {
251
- allowInsertion?: boolean;
252
- allowInteractiveExpand?: boolean;
253
- };
254
- allowExtension?: boolean | ExtensionConfig;
255
- allowFindReplace?: boolean | FindReplaceOptions;
256
- /**
257
- * Enable support for the "fragment" mark.
258
- * Refer to ADF Change proposal #60 for more details.
259
- */
260
- allowFragmentMark?: boolean;
261
- allowHelpDialog?: boolean;
262
- allowIndentation?: boolean;
263
- allowLayouts?: boolean | LayoutPluginOptions;
264
- allowNestedTasks?: boolean;
265
- allowPanel?: boolean | PanelPluginConfig;
266
- allowRule?: boolean;
267
- allowStatus?: boolean | {
268
- menuDisabled: boolean;
269
- };
270
- allowTables?: boolean | TablesPluginConfig;
271
- allowTasksAndDecisions?: boolean;
272
- allowTemplatePlaceholders?: boolean | PlaceholderTextPluginOptions;
273
- allowTextAlignment?: boolean;
274
- allowTextColor?: boolean | TextColorPluginConfig;
275
- /**
276
- * Set this to false to opt out of the default behaviour of auto scrolling into view
277
- * whenever the document is changed
278
- */
279
- autoScrollIntoView?: boolean;
280
- codeBlock?: CodeBlockPluginOptions;
281
- elementBrowser?: {
282
- emptyStateHandler?: EmptyStateHandler;
283
- helpUrl?: string;
284
- replacePlusMenu?: boolean;
285
- showModal?: boolean;
286
- };
287
- extensionHandlers?: ExtensionHandlers;
288
- feedbackInfo?: FeedbackInfo;
289
- insertMenuItems?: MenuItem[];
290
- /**
291
- * Configure and extend editor linking behaviour
292
- */
293
- linking?: LinkingOptions;
294
- maxContentSize?: number;
295
- media?: MediaPluginOptions;
296
- mention?: MentionPluginConfig;
297
- /**
298
- * flag to indicate display name instead of nick name should be inserted for mentions
299
- * default: false, which inserts the nick name
300
- * @deprecated Use mention.mentionInsertDisplayName instead
301
- */
302
- mentionInsertDisplayName?: boolean;
303
- pasteWarningOptions?: PasteWarningOptions;
304
- placeholder?: string;
305
- placeholderBracketHint?: string;
306
- saveOnEnter?: boolean;
307
- showIndentationButtons?: boolean;
308
- /** @deprecated Use linking.smartLinks prop instead. */
309
- smartLinks?: CardOptions;
310
- syncBlock?: SyncedBlockPluginOptions;
311
- textFormatting?: TextFormattingPluginOptions;
312
- /** @deprecated Use linking.smartLinks prop instead. */
313
- UNSAFE_cards?: CardOptions;
314
- uploadErrorHandler?: (state: MediaState) => void;
315
- waitForMediaUpload?: boolean;
316
- }
317
- export {};
@@ -1,4 +0,0 @@
1
- export interface ExtensionConfig {
2
- allowBreakout?: boolean;
3
- allowExtendFloatingToolbars?: boolean;
4
- }
@@ -1,5 +0,0 @@
1
- export interface MessageDescriptor {
2
- defaultMessage: string;
3
- description: string;
4
- id: string;
5
- }
@@ -1,11 +0,0 @@
1
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- export type MarkdownModeView = 'syntax' | 'split-view' | 'preview';
3
- export type MarkdownModePlugin = NextEditorPlugin<'markdownMode', {
4
- actions: {
5
- setView: (view: MarkdownModeView) => void;
6
- };
7
- sharedState: {
8
- isMarkdownMode: boolean;
9
- view: MarkdownModeView;
10
- };
11
- }>;
@@ -1,10 +0,0 @@
1
- import type { PMPluginFactoryParams } from '@atlaskit/editor-common/types';
2
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
- import type { EditorConfig } from './editor-config';
4
- export type PMPluginCreateConfig = PMPluginFactoryParams & {
5
- editorConfig: EditorConfig;
6
- onEditorStateUpdated: ((props: {
7
- newEditorState: EditorState;
8
- oldEditorState: EditorState;
9
- }) => void) | undefined;
10
- };
@@ -1,5 +0,0 @@
1
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import type { EditorAppearanceComponentProps } from '../types/editor-appearance-component';
3
- export type WithAppearanceComponent = {
4
- AppearanceComponent: React.ComponentType<React.PropsWithChildren<EditorAppearanceComponentProps<NextEditorPlugin<any, any>[]>>>;
5
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- /**
6
- * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
- * Used via `componentWithCondition` in `index.tsx`.
8
- */
9
- import type { HTMLAttributes } from 'react';
10
- export declare const ClickAreaBlockContainerCompiled: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
@@ -1,12 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- /**
6
- * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
- * Used via `componentWithCondition` in `index.tsx`.
8
- *
9
- * Cleanup: delete this file once the experiment has shipped.
10
- */
11
- import type { HTMLAttributes } from 'react';
12
- export declare const ClickAreaBlockContainerEmotion: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
@@ -1,6 +0,0 @@
1
- import type { ReactComponents } from '../../../types/editor-props';
2
- export declare const ignoreAttribute = "data-editor-content-component";
3
- /**
4
- * Wraps content components in a data attribute to ignore
5
- */
6
- export declare const contentComponentClickWrapper: (reactComponents: ReactComponents | undefined) => ReactComponents | undefined;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- export interface Props {
4
- children?: React.ReactNode;
5
- editorDisabled?: boolean;
6
- editorView?: EditorView;
7
- }
8
- export declare const ClickAreaBlock: ({ editorView, editorDisabled, children, }: Props) => React.JSX.Element;
9
- export default ClickAreaBlock;
@@ -1,10 +0,0 @@
1
- /**
2
- * @see ED-14699 - check if editor is inside a modal to continue to bring cursor to input when
3
- * any part of the editor container is clicked
4
- *
5
- * Handles two cases when a click event is fired:
6
- *
7
- * 1. if editor (e.g. comment inside of Jira ticket view) is inside modal then ensure focus and cursor is brought to the input
8
- * 2. if another modal is open (e.g. delete confirmation modal for confluence table) then ignore clicks as they shouldn't influence editor state
9
- */
10
- export declare const checkForModal: (target: HTMLElement | null) => boolean;
@@ -1,3 +0,0 @@
1
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- declare const clickAreaClickHandler: (view: EditorView, event: React.MouseEvent<HTMLElement>) => boolean | void;
3
- export { clickAreaClickHandler };
@@ -1,2 +0,0 @@
1
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- export declare const outsideProsemirrorEditorClickHandler: (view: EditorView, event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
@@ -1,16 +0,0 @@
1
- import type EditorActions from '../../actions';
2
- export type RenderOnClickHandler = (editorActions: EditorActions, closePopup: () => void) => React.ReactElement;
3
- export interface AddonActions {
4
- actionOnClick?: (editorActions: EditorActions) => void;
5
- renderOnClick?: RenderOnClickHandler;
6
- }
7
- export interface AddonCommonProps extends AddonActions {
8
- icon: React.ReactElement;
9
- }
10
- export interface AddonProps extends AddonCommonProps {
11
- children?: React.ReactElement[];
12
- onClick?: (actions: AddonActions) => void;
13
- }
14
- export interface AddonConfiguration extends AddonCommonProps {
15
- text: string;
16
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- /**
6
- * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
- * Used via `componentWithCondition` in `Chromeless.tsx`.
8
- *
9
- * Cleanup: delete this file once the experiment has shipped.
10
- */
11
- import React from 'react';
12
- import type { HTMLAttributes } from 'react';
13
- export interface ChromelessEditorContainerProps extends HTMLAttributes<HTMLDivElement> {
14
- containerRef?: (ref: HTMLElement | null) => void;
15
- maxHeight?: number;
16
- minHeight: number;
17
- }
18
- export declare const ChromelessEditorContainerCompiled: ({ children, containerRef, maxHeight, minHeight, }: ChromelessEditorContainerProps) => React.JSX.Element;
@@ -1,18 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- /**
6
- * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
- * Used via `componentWithCondition` in `Chromeless.tsx`.
8
- *
9
- * Cleanup: delete this file once the experiment has shipped.
10
- */
11
- import type { HTMLAttributes } from 'react';
12
- import { jsx } from '@emotion/react';
13
- export interface ChromelessEditorContainerProps extends HTMLAttributes<HTMLDivElement> {
14
- containerRef?: (ref: HTMLElement | null) => void;
15
- maxHeight?: number;
16
- minHeight: number;
17
- }
18
- export declare const ChromelessEditorContainerEmotion: ({ children, containerRef, maxHeight, minHeight, ...rest }: ChromelessEditorContainerProps) => jsx.JSX.Element;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import type { OptionalPlugin } from '@atlaskit/editor-common/types';
3
- import type { EditorViewModePlugin } from '@atlaskit/editor-plugins/editor-viewmode';
4
- import type { MaxContentSizePlugin } from '@atlaskit/editor-plugins/max-content-size';
5
- import type { EditorAppearanceComponentProps } from '../../types/editor-appearance-component';
6
- type AppearanceProps = EditorAppearanceComponentProps<[
7
- OptionalPlugin<MaxContentSizePlugin>,
8
- OptionalPlugin<EditorViewModePlugin>
9
- ]>;
10
- /**
11
- * Render the editor in a chromeless appearance.
12
- * Example use is the inline comment editor, which doesn't have editor toolbar
13
- */
14
- export default class Editor extends React.Component<AppearanceProps> {
15
- static displayName: string;
16
- private appearance;
17
- private containerElement;
18
- private setContainerElement;
19
- private renderChrome;
20
- render(): React.JSX.Element;
21
- }
22
- export {};
@@ -1,9 +0,0 @@
1
- import type { FC } from 'react';
2
- import { type ChromelessEditorContainerProps } from './Chromeless-emotion';
3
- /**
4
- * Container for the chromeless editor appearance. This is used to set the max and min height
5
- * of the editor content area, and to provide a ref to the container element for the popups.
6
- * @param param0 props for the chromeless editor container
7
- * @returns JSX element representing the chromeless editor container
8
- */
9
- export declare const ChromelessEditorContainer: FC<ChromelessEditorContainerProps & ChromelessEditorContainerProps>;
@@ -1,20 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- import type { OptionalPlugin } from '@atlaskit/editor-common/types';
3
- import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu';
4
- import type { MaxContentSizePlugin } from '@atlaskit/editor-plugins/max-content-size';
5
- import type { MediaPlugin } from '@atlaskit/editor-plugins/media';
6
- import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugins/primary-toolbar';
7
- import type { ToolbarPlugin } from '@atlaskit/editor-plugins/toolbar';
8
- import type { EditorAppearanceComponentProps } from '../../../types/editor-appearance-component';
9
- type ComponentProps = EditorAppearanceComponentProps<[
10
- OptionalPlugin<MediaPlugin>,
11
- OptionalPlugin<MaxContentSizePlugin>,
12
- OptionalPlugin<PrimaryToolbarPlugin>,
13
- OptionalPlugin<ToolbarPlugin>,
14
- OptionalPlugin<BlockMenuPlugin>
15
- ]>;
16
- export declare const CommentEditorWithIntl: {
17
- (props: ComponentProps): jsx.JSX.Element;
18
- displayName: string;
19
- };
20
- export {};
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import type { EditorAppearance, OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
3
- import type { ToolbarPlugin } from '@atlaskit/editor-plugins/toolbar';
4
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
- type ToolbarEditorPlugins = [
6
- OptionalPlugin<ToolbarPlugin>
7
- ];
8
- type CommentToolbarProps = {
9
- disabled?: boolean;
10
- editorAPI?: PublicPluginAPI<ToolbarEditorPlugins>;
11
- editorAppearance: EditorAppearance;
12
- editorView?: EditorView;
13
- popupsBoundariesElement?: HTMLElement;
14
- popupsMountPoint?: HTMLElement;
15
- popupsScrollableElement?: HTMLElement;
16
- };
17
- /**
18
- * Primary toolbar driven by components registered by `editor-plugin-toolbar`, introduced in `platform_editor_toolbar_aifc`.
19
- */
20
- export declare const CommentToolbar: ({ editorAPI, editorView, editorAppearance, disabled, popupsBoundariesElement, popupsMountPoint, popupsScrollableElement, }: CommentToolbarProps) => React.JSX.Element | null;
21
- export {};
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { jsx } from '@emotion/react';
3
- import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
4
- type MainToolbarProps = {
5
- children?: React.ReactNode;
6
- isEditorModernisationEnabled?: boolean;
7
- isNewToolbarEnabled?: boolean;
8
- twoLineEditorToolbar?: boolean;
9
- useStickyToolbar?: UseStickyToolbarType;
10
- };
11
- export declare const MainToolbar: ({ useStickyToolbar, twoLineEditorToolbar, children, isEditorModernisationEnabled, isNewToolbarEnabled, }: MainToolbarProps) => jsx.JSX.Element;
12
- export {};
@@ -1,16 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- /**
6
- * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
- * Used via `componentWithCondition` in `BeforeWrapper.tsx`.
8
- *
9
- * Cleanup: delete this file once the experiment has shipped.
10
- */
11
- import type { ReactElement } from 'react';
12
- type ReactComponents = ReactElement | ReactElement[];
13
- export declare const BeforePrimaryToolbarWrapperCompiled: (props: {
14
- beforePrimaryToolbarComponents: ReactComponents | undefined;
15
- }) => React.JSX.Element;
16
- export {};
@@ -1,16 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- /**
6
- * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
- * Used via `componentWithCondition` in `BeforeWrapper.tsx`.
8
- *
9
- * Cleanup: delete this file once the experiment has shipped.
10
- */
11
- import type { ReactElement } from 'react';
12
- type ReactComponents = ReactElement | ReactElement[];
13
- export declare const BeforePrimaryToolbarWrapperEmotion: (props: {
14
- beforePrimaryToolbarComponents: ReactComponents | undefined;
15
- }) => React.JSX.Element;
16
- export {};
@@ -1,6 +0,0 @@
1
- import type { FC, ReactElement } from 'react';
2
- type ReactComponents = ReactElement | ReactElement[];
3
- export declare const BeforePrimaryToolbarWrapper: FC<{
4
- beforePrimaryToolbarComponents: ReactComponents | undefined;
5
- }>;
6
- export {};
@@ -1,3 +0,0 @@
1
- import type { ChildWrapperProps } from './CustomToolbarWrapper';
2
- export declare const MainToolbarForFirstChildWrapperCompiled: ({ twoLineEditorToolbar, children, role, "aria-label": ariaLabel, "data-testid": testId, }: ChildWrapperProps) => React.JSX.Element;
3
- export declare const MainToolbarForSecondChildWrapperCompiled: ({ twoLineEditorToolbar, children, role, "aria-label": ariaLabel, "data-testid": testId, }: ChildWrapperProps) => React.JSX.Element;
@@ -1,14 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- /**
6
- * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
- * Used via `componentWithCondition` in `CustomToolbarWrapper.tsx`.
8
- *
9
- * Cleanup: delete this file once the experiment has shipped.
10
- */
11
- import React from 'react';
12
- import type { ChildWrapperProps } from './CustomToolbarWrapper';
13
- export declare const MainToolbarForFirstChildWrapperEmotion: ({ twoLineEditorToolbar, children, role, "aria-label": ariaLabel, "data-testid": testId, }: ChildWrapperProps) => React.JSX.Element;
14
- export declare const MainToolbarForSecondChildWrapperEmotion: ({ twoLineEditorToolbar, children, role, "aria-label": ariaLabel, "data-testid": testId, }: ChildWrapperProps) => React.JSX.Element;
@@ -1,10 +0,0 @@
1
- import type { FC } from 'react';
2
- export interface ChildWrapperProps {
3
- 'aria-label'?: string;
4
- children: React.ReactNode;
5
- 'data-testid'?: string;
6
- role?: string;
7
- twoLineEditorToolbar: boolean;
8
- }
9
- export declare const MainToolbarForFirstChildWrapper: FC<ChildWrapperProps>;
10
- export declare const MainToolbarForSecondChildWrapper: FC<ChildWrapperProps>;
@@ -1,4 +0,0 @@
1
- import type React from 'react';
2
- export declare const CustomToolbarWrapperMigration: React.ComponentType<{
3
- children: React.ReactNode;
4
- }>;