@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,299 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled,
|
|
2
|
-
@repo/internal/deprecations/deprecation-ticket-required,
|
|
3
|
-
@atlaskit/ui-styling-standard/no-exported-styles */
|
|
4
|
-
|
|
5
|
-
import { css } from '@emotion/react';
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
8
|
-
* If you need to make changes here, also update the corresponding style in
|
|
9
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
10
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
11
|
-
*/
|
|
12
|
-
export var statusStyles = css({
|
|
13
|
-
// Show diff: status attr change highlight. Keep this with status node styles so the highlight
|
|
14
|
-
// targets the lozenge shape rather than the decoration wrapper.
|
|
15
|
-
// The ON cohort of platform_editor_show_diff_color_scheme_refactor sets
|
|
16
|
-
// --show-diff-atomic-inline-changed-border-color inline, overriding the table below; the OFF
|
|
17
|
-
// cohort picks its colour with the `-traditional` class. Drop the table at cleanup (EDITOR-8281).
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
19
|
-
'.show-diff-atomic-inline-changed-status': {
|
|
20
|
-
'--show-diff-atomic-inline-changed-border-color': "var(--ds-border-accent-purple, #AF59E1)"
|
|
21
|
-
},
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
23
|
-
'.show-diff-atomic-inline-changed-status.show-diff-atomic-inline-changed-traditional': {
|
|
24
|
-
'--show-diff-atomic-inline-changed-border-color': "var(--ds-border-accent-green, #22A06B)"
|
|
25
|
-
},
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
27
|
-
'.show-diff-atomic-inline-changed-status .status-lozenge-span > span, .show-diff-atomic-inline-changed-status .lozenge-wrapper': {
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
29
|
-
boxShadow: "0 0 0 2px var(--show-diff-atomic-inline-changed-border-color, ".concat("var(--ds-border-accent-purple, #AF59E1)", ")")
|
|
30
|
-
},
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
32
|
-
'.pm-table-cell-content-wrap, .pm-table-header-content-wrap, [data-layout-section]': {
|
|
33
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
34
|
-
'.statusView-content-wrap': {
|
|
35
|
-
maxWidth: '100%',
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
37
|
-
lineHeight: 0,
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
39
|
-
'& > span': {
|
|
40
|
-
width: '100%'
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
45
|
-
'.statusView-content-wrap': {
|
|
46
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
47
|
-
'& > span': {
|
|
48
|
-
cursor: 'pointer',
|
|
49
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
50
|
-
lineHeight: 0 // Prevent responsive layouts increasing height of container.
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
54
|
-
'.danger': {
|
|
55
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
56
|
-
'.status-lozenge-span > span': {
|
|
57
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
58
|
-
backgroundColor: 'rgba(255, 189, 173, 0.5)' // akEditorDeleteBackgroundWithOpacity
|
|
59
|
-
},
|
|
60
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
61
|
-
'.statusView-content-wrap.ak-editor-selected-node': {
|
|
62
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
63
|
-
'.status-lozenge-span > span': {
|
|
64
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-danger, #E2483D)")
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
69
|
-
'[data-prosemirror-node-name="status"] .lozenge-wrapper': {
|
|
70
|
-
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
71
|
-
maxWidth: '100%',
|
|
72
|
-
paddingInline: "var(--ds-space-050, 4px)",
|
|
73
|
-
display: 'inline-flex',
|
|
74
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
75
|
-
borderRadius: "var(--ds-radius-small, 3px)",
|
|
76
|
-
blockSize: 'min-content',
|
|
77
|
-
position: 'static',
|
|
78
|
-
overflow: 'hidden',
|
|
79
|
-
boxSizing: 'border-box',
|
|
80
|
-
appearance: 'none',
|
|
81
|
-
border: 'none'
|
|
82
|
-
},
|
|
83
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
84
|
-
'[data-prosemirror-node-name="status"] .lozenge-text': {
|
|
85
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
86
|
-
fontSize: '11px',
|
|
87
|
-
fontStyle: 'normal',
|
|
88
|
-
fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
89
|
-
fontWeight: "var(--ds-font-weight-bold, 653)",
|
|
90
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
91
|
-
lineHeight: '16px',
|
|
92
|
-
overflow: 'hidden',
|
|
93
|
-
textOverflow: 'ellipsis',
|
|
94
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
95
|
-
textTransform: 'uppercase',
|
|
96
|
-
whiteSpace: 'nowrap',
|
|
97
|
-
maxWidth: "calc(200px - ".concat("var(--ds-space-100, 8px)", ")")
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
/**
|
|
101
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
102
|
-
* If you need to make changes here, also update the corresponding style in
|
|
103
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
104
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
105
|
-
*/
|
|
106
|
-
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
107
|
-
export var statusStylesMixin_fg_platform_component_visual_refresh_with_search_match = css({
|
|
108
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
109
|
-
'.statusView-content-wrap:not(.search-match-block)': {
|
|
110
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
111
|
-
'&.ak-editor-selected-node .status-lozenge-span > span': {
|
|
112
|
-
boxShadow: "0 0 0 2px ".concat("var(--ds-border-selected, #1868DB)")
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
116
|
-
'[data-prosemirror-node-name="status"] .lozenge-text': {
|
|
117
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
118
|
-
color: '#292A2E'
|
|
119
|
-
},
|
|
120
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
121
|
-
'[data-prosemirror-node-name="status"] > [data-color=neutral] > .lozenge-wrapper': {
|
|
122
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
123
|
-
backgroundColor: '#DDDEE1'
|
|
124
|
-
},
|
|
125
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
126
|
-
'[data-prosemirror-node-name="status"] > [data-color=purple] > .lozenge-wrapper': {
|
|
127
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
128
|
-
backgroundColor: '#D8A0F7'
|
|
129
|
-
},
|
|
130
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
131
|
-
'[data-prosemirror-node-name="status"] > [data-color=blue] > .lozenge-wrapper': {
|
|
132
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
133
|
-
backgroundColor: '#8FB8F6'
|
|
134
|
-
},
|
|
135
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
136
|
-
'[data-prosemirror-node-name="status"] > [data-color=yellow] > .lozenge-wrapper': {
|
|
137
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
138
|
-
backgroundColor: '#F9C84E'
|
|
139
|
-
},
|
|
140
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
141
|
-
'[data-prosemirror-node-name="status"] > [data-color=red] > .lozenge-wrapper': {
|
|
142
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
143
|
-
backgroundColor: '#FD9891'
|
|
144
|
-
},
|
|
145
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
146
|
-
'[data-prosemirror-node-name="status"] > [data-color=green] > .lozenge-wrapper': {
|
|
147
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
148
|
-
backgroundColor: '#B3DF72'
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
/**
|
|
152
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
153
|
-
* If you need to make changes here, also update the corresponding style in
|
|
154
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
155
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
156
|
-
*/
|
|
157
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
158
|
-
export var statusDangerStyles = css({
|
|
159
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
160
|
-
'.statusView-content-wrap:not(.search-match-block)': {
|
|
161
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
162
|
-
'&.ak-editor-selected-node.danger .status-lozenge-span > span': {
|
|
163
|
-
boxShadow: "0 0 0 2px ".concat("var(--ds-border-danger, #E2483D)")
|
|
164
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
/**
|
|
169
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
170
|
-
* If you need to make changes here, also update the corresponding style in
|
|
171
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
172
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
173
|
-
*/
|
|
174
|
-
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
175
|
-
export var statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match = css({
|
|
176
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
177
|
-
'.statusView-content-wrap:not(.search-match-block)': {
|
|
178
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
179
|
-
'&.ak-editor-selected-node .status-lozenge-span > span': {
|
|
180
|
-
// getSelectionStyles([SelectionStyle.BoxShadow]);
|
|
181
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)"),
|
|
182
|
-
borderColor: 'transparent',
|
|
183
|
-
// hideNativeBrowserTextSelectionStyles
|
|
184
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
185
|
-
'&::selection, & *::selection': {
|
|
186
|
-
backgroundColor: 'transparent'
|
|
187
|
-
},
|
|
188
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
189
|
-
'&::-moz-selection, & *::-moz-selection': {
|
|
190
|
-
backgroundColor: 'transparent'
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
195
|
-
'[data-prosemirror-node-name="status"] > [data-color=neutral] .lozenge-wrapper': {
|
|
196
|
-
backgroundColor: "var(--ds-background-neutral, #0515240F)"
|
|
197
|
-
},
|
|
198
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
199
|
-
'[data-prosemirror-node-name="status"] > [data-color=neutral] .lozenge-text': {
|
|
200
|
-
color: "var(--ds-text-subtle, #505258)"
|
|
201
|
-
},
|
|
202
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
203
|
-
'[data-prosemirror-node-name="status"] > [data-color=purple] .lozenge-wrapper': {
|
|
204
|
-
backgroundColor: "var(--ds-background-discovery, #F8EEFE)"
|
|
205
|
-
},
|
|
206
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
207
|
-
'[data-prosemirror-node-name="status"] > [data-color=purple] .lozenge-text': {
|
|
208
|
-
color: "var(--ds-text-discovery, #803FA5)"
|
|
209
|
-
},
|
|
210
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
211
|
-
'[data-prosemirror-node-name="status"] > [data-color=blue] .lozenge-wrapper': {
|
|
212
|
-
backgroundColor: "var(--ds-background-information, #E9F2FE)"
|
|
213
|
-
},
|
|
214
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
215
|
-
'[data-prosemirror-node-name="status"] > [data-color=blue] .lozenge-text': {
|
|
216
|
-
color: "var(--ds-text-information, #1558BC)"
|
|
217
|
-
},
|
|
218
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
219
|
-
'[data-prosemirror-node-name="status"] > [data-color=yellow] .lozenge-wrapper': {
|
|
220
|
-
backgroundColor: "var(--ds-background-warning, #FFF5DB)"
|
|
221
|
-
},
|
|
222
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
223
|
-
'[data-prosemirror-node-name="status"] > [data-color=yellow] .lozenge-text': {
|
|
224
|
-
color: "var(--ds-text-warning, #9E4C00)"
|
|
225
|
-
},
|
|
226
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
227
|
-
'[data-prosemirror-node-name="status"] > [data-color=red] .lozenge-wrapper': {
|
|
228
|
-
backgroundColor: "var(--ds-background-danger, #FFECEB)"
|
|
229
|
-
},
|
|
230
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
231
|
-
'[data-prosemirror-node-name="status"] > [data-color=red] .lozenge-text': {
|
|
232
|
-
color: "var(--ds-text-danger, #AE2E24)"
|
|
233
|
-
},
|
|
234
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
235
|
-
'[data-prosemirror-node-name="status"] > [data-color=green] .lozenge-wrapper': {
|
|
236
|
-
backgroundColor: "var(--ds-background-success, #EFFFD6)"
|
|
237
|
-
},
|
|
238
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
239
|
-
'[data-prosemirror-node-name="status"] > [data-color=green] .lozenge-text': {
|
|
240
|
-
color: "var(--ds-text-success, #4C6B1F)"
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
/**
|
|
244
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
245
|
-
* If you need to make changes here, also update the corresponding style in
|
|
246
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
247
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
248
|
-
*/
|
|
249
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
250
|
-
export var statusStylesTeam26 = css({
|
|
251
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
252
|
-
'[data-prosemirror-node-name="status"] .lozenge-wrapper': {
|
|
253
|
-
paddingBlockStart: "var(--ds-space-025, 2px)",
|
|
254
|
-
paddingBlockEnd: "var(--ds-space-025, 2px)",
|
|
255
|
-
paddingInlineStart: "var(--ds-space-050, 4px)",
|
|
256
|
-
paddingInlineEnd: "var(--ds-space-050, 4px)",
|
|
257
|
-
alignItems: 'center',
|
|
258
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
259
|
-
borderRadius: "var(--ds-radius-small, 4px)",
|
|
260
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
261
|
-
height: '1.25rem',
|
|
262
|
-
border: "solid ".concat("var(--ds-border-width, 1px)", " transparent")
|
|
263
|
-
},
|
|
264
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
265
|
-
'[data-prosemirror-node-name="status"] .lozenge-text': {
|
|
266
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
267
|
-
textTransform: 'none',
|
|
268
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
269
|
-
font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
270
|
-
},
|
|
271
|
-
/* Border, background and text colors
|
|
272
|
-
* These colors are copied from @atlaskit/lozenge
|
|
273
|
-
* Border tokens supply the appropriate light and dark color values.
|
|
274
|
-
*/
|
|
275
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
276
|
-
'[data-prosemirror-node-name="status"] > [data-color=neutral] > .lozenge-wrapper': {
|
|
277
|
-
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
278
|
-
borderColor: "var(--ds-border, #0B120E24)"
|
|
279
|
-
},
|
|
280
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
281
|
-
'[data-prosemirror-node-name="status"] > [data-color=neutral] .lozenge-text': {
|
|
282
|
-
color: "var(--ds-text, #292A2E)"
|
|
283
|
-
},
|
|
284
|
-
/* Find and Replace Styles */
|
|
285
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
286
|
-
'.statusView-content-wrap:not(.search-match-block)': {
|
|
287
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
288
|
-
'&.ak-editor-selected-node .status-lozenge-span > span': {
|
|
289
|
-
boxShadow: "0 0 0 2px ".concat("var(--ds-border-selected, #1868DB)")
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
293
|
-
'.danger': {
|
|
294
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
295
|
-
'.statusView-content-wrap:not(.search-match-block).ak-editor-selected-node .status-lozenge-span > span': {
|
|
296
|
-
boxShadow: "0 0 0 2px ".concat("var(--ds-border-danger, #E2483D)")
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
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 { SyncBlockLabelSharedCssClassName, SyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-block';
|
|
8
|
-
/**
|
|
9
|
-
* Styles for the synced block activation experience:
|
|
10
|
-
* - Interactive elements show a pointer cursor rather than inheriting the
|
|
11
|
-
* selectable content's text cursor.
|
|
12
|
-
* - Border labels can show substantially more reference-title text without
|
|
13
|
-
* overflowing narrow synced blocks.
|
|
14
|
-
*
|
|
15
|
-
* Kept as the sole export of this file, separate from
|
|
16
|
-
* syncBlockTextSelectionStyles. The text-selection styles are always applied.
|
|
17
|
-
*
|
|
18
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
19
|
-
* If you need to make changes here, also update the corresponding style in
|
|
20
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
21
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
22
|
-
*/
|
|
23
|
-
export var syncBlockInteractiveCursorStyles = css(_defineProperty(_defineProperty({}, ".".concat(SyncBlockSharedCssClassName.renderer), {
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
25
|
-
'a[href], button, [role="button"], [role="link"]': {
|
|
26
|
-
cursor: 'pointer'
|
|
27
|
-
}
|
|
28
|
-
}), ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
29
|
-
maxWidth: "min(300px, calc(100% - ".concat("var(--ds-space-300, 24px)", "))")
|
|
30
|
-
}));
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
var _$concat$concat;
|
|
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, keyframes } from '@emotion/react';
|
|
8
|
-
import { BodiedSyncBlockSharedCssClassName, SyncBlockSharedCssClassName, SyncBlockLabelSharedCssClassName, SyncBlockStateCssClassName } from '@atlaskit/editor-common/sync-block';
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
11
|
-
* If you need to make changes here, also update the corresponding style in
|
|
12
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
13
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
14
|
-
*/
|
|
15
|
-
export var syncBlockStylesBase = css(_defineProperty({
|
|
16
|
-
'@property --angle': {
|
|
17
|
-
syntax: '"<angle>"',
|
|
18
|
-
initialValue: '0deg',
|
|
19
|
-
inherits: 'false'
|
|
20
|
-
},
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
22
|
-
'.ProseMirror': _defineProperty(_defineProperty(_defineProperty({}, ".".concat(SyncBlockSharedCssClassName.prefix, ", .").concat(BodiedSyncBlockSharedCssClassName.prefix), (_$concat$concat = {
|
|
23
|
-
position: 'relative',
|
|
24
|
-
cursor: 'pointer',
|
|
25
|
-
borderRadius: "var(--ds-radius-small, 3px)",
|
|
26
|
-
marginBottom: 0,
|
|
27
|
-
marginTop: "var(--ds-space-075, 6px)",
|
|
28
|
-
paddingBlock: "var(--ds-space-150, 12px)",
|
|
29
|
-
color: 'inherit',
|
|
30
|
-
/* Hover state */
|
|
31
|
-
'&:hover': _defineProperty({
|
|
32
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
33
|
-
boxShadow: "0px 0px 0px 1px ".concat("var(--ds-border, #0B120E24)"),
|
|
34
|
-
transition: 'box-shadow 200ms ease-in'
|
|
35
|
-
}, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
36
|
-
opacity: 1,
|
|
37
|
-
visibility: 'visible',
|
|
38
|
-
transition: 'opacity 200ms ease-in, visibility 200ms ease-in'
|
|
39
|
-
})
|
|
40
|
-
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_$concat$concat, "&.".concat(BodiedSyncBlockSharedCssClassName.selectionInside), _defineProperty({
|
|
41
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)")
|
|
42
|
-
}, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
43
|
-
opacity: 1,
|
|
44
|
-
visibility: 'visible'
|
|
45
|
-
})), '&.ak-editor-selected-node', _defineProperty({
|
|
46
|
-
boxShadow: "0 0 0 1px var(--ak-editor-sync-block-selected-border-color, ".concat("var(--ds-border-focused, #4688EC)", ")")
|
|
47
|
-
}, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
48
|
-
opacity: 1,
|
|
49
|
-
visibility: 'visible',
|
|
50
|
-
backgroundColor: "var(--ak-editor-sync-block-selected-label-background-color, ".concat("var(--ds-background-selected, #E9F2FE)", ")"),
|
|
51
|
-
top: '-14px',
|
|
52
|
-
paddingBottom: "var(--ds-space-050, 4px)",
|
|
53
|
-
paddingTop: "var(--ds-space-050, 4px)",
|
|
54
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
55
|
-
'> span': {
|
|
56
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
57
|
-
color: "var(--ds-text-selected, #1868DB)".concat(" !important")
|
|
58
|
-
}
|
|
59
|
-
})), '&.danger', _defineProperty({
|
|
60
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-danger, #E2483D)"),
|
|
61
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
62
|
-
'.ak-editor-panel__icon': {
|
|
63
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
64
|
-
color: "var(--ds-icon-danger, #C9372C)".concat(" !important")
|
|
65
|
-
}
|
|
66
|
-
}, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
67
|
-
backgroundColor: "var(--ds-background-danger, #FFECEB)",
|
|
68
|
-
top: '-14px',
|
|
69
|
-
paddingBottom: "var(--ds-space-050, 4px)",
|
|
70
|
-
paddingTop: "var(--ds-space-050, 4px)",
|
|
71
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
72
|
-
'> span': {
|
|
73
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
74
|
-
color: "var(--ds-text-danger, #AE2E24)".concat(" !important")
|
|
75
|
-
}
|
|
76
|
-
})), "&.".concat(SyncBlockStateCssClassName.disabledClassName), _defineProperty({
|
|
77
|
-
backgroundColor: "var(--ds-background-disabled, #0515240F)",
|
|
78
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-disabled, #0515240F)"),
|
|
79
|
-
userSelect: 'none'
|
|
80
|
-
}, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
81
|
-
backgroundColor: "var(--ds-surface, #FFFFFF)",
|
|
82
|
-
'&::before': {
|
|
83
|
-
border: 'none'
|
|
84
|
-
}
|
|
85
|
-
})), "&.".concat(SyncBlockStateCssClassName.creationLoadingClassName), _defineProperty({
|
|
86
|
-
animation: "".concat(keyframes({
|
|
87
|
-
from: {
|
|
88
|
-
'--angle': '0deg'
|
|
89
|
-
},
|
|
90
|
-
to: {
|
|
91
|
-
'--angle': '360deg'
|
|
92
|
-
}
|
|
93
|
-
}), " 2s linear infinite"),
|
|
94
|
-
border: '1px solid transparent',
|
|
95
|
-
background: "linear-gradient(".concat("var(--ds-surface, #FFFFFF)", ", ", "var(--ds-surface, #FFFFFF)", ") padding-box, conic-gradient(from var(--angle), #1868DB, ", "var(--ds-background-accent-purple-subtlest-pressed, #E3BDFA)", ", #3279E0, #1868DB) border-box"),
|
|
96
|
-
backgroundClip: 'padding-box, border-box',
|
|
97
|
-
boxShadow: 'none',
|
|
98
|
-
transition: 'boxShadow 200ms ease-in'
|
|
99
|
-
}, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
100
|
-
display: 'none'
|
|
101
|
-
})), ":has(.".concat(SyncBlockSharedCssClassName.error, ")"), {
|
|
102
|
-
backgroundColor: "var(--ds-background-disabled, #0515240F)"
|
|
103
|
-
}), ":has(.".concat(SyncBlockSharedCssClassName.loading, ")"), _defineProperty({
|
|
104
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)")
|
|
105
|
-
}, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
106
|
-
opacity: 0,
|
|
107
|
-
visibility: 'hidden'
|
|
108
|
-
})), "&.".concat(SyncBlockStateCssClassName.viewModeClassName), _defineProperty({
|
|
109
|
-
boxShadow: 'none',
|
|
110
|
-
backgroundColor: 'unset'
|
|
111
|
-
}, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
112
|
-
opacity: 0,
|
|
113
|
-
visibility: 'hidden'
|
|
114
|
-
})), "&.".concat(SyncBlockStateCssClassName.draggingClassName), _defineProperty({
|
|
115
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)")
|
|
116
|
-
}, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
117
|
-
opacity: 1,
|
|
118
|
-
visibility: 'visible'
|
|
119
|
-
})), ".".concat(BodiedSyncBlockSharedCssClassName.content), {
|
|
120
|
-
paddingTop: 0,
|
|
121
|
-
paddingBottom: 0,
|
|
122
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
123
|
-
paddingLeft: '19px',
|
|
124
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
125
|
-
paddingRight: '18px',
|
|
126
|
-
cursor: 'text'
|
|
127
|
-
}), _defineProperty(_$concat$concat, ".".concat(SyncBlockSharedCssClassName.renderer), {
|
|
128
|
-
paddingTop: 0,
|
|
129
|
-
paddingBottom: 0,
|
|
130
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
131
|
-
paddingLeft: '19px',
|
|
132
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
133
|
-
paddingRight: '18px'
|
|
134
|
-
}))), ".".concat(BodiedSyncBlockSharedCssClassName.content), {
|
|
135
|
-
// First child node that has drag handle widget next to it is overridden with marginTop: 0, see globalStyles in editor-plugin-block-controls/src/ui/global-styles.tsx
|
|
136
|
-
// Hence we set marginTop: 0 when by default to avoid flickering when hovering on and off the first node
|
|
137
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
138
|
-
'> :nth-child(1 of :not(style, .ProseMirror-gapcursor, .ProseMirror-widget, span))': {
|
|
139
|
-
marginTop: 0
|
|
140
|
-
}
|
|
141
|
-
}), ".".concat(SyncBlockSharedCssClassName.renderer), {
|
|
142
|
-
// First child node in bodiedSyncBlock is overridden with marginTop: 0, hence apply the same style to syncBlock for consistency
|
|
143
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
144
|
-
'.ak-renderer-document > :first-child': {
|
|
145
|
-
marginTop: 0
|
|
146
|
-
}
|
|
147
|
-
})
|
|
148
|
-
}, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
149
|
-
borderRadius: "var(--ds-radius-small, 3px)",
|
|
150
|
-
position: 'absolute',
|
|
151
|
-
gap: "var(--ds-space-050, 4px)",
|
|
152
|
-
justifyContent: 'center',
|
|
153
|
-
alignItems: 'center',
|
|
154
|
-
display: 'flex',
|
|
155
|
-
opacity: 0,
|
|
156
|
-
visibility: 'hidden',
|
|
157
|
-
boxShadow: 'none',
|
|
158
|
-
zIndex: 1,
|
|
159
|
-
paddingLeft: "var(--ds-space-100, 8px)",
|
|
160
|
-
paddingRight: "var(--ds-space-100, 8px)",
|
|
161
|
-
top: '-10px',
|
|
162
|
-
right: "var(--ds-space-150, 12px)",
|
|
163
|
-
backgroundColor: "var(--ds-surface, #FFFFFF)",
|
|
164
|
-
maxWidth: '140px'
|
|
165
|
-
}));
|
|
166
|
-
|
|
167
|
-
// Export the default styles with negative margins (original behavior)
|
|
168
|
-
/**
|
|
169
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
170
|
-
* If you need to make changes here, also update the corresponding style in
|
|
171
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
172
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
173
|
-
*/
|
|
174
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
175
|
-
export var syncBlockStyles = css({
|
|
176
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
177
|
-
'.ProseMirror': _defineProperty({}, ".".concat(SyncBlockSharedCssClassName.prefix, ", .").concat(BodiedSyncBlockSharedCssClassName.prefix), {
|
|
178
|
-
marginRight: "-19px",
|
|
179
|
-
marginLeft: "-19px"
|
|
180
|
-
})
|
|
181
|
-
});
|
|
182
|
-
/**
|
|
183
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
184
|
-
* If you need to make changes here, also update the corresponding style in
|
|
185
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
186
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
187
|
-
*/
|
|
188
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
189
|
-
export var syncBlockOverflowStyles = css({
|
|
190
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
191
|
-
'.ProseMirror': _defineProperty(_defineProperty({}, ".".concat(BodiedSyncBlockSharedCssClassName.content), {
|
|
192
|
-
// Contain floated elements (wrap-left/wrap-right) within synced block borders
|
|
193
|
-
// Use display: flow-root to create a block formatting context without clipping other content e.g. telepointers
|
|
194
|
-
display: 'flow-root'
|
|
195
|
-
}), ".".concat(SyncBlockSharedCssClassName.renderer), {
|
|
196
|
-
// Contain floated elements (wrap-left/wrap-right) within synced block borders
|
|
197
|
-
// Use display: flow-root to create a block formatting context without clipping other content e.g. telepointers
|
|
198
|
-
display: 'flow-root'
|
|
199
|
-
})
|
|
200
|
-
});
|
|
201
|
-
|
|
202
|
-
// Styles for text selection in reference sync blocks.
|
|
203
|
-
/**
|
|
204
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
205
|
-
* If you need to make changes here, also update the corresponding style in
|
|
206
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
207
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
208
|
-
*/
|
|
209
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
210
|
-
export var syncBlockTextSelectionStyles = css(_defineProperty(_defineProperty({}, ".".concat(SyncBlockSharedCssClassName.renderer), {
|
|
211
|
-
// Show text cursor to indicate content is selectable
|
|
212
|
-
cursor: 'text',
|
|
213
|
-
// Remove browser focus outline on the contentEditable renderer wrapper
|
|
214
|
-
outline: 'none',
|
|
215
|
-
// Hide the blinking insertion caret. contentEditable="true" is set on
|
|
216
|
-
// the renderer to enable text selection, but the content is read-only.
|
|
217
|
-
caretColor: 'transparent',
|
|
218
|
-
// Override cursor: pointer set by the editor's layout styles on
|
|
219
|
-
// [data-layout-section] elements rendered inside the sync block content.
|
|
220
|
-
// Without this, layout nodes inside reference sync blocks show a pointer
|
|
221
|
-
// cursor instead of a text cursor.
|
|
222
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
223
|
-
'[data-layout-section]': {
|
|
224
|
-
cursor: 'text'
|
|
225
|
-
}
|
|
226
|
-
}), ".ProseMirror .ak-editor-selected-node .".concat(SyncBlockSharedCssClassName.renderer), {
|
|
227
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
228
|
-
'span[data-emoji-id], span[data-emoji-id] span': {
|
|
229
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
230
|
-
boxShadow: 'none !important',
|
|
231
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
232
|
-
'&::before': {
|
|
233
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
234
|
-
backgroundColor: 'transparent !important'
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}));
|
|
238
|
-
/**
|
|
239
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
240
|
-
* If you need to make changes here, also update the corresponding style in
|
|
241
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
242
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
243
|
-
*/
|
|
244
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
245
|
-
export var syncBlockFirstNodeStyles = css(_defineProperty({}, ".ProseMirror > .fabric-editor-breakout-mark:first-child", _defineProperty({}, ".".concat(SyncBlockSharedCssClassName.prefix, ", .").concat(BodiedSyncBlockSharedCssClassName.prefix), {
|
|
246
|
-
marginTop: 0
|
|
247
|
-
})));
|