@atlaskit/editor-core 187.17.5 → 187.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/labs/next/presets/default.js +2 -2
  3. package/dist/cjs/plugins/annotation/toolbar.js +31 -8
  4. package/dist/cjs/plugins/base/pm-plugins/inline-cursor-target.js +7 -41
  5. package/dist/cjs/plugins/index.js +0 -7
  6. package/dist/cjs/plugins/placeholder-text/placeholder-text-nodeview.js +0 -3
  7. package/dist/cjs/plugins/selection/pm-plugins/gap-cursor-main.js +27 -13
  8. package/dist/cjs/version-wrapper.js +1 -1
  9. package/dist/cjs/version.json +1 -1
  10. package/dist/es2019/labs/next/presets/default.js +1 -1
  11. package/dist/es2019/plugins/annotation/toolbar.js +34 -9
  12. package/dist/es2019/plugins/base/pm-plugins/inline-cursor-target.js +9 -41
  13. package/dist/es2019/plugins/index.js +0 -1
  14. package/dist/es2019/plugins/placeholder-text/placeholder-text-nodeview.js +0 -3
  15. package/dist/es2019/plugins/selection/pm-plugins/gap-cursor-main.js +27 -13
  16. package/dist/es2019/version-wrapper.js +1 -1
  17. package/dist/es2019/version.json +1 -1
  18. package/dist/esm/labs/next/presets/default.js +1 -1
  19. package/dist/esm/plugins/annotation/toolbar.js +30 -7
  20. package/dist/esm/plugins/base/pm-plugins/inline-cursor-target.js +7 -41
  21. package/dist/esm/plugins/index.js +0 -1
  22. package/dist/esm/plugins/placeholder-text/placeholder-text-nodeview.js +0 -3
  23. package/dist/esm/plugins/selection/pm-plugins/gap-cursor-main.js +27 -13
  24. package/dist/esm/version-wrapper.js +1 -1
  25. package/dist/esm/version.json +1 -1
  26. package/dist/types/extensibility.d.ts +0 -2
  27. package/dist/types/index.d.ts +0 -5
  28. package/dist/types/labs/next/presets/default.d.ts +28 -30
  29. package/dist/types/plugins/analytics/index.d.ts +0 -2
  30. package/dist/types/plugins/annotation/pm-plugins/plugin-factory.d.ts +0 -2
  31. package/dist/types/plugins/annotation/types.d.ts +9 -3
  32. package/dist/types/plugins/annotation/utils.d.ts +2 -5
  33. package/dist/types/plugins/base/pm-plugins/context-identifier.d.ts +1 -1
  34. package/dist/types/plugins/block-type/commands/block-type.d.ts +0 -2
  35. package/dist/types/plugins/block-type/pm-plugins/main.d.ts +6 -1
  36. package/dist/types/plugins/code-bidi-warning/pm-plugins/main.d.ts +1 -1
  37. package/dist/types/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +0 -2
  38. package/dist/types/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.d.ts +5 -1
  39. package/dist/types/plugins/code-block/pm-plugins/main.d.ts +2 -1
  40. package/dist/types/plugins/code-block/utils.d.ts +1 -1
  41. package/dist/types/plugins/collab-edit/utils.d.ts +1 -5
  42. package/dist/types/plugins/copy-button/pm-plugins/main.d.ts +10 -1
  43. package/dist/types/plugins/copy-button/toolbar.d.ts +0 -2
  44. package/dist/types/plugins/copy-button/utils.d.ts +1 -1
  45. package/dist/types/plugins/custom-autoformat/index.d.ts +2 -1
  46. package/dist/types/plugins/date/pm-plugins/main.d.ts +0 -2
  47. package/dist/types/plugins/expand/pm-plugins/main.d.ts +1 -1
  48. package/dist/types/plugins/expand/pm-plugins/plugin-factory.d.ts +0 -2
  49. package/dist/types/plugins/extension/plugin-factory.d.ts +0 -2
  50. package/dist/types/plugins/extension/utils.d.ts +1 -1
  51. package/dist/types/plugins/find-replace/plugin.d.ts +0 -2
  52. package/dist/types/plugins/find-replace/utils/index.d.ts +1 -4
  53. package/dist/types/plugins/floating-toolbar/pm-plugins/force-focus/index.d.ts +3 -1
  54. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.d.ts +0 -2
  55. package/dist/types/plugins/index.d.ts +0 -1
  56. package/dist/types/plugins/list/pm-plugins/input-rules/wrapping-join-rule.d.ts +1 -2
  57. package/dist/types/plugins/media/commands/helpers.d.ts +1 -1
  58. package/dist/types/plugins/media/pm-plugins/alt-text/index.d.ts +1 -3
  59. package/dist/types/plugins/media/pm-plugins/linking/index.d.ts +0 -2
  60. package/dist/types/plugins/media/toolbar/utils.d.ts +1 -3
  61. package/dist/types/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts +0 -1
  62. package/dist/types/plugins/media/ui/ResizableMediaSingle/index.d.ts +0 -1
  63. package/dist/types/plugins/mobile-dimensions/plugin-factory.d.ts +0 -2
  64. package/dist/types/plugins/panel/utils.d.ts +1 -1
  65. package/dist/types/plugins/paste/pm-plugins/main.d.ts +1 -1
  66. package/dist/types/plugins/paste/pm-plugins/plugin-factory.d.ts +0 -2
  67. package/dist/types/plugins/paste/util/index.d.ts +1 -1
  68. package/dist/types/plugins/selection/plugin-factory.d.ts +0 -2
  69. package/dist/types/plugins/selection/pm-plugins/gap-cursor-main.d.ts +1 -1
  70. package/dist/types/plugins/selection/pm-plugins/selection-main.d.ts +1 -1
  71. package/dist/types/plugins/tasks-and-decisions/pm-plugins/helpers.d.ts +1 -2
  72. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  73. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  74. package/dist/types/utils/action.d.ts +1 -60
  75. package/dist/types/utils/list-commands.d.ts +0 -1
  76. package/dist/types-ts4.5/extensibility.d.ts +0 -2
  77. package/dist/types-ts4.5/index.d.ts +0 -5
  78. package/dist/types-ts4.5/labs/next/presets/default.d.ts +28 -30
  79. package/dist/types-ts4.5/plugins/analytics/index.d.ts +0 -2
  80. package/dist/types-ts4.5/plugins/annotation/pm-plugins/plugin-factory.d.ts +0 -2
  81. package/dist/types-ts4.5/plugins/annotation/types.d.ts +9 -3
  82. package/dist/types-ts4.5/plugins/annotation/utils.d.ts +2 -5
  83. package/dist/types-ts4.5/plugins/base/pm-plugins/context-identifier.d.ts +1 -1
  84. package/dist/types-ts4.5/plugins/block-type/commands/block-type.d.ts +0 -2
  85. package/dist/types-ts4.5/plugins/block-type/pm-plugins/main.d.ts +6 -1
  86. package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/main.d.ts +1 -1
  87. package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +0 -2
  88. package/dist/types-ts4.5/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.d.ts +8 -1
  89. package/dist/types-ts4.5/plugins/code-block/pm-plugins/main.d.ts +2 -1
  90. package/dist/types-ts4.5/plugins/code-block/utils.d.ts +1 -1
  91. package/dist/types-ts4.5/plugins/collab-edit/utils.d.ts +1 -5
  92. package/dist/types-ts4.5/plugins/copy-button/pm-plugins/main.d.ts +10 -1
  93. package/dist/types-ts4.5/plugins/copy-button/toolbar.d.ts +0 -2
  94. package/dist/types-ts4.5/plugins/copy-button/utils.d.ts +1 -1
  95. package/dist/types-ts4.5/plugins/custom-autoformat/index.d.ts +2 -1
  96. package/dist/types-ts4.5/plugins/date/pm-plugins/main.d.ts +0 -2
  97. package/dist/types-ts4.5/plugins/expand/pm-plugins/main.d.ts +1 -1
  98. package/dist/types-ts4.5/plugins/expand/pm-plugins/plugin-factory.d.ts +0 -2
  99. package/dist/types-ts4.5/plugins/extension/plugin-factory.d.ts +0 -2
  100. package/dist/types-ts4.5/plugins/extension/utils.d.ts +1 -1
  101. package/dist/types-ts4.5/plugins/find-replace/plugin.d.ts +0 -2
  102. package/dist/types-ts4.5/plugins/find-replace/utils/index.d.ts +1 -4
  103. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/force-focus/index.d.ts +3 -1
  104. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.d.ts +0 -2
  105. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  106. package/dist/types-ts4.5/plugins/list/pm-plugins/input-rules/wrapping-join-rule.d.ts +1 -2
  107. package/dist/types-ts4.5/plugins/media/commands/helpers.d.ts +1 -1
  108. package/dist/types-ts4.5/plugins/media/pm-plugins/alt-text/index.d.ts +1 -3
  109. package/dist/types-ts4.5/plugins/media/pm-plugins/linking/index.d.ts +0 -2
  110. package/dist/types-ts4.5/plugins/media/toolbar/utils.d.ts +1 -3
  111. package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts +0 -1
  112. package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/index.d.ts +0 -1
  113. package/dist/types-ts4.5/plugins/mobile-dimensions/plugin-factory.d.ts +0 -2
  114. package/dist/types-ts4.5/plugins/panel/utils.d.ts +1 -1
  115. package/dist/types-ts4.5/plugins/paste/pm-plugins/main.d.ts +1 -1
  116. package/dist/types-ts4.5/plugins/paste/pm-plugins/plugin-factory.d.ts +0 -2
  117. package/dist/types-ts4.5/plugins/paste/util/index.d.ts +1 -1
  118. package/dist/types-ts4.5/plugins/selection/plugin-factory.d.ts +0 -2
  119. package/dist/types-ts4.5/plugins/selection/pm-plugins/gap-cursor-main.d.ts +1 -1
  120. package/dist/types-ts4.5/plugins/selection/pm-plugins/selection-main.d.ts +1 -1
  121. package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/helpers.d.ts +1 -2
  122. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  123. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  124. package/dist/types-ts4.5/utils/action.d.ts +1 -60
  125. package/dist/types-ts4.5/utils/list-commands.d.ts +0 -1
  126. package/package.json +5 -4
  127. package/report.api.md +1 -24
  128. package/tmp/api-report-tmp.d.ts +1 -21
  129. package/dist/cjs/plugins/text-formatting/actions.js +0 -188
  130. package/dist/cjs/plugins/text-formatting/commands/clear-formatting.js +0 -111
  131. package/dist/cjs/plugins/text-formatting/commands/text-formatting.js +0 -143
  132. package/dist/cjs/plugins/text-formatting/commands/transform-to-code.js +0 -68
  133. package/dist/cjs/plugins/text-formatting/index.js +0 -136
  134. package/dist/cjs/plugins/text-formatting/pm-plugins/clear-formatting-keymap.js +0 -21
  135. package/dist/cjs/plugins/text-formatting/pm-plugins/clear-formatting.js +0 -36
  136. package/dist/cjs/plugins/text-formatting/pm-plugins/cursor.js +0 -55
  137. package/dist/cjs/plugins/text-formatting/pm-plugins/input-rule.js +0 -276
  138. package/dist/cjs/plugins/text-formatting/pm-plugins/keymap.js +0 -52
  139. package/dist/cjs/plugins/text-formatting/pm-plugins/main.js +0 -113
  140. package/dist/cjs/plugins/text-formatting/pm-plugins/plugin-key.js +0 -9
  141. package/dist/cjs/plugins/text-formatting/pm-plugins/smart-input-rule.js +0 -176
  142. package/dist/cjs/plugins/text-formatting/ui/Toolbar/constants.js +0 -19
  143. package/dist/cjs/plugins/text-formatting/ui/Toolbar/dropdown-menu.js +0 -86
  144. package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +0 -53
  145. package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +0 -225
  146. package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/menu-state.js +0 -23
  147. package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/responsive-toolbar-buttons.js +0 -60
  148. package/dist/cjs/plugins/text-formatting/ui/Toolbar/index.js +0 -201
  149. package/dist/cjs/plugins/text-formatting/ui/Toolbar/more-button.js +0 -40
  150. package/dist/cjs/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +0 -46
  151. package/dist/cjs/plugins/text-formatting/ui/Toolbar/types.js +0 -17
  152. package/dist/cjs/plugins/text-formatting/utils/cell-selection.js +0 -12
  153. package/dist/cjs/plugins/text-formatting/utils.js +0 -86
  154. package/dist/es2019/plugins/text-formatting/actions.js +0 -161
  155. package/dist/es2019/plugins/text-formatting/commands/clear-formatting.js +0 -105
  156. package/dist/es2019/plugins/text-formatting/commands/text-formatting.js +0 -144
  157. package/dist/es2019/plugins/text-formatting/commands/transform-to-code.js +0 -71
  158. package/dist/es2019/plugins/text-formatting/index.js +0 -127
  159. package/dist/es2019/plugins/text-formatting/pm-plugins/clear-formatting-keymap.js +0 -10
  160. package/dist/es2019/plugins/text-formatting/pm-plugins/clear-formatting.js +0 -26
  161. package/dist/es2019/plugins/text-formatting/pm-plugins/cursor.js +0 -52
  162. package/dist/es2019/plugins/text-formatting/pm-plugins/input-rule.js +0 -244
  163. package/dist/es2019/plugins/text-formatting/pm-plugins/keymap.js +0 -43
  164. package/dist/es2019/plugins/text-formatting/pm-plugins/main.js +0 -109
  165. package/dist/es2019/plugins/text-formatting/pm-plugins/plugin-key.js +0 -2
  166. package/dist/es2019/plugins/text-formatting/pm-plugins/smart-input-rule.js +0 -155
  167. package/dist/es2019/plugins/text-formatting/ui/Toolbar/constants.js +0 -20
  168. package/dist/es2019/plugins/text-formatting/ui/Toolbar/dropdown-menu.js +0 -66
  169. package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +0 -42
  170. package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +0 -210
  171. package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/menu-state.js +0 -11
  172. package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/responsive-toolbar-buttons.js +0 -48
  173. package/dist/es2019/plugins/text-formatting/ui/Toolbar/index.js +0 -168
  174. package/dist/es2019/plugins/text-formatting/ui/Toolbar/more-button.js +0 -32
  175. package/dist/es2019/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +0 -36
  176. package/dist/es2019/plugins/text-formatting/ui/Toolbar/types.js +0 -10
  177. package/dist/es2019/plugins/text-formatting/utils/cell-selection.js +0 -5
  178. package/dist/es2019/plugins/text-formatting/utils.js +0 -74
  179. package/dist/esm/plugins/text-formatting/actions.js +0 -168
  180. package/dist/esm/plugins/text-formatting/commands/clear-formatting.js +0 -101
  181. package/dist/esm/plugins/text-formatting/commands/text-formatting.js +0 -134
  182. package/dist/esm/plugins/text-formatting/commands/transform-to-code.js +0 -61
  183. package/dist/esm/plugins/text-formatting/index.js +0 -128
  184. package/dist/esm/plugins/text-formatting/pm-plugins/clear-formatting-keymap.js +0 -10
  185. package/dist/esm/plugins/text-formatting/pm-plugins/clear-formatting.js +0 -28
  186. package/dist/esm/plugins/text-formatting/pm-plugins/cursor.js +0 -48
  187. package/dist/esm/plugins/text-formatting/pm-plugins/input-rule.js +0 -259
  188. package/dist/esm/plugins/text-formatting/pm-plugins/keymap.js +0 -43
  189. package/dist/esm/plugins/text-formatting/pm-plugins/main.js +0 -98
  190. package/dist/esm/plugins/text-formatting/pm-plugins/plugin-key.js +0 -2
  191. package/dist/esm/plugins/text-formatting/pm-plugins/smart-input-rule.js +0 -169
  192. package/dist/esm/plugins/text-formatting/ui/Toolbar/constants.js +0 -8
  193. package/dist/esm/plugins/text-formatting/ui/Toolbar/dropdown-menu.js +0 -75
  194. package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +0 -45
  195. package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +0 -213
  196. package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/menu-state.js +0 -15
  197. package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/responsive-toolbar-buttons.js +0 -50
  198. package/dist/esm/plugins/text-formatting/ui/Toolbar/index.js +0 -191
  199. package/dist/esm/plugins/text-formatting/ui/Toolbar/more-button.js +0 -31
  200. package/dist/esm/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +0 -35
  201. package/dist/esm/plugins/text-formatting/ui/Toolbar/types.js +0 -10
  202. package/dist/esm/plugins/text-formatting/utils/cell-selection.js +0 -5
  203. package/dist/esm/plugins/text-formatting/utils.js +0 -75
  204. package/dist/types/plugins/text-formatting/actions.d.ts +0 -22
  205. package/dist/types/plugins/text-formatting/commands/clear-formatting.d.ts +0 -6
  206. package/dist/types/plugins/text-formatting/commands/text-formatting.d.ts +0 -5
  207. package/dist/types/plugins/text-formatting/commands/transform-to-code.d.ts +0 -2
  208. package/dist/types/plugins/text-formatting/index.d.ts +0 -17
  209. package/dist/types/plugins/text-formatting/pm-plugins/clear-formatting-keymap.d.ts +0 -4
  210. package/dist/types/plugins/text-formatting/pm-plugins/clear-formatting.d.ts +0 -8
  211. package/dist/types/plugins/text-formatting/pm-plugins/cursor.d.ts +0 -3
  212. package/dist/types/plugins/text-formatting/pm-plugins/input-rule.d.ts +0 -24
  213. package/dist/types/plugins/text-formatting/pm-plugins/keymap.d.ts +0 -4
  214. package/dist/types/plugins/text-formatting/pm-plugins/main.d.ts +0 -7
  215. package/dist/types/plugins/text-formatting/pm-plugins/plugin-key.d.ts +0 -3
  216. package/dist/types/plugins/text-formatting/pm-plugins/smart-input-rule.d.ts +0 -3
  217. package/dist/types/plugins/text-formatting/ui/Toolbar/constants.d.ts +0 -6
  218. package/dist/types/plugins/text-formatting/ui/Toolbar/dropdown-menu.d.ts +0 -15
  219. package/dist/types/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.d.ts +0 -7
  220. package/dist/types/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.d.ts +0 -14
  221. package/dist/types/plugins/text-formatting/ui/Toolbar/hooks/menu-state.d.ts +0 -1
  222. package/dist/types/plugins/text-formatting/ui/Toolbar/hooks/responsive-toolbar-buttons.d.ts +0 -20
  223. package/dist/types/plugins/text-formatting/ui/Toolbar/index.d.ts +0 -26
  224. package/dist/types/plugins/text-formatting/ui/Toolbar/more-button.d.ts +0 -13
  225. package/dist/types/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.d.ts +0 -9
  226. package/dist/types/plugins/text-formatting/ui/Toolbar/types.d.ts +0 -32
  227. package/dist/types/plugins/text-formatting/utils/cell-selection.d.ts +0 -3
  228. package/dist/types/plugins/text-formatting/utils.d.ts +0 -11
  229. package/dist/types-ts4.5/plugins/text-formatting/actions.d.ts +0 -22
  230. package/dist/types-ts4.5/plugins/text-formatting/commands/clear-formatting.d.ts +0 -6
  231. package/dist/types-ts4.5/plugins/text-formatting/commands/text-formatting.d.ts +0 -5
  232. package/dist/types-ts4.5/plugins/text-formatting/commands/transform-to-code.d.ts +0 -2
  233. package/dist/types-ts4.5/plugins/text-formatting/index.d.ts +0 -19
  234. package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/clear-formatting-keymap.d.ts +0 -4
  235. package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/clear-formatting.d.ts +0 -8
  236. package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/cursor.d.ts +0 -3
  237. package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/input-rule.d.ts +0 -24
  238. package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/keymap.d.ts +0 -4
  239. package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/main.d.ts +0 -7
  240. package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/plugin-key.d.ts +0 -3
  241. package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/smart-input-rule.d.ts +0 -3
  242. package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/constants.d.ts +0 -6
  243. package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/dropdown-menu.d.ts +0 -15
  244. package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.d.ts +0 -7
  245. package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.d.ts +0 -14
  246. package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/hooks/menu-state.d.ts +0 -5
  247. package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/hooks/responsive-toolbar-buttons.d.ts +0 -20
  248. package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/index.d.ts +0 -26
  249. package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/more-button.d.ts +0 -13
  250. package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.d.ts +0 -9
  251. package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/types.d.ts +0 -32
  252. package/dist/types-ts4.5/plugins/text-formatting/utils/cell-selection.d.ts +0 -3
  253. package/dist/types-ts4.5/plugins/text-formatting/utils.d.ts +0 -11
@@ -1,9 +1,7 @@
1
- /// <reference path="../../../../../../../../typings/prosemirror.d.ts" />
2
- /// <reference path="../../../../../../../../typings/prosemirror-state.d.ts" />
3
1
  import type { MediaBaseAttributes } from '@atlaskit/adf-schema';
4
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
3
  import type { MediaPluginState } from '../pm-plugins/types';
6
4
  export declare const getSelectedMediaContainerNodeAttrs: (mediaPluginState: MediaPluginState) => MediaBaseAttributes | null;
7
5
  export declare const downloadMedia: (mediaPluginState: MediaPluginState) => Promise<boolean>;
8
6
  export declare const removeMediaGroupNode: (state: EditorState) => import("prosemirror-state").Transaction;
9
- export declare const getSelectedMediaSingle: (state: EditorState) => import("prosemirror-utils").ContentNodeWithPos | undefined;
7
+ export declare const getSelectedMediaSingle: (state: EditorState) => import("prosemirror-utils/dist/types").FindResult;
@@ -1,4 +1,3 @@
1
- /// <reference path="../../../../../../../../../typings/prosemirror.d.ts" />
2
1
  /** @jsx jsx */
3
2
  import React from 'react';
4
3
  import { jsx } from '@emotion/react';
@@ -1,4 +1,3 @@
1
- /// <reference path="../../../../../../../../../typings/prosemirror.d.ts" />
2
1
  /** @jsx jsx */
3
2
  import React from 'react';
4
3
  import { jsx } from '@emotion/react';
@@ -1,5 +1,3 @@
1
- /// <reference path="../../../../../../../typings/prosemirror.d.ts" />
2
- /// <reference path="../../../../../../../typings/prosemirror-state.d.ts" />
3
1
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
2
  import type { MobileDimensionsPluginState } from './types';
5
3
  import type { MobileDimensionsAction } from './actions';
@@ -1,5 +1,5 @@
1
1
  import type { DOMOutputSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { PanelAttributes } from '@atlaskit/adf-schema';
4
- export declare const findPanel: (state: EditorState, selection?: Selection | null) => import("prosemirror-utils").ContentNodeWithPos | undefined;
4
+ export declare const findPanel: (state: EditorState, selection?: Selection | null) => import("prosemirror-utils/dist/types").FindResult;
5
5
  export declare const panelAttrsToDom: (attrs: PanelAttributes, allowCustomPanel: boolean) => DOMOutputSpec;
@@ -7,4 +7,4 @@ export { pluginKey as stateKey } from './plugin-factory';
7
7
  import type { Dispatch } from '../../../event-dispatcher';
8
8
  import type { FeatureFlags, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
9
9
  import type pastePlugin from '../';
10
- export declare function createPlugin(schema: Schema, dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, featureFlags: FeatureFlags, pluginInjectionApi: ExtractInjectionAPI<typeof pastePlugin> | undefined, cardOptions?: CardOptions, sanitizePrivateContent?: boolean, providerFactory?: ProviderFactory): SafePlugin<any>;
10
+ export declare function createPlugin(schema: Schema, dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, featureFlags: FeatureFlags, pluginInjectionApi: ExtractInjectionAPI<typeof pastePlugin> | undefined, cardOptions?: CardOptions, sanitizePrivateContent?: boolean, providerFactory?: ProviderFactory): SafePlugin<import("../types").PastePluginState>;
@@ -1,5 +1,3 @@
1
- /// <reference path="../../../../../../../../typings/prosemirror.d.ts" />
2
- /// <reference path="../../../../../../../../typings/prosemirror-state.d.ts" />
3
1
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
2
  export declare const pluginKey: PluginKey<any>;
5
3
  export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("../types").PastePluginState | ((state: import("prosemirror-state").EditorState) => import("../types").PastePluginState)) => import("prosemirror-state").SafeStateField<import("../types").PastePluginState>, createCommand: <A = import("../actions").PastePluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("../types").PastePluginState;
@@ -12,7 +12,7 @@ export declare function escapeLinks(text: string): string;
12
12
  export declare function hasOnlyNodesOfType(...nodeTypes: NodeType[]): (slice: Slice) => boolean;
13
13
  export declare function applyTextMarksToSlice(schema: Schema, marks?: readonly Mark[]): (slice: Slice) => Slice;
14
14
  export declare function isEmptyNode(node: PMNode | null | undefined): boolean | null;
15
- export declare function isCursorSelectionAtTextStartOrEnd(selection: Selection): boolean | null | undefined;
15
+ export declare function isCursorSelectionAtTextStartOrEnd(selection: Selection): boolean | null;
16
16
  export declare function isPanelNode(node: PMNode | null | undefined): boolean;
17
17
  export declare function isSelectionInsidePanel(selection: Selection): PMNode | null;
18
18
  export declare const htmlHasInvalidLinkTags: (html?: string) => boolean;
@@ -1,4 +1,2 @@
1
- /// <reference path="../../../../../../../typings/prosemirror.d.ts" />
2
- /// <reference path="../../../../../../../typings/prosemirror-state.d.ts" />
3
1
  import type { SelectionPluginState } from './types';
4
2
  export declare const createCommand: <A = import("./actions").SelectionAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => SelectionPluginState, createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: SelectionPluginState | ((state: import("prosemirror-state").EditorState) => SelectionPluginState)) => import("prosemirror-state").SafeStateField<SelectionPluginState>;
@@ -1,3 +1,3 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- declare const plugin: SafePlugin<any>;
2
+ declare const plugin: SafePlugin<boolean>;
3
3
  export default plugin;
@@ -4,4 +4,4 @@ import type { Dispatch } from '../../../event-dispatcher';
4
4
  import type { DispatchAnalyticsEvent } from '../../analytics';
5
5
  import type { SelectionPluginOptions, SelectionPluginState } from '../types';
6
6
  export declare const getInitialState: (state: EditorState) => SelectionPluginState;
7
- export declare const createPlugin: (dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent, options?: SelectionPluginOptions) => SafePlugin<any>;
7
+ export declare const createPlugin: (dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent, options?: SelectionPluginOptions) => SafePlugin<SelectionPluginState>;
@@ -1,4 +1,3 @@
1
- /// <reference path="../../../../../../../../typings/prosemirror.d.ts" />
2
1
  import type { Node, NodeType, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
3
2
  import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
4
3
  export declare const isInsideTaskOrDecisionItem: (state: EditorState) => boolean;
@@ -11,7 +10,7 @@ export declare const isTable: (node?: Node | null) => Boolean;
11
10
  * Creates a NodeRange around the given taskItem and the following
12
11
  * ("nested") taskList, if one exists.
13
12
  */
14
- export declare const getBlockRange: ($from: ResolvedPos, $to: ResolvedPos) => import("prosemirror-model").NodeRange | null | undefined;
13
+ export declare const getBlockRange: ($from: ResolvedPos, $to: ResolvedPos) => import("prosemirror-model").NodeRange | null;
15
14
  /**
16
15
  * Finds the distance between the current $from and the root of the taskList.
17
16
  */
@@ -3,7 +3,7 @@ export declare const fullPageEditorWrapper: import("@emotion/react").SerializedS
3
3
  export declare const ScrollContainer: import("react").ForwardRefExoticComponent<Pick<{
4
4
  theme?: any;
5
5
  featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
6
- } & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "default" | "action" | "disabled" | "children" | "property" | "aria-hidden" | "size" | "aria-expanded" | "aria-label" | "className" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | keyof {
6
+ } & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "property" | "aria-hidden" | "size" | "aria-expanded" | "aria-label" | "className" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | keyof {
7
7
  theme?: any;
8
8
  featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
9
9
  }> & import("react").RefAttributes<HTMLDivElement>>;
@@ -8,6 +8,6 @@ type ContentStylesProps = {
8
8
  featureFlags?: FeatureFlags;
9
9
  };
10
10
  type Props = ContentStylesProps & React.HTMLProps<HTMLDivElement>;
11
- export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "default" | "action" | "disabled" | "children" | "property" | "aria-hidden" | "size" | "aria-expanded" | "aria-label" | "className" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | keyof ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
12
- declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "default" | "action" | "disabled" | "children" | "property" | "aria-hidden" | "size" | "aria-expanded" | "aria-label" | "className" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | keyof ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
11
+ export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "property" | "aria-hidden" | "size" | "aria-expanded" | "aria-label" | "className" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | keyof ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "property" | "aria-hidden" | "size" | "aria-expanded" | "aria-label" | "className" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | keyof ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
13
13
  export default _default;
@@ -1,66 +1,7 @@
1
- /// <reference path="../../../../../../typings/prosemirror.d.ts" />
2
1
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
2
  import type { Command } from '../types/command';
4
3
  export declare function __temporaryFixForConfigPanel(editorView: EditorView): Promise<void>;
5
- export declare function getEditorValueWithMedia(editorView: EditorView): Promise<{
6
- type: import("prosemirror-model").NodeType;
7
- attrs: {
8
- [key: string]: any;
9
- };
10
- content: import("prosemirror-model").Fragment;
11
- marks: import("prosemirror-model").Mark[];
12
- text?: string | null | undefined;
13
- nodeSize: number;
14
- childCount: number;
15
- child(index: number): any;
16
- maybeChild(index: number): any | null | undefined;
17
- forEach(f: (node: any, offset: number, index: number) => void): void;
18
- nodesBetween(from: number, to: number, f: (node: any, pos: number, parent: any, index: number) => boolean | void | null | undefined, startPos?: number | undefined): void;
19
- descendants(f: (node: any, pos: number, parent: any) => boolean | void | null | undefined): void;
20
- textContent: string;
21
- textBetween(from: number, to: number, blockSeparator?: string | undefined, leafText?: string | undefined): string;
22
- firstChild?: any | null | undefined;
23
- lastChild?: any | null | undefined;
24
- eq(other: any): boolean;
25
- sameMarkup(other: any): boolean;
26
- hasMarkup(type: import("prosemirror-model").NodeType, attrs?: {
27
- [key: string]: any;
28
- } | undefined, marks?: import("prosemirror-model").Mark[] | undefined): boolean;
29
- copy(content?: import("prosemirror-model").Fragment | undefined): any;
30
- mark(marks: import("prosemirror-model").Mark[]): any;
31
- cut(from: number, to?: number | undefined): any;
32
- slice(from: number, to?: number | undefined): import("prosemirror-model").Slice;
33
- replace(from: number, to: number, slice: import("prosemirror-model").Slice): any;
34
- nodeAt(pos: number): any | null | undefined;
35
- childAfter(pos: number): {
36
- node?: any | null | undefined;
37
- index: number;
38
- offset: number;
39
- };
40
- childBefore(pos: number): {
41
- node?: any | null | undefined;
42
- index: number;
43
- offset: number;
44
- };
45
- resolve(pos: number): import("prosemirror-model").ResolvedPos;
46
- rangeHasMark(from: number, to: number, type: import("prosemirror-model").Mark | import("prosemirror-model").MarkType): boolean;
47
- isBlock: boolean;
48
- isTextblock: boolean;
49
- inlineContent: boolean;
50
- isInline: boolean;
51
- isText: boolean;
52
- isLeaf: boolean;
53
- isAtom: boolean;
54
- toString(): string;
55
- contentMatchAt(index: number): import("prosemirror-model").ContentMatch;
56
- canReplace(from: number, to: number, replacement?: import("prosemirror-model").Fragment | undefined, start?: number | undefined, end?: number | undefined): boolean;
57
- canReplaceWith(from: number, to: number, type: import("prosemirror-model").NodeType, marks?: import("prosemirror-model").Mark[] | undefined): boolean;
58
- canAppend(other: any): boolean;
59
- check(): void;
60
- toJSON(): {
61
- [key: string]: any;
62
- };
63
- }>;
4
+ export declare function getEditorValueWithMedia(editorView: EditorView): Promise<import("prosemirror-model").Node>;
64
5
  /**
65
6
  * Iterates over the commands one after the other,
66
7
  * passes the tr through and dispatches the cumulated transaction
@@ -1,4 +1,3 @@
1
- /// <reference path="../../../../../../typings/prosemirror.d.ts" />
2
1
  export declare const getListCommands: () => {
3
2
  indentList: (editorAnalyticsAPI: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI | undefined) => (inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) => import("..").Command;
4
3
  outdentList: (editorAnalyticsAPI: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI | undefined) => (inputMethod: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined, featureFlags: import("@atlaskit/editor-common/types").FeatureFlags) => import("..").Command;
@@ -1,5 +1,3 @@
1
- /// <reference path="../../../../../typings/prosemirror.d.ts" />
2
- /// <reference path="../../../../../typings/prosemirror-state.d.ts" />
3
1
  export { getChangedNodes } from './utils/document';
4
2
  export { validateNodes } from './utils/nodes';
5
3
  export { toJSON } from './utils';
@@ -77,8 +77,3 @@ export { DEFAULT_BORDER_COLOR } from './ui/ColorPalette/Palettes/common';
77
77
  export { default as messages, statusMessages, dateMessages } from './messages';
78
78
  export { createTypeAheadTools } from './plugins/type-ahead/api';
79
79
  export { createQuickInsertTools } from './plugins/quick-insert/api';
80
- export type {
81
- /**
82
- * Temporary, until we extract the plugin to its own package
83
- * @deprecated Don't use this
84
- */ textFormattingPlugin, } from './plugins';
@@ -1,5 +1,3 @@
1
- /// <reference path="../../../../../../../../typings/prosemirror.d.ts" />
2
- /// <reference path="../../../../../../../../typings/prosemirror-state.d.ts" />
3
1
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
2
  import type { PastePluginOptions } from '../../../plugins/paste';
5
3
  import type { BasePluginOptions } from '../../../plugins/base';
@@ -312,13 +310,13 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
312
310
  }>>
313
311
  ];
314
312
  actions: {
315
- toggleSuperscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
316
- toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
317
- toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
318
- toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
319
- toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
320
- toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
321
- toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
313
+ toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
314
+ toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
315
+ toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
316
+ toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
317
+ toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
318
+ toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
319
+ toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
322
320
  };
323
321
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
324
322
  pluginConfiguration: TextFormattingOptions | undefined;
@@ -358,13 +356,13 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
358
356
  }>>
359
357
  ];
360
358
  actions: {
361
- toggleSuperscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
362
- toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
363
- toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
364
- toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
365
- toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
366
- toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
367
- toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
359
+ toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
360
+ toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
361
+ toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
362
+ toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
363
+ toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
364
+ toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
365
+ toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
368
366
  };
369
367
  }>,
370
368
  (config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
@@ -753,13 +751,13 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
753
751
  }>>
754
752
  ];
755
753
  actions: {
756
- toggleSuperscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
757
- toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
758
- toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
759
- toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
760
- toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
761
- toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
762
- toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
754
+ toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
755
+ toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
756
+ toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
757
+ toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
758
+ toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
759
+ toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
760
+ toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
763
761
  };
764
762
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
765
763
  pluginConfiguration: TextFormattingOptions | undefined;
@@ -799,13 +797,13 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
799
797
  }>>
800
798
  ];
801
799
  actions: {
802
- toggleSuperscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
803
- toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
804
- toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
805
- toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
806
- toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
807
- toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
808
- toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
800
+ toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
801
+ toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
802
+ toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
803
+ toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
804
+ toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
805
+ toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
806
+ toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
809
807
  };
810
808
  }>,
811
809
  (config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
@@ -1,5 +1,3 @@
1
- /// <reference path="../../../../../../../typings/prosemirror.d.ts" />
2
- /// <reference path="../../../../../../../typings/prosemirror-state.d.ts" />
3
1
  import analyticsPlugin from './plugin';
4
2
  export { ACTION_SUBJECT_ID, ACTION_SUBJECT, ACTION, BROWSER_FREEZE_INTERACTION_TYPE, EVENT_TYPE, FULL_WIDTH_MODE, INDENT_DIRECTION, INDENT_TYPE, INPUT_METHOD, LINK_REPRESENTATION, LINK_RESOURCE, LINK_STATUS, MODE, PasteContents, PasteSources, PasteTypes, PLATFORMS, PUNC, SYMBOL, TABLE_ACTION, TABLE_BREAKOUT, TRIGGER_METHOD, USER_CONTEXT, DELETE_DIRECTION, LIST_TEXT_SCENARIOS, fireAnalyticsEvent, getAnalyticsEventsFromTransaction, } from '@atlaskit/editor-common/analytics';
5
3
  export type { AnalyticsDispatch, AnalyticsEventPayload, AnalyticsEventPayloadWithChannel, CommonListAnalyticsAttributes, CreateLinkInlineDialogActionType, CreateLinkInlineDialogEventPayload, ErrorEventPayload, ErrorEventAttributes, FormatEventPayload, GeneralEventPayload, InputMethodInsertLink, InputMethodInsertMedia, InsertEventPayload, MediaAltTextActionType, MediaEventPayload, MediaLinkAEP, PASTE_ACTION_SUBJECT_ID, PasteContent, PasteEventPayload, PasteSource, PasteType, SubstituteEventPayload, TableEventPayload, FireAnalyticsCallback, FireAnalyticsEvent, } from '@atlaskit/editor-common/analytics';
@@ -1,4 +1,2 @@
1
- /// <reference path="../../../../../../../../typings/prosemirror.d.ts" />
2
- /// <reference path="../../../../../../../../typings/prosemirror-state.d.ts" />
3
1
  import type { InlineCommentPluginState } from './types';
4
2
  export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: InlineCommentPluginState | ((state: import("prosemirror-state").EditorState) => InlineCommentPluginState)) => import("prosemirror-state").SafeStateField<InlineCommentPluginState>, createCommand: <A = import("./types").InlineCommentAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { AnnotationTypes } from '@atlaskit/adf-schema';
3
- import { AnnotationUpdateEmitter } from './update-provider';
1
+ import type React from 'react';
2
+ import type { AnnotationTypes } from '@atlaskit/adf-schema';
3
+ import type { AnnotationUpdateEmitter } from './update-provider';
4
4
  export type AnnotationInfo = {
5
5
  id: string;
6
6
  type: AnnotationTypes.INLINE_COMMENT;
@@ -73,4 +73,10 @@ export declare const AnnotationTestIds: {
73
73
  componentSave: string;
74
74
  componentClose: string;
75
75
  };
76
+ export type CoordsAtPos = {
77
+ top: number;
78
+ bottom: number;
79
+ left: number;
80
+ right: number;
81
+ };
76
82
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference path="../../../../../../../typings/prosemirror.d.ts" />
2
1
  import type { ResolvedPos, Mark, Node, Slice, Schema } from '@atlaskit/editor-prosemirror/model';
3
2
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
4
3
  import { PluginKey, TextSelection, AllSelection } from '@atlaskit/editor-prosemirror/state';
@@ -12,11 +11,9 @@ import type { AnalyticsEventPayloadCallback } from '../analytics/utils';
12
11
  * Finds the marks in the nodes to the left and right.
13
12
  * @param $pos Position to center search around
14
13
  */
15
- export declare const surroundingMarks: ($pos: ResolvedPos) => Mark[][];
14
+ export declare const surroundingMarks: ($pos: ResolvedPos) => (readonly Mark[])[];
16
15
  export declare const getAllAnnotations: (doc: Node) => string[];
17
- export declare const addDraftDecoration: (start: number, end: number) => Decoration<{
18
- [key: string]: any;
19
- } & import("prosemirror-view").InlineDecorationSpec>;
16
+ export declare const addDraftDecoration: (start: number, end: number) => Decoration;
20
17
  export declare const getAnnotationViewKey: (annotations: AnnotationInfo[]) => string;
21
18
  export declare const findAnnotationsInSelection: (selection: Selection, doc: Node) => AnnotationInfo[];
22
19
  /**
@@ -9,5 +9,5 @@ export interface PluginState {
9
9
  contextIdentifierProvider?: ContextIdentifierProvider;
10
10
  }
11
11
  export declare const getContextIdentifier: (state?: EditorState) => ContextIdentifierProvider | undefined;
12
- declare const _default: (dispatch: Dispatch, providerFactory?: ProviderFactory) => SafePlugin<any>;
12
+ declare const _default: (dispatch: Dispatch, providerFactory?: ProviderFactory) => SafePlugin<{}>;
13
13
  export default _default;
@@ -1,5 +1,3 @@
1
- /// <reference path="../../../../../../../../typings/prosemirror.d.ts" />
2
- /// <reference path="../../../../../../../../typings/prosemirror-state.d.ts" />
3
1
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
2
  import type { NodeType } from '@atlaskit/editor-prosemirror/model';
5
3
  import type { HeadingLevelsAndNormalText, Command } from '@atlaskit/editor-common/types';
@@ -9,4 +9,9 @@ export type BlockTypeState = {
9
9
  availableWrapperBlockTypes: BlockType[];
10
10
  };
11
11
  export declare const pluginKey: PluginKey<BlockTypeState>;
12
- export declare const createPlugin: (editorAnalyticsApi: EditorAnalyticsAPI | undefined, dispatch: (eventName: string | PluginKey, data: any) => void, lastNodeMustBeParagraph?: boolean) => SafePlugin<BlockTypeState>;
12
+ export declare const createPlugin: (editorAnalyticsApi: EditorAnalyticsAPI | undefined, dispatch: (eventName: string | PluginKey, data: any) => void, lastNodeMustBeParagraph?: boolean) => SafePlugin<{
13
+ currentBlockType: BlockType;
14
+ blockTypesDisabled: boolean;
15
+ availableBlockTypes: BlockType[];
16
+ availableWrapperBlockTypes: BlockType[];
17
+ }>;
@@ -2,4 +2,4 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { EditorProps, PMPluginFactoryParams } from '../../../types';
3
3
  export declare const createPlugin: ({ dispatch, getIntl }: PMPluginFactoryParams, { appearance }: {
4
4
  appearance: EditorProps['appearance'];
5
- }) => SafePlugin<any>;
5
+ }) => SafePlugin<import("./types").CodeBidiWarningPluginState>;
@@ -1,5 +1,3 @@
1
- /// <reference path="../../../../../../../../typings/prosemirror.d.ts" />
2
- /// <reference path="../../../../../../../../typings/prosemirror-state.d.ts" />
3
1
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
2
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
5
3
  export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("./types").CodeBidiWarningPluginState | ((state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState)) => import("prosemirror-state").SafeStateField<import("./types").CodeBidiWarningPluginState>, getPluginState: (state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState;
@@ -2,6 +2,13 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
4
4
  export declare const copySelectionPluginKey: PluginKey<any>;
5
- export declare function codeBlockCopySelectionPlugin(): SafePlugin<any>;
5
+ type CodeBlockCopySelectionPluginState = {
6
+ decorationStartAndEnd?: [
7
+ start: number,
8
+ end: number
9
+ ];
10
+ };
11
+ export declare function codeBlockCopySelectionPlugin(): SafePlugin<CodeBlockCopySelectionPluginState>;
6
12
  export declare function provideVisualFeedbackForCopyButton(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
7
13
  export declare function removeVisualFeedbackForCopyButton(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
14
+ export {};
@@ -1,9 +1,10 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { IntlShape } from 'react-intl-next';
3
3
  import type { EditorProps } from '../../../types';
4
+ import type { CodeBlockState } from './main-state';
4
5
  export declare const createPlugin: ({ useLongPressSelection, getIntl, appearance, allowCompositionInputOverride, }: {
5
6
  useLongPressSelection?: boolean | undefined;
6
7
  getIntl: () => IntlShape;
7
8
  appearance: EditorProps['appearance'];
8
9
  allowCompositionInputOverride?: boolean | undefined;
9
- }) => SafePlugin<any>;
10
+ }) => SafePlugin<CodeBlockState>;
@@ -3,4 +3,4 @@ import { Slice } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
4
4
  export declare function transformSliceToJoinAdjacentCodeBlocks(slice: Slice): Slice;
5
5
  export declare const transformSingleLineCodeBlockToCodeMark: (slice: Slice, schema: Schema) => Slice;
6
- export declare const findCodeBlock: (state: EditorState, selection?: Selection | null) => import("prosemirror-utils").ContentNodeWithPos | undefined;
6
+ export declare const findCodeBlock: (state: EditorState, selection?: Selection | null) => import("prosemirror-utils/dist/types").FindResult;