@atlaskit/editor-core 233.0.2 → 234.0.0

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 (242) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/composable-editor/editor-internal.js +2 -2
  3. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -3
  4. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +5 -9
  5. package/dist/cjs/ui/quick-insert/getExtensionQuickInsertComponents.js +4 -11
  6. package/dist/cjs/version-wrapper.js +1 -1
  7. package/dist/es2019/composable-editor/editor-internal.js +2 -2
  8. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +2 -4
  9. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +5 -7
  10. package/dist/es2019/ui/quick-insert/getExtensionQuickInsertComponents.js +2 -2
  11. package/dist/es2019/version-wrapper.js +1 -1
  12. package/dist/esm/composable-editor/editor-internal.js +2 -2
  13. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +2 -4
  14. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +5 -9
  15. package/dist/esm/ui/quick-insert/getExtensionQuickInsertComponents.js +5 -12
  16. package/dist/esm/version-wrapper.js +1 -1
  17. package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +6 -5
  18. package/package.json +40 -40
  19. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +0 -761
  20. package/dist/cjs/ui/EditorContentContainer/styles/agentShimmerStyles.js +0 -121
  21. package/dist/cjs/ui/EditorContentContainer/styles/aiPanel.js +0 -228
  22. package/dist/cjs/ui/EditorContentContainer/styles/annotationStyles.js +0 -52
  23. package/dist/cjs/ui/EditorContentContainer/styles/backgroundColorStyles.js +0 -70
  24. package/dist/cjs/ui/EditorContentContainer/styles/baseStyles.js +0 -121
  25. package/dist/cjs/ui/EditorContentContainer/styles/blockMarksStyles.js +0 -38
  26. package/dist/cjs/ui/EditorContentContainer/styles/blockSpacingStyles.js +0 -113
  27. package/dist/cjs/ui/EditorContentContainer/styles/blockTypeStyles.js +0 -332
  28. package/dist/cjs/ui/EditorContentContainer/styles/codeBlockStyles.js +0 -244
  29. package/dist/cjs/ui/EditorContentContainer/styles/codeMarkStyles.js +0 -38
  30. package/dist/cjs/ui/EditorContentContainer/styles/commentEditorStyles.js +0 -39
  31. package/dist/cjs/ui/EditorContentContainer/styles/containerTypeStyles.js +0 -38
  32. package/dist/cjs/ui/EditorContentContainer/styles/cursorStyles.js +0 -31
  33. package/dist/cjs/ui/EditorContentContainer/styles/dateStyles.js +0 -100
  34. package/dist/cjs/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +0 -39
  35. package/dist/cjs/ui/EditorContentContainer/styles/embedCardStyles.js +0 -41
  36. package/dist/cjs/ui/EditorContentContainer/styles/emoji.js +0 -471
  37. package/dist/cjs/ui/EditorContentContainer/styles/expandStyles.js +0 -352
  38. package/dist/cjs/ui/EditorContentContainer/styles/extensionStyles.js +0 -436
  39. package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -260
  40. package/dist/cjs/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +0 -63
  41. package/dist/cjs/ui/EditorContentContainer/styles/floatingToolbarStyles.js +0 -25
  42. package/dist/cjs/ui/EditorContentContainer/styles/fontSizeStyles.js +0 -51
  43. package/dist/cjs/ui/EditorContentContainer/styles/fullPageEditorStyles.js +0 -27
  44. package/dist/cjs/ui/EditorContentContainer/styles/gapCursorStyles.js +0 -125
  45. package/dist/cjs/ui/EditorContentContainer/styles/gridStyles.js +0 -49
  46. package/dist/cjs/ui/EditorContentContainer/styles/indentationStyles.js +0 -55
  47. package/dist/cjs/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +0 -56
  48. package/dist/cjs/ui/EditorContentContainer/styles/layout.js +0 -781
  49. package/dist/cjs/ui/EditorContentContainer/styles/link.js +0 -66
  50. package/dist/cjs/ui/EditorContentContainer/styles/list.js +0 -325
  51. package/dist/cjs/ui/EditorContentContainer/styles/mediaStyles.js +0 -343
  52. package/dist/cjs/ui/EditorContentContainer/styles/mentions.js +0 -273
  53. package/dist/cjs/ui/EditorContentContainer/styles/overflowShadowStyles.js +0 -20
  54. package/dist/cjs/ui/EditorContentContainer/styles/panelStyles.js +0 -387
  55. package/dist/cjs/ui/EditorContentContainer/styles/paragraphStyles.js +0 -71
  56. package/dist/cjs/ui/EditorContentContainer/styles/placeholderStyles.js +0 -134
  57. package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +0 -648
  58. package/dist/cjs/ui/EditorContentContainer/styles/rule.js +0 -48
  59. package/dist/cjs/ui/EditorContentContainer/styles/scrollbarStyles.js +0 -38
  60. package/dist/cjs/ui/EditorContentContainer/styles/selectionStyles.js +0 -177
  61. package/dist/cjs/ui/EditorContentContainer/styles/selectionToolbarStyles.js +0 -35
  62. package/dist/cjs/ui/EditorContentContainer/styles/shadowStyles.js +0 -76
  63. package/dist/cjs/ui/EditorContentContainer/styles/smartCardStyles.js +0 -473
  64. package/dist/cjs/ui/EditorContentContainer/styles/statusStyles.js +0 -305
  65. package/dist/cjs/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +0 -37
  66. package/dist/cjs/ui/EditorContentContainer/styles/syncBlockStyles.js +0 -253
  67. package/dist/cjs/ui/EditorContentContainer/styles/tableStyles.js +0 -327
  68. package/dist/cjs/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +0 -467
  69. package/dist/cjs/ui/EditorContentContainer/styles/telepointerStyles.js +0 -233
  70. package/dist/cjs/ui/EditorContentContainer/styles/textColorStyles.js +0 -27
  71. package/dist/cjs/ui/EditorContentContainer/styles/textHighlightStyles.js +0 -24
  72. package/dist/cjs/ui/EditorContentContainer/styles/unsupportedStyles.js +0 -104
  73. package/dist/cjs/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +0 -42
  74. package/dist/cjs/ui/EditorContentContainer/styles/whitespaceStyles.js +0 -24
  75. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +0 -764
  76. package/dist/es2019/ui/EditorContentContainer/styles/agentShimmerStyles.js +0 -115
  77. package/dist/es2019/ui/EditorContentContainer/styles/aiPanel.js +0 -225
  78. package/dist/es2019/ui/EditorContentContainer/styles/annotationStyles.js +0 -55
  79. package/dist/es2019/ui/EditorContentContainer/styles/backgroundColorStyles.js +0 -64
  80. package/dist/es2019/ui/EditorContentContainer/styles/baseStyles.js +0 -119
  81. package/dist/es2019/ui/EditorContentContainer/styles/blockMarksStyles.js +0 -32
  82. package/dist/es2019/ui/EditorContentContainer/styles/blockSpacingStyles.js +0 -115
  83. package/dist/es2019/ui/EditorContentContainer/styles/blockTypeStyles.js +0 -338
  84. package/dist/es2019/ui/EditorContentContainer/styles/codeBlockStyles.js +0 -301
  85. package/dist/es2019/ui/EditorContentContainer/styles/codeMarkStyles.js +0 -32
  86. package/dist/es2019/ui/EditorContentContainer/styles/commentEditorStyles.js +0 -33
  87. package/dist/es2019/ui/EditorContentContainer/styles/containerTypeStyles.js +0 -32
  88. package/dist/es2019/ui/EditorContentContainer/styles/cursorStyles.js +0 -25
  89. package/dist/es2019/ui/EditorContentContainer/styles/dateStyles.js +0 -122
  90. package/dist/es2019/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +0 -33
  91. package/dist/es2019/ui/EditorContentContainer/styles/embedCardStyles.js +0 -35
  92. package/dist/es2019/ui/EditorContentContainer/styles/emoji.js +0 -530
  93. package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +0 -346
  94. package/dist/es2019/ui/EditorContentContainer/styles/extensionStyles.js +0 -432
  95. package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -355
  96. package/dist/es2019/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +0 -60
  97. package/dist/es2019/ui/EditorContentContainer/styles/floatingToolbarStyles.js +0 -19
  98. package/dist/es2019/ui/EditorContentContainer/styles/fontSizeStyles.js +0 -45
  99. package/dist/es2019/ui/EditorContentContainer/styles/fullPageEditorStyles.js +0 -21
  100. package/dist/es2019/ui/EditorContentContainer/styles/gapCursorStyles.js +0 -195
  101. package/dist/es2019/ui/EditorContentContainer/styles/gridStyles.js +0 -43
  102. package/dist/es2019/ui/EditorContentContainer/styles/indentationStyles.js +0 -49
  103. package/dist/es2019/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +0 -50
  104. package/dist/es2019/ui/EditorContentContainer/styles/layout.js +0 -886
  105. package/dist/es2019/ui/EditorContentContainer/styles/link.js +0 -60
  106. package/dist/es2019/ui/EditorContentContainer/styles/list.js +0 -322
  107. package/dist/es2019/ui/EditorContentContainer/styles/mediaStyles.js +0 -483
  108. package/dist/es2019/ui/EditorContentContainer/styles/mentions.js +0 -287
  109. package/dist/es2019/ui/EditorContentContainer/styles/overflowShadowStyles.js +0 -55
  110. package/dist/es2019/ui/EditorContentContainer/styles/panelStyles.js +0 -381
  111. package/dist/es2019/ui/EditorContentContainer/styles/paragraphStyles.js +0 -65
  112. package/dist/es2019/ui/EditorContentContainer/styles/placeholderStyles.js +0 -128
  113. package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +0 -723
  114. package/dist/es2019/ui/EditorContentContainer/styles/rule.js +0 -45
  115. package/dist/es2019/ui/EditorContentContainer/styles/scrollbarStyles.js +0 -32
  116. package/dist/es2019/ui/EditorContentContainer/styles/selectionStyles.js +0 -171
  117. package/dist/es2019/ui/EditorContentContainer/styles/selectionToolbarStyles.js +0 -29
  118. package/dist/es2019/ui/EditorContentContainer/styles/shadowStyles.js +0 -81
  119. package/dist/es2019/ui/EditorContentContainer/styles/smartCardStyles.js +0 -666
  120. package/dist/es2019/ui/EditorContentContainer/styles/statusStyles.js +0 -299
  121. package/dist/es2019/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +0 -34
  122. package/dist/es2019/ui/EditorContentContainer/styles/syncBlockStyles.js +0 -325
  123. package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +0 -341
  124. package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +0 -508
  125. package/dist/es2019/ui/EditorContentContainer/styles/telepointerStyles.js +0 -227
  126. package/dist/es2019/ui/EditorContentContainer/styles/textColorStyles.js +0 -21
  127. package/dist/es2019/ui/EditorContentContainer/styles/textHighlightStyles.js +0 -18
  128. package/dist/es2019/ui/EditorContentContainer/styles/unsupportedStyles.js +0 -110
  129. package/dist/es2019/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +0 -36
  130. package/dist/es2019/ui/EditorContentContainer/styles/whitespaceStyles.js +0 -18
  131. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +0 -759
  132. package/dist/esm/ui/EditorContentContainer/styles/agentShimmerStyles.js +0 -115
  133. package/dist/esm/ui/EditorContentContainer/styles/aiPanel.js +0 -221
  134. package/dist/esm/ui/EditorContentContainer/styles/annotationStyles.js +0 -45
  135. package/dist/esm/ui/EditorContentContainer/styles/backgroundColorStyles.js +0 -64
  136. package/dist/esm/ui/EditorContentContainer/styles/baseStyles.js +0 -114
  137. package/dist/esm/ui/EditorContentContainer/styles/blockMarksStyles.js +0 -32
  138. package/dist/esm/ui/EditorContentContainer/styles/blockSpacingStyles.js +0 -107
  139. package/dist/esm/ui/EditorContentContainer/styles/blockTypeStyles.js +0 -325
  140. package/dist/esm/ui/EditorContentContainer/styles/codeBlockStyles.js +0 -238
  141. package/dist/esm/ui/EditorContentContainer/styles/codeMarkStyles.js +0 -32
  142. package/dist/esm/ui/EditorContentContainer/styles/commentEditorStyles.js +0 -33
  143. package/dist/esm/ui/EditorContentContainer/styles/containerTypeStyles.js +0 -32
  144. package/dist/esm/ui/EditorContentContainer/styles/cursorStyles.js +0 -25
  145. package/dist/esm/ui/EditorContentContainer/styles/dateStyles.js +0 -94
  146. package/dist/esm/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +0 -33
  147. package/dist/esm/ui/EditorContentContainer/styles/embedCardStyles.js +0 -35
  148. package/dist/esm/ui/EditorContentContainer/styles/emoji.js +0 -464
  149. package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +0 -346
  150. package/dist/esm/ui/EditorContentContainer/styles/extensionStyles.js +0 -430
  151. package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -253
  152. package/dist/esm/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +0 -56
  153. package/dist/esm/ui/EditorContentContainer/styles/floatingToolbarStyles.js +0 -19
  154. package/dist/esm/ui/EditorContentContainer/styles/fontSizeStyles.js +0 -45
  155. package/dist/esm/ui/EditorContentContainer/styles/fullPageEditorStyles.js +0 -21
  156. package/dist/esm/ui/EditorContentContainer/styles/gapCursorStyles.js +0 -118
  157. package/dist/esm/ui/EditorContentContainer/styles/gridStyles.js +0 -43
  158. package/dist/esm/ui/EditorContentContainer/styles/indentationStyles.js +0 -49
  159. package/dist/esm/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +0 -50
  160. package/dist/esm/ui/EditorContentContainer/styles/layout.js +0 -774
  161. package/dist/esm/ui/EditorContentContainer/styles/link.js +0 -60
  162. package/dist/esm/ui/EditorContentContainer/styles/list.js +0 -318
  163. package/dist/esm/ui/EditorContentContainer/styles/mediaStyles.js +0 -337
  164. package/dist/esm/ui/EditorContentContainer/styles/mentions.js +0 -267
  165. package/dist/esm/ui/EditorContentContainer/styles/overflowShadowStyles.js +0 -14
  166. package/dist/esm/ui/EditorContentContainer/styles/panelStyles.js +0 -381
  167. package/dist/esm/ui/EditorContentContainer/styles/paragraphStyles.js +0 -65
  168. package/dist/esm/ui/EditorContentContainer/styles/placeholderStyles.js +0 -128
  169. package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +0 -641
  170. package/dist/esm/ui/EditorContentContainer/styles/rule.js +0 -41
  171. package/dist/esm/ui/EditorContentContainer/styles/scrollbarStyles.js +0 -32
  172. package/dist/esm/ui/EditorContentContainer/styles/selectionStyles.js +0 -171
  173. package/dist/esm/ui/EditorContentContainer/styles/selectionToolbarStyles.js +0 -29
  174. package/dist/esm/ui/EditorContentContainer/styles/shadowStyles.js +0 -69
  175. package/dist/esm/ui/EditorContentContainer/styles/smartCardStyles.js +0 -468
  176. package/dist/esm/ui/EditorContentContainer/styles/statusStyles.js +0 -299
  177. package/dist/esm/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +0 -30
  178. package/dist/esm/ui/EditorContentContainer/styles/syncBlockStyles.js +0 -247
  179. package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +0 -320
  180. package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +0 -461
  181. package/dist/esm/ui/EditorContentContainer/styles/telepointerStyles.js +0 -227
  182. package/dist/esm/ui/EditorContentContainer/styles/textColorStyles.js +0 -21
  183. package/dist/esm/ui/EditorContentContainer/styles/textHighlightStyles.js +0 -18
  184. package/dist/esm/ui/EditorContentContainer/styles/unsupportedStyles.js +0 -98
  185. package/dist/esm/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +0 -36
  186. package/dist/esm/ui/EditorContentContainer/styles/whitespaceStyles.js +0 -18
  187. package/dist/types/ui/EditorContentContainer/EditorContentContainer-emotion.d.ts +0 -21
  188. package/dist/types/ui/EditorContentContainer/styles/agentShimmerStyles.d.ts +0 -2
  189. package/dist/types/ui/EditorContentContainer/styles/aiPanel.d.ts +0 -29
  190. package/dist/types/ui/EditorContentContainer/styles/annotationStyles.d.ts +0 -8
  191. package/dist/types/ui/EditorContentContainer/styles/backgroundColorStyles.d.ts +0 -22
  192. package/dist/types/ui/EditorContentContainer/styles/baseStyles.d.ts +0 -36
  193. package/dist/types/ui/EditorContentContainer/styles/blockMarksStyles.d.ts +0 -8
  194. package/dist/types/ui/EditorContentContainer/styles/blockSpacingStyles.d.ts +0 -18
  195. package/dist/types/ui/EditorContentContainer/styles/blockTypeStyles.d.ts +0 -65
  196. package/dist/types/ui/EditorContentContainer/styles/codeBlockStyles.d.ts +0 -39
  197. package/dist/types/ui/EditorContentContainer/styles/codeMarkStyles.d.ts +0 -8
  198. package/dist/types/ui/EditorContentContainer/styles/commentEditorStyles.d.ts +0 -8
  199. package/dist/types/ui/EditorContentContainer/styles/containerTypeStyles.d.ts +0 -26
  200. package/dist/types/ui/EditorContentContainer/styles/cursorStyles.d.ts +0 -8
  201. package/dist/types/ui/EditorContentContainer/styles/dateStyles.d.ts +0 -32
  202. package/dist/types/ui/EditorContentContainer/styles/editorUGCTokenStyles.d.ts +0 -16
  203. package/dist/types/ui/EditorContentContainer/styles/embedCardStyles.d.ts +0 -8
  204. package/dist/types/ui/EditorContentContainer/styles/emoji.d.ts +0 -55
  205. package/dist/types/ui/EditorContentContainer/styles/expandStyles.d.ts +0 -52
  206. package/dist/types/ui/EditorContentContainer/styles/extensionStyles.d.ts +0 -20
  207. package/dist/types/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +0 -22
  208. package/dist/types/ui/EditorContentContainer/styles/firstBlockNodeStyles.d.ts +0 -20
  209. package/dist/types/ui/EditorContentContainer/styles/floatingToolbarStyles.d.ts +0 -8
  210. package/dist/types/ui/EditorContentContainer/styles/fontSizeStyles.d.ts +0 -8
  211. package/dist/types/ui/EditorContentContainer/styles/fullPageEditorStyles.d.ts +0 -8
  212. package/dist/types/ui/EditorContentContainer/styles/gapCursorStyles.d.ts +0 -15
  213. package/dist/types/ui/EditorContentContainer/styles/gridStyles.d.ts +0 -8
  214. package/dist/types/ui/EditorContentContainer/styles/indentationStyles.d.ts +0 -8
  215. package/dist/types/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.d.ts +0 -8
  216. package/dist/types/ui/EditorContentContainer/styles/layout.d.ts +0 -207
  217. package/dist/types/ui/EditorContentContainer/styles/link.d.ts +0 -22
  218. package/dist/types/ui/EditorContentContainer/styles/list.d.ts +0 -50
  219. package/dist/types/ui/EditorContentContainer/styles/mediaStyles.d.ts +0 -41
  220. package/dist/types/ui/EditorContentContainer/styles/mentions.d.ts +0 -29
  221. package/dist/types/ui/EditorContentContainer/styles/overflowShadowStyles.d.ts +0 -8
  222. package/dist/types/ui/EditorContentContainer/styles/panelStyles.d.ts +0 -43
  223. package/dist/types/ui/EditorContentContainer/styles/paragraphStyles.d.ts +0 -22
  224. package/dist/types/ui/EditorContentContainer/styles/placeholderStyles.d.ts +0 -22
  225. package/dist/types/ui/EditorContentContainer/styles/resizerStyles.d.ts +0 -145
  226. package/dist/types/ui/EditorContentContainer/styles/rule.d.ts +0 -15
  227. package/dist/types/ui/EditorContentContainer/styles/scrollbarStyles.d.ts +0 -8
  228. package/dist/types/ui/EditorContentContainer/styles/selectionStyles.d.ts +0 -74
  229. package/dist/types/ui/EditorContentContainer/styles/selectionToolbarStyles.d.ts +0 -8
  230. package/dist/types/ui/EditorContentContainer/styles/shadowStyles.d.ts +0 -29
  231. package/dist/types/ui/EditorContentContainer/styles/smartCardStyles.d.ts +0 -96
  232. package/dist/types/ui/EditorContentContainer/styles/statusStyles.d.ts +0 -36
  233. package/dist/types/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.d.ts +0 -17
  234. package/dist/types/ui/EditorContentContainer/styles/syncBlockStyles.d.ts +0 -36
  235. package/dist/types/ui/EditorContentContainer/styles/tableStyles.d.ts +0 -84
  236. package/dist/types/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +0 -77
  237. package/dist/types/ui/EditorContentContainer/styles/telepointerStyles.d.ts +0 -15
  238. package/dist/types/ui/EditorContentContainer/styles/textColorStyles.d.ts +0 -8
  239. package/dist/types/ui/EditorContentContainer/styles/textHighlightStyles.d.ts +0 -8
  240. package/dist/types/ui/EditorContentContainer/styles/unsupportedStyles.d.ts +0 -27
  241. package/dist/types/ui/EditorContentContainer/styles/vanillaTooltipStyles.d.ts +0 -11
  242. package/dist/types/ui/EditorContentContainer/styles/whitespaceStyles.d.ts +0 -8
@@ -1,723 +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 { akEditorFullPageNarrowBreakout, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
8
- /**
9
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
10
- * If you need to make changes here, also update the corresponding style in
11
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
12
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
13
- */
14
- export const resizerItemClassName = 'resizer-item';
15
- /**
16
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
17
- * If you need to make changes here, also update the corresponding style in
18
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
19
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
20
- */
21
- export const resizerHoverZoneClassName = 'resizer-hover-zone';
22
- /**
23
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
24
- * If you need to make changes here, also update the corresponding style in
25
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
26
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
27
- */
28
- export const resizerExtendedZone = 'resizer-is-extended';
29
-
30
- /**
31
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
32
- * If you need to make changes here, also update the corresponding style in
33
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
34
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
35
- */
36
- export const resizerHandleClassName = 'resizer-handle';
37
- /**
38
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
39
- * If you need to make changes here, also update the corresponding style in
40
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
41
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
42
- */
43
- export const resizerHandleTrackClassName = `${resizerHandleClassName}-track`;
44
- /**
45
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
46
- * If you need to make changes here, also update the corresponding style in
47
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
48
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
49
- */
50
- export const resizerHandleThumbClassName = `${resizerHandleClassName}-thumb`;
51
- /**
52
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
53
- * If you need to make changes here, also update the corresponding style in
54
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
55
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
56
- */
57
- export const resizerDangerClassName = `${resizerHandleClassName}-danger`;
58
-
59
- /**
60
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
61
- * If you need to make changes here, also update the corresponding style in
62
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
63
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
64
- */
65
- export const resizerHandleThumbWidth = 3;
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
- export const handleWrapperClass = 'resizer-handle-wrapper';
73
-
74
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766, Seems perfectly safe to autofix, but comments would be lost…
75
- /**
76
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
77
- * If you need to make changes here, also update the corresponding style in
78
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
79
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
80
- */
81
- export const resizerStyles = css({
82
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
83
- [`.${resizerItemClassName}`]: {
84
- willChange: 'width',
85
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
86
- '&:hover, &.display-handle': {
87
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
88
- [`& > .${handleWrapperClass} > .${resizerHandleClassName}`]: {
89
- visibility: 'visible',
90
- opacity: 1
91
- }
92
- },
93
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
94
- '&.is-resizing': {
95
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
96
- [`& .${resizerHandleThumbClassName}`]: {
97
- background: "var(--ds-border-focused, #4688EC)"
98
- }
99
- },
100
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
101
- [`&.${resizerDangerClassName}`]: {
102
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
103
- [`& .${resizerHandleThumbClassName}`]: {
104
- transition: 'none',
105
- background: "var(--ds-icon-danger, #C9372C)"
106
- }
107
- }
108
- },
109
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
110
- [`.${resizerHandleClassName}`]: {
111
- display: 'flex',
112
- visibility: 'hidden',
113
- opacity: 0,
114
- flexDirection: 'column',
115
- justifyContent: 'center',
116
- alignItems: 'center',
117
- width: 7,
118
- transition: 'visibility 0.2s, opacity 0.2s',
119
- // NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles
120
- // into the tooltip
121
- // Guard skips top-layer elements (eg tooltip, modal); `:where()` keeps specificity unchanged.
122
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
123
- "& div[role='presentation']:not(:where([popover], dialog, [popover] *, dialog *))": {
124
- width: '100%',
125
- height: '100%',
126
- display: 'flex',
127
- flexDirection: 'column',
128
- justifyContent: 'center',
129
- alignItems: 'center',
130
- marginTop: "var(--ds-space-negative-200, -16px)",
131
- whiteSpace: 'normal'
132
- },
133
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
134
- '&.left': {
135
- alignItems: 'flex-start'
136
- },
137
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
138
- '&.right': {
139
- alignItems: 'flex-end'
140
- },
141
- // Handle Sizing
142
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
143
- '&.small': {
144
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
145
- [`& .${resizerHandleThumbClassName}`]: {
146
- height: 43
147
- }
148
- },
149
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
150
- '&.medium': {
151
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
152
- [`& .${resizerHandleThumbClassName}`]: {
153
- height: 64
154
- }
155
- },
156
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
157
- '&.large': {
158
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
159
- [`& .${resizerHandleThumbClassName}`]: {
160
- height: 96
161
- }
162
- },
163
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
164
- '&.clamped': {
165
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
166
- [`& .${resizerHandleThumbClassName}`]: {
167
- height: 'clamp(43px, calc(100% - 32px), 96px)'
168
- }
169
- },
170
- // Handle Alignment
171
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
172
- '&.sticky': {
173
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
174
- [`& .${resizerHandleThumbClassName}`]: {
175
- position: 'sticky',
176
- top: "var(--ds-space-150, 12px)",
177
- bottom: "var(--ds-space-150, 12px)"
178
- }
179
- },
180
- '&:hover': {
181
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
182
- [`& .${resizerHandleThumbClassName}`]: {
183
- background: "var(--ds-border-focused, #4688EC)"
184
- },
185
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
186
- [`& .${resizerHandleTrackClassName}`]: {
187
- visibility: 'visible',
188
- opacity: 0.5
189
- }
190
- }
191
- },
192
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
193
- [`.${resizerHandleThumbClassName}`]: {
194
- content: "' '",
195
- display: 'flex',
196
- width: 3,
197
- margin: `0 ${"var(--ds-space-025, 2px)"}`,
198
- height: 64,
199
- transition: 'background-color 0.2s',
200
- borderRadius: "var(--ds-radius-medium, 6px)",
201
- border: 0,
202
- padding: 0,
203
- zIndex: 2,
204
- outline: 'none',
205
- minHeight: 24,
206
- background: "var(--ds-border, #0B120E24)",
207
- '&:hover': {
208
- cursor: 'col-resize'
209
- },
210
- '&:focus': {
211
- background: "var(--ds-border-selected, #1868DB)",
212
- '&::after': {
213
- content: "''",
214
- position: 'absolute',
215
- top: "var(--ds-space-negative-050, -4px)",
216
- right: "var(--ds-space-negative-050, -4px)",
217
- bottom: "var(--ds-space-negative-050, -4px)",
218
- left: "var(--ds-space-negative-050, -4px)",
219
- border: `${"var(--ds-border-width-selected, 2px)"} solid ${"var(--ds-border-focused, #4688EC)"}`,
220
- borderRadius: 'inherit',
221
- zIndex: -1
222
- }
223
- }
224
- },
225
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
226
- [`.${resizerHandleTrackClassName}`]: {
227
- visibility: 'hidden',
228
- position: 'absolute',
229
- width: 7,
230
- height: 'calc(100% - 40px)',
231
- borderRadius: "var(--ds-radius-small, 4px)",
232
- opacity: 0,
233
- transition: 'background-color 0.2s, visibility 0.2s, opacity 0.2s',
234
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
235
- '&.none': {
236
- background: 'none'
237
- },
238
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
239
- '&.shadow': {
240
- background: "var(--ds-background-selected, #E9F2FE)"
241
- },
242
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
243
- '&.full-height': {
244
- background: "var(--ds-background-selected, #E9F2FE)",
245
- height: '100%',
246
- minHeight: 36
247
- }
248
- },
249
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
250
- [`.${akEditorSelectedNodeClassName}`]: {
251
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
252
- [`& .${resizerHandleThumbClassName}`]: {
253
- background: "var(--ds-border-focused, #4688EC)"
254
- }
255
- },
256
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
257
- [`.ak-editor-no-interaction .ak-editor-selected-node .${resizerHandleClassName}:not(:hover) .${resizerHandleThumbClassName}`]: {
258
- background: "var(--ds-border, #0B120E24)"
259
- },
260
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
261
- [`.${resizerHoverZoneClassName}`]: {
262
- position: 'relative',
263
- display: 'flow-root',
264
- width: '100%',
265
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
266
-
267
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
268
- [`&.${resizerExtendedZone}`]: {
269
- padding: `0 ${"var(--ds-space-150, 12px)"}`,
270
- left: "var(--ds-space-negative-150, -12px)"
271
- }
272
- },
273
- // This below style is here to make sure the image width is correct when nested in a table
274
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
275
- [`table .${resizerHoverZoneClassName}, table .${resizerHoverZoneClassName}.${resizerExtendedZone}`]: {
276
- padding: 'unset',
277
- left: 'unset'
278
- }
279
- });
280
-
281
- /**
282
- * Bottom-handle styles for the vertical-resize feature shipped under the
283
- * `databases-native-embeds-v2` experiment
284
- */
285
- /**
286
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
287
- * If you need to make changes here, also update the corresponding style in
288
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
289
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
290
- */
291
- export const resizerBottomHandleStyles = css({
292
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
293
- [`.${resizerHandleClassName}.bottom`]: {
294
- flexDirection: 'row',
295
- alignItems: 'flex-end',
296
- width: '100%',
297
- height: 7,
298
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
299
- [`& .${resizerHandleThumbClassName}`]: {
300
- width: 64,
301
- height: 3,
302
- minWidth: 24,
303
- minHeight: 0,
304
- margin: `${"var(--ds-space-025, 2px)"} 0`,
305
- '&:hover': {
306
- cursor: 'row-resize'
307
- }
308
- },
309
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
310
- [`& .${resizerHandleTrackClassName}`]: {
311
- width: 'calc(100% - 40px)',
312
- height: 7
313
- },
314
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
315
- [`& .${resizerHandleTrackClassName}.full-height`]: {
316
- width: '100%',
317
- height: 7,
318
- minWidth: 36,
319
- minHeight: 0
320
- }
321
- },
322
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
323
- [`.${resizerHandleClassName}.small.bottom .${resizerHandleThumbClassName}`]: {
324
- width: 43,
325
- height: 3
326
- },
327
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
328
- [`.${resizerHandleClassName}.medium.bottom .${resizerHandleThumbClassName}`]: {
329
- width: 64,
330
- height: 3
331
- },
332
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
333
- [`.${resizerHandleClassName}.large.bottom .${resizerHandleThumbClassName}`]: {
334
- width: 96,
335
- height: 3
336
- },
337
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
338
- [`.${resizerHandleClassName}.clamped.bottom .${resizerHandleThumbClassName}`]: {
339
- width: 'clamp(43px, calc(100% - 32px), 96px)',
340
- height: 3
341
- }
342
- });
343
- /**
344
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
345
- * If you need to make changes here, also update the corresponding style in
346
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
347
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
348
- */
349
- export const pragmaticResizerStylesForTooltip = css({
350
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
351
- '.pm-breakout-resize-handle-rail-wrapper': {
352
- display: 'flex',
353
- alignItems: 'center',
354
- justifyContent: 'center',
355
- height: '100%',
356
- cursor: 'col-resize',
357
- borderRadius: "var(--ds-radius-small, 4px)",
358
- zIndex: 2,
359
- // Tooltip element. Guard skips top-layer elements (eg tooltip, modal); `:where()` keeps
360
- // specificity unchanged.
361
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
362
- '[role="presentation"]:not(:where([popover], dialog, [popover] *, dialog *))': {
363
- height: '100%',
364
- width: '100%'
365
- },
366
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
367
- '.pm-breakout-resize-handle-rail-inside-tooltip': {
368
- height: '100%'
369
- }
370
- }
371
- });
372
- /**
373
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
374
- * If you need to make changes here, also update the corresponding style in
375
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
376
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
377
- */
378
- export const pragmaticStylesLayoutFirstNodeResizeHandleFix = css({
379
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
380
- '.fabric-editor-breakout-mark': {
381
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
382
- '&:has([data-prosemirror-node-name="layoutSection"].first-node-in-document)': {
383
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
384
- '> .pm-breakout-resize-handle-container': {
385
- height: 'calc(100% - 8px)'
386
- }
387
- }
388
- }
389
- });
390
-
391
- // Code block resizer position: legacy selector (matches any descendant code block).
392
- // When synced block contains a code block, this incorrectly applies -5px and the handle appears inside the border.
393
- /**
394
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
395
- * If you need to make changes here, also update the corresponding style in
396
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
397
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
398
- */
399
- export const pragmaticResizerStylesCodeBlockLegacy = css({
400
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
401
- '.fabric-editor-breakout-mark': {
402
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
403
- '&:has([data-prosemirror-node-name="codeBlock"])': {
404
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
405
- '> .pm-breakout-resize-handle-container--left': {
406
- left: '-5px'
407
- },
408
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
409
- '> .pm-breakout-resize-handle-container--right': {
410
- right: '-5px'
411
- },
412
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
413
- '> .pm-breakout-resize-handle-container': {
414
- height: 'calc(100% - 12px)'
415
- }
416
- },
417
- // the first node in the document always has margin-top = 0
418
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
419
- '&:has(.first-node-in-document)': {
420
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
421
- '> .pm-breakout-resize-handle-container': {
422
- height: '100%'
423
- }
424
- }
425
- }
426
- });
427
-
428
- // Code block resizer position: only when breakout directly wraps a code block.
429
- // Synced block containing code block keeps -24px from pragmaticResizerStylesSyncedBlock so the handle stays outside.
430
- /**
431
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
432
- * If you need to make changes here, also update the corresponding style in
433
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
434
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
435
- */
436
- export const pragmaticResizerStylesCodeBlockSyncedBlockPatch = css({
437
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
438
- '.fabric-editor-breakout-mark': {
439
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
440
- '&:has(> .fabric-editor-breakout-mark-dom > [data-prosemirror-node-name="codeBlock"])': {
441
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
442
- '> .pm-breakout-resize-handle-container--left': {
443
- left: '-5px'
444
- },
445
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
446
- '> .pm-breakout-resize-handle-container--right': {
447
- right: '-5px'
448
- },
449
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
450
- '> .pm-breakout-resize-handle-container': {
451
- height: 'calc(100% - 12px)'
452
- }
453
- },
454
- // the first node in the document always has margin-top = 0
455
- // class name is duplicated to boost specificity
456
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
457
- '&:has(.first-node-in-document.first-node-in-document)': {
458
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
459
- '> .pm-breakout-resize-handle-container': {
460
- height: '100%'
461
- }
462
- }
463
- }
464
- });
465
- /**
466
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
467
- * If you need to make changes here, also update the corresponding style in
468
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
469
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
470
- */
471
- export const pragmaticResizerStyles = css({
472
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
473
- '.fabric-editor-breakout-mark': {
474
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
475
- '&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
476
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
477
- '> .pm-breakout-resize-handle-container--left': {
478
- left: '-25px'
479
- },
480
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
481
- '> .pm-breakout-resize-handle-container--right': {
482
- right: '-25px'
483
- }
484
- },
485
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
486
- '&:has([data-prosemirror-node-name="expand"])': {
487
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
488
- '> .pm-breakout-resize-handle-container': {
489
- height: 'calc(100% - 4px)'
490
- }
491
- },
492
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
493
- '&:has([data-prosemirror-node-name="layoutSection"])': {
494
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
495
- '> .pm-breakout-resize-handle-container': {
496
- height: 'calc(100% - 8px)'
497
- }
498
- },
499
- // the first node in the document always has margin-top = 0
500
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
501
- '&:has(.first-node-in-document)': {
502
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
503
- '> .pm-breakout-resize-handle-container': {
504
- height: '100%'
505
- }
506
- }
507
- },
508
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
509
- '.pm-breakout-resize-handle-container': {
510
- position: 'relative',
511
- alignSelf: 'end',
512
- gridRow: 1,
513
- gridColumn: 1,
514
- height: '100%',
515
- width: 7
516
- },
517
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
518
- '.pm-breakout-resize-handle-container--left': {
519
- justifySelf: 'start'
520
- },
521
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
522
- '.pm-breakout-resize-handle-container--right': {
523
- justifySelf: 'end'
524
- },
525
- // Rail and thumb styles intentionally mirror the layout column divider
526
- // (see layoutColumnDividerRailClassName and layoutColumnDividerThumbClassName in layout.ts).
527
- // If updating these styles, consider keeping both in sync.
528
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
529
- '.pm-breakout-resize-handle-rail': {
530
- position: 'relative',
531
- display: 'flex',
532
- alignItems: 'center',
533
- justifyContent: 'center',
534
- height: '100%',
535
- cursor: 'col-resize',
536
- borderRadius: "var(--ds-radius-small, 4px)",
537
- transition: 'background-color 0.2s, visibility 0.2s, opacity 0.2s',
538
- zIndex: 2,
539
- opacity: 0,
540
- '&:hover': {
541
- background: "var(--ds-background-selected, #E9F2FE)",
542
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
543
- '.pm-breakout-resize-handle-thumb': {
544
- background: "var(--ds-border-focused, #4688EC)"
545
- }
546
- }
547
- },
548
- // Positions the vanilla resize tooltip at the pointer's Y, set by `pragmatic-resizer.tsx`.
549
- // Inert until `platform_editor_use_vanilla_components` — nothing carries this class on control.
550
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
551
- '.pm-breakout-resize-tooltip-anchor': {
552
- position: 'absolute',
553
- left: 0,
554
- right: 0,
555
- height: 0,
556
- pointerEvents: 'none',
557
- top: 'var(--pm-breakout-resize-tooltip-anchor-top, 0)'
558
- },
559
- // same as 'hover' styles above
560
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
561
- '.pm-breakout-resize-handle-container--active': {
562
- background: "var(--ds-background-selected, #E9F2FE)",
563
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
564
- '.pm-breakout-resize-handle-thumb': {
565
- background: "var(--ds-border-focused, #4688EC)"
566
- }
567
- },
568
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
569
- '.pm-breakout-resize-handle-hit-box': {
570
- position: 'absolute',
571
- top: 0,
572
- bottom: 0,
573
- left: -20,
574
- right: -20,
575
- zIndex: 0
576
- },
577
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
578
- '.pm-breakout-resize-handle-thumb': {
579
- minWidth: resizerHandleThumbWidth,
580
- // copied from resizeStyles.clamped
581
- height: 'clamp(27px, calc(100% - 32px), 96px)',
582
- background: "var(--ds-border, #0B120E24)",
583
- borderRadius: "var(--ds-radius-medium, 6px)",
584
- // sticky styles
585
- position: 'sticky',
586
- top: "var(--ds-space-150, 12px)",
587
- bottom: "var(--ds-space-150, 12px)"
588
- }
589
- });
590
- /**
591
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
592
- * If you need to make changes here, also update the corresponding style in
593
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
594
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
595
- */
596
- export const pragmaticResizerStylesSyncedBlock = css({
597
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
598
- '.fabric-editor-breakout-mark': {
599
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
600
- '&:has([data-prosemirror-node-name="syncBlock"]), &:has([data-prosemirror-node-name="bodiedSyncBlock"])': {
601
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
602
- '> .pm-breakout-resize-handle-container--left': {
603
- left: '-24px'
604
- },
605
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
606
- '> .pm-breakout-resize-handle-container--right': {
607
- right: '-24px'
608
- },
609
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
610
- '> .pm-breakout-resize-handle-container': {
611
- height: 'calc(100% - 12px)'
612
- }
613
- }
614
- }
615
- });
616
- /**
617
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
618
- * If you need to make changes here, also update the corresponding style in
619
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
620
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
621
- */
622
- export const pragmaticResizerStylesWithReducedEditorGutter = css({
623
- /* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */
624
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
625
- [`@container editor-area (max-width: ${akEditorFullPageNarrowBreakout}px)`]: {
626
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
627
- '.fabric-editor-breakout-mark': {
628
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
629
- '&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
630
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
631
- '> .pm-breakout-resize-handle-container': {
632
- opacity: 0,
633
- visibility: 'hidden'
634
- }
635
- },
636
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
637
- '&:has([data-prosemirror-node-name="layoutSection"])': {
638
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
639
- [`.${resizerItemClassName}`]: {
640
- willChange: 'width',
641
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
642
- '&:hover, &.display-handle': {
643
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
644
- [`& > .${handleWrapperClass} > .${resizerHandleClassName}`]: {
645
- visibility: 'hidden',
646
- opacity: 0
647
- }
648
- }
649
- }
650
- }
651
- }
652
- }
653
- });
654
- /**
655
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
656
- * If you need to make changes here, also update the corresponding style in
657
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
658
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
659
- */
660
- export const pragmaticResizerStylesPanelAndRule = css({
661
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
662
- '.fabric-editor-breakout-mark': {
663
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
664
- '&:has(> .fabric-editor-breakout-mark-dom > [data-prosemirror-node-name="panel"])': {
665
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
666
- '> .pm-breakout-resize-handle-container--right': {
667
- right: '-4px'
668
- },
669
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
670
- '> .pm-breakout-resize-handle-container': {
671
- height: 'calc(100% - 12px)'
672
- }
673
- },
674
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
675
- '&:has(> .fabric-editor-breakout-mark-dom > [data-prosemirror-node-name="panel_c1"])': {
676
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
677
- '> .pm-breakout-resize-handle-container--right': {
678
- right: '-4px'
679
- },
680
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
681
- '> .pm-breakout-resize-handle-container': {
682
- height: 'calc(100% - 12px)'
683
- }
684
- },
685
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
686
- '&:has(> .fabric-editor-breakout-mark-dom > [data-prosemirror-node-name="rule"])': {
687
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
688
- '> .pm-breakout-resize-handle-container--right': {
689
- right: '-4px'
690
- },
691
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
692
- '> .pm-breakout-resize-handle-container': {
693
- alignSelf: 'center',
694
- height: '40px'
695
- }
696
- },
697
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
698
- '&:has(> .fabric-editor-breakout-mark-dom > [data-prosemirror-node-name="rule"].first-node-in-document)': {
699
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
700
- '> .pm-breakout-resize-handle-container': {
701
- transform: 'translateY(-12px)'
702
- }
703
- }
704
- }
705
- });
706
- /**
707
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
708
- * If you need to make changes here, also update the corresponding style in
709
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
710
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
711
- */
712
- export const pragmaticResizerStylesExtensions = css({
713
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
714
- '.fabric-editor-breakout-mark': {
715
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
716
- '&:has([data-prosemirror-node-name="extension"]), &:has([data-prosemirror-node-name="bodiedExtension"]), &:has([data-prosemirror-node-name="multiBodiedExtension"])': {
717
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
718
- '> .pm-breakout-resize-handle-container--right': {
719
- right: '-25px'
720
- }
721
- }
722
- }
723
- });