@atlaskit/editor-core 233.0.2 → 234.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 (253) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/composable-editor/core-editor.js +4 -0
  3. package/dist/cjs/composable-editor/editor-internal.js +18 -3
  4. package/dist/cjs/create-editor/ReactEditorView.js +9 -1
  5. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -3
  6. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +5 -9
  7. package/dist/cjs/ui/quick-insert/getExtensionQuickInsertComponents.js +4 -11
  8. package/dist/cjs/utils/performance/components/RenderTracking.js +44 -0
  9. package/dist/cjs/version-wrapper.js +1 -1
  10. package/dist/es2019/composable-editor/core-editor.js +5 -1
  11. package/dist/es2019/composable-editor/editor-internal.js +18 -3
  12. package/dist/es2019/create-editor/ReactEditorView.js +9 -1
  13. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +2 -4
  14. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +5 -7
  15. package/dist/es2019/ui/quick-insert/getExtensionQuickInsertComponents.js +2 -2
  16. package/dist/es2019/utils/performance/components/RenderTracking.js +36 -0
  17. package/dist/es2019/version-wrapper.js +1 -1
  18. package/dist/esm/composable-editor/core-editor.js +5 -1
  19. package/dist/esm/composable-editor/editor-internal.js +18 -3
  20. package/dist/esm/create-editor/ReactEditorView.js +9 -1
  21. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +2 -4
  22. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +5 -9
  23. package/dist/esm/ui/quick-insert/getExtensionQuickInsertComponents.js +5 -12
  24. package/dist/esm/utils/performance/components/RenderTracking.js +37 -0
  25. package/dist/esm/version-wrapper.js +1 -1
  26. package/dist/types/composable-editor/editor-internal.d.ts +2 -0
  27. package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +6 -5
  28. package/dist/types/utils/performance/components/RenderTracking.d.ts +13 -0
  29. package/package.json +41 -41
  30. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +0 -761
  31. package/dist/cjs/ui/EditorContentContainer/styles/agentShimmerStyles.js +0 -121
  32. package/dist/cjs/ui/EditorContentContainer/styles/aiPanel.js +0 -228
  33. package/dist/cjs/ui/EditorContentContainer/styles/annotationStyles.js +0 -52
  34. package/dist/cjs/ui/EditorContentContainer/styles/backgroundColorStyles.js +0 -70
  35. package/dist/cjs/ui/EditorContentContainer/styles/baseStyles.js +0 -121
  36. package/dist/cjs/ui/EditorContentContainer/styles/blockMarksStyles.js +0 -38
  37. package/dist/cjs/ui/EditorContentContainer/styles/blockSpacingStyles.js +0 -113
  38. package/dist/cjs/ui/EditorContentContainer/styles/blockTypeStyles.js +0 -332
  39. package/dist/cjs/ui/EditorContentContainer/styles/codeBlockStyles.js +0 -244
  40. package/dist/cjs/ui/EditorContentContainer/styles/codeMarkStyles.js +0 -38
  41. package/dist/cjs/ui/EditorContentContainer/styles/commentEditorStyles.js +0 -39
  42. package/dist/cjs/ui/EditorContentContainer/styles/containerTypeStyles.js +0 -38
  43. package/dist/cjs/ui/EditorContentContainer/styles/cursorStyles.js +0 -31
  44. package/dist/cjs/ui/EditorContentContainer/styles/dateStyles.js +0 -100
  45. package/dist/cjs/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +0 -39
  46. package/dist/cjs/ui/EditorContentContainer/styles/embedCardStyles.js +0 -41
  47. package/dist/cjs/ui/EditorContentContainer/styles/emoji.js +0 -471
  48. package/dist/cjs/ui/EditorContentContainer/styles/expandStyles.js +0 -352
  49. package/dist/cjs/ui/EditorContentContainer/styles/extensionStyles.js +0 -436
  50. package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -260
  51. package/dist/cjs/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +0 -63
  52. package/dist/cjs/ui/EditorContentContainer/styles/floatingToolbarStyles.js +0 -25
  53. package/dist/cjs/ui/EditorContentContainer/styles/fontSizeStyles.js +0 -51
  54. package/dist/cjs/ui/EditorContentContainer/styles/fullPageEditorStyles.js +0 -27
  55. package/dist/cjs/ui/EditorContentContainer/styles/gapCursorStyles.js +0 -125
  56. package/dist/cjs/ui/EditorContentContainer/styles/gridStyles.js +0 -49
  57. package/dist/cjs/ui/EditorContentContainer/styles/indentationStyles.js +0 -55
  58. package/dist/cjs/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +0 -56
  59. package/dist/cjs/ui/EditorContentContainer/styles/layout.js +0 -781
  60. package/dist/cjs/ui/EditorContentContainer/styles/link.js +0 -66
  61. package/dist/cjs/ui/EditorContentContainer/styles/list.js +0 -325
  62. package/dist/cjs/ui/EditorContentContainer/styles/mediaStyles.js +0 -343
  63. package/dist/cjs/ui/EditorContentContainer/styles/mentions.js +0 -273
  64. package/dist/cjs/ui/EditorContentContainer/styles/overflowShadowStyles.js +0 -20
  65. package/dist/cjs/ui/EditorContentContainer/styles/panelStyles.js +0 -387
  66. package/dist/cjs/ui/EditorContentContainer/styles/paragraphStyles.js +0 -71
  67. package/dist/cjs/ui/EditorContentContainer/styles/placeholderStyles.js +0 -134
  68. package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +0 -648
  69. package/dist/cjs/ui/EditorContentContainer/styles/rule.js +0 -48
  70. package/dist/cjs/ui/EditorContentContainer/styles/scrollbarStyles.js +0 -38
  71. package/dist/cjs/ui/EditorContentContainer/styles/selectionStyles.js +0 -177
  72. package/dist/cjs/ui/EditorContentContainer/styles/selectionToolbarStyles.js +0 -35
  73. package/dist/cjs/ui/EditorContentContainer/styles/shadowStyles.js +0 -76
  74. package/dist/cjs/ui/EditorContentContainer/styles/smartCardStyles.js +0 -473
  75. package/dist/cjs/ui/EditorContentContainer/styles/statusStyles.js +0 -305
  76. package/dist/cjs/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +0 -37
  77. package/dist/cjs/ui/EditorContentContainer/styles/syncBlockStyles.js +0 -253
  78. package/dist/cjs/ui/EditorContentContainer/styles/tableStyles.js +0 -327
  79. package/dist/cjs/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +0 -467
  80. package/dist/cjs/ui/EditorContentContainer/styles/telepointerStyles.js +0 -233
  81. package/dist/cjs/ui/EditorContentContainer/styles/textColorStyles.js +0 -27
  82. package/dist/cjs/ui/EditorContentContainer/styles/textHighlightStyles.js +0 -24
  83. package/dist/cjs/ui/EditorContentContainer/styles/unsupportedStyles.js +0 -104
  84. package/dist/cjs/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +0 -42
  85. package/dist/cjs/ui/EditorContentContainer/styles/whitespaceStyles.js +0 -24
  86. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +0 -764
  87. package/dist/es2019/ui/EditorContentContainer/styles/agentShimmerStyles.js +0 -115
  88. package/dist/es2019/ui/EditorContentContainer/styles/aiPanel.js +0 -225
  89. package/dist/es2019/ui/EditorContentContainer/styles/annotationStyles.js +0 -55
  90. package/dist/es2019/ui/EditorContentContainer/styles/backgroundColorStyles.js +0 -64
  91. package/dist/es2019/ui/EditorContentContainer/styles/baseStyles.js +0 -119
  92. package/dist/es2019/ui/EditorContentContainer/styles/blockMarksStyles.js +0 -32
  93. package/dist/es2019/ui/EditorContentContainer/styles/blockSpacingStyles.js +0 -115
  94. package/dist/es2019/ui/EditorContentContainer/styles/blockTypeStyles.js +0 -338
  95. package/dist/es2019/ui/EditorContentContainer/styles/codeBlockStyles.js +0 -301
  96. package/dist/es2019/ui/EditorContentContainer/styles/codeMarkStyles.js +0 -32
  97. package/dist/es2019/ui/EditorContentContainer/styles/commentEditorStyles.js +0 -33
  98. package/dist/es2019/ui/EditorContentContainer/styles/containerTypeStyles.js +0 -32
  99. package/dist/es2019/ui/EditorContentContainer/styles/cursorStyles.js +0 -25
  100. package/dist/es2019/ui/EditorContentContainer/styles/dateStyles.js +0 -122
  101. package/dist/es2019/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +0 -33
  102. package/dist/es2019/ui/EditorContentContainer/styles/embedCardStyles.js +0 -35
  103. package/dist/es2019/ui/EditorContentContainer/styles/emoji.js +0 -530
  104. package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +0 -346
  105. package/dist/es2019/ui/EditorContentContainer/styles/extensionStyles.js +0 -432
  106. package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -355
  107. package/dist/es2019/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +0 -60
  108. package/dist/es2019/ui/EditorContentContainer/styles/floatingToolbarStyles.js +0 -19
  109. package/dist/es2019/ui/EditorContentContainer/styles/fontSizeStyles.js +0 -45
  110. package/dist/es2019/ui/EditorContentContainer/styles/fullPageEditorStyles.js +0 -21
  111. package/dist/es2019/ui/EditorContentContainer/styles/gapCursorStyles.js +0 -195
  112. package/dist/es2019/ui/EditorContentContainer/styles/gridStyles.js +0 -43
  113. package/dist/es2019/ui/EditorContentContainer/styles/indentationStyles.js +0 -49
  114. package/dist/es2019/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +0 -50
  115. package/dist/es2019/ui/EditorContentContainer/styles/layout.js +0 -886
  116. package/dist/es2019/ui/EditorContentContainer/styles/link.js +0 -60
  117. package/dist/es2019/ui/EditorContentContainer/styles/list.js +0 -322
  118. package/dist/es2019/ui/EditorContentContainer/styles/mediaStyles.js +0 -483
  119. package/dist/es2019/ui/EditorContentContainer/styles/mentions.js +0 -287
  120. package/dist/es2019/ui/EditorContentContainer/styles/overflowShadowStyles.js +0 -55
  121. package/dist/es2019/ui/EditorContentContainer/styles/panelStyles.js +0 -381
  122. package/dist/es2019/ui/EditorContentContainer/styles/paragraphStyles.js +0 -65
  123. package/dist/es2019/ui/EditorContentContainer/styles/placeholderStyles.js +0 -128
  124. package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +0 -723
  125. package/dist/es2019/ui/EditorContentContainer/styles/rule.js +0 -45
  126. package/dist/es2019/ui/EditorContentContainer/styles/scrollbarStyles.js +0 -32
  127. package/dist/es2019/ui/EditorContentContainer/styles/selectionStyles.js +0 -171
  128. package/dist/es2019/ui/EditorContentContainer/styles/selectionToolbarStyles.js +0 -29
  129. package/dist/es2019/ui/EditorContentContainer/styles/shadowStyles.js +0 -81
  130. package/dist/es2019/ui/EditorContentContainer/styles/smartCardStyles.js +0 -666
  131. package/dist/es2019/ui/EditorContentContainer/styles/statusStyles.js +0 -299
  132. package/dist/es2019/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +0 -34
  133. package/dist/es2019/ui/EditorContentContainer/styles/syncBlockStyles.js +0 -325
  134. package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +0 -341
  135. package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +0 -508
  136. package/dist/es2019/ui/EditorContentContainer/styles/telepointerStyles.js +0 -227
  137. package/dist/es2019/ui/EditorContentContainer/styles/textColorStyles.js +0 -21
  138. package/dist/es2019/ui/EditorContentContainer/styles/textHighlightStyles.js +0 -18
  139. package/dist/es2019/ui/EditorContentContainer/styles/unsupportedStyles.js +0 -110
  140. package/dist/es2019/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +0 -36
  141. package/dist/es2019/ui/EditorContentContainer/styles/whitespaceStyles.js +0 -18
  142. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +0 -759
  143. package/dist/esm/ui/EditorContentContainer/styles/agentShimmerStyles.js +0 -115
  144. package/dist/esm/ui/EditorContentContainer/styles/aiPanel.js +0 -221
  145. package/dist/esm/ui/EditorContentContainer/styles/annotationStyles.js +0 -45
  146. package/dist/esm/ui/EditorContentContainer/styles/backgroundColorStyles.js +0 -64
  147. package/dist/esm/ui/EditorContentContainer/styles/baseStyles.js +0 -114
  148. package/dist/esm/ui/EditorContentContainer/styles/blockMarksStyles.js +0 -32
  149. package/dist/esm/ui/EditorContentContainer/styles/blockSpacingStyles.js +0 -107
  150. package/dist/esm/ui/EditorContentContainer/styles/blockTypeStyles.js +0 -325
  151. package/dist/esm/ui/EditorContentContainer/styles/codeBlockStyles.js +0 -238
  152. package/dist/esm/ui/EditorContentContainer/styles/codeMarkStyles.js +0 -32
  153. package/dist/esm/ui/EditorContentContainer/styles/commentEditorStyles.js +0 -33
  154. package/dist/esm/ui/EditorContentContainer/styles/containerTypeStyles.js +0 -32
  155. package/dist/esm/ui/EditorContentContainer/styles/cursorStyles.js +0 -25
  156. package/dist/esm/ui/EditorContentContainer/styles/dateStyles.js +0 -94
  157. package/dist/esm/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +0 -33
  158. package/dist/esm/ui/EditorContentContainer/styles/embedCardStyles.js +0 -35
  159. package/dist/esm/ui/EditorContentContainer/styles/emoji.js +0 -464
  160. package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +0 -346
  161. package/dist/esm/ui/EditorContentContainer/styles/extensionStyles.js +0 -430
  162. package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -253
  163. package/dist/esm/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +0 -56
  164. package/dist/esm/ui/EditorContentContainer/styles/floatingToolbarStyles.js +0 -19
  165. package/dist/esm/ui/EditorContentContainer/styles/fontSizeStyles.js +0 -45
  166. package/dist/esm/ui/EditorContentContainer/styles/fullPageEditorStyles.js +0 -21
  167. package/dist/esm/ui/EditorContentContainer/styles/gapCursorStyles.js +0 -118
  168. package/dist/esm/ui/EditorContentContainer/styles/gridStyles.js +0 -43
  169. package/dist/esm/ui/EditorContentContainer/styles/indentationStyles.js +0 -49
  170. package/dist/esm/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +0 -50
  171. package/dist/esm/ui/EditorContentContainer/styles/layout.js +0 -774
  172. package/dist/esm/ui/EditorContentContainer/styles/link.js +0 -60
  173. package/dist/esm/ui/EditorContentContainer/styles/list.js +0 -318
  174. package/dist/esm/ui/EditorContentContainer/styles/mediaStyles.js +0 -337
  175. package/dist/esm/ui/EditorContentContainer/styles/mentions.js +0 -267
  176. package/dist/esm/ui/EditorContentContainer/styles/overflowShadowStyles.js +0 -14
  177. package/dist/esm/ui/EditorContentContainer/styles/panelStyles.js +0 -381
  178. package/dist/esm/ui/EditorContentContainer/styles/paragraphStyles.js +0 -65
  179. package/dist/esm/ui/EditorContentContainer/styles/placeholderStyles.js +0 -128
  180. package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +0 -641
  181. package/dist/esm/ui/EditorContentContainer/styles/rule.js +0 -41
  182. package/dist/esm/ui/EditorContentContainer/styles/scrollbarStyles.js +0 -32
  183. package/dist/esm/ui/EditorContentContainer/styles/selectionStyles.js +0 -171
  184. package/dist/esm/ui/EditorContentContainer/styles/selectionToolbarStyles.js +0 -29
  185. package/dist/esm/ui/EditorContentContainer/styles/shadowStyles.js +0 -69
  186. package/dist/esm/ui/EditorContentContainer/styles/smartCardStyles.js +0 -468
  187. package/dist/esm/ui/EditorContentContainer/styles/statusStyles.js +0 -299
  188. package/dist/esm/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +0 -30
  189. package/dist/esm/ui/EditorContentContainer/styles/syncBlockStyles.js +0 -247
  190. package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +0 -320
  191. package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +0 -461
  192. package/dist/esm/ui/EditorContentContainer/styles/telepointerStyles.js +0 -227
  193. package/dist/esm/ui/EditorContentContainer/styles/textColorStyles.js +0 -21
  194. package/dist/esm/ui/EditorContentContainer/styles/textHighlightStyles.js +0 -18
  195. package/dist/esm/ui/EditorContentContainer/styles/unsupportedStyles.js +0 -98
  196. package/dist/esm/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +0 -36
  197. package/dist/esm/ui/EditorContentContainer/styles/whitespaceStyles.js +0 -18
  198. package/dist/types/ui/EditorContentContainer/EditorContentContainer-emotion.d.ts +0 -21
  199. package/dist/types/ui/EditorContentContainer/styles/agentShimmerStyles.d.ts +0 -2
  200. package/dist/types/ui/EditorContentContainer/styles/aiPanel.d.ts +0 -29
  201. package/dist/types/ui/EditorContentContainer/styles/annotationStyles.d.ts +0 -8
  202. package/dist/types/ui/EditorContentContainer/styles/backgroundColorStyles.d.ts +0 -22
  203. package/dist/types/ui/EditorContentContainer/styles/baseStyles.d.ts +0 -36
  204. package/dist/types/ui/EditorContentContainer/styles/blockMarksStyles.d.ts +0 -8
  205. package/dist/types/ui/EditorContentContainer/styles/blockSpacingStyles.d.ts +0 -18
  206. package/dist/types/ui/EditorContentContainer/styles/blockTypeStyles.d.ts +0 -65
  207. package/dist/types/ui/EditorContentContainer/styles/codeBlockStyles.d.ts +0 -39
  208. package/dist/types/ui/EditorContentContainer/styles/codeMarkStyles.d.ts +0 -8
  209. package/dist/types/ui/EditorContentContainer/styles/commentEditorStyles.d.ts +0 -8
  210. package/dist/types/ui/EditorContentContainer/styles/containerTypeStyles.d.ts +0 -26
  211. package/dist/types/ui/EditorContentContainer/styles/cursorStyles.d.ts +0 -8
  212. package/dist/types/ui/EditorContentContainer/styles/dateStyles.d.ts +0 -32
  213. package/dist/types/ui/EditorContentContainer/styles/editorUGCTokenStyles.d.ts +0 -16
  214. package/dist/types/ui/EditorContentContainer/styles/embedCardStyles.d.ts +0 -8
  215. package/dist/types/ui/EditorContentContainer/styles/emoji.d.ts +0 -55
  216. package/dist/types/ui/EditorContentContainer/styles/expandStyles.d.ts +0 -52
  217. package/dist/types/ui/EditorContentContainer/styles/extensionStyles.d.ts +0 -20
  218. package/dist/types/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +0 -22
  219. package/dist/types/ui/EditorContentContainer/styles/firstBlockNodeStyles.d.ts +0 -20
  220. package/dist/types/ui/EditorContentContainer/styles/floatingToolbarStyles.d.ts +0 -8
  221. package/dist/types/ui/EditorContentContainer/styles/fontSizeStyles.d.ts +0 -8
  222. package/dist/types/ui/EditorContentContainer/styles/fullPageEditorStyles.d.ts +0 -8
  223. package/dist/types/ui/EditorContentContainer/styles/gapCursorStyles.d.ts +0 -15
  224. package/dist/types/ui/EditorContentContainer/styles/gridStyles.d.ts +0 -8
  225. package/dist/types/ui/EditorContentContainer/styles/indentationStyles.d.ts +0 -8
  226. package/dist/types/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.d.ts +0 -8
  227. package/dist/types/ui/EditorContentContainer/styles/layout.d.ts +0 -207
  228. package/dist/types/ui/EditorContentContainer/styles/link.d.ts +0 -22
  229. package/dist/types/ui/EditorContentContainer/styles/list.d.ts +0 -50
  230. package/dist/types/ui/EditorContentContainer/styles/mediaStyles.d.ts +0 -41
  231. package/dist/types/ui/EditorContentContainer/styles/mentions.d.ts +0 -29
  232. package/dist/types/ui/EditorContentContainer/styles/overflowShadowStyles.d.ts +0 -8
  233. package/dist/types/ui/EditorContentContainer/styles/panelStyles.d.ts +0 -43
  234. package/dist/types/ui/EditorContentContainer/styles/paragraphStyles.d.ts +0 -22
  235. package/dist/types/ui/EditorContentContainer/styles/placeholderStyles.d.ts +0 -22
  236. package/dist/types/ui/EditorContentContainer/styles/resizerStyles.d.ts +0 -145
  237. package/dist/types/ui/EditorContentContainer/styles/rule.d.ts +0 -15
  238. package/dist/types/ui/EditorContentContainer/styles/scrollbarStyles.d.ts +0 -8
  239. package/dist/types/ui/EditorContentContainer/styles/selectionStyles.d.ts +0 -74
  240. package/dist/types/ui/EditorContentContainer/styles/selectionToolbarStyles.d.ts +0 -8
  241. package/dist/types/ui/EditorContentContainer/styles/shadowStyles.d.ts +0 -29
  242. package/dist/types/ui/EditorContentContainer/styles/smartCardStyles.d.ts +0 -96
  243. package/dist/types/ui/EditorContentContainer/styles/statusStyles.d.ts +0 -36
  244. package/dist/types/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.d.ts +0 -17
  245. package/dist/types/ui/EditorContentContainer/styles/syncBlockStyles.d.ts +0 -36
  246. package/dist/types/ui/EditorContentContainer/styles/tableStyles.d.ts +0 -84
  247. package/dist/types/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +0 -77
  248. package/dist/types/ui/EditorContentContainer/styles/telepointerStyles.d.ts +0 -15
  249. package/dist/types/ui/EditorContentContainer/styles/textColorStyles.d.ts +0 -8
  250. package/dist/types/ui/EditorContentContainer/styles/textHighlightStyles.d.ts +0 -8
  251. package/dist/types/ui/EditorContentContainer/styles/unsupportedStyles.d.ts +0 -27
  252. package/dist/types/ui/EditorContentContainer/styles/vanillaTooltipStyles.d.ts +0 -11
  253. package/dist/types/ui/EditorContentContainer/styles/whitespaceStyles.d.ts +0 -8
@@ -1,115 +0,0 @@
1
- /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors,
2
- @repo/internal/deprecations/deprecation-ticket-required,
3
- @atlaskit/ui-styling-standard/no-exported-styles */
4
- /* eslint-disable @atlaskit/ui-styling-standard/use-compiled */
5
-
6
- import { css, keyframes } from '@emotion/react';
7
- // Agent-edit shimmer (CCI-18033) styles, kept in their own file so they're easy to find and remove
8
- // if the approach changes. Applied only when the `platform_editor_agent_be_streaming` experiment is
9
- // on (the collab plugin adds the decorations); dormant otherwise.
10
- //
11
- // @deprecated This style has been migrated to Compiled CSS, under experiment
12
- // platform_editor_core_static_css. If you change this, also update the corresponding
13
- // `agentShimmerStyles` block in
14
- // packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
15
-
16
- // Skeleton-loader sweep across the agent-authored range.
17
- const agentShimmer = keyframes({
18
- from: {
19
- backgroundPosition: '200% 0'
20
- },
21
- to: {
22
- backgroundPosition: '-200% 0'
23
- }
24
- });
25
-
26
- // Purple "just edited" highlight: eases the background and underline in, holds, then eases them back
27
- // out over the highlight's lifetime (duration is set inline per-decoration to match its removal).
28
- const agentEditHighlight = keyframes({
29
- '0%': {
30
- backgroundColor: 'transparent',
31
- borderBottomColor: 'transparent'
32
- },
33
- '12%': {
34
- backgroundColor: "var(--ds-background-accent-purple-subtlest, #F8EEFE)",
35
- borderBottomColor: "var(--ds-border-accent-purple, #AF59E1)"
36
- },
37
- '88%': {
38
- backgroundColor: "var(--ds-background-accent-purple-subtlest, #F8EEFE)",
39
- borderBottomColor: "var(--ds-border-accent-purple, #AF59E1)"
40
- },
41
- '100%': {
42
- backgroundColor: 'transparent',
43
- borderBottomColor: 'transparent'
44
- }
45
- });
46
-
47
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
48
- export const agentShimmerStyle = css({
49
- // Skeleton-loader bar over the agent-authored range (text hidden, grey skeleton with a moving
50
- // highlight), plus a Rovo AI telepointer/cursor at the end of the range.
51
- '.ProseMirror .collab-agent-shimmer': {
52
- animationDuration: '1.25s',
53
- animationIterationCount: 'infinite',
54
- animationName: agentShimmer,
55
- animationTimingFunction: 'linear',
56
- backgroundColor: "var(--ds-skeleton, #0515240F)",
57
- backgroundImage: `linear-gradient(90deg, ${"var(--ds-skeleton, #0515240F)"} 0%, ${"var(--ds-skeleton-subtle, #17171708)"} 50%, ${"var(--ds-skeleton, #0515240F)"} 100%)`,
58
- backgroundSize: '200% 100%',
59
- borderRadius: "var(--ds-radius-xsmall, 2px)",
60
- boxDecorationBreak: 'clone',
61
- color: 'transparent',
62
- caretColor: 'transparent'
63
- },
64
- // Purple "just edited" highlight shown over the range after the skeleton clears — same colours as
65
- // the editor AI "improve writing" in-editor highlight, but eased in and out via `agentEditHighlight`
66
- // (kept as a plain class so no unsafe `:not()` selector is needed; any overlap with an annotation is
67
- // momentary). The underline keeps its width with a transparent colour so the fade causes no layout
68
- // shift; `animation-duration` is set inline per-decoration, with this as a fallback.
69
- '.ProseMirror .collab-agent-edit-highlight': {
70
- animationName: agentEditHighlight,
71
- animationTimingFunction: 'ease-in-out',
72
- animationFillMode: 'both',
73
- animationDuration: '2000ms',
74
- borderBottom: `${"var(--ds-border-width, 1px)"} dashed transparent`
75
- },
76
- '.ProseMirror .ai-in-editor-telepointer': {
77
- position: 'relative',
78
- zIndex: 1,
79
- '& > .ai-in-editor-telepointer-label': {
80
- position: 'absolute',
81
- boxSizing: 'border-box',
82
- display: 'flex',
83
- flexDirection: 'row',
84
- justifyContent: 'center',
85
- alignItems: 'center',
86
- padding: "var(--ds-space-025, 2px)",
87
- gap: "var(--ds-space-075, 6px)",
88
- height: 16,
89
- top: "var(--ds-space-0, 0px)",
90
- left: "var(--ds-space-0, 0px)",
91
- borderRadius: `0 ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"} 0`,
92
- border: `${"var(--ds-border-width, 1px)"} solid transparent`,
93
- background: `linear-gradient(${"var(--ds-text, #292A2E)"}, ${"var(--ds-text, #292A2E)"}) padding-box, conic-gradient(from 270deg at 50% 50%, #1868db 0deg, #1868db 115deg, #fca700 115deg, #fca700 180deg, #bf63f3 180deg, #bf63f3 310deg, #82b536 310deg, #82b536 359.96deg, #1868db 360deg) border-box`,
94
- fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
95
- fontWeight: "var(--ds-font-weight-semibold, 600)",
96
- // Match the AI in-editor telepointer label's fixed 10px/9px sizing (no exact typography token).
97
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
98
- fontSize: 10,
99
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
100
- lineHeight: '9px',
101
- textAlign: 'center',
102
- whiteSpace: 'pre',
103
- color: "var(--ds-text-inverse, #FFFFFF)"
104
- },
105
- '&::after': {
106
- content: "''",
107
- position: 'absolute',
108
- width: 1,
109
- height: 24,
110
- top: "var(--ds-space-0, 0px)",
111
- left: "var(--ds-space-0, 0px)",
112
- background: "var(--ds-border-brand, #1868DB)"
113
- }
114
- }
115
- });
@@ -1,225 +0,0 @@
1
- /* eslint-disable @atlaskit/ui-styling-standard/use-compiled,
2
- @repo/internal/deprecations/deprecation-ticket-required, @atlaskit/ui-styling-standard/no-exported-styles */
3
-
4
- import { css, keyframes } from '@emotion/react';
5
- /**
6
- * aiPanelStyles
7
- * was imported from packages/editor/editor-core/src/ui/ContentStyles/ai-panels.ts
8
- */
9
-
10
- const rotationAnimation = keyframes({
11
- '0%': {
12
- '--panel-gradient-angle': '0deg'
13
- },
14
- '100%': {
15
- '--panel-gradient-angle': '360deg'
16
- }
17
- });
18
- const rotationAnimationFirefox = keyframes({
19
- '0%': {
20
- '--panel-gradient-angle': '0deg',
21
- backgroundPosition: '100%'
22
- },
23
- '100%': {
24
- '--panel-gradient-angle': '360deg',
25
- backgroundPosition: '-100%'
26
- }
27
- });
28
- const aiPrismColor = {
29
- ['prism.border.step.1']: {
30
- light: '#0065FF',
31
- dark: '#0065FF80'
32
- },
33
- ['prism.border.step.2']: {
34
- light: '#0469FF',
35
- dark: '#0469FF80'
36
- },
37
- ['prism.border.step.3']: {
38
- light: '#BF63F3',
39
- dark: '#BF63F380'
40
- },
41
- ['prism.border.step.4']: {
42
- light: '#FFA900',
43
- dark: '#FFA90080'
44
- }
45
- };
46
- const aiPrismColorStep1Light = aiPrismColor['prism.border.step.1']['light'];
47
- const aiPrismColorStep2Light = aiPrismColor['prism.border.step.2']['light'];
48
- const aiPrismColorStep3Light = aiPrismColor['prism.border.step.3']['light'];
49
- const aiPrismColorStep4Light = aiPrismColor['prism.border.step.4']['light'];
50
- const aiPrismColorStep1Dark = aiPrismColor['prism.border.step.1']['dark'];
51
- const aiPrismColorStep2Dark = aiPrismColor['prism.border.step.2']['dark'];
52
- const aiPrismColorStep3Dark = aiPrismColor['prism.border.step.3']['dark'];
53
- const aiPrismColorStep4Dark = aiPrismColor['prism.border.step.4']['dark'];
54
-
55
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
56
- const prismBorderBaseBackgroundFirefox = `linear-gradient(90deg, ${aiPrismColorStep1Light} 0%, ${aiPrismColorStep2Light} 12%, ${aiPrismColorStep3Light} 24%, ${aiPrismColorStep4Light} 48%, ${aiPrismColorStep3Light} 64%, ${aiPrismColorStep2Light} 80%, ${aiPrismColorStep1Light} 100%)`;
57
-
58
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
59
- const prismBorderBaseBackground = `conic-gradient(from var(--panel-gradient-angle, 270deg), ${aiPrismColorStep1Light} 0%, ${aiPrismColorStep2Light} 20%, ${aiPrismColorStep3Light} 50%, ${aiPrismColorStep4Light} 56%, ${aiPrismColorStep1Light} 100%)`;
60
-
61
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
62
- const prismBorderDarkBackgroundFirefox = `linear-gradient(90deg, ${aiPrismColorStep1Dark} 0%, ${aiPrismColorStep2Dark} 12%, ${aiPrismColorStep3Dark} 24%, ${aiPrismColorStep4Dark} 48%, ${aiPrismColorStep3Dark} 64%, ${aiPrismColorStep2Dark} 80%, ${aiPrismColorStep1Dark} 100%)`;
63
-
64
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
65
- const prismBorderDarkBackground = `conic-gradient(from var(--panel-gradient-angle, 270deg), ${aiPrismColorStep1Dark} 0%, ${aiPrismColorStep2Dark} 20%, ${aiPrismColorStep3Dark} 50%, ${aiPrismColorStep4Dark} 56%, ${aiPrismColorStep1Dark} 100%)`;
66
-
67
- /**
68
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
69
- * If you need to make changes here, also update the corresponding style in
70
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
71
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
72
- */
73
- export const aiPanelBaseStyles = css({
74
- '@property --panel-gradient-angle': {
75
- syntax: '<angle>',
76
- initialValue: '270deg',
77
- inherits: false
78
- },
79
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
80
- 'div[extensionType="com.atlassian.ai-blocks"]': {
81
- /* This hides the label for the extension */
82
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
83
- '.extension-label': {
84
- display: 'none'
85
- },
86
- /* This styles the ai panel correctly when its just sitting on the page and there
87
- is no user interaction */
88
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
89
- '.extension-container': {
90
- position: 'relative',
91
- boxShadow: 'none',
92
- overflow: 'unset',
93
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
94
- backgroundColor: `${"var(--ds-surface, #FFFFFF)"} !important`,
95
- // prismBorderBaseStyles
96
- '&::before, &::after': {
97
- content: "''",
98
- position: 'absolute',
99
- zIndex: -1,
100
- width: `calc(100% + 2px)`,
101
- height: `calc(100% + 2px)`,
102
- top: `-1px`,
103
- left: `-1px`,
104
- borderRadius: `calc(${"var(--ds-radius-small, 3px)"} + 1px)`,
105
- transform: 'translate3d(0, 0, 0)',
106
- background: prismBorderBaseBackground
107
- },
108
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
109
- '&.with-hover-border': {
110
- '&::before, &::after': {
111
- //prismBorderHoverStyles
112
- background: "var(--ds-border-input, #8C8F97)"
113
- }
114
- },
115
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
116
- '& .with-margin-styles': {
117
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
118
- backgroundColor: `${"var(--ds-surface, #FFFFFF)"} !important`,
119
- borderRadius: "var(--ds-radius-small, 3px)"
120
- }
121
- }
122
- },
123
- /* This styles the ai panel correctly when its streaming */
124
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
125
- 'div[extensionType="com.atlassian.ai-blocks"]:has(.streaming)': {
126
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
127
- '.extension-container': {
128
- '&::before, &::after': {
129
- // prismBorderAnimationStyles
130
- animationName: rotationAnimation,
131
- animationDuration: '2s',
132
- animationTimingFunction: 'linear',
133
- animationIterationCount: 'infinite',
134
- '@media (prefers-reduced-motion)': {
135
- animation: 'none'
136
- }
137
- }
138
- }
139
- },
140
- /* This styles the ai panel correctly when a user is hovering over the delete button in the floating panel */
141
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
142
- 'div[extensionType="com.atlassian.ai-blocks"].danger': {
143
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
144
- '.extension-container': {
145
- boxShadow: `0 0 0 1px ${"var(--ds-border-danger, #E2483D)"}`
146
- }
147
- },
148
- /* This removes the margin from the action list when inside an ai panel */
149
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
150
- 'div[extensiontype="com.atlassian.ai-blocks"][extensionkey="ai-action-items-block:aiActionItemsBodiedExtension"]': {
151
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
152
- 'div[data-node-type="actionList"]': {
153
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
154
- margin: '0 !important'
155
- }
156
- }
157
- });
158
-
159
- /**
160
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
161
- * If you need to make changes here, also update the corresponding style in
162
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
163
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
164
- */
165
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
166
- export const aiPanelBaseFirefoxStyles = css({
167
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
168
- 'div[extensionType="com.atlassian.ai-blocks"]': {
169
- '&::before, &::after': {
170
- background: prismBorderBaseBackgroundFirefox,
171
- backgroundSize: '200%'
172
- }
173
- },
174
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
175
- 'div[extensionType="com.atlassian.ai-blocks"]:has(.streaming)': {
176
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
177
- '.extension-container': {
178
- '&::before, &::after': {
179
- animationName: rotationAnimationFirefox,
180
- animationDirection: 'normal',
181
- animationDuration: '1s'
182
- }
183
- }
184
- }
185
- });
186
-
187
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
188
- /**
189
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
190
- * If you need to make changes here, also update the corresponding style in
191
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
192
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
193
- */
194
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
195
- export const aiPanelDarkStyles = css({
196
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
197
- 'div[extensionType="com.atlassian.ai-blocks"]': {
198
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
199
- '.extension-container': {
200
- '&::before, &::after': {
201
- background: prismBorderDarkBackground
202
- }
203
- }
204
- }
205
- });
206
-
207
- /**
208
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
209
- * If you need to make changes here, also update the corresponding style in
210
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
211
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
212
- */
213
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
214
- export const aiPanelDarkFirefoxStyles = css({
215
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
216
- 'div[extensionType="com.atlassian.ai-blocks"]': {
217
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
218
- '.extension-container': {
219
- '&::before, &::after': {
220
- background: prismBorderDarkBackgroundFirefox,
221
- backgroundSize: '200%'
222
- }
223
- }
224
- }
225
- });
@@ -1,55 +0,0 @@
1
- /* eslint-disable @atlaskit/ui-styling-standard/use-compiled,
2
- @repo/internal/deprecations/deprecation-ticket-required,
3
- @atlaskit/ui-styling-standard/no-exported-styles */
4
-
5
- import { css } from '@emotion/react';
6
- import { AnnotationSharedClassNames } from '@atlaskit/editor-common/styles';
7
- /**
8
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
9
- * If you need to make changes here, also update the corresponding style in
10
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
11
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
12
- */
13
- export const annotationStyles = css({
14
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
15
- '.ProseMirror': {
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
17
- [`.${AnnotationSharedClassNames.blur}, .${AnnotationSharedClassNames.focus}, .${AnnotationSharedClassNames.draft}, .${AnnotationSharedClassNames.hover}`]: {
18
- borderBottom: '2px solid transparent',
19
- cursor: 'pointer',
20
- padding: '1px 0 2px',
21
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
22
- '&:has(.card), &:has([data-inline-card])': {
23
- padding: '5px 0 3px 0'
24
- },
25
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
26
- '&:has(.date-lozenger-container)': {
27
- paddingTop: "var(--ds-space-025, 2px)"
28
- }
29
- },
30
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
31
- [`.${AnnotationSharedClassNames.focus}`]: {
32
- background: "var(--ds-background-accent-yellow-subtlest-pressed, #EFDD4E)",
33
- borderBottomColor: "var(--ds-border-accent-yellow, #B38600)",
34
- boxShadow: "var(--ds-shadow-raised, 0px 1px 1px #1E1F2140, 0px 0px 1px #1E1F214f)"
35
- },
36
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
37
- [`.${AnnotationSharedClassNames.draft}`]: {
38
- background: "var(--ds-background-accent-yellow-subtlest-pressed, #EFDD4E)",
39
- borderBottomColor: "var(--ds-border-accent-yellow, #B38600)",
40
- boxShadow: "var(--ds-shadow-raised, 0px 1px 1px #1E1F2140, 0px 0px 1px #1E1F214f)",
41
- cursor: 'initial'
42
- },
43
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
44
- [`.${AnnotationSharedClassNames.blur}`]: {
45
- background: "var(--ds-background-accent-yellow-subtlest, #FEF7C8)",
46
- borderBottomColor: "var(--ds-border-accent-yellow, #B38600)"
47
- },
48
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
49
- [`.${AnnotationSharedClassNames.hover}`]: {
50
- background: "var(--ds-background-accent-yellow-subtlest-hovered, #F5E989)",
51
- borderBottomColor: "var(--ds-border-accent-yellow, #B38600)",
52
- boxShadow: "var(--ds-shadow-raised, 0px 1px 1px #1E1F2140, 0px 0px 1px #1E1F214f)"
53
- }
54
- }
55
- });
@@ -1,64 +0,0 @@
1
- /* eslint-disable @atlaskit/ui-styling-standard/use-compiled,
2
- @repo/internal/deprecations/deprecation-ticket-required,
3
- @atlaskit/ui-styling-standard/no-exported-styles */
4
-
5
- import { css } from '@emotion/react';
6
- /**
7
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
8
- * If you need to make changes here, also update the corresponding style in
9
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
10
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
11
- */
12
- export const textHighlightPaddingStyles = css({
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
14
- '.fabric-background-color-mark:has(.background-color-padding-left)': {
15
- paddingLeft: "var(--ds-space-025, 2px)",
16
- marginLeft: "var(--ds-space-negative-025, -2px)"
17
- },
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
19
- '.fabric-background-color-mark:has(.background-color-padding-right)': {
20
- paddingRight: "var(--ds-space-025, 2px)",
21
- marginRight: "var(--ds-space-negative-025, -2px)"
22
- }
23
- });
24
-
25
- /**
26
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
27
- * If you need to make changes here, also update the corresponding style in
28
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
29
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
30
- */
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
32
- export const backgroundColorStyles = css({
33
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
34
- '.fabric-background-color-mark': {
35
- backgroundColor: 'var(--custom-palette-color, inherit)',
36
- borderRadius: "var(--ds-radius-xsmall, 2px)",
37
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
38
- paddingTop: 1,
39
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
40
- paddingBottom: 2,
41
- boxDecorationBreak: 'clone'
42
- },
43
- // Don't show text highlight styling when there is an inline comment
44
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
45
- '.fabric-background-color-mark .ak-editor-annotation': {
46
- backgroundColor: 'unset'
47
- }
48
- });
49
-
50
- /**
51
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
52
- * If you need to make changes here, also update the corresponding style in
53
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
54
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
55
- */
56
- // Don't show text highlight styling when there is a hyperlink.
57
- // Conditionally applied when the highlight-on-links experiment is off.
58
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
59
- export const highlightLinksUnsetStyles = css({
60
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
61
- 'a .fabric-background-color-mark': {
62
- backgroundColor: 'unset'
63
- }
64
- });
@@ -1,119 +0,0 @@
1
- /* eslint-disable @atlaskit/ui-styling-standard/use-compiled,
2
- @repo/internal/deprecations/deprecation-ticket-required,
3
- @atlaskit/ui-styling-standard/no-exported-styles */
4
-
5
- import { css } from '@emotion/react';
6
- // = akEditorDefaultLayoutWidth * breakoutWideScaleRatio = 1010.8 ~ 1011 This is a resulting width value that is applied to nodes that currently use breakouts (except table) and are set to `wide` when the viewport's width is > 1329px.
7
- const akEditorCalculatedWideLayoutWidth = 1011;
8
- // from breakoutConsts.calcWideWidth, layoutMaxWidth * breakoutConsts.wideScaleRatio = 904.8 ~ 905 This is a resulting width value that is applied to nodes that currently use breakouts (except table) and are set to `wide` when the viewport's width is <= 1266px.
9
- const akEditorCalculatedWideLayoutWidthSmallViewport = 905;
10
- const akEditorGutterPadding = 32;
11
- const akEditorDefaultLayoutWidth = 760;
12
- const akEditorFullWidthLayoutWidth = 1800;
13
- // The breakpoint for small devices is 1266px, copied from getBreakpoint in platform/packages/editor/editor-common/src/ui/WidthProvider/index.tsx
14
- const akEditorBreakpointForSmallDevice = `1266px`;
15
- const akEditorGutterPaddingReduced = 24;
16
- const akEditorFullPageNarrowBreakout = 600;
17
- const akEditorUltraWideLayoutWidth = 4000;
18
-
19
- // jest warning: JSDOM version (22) doesn't support the new @container CSS rule
20
- /**
21
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
22
- * If you need to make changes here, also update the corresponding style in
23
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
24
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
25
- */
26
- export const baseStyles = css({
27
- '--ak-editor--default-gutter-padding': `${akEditorGutterPadding}px`,
28
- '--ak-editor--default-layout-width': `${akEditorDefaultLayoutWidth}px`,
29
- '--ak-editor--resizer-handle-spacing': `12px`,
30
- '--ak-editor--full-width-layout-width': `${akEditorFullWidthLayoutWidth}px`,
31
- /* calculate editor line length, 100cqw is the editor container width */
32
- '--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--default-layout-width))',
33
- '--ak-editor--max-width-layout-width': `${akEditorUltraWideLayoutWidth}px`,
34
- '--ak-editor--breakout-wide-layout-width': `${akEditorCalculatedWideLayoutWidthSmallViewport}px`,
35
- '--ak-editor--breakout-full-page-guttering-padding': 'calc(var(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding))',
36
- '--ak-editor--breakout-fallback-width': 'calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))',
37
- '--ak-editor--breakout-min-width': '100%',
38
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
39
- '.fabric-editor--full-width-mode': {
40
- '--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--full-width-layout-width))',
41
- /* in full width appearances it's not possible to rely on cqw because it doesn't account for the page scrollbar, which depends on users system settings */
42
- '--ak-editor--breakout-fallback-width': '100%',
43
- '--ak-editor--breakout-min-width': '0px'
44
- },
45
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
46
- '.ProseMirror': {
47
- '--ak-editor-max-container-width': 'calc(100cqw - var(--ak-editor--large-gutter-padding))',
48
- outline: 'none',
49
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
50
- fontSize: 'var(--ak-editor-base-font-size)'
51
- },
52
- /* We can't allow nodes that are inside other nodes to bleed from the parent container */
53
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
54
- '.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block]': {
55
- '--ak-editor-max-container-width': '100%'
56
- },
57
- /* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */
58
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries, @atlaskit/ui-styling-standard/no-unsafe-values
59
- [`@container editor-area (width >= ${akEditorBreakpointForSmallDevice})`]: {
60
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
61
- '.ProseMirror': {
62
- '--ak-editor--breakout-wide-layout-width': `${akEditorCalculatedWideLayoutWidth}px`
63
- }
64
- }
65
- });
66
- /**
67
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
68
- * If you need to make changes here, also update the corresponding style in
69
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
70
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
71
- */
72
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
73
- export const maxModeReizeFixStyles = css({
74
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
75
- '.fabric-editor--max-width-mode': {
76
- '--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--max-width-layout-width))',
77
- /* in max width appearances it's not possible to rely on cqw because it doesn't account for the page scrollbar, which depends on users system settings */
78
- '--ak-editor--breakout-fallback-width': '100%',
79
- '--ak-editor--breakout-min-width': '0px'
80
- }
81
- });
82
- /**
83
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
84
- * If you need to make changes here, also update the corresponding style in
85
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
86
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
87
- */
88
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
89
- export const baseStylesMaxContainerWidthFixes = css({
90
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
91
- '.ProseMirror': {
92
- '--ak-editor-max-container-width': 'calc(100cqw - var(--ak-editor--large-gutter-padding)*2)'
93
- }
94
- });
95
-
96
- // This is to avoid using akEditorGutterPaddingDynamic
97
- /**
98
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
99
- * If you need to make changes here, also update the corresponding style in
100
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
101
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
102
- */
103
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
104
- export const editorGutterPaddingBaseStyles = css({
105
- '--ak-editor--large-gutter-padding': '72px'
106
- });
107
- /**
108
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
109
- * If you need to make changes here, also update the corresponding style in
110
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
111
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
112
- */
113
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
114
- export const editorLargeGutterPuddingReducedBaseStyles = css({
115
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries, @atlaskit/ui-styling-standard/no-unsafe-values
116
- [`@container editor-area (max-width: ${akEditorFullPageNarrowBreakout}px)`]: {
117
- '--ak-editor--large-gutter-padding': `${akEditorGutterPaddingReduced}px`
118
- }
119
- });
@@ -1,32 +0,0 @@
1
- /* eslint-disable @atlaskit/ui-styling-standard/use-compiled,
2
- @repo/internal/deprecations/deprecation-ticket-required,
3
- @atlaskit/ui-styling-standard/no-exported-styles */
4
-
5
- import { css } from '@emotion/react';
6
- /**
7
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
8
- * If you need to make changes here, also update the corresponding style in
9
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
10
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
11
- */
12
- export const blockMarksStyles = css({
13
- // We need to remove margin-top from first item
14
- // inside doc, tableCell, tableHeader, blockquote, etc.
15
- //
16
- // - For nested block marks apart from those with indentation mark.
17
- // - Do not remove the margin top for nodes inside indentation marks.
18
- // - Do not remove the margin top for nodes inside alignment marks.
19
- // - Do not remove the margin top for nodes inside font size marks.
20
- //- If first element inside a block node has alignment or font size mark, then remove the margin-top.
21
- //- If first document element has indentation mark remove margin-top.
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
23
- '*:not(.fabric-editor-block-mark) >, *:not(.fabric-editor-block-mark) > div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size), .fabric-editor-alignment:first-of-type:first-child, .fabric-editor-font-size:first-of-type:first-child, .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child': {
24
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
25
- 'p, h1, h2, h3, h4, h5, h6, .heading-wrapper': {
26
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
27
- '&:first-child:not(style), style:first-child + *': {
28
- marginTop: 0
29
- }
30
- }
31
- }
32
- });