@atlaskit/editor-core 234.3.2 → 235.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/composable-editor/editor-internal-compiled.js +0 -6
  3. package/dist/cjs/composable-editor/editor-internal.js +3 -12
  4. package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +0 -5
  5. package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +1 -7
  6. package/dist/cjs/ui/Appearance/ChromelessEditorContainer.js +26 -13
  7. package/dist/cjs/ui/Appearance/Comment/Comment.js +262 -7
  8. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.js +0 -6
  9. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.js +0 -6
  10. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +2 -13
  11. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper.js +15 -7
  12. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper.js +41 -10
  13. package/dist/cjs/ui/Appearance/FullPage/FullPage-compiled.js +0 -6
  14. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -6
  15. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +192 -14
  16. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +3 -5
  17. package/dist/cjs/ui/Appearance/FullPage/MainToolbar-compiled.js +0 -6
  18. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper.js +23 -7
  19. package/dist/cjs/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +0 -6
  20. package/dist/cjs/ui/ChromeCollapsed/index.js +1 -7
  21. package/dist/cjs/ui/ContextPanel/index-compiled.js +0 -6
  22. package/dist/cjs/ui/ContextPanel/index.js +2 -11
  23. package/dist/cjs/ui/PluginSlot/PluginSlot-compiled.js +0 -7
  24. package/dist/cjs/ui/PluginSlot/index.js +1 -6
  25. package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +0 -6
  26. package/dist/cjs/ui/Toolbar/ToolbarInner.js +1 -8
  27. package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +0 -6
  28. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +2 -11
  29. package/dist/cjs/ui/WithFlash/index.js +1 -6
  30. package/dist/cjs/ui/WithFlash/withFlash-compiled.js +1 -6
  31. package/dist/cjs/ui/quick-insert/getExtensionQuickInsertComponents.js +7 -4
  32. package/dist/cjs/version-wrapper.js +1 -1
  33. package/dist/es2019/composable-editor/editor-internal-compiled.js +0 -6
  34. package/dist/es2019/composable-editor/editor-internal.js +3 -10
  35. package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +0 -5
  36. package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +1 -5
  37. package/dist/es2019/ui/Appearance/ChromelessEditorContainer.js +24 -12
  38. package/dist/es2019/ui/Appearance/Comment/Comment.js +254 -5
  39. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.js +0 -6
  40. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.js +0 -6
  41. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -8
  42. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +11 -5
  43. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper.js +37 -6
  44. package/dist/es2019/ui/Appearance/FullPage/FullPage-compiled.js +0 -6
  45. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -4
  46. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +186 -11
  47. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +3 -5
  48. package/dist/es2019/ui/Appearance/FullPage/MainToolbar-compiled.js +0 -6
  49. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper.js +24 -5
  50. package/dist/es2019/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +0 -6
  51. package/dist/es2019/ui/ChromeCollapsed/index.js +1 -5
  52. package/dist/es2019/ui/ContextPanel/index-compiled.js +0 -6
  53. package/dist/es2019/ui/ContextPanel/index.js +2 -7
  54. package/dist/es2019/ui/PluginSlot/PluginSlot-compiled.js +0 -7
  55. package/dist/es2019/ui/PluginSlot/index.js +1 -4
  56. package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +0 -6
  57. package/dist/es2019/ui/Toolbar/ToolbarInner.js +1 -5
  58. package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +0 -6
  59. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +2 -9
  60. package/dist/es2019/ui/WithFlash/index.js +1 -4
  61. package/dist/es2019/ui/WithFlash/withFlash-compiled.js +0 -6
  62. package/dist/es2019/ui/quick-insert/getExtensionQuickInsertComponents.js +6 -2
  63. package/dist/es2019/version-wrapper.js +1 -1
  64. package/dist/esm/composable-editor/editor-internal-compiled.js +0 -6
  65. package/dist/esm/composable-editor/editor-internal.js +3 -12
  66. package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +0 -5
  67. package/dist/esm/ui/Addon/ClickAreaBlock/index.js +1 -7
  68. package/dist/esm/ui/Appearance/ChromelessEditorContainer.js +25 -14
  69. package/dist/esm/ui/Appearance/Comment/Comment.js +260 -7
  70. package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.js +0 -6
  71. package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.js +0 -7
  72. package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -12
  73. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +13 -7
  74. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper.js +39 -10
  75. package/dist/esm/ui/Appearance/FullPage/FullPage-compiled.js +0 -6
  76. package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -6
  77. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +190 -13
  78. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +3 -5
  79. package/dist/esm/ui/Appearance/FullPage/MainToolbar-compiled.js +0 -6
  80. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper.js +23 -7
  81. package/dist/esm/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +0 -6
  82. package/dist/esm/ui/ChromeCollapsed/index.js +1 -7
  83. package/dist/esm/ui/ContextPanel/index-compiled.js +0 -6
  84. package/dist/esm/ui/ContextPanel/index.js +2 -11
  85. package/dist/esm/ui/PluginSlot/PluginSlot-compiled.js +0 -7
  86. package/dist/esm/ui/PluginSlot/index.js +1 -6
  87. package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +0 -6
  88. package/dist/esm/ui/Toolbar/ToolbarInner.js +1 -7
  89. package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +0 -6
  90. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +2 -11
  91. package/dist/esm/ui/WithFlash/index.js +1 -6
  92. package/dist/esm/ui/WithFlash/withFlash-compiled.js +0 -6
  93. package/dist/esm/ui/quick-insert/getExtensionQuickInsertComponents.js +8 -5
  94. package/dist/esm/version-wrapper.js +1 -1
  95. package/dist/types/composable-editor/editor-internal-compiled.d.ts +0 -6
  96. package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +0 -4
  97. package/dist/types/ui/Appearance/ChromelessEditorContainer.d.ts +10 -7
  98. package/dist/types/ui/Appearance/Comment/Comment.d.ts +24 -2
  99. package/dist/types/ui/Appearance/Comment/FixedToolbar-compiled.d.ts +0 -6
  100. package/dist/types/ui/Appearance/Comment/StickyToolbar-compiled.d.ts +0 -6
  101. package/dist/types/ui/Appearance/FullPage/BeforeWrapper.d.ts +7 -3
  102. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +2 -3
  103. package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +54 -6
  104. package/dist/types/ui/Appearance/FullPage/MainToolbar-compiled.d.ts +0 -6
  105. package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +13 -3
  106. package/dist/types/ui/ChromeCollapsed/ChromeCollapsed-compiled.d.ts +0 -6
  107. package/dist/types/ui/PluginSlot/PluginSlot-compiled.d.ts +0 -6
  108. package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-compiled.d.ts +0 -6
  109. package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.d.ts +0 -6
  110. package/dist/types/ui/WithFlash/index.d.ts +1 -1
  111. package/dist/types/ui/WithFlash/withFlash-compiled.d.ts +0 -6
  112. package/package.json +44 -44
  113. package/dist/cjs/composable-editor/BaseThemeWrapper.js +0 -47
  114. package/dist/cjs/composable-editor/editor-internal-emotion.js +0 -35
  115. package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +0 -36
  116. package/dist/cjs/ui/Appearance/Chromeless-compiled.js +0 -38
  117. package/dist/cjs/ui/Appearance/Chromeless-emotion.js +0 -89
  118. package/dist/cjs/ui/Appearance/Comment/Comment-compiled.js +0 -273
  119. package/dist/cjs/ui/Appearance/Comment/Comment-emotion.js +0 -339
  120. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-emotion.js +0 -89
  121. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-emotion.js +0 -126
  122. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-compiled.js +0 -29
  123. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-emotion.js +0 -34
  124. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +0 -57
  125. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +0 -89
  126. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +0 -13
  127. package/dist/cjs/ui/Appearance/FullPage/FullPage-emotion.js +0 -38
  128. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.js +0 -201
  129. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +0 -398
  130. package/dist/cjs/ui/Appearance/FullPage/MainToolbar-emotion.js +0 -63
  131. package/dist/cjs/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +0 -13
  132. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +0 -35
  133. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +0 -70
  134. package/dist/cjs/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +0 -13
  135. package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +0 -65
  136. package/dist/cjs/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +0 -37
  137. package/dist/cjs/ui/ContextPanel/index-emotion.js +0 -86
  138. package/dist/cjs/ui/PluginSlot/PluginSlot-emotion.js +0 -35
  139. package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +0 -36
  140. package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +0 -32
  141. package/dist/cjs/ui/WithFlash/withFlash-emotion.js +0 -91
  142. package/dist/es2019/composable-editor/BaseThemeWrapper.js +0 -35
  143. package/dist/es2019/composable-editor/editor-internal-emotion.js +0 -27
  144. package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +0 -26
  145. package/dist/es2019/ui/Appearance/Chromeless-compiled.js +0 -30
  146. package/dist/es2019/ui/Appearance/Chromeless-emotion.js +0 -80
  147. package/dist/es2019/ui/Appearance/Comment/Comment-compiled.js +0 -260
  148. package/dist/es2019/ui/Appearance/Comment/Comment-emotion.js +0 -326
  149. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-emotion.js +0 -86
  150. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-emotion.js +0 -123
  151. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-compiled.js +0 -19
  152. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-emotion.js +0 -25
  153. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +0 -47
  154. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +0 -79
  155. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +0 -5
  156. package/dist/es2019/ui/Appearance/FullPage/FullPage-emotion.js +0 -29
  157. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.js +0 -190
  158. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +0 -390
  159. package/dist/es2019/ui/Appearance/FullPage/MainToolbar-emotion.js +0 -53
  160. package/dist/es2019/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +0 -5
  161. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +0 -30
  162. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +0 -65
  163. package/dist/es2019/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +0 -5
  164. package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +0 -59
  165. package/dist/es2019/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +0 -27
  166. package/dist/es2019/ui/ContextPanel/index-emotion.js +0 -74
  167. package/dist/es2019/ui/PluginSlot/PluginSlot-emotion.js +0 -25
  168. package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +0 -28
  169. package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +0 -24
  170. package/dist/es2019/ui/WithFlash/withFlash-emotion.js +0 -75
  171. package/dist/esm/composable-editor/BaseThemeWrapper.js +0 -39
  172. package/dist/esm/composable-editor/editor-internal-emotion.js +0 -28
  173. package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +0 -30
  174. package/dist/esm/ui/Appearance/Chromeless-compiled.js +0 -31
  175. package/dist/esm/ui/Appearance/Chromeless-emotion.js +0 -83
  176. package/dist/esm/ui/Appearance/Comment/Comment-compiled.js +0 -266
  177. package/dist/esm/ui/Appearance/Comment/Comment-emotion.js +0 -328
  178. package/dist/esm/ui/Appearance/Comment/FixedToolbar-emotion.js +0 -81
  179. package/dist/esm/ui/Appearance/Comment/StickyToolbar-emotion.js +0 -119
  180. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-compiled.js +0 -21
  181. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-emotion.js +0 -27
  182. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +0 -49
  183. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +0 -81
  184. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +0 -7
  185. package/dist/esm/ui/Appearance/FullPage/FullPage-emotion.js +0 -31
  186. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.js +0 -194
  187. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +0 -388
  188. package/dist/esm/ui/Appearance/FullPage/MainToolbar-emotion.js +0 -55
  189. package/dist/esm/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +0 -7
  190. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +0 -29
  191. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +0 -62
  192. package/dist/esm/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +0 -7
  193. package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +0 -59
  194. package/dist/esm/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +0 -29
  195. package/dist/esm/ui/ContextPanel/index-emotion.js +0 -79
  196. package/dist/esm/ui/PluginSlot/PluginSlot-emotion.js +0 -29
  197. package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +0 -28
  198. package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +0 -25
  199. package/dist/esm/ui/WithFlash/withFlash-emotion.js +0 -88
  200. package/dist/types/composable-editor/BaseThemeWrapper.d.ts +0 -7
  201. package/dist/types/composable-editor/editor-internal-emotion.d.ts +0 -15
  202. package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.d.ts +0 -12
  203. package/dist/types/ui/Appearance/Chromeless-compiled.d.ts +0 -18
  204. package/dist/types/ui/Appearance/Chromeless-emotion.d.ts +0 -18
  205. package/dist/types/ui/Appearance/Comment/Comment-compiled.d.ts +0 -30
  206. package/dist/types/ui/Appearance/Comment/Comment-emotion.d.ts +0 -20
  207. package/dist/types/ui/Appearance/Comment/FixedToolbar-emotion.d.ts +0 -19
  208. package/dist/types/ui/Appearance/Comment/StickyToolbar-emotion.d.ts +0 -21
  209. package/dist/types/ui/Appearance/FullPage/BeforeWrapper-compiled.d.ts +0 -16
  210. package/dist/types/ui/Appearance/FullPage/BeforeWrapper-emotion.d.ts +0 -16
  211. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.d.ts +0 -3
  212. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.d.ts +0 -14
  213. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapperMigration.d.ts +0 -4
  214. package/dist/types/ui/Appearance/FullPage/FullPage-emotion.d.ts +0 -7
  215. package/dist/types/ui/Appearance/FullPage/FullPageContentArea-compiled.d.ts +0 -57
  216. package/dist/types/ui/Appearance/FullPage/FullPageContentArea-emotion.d.ts +0 -57
  217. package/dist/types/ui/Appearance/FullPage/MainToolbar-emotion.d.ts +0 -21
  218. package/dist/types/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.d.ts +0 -4
  219. package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper-compiled.d.ts +0 -19
  220. package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper-emotion.d.ts +0 -19
  221. package/dist/types/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.d.ts +0 -4
  222. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +0 -19
  223. package/dist/types/ui/ChromeCollapsed/ChromeCollapsed-emotion.d.ts +0 -13
  224. package/dist/types/ui/ContextPanel/index-emotion.d.ts +0 -13
  225. package/dist/types/ui/PluginSlot/PluginSlot-emotion.d.ts +0 -12
  226. package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-emotion.d.ts +0 -17
  227. package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.d.ts +0 -17
  228. package/dist/types/ui/WithFlash/withFlash-emotion.d.ts +0 -19
  229. /package/dist/cjs/ui/Appearance/{Chromeless-compiled.compiled.css → ChromelessEditorContainer.compiled.css} +0 -0
  230. /package/dist/cjs/ui/Appearance/Comment/{Comment-compiled.compiled.css → Comment.compiled.css} +0 -0
  231. /package/dist/cjs/ui/Appearance/FullPage/{BeforeWrapper-compiled.compiled.css → BeforeWrapper.compiled.css} +0 -0
  232. /package/dist/cjs/ui/Appearance/FullPage/{CustomToolbarWrapper-compiled.compiled.css → CustomToolbarWrapper.compiled.css} +0 -0
  233. /package/dist/cjs/ui/Appearance/FullPage/{FullPageContentArea-compiled.compiled.css → FullPageContentArea.compiled.css} +0 -0
  234. /package/dist/cjs/ui/Appearance/FullPage/{MainToolbarWrapper-compiled.compiled.css → MainToolbarWrapper.compiled.css} +0 -0
  235. /package/dist/es2019/ui/Appearance/{Chromeless-compiled.compiled.css → ChromelessEditorContainer.compiled.css} +0 -0
  236. /package/dist/es2019/ui/Appearance/Comment/{Comment-compiled.compiled.css → Comment.compiled.css} +0 -0
  237. /package/dist/es2019/ui/Appearance/FullPage/{BeforeWrapper-compiled.compiled.css → BeforeWrapper.compiled.css} +0 -0
  238. /package/dist/es2019/ui/Appearance/FullPage/{CustomToolbarWrapper-compiled.compiled.css → CustomToolbarWrapper.compiled.css} +0 -0
  239. /package/dist/es2019/ui/Appearance/FullPage/{FullPageContentArea-compiled.compiled.css → FullPageContentArea.compiled.css} +0 -0
  240. /package/dist/es2019/ui/Appearance/FullPage/{MainToolbarWrapper-compiled.compiled.css → MainToolbarWrapper.compiled.css} +0 -0
  241. /package/dist/esm/ui/Appearance/{Chromeless-compiled.compiled.css → ChromelessEditorContainer.compiled.css} +0 -0
  242. /package/dist/esm/ui/Appearance/Comment/{Comment-compiled.compiled.css → Comment.compiled.css} +0 -0
  243. /package/dist/esm/ui/Appearance/FullPage/{BeforeWrapper-compiled.compiled.css → BeforeWrapper.compiled.css} +0 -0
  244. /package/dist/esm/ui/Appearance/FullPage/{CustomToolbarWrapper-compiled.compiled.css → CustomToolbarWrapper.compiled.css} +0 -0
  245. /package/dist/esm/ui/Appearance/FullPage/{FullPageContentArea-compiled.compiled.css → FullPageContentArea.compiled.css} +0 -0
  246. /package/dist/esm/ui/Appearance/FullPage/{MainToolbarWrapper-compiled.compiled.css → MainToolbarWrapper.compiled.css} +0 -0
@@ -1,12 +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
- var ClickAreaBlockContainerMigration = componentWithCondition(function () {
8
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
9
- }, ClickAreaBlockContainerCompiled, ClickAreaBlockContainerEmotion);
10
4
  export var ClickAreaBlock = function ClickAreaBlock(_ref) {
11
5
  var editorView = _ref.editorView,
12
6
  editorDisabled = _ref.editorDisabled,
@@ -19,7 +13,7 @@ export var ClickAreaBlock = function ClickAreaBlock(_ref) {
19
13
  clickAreaClickHandler(editorView, event);
20
14
  }
21
15
  }, [editorView, editorDisabled]);
22
- return /*#__PURE__*/React.createElement(ClickAreaBlockContainerMigration, {
16
+ return /*#__PURE__*/React.createElement(ClickAreaBlockContainerCompiled, {
23
17
  "data-editor-click-wrapper": true,
24
18
  "data-testid": "click-wrapper",
25
19
  onMouseDown: handleMouseDown
@@ -1,14 +1,25 @@
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 var ChromelessEditorContainer = componentWithCondition(function () {
13
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
14
- }, 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
+ var 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 var ChromelessEditorContainer = function ChromelessEditorContainer(_ref) {
10
+ var children = _ref.children,
11
+ containerRef = _ref.containerRef,
12
+ maxHeight = _ref.maxHeight,
13
+ minHeight = _ref.minHeight;
14
+ return /*#__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 ? "".concat(maxHeight, "px") : undefined,
19
+ minHeight: "".concat(minHeight, "px")
20
+ },
21
+ ref: containerRef,
22
+ "data-testid": "chromeless-editor",
23
+ id: "chromeless-editor"
24
+ }, children);
25
+ };
@@ -1,7 +1,260 @@
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 var CommentEditorWithIntl = componentWithCondition(function () {
6
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
7
- }, CommentEditorWithIntlCompiled, CommentEditorWithIntlEmotion);
1
+ /* Comment.tsx generated by @compiled/babel-plugin v3.0.2 */
2
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
+ import "./Comment.compiled.css";
5
+ import { ax, ix } from "@compiled/react/runtime";
6
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
+ import React, { useCallback, useEffect, useMemo, useState } from 'react';
9
+ import classnames from 'classnames';
10
+ import { useIntl } from 'react-intl';
11
+ import ButtonGroup from '@atlaskit/button/button-group';
12
+ import Button from '@atlaskit/button/default/button';
13
+ import { useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
14
+ import messages from '@atlaskit/editor-common/messages';
15
+ import { WidthConsumer, WidthProvider } from '@atlaskit/editor-common/ui';
16
+ import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
17
+ import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
18
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
19
+ // Ignored via go/ees005
20
+ // eslint-disable-next-line import/no-named-as-default
21
+ import ClickAreaBlock from '../../Addon/ClickAreaBlock';
22
+ import { contentComponentClickWrapper } from '../../Addon/ClickAreaBlock/contentComponentWrapper';
23
+ import EditorContentContainer from '../../EditorContentContainer/EditorContentContainer';
24
+ import PluginSlot from '../../PluginSlot';
25
+ import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
26
+ import { ToolbarWithSizeDetector as Toolbar } from '../../Toolbar/ToolbarWithSizeDetector';
27
+ import WithFlash from '../../WithFlash';
28
+ import { CommentToolbar } from './CommentToolbar';
29
+ import { MainToolbar } from './Toolbar';
30
+ var commentEditorCompiledStyles = {
31
+ commentEditor: "_19itno8c _2rko1qi0 _1e0c1txw _2lx21bp4 _1ul9clpc _4t3i1wug _bfhk1j9a _vchhusvi _p12f1kw7 _slp31hna _13dfutpp _gzr8u2gc _ghozu2gc _oafwu2gc",
32
+ modernisedEditor: "_2rkopb1k",
33
+ secondaryToolbar: "_vchhusvi _1bahesu3 _4cvr1h6o _1e0c1txw _ca0qutpp _u5f3v77o _n3tdutpp _19bvv77o",
34
+ mainToolbarCustomComponentsSlotNew: "_1e0c1txw _1bahesu3 _4cvr1h6o _16jlkb7n _u5f3v47k _p7r11txw _t1edidpf",
35
+ mainToolbarCustomComponentsSlotPaddingOverride: "_u5f3idpf",
36
+ mainToolbarCustomComponentsSlotTwoLineToolbar: "_xugcidpf",
37
+ contentAreaMaxHeight: "_c71lmz22 _18m91wug"
38
+ };
39
+ var appearance = 'comment';
40
+ export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
41
+ var _editorAPI$blockMenu$, _editorAPI$blockMenu;
42
+ var editorAPI = props.editorAPI;
43
+
44
+ // Get useStandardNodeWidth from block menu plugin shared state
45
+ // Only access editorAPI when the experiment is enabled to avoid performance impact
46
+ var useStandardNodeWidth = editorExperiment('platform_editor_controls', 'variant1') && ((_editorAPI$blockMenu$ = editorAPI === null || editorAPI === void 0 || (_editorAPI$blockMenu = editorAPI.blockMenu) === null || _editorAPI$blockMenu === void 0 || (_editorAPI$blockMenu = _editorAPI$blockMenu.sharedState) === null || _editorAPI$blockMenu === void 0 || (_editorAPI$blockMenu = _editorAPI$blockMenu.currentState()) === null || _editorAPI$blockMenu === void 0 ? void 0 : _editorAPI$blockMenu.useStandardNodeWidth) !== null && _editorAPI$blockMenu$ !== void 0 ? _editorAPI$blockMenu$ : false);
47
+ var _useSharedPluginState = useSharedPluginStateWithSelector(editorAPI, ['maxContentSize', 'primaryToolbar', 'editorViewMode'], function (states) {
48
+ var _states$maxContentSiz, _states$primaryToolba, _states$editorViewMod;
49
+ return {
50
+ maxContentSizeReached: !!((_states$maxContentSiz = states.maxContentSizeState) !== null && _states$maxContentSiz !== void 0 && _states$maxContentSiz.maxContentSizeReached),
51
+ primaryToolbarComponentsState: (_states$primaryToolba = states.primaryToolbarState) === null || _states$primaryToolba === void 0 ? void 0 : _states$primaryToolba.components,
52
+ editorViewMode: (_states$editorViewMod = states.editorViewModeState) === null || _states$editorViewMod === void 0 ? void 0 : _states$editorViewMod.mode
53
+ };
54
+ }),
55
+ editorViewMode = _useSharedPluginState.editorViewMode,
56
+ primaryToolbarComponentsState = _useSharedPluginState.primaryToolbarComponentsState,
57
+ maxContentSizeReached = _useSharedPluginState.maxContentSizeReached;
58
+ var primaryToolbarState = getPrimaryToolbarComponents(editorAPI, primaryToolbarComponentsState);
59
+ var _useSharedPluginState2 = useSharedPluginState(editorAPI, ['media']),
60
+ mediaState = _useSharedPluginState2.mediaState;
61
+ var intl = useIntl();
62
+ var editorDOMElement = props.editorDOMElement,
63
+ editorView = props.editorView,
64
+ editorActions = props.editorActions,
65
+ eventDispatcher = props.eventDispatcher,
66
+ providerFactory = props.providerFactory,
67
+ contentComponents = props.contentComponents,
68
+ customContentComponents = props.customContentComponents,
69
+ customPrimaryToolbarComponents = props.customPrimaryToolbarComponents,
70
+ primaryToolbarComponentsProp = props.primaryToolbarComponents,
71
+ customSecondaryToolbarComponents = props.customSecondaryToolbarComponents,
72
+ popupsMountPoint = props.popupsMountPoint,
73
+ popupsBoundariesElement = props.popupsBoundariesElement,
74
+ popupsScrollableElement = props.popupsScrollableElement,
75
+ maxHeight = props.maxHeight,
76
+ _props$minHeight = props.minHeight,
77
+ minHeight = _props$minHeight === void 0 ? 150 : _props$minHeight,
78
+ onSave = props.onSave,
79
+ onCancel = props.onCancel,
80
+ disabled = props.disabled,
81
+ dispatchAnalyticsEvent = props.dispatchAnalyticsEvent,
82
+ useStickyToolbar = props.useStickyToolbar,
83
+ pluginHooks = props.pluginHooks,
84
+ featureFlags = props.featureFlags,
85
+ innerRef = props.innerRef,
86
+ isEditorModernisationEnabled = props.isEditorModernisationEnabled;
87
+ var showSecondaryToolbar = !!onSave || !!onCancel || !!customSecondaryToolbarComponents;
88
+ var containerElement = React.useRef(null);
89
+
90
+ // Wrapper container for toolbar and content area
91
+ var wrapperElementRef = useMemo(function () {
92
+ return innerRef || /*#__PURE__*/React.createRef();
93
+ }, [innerRef]);
94
+ var _useState = useState(false),
95
+ _useState2 = _slicedToArray(_useState, 2),
96
+ saveButtonDisabled = _useState2[0],
97
+ setSaveButtonDisabled = _useState2[1];
98
+ useEffect(function () {
99
+ if (mediaState) {
100
+ mediaState.subscribeToUploadInProgressState(setSaveButtonDisabled);
101
+ }
102
+ return function () {
103
+ return mediaState === null || mediaState === void 0 ? void 0 : mediaState.unsubscribeFromUploadInProgressState(setSaveButtonDisabled);
104
+ };
105
+ }, [mediaState]);
106
+ var handleSave = useCallback(function () {
107
+ if (editorView && onSave) {
108
+ onSave(editorView);
109
+ }
110
+ }, [editorView, onSave]);
111
+ var handleCancel = useCallback(function () {
112
+ if (editorView && onCancel) {
113
+ onCancel(editorView);
114
+ }
115
+ }, [editorView, onCancel]);
116
+ var isShortcutToFocusToolbar = useCallback(function (event) {
117
+ //Alt + F9 to reach first element in this main toolbar
118
+ return event.altKey && (event.key === 'F9' || event.keyCode === 120);
119
+ }, []);
120
+
121
+ // When primary toolbar components is undefined, do not show two line editor toolbar
122
+ var isTwoLineToolbarEnabled = !!customPrimaryToolbarComponents;
123
+ var handleEscape = useCallback(function (event) {
124
+ if (!(editorView !== null && editorView !== void 0 && editorView.hasFocus())) {
125
+ editorView === null || editorView === void 0 || editorView.focus();
126
+ }
127
+ event.preventDefault();
128
+ event.stopPropagation();
129
+ }, [editorView]);
130
+ var primaryToolbarComponents = primaryToolbarComponentsProp;
131
+ if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
132
+ primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
133
+ }
134
+ var isToolbarAIFCEnabled = Boolean(editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.toolbar);
135
+ var wrapperStyle = useMemo(function () {
136
+ return _objectSpread({
137
+ minHeight: "".concat(minHeight, "px")
138
+ }, maxHeight ? {
139
+ '--comment-editor-max-height': "".concat(maxHeight, "px")
140
+ } : {});
141
+ }, [minHeight, maxHeight]);
142
+ var customToolbarSlot = /*#__PURE__*/React.createElement("div", {
143
+ className: ax([commentEditorCompiledStyles.mainToolbarCustomComponentsSlotNew, isTwoLineToolbarEnabled && commentEditorCompiledStyles.mainToolbarCustomComponentsSlotTwoLineToolbar, isToolbarAIFCEnabled && commentEditorCompiledStyles.mainToolbarCustomComponentsSlotPaddingOverride])
144
+ }, customPrimaryToolbarComponents);
145
+ return /*#__PURE__*/React.createElement(WithFlash, {
146
+ animate: maxContentSizeReached
147
+ }, /*#__PURE__*/React.createElement(WidthProvider, null, /*#__PURE__*/React.createElement("div", {
148
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- dynamic minHeight/maxHeight from props
149
+ style: wrapperStyle
150
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
151
+ ,
152
+ className: ax([commentEditorCompiledStyles.commentEditor, isEditorModernisationEnabled && commentEditorCompiledStyles.modernisedEditor, "akEditor"]),
153
+ ref: wrapperElementRef
154
+ }, /*#__PURE__*/React.createElement(MainToolbar, {
155
+ isEditorModernisationEnabled: isEditorModernisationEnabled,
156
+ useStickyToolbar: useStickyToolbar,
157
+ twoLineEditorToolbar: isTwoLineToolbarEnabled,
158
+ isNewToolbarEnabled: isToolbarAIFCEnabled
159
+ }, isToolbarAIFCEnabled ? /*#__PURE__*/React.createElement(ToolbarArrowKeyNavigationProvider, {
160
+ editorView: editorView,
161
+ childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
162
+ isShortcutToFocusToolbar: isShortcutToFocusToolbar,
163
+ handleEscape: handleEscape,
164
+ editorAppearance: appearance,
165
+ useStickyToolbar: useStickyToolbar,
166
+ intl: intl
167
+ }, /*#__PURE__*/React.createElement(CommentToolbar, {
168
+ editorAPI: editorAPI,
169
+ editorView: editorView,
170
+ editorAppearance: appearance,
171
+ disabled: !!disabled,
172
+ popupsBoundariesElement: popupsBoundariesElement,
173
+ popupsScrollableElement: popupsScrollableElement,
174
+ popupsMountPoint: popupsMountPoint
175
+ }), customPrimaryToolbarComponents ? customToolbarSlot : null) : /*#__PURE__*/React.createElement(ToolbarArrowKeyNavigationProvider, {
176
+ editorView: editorView,
177
+ childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
178
+ isShortcutToFocusToolbar: isShortcutToFocusToolbar,
179
+ handleEscape: handleEscape,
180
+ editorAppearance: appearance,
181
+ useStickyToolbar: useStickyToolbar,
182
+ intl: intl
183
+ }, /*#__PURE__*/React.createElement(Toolbar
184
+ // Ignored via go/ees005
185
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
186
+ , {
187
+ editorView: editorView,
188
+ editorActions: editorActions
189
+ // Ignored via go/ees005
190
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
191
+ ,
192
+ eventDispatcher: eventDispatcher
193
+ // Ignored via go/ees005
194
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
195
+ ,
196
+ providerFactory: providerFactory,
197
+ appearance: appearance,
198
+ items: primaryToolbarComponents,
199
+ popupsMountPoint: popupsMountPoint,
200
+ popupsBoundariesElement: popupsBoundariesElement,
201
+ popupsScrollableElement: popupsScrollableElement,
202
+ disabled: !!disabled,
203
+ dispatchAnalyticsEvent: dispatchAnalyticsEvent,
204
+ containerElement: containerElement.current,
205
+ twoLineEditorToolbar: isTwoLineToolbarEnabled
206
+ }), customToolbarSlot)), /*#__PURE__*/React.createElement(ClickAreaBlock, {
207
+ editorView: editorView,
208
+ editorDisabled: disabled
209
+ }, /*#__PURE__*/React.createElement(WidthConsumer, null, function (_ref) {
210
+ var width = _ref.width;
211
+ return /*#__PURE__*/React.createElement(EditorContentContainer, {
212
+ ref: containerElement,
213
+ isScrollable: maxHeight ? true : undefined
214
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
215
+ ,
216
+ className: ax([maxHeight && commentEditorCompiledStyles.contentAreaMaxHeight, classnames('ak-editor-content-area', {
217
+ 'less-margin': width < akEditorMobileBreakoutPoint
218
+ })]),
219
+ featureFlags: featureFlags,
220
+ viewMode: editorViewMode,
221
+ appearance: appearance,
222
+ useStandardNodeWidth: useStandardNodeWidth
223
+ }, customContentComponents && 'before' in customContentComponents ? contentComponentClickWrapper(customContentComponents.before) : contentComponentClickWrapper(customContentComponents), /*#__PURE__*/React.createElement(PluginSlot, {
224
+ editorView: editorView,
225
+ editorActions: editorActions,
226
+ eventDispatcher: eventDispatcher,
227
+ dispatchAnalyticsEvent: dispatchAnalyticsEvent,
228
+ providerFactory: providerFactory,
229
+ appearance: appearance,
230
+ items: contentComponents,
231
+ popupsMountPoint: popupsMountPoint,
232
+ popupsBoundariesElement: popupsBoundariesElement,
233
+ popupsScrollableElement: popupsScrollableElement,
234
+ containerElement: containerElement.current,
235
+ disabled: !!disabled,
236
+ wrapperElement: wrapperElementRef.current,
237
+ pluginHooks: pluginHooks
238
+ }), editorDOMElement, customContentComponents && 'after' in customContentComponents ? contentComponentClickWrapper(customContentComponents.after) : null);
239
+ }))), showSecondaryToolbar && /*#__PURE__*/React.createElement("div", {
240
+ "data-testid": "ak-editor-secondary-toolbar",
241
+ className: ax([commentEditorCompiledStyles.secondaryToolbar])
242
+ }, /*#__PURE__*/React.createElement(ButtonGroup, null, !!onSave && /*#__PURE__*/React.createElement(Button, {
243
+ appearance: "primary",
244
+ onClick: handleSave,
245
+ testId: "comment-save-button",
246
+ isDisabled: disabled || saveButtonDisabled,
247
+ interactionName: "editor-comment-save-button"
248
+ }, intl.formatMessage(messages.saveButton)), !!onCancel && /*#__PURE__*/React.createElement(Button, {
249
+ appearance: "subtle",
250
+ onClick: handleCancel,
251
+ testId: "comment-cancel-button",
252
+ isDisabled: disabled,
253
+ interactionName: "editor-comment-cancel-button"
254
+ }, intl.formatMessage(messages.cancelButton))), /*#__PURE__*/React.createElement("span", {
255
+ style: {
256
+ flexGrow: 1
257
+ }
258
+ }), customSecondaryToolbarComponents)));
259
+ };
260
+ 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';
@@ -2,13 +2,6 @@
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import "./StickyToolbar-compiled.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
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
-
12
5
  import React, { useEffect, useMemo, useState } from 'react';
13
6
  var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
14
7
  var akEditorMenuZIndex = 500;
@@ -1,18 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _typeof from "@babel/runtime/helpers/typeof";
3
3
  import React from 'react';
4
- import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
5
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
6
4
  import { FixedToolbarCompiled } from './FixedToolbar-compiled';
7
- import { FixedToolbarEmotion } from './FixedToolbar-emotion';
8
5
  import { StickyToolbarCompiled } from './StickyToolbar-compiled';
9
- import { StickyToolbarEmotion } from './StickyToolbar-emotion';
10
- var StickyToolbarMigration = componentWithCondition(function () {
11
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
12
- }, StickyToolbarCompiled, StickyToolbarEmotion);
13
- var FixedToolbarMigration = componentWithCondition(function () {
14
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
15
- }, FixedToolbarCompiled, FixedToolbarEmotion);
16
6
 
17
7
  /**
18
8
  * ED-15802: Scenarios when a sticky bar is used:
@@ -48,7 +38,7 @@ export var MainToolbar = function MainToolbar(_ref) {
48
38
  isEditorModernisationEnabled = _ref.isEditorModernisationEnabled,
49
39
  isNewToolbarEnabled = _ref.isNewToolbarEnabled;
50
40
  if (useStickyToolbar) {
51
- return /*#__PURE__*/React.createElement(StickyToolbarMigration
41
+ return /*#__PURE__*/React.createElement(StickyToolbarCompiled
52
42
  // Ignored via go/ees005
53
43
  // eslint-disable-next-line react/jsx-props-no-spreading
54
44
  , _extends({}, getStickyParameters(useStickyToolbar), {
@@ -57,7 +47,7 @@ export var MainToolbar = function MainToolbar(_ref) {
57
47
  isNewToolbarEnabled: isNewToolbarEnabled
58
48
  }), children);
59
49
  }
60
- return /*#__PURE__*/React.createElement(FixedToolbarMigration, {
50
+ return /*#__PURE__*/React.createElement(FixedToolbarCompiled, {
61
51
  isEditorModernisationEnabled: isEditorModernisationEnabled,
62
52
  twoLineEditorToolbar: twoLineEditorToolbar,
63
53
  isNewToolbarEnabled: isNewToolbarEnabled
@@ -1,9 +1,15 @@
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
+ var 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 var BeforePrimaryToolbarWrapper = componentWithCondition(function () {
8
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
9
- }, BeforePrimaryToolbarWrapperCompiled, BeforePrimaryToolbarWrapperEmotion);
10
+ export var BeforePrimaryToolbarWrapper = function BeforePrimaryToolbarWrapper(props) {
11
+ return /*#__PURE__*/React.createElement("div", {
12
+ "data-testid": 'before-primary-toolbar-components-plugin',
13
+ className: ax([styles.beforePrimaryToolbarPluginWrapper])
14
+ }, props.beforePrimaryToolbarComponents);
15
+ };
@@ -1,14 +1,43 @@
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
+ var firstChildStyles = {
6
+ base: "_1e0c1txw _16jlkb7n",
7
+ twoLine: "_u89dkb7n _9gudkb7n _1hoh1osq _8o3817qo _lhl4esu3 _1s2p1ns9"
8
+ };
9
+ var 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 var MainToolbarForFirstChildWrapper = componentWithCondition(function () {
7
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
8
- }, MainToolbarForFirstChildWrapperCompiled, MainToolbarForFirstChildWrapperEmotion);
15
+ export var MainToolbarForFirstChildWrapper = function MainToolbarForFirstChildWrapper(_ref) {
16
+ var twoLineEditorToolbar = _ref.twoLineEditorToolbar,
17
+ children = _ref.children,
18
+ role = _ref.role,
19
+ ariaLabel = _ref['aria-label'],
20
+ testId = _ref['data-testid'];
21
+ return /*#__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);
27
+ };
9
28
 
10
29
  // ---------------- Second child wrapper ----------------
11
30
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
12
- export var MainToolbarForSecondChildWrapper = componentWithCondition(function () {
13
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
14
- }, MainToolbarForSecondChildWrapperCompiled, MainToolbarForSecondChildWrapperEmotion);
31
+ export var MainToolbarForSecondChildWrapper = function MainToolbarForSecondChildWrapper(_ref2) {
32
+ var twoLineEditorToolbar = _ref2.twoLineEditorToolbar,
33
+ children = _ref2.children,
34
+ role = _ref2.role,
35
+ ariaLabel = _ref2['aria-label'],
36
+ testId = _ref2['data-testid'];
37
+ return /*#__PURE__*/React.createElement("div", {
38
+ role: role,
39
+ "aria-label": ariaLabel,
40
+ "data-testid": testId,
41
+ className: ax([secondChildStyles.base, twoLineEditorToolbar && secondChildStyles.twoLine])
42
+ }, children);
43
+ };
@@ -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";
@@ -6,19 +6,14 @@ import { SSRRenderMeasure } from '@atlaskit/editor-common/performance/ssr-measur
6
6
  import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
7
7
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
8
8
  import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
9
- import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
10
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
11
10
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
11
  import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
13
12
  import { FullPageEditorWrapperCompiled } from './FullPage-compiled';
14
- import { FullPageEditorWrapperEmotion } from './FullPage-emotion';
15
13
  import { FullPageContentArea } from './FullPageContentArea';
16
14
  import { FullPageToolbar } from './FullPageToolbar';
17
15
  import { FullPageToolbarNext } from './FullPageToolbarNext';
18
16
  var SSR_TRACE_SEGMENT_NAME = 'reactEditorView/fullPageAppearance';
19
- var FullPageEditorWrapperMigration = componentWithCondition(function () {
20
- return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
21
- }, FullPageEditorWrapperCompiled, FullPageEditorWrapperEmotion);
22
17
  var useShowKeyline = function useShowKeyline(contentAreaRef) {
23
18
  var _useState = useState(false),
24
19
  _useState2 = _slicedToArray(_useState, 2),
@@ -119,7 +114,7 @@ export var FullPageEditor = function FullPageEditor(props) {
119
114
  segmentName: SSR_TRACE_SEGMENT_NAME,
120
115
  startTimestampRef: firstRenderStartTimestampRef,
121
116
  onSSRMeasure: props.onSSRMeasure
122
- }, /*#__PURE__*/React.createElement(ContextPanelWidthProvider, null, /*#__PURE__*/React.createElement(FullPageEditorWrapperMigration
117
+ }, /*#__PURE__*/React.createElement(ContextPanelWidthProvider, null, /*#__PURE__*/React.createElement(FullPageEditorWrapperCompiled
123
118
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
124
119
  , {
125
120
  className: "akEditor",