@atlaskit/editor-core 234.3.2 → 235.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/composable-editor/editor-internal-compiled.js +0 -6
  3. package/dist/cjs/composable-editor/editor-internal.js +3 -12
  4. package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +0 -5
  5. package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +1 -7
  6. package/dist/cjs/ui/Appearance/ChromelessEditorContainer.js +26 -13
  7. package/dist/cjs/ui/Appearance/Comment/Comment.js +262 -7
  8. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.js +0 -6
  9. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.js +0 -6
  10. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +2 -13
  11. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper.js +15 -7
  12. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper.js +41 -10
  13. package/dist/cjs/ui/Appearance/FullPage/FullPage-compiled.js +0 -6
  14. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -6
  15. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +192 -14
  16. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +3 -5
  17. package/dist/cjs/ui/Appearance/FullPage/MainToolbar-compiled.js +0 -6
  18. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper.js +23 -7
  19. package/dist/cjs/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +0 -6
  20. package/dist/cjs/ui/ChromeCollapsed/index.js +1 -7
  21. package/dist/cjs/ui/ContextPanel/index-compiled.js +0 -6
  22. package/dist/cjs/ui/ContextPanel/index.js +2 -11
  23. package/dist/cjs/ui/PluginSlot/PluginSlot-compiled.js +0 -7
  24. package/dist/cjs/ui/PluginSlot/index.js +1 -6
  25. package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +0 -6
  26. package/dist/cjs/ui/Toolbar/ToolbarInner.js +1 -8
  27. package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +0 -6
  28. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +2 -11
  29. package/dist/cjs/ui/WithFlash/index.js +1 -6
  30. package/dist/cjs/ui/WithFlash/withFlash-compiled.js +1 -6
  31. package/dist/cjs/ui/quick-insert/getExtensionQuickInsertComponents.js +7 -4
  32. package/dist/cjs/version-wrapper.js +1 -1
  33. package/dist/es2019/composable-editor/editor-internal-compiled.js +0 -6
  34. package/dist/es2019/composable-editor/editor-internal.js +3 -10
  35. package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +0 -5
  36. package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +1 -5
  37. package/dist/es2019/ui/Appearance/ChromelessEditorContainer.js +24 -12
  38. package/dist/es2019/ui/Appearance/Comment/Comment.js +254 -5
  39. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.js +0 -6
  40. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.js +0 -6
  41. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -8
  42. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +11 -5
  43. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper.js +37 -6
  44. package/dist/es2019/ui/Appearance/FullPage/FullPage-compiled.js +0 -6
  45. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -4
  46. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +186 -11
  47. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +3 -5
  48. package/dist/es2019/ui/Appearance/FullPage/MainToolbar-compiled.js +0 -6
  49. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper.js +24 -5
  50. package/dist/es2019/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +0 -6
  51. package/dist/es2019/ui/ChromeCollapsed/index.js +1 -5
  52. package/dist/es2019/ui/ContextPanel/index-compiled.js +0 -6
  53. package/dist/es2019/ui/ContextPanel/index.js +2 -7
  54. package/dist/es2019/ui/PluginSlot/PluginSlot-compiled.js +0 -7
  55. package/dist/es2019/ui/PluginSlot/index.js +1 -4
  56. package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +0 -6
  57. package/dist/es2019/ui/Toolbar/ToolbarInner.js +1 -5
  58. package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +0 -6
  59. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +2 -9
  60. package/dist/es2019/ui/WithFlash/index.js +1 -4
  61. package/dist/es2019/ui/WithFlash/withFlash-compiled.js +0 -6
  62. package/dist/es2019/ui/quick-insert/getExtensionQuickInsertComponents.js +6 -2
  63. package/dist/es2019/version-wrapper.js +1 -1
  64. package/dist/esm/composable-editor/editor-internal-compiled.js +0 -6
  65. package/dist/esm/composable-editor/editor-internal.js +3 -12
  66. package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +0 -5
  67. package/dist/esm/ui/Addon/ClickAreaBlock/index.js +1 -7
  68. package/dist/esm/ui/Appearance/ChromelessEditorContainer.js +25 -14
  69. package/dist/esm/ui/Appearance/Comment/Comment.js +260 -7
  70. package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.js +0 -6
  71. package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.js +0 -7
  72. package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -12
  73. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +13 -7
  74. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper.js +39 -10
  75. package/dist/esm/ui/Appearance/FullPage/FullPage-compiled.js +0 -6
  76. package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -6
  77. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +190 -13
  78. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +3 -5
  79. package/dist/esm/ui/Appearance/FullPage/MainToolbar-compiled.js +0 -6
  80. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper.js +23 -7
  81. package/dist/esm/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +0 -6
  82. package/dist/esm/ui/ChromeCollapsed/index.js +1 -7
  83. package/dist/esm/ui/ContextPanel/index-compiled.js +0 -6
  84. package/dist/esm/ui/ContextPanel/index.js +2 -11
  85. package/dist/esm/ui/PluginSlot/PluginSlot-compiled.js +0 -7
  86. package/dist/esm/ui/PluginSlot/index.js +1 -6
  87. package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +0 -6
  88. package/dist/esm/ui/Toolbar/ToolbarInner.js +1 -7
  89. package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +0 -6
  90. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +2 -11
  91. package/dist/esm/ui/WithFlash/index.js +1 -6
  92. package/dist/esm/ui/WithFlash/withFlash-compiled.js +0 -6
  93. package/dist/esm/ui/quick-insert/getExtensionQuickInsertComponents.js +8 -5
  94. package/dist/esm/version-wrapper.js +1 -1
  95. package/dist/types/composable-editor/editor-internal-compiled.d.ts +0 -6
  96. package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +0 -4
  97. package/dist/types/ui/Appearance/ChromelessEditorContainer.d.ts +10 -7
  98. package/dist/types/ui/Appearance/Comment/Comment.d.ts +24 -2
  99. package/dist/types/ui/Appearance/Comment/FixedToolbar-compiled.d.ts +0 -6
  100. package/dist/types/ui/Appearance/Comment/StickyToolbar-compiled.d.ts +0 -6
  101. package/dist/types/ui/Appearance/FullPage/BeforeWrapper.d.ts +7 -3
  102. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +2 -3
  103. package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +54 -6
  104. package/dist/types/ui/Appearance/FullPage/MainToolbar-compiled.d.ts +0 -6
  105. package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +13 -3
  106. package/dist/types/ui/ChromeCollapsed/ChromeCollapsed-compiled.d.ts +0 -6
  107. package/dist/types/ui/PluginSlot/PluginSlot-compiled.d.ts +0 -6
  108. package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-compiled.d.ts +0 -6
  109. package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.d.ts +0 -6
  110. package/dist/types/ui/WithFlash/index.d.ts +1 -1
  111. package/dist/types/ui/WithFlash/withFlash-compiled.d.ts +0 -6
  112. package/package.json +44 -44
  113. package/dist/cjs/composable-editor/BaseThemeWrapper.js +0 -47
  114. package/dist/cjs/composable-editor/editor-internal-emotion.js +0 -35
  115. package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +0 -36
  116. package/dist/cjs/ui/Appearance/Chromeless-compiled.js +0 -38
  117. package/dist/cjs/ui/Appearance/Chromeless-emotion.js +0 -89
  118. package/dist/cjs/ui/Appearance/Comment/Comment-compiled.js +0 -273
  119. package/dist/cjs/ui/Appearance/Comment/Comment-emotion.js +0 -339
  120. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-emotion.js +0 -89
  121. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-emotion.js +0 -126
  122. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-compiled.js +0 -29
  123. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-emotion.js +0 -34
  124. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +0 -57
  125. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +0 -89
  126. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +0 -13
  127. package/dist/cjs/ui/Appearance/FullPage/FullPage-emotion.js +0 -38
  128. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.js +0 -201
  129. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +0 -398
  130. package/dist/cjs/ui/Appearance/FullPage/MainToolbar-emotion.js +0 -63
  131. package/dist/cjs/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +0 -13
  132. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +0 -35
  133. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +0 -70
  134. package/dist/cjs/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +0 -13
  135. package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +0 -65
  136. package/dist/cjs/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +0 -37
  137. package/dist/cjs/ui/ContextPanel/index-emotion.js +0 -86
  138. package/dist/cjs/ui/PluginSlot/PluginSlot-emotion.js +0 -35
  139. package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +0 -36
  140. package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +0 -32
  141. package/dist/cjs/ui/WithFlash/withFlash-emotion.js +0 -91
  142. package/dist/es2019/composable-editor/BaseThemeWrapper.js +0 -35
  143. package/dist/es2019/composable-editor/editor-internal-emotion.js +0 -27
  144. package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +0 -26
  145. package/dist/es2019/ui/Appearance/Chromeless-compiled.js +0 -30
  146. package/dist/es2019/ui/Appearance/Chromeless-emotion.js +0 -80
  147. package/dist/es2019/ui/Appearance/Comment/Comment-compiled.js +0 -260
  148. package/dist/es2019/ui/Appearance/Comment/Comment-emotion.js +0 -326
  149. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-emotion.js +0 -86
  150. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-emotion.js +0 -123
  151. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-compiled.js +0 -19
  152. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-emotion.js +0 -25
  153. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +0 -47
  154. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +0 -79
  155. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +0 -5
  156. package/dist/es2019/ui/Appearance/FullPage/FullPage-emotion.js +0 -29
  157. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.js +0 -190
  158. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +0 -390
  159. package/dist/es2019/ui/Appearance/FullPage/MainToolbar-emotion.js +0 -53
  160. package/dist/es2019/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +0 -5
  161. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +0 -30
  162. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +0 -65
  163. package/dist/es2019/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +0 -5
  164. package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +0 -59
  165. package/dist/es2019/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +0 -27
  166. package/dist/es2019/ui/ContextPanel/index-emotion.js +0 -74
  167. package/dist/es2019/ui/PluginSlot/PluginSlot-emotion.js +0 -25
  168. package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +0 -28
  169. package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +0 -24
  170. package/dist/es2019/ui/WithFlash/withFlash-emotion.js +0 -75
  171. package/dist/esm/composable-editor/BaseThemeWrapper.js +0 -39
  172. package/dist/esm/composable-editor/editor-internal-emotion.js +0 -28
  173. package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +0 -30
  174. package/dist/esm/ui/Appearance/Chromeless-compiled.js +0 -31
  175. package/dist/esm/ui/Appearance/Chromeless-emotion.js +0 -83
  176. package/dist/esm/ui/Appearance/Comment/Comment-compiled.js +0 -266
  177. package/dist/esm/ui/Appearance/Comment/Comment-emotion.js +0 -328
  178. package/dist/esm/ui/Appearance/Comment/FixedToolbar-emotion.js +0 -81
  179. package/dist/esm/ui/Appearance/Comment/StickyToolbar-emotion.js +0 -119
  180. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-compiled.js +0 -21
  181. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-emotion.js +0 -27
  182. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +0 -49
  183. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +0 -81
  184. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +0 -7
  185. package/dist/esm/ui/Appearance/FullPage/FullPage-emotion.js +0 -31
  186. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.js +0 -194
  187. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +0 -388
  188. package/dist/esm/ui/Appearance/FullPage/MainToolbar-emotion.js +0 -55
  189. package/dist/esm/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +0 -7
  190. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +0 -29
  191. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +0 -62
  192. package/dist/esm/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +0 -7
  193. package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +0 -59
  194. package/dist/esm/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +0 -29
  195. package/dist/esm/ui/ContextPanel/index-emotion.js +0 -79
  196. package/dist/esm/ui/PluginSlot/PluginSlot-emotion.js +0 -29
  197. package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +0 -28
  198. package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +0 -25
  199. package/dist/esm/ui/WithFlash/withFlash-emotion.js +0 -88
  200. package/dist/types/composable-editor/BaseThemeWrapper.d.ts +0 -7
  201. package/dist/types/composable-editor/editor-internal-emotion.d.ts +0 -15
  202. package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.d.ts +0 -12
  203. package/dist/types/ui/Appearance/Chromeless-compiled.d.ts +0 -18
  204. package/dist/types/ui/Appearance/Chromeless-emotion.d.ts +0 -18
  205. package/dist/types/ui/Appearance/Comment/Comment-compiled.d.ts +0 -30
  206. package/dist/types/ui/Appearance/Comment/Comment-emotion.d.ts +0 -20
  207. package/dist/types/ui/Appearance/Comment/FixedToolbar-emotion.d.ts +0 -19
  208. package/dist/types/ui/Appearance/Comment/StickyToolbar-emotion.d.ts +0 -21
  209. package/dist/types/ui/Appearance/FullPage/BeforeWrapper-compiled.d.ts +0 -16
  210. package/dist/types/ui/Appearance/FullPage/BeforeWrapper-emotion.d.ts +0 -16
  211. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.d.ts +0 -3
  212. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.d.ts +0 -14
  213. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapperMigration.d.ts +0 -4
  214. package/dist/types/ui/Appearance/FullPage/FullPage-emotion.d.ts +0 -7
  215. package/dist/types/ui/Appearance/FullPage/FullPageContentArea-compiled.d.ts +0 -57
  216. package/dist/types/ui/Appearance/FullPage/FullPageContentArea-emotion.d.ts +0 -57
  217. package/dist/types/ui/Appearance/FullPage/MainToolbar-emotion.d.ts +0 -21
  218. package/dist/types/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.d.ts +0 -4
  219. package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper-compiled.d.ts +0 -19
  220. package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper-emotion.d.ts +0 -19
  221. package/dist/types/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.d.ts +0 -4
  222. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +0 -19
  223. package/dist/types/ui/ChromeCollapsed/ChromeCollapsed-emotion.d.ts +0 -13
  224. package/dist/types/ui/ContextPanel/index-emotion.d.ts +0 -13
  225. package/dist/types/ui/PluginSlot/PluginSlot-emotion.d.ts +0 -12
  226. package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-emotion.d.ts +0 -17
  227. package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.d.ts +0 -17
  228. package/dist/types/ui/WithFlash/withFlash-emotion.d.ts +0 -19
  229. /package/dist/cjs/ui/Appearance/{Chromeless-compiled.compiled.css → ChromelessEditorContainer.compiled.css} +0 -0
  230. /package/dist/cjs/ui/Appearance/Comment/{Comment-compiled.compiled.css → Comment.compiled.css} +0 -0
  231. /package/dist/cjs/ui/Appearance/FullPage/{BeforeWrapper-compiled.compiled.css → BeforeWrapper.compiled.css} +0 -0
  232. /package/dist/cjs/ui/Appearance/FullPage/{CustomToolbarWrapper-compiled.compiled.css → CustomToolbarWrapper.compiled.css} +0 -0
  233. /package/dist/cjs/ui/Appearance/FullPage/{FullPageContentArea-compiled.compiled.css → FullPageContentArea.compiled.css} +0 -0
  234. /package/dist/cjs/ui/Appearance/FullPage/{MainToolbarWrapper-compiled.compiled.css → MainToolbarWrapper.compiled.css} +0 -0
  235. /package/dist/es2019/ui/Appearance/{Chromeless-compiled.compiled.css → ChromelessEditorContainer.compiled.css} +0 -0
  236. /package/dist/es2019/ui/Appearance/Comment/{Comment-compiled.compiled.css → Comment.compiled.css} +0 -0
  237. /package/dist/es2019/ui/Appearance/FullPage/{BeforeWrapper-compiled.compiled.css → BeforeWrapper.compiled.css} +0 -0
  238. /package/dist/es2019/ui/Appearance/FullPage/{CustomToolbarWrapper-compiled.compiled.css → CustomToolbarWrapper.compiled.css} +0 -0
  239. /package/dist/es2019/ui/Appearance/FullPage/{FullPageContentArea-compiled.compiled.css → FullPageContentArea.compiled.css} +0 -0
  240. /package/dist/es2019/ui/Appearance/FullPage/{MainToolbarWrapper-compiled.compiled.css → MainToolbarWrapper.compiled.css} +0 -0
  241. /package/dist/esm/ui/Appearance/{Chromeless-compiled.compiled.css → ChromelessEditorContainer.compiled.css} +0 -0
  242. /package/dist/esm/ui/Appearance/Comment/{Comment-compiled.compiled.css → Comment.compiled.css} +0 -0
  243. /package/dist/esm/ui/Appearance/FullPage/{BeforeWrapper-compiled.compiled.css → BeforeWrapper.compiled.css} +0 -0
  244. /package/dist/esm/ui/Appearance/FullPage/{CustomToolbarWrapper-compiled.compiled.css → CustomToolbarWrapper.compiled.css} +0 -0
  245. /package/dist/esm/ui/Appearance/FullPage/{FullPageContentArea-compiled.compiled.css → FullPageContentArea.compiled.css} +0 -0
  246. /package/dist/esm/ui/Appearance/FullPage/{MainToolbarWrapper-compiled.compiled.css → MainToolbarWrapper.compiled.css} +0 -0
@@ -1,398 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.FullPageContentAreaEmotion = exports.EDITOR_CONTAINER = exports.CONTENT_AREA_TEST_ID = void 0;
9
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
- var _react = _interopRequireWildcard(require("react"));
11
- var _react2 = require("@emotion/react");
12
- var _classnames = _interopRequireDefault(require("classnames"));
13
- var _reactIntl = require("react-intl");
14
- var _decisionList = require("@atlaskit/adf-schema/decision-list");
15
- var _taskList = require("@atlaskit/adf-schema/task-list");
16
- var _hooks = require("@atlaskit/editor-common/hooks");
17
- var _messages = require("@atlaskit/editor-common/messages");
18
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
19
- var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
20
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
21
- var _ClickAreaBlock = _interopRequireDefault(require("../../Addon/ClickAreaBlock"));
22
- var _contentComponentWrapper = require("../../Addon/ClickAreaBlock/contentComponentWrapper");
23
- var _ContextPanel = require("../../ContextPanel");
24
- var _EditorContentContainer = _interopRequireDefault(require("../../EditorContentContainer/EditorContentContainer"));
25
- var _PluginSlot = _interopRequireDefault(require("../../PluginSlot"));
26
- var _StyledComponents = require("./StyledComponents");
27
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
28
- /**
29
- * @jsxRuntime classic
30
- * @jsx jsx
31
- */
32
-
33
- /* eslint-disable @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
34
-
35
- // Ignored via go/ees005
36
- // eslint-disable-next-line import/no-named-as-default
37
-
38
- var akEditorFullWidthLayoutWidth = 1800;
39
- var akEditorUltraWideLayoutWidth = 4000;
40
- var akEditorSwoopCubicBezier = "cubic-bezier(0.15, 1, 0.3, 1)";
41
- var tableMarginFullWidthMode = 2;
42
- var akLayoutGutterOffset = 12;
43
- var SWOOP_ANIMATION = "0.5s ".concat(akEditorSwoopCubicBezier);
44
- var AK_NESTED_DND_GUTTER_OFFSET = 8;
45
- var getTotalPadding = function getTotalPadding() {
46
- return (0, _editorSharedStyles.akEditorGutterPaddingDynamic)() * 2;
47
- };
48
-
49
- // Isolates the scroll container's layout and size from the rest of the page.
50
- // Because of contain: size wrapper must take its height from the parent
51
- // rather than from the contained content.
52
- var containStrictWrapperStyles = (0, _react2.css)({
53
- contain: 'layout size',
54
- height: '100%'
55
- });
56
- var editorContentAreaProsemirrorStyle = (0, _react2.css)({
57
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
58
- '& .ProseMirror': (0, _defineProperty2.default)((0, _defineProperty2.default)({
59
- flexGrow: 1,
60
- boxSizing: 'border-box',
61
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
62
- '& > *': {
63
- clear: 'both'
64
- }
65
- }, "> p, > ul, > ol:not(".concat(_taskList.taskListSelector, "):not(").concat(_decisionList.decisionListSelector, "), > h1, > h2, > h3, > h4, > h5, > h6"), {
66
- clear: 'none'
67
- }), '> p:last-child', {
68
- marginBottom: "var(--ds-space-300, 24px)"
69
- })
70
- });
71
-
72
- /*
73
- EDITOR-7249: Scope to the main editor's ProseMirror (direct child) so nested
74
- editors like the footer page-comment composer aren't hidden in Syntax view.
75
- */
76
- var hideEditorContentAreaProsemirrorWithAttributeStyle = (0, _react2.css)({
77
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
78
- '&[data-markdown-mode-hide-prosemirror="true"] > .ak-editor-content-area > .ProseMirror': {
79
- display: 'none'
80
- }
81
- });
82
- var hideEditorContentAreaScrollGutterWithAttributeStyle = (0, _react2.css)({
83
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
84
- '&[data-markdown-mode-hide-scroll-gutter="true"] > .ak-editor-content-area > [data-vc="scroll-gutter"]': {
85
- display: 'none'
86
- }
87
- });
88
- var hideEditorScrollGutterStyle = (0, _react2.css)({
89
- display: 'none'
90
- });
91
- var fullWidthNonChromelessBreakoutBlockTableStyle = (0, _react2.css)({
92
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-1
93
- '.fabric-editor--full-width-mode:not(:has(#chromeless-editor))': {
94
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
95
- '.fabric-editor-breakout-mark, .extension-container.block, .pm-table-container': {
96
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
97
- width: '100% !important'
98
- },
99
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
100
- '.fabric-editor-breakout-mark': {
101
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
102
- marginLeft: 'unset !important',
103
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
104
- transform: 'none !important'
105
- }
106
- }
107
- });
108
-
109
- // new styles
110
- var editorContentAreaNew = (0, _react2.css)({
111
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
112
- lineHeight: '24px',
113
- paddingTop: "var(--ds-space-600, 48px)",
114
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
115
- '.ak-editor-content-area-no-toolbar &': {
116
- // When the toolbar is hidden, we don't want content to jump up
117
- // the extra 1px is to account for the border on the toolbar
118
- paddingTop: "calc(".concat("var(--ds-space-600, 48px)", " + var(--ak-editor-fullpage-toolbar-height) + 1px)")
119
- },
120
- paddingBottom: "var(--ds-space-600, 48px)",
121
- height: 'calc( 100% - 105px )',
122
- width: '100%',
123
- margin: 'auto',
124
- flexDirection: 'column',
125
- flexGrow: 1,
126
- maxWidth: 'var(--ak-editor-content-area-max-width)',
127
- transition: "max-width ".concat(SWOOP_ANIMATION)
128
- });
129
- var tableFullPageEditorStylesNew = (0, _react2.css)({
130
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
131
- '.ProseMirror .pm-table-wrapper > table': {
132
- marginLeft: 0,
133
- /* 1px border width offset added here to prevent unwanted overflow and scolling - ED-16212 */
134
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
135
- marginRight: '-1px',
136
- width: '100%'
137
- }
138
- });
139
- var editorContentAreaContainerNestedDndStyle = (0, _react2.css)({
140
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
141
- '.fabric-editor--full-width-mode': {
142
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
143
- '[data-layout-section]': {
144
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
145
- maxWidth: "calc(100% + ".concat((akLayoutGutterOffset + AK_NESTED_DND_GUTTER_OFFSET) * 2, "px)")
146
- }
147
- }
148
- });
149
-
150
- /* Prevent horizontal scroll on page in full width mode */
151
- var editorContentAreaContainerStyleExcludeCodeBlockNew = (0, _react2.css)({
152
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
153
- '.fabric-editor--full-width-mode': {
154
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
155
- '.extension-container, .multiBodiedExtension--container': {
156
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
157
- maxWidth: "calc(100% - ".concat(tableMarginFullWidthMode * 2, "px)")
158
- },
159
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
160
- '.extension-container.inline': {
161
- maxWidth: '100%'
162
- },
163
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
164
- 'td .extension-container.inline': {
165
- maxWidth: 'inherit'
166
- },
167
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
168
- '[data-layout-section]': {
169
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
170
- maxWidth: "calc(100% + ".concat(akLayoutGutterOffset * 2, "px)")
171
- }
172
- }
173
- });
174
- var editorContentGutterStyleFG = (0, _react2.css)({
175
- padding: '0 72px'
176
- });
177
- var editorContentGutterStyles = (0, _react2.css)({
178
- boxSizing: 'border-box',
179
- padding: '0 52px'
180
- });
181
- var editorContentReducedGutterStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@container editor-area (max-width: ".concat(_editorSharedStyles.akEditorFullPageNarrowBreakout, "px)"), {
182
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
183
- padding: "0 ".concat(_editorSharedStyles.akEditorGutterPaddingReduced, "px")
184
- }));
185
- var contentAreaNew = (0, _react2.css)({
186
- display: 'flex',
187
- flexDirection: 'row',
188
- height: "calc(100% - var(--ak-editor-fullpage-toolbar-height))",
189
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
190
- '&.ak-editor-content-area-no-toolbar': {
191
- // The editor toolbar height is 1px off (from the border) -- so we need to add 1px to the height
192
- // to match the toolbar height
193
- height: "calc(100% + 1px)"
194
- },
195
- boxSizing: 'border-box',
196
- margin: 0,
197
- padding: 0,
198
- transition: "padding 0ms ".concat(akEditorSwoopCubicBezier)
199
- });
200
- var contentAreaHeightNoToolbar = (0, _react2.css)({
201
- height: '100%'
202
- });
203
-
204
- // When the markdown source view is shown (markdown mode toggled on and not in
205
- // the WYSIWYG "preview" view) we tint the whole editor container with the
206
- // sunken surface so the source editor reads as a distinct, inset surface.
207
- var markdownModeContainerBackgroundStyle = (0, _react2.css)({
208
- backgroundColor: "var(--ds-surface-sunken, #F8F8F8)",
209
- // In the markdown MVP layout the source view (CodeMirror) is bounded to the
210
- // viewport and owns its own scrolling, so the editor's scroll container must
211
- // not also own vertical scrolling — its always-on `overflow-y: scroll` track
212
- // would otherwise render a second, redundant scrollbar alongside CodeMirror's.
213
- // This style is only applied in markdown source mode, so WYSIWYG / preview
214
- // scrolling is unaffected.
215
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- scoped override of the descendant scroll container
216
- '& [data-editor-scroll-container="true"]': {
217
- overflowY: 'hidden'
218
- }
219
- });
220
- var markdownModeContentAreaStyle = (0, _react2.css)({
221
- boxSizing: 'border-box',
222
- height: '100%',
223
- margin: 0,
224
- maxWidth: 'none',
225
- minWidth: 0,
226
- paddingBottom: 0,
227
- // No top padding here: it would inset the whole source view (including
228
- // CodeMirror's `.cm-scroller`), leaving a gap above the editor's vertical
229
- // scrollbar. The top inset is applied inside the scroller instead (see the
230
- // `.cm-scroller` `paddingTop` in MarkdownSourceView) so the scrollbar still
231
- // spans the full height.
232
- paddingTop: 0,
233
- width: '100%',
234
- // The markdown source view is rendered through PluginSlot. Stretch those
235
- // intermediate wrappers so its in-flow footer can sit at the bottom without
236
- // overlaying the CodeMirror scrollbar.
237
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
238
- '> .ak-editor-content-area': {
239
- boxSizing: 'border-box',
240
- display: 'flex',
241
- flexDirection: 'column',
242
- height: '100%',
243
- minHeight: 0,
244
- minWidth: 0,
245
- padding: 0,
246
- width: '100%'
247
- },
248
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
249
- '> .ak-editor-content-area > [data-testid="plugins-components-wrapper"]': {
250
- display: 'flex',
251
- flex: '1 1 auto',
252
- minHeight: 0,
253
- minWidth: 0,
254
- width: '100%'
255
- }
256
- });
257
- var CONTENT_AREA_TEST_ID = exports.CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
258
- // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
259
- var EDITOR_CONTAINER = exports.EDITOR_CONTAINER = 'ak-editor-container';
260
- var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
261
- var _props$editorAPI, _props$editorAPI$bloc, _props$editorAPI2, _contentAreaRef$curre, _allowScrollGutter$gu, _allowScrollGutter$gu2;
262
- var fullWidthMode = props.appearance === 'full-width';
263
- var maxWidthMode = props.appearance === 'max';
264
- var scrollContainerRef = (0, _react.useRef)(null);
265
- var contentAreaRef = (0, _react.useRef)(null);
266
- var containerRef = (0, _react.useRef)(null);
267
- var allowScrollGutter = (_props$editorAPI = props.editorAPI) === null || _props$editorAPI === void 0 || (_props$editorAPI = _props$editorAPI.base) === null || _props$editorAPI === void 0 || (_props$editorAPI = _props$editorAPI.sharedState.currentState()) === null || _props$editorAPI === void 0 ? void 0 : _props$editorAPI.allowScrollGutter;
268
- var contentAreaMaxWidth = getTotalPadding() + (!fullWidthMode ? maxWidthMode ? akEditorUltraWideLayoutWidth : _editorSharedStyles.akEditorDefaultLayoutWidth : akEditorFullWidthLayoutWidth);
269
-
270
- // Get useStandardNodeWidth from block menu plugin shared state
271
- // Only access editorAPI when the experiment is enabled to avoid performance impact
272
- var useStandardNodeWidth = (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') && ((_props$editorAPI$bloc = (_props$editorAPI2 = props.editorAPI) === null || _props$editorAPI2 === void 0 || (_props$editorAPI2 = _props$editorAPI2.blockMenu) === null || _props$editorAPI2 === void 0 || (_props$editorAPI2 = _props$editorAPI2.sharedState) === null || _props$editorAPI2 === void 0 || (_props$editorAPI2 = _props$editorAPI2.currentState()) === null || _props$editorAPI2 === void 0 ? void 0 : _props$editorAPI2.useStandardNodeWidth) !== null && _props$editorAPI$bloc !== void 0 ? _props$editorAPI$bloc : false);
273
- (0, _react.useImperativeHandle)(ref, function () {
274
- return {
275
- get scrollContainer() {
276
- return scrollContainerRef.current;
277
- },
278
- get contentArea() {
279
- return contentAreaRef.current;
280
- },
281
- get containerArea() {
282
- return containerRef.current;
283
- }
284
- };
285
- }, []);
286
- var markdownPluginCurrentView = (0, _hooks.useSharedPluginStateWithSelector)(props.editorAPI, ['markdownMode'], function (states) {
287
- var _states$markdownModeS;
288
- return (_states$markdownModeS = states.markdownModeState) === null || _states$markdownModeS === void 0 ? void 0 : _states$markdownModeS.view;
289
- });
290
- var markdownPluginCurrentIsMarkdownMode = (0, _hooks.useSharedPluginStateWithSelector)(props.editorAPI, ['markdownMode'], function (states) {
291
- var _states$markdownModeS2;
292
- return (_states$markdownModeS2 = states.markdownModeState) === null || _states$markdownModeS2 === void 0 ? void 0 : _states$markdownModeS2.isMarkdownMode;
293
- });
294
- var isMarkdownModeExperimentEnabled = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('cc-markdown-mode', 'isEnabled', true);
295
- var shouldHideProseMirrorForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentView !== 'preview' && markdownPluginCurrentIsMarkdownMode;
296
- var shouldHideScrollGutterForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentIsMarkdownMode;
297
- var content = (0, _react2.jsx)(_EditorContentContainer.default
298
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
299
- , {
300
- className: "fabric-editor-popup-scroll-parent",
301
- featureFlags: props.featureFlags,
302
- ref: scrollContainerRef,
303
- viewMode: props === null || props === void 0 ? void 0 : props.viewMode,
304
- isScrollable: true,
305
- appearance: props.appearance,
306
- contentMode: props.contentMode,
307
- useStandardNodeWidth: useStandardNodeWidth
308
- }, (0, _react2.jsx)(_ClickAreaBlock.default, {
309
- editorView: props.editorView,
310
- editorDisabled: props.disabled
311
- }, (0, _react2.jsx)("div", {
312
- "data-markdown-mode-hide-prosemirror": shouldHideProseMirrorForMarkdownMode ? 'true' : undefined,
313
- "data-markdown-mode-hide-scroll-gutter": shouldHideScrollGutterForMarkdownMode ? 'true' : undefined,
314
- css: [editorContentAreaNew, editorContentAreaProsemirrorStyle,
315
- // EDITOR-6558: hide ProseMirror when the markdown-mode plugin
316
- // reports a non-WYSIWYG view.
317
- shouldHideProseMirrorForMarkdownMode && hideEditorContentAreaProsemirrorWithAttributeStyle, shouldHideScrollGutterForMarkdownMode && hideEditorContentAreaScrollGutterWithAttributeStyle, shouldHideProseMirrorForMarkdownMode && markdownModeContentAreaStyle, tableFullPageEditorStylesNew, fullWidthNonChromelessBreakoutBlockTableStyle,
318
- // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
319
- editorContentAreaContainerStyleExcludeCodeBlockNew, editorContentAreaContainerNestedDndStyle],
320
- style: {
321
- '--ak-editor-content-area-max-width': "".concat(contentAreaMaxWidth, "px")
322
- }
323
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
324
- ,
325
- className: "ak-editor-content-area-region",
326
- "data-editor-editable-content": true,
327
- role: "region",
328
- "aria-label": props.intl.formatMessage(_messages.fullPageMessages.editableContentLabel),
329
- ref: contentAreaRef,
330
- "data-vc": "editor-content-area-region"
331
- }, (0, _react2.jsx)("div", {
332
- css: [editorContentGutterStyles, editorContentGutterStyleFG, (0, _editorExperiment.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
333
- exposure: true
334
- }) && editorContentReducedGutterStyles]
335
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
336
- ,
337
- className: (0, _classnames.default)('ak-editor-content-area', 'appearance-full-page', {
338
- 'fabric-editor--full-width-mode': fullWidthMode,
339
- 'fabric-editor--max-width-mode': Boolean(maxWidthMode)
340
- }),
341
- ref: contentAreaRef
342
- }, !!props.customContentComponents && 'before' in props.customContentComponents ? (0, _contentComponentWrapper.contentComponentClickWrapper)(props.customContentComponents.before) : (0, _contentComponentWrapper.contentComponentClickWrapper)(props.customContentComponents), (0, _react2.jsx)(_PluginSlot.default, {
343
- editorView: props.editorView,
344
- editorActions: props.editorActions,
345
- eventDispatcher: props.eventDispatcher,
346
- providerFactory: props.providerFactory,
347
- appearance: props.appearance,
348
- items: props.contentComponents,
349
- pluginHooks: props.pluginHooks,
350
- contentArea: (_contentAreaRef$curre = contentAreaRef.current) !== null && _contentAreaRef$curre !== void 0 ? _contentAreaRef$curre : undefined,
351
- popupsMountPoint: props.popupsMountPoint,
352
- popupsBoundariesElement: props.popupsBoundariesElement,
353
- popupsScrollableElement: props.popupsScrollableElement,
354
- disabled: !!props.disabled,
355
- containerElement: scrollContainerRef.current,
356
- dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
357
- wrapperElement: props.wrapperElement
358
- }), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? (0, _contentComponentWrapper.contentComponentClickWrapper)(props.customContentComponents.after) : null, allowScrollGutter && ((0, _editorExperiment.editorExperiment)('platform_editor_blocks', true) ? (0, _react2.jsx)("div", {
359
- id: "editor-scroll-gutter",
360
- css: shouldHideScrollGutterForMarkdownMode && hideEditorScrollGutterStyle,
361
- style: {
362
- paddingBottom: "".concat((_allowScrollGutter$gu = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu !== void 0 ? _allowScrollGutter$gu : '120', "px")
363
- },
364
- "data-vc": "scroll-gutter",
365
- "data-editor-scroll-gutter": "true"
366
- }) : (0, _react2.jsx)("div", {
367
- id: "editor-scroll-gutter",
368
- css: shouldHideScrollGutterForMarkdownMode && hideEditorScrollGutterStyle,
369
- style: {
370
- paddingBottom: "".concat((_allowScrollGutter$gu2 = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu2 !== void 0 ? _allowScrollGutter$gu2 : '120', "px")
371
- },
372
- "data-vc": "scroll-gutter"
373
- }))))));
374
- return (0, _react2.jsx)("div", {
375
- css: [contentAreaNew, props.isEditorToolbarHidden && contentAreaHeightNoToolbar],
376
- "data-testid": CONTENT_AREA_TEST_ID,
377
- ref: containerRef
378
- }, (0, _react2.jsx)("div", {
379
- css: [
380
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
381
- _StyledComponents.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && markdownModeContainerBackgroundStyle],
382
- "data-testid": EDITOR_CONTAINER,
383
- "data-editor-container": 'true'
384
- }, props.UNSAFE_containLayout ? (0, _react2.jsx)("div", {
385
- "data-testid": "editor-contain-size-and-layout-wrapper",
386
- css: containStrictWrapperStyles
387
- }, content) : content), (0, _react2.jsx)("div", {
388
- css: _StyledComponents.sidebarArea
389
- }, props.contextPanel || (0, _react2.jsx)(_ContextPanel.ContextPanel, {
390
- editorAPI: props.editorAPI,
391
- visible: false
392
- })));
393
- });
394
-
395
- // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
396
- var FullPageContentAreaEmotion = exports.FullPageContentAreaEmotion = (0, _reactIntl.injectIntl)(Content, {
397
- forwardRef: true
398
- });
@@ -1,63 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.NonCustomToolbarWrapperEmotion = exports.MainToolbarIconBeforeEmotion = exports.CustomToolbarWrapperEmotion = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _react = _interopRequireDefault(require("react"));
10
- var _react2 = require("@emotion/react");
11
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
12
- /**
13
- * @jsxRuntime classic
14
- * @jsx jsx
15
- */
16
- /**
17
- * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
18
- * Used via `componentWithCondition` in `MainToolbar.tsx`.
19
- *
20
- * Cleanup: delete this file once the experiment has shipped.
21
- */
22
-
23
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
24
-
25
- var nonCustomToolbarWrapperEmotionStyles = (0, _react2.css)({
26
- alignItems: 'center',
27
- display: 'flex',
28
- flexGrow: 1
29
- });
30
- var NonCustomToolbarWrapperEmotion = exports.NonCustomToolbarWrapperEmotion = function NonCustomToolbarWrapperEmotion(_ref) {
31
- var children = _ref.children;
32
- return (0, _react2.jsx)("div", {
33
- css: nonCustomToolbarWrapperEmotionStyles
34
- }, children);
35
- };
36
- var customToolbarWrapperEmotionStyles = (0, _react2.css)({
37
- alignItems: 'center',
38
- display: 'flex'
39
- });
40
-
41
- // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
42
- var CustomToolbarWrapperEmotion = exports.CustomToolbarWrapperEmotion = function CustomToolbarWrapperEmotion(_ref2) {
43
- var children = _ref2.children;
44
- return (0, _react2.jsx)("div", {
45
- css: customToolbarWrapperEmotionStyles
46
- }, children);
47
- };
48
- var mainToolbarIconBeforeEmotionStyles = (0, _react2.css)((0, _defineProperty2.default)({
49
- margin: "var(--ds-space-200, 16px)",
50
- height: "var(--ds-space-400, 32px)",
51
- width: "var(--ds-space-400, 32px)"
52
- }, "@media (max-width: ".concat(_editorSharedStyles.akEditorMobileMaxWidth, "px)"), {
53
- gridColumn: 1,
54
- gridRow: 1
55
- }));
56
-
57
- // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
58
- var MainToolbarIconBeforeEmotion = exports.MainToolbarIconBeforeEmotion = function MainToolbarIconBeforeEmotion(_ref3) {
59
- var children = _ref3.children;
60
- return (0, _react2.jsx)("div", {
61
- css: mainToolbarIconBeforeEmotionStyles
62
- }, children);
63
- };
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.MainToolbarIconBeforeMigration = void 0;
7
- var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
8
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
- var _MainToolbarCompiled = require("./MainToolbar-compiled");
10
- var _MainToolbarEmotion = require("./MainToolbar-emotion");
11
- var MainToolbarIconBeforeMigration = exports.MainToolbarIconBeforeMigration = (0, _componentWithCondition.componentWithCondition)(function () {
12
- return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
13
- }, _MainToolbarCompiled.MainToolbarIconBeforeCompiled, _MainToolbarEmotion.MainToolbarIconBeforeEmotion);
@@ -1,35 +0,0 @@
1
- /* MainToolbarWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
2
- /**
3
- * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
4
- * Used via `componentWithCondition` in `MainToolbarWrapper.tsx`.
5
- *
6
- * Cleanup: delete this file once the experiment has shipped.
7
- */
8
- "use strict";
9
-
10
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
11
- Object.defineProperty(exports, "__esModule", {
12
- value: true
13
- });
14
- exports.MainToolbarWrapperCompiled = void 0;
15
- require("./MainToolbarWrapper-compiled.compiled.css");
16
- var _runtime = require("@compiled/react/runtime");
17
- var _react = _interopRequireDefault(require("react"));
18
- // eslint-disable-next-line @typescript-eslint/consistent-type-imports
19
-
20
- var styles = {
21
- base: "_v56419ab _n7zlia51 _kqswh2mm _4cvr1h6o _16qsglyw _1pby16oo _1e0c1txw _4t3i17qo _1o9zidpf _bfhkvuon _1krdgrf3",
22
- flexibleIconSize: "_3pwj1osq",
23
- keyline: "_16qs1nax",
24
- twoLine: "_1s5v1g80 _8o38zpre"
25
- };
26
- var MainToolbarWrapperCompiled = exports.MainToolbarWrapperCompiled = function MainToolbarWrapperCompiled(_ref) {
27
- var showKeyline = _ref.showKeyline,
28
- twoLineEditorToolbar = _ref.twoLineEditorToolbar,
29
- children = _ref.children,
30
- testId = _ref['data-testid'];
31
- return /*#__PURE__*/_react.default.createElement("div", {
32
- "data-testid": testId,
33
- className: (0, _runtime.ax)([styles.base, styles.flexibleIconSize, showKeyline && styles.keyline, twoLineEditorToolbar && styles.twoLine])
34
- }, children);
35
- };
@@ -1,70 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.MainToolbarWrapperEmotion = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _react = _interopRequireDefault(require("react"));
10
- var _react2 = require("@emotion/react");
11
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
12
- var _MainToolbar = require("./MainToolbar");
13
- /**
14
- * @jsxRuntime classic
15
- * @jsx jsx
16
- */
17
- /**
18
- * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
19
- * Used via `componentWithCondition` in `MainToolbarWrapper.tsx`.
20
- *
21
- * Cleanup: delete this file once the experiment has shipped.
22
- */
23
-
24
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
25
-
26
- var baseToolbarStyles = (0, _react2.css)({
27
- position: 'relative',
28
- alignItems: 'center',
29
- boxShadow: 'none',
30
- borderBottom: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
32
- transition: "box-shadow 200ms ".concat(_editorSharedStyles.akEditorSwoopCubicBezier),
33
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
34
- zIndex: _editorSharedStyles.akEditorFloatingDialogZIndex,
35
- display: 'flex',
36
- height: 'var(--ak-editor-fullpage-toolbar-height)',
37
- flexShrink: 0,
38
- backgroundColor: "var(--ds-surface, #FFFFFF)",
39
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
40
- '& object': {
41
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
42
- height: '0 !important'
43
- }
44
- });
45
- var flexibleIconSize = (0, _react2.css)({
46
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
47
- '& span svg': {
48
- maxWidth: '100%'
49
- }
50
- });
51
- var mainToolbarWithKeyline = (0, _react2.css)({
52
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
53
- boxShadow: "var(--ds-shadow-overflow, 0px 0px 8px #1E1F2128, 0px 0px 1px #1E1F211e)"
54
- });
55
- var mainToolbarTwoLineStyle = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(_MainToolbar.MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
56
- flexWrap: 'wrap',
57
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
58
- height: "calc(var(--ak-editor-fullpage-toolbar-height) * 2)"
59
- }));
60
- var MainToolbarWrapperEmotion = exports.MainToolbarWrapperEmotion = function MainToolbarWrapperEmotion(_ref) {
61
- var showKeyline = _ref.showKeyline,
62
- twoLineEditorToolbar = _ref.twoLineEditorToolbar,
63
- children = _ref.children,
64
- testId = _ref['data-testid'];
65
- return (0, _react2.jsx)("div", {
66
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
67
- css: [baseToolbarStyles, flexibleIconSize, showKeyline && mainToolbarWithKeyline, twoLineEditorToolbar && mainToolbarTwoLineStyle],
68
- "data-testid": testId
69
- }, children);
70
- };
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.NonCustomToolbarWrapperMigration = void 0;
7
- var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
8
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
- var _MainToolbarCompiled = require("./MainToolbar-compiled");
10
- var _MainToolbarEmotion = require("./MainToolbar-emotion");
11
- var NonCustomToolbarWrapperMigration = exports.NonCustomToolbarWrapperMigration = (0, _componentWithCondition.componentWithCondition)(function () {
12
- return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
13
- }, _MainToolbarCompiled.NonCustomToolbarWrapperCompiled, _MainToolbarEmotion.NonCustomToolbarWrapperEmotion);