@atlaskit/editor-core 202.5.0 → 203.0.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 (287) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/dist/cjs/actions/index.js +6 -1
  3. package/dist/cjs/composable-editor/composable-editor.js +2 -2
  4. package/dist/cjs/create-editor/ReactEditorView.js +3 -3
  5. package/dist/cjs/create-editor/ReactEditorViewNext.js +3 -3
  6. package/dist/cjs/create-editor/create-editor.js +2 -2
  7. package/dist/cjs/create-editor/create-plugins-list.js +1 -1
  8. package/dist/cjs/create-editor/create-schema.js +3 -3
  9. package/dist/cjs/create-editor/get-ui-component.js +4 -4
  10. package/dist/cjs/editor-appearances/CommentEditor.js +2 -2
  11. package/dist/cjs/editor-appearances/FullPageEditor.js +2 -2
  12. package/dist/cjs/editor-appearances/FullWidthEditor.js +2 -2
  13. package/dist/cjs/editor.js +2 -1
  14. package/dist/cjs/index.js +4 -10
  15. package/dist/cjs/test-utils.js +4 -23
  16. package/dist/cjs/ui/Appearance/Comment/Comment.js +8 -8
  17. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
  18. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
  19. package/dist/cjs/ui/ContentStyles/layout.js +2 -14
  20. package/dist/cjs/ui/PluginSlot/index.js +2 -2
  21. package/dist/cjs/ui/Toolbar/Toolbar.js +1 -1
  22. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
  23. package/dist/cjs/ui/Toolbar/toolbar-size.js +1 -1
  24. package/dist/cjs/ui/WithHelpTrigger/index.js +1 -1
  25. package/dist/cjs/utils/{index.js → whichTransitionEvent.js} +0 -15
  26. package/dist/cjs/version-wrapper.js +1 -1
  27. package/dist/es2019/actions/index.js +6 -1
  28. package/dist/es2019/composable-editor/composable-editor.js +1 -1
  29. package/dist/es2019/composable-editor.js +3 -0
  30. package/dist/es2019/create-editor/ReactEditorView.js +2 -2
  31. package/dist/es2019/create-editor/ReactEditorViewNext.js +2 -2
  32. package/dist/es2019/create-editor/create-editor.js +1 -1
  33. package/dist/es2019/create-editor/create-plugins-list.js +1 -1
  34. package/dist/es2019/create-editor/create-schema.js +1 -1
  35. package/dist/es2019/create-editor/get-ui-component.js +2 -2
  36. package/dist/es2019/editor-appearances/CommentEditor.js +1 -1
  37. package/dist/es2019/editor-appearances/FullPageEditor.js +1 -1
  38. package/dist/es2019/editor-appearances/FullWidthEditor.js +1 -1
  39. package/dist/es2019/editor-context.js +3 -0
  40. package/dist/es2019/editor.js +3 -0
  41. package/dist/es2019/i18n/index.js +3 -0
  42. package/dist/es2019/index.js +6 -2
  43. package/dist/es2019/labs-next.js +3 -0
  44. package/dist/es2019/preset-default.js +3 -0
  45. package/dist/es2019/preset-universal.js +3 -0
  46. package/dist/es2019/test-utils.js +4 -3
  47. package/dist/es2019/ui/Appearance/Comment/Comment.js +3 -3
  48. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
  49. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
  50. package/dist/es2019/ui/ContentStyles/layout.js +11 -7
  51. package/dist/es2019/ui/PluginSlot/index.js +1 -1
  52. package/dist/es2019/ui/Toolbar/Toolbar.js +1 -1
  53. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
  54. package/dist/es2019/ui/Toolbar/toolbar-size.js +1 -2
  55. package/dist/es2019/ui/WithHelpTrigger/index.js +1 -1
  56. package/dist/es2019/utils/{index.js → whichTransitionEvent.js} +0 -3
  57. package/dist/es2019/version-wrapper.js +1 -1
  58. package/dist/esm/actions/index.js +6 -1
  59. package/dist/esm/composable-editor/composable-editor.js +1 -1
  60. package/dist/esm/composable-editor.js +3 -0
  61. package/dist/esm/create-editor/ReactEditorView.js +2 -2
  62. package/dist/esm/create-editor/ReactEditorViewNext.js +2 -2
  63. package/dist/esm/create-editor/create-editor.js +1 -1
  64. package/dist/esm/create-editor/create-plugins-list.js +1 -1
  65. package/dist/esm/create-editor/create-schema.js +1 -1
  66. package/dist/esm/create-editor/get-ui-component.js +2 -2
  67. package/dist/esm/editor-appearances/CommentEditor.js +1 -1
  68. package/dist/esm/editor-appearances/FullPageEditor.js +1 -1
  69. package/dist/esm/editor-appearances/FullWidthEditor.js +1 -1
  70. package/dist/esm/editor-context.js +3 -0
  71. package/dist/esm/editor.js +3 -0
  72. package/dist/esm/i18n/index.js +3 -0
  73. package/dist/esm/index.js +6 -2
  74. package/dist/esm/labs-next.js +3 -0
  75. package/dist/esm/preset-default.js +3 -0
  76. package/dist/esm/preset-universal.js +3 -0
  77. package/dist/esm/test-utils.js +4 -3
  78. package/dist/esm/ui/Appearance/Comment/Comment.js +3 -3
  79. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
  80. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
  81. package/dist/esm/ui/ContentStyles/layout.js +2 -3
  82. package/dist/esm/ui/PluginSlot/index.js +1 -1
  83. package/dist/esm/ui/Toolbar/Toolbar.js +1 -1
  84. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
  85. package/dist/esm/ui/Toolbar/toolbar-size.js +1 -2
  86. package/dist/esm/ui/WithHelpTrigger/index.js +1 -1
  87. package/dist/esm/utils/{index.js → whichTransitionEvent.js} +0 -3
  88. package/dist/esm/version-wrapper.js +1 -1
  89. package/dist/types/actions/index.d.ts +5 -1
  90. package/dist/types/composable-editor/editor-internal.d.ts +1 -1
  91. package/dist/types/create-editor/ErrorBoundary.d.ts +1 -1
  92. package/dist/types/create-editor/ReactEditorView/formatFullWidthAppearance.d.ts +1 -1
  93. package/dist/types/create-editor/ReactEditorView.d.ts +4 -4
  94. package/dist/types/create-editor/ReactEditorViewNext.d.ts +1 -1
  95. package/dist/types/create-editor/create-editor.d.ts +2 -1
  96. package/dist/types/create-editor/create-plugins-list.d.ts +2 -1
  97. package/dist/types/create-editor/create-schema.d.ts +1 -1
  98. package/dist/types/create-editor/create-universal-preset.d.ts +202 -101
  99. package/dist/types/create-editor/feature-flags-from-props.d.ts +1 -1
  100. package/dist/types/create-editor/get-plugins.d.ts +2 -4
  101. package/dist/types/create-editor/get-ui-component.d.ts +2 -1
  102. package/dist/types/editor.d.ts +1 -2
  103. package/dist/types/index.d.ts +3 -4
  104. package/dist/types/presets/default.d.ts +158 -70
  105. package/dist/types/presets/universal.d.ts +203 -103
  106. package/dist/types/presets/useUniversalPreset.d.ts +202 -101
  107. package/dist/types/test-utils.d.ts +1 -7
  108. package/dist/types/types/editor-appearance-component.d.ts +2 -6
  109. package/dist/types/types/editor-config.d.ts +1 -4
  110. package/dist/types/types/editor-instance.d.ts +2 -3
  111. package/dist/types/types/editor-props.d.ts +4 -8
  112. package/dist/types/types/index.d.ts +0 -9
  113. package/dist/types/types/pm-plugin-list.d.ts +1 -1
  114. package/dist/types/ui/Appearance/Chromeless.d.ts +1 -1
  115. package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +3 -4
  116. package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -3
  117. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +4 -4
  118. package/dist/types/ui/ContentStyles/index.d.ts +3 -3
  119. package/dist/types/ui/ContentStyles/layout.d.ts +0 -2
  120. package/dist/types/ui/PluginSlot/index.d.ts +2 -3
  121. package/dist/types/ui/Toolbar/toolbar-size.d.ts +2 -2
  122. package/dist/types/ui/Toolbar/toolbar-types.d.ts +1 -2
  123. package/dist/types/utils/is-full-page.d.ts +1 -1
  124. package/dist/types/utils/performance/plugin-performance-observer.d.ts +2 -1
  125. package/dist/types/utils/performance/plugin-performance-report.d.ts +1 -2
  126. package/dist/types/utils/performance/track-transactions.d.ts +1 -1
  127. package/dist/types/utils/whichTransitionEvent.d.ts +1 -0
  128. package/dist/types-ts4.5/actions/index.d.ts +5 -1
  129. package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +1 -1
  130. package/dist/types-ts4.5/create-editor/ErrorBoundary.d.ts +1 -1
  131. package/dist/types-ts4.5/create-editor/ReactEditorView/formatFullWidthAppearance.d.ts +1 -1
  132. package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +4 -4
  133. package/dist/types-ts4.5/create-editor/ReactEditorViewNext.d.ts +1 -1
  134. package/dist/types-ts4.5/create-editor/create-editor.d.ts +2 -1
  135. package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +2 -1
  136. package/dist/types-ts4.5/create-editor/create-schema.d.ts +1 -1
  137. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +239 -101
  138. package/dist/types-ts4.5/create-editor/feature-flags-from-props.d.ts +1 -1
  139. package/dist/types-ts4.5/create-editor/get-plugins.d.ts +2 -4
  140. package/dist/types-ts4.5/create-editor/get-ui-component.d.ts +2 -1
  141. package/dist/types-ts4.5/editor.d.ts +1 -2
  142. package/dist/types-ts4.5/index.d.ts +3 -4
  143. package/dist/types-ts4.5/presets/default.d.ts +188 -70
  144. package/dist/types-ts4.5/presets/universal.d.ts +240 -103
  145. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +239 -101
  146. package/dist/types-ts4.5/test-utils.d.ts +1 -7
  147. package/dist/types-ts4.5/types/editor-appearance-component.d.ts +2 -6
  148. package/dist/types-ts4.5/types/editor-config.d.ts +1 -4
  149. package/dist/types-ts4.5/types/editor-instance.d.ts +2 -3
  150. package/dist/types-ts4.5/types/editor-props.d.ts +4 -8
  151. package/dist/types-ts4.5/types/index.d.ts +0 -9
  152. package/dist/types-ts4.5/types/pm-plugin-list.d.ts +1 -1
  153. package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +1 -1
  154. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +3 -4
  155. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -3
  156. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +4 -4
  157. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +3 -3
  158. package/dist/types-ts4.5/ui/ContentStyles/layout.d.ts +0 -2
  159. package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +2 -3
  160. package/dist/types-ts4.5/ui/Toolbar/toolbar-size.d.ts +2 -2
  161. package/dist/types-ts4.5/ui/Toolbar/toolbar-types.d.ts +1 -2
  162. package/dist/types-ts4.5/utils/is-full-page.d.ts +1 -1
  163. package/dist/types-ts4.5/utils/performance/plugin-performance-observer.d.ts +2 -1
  164. package/dist/types-ts4.5/utils/performance/plugin-performance-report.d.ts +1 -2
  165. package/dist/types-ts4.5/utils/performance/track-transactions.d.ts +1 -1
  166. package/dist/types-ts4.5/utils/whichTransitionEvent.d.ts +1 -0
  167. package/package.json +14 -17
  168. package/dist/cjs/create-editor/ReactEditorViewContext.js +0 -8
  169. package/dist/cjs/create-editor/index.js +0 -42
  170. package/dist/cjs/create-editor/sort-by-order.js +0 -18
  171. package/dist/cjs/element-browser.js +0 -12
  172. package/dist/cjs/event-dispatcher/index.js +0 -18
  173. package/dist/cjs/messages.js +0 -36
  174. package/dist/cjs/nodeviews/index.js +0 -1
  175. package/dist/cjs/preset-builder.js +0 -12
  176. package/dist/cjs/types/browser.js +0 -1
  177. package/dist/cjs/types/editor-appearance.js +0 -1
  178. package/dist/cjs/types/editor-plugin.js +0 -1
  179. package/dist/cjs/types/editor-react-context.js +0 -1
  180. package/dist/cjs/types/empty-state-handler.js +0 -1
  181. package/dist/cjs/types/feature-flags.js +0 -1
  182. package/dist/cjs/types/performance-tracking.js +0 -1
  183. package/dist/cjs/types/pm-config.js +0 -1
  184. package/dist/cjs/types/pm-plugin.js +0 -1
  185. package/dist/cjs/types/ui-components.js +0 -1
  186. package/dist/cjs/ui/Addon/index.js +0 -27
  187. package/dist/cjs/ui/Appearance/Comment/index.js +0 -12
  188. package/dist/cjs/ui/Appearance/FullPage/index.js +0 -12
  189. package/dist/cjs/ui/Toolbar/index.js +0 -26
  190. package/dist/cjs/ui/Toolbar/types.js +0 -36
  191. package/dist/es2019/create-editor/ReactEditorViewContext.js +0 -2
  192. package/dist/es2019/create-editor/index.js +0 -3
  193. package/dist/es2019/create-editor/sort-by-order.js +0 -1
  194. package/dist/es2019/element-browser.js +0 -1
  195. package/dist/es2019/event-dispatcher/index.js +0 -1
  196. package/dist/es2019/messages.js +0 -7
  197. package/dist/es2019/nodeviews/index.js +0 -0
  198. package/dist/es2019/preset-builder.js +0 -1
  199. package/dist/es2019/types/browser.js +0 -0
  200. package/dist/es2019/types/editor-appearance.js +0 -0
  201. package/dist/es2019/types/editor-plugin.js +0 -0
  202. package/dist/es2019/types/editor-react-context.js +0 -0
  203. package/dist/es2019/types/empty-state-handler.js +0 -0
  204. package/dist/es2019/types/feature-flags.js +0 -0
  205. package/dist/es2019/types/performance-tracking.js +0 -0
  206. package/dist/es2019/types/pm-config.js +0 -0
  207. package/dist/es2019/types/pm-plugin.js +0 -0
  208. package/dist/es2019/types/ui-components.js +0 -0
  209. package/dist/es2019/ui/Addon/index.js +0 -3
  210. package/dist/es2019/ui/Appearance/Comment/index.js +0 -1
  211. package/dist/es2019/ui/Appearance/FullPage/index.js +0 -1
  212. package/dist/es2019/ui/Toolbar/index.js +0 -3
  213. package/dist/es2019/ui/Toolbar/types.js +0 -1
  214. package/dist/esm/create-editor/ReactEditorViewContext.js +0 -2
  215. package/dist/esm/create-editor/index.js +0 -3
  216. package/dist/esm/create-editor/sort-by-order.js +0 -1
  217. package/dist/esm/element-browser.js +0 -1
  218. package/dist/esm/event-dispatcher/index.js +0 -1
  219. package/dist/esm/messages.js +0 -7
  220. package/dist/esm/nodeviews/index.js +0 -0
  221. package/dist/esm/preset-builder.js +0 -1
  222. package/dist/esm/types/browser.js +0 -0
  223. package/dist/esm/types/editor-appearance.js +0 -0
  224. package/dist/esm/types/editor-plugin.js +0 -0
  225. package/dist/esm/types/editor-react-context.js +0 -0
  226. package/dist/esm/types/empty-state-handler.js +0 -0
  227. package/dist/esm/types/feature-flags.js +0 -0
  228. package/dist/esm/types/performance-tracking.js +0 -0
  229. package/dist/esm/types/pm-config.js +0 -0
  230. package/dist/esm/types/pm-plugin.js +0 -0
  231. package/dist/esm/types/ui-components.js +0 -0
  232. package/dist/esm/ui/Addon/index.js +0 -3
  233. package/dist/esm/ui/Appearance/Comment/index.js +0 -1
  234. package/dist/esm/ui/Appearance/FullPage/index.js +0 -1
  235. package/dist/esm/ui/Toolbar/index.js +0 -3
  236. package/dist/esm/ui/Toolbar/types.js +0 -1
  237. package/dist/types/create-editor/ReactEditorViewContext.d.ts +0 -2
  238. package/dist/types/create-editor/index.d.ts +0 -3
  239. package/dist/types/create-editor/sort-by-order.d.ts +0 -1
  240. package/dist/types/element-browser.d.ts +0 -1
  241. package/dist/types/event-dispatcher/index.d.ts +0 -2
  242. package/dist/types/messages.d.ts +0 -6
  243. package/dist/types/nodeviews/index.d.ts +0 -1
  244. package/dist/types/preset-builder.d.ts +0 -1
  245. package/dist/types/types/browser.d.ts +0 -1
  246. package/dist/types/types/editor-appearance.d.ts +0 -1
  247. package/dist/types/types/editor-plugin.d.ts +0 -1
  248. package/dist/types/types/editor-react-context.d.ts +0 -1
  249. package/dist/types/types/empty-state-handler.d.ts +0 -1
  250. package/dist/types/types/feature-flags.d.ts +0 -1
  251. package/dist/types/types/performance-tracking.d.ts +0 -1
  252. package/dist/types/types/pm-config.d.ts +0 -1
  253. package/dist/types/types/pm-plugin.d.ts +0 -1
  254. package/dist/types/types/ui-components.d.ts +0 -1
  255. package/dist/types/ui/Addon/index.d.ts +0 -4
  256. package/dist/types/ui/Appearance/Comment/index.d.ts +0 -1
  257. package/dist/types/ui/Appearance/FullPage/index.d.ts +0 -1
  258. package/dist/types/ui/Toolbar/index.d.ts +0 -4
  259. package/dist/types/ui/Toolbar/types.d.ts +0 -2
  260. package/dist/types/utils/index.d.ts +0 -3
  261. package/dist/types-ts4.5/create-editor/ReactEditorViewContext.d.ts +0 -2
  262. package/dist/types-ts4.5/create-editor/index.d.ts +0 -3
  263. package/dist/types-ts4.5/create-editor/sort-by-order.d.ts +0 -1
  264. package/dist/types-ts4.5/element-browser.d.ts +0 -1
  265. package/dist/types-ts4.5/event-dispatcher/index.d.ts +0 -2
  266. package/dist/types-ts4.5/messages.d.ts +0 -6
  267. package/dist/types-ts4.5/nodeviews/index.d.ts +0 -1
  268. package/dist/types-ts4.5/preset-builder.d.ts +0 -1
  269. package/dist/types-ts4.5/types/browser.d.ts +0 -1
  270. package/dist/types-ts4.5/types/editor-appearance.d.ts +0 -1
  271. package/dist/types-ts4.5/types/editor-plugin.d.ts +0 -1
  272. package/dist/types-ts4.5/types/editor-react-context.d.ts +0 -1
  273. package/dist/types-ts4.5/types/empty-state-handler.d.ts +0 -1
  274. package/dist/types-ts4.5/types/feature-flags.d.ts +0 -1
  275. package/dist/types-ts4.5/types/performance-tracking.d.ts +0 -1
  276. package/dist/types-ts4.5/types/pm-config.d.ts +0 -1
  277. package/dist/types-ts4.5/types/pm-plugin.d.ts +0 -1
  278. package/dist/types-ts4.5/types/ui-components.d.ts +0 -1
  279. package/dist/types-ts4.5/ui/Addon/index.d.ts +0 -4
  280. package/dist/types-ts4.5/ui/Appearance/Comment/index.d.ts +0 -1
  281. package/dist/types-ts4.5/ui/Appearance/FullPage/index.d.ts +0 -1
  282. package/dist/types-ts4.5/ui/Toolbar/index.d.ts +0 -4
  283. package/dist/types-ts4.5/ui/Toolbar/types.d.ts +0 -2
  284. package/dist/types-ts4.5/utils/index.d.ts +0 -3
  285. package/element-browser/package.json +0 -15
  286. package/messages/package.json +0 -15
  287. package/preset-builder/package.json +0 -15
@@ -12,13 +12,13 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _react2 = require("@emotion/react");
14
14
  var _coreUtils = require("@atlaskit/editor-common/core-utils");
15
+ var _types = require("@atlaskit/editor-common/types");
15
16
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
16
17
  var _widthDetector = require("@atlaskit/width-detector");
17
18
  var _isFullPage = require("../../utils/is-full-page");
18
19
  var _hooks = require("./hooks");
19
20
  var _Toolbar = require("./Toolbar");
20
21
  var _toolbarSize = require("./toolbar-size");
21
- var _types = require("./types");
22
22
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
23
23
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
24
  /**
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.widthToToolbarSize = exports.toolbarSizeToWidth = void 0;
7
+ var _types = require("@atlaskit/editor-common/types");
7
8
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
9
  var _isFullPage = require("../../utils/is-full-page");
9
- var _types = require("./types");
10
10
  // Toolbar sizes for full page editor a little bit different, because it has more buttons e.g. actions button...
11
11
  var toolbarSizesFullPageNext = [{
12
12
  width: _types.ToolbarWidthsFullPageNext.XXL,
@@ -15,9 +15,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
15
15
  var _react = _interopRequireDefault(require("react"));
16
16
  var _propTypes = _interopRequireDefault(require("prop-types"));
17
17
  var _analytics = require("@atlaskit/editor-common/analytics");
18
+ var _eventDispatcher = require("@atlaskit/editor-common/event-dispatcher");
18
19
  var _analytics2 = require("@atlaskit/editor-common/utils/analytics");
19
20
  var _helpDialog = require("@atlaskit/editor-plugins/help-dialog");
20
- var _eventDispatcher = require("../../event-dispatcher");
21
21
  function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
22
22
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
23
23
  var WithHelpTrigger = exports.default = /*#__PURE__*/function (_React$Component) {
@@ -1,24 +1,9 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
- Object.defineProperty(exports, "getNodesCount", {
8
- enumerable: true,
9
- get: function get() {
10
- return _getNodesCount.getNodesCount;
11
- }
12
- });
13
- Object.defineProperty(exports, "measurements", {
14
- enumerable: true,
15
- get: function get() {
16
- return _measureEnum.default;
17
- }
18
- });
19
6
  exports.whichTransitionEvent = whichTransitionEvent;
20
- var _getNodesCount = require("./getNodesCount");
21
- var _measureEnum = _interopRequireDefault(require("./performance/measure-enum"));
22
7
  /*
23
8
  * From Modernizr
24
9
  * Returns the kind of transitionevent available for the element
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "202.5.0";
8
+ var version = exports.version = "203.0.0";
@@ -1,11 +1,11 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
3
+ import { createDispatch } from '@atlaskit/editor-common/event-dispatcher';
3
4
  import { processRawFragmentValue, processRawValue } from '@atlaskit/editor-common/process-raw-value';
4
5
  import { analyticsEventKey } from '@atlaskit/editor-common/utils/analytics';
5
6
  import { Node } from '@atlaskit/editor-prosemirror/model';
6
7
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
7
8
  import { findParentNode, safeInsert } from '@atlaskit/editor-prosemirror/utils';
8
- import { createDispatch } from '../event-dispatcher';
9
9
  import { getEditorValueWithMedia } from '../utils/action';
10
10
  import deprecationWarnings from '../utils/deprecation-warnings';
11
11
  import { findNodePosByFragmentLocalIds } from '../utils/nodes-by-localIds';
@@ -231,6 +231,11 @@ export default class EditorActions {
231
231
  }
232
232
  return isEmptyDocument(this.editorView.state.doc);
233
233
  }
234
+
235
+ /**
236
+ * @deprecated - please use `replaceDocument` found in the core plugin actions instead
237
+ * using this will reset your Editor State which could cause some things to break (like emojis)
238
+ */
234
239
  replaceDocument(
235
240
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
236
241
  rawValue, shouldScrollToBottom = true, /** @deprecated [ED-14158] shouldAddToHistory is not being used in this function */
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useMemo } from 'react';
3
- import { getUiComponent } from '../create-editor';
3
+ import getUiComponent from '../create-editor/get-ui-component';
4
4
  import { CoreEditor } from './core-editor';
5
5
  export function ComposableEditor(props) {
6
6
  const AppearanceComponent = useMemo(() => getUiComponent(props.appearance), [props.appearance]);
@@ -1 +1,4 @@
1
+ // Disable no-re-export rule for entry point files
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
3
+
1
4
  export { ComposableEditor } from './composable-editor/composable-editor';
@@ -6,17 +6,18 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent, FULL_WIDTH_MODE
6
6
  import { browser } from '@atlaskit/editor-common/browser';
7
7
  import { getDocStructure } from '@atlaskit/editor-common/core-utils';
8
8
  import { countNodes } from '@atlaskit/editor-common/count-nodes';
9
+ import { createDispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
9
10
  import { getEnabledFeatureFlagKeys } from '@atlaskit/editor-common/normalize-feature-flags';
10
11
  import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
11
12
  import { measureRender } from '@atlaskit/editor-common/performance/measure-render';
12
13
  import { getResponseEndTime } from '@atlaskit/editor-common/performance/navigation';
13
14
  import { EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
14
15
  import { processRawValue, processRawValueWithoutValidation } from '@atlaskit/editor-common/process-raw-value';
16
+ import { ReactEditorViewContext } from '@atlaskit/editor-common/ui-react';
15
17
  import { analyticsEventKey, getAnalyticsEventSeverity } from '@atlaskit/editor-common/utils/analytics';
16
18
  import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
17
19
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
18
20
  import { fg } from '@atlaskit/platform-feature-flags';
19
- import { createDispatch, EventDispatcher } from '../event-dispatcher';
20
21
  import { findChangedNodesFromTransaction } from '../utils/findChangedNodesFromTransaction';
21
22
  import { getNodesCount } from '../utils/getNodesCount';
22
23
  import { isFullPage } from '../utils/is-full-page';
@@ -32,7 +33,6 @@ import createPluginsList from './create-plugins-list';
32
33
  import { createSchema } from './create-schema';
33
34
  import { createFeatureFlagsFromProps } from './feature-flags-from-props';
34
35
  import { editorMessages } from './messages';
35
- import ReactEditorViewContext from './ReactEditorViewContext';
36
36
  const EDIT_AREA_ID = 'ak-editor-textarea';
37
37
  function handleEditorFocus(view) {
38
38
  if (view.hasFocus()) {
@@ -2,18 +2,19 @@ import React, { useCallback, useLayoutEffect, useMemo, useRef, useState } from '
2
2
  import { injectIntl } from 'react-intl-next';
3
3
  import uuid from 'uuid/v4';
4
4
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent, PLATFORMS } from '@atlaskit/editor-common/analytics';
5
+ import { createDispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
5
6
  import { useConstructor, usePreviousState } from '@atlaskit/editor-common/hooks';
6
7
  import { getEnabledFeatureFlagKeys } from '@atlaskit/editor-common/normalize-feature-flags';
7
8
  import { measureRender } from '@atlaskit/editor-common/performance/measure-render';
8
9
  import { getResponseEndTime } from '@atlaskit/editor-common/performance/navigation';
9
10
  import { EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
10
11
  import { processRawValue, processRawValueWithoutValidation } from '@atlaskit/editor-common/process-raw-value';
12
+ import { ReactEditorViewContext } from '@atlaskit/editor-common/ui-react';
11
13
  import { analyticsEventKey, getAnalyticsEventSeverity } from '@atlaskit/editor-common/utils/analytics';
12
14
  import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
13
15
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
14
16
  import { fg } from '@atlaskit/platform-feature-flags';
15
17
  import { useProviders } from '../composable-editor/hooks/useProviders';
16
- import { createDispatch, EventDispatcher } from '../event-dispatcher';
17
18
  import { getNodesCount } from '../utils/getNodesCount';
18
19
  import { isFullPage } from '../utils/is-full-page';
19
20
  import { RenderTracking } from '../utils/performance/components/RenderTracking';
@@ -29,7 +30,6 @@ import { handleEditorFocus } from './ReactEditorView/handleEditorFocus';
29
30
  import { useDispatchTransaction } from './ReactEditorView/useDispatchTransaction';
30
31
  import { useFireFullWidthEvent } from './ReactEditorView/useFireFullWidthEvent';
31
32
  import { usePluginPerformanceObserver } from './ReactEditorView/usePluginPerformanceObserver';
32
- import ReactEditorViewContext from './ReactEditorViewContext';
33
33
  const EDIT_AREA_ID = 'ak-editor-textarea';
34
34
  function ReactEditorView(props) {
35
35
  var _media, _linking, _linking$smartLinks, _props$render, _props$render2;
@@ -1,6 +1,6 @@
1
1
  import { ErrorReporter } from '@atlaskit/editor-common/error-reporter';
2
+ import { sortByOrder } from '@atlaskit/editor-common/legacy-rank-plugins';
2
3
  import { createEditorStateNotificationPlugin } from './editorStateNotificationPlugin';
3
- import { sortByOrder } from './sort-by-order';
4
4
  export function sortByRank(a, b) {
5
5
  return a.rank - b.rank;
6
6
  }
@@ -17,7 +17,7 @@ export function getScrollGutterOptions(props) {
17
17
  return undefined;
18
18
  }
19
19
  export function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEvent
20
- // Omit placeholder since it's an existing prop in `DefaultPresetPluginOptions` and will get overidden there
20
+ // Omit placeholder since it's an existing prop in `DefaultPresetPluginOptions` and will get overridden there
21
21
  ) {
22
22
  var _props$linking, _props$textFormatting, _props$linking2;
23
23
  const appearance = props.appearance;
@@ -1,9 +1,9 @@
1
1
  import { sanitizeNodes } from '@atlaskit/adf-schema/schema';
2
+ import { sortByOrder } from '@atlaskit/editor-common/legacy-rank-plugins';
2
3
  import { createProseMirrorMetadata } from '@atlaskit/editor-common/prosemirror-dom-metadata';
3
4
  import { Schema } from '@atlaskit/editor-prosemirror/model';
4
5
  import { fg } from '@atlaskit/platform-feature-flags';
5
6
  import { fixExcludes } from './create-editor';
6
- import { sortByOrder } from './sort-by-order';
7
7
  /**
8
8
  * 🧱 Internal Helper Function: Editor FE Platform
9
9
  *
@@ -1,6 +1,6 @@
1
1
  import Chromeless from '../ui/Appearance/Chromeless';
2
- import Comment from '../ui/Appearance/Comment';
3
- import FullPage from '../ui/Appearance/FullPage';
2
+ import { CommentEditorWithIntl as Comment } from '../ui/Appearance/Comment/Comment';
3
+ import { FullPageEditor as FullPage } from '../ui/Appearance/FullPage/FullPage';
4
4
  export default function getUiComponent(appearance) {
5
5
  appearance = appearance || 'comment';
6
6
  switch (appearance) {
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { CoreEditor } from '../composable-editor/core-editor';
4
- import Comment from '../ui/Appearance/Comment';
4
+ import { CommentEditorWithIntl as Comment } from '../ui/Appearance/Comment/Comment';
5
5
  /**
6
6
  * Editor component based on `ComposableEditor` which sets the `appearance` to "comment".
7
7
  *
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { CoreEditor } from '../composable-editor/core-editor';
4
- import FullPage from '../ui/Appearance/FullPage';
4
+ import { FullPageEditor as FullPage } from '../ui/Appearance/FullPage/FullPage';
5
5
  /**
6
6
  * Editor component based on `ComposableEditor` which sets the `appearance` to "full-page".
7
7
  *
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { CoreEditor } from '../composable-editor/core-editor';
4
- import FullPage from '../ui/Appearance/FullPage';
4
+ import { FullPageEditor as FullPage } from '../ui/Appearance/FullPage/FullPage';
5
5
  /**
6
6
  * Editor component based on `ComposableEditor` which sets the `appearance` to "full-width".
7
7
  *
@@ -1 +1,4 @@
1
+ // Disable no-re-export rule for entry point files
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
3
+
1
4
  export { default as EditorContext } from './ui/EditorContext';
@@ -1,5 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
+ // Disable no-re-export rule for entry point files
4
+ /* eslint-disable @atlaskit/editor/no-re-export */
5
+
3
6
  /**
4
7
  * @jsxRuntime classic
5
8
  * @jsx jsx
@@ -1,3 +1,6 @@
1
+ // Disable no-re-export rule for entry point files
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
3
+
1
4
  /**
2
5
  * NOTE:
3
6
  *
@@ -1,3 +1,6 @@
1
+ // Disable no-re-export rule for entry point files
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
3
+
1
4
  // Used in products integration code
2
5
  export { name, version } from './version-wrapper';
3
6
  export { default as Editor } from './editor';
@@ -23,8 +26,9 @@ export {
23
26
  * DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
24
27
  */
25
28
  ContextPanel } from './ui/ContextPanel';
29
+
26
30
  // Used in editor-test-helpers and mobile bridge
27
- export { getNodesCount, measurements } from './utils';
28
- export { setTextSelection } from '@atlaskit/editor-common/utils';
31
+ export { getNodesCount } from './utils/getNodesCount';
32
+ export { default as measurements } from './utils/performance/measure-enum';
29
33
  export { default as EditorActions } from './actions';
30
34
  export { createEditorContentStyle } from './ui/ContentStyles';
@@ -1 +1,4 @@
1
+ // Disable no-re-export rule for entry point files
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
3
+
1
4
  export { createDefaultPreset } from '../src/presets/default';
@@ -1 +1,4 @@
1
+ // Disable no-re-export rule for entry point files
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
3
+
1
4
  export { createDefaultPreset, useDefaultPreset } from './presets/default';
@@ -1,2 +1,5 @@
1
+ // Disable no-re-export rule for entry point files
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
3
+
1
4
  export { default as useUniversalPreset } from './presets/useUniversalPreset';
2
5
  export { default as createUniversalPresetInternal } from './presets/universal';
@@ -1,8 +1,11 @@
1
+ // Disable no-re-export rule for entry point files
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
3
+
4
+ import { sortByOrder } from '@atlaskit/editor-common/legacy-rank-plugins';
1
5
  import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
2
6
  import { basePlugin } from '@atlaskit/editor-plugins/base';
3
7
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
4
8
  import { createSchema } from './create-editor/create-schema';
5
- import { sortByOrder } from './create-editor/sort-by-order';
6
9
  function lightProcessPluginsList(editorPlugins) {
7
10
  /**
8
11
  * First pass to collect pluginsOptions
@@ -78,8 +81,6 @@ export const createPMSchemaAndPlugins = (inputPreset = new EditorPresetBuilder()
78
81
  editorConfig
79
82
  };
80
83
  };
81
- export { EventDispatcher } from './event-dispatcher';
82
- export { GapCursorSelection, Side as GapCursorSide } from '@atlaskit/editor-common/selection';
83
84
  export function setTextSelection(view, anchor, head) {
84
85
  const {
85
86
  state
@@ -11,16 +11,16 @@ import { useIntl } from 'react-intl-next';
11
11
  import ButtonGroup from '@atlaskit/button/button-group';
12
12
  import Button from '@atlaskit/button/new';
13
13
  import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
14
+ import messages from '@atlaskit/editor-common/messages';
14
15
  import { GRID_GUTTER } from '@atlaskit/editor-common/styles';
15
16
  import { WidthConsumer, WidthProvider } from '@atlaskit/editor-common/ui';
16
17
  import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
17
18
  import { tableCommentEditorStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
18
19
  import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
19
- import messages from '../../../messages';
20
- import { ClickAreaBlock } from '../../Addon';
20
+ import ClickAreaBlock from '../../Addon/ClickAreaBlock';
21
21
  import { createEditorContentStyle } from '../../ContentStyles';
22
22
  import PluginSlot from '../../PluginSlot';
23
- import Toolbar from '../../Toolbar';
23
+ import { ToolbarWithSizeDetector as Toolbar } from '../../Toolbar/ToolbarWithSizeDetector';
24
24
  import WithFlash from '../../WithFlash';
25
25
  import { MainToolbar, mainToolbarCustomComponentsSlotStyle } from './Toolbar';
26
26
  const CommentEditorMargin = 14;
@@ -10,7 +10,7 @@ import { jsx, useTheme } from '@emotion/react';
10
10
  import { injectIntl } from 'react-intl-next';
11
11
  import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
12
12
  import { fg } from '@atlaskit/platform-feature-flags';
13
- import { ClickAreaBlock } from '../../Addon';
13
+ import ClickAreaBlock from '../../Addon/ClickAreaBlock';
14
14
  import { ContextPanel } from '../../ContextPanel';
15
15
  import PluginSlot from '../../PluginSlot';
16
16
  import { contentArea, contentAreaHeightNoToolbar, contentAreaWrapper, contentAreaWrapperNoStyles, editorContentAreaStyle, editorContentGutterStyle, ScrollContainer, sidebarArea } from './StyledComponents';
@@ -11,7 +11,7 @@ import { injectIntl } from 'react-intl-next';
11
11
  import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
12
12
  import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
13
13
  import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
14
- import Toolbar from '../../Toolbar';
14
+ import { ToolbarWithSizeDetector as Toolbar } from '../../Toolbar/ToolbarWithSizeDetector';
15
15
  import { BeforePrimaryToolbarWrapper } from './BeforeWrapper';
16
16
  import { customToolbarWrapperStyle, mainToolbarFirstChildStyle, mainToolbarIconBeforeStyle, mainToolbarSecondChildStyle, mainToolbarStyle, MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, nonCustomToolbarWrapperStyle } from './MainToolbar';
17
17
  export const EditorToolbar = /*#__PURE__*/React.memo(props => {
@@ -6,7 +6,6 @@ import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/cons
6
6
  import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, akEditorSwoopCubicBezier, akLayoutGutterOffset, getSelectionStyles, gridMediumMaxWidth, SelectionStyle } from '@atlaskit/editor-shared-styles';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
8
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
9
- export { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN };
10
9
  const isPreRelease2 = () => {
11
10
  return editorExperiment('advanced_layouts', true) || fg('platform_editor_advanced_layouts_pre_release_2');
12
11
  };
@@ -227,12 +226,12 @@ css`
227
226
  .fabric-editor--full-width-mode .ProseMirror {
228
227
  > .layoutSectionView-content-wrap {
229
228
  [data-layout-section] {
230
- @container editor-area (max-width:854px) {
229
+ @container editor-area (max-width:724px) {
231
230
  flex-direction: column;
232
231
  }
233
232
  }
234
233
 
235
- ${layoutWithSeparatorBorderResponsiveStyles(854, viewMode)}
234
+ ${layoutWithSeparatorBorderResponsiveStyles(724, viewMode)}
236
235
  }
237
236
  }
238
237
 
@@ -240,12 +239,12 @@ css`
240
239
  .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror {
241
240
  > .layoutSectionView-content-wrap {
242
241
  [data-layout-section] {
243
- @container editor-area (max-width:918px) {
242
+ @container editor-area (max-width:788px) {
244
243
  flex-direction: column;
245
244
  }
246
245
  }
247
246
 
248
- ${layoutWithSeparatorBorderResponsiveStyles(918, viewMode)}
247
+ ${layoutWithSeparatorBorderResponsiveStyles(788, viewMode)}
249
248
  }
250
249
  }
251
250
 
@@ -253,12 +252,12 @@ css`
253
252
  .ProseMirror .fabric-editor-breakout-mark {
254
253
  .layoutSectionView-content-wrap {
255
254
  [data-layout-section] {
256
- @container editor-area (max-width:950px) {
255
+ @container editor-area (max-width:820px) {
257
256
  flex-direction: column;
258
257
  }
259
258
  }
260
259
 
261
- ${layoutWithSeparatorBorderResponsiveStyles(950, viewMode)}
260
+ ${layoutWithSeparatorBorderResponsiveStyles(820, viewMode)}
262
261
  }
263
262
  }
264
263
  `;
@@ -356,6 +355,11 @@ export const layoutStyles = viewMode => css`
356
355
 
357
356
  ${editorExperiment('advanced_layouts', true) && layoutResponsiveStyles(viewMode)}
358
357
 
358
+ // hide separator when element is dragging on top of a layout column
359
+ [data-blocks-drop-target-container] ~ [data-layout-column] > [data-layout-content]::before {
360
+ display: none;
361
+ }
362
+
359
363
  .fabric-editor--full-width-mode .ProseMirror {
360
364
  [data-layout-section] {
361
365
  .${TableCssClassName.TABLE_CONTAINER} {
@@ -10,7 +10,7 @@ import { css, jsx } from '@emotion/react';
10
10
  import isEqual from 'lodash/isEqual';
11
11
  import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
12
12
  import { fg } from '@atlaskit/platform-feature-flags';
13
- import { whichTransitionEvent } from '../../utils';
13
+ import { whichTransitionEvent } from '../../utils/whichTransitionEvent';
14
14
  import { ErrorBoundary } from '../ErrorBoundary';
15
15
  import { MountPluginHooks } from './mount-plugin-hooks';
16
16
  const pluginsComponentsWrapper = css({
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
+ import { ToolbarSize } from '@atlaskit/editor-common/types';
2
3
  import { ToolbarInner } from './ToolbarInner';
3
- import { ToolbarSize } from './types';
4
4
  export const Toolbar = props => {
5
5
  return /*#__PURE__*/React.createElement(ToolbarInner, {
6
6
  items: props.items,
@@ -8,13 +8,13 @@ import React, { useMemo } from 'react';
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import { isSSR } from '@atlaskit/editor-common/core-utils';
11
+ import { ToolbarSize } from '@atlaskit/editor-common/types';
11
12
  import { akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
12
13
  import { WidthObserver } from '@atlaskit/width-detector';
13
14
  import { isFullPage } from '../../utils/is-full-page';
14
15
  import { useElementWidth } from './hooks';
15
16
  import { Toolbar } from './Toolbar';
16
17
  import { toolbarSizeToWidth, widthToToolbarSize } from './toolbar-size';
17
- import { ToolbarSize } from './types';
18
18
  const toolbar = css({
19
19
  width: '100%',
20
20
  position: 'relative',
@@ -1,7 +1,6 @@
1
+ import { ToolbarSize, ToolbarWidths, ToolbarWidthsFullPage, ToolbarWidthsFullPageNext, ToolbarWidthsNext } from '@atlaskit/editor-common/types';
1
2
  import { fg } from '@atlaskit/platform-feature-flags';
2
3
  import { isFullPage } from '../../utils/is-full-page';
3
- import { ToolbarSize, ToolbarWidths, ToolbarWidthsFullPage, ToolbarWidthsFullPageNext, ToolbarWidthsNext } from './types';
4
-
5
4
  // Toolbar sizes for full page editor a little bit different, because it has more buttons e.g. actions button...
6
5
  const toolbarSizesFullPageNext = [{
7
6
  width: ToolbarWidthsFullPageNext.XXL,
@@ -2,9 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
+ import { createDispatch } from '@atlaskit/editor-common/event-dispatcher';
5
6
  import { analyticsEventKey } from '@atlaskit/editor-common/utils/analytics';
6
7
  import { deprecatedOpenHelpCommand } from '@atlaskit/editor-plugins/help-dialog';
7
- import { createDispatch } from '../../event-dispatcher';
8
8
  export default class WithHelpTrigger extends React.Component {
9
9
  constructor(...args) {
10
10
  super(...args);
@@ -1,6 +1,3 @@
1
- export { getNodesCount } from './getNodesCount';
2
- export { default as measurements } from './performance/measure-enum';
3
-
4
1
  /*
5
2
  * From Modernizr
6
3
  * Returns the kind of transitionevent available for the element
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "202.5.0";
2
+ export const version = "203.0.0";
@@ -4,12 +4,12 @@ import _createClass from "@babel/runtime/helpers/createClass";
4
4
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  import _regeneratorRuntime from "@babel/runtime/regenerator";
6
6
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
7
+ import { createDispatch } from '@atlaskit/editor-common/event-dispatcher';
7
8
  import { processRawFragmentValue, processRawValue } from '@atlaskit/editor-common/process-raw-value';
8
9
  import { analyticsEventKey } from '@atlaskit/editor-common/utils/analytics';
9
10
  import { Node } from '@atlaskit/editor-prosemirror/model';
10
11
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
11
12
  import { findParentNode, safeInsert } from '@atlaskit/editor-prosemirror/utils';
12
- import { createDispatch } from '../event-dispatcher';
13
13
  import { getEditorValueWithMedia } from '../utils/action';
14
14
  import deprecationWarnings from '../utils/deprecation-warnings';
15
15
  import { findNodePosByFragmentLocalIds } from '../utils/nodes-by-localIds';
@@ -312,6 +312,11 @@ var EditorActions = /*#__PURE__*/function () {
312
312
  }
313
313
  return isEmptyDocument(this.editorView.state.doc);
314
314
  }
315
+
316
+ /**
317
+ * @deprecated - please use `replaceDocument` found in the core plugin actions instead
318
+ * using this will reset your Editor State which could cause some things to break (like emojis)
319
+ */
315
320
  }, {
316
321
  key: "replaceDocument",
317
322
  value: function replaceDocument(
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useMemo } from 'react';
3
- import { getUiComponent } from '../create-editor';
3
+ import getUiComponent from '../create-editor/get-ui-component';
4
4
  import { CoreEditor } from './core-editor';
5
5
  export function ComposableEditor(props) {
6
6
  var AppearanceComponent = useMemo(function () {
@@ -1 +1,4 @@
1
+ // Disable no-re-export rule for entry point files
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
3
+
1
4
  export { ComposableEditor } from './composable-editor/composable-editor';
@@ -16,17 +16,18 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent, FULL_WIDTH_MODE
16
16
  import { browser } from '@atlaskit/editor-common/browser';
17
17
  import { getDocStructure } from '@atlaskit/editor-common/core-utils';
18
18
  import { countNodes as _countNodes } from '@atlaskit/editor-common/count-nodes';
19
+ import { createDispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
19
20
  import { getEnabledFeatureFlagKeys } from '@atlaskit/editor-common/normalize-feature-flags';
20
21
  import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
21
22
  import { measureRender } from '@atlaskit/editor-common/performance/measure-render';
22
23
  import { getResponseEndTime } from '@atlaskit/editor-common/performance/navigation';
23
24
  import { EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
24
25
  import { processRawValue, processRawValueWithoutValidation } from '@atlaskit/editor-common/process-raw-value';
26
+ import { ReactEditorViewContext } from '@atlaskit/editor-common/ui-react';
25
27
  import { analyticsEventKey, getAnalyticsEventSeverity } from '@atlaskit/editor-common/utils/analytics';
26
28
  import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
27
29
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
28
30
  import { fg } from '@atlaskit/platform-feature-flags';
29
- import { createDispatch, EventDispatcher } from '../event-dispatcher';
30
31
  import { findChangedNodesFromTransaction } from '../utils/findChangedNodesFromTransaction';
31
32
  import { getNodesCount } from '../utils/getNodesCount';
32
33
  import { isFullPage } from '../utils/is-full-page';
@@ -42,7 +43,6 @@ import createPluginsList from './create-plugins-list';
42
43
  import { createSchema } from './create-schema';
43
44
  import { createFeatureFlagsFromProps } from './feature-flags-from-props';
44
45
  import { editorMessages } from './messages';
45
- import ReactEditorViewContext from './ReactEditorViewContext';
46
46
  var EDIT_AREA_ID = 'ak-editor-textarea';
47
47
  function handleEditorFocus(view) {
48
48
  if (view.hasFocus()) {
@@ -6,18 +6,19 @@ import React, { useCallback, useLayoutEffect, useMemo, useRef, useState } from '
6
6
  import { injectIntl } from 'react-intl-next';
7
7
  import uuid from 'uuid/v4';
8
8
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent, PLATFORMS } from '@atlaskit/editor-common/analytics';
9
+ import { createDispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
9
10
  import { useConstructor, usePreviousState } from '@atlaskit/editor-common/hooks';
10
11
  import { getEnabledFeatureFlagKeys } from '@atlaskit/editor-common/normalize-feature-flags';
11
12
  import { measureRender } from '@atlaskit/editor-common/performance/measure-render';
12
13
  import { getResponseEndTime } from '@atlaskit/editor-common/performance/navigation';
13
14
  import { EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
14
15
  import { processRawValue, processRawValueWithoutValidation } from '@atlaskit/editor-common/process-raw-value';
16
+ import { ReactEditorViewContext } from '@atlaskit/editor-common/ui-react';
15
17
  import { analyticsEventKey, getAnalyticsEventSeverity } from '@atlaskit/editor-common/utils/analytics';
16
18
  import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
17
19
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
18
20
  import { fg } from '@atlaskit/platform-feature-flags';
19
21
  import { useProviders } from '../composable-editor/hooks/useProviders';
20
- import { createDispatch, EventDispatcher } from '../event-dispatcher';
21
22
  import { getNodesCount } from '../utils/getNodesCount';
22
23
  import { isFullPage } from '../utils/is-full-page';
23
24
  import { RenderTracking } from '../utils/performance/components/RenderTracking';
@@ -33,7 +34,6 @@ import { handleEditorFocus } from './ReactEditorView/handleEditorFocus';
33
34
  import { useDispatchTransaction } from './ReactEditorView/useDispatchTransaction';
34
35
  import { useFireFullWidthEvent } from './ReactEditorView/useFireFullWidthEvent';
35
36
  import { usePluginPerformanceObserver } from './ReactEditorView/usePluginPerformanceObserver';
36
- import ReactEditorViewContext from './ReactEditorViewContext';
37
37
  var EDIT_AREA_ID = 'ak-editor-textarea';
38
38
  function ReactEditorView(props) {
39
39
  var _media, _linking, _props$render, _props$render2;