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