@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
@@ -3,19 +3,14 @@ import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
3
3
  import { usePortalProvider } from '@atlaskit/editor-common/portal';
4
4
  import { editorFontSize } from '@atlaskit/editor-shared-styles';
5
5
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
6
- import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
7
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
6
  import ErrorBoundary from '../create-editor/ErrorBoundary';
9
7
  import ReactEditorViewNext from '../create-editor/ReactEditorView';
10
8
  import EditorContext from '../ui/EditorContext';
11
9
  import { IntlProviderIfMissingWrapper } from '../ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper';
12
10
  import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
13
11
  import { RenderTracking } from '../utils/performance/components/RenderTracking';
14
- import { BaseThemeWrapper } from './BaseThemeWrapper';
15
12
  import { EditorInternalContainerCompiled } from './editor-internal-compiled';
16
- import { EditorInternalContainerEmotion } from './editor-internal-emotion';
17
13
  import { getBaseFontSize } from './utils/getBaseFontSize';
18
- const EditorInternalContainerMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), EditorInternalContainerCompiled, EditorInternalContainerEmotion);
19
14
  const DEFAULT_VALUE_PROP_TO_IGNORE = ['defaultValue'];
20
15
 
21
16
  /**
@@ -63,7 +58,7 @@ export const EditorInternal = /*#__PURE__*/memo(({
63
58
  createAnalyticsEvent: createAnalyticsEvent,
64
59
  contextIdentifierProvider: props.contextIdentifierProvider,
65
60
  featureFlags: featureFlags
66
- }, /*#__PURE__*/React.createElement(EditorInternalContainerMigration, {
61
+ }, /*#__PURE__*/React.createElement(EditorInternalContainerCompiled, {
67
62
  fontSize: fontSize
68
63
  }, /*#__PURE__*/React.createElement(EditorContext, {
69
64
  editorActions: editorActions
@@ -89,9 +84,7 @@ export const EditorInternal = /*#__PURE__*/memo(({
89
84
  editorAPI
90
85
  }) => {
91
86
  var _props$featureFlags, _props$featureFlags2;
92
- return /*#__PURE__*/React.createElement(BaseThemeWrapper, {
93
- baseFontSize: baseFontSize
94
- }, /*#__PURE__*/React.createElement(AppearanceComponent, {
87
+ return /*#__PURE__*/React.createElement(AppearanceComponent, {
95
88
  innerRef: editorRef,
96
89
  editorAPI: editorAPI
97
90
  // Ignored via go/ees005
@@ -132,7 +125,7 @@ export const EditorInternal = /*#__PURE__*/memo(({
132
125
  __livePage: props.__livePage,
133
126
  preset: preset,
134
127
  UNSAFE_containLayout: props.UNSAFE_containLayout
135
- }));
128
+ });
136
129
  }
137
130
  }), /*#__PURE__*/React.createElement(PortalRenderer, null), /*#__PURE__*/React.createElement(NodeViewPortalRenderer, null)))))));
138
131
  });
@@ -3,11 +3,6 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./clickAreaBlock-compiled.compiled.css";
4
4
  import * as React from 'react';
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
-
11
6
  const clickWrapperCompiledStyles = {
12
7
  root: "_16jlkb7n _4t3i1osq"
13
8
  };
@@ -1,10 +1,6 @@
1
1
  import React from 'react';
2
- import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
3
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
2
  import { clickAreaClickHandler } from '../click-area-helper';
5
3
  import { ClickAreaBlockContainerCompiled } from './clickAreaBlock-compiled';
6
- import { ClickAreaBlockContainerEmotion } from './clickAreaBlock-emotion';
7
- const ClickAreaBlockContainerMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), ClickAreaBlockContainerCompiled, ClickAreaBlockContainerEmotion);
8
4
  export const ClickAreaBlock = ({
9
5
  editorView,
10
6
  editorDisabled,
@@ -18,7 +14,7 @@ export const ClickAreaBlock = ({
18
14
  clickAreaClickHandler(editorView, event);
19
15
  }
20
16
  }, [editorView, editorDisabled]);
21
- return /*#__PURE__*/React.createElement(ClickAreaBlockContainerMigration, {
17
+ return /*#__PURE__*/React.createElement(ClickAreaBlockContainerCompiled, {
22
18
  "data-editor-click-wrapper": true,
23
19
  "data-testid": "click-wrapper",
24
20
  onMouseDown: handleMouseDown
@@ -1,12 +1,24 @@
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 { ChromelessEditorContainerCompiled } from './Chromeless-compiled';
4
- import { ChromelessEditorContainerEmotion } from './Chromeless-emotion';
5
-
6
- /**
7
- * Container for the chromeless editor appearance. This is used to set the max and min height
8
- * of the editor content area, and to provide a ref to the container element for the popups.
9
- * @param param0 props for the chromeless editor container
10
- * @returns JSX element representing the chromeless editor container
11
- */
12
- export const ChromelessEditorContainer = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), ChromelessEditorContainerCompiled, ChromelessEditorContainerEmotion);
1
+ /* ChromelessEditorContainer.tsx generated by @compiled/babel-plugin v3.0.2 */
2
+ import "./ChromelessEditorContainer.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ const chromelessStyles = {
6
+ scrollbar: "_1fpfolhs _1khk1mok _123b1aqn _jaboglyw _aaynsm61 _1ogl1ibz",
7
+ editor: "_vwz4gktf _4t3i1wug _1reo15vq _18m91wug _p12f1kw7 _vchhusvi _slp31hna _fpqb1r31 _l5dlglyw _tjxn1o36 _1yt4idpf _y826idpf _7fa7idpf _8wn3idpf _1nhbidpf _1q5yidpf _1gfdidpf _1itkidpf _7fkv1jtm _1awku2gc _15gyze3t"
8
+ };
9
+ export const ChromelessEditorContainer = ({
10
+ children,
11
+ containerRef,
12
+ maxHeight,
13
+ minHeight
14
+ }) => /*#__PURE__*/React.createElement("div", {
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
16
+ className: ax([chromelessStyles.editor, chromelessStyles.scrollbar, "akEditor"]),
17
+ style: {
18
+ maxHeight: maxHeight ? `${maxHeight}px` : undefined,
19
+ minHeight: `${minHeight}px`
20
+ },
21
+ ref: containerRef,
22
+ "data-testid": "chromeless-editor",
23
+ id: "chromeless-editor"
24
+ }, children);
@@ -1,5 +1,254 @@
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 { CommentEditorWithIntlCompiled } from './Comment-compiled';
4
- import { CommentEditorWithIntlEmotion } from './Comment-emotion';
5
- export const CommentEditorWithIntl = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), CommentEditorWithIntlCompiled, CommentEditorWithIntlEmotion);
1
+ /* Comment.tsx generated by @compiled/babel-plugin v3.0.2 */
2
+ import "./Comment.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React, { useCallback, useEffect, useMemo, useState } from 'react';
5
+ import classnames from 'classnames';
6
+ import { useIntl } from 'react-intl';
7
+ import ButtonGroup from '@atlaskit/button/button-group';
8
+ import Button from '@atlaskit/button/default/button';
9
+ import { useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
10
+ import messages from '@atlaskit/editor-common/messages';
11
+ import { WidthConsumer, WidthProvider } from '@atlaskit/editor-common/ui';
12
+ import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
13
+ import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
14
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
15
+ // Ignored via go/ees005
16
+ // eslint-disable-next-line import/no-named-as-default
17
+ import ClickAreaBlock from '../../Addon/ClickAreaBlock';
18
+ import { contentComponentClickWrapper } from '../../Addon/ClickAreaBlock/contentComponentWrapper';
19
+ import EditorContentContainer from '../../EditorContentContainer/EditorContentContainer';
20
+ import PluginSlot from '../../PluginSlot';
21
+ import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
22
+ import { ToolbarWithSizeDetector as Toolbar } from '../../Toolbar/ToolbarWithSizeDetector';
23
+ import WithFlash from '../../WithFlash';
24
+ import { CommentToolbar } from './CommentToolbar';
25
+ import { MainToolbar } from './Toolbar';
26
+ const commentEditorCompiledStyles = {
27
+ commentEditor: "_19itno8c _2rko1qi0 _1e0c1txw _2lx21bp4 _1ul9clpc _4t3i1wug _bfhk1j9a _vchhusvi _p12f1kw7 _slp31hna _13dfutpp _gzr8u2gc _ghozu2gc _oafwu2gc",
28
+ modernisedEditor: "_2rkopb1k",
29
+ secondaryToolbar: "_vchhusvi _1bahesu3 _4cvr1h6o _1e0c1txw _ca0qutpp _u5f3v77o _n3tdutpp _19bvv77o",
30
+ mainToolbarCustomComponentsSlotNew: "_1e0c1txw _1bahesu3 _4cvr1h6o _16jlkb7n _u5f3v47k _p7r11txw _t1edidpf",
31
+ mainToolbarCustomComponentsSlotPaddingOverride: "_u5f3idpf",
32
+ mainToolbarCustomComponentsSlotTwoLineToolbar: "_xugcidpf",
33
+ contentAreaMaxHeight: "_c71lmz22 _18m91wug"
34
+ };
35
+ const appearance = 'comment';
36
+ export const CommentEditorWithIntl = props => {
37
+ var _editorAPI$blockMenu$, _editorAPI$blockMenu, _editorAPI$blockMenu$2, _editorAPI$blockMenu$3;
38
+ const {
39
+ editorAPI
40
+ } = props;
41
+
42
+ // Get useStandardNodeWidth from block menu plugin shared state
43
+ // Only access editorAPI when the experiment is enabled to avoid performance impact
44
+ const useStandardNodeWidth = editorExperiment('platform_editor_controls', 'variant1') && ((_editorAPI$blockMenu$ = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$blockMenu = editorAPI.blockMenu) === null || _editorAPI$blockMenu === void 0 ? void 0 : (_editorAPI$blockMenu$2 = _editorAPI$blockMenu.sharedState) === null || _editorAPI$blockMenu$2 === void 0 ? void 0 : (_editorAPI$blockMenu$3 = _editorAPI$blockMenu$2.currentState()) === null || _editorAPI$blockMenu$3 === void 0 ? void 0 : _editorAPI$blockMenu$3.useStandardNodeWidth) !== null && _editorAPI$blockMenu$ !== void 0 ? _editorAPI$blockMenu$ : false);
45
+ const {
46
+ editorViewMode,
47
+ primaryToolbarComponentsState,
48
+ maxContentSizeReached
49
+ } = useSharedPluginStateWithSelector(editorAPI, ['maxContentSize', 'primaryToolbar', 'editorViewMode'], states => {
50
+ var _states$maxContentSiz, _states$primaryToolba, _states$editorViewMod;
51
+ return {
52
+ maxContentSizeReached: !!((_states$maxContentSiz = states.maxContentSizeState) !== null && _states$maxContentSiz !== void 0 && _states$maxContentSiz.maxContentSizeReached),
53
+ primaryToolbarComponentsState: (_states$primaryToolba = states.primaryToolbarState) === null || _states$primaryToolba === void 0 ? void 0 : _states$primaryToolba.components,
54
+ editorViewMode: (_states$editorViewMod = states.editorViewModeState) === null || _states$editorViewMod === void 0 ? void 0 : _states$editorViewMod.mode
55
+ };
56
+ });
57
+ const primaryToolbarState = getPrimaryToolbarComponents(editorAPI, primaryToolbarComponentsState);
58
+ const {
59
+ mediaState
60
+ } = useSharedPluginState(editorAPI, ['media']);
61
+ const intl = useIntl();
62
+ const {
63
+ editorDOMElement,
64
+ editorView,
65
+ editorActions,
66
+ eventDispatcher,
67
+ providerFactory,
68
+ contentComponents,
69
+ customContentComponents,
70
+ customPrimaryToolbarComponents,
71
+ primaryToolbarComponents: primaryToolbarComponentsProp,
72
+ customSecondaryToolbarComponents,
73
+ popupsMountPoint,
74
+ popupsBoundariesElement,
75
+ popupsScrollableElement,
76
+ maxHeight,
77
+ minHeight = 150,
78
+ onSave,
79
+ onCancel,
80
+ disabled,
81
+ dispatchAnalyticsEvent,
82
+ useStickyToolbar,
83
+ pluginHooks,
84
+ featureFlags,
85
+ innerRef,
86
+ isEditorModernisationEnabled
87
+ } = props;
88
+ const showSecondaryToolbar = !!onSave || !!onCancel || !!customSecondaryToolbarComponents;
89
+ const containerElement = React.useRef(null);
90
+
91
+ // Wrapper container for toolbar and content area
92
+ const wrapperElementRef = useMemo(() => innerRef || /*#__PURE__*/React.createRef(), [innerRef]);
93
+ const [saveButtonDisabled, setSaveButtonDisabled] = useState(false);
94
+ useEffect(() => {
95
+ if (mediaState) {
96
+ mediaState.subscribeToUploadInProgressState(setSaveButtonDisabled);
97
+ }
98
+ return () => mediaState === null || mediaState === void 0 ? void 0 : mediaState.unsubscribeFromUploadInProgressState(setSaveButtonDisabled);
99
+ }, [mediaState]);
100
+ const handleSave = useCallback(() => {
101
+ if (editorView && onSave) {
102
+ onSave(editorView);
103
+ }
104
+ }, [editorView, onSave]);
105
+ const handleCancel = useCallback(() => {
106
+ if (editorView && onCancel) {
107
+ onCancel(editorView);
108
+ }
109
+ }, [editorView, onCancel]);
110
+ const isShortcutToFocusToolbar = useCallback(event => {
111
+ //Alt + F9 to reach first element in this main toolbar
112
+ return event.altKey && (event.key === 'F9' || event.keyCode === 120);
113
+ }, []);
114
+
115
+ // When primary toolbar components is undefined, do not show two line editor toolbar
116
+ const isTwoLineToolbarEnabled = !!customPrimaryToolbarComponents;
117
+ const handleEscape = useCallback(event => {
118
+ if (!(editorView !== null && editorView !== void 0 && editorView.hasFocus())) {
119
+ editorView === null || editorView === void 0 ? void 0 : editorView.focus();
120
+ }
121
+ event.preventDefault();
122
+ event.stopPropagation();
123
+ }, [editorView]);
124
+ let primaryToolbarComponents = primaryToolbarComponentsProp;
125
+ if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
126
+ primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
127
+ }
128
+ const isToolbarAIFCEnabled = Boolean(editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.toolbar);
129
+ const wrapperStyle = useMemo(() => ({
130
+ minHeight: `${minHeight}px`,
131
+ ...(maxHeight ? {
132
+ '--comment-editor-max-height': `${maxHeight}px`
133
+ } : {})
134
+ }), [minHeight, maxHeight]);
135
+ const customToolbarSlot = /*#__PURE__*/React.createElement("div", {
136
+ className: ax([commentEditorCompiledStyles.mainToolbarCustomComponentsSlotNew, isTwoLineToolbarEnabled && commentEditorCompiledStyles.mainToolbarCustomComponentsSlotTwoLineToolbar, isToolbarAIFCEnabled && commentEditorCompiledStyles.mainToolbarCustomComponentsSlotPaddingOverride])
137
+ }, customPrimaryToolbarComponents);
138
+ return /*#__PURE__*/React.createElement(WithFlash, {
139
+ animate: maxContentSizeReached
140
+ }, /*#__PURE__*/React.createElement(WidthProvider, null, /*#__PURE__*/React.createElement("div", {
141
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- dynamic minHeight/maxHeight from props
142
+ style: wrapperStyle
143
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
144
+ ,
145
+ className: ax([commentEditorCompiledStyles.commentEditor, isEditorModernisationEnabled && commentEditorCompiledStyles.modernisedEditor, "akEditor"]),
146
+ ref: wrapperElementRef
147
+ }, /*#__PURE__*/React.createElement(MainToolbar, {
148
+ isEditorModernisationEnabled: isEditorModernisationEnabled,
149
+ useStickyToolbar: useStickyToolbar,
150
+ twoLineEditorToolbar: isTwoLineToolbarEnabled,
151
+ isNewToolbarEnabled: isToolbarAIFCEnabled
152
+ }, isToolbarAIFCEnabled ? /*#__PURE__*/React.createElement(ToolbarArrowKeyNavigationProvider, {
153
+ editorView: editorView,
154
+ childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
155
+ isShortcutToFocusToolbar: isShortcutToFocusToolbar,
156
+ handleEscape: handleEscape,
157
+ editorAppearance: appearance,
158
+ useStickyToolbar: useStickyToolbar,
159
+ intl: intl
160
+ }, /*#__PURE__*/React.createElement(CommentToolbar, {
161
+ editorAPI: editorAPI,
162
+ editorView: editorView,
163
+ editorAppearance: appearance,
164
+ disabled: !!disabled,
165
+ popupsBoundariesElement: popupsBoundariesElement,
166
+ popupsScrollableElement: popupsScrollableElement,
167
+ popupsMountPoint: popupsMountPoint
168
+ }), customPrimaryToolbarComponents ? customToolbarSlot : null) : /*#__PURE__*/React.createElement(ToolbarArrowKeyNavigationProvider, {
169
+ editorView: editorView,
170
+ childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
171
+ isShortcutToFocusToolbar: isShortcutToFocusToolbar,
172
+ handleEscape: handleEscape,
173
+ editorAppearance: appearance,
174
+ useStickyToolbar: useStickyToolbar,
175
+ intl: intl
176
+ }, /*#__PURE__*/React.createElement(Toolbar
177
+ // Ignored via go/ees005
178
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
179
+ , {
180
+ editorView: editorView,
181
+ editorActions: editorActions
182
+ // Ignored via go/ees005
183
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
184
+ ,
185
+ eventDispatcher: eventDispatcher
186
+ // Ignored via go/ees005
187
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
188
+ ,
189
+ providerFactory: providerFactory,
190
+ appearance: appearance,
191
+ items: primaryToolbarComponents,
192
+ popupsMountPoint: popupsMountPoint,
193
+ popupsBoundariesElement: popupsBoundariesElement,
194
+ popupsScrollableElement: popupsScrollableElement,
195
+ disabled: !!disabled,
196
+ dispatchAnalyticsEvent: dispatchAnalyticsEvent,
197
+ containerElement: containerElement.current,
198
+ twoLineEditorToolbar: isTwoLineToolbarEnabled
199
+ }), customToolbarSlot)), /*#__PURE__*/React.createElement(ClickAreaBlock, {
200
+ editorView: editorView,
201
+ editorDisabled: disabled
202
+ }, /*#__PURE__*/React.createElement(WidthConsumer, null, ({
203
+ width
204
+ }) => {
205
+ return /*#__PURE__*/React.createElement(EditorContentContainer, {
206
+ ref: containerElement,
207
+ isScrollable: maxHeight ? true : undefined
208
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
209
+ ,
210
+ className: ax([maxHeight && commentEditorCompiledStyles.contentAreaMaxHeight, classnames('ak-editor-content-area', {
211
+ 'less-margin': width < akEditorMobileBreakoutPoint
212
+ })]),
213
+ featureFlags: featureFlags,
214
+ viewMode: editorViewMode,
215
+ appearance: appearance,
216
+ useStandardNodeWidth: useStandardNodeWidth
217
+ }, customContentComponents && 'before' in customContentComponents ? contentComponentClickWrapper(customContentComponents.before) : contentComponentClickWrapper(customContentComponents), /*#__PURE__*/React.createElement(PluginSlot, {
218
+ editorView: editorView,
219
+ editorActions: editorActions,
220
+ eventDispatcher: eventDispatcher,
221
+ dispatchAnalyticsEvent: dispatchAnalyticsEvent,
222
+ providerFactory: providerFactory,
223
+ appearance: appearance,
224
+ items: contentComponents,
225
+ popupsMountPoint: popupsMountPoint,
226
+ popupsBoundariesElement: popupsBoundariesElement,
227
+ popupsScrollableElement: popupsScrollableElement,
228
+ containerElement: containerElement.current,
229
+ disabled: !!disabled,
230
+ wrapperElement: wrapperElementRef.current,
231
+ pluginHooks: pluginHooks
232
+ }), editorDOMElement, customContentComponents && 'after' in customContentComponents ? contentComponentClickWrapper(customContentComponents.after) : null);
233
+ }))), showSecondaryToolbar && /*#__PURE__*/React.createElement("div", {
234
+ "data-testid": "ak-editor-secondary-toolbar",
235
+ className: ax([commentEditorCompiledStyles.secondaryToolbar])
236
+ }, /*#__PURE__*/React.createElement(ButtonGroup, null, !!onSave && /*#__PURE__*/React.createElement(Button, {
237
+ appearance: "primary",
238
+ onClick: handleSave,
239
+ testId: "comment-save-button",
240
+ isDisabled: disabled || saveButtonDisabled,
241
+ interactionName: "editor-comment-save-button"
242
+ }, intl.formatMessage(messages.saveButton)), !!onCancel && /*#__PURE__*/React.createElement(Button, {
243
+ appearance: "subtle",
244
+ onClick: handleCancel,
245
+ testId: "comment-cancel-button",
246
+ isDisabled: disabled,
247
+ interactionName: "editor-comment-cancel-button"
248
+ }, intl.formatMessage(messages.cancelButton))), /*#__PURE__*/React.createElement("span", {
249
+ style: {
250
+ flexGrow: 1
251
+ }
252
+ }), customSecondaryToolbarComponents)));
253
+ };
254
+ CommentEditorWithIntl.displayName = 'CommentEditorAppearance';
@@ -1,10 +1,4 @@
1
1
  /* FixedToolbar-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 `Toolbar.tsx`.
5
- *
6
- * Cleanup: delete this file once the experiment has shipped.
7
- */
8
2
  import "./FixedToolbar-compiled.compiled.css";
9
3
  import { ax, ix } from "@compiled/react/runtime";
10
4
  import React from 'react';
@@ -1,10 +1,4 @@
1
1
  /* StickyToolbar-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 `Toolbar.tsx`.
5
- *
6
- * Cleanup: delete this file once the experiment has shipped.
7
- */
8
2
  import "./StickyToolbar-compiled.compiled.css";
9
3
  import { ax, ix } from "@compiled/react/runtime";
10
4
  import React, { useEffect, useMemo, useState } from 'react';
@@ -1,13 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
3
  import { FixedToolbarCompiled } from './FixedToolbar-compiled';
6
- import { FixedToolbarEmotion } from './FixedToolbar-emotion';
7
4
  import { StickyToolbarCompiled } from './StickyToolbar-compiled';
8
- import { StickyToolbarEmotion } from './StickyToolbar-emotion';
9
- const StickyToolbarMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), StickyToolbarCompiled, StickyToolbarEmotion);
10
- const FixedToolbarMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), FixedToolbarCompiled, FixedToolbarEmotion);
11
5
 
12
6
  /**
13
7
  * ED-15802: Scenarios when a sticky bar is used:
@@ -44,7 +38,7 @@ export const MainToolbar = ({
44
38
  isNewToolbarEnabled
45
39
  }) => {
46
40
  if (useStickyToolbar) {
47
- return /*#__PURE__*/React.createElement(StickyToolbarMigration
41
+ return /*#__PURE__*/React.createElement(StickyToolbarCompiled
48
42
  // Ignored via go/ees005
49
43
  // eslint-disable-next-line react/jsx-props-no-spreading
50
44
  , _extends({}, getStickyParameters(useStickyToolbar), {
@@ -53,7 +47,7 @@ export const MainToolbar = ({
53
47
  isNewToolbarEnabled: isNewToolbarEnabled
54
48
  }), children);
55
49
  }
56
- return /*#__PURE__*/React.createElement(FixedToolbarMigration, {
50
+ return /*#__PURE__*/React.createElement(FixedToolbarCompiled, {
57
51
  isEditorModernisationEnabled: isEditorModernisationEnabled,
58
52
  twoLineEditorToolbar: twoLineEditorToolbar,
59
53
  isNewToolbarEnabled: isNewToolbarEnabled
@@ -1,7 +1,13 @@
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 { BeforePrimaryToolbarWrapperCompiled } from './BeforeWrapper-compiled';
4
- import { BeforePrimaryToolbarWrapperEmotion } from './BeforeWrapper-emotion';
1
+ /* BeforeWrapper.tsx generated by @compiled/babel-plugin v3.0.2 */
2
+ import "./BeforeWrapper.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ const styles = {
6
+ beforePrimaryToolbarPluginWrapper: "_1e0c1txw _16jlkb7n _1bahesu3 _4cvr1h6o"
7
+ };
5
8
  // Duplicate of the wrapper from `editor-plugins/before-primary-toolbar` used
6
9
  // only in `FullPageToolbar` to decouple the plugin from the main toolbar
7
- export const BeforePrimaryToolbarWrapper = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), BeforePrimaryToolbarWrapperCompiled, BeforePrimaryToolbarWrapperEmotion);
10
+ export const BeforePrimaryToolbarWrapper = props => /*#__PURE__*/React.createElement("div", {
11
+ "data-testid": 'before-primary-toolbar-components-plugin',
12
+ className: ax([styles.beforePrimaryToolbarPluginWrapper])
13
+ }, props.beforePrimaryToolbarComponents);
@@ -1,10 +1,41 @@
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 { MainToolbarForFirstChildWrapperCompiled, MainToolbarForSecondChildWrapperCompiled } from './CustomToolbarWrapper-compiled';
4
- import { MainToolbarForFirstChildWrapperEmotion, MainToolbarForSecondChildWrapperEmotion } from './CustomToolbarWrapper-emotion';
1
+ /* CustomToolbarWrapper.tsx generated by @compiled/babel-plugin v3.0.2 */
2
+ import "./CustomToolbarWrapper.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ const firstChildStyles = {
6
+ base: "_1e0c1txw _16jlkb7n",
7
+ twoLine: "_u89dkb7n _9gudkb7n _1hoh1osq _8o3817qo _lhl4esu3 _1s2p1ns9"
8
+ };
9
+ const secondChildStyles = {
10
+ base: "_1ul91ns9",
11
+ twoLine: "_u89dkb7n _9gudkb7n _1hoh1osq _1tjb1wug _1rg31wug _1jzq1wug _cn5x1wug _87t41txw _8o3817qo _1s2pidpf"
12
+ };
13
+
5
14
  // ---------------- First child wrapper ----------------
6
- export const MainToolbarForFirstChildWrapper = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), MainToolbarForFirstChildWrapperCompiled, MainToolbarForFirstChildWrapperEmotion);
15
+ export const MainToolbarForFirstChildWrapper = ({
16
+ twoLineEditorToolbar,
17
+ children,
18
+ role,
19
+ 'aria-label': ariaLabel,
20
+ 'data-testid': testId
21
+ }) => /*#__PURE__*/React.createElement("div", {
22
+ role: role,
23
+ "aria-label": ariaLabel,
24
+ "data-testid": testId,
25
+ className: ax([firstChildStyles.base, twoLineEditorToolbar && firstChildStyles.twoLine])
26
+ }, children);
7
27
 
8
28
  // ---------------- Second child wrapper ----------------
9
29
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
10
- export const MainToolbarForSecondChildWrapper = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), MainToolbarForSecondChildWrapperCompiled, MainToolbarForSecondChildWrapperEmotion);
30
+ export const MainToolbarForSecondChildWrapper = ({
31
+ twoLineEditorToolbar,
32
+ children,
33
+ role,
34
+ 'aria-label': ariaLabel,
35
+ 'data-testid': testId
36
+ }) => /*#__PURE__*/React.createElement("div", {
37
+ role: role,
38
+ "aria-label": ariaLabel,
39
+ "data-testid": testId,
40
+ className: ax([secondChildStyles.base, twoLineEditorToolbar && secondChildStyles.twoLine])
41
+ }, children);
@@ -1,10 +1,4 @@
1
1
  /* FullPage-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 `FullPage.tsx`.
5
- *
6
- * Cleanup: delete this file once the experiment has shipped.
7
- */
8
2
  import "./FullPage-compiled.compiled.css";
9
3
  import * as React from 'react';
10
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -5,17 +5,14 @@ import { SSRRenderMeasure } from '@atlaskit/editor-common/performance/ssr-measur
5
5
  import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
6
6
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
7
7
  import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
8
- import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
9
8
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
10
9
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
10
  import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
12
11
  import { FullPageEditorWrapperCompiled } from './FullPage-compiled';
13
- import { FullPageEditorWrapperEmotion } from './FullPage-emotion';
14
12
  import { FullPageContentArea } from './FullPageContentArea';
15
13
  import { FullPageToolbar } from './FullPageToolbar';
16
14
  import { FullPageToolbarNext } from './FullPageToolbarNext';
17
15
  const SSR_TRACE_SEGMENT_NAME = 'reactEditorView/fullPageAppearance';
18
- const FullPageEditorWrapperMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), FullPageEditorWrapperCompiled, FullPageEditorWrapperEmotion);
19
16
  const useShowKeyline = contentAreaRef => {
20
17
  const [showKeyline, setShowKeyline] = useState(false);
21
18
  useEffect(() => {
@@ -112,7 +109,7 @@ export const FullPageEditor = props => {
112
109
  segmentName: SSR_TRACE_SEGMENT_NAME,
113
110
  startTimestampRef: firstRenderStartTimestampRef,
114
111
  onSSRMeasure: props.onSSRMeasure
115
- }, /*#__PURE__*/React.createElement(ContextPanelWidthProvider, null, /*#__PURE__*/React.createElement(FullPageEditorWrapperMigration
112
+ }, /*#__PURE__*/React.createElement(ContextPanelWidthProvider, null, /*#__PURE__*/React.createElement(FullPageEditorWrapperCompiled
116
113
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
117
114
  , {
118
115
  className: "akEditor",