@atlaskit/editor-core 235.0.0 → 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 (243) hide show
  1. package/CHANGELOG.md +9 -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/version-wrapper.js +1 -1
  32. package/dist/es2019/composable-editor/editor-internal-compiled.js +0 -6
  33. package/dist/es2019/composable-editor/editor-internal.js +3 -10
  34. package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +0 -5
  35. package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +1 -5
  36. package/dist/es2019/ui/Appearance/ChromelessEditorContainer.js +24 -12
  37. package/dist/es2019/ui/Appearance/Comment/Comment.js +254 -5
  38. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.js +0 -6
  39. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.js +0 -6
  40. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -8
  41. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +11 -5
  42. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper.js +37 -6
  43. package/dist/es2019/ui/Appearance/FullPage/FullPage-compiled.js +0 -6
  44. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -4
  45. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +186 -11
  46. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +3 -5
  47. package/dist/es2019/ui/Appearance/FullPage/MainToolbar-compiled.js +0 -6
  48. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper.js +24 -5
  49. package/dist/es2019/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +0 -6
  50. package/dist/es2019/ui/ChromeCollapsed/index.js +1 -5
  51. package/dist/es2019/ui/ContextPanel/index-compiled.js +0 -6
  52. package/dist/es2019/ui/ContextPanel/index.js +2 -7
  53. package/dist/es2019/ui/PluginSlot/PluginSlot-compiled.js +0 -7
  54. package/dist/es2019/ui/PluginSlot/index.js +1 -4
  55. package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +0 -6
  56. package/dist/es2019/ui/Toolbar/ToolbarInner.js +1 -5
  57. package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +0 -6
  58. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +2 -9
  59. package/dist/es2019/ui/WithFlash/index.js +1 -4
  60. package/dist/es2019/ui/WithFlash/withFlash-compiled.js +0 -6
  61. package/dist/es2019/version-wrapper.js +1 -1
  62. package/dist/esm/composable-editor/editor-internal-compiled.js +0 -6
  63. package/dist/esm/composable-editor/editor-internal.js +3 -12
  64. package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +0 -5
  65. package/dist/esm/ui/Addon/ClickAreaBlock/index.js +1 -7
  66. package/dist/esm/ui/Appearance/ChromelessEditorContainer.js +25 -14
  67. package/dist/esm/ui/Appearance/Comment/Comment.js +260 -7
  68. package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.js +0 -6
  69. package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.js +0 -7
  70. package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -12
  71. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +13 -7
  72. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper.js +39 -10
  73. package/dist/esm/ui/Appearance/FullPage/FullPage-compiled.js +0 -6
  74. package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -6
  75. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +190 -13
  76. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +3 -5
  77. package/dist/esm/ui/Appearance/FullPage/MainToolbar-compiled.js +0 -6
  78. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper.js +23 -7
  79. package/dist/esm/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +0 -6
  80. package/dist/esm/ui/ChromeCollapsed/index.js +1 -7
  81. package/dist/esm/ui/ContextPanel/index-compiled.js +0 -6
  82. package/dist/esm/ui/ContextPanel/index.js +2 -11
  83. package/dist/esm/ui/PluginSlot/PluginSlot-compiled.js +0 -7
  84. package/dist/esm/ui/PluginSlot/index.js +1 -6
  85. package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +0 -6
  86. package/dist/esm/ui/Toolbar/ToolbarInner.js +1 -7
  87. package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +0 -6
  88. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +2 -11
  89. package/dist/esm/ui/WithFlash/index.js +1 -6
  90. package/dist/esm/ui/WithFlash/withFlash-compiled.js +0 -6
  91. package/dist/esm/version-wrapper.js +1 -1
  92. package/dist/types/composable-editor/editor-internal-compiled.d.ts +0 -6
  93. package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +0 -4
  94. package/dist/types/ui/Appearance/ChromelessEditorContainer.d.ts +10 -7
  95. package/dist/types/ui/Appearance/Comment/Comment.d.ts +24 -2
  96. package/dist/types/ui/Appearance/Comment/FixedToolbar-compiled.d.ts +0 -6
  97. package/dist/types/ui/Appearance/Comment/StickyToolbar-compiled.d.ts +0 -6
  98. package/dist/types/ui/Appearance/FullPage/BeforeWrapper.d.ts +7 -3
  99. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +2 -3
  100. package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +54 -6
  101. package/dist/types/ui/Appearance/FullPage/MainToolbar-compiled.d.ts +0 -6
  102. package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +13 -3
  103. package/dist/types/ui/ChromeCollapsed/ChromeCollapsed-compiled.d.ts +0 -6
  104. package/dist/types/ui/PluginSlot/PluginSlot-compiled.d.ts +0 -6
  105. package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-compiled.d.ts +0 -6
  106. package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.d.ts +0 -6
  107. package/dist/types/ui/WithFlash/index.d.ts +1 -1
  108. package/dist/types/ui/WithFlash/withFlash-compiled.d.ts +0 -6
  109. package/package.json +3 -3
  110. package/dist/cjs/composable-editor/BaseThemeWrapper.js +0 -47
  111. package/dist/cjs/composable-editor/editor-internal-emotion.js +0 -35
  112. package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +0 -36
  113. package/dist/cjs/ui/Appearance/Chromeless-compiled.js +0 -38
  114. package/dist/cjs/ui/Appearance/Chromeless-emotion.js +0 -89
  115. package/dist/cjs/ui/Appearance/Comment/Comment-compiled.js +0 -273
  116. package/dist/cjs/ui/Appearance/Comment/Comment-emotion.js +0 -339
  117. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-emotion.js +0 -89
  118. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-emotion.js +0 -126
  119. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-compiled.js +0 -29
  120. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-emotion.js +0 -34
  121. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +0 -57
  122. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +0 -89
  123. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +0 -13
  124. package/dist/cjs/ui/Appearance/FullPage/FullPage-emotion.js +0 -38
  125. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.js +0 -201
  126. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +0 -398
  127. package/dist/cjs/ui/Appearance/FullPage/MainToolbar-emotion.js +0 -63
  128. package/dist/cjs/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +0 -13
  129. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +0 -35
  130. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +0 -70
  131. package/dist/cjs/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +0 -13
  132. package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +0 -65
  133. package/dist/cjs/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +0 -37
  134. package/dist/cjs/ui/ContextPanel/index-emotion.js +0 -86
  135. package/dist/cjs/ui/PluginSlot/PluginSlot-emotion.js +0 -35
  136. package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +0 -36
  137. package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +0 -32
  138. package/dist/cjs/ui/WithFlash/withFlash-emotion.js +0 -91
  139. package/dist/es2019/composable-editor/BaseThemeWrapper.js +0 -35
  140. package/dist/es2019/composable-editor/editor-internal-emotion.js +0 -27
  141. package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +0 -26
  142. package/dist/es2019/ui/Appearance/Chromeless-compiled.js +0 -30
  143. package/dist/es2019/ui/Appearance/Chromeless-emotion.js +0 -80
  144. package/dist/es2019/ui/Appearance/Comment/Comment-compiled.js +0 -260
  145. package/dist/es2019/ui/Appearance/Comment/Comment-emotion.js +0 -326
  146. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-emotion.js +0 -86
  147. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-emotion.js +0 -123
  148. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-compiled.js +0 -19
  149. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-emotion.js +0 -25
  150. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +0 -47
  151. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +0 -79
  152. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +0 -5
  153. package/dist/es2019/ui/Appearance/FullPage/FullPage-emotion.js +0 -29
  154. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.js +0 -190
  155. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +0 -390
  156. package/dist/es2019/ui/Appearance/FullPage/MainToolbar-emotion.js +0 -53
  157. package/dist/es2019/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +0 -5
  158. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +0 -30
  159. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +0 -65
  160. package/dist/es2019/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +0 -5
  161. package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +0 -59
  162. package/dist/es2019/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +0 -27
  163. package/dist/es2019/ui/ContextPanel/index-emotion.js +0 -74
  164. package/dist/es2019/ui/PluginSlot/PluginSlot-emotion.js +0 -25
  165. package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +0 -28
  166. package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +0 -24
  167. package/dist/es2019/ui/WithFlash/withFlash-emotion.js +0 -75
  168. package/dist/esm/composable-editor/BaseThemeWrapper.js +0 -39
  169. package/dist/esm/composable-editor/editor-internal-emotion.js +0 -28
  170. package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +0 -30
  171. package/dist/esm/ui/Appearance/Chromeless-compiled.js +0 -31
  172. package/dist/esm/ui/Appearance/Chromeless-emotion.js +0 -83
  173. package/dist/esm/ui/Appearance/Comment/Comment-compiled.js +0 -266
  174. package/dist/esm/ui/Appearance/Comment/Comment-emotion.js +0 -328
  175. package/dist/esm/ui/Appearance/Comment/FixedToolbar-emotion.js +0 -81
  176. package/dist/esm/ui/Appearance/Comment/StickyToolbar-emotion.js +0 -119
  177. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-compiled.js +0 -21
  178. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-emotion.js +0 -27
  179. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +0 -49
  180. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +0 -81
  181. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +0 -7
  182. package/dist/esm/ui/Appearance/FullPage/FullPage-emotion.js +0 -31
  183. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.js +0 -194
  184. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +0 -388
  185. package/dist/esm/ui/Appearance/FullPage/MainToolbar-emotion.js +0 -55
  186. package/dist/esm/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +0 -7
  187. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +0 -29
  188. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +0 -62
  189. package/dist/esm/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +0 -7
  190. package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +0 -59
  191. package/dist/esm/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +0 -29
  192. package/dist/esm/ui/ContextPanel/index-emotion.js +0 -79
  193. package/dist/esm/ui/PluginSlot/PluginSlot-emotion.js +0 -29
  194. package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +0 -28
  195. package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +0 -25
  196. package/dist/esm/ui/WithFlash/withFlash-emotion.js +0 -88
  197. package/dist/types/composable-editor/BaseThemeWrapper.d.ts +0 -7
  198. package/dist/types/composable-editor/editor-internal-emotion.d.ts +0 -15
  199. package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.d.ts +0 -12
  200. package/dist/types/ui/Appearance/Chromeless-compiled.d.ts +0 -18
  201. package/dist/types/ui/Appearance/Chromeless-emotion.d.ts +0 -18
  202. package/dist/types/ui/Appearance/Comment/Comment-compiled.d.ts +0 -30
  203. package/dist/types/ui/Appearance/Comment/Comment-emotion.d.ts +0 -20
  204. package/dist/types/ui/Appearance/Comment/FixedToolbar-emotion.d.ts +0 -19
  205. package/dist/types/ui/Appearance/Comment/StickyToolbar-emotion.d.ts +0 -21
  206. package/dist/types/ui/Appearance/FullPage/BeforeWrapper-compiled.d.ts +0 -16
  207. package/dist/types/ui/Appearance/FullPage/BeforeWrapper-emotion.d.ts +0 -16
  208. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.d.ts +0 -3
  209. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.d.ts +0 -14
  210. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapperMigration.d.ts +0 -4
  211. package/dist/types/ui/Appearance/FullPage/FullPage-emotion.d.ts +0 -7
  212. package/dist/types/ui/Appearance/FullPage/FullPageContentArea-compiled.d.ts +0 -57
  213. package/dist/types/ui/Appearance/FullPage/FullPageContentArea-emotion.d.ts +0 -57
  214. package/dist/types/ui/Appearance/FullPage/MainToolbar-emotion.d.ts +0 -21
  215. package/dist/types/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.d.ts +0 -4
  216. package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper-compiled.d.ts +0 -19
  217. package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper-emotion.d.ts +0 -19
  218. package/dist/types/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.d.ts +0 -4
  219. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +0 -19
  220. package/dist/types/ui/ChromeCollapsed/ChromeCollapsed-emotion.d.ts +0 -13
  221. package/dist/types/ui/ContextPanel/index-emotion.d.ts +0 -13
  222. package/dist/types/ui/PluginSlot/PluginSlot-emotion.d.ts +0 -12
  223. package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-emotion.d.ts +0 -17
  224. package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.d.ts +0 -17
  225. package/dist/types/ui/WithFlash/withFlash-emotion.d.ts +0 -19
  226. /package/dist/cjs/ui/Appearance/{Chromeless-compiled.compiled.css → ChromelessEditorContainer.compiled.css} +0 -0
  227. /package/dist/cjs/ui/Appearance/Comment/{Comment-compiled.compiled.css → Comment.compiled.css} +0 -0
  228. /package/dist/cjs/ui/Appearance/FullPage/{BeforeWrapper-compiled.compiled.css → BeforeWrapper.compiled.css} +0 -0
  229. /package/dist/cjs/ui/Appearance/FullPage/{CustomToolbarWrapper-compiled.compiled.css → CustomToolbarWrapper.compiled.css} +0 -0
  230. /package/dist/cjs/ui/Appearance/FullPage/{FullPageContentArea-compiled.compiled.css → FullPageContentArea.compiled.css} +0 -0
  231. /package/dist/cjs/ui/Appearance/FullPage/{MainToolbarWrapper-compiled.compiled.css → MainToolbarWrapper.compiled.css} +0 -0
  232. /package/dist/es2019/ui/Appearance/{Chromeless-compiled.compiled.css → ChromelessEditorContainer.compiled.css} +0 -0
  233. /package/dist/es2019/ui/Appearance/Comment/{Comment-compiled.compiled.css → Comment.compiled.css} +0 -0
  234. /package/dist/es2019/ui/Appearance/FullPage/{BeforeWrapper-compiled.compiled.css → BeforeWrapper.compiled.css} +0 -0
  235. /package/dist/es2019/ui/Appearance/FullPage/{CustomToolbarWrapper-compiled.compiled.css → CustomToolbarWrapper.compiled.css} +0 -0
  236. /package/dist/es2019/ui/Appearance/FullPage/{FullPageContentArea-compiled.compiled.css → FullPageContentArea.compiled.css} +0 -0
  237. /package/dist/es2019/ui/Appearance/FullPage/{MainToolbarWrapper-compiled.compiled.css → MainToolbarWrapper.compiled.css} +0 -0
  238. /package/dist/esm/ui/Appearance/{Chromeless-compiled.compiled.css → ChromelessEditorContainer.compiled.css} +0 -0
  239. /package/dist/esm/ui/Appearance/Comment/{Comment-compiled.compiled.css → Comment.compiled.css} +0 -0
  240. /package/dist/esm/ui/Appearance/FullPage/{BeforeWrapper-compiled.compiled.css → BeforeWrapper.compiled.css} +0 -0
  241. /package/dist/esm/ui/Appearance/FullPage/{CustomToolbarWrapper-compiled.compiled.css → CustomToolbarWrapper.compiled.css} +0 -0
  242. /package/dist/esm/ui/Appearance/FullPage/{FullPageContentArea-compiled.compiled.css → FullPageContentArea.compiled.css} +0 -0
  243. /package/dist/esm/ui/Appearance/FullPage/{MainToolbarWrapper-compiled.compiled.css → MainToolbarWrapper.compiled.css} +0 -0
@@ -1,15 +1,192 @@
1
- import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
2
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
- import { FullPageContentAreaCompiled } from './FullPageContentArea-compiled';
4
- import { FullPageContentAreaEmotion } from './FullPageContentArea-emotion';
1
+ /* FullPageContentArea.tsx generated by @compiled/babel-plugin v3.0.2 */
2
+ import "./FullPageContentArea.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React, { useImperativeHandle, useRef } from 'react';
5
+ import classnames from 'classnames';
6
+ import { injectIntl } from 'react-intl';
7
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
8
+ import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
9
+ import { akEditorGutterPaddingDynamic, akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
10
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
11
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
12
+
13
+ // Ignored via go/ees005
14
+ // eslint-disable-next-line import/no-named-as-default
15
+
16
+ import { ClickAreaBlock } from '../../Addon/ClickAreaBlock';
17
+ import { contentComponentClickWrapper } from '../../Addon/ClickAreaBlock/contentComponentWrapper';
18
+ import { ContextPanel } from '../../ContextPanel';
19
+ import EditorContentContainer from '../../EditorContentContainer/EditorContentContainer';
20
+ import PluginSlot from '../../PluginSlot';
21
+ var akLayoutGutterOffsetStatic = 12;
22
+ var akEditorGutterPaddingReducedStatic = 24;
23
+ var akEditorFullWidthLayoutWidth = 1800;
24
+ var akEditorUltraWideLayoutWidth = 4000;
25
+ var akEditorSwoopCubicBezier = "cubic-bezier(0.15, 1, 0.3, 1)";
26
+ var tableMarginFullWidthMode = 2;
27
+ var akLayoutGutterOffset = 12;
28
+ var SWOOP_ANIMATION = "0.5s ".concat(akEditorSwoopCubicBezier);
29
+ var AK_NESTED_DND_GUTTER_OFFSET = 8;
30
+ var getTotalPadding = function getTotalPadding() {
31
+ return akEditorGutterPaddingDynamic() * 2;
32
+ };
33
+
34
+ // Isolates the scroll container's layout and size from the rest of the page.
35
+ // Because of contain: size wrapper must take its height from the parent
36
+ // rather than from the contained content.
37
+ var containLayoutStyles = {
38
+ wrapper: "_njlp3xnj _4t3i1osq"
39
+ };
40
+ var compiledStyles = {
41
+ contentAreaWrapper: "_1bsb1osq _7cca15wb _1f38dez1 _njlp131u",
42
+ sidebarArea: "_4t3i1osq _vchhusvi _1wpzesu3 _1hgw1wug _1t1q1if8 _uj9widpf _13hh1y6m",
43
+ editorContentAreaProsemirrorStyle: "_j9k7kb7n _18q6usvi _l4a11hrf _1nw4glyw _yq1qglyw _1qzyglyw _ongaglyw _1rnyglyw _vtulglyw _13svglyw _t2fzglyw _7uc0glyw _1gl01ejb",
44
+ hideEditorContentAreaProsemirrorWithAttributeStyle: "_12glglyw",
45
+ hideEditorContentAreaScrollGutterWithAttributeStyle: "_amwgglyw",
46
+ hideEditorScrollGutterStyle: "_1e0cglyw",
47
+ fullWidthNonChromelessBreakoutBlockTableStyle: "_xpemaq80 _pnffaq80 _zr7faq80 _qkfz261p _i92uagmp",
48
+ editorContentAreaNew: "_19pk1wug _2hwx1wug _otyr1wug _18u01wug _v5641fxv _vwz41tcg _ca0qoahv _n3tdoahv _4t3i1ap5 _1bsb1osq _2lx21bp4 _16jlkb7n _p12f5kin _1uizkqmb",
49
+ tableFullPageEditorStylesNew: "_1tb2idpf _8vye1n1a _1k8i1osq",
50
+ editorContentAreaContainerNestedDndStyle: "_tynl4diq",
51
+ editorContentAreaContainerStyleExcludeCodeBlockNew: "_1wxymslj _9dtbmslj _17q71osq _1b7c1kw7 _tynlfknx",
52
+ editorContentGutterStyleFG: "_ca0qidpf _u5f3t9kd _n3tdidpf _19bvt9kd",
53
+ editorContentGutterStyles: "_ca0qidpf _u5f31ex1 _n3tdidpf _19bv1ex1 _vchhusvi",
54
+ editorContentReducedGutterStyles: "_1d7gidpf _n2nw1tcg _d329idpf _105p1tcg",
55
+ contentAreaNew: "_19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _v5642kub _1e0c1txw _2lx2vrvc _4t3ibhu0 _vchhusvi _8j6w1lxk",
56
+ contentAreaHeightNoToolbar: "_4t3i1osq",
57
+ markdownModeContainerBackgroundStyle: "_bfhkhfxm _101j15vq",
58
+ markdownModeContentAreaStyle: "_19pkidpf _2hwxidpf _otyridpf _18u0idpf _vchhusvi _4t3i1osq _p12fglyw _1ul9idpf _n3tdidpf _ca0qidpf _1bsb1osq _fh67idpf _71ybidpf _evz0idpf _1n5qidpf _1wrrusvi _13jk1txw _q0l01bp4 _1a1d1osq _1vbxidpf _1xouidpf _4tbp1osq _1e8kkb7n _boivkb7n _13t61wug _11bl1txw _1593idpf _qgzyidpf _li931osq"
59
+ };
5
60
  export var CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
61
+ var EDITOR_CONTAINER = 'ak-editor-container';
62
+ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
63
+ var _props$editorAPI, _props$editorAPI$bloc, _props$editorAPI2, _contentAreaRef$curre, _allowScrollGutter$gu, _allowScrollGutter$gu2;
64
+ var fullWidthMode = props.appearance === 'full-width';
65
+ var maxWidthMode = props.appearance === 'max';
66
+ var scrollContainerRef = useRef(null);
67
+ var contentAreaRef = useRef(null);
68
+ var containerRef = useRef(null);
69
+ 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;
70
+ var contentAreaMaxWidth = getTotalPadding() + (!fullWidthMode ? maxWidthMode ? akEditorUltraWideLayoutWidth : akEditorDefaultLayoutWidth : akEditorFullWidthLayoutWidth);
71
+
72
+ // Get useStandardNodeWidth from block menu plugin shared state
73
+ // Only access editorAPI when the experiment is enabled to avoid performance impact
74
+ var useStandardNodeWidth = 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);
75
+ useImperativeHandle(ref, function () {
76
+ return {
77
+ get scrollContainer() {
78
+ return scrollContainerRef.current;
79
+ },
80
+ get contentArea() {
81
+ return contentAreaRef.current;
82
+ },
83
+ get containerArea() {
84
+ return containerRef.current;
85
+ }
86
+ };
87
+ }, []);
88
+ var markdownPluginCurrentView = useSharedPluginStateWithSelector(props.editorAPI, ['markdownMode'], function (states) {
89
+ var _states$markdownModeS;
90
+ return (_states$markdownModeS = states.markdownModeState) === null || _states$markdownModeS === void 0 ? void 0 : _states$markdownModeS.view;
91
+ });
92
+ var markdownPluginCurrentIsMarkdownMode = useSharedPluginStateWithSelector(props.editorAPI, ['markdownMode'], function (states) {
93
+ var _states$markdownModeS2;
94
+ return (_states$markdownModeS2 = states.markdownModeState) === null || _states$markdownModeS2 === void 0 ? void 0 : _states$markdownModeS2.isMarkdownMode;
95
+ });
96
+ var isMarkdownModeExperimentEnabled = expValEqualsNoExposure('cc-markdown-mode', 'isEnabled', true);
97
+ var shouldHideProseMirrorForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentView !== 'preview' && markdownPluginCurrentIsMarkdownMode;
98
+ var shouldHideScrollGutterForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentIsMarkdownMode;
99
+ var content = /*#__PURE__*/React.createElement(EditorContentContainer
100
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
101
+ , {
102
+ className: "fabric-editor-popup-scroll-parent",
103
+ featureFlags: props.featureFlags,
104
+ ref: scrollContainerRef,
105
+ viewMode: props === null || props === void 0 ? void 0 : props.viewMode,
106
+ isScrollable: true,
107
+ appearance: props.appearance,
108
+ contentMode: props.contentMode,
109
+ useStandardNodeWidth: useStandardNodeWidth
110
+ }, /*#__PURE__*/React.createElement(ClickAreaBlock, {
111
+ editorView: props.editorView,
112
+ editorDisabled: props.disabled
113
+ }, /*#__PURE__*/React.createElement("div", {
114
+ "data-markdown-mode-hide-prosemirror": shouldHideProseMirrorForMarkdownMode ? 'true' : undefined,
115
+ "data-markdown-mode-hide-scroll-gutter": shouldHideScrollGutterForMarkdownMode ? 'true' : undefined,
116
+ style: {
117
+ '--ak-editor-content-area-max-width': "".concat(contentAreaMaxWidth, "px")
118
+ }
119
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
120
+ ,
121
+ className: ax([compiledStyles.editorContentAreaNew, compiledStyles.editorContentAreaProsemirrorStyle, shouldHideProseMirrorForMarkdownMode && compiledStyles.hideEditorContentAreaProsemirrorWithAttributeStyle, shouldHideScrollGutterForMarkdownMode && compiledStyles.hideEditorContentAreaScrollGutterWithAttributeStyle, shouldHideProseMirrorForMarkdownMode && compiledStyles.markdownModeContentAreaStyle, compiledStyles.tableFullPageEditorStylesNew, compiledStyles.fullWidthNonChromelessBreakoutBlockTableStyle,
122
+ // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
123
+ compiledStyles.editorContentAreaContainerStyleExcludeCodeBlockNew, compiledStyles.editorContentAreaContainerNestedDndStyle, "ak-editor-content-area-region"]),
124
+ "data-editor-editable-content": true,
125
+ role: "region",
126
+ "aria-label": props.intl.formatMessage(messages.editableContentLabel),
127
+ ref: contentAreaRef,
128
+ "data-vc": "editor-content-area-region"
129
+ }, /*#__PURE__*/React.createElement("div", {
130
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
131
+ className: ax([compiledStyles.editorContentGutterStyles, compiledStyles.editorContentGutterStyleFG, editorExperiment('platform_editor_preview_panel_responsiveness', true, {
132
+ exposure: true
133
+ }) && compiledStyles.editorContentReducedGutterStyles, classnames('ak-editor-content-area', 'appearance-full-page', {
134
+ 'fabric-editor--full-width-mode': fullWidthMode,
135
+ 'fabric-editor--max-width-mode': Boolean(maxWidthMode)
136
+ })]),
137
+ ref: contentAreaRef
138
+ }, !!props.customContentComponents && 'before' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.before) : contentComponentClickWrapper(props.customContentComponents), /*#__PURE__*/React.createElement(PluginSlot, {
139
+ editorView: props.editorView,
140
+ editorActions: props.editorActions,
141
+ eventDispatcher: props.eventDispatcher,
142
+ providerFactory: props.providerFactory,
143
+ appearance: props.appearance,
144
+ items: props.contentComponents,
145
+ pluginHooks: props.pluginHooks,
146
+ contentArea: (_contentAreaRef$curre = contentAreaRef.current) !== null && _contentAreaRef$curre !== void 0 ? _contentAreaRef$curre : undefined,
147
+ popupsMountPoint: props.popupsMountPoint,
148
+ popupsBoundariesElement: props.popupsBoundariesElement,
149
+ popupsScrollableElement: props.popupsScrollableElement,
150
+ disabled: !!props.disabled,
151
+ containerElement: scrollContainerRef.current,
152
+ dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
153
+ wrapperElement: props.wrapperElement
154
+ }), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null, allowScrollGutter && (editorExperiment('platform_editor_blocks', true) ? /*#__PURE__*/React.createElement("div", {
155
+ id: "editor-scroll-gutter",
156
+ style: {
157
+ paddingBottom: "".concat((_allowScrollGutter$gu = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu !== void 0 ? _allowScrollGutter$gu : '120', "px")
158
+ },
159
+ "data-vc": "scroll-gutter",
160
+ "data-editor-scroll-gutter": "true",
161
+ className: ax([shouldHideScrollGutterForMarkdownMode && compiledStyles.hideEditorScrollGutterStyle])
162
+ }) : /*#__PURE__*/React.createElement("div", {
163
+ id: "editor-scroll-gutter",
164
+ style: {
165
+ paddingBottom: "".concat((_allowScrollGutter$gu2 = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu2 !== void 0 ? _allowScrollGutter$gu2 : '120', "px")
166
+ },
167
+ "data-vc": "scroll-gutter",
168
+ className: ax([shouldHideScrollGutterForMarkdownMode && compiledStyles.hideEditorScrollGutterStyle])
169
+ }))))));
170
+ return /*#__PURE__*/React.createElement("div", {
171
+ "data-testid": CONTENT_AREA_TEST_ID,
172
+ ref: containerRef,
173
+ className: ax([compiledStyles.contentAreaNew, props.isEditorToolbarHidden && compiledStyles.contentAreaHeightNoToolbar])
174
+ }, /*#__PURE__*/React.createElement("div", {
175
+ "data-testid": EDITOR_CONTAINER,
176
+ "data-editor-container": 'true',
177
+ className: ax([compiledStyles.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && compiledStyles.markdownModeContainerBackgroundStyle])
178
+ }, props.UNSAFE_containLayout ? /*#__PURE__*/React.createElement("div", {
179
+ "data-testid": "editor-contain-size-and-layout-wrapper",
180
+ className: ax([containLayoutStyles.wrapper])
181
+ }, content) : content), /*#__PURE__*/React.createElement("div", {
182
+ className: ax([compiledStyles.sidebarArea])
183
+ }, props.contextPanel || /*#__PURE__*/React.createElement(ContextPanel, {
184
+ editorAPI: props.editorAPI,
185
+ visible: false
186
+ })));
187
+ });
188
+
6
189
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
7
- export var EDITOR_CONTAINER = 'ak-editor-container';
8
-
9
- /**
10
- * Compiled migration WIP under platform_editor_core_non_ecc_static_css
11
- * Please ensure both styles are updated
12
- */
13
- export var FullPageContentArea = componentWithCondition(function () {
14
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
15
- }, FullPageContentAreaCompiled, FullPageContentAreaEmotion);
190
+ export var FullPageContentArea = injectIntl(Content, {
191
+ forwardRef: true
192
+ });
@@ -9,11 +9,9 @@ import { ToolbarPortalMountPoint, useToolbarPortal } from '../../Toolbar/Toolbar
9
9
  import { ToolbarWithSizeDetector as Toolbar } from '../../Toolbar/ToolbarWithSizeDetector';
10
10
  import { BeforePrimaryToolbarWrapper } from './BeforeWrapper';
11
11
  import { MainToolbarForFirstChildWrapper, MainToolbarForSecondChildWrapper } from './CustomToolbarWrapper';
12
- import { CustomToolbarWrapperMigration } from './CustomToolbarWrapperMigration';
13
12
  import { MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT } from './MainToolbar';
14
- import { MainToolbarIconBeforeMigration } from './MainToolbarIconBeforeMigration';
13
+ import { CustomToolbarWrapperCompiled, MainToolbarIconBeforeCompiled, NonCustomToolbarWrapperCompiled } from './MainToolbar-compiled';
15
14
  import { MainToolbarWrapper } from './MainToolbarWrapper';
16
- import { NonCustomToolbarWrapperMigration } from './NonCustomToolbarWrapperMigration';
17
15
  export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
18
16
  var _props$primaryToolbar, _useToolbarPortal, _props$customPrimaryT;
19
17
  var _useState = useState(false),
@@ -33,7 +31,7 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
33
31
  ToolbarPortal = _ref.Portal;
34
32
  var hasToolbarPortal = ToolbarPortal !== React.Fragment;
35
33
  var popupsMountPoint = hasToolbarPortal ? undefined : props.popupsMountPoint;
36
- var nonCustomToolbar = /*#__PURE__*/React.createElement(NonCustomToolbarWrapperMigration, null, props.beforeIcon && /*#__PURE__*/React.createElement(MainToolbarIconBeforeMigration, null, props.beforeIcon), /*#__PURE__*/React.createElement(Toolbar, {
34
+ var nonCustomToolbar = /*#__PURE__*/React.createElement(NonCustomToolbarWrapperCompiled, null, props.beforeIcon && /*#__PURE__*/React.createElement(MainToolbarIconBeforeCompiled, null, props.beforeIcon), /*#__PURE__*/React.createElement(Toolbar, {
37
35
  editorView: props.editorView,
38
36
  editorActions: props.editorActions,
39
37
  eventDispatcher: props.eventDispatcher,
@@ -49,7 +47,7 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
49
47
  hasMinWidth: props.hasMinWidth,
50
48
  twoLineEditorToolbar: twoLineEditorToolbar
51
49
  }));
52
- var customToolbar = /*#__PURE__*/React.createElement(CustomToolbarWrapperMigration, null, !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? /*#__PURE__*/React.createElement(BeforePrimaryToolbarWrapper, {
50
+ var customToolbar = /*#__PURE__*/React.createElement(CustomToolbarWrapperCompiled, null, !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? /*#__PURE__*/React.createElement(BeforePrimaryToolbarWrapper, {
53
51
  beforePrimaryToolbarComponents: (_props$customPrimaryT = props.customPrimaryToolbarComponents) === null || _props$customPrimaryT === void 0 ? void 0 : _props$customPrimaryT.before
54
52
  }) : null, !editorExperiment('platform_editor_controls', 'variant1') && editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.findReplace.actions.registerToolbarButton({
55
53
  popupsBoundariesElement: props.popupsBoundariesElement,
@@ -1,10 +1,4 @@
1
1
  /* MainToolbar-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 `MainToolbar.tsx`.
5
- *
6
- * Cleanup: delete this file once the experiment has shipped.
7
- */
8
2
  import "./MainToolbar-compiled.compiled.css";
9
3
  import { ax, ix } from "@compiled/react/runtime";
10
4
  import React from 'react';
@@ -1,7 +1,23 @@
1
- import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
2
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
- import { MainToolbarWrapperCompiled } from './MainToolbarWrapper-compiled';
4
- import { MainToolbarWrapperEmotion } from './MainToolbarWrapper-emotion';
5
- export var MainToolbarWrapper = componentWithCondition(function () {
6
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
7
- }, MainToolbarWrapperCompiled, MainToolbarWrapperEmotion);
1
+ /* MainToolbarWrapper.tsx generated by @compiled/babel-plugin v3.0.2 */
2
+ import "./MainToolbarWrapper.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+
6
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
7
+
8
+ var styles = {
9
+ base: "_v56419ab _n7zlia51 _kqswh2mm _4cvr1h6o _16qsglyw _1pby16oo _1e0c1txw _4t3i17qo _1o9zidpf _bfhkvuon _1krdgrf3",
10
+ flexibleIconSize: "_3pwj1osq",
11
+ keyline: "_16qs1nax",
12
+ twoLine: "_1s5v1g80 _8o38zpre"
13
+ };
14
+ export var MainToolbarWrapper = function MainToolbarWrapper(_ref) {
15
+ var showKeyline = _ref.showKeyline,
16
+ twoLineEditorToolbar = _ref.twoLineEditorToolbar,
17
+ children = _ref.children,
18
+ testId = _ref['data-testid'];
19
+ return /*#__PURE__*/React.createElement("div", {
20
+ "data-testid": testId,
21
+ className: ax([styles.base, styles.flexibleIconSize, showKeyline && styles.keyline, twoLineEditorToolbar && styles.twoLine])
22
+ }, children);
23
+ };
@@ -3,12 +3,6 @@ import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructurin
3
3
  import _extends from "@babel/runtime/helpers/extends";
4
4
  import "./ChromeCollapsed-compiled.compiled.css";
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
- /**
7
- * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
8
- * Used via `componentWithCondition` in `index.tsx`.
9
- *
10
- * Cleanup: delete this file once the experiment has shipped.
11
- */
12
6
  import React, { forwardRef } from 'react';
13
7
  var inputCompiledStyles = {
14
8
  root: "_19it19hj _2rkofajl _bfhk1j9a _vchhusvi _4t3i1ylp _19bvv47k _ca0qutpp _n3tdutpp _1wyboxwj _1bsb1osq _k48pi7a9 _vwz41aog _1dyzdjp5 _syaz1rpy _4cvxrsbi _irr3l4ek _d0al1kdv"
@@ -8,14 +8,8 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
8
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
9
  import React, { PureComponent } from 'react';
10
10
  import { injectIntl } from 'react-intl';
11
- import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
12
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
11
  import { ChromeCollapsedCompiled } from './ChromeCollapsed-compiled';
14
- import { ChromeCollapsedEmotion } from './ChromeCollapsed-emotion';
15
12
  import { messages } from './messages';
16
- var InputMigration = componentWithCondition(function () {
17
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
18
- }, ChromeCollapsedCompiled, ChromeCollapsedEmotion);
19
13
  // Ignored via go/ees005
20
14
  // eslint-disable-next-line @repo/internal/react/no-class-components
21
15
  var ChromeCollapsed = /*#__PURE__*/function (_PureComponent) {
@@ -50,7 +44,7 @@ var ChromeCollapsed = /*#__PURE__*/function (_PureComponent) {
50
44
  key: "render",
51
45
  value: function render() {
52
46
  var placeholder = this.props.text || this.props.intl.formatMessage(messages.chromeCollapsedPlaceholder);
53
- return /*#__PURE__*/React.createElement(InputMigration, {
47
+ return /*#__PURE__*/React.createElement(ChromeCollapsedCompiled, {
54
48
  "data-testid": "chrome-collapsed",
55
49
  ref: this.handleInputRef,
56
50
  onFocus: this.focusHandler,
@@ -6,12 +6,6 @@ var _excluded = ["children", "customWidth", "visible"],
6
6
  import "./index-compiled.compiled.css";
7
7
  import * as React from 'react';
8
8
  import { ax, ix } from "@compiled/react/runtime";
9
- /**
10
- * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
11
- * Used via `componentWithCondition` in `index.tsx`.
12
- *
13
- * Cleanup: delete this file once the `platform_editor_core_non_ecc_static_css` experiment has shipped.
14
- */
15
9
  import { useMemo } from 'react';
16
10
  var akEditorContextPanelWidthStatic = 320;
17
11
  var getContextPanelWidthStyle = function getContextPanelWidthStyle(_ref) {
@@ -20,16 +20,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
20
20
  import { contextPanelMessages } from '@atlaskit/editor-common/messages';
21
21
  import { akEditorContextPanelWidth } from '@atlaskit/editor-shared-styles';
22
22
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
23
- import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
24
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
25
23
  import { ContextPanelContentCompiled, ContextPanelWrapperCompiled } from './index-compiled';
26
- import { ContextPanelContentEmotion, ContextPanelWrapperEmotion } from './index-emotion';
27
- var ContextPanelWrapperMigration = componentWithCondition(function () {
28
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
29
- }, ContextPanelWrapperCompiled, ContextPanelWrapperEmotion);
30
- var ContextPanelContentMigration = componentWithCondition(function () {
31
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
32
- }, ContextPanelContentCompiled, ContextPanelContentEmotion);
33
24
  // Ignored via go/ees005
34
25
  // eslint-disable-next-line @repo/internal/react/no-class-components
35
26
  var SwappableContentAreaInner = /*#__PURE__*/function (_React$PureComponent) {
@@ -131,7 +122,7 @@ var SwappableContentAreaInner = /*#__PURE__*/function (_React$PureComponent) {
131
122
  var broadcastWidth = _ref.broadcastWidth;
132
123
  var contextPanelWidth = visible ? width : 0;
133
124
  broadcastWidth(contextPanelWidth);
134
- return /*#__PURE__*/React.createElement(ContextPanelWrapperMigration, {
125
+ return /*#__PURE__*/React.createElement(ContextPanelWrapperCompiled, {
135
126
  customWidth: _this2.props.customWidth,
136
127
  visible: visible,
137
128
  "data-testid": "context-panel-panel"
@@ -140,7 +131,7 @@ var SwappableContentAreaInner = /*#__PURE__*/function (_React$PureComponent) {
140
131
  "aria-label": ((_this2$props$intl = _this2.props.intl) === null || _this2$props$intl === void 0 ? void 0 : _this2$props$intl.formatMessage(contextPanelMessages.panelLabel)) || '',
141
132
  "aria-modal": "false",
142
133
  role: "dialog"
143
- }, /*#__PURE__*/React.createElement(ContextPanelContentMigration, {
134
+ }, /*#__PURE__*/React.createElement(ContextPanelContentCompiled, {
144
135
  customWidth: _this2.props.customWidth,
145
136
  visible: visible,
146
137
  hasPadding: hasPadding,
@@ -5,13 +5,6 @@ var _excluded = ["children"];
5
5
  import "./PluginSlot-compiled.compiled.css";
6
6
  import * as React from 'react';
7
7
  import { ax, ix } from "@compiled/react/runtime";
8
- /**
9
- * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
10
- * Used via `componentWithCondition` in `index.tsx`.
11
- *
12
- * Cleanup: delete this file once the experiment has shipped.
13
- */
14
-
15
8
  var pluginsComponentsWrapperCompiledStyles = {
16
9
  root: "_1e0c1txw"
17
10
  };
@@ -1,15 +1,10 @@
1
1
  import React from 'react';
2
2
  import isEqual from 'lodash/isEqual';
3
3
  import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
4
- import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
5
4
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
6
5
  import { ErrorBoundary } from '../ErrorBoundary';
7
6
  import { MountPluginHooks } from './mount-plugin-hooks';
8
7
  import { PluginsComponentsWrapperCompiled } from './PluginSlot-compiled';
9
- import { PluginsComponentsWrapperEmotion } from './PluginSlot-emotion';
10
- var PluginsComponentsWrapperMigration = componentWithCondition(function () {
11
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
12
- }, PluginsComponentsWrapperCompiled, PluginsComponentsWrapperEmotion);
13
8
  var PluginComponent = function PluginComponent(_ref) {
14
9
  var component = _ref.component,
15
10
  editorView = _ref.editorView,
@@ -68,7 +63,7 @@ var PluginSlot = function PluginSlot(_ref2) {
68
63
  pluginHooks: pluginHooks,
69
64
  containerElement: containerElement,
70
65
  wrapperElement: wrapperElement
71
- }), /*#__PURE__*/React.createElement(PluginsComponentsWrapperMigration, {
66
+ }), /*#__PURE__*/React.createElement(PluginsComponentsWrapperCompiled, {
72
67
  "data-testid": "plugins-components-wrapper"
73
68
  }, items === null || items === void 0 ? void 0 : items.map(function (component, index) {
74
69
  if (isolatePluginSlotFailures) {
@@ -1,10 +1,4 @@
1
1
  /* ToolbarComponentsWrapper-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 `ToolbarInner.tsx`.
5
- *
6
- * Cleanup: delete this file once the experiment has shipped.
7
- */
8
2
  import "./ToolbarComponentsWrapper-compiled.compiled.css";
9
3
  import * as React from 'react';
10
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -8,13 +8,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
8
8
  import React from 'react';
9
9
  import isEqual from 'lodash/isEqual';
10
10
  import { isSSR } from '@atlaskit/editor-common/core-utils';
11
- import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
12
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
11
  import { ToolbarComponentsWrapperCompiled } from './ToolbarComponentsWrapper-compiled';
14
- import { ToolbarComponentsWrapperEmotion } from './ToolbarComponentsWrapper-emotion';
15
- var ToolbarComponentsWrapperMigration = componentWithCondition(function () {
16
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
17
- }, ToolbarComponentsWrapperCompiled, ToolbarComponentsWrapperEmotion);
18
12
 
19
13
  // Ignored via go/ees005
20
14
  // eslint-disable-next-line @repo/internal/react/no-class-components
@@ -55,7 +49,7 @@ export var ToolbarInner = /*#__PURE__*/function (_React$Component) {
55
49
  // Hiding toolbar in SSR until the dependency of screen width is resolved in SSR environment.
56
50
  return null;
57
51
  }
58
- return /*#__PURE__*/React.createElement(ToolbarComponentsWrapperMigration, {
52
+ return /*#__PURE__*/React.createElement(ToolbarComponentsWrapperCompiled, {
59
53
  "data-vc": "toolbar-inner"
60
54
  }, items.map(function (component, key) {
61
55
  var element = component({
@@ -1,10 +1,4 @@
1
1
  /* ToolbarSizeDetectorWrapper-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 `ToolbarWithSizeDetector.tsx`.
5
- *
6
- * Cleanup: delete this file once the experiment has shipped.
7
- */
8
2
  import "./ToolbarSizeDetectorWrapper-compiled.compiled.css";
9
3
  import * as React from 'react';
10
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -2,19 +2,13 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useMemo } from 'react';
3
3
  import { isSSR } from '@atlaskit/editor-common/core-utils';
4
4
  import { ToolbarSize } from '@atlaskit/editor-common/types';
5
- import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
6
5
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
7
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
6
  import { WidthObserver } from '@atlaskit/width-detector/width-observer';
9
7
  import { isFullPage } from '../../utils/is-full-page';
10
8
  import { useElementWidth } from './hooks';
11
9
  import { Toolbar } from './Toolbar';
12
10
  import { toolbarSizeToWidth, widthToToolbarSize } from './toolbar-size';
13
11
  import { ToolbarSizeDetectorWrapperCompiled } from './ToolbarSizeDetectorWrapper-compiled';
14
- import { ToolbarSizeDetectorWrapperEmotion } from './ToolbarSizeDetectorWrapper-emotion';
15
- var ToolbarSizeDetectorWrapperMigration = componentWithCondition(function () {
16
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
17
- }, ToolbarSizeDetectorWrapperCompiled, ToolbarSizeDetectorWrapperEmotion);
18
12
  export var ToolbarWithSizeDetector = function ToolbarWithSizeDetector(props) {
19
13
  var ref = React.useRef(null);
20
14
  var _React$useState = React.useState(undefined),
@@ -40,15 +34,12 @@ export var ToolbarWithSizeDetector = function ToolbarWithSizeDetector(props) {
40
34
  return isPreviewPanelResponsivenessEnabled ? 'fit-content' : '254px';
41
35
  }
42
36
  }, [props.appearance, props.hasMinWidth, props.twoLineEditorToolbar]);
43
- var memoizedWrapperStyle = useMemo(function () {
37
+ var wrapperStyle = useMemo(function () {
44
38
  return {
45
39
  minWidth: minWidthValue
46
40
  };
47
41
  }, [minWidthValue]);
48
- var wrapperStyle = expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true) ? memoizedWrapperStyle : {
49
- minWidth: minWidthValue
50
- };
51
- return /*#__PURE__*/React.createElement(ToolbarSizeDetectorWrapperMigration
42
+ return /*#__PURE__*/React.createElement(ToolbarSizeDetectorWrapperCompiled
52
43
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- minWidth is computed dynamically from props.hasMinWidth, props.appearance, props.twoLineEditorToolbar, and the platform_editor_preview_panel_responsiveness experiment, so it cannot be expressed as a static css value.
53
44
  , {
54
45
  style: wrapperStyle
@@ -1,8 +1,3 @@
1
- import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
2
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
1
  import { WithFlashCompiled } from './withFlash-compiled';
4
- import { WithFlashEmotion } from './withFlash-emotion';
5
- var WithFlash = componentWithCondition(function () {
6
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
7
- }, WithFlashCompiled, WithFlashEmotion);
2
+ var WithFlash = WithFlashCompiled;
8
3
  export default WithFlash;
@@ -9,12 +9,6 @@ import "./withFlash-compiled.compiled.css";
9
9
  import { ax, ix } from "@compiled/react/runtime";
10
10
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
11
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
- /**
13
- * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
14
- * Used via `componentWithCondition` in `index.tsx`.
15
- *
16
- * Cleanup: delete this file once the experiment has shipped.
17
- */
18
12
  import React from 'react';
19
13
  var pulseBackground = null;
20
14
  var pulseBackgroundReverse = null;
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "234.3.2";
3
+ export var version = "235.0.0";
@@ -2,12 +2,6 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- /**
6
- * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
- * Used via `componentWithCondition` in `editor-internal.tsx`.
8
- *
9
- * Cleanup: delete this file once the experiment has shipped.
10
- */
11
5
  import type { ReactNode } from 'react';
12
6
  export declare const EditorInternalContainerCompiled: ({ children, fontSize, }: {
13
7
  children?: ReactNode;
@@ -2,9 +2,5 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- /**
6
- * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
- * Used via `componentWithCondition` in `index.tsx`.
8
- */
9
5
  import type { HTMLAttributes } from 'react';
10
6
  export declare const ClickAreaBlockContainerCompiled: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
@@ -1,9 +1,12 @@
1
- import type { FC } from 'react';
2
- import { type ChromelessEditorContainerProps } from './Chromeless-emotion';
3
1
  /**
4
- * Container for the chromeless editor appearance. This is used to set the max and min height
5
- * of the editor content area, and to provide a ref to the container element for the popups.
6
- * @param param0 props for the chromeless editor container
7
- * @returns JSX element representing the chromeless editor container
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
8
4
  */
9
- export declare const ChromelessEditorContainer: FC<ChromelessEditorContainerProps & ChromelessEditorContainerProps>;
5
+ import React from 'react';
6
+ import type { HTMLAttributes } from 'react';
7
+ export interface ChromelessEditorContainerProps extends HTMLAttributes<HTMLDivElement> {
8
+ containerRef?: (ref: HTMLElement | null) => void;
9
+ maxHeight?: number;
10
+ minHeight: number;
11
+ }
12
+ export declare const ChromelessEditorContainer: ({ children, containerRef, maxHeight, minHeight, }: ChromelessEditorContainerProps) => React.JSX.Element;
@@ -1,2 +1,24 @@
1
- import { CommentEditorWithIntlCompiled } from './Comment-compiled';
2
- export declare const CommentEditorWithIntl: typeof CommentEditorWithIntlCompiled;
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
6
+ import type { OptionalPlugin } from '@atlaskit/editor-common/types';
7
+ import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu';
8
+ import type { MaxContentSizePlugin } from '@atlaskit/editor-plugins/max-content-size';
9
+ import type { MediaPlugin } from '@atlaskit/editor-plugins/media';
10
+ import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugins/primary-toolbar';
11
+ import type { ToolbarPlugin } from '@atlaskit/editor-plugins/toolbar';
12
+ import type { EditorAppearanceComponentProps } from '../../../types/editor-appearance-component';
13
+ type ComponentProps = EditorAppearanceComponentProps<[
14
+ OptionalPlugin<MediaPlugin>,
15
+ OptionalPlugin<MaxContentSizePlugin>,
16
+ OptionalPlugin<PrimaryToolbarPlugin>,
17
+ OptionalPlugin<ToolbarPlugin>,
18
+ OptionalPlugin<BlockMenuPlugin>
19
+ ]>;
20
+ export declare const CommentEditorWithIntl: {
21
+ (props: ComponentProps): React.JSX.Element;
22
+ displayName: string;
23
+ };
24
+ export {};
@@ -2,12 +2,6 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- /**
6
- * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
- * Used via `componentWithCondition` in `Toolbar.tsx`.
8
- *
9
- * Cleanup: delete this file once the experiment has shipped.
10
- */
11
5
  import type { ReactNode } from 'react';
12
6
  import React from 'react';
13
7
  type FixedToolbarCompiledProps = {
@@ -2,12 +2,6 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- /**
6
- * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
- * Used via `componentWithCondition` in `Toolbar.tsx`.
8
- *
9
- * Cleanup: delete this file once the experiment has shipped.
10
- */
11
5
  import type { ReactNode, RefObject } from 'react';
12
6
  import React from 'react';
13
7
  type StickyToolbarCompiledProps = {