@atlaskit/editor-core 191.3.1 → 191.4.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 (306) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/codemods/140.0.0-rc-kraken-fix-type-errors.ts +1 -1
  3. package/codemods/145.0.0-deprecate-props.ts +1 -1
  4. package/codemods/__tests__/next-remove-allow-more-text-colors-prop.ts +2 -1
  5. package/codemods/__tests__/remove-config-panel-width-prop.ts +2 -1
  6. package/codemods/__tests__/rename-editor-to-editor-migration-component.ts +2 -1
  7. package/codemods/__tests__/rename-smartlinks-prop.ts +1 -1
  8. package/codemods/__tests__/rename-unsafe-allowUndoRedoButtons-prop.ts +1 -1
  9. package/codemods/__tests__/rename-unsafe-cards-prop.ts +1 -1
  10. package/codemods/migrates/next-remove-allow-more-text-colors-prop.ts +3 -2
  11. package/codemods/migrates/remove-config-panel-width-prop.ts +3 -2
  12. package/codemods/migrates/rename-editor-to-editor-migration-component.ts +2 -2
  13. package/codemods/migrates/rename-smartlinks-prop.ts +2 -2
  14. package/codemods/utils.ts +3 -2
  15. package/dist/cjs/actions/index.js +8 -8
  16. package/dist/cjs/composable-editor/editor-internal.js +1 -1
  17. package/dist/cjs/composable-editor/editor.js +7 -7
  18. package/dist/cjs/create-editor/ErrorBoundary.js +1 -1
  19. package/dist/cjs/create-editor/ReactEditorView.js +17 -17
  20. package/dist/cjs/create-editor/create-editor.js +1 -1
  21. package/dist/cjs/create-editor/create-schema.js +2 -2
  22. package/dist/cjs/create-editor/get-ui-component.js +1 -1
  23. package/dist/cjs/editor-context.js +13 -0
  24. package/dist/cjs/editor.js +1 -1
  25. package/dist/cjs/presets/default.js +19 -19
  26. package/dist/cjs/presets/universal.js +13 -13
  27. package/dist/cjs/test-utils.js +2 -2
  28. package/dist/cjs/ui/Addon/Dropdown/styles.js +1 -1
  29. package/dist/cjs/ui/Addon/click-area-helper.js +3 -3
  30. package/dist/cjs/ui/Appearance/Chromeless.js +3 -3
  31. package/dist/cjs/ui/Appearance/Comment/Comment.js +13 -13
  32. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +1 -2
  33. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -2
  34. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +19 -19
  35. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +3 -3
  36. package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +1 -2
  37. package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +2 -2
  38. package/dist/cjs/ui/AppearanceComponents/Mobile.js +4 -4
  39. package/dist/cjs/ui/ChromeCollapsed/index.js +1 -1
  40. package/dist/cjs/ui/ChromeCollapsed/styles.js +1 -1
  41. package/dist/cjs/ui/CollapsedEditor/index.js +2 -2
  42. package/dist/cjs/ui/ContentStyles/code-block.js +2 -2
  43. package/dist/cjs/ui/ContentStyles/expand.js +1 -1
  44. package/dist/cjs/ui/ContentStyles/index.js +18 -18
  45. package/dist/cjs/ui/ContentStyles/layout.js +2 -2
  46. package/dist/cjs/ui/ContentStyles/media.js +1 -1
  47. package/dist/cjs/ui/ContextPanel/index.js +5 -5
  48. package/dist/cjs/ui/ErrorBoundary/index.js +1 -1
  49. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +3 -3
  50. package/dist/cjs/ui/ToolbarFeedback/index.js +23 -23
  51. package/dist/cjs/ui/ToolbarFeedback/styles.js +2 -2
  52. package/dist/cjs/ui/ToolbarHelp/index.js +1 -1
  53. package/dist/cjs/ui/WithHelpTrigger/index.js +1 -1
  54. package/dist/cjs/use-preset.js +2 -1
  55. package/dist/cjs/utils/document.js +1 -1
  56. package/dist/cjs/utils/extensions.js +1 -1
  57. package/dist/cjs/utils/performance/components/RenderTracking.js +1 -1
  58. package/dist/cjs/utils/performance/plugin-performance-observer.js +1 -1
  59. package/dist/cjs/utils/prepare-extension-provider.js +1 -1
  60. package/dist/cjs/version-wrapper.js +1 -1
  61. package/dist/es2019/actions/index.js +1 -1
  62. package/dist/es2019/composable-editor/editor-internal.js +2 -2
  63. package/dist/es2019/composable-editor/editor.js +8 -8
  64. package/dist/es2019/create-editor/ErrorBoundary.js +1 -1
  65. package/dist/es2019/create-editor/ReactEditorView.js +19 -19
  66. package/dist/es2019/create-editor/create-editor.js +1 -1
  67. package/dist/es2019/create-editor/create-preset.js +1 -0
  68. package/dist/es2019/create-editor/create-schema.js +2 -2
  69. package/dist/es2019/create-editor/get-ui-component.js +1 -1
  70. package/dist/es2019/editor-context.js +1 -0
  71. package/dist/es2019/editor.js +1 -1
  72. package/dist/es2019/messages.js +1 -1
  73. package/dist/es2019/presets/context.js +1 -1
  74. package/dist/es2019/presets/default.js +20 -19
  75. package/dist/es2019/presets/universal.js +13 -13
  76. package/dist/es2019/test-utils.js +2 -2
  77. package/dist/es2019/ui/Addon/Dropdown/styles.js +1 -1
  78. package/dist/es2019/ui/Addon/DropdownItem/styles.js +1 -1
  79. package/dist/es2019/ui/Addon/click-area-helper.js +3 -4
  80. package/dist/es2019/ui/Appearance/Chromeless.js +3 -3
  81. package/dist/es2019/ui/Appearance/Comment/Comment.js +13 -13
  82. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -3
  83. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +1 -0
  84. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +3 -3
  85. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +5 -4
  86. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +4 -4
  87. package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +2 -3
  88. package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +3 -3
  89. package/dist/es2019/ui/AppearanceComponents/Mobile.js +5 -5
  90. package/dist/es2019/ui/ChromeCollapsed/index.js +2 -2
  91. package/dist/es2019/ui/ChromeCollapsed/styles.js +1 -1
  92. package/dist/es2019/ui/CollapsedEditor/index.js +2 -2
  93. package/dist/es2019/ui/ContentStyles/code-block.js +2 -2
  94. package/dist/es2019/ui/ContentStyles/date.js +1 -1
  95. package/dist/es2019/ui/ContentStyles/expand.js +2 -2
  96. package/dist/es2019/ui/ContentStyles/extension.js +1 -1
  97. package/dist/es2019/ui/ContentStyles/index.js +19 -19
  98. package/dist/es2019/ui/ContentStyles/layout.js +3 -3
  99. package/dist/es2019/ui/ContentStyles/media.js +1 -1
  100. package/dist/es2019/ui/ContentStyles/panel.js +2 -2
  101. package/dist/es2019/ui/ContentStyles/status.js +1 -1
  102. package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +1 -1
  103. package/dist/es2019/ui/ContextPanel/index.js +6 -5
  104. package/dist/es2019/ui/ErrorBoundary/index.js +1 -1
  105. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +3 -3
  106. package/dist/es2019/ui/ToolbarButton/index.js +1 -1
  107. package/dist/es2019/ui/ToolbarFeedback/index.js +10 -10
  108. package/dist/es2019/ui/ToolbarFeedback/styles.js +2 -2
  109. package/dist/es2019/ui/ToolbarHelp/index.js +1 -1
  110. package/dist/es2019/ui/WithHelpTrigger/index.js +2 -2
  111. package/dist/es2019/use-preset.js +1 -1
  112. package/dist/es2019/utils/document.js +1 -1
  113. package/dist/es2019/utils/extensions.js +1 -1
  114. package/dist/es2019/utils/performance/components/RenderTracking.js +1 -1
  115. package/dist/es2019/utils/performance/plugin-performance-observer.js +1 -1
  116. package/dist/es2019/utils/performance/plugin-performance-report.js +1 -1
  117. package/dist/es2019/utils/performance/simple-measure-to-entries.js +1 -1
  118. package/dist/es2019/utils/performance/track-transactions.js +1 -1
  119. package/dist/es2019/utils/prepare-extension-provider.js +1 -1
  120. package/dist/es2019/utils/prepare-quick-insert-provider.js +1 -1
  121. package/dist/es2019/version-wrapper.js +1 -1
  122. package/dist/esm/actions/index.js +1 -1
  123. package/dist/esm/composable-editor/editor-internal.js +2 -2
  124. package/dist/esm/composable-editor/editor.js +8 -8
  125. package/dist/esm/create-editor/ErrorBoundary.js +1 -1
  126. package/dist/esm/create-editor/ReactEditorView.js +19 -19
  127. package/dist/esm/create-editor/create-editor.js +1 -1
  128. package/dist/esm/create-editor/create-preset.js +1 -0
  129. package/dist/esm/create-editor/create-schema.js +2 -2
  130. package/dist/esm/create-editor/get-ui-component.js +1 -1
  131. package/dist/esm/editor-context.js +1 -0
  132. package/dist/esm/editor.js +1 -1
  133. package/dist/esm/messages.js +1 -1
  134. package/dist/esm/presets/context.js +1 -1
  135. package/dist/esm/presets/default.js +20 -19
  136. package/dist/esm/presets/universal.js +13 -13
  137. package/dist/esm/test-utils.js +2 -2
  138. package/dist/esm/ui/Addon/Dropdown/styles.js +1 -1
  139. package/dist/esm/ui/Addon/DropdownItem/styles.js +1 -1
  140. package/dist/esm/ui/Addon/click-area-helper.js +3 -4
  141. package/dist/esm/ui/Appearance/Chromeless.js +3 -3
  142. package/dist/esm/ui/Appearance/Comment/Comment.js +13 -13
  143. package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -3
  144. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +1 -0
  145. package/dist/esm/ui/Appearance/FullPage/FullPage.js +3 -3
  146. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +5 -4
  147. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +4 -4
  148. package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +2 -3
  149. package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +3 -3
  150. package/dist/esm/ui/AppearanceComponents/Mobile.js +5 -5
  151. package/dist/esm/ui/ChromeCollapsed/index.js +2 -2
  152. package/dist/esm/ui/ChromeCollapsed/styles.js +1 -1
  153. package/dist/esm/ui/CollapsedEditor/index.js +2 -2
  154. package/dist/esm/ui/ContentStyles/code-block.js +2 -2
  155. package/dist/esm/ui/ContentStyles/date.js +1 -1
  156. package/dist/esm/ui/ContentStyles/expand.js +2 -2
  157. package/dist/esm/ui/ContentStyles/extension.js +1 -1
  158. package/dist/esm/ui/ContentStyles/index.js +19 -19
  159. package/dist/esm/ui/ContentStyles/layout.js +3 -3
  160. package/dist/esm/ui/ContentStyles/media.js +1 -1
  161. package/dist/esm/ui/ContentStyles/panel.js +2 -2
  162. package/dist/esm/ui/ContentStyles/status.js +1 -1
  163. package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +1 -1
  164. package/dist/esm/ui/ContextPanel/index.js +6 -5
  165. package/dist/esm/ui/ErrorBoundary/index.js +1 -1
  166. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +3 -3
  167. package/dist/esm/ui/ToolbarButton/index.js +1 -1
  168. package/dist/esm/ui/ToolbarFeedback/index.js +10 -10
  169. package/dist/esm/ui/ToolbarFeedback/styles.js +2 -2
  170. package/dist/esm/ui/ToolbarHelp/index.js +1 -1
  171. package/dist/esm/ui/WithHelpTrigger/index.js +2 -2
  172. package/dist/esm/use-preset.js +2 -1
  173. package/dist/esm/utils/document.js +1 -1
  174. package/dist/esm/utils/extensions.js +1 -1
  175. package/dist/esm/utils/performance/components/RenderTracking.js +1 -1
  176. package/dist/esm/utils/performance/plugin-performance-observer.js +1 -1
  177. package/dist/esm/utils/performance/plugin-performance-report.js +1 -1
  178. package/dist/esm/utils/performance/simple-measure-to-entries.js +1 -1
  179. package/dist/esm/utils/performance/track-transactions.js +1 -1
  180. package/dist/esm/utils/prepare-extension-provider.js +1 -1
  181. package/dist/esm/utils/prepare-quick-insert-provider.js +1 -1
  182. package/dist/esm/version-wrapper.js +1 -1
  183. package/dist/types/CollapsedEditor/index.d.ts +1 -1
  184. package/dist/types/EditorWithActions/index.d.ts +1 -1
  185. package/dist/types/actions/index.d.ts +3 -3
  186. package/dist/types/composable-editor/editor-internal.d.ts +1 -1
  187. package/dist/types/composable-editor/hooks/useMemoEditorProps.d.ts +1 -1
  188. package/dist/types/create-editor/ErrorBoundary.d.ts +1 -1
  189. package/dist/types/create-editor/ReactEditorView.d.ts +13 -13
  190. package/dist/types/create-editor/create-editor.d.ts +1 -1
  191. package/dist/types/create-editor/create-plugins-list.d.ts +3 -3
  192. package/dist/types/create-editor/create-preset.d.ts +1 -1
  193. package/dist/types/create-editor/get-plugins.d.ts +2 -2
  194. package/dist/types/editor-context.d.ts +1 -0
  195. package/dist/types/messages.d.ts +1 -1
  196. package/dist/types/presets/context.d.ts +1 -1
  197. package/dist/types/presets/default.d.ts +8 -8
  198. package/dist/types/presets/universal.d.ts +1 -1
  199. package/dist/types/presets/useUniversalPreset.d.ts +1 -1
  200. package/dist/types/test-utils.d.ts +3 -3
  201. package/dist/types/types/editor-appearance-component.d.ts +6 -6
  202. package/dist/types/types/editor-config.d.ts +1 -1
  203. package/dist/types/types/editor-instance.d.ts +1 -1
  204. package/dist/types/types/editor-props.d.ts +10 -10
  205. package/dist/types/types/pm-plugin-list.d.ts +4 -4
  206. package/dist/types/ui/Addon/Dropdown/index.d.ts +2 -2
  207. package/dist/types/ui/Addon/DropdownItem/index.d.ts +1 -1
  208. package/dist/types/ui/Addon/types.d.ts +1 -1
  209. package/dist/types/ui/Appearance/Comment/Comment.d.ts +1 -1
  210. package/dist/types/ui/Appearance/FullPage/BeforeWrapper.d.ts +1 -1
  211. package/dist/types/ui/Appearance/FullPage/FullPage.d.ts +1 -1
  212. package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +6 -5
  213. package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +5 -5
  214. package/dist/types/ui/Appearance/Mobile.d.ts +1 -1
  215. package/dist/types/ui/ChromeCollapsed/index.d.ts +1 -1
  216. package/dist/types/ui/ContentStyles/layout.d.ts +1 -1
  217. package/dist/types/ui/ContextPanel/index.d.ts +1 -1
  218. package/dist/types/ui/PluginSlot/index.d.ts +5 -5
  219. package/dist/types/ui/Toolbar/Toolbar.d.ts +1 -1
  220. package/dist/types/ui/Toolbar/ToolbarInner.d.ts +1 -1
  221. package/dist/types/ui/Toolbar/ToolbarWithSizeDetector.d.ts +1 -1
  222. package/dist/types/ui/Toolbar/toolbar-size.d.ts +1 -1
  223. package/dist/types/ui/Toolbar/toolbar-types.d.ts +4 -4
  224. package/dist/types/ui/ToolbarButton/index.d.ts +1 -1
  225. package/dist/types/ui/ToolbarFeedback/index.d.ts +0 -1
  226. package/dist/types/ui/ToolbarHelp/index.d.ts +1 -1
  227. package/dist/types/ui/WithEditorActions/index.d.ts +1 -1
  228. package/dist/types/ui/WithPluginState/index.d.ts +2 -1
  229. package/dist/types/use-preset.d.ts +1 -1
  230. package/dist/types/utils/action.d.ts +3 -3
  231. package/dist/types/utils/document.d.ts +5 -5
  232. package/dist/types/utils/extensions.d.ts +3 -3
  233. package/dist/types/utils/index.d.ts +1 -1
  234. package/dist/types/utils/is-full-page.d.ts +1 -1
  235. package/dist/types/utils/node-width.d.ts +1 -1
  236. package/dist/types/utils/performance/components/RenderTracking.d.ts +1 -1
  237. package/dist/types/utils/performance/instrumented-plugin.d.ts +1 -1
  238. package/dist/types/utils/performance/plugin-performance-observer.d.ts +2 -2
  239. package/dist/types/utils/performance/plugin-performance-report.d.ts +1 -1
  240. package/dist/types/utils/prepare-quick-insert-provider.d.ts +2 -2
  241. package/dist/types-ts4.5/CollapsedEditor/index.d.ts +1 -1
  242. package/dist/types-ts4.5/EditorWithActions/index.d.ts +1 -1
  243. package/dist/types-ts4.5/actions/index.d.ts +3 -3
  244. package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +1 -1
  245. package/dist/types-ts4.5/composable-editor/hooks/useMemoEditorProps.d.ts +1 -1
  246. package/dist/types-ts4.5/create-editor/ErrorBoundary.d.ts +1 -1
  247. package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +13 -13
  248. package/dist/types-ts4.5/create-editor/create-editor.d.ts +1 -1
  249. package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +3 -3
  250. package/dist/types-ts4.5/create-editor/create-preset.d.ts +1 -1
  251. package/dist/types-ts4.5/create-editor/get-plugins.d.ts +2 -2
  252. package/dist/types-ts4.5/editor-context.d.ts +1 -0
  253. package/dist/types-ts4.5/messages.d.ts +1 -1
  254. package/dist/types-ts4.5/presets/context.d.ts +1 -1
  255. package/dist/types-ts4.5/presets/default.d.ts +8 -8
  256. package/dist/types-ts4.5/presets/universal.d.ts +1 -1
  257. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +1 -1
  258. package/dist/types-ts4.5/test-utils.d.ts +3 -3
  259. package/dist/types-ts4.5/types/editor-appearance-component.d.ts +6 -6
  260. package/dist/types-ts4.5/types/editor-config.d.ts +1 -1
  261. package/dist/types-ts4.5/types/editor-instance.d.ts +1 -1
  262. package/dist/types-ts4.5/types/editor-props.d.ts +10 -10
  263. package/dist/types-ts4.5/types/pm-plugin-list.d.ts +4 -4
  264. package/dist/types-ts4.5/ui/Addon/Dropdown/index.d.ts +2 -2
  265. package/dist/types-ts4.5/ui/Addon/DropdownItem/index.d.ts +1 -1
  266. package/dist/types-ts4.5/ui/Addon/types.d.ts +1 -1
  267. package/dist/types-ts4.5/ui/Appearance/Comment/Comment.d.ts +1 -1
  268. package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper.d.ts +1 -1
  269. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage.d.ts +1 -1
  270. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +6 -5
  271. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +5 -5
  272. package/dist/types-ts4.5/ui/Appearance/Mobile.d.ts +1 -1
  273. package/dist/types-ts4.5/ui/ChromeCollapsed/index.d.ts +1 -1
  274. package/dist/types-ts4.5/ui/ContentStyles/layout.d.ts +1 -1
  275. package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +1 -1
  276. package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +5 -5
  277. package/dist/types-ts4.5/ui/Toolbar/Toolbar.d.ts +1 -1
  278. package/dist/types-ts4.5/ui/Toolbar/ToolbarInner.d.ts +1 -1
  279. package/dist/types-ts4.5/ui/Toolbar/ToolbarWithSizeDetector.d.ts +1 -1
  280. package/dist/types-ts4.5/ui/Toolbar/toolbar-size.d.ts +1 -1
  281. package/dist/types-ts4.5/ui/Toolbar/toolbar-types.d.ts +4 -4
  282. package/dist/types-ts4.5/ui/ToolbarButton/index.d.ts +1 -1
  283. package/dist/types-ts4.5/ui/ToolbarFeedback/index.d.ts +0 -1
  284. package/dist/types-ts4.5/ui/ToolbarHelp/index.d.ts +1 -1
  285. package/dist/types-ts4.5/ui/WithEditorActions/index.d.ts +1 -1
  286. package/dist/types-ts4.5/ui/WithPluginState/index.d.ts +2 -1
  287. package/dist/types-ts4.5/use-preset.d.ts +1 -1
  288. package/dist/types-ts4.5/utils/action.d.ts +3 -3
  289. package/dist/types-ts4.5/utils/document.d.ts +5 -5
  290. package/dist/types-ts4.5/utils/extensions.d.ts +3 -3
  291. package/dist/types-ts4.5/utils/index.d.ts +1 -1
  292. package/dist/types-ts4.5/utils/is-full-page.d.ts +1 -1
  293. package/dist/types-ts4.5/utils/node-width.d.ts +1 -1
  294. package/dist/types-ts4.5/utils/performance/components/RenderTracking.d.ts +1 -1
  295. package/dist/types-ts4.5/utils/performance/instrumented-plugin.d.ts +1 -1
  296. package/dist/types-ts4.5/utils/performance/plugin-performance-observer.d.ts +2 -2
  297. package/dist/types-ts4.5/utils/performance/plugin-performance-report.d.ts +1 -1
  298. package/dist/types-ts4.5/utils/prepare-quick-insert-provider.d.ts +2 -2
  299. package/docs/0-intro.tsx +19 -40
  300. package/docs/1-legacy-editor.tsx +3 -2
  301. package/docs/2-labs.tsx +1 -1
  302. package/docs/3-autoformatting.tsx +1 -1
  303. package/docs/4-annotations.tsx +2 -2
  304. package/docs/editor-use-only.tsx +1 -0
  305. package/editor-context/package.json +15 -0
  306. package/package.json +8 -5
@@ -1,6 +1,6 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  var _templateObject;
3
3
  import { css } from '@emotion/react';
4
- import { blockNodesVerticalMargin, akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorDeleteBackground, SelectionStyle, getSelectionStyles, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
4
+ import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
5
5
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
6
6
  export var extensionStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .multiBodiedExtensionView-content-wrap {\n &.danger > span > .multiBodiedExtension--container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n &:not(.danger).", " {\n & > span > .multiBodiedExtension--container {\n ", "\n }\n }\n .multiBodiedExtension--container {\n width: 100%;\n max-width: 100%; // ensure width can't go over 100%;\n }\n }\n\n .extensionView-content-wrap,\n .multiBodiedExtensionView-content-wrap,\n .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n\n &:first-of-type {\n margin-top: 0;\n }\n\n &:last-of-type {\n margin-bottom: 0;\n }\n\n &:not(.danger).", " {\n & > span > .extension-container {\n ", "\n }\n }\n\n &.danger > span > .extension-container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n\n &.inline {\n word-wrap: break-all;\n }\n }\n\n .extensionView-content-wrap .extension-container {\n overflow: hidden;\n }\n\n .bodiedExtensionView-content-wrap\n .extensionView-content-wrap\n .extension-container {\n width: 100%;\n max-width: 100%; // ensure width can't go over 100%;\n }\n\n [data-mark-type='fragment'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n }\n }\n\n &:first-child {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-top: 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-top: 0;\n }\n }\n }\n\n &:nth-last-of-type(-n + 2):not(:first-of-type) {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-bottom: 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-bottom: 0;\n }\n }\n }\n }\n"])), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), blockNodesVerticalMargin, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), blockNodesVerticalMargin, blockNodesVerticalMargin);
@@ -2,32 +2,32 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
3
3
  /** @jsx jsx */
4
4
  import React, { useMemo } from 'react';
5
- import { jsx, css, useTheme } from '@emotion/react';
6
- import { whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, shadowSharedStyle, dateSharedStyle, tasksAndDecisionsStyles, annotationSharedStyles, smartCardSharedStyles, textColorStyles, resizerStyles, gridStyles, smartCardStyles, embedCardStyles, codeBlockInListSafariFix, unsupportedStyles, SmartCardSharedCssClassName } from '@atlaskit/editor-common/styles';
7
- import { akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorDeleteBackgroundWithOpacity, akEditorSelectedNodeClassName, blockNodesVerticalMargin, editorFontSize, getSelectionStyles, SelectionStyle, akEditorLineHeight, akEditorSelectedBorderColor } from '@atlaskit/editor-shared-styles';
8
- import { MentionSharedCssClassName } from '@atlaskit/editor-common/mention';
5
+ import { css, jsx, useTheme } from '@emotion/react';
9
6
  import { telepointerStyle } from '@atlaskit/editor-common/collab';
10
- import { tableStyles } from '@atlaskit/editor-plugin-table/ui/common-styles';
7
+ import { EmojiSharedCssClassName } from '@atlaskit/editor-common/emoji';
8
+ import { MentionSharedCssClassName } from '@atlaskit/editor-common/mention';
9
+ import { gapCursorStyles } from '@atlaskit/editor-common/selection';
10
+ import { annotationSharedStyles, blockMarksSharedStyles, codeBlockInListSafariFix, dateSharedStyle, embedCardStyles, gridStyles, indentationSharedStyles, listsSharedStyles, paragraphSharedStyles, resizerStyles, shadowSharedStyle, SmartCardSharedCssClassName, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
11
+ import { MediaSharedClassNames } from '@atlaskit/editor-common/styles';
12
+ import { codeMarkSharedStyles, linkSharedStyle, ruleSharedStyles } from '@atlaskit/editor-common/styles';
13
+ import { browser } from '@atlaskit/editor-common/utils';
11
14
  import { blocktypeStyles } from '@atlaskit/editor-plugin-block-type/styles';
15
+ import { findReplaceStyles } from '@atlaskit/editor-plugin-find-replace/styles';
12
16
  import { textHighlightStyle } from '@atlaskit/editor-plugin-paste-options-toolbar/styles';
17
+ import { placeholderTextStyles } from '@atlaskit/editor-plugin-placeholder-text/styles';
18
+ import { tableStyles } from '@atlaskit/editor-plugin-table/ui/common-styles';
19
+ import { akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorLineHeight, akEditorSelectedBorderColor, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, editorFontSize, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
20
+ import { N200, N30A, N500 } from '@atlaskit/theme/colors';
21
+ import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
13
22
  import { codeBlockStyles } from './code-block';
14
- import { mediaStyles } from './media';
23
+ import { dateStyles } from './date';
24
+ import { expandStyles } from './expand';
25
+ import { extensionStyles } from './extension';
15
26
  import { layoutStyles } from './layout';
27
+ import { mediaStyles } from './media';
16
28
  import { panelStyles } from './panel';
17
- import { placeholderTextStyles } from '@atlaskit/editor-plugin-placeholder-text/styles';
18
- import { extensionStyles } from './extension';
19
- import { expandStyles } from './expand';
20
- import { MediaSharedClassNames } from '@atlaskit/editor-common/styles';
21
- import { findReplaceStyles } from '@atlaskit/editor-plugin-find-replace/styles';
22
- import { taskDecisionStyles } from './tasks-and-decisions';
23
29
  import { statusStyles } from './status';
24
- import { dateStyles } from './date';
25
- import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
26
- import { linkSharedStyle, codeMarkSharedStyles, ruleSharedStyles } from '@atlaskit/editor-common/styles';
27
- import { browser } from '@atlaskit/editor-common/utils';
28
- import { EmojiSharedCssClassName } from '@atlaskit/editor-common/emoji';
29
- import { N500, N30A, N200 } from '@atlaskit/theme/colors';
30
- import { gapCursorStyles } from '@atlaskit/editor-common/selection';
30
+ import { taskDecisionStyles } from './tasks-and-decisions';
31
31
  export var linkStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n ", "\n }\n"])), linkSharedStyle);
32
32
  var ruleStyles = function ruleStyles() {
33
33
  return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .ProseMirror {\n ", ";\n\n hr {\n cursor: pointer;\n padding: ", " 0;\n margin: calc(", "em - 4px) 0;\n background-clip: content-box;\n\n &.", " {\n outline: none;\n background-color: ", ";\n }\n }\n }\n"])), ruleSharedStyles(), "var(--ds-space-050, 4px)", akEditorLineHeight, akEditorSelectedNodeClassName, "var(--ds-border-selected, ".concat(akEditorSelectedBorderColor, ")"));
@@ -1,10 +1,10 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  var _templateObject;
3
3
  import { css } from '@emotion/react';
4
- import { N40A, N50A } from '@atlaskit/theme/colors';
5
- import { columnLayoutSharedStyle, LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from '@atlaskit/editor-common/styles';
6
- import { gridMediumMaxWidth, akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akLayoutGutterOffset, akEditorSwoopCubicBezier, SelectionStyle, getSelectionStyles, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
4
+ import { columnLayoutSharedStyle, LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN } from '@atlaskit/editor-common/styles';
7
5
  import { TableCssClassName } from '@atlaskit/editor-plugin-table/types';
8
6
  import { tableMarginFullWidthMode } from '@atlaskit/editor-plugin-table/ui/consts';
7
+ import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, akEditorSwoopCubicBezier, akLayoutGutterOffset, getSelectionStyles, gridMediumMaxWidth, SelectionStyle } from '@atlaskit/editor-shared-styles';
8
+ import { N40A, N50A } from '@atlaskit/theme/colors';
9
9
  export { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN };
10
10
  export var layoutStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n ", " [data-layout-section] {\n // TODO: Migrate away from gridSize\n // Recommendation: Replace directly with 7px\n margin: ", "px -", "px 0;\n transition: border-color 0.3s ", ";\n cursor: pointer;\n\n /* Inner cursor located 26px from left */\n [data-layout-column] {\n flex: 1;\n min-width: 0;\n border: ", "px solid\n ", ";\n border-radius: 4px;\n padding: ", "px;\n box-sizing: border-box;\n\n > div {\n > :not(style):first-child,\n > style:first-child + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + *,\n > style:first-child + .ProseMirror-gapcursor + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + *,\n > style:first-child + .ProseMirror-gapcursor:first-child + span + * {\n margin-top: 0;\n }\n\n > .embedCardView-content-wrap:first-of-type .rich-media-item {\n margin-top: 0;\n }\n\n > .mediaSingleView-content-wrap:first-of-type .rich-media-item {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor.-right:first-child\n + .mediaSingleView-content-wrap\n .rich-media-item,\n > style:first-child\n + .ProseMirror-gapcursor.-right\n + .mediaSingleView-content-wrap\n .rich-media-item,\n > .ProseMirror-gapcursor.-right:first-of-type\n + .embedCardView-content-wrap\n .rich-media-item {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child\n + span\n + .mediaSingleView-content-wrap\n .rich-media-item,\n > style:first-child\n + .ProseMirror-gapcursor\n + span\n + .mediaSingleView-content-wrap\n .rich-media-item {\n margin-top: 0;\n }\n\n /* Prevent first DecisionWrapper's margin-top: 8px from shifting decisions down\n and shrinking layout's node selectable area (leniency margin) */\n > [data-node-type='decisionList'] {\n li:first-of-type [data-decision-wrapper] {\n margin-top: 0;\n }\n }\n }\n\n /* Make the 'content' fill the entire height of the layout column to allow click\n handler of layout section nodeview to target only data-layout-column */\n [data-layout-content] {\n height: 100%;\n cursor: text;\n }\n }\n\n [data-layout-column] + [data-layout-column] {\n margin-left: ", "px;\n }\n\n @media screen and (max-width: ", "px) {\n [data-layout-column] + [data-layout-column] {\n margin-left: 0;\n }\n }\n\n // TODO: Remove the border styles below once design tokens have been enabled and fallbacks are no longer triggered.\n // This is because the default state already uses the same token and, as such, the hover style won't change anything.\n // https://product-fabric.atlassian.net/browse/DSP-4441\n /* Shows the border when cursor is inside a layout */\n &.selected [data-layout-column],\n &:hover [data-layout-column] {\n border: ", "px solid\n ", ";\n }\n\n &.selected.danger > [data-layout-column] {\n background-color: ", ";\n border-color: ", ";\n }\n\n &.", ":not(.danger) {\n [data-layout-column] {\n ", "\n }\n }\n }\n }\n\n .fabric-editor--full-width-mode .ProseMirror {\n [data-layout-section] {\n .", " {\n margin: 0 ", "px;\n }\n }\n }\n"])), columnLayoutSharedStyle, 8 - 1, akLayoutGutterOffset, akEditorSwoopCubicBezier, akEditorSelectedBorderSize, "var(--ds-border, ".concat(N40A, ")"), LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN, gridMediumMaxWidth, akEditorSelectedBorderSize, "var(--ds-border, ".concat(N50A, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.Border, SelectionStyle.Blanket]), TableCssClassName.TABLE_CONTAINER, tableMarginFullWidthMode);
@@ -1,11 +1,11 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  var _templateObject;
3
3
  import { css } from '@emotion/react';
4
+ import { mediaInlineImageStyles } from '@atlaskit/editor-common/media-inline';
4
5
  import { mediaSingleSharedStyle, richMediaClassName } from '@atlaskit/editor-common/styles';
5
6
  import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorDeleteIconColor, akEditorMediaResizeHandlerPadding, akEditorMediaResizeHandlerPaddingWide, akEditorSelectedBorderBoldSize, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
6
7
  import { fileCardImageViewSelector, inlinePlayerClassName, newFileExperienceClassName } from '@atlaskit/media-card';
7
8
  import { B200, N60, Y500 } from '@atlaskit/theme/colors';
8
- import { mediaInlineImageStyles } from '@atlaskit/editor-common/media-inline';
9
9
  export var mediaStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n ", " & [layout='full-width'] .", ",\n & [layout='wide'] .", " {\n margin-left: 50%;\n transform: translateX(-50%);\n }\n\n .media-extended-resize-experience[layout^='wrap-'] {\n // override 'overflow: auto' when viewport <= 410 set by mediaSingleSharedStyle\n // to prevent scroll bar\n overflow: visible !important;\n }\n\n & [layout^='wrap-'] + [layout^='wrap-'] {\n clear: none;\n & + p,\n & + div[class^='fabric-editor-align'],\n & + ul,\n & + ol,\n & + h1,\n & + h2,\n & + h3,\n & + h4,\n & + h5,\n & + h6 {\n clear: both !important;\n }\n & .", " {\n margin-left: 0;\n margin-right: 0;\n }\n }\n\n ", "\n\n .mediaSingleView-content-wrap[layout^='wrap-'] {\n max-width: 100%;\n // overwrite default Prosemirror setting making it clear: both\n clear: inherit;\n }\n\n .mediaSingleView-content-wrap[layout='wrap-left'] {\n float: left;\n }\n\n .mediaSingleView-content-wrap[layout='wrap-right'] {\n float: right;\n }\n\n .mediaSingleView-content-wrap[layout='wrap-right']\n + .mediaSingleView-content-wrap[layout='wrap-left'] {\n clear: both;\n }\n\n /* Larger margins for resize handlers when at depth 0 of the document */\n & > .mediaSingleView-content-wrap {\n .richMedia-resize-handle-right {\n margin-right: -", "px;\n }\n .richMedia-resize-handle-left {\n margin-left: -", "px;\n }\n }\n }\n\n .richMedia-resize-handle-right,\n .richMedia-resize-handle-left {\n display: flex;\n flex-direction: column;\n\n /* vertical align */\n justify-content: center;\n }\n\n .richMedia-resize-handle-right {\n align-items: flex-end;\n padding-right: ", ";\n margin-right: -", "px;\n }\n\n .richMedia-resize-handle-left {\n align-items: flex-start;\n padding-left: ", ";\n margin-left: -", "px;\n }\n\n .richMedia-resize-handle-right::after,\n .richMedia-resize-handle-left::after {\n content: ' ';\n display: flex;\n width: 3px;\n height: 64px;\n\n border-radius: 6px;\n }\n\n .", ":hover .richMedia-resize-handle-left::after,\n .", ":hover .richMedia-resize-handle-right::after {\n background: ", ";\n }\n\n .", " .richMedia-resize-handle-right::after,\n .", " .richMedia-resize-handle-left::after,\n .", " .richMedia-resize-handle-right:hover::after,\n .", " .richMedia-resize-handle-left:hover::after,\n .", ".is-resizing .richMedia-resize-handle-right::after,\n .", ".is-resizing .richMedia-resize-handle-left::after {\n background: ", ";\n }\n\n .__resizable_base__ {\n left: unset !important;\n width: auto !important;\n height: auto !important;\n }\n\n /* Danger when top level node for smart cards / inline links */\n .danger > div > div > .media-card-frame,\n .danger > span > a {\n background-color: ", ";\n box-shadow: 0px 0px 0px ", "px\n ", ";\n transition: background-color 0s, box-shadow 0s;\n }\n /* Danger when nested node or common */\n .danger {\n /* Media single */\n .", " .", "::after {\n border: 1px solid ", ";\n }\n /* Media single video player */\n .", " .", "::after {\n border: 1px solid ", ";\n }\n /* New file experience */\n .", " .", " {\n box-shadow: 0 0 0 1px\n ", " !important;\n }\n /* Media resize legacy handlers */\n .richMedia-resize-handle-right::after,\n .richMedia-resize-handle-left::after {\n background: ", " !important;\n }\n /* Media resize new handlers */\n .resizer-handle-thumb {\n background: ", " !important;\n }\n\n /* Smart cards */\n div div .media-card-frame,\n .inlineCardView-content-wrap > span > a {\n background-color: ", "; /* R75 with 50% opactiy */\n transition: background-color 0s;\n }\n\n div div .media-card-frame::after {\n box-shadow: none;\n }\n }\n\n .warning {\n /* Media single */\n .", " .", "::after {\n border: 1px solid ", ";\n }\n\n .", " .", "::after {\n border: 1px solid ", ";\n }\n\n .", " .", " {\n box-shadow: 0 0 0 1px ", " !important;\n }\n\n .resizer-handle-thumb {\n background: ", " !important;\n }\n }\n"])), mediaSingleSharedStyle, richMediaClassName, richMediaClassName, richMediaClassName, mediaInlineImageStyles, akEditorMediaResizeHandlerPaddingWide, akEditorMediaResizeHandlerPaddingWide, "var(--ds-space-150, 12px)", akEditorMediaResizeHandlerPadding, "var(--ds-space-150, 12px)", akEditorMediaResizeHandlerPadding, richMediaClassName, richMediaClassName, "var(--ds-border, ".concat(N60, ")"), akEditorSelectedNodeClassName, akEditorSelectedNodeClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, "var(--ds-border-focused, ".concat(B200, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), akEditorSelectedBorderBoldSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), richMediaClassName, fileCardImageViewSelector, "var(--ds-border-danger, ".concat(akEditorDeleteIconColor, ")"), richMediaClassName, inlinePlayerClassName, "var(--ds-border-danger, ".concat(akEditorDeleteIconColor, ")"), richMediaClassName, newFileExperienceClassName, "var(--ds-border-danger, ".concat(akEditorDeleteIconColor, ")"), "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), "var(--ds-blanket-danger, rgb(255, 189, 173, 0.5))", richMediaClassName, fileCardImageViewSelector, "var(--ds-border-warning, ".concat(Y500, ")"), richMediaClassName, inlinePlayerClassName, "var(--ds-border-warning, ".concat(Y500, ")"), richMediaClassName, newFileExperienceClassName, "var(--ds-border-warning, ".concat(Y500, ")"), "var(--ds-icon-warning, ".concat(Y500, ")"));
10
10
 
11
11
  /* `left: unset` above is to work around Chrome bug where rendering a div with
@@ -1,8 +1,8 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  var _templateObject;
3
3
  import { css } from '@emotion/react';
4
- import { panelSharedStyles, PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
5
- import { SelectionStyle, getSelectionStyles, akEditorDeleteBackground, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorDeleteIconColor, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
4
+ import { PanelSharedCssClassName, panelSharedStyles } from '@atlaskit/editor-common/panel';
5
+ import { akEditorDeleteBackground, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorDeleteIconColor, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
6
6
  export var panelStyles = function panelStyles() {
7
7
  return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n .", " {\n cursor: pointer;\n\n /* Danger when top level node */\n &.danger {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", " !important;\n\n .", " {\n color: ", " !important;\n }\n }\n }\n\n .", " {\n cursor: text;\n }\n\n /* Danger when nested node */\n .danger .", " {\n &[data-panel-type] {\n background-color: ", ";\n\n .", " {\n color: ", ";\n }\n }\n }\n\n ", ";\n }\n\n .", ".", ":not(.danger) {\n ", "\n }\n"])), PanelSharedCssClassName.prefix, akEditorSelectedBorderSize, akEditorDeleteBorder, "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), PanelSharedCssClassName.content, PanelSharedCssClassName.prefix, "var(--ds-blanket-danger, ".concat(akEditorDeleteBackgroundWithOpacity, ")"), PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), panelSharedStyles(), PanelSharedCssClassName.prefix, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]));
8
8
  };
@@ -2,5 +2,5 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject;
3
3
  import { css } from '@emotion/react';
4
4
  import { StatusSharedCssClassName, TableSharedCssClassName } from '@atlaskit/editor-common/styles';
5
- import { SelectionStyle, getSelectionStyles, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
5
+ import { akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
6
6
  export var statusStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", ",\n .", ",\n [data-layout-section] {\n .", " {\n max-width: 100%;\n line-height: 0;\n\n > span {\n width: 100%;\n }\n }\n }\n .", " {\n > span {\n cursor: pointer;\n line-height: 0; /* Prevent responsive layouts increasing height of container. */\n }\n\n &.", "\n .", "\n > span {\n ", "\n }\n }\n\n .danger {\n .", " > span {\n background-color: ", ";\n }\n\n .", ".", "\n .", "\n > span {\n box-shadow: 0 0 0 ", "px ", ";\n }\n }\n"])), TableSharedCssClassName.TABLE_CELL_WRAPPER, TableSharedCssClassName.TABLE_HEADER_CELL_WRAPPER, StatusSharedCssClassName.STATUS_CONTAINER, StatusSharedCssClassName.STATUS_CONTAINER, akEditorSelectedNodeClassName, StatusSharedCssClassName.STATUS_LOZENGE, getSelectionStyles([SelectionStyle.BoxShadow]), StatusSharedCssClassName.STATUS_LOZENGE, akEditorDeleteBackgroundWithOpacity, StatusSharedCssClassName.STATUS_CONTAINER, akEditorSelectedNodeClassName, StatusSharedCssClassName.STATUS_LOZENGE, akEditorSelectedBorderSize, akEditorDeleteBorder);
@@ -2,5 +2,5 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject;
3
3
  import { css } from '@emotion/react';
4
4
  import { TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
5
- import { SelectionStyle, getSelectionStyles, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
5
+ import { akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
6
6
  export var taskDecisionStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n [data-decision-wrapper] {\n cursor: pointer;\n }\n\n .", " > [data-decision-wrapper],\n ol[data-node-type='decisionList'].", " {\n border-radius: 4px;\n ", "\n }\n\n .danger {\n .", ".", "\n > div {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n &::after {\n content: none; /* reset the Blanket selection style */\n }\n }\n }\n"])), akEditorSelectedNodeClassName, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), TaskDecisionSharedCssClassName.DECISION_CONTAINER, akEditorSelectedNodeClassName, akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-blanket-danger, ".concat(akEditorDeleteBackgroundWithOpacity, ")"));
@@ -18,14 +18,14 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
18
18
  import React, { useContext } from 'react';
19
19
  import { css, jsx } from '@emotion/react';
20
20
  import Transition from 'react-transition-group/Transition';
21
- import { N30 } from '@atlaskit/theme/colors';
22
- import { akEditorSwoopCubicBezier, akEditorDefaultLayoutWidth, akEditorWideLayoutWidth, akEditorBreakoutPadding, akEditorContextPanelWidth, ATLASSIAN_NAVIGATION_HEIGHT } from '@atlaskit/editor-shared-styles';
23
21
  import { ContextPanelConsumer, WidthContext } from '@atlaskit/editor-common/ui';
24
- import WithPluginState from '../WithPluginState';
25
- import WithEditorActions from '../WithEditorActions';
22
+ import { findChildrenByType } from '@atlaskit/editor-prosemirror/utils';
23
+ import { akEditorBreakoutPadding, akEditorContextPanelWidth, akEditorDefaultLayoutWidth, akEditorSwoopCubicBezier, akEditorWideLayoutWidth, ATLASSIAN_NAVIGATION_HEIGHT } from '@atlaskit/editor-shared-styles';
26
24
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
25
+ import { N30 } from '@atlaskit/theme/colors';
27
26
  import { getChildBreakoutModes } from '../../utils/document';
28
- import { findChildrenByType } from '@atlaskit/editor-prosemirror/utils';
27
+ import WithEditorActions from '../WithEditorActions';
28
+ import WithPluginState from '../WithPluginState';
29
29
  var ANIM_SPEED_MS = 500;
30
30
  var EDITOR_WIDTH = akEditorDefaultLayoutWidth + akEditorBreakoutPadding;
31
31
  var WIDE_EDITOR_WIDTH = akEditorWideLayoutWidth + akEditorBreakoutPadding;
@@ -180,6 +180,7 @@ export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
180
180
  // It might be that we need to inject the pluginInjectionApi
181
181
  // via context so that we can use it in this file (similar to
182
182
  // WithEditorActions). To be investigated further.
183
+
183
184
  // @ts-ignore
184
185
  var widthPluginKey = {
185
186
  key: 'widthPlugin$',
@@ -8,8 +8,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
9
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
10
  import React from 'react';
11
- import { logException } from '@atlaskit/editor-common/monitoring';
12
11
  import { ACTION, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
12
+ import { logException } from '@atlaskit/editor-common/monitoring';
13
13
  export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
14
14
  _inherits(ErrorBoundary, _React$Component);
15
15
  var _super = _createSuper(ErrorBoundary);
@@ -5,13 +5,13 @@ var _templateObject;
5
5
  /** @jsx jsx */
6
6
  import React, { useMemo } from 'react';
7
7
  import { css, jsx } from '@emotion/react';
8
- import { WidthObserver } from '@atlaskit/width-detector';
9
8
  import { akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
9
+ import { WidthObserver } from '@atlaskit/width-detector';
10
+ import { isFullPage } from '../../utils/is-full-page';
10
11
  import { useElementWidth } from './hooks';
11
- import { widthToToolbarSize, toolbarSizeToWidth } from './toolbar-size';
12
12
  import { Toolbar } from './Toolbar';
13
+ import { toolbarSizeToWidth, widthToToolbarSize } from './toolbar-size';
13
14
  import { ToolbarSize } from './types';
14
- import { isFullPage } from '../../utils/is-full-page';
15
15
  var toolbar = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n position: relative;\n @media (max-width: ", "px) {\n grid-column: 1 / 2;\n grid-row: 2;\n width: calc(100% - 30px);\n margin: 0 15px;\n }\n"])), akEditorMobileMaxWidth);
16
16
  export var ToolbarWithSizeDetector = function ToolbarWithSizeDetector(props) {
17
17
  var ref = /*#__PURE__*/React.createRef();
@@ -1,3 +1,3 @@
1
- import { ToolbarButton, TOOLBAR_BUTTON } from '@atlaskit/editor-common/ui-menu';
1
+ import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
2
2
  export { TOOLBAR_BUTTON };
3
3
  export default ToolbarButton;
@@ -13,22 +13,22 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
13
13
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
14
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
15
15
  /** @jsx jsx */
16
- import { jsx } from '@emotion/react';
17
- import ReactDOM from 'react-dom';
18
16
  import { PureComponent } from 'react';
17
+ import { jsx } from '@emotion/react';
19
18
  import PropTypes from 'prop-types';
20
- import Spinner from '@atlaskit/spinner';
21
- import { Popup } from '@atlaskit/editor-common/ui';
19
+ import ReactDOM from 'react-dom';
22
20
  import ButtonGroup from '@atlaskit/button/button-group';
23
21
  import Button from '@atlaskit/button/custom-theme-button';
24
- import ToolbarButton from '../ToolbarButton';
25
- import withOuterListeners from '../with-outer-listeners';
26
- import { wrapper, buttonContent, confirmationPopup, confirmationText, confirmationHeader, confirmationImg } from './styles';
27
- import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
28
- import { createDispatch } from '../../event-dispatcher';
29
- import deprecationWarnings from '../../utils/deprecation-warnings';
22
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
23
+ import { Popup } from '@atlaskit/editor-common/ui';
30
24
  import { analyticsEventKey } from '@atlaskit/editor-common/utils';
25
+ import Spinner from '@atlaskit/spinner';
26
+ import { createDispatch } from '../../event-dispatcher';
31
27
  import { usePresetContext } from '../../presets/context';
28
+ import deprecationWarnings from '../../utils/deprecation-warnings';
29
+ import ToolbarButton from '../ToolbarButton';
30
+ import withOuterListeners from '../with-outer-listeners';
31
+ import { buttonContent, confirmationHeader, confirmationImg, confirmationPopup, confirmationText, wrapper } from './styles';
32
32
  var PopupWithOutsideListeners = withOuterListeners(Popup);
33
33
  var POPUP_HEIGHT = 388;
34
34
  var POPUP_WIDTH = 280;
@@ -1,9 +1,9 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
3
3
  import { css } from '@emotion/react';
4
- import { borderRadius } from '@atlaskit/theme/constants';
5
- import { N60A, N400, P400 } from '@atlaskit/theme/colors';
6
4
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
5
+ import { N400, N60A, P400 } from '@atlaskit/theme/colors';
6
+ import { borderRadius } from '@atlaskit/theme/constants';
7
7
  export var buttonContent = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n height: 24px;\n line-height: 24px;\n min-width: 70px;\n"])));
8
8
  export var wrapper = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n margin-right: 0;\n"])));
9
9
  export var confirmationPopup = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n overflow: auto;\n max-height: none;\n height: 410px;\n width: 280px;\n"])), "var(--ds-surface-overlay, #fff)", borderRadius(), "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A), ")"));
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
+ import { injectIntl } from 'react-intl-next';
2
3
  import QuestionIcon from '@atlaskit/icon/glyph/question';
3
4
  import ToolbarButton from '../ToolbarButton';
4
5
  import WithHelpTrigger from '../WithHelpTrigger';
5
- import { injectIntl } from 'react-intl-next';
6
6
  import { messages } from './messages';
7
7
  var TooltipHelpTrigger = function TooltipHelpTrigger(_ref) {
8
8
  var _ref$title = _ref.title,
@@ -9,10 +9,10 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
9
9
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
10
  import React from 'react';
11
11
  import PropTypes from 'prop-types';
12
- import { ACTION, ACTION_SUBJECT, INPUT_METHOD, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
13
- import { createDispatch } from '../../event-dispatcher';
12
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
14
13
  import { analyticsEventKey } from '@atlaskit/editor-common/utils';
15
14
  import { deprecatedOpenHelpCommand } from '@atlaskit/editor-plugin-help-dialog';
15
+ import { createDispatch } from '../../event-dispatcher';
16
16
  var WithHelpTrigger = /*#__PURE__*/function (_React$Component) {
17
17
  _inherits(WithHelpTrigger, _React$Component);
18
18
  var _super = _createSuper(WithHelpTrigger);
@@ -33,7 +33,8 @@ import { usePresetContext } from './presets/context';
33
33
  * }
34
34
  * ```
35
35
  */
36
- export function usePreset(createPreset, dependencies) {
36
+ export function usePreset(createPreset) {
37
+ var dependencies = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
37
38
  var editorApi = usePresetContext();
38
39
  // eslint-disable-next-line react-hooks/exhaustive-deps
39
40
  var preset = useMemo(createPreset, dependencies);
@@ -1,7 +1,7 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
+ import { getStepRange, processRawValue } from '@atlaskit/editor-common/utils';
2
3
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
3
4
  import { getBreakoutMode } from './node-width';
4
- import { processRawValue, getStepRange } from '@atlaskit/editor-common/utils';
5
5
  export { isInEmptyLine } from '@atlaskit/editor-common/utils';
6
6
  export function processRawFragmentValue(schema, value, providerFactory, sanitizePrivateContent, contentTransformer, dispatchAnalyticsEvent) {
7
7
  if (!value) {
@@ -2,9 +2,9 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import React from 'react';
4
4
  import Loadable from 'react-loadable';
5
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
6
  import { getQuickInsertItemsFromModule, resolveImport } from '@atlaskit/editor-common/extensions';
6
7
  import { combineProviders } from '@atlaskit/editor-common/provider-helpers';
7
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
8
8
  /**
9
9
  * Utils to send analytics event when a extension is inserted using quickInsert
10
10
  */
@@ -1,7 +1,7 @@
1
1
  import { useMemo } from 'react';
2
2
  import debounce from 'lodash/debounce';
3
- import { useComponentRenderTracking } from '@atlaskit/editor-common/utils';
4
3
  import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
4
+ import { useComponentRenderTracking } from '@atlaskit/editor-common/utils';
5
5
  export function RenderTracking(props) {
6
6
  var debouncedHandleAnalyticsEvent = useMemo(function () {
7
7
  return debounce(props.handleAnalyticsEvent, 500);
@@ -3,8 +3,8 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
4
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  import { PluginPerformanceReport } from './plugin-performance-report';
6
- import { DEFAULT_USE_PERFORMANCE_MARK, EVENT_NAME_DISPATCH_TRANSACTION } from './track-transactions';
7
6
  import { SimpleMeasurementLogger } from './simple-measure-to-entries';
7
+ import { DEFAULT_USE_PERFORMANCE_MARK, EVENT_NAME_DISPATCH_TRANSACTION } from './track-transactions';
8
8
  export var PluginPerformanceObserver = /*#__PURE__*/function () {
9
9
  function PluginPerformanceObserver(callback) {
10
10
  var _this = this;
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  import { outlier } from './outlier';
8
- import { EVENT_NAME_STATE_APPLY, EVENT_NAME_UPDATE_STATE, EVENT_NAME_ON_CHANGE, EVENT_NAME_VIEW_STATE_UPDATED } from './track-transactions';
8
+ import { EVENT_NAME_ON_CHANGE, EVENT_NAME_STATE_APPLY, EVENT_NAME_UPDATE_STATE, EVENT_NAME_VIEW_STATE_UPDATED } from './track-transactions';
9
9
  export var PluginPerformanceReport = /*#__PURE__*/function () {
10
10
  function PluginPerformanceReport(entry) {
11
11
  var _this = this;
@@ -2,7 +2,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
4
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
- import { EVENT_NAME_DISPATCH_TRANSACTION, EVENT_NAME_STATE_APPLY, EVENT_NAME_UPDATE_STATE, EVENT_NAME_VIEW_STATE_UPDATED, EVENT_NAME_ON_CHANGE } from './track-transactions';
5
+ import { EVENT_NAME_DISPATCH_TRANSACTION, EVENT_NAME_ON_CHANGE, EVENT_NAME_STATE_APPLY, EVENT_NAME_UPDATE_STATE, EVENT_NAME_VIEW_STATE_UPDATED } from './track-transactions';
6
6
  var EVENT_NAMES = [EVENT_NAME_STATE_APPLY, EVENT_NAME_UPDATE_STATE, EVENT_NAME_VIEW_STATE_UPDATED, EVENT_NAME_ON_CHANGE, EVENT_NAME_DISPATCH_TRANSACTION];
7
7
 
8
8
  /**
@@ -1,7 +1,7 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
- import { isPerformanceAPIAvailable, startMeasure, stopMeasure, getTimeSince } from '@atlaskit/editor-common/utils';
4
+ import { getTimeSince, isPerformanceAPIAvailable, startMeasure, stopMeasure } from '@atlaskit/editor-common/utils';
5
5
  export var EVENT_NAME_STATE_APPLY = "\uD83E\uDD89 EditorView::state::apply";
6
6
  export var EVENT_NAME_UPDATE_STATE = "\uD83E\uDD89 EditorView::updateState";
7
7
  export var EVENT_NAME_VIEW_STATE_UPDATED = "\uD83E\uDD89 EditorView::onEditorViewStateUpdated";
@@ -1,5 +1,5 @@
1
- import { combineExtensionProviders } from '@atlaskit/editor-common/extensions';
2
1
  import memoizeOne from 'memoize-one';
2
+ import { combineExtensionProviders } from '@atlaskit/editor-common/extensions';
3
3
  function prepareExtensionProvidersInternal(editorActions, extensionProviders) {
4
4
  if (!extensionProviders) {
5
5
  return;
@@ -1,4 +1,4 @@
1
- import { extensionProviderToQuickInsertProvider, combineQuickInsertProviders } from './extensions';
1
+ import { combineQuickInsertProviders, extensionProviderToQuickInsertProvider } from './extensions';
2
2
 
3
3
  /**
4
4
  *
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "191.3.1";
2
+ export var version = "191.4.0";
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type * as EditorImports from '../';
2
+ import type * as EditorImports from '../index';
3
3
  export type EditorModule = {
4
4
  EditorContext: typeof EditorImports.EditorContext;
5
5
  WithEditorActions: typeof EditorImports.WithEditorActions;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import type { EditorProps } from '../editor';
4
3
  import type EditorActions from '../actions';
4
+ import type { EditorProps } from '../editor';
5
5
  export interface EditorWithActionsPropsOverride extends EditorProps {
6
6
  onSave?: any;
7
7
  onChange?: any;
@@ -1,8 +1,8 @@
1
- import { Node } from '@atlaskit/editor-prosemirror/model';
2
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
1
  import type { AnalyticsEventPayload } from '@atlaskit/analytics-next/AnalyticsEvent';
4
2
  import type { ResolvedEditorState } from '@atlaskit/editor-common/collab';
5
- import type { ContextUpdateHandler, EditorActionsOptions, ReplaceRawValue, FeatureFlags, Transformer } from '@atlaskit/editor-common/types';
3
+ import type { ContextUpdateHandler, EditorActionsOptions, FeatureFlags, ReplaceRawValue, Transformer } from '@atlaskit/editor-common/types';
4
+ import { Node } from '@atlaskit/editor-prosemirror/model';
5
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  import type { EventDispatcher } from '../event-dispatcher';
7
7
  export default class EditorActions<T = any> implements EditorActionsOptions<T> {
8
8
  private editorView?;
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { jsx } from '@emotion/react';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
3
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
5
4
  import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
6
5
  import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
7
6
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
8
7
  import type { AllEditorPresetPluginTypes, Transformer } from '@atlaskit/editor-common/types';
8
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
9
9
  import type EditorActions from '../actions';
10
10
  import type { EventDispatcher } from '../event-dispatcher';
11
11
  import type { EditorNextProps } from '../types/editor-props';
@@ -1,4 +1,4 @@
1
- import type { EditorProps, EditorNextProps } from '../../types/editor-props';
1
+ import type { EditorNextProps, EditorProps } from '../../types/editor-props';
2
2
  export type Complete<T> = {
3
3
  [P in keyof Required<T>]: Pick<T, P> extends Required<Pick<T, P>> ? T[P] : T[P] | undefined;
4
4
  };
@@ -1,9 +1,9 @@
1
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
1
  import React from 'react';
3
2
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
3
  import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
5
4
  import { ExperienceStore } from '@atlaskit/editor-common/ufo';
6
5
  import type { UserBrowserExtensionResults } from '@atlaskit/editor-common/utils';
6
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
7
  import type { FeatureFlags } from '../types/feature-flags';
8
8
  export type ErrorBoundaryProps = {
9
9
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
@@ -1,25 +1,25 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { EditorState } from '@atlaskit/editor-prosemirror/state';
4
- import type { DirectEditorProps } from '@atlaskit/editor-prosemirror/view';
5
- import { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
7
3
  import type { WrappedComponentProps } from 'react-intl-next';
8
4
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
5
+ import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
6
+ import type { AnalyticsEventPayload, DispatchAnalyticsEvent, FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
7
+ import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
8
+ import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
9
9
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
10
- import type { ErrorReporter, SEVERITY } from '@atlaskit/editor-common/utils';
10
+ import type { AllEditorPresetPluginTypes, Transformer } from '@atlaskit/editor-common/types';
11
11
  import { ExperienceStore } from '@atlaskit/editor-common/ufo';
12
- import type { Transformer, AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
13
- import type { Dispatch } from '../event-dispatcher';
12
+ import type { ErrorReporter, SEVERITY } from '@atlaskit/editor-common/utils';
13
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
14
+ import { EditorState } from '@atlaskit/editor-prosemirror/state';
15
+ import { EditorView } from '@atlaskit/editor-prosemirror/view';
16
+ import type { DirectEditorProps } from '@atlaskit/editor-prosemirror/view';
14
17
  import { EventDispatcher } from '../event-dispatcher';
15
- import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
16
- import type { EditorAppearance, EditorConfig, EditorReactContext, EditorPlugin, EditorProps } from '../types';
17
- import type { EditorNextProps } from '../types/editor-props';
18
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
18
+ import type { Dispatch } from '../event-dispatcher';
19
19
  import type { SetEditorAPI } from '../presets/context';
20
+ import type { EditorAppearance, EditorConfig, EditorPlugin, EditorProps, EditorReactContext } from '../types';
21
+ import type { EditorNextProps } from '../types/editor-props';
20
22
  import { TransactionTracker } from '../utils/performance/track-transactions';
21
- import type { FireAnalyticsCallback, AnalyticsEventPayload, DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
22
- import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
23
23
  export interface EditorViewProps {
24
24
  editorProps: EditorProps | EditorNextProps;
25
25
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
@@ -1,7 +1,7 @@
1
- import type { MarkSpec } from '@atlaskit/editor-prosemirror/model';
2
1
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
2
  import { ErrorReporter } from '@atlaskit/editor-common/utils';
4
3
  import type { ErrorReportingHandler } from '@atlaskit/editor-common/utils';
4
+ import type { MarkSpec } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { EditorConfig, EditorPlugin, PMPluginCreateConfig } from '../types';
6
6
  export declare function sortByRank(a: {
7
7
  rank: number;
@@ -1,10 +1,10 @@
1
1
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
- import type { EditorPlugin, EditorProps } from '../types';
3
- import type { EditorPluginFeatureProps } from '../types/editor-props';
2
+ import type { EditorPluginInjectionAPI, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
4
3
  import type { ScrollGutterPluginOptions } from '@atlaskit/editor-plugin-base';
5
4
  import type { DefaultPresetPluginOptions } from '../presets/default';
6
5
  import type { EditorPresetProps } from '../presets/types';
7
- import type { EditorPresetBuilder, EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
6
+ import type { EditorPlugin, EditorProps } from '../types';
7
+ import type { EditorPluginFeatureProps } from '../types/editor-props';
8
8
  export declare function getScrollGutterOptions(props: EditorProps): ScrollGutterPluginOptions | undefined;
9
9
  export declare function getDefaultPresetOptionsFromEditorProps(props: EditorProps, createAnalyticsEvent?: CreateUIAnalyticsEvent): EditorPresetProps & DefaultPresetPluginOptions & EditorPluginFeatureProps;
10
10
  /**
@@ -1,3 +1,3 @@
1
- import type { EditorProps } from '../types';
2
1
  import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
2
+ import type { EditorProps } from '../types';
3
3
  export declare function createPreset(props: EditorProps, prevProps?: EditorProps): EditorPresetBuilder<any, any>;
@@ -1,9 +1,9 @@
1
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
- import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
3
1
  import type { IntlShape } from 'react-intl-next';
4
2
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
5
3
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
6
4
  import type { ReactHookFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
5
+ import type { Schema } from '@atlaskit/editor-prosemirror/model';
6
+ import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
7
7
  import type { Dispatch, EventDispatcher } from '../event-dispatcher';
8
8
  import type { EditorReactContext } from '../types/editor-react-context';
9
9
  import type { FeatureFlags } from '../types/feature-flags';
@@ -0,0 +1 @@
1
+ export { default as EditorContext } from './ui/EditorContext';
@@ -1,4 +1,4 @@
1
- import commonMessages, { linkMessages, linkToolbarMessages, statusMessages, dateMessages } from '@atlaskit/editor-common/messages';
1
+ import commonMessages, { dateMessages, linkMessages, linkToolbarMessages, statusMessages } from '@atlaskit/editor-common/messages';
2
2
  export { linkMessages };
3
3
  export { statusMessages };
4
4
  export { dateMessages };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { PublicPluginAPI, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
+ import type { NextEditorPlugin, OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
3
3
  export type SetEditorAPI = (editorApi: PublicPluginAPI<any>) => void;
4
4
  export interface EditorAPIContextType {
5
5
  editorApi?: PublicPluginAPI<any>;