@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,886 +0,0 @@
1
- /* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
2
- /* eslint-disable @atlaskit/ui-styling-standard/use-compiled,
3
- @repo/internal/deprecations/deprecation-ticket-required,
4
- @atlaskit/ui-styling-standard/no-exported-styles */
5
-
6
- import { css } from '@emotion/react';
7
- import { blanketSelectionStyles, borderSelectionStyles, hideNativeBrowserTextSelectionStyles } from './selectionStyles';
8
- const gridMediumMaxWidth = 1024;
9
- const akEditorSelectedNodeClassName = 'ak-editor-selected-node';
10
-
11
- // Class names for the column resize divider widget — must stay in sync with main.ts in editor-plugin-layout
12
- const layoutColumnDividerClassName = 'layout-column-divider';
13
- const layoutColumnDividerRailClassName = 'layout-column-divider-rail';
14
- const layoutColumnDividerThumbClassName = 'layout-column-divider-thumb';
15
-
16
- /**
17
- * Styles for the column resize divider widget DOM elements.
18
- * Mirrors the pm-breakout-resize-handle-* pattern from resizerStyles.ts.
19
- * Applied only when advanced_layouts experiment is on.
20
- */
21
- /**
22
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
23
- * If you need to make changes here, also update the corresponding style in
24
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
25
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
26
- */
27
- export const layoutColumnDividerStyles = css({
28
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
29
- [`.${layoutColumnDividerClassName}`]: {
30
- // Negative margin removes the applied 'gap' from the parent's flex box
31
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
32
- marginInline: '-15px 0px',
33
- flexShrink: 0,
34
- boxSizing: 'content-box',
35
- cursor: 'col-resize',
36
- position: 'relative',
37
- zIndex: 2,
38
- alignSelf: 'stretch',
39
- display: 'flex',
40
- alignItems: 'center',
41
- justifyContent: 'center',
42
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
43
- [`&:hover .${layoutColumnDividerRailClassName}`]: {
44
- background: "var(--ds-background-selected, #E9F2FE)"
45
- },
46
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
47
- [`&:hover .${layoutColumnDividerThumbClassName}`]: {
48
- background: "var(--ds-border-focused, #4688EC)"
49
- }
50
- },
51
- // Rail and thumb styles intentionally mirror the breakout resize handle
52
- // (see .pm-breakout-resize-handle-rail and .pm-breakout-resize-handle-thumb in resizerStyles.ts).
53
- // If updating these styles, consider keeping both in sync.
54
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
55
- [`.${layoutColumnDividerRailClassName}`]: {
56
- width: 7,
57
- height: '100%',
58
- display: 'flex',
59
- alignItems: 'center',
60
- justifyContent: 'center',
61
- borderRadius: "var(--ds-radius-small, 4px)",
62
- transition: 'background-color 0.2s',
63
- pointerEvents: 'none'
64
- },
65
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
66
- [`.${layoutColumnDividerThumbClassName}`]: {
67
- minWidth: 3,
68
- height: 'clamp(27px, calc(100% - 32px), 96px)',
69
- background: "var(--ds-border, #0B120E24)",
70
- borderRadius: "var(--ds-radius-medium, 6px)",
71
- pointerEvents: 'none',
72
- position: 'sticky',
73
- top: "var(--ds-space-150, 12px)",
74
- bottom: "var(--ds-space-150, 12px)"
75
- }
76
- });
77
- /**
78
- * Override divider marginInline for nested drag-and-drop,
79
- * since the layout section/column spacing changes.
80
- */
81
- /**
82
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
83
- * If you need to make changes here, also update the corresponding style in
84
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
85
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
86
- */
87
- export const layoutColumnDividerStylesNestedDnD = css({
88
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
89
- [`.${layoutColumnDividerClassName}`]: {
90
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
91
- marginInline: '0 -7px'
92
- }
93
- });
94
- const selectorForNotResizedLayoutInFulllWidthEditor = '.fabric-editor--full-width-mode .ProseMirror > .layoutSectionView-content-wrap';
95
- const selectorForNotResizedLayoutInFixedWidthEditor = '.ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror > .layoutSectionView-content-wrap';
96
- const selectorForResizedLayoutInFullOrFixedWidthEditor = '.ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap';
97
- const layoutResponsiveSelectedSelector = `&.selected, &:hover, &.selected.danger, &.${akEditorSelectedNodeClassName}:not(.danger)`;
98
- const layoutSelectedSelector = `&.selected, [data-empty-layout='true'], &:hover, &.selected.danger [data-layout-section], &.${akEditorSelectedNodeClassName}:not(.danger) [data-layout-section]`;
99
-
100
- /**
101
- * Layout columns styles when advanced layouts experiment is on
102
- */
103
- /**
104
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
105
- * If you need to make changes here, also update the corresponding style in
106
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
107
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
108
- */
109
- export const layoutColumnStylesAdvanced = css({
110
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
111
- '.ProseMirror [data-layout-section]': {
112
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
113
- '> [data-layout-column]': {
114
- margin: '0 4px'
115
- },
116
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
117
- '> [data-layout-column]:first-of-type': {
118
- marginLeft: 0
119
- },
120
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
121
- '> [data-layout-column]:last-of-type': {
122
- marginRight: 0
123
- },
124
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
125
- [`@media screen and (max-width: ${gridMediumMaxWidth}px)`]: {
126
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
127
- '[data-layout-column] + [data-layout-column]': {
128
- margin: 0
129
- }
130
- },
131
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
132
- [`> [data-layout-column].${akEditorSelectedNodeClassName}:not(.danger)`]: [
133
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
134
- blanketSelectionStyles,
135
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
136
- hideNativeBrowserTextSelectionStyles, {
137
- // layout column selection shorter after layout border has been removed
138
- '::before': {
139
- width: 'calc(100% - 8px)',
140
- left: 4,
141
- borderRadius: "var(--ds-radius-small, 3px)"
142
- }
143
- }]
144
- }
145
- });
146
-
147
- /**
148
- * Layout column resize styles.
149
- */
150
- /**
151
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
152
- * If you need to make changes here, also update the corresponding style in
153
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
154
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
155
- */
156
- export const layoutColumnResizeStyles = css({
157
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
158
- '.ProseMirror [data-layout-section]': {
159
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
160
- '> [data-layout-column][style*="--column-width"]': {
161
- // Support CSS custom property for smooth resizing during drag
162
- // When --column-resize-width is set, use it; otherwise fall back to the original flex-basis
163
- // Using attribute selector for higher specificity than inline styles
164
- flexBasis: 'var(--column-resize-width, var(--column-width))',
165
- // Also ensure flex-grow and flex-shrink are reset when using custom width
166
- flex: 'var(--column-resize-flex, 1)'
167
- }
168
- }
169
- });
170
-
171
- /**
172
- * Layout columns styles when advanced layouts experiment is off
173
- */
174
- /**
175
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
176
- * If you need to make changes here, also update the corresponding style in
177
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
178
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
179
- */
180
- export const layoutColumnStylesNotAdvanced = css({
181
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
182
- '.ProseMirror [data-layout-section]': {
183
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
184
- '[data-layout-column] + [data-layout-column]': {
185
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
186
- marginLeft: 8
187
- },
188
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
189
- [`@media screen and (max-width: ${gridMediumMaxWidth}px)`]: {
190
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
191
- '[data-layout-column] + [data-layout-column]': {
192
- marginLeft: 0
193
- }
194
- }
195
- }
196
- });
197
-
198
- /**
199
- * Responsive styles for layout columns when advanced layouts experiment is on
200
- */
201
- /**
202
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
203
- * If you need to make changes here, also update the corresponding style in
204
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
205
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
206
- */
207
- export const layoutColumnResponsiveStyles = css({
208
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
209
- '.ProseMirror [data-layout-section]': {
210
- display: 'flex',
211
- flexDirection: 'row',
212
- gap: "var(--ds-space-100, 8px)",
213
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
214
- '& > *': {
215
- flex: 1,
216
- minWidth: 0
217
- },
218
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
219
- '& > .unsupportedBlockView-content-wrap': {
220
- minWidth: 'initial'
221
- }
222
- },
223
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
224
- '.layout-section-container': {
225
- containerType: 'inline-size',
226
- containerName: 'layout-area'
227
- }
228
- });
229
-
230
- /**
231
- * Layout section styles when advanced layouts experiment is on
232
- */
233
- export const layoutDragHandleWrapperStylesLegacy = css({
234
- // Legacy tooltips are portalled, so flattening every div does not affect their surface.
235
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
236
- '.ProseMirror .layout-section-container [data-layout-section] > .ProseMirror-widget[data-blocks-drag-handle-container] div': {
237
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
238
- display: 'contents !important'
239
- }
240
- });
241
-
242
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
243
- /**
244
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
245
- * If you need to make changes here, also update the corresponding style in
246
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
247
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
248
- */
249
- export const layoutSectionStylesAdvanced = css({
250
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
251
- '.ProseMirror .layout-section-container [data-layout-section]': {
252
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
253
- '> .ProseMirror-widget': {
254
- flex: 'none',
255
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
256
- display: 'contents !important',
257
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
258
- '&[data-blocks-drop-target-container]': {
259
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
260
- display: 'block !important',
261
- margin: "var(--ds-space-negative-050, -4px)",
262
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
263
- '[data-drop-target-for-element]': {
264
- position: 'absolute'
265
- }
266
- },
267
- // Column resize divider: always in DOM, hidden via opacity by default
268
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
269
- [`&.${layoutColumnDividerClassName}`]: {
270
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
271
- display: 'block !important',
272
- flex: 'none',
273
- opacity: 0,
274
- transition: 'opacity 0.2s'
275
- },
276
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
277
- '& + [data-layout-column]': {
278
- margin: 0
279
- }
280
- },
281
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
282
- '> [data-layout-column]': {
283
- margin: 0
284
- }
285
- },
286
- // On hover: fade in drag divider and hide the 1px separator
287
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
288
- [`.ProseMirror .layoutSectionView-content-wrap:hover .layout-section-container [data-layout-section]`]: {
289
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
290
- [`> .ProseMirror-widget.${layoutColumnDividerClassName}`]: {
291
- opacity: 1
292
- },
293
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
294
- [`> .ProseMirror-widget.${layoutColumnDividerClassName} ~ [data-layout-column] [data-layout-content]::before`]: {
295
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
296
- display: 'none !important'
297
- }
298
- }
299
- });
300
-
301
- /**
302
- * Layout section styles when advanced layouts experiment is off
303
- */
304
- /**
305
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
306
- * If you need to make changes here, also update the corresponding style in
307
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
308
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
309
- */
310
- export const layoutSectionStylesNotAdvanced = css({
311
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
312
- '.ProseMirror [data-layout-section]': {
313
- position: 'relative',
314
- display: 'flex',
315
- flexDirection: 'row',
316
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
317
- '& > *': {
318
- flex: 1,
319
- minWidth: 0
320
- },
321
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
322
- '& > .unsupportedBlockView-content-wrap': {
323
- minWidth: 'initial'
324
- },
325
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
326
- [`& > .${layoutColumnDividerClassName}`]: {
327
- flex: 'none'
328
- },
329
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
330
- [`@media screen and (max-width: ${gridMediumMaxWidth}px)`]: {
331
- flexDirection: 'column'
332
- }
333
- }
334
- });
335
-
336
- /**
337
- * Selected styles for layout when advanced layouts experiment is off
338
- */
339
- // TODO: DSP-4441 - Remove the border styles below once design tokens have been enabled and fallbacks are no longer triggered.
340
- // This is because the default state already uses the same token and, as such, the hover style won't change anything.
341
- // https://product-fabric.atlassian.net/browse/DSP-4441
342
- /**
343
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
344
- * If you need to make changes here, also update the corresponding style in
345
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
346
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
347
- */
348
- export const layoutSelectedStylesNotAdvanced = css({
349
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
350
- '.ProseMirror': {
351
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
352
- '[data-layout-section], .layoutSectionView-content-wrap': {
353
- // Shows the border when cursor is inside a layout
354
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
355
- '&.selected [data-layout-column], &:hover [data-layout-column]': {
356
- border: `1px solid ${"var(--ds-border, #0B120E24)"}`
357
- },
358
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
359
- '&.selected.danger [data-layout-column]': {
360
- backgroundColor: "var(--ds-background-danger, #FFECEB)",
361
- borderColor: "var(--ds-border-danger, #E2483D)"
362
- },
363
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
364
- [`&.${akEditorSelectedNodeClassName}:not(.danger)`]: {
365
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
366
- '[data-layout-column]': [
367
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
368
- borderSelectionStyles,
369
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
370
- blanketSelectionStyles,
371
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
372
- hideNativeBrowserTextSelectionStyles, {
373
- '::after': {
374
- backgroundColor: 'transparent'
375
- }
376
- }]
377
- }
378
- }
379
- }
380
- });
381
-
382
- // TODO: ED-28075 - inline rowSeparatorBaseStyles to unblock Compiled CSS migration
383
- const rowSeparatorBaseStyles = css({
384
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
385
- '[data-layout-content]::before': {
386
- content: "''",
387
- borderTop: `1px solid ${"var(--ds-border, #0B120E24)"}`,
388
- position: 'absolute',
389
- width: 'calc(100% - 32px)',
390
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
391
- marginTop: -13,
392
- // clear styles for column separator
393
- borderLeft: 'unset',
394
- marginLeft: 'unset',
395
- height: 'unset'
396
- }
397
- });
398
-
399
- /**
400
- * Selected styles for layout when advanced layouts experiment is on
401
- */
402
- /**
403
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
404
- * If you need to make changes here, also update the corresponding style in
405
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
406
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
407
- */
408
- export const layoutSelectedStylesAdvanced = css({
409
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
410
- '.ProseMirror': {
411
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
412
- '[data-layout-section], .layoutSectionView-content-wrap': {
413
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
414
- [layoutSelectedSelector]: {
415
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
416
- '[data-layout-column]:not(:first-of-type) [data-layout-content]::before': {
417
- content: "''",
418
- borderLeft: `1px solid ${"var(--ds-border, #0B120E24)"}`,
419
- position: 'absolute',
420
- height: 'calc(100% - 24px)',
421
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
422
- marginLeft: -25
423
- },
424
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
425
- '[data-layout-column]:is([data-valign="middle"], [data-valign="bottom"]):not(:first-of-type) [data-layout-content]::before': {
426
- top: "var(--ds-space-150, 12px)"
427
- }
428
- },
429
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
430
- '&.selected.danger [data-layout-section]': {
431
- backgroundColor: "var(--ds-background-danger, #FFECEB)",
432
- boxShadow: `0 0 0 1px ${"var(--ds-border-danger, #E2483D)"}`,
433
- borderRadius: "var(--ds-radius-small, 4px)"
434
- },
435
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
436
- [`&.${akEditorSelectedNodeClassName}:not(.danger) [data-layout-section]`]: {
437
- boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #1868DB)"}`,
438
- borderRadius: "var(--ds-radius-small, 4px)",
439
- backgroundColor: "var(--ds-background-selected, #E9F2FE)",
440
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
441
- '[data-layout-column]': [
442
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
443
- blanketSelectionStyles,
444
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
445
- hideNativeBrowserTextSelectionStyles, {
446
- border: 0,
447
- '::before': {
448
- backgroundColor: 'transparent'
449
- }
450
- }]
451
- }
452
- }
453
- }
454
- });
455
-
456
- // Fix for layoutSelectedStylesAdvanced that addresses an issue where the delete indicator
457
- // sometimes doesn't appear when inside a synced block.
458
- // Separated as a distinct style to allow feature-gating without affecting module-level styles.
459
- // This prevents style inconsistencies before the feature flag is initialized.
460
- /**
461
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
462
- * If you need to make changes here, also update the corresponding style in
463
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
464
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
465
- */
466
- export const layoutSelectedStylesAdvancedFix = css({
467
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
468
- '.ProseMirror': {
469
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
470
- '[data-layout-section], .layoutSectionView-content-wrap': {
471
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
472
- '&.selected.danger [data-layout-section]': {
473
- boxShadow: `inset 0 0 0 1px ${"var(--ds-border-danger, #E2483D)"}`
474
- },
475
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
476
- [`&.${akEditorSelectedNodeClassName}:not(.danger) [data-layout-section]`]: {
477
- boxShadow: `inset 0 0 0 1px ${"var(--ds-border-selected, #1868DB)"}`
478
- }
479
- }
480
- }
481
- });
482
-
483
- /**
484
- * Base responsive styles for layout
485
- */
486
- // jest warning: JSDOM version (22) doesn't support the new @container CSS rule
487
- /**
488
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
489
- * If you need to make changes here, also update the corresponding style in
490
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
491
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
492
- */
493
- export const layoutResponsiveBaseStyles = css({
494
- // chosen breakpoints in container queries are to make sure layout responsiveness in editor aligns with renderer
495
- // not resized layout in full-width editor
496
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
497
- [selectorForNotResizedLayoutInFulllWidthEditor]: {
498
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
499
- '[data-layout-section]': {
500
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries
501
- '@container editor-area (max-width:724px)': {
502
- flexDirection: 'column'
503
- }
504
- },
505
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
506
- [layoutResponsiveSelectedSelector]: {
507
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
508
- '[data-layout-column]:not(:first-of-type)': {
509
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries,@atlaskit/ui-styling-standard/no-unsafe-values
510
- [`@container editor-area (max-width:724px)`]: rowSeparatorBaseStyles
511
- }
512
- }
513
- },
514
- // not resized layout in fixed-width editor
515
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
516
- [selectorForNotResizedLayoutInFixedWidthEditor]: {
517
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
518
- '[data-layout-section]': {
519
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries
520
- '@container editor-area (max-width:788px)': {
521
- flexDirection: 'column'
522
- }
523
- },
524
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
525
- [layoutResponsiveSelectedSelector]: {
526
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
527
- '[data-layout-column]:not(:first-of-type)': {
528
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries,@atlaskit/ui-styling-standard/no-unsafe-values
529
- [`@container editor-area (max-width:788px)`]: rowSeparatorBaseStyles
530
- }
531
- }
532
- },
533
- // resized layout in full/fixed-width editor
534
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
535
- [selectorForResizedLayoutInFullOrFixedWidthEditor]: {
536
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
537
- '[data-layout-section]': {
538
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries
539
- '@container editor-area (max-width:820px)': {
540
- flexDirection: 'column'
541
- }
542
- },
543
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
544
- [layoutResponsiveSelectedSelector]: {
545
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
546
- '[data-layout-column]:not(:first-of-type)': {
547
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries,@atlaskit/ui-styling-standard/no-unsafe-values
548
- [`@container editor-area (max-width:820px)`]: rowSeparatorBaseStyles
549
- }
550
- }
551
- }
552
- });
553
-
554
- /**
555
- * Responsive styles for layout in view mode
556
- */
557
- /**
558
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
559
- * If you need to make changes here, also update the corresponding style in
560
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
561
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
562
- */
563
- export const layoutResponsiveStylesForView = css({
564
- // chosen breakpoints in container queries are to make sure layout responsiveness in editor aligns with renderer
565
- // not resized layout in full-width editor
566
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
567
- [selectorForNotResizedLayoutInFulllWidthEditor]: {
568
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
569
- [layoutResponsiveSelectedSelector]: {
570
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
571
- '[data-layout-column]:not(:first-of-type)': {
572
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries,@atlaskit/ui-styling-standard/no-unsafe-values
573
- [`@container editor-area (max-width:724px)`]: {
574
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
575
- '[data-layout-content]::before': {
576
- borderTop: 0
577
- }
578
- }
579
- }
580
- }
581
- },
582
- // not resized layout in fixed-width editor
583
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
584
- [selectorForNotResizedLayoutInFixedWidthEditor]: {
585
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
586
- [layoutResponsiveSelectedSelector]: {
587
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
588
- '[data-layout-column]:not(:first-of-type)': {
589
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries,@atlaskit/ui-styling-standard/no-unsafe-values
590
- [`@container editor-area (max-width:788px)`]: {
591
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
592
- '[data-layout-content]::before': {
593
- borderTop: 0
594
- }
595
- }
596
- }
597
- }
598
- },
599
- // resized layout in full/fixed-width editor
600
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
601
- [selectorForResizedLayoutInFullOrFixedWidthEditor]: {
602
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
603
- [layoutResponsiveSelectedSelector]: {
604
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
605
- '[data-layout-column]:not(:first-of-type)': {
606
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries,@atlaskit/ui-styling-standard/no-unsafe-values
607
- [`@container editor-area (max-width:820px)`]: {
608
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
609
- '[data-layout-content]::before': {
610
- borderTop: 0
611
- }
612
- }
613
- }
614
- }
615
- }
616
- });
617
-
618
- /**
619
- * Base styles for layout
620
- */
621
- /**
622
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
623
- * If you need to make changes here, also update the corresponding style in
624
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
625
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
626
- */
627
- export const layoutBaseStyles = css({
628
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-nested-selectors
629
- '.ProseMirror': {
630
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
631
- '[data-layout-section]': {
632
- margin: `${"var(--ds-space-100, 8px)"} -12px 0`,
633
- transition: 'border-color 0.3s cubic-bezier(0.15, 1, 0.3, 1)',
634
- cursor: 'pointer',
635
- // Inner cursor located 26px from left
636
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
637
- '[data-layout-column]': {
638
- flex: 1,
639
- position: 'relative',
640
- minWidth: 0,
641
- /* disable 4 borders when in view mode and advanced layouts is on */
642
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
643
- border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"}`,
644
- borderRadius: "var(--ds-radius-small, 4px)",
645
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
646
- padding: "var(--ds-space-150, 12px)",
647
- boxSizing: 'border-box',
648
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
649
- '> div': {
650
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
651
- '.pm-table-container': {
652
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
653
- width: '100% !important'
654
- },
655
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
656
- '> .embedCardView-content-wrap:first-of-type .rich-media-item': {
657
- marginTop: 0
658
- },
659
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
660
- '> .mediaSingleView-content-wrap:first-of-type .rich-media-item': {
661
- marginTop: 0
662
- },
663
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
664
- '> .ProseMirror-gapcursor.-right:first-child + .mediaSingleView-content-wrap .rich-media-item, > style:first-child + .ProseMirror-gapcursor.-right + .mediaSingleView-content-wrap .rich-media-item, > .ProseMirror-gapcursor.-right:first-of-type + .embedCardView-content-wrap .rich-media-item': {
665
- marginTop: 0
666
- },
667
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
668
- '> .ProseMirror-gapcursor:first-child + span + .mediaSingleView-content-wrap .rich-media-item, > style:first-child + .ProseMirror-gapcursor + span + .mediaSingleView-content-wrap .rich-media-item': {
669
- marginTop: 0
670
- },
671
- // Prevent first DecisionWrapper's margin-top: 8px from shifting decisions down and shrinking layout's node selectable area (leniency margin)
672
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
673
- "> [data-node-type='decisionList']": {
674
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
675
- 'li:first-of-type [data-decision-wrapper]': {
676
- marginTop: 0
677
- }
678
- }
679
- },
680
- // Make the 'content' fill the entire height of the layout column to allow click handler of layout section nodeview to target only data-layout-column
681
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
682
- '[data-layout-content]': {
683
- height: '100%',
684
- cursor: 'text',
685
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
686
- '.mediaGroupView-content-wrap': {
687
- clear: 'both'
688
- }
689
- },
690
- // Keep the editable content wrapper stretched so blank column space remains a text hit area.
691
- // Apply vertical alignment to the wrapper contents rather than shrinking the wrapper itself.
692
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
693
- '&[data-valign="middle"] > [data-layout-content], &[data-valign="bottom"] > [data-layout-content]': {
694
- display: 'flex',
695
- flexDirection: 'column'
696
- },
697
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
698
- '&[data-valign="middle"] > [data-layout-content]': {
699
- justifyContent: 'center'
700
- },
701
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
702
- '&[data-valign="bottom"] > [data-layout-content]': {
703
- justifyContent: 'flex-end'
704
- }
705
- }
706
- }
707
- },
708
- // hide separator when element is dragging on top of a layout column
709
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
710
- '[data-blocks-drop-target-container] ~ [data-layout-column] > [data-layout-content]::before': {
711
- display: 'none'
712
- },
713
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
714
- '.fabric-editor--full-width-mode .ProseMirror': {
715
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
716
- '[data-layout-section]': {
717
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
718
- '.pm-table-container': {
719
- margin: '0 2px'
720
- }
721
- }
722
- }
723
- });
724
-
725
- /**
726
- * Base styles overrides for layout columns when advanced layouts experiment is on
727
- */
728
- /**
729
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
730
- * If you need to make changes here, also update the corresponding style in
731
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
732
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
733
- */
734
- export const layoutBaseStylesAdvanced = css({
735
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
736
- '.ProseMirror [data-layout-section] [data-layout-column]': {
737
- border: 0
738
- }
739
- });
740
-
741
- /**
742
- * Spacing overrides for nested drag-and-drop
743
- */
744
- // TODO: EDF-123 - Migrate away from gridSize
745
- // Recommendation: Replace directly with 7px
746
- // Ignored via go/ees007
747
- /**
748
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
749
- * If you need to make changes here, also update the corresponding style in
750
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
751
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
752
- */
753
- export const layoutBaseStylesNestedDnd = css({
754
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
755
- '.ProseMirror [data-layout-section]': {
756
- margin: `${"var(--ds-space-100, 8px)"} -20px 0`
757
- },
758
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
759
- '.ProseMirror [data-layout-section] [data-layout-column]': {
760
- padding: '12px 20px'
761
- }
762
- });
763
-
764
- /**
765
- * Spacing overrides for nested drag-and-drop,
766
- * excluding layouts inside bodied sync blocks
767
- */
768
- /**
769
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
770
- * If you need to make changes here, also update the corresponding style in
771
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
772
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
773
- */
774
- export const layoutBaseStylesNestedDndExcludingBodiedSync = css({
775
- // Apply -20px margin to all sections
776
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
777
- '.ProseMirror [data-layout-section]': {
778
- margin: `${"var(--ds-space-100, 8px)"} -20px 0`
779
- },
780
- // Reset to default margin when inside bodied sync block
781
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
782
- '.ProseMirror [data-prosemirror-node-name="bodiedSyncBlock"] [data-layout-section]': {
783
- margin: `${"var(--ds-space-100, 8px)"} -12px 0`
784
- },
785
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
786
- '.ProseMirror [data-layout-section] [data-layout-column]': {
787
- padding: '12px 20px'
788
- }
789
- });
790
-
791
- /**
792
- * Layout in view mode styles for selected state when advanced layouts experiment is on.
793
- */
794
- /**
795
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
796
- * If you need to make changes here, also update the corresponding style in
797
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
798
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
799
- */
800
- export const layoutSelectedStylesForViewAdvanced = css({
801
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
802
- '.ProseMirror': {
803
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-nested-selectors
804
- '[data-layout-section], .layoutSectionView-content-wrap': {
805
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-nested-selectors
806
- [layoutSelectedSelector]: {
807
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
808
- '[data-layout-column]:not(:first-of-type) [data-layout-content]::before': {
809
- borderLeft: 0
810
- }
811
- },
812
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
813
- '&.selected.danger [data-layout-section]': {
814
- boxShadow: `0 0 0 0 ${"var(--ds-border-danger, #E2483D)"}`
815
- },
816
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values,@atlaskit/ui-styling-standard/no-nested-selectors
817
- [`&.${akEditorSelectedNodeClassName}:not(.danger) [data-layout-section]`]: {
818
- boxShadow: `0 0 0 0 ${"var(--ds-border-selected, #1868DB)"}`
819
- }
820
- }
821
- }
822
- });
823
-
824
- /**
825
- * Layout in view mode styles for selected state when advanced layouts experiment is off.
826
- */
827
- /**
828
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
829
- * If you need to make changes here, also update the corresponding style in
830
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
831
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
832
- */
833
- export const layoutSelectedStylesForViewNotAdvanced = css({
834
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
835
- '.ProseMirror': {
836
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-nested-selectors
837
- '[data-layout-section], .layoutSectionView-content-wrap': {
838
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
839
- '&.selected [data-layout-column], &:hover [data-layout-column]': {
840
- border: 0
841
- }
842
- }
843
- }
844
- });
845
-
846
- /*
847
- * Layout in view mode styles, overrides over layout base styles
848
- */
849
- /**
850
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
851
- * If you need to make changes here, also update the corresponding style in
852
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
853
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
854
- */
855
- export const layoutStylesForView = css({
856
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
857
- '.ProseMirror': {
858
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
859
- '[data-layout-section]': {
860
- cursor: 'default',
861
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
862
- '[data-layout-column]': {
863
- border: 0
864
- }
865
- }
866
- }
867
- });
868
-
869
- /*
870
- * marginTop fixes for nested drag-and-drop
871
- */
872
- /**
873
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
874
- * If you need to make changes here, also update the corresponding style in
875
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
876
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
877
- */
878
- export const layoutColumnMartinTopFixes = css({
879
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
880
- '.ProseMirror [data-layout-section] [data-layout-column] > div': {
881
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
882
- '> :nth-child(1 of :not(style, .ProseMirror-gapcursor, .ProseMirror-widget, span))': {
883
- marginTop: 0
884
- }
885
- }
886
- });