@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.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/composable-editor/core-editor.js +4 -0
- package/dist/cjs/composable-editor/editor-internal.js +18 -3
- package/dist/cjs/create-editor/ReactEditorView.js +9 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -3
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +5 -9
- package/dist/cjs/ui/quick-insert/getExtensionQuickInsertComponents.js +4 -11
- package/dist/cjs/utils/performance/components/RenderTracking.js +44 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/core-editor.js +5 -1
- package/dist/es2019/composable-editor/editor-internal.js +18 -3
- package/dist/es2019/create-editor/ReactEditorView.js +9 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +2 -4
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +5 -7
- package/dist/es2019/ui/quick-insert/getExtensionQuickInsertComponents.js +2 -2
- package/dist/es2019/utils/performance/components/RenderTracking.js +36 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/core-editor.js +5 -1
- package/dist/esm/composable-editor/editor-internal.js +18 -3
- package/dist/esm/create-editor/ReactEditorView.js +9 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +2 -4
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +5 -9
- package/dist/esm/ui/quick-insert/getExtensionQuickInsertComponents.js +5 -12
- package/dist/esm/utils/performance/components/RenderTracking.js +37 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor-internal.d.ts +2 -0
- package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +6 -5
- package/dist/types/utils/performance/components/RenderTracking.d.ts +13 -0
- package/package.json +41 -41
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +0 -761
- package/dist/cjs/ui/EditorContentContainer/styles/agentShimmerStyles.js +0 -121
- package/dist/cjs/ui/EditorContentContainer/styles/aiPanel.js +0 -228
- package/dist/cjs/ui/EditorContentContainer/styles/annotationStyles.js +0 -52
- package/dist/cjs/ui/EditorContentContainer/styles/backgroundColorStyles.js +0 -70
- package/dist/cjs/ui/EditorContentContainer/styles/baseStyles.js +0 -121
- package/dist/cjs/ui/EditorContentContainer/styles/blockMarksStyles.js +0 -38
- package/dist/cjs/ui/EditorContentContainer/styles/blockSpacingStyles.js +0 -113
- package/dist/cjs/ui/EditorContentContainer/styles/blockTypeStyles.js +0 -332
- package/dist/cjs/ui/EditorContentContainer/styles/codeBlockStyles.js +0 -244
- package/dist/cjs/ui/EditorContentContainer/styles/codeMarkStyles.js +0 -38
- package/dist/cjs/ui/EditorContentContainer/styles/commentEditorStyles.js +0 -39
- package/dist/cjs/ui/EditorContentContainer/styles/containerTypeStyles.js +0 -38
- package/dist/cjs/ui/EditorContentContainer/styles/cursorStyles.js +0 -31
- package/dist/cjs/ui/EditorContentContainer/styles/dateStyles.js +0 -100
- package/dist/cjs/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +0 -39
- package/dist/cjs/ui/EditorContentContainer/styles/embedCardStyles.js +0 -41
- package/dist/cjs/ui/EditorContentContainer/styles/emoji.js +0 -471
- package/dist/cjs/ui/EditorContentContainer/styles/expandStyles.js +0 -352
- package/dist/cjs/ui/EditorContentContainer/styles/extensionStyles.js +0 -436
- package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -260
- package/dist/cjs/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +0 -63
- package/dist/cjs/ui/EditorContentContainer/styles/floatingToolbarStyles.js +0 -25
- package/dist/cjs/ui/EditorContentContainer/styles/fontSizeStyles.js +0 -51
- package/dist/cjs/ui/EditorContentContainer/styles/fullPageEditorStyles.js +0 -27
- package/dist/cjs/ui/EditorContentContainer/styles/gapCursorStyles.js +0 -125
- package/dist/cjs/ui/EditorContentContainer/styles/gridStyles.js +0 -49
- package/dist/cjs/ui/EditorContentContainer/styles/indentationStyles.js +0 -55
- package/dist/cjs/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +0 -56
- package/dist/cjs/ui/EditorContentContainer/styles/layout.js +0 -781
- package/dist/cjs/ui/EditorContentContainer/styles/link.js +0 -66
- package/dist/cjs/ui/EditorContentContainer/styles/list.js +0 -325
- package/dist/cjs/ui/EditorContentContainer/styles/mediaStyles.js +0 -343
- package/dist/cjs/ui/EditorContentContainer/styles/mentions.js +0 -273
- package/dist/cjs/ui/EditorContentContainer/styles/overflowShadowStyles.js +0 -20
- package/dist/cjs/ui/EditorContentContainer/styles/panelStyles.js +0 -387
- package/dist/cjs/ui/EditorContentContainer/styles/paragraphStyles.js +0 -71
- package/dist/cjs/ui/EditorContentContainer/styles/placeholderStyles.js +0 -134
- package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +0 -648
- package/dist/cjs/ui/EditorContentContainer/styles/rule.js +0 -48
- package/dist/cjs/ui/EditorContentContainer/styles/scrollbarStyles.js +0 -38
- package/dist/cjs/ui/EditorContentContainer/styles/selectionStyles.js +0 -177
- package/dist/cjs/ui/EditorContentContainer/styles/selectionToolbarStyles.js +0 -35
- package/dist/cjs/ui/EditorContentContainer/styles/shadowStyles.js +0 -76
- package/dist/cjs/ui/EditorContentContainer/styles/smartCardStyles.js +0 -473
- package/dist/cjs/ui/EditorContentContainer/styles/statusStyles.js +0 -305
- package/dist/cjs/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +0 -37
- package/dist/cjs/ui/EditorContentContainer/styles/syncBlockStyles.js +0 -253
- package/dist/cjs/ui/EditorContentContainer/styles/tableStyles.js +0 -327
- package/dist/cjs/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +0 -467
- package/dist/cjs/ui/EditorContentContainer/styles/telepointerStyles.js +0 -233
- package/dist/cjs/ui/EditorContentContainer/styles/textColorStyles.js +0 -27
- package/dist/cjs/ui/EditorContentContainer/styles/textHighlightStyles.js +0 -24
- package/dist/cjs/ui/EditorContentContainer/styles/unsupportedStyles.js +0 -104
- package/dist/cjs/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +0 -42
- package/dist/cjs/ui/EditorContentContainer/styles/whitespaceStyles.js +0 -24
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +0 -764
- package/dist/es2019/ui/EditorContentContainer/styles/agentShimmerStyles.js +0 -115
- package/dist/es2019/ui/EditorContentContainer/styles/aiPanel.js +0 -225
- package/dist/es2019/ui/EditorContentContainer/styles/annotationStyles.js +0 -55
- package/dist/es2019/ui/EditorContentContainer/styles/backgroundColorStyles.js +0 -64
- package/dist/es2019/ui/EditorContentContainer/styles/baseStyles.js +0 -119
- package/dist/es2019/ui/EditorContentContainer/styles/blockMarksStyles.js +0 -32
- package/dist/es2019/ui/EditorContentContainer/styles/blockSpacingStyles.js +0 -115
- package/dist/es2019/ui/EditorContentContainer/styles/blockTypeStyles.js +0 -338
- package/dist/es2019/ui/EditorContentContainer/styles/codeBlockStyles.js +0 -301
- package/dist/es2019/ui/EditorContentContainer/styles/codeMarkStyles.js +0 -32
- package/dist/es2019/ui/EditorContentContainer/styles/commentEditorStyles.js +0 -33
- package/dist/es2019/ui/EditorContentContainer/styles/containerTypeStyles.js +0 -32
- package/dist/es2019/ui/EditorContentContainer/styles/cursorStyles.js +0 -25
- package/dist/es2019/ui/EditorContentContainer/styles/dateStyles.js +0 -122
- package/dist/es2019/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +0 -33
- package/dist/es2019/ui/EditorContentContainer/styles/embedCardStyles.js +0 -35
- package/dist/es2019/ui/EditorContentContainer/styles/emoji.js +0 -530
- package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +0 -346
- package/dist/es2019/ui/EditorContentContainer/styles/extensionStyles.js +0 -432
- package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -355
- package/dist/es2019/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +0 -60
- package/dist/es2019/ui/EditorContentContainer/styles/floatingToolbarStyles.js +0 -19
- package/dist/es2019/ui/EditorContentContainer/styles/fontSizeStyles.js +0 -45
- package/dist/es2019/ui/EditorContentContainer/styles/fullPageEditorStyles.js +0 -21
- package/dist/es2019/ui/EditorContentContainer/styles/gapCursorStyles.js +0 -195
- package/dist/es2019/ui/EditorContentContainer/styles/gridStyles.js +0 -43
- package/dist/es2019/ui/EditorContentContainer/styles/indentationStyles.js +0 -49
- package/dist/es2019/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +0 -50
- package/dist/es2019/ui/EditorContentContainer/styles/layout.js +0 -886
- package/dist/es2019/ui/EditorContentContainer/styles/link.js +0 -60
- package/dist/es2019/ui/EditorContentContainer/styles/list.js +0 -322
- package/dist/es2019/ui/EditorContentContainer/styles/mediaStyles.js +0 -483
- package/dist/es2019/ui/EditorContentContainer/styles/mentions.js +0 -287
- package/dist/es2019/ui/EditorContentContainer/styles/overflowShadowStyles.js +0 -55
- package/dist/es2019/ui/EditorContentContainer/styles/panelStyles.js +0 -381
- package/dist/es2019/ui/EditorContentContainer/styles/paragraphStyles.js +0 -65
- package/dist/es2019/ui/EditorContentContainer/styles/placeholderStyles.js +0 -128
- package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +0 -723
- package/dist/es2019/ui/EditorContentContainer/styles/rule.js +0 -45
- package/dist/es2019/ui/EditorContentContainer/styles/scrollbarStyles.js +0 -32
- package/dist/es2019/ui/EditorContentContainer/styles/selectionStyles.js +0 -171
- package/dist/es2019/ui/EditorContentContainer/styles/selectionToolbarStyles.js +0 -29
- package/dist/es2019/ui/EditorContentContainer/styles/shadowStyles.js +0 -81
- package/dist/es2019/ui/EditorContentContainer/styles/smartCardStyles.js +0 -666
- package/dist/es2019/ui/EditorContentContainer/styles/statusStyles.js +0 -299
- package/dist/es2019/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +0 -34
- package/dist/es2019/ui/EditorContentContainer/styles/syncBlockStyles.js +0 -325
- package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +0 -341
- package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +0 -508
- package/dist/es2019/ui/EditorContentContainer/styles/telepointerStyles.js +0 -227
- package/dist/es2019/ui/EditorContentContainer/styles/textColorStyles.js +0 -21
- package/dist/es2019/ui/EditorContentContainer/styles/textHighlightStyles.js +0 -18
- package/dist/es2019/ui/EditorContentContainer/styles/unsupportedStyles.js +0 -110
- package/dist/es2019/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +0 -36
- package/dist/es2019/ui/EditorContentContainer/styles/whitespaceStyles.js +0 -18
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +0 -759
- package/dist/esm/ui/EditorContentContainer/styles/agentShimmerStyles.js +0 -115
- package/dist/esm/ui/EditorContentContainer/styles/aiPanel.js +0 -221
- package/dist/esm/ui/EditorContentContainer/styles/annotationStyles.js +0 -45
- package/dist/esm/ui/EditorContentContainer/styles/backgroundColorStyles.js +0 -64
- package/dist/esm/ui/EditorContentContainer/styles/baseStyles.js +0 -114
- package/dist/esm/ui/EditorContentContainer/styles/blockMarksStyles.js +0 -32
- package/dist/esm/ui/EditorContentContainer/styles/blockSpacingStyles.js +0 -107
- package/dist/esm/ui/EditorContentContainer/styles/blockTypeStyles.js +0 -325
- package/dist/esm/ui/EditorContentContainer/styles/codeBlockStyles.js +0 -238
- package/dist/esm/ui/EditorContentContainer/styles/codeMarkStyles.js +0 -32
- package/dist/esm/ui/EditorContentContainer/styles/commentEditorStyles.js +0 -33
- package/dist/esm/ui/EditorContentContainer/styles/containerTypeStyles.js +0 -32
- package/dist/esm/ui/EditorContentContainer/styles/cursorStyles.js +0 -25
- package/dist/esm/ui/EditorContentContainer/styles/dateStyles.js +0 -94
- package/dist/esm/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +0 -33
- package/dist/esm/ui/EditorContentContainer/styles/embedCardStyles.js +0 -35
- package/dist/esm/ui/EditorContentContainer/styles/emoji.js +0 -464
- package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +0 -346
- package/dist/esm/ui/EditorContentContainer/styles/extensionStyles.js +0 -430
- package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -253
- package/dist/esm/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +0 -56
- package/dist/esm/ui/EditorContentContainer/styles/floatingToolbarStyles.js +0 -19
- package/dist/esm/ui/EditorContentContainer/styles/fontSizeStyles.js +0 -45
- package/dist/esm/ui/EditorContentContainer/styles/fullPageEditorStyles.js +0 -21
- package/dist/esm/ui/EditorContentContainer/styles/gapCursorStyles.js +0 -118
- package/dist/esm/ui/EditorContentContainer/styles/gridStyles.js +0 -43
- package/dist/esm/ui/EditorContentContainer/styles/indentationStyles.js +0 -49
- package/dist/esm/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +0 -50
- package/dist/esm/ui/EditorContentContainer/styles/layout.js +0 -774
- package/dist/esm/ui/EditorContentContainer/styles/link.js +0 -60
- package/dist/esm/ui/EditorContentContainer/styles/list.js +0 -318
- package/dist/esm/ui/EditorContentContainer/styles/mediaStyles.js +0 -337
- package/dist/esm/ui/EditorContentContainer/styles/mentions.js +0 -267
- package/dist/esm/ui/EditorContentContainer/styles/overflowShadowStyles.js +0 -14
- package/dist/esm/ui/EditorContentContainer/styles/panelStyles.js +0 -381
- package/dist/esm/ui/EditorContentContainer/styles/paragraphStyles.js +0 -65
- package/dist/esm/ui/EditorContentContainer/styles/placeholderStyles.js +0 -128
- package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +0 -641
- package/dist/esm/ui/EditorContentContainer/styles/rule.js +0 -41
- package/dist/esm/ui/EditorContentContainer/styles/scrollbarStyles.js +0 -32
- package/dist/esm/ui/EditorContentContainer/styles/selectionStyles.js +0 -171
- package/dist/esm/ui/EditorContentContainer/styles/selectionToolbarStyles.js +0 -29
- package/dist/esm/ui/EditorContentContainer/styles/shadowStyles.js +0 -69
- package/dist/esm/ui/EditorContentContainer/styles/smartCardStyles.js +0 -468
- package/dist/esm/ui/EditorContentContainer/styles/statusStyles.js +0 -299
- package/dist/esm/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +0 -30
- package/dist/esm/ui/EditorContentContainer/styles/syncBlockStyles.js +0 -247
- package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +0 -320
- package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +0 -461
- package/dist/esm/ui/EditorContentContainer/styles/telepointerStyles.js +0 -227
- package/dist/esm/ui/EditorContentContainer/styles/textColorStyles.js +0 -21
- package/dist/esm/ui/EditorContentContainer/styles/textHighlightStyles.js +0 -18
- package/dist/esm/ui/EditorContentContainer/styles/unsupportedStyles.js +0 -98
- package/dist/esm/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +0 -36
- package/dist/esm/ui/EditorContentContainer/styles/whitespaceStyles.js +0 -18
- package/dist/types/ui/EditorContentContainer/EditorContentContainer-emotion.d.ts +0 -21
- package/dist/types/ui/EditorContentContainer/styles/agentShimmerStyles.d.ts +0 -2
- package/dist/types/ui/EditorContentContainer/styles/aiPanel.d.ts +0 -29
- package/dist/types/ui/EditorContentContainer/styles/annotationStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/backgroundColorStyles.d.ts +0 -22
- package/dist/types/ui/EditorContentContainer/styles/baseStyles.d.ts +0 -36
- package/dist/types/ui/EditorContentContainer/styles/blockMarksStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/blockSpacingStyles.d.ts +0 -18
- package/dist/types/ui/EditorContentContainer/styles/blockTypeStyles.d.ts +0 -65
- package/dist/types/ui/EditorContentContainer/styles/codeBlockStyles.d.ts +0 -39
- package/dist/types/ui/EditorContentContainer/styles/codeMarkStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/commentEditorStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/containerTypeStyles.d.ts +0 -26
- package/dist/types/ui/EditorContentContainer/styles/cursorStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/dateStyles.d.ts +0 -32
- package/dist/types/ui/EditorContentContainer/styles/editorUGCTokenStyles.d.ts +0 -16
- package/dist/types/ui/EditorContentContainer/styles/embedCardStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/emoji.d.ts +0 -55
- package/dist/types/ui/EditorContentContainer/styles/expandStyles.d.ts +0 -52
- package/dist/types/ui/EditorContentContainer/styles/extensionStyles.d.ts +0 -20
- package/dist/types/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +0 -22
- package/dist/types/ui/EditorContentContainer/styles/firstBlockNodeStyles.d.ts +0 -20
- package/dist/types/ui/EditorContentContainer/styles/floatingToolbarStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/fontSizeStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/fullPageEditorStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/gapCursorStyles.d.ts +0 -15
- package/dist/types/ui/EditorContentContainer/styles/gridStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/indentationStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/layout.d.ts +0 -207
- package/dist/types/ui/EditorContentContainer/styles/link.d.ts +0 -22
- package/dist/types/ui/EditorContentContainer/styles/list.d.ts +0 -50
- package/dist/types/ui/EditorContentContainer/styles/mediaStyles.d.ts +0 -41
- package/dist/types/ui/EditorContentContainer/styles/mentions.d.ts +0 -29
- package/dist/types/ui/EditorContentContainer/styles/overflowShadowStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/panelStyles.d.ts +0 -43
- package/dist/types/ui/EditorContentContainer/styles/paragraphStyles.d.ts +0 -22
- package/dist/types/ui/EditorContentContainer/styles/placeholderStyles.d.ts +0 -22
- package/dist/types/ui/EditorContentContainer/styles/resizerStyles.d.ts +0 -145
- package/dist/types/ui/EditorContentContainer/styles/rule.d.ts +0 -15
- package/dist/types/ui/EditorContentContainer/styles/scrollbarStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/selectionStyles.d.ts +0 -74
- package/dist/types/ui/EditorContentContainer/styles/selectionToolbarStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/shadowStyles.d.ts +0 -29
- package/dist/types/ui/EditorContentContainer/styles/smartCardStyles.d.ts +0 -96
- package/dist/types/ui/EditorContentContainer/styles/statusStyles.d.ts +0 -36
- package/dist/types/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.d.ts +0 -17
- package/dist/types/ui/EditorContentContainer/styles/syncBlockStyles.d.ts +0 -36
- package/dist/types/ui/EditorContentContainer/styles/tableStyles.d.ts +0 -84
- package/dist/types/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +0 -77
- package/dist/types/ui/EditorContentContainer/styles/telepointerStyles.d.ts +0 -15
- package/dist/types/ui/EditorContentContainer/styles/textColorStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/textHighlightStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/unsupportedStyles.d.ts +0 -27
- package/dist/types/ui/EditorContentContainer/styles/vanillaTooltipStyles.d.ts +0 -11
- package/dist/types/ui/EditorContentContainer/styles/whitespaceStyles.d.ts +0 -8
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled,
|
|
2
|
-
@atlaskit/ui-styling-standard/no-exported-styles,
|
|
3
|
-
@atlaskit/ui-styling-standard/no-nested-selectors,
|
|
4
|
-
@atlaskit/ui-styling-standard/no-unsafe-values,
|
|
5
|
-
@atlaskit/ui-styling-standard/no-unsafe-selectors,
|
|
6
|
-
@atlaskit/ui-styling-standard/no-imported-style-values */
|
|
7
|
-
|
|
8
|
-
import { css } from '@emotion/react';
|
|
9
|
-
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Emotion mirror of the block-spacing styles in EditorContentContainer-compiled.tsx.
|
|
13
|
-
*
|
|
14
|
-
* Re-declares the block-element vertical margins so they read from the
|
|
15
|
-
* --ak-editor-extension-block-spacing CSS custom property (falling back to the original
|
|
16
|
-
* 0.75rem). This is applied LAST in the Emotion container's css array, and only when
|
|
17
|
-
* the platform_editor_extension_block_spacing experiment is enabled, so it overrides
|
|
18
|
-
* the base block margins by source order without affecting the experiment-off behaviour.
|
|
19
|
-
*
|
|
20
|
-
* Keep this in sync with the block-spacing styles in EditorContentContainer-compiled.tsx.
|
|
21
|
-
*/
|
|
22
|
-
export const blockSpacingVarStyles = css({
|
|
23
|
-
'.ProseMirror': {
|
|
24
|
-
// paragraphs
|
|
25
|
-
p: {
|
|
26
|
-
marginTop: 'var(--ak-editor-extension-block-spacing, 0.75rem)'
|
|
27
|
-
},
|
|
28
|
-
// SSR reset rule (mirrors listsStyles `& > style:first-child + p`) so the first
|
|
29
|
-
// paragraph after an SSR style tag also honours the spacing var.
|
|
30
|
-
'& > style:first-child + p': {
|
|
31
|
-
marginTop: 'var(--ak-editor-extension-block-spacing, 0.75rem)'
|
|
32
|
-
},
|
|
33
|
-
// blockquotes — base also zeroes the first blockquote's top margin.
|
|
34
|
-
'& blockquote': {
|
|
35
|
-
marginTop: 'var(--ak-editor-extension-block-spacing, 0.75rem)',
|
|
36
|
-
'&:first-child': {
|
|
37
|
-
marginTop: 0
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
// code blocks
|
|
41
|
-
[`.${CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER}`]: {
|
|
42
|
-
marginTop: 'var(--ak-editor-extension-block-spacing, 0.75rem)'
|
|
43
|
-
},
|
|
44
|
-
li: {
|
|
45
|
-
'> .code-block': {
|
|
46
|
-
marginTop: 'var(--ak-editor-extension-block-spacing, 0.75rem)'
|
|
47
|
-
},
|
|
48
|
-
'> .code-block:first-child, > .ProseMirror-gapcursor:first-child + .code-block': {
|
|
49
|
-
marginTop: 0
|
|
50
|
-
},
|
|
51
|
-
'> div:last-of-type.code-block, > pre:last-of-type.code-block': {
|
|
52
|
-
marginBottom: 'var(--ak-editor-extension-block-spacing, 0.75rem)'
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
// smart cards (block card) — base sets top margin only.
|
|
56
|
-
'.blockCardView-content-wrap': {
|
|
57
|
-
marginTop: 'var(--ak-editor-extension-block-spacing, 0.75rem)'
|
|
58
|
-
},
|
|
59
|
-
// extension wrappers — mirrors the base extensionStyles margin rules exactly so that
|
|
60
|
-
// experiment-on reproduces all of the base first/last margin resets.
|
|
61
|
-
'.extensionView-content-wrap, .multiBodiedExtensionView-content-wrap, .bodiedExtensionView-content-wrap': {
|
|
62
|
-
marginTop: 'var(--ak-editor-extension-block-spacing, 0.75rem)',
|
|
63
|
-
marginBottom: 'var(--ak-editor-extension-block-spacing, 0.75rem)',
|
|
64
|
-
'&:first-of-type': {
|
|
65
|
-
marginTop: 0
|
|
66
|
-
},
|
|
67
|
-
'&:last-of-type': {
|
|
68
|
-
marginBottom: 0
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"[data-mark-type='fragment']": {
|
|
72
|
-
'& > .extensionView-content-wrap, & > .bodiedExtensionView-content-wrap': {
|
|
73
|
-
marginTop: 'var(--ak-editor-extension-block-spacing, 0.75rem)',
|
|
74
|
-
marginBottom: 'var(--ak-editor-extension-block-spacing, 0.75rem)'
|
|
75
|
-
},
|
|
76
|
-
"& > [data-mark-type='dataConsumer']": {
|
|
77
|
-
'& > .extensionView-content-wrap, & > .bodiedExtensionView-content-wrap': {
|
|
78
|
-
marginTop: 'var(--ak-editor-extension-block-spacing, 0.75rem)',
|
|
79
|
-
marginBottom: 'var(--ak-editor-extension-block-spacing, 0.75rem)'
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
'&:first-child': {
|
|
83
|
-
'& > .extensionView-content-wrap, & > .bodiedExtensionView-content-wrap': {
|
|
84
|
-
marginTop: 0
|
|
85
|
-
},
|
|
86
|
-
"& > [data-mark-type='dataConsumer']": {
|
|
87
|
-
'& > .extensionView-content-wrap, & > .bodiedExtensionView-content-wrap': {
|
|
88
|
-
marginTop: 0
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
'&:nth-last-of-type(-n + 2):not(:first-of-type)': {
|
|
93
|
-
'& > .extensionView-content-wrap, & > .bodiedExtensionView-content-wrap': {
|
|
94
|
-
marginBottom: 0
|
|
95
|
-
},
|
|
96
|
-
"& > [data-mark-type='dataConsumer']": {
|
|
97
|
-
'& > .extensionView-content-wrap, & > .bodiedExtensionView-content-wrap': {
|
|
98
|
-
marginBottom: 0
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Scaled (em-based) variant of the block-spacing styles for dense/scaled paragraph contexts.
|
|
108
|
-
* Keep this in sync with the scaled block-spacing styles in EditorContentContainer-compiled.tsx.
|
|
109
|
-
*/
|
|
110
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
111
|
-
export const blockSpacingVarScaledStyles = css({
|
|
112
|
-
'.ProseMirror p': {
|
|
113
|
-
marginTop: 'var(--ak-editor-extension-block-spacing, 0.75em)'
|
|
114
|
-
}
|
|
115
|
-
});
|
|
@@ -1,338 +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 { 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 blocktypeStyles = css({
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
16
|
-
'.ProseMirror': {
|
|
17
|
-
// Block Quote Shared Styles
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
19
|
-
'& blockquote': {
|
|
20
|
-
boxSizing: 'border-box',
|
|
21
|
-
color: 'inherit',
|
|
22
|
-
width: '100%',
|
|
23
|
-
display: 'inline-block',
|
|
24
|
-
// These 2 styles are needed to avoid Confluence's batch.css overrides that expand blockquote with extra padding after SSR.
|
|
25
|
-
paddingTop: 0,
|
|
26
|
-
paddingBottom: 0,
|
|
27
|
-
paddingLeft: "var(--ds-space-200, 16px)",
|
|
28
|
-
borderLeftWidth: "var(--ds-border-width-selected, 2px)",
|
|
29
|
-
borderLeftStyle: 'solid',
|
|
30
|
-
borderLeftColor: "var(--ds-border, #0B120E24)",
|
|
31
|
-
margin: '0.75rem 0 0 0',
|
|
32
|
-
// From https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
33
|
-
marginRight: 0,
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
35
|
-
'[dir="rtl"] &': {
|
|
36
|
-
paddingLeft: 0,
|
|
37
|
-
paddingRight: "var(--ds-space-200, 16px)"
|
|
38
|
-
},
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
40
|
-
'&:first-child': {
|
|
41
|
-
marginTop: 0
|
|
42
|
-
},
|
|
43
|
-
'&::before': {
|
|
44
|
-
content: "''"
|
|
45
|
-
},
|
|
46
|
-
'&::after': {
|
|
47
|
-
content: 'none'
|
|
48
|
-
},
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
50
|
-
'& p': {
|
|
51
|
-
display: 'block'
|
|
52
|
-
},
|
|
53
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
54
|
-
'& table, & table:last-child': {
|
|
55
|
-
display: 'inline-table'
|
|
56
|
-
},
|
|
57
|
-
// Workaround for overriding the inline-block display on last child of a blockquote set in CSS reset.
|
|
58
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
59
|
-
'> .code-block:last-child, >.mediaSingleView-content-wrap:last-child, >.mediaGroupView-content-wrap:last-child': {
|
|
60
|
-
display: 'block'
|
|
61
|
-
},
|
|
62
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
63
|
-
'> .extensionView-content-wrap:last-child': {
|
|
64
|
-
display: 'block'
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
// Headings Shared Styles -> Heading With Alignment Styles
|
|
68
|
-
// Override marginTop: 0 with default margin found in headingsSharedStyles for first heading in alignment block that is not the first child
|
|
69
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
70
|
-
'.fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)': {
|
|
71
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
72
|
-
'> h1:first-child': {
|
|
73
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
74
|
-
marginTop: '1.667em'
|
|
75
|
-
},
|
|
76
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
77
|
-
'> h2:first-child': {
|
|
78
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
79
|
-
marginTop: '1.8em'
|
|
80
|
-
},
|
|
81
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
82
|
-
'> h3:first-child': {
|
|
83
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
84
|
-
marginTop: '2em'
|
|
85
|
-
},
|
|
86
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
87
|
-
'> h4:first-child': {
|
|
88
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
89
|
-
marginTop: '1.357em'
|
|
90
|
-
},
|
|
91
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
92
|
-
'> h5:first-child': {
|
|
93
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
94
|
-
marginTop: '1.667em'
|
|
95
|
-
},
|
|
96
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
97
|
-
'> h6:first-child': {
|
|
98
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
99
|
-
marginTop: '1.455em'
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
// Set marginTop: 0 if alignment block is next to a gap cursor or widget that is first child
|
|
103
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
104
|
-
'.ProseMirror-gapcursor:first-child + .fabric-editor-block-mark.fabric-editor-alignment, .ProseMirror-widget:first-child + .fabric-editor-block-mark.fabric-editor-alignment, .ProseMirror-widget:first-child + .ProseMirror-widget:nth-child(2) + .fabric-editor-block-mark.fabric-editor-alignment': {
|
|
105
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
106
|
-
'> :is(h1, h2, h3, h4, h5, h6):first-child': {
|
|
107
|
-
marginTop: '0'
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
export const headingScrollMarginStyles = css({
|
|
113
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
114
|
-
'.ProseMirror': {
|
|
115
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
116
|
-
'& h1, & h2, & h3, & h4, & h5, & h6': {
|
|
117
|
-
scrollMarginTop: "var(--ds-space-300, 24px)"
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
/**
|
|
122
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
123
|
-
* If you need to make changes here, also update the corresponding style in
|
|
124
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
125
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
126
|
-
*/
|
|
127
|
-
export const blockquoteDangerStyles = css({
|
|
128
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
129
|
-
'.ProseMirror blockquote.danger': {
|
|
130
|
-
backgroundColor: `${"var(--ds-background-danger, #FFECEB)"}`,
|
|
131
|
-
borderLeftColor: `${"var(--ds-border-danger, #E2483D)"}`
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
/**
|
|
135
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
136
|
-
* If you need to make changes here, also update the corresponding style in
|
|
137
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
138
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
139
|
-
*/
|
|
140
|
-
export const blockquoteSelectedNodeStyles = css({
|
|
141
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
142
|
-
'.ProseMirror blockquote.ak-editor-selected-node': {
|
|
143
|
-
background: "var(--ds-background-accent-blue-subtler, #CFE1FD)",
|
|
144
|
-
borderLeftColor: "var(--ds-border-selected, #1868DB)",
|
|
145
|
-
WebkitUserSelect: 'text',
|
|
146
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
147
|
-
'&::selection, *::selection': {
|
|
148
|
-
backgroundColor: 'transparent'
|
|
149
|
-
},
|
|
150
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
151
|
-
'&::-moz-selection, *::-moz-selection': {
|
|
152
|
-
backgroundColor: 'transparent'
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
/**
|
|
157
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
158
|
-
* If you need to make changes here, also update the corresponding style in
|
|
159
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
160
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
161
|
-
*/
|
|
162
|
-
export const blocktypeStyles_fg_platform_editor_typography_ugc = css({
|
|
163
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
164
|
-
'.ProseMirror': {
|
|
165
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
166
|
-
'& h1': {
|
|
167
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
168
|
-
font: 'var(--editor-font-ugc-token-heading-h1)',
|
|
169
|
-
marginBottom: 0,
|
|
170
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
171
|
-
marginTop: '1.45833em',
|
|
172
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
173
|
-
'& strong': {
|
|
174
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
175
|
-
fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
179
|
-
'& h2': {
|
|
180
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
181
|
-
font: 'var(--editor-font-ugc-token-heading-h2)',
|
|
182
|
-
marginBottom: 0,
|
|
183
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
184
|
-
marginTop: '1.4em',
|
|
185
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
186
|
-
'& strong': {
|
|
187
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
188
|
-
fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
192
|
-
'& h3': {
|
|
193
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
194
|
-
font: 'var(--editor-font-ugc-token-heading-h3)',
|
|
195
|
-
marginBottom: 0,
|
|
196
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
197
|
-
marginTop: '1.31249em',
|
|
198
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
199
|
-
'& strong': {
|
|
200
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
201
|
-
fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
205
|
-
'& h4': {
|
|
206
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
207
|
-
font: 'var(--editor-font-ugc-token-heading-h4)',
|
|
208
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
209
|
-
marginTop: '1.25em',
|
|
210
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
211
|
-
'& strong': {
|
|
212
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
213
|
-
fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
217
|
-
'& h5': {
|
|
218
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
219
|
-
font: 'var(--editor-font-ugc-token-heading-h5)',
|
|
220
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
221
|
-
marginTop: '1.45833em',
|
|
222
|
-
textTransform: 'none',
|
|
223
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
224
|
-
'& strong': {
|
|
225
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
226
|
-
fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
230
|
-
'& h6': {
|
|
231
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
232
|
-
font: 'var(--editor-font-ugc-token-heading-h6)',
|
|
233
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
234
|
-
marginTop: '1.59091em',
|
|
235
|
-
textTransform: 'none',
|
|
236
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
237
|
-
'& strong': {
|
|
238
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
239
|
-
fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
/**
|
|
245
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
246
|
-
* If you need to make changes here, also update the corresponding style in
|
|
247
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
248
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
249
|
-
*/
|
|
250
|
-
export const blocktypeStylesNestedDnd = css({
|
|
251
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
252
|
-
'.ak-editor-content-area.appearance-full-page .ProseMirror blockquote': {
|
|
253
|
-
paddingLeft: "var(--ds-space-250, 20px)"
|
|
254
|
-
},
|
|
255
|
-
// Don't want extra padding for inline editor (nested)
|
|
256
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
257
|
-
'.ak-editor-content-area .ak-editor-content-area .ProseMirror blockquote': {
|
|
258
|
-
paddingLeft: "var(--ds-space-200, 16px)"
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
|
|
262
|
-
// This class applies when the node is selected directly or is included in the selected range
|
|
263
|
-
const isSelectedNode = `.${akEditorSelectedNodeClassName}`;
|
|
264
|
-
const isOuterMostSelectedNode = `${isSelectedNode}:not(${isSelectedNode} *)`;
|
|
265
|
-
const isList = ':is(ul, ol, div[data-node-type="actionList"])';
|
|
266
|
-
const isOuterMostList = `${isList}:not(${isList} *)`;
|
|
267
|
-
/**
|
|
268
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
269
|
-
* If you need to make changes here, also update the corresponding style in
|
|
270
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
271
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
272
|
-
*/
|
|
273
|
-
export const listSelectedNodeStyles = css({
|
|
274
|
-
// only apply selected styles to the outermost list to avoid nested selection styles for lists within lists
|
|
275
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
276
|
-
[`.ProseMirror ${isOuterMostList}${isOuterMostSelectedNode}`]: {
|
|
277
|
-
background: "var(--ds-background-accent-blue-subtler, #CFE1FD)",
|
|
278
|
-
WebkitUserSelect: 'text',
|
|
279
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
280
|
-
'&::selection, *::selection': {
|
|
281
|
-
backgroundColor: 'transparent'
|
|
282
|
-
},
|
|
283
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
284
|
-
'&::-moz-selection, *::-moz-selection': {
|
|
285
|
-
backgroundColor: 'transparent'
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
|
-
/**
|
|
290
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
291
|
-
* If you need to make changes here, also update the corresponding style in
|
|
292
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
293
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
294
|
-
*/
|
|
295
|
-
export const listDangerStyles = css({
|
|
296
|
-
// only apply danger styles to the outermost list to avoid nested danger styles for lists within lists
|
|
297
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
298
|
-
[`.ProseMirror ${isOuterMostList}${isOuterMostSelectedNode}.danger`]: {
|
|
299
|
-
background: "var(--ds-background-danger, #FFECEB)"
|
|
300
|
-
}
|
|
301
|
-
});
|
|
302
|
-
const isText = `:is(p, h1, h2, h3, h4, h5, h6)`;
|
|
303
|
-
const isRootText = `${isText}:not(${isList} ${isText})`;
|
|
304
|
-
/**
|
|
305
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
306
|
-
* If you need to make changes here, also update the corresponding style in
|
|
307
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
308
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
309
|
-
*/
|
|
310
|
-
export const textSelectedNodeStyles = css({
|
|
311
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
312
|
-
[`.ProseMirror ${isRootText}${isOuterMostSelectedNode}`]: {
|
|
313
|
-
background: "var(--ds-background-accent-blue-subtler, #CFE1FD)",
|
|
314
|
-
WebkitUserSelect: 'text',
|
|
315
|
-
boxShadow: `0 -4px 0 ${"var(--ds-background-accent-blue-subtler, #CFE1FD)"}, 0 4px 0 ${"var(--ds-background-accent-blue-subtler, #CFE1FD)"}`,
|
|
316
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
317
|
-
'&::selection, *::selection': {
|
|
318
|
-
backgroundColor: 'transparent'
|
|
319
|
-
},
|
|
320
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
321
|
-
'&::-moz-selection, *::-moz-selection': {
|
|
322
|
-
backgroundColor: 'transparent'
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
});
|
|
326
|
-
/**
|
|
327
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
328
|
-
* If you need to make changes here, also update the corresponding style in
|
|
329
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
330
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
331
|
-
*/
|
|
332
|
-
export const textDangerStyles = css({
|
|
333
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
334
|
-
[`.ProseMirror ${isRootText}${isOuterMostSelectedNode}.danger`]: {
|
|
335
|
-
background: "var(--ds-background-danger, #FFECEB)",
|
|
336
|
-
boxShadow: `0 -4px 0 ${"var(--ds-background-danger, #FFECEB)"}, 0 4px 0 ${"var(--ds-background-danger, #FFECEB)"}`
|
|
337
|
-
}
|
|
338
|
-
});
|