@atlaskit/editor-core 241.0.3 → 241.0.5
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 +18 -0
- package/dist/cjs/composable-editor/{editor-internal-compiled.js → editor-internal-container.js} +4 -4
- package/dist/cjs/composable-editor/editor-internal.js +2 -2
- package/dist/cjs/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.js → clickAreaBlock.js} +4 -4
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +2 -2
- package/dist/cjs/ui/Appearance/Comment/{FixedToolbar-compiled.js → FixedToolbar.js} +4 -4
- package/dist/cjs/ui/Appearance/Comment/{StickyToolbar-compiled.js → StickyToolbar.js} +4 -4
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +4 -4
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/{FullPage-compiled.js → FullPageEditorWrapper.js} +4 -4
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +3 -3
- package/dist/cjs/ui/Appearance/FullPage/{MainToolbar-compiled.js → MainToolbarWrappers.js} +6 -6
- package/dist/cjs/ui/ChromeCollapsed/{ChromeCollapsed-compiled.js → ChromeCollapsed.js} +4 -4
- package/dist/cjs/ui/ChromeCollapsed/index.js +2 -2
- package/dist/cjs/ui/ContextPanel/{index-compiled.js → ContextPanelWrappers.js} +5 -5
- package/dist/cjs/ui/ContextPanel/index.js +3 -3
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.compiled.css +213 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +415 -4
- package/dist/cjs/ui/PluginSlot/{PluginSlot-compiled.js → PluginSlot.js} +4 -4
- package/dist/cjs/ui/PluginSlot/index.js +2 -2
- package/dist/cjs/ui/Toolbar/{ToolbarComponentsWrapper-compiled.js → ToolbarComponentsWrapper.js} +4 -4
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +2 -2
- package/dist/cjs/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.js → ToolbarSizeDetectorWrapper.js} +4 -4
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +2 -2
- package/dist/cjs/ui/WithFlash/index.js +2 -2
- package/dist/cjs/ui/WithFlash/{withFlash-compiled.js → withFlash.js} +9 -9
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/{editor-internal-compiled.js → editor-internal-container.js} +3 -3
- package/dist/es2019/composable-editor/editor-internal.js +2 -2
- package/dist/es2019/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.js → clickAreaBlock.js} +3 -3
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +2 -2
- package/dist/es2019/ui/Appearance/Comment/{FixedToolbar-compiled.js → FixedToolbar.js} +3 -3
- package/dist/es2019/ui/Appearance/Comment/{StickyToolbar-compiled.js → StickyToolbar.js} +3 -3
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +4 -4
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +2 -2
- package/dist/es2019/ui/Appearance/FullPage/{FullPage-compiled.js → FullPageEditorWrapper.js} +3 -3
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +3 -3
- package/dist/es2019/ui/Appearance/FullPage/{MainToolbar-compiled.js → MainToolbarWrappers.js} +5 -5
- package/dist/es2019/ui/ChromeCollapsed/{ChromeCollapsed-compiled.js → ChromeCollapsed.js} +3 -3
- package/dist/es2019/ui/ChromeCollapsed/index.js +2 -2
- package/dist/es2019/ui/ContextPanel/{index-compiled.js → ContextPanelWrappers.js} +4 -4
- package/dist/es2019/ui/ContextPanel/index.js +3 -3
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.compiled.css +213 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +476 -4
- package/dist/es2019/ui/PluginSlot/{PluginSlot-compiled.js → PluginSlot.js} +3 -3
- package/dist/es2019/ui/PluginSlot/index.js +2 -2
- package/dist/es2019/ui/Toolbar/{ToolbarComponentsWrapper-compiled.js → ToolbarComponentsWrapper.js} +3 -3
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +2 -2
- package/dist/es2019/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.js → ToolbarSizeDetectorWrapper.js} +3 -3
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +2 -2
- package/dist/es2019/ui/WithFlash/index.js +2 -2
- package/dist/es2019/ui/WithFlash/{withFlash-compiled.js → withFlash.js} +3 -3
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/{editor-internal-compiled.js → editor-internal-container.js} +3 -3
- package/dist/esm/composable-editor/editor-internal.js +2 -2
- package/dist/esm/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.js → clickAreaBlock.js} +3 -3
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +2 -2
- package/dist/esm/ui/Appearance/Comment/{FixedToolbar-compiled.js → FixedToolbar.js} +3 -3
- package/dist/esm/ui/Appearance/Comment/{StickyToolbar-compiled.js → StickyToolbar.js} +3 -3
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +4 -4
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +2 -2
- package/dist/esm/ui/Appearance/FullPage/{FullPage-compiled.js → FullPageEditorWrapper.js} +3 -3
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +3 -3
- package/dist/esm/ui/Appearance/FullPage/{MainToolbar-compiled.js → MainToolbarWrappers.js} +5 -5
- package/dist/esm/ui/ChromeCollapsed/{ChromeCollapsed-compiled.js → ChromeCollapsed.js} +3 -3
- package/dist/esm/ui/ChromeCollapsed/index.js +2 -2
- package/dist/esm/ui/ContextPanel/{index-compiled.js → ContextPanelWrappers.js} +4 -4
- package/dist/esm/ui/ContextPanel/index.js +3 -3
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.compiled.css +213 -0
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +419 -4
- package/dist/esm/ui/PluginSlot/{PluginSlot-compiled.js → PluginSlot.js} +3 -3
- package/dist/esm/ui/PluginSlot/index.js +2 -2
- package/dist/esm/ui/Toolbar/{ToolbarComponentsWrapper-compiled.js → ToolbarComponentsWrapper.js} +3 -3
- package/dist/esm/ui/Toolbar/ToolbarInner.js +2 -2
- package/dist/esm/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.js → ToolbarSizeDetectorWrapper.js} +3 -3
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +2 -2
- package/dist/esm/ui/WithFlash/index.js +2 -2
- package/dist/esm/ui/WithFlash/{withFlash-compiled.js → withFlash.js} +8 -8
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/{editor-internal-compiled.d.ts → editor-internal-container.d.ts} +1 -1
- package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock.d.ts +6 -0
- package/dist/types/ui/Appearance/Comment/{FixedToolbar-compiled.d.ts → FixedToolbar.d.ts} +2 -2
- package/dist/types/ui/Appearance/Comment/{StickyToolbar-compiled.d.ts → StickyToolbar.d.ts} +2 -2
- package/dist/types/ui/Appearance/FullPage/FullPageEditorWrapper.d.ts +7 -0
- package/dist/types/ui/Appearance/FullPage/{MainToolbar-compiled.d.ts → MainToolbarWrappers.d.ts} +3 -3
- package/dist/types/ui/ChromeCollapsed/ChromeCollapsed.d.ts +7 -0
- package/dist/types/ui/ContextPanel/{index-compiled.d.ts → ContextPanelWrappers.d.ts} +2 -2
- package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +26 -4
- package/dist/types/ui/PluginSlot/PluginSlot.d.ts +6 -0
- package/dist/types/ui/Toolbar/ToolbarComponentsWrapper.d.ts +11 -0
- package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper.d.ts +11 -0
- package/dist/types/ui/WithFlash/{withFlash-compiled.d.ts → withFlash.d.ts} +1 -1
- package/package.json +6 -6
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +0 -212
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +0 -421
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +0 -212
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +0 -477
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +0 -212
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +0 -420
- package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +0 -6
- package/dist/types/ui/Appearance/FullPage/FullPage-compiled.d.ts +0 -7
- package/dist/types/ui/ChromeCollapsed/ChromeCollapsed-compiled.d.ts +0 -7
- package/dist/types/ui/EditorContentContainer/EditorContentContainer-compiled.d.ts +0 -29
- package/dist/types/ui/PluginSlot/PluginSlot-compiled.d.ts +0 -6
- package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-compiled.d.ts +0 -11
- package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.d.ts +0 -11
- /package/dist/cjs/composable-editor/{editor-internal-compiled.compiled.css → editor-internal-container.compiled.css} +0 -0
- /package/dist/cjs/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.compiled.css → clickAreaBlock.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/Comment/{FixedToolbar-compiled.compiled.css → FixedToolbar.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/Comment/{StickyToolbar-compiled.compiled.css → StickyToolbar.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/FullPage/{FullPage-compiled.compiled.css → FullPageEditorWrapper.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/FullPage/{MainToolbar-compiled.compiled.css → MainToolbarWrappers.compiled.css} +0 -0
- /package/dist/cjs/ui/ChromeCollapsed/{ChromeCollapsed-compiled.compiled.css → ChromeCollapsed.compiled.css} +0 -0
- /package/dist/cjs/ui/ContextPanel/{index-compiled.compiled.css → ContextPanelWrappers.compiled.css} +0 -0
- /package/dist/cjs/ui/PluginSlot/{PluginSlot-compiled.compiled.css → PluginSlot.compiled.css} +0 -0
- /package/dist/cjs/ui/Toolbar/{ToolbarComponentsWrapper-compiled.compiled.css → ToolbarComponentsWrapper.compiled.css} +0 -0
- /package/dist/cjs/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.compiled.css → ToolbarSizeDetectorWrapper.compiled.css} +0 -0
- /package/dist/cjs/ui/WithFlash/{withFlash-compiled.compiled.css → withFlash.compiled.css} +0 -0
- /package/dist/es2019/composable-editor/{editor-internal-compiled.compiled.css → editor-internal-container.compiled.css} +0 -0
- /package/dist/es2019/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.compiled.css → clickAreaBlock.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/Comment/{FixedToolbar-compiled.compiled.css → FixedToolbar.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/Comment/{StickyToolbar-compiled.compiled.css → StickyToolbar.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/FullPage/{FullPage-compiled.compiled.css → FullPageEditorWrapper.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/FullPage/{MainToolbar-compiled.compiled.css → MainToolbarWrappers.compiled.css} +0 -0
- /package/dist/es2019/ui/ChromeCollapsed/{ChromeCollapsed-compiled.compiled.css → ChromeCollapsed.compiled.css} +0 -0
- /package/dist/es2019/ui/ContextPanel/{index-compiled.compiled.css → ContextPanelWrappers.compiled.css} +0 -0
- /package/dist/es2019/ui/PluginSlot/{PluginSlot-compiled.compiled.css → PluginSlot.compiled.css} +0 -0
- /package/dist/es2019/ui/Toolbar/{ToolbarComponentsWrapper-compiled.compiled.css → ToolbarComponentsWrapper.compiled.css} +0 -0
- /package/dist/es2019/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.compiled.css → ToolbarSizeDetectorWrapper.compiled.css} +0 -0
- /package/dist/es2019/ui/WithFlash/{withFlash-compiled.compiled.css → withFlash.compiled.css} +0 -0
- /package/dist/esm/composable-editor/{editor-internal-compiled.compiled.css → editor-internal-container.compiled.css} +0 -0
- /package/dist/esm/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.compiled.css → clickAreaBlock.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/Comment/{FixedToolbar-compiled.compiled.css → FixedToolbar.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/Comment/{StickyToolbar-compiled.compiled.css → StickyToolbar.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/FullPage/{FullPage-compiled.compiled.css → FullPageEditorWrapper.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/FullPage/{MainToolbar-compiled.compiled.css → MainToolbarWrappers.compiled.css} +0 -0
- /package/dist/esm/ui/ChromeCollapsed/{ChromeCollapsed-compiled.compiled.css → ChromeCollapsed.compiled.css} +0 -0
- /package/dist/esm/ui/ContextPanel/{index-compiled.compiled.css → ContextPanelWrappers.compiled.css} +0 -0
- /package/dist/esm/ui/PluginSlot/{PluginSlot-compiled.compiled.css → PluginSlot.compiled.css} +0 -0
- /package/dist/esm/ui/Toolbar/{ToolbarComponentsWrapper-compiled.compiled.css → ToolbarComponentsWrapper.compiled.css} +0 -0
- /package/dist/esm/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.compiled.css → ToolbarSizeDetectorWrapper.compiled.css} +0 -0
- /package/dist/esm/ui/WithFlash/{withFlash-compiled.compiled.css → withFlash.compiled.css} +0 -0
|
@@ -1,477 +0,0 @@
|
|
|
1
|
-
/* EditorContentContainer-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
-
// oxlint-disable-next-line typescript-eslint/triple-slash-reference
|
|
3
|
-
/// <reference path="../../types/compiled-shims.d.ts" />
|
|
4
|
-
// Because we migrated with using cssMapScope API for non atomic css, so these atomic css related eslint suppression no longer needs to be fixed.
|
|
5
|
-
/* eslint-disable @atlaskit/platform/use-motion-token-values, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/design-system/no-invalid-css-map, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/platform/expand-spacing-shorthand, @atlaskit/platform/expand-border-shorthand, @atlaskit/platform/expand-background-shorthand */
|
|
6
|
-
import "./EditorContentContainer-compiled.compiled.css";
|
|
7
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
-
import React from 'react';
|
|
9
|
-
// eslint-disable-next-line import/order
|
|
10
|
-
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
11
|
-
|
|
12
|
-
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
13
|
-
// TODO: add back tableSharedStyle when migrate table styles
|
|
14
|
-
// import { richMediaClassName, tableSharedStyle } from '@atlaskit/editor-common/styles';
|
|
15
|
-
|
|
16
|
-
import { tableCellBackgroundColorVariablesForCompiled } from '@atlaskit/editor-common/table-cell-background-for-compiled';
|
|
17
|
-
import { akEditorFullPageDefaultFontSize, akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles/constants';
|
|
18
|
-
import { overflowShadowForCompiled } from '@atlaskit/editor-shared-styles/overflow-shadow-for-compiled';
|
|
19
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
20
|
-
import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
|
|
21
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
23
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
24
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
25
|
-
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
26
|
-
import { getBaseFontSize } from '../../composable-editor/utils/getBaseFontSize';
|
|
27
|
-
|
|
28
|
-
// = akEditorDefaultLayoutWidth * breakoutWideScaleRatio = 1010.8 ~ 1011 This is a resulting width value that is applied to nodes that currently use breakouts (except table) and are set to `wide` when the viewport's width is > 1329px.
|
|
29
|
-
const akEditorCalculatedWideLayoutWidth = 1011;
|
|
30
|
-
// from breakoutConsts.calcWideWidth, layoutMaxWidth * breakoutConsts.wideScaleRatio = 904.8 ~ 905 This is a resulting width value that is applied to nodes that currently use breakouts (except table) and are set to `wide` when the viewport's width is <= 1266px.
|
|
31
|
-
const akEditorCalculatedWideLayoutWidthSmallViewport = 905;
|
|
32
|
-
const akEditorGutterPadding = 32;
|
|
33
|
-
const akEditorDefaultLayoutWidth = 760;
|
|
34
|
-
const akEditorFullWidthLayoutWidth = 1800;
|
|
35
|
-
const tableOverflowShadowWidthWide = 32;
|
|
36
|
-
// The breakpoint for small devices is 1266px, copied from getBreakpoint in platform/packages/editor/editor-common/src/ui/WidthProvider/index.tsx
|
|
37
|
-
const akEditorBreakpointForSmallDevice = `1266px`;
|
|
38
|
-
const akEditorGutterPaddingReduced = 24;
|
|
39
|
-
const akEditorFullPageNarrowBreakout = 600;
|
|
40
|
-
const akEditorUltraWideLayoutWidth = 4000;
|
|
41
|
-
// Matches the legacy comment `less-margin` check: WidthProvider width (the editor's border box)
|
|
42
|
-
// below akEditorMobileBreakoutPoint (720). This content area's content box is that width minus
|
|
43
|
-
// the 2 x 1px editor border and 2 x 20px padding.
|
|
44
|
-
const akEditorCommentLessMarginBreakout = 720 - 2 - 40;
|
|
45
|
-
const commentLessMarginContainerQuery = `@container (width < ${akEditorCommentLessMarginBreakout}px)`;
|
|
46
|
-
// Layout responsiveness breakpoints — chosen to align editor layout responsiveness with the renderer.
|
|
47
|
-
// Applied to the editor-area container query (max-width) for layout sections.
|
|
48
|
-
const akEditorLayoutFullWidthBreakpoint = 724;
|
|
49
|
-
const akEditorLayoutFixedWidthBreakpoint = 788;
|
|
50
|
-
const akEditorLayoutResizedBreakpoint = 820;
|
|
51
|
-
|
|
52
|
-
// Originally copied from packages/editor/editor-core/src/ui/Appearance/Comment/Comment.tsx
|
|
53
|
-
const CommentEditorMargin = 14;
|
|
54
|
-
const GRID_GUTTER = 12;
|
|
55
|
-
const blockNodesVerticalMargin = '0.75rem';
|
|
56
|
-
const fontSize14px = `${14 / 16}rem`;
|
|
57
|
-
const scaledBlockNodesVerticalMargin = '0.75em';
|
|
58
|
-
// emoji constants — values inlined from packages/elements/emoji/src/util/constants.ts
|
|
59
|
-
// If you need to update these values, please also update packages/elements/emoji/src/util/constants.ts
|
|
60
|
-
const defaultEmojiHeight = 20;
|
|
61
|
-
const defaultDenseEmojiHeight = 16.25;
|
|
62
|
-
const scaledEmojiHeightH1 = 28;
|
|
63
|
-
const scaledEmojiHeightH2 = 26;
|
|
64
|
-
const scaledEmojiHeightH3 = 24;
|
|
65
|
-
const scaledEmojiHeightH4 = 22;
|
|
66
|
-
const denseEmojiHeightH1 = 24.25;
|
|
67
|
-
const denseEmojiHeightH2 = 22.25;
|
|
68
|
-
const denseEmojiHeightH3 = 20.25;
|
|
69
|
-
const denseEmojiHeightH4 = 18.25;
|
|
70
|
-
const emojiSelectionStyles = null;
|
|
71
|
-
const gutterDangerOverlay = null;
|
|
72
|
-
const blanketSelectionStyles = null;
|
|
73
|
-
// copied from packages/editor/editor-shared-styles/src/consts/consts.ts
|
|
74
|
-
const akEditorLineHeight = 1.714;
|
|
75
|
-
const listsStylesSafariFixMultiSelector = `
|
|
76
|
-
.ProseMirror:not(.blockCardView-content-wrap) > li > p:first-child,
|
|
77
|
-
.ProseMirror:not(.blockCardView-content-wrap) > li > .code-block:first-child,
|
|
78
|
-
.ProseMirror:not(.blockCardView-content-wrap) > li > .ProseMirror-gapcursor:first-child + .code-block`;
|
|
79
|
-
const editorAreaNonSmallDeviceContainerQuery = `@container editor-area (width >= ${akEditorBreakpointForSmallDevice})`;
|
|
80
|
-
const editorAreaNarrowPageContainerQuery = `@container editor-area (max-width: ${akEditorFullPageNarrowBreakout}px)`;
|
|
81
|
-
const editorAreaLayoutFullWidthMaxWidthContainerQuery = `@container editor-area (max-width: ${akEditorLayoutFullWidthBreakpoint}px)`;
|
|
82
|
-
const editorAreaLayoutFixedWidthMaxWidthContainerQuery = `@container editor-area (max-width: ${akEditorLayoutFixedWidthBreakpoint}px)`;
|
|
83
|
-
const editorAreaLayoutResizedMaxWidthContainerQuery = `@container editor-area (max-width: ${akEditorLayoutResizedBreakpoint}px)`;
|
|
84
|
-
const placeholderFadeInKeyframes = null;
|
|
85
|
-
const fadeIn = null;
|
|
86
|
-
const inlineStartShadow = null;
|
|
87
|
-
const inlineEndShadow = null;
|
|
88
|
-
const hideNativeBrowserTextSelectionStyles = null;
|
|
89
|
-
const boxShadowSelectionStyles = null;
|
|
90
|
-
const dangerBorderStyles = null;
|
|
91
|
-
const backgroundSelectionStyles = null;
|
|
92
|
-
const dangerBackgroundStyles = null;
|
|
93
|
-
const mentionsSelectedColor = null;
|
|
94
|
-
const fixVerticalAlignmentSelector = `
|
|
95
|
-
&:first-of-type + ul,
|
|
96
|
-
&:first-of-type + span + ul,
|
|
97
|
-
&:first-of-type + ol,
|
|
98
|
-
&:first-of-type + span + ol,
|
|
99
|
-
&:first-of-type + pre,
|
|
100
|
-
&:first-of-type + span + pre,
|
|
101
|
-
&:first-of-type + blockquote,
|
|
102
|
-
&:first-of-type + span + blockquote
|
|
103
|
-
`;
|
|
104
|
-
const gapCursorTwoImagesSideBySideFixSelector = `
|
|
105
|
-
.ProseMirror-gapcursor[layout="wrap-left"] + span + [layout="wrap-left"],
|
|
106
|
-
.ProseMirror-gapcursor[layout="wrap-right"] + span + [layout="wrap-right"],
|
|
107
|
-
.ProseMirror-gapcursor + [layout="wrap-left"] + [layout="wrap-right"],
|
|
108
|
-
.ProseMirror-gapcursor + [layout="wrap-left"] + span + [layout="wrap-right"],
|
|
109
|
-
.ProseMirror-gapcursor + [layout="wrap-right"] + [layout="wrap-left"],
|
|
110
|
-
.ProseMirror-gapcursor + [layout="wrap-right"] + span + [layout="wrap-left"],
|
|
111
|
-
[layout="wrap-left"] + .ProseMirror-gapcursor + [layout="wrap-right"],
|
|
112
|
-
[layout="wrap-left"] + .ProseMirror-gapcursor + span [layout="wrap-right"],
|
|
113
|
-
[layout="wrap-right"] + .ProseMirror-gapcursor + [layout="wrap-left"],
|
|
114
|
-
[layout="wrap-right"] + .ProseMirror-gapcursor + span + [layout="wrap-left"],
|
|
115
|
-
[layout="wrap-left"] + .ProseMirror-gapcursor`;
|
|
116
|
-
const gapCursorMarginFixSelector = `
|
|
117
|
-
[layout="wrap-left"] + .ProseMirror-gapcursor + [layout="wrap-right"] > div,
|
|
118
|
-
[layout="wrap-left"] + .ProseMirror-gapcursor + span + [layout="wrap-right"] > div,
|
|
119
|
-
[layout="wrap-right"] + .ProseMirror-gapcursor + [layout="wrap-left"] > div,
|
|
120
|
-
[layout="wrap-right"] + .ProseMirror-gapcursor + span + [layout="wrap-left"] > div,
|
|
121
|
-
.ProseMirror-gapcursor + [layout="wrap-right"] + [layout="wrap-left"] > div,
|
|
122
|
-
.ProseMirror-gapcursor + [layout="wrap-right"] + span + [layout="wrap-left"] > div,
|
|
123
|
-
.ProseMirror-gapcursor + [layout="wrap-left"] + [layout="wrap-right"] > div,
|
|
124
|
-
.ProseMirror-gapcursor + [layout="wrap-left"] + span + [layout="wrap-right"] > div`;
|
|
125
|
-
const gapCursorFloatLeftFixSelector = `
|
|
126
|
-
[layout="wrap-left"] + .ProseMirror-gapcursor,
|
|
127
|
-
[layout="wrap-right"] + .ProseMirror-gapcursor`;
|
|
128
|
-
const gapCursorAfterPseudoSelector = `
|
|
129
|
-
.ProseMirror-gapcursor + [layout="wrap-left"] + span + [layout="wrap-right"]::after,
|
|
130
|
-
.ProseMirror-gapcursor + [layout="wrap-right"] + span + [layout="wrap-left"]::after,
|
|
131
|
-
[layout="wrap-left"] + .ProseMirror-gapcursor + [layout="wrap-right"]::after,
|
|
132
|
-
[layout="wrap-left"] + .ProseMirror-gapcursor + span + [layout="wrap-right"]::after,
|
|
133
|
-
[layout="wrap-right"] + .ProseMirror-gapcursor + [layout="wrap-left"]::after,
|
|
134
|
-
[layout="wrap-right"] + .ProseMirror-gapcursor + span + [layout="wrap-left"]::after`;
|
|
135
|
-
const gapCursorMarginDeepChildrenFixSelector = `
|
|
136
|
-
[layout="wrap-left"] + .ProseMirror-gapcursor + [layout="wrap-right"] + *,
|
|
137
|
-
[layout="wrap-left"] + .ProseMirror-gapcursor + [layout="wrap-right"] + span + *,
|
|
138
|
-
[layout="wrap-right"] + .ProseMirror-gapcursor + [layout="wrap-left"] + *,
|
|
139
|
-
[layout="wrap-right"] + .ProseMirror-gapcursor + [layout="wrap-left"] + span + *,
|
|
140
|
-
[layout="wrap-left"] + .ProseMirror-gapcursor + span + [layout="wrap-right"] + *,
|
|
141
|
-
[layout="wrap-right"] + .ProseMirror-gapcursor + span + [layout="wrap-left"] + *,
|
|
142
|
-
.ProseMirror-gapcursor + [layout="wrap-left"] + span + [layout="wrap-right"] + *,
|
|
143
|
-
.ProseMirror-gapcursor + [layout="wrap-right"] + span + [layout="wrap-left"] + *,
|
|
144
|
-
[layout="wrap-left"] + .ProseMirror-gapcursor + [layout="wrap-right"] + * > *,
|
|
145
|
-
[layout="wrap-left"] + .ProseMirror-gapcursor + [layout="wrap-right"] + span + * > *,
|
|
146
|
-
[layout="wrap-right"] + .ProseMirror-gapcursor + [layout="wrap-left"] + * > *,
|
|
147
|
-
[layout="wrap-right"] + .ProseMirror-gapcursor + [layout="wrap-left"] + span + * > *,
|
|
148
|
-
[layout="wrap-left"] + .ProseMirror-gapcursor + span + [layout="wrap-right"] + * > *,
|
|
149
|
-
[layout="wrap-right"] + .ProseMirror-gapcursor + span + [layout="wrap-left"] + * > *,
|
|
150
|
-
.ProseMirror-gapcursor + [layout="wrap-left"] + span + [layout="wrap-right"] + * > *,
|
|
151
|
-
.ProseMirror-gapcursor + [layout="wrap-right"] + span + [layout="wrap-left"] + * > *,
|
|
152
|
-
.ProseMirror-widget:not([data-blocks-decoration-container="true"]):not([data-blocks-drag-handle-container="true"]):not([data-blocks-quick-insert-container="true"]) + .ProseMirror-gapcursor + *,
|
|
153
|
-
.ProseMirror-widget:not([data-blocks-decoration-container="true"]):not([data-blocks-drag-handle-container="true"]):not([data-blocks-quick-insert-container="true"]) + .ProseMirror-gapcursor + span + *`;
|
|
154
|
-
const gapCursorBlink = null;
|
|
155
|
-
const pulseIn = null;
|
|
156
|
-
const pulseOut = null;
|
|
157
|
-
const pulseInDuringTr = null;
|
|
158
|
-
const pulseOutDuringTr = null;
|
|
159
|
-
|
|
160
|
-
// Agent edit shimmer: skeleton-loader sweep across the agent-authored range.
|
|
161
|
-
const agentShimmer = null;
|
|
162
|
-
|
|
163
|
-
// Agent edit purple "just edited" highlight: eases the background and underline in, holds, then eases
|
|
164
|
-
// them back out over the highlight's lifetime (duration set inline per-decoration to match removal).
|
|
165
|
-
const agentEditHighlight = null;
|
|
166
|
-
const syncBlockCreationLoadingKeyframes = null;
|
|
167
|
-
const mentionRunShimmer = null;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* aiPanelStyles
|
|
171
|
-
* was imported from packages/editor/editor-core/src/ui/ContentStyles/ai-panels.ts
|
|
172
|
-
*/
|
|
173
|
-
const rotationAnimation = null;
|
|
174
|
-
const rotationAnimationFirefox = null;
|
|
175
|
-
|
|
176
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
177
|
-
const prismBorderBaseBackgroundFirefox = `linear-gradient(90deg, #0065FF 0%, #0469FF 12%, #BF63F3 24%, #FFA900 48%, #BF63F3 64%, #0469FF 80%, #0065FF 100%)`;
|
|
178
|
-
|
|
179
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
180
|
-
const prismBorderBaseBackground = `conic-gradient(from var(--panel-gradient-angle, 270deg), #0065FF 0%, #0469FF 20%, #BF63F3 50%, #FFA900 56%, #0065FF 100%)`;
|
|
181
|
-
|
|
182
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
183
|
-
const prismBorderDarkBackgroundFirefox = `linear-gradient(90deg, #0065FF80 0%, #0469FF80 12%, #BF63F380 24%, #FFA90080 48%, #BF63F380 64%, #0469FF80 80%, #0065FF80 100%)`;
|
|
184
|
-
|
|
185
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
186
|
-
const prismBorderDarkBackground = `conic-gradient(from var(--panel-gradient-angle, 270deg), #0065FF80 0%, #0469FF80 20%, #BF63F380 50%, #FFA90080 56%, #0065FF80 100%)`;
|
|
187
|
-
const borderSelectionStyles = null;
|
|
188
|
-
const overflowShadowStyles = null;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* editorContentStyles contains the Compiled CSS styles migrated from EditorContentContainer/styles.
|
|
192
|
-
* Validate style changes with local VR and integration tests.
|
|
193
|
-
*
|
|
194
|
-
* If you are not sure, please contact #proj-cc-editor-full-compiled-css-migration
|
|
195
|
-
*/
|
|
196
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-map-scoped
|
|
197
|
-
const editorContentStyles = {
|
|
198
|
-
aiPanelBaseFirefoxStyles: "cc-b815do",
|
|
199
|
-
aiPanelBaseStyles: "cc-1a1v2aa",
|
|
200
|
-
aiPanelDarkFirefoxStyles: "cc-112vacu",
|
|
201
|
-
aiPanelDarkStyles: "cc-kxreox",
|
|
202
|
-
alignMultipleWrappedImageInLayoutStyles: "cc-suterj",
|
|
203
|
-
annotationStyles: "cc-4utml7",
|
|
204
|
-
backgroundColorStyles: "cc-1ncpj2p",
|
|
205
|
-
highlightLinksUnsetStyles: "cc-vh4lfw",
|
|
206
|
-
baseStyles: "cc-123pw0y",
|
|
207
|
-
baseStylesMaxContainerWidthFixes: "cc-cgsb4r",
|
|
208
|
-
blockMarksStyles: "cc-11zeupy",
|
|
209
|
-
extensionWithBreakoutStyles: "cc-104fmpo",
|
|
210
|
-
blockquoteDangerStyles: "cc-1w88a35",
|
|
211
|
-
blockquoteSelectedNodeStyles: "cc-pt15wg",
|
|
212
|
-
blocktypeStyles: "cc-2psl3e",
|
|
213
|
-
headingScrollMarginStyles: "cc-g0pvon",
|
|
214
|
-
blocktypeStylesRtlBlockquote: "cc-1aoan5v",
|
|
215
|
-
blocktypeStylesNestedDnd: "cc-8b509b",
|
|
216
|
-
blocktypeStyles_fg_platform_editor_typography_ugc: "cc-1na1fzg",
|
|
217
|
-
codeBlockStyles: "cc-1l6yvlg",
|
|
218
|
-
codeBlockStylesWithEmUnits: "cc-1agwr6s",
|
|
219
|
-
codeMarkStyles: "cc-9o9ss2",
|
|
220
|
-
commentEditorStyles: "cc-pk1css",
|
|
221
|
-
commentLessMarginStyles: "cc-x35y7f",
|
|
222
|
-
nonFullPageContainerTypeStyles: "cc-fsbph9",
|
|
223
|
-
cursorStyles: "cc-1wz6obl",
|
|
224
|
-
dangerDateStyles: "cc-1aoj0mo",
|
|
225
|
-
dangerRuleStyles: "cc-5hyj3q",
|
|
226
|
-
numberedHeadingsStyles: "cc-3ijkgm",
|
|
227
|
-
ruleWithAttrsStyles: "cc-dgsww3",
|
|
228
|
-
dateStyles: "cc-1mmt8n5",
|
|
229
|
-
dateVanillaStyles: "cc-avdkma",
|
|
230
|
-
decisionDangerStyles: "cc-ak695d",
|
|
231
|
-
decisionIconWithVisualRefresh: "cc-9wx0ks",
|
|
232
|
-
decisionStyles: "cc-k8dnnh",
|
|
233
|
-
diffListStyles: "cc-gfdhbo",
|
|
234
|
-
editorControlsSmartCardStyles: "cc-15b3poi",
|
|
235
|
-
editorGutterPaddingBaseStyles: "cc-9fht47",
|
|
236
|
-
editorLargeGutterPuddingReducedBaseStyles: "cc-thmreh",
|
|
237
|
-
editorUGCTokensRefreshed: "cc-j6p7k2",
|
|
238
|
-
editorUGCSmallText: "cc-1x753i0",
|
|
239
|
-
embedCardStyles: "cc-epa0ej",
|
|
240
|
-
emojiDangerStyles: "cc-30ls2d",
|
|
241
|
-
emojiStyles: "cc-1c7fc54",
|
|
242
|
-
emojiSelectionStyles: "cc-1w90uvx",
|
|
243
|
-
directEmojiSelectionStyles: "cc-15yelzs",
|
|
244
|
-
emojiDenseStyles: "cc-1d3vsly",
|
|
245
|
-
expandStyles: "cc-ydjhnl",
|
|
246
|
-
expandStylesBase: "cc-6vgdj1",
|
|
247
|
-
expandStylesMixin_chromeless_expand_fix: "cc-1lto76z",
|
|
248
|
-
expandStylesMixinNestedDnd: "cc-1qafbtm",
|
|
249
|
-
expandStylesMixin_fg_platform_visual_refresh_icons: "cc-7u82l3",
|
|
250
|
-
expandDenseStyles: "cc-feduil",
|
|
251
|
-
extensionStyles: "cc-1hwpsn5",
|
|
252
|
-
extensionStylesDense: "cc-1olibtl",
|
|
253
|
-
extensionDiffStyles: "cc-1qnrjo9",
|
|
254
|
-
bodiedExtensionLayoutShiftFix: "cc-5reyfb",
|
|
255
|
-
findReplaceStyles: "cc-1v5rjql",
|
|
256
|
-
findReplaceStylesWithCodeblockColorContrastFix: "cc-ynroem",
|
|
257
|
-
findReplaceStylesWithRefSyncBlock: "cc-1m8det7",
|
|
258
|
-
firstBlockNodeStyles: "cc-1jobn4s",
|
|
259
|
-
firstNodeWidgetFixStyles: "cc-1pigoie",
|
|
260
|
-
firstCodeBlockWithNoMargin: "cc-1c4x8a",
|
|
261
|
-
firstFloatingToolbarButtonStyles: "cc-i97p01",
|
|
262
|
-
firstWrappedMediaStyles: "cc-2ea62a",
|
|
263
|
-
fontSizeStyles: "cc-mit9c1",
|
|
264
|
-
fullPageEditorStyles: "cc-13nbxwv",
|
|
265
|
-
gapCursorStyles: "cc-ly828t",
|
|
266
|
-
gapCursorStylesVisibilityFix: "cc-1lytimn",
|
|
267
|
-
gridStyles: "cc-wzj3lo",
|
|
268
|
-
hideCursorWhenHideSelectionStyles: "cc-fb2yc7",
|
|
269
|
-
hideSelectionStyles: "cc-10c1807",
|
|
270
|
-
scopedHideSelectionStyles: "cc-4ip0vr",
|
|
271
|
-
hyperLinkFloatingToolbarStyles: "cc-z6qi82",
|
|
272
|
-
indentationStyles: "cc-1soex6v",
|
|
273
|
-
InlineNodeViewSharedStyles: "cc-oocuhh",
|
|
274
|
-
layoutBaseStyles: "cc-vt5d4b",
|
|
275
|
-
layoutBaseStylesAdvanced: "cc-nyj72m",
|
|
276
|
-
layoutBaseStylesNestedDndExcludingBodiedSync: "cc-19l8fhf",
|
|
277
|
-
layoutColumnDividerStyles: "cc-17tg3cb",
|
|
278
|
-
layoutColumnDividerStylesNestedDnD: "cc-az4yk5",
|
|
279
|
-
layoutColumnMartinTopFixes: "cc-17reocz",
|
|
280
|
-
layoutColumnResizeStyles: "cc-sv7quj",
|
|
281
|
-
layoutColumnResponsiveStyles: "cc-7xz0v3",
|
|
282
|
-
layoutColumnStylesAdvanced: "cc-oj0dia",
|
|
283
|
-
layoutColumnStylesNotAdvanced: "cc-hlcxvl",
|
|
284
|
-
layoutResponsiveBaseStyles: "cc-1ubc444",
|
|
285
|
-
layoutResponsiveStylesForView: "cc-1109zih",
|
|
286
|
-
layoutDragHandleWrapperStylesLegacy: "cc-gizmrx",
|
|
287
|
-
layoutDragHandleWrapperStylesTopLayer: "cc-94r9i3",
|
|
288
|
-
layoutSectionStylesAdvanced: "cc-1fxar8a",
|
|
289
|
-
layoutSectionStylesNotAdvanced: "cc-tbpbzb",
|
|
290
|
-
layoutSelectedStylesAdvanced: "cc-186ms2c",
|
|
291
|
-
layoutSelectedStylesAdvancedFix: "cc-25ti8u",
|
|
292
|
-
layoutSelectedStylesForViewAdvanced: "cc-30cb8p",
|
|
293
|
-
layoutSelectedStylesForViewNotAdvanced: "cc-s2vl1h",
|
|
294
|
-
layoutSelectedStylesNotAdvanced: "cc-1u12zmq",
|
|
295
|
-
layoutStylesForView: "cc-1ykh7ck",
|
|
296
|
-
linkingVisualRefreshV1Styles: "cc-oybk1r",
|
|
297
|
-
linkStyles: "cc-y4mgh1",
|
|
298
|
-
listDangerStyles: "cc-r9og9u",
|
|
299
|
-
listItemHiddenMarkerStyles: "cc-yovug7",
|
|
300
|
-
listSelectedNodeStyles: "cc-16nbeqa",
|
|
301
|
-
listSelectedNodeStylesWithHighlightInheritance: "cc-120a5u9",
|
|
302
|
-
listsStyles: "cc-xwc364",
|
|
303
|
-
listsStylesMarginLayoutShiftFix: "cc-rj5qxv",
|
|
304
|
-
listsStylesSafariFix: "cc-1iqc8mu",
|
|
305
|
-
listsDenseStyles: "cc-iu9h8q",
|
|
306
|
-
maxModeReizeFixStyles: "cc-1uksm6h",
|
|
307
|
-
mediaAlignmentStyles: "cc-6n0n2h",
|
|
308
|
-
vanillaCaptionStyles: "cc-1vdr4vn",
|
|
309
|
-
mediaCaptionStyles: "cc-17or0mw",
|
|
310
|
-
mediaDangerStyles: "cc-9lr89g",
|
|
311
|
-
mediaGroupStyles: "cc-pxnj3p",
|
|
312
|
-
mediaStyles: "cc-1al43g7",
|
|
313
|
-
mentionDangerStyles: "cc-t8jrt0",
|
|
314
|
-
mentionAvatarNoWrapStyles: "cc-19m10zm",
|
|
315
|
-
mentionNodeStyles: "cc-f3tkhc",
|
|
316
|
-
agentMentionShimmerDarkMode: "cc-d99ako",
|
|
317
|
-
mentionsSelectionStyles: "cc-18wl5mr",
|
|
318
|
-
mentionsStyles: "cc-1rxkxid",
|
|
319
|
-
nestedPanelBorderStylesMixin: "cc-q1df3a",
|
|
320
|
-
nestedPanelDangerStyles: "cc-1l9jej1",
|
|
321
|
-
panelStyles: "cc-zbi2y5",
|
|
322
|
-
panelStylesMixin: "cc-h7dall",
|
|
323
|
-
panelStylesMixinNestedDnd: "cc-1a6gjd",
|
|
324
|
-
panelViewStyles: "cc-4fs4h7",
|
|
325
|
-
paragraphStylesUGCRefreshed: "cc-cc1o06",
|
|
326
|
-
paragraphStylesWithScaledMargin: "cc-9s11ni",
|
|
327
|
-
placeholderOverflowStyles: "cc-j698ed",
|
|
328
|
-
placeholderStyles: "cc-1g9vzfc",
|
|
329
|
-
placeholderTextStyles: "cc-1om7jhv",
|
|
330
|
-
pragmaticResizerStyles: "cc-lum87v",
|
|
331
|
-
pragmaticResizerStylesCodeBlockSyncedBlockPatch: "cc-1tfwb0v",
|
|
332
|
-
pragmaticResizerStylesForTooltip: "cc-mn5fyk",
|
|
333
|
-
pragmaticResizerStylesSyncedBlock: "cc-kqyid",
|
|
334
|
-
pragmaticResizerStylesWithReducedEditorGutter: "cc-1rmxv6a",
|
|
335
|
-
pragmaticResizerStylesPanelAndRule: "cc-e2b324",
|
|
336
|
-
pragmaticResizerStylesPanelAndRuleJsdomFix: "cc-1r1iai5",
|
|
337
|
-
pragmaticResizerStylesExtensions: "cc-1qxwscr",
|
|
338
|
-
pragmaticResizerStylesHiddenForPanelAndRule: "cc-np8b3p",
|
|
339
|
-
pragmaticResizerStylesHiddenForExtensions: "cc-vc0o0p",
|
|
340
|
-
pragmaticStylesLayoutFirstNodeResizeHandleFix: "cc-15hu28n",
|
|
341
|
-
resizerStyles: "cc-zdnzj",
|
|
342
|
-
resizerBottomHandleStyles: "cc-1nsisym",
|
|
343
|
-
ruleStyles: "cc-184ku22",
|
|
344
|
-
scaledEmojiStyles: "cc-ruh3pg",
|
|
345
|
-
scaledEmojiDenseStyles: "cc-1tcigme",
|
|
346
|
-
scrollbarStyles: "cc-13ipadj",
|
|
347
|
-
selectedNodeStyles: "cc-xj7ujp",
|
|
348
|
-
selectionToolbarAnimationStyles: "cc-1u1dmuf",
|
|
349
|
-
shadowStyles: "cc-7ldcy",
|
|
350
|
-
extensionScrollInlineShadowStyles: "cc-j1h4lx",
|
|
351
|
-
showDiffDeletedNodeStyles: "cc-1cupvcw",
|
|
352
|
-
smartCardDiffStyles: "cc-v28bhv",
|
|
353
|
-
smartCardStylesWithSearchMatch: "cc-1v4mcpy",
|
|
354
|
-
smartCardStylesWithSearchMatchAndBlockMenuDangerStyles: "cc-1y0ifdm",
|
|
355
|
-
smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness: "cc-1k9ikv5",
|
|
356
|
-
smartLinksInLivePagesStyles: "cc-1xbql87",
|
|
357
|
-
syncBlockFirstNodeStyles: "cc-948d37",
|
|
358
|
-
syncBlockTextSelectionStyles: "cc-1rgu3l5",
|
|
359
|
-
syncBlockInteractiveCursorStyles: "cc-54hos9",
|
|
360
|
-
syncBlockOverflowStyles: "cc-7kpyvk",
|
|
361
|
-
syncBlockStyles: "cc-d5z442",
|
|
362
|
-
syncBlockSelectedStyles: "cc-1dv8jbi",
|
|
363
|
-
syncBlockStylesBase: "cc-btp579",
|
|
364
|
-
tableCellBackgroundColorOverrides: "cc-cvmfbc",
|
|
365
|
-
tableCommentEditorStyles: "cc-qmh5x7",
|
|
366
|
-
tableContainerStyles: "cc-1c98076",
|
|
367
|
-
tableScrollInlineShadowStyles: "cc-1b7tx95",
|
|
368
|
-
tableContentModeStyles: "cc-4d6xg1",
|
|
369
|
-
tableContentModeExtensionContainmentStyles: "cc-1w5c7rs",
|
|
370
|
-
tableContentModeNestedTableStyles: "cc-19w908l",
|
|
371
|
-
tableEmptyRowStyles: "cc-1fi1exx",
|
|
372
|
-
tableRoundedCornerStyles: "cc-1e2f7tx",
|
|
373
|
-
tableLayoutFixes: "cc-wfosn0",
|
|
374
|
-
tableLayoutFixesWithFontSize: "cc-q5xq8b",
|
|
375
|
-
tableSharedStyle: "cc-ynug2a",
|
|
376
|
-
tableSharedStyleBackgroundClipFix: "cc-pjwrbm",
|
|
377
|
-
tableSharedStyle_with_platform_editor_table_q4_loveability: "cc-aatd3e",
|
|
378
|
-
tableSharedStyle_without_platform_editor_table_q4_loveability: "cc-1ax02u7",
|
|
379
|
-
tableSharedStyle_with_platform_editor_table_menu_updates: "cc-1m0i13l",
|
|
380
|
-
tableSharedStyle_with_platform_editor_bordered_panel_nested_in_table: "cc-tn0brk",
|
|
381
|
-
taskItemCheckboxStyles: "cc-1jt3e2e",
|
|
382
|
-
taskItemStylesWithBlockTaskItem: "cc-pfp415",
|
|
383
|
-
tasksAndDecisionsStyles: "cc-e4e14o",
|
|
384
|
-
tasksAndDecisionsDenseStyles: "cc-yceeaz",
|
|
385
|
-
statusDangerStyles: "cc-ne538a",
|
|
386
|
-
statusStyles: "cc-1ylkv5y",
|
|
387
|
-
statusStylesMixin_fg_platform_component_visual_refresh_with_search_match: "cc-1ki047n",
|
|
388
|
-
statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match: "cc-x6toxh",
|
|
389
|
-
deletedStatusStrikeStyles: "cc-eie91o",
|
|
390
|
-
atomicInlineChangedBoxShadowStyles: "cc-3nf4b",
|
|
391
|
-
statusStylesTeam26: "cc-1szti83",
|
|
392
|
-
statusStylesTeam26TextTrim: "cc-1wyoddi",
|
|
393
|
-
statusStylesNamedSemantic: "cc-ba6gav",
|
|
394
|
-
statusStylesNamedAccent: "cc-1gvo00o",
|
|
395
|
-
statusStylesHexAccent: "cc-1ky6mbc",
|
|
396
|
-
telepointerColorAndCommonStyle: "cc-1kvcl18",
|
|
397
|
-
telepointerColorAndCommonStyleDarkMode: "cc-rm5obe",
|
|
398
|
-
agentShimmerStyles: "cc-134apo0",
|
|
399
|
-
telepointerStyle: "cc-1uxxkh5",
|
|
400
|
-
textColorStyles: "cc-aj20c0",
|
|
401
|
-
textDangerStyles: "cc-gju5dz",
|
|
402
|
-
textHighlightPaddingStyles: "cc-yxkvom",
|
|
403
|
-
textHighlightStyle: "cc-277qb",
|
|
404
|
-
textSelectedNodeStyles: "cc-rrpz54",
|
|
405
|
-
textSelectedNodeStylesWithHighlightInheritance: "cc-1q68dpi",
|
|
406
|
-
unsupportedStyles: "cc-hnzg4x",
|
|
407
|
-
vanillaTooltipDefaultStyles: "cc-s0u8xw",
|
|
408
|
-
contributorTagStyles: "cc-1c4gda",
|
|
409
|
-
vanillaUnsupportedStyles: "cc-1ysxql5",
|
|
410
|
-
whitespaceStyles: "cc-14oigrh"
|
|
411
|
-
};
|
|
412
|
-
const isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
413
|
-
/**
|
|
414
|
-
* EditorContentStyles is a wrapper component that applies styles to its children
|
|
415
|
-
* based on the provided feature flags, view mode, and other props.
|
|
416
|
-
* It uses Compiled for styling and supports scrollable content.
|
|
417
|
-
*
|
|
418
|
-
* This will be used in near future to replace the current editor content styles from index.tsx
|
|
419
|
-
*/
|
|
420
|
-
export const EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
421
|
-
const {
|
|
422
|
-
className,
|
|
423
|
-
children,
|
|
424
|
-
viewMode,
|
|
425
|
-
isScrollable,
|
|
426
|
-
appearance,
|
|
427
|
-
contentMode,
|
|
428
|
-
useStandardNodeWidth
|
|
429
|
-
} = props;
|
|
430
|
-
const {
|
|
431
|
-
colorMode
|
|
432
|
-
} = useThemeObserver();
|
|
433
|
-
const isFullPage = appearance === 'full-page' || appearance === 'full-width' || appearance === 'max';
|
|
434
|
-
const isComment = appearance === 'comment';
|
|
435
|
-
const isChromeless = appearance === 'chromeless';
|
|
436
|
-
const baseFontSize = getBaseFontSize(appearance, contentMode);
|
|
437
|
-
const isDense = !!baseFontSize && baseFontSize !== akEditorFullPageDefaultFontSize;
|
|
438
|
-
const tableOverflowShadow = overflowShadowForCompiled({
|
|
439
|
-
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
440
|
-
});
|
|
441
|
-
|
|
442
|
-
// Under the static-CSS experiment, --ak-editor-base-font-size is set earlier on the
|
|
443
|
-
// root div in editor-internal.tsx and inherited via the CSS cascade — do not set it here.
|
|
444
|
-
// For the legacy font-size path, derive it from the editor theme.
|
|
445
|
-
const style = React.useMemo(() => ({
|
|
446
|
-
'--ak-editor--table-overflow-shadow': tableOverflowShadow,
|
|
447
|
-
...tableCellBackgroundColorVariablesForCompiled,
|
|
448
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
449
|
-
...(!editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
450
|
-
exposure: true
|
|
451
|
-
}) && {
|
|
452
|
-
'--ak-editor--large-gutter-padding': `${akEditorGutterPaddingDynamic()}px`
|
|
453
|
-
})
|
|
454
|
-
}), [tableOverflowShadow]);
|
|
455
|
-
const browser = getBrowserInfo();
|
|
456
|
-
// Highlight inheritance shipped in Chromium 134. Keep explicit descendant rules for
|
|
457
|
-
// other engines and older versions; supporting ::selection alone is not sufficient.
|
|
458
|
-
const isSelectionHighlightInheritanceActive = browser.chrome_version >= 134 && isExperimentEnabled('platform_editor_improve_inp');
|
|
459
|
-
const isFloatingTocEnabled = isExperimentEnabled('platform_editor_floating_toc');
|
|
460
|
-
const isUpdateStatusColorsEnabled = UNSAFE_expValNoExposure('platform_editor_update_status_colors', 'isEnabled', false) || UNSAFE_expValNoExposure('platform_editor_update_status_colors_jira', 'isEnabled', false);
|
|
461
|
-
const isStatusStylesTeam26 = fg('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
462
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
463
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
464
|
-
className: ax([editorContentStyles.baseStyles, editorContentStyles.maxModeReizeFixStyles, editorContentStyles.baseStylesMaxContainerWidthFixes, editorContentStyles.editorGutterPaddingBaseStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
465
|
-
exposure: true
|
|
466
|
-
}) && editorContentStyles.editorLargeGutterPuddingReducedBaseStyles, editorContentStyles.whitespaceStyles, editorContentStyles.indentationStyles, editorContentStyles.fontSizeStyles, editorContentStyles.shadowStyles, isExperimentEnabled('platform_editor_reduce_forced_layout_2') && editorContentStyles.extensionScrollInlineShadowStyles, editorContentStyles.InlineNodeViewSharedStyles, isExperimentEnabled('platform_editor_improve_inp') ? editorContentStyles.scopedHideSelectionStyles : editorContentStyles.hideSelectionStyles, editorContentStyles.hideCursorWhenHideSelectionStyles, editorContentStyles.selectedNodeStyles, editorContentStyles.cursorStyles, editorContentStyles.firstFloatingToolbarButtonStyles, editorContentStyles.placeholderTextStyles, editorContentStyles.placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') && editorContentStyles.placeholderOverflowStyles, editorContentStyles.codeBlockStyles, contentMode === 'compact' && editorContentStyles.codeBlockStylesWithEmUnits, editorContentStyles.editorUGCTokensRefreshed, editorContentStyles.editorUGCSmallText, editorContentStyles.blocktypeStyles, editorContentStyles.blocktypeStylesRtlBlockquote, isFloatingTocEnabled && editorContentStyles.headingScrollMarginStyles, editorContentStyles.blockquoteSelectedNodeStyles, isSelectionHighlightInheritanceActive ? editorContentStyles.listSelectedNodeStylesWithHighlightInheritance : editorContentStyles.listSelectedNodeStyles, isSelectionHighlightInheritanceActive ? editorContentStyles.textSelectedNodeStylesWithHighlightInheritance : editorContentStyles.textSelectedNodeStyles, editorContentStyles.blocktypeStyles_fg_platform_editor_typography_ugc, editorContentStyles.blocktypeStylesNestedDnd, editorContentStyles.codeMarkStyles, editorContentStyles.textColorStyles, editorContentStyles.backgroundColorStyles, !expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && editorContentStyles.highlightLinksUnsetStyles, editorContentStyles.textHighlightPaddingStyles, editorContentStyles.listsStyles, editorContentStyles.listItemHiddenMarkerStyles, editorContentStyles.diffListStyles, contentMode === 'compact' && isDense && editorContentStyles.listsDenseStyles, isFullPage && editorContentStyles.listsStylesMarginLayoutShiftFix, editorContentStyles.ruleStyles, isExperimentEnabled('platform_editor_lovability_dividers_attributes') && editorContentStyles.ruleWithAttrsStyles, isExperimentEnabled('platform_editor_numbered_headings') && editorContentStyles.numberedHeadingsStyles, editorContentStyles.smartCardDiffStyles, editorContentStyles.showDiffDeletedNodeStyles, editorContentStyles.mediaStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaCaptionStyles, contentMode === 'compact' && editorContentStyles.mediaCaptionStyles, editorContentStyles.firstWrappedMediaStyles, editorContentStyles.telepointerStyle, /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */
|
|
467
|
-
editorContentStyles.telepointerColorAndCommonStyle, colorMode === 'dark' && editorContentStyles.telepointerColorAndCommonStyleDarkMode, expValEqualsNoExposure('platform_editor_agent_be_streaming', 'isEnabled', true) && editorContentStyles.agentShimmerStyles, editorContentStyles.gapCursorStyles, editorContentStyles.gapCursorStylesVisibilityFix, editorContentStyles.panelStyles, editorContentStyles.nestedPanelBorderStylesMixin, editorContentStyles.panelStylesMixinNestedDnd, editorContentStyles.panelStylesMixin, editorContentStyles.mentionsStyles, editorContentStyles.tasksAndDecisionsStyles, contentMode === 'compact' && isDense && editorContentStyles.tasksAndDecisionsDenseStyles, editorContentStyles.gridStyles, editorContentStyles.blockMarksStyles, editorContentStyles.dateStyles, editorContentStyles.extensionStyles, fg('platform_editor_lovability_resize_exts_gracefully') && editorContentStyles.extensionWithBreakoutStyles, contentMode === 'compact' && editorContentStyles.extensionStylesDense, editorContentStyles.bodiedExtensionLayoutShiftFix, editorContentStyles.extensionDiffStyles, editorContentStyles.expandStylesBase, !useStandardNodeWidth && editorContentStyles.expandStyles, contentMode === 'compact' && isDense && editorContentStyles.expandDenseStyles, editorContentStyles.expandStylesMixinNestedDnd, editorContentStyles.expandStylesMixin_fg_platform_visual_refresh_icons, isChromeless && editorContentStyles.expandStylesMixin_chromeless_expand_fix, editorContentStyles.findReplaceStyles, editorContentStyles.findReplaceStylesWithCodeblockColorContrastFix, editorContentStyles.findReplaceStylesWithRefSyncBlock, editorContentStyles.textHighlightStyle, editorContentStyles.decisionStyles, editorContentStyles.taskItemStylesWithBlockTaskItem, editorContentStyles.taskItemCheckboxStyles, editorContentStyles.decisionIconWithVisualRefresh, editorContentStyles.statusStyles, isStatusStylesTeam26 ? editorContentStyles.statusStylesTeam26 : fg('platform-component-visual-refresh') ? editorContentStyles.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match : editorContentStyles.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match, isStatusStylesTeam26 && isExperimentEnabled('platform_status_lozenge_fractional_zoom_fix') && editorContentStyles.statusStylesTeam26TextTrim, isStatusStylesTeam26 && isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedAccent, isStatusStylesTeam26 && !isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedSemantic, editorContentStyles.statusStylesHexAccent, fg('platform_editor_ai_show_diff_patch_2') && editorContentStyles.deletedStatusStrikeStyles, editorContentStyles.annotationStyles, editorContentStyles.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, editorContentStyles.editorControlsSmartCardStyles, editorContentStyles.embedCardStyles, editorContentStyles.unsupportedStyles, editorContentStyles.vanillaTooltipDefaultStyles, fg('confluence_ncs_step_diffing_version_history') && editorContentStyles.contributorTagStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaUnsupportedStyles, editorContentStyles.resizerStyles, expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true) && expValEquals('databases-native-embeds-v2', 'isEnabled', true) && editorContentStyles.resizerBottomHandleStyles, editorContentStyles.layoutBaseStyles, editorContentStyles.alignMultipleWrappedImageInLayoutStyles, editorContentStyles.syncBlockStylesBase, fg('platform-dst-tokens-finesse') && editorContentStyles.syncBlockSelectedStyles, !useStandardNodeWidth && editorContentStyles.syncBlockStyles, editorContentStyles.syncBlockOverflowStyles, editorContentStyles.syncBlockFirstNodeStyles, editorContentStyles.syncBlockTextSelectionStyles, editorContentStyles.syncBlockInteractiveCursorStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSectionStylesAdvanced : editorContentStyles.layoutSectionStylesNotAdvanced, editorExperiment('advanced_layouts', true) && !fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesLegacy, editorExperiment('advanced_layouts', true) && fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesTopLayer, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStylesNestedDnD, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutColumnStylesAdvanced : editorContentStyles.layoutColumnStylesNotAdvanced, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResizeStyles, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSelectedStylesAdvanced : editorContentStyles.layoutSelectedStylesNotAdvanced, editorContentStyles.layoutSelectedStylesAdvancedFix, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResponsiveStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveBaseStyles, editorContentStyles.layoutBaseStylesNestedDndExcludingBodiedSync, editorContentStyles.layoutColumnMartinTopFixes, editorContentStyles.smartLinksInLivePagesStyles, editorContentStyles.linkingVisualRefreshV1Styles, editorContentStyles.dateVanillaStyles, contentMode === 'compact' ? editorContentStyles.paragraphStylesWithScaledMargin : editorContentStyles.paragraphStylesUGCRefreshed, editorContentStyles.linkStyles, browser.safari && editorContentStyles.listsStylesSafariFix, editorContentStyles.pragmaticResizerStylesSyncedBlock, editorContentStyles.pragmaticResizerStyles, expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && isExperimentEnabled('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRuleJsdomFix, expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && !isExperimentEnabled('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRule, isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesExtensions, editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, isExperimentEnabled('platform_editor_reduce_forced_layout') && !expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesHiddenForPanelAndRule, isExperimentEnabled('platform_editor_reduce_forced_layout') && !isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesHiddenForExtensions, editorExperiment('advanced_layouts', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, editorContentStyles.pragmaticResizerStylesForTooltip, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.pragmaticResizerStylesWithReducedEditorGutter, editorContentStyles.aiPanelBaseStyles, isFirefox && editorContentStyles.aiPanelBaseFirefoxStyles, colorMode === 'dark' && editorContentStyles.aiPanelDarkStyles, colorMode === 'dark' && isFirefox && editorContentStyles.aiPanelDarkFirefoxStyles, viewMode === 'view' && editorContentStyles.layoutStylesForView, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutSelectedStylesForViewAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', false) && editorContentStyles.layoutSelectedStylesForViewNotAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveStylesForView, isComment && editorContentStyles.commentEditorStyles, isComment && editorContentStyles.tableCommentEditorStyles, (isComment || isChromeless) && editorContentStyles.nonFullPageContainerTypeStyles, isComment && (fg('platform_editor_comment_margin_cq') || isExperimentEnabled('work_item_modernization')) && editorContentStyles.commentLessMarginStyles, isFullPage && editorContentStyles.fullPageEditorStyles, isFullPage && editorContentStyles.scrollbarStyles, editorContentStyles.firstCodeBlockWithNoMargin, editorContentStyles.firstBlockNodeStyles, editorContentStyles.firstNodeWidgetFixStyles, editorContentStyles.mentionNodeStyles, isExperimentEnabled('platform_editor_mention_avatar_nowrap') && editorContentStyles.mentionAvatarNoWrapStyles, colorMode === 'dark' && editorContentStyles.agentMentionShimmerDarkMode, editorContentStyles.mentionsSelectionStyles, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? editorContentStyles.scaledEmojiStyles : editorContentStyles.emojiStyles, isFloatingTocEnabled ? editorContentStyles.directEmojiSelectionStyles : editorContentStyles.emojiSelectionStyles, contentMode === 'compact' && isDense && expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.scaledEmojiDenseStyles, contentMode === 'compact' && isDense && !expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.emojiDenseStyles, editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, editorContentStyles.tableLayoutFixesWithFontSize, editorContentStyles.tableContainerStyles, editorContentStyles.tableSharedStyle, isExperimentEnabled('platform_editor_table_css_overflow_shadow') && editorContentStyles.tableScrollInlineShadowStyles, (browser.gecko || browser.ie || browser.mac && browser.chrome) && editorContentStyles.tableSharedStyleBackgroundClipFix, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? editorContentStyles.tableSharedStyle_with_platform_editor_table_q4_loveability : editorContentStyles.tableSharedStyle_without_platform_editor_table_q4_loveability, expValEquals('platform_editor_table_menu_updates', 'isEnabled', true) && editorContentStyles.tableSharedStyle_with_platform_editor_table_menu_updates, fg('platform_editor_bordered_panel_nested_in_table') && editorContentStyles.tableSharedStyle_with_platform_editor_bordered_panel_nested_in_table, editorContentStyles.tableEmptyRowStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && editorContentStyles.tableRoundedCornerStyles, editorContentStyles.tableContentModeStyles, editorContentStyles.tableContentModeExtensionContainmentStyles, editorContentStyles.tableContentModeNestedTableStyles, editorContentStyles.tableCellBackgroundColorOverrides, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, editorContentStyles.blockquoteDangerStyles, editorContentStyles.textDangerStyles, editorContentStyles.listDangerStyles, editorContentStyles.dangerDateStyles, editorContentStyles.emojiDangerStyles, editorContentStyles.mentionDangerStyles, editorContentStyles.decisionDangerStyles, editorContentStyles.statusDangerStyles, fg('platform_editor_ai_show_diff_patch_2') && editorContentStyles.atomicInlineChangedBoxShadowStyles, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, className || undefined]),
|
|
468
|
-
ref: ref,
|
|
469
|
-
"data-editor-scroll-container": isScrollable ? 'true' : undefined,
|
|
470
|
-
"data-testid": "editor-content-container"
|
|
471
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
472
|
-
,
|
|
473
|
-
style: style,
|
|
474
|
-
tabIndex: isScrollable ? 0 : undefined,
|
|
475
|
-
role: isScrollable ? 'region' : undefined
|
|
476
|
-
}, children);
|
|
477
|
-
});
|