@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,89 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.ChromelessEditorContainerEmotion = void 0;
8
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
- var _react = require("@emotion/react");
10
- var _excluded = ["children", "containerRef", "maxHeight", "minHeight"];
11
- /**
12
- * @jsxRuntime classic
13
- * @jsx jsx
14
- */
15
- /**
16
- * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
17
- * Used via `componentWithCondition` in `Chromeless.tsx`.
18
- *
19
- * Cleanup: delete this file once the experiment has shipped.
20
- */
21
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback; jsx required at runtime for @jsxRuntime classic
22
- var scrollbarStylesNew = (0, _react.css)({
23
- msOverflowStyle: '-ms-autohiding-scrollbar',
24
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
25
- '&::-webkit-scrollbar-corner': {
26
- display: 'none'
27
- },
28
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
29
- '&::-webkit-scrollbar-thumb': {
30
- backgroundColor: "var(--ds-background-neutral-subtle, #00000000)"
31
- },
32
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
33
- '&:hover::-webkit-scrollbar-thumb': {
34
- backgroundColor: "var(--ds-background-neutral-bold, #292A2E)",
35
- borderRadius: "var(--ds-radius-large, 8px)"
36
- },
37
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
38
- '&::-webkit-scrollbar-thumb:hover': {
39
- backgroundColor: "var(--ds-background-neutral-bold-hovered, #3B3D42)"
40
- }
41
- });
42
- var chromelessEditorStylesNew = (0, _react.css)({
43
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
44
- lineHeight: '20px',
45
- height: 'auto',
46
- overflowX: 'hidden',
47
- overflowY: 'auto',
48
- maxWidth: 'inherit',
49
- boxSizing: 'border-box',
50
- wordWrap: 'break-word',
51
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
52
- 'div > .ProseMirror': {
53
- outline: 'none',
54
- whiteSpace: 'pre-wrap',
55
- padding: 0,
56
- margin: 0,
57
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
58
- '& > :last-child': {
59
- paddingBottom: "var(--ds-space-100, 8px)"
60
- }
61
- },
62
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
63
- '.ProseMirror': {
64
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
65
- '& > p:last-of-type': {
66
- marginBottom: "var(--ds-space-0, 0px)"
67
- }
68
- }
69
- });
70
- var ChromelessEditorContainerEmotion = exports.ChromelessEditorContainerEmotion = function ChromelessEditorContainerEmotion(_ref) {
71
- var children = _ref.children,
72
- containerRef = _ref.containerRef,
73
- maxHeight = _ref.maxHeight,
74
- minHeight = _ref.minHeight,
75
- rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
76
- return (0, _react.jsx)("div", {
77
- css: [chromelessEditorStylesNew, scrollbarStylesNew]
78
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
79
- ,
80
- className: "akEditor",
81
- style: {
82
- maxHeight: maxHeight ? "".concat(maxHeight, "px") : undefined,
83
- minHeight: "".concat(minHeight, "px")
84
- },
85
- ref: containerRef,
86
- "data-testid": "chromeless-editor",
87
- id: "chromeless-editor"
88
- }, children);
89
- };
@@ -1,273 +0,0 @@
1
- /* Comment-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
2
- "use strict";
3
-
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
- var _typeof = require("@babel/runtime/helpers/typeof");
6
- Object.defineProperty(exports, "__esModule", {
7
- value: true
8
- });
9
- exports.CommentEditorWithIntlCompiled = void 0;
10
- require("./Comment-compiled.compiled.css");
11
- var _runtime = require("@compiled/react/runtime");
12
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
14
- var _react = _interopRequireWildcard(require("react"));
15
- var _classnames = _interopRequireDefault(require("classnames"));
16
- var _reactIntl = require("react-intl");
17
- var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
18
- var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
19
- var _hooks = require("@atlaskit/editor-common/hooks");
20
- var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages"));
21
- var _ui = require("@atlaskit/editor-common/ui");
22
- var _uiMenu = require("@atlaskit/editor-common/ui-menu");
23
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
24
- var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
25
- var _ClickAreaBlock = _interopRequireDefault(require("../../Addon/ClickAreaBlock"));
26
- var _contentComponentWrapper = require("../../Addon/ClickAreaBlock/contentComponentWrapper");
27
- var _EditorContentContainer = _interopRequireDefault(require("../../EditorContentContainer/EditorContentContainer"));
28
- var _PluginSlot = _interopRequireDefault(require("../../PluginSlot"));
29
- var _getPrimaryToolbarComponents = require("../../Toolbar/getPrimaryToolbarComponents");
30
- var _ToolbarWithSizeDetector = require("../../Toolbar/ToolbarWithSizeDetector");
31
- var _WithFlash = _interopRequireDefault(require("../../WithFlash"));
32
- var _CommentToolbar = require("./CommentToolbar");
33
- var _Toolbar = require("./Toolbar");
34
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
35
- 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; }
36
- 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) { (0, _defineProperty2.default)(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; } /**
37
- * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
38
- * Used via `componentWithCondition` in `Comment.tsx`.
39
- *
40
- * Cleanup: delete this file once the experiment has shipped.
41
- */ // Ignored via go/ees005
42
- // eslint-disable-next-line import/no-named-as-default
43
- var commentEditorCompiledStyles = {
44
- commentEditor: "_19itno8c _2rko1qi0 _1e0c1txw _2lx21bp4 _1ul9clpc _4t3i1wug _bfhk1j9a _vchhusvi _p12f1kw7 _slp31hna _13dfutpp _gzr8u2gc _ghozu2gc _oafwu2gc",
45
- modernisedEditor: "_2rkopb1k",
46
- secondaryToolbar: "_vchhusvi _1bahesu3 _4cvr1h6o _1e0c1txw _ca0qutpp _u5f3v77o _n3tdutpp _19bvv77o",
47
- mainToolbarCustomComponentsSlotNew: "_1e0c1txw _1bahesu3 _4cvr1h6o _16jlkb7n _u5f3v47k _p7r11txw _t1edidpf",
48
- mainToolbarCustomComponentsSlotPaddingOverride: "_u5f3idpf",
49
- mainToolbarCustomComponentsSlotTwoLineToolbar: "_xugcidpf",
50
- contentAreaMaxHeight: "_c71lmz22 _18m91wug"
51
- };
52
- var appearance = 'comment';
53
- var CommentEditorWithIntlCompiled = exports.CommentEditorWithIntlCompiled = function CommentEditorWithIntlCompiled(props) {
54
- var _editorAPI$blockMenu$, _editorAPI$blockMenu;
55
- var editorAPI = props.editorAPI;
56
-
57
- // Get useStandardNodeWidth from block menu plugin shared state
58
- // Only access editorAPI when the experiment is enabled to avoid performance impact
59
- var useStandardNodeWidth = (0, _editorExperiment.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);
60
- var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(editorAPI, ['maxContentSize', 'primaryToolbar', 'editorViewMode'], function (states) {
61
- var _states$maxContentSiz, _states$primaryToolba, _states$editorViewMod;
62
- return {
63
- maxContentSizeReached: !!((_states$maxContentSiz = states.maxContentSizeState) !== null && _states$maxContentSiz !== void 0 && _states$maxContentSiz.maxContentSizeReached),
64
- primaryToolbarComponentsState: (_states$primaryToolba = states.primaryToolbarState) === null || _states$primaryToolba === void 0 ? void 0 : _states$primaryToolba.components,
65
- editorViewMode: (_states$editorViewMod = states.editorViewModeState) === null || _states$editorViewMod === void 0 ? void 0 : _states$editorViewMod.mode
66
- };
67
- }),
68
- editorViewMode = _useSharedPluginState.editorViewMode,
69
- primaryToolbarComponentsState = _useSharedPluginState.primaryToolbarComponentsState,
70
- maxContentSizeReached = _useSharedPluginState.maxContentSizeReached;
71
- var primaryToolbarState = (0, _getPrimaryToolbarComponents.getPrimaryToolbarComponents)(editorAPI, primaryToolbarComponentsState);
72
- var _useSharedPluginState2 = (0, _hooks.useSharedPluginState)(editorAPI, ['media']),
73
- mediaState = _useSharedPluginState2.mediaState;
74
- var intl = (0, _reactIntl.useIntl)();
75
- var editorDOMElement = props.editorDOMElement,
76
- editorView = props.editorView,
77
- editorActions = props.editorActions,
78
- eventDispatcher = props.eventDispatcher,
79
- providerFactory = props.providerFactory,
80
- contentComponents = props.contentComponents,
81
- customContentComponents = props.customContentComponents,
82
- customPrimaryToolbarComponents = props.customPrimaryToolbarComponents,
83
- primaryToolbarComponentsProp = props.primaryToolbarComponents,
84
- customSecondaryToolbarComponents = props.customSecondaryToolbarComponents,
85
- popupsMountPoint = props.popupsMountPoint,
86
- popupsBoundariesElement = props.popupsBoundariesElement,
87
- popupsScrollableElement = props.popupsScrollableElement,
88
- maxHeight = props.maxHeight,
89
- _props$minHeight = props.minHeight,
90
- minHeight = _props$minHeight === void 0 ? 150 : _props$minHeight,
91
- onSave = props.onSave,
92
- onCancel = props.onCancel,
93
- disabled = props.disabled,
94
- dispatchAnalyticsEvent = props.dispatchAnalyticsEvent,
95
- useStickyToolbar = props.useStickyToolbar,
96
- pluginHooks = props.pluginHooks,
97
- featureFlags = props.featureFlags,
98
- innerRef = props.innerRef,
99
- isEditorModernisationEnabled = props.isEditorModernisationEnabled;
100
- var showSecondaryToolbar = !!onSave || !!onCancel || !!customSecondaryToolbarComponents;
101
- var containerElement = _react.default.useRef(null);
102
-
103
- // Wrapper container for toolbar and content area
104
- var wrapperElementRef = (0, _react.useMemo)(function () {
105
- return innerRef || /*#__PURE__*/_react.default.createRef();
106
- }, [innerRef]);
107
- var _useState = (0, _react.useState)(false),
108
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
109
- saveButtonDisabled = _useState2[0],
110
- setSaveButtonDisabled = _useState2[1];
111
- (0, _react.useEffect)(function () {
112
- if (mediaState) {
113
- mediaState.subscribeToUploadInProgressState(setSaveButtonDisabled);
114
- }
115
- return function () {
116
- return mediaState === null || mediaState === void 0 ? void 0 : mediaState.unsubscribeFromUploadInProgressState(setSaveButtonDisabled);
117
- };
118
- }, [mediaState]);
119
- var handleSave = (0, _react.useCallback)(function () {
120
- if (editorView && onSave) {
121
- onSave(editorView);
122
- }
123
- }, [editorView, onSave]);
124
- var handleCancel = (0, _react.useCallback)(function () {
125
- if (editorView && onCancel) {
126
- onCancel(editorView);
127
- }
128
- }, [editorView, onCancel]);
129
- var isShortcutToFocusToolbar = (0, _react.useCallback)(function (event) {
130
- //Alt + F9 to reach first element in this main toolbar
131
- return event.altKey && (event.key === 'F9' || event.keyCode === 120);
132
- }, []);
133
-
134
- // When primary toolbar components is undefined, do not show two line editor toolbar
135
- var isTwoLineToolbarEnabled = !!customPrimaryToolbarComponents;
136
- var handleEscape = (0, _react.useCallback)(function (event) {
137
- if (!(editorView !== null && editorView !== void 0 && editorView.hasFocus())) {
138
- editorView === null || editorView === void 0 || editorView.focus();
139
- }
140
- event.preventDefault();
141
- event.stopPropagation();
142
- }, [editorView]);
143
- var primaryToolbarComponents = primaryToolbarComponentsProp;
144
- if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
145
- primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
146
- }
147
- var isToolbarAIFCEnabled = Boolean(editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.toolbar);
148
- var wrapperStyle = (0, _react.useMemo)(function () {
149
- return _objectSpread({
150
- minHeight: "".concat(minHeight, "px")
151
- }, maxHeight ? {
152
- '--comment-editor-max-height': "".concat(maxHeight, "px")
153
- } : {});
154
- }, [minHeight, maxHeight]);
155
- var customToolbarSlot = /*#__PURE__*/_react.default.createElement("div", {
156
- className: (0, _runtime.ax)([commentEditorCompiledStyles.mainToolbarCustomComponentsSlotNew, isTwoLineToolbarEnabled && commentEditorCompiledStyles.mainToolbarCustomComponentsSlotTwoLineToolbar, isToolbarAIFCEnabled && commentEditorCompiledStyles.mainToolbarCustomComponentsSlotPaddingOverride])
157
- }, customPrimaryToolbarComponents);
158
- return /*#__PURE__*/_react.default.createElement(_WithFlash.default, {
159
- animate: maxContentSizeReached
160
- }, /*#__PURE__*/_react.default.createElement(_ui.WidthProvider, null, /*#__PURE__*/_react.default.createElement("div", {
161
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- dynamic minHeight/maxHeight from props
162
- style: wrapperStyle
163
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
164
- ,
165
- className: (0, _runtime.ax)([commentEditorCompiledStyles.commentEditor, isEditorModernisationEnabled && commentEditorCompiledStyles.modernisedEditor, "akEditor"]),
166
- ref: wrapperElementRef
167
- }, /*#__PURE__*/_react.default.createElement(_Toolbar.MainToolbar, {
168
- isEditorModernisationEnabled: isEditorModernisationEnabled,
169
- useStickyToolbar: useStickyToolbar,
170
- twoLineEditorToolbar: isTwoLineToolbarEnabled,
171
- isNewToolbarEnabled: isToolbarAIFCEnabled
172
- }, isToolbarAIFCEnabled ? /*#__PURE__*/_react.default.createElement(_uiMenu.ToolbarArrowKeyNavigationProvider, {
173
- editorView: editorView,
174
- childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
175
- isShortcutToFocusToolbar: isShortcutToFocusToolbar,
176
- handleEscape: handleEscape,
177
- editorAppearance: appearance,
178
- useStickyToolbar: useStickyToolbar,
179
- intl: intl
180
- }, /*#__PURE__*/_react.default.createElement(_CommentToolbar.CommentToolbar, {
181
- editorAPI: editorAPI,
182
- editorView: editorView,
183
- editorAppearance: appearance,
184
- disabled: !!disabled,
185
- popupsBoundariesElement: popupsBoundariesElement,
186
- popupsScrollableElement: popupsScrollableElement,
187
- popupsMountPoint: popupsMountPoint
188
- }), customPrimaryToolbarComponents ? customToolbarSlot : null) : /*#__PURE__*/_react.default.createElement(_uiMenu.ToolbarArrowKeyNavigationProvider, {
189
- editorView: editorView,
190
- childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
191
- isShortcutToFocusToolbar: isShortcutToFocusToolbar,
192
- handleEscape: handleEscape,
193
- editorAppearance: appearance,
194
- useStickyToolbar: useStickyToolbar,
195
- intl: intl
196
- }, /*#__PURE__*/_react.default.createElement(_ToolbarWithSizeDetector.ToolbarWithSizeDetector
197
- // Ignored via go/ees005
198
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
199
- , {
200
- editorView: editorView,
201
- editorActions: editorActions
202
- // Ignored via go/ees005
203
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
204
- ,
205
- eventDispatcher: eventDispatcher
206
- // Ignored via go/ees005
207
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
208
- ,
209
- providerFactory: providerFactory,
210
- appearance: appearance,
211
- items: primaryToolbarComponents,
212
- popupsMountPoint: popupsMountPoint,
213
- popupsBoundariesElement: popupsBoundariesElement,
214
- popupsScrollableElement: popupsScrollableElement,
215
- disabled: !!disabled,
216
- dispatchAnalyticsEvent: dispatchAnalyticsEvent,
217
- containerElement: containerElement.current,
218
- twoLineEditorToolbar: isTwoLineToolbarEnabled
219
- }), customToolbarSlot)), /*#__PURE__*/_react.default.createElement(_ClickAreaBlock.default, {
220
- editorView: editorView,
221
- editorDisabled: disabled
222
- }, /*#__PURE__*/_react.default.createElement(_ui.WidthConsumer, null, function (_ref) {
223
- var width = _ref.width;
224
- return /*#__PURE__*/_react.default.createElement(_EditorContentContainer.default, {
225
- ref: containerElement,
226
- isScrollable: maxHeight ? true : undefined
227
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
228
- ,
229
- className: (0, _runtime.ax)([maxHeight && commentEditorCompiledStyles.contentAreaMaxHeight, (0, _classnames.default)('ak-editor-content-area', {
230
- 'less-margin': width < _editorSharedStyles.akEditorMobileBreakoutPoint
231
- })]),
232
- featureFlags: featureFlags,
233
- viewMode: editorViewMode,
234
- appearance: appearance,
235
- useStandardNodeWidth: useStandardNodeWidth
236
- }, customContentComponents && 'before' in customContentComponents ? (0, _contentComponentWrapper.contentComponentClickWrapper)(customContentComponents.before) : (0, _contentComponentWrapper.contentComponentClickWrapper)(customContentComponents), /*#__PURE__*/_react.default.createElement(_PluginSlot.default, {
237
- editorView: editorView,
238
- editorActions: editorActions,
239
- eventDispatcher: eventDispatcher,
240
- dispatchAnalyticsEvent: dispatchAnalyticsEvent,
241
- providerFactory: providerFactory,
242
- appearance: appearance,
243
- items: contentComponents,
244
- popupsMountPoint: popupsMountPoint,
245
- popupsBoundariesElement: popupsBoundariesElement,
246
- popupsScrollableElement: popupsScrollableElement,
247
- containerElement: containerElement.current,
248
- disabled: !!disabled,
249
- wrapperElement: wrapperElementRef.current,
250
- pluginHooks: pluginHooks
251
- }), editorDOMElement, customContentComponents && 'after' in customContentComponents ? (0, _contentComponentWrapper.contentComponentClickWrapper)(customContentComponents.after) : null);
252
- }))), showSecondaryToolbar && /*#__PURE__*/_react.default.createElement("div", {
253
- "data-testid": "ak-editor-secondary-toolbar",
254
- className: (0, _runtime.ax)([commentEditorCompiledStyles.secondaryToolbar])
255
- }, /*#__PURE__*/_react.default.createElement(_buttonGroup.default, null, !!onSave && /*#__PURE__*/_react.default.createElement(_button.default, {
256
- appearance: "primary",
257
- onClick: handleSave,
258
- testId: "comment-save-button",
259
- isDisabled: disabled || saveButtonDisabled,
260
- interactionName: "editor-comment-save-button"
261
- }, intl.formatMessage(_messages.default.saveButton)), !!onCancel && /*#__PURE__*/_react.default.createElement(_button.default, {
262
- appearance: "subtle",
263
- onClick: handleCancel,
264
- testId: "comment-cancel-button",
265
- isDisabled: disabled,
266
- interactionName: "editor-comment-cancel-button"
267
- }, intl.formatMessage(_messages.default.cancelButton))), /*#__PURE__*/_react.default.createElement("span", {
268
- style: {
269
- flexGrow: 1
270
- }
271
- }), customSecondaryToolbarComponents)));
272
- };
273
- CommentEditorWithIntlCompiled.displayName = 'CommentEditorAppearance';