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