@atlaskit/editor-core 221.3.1 → 221.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/cjs/ui/Appearance/Comment/Comment-compiled.compiled.css +30 -0
  3. package/dist/cjs/ui/Appearance/Comment/Comment-compiled.js +275 -0
  4. package/dist/cjs/ui/Appearance/Comment/Comment-emotion.js +357 -0
  5. package/dist/cjs/ui/Appearance/Comment/Comment.js +6 -344
  6. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.compiled.css +96 -0
  7. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.js +190 -0
  8. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +413 -0
  9. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +10 -402
  10. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +4 -3
  11. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +4 -2
  12. package/dist/cjs/ui/EditorContentContainer/styles/backgroundColorStyles.js +17 -6
  13. package/dist/cjs/version-wrapper.js +1 -1
  14. package/dist/es2019/ui/Appearance/Comment/Comment-compiled.compiled.css +30 -0
  15. package/dist/es2019/ui/Appearance/Comment/Comment-compiled.js +262 -0
  16. package/dist/es2019/ui/Appearance/Comment/Comment-emotion.js +344 -0
  17. package/dist/es2019/ui/Appearance/Comment/Comment.js +4 -337
  18. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.compiled.css +96 -0
  19. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.js +179 -0
  20. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +405 -0
  21. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +8 -400
  22. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +4 -3
  23. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +5 -3
  24. package/dist/es2019/ui/EditorContentContainer/styles/backgroundColorStyles.js +16 -5
  25. package/dist/es2019/version-wrapper.js +1 -1
  26. package/dist/esm/ui/Appearance/Comment/Comment-compiled.compiled.css +30 -0
  27. package/dist/esm/ui/Appearance/Comment/Comment-compiled.js +268 -0
  28. package/dist/esm/ui/Appearance/Comment/Comment-emotion.js +346 -0
  29. package/dist/esm/ui/Appearance/Comment/Comment.js +6 -339
  30. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.compiled.css +96 -0
  31. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.js +183 -0
  32. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +403 -0
  33. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +10 -398
  34. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +4 -3
  35. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +5 -3
  36. package/dist/esm/ui/EditorContentContainer/styles/backgroundColorStyles.js +16 -5
  37. package/dist/esm/version-wrapper.js +1 -1
  38. package/dist/types/ui/Appearance/Comment/Comment-compiled.d.ts +30 -0
  39. package/dist/types/ui/Appearance/Comment/Comment-emotion.d.ts +20 -0
  40. package/dist/types/ui/Appearance/Comment/Comment.d.ts +2 -20
  41. package/dist/types/ui/Appearance/FullPage/FullPageContentArea-compiled.d.ts +56 -0
  42. package/dist/types/ui/Appearance/FullPage/FullPageContentArea-emotion.d.ts +56 -0
  43. package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +6 -54
  44. package/dist/types/ui/EditorContentContainer/styles/backgroundColorStyles.d.ts +7 -0
  45. package/package.json +4 -4
@@ -1,403 +1,15 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
-
7
- import React, { useImperativeHandle, useRef } from 'react';
8
-
9
- /* eslint-disable @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
10
- import { css, jsx, useTheme } from '@emotion/react';
11
- import classnames from 'classnames';
12
- import { injectIntl } from 'react-intl';
13
- import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
14
- import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
15
- import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
16
- import { akEditorFullPageNarrowBreakout, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
17
- import { fg } from '@atlaskit/platform-feature-flags';
1
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
18
2
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
19
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
20
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
21
- // Ignored via go/ees005
22
- // eslint-disable-next-line import/no-named-as-default
23
- import ClickAreaBlock from '../../Addon/ClickAreaBlock';
24
- import { contentComponentClickWrapper } from '../../Addon/ClickAreaBlock/contentComponentWrapper';
25
- import { ContextPanel } from '../../ContextPanel';
26
- import EditorContentContainer from '../../EditorContentContainer/EditorContentContainer';
27
- import PluginSlot from '../../PluginSlot';
28
- import { contentAreaWrapper, sidebarArea } from './StyledComponents';
29
- var akEditorFullWidthLayoutWidth = 1800;
30
- var akEditorUltraWideLayoutWidth = 4000;
31
- var akEditorSwoopCubicBezier = "cubic-bezier(0.15, 1, 0.3, 1)";
32
- var tableMarginFullWidthMode = 2;
33
- var akLayoutGutterOffset = 12;
34
- var SWOOP_ANIMATION = "0.5s ".concat(akEditorSwoopCubicBezier);
35
- var AK_NESTED_DND_GUTTER_OFFSET = 8;
36
- var getTotalPadding = function getTotalPadding() {
37
- return akEditorGutterPaddingDynamic() * 2;
38
- };
39
- var editorContentAreaProsemirrorStyle = css({
40
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
41
- '& .ProseMirror': _defineProperty(_defineProperty({
42
- flexGrow: 1,
43
- boxSizing: 'border-box',
44
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
45
- '& > *': {
46
- clear: 'both'
47
- }
48
- }, "> p, > ul, > ol:not(".concat(taskListSelector, "):not(").concat(decisionListSelector, "), > h1, > h2, > h3, > h4, > h5, > h6"), {
49
- clear: 'none'
50
- }), '> p:last-child', {
51
- marginBottom: "var(--ds-space-300, 24px)"
52
- })
53
- });
54
-
55
- /*
56
- EDITOR-7249: Scope to the main editor's ProseMirror (direct child) so nested
57
- editors like the footer page-comment composer aren't hidden in Syntax view.
58
- */
59
- var hideEditorContentAreaProsemirrorWithAttributeStyle = css({
60
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
61
- '&[data-markdown-mode-hide-prosemirror="true"] > .ak-editor-content-area > .ProseMirror': {
62
- display: 'none'
63
- }
64
- });
65
- var hideEditorContentAreaScrollGutterWithAttributeStyle = css({
66
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
67
- '&[data-markdown-mode-hide-scroll-gutter="true"] > .ak-editor-content-area > [data-vc="scroll-gutter"]': {
68
- display: 'none'
69
- }
70
- });
71
- var hideEditorScrollGutterStyle = css({
72
- display: 'none'
73
- });
74
- var fullWidthNonChromelessBreakoutBlockTableStyle = css({
75
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-1
76
- '.fabric-editor--full-width-mode:not(:has(#chromeless-editor))': {
77
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
78
- '.fabric-editor-breakout-mark, .extension-container.block, .pm-table-container': {
79
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
80
- width: '100% !important'
81
- },
82
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
83
- '.fabric-editor-breakout-mark': {
84
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
85
- marginLeft: 'unset !important',
86
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
87
- transform: 'none !important'
88
- }
89
- }
90
- });
91
-
92
- // An additional spacing applied at the top of the content area reserving space when the primary toolbar
93
- // is hidden – this avoids layout shift when the toolbar is toggled under the editor controls feature
94
- var contentAreaReservedPrimaryToolbarSpace = css({
95
- // extra 1px to account for the bottom border on the toolbar
96
- marginTop: "calc(".concat("var(--ds-space-500, 40px)", " + 1px)")
97
- });
98
-
99
- // A reduced top spacing applied to the content area to compensate for the reserved space at the top
100
- // of the page when the primary toolbar is hidden under the editor controls feature
101
- var contentAreaReducedHeaderSpace = css({
102
- paddingTop: "var(--ds-space-400, 32px)"
103
- });
104
-
105
- // new styles
106
- var editorContentAreaNew = css({
107
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
108
- lineHeight: '24px',
109
- paddingTop: "var(--ds-space-600, 48px)",
110
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
111
- '.ak-editor-content-area-no-toolbar &': {
112
- // When the toolbar is hidden, we don't want content to jump up
113
- // the extra 1px is to account for the border on the toolbar
114
- paddingTop: "calc(".concat("var(--ds-space-600, 48px)", " + var(--ak-editor-fullpage-toolbar-height) + 1px)")
115
- },
116
- paddingBottom: "var(--ds-space-600, 48px)",
117
- height: 'calc( 100% - 105px )',
118
- width: '100%',
119
- margin: 'auto',
120
- flexDirection: 'column',
121
- flexGrow: 1,
122
- maxWidth: 'var(--ak-editor-content-area-max-width)',
123
- transition: "max-width ".concat(SWOOP_ANIMATION)
124
- });
125
- var tableFullPageEditorStylesNew = css({
126
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
127
- '.ProseMirror .pm-table-wrapper > table': {
128
- marginLeft: 0,
129
- /* 1px border width offset added here to prevent unwanted overflow and scolling - ED-16212 */
130
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
131
- marginRight: '-1px',
132
- width: '100%'
133
- }
134
- });
135
- var editorContentAreaContainerNestedDndStyle = css({
136
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
137
- '.fabric-editor--full-width-mode': {
138
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
139
- '[data-layout-section]': {
140
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
141
- maxWidth: "calc(100% + ".concat((akLayoutGutterOffset + AK_NESTED_DND_GUTTER_OFFSET) * 2, "px)")
142
- }
143
- }
144
- });
145
-
146
- /* Prevent horizontal scroll on page in full width mode */
147
- var editorContentAreaContainerStyleExcludeCodeBlockNew = css({
148
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
149
- '.fabric-editor--full-width-mode': {
150
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
151
- '.extension-container, .multiBodiedExtension--container': {
152
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
153
- maxWidth: "calc(100% - ".concat(tableMarginFullWidthMode * 2, "px)")
154
- },
155
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
156
- '.extension-container.inline': {
157
- maxWidth: '100%'
158
- },
159
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
160
- 'td .extension-container.inline': {
161
- maxWidth: 'inherit'
162
- },
163
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
164
- '[data-layout-section]': {
165
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
166
- maxWidth: "calc(100% + ".concat(akLayoutGutterOffset * 2, "px)")
167
- }
168
- }
169
- });
170
-
171
- /* Prevent horizontal scroll on page in full width mode */
172
- var editorContentAreaContainerStyleNew = css({
173
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
174
- '.fabric-editor--full-width-mode': {
175
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
176
- '.code-block, .extension-container, .multiBodiedExtension--container': {
177
- maxWidth: "calc(100% - ".concat(tableMarginFullWidthMode * 2, "px)")
178
- },
179
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
180
- '.extension-container.inline': {
181
- maxWidth: '100%'
182
- },
183
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
184
- 'td .extension-container.inline': {
185
- maxWidth: 'inherit'
186
- },
187
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
188
- '[data-layout-section]': {
189
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
190
- maxWidth: "calc(100% + ".concat(akLayoutGutterOffset * 2, "px)")
191
- }
192
- }
193
- });
194
- var editorContentGutterStyleFG = css({
195
- padding: '0 72px'
196
- });
197
- var editorContentGutterStyles = css({
198
- boxSizing: 'border-box',
199
- padding: '0 52px'
200
- });
201
- var editorContentReducedGutterStyles = css(_defineProperty({}, "@container editor-area (max-width: ".concat(akEditorFullPageNarrowBreakout, "px)"), {
202
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
203
- padding: "0 ".concat(akEditorGutterPaddingReduced, "px")
204
- }));
205
- var contentAreaNew = css({
206
- display: 'flex',
207
- flexDirection: 'row',
208
- height: "calc(100% - var(--ak-editor-fullpage-toolbar-height))",
209
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
210
- '&.ak-editor-content-area-no-toolbar': {
211
- // The editor toolbar height is 1px off (from the border) -- so we need to add 1px to the height
212
- // to match the toolbar height
213
- height: "calc(100% + 1px)"
214
- },
215
- boxSizing: 'border-box',
216
- margin: 0,
217
- padding: 0,
218
- transition: "padding 0ms ".concat(akEditorSwoopCubicBezier)
219
- });
220
- var contentAreaHeightNoToolbar = css({
221
- height: '100%'
222
- });
223
-
224
- // When the markdown source view is shown (markdown mode toggled on and not in
225
- // the WYSIWYG "preview" view) we tint the whole editor container with the
226
- // sunken surface so the source editor reads as a distinct, inset surface.
227
- var markdownModeContainerBackgroundStyle = css({
228
- backgroundColor: "var(--ds-surface-sunken, #F8F8F8)"
229
- });
230
- var markdownModeContentAreaStyle = css({
231
- boxSizing: 'border-box',
232
- height: '100%',
233
- margin: 0,
234
- maxWidth: 'none',
235
- minWidth: 0,
236
- paddingBottom: 0,
237
- paddingTop: 0,
238
- width: '100%',
239
- // The markdown source view is rendered through PluginSlot. Stretch those
240
- // intermediate wrappers so its in-flow footer can sit at the bottom without
241
- // overlaying the CodeMirror scrollbar.
242
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
243
- '> .ak-editor-content-area': {
244
- boxSizing: 'border-box',
245
- display: 'flex',
246
- flexDirection: 'column',
247
- height: '100%',
248
- minHeight: 0,
249
- minWidth: 0,
250
- padding: 0,
251
- width: '100%'
252
- },
253
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
254
- '> .ak-editor-content-area > [data-testid="plugins-components-wrapper"]': {
255
- display: 'flex',
256
- flex: '1 1 auto',
257
- minHeight: 0,
258
- minWidth: 0,
259
- width: '100%'
260
- }
261
- });
3
+ import { FullPageContentAreaCompiled } from './FullPageContentArea-compiled';
4
+ import { FullPageContentAreaEmotion } from './FullPageContentArea-emotion';
262
5
  export var CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
263
6
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
264
7
  export var EDITOR_CONTAINER = 'ak-editor-container';
265
- var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
266
- var _props$editorAPI, _props$editorAPI$bloc, _props$editorAPI2, _contentAreaRef$curre, _allowScrollGutter$gu, _allowScrollGutter$gu2;
267
- var theme = useTheme();
268
- var fullWidthMode = props.appearance === 'full-width';
269
- var maxWidthMode = props.appearance === 'max';
270
- var scrollContainerRef = useRef(null);
271
- var contentAreaRef = useRef(null);
272
- var containerRef = useRef(null);
273
- var allowScrollGutter = (_props$editorAPI = props.editorAPI) === null || _props$editorAPI === void 0 || (_props$editorAPI = _props$editorAPI.base) === null || _props$editorAPI === void 0 || (_props$editorAPI = _props$editorAPI.sharedState.currentState()) === null || _props$editorAPI === void 0 ? void 0 : _props$editorAPI.allowScrollGutter;
274
- var contentAreaMaxWidth = getTotalPadding() + (!fullWidthMode ? maxWidthMode ? akEditorUltraWideLayoutWidth : expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true) || expValEquals('platform_editor_core_static_css', 'isEnabled', true) ? akEditorDefaultLayoutWidth : theme.layoutMaxWidth : akEditorFullWidthLayoutWidth);
275
-
276
- // Get useStandardNodeWidth from block menu plugin shared state
277
- // Only access editorAPI when the experiment is enabled to avoid performance impact
278
- var useStandardNodeWidth = editorExperiment('platform_editor_controls', 'variant1') && ((_props$editorAPI$bloc = (_props$editorAPI2 = props.editorAPI) === null || _props$editorAPI2 === void 0 || (_props$editorAPI2 = _props$editorAPI2.blockMenu) === null || _props$editorAPI2 === void 0 || (_props$editorAPI2 = _props$editorAPI2.sharedState) === null || _props$editorAPI2 === void 0 || (_props$editorAPI2 = _props$editorAPI2.currentState()) === null || _props$editorAPI2 === void 0 ? void 0 : _props$editorAPI2.useStandardNodeWidth) !== null && _props$editorAPI$bloc !== void 0 ? _props$editorAPI$bloc : false);
279
- useImperativeHandle(ref, function () {
280
- return {
281
- get scrollContainer() {
282
- return scrollContainerRef.current;
283
- },
284
- get contentArea() {
285
- return contentAreaRef.current;
286
- },
287
- get containerArea() {
288
- return containerRef.current;
289
- }
290
- };
291
- }, []);
292
- var markdownPluginCurrentView = useSharedPluginStateWithSelector(props.editorAPI, ['markdownMode'], function (states) {
293
- var _states$markdownModeS;
294
- return (_states$markdownModeS = states.markdownModeState) === null || _states$markdownModeS === void 0 ? void 0 : _states$markdownModeS.view;
295
- });
296
- var markdownPluginCurrentIsMarkdownMode = useSharedPluginStateWithSelector(props.editorAPI, ['markdownMode'], function (states) {
297
- var _states$markdownModeS2;
298
- return (_states$markdownModeS2 = states.markdownModeState) === null || _states$markdownModeS2 === void 0 ? void 0 : _states$markdownModeS2.isMarkdownMode;
299
- });
300
- var isMarkdownModeExperimentEnabled = expValEqualsNoExposure('cc-markdown-mode', 'isEnabled', true);
301
- var shouldHideProseMirrorForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentView !== 'preview' && markdownPluginCurrentIsMarkdownMode;
302
- var shouldHideScrollGutterForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentIsMarkdownMode;
303
- var shouldUseMarkdownModeMvpLayout = shouldHideProseMirrorForMarkdownMode && fg('platform_editor_md_mvp_layout');
304
- return jsx("div", {
305
- css: [contentAreaNew, props.isEditorToolbarHidden && contentAreaHeightNoToolbar],
306
- "data-testid": CONTENT_AREA_TEST_ID,
307
- ref: containerRef
308
- }, jsx("div", {
309
- css: [
310
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
311
- contentAreaWrapper, shouldUseMarkdownModeMvpLayout && markdownModeContainerBackgroundStyle],
312
- "data-testid": EDITOR_CONTAINER,
313
- "data-editor-container": 'true'
314
- }, jsx(EditorContentContainer
315
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
316
- , {
317
- className: "fabric-editor-popup-scroll-parent",
318
- featureFlags: props.featureFlags,
319
- ref: scrollContainerRef,
320
- viewMode: props === null || props === void 0 ? void 0 : props.viewMode,
321
- isScrollable: true,
322
- appearance: props.appearance,
323
- contentMode: props.contentMode,
324
- useStandardNodeWidth: useStandardNodeWidth
325
- }, jsx(ClickAreaBlock, {
326
- editorView: props.editorView,
327
- editorDisabled: props.disabled
328
- }, jsx("div", {
329
- "data-markdown-mode-hide-prosemirror": shouldHideProseMirrorForMarkdownMode ? 'true' : undefined,
330
- "data-markdown-mode-hide-scroll-gutter": shouldHideScrollGutterForMarkdownMode ? 'true' : undefined,
331
- css: [editorContentAreaNew, editorContentAreaProsemirrorStyle,
332
- // EDITOR-6558: hide ProseMirror when the markdown-mode plugin
333
- // reports a non-WYSIWYG view.
334
- shouldHideProseMirrorForMarkdownMode && hideEditorContentAreaProsemirrorWithAttributeStyle, shouldHideScrollGutterForMarkdownMode && hideEditorContentAreaScrollGutterWithAttributeStyle, shouldUseMarkdownModeMvpLayout && markdownModeContentAreaStyle, tableFullPageEditorStylesNew, fullWidthNonChromelessBreakoutBlockTableStyle,
335
- // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
336
- expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) ? editorContentAreaContainerStyleExcludeCodeBlockNew : editorContentAreaContainerStyleNew, fg('platform_editor_nested_dnd_styles_changes') && editorContentAreaContainerNestedDndStyle, !fg('platform_editor_controls_no_toolbar_space') && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReducedHeaderSpace, !fg('platform_editor_controls_no_toolbar_space') && props.isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReservedPrimaryToolbarSpace],
337
- style: {
338
- '--ak-editor-content-area-max-width': "".concat(contentAreaMaxWidth, "px")
339
- }
340
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
341
- ,
342
- className: "ak-editor-content-area-region",
343
- "data-editor-editable-content": true,
344
- role: "region",
345
- "aria-label": props.intl.formatMessage(messages.editableContentLabel),
346
- ref: contentAreaRef,
347
- "data-vc": "editor-content-area-region"
348
- }, jsx("div", {
349
- css: [editorContentGutterStyles,
350
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
351
- fg('platform_editor_controls_increase_full_page_gutter') && editorExperiment('platform_editor_controls', 'variant1') && editorContentGutterStyleFG, editorExperiment('platform_editor_preview_panel_responsiveness', true, {
352
- exposure: true
353
- }) && editorContentReducedGutterStyles]
354
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
355
- ,
356
- className: classnames('ak-editor-content-area', 'appearance-full-page', {
357
- 'fabric-editor--full-width-mode': fullWidthMode,
358
- 'fabric-editor--max-width-mode': Boolean(maxWidthMode)
359
- }),
360
- ref: contentAreaRef
361
- }, !!props.customContentComponents && 'before' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.before) : contentComponentClickWrapper(props.customContentComponents), jsx(PluginSlot, {
362
- editorView: props.editorView,
363
- editorActions: props.editorActions,
364
- eventDispatcher: props.eventDispatcher,
365
- providerFactory: props.providerFactory,
366
- appearance: props.appearance,
367
- items: props.contentComponents,
368
- pluginHooks: props.pluginHooks,
369
- contentArea: (_contentAreaRef$curre = contentAreaRef.current) !== null && _contentAreaRef$curre !== void 0 ? _contentAreaRef$curre : undefined,
370
- popupsMountPoint: props.popupsMountPoint,
371
- popupsBoundariesElement: props.popupsBoundariesElement,
372
- popupsScrollableElement: props.popupsScrollableElement,
373
- disabled: !!props.disabled,
374
- containerElement: scrollContainerRef.current,
375
- dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
376
- wrapperElement: props.wrapperElement
377
- }), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null, allowScrollGutter && (editorExperiment('platform_editor_blocks', true) ? jsx("div", {
378
- id: "editor-scroll-gutter",
379
- css: shouldHideScrollGutterForMarkdownMode && hideEditorScrollGutterStyle,
380
- style: {
381
- paddingBottom: "".concat((_allowScrollGutter$gu = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu !== void 0 ? _allowScrollGutter$gu : '120', "px")
382
- },
383
- "data-vc": "scroll-gutter",
384
- "data-editor-scroll-gutter": "true"
385
- }) : jsx("div", {
386
- id: "editor-scroll-gutter",
387
- css: shouldHideScrollGutterForMarkdownMode && hideEditorScrollGutterStyle,
388
- style: {
389
- paddingBottom: "".concat((_allowScrollGutter$gu2 = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu2 !== void 0 ? _allowScrollGutter$gu2 : '120', "px")
390
- },
391
- "data-vc": "scroll-gutter"
392
- }))))))), jsx("div", {
393
- css: sidebarArea
394
- }, props.contextPanel || jsx(ContextPanel, {
395
- editorAPI: props.editorAPI,
396
- visible: false
397
- })));
398
- });
399
8
 
400
- // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
401
- export var FullPageContentArea = injectIntl(Content, {
402
- forwardRef: true
403
- });
9
+ /**
10
+ * Compiled migration WIP under platform_editor_core_non_ecc_static_css
11
+ * Please ensure both styles are updated
12
+ */
13
+ export var FullPageContentArea = componentWithCondition(function () {
14
+ return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
15
+ }, FullPageContentAreaCompiled, FullPageContentAreaEmotion);
@@ -146,7 +146,8 @@ var editorContentStyles = {
146
146
  aiPanelDarkStyles: "_1q1sa6bd _bi6aa6bd",
147
147
  alignMultipleWrappedImageInLayoutStyles: "_ali2idpf _14i5idpf _pru0idpf",
148
148
  annotationStyles: "_1x2nt94y _1xqtt94y _1s25t94y _17qpt94y _1ubhidpf _172zidpf _9neqidpf _jydlidpf _1k26yh40 _1613yh40 _wmhayh40 _1qihyh40 _w0epidpf _ghwiidpf _6f0lidpf _1f3widpf _x81614y2 _9onx14y2 _1hbb14y2 _1p9g14y2 _1pjt14y2 _1t8514y2 _1fqx14y2 _1jyp14y2 _1m2zidpf _jd6pidpf _1nl9idpf _1vgtidpf _1edaidpf _du1kidpf _1g35idpf _17clidpf _92g41l7b _1wys1l7b _1xgk1l7b _7kmy1l7b _1xm91l7b _1owy1l7b _iqym1l7b _1dyh1l7b _1c0fidpf _o1p8idpf _3nq8idpf _q353idpf _km2cidpf _1xktidpf _1t0tidpf _1cr2idpf _iwzr1vrj _u5bs1vrj _1ibg1vrj _xkuf1vrj _66yetlke _19vztlke _dnsrtlke _drnbtlke _10h6v77o _1v9ev77o _ah88v77o _8grqv77o _x53a1o1l _1d6qfeiv _ojmct7xp _kn991o1l _o5elfeiv _o7dvt7xp _19vz1wug _1n0xibhp _1xmbfeiv _l0rkaetg _1c20feiv _168dt7xp",
149
- backgroundColorStyles: "_1l4zlb4i _11q31i5q _19n6t94y _b3ovyh40 _1150qvcn _642in7od _1vp0n7od",
149
+ backgroundColorStyles: "_1l4zlb4i _11q31i5q _19n6t94y _b3ovyh40 _1150qvcn _1vp0n7od",
150
+ highlightLinksUnsetStyles: "_642in7od",
150
151
  baseStyles: "_t7ab1vi7 _anrdukw8 _n6a11fwx _uw641q08 _fo6014dc _1gvnmqba _j03f1qop _qmjbxjz2 _zy25uj17 _pg931osq _121i1r31 _dcmgglyw _nv9v1o36 _19rk1uph _u8en3mia _3iqe18il _988v1osq _pi27grho _10zo1osq _1j8i1xb4",
151
152
  baseStylesMaxContainerWidthFixes: "_19rk1l99",
152
153
  blockMarksStyles: "_1244idpf _1qkxidpf _1e6iidpf _dvqjidpf _etngidpf _1jl2idpf _1je9idpf _1db9idpf _15i0idpf _16d4idpf _17liidpf _pxvridpf _1v4iidpf _s8m8idpf _16fuidpf _1543idpf _4offidpf _ttnbidpf _ujemidpf _1171idpf _mzasidpf _r8oxidpf _1pycidpf _6shmidpf _1bd0idpf _54e7idpf _1tenidpf _jzq1idpf _czpfidpf _1oraidpf _1kg4idpf _ksblidpf _1af7idpf _72x4idpf _zlwmidpf _7m6lidpf _1x2sidpf _3q5uidpf _11ukidpf _n65sidpf _1nn0idpf _1hwxidpf _j2goidpf _rfl4idpf _qhe2idpf _h4bbidpf _rjmvidpf _183yidpf _fk2nidpf _3429idpf _j543idpf _1op6idpf _mcklidpf _1uf8idpf _110lidpf _17agidpf _d9tridpf _f5slidpf _b9adidpf _1859idpf _1hrzidpf _1du2idpf _gdx6idpf _1av3idpf _1uj7idpf _s6y9idpf _ocz2idpf _129midpf _kj6kidpf _1uv9idpf _1tieidpf _ri4ridpf _tw0uidpf _15epidpf _12uhidpf _12i1idpf _vm1cidpf _jj6didpf _3d3tidpf _1xdsidpf",
@@ -384,7 +385,7 @@ export var EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef(functi
384
385
  exposure: true
385
386
  }) && editorContentStyles.listSelectedNodeStyles, editorExperiment('platform_editor_block_menu', true, {
386
387
  exposure: true
387
- }) && editorContentStyles.textSelectedNodeStyles, fg('platform_editor_typography_ugc') ? editorContentStyles.blocktypeStyles_fg_platform_editor_typography_ugc : editorContentStyles.blocktypeStyles_without_fg_platform_editor_typography_ugc, fg('platform_editor_nested_dnd_styles_changes') && editorContentStyles.blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes, editorContentStyles.codeMarkStyles, expValEquals('platform_editor_a11y_scrollable_region', 'isEnabled', true) && editorContentStyles.codeMarkStylesA11yFix, editorContentStyles.textColorStyles, editorContentStyles.backgroundColorStyles, editorContentStyles.textHighlightPaddingStyles, editorContentStyles.listsStyles, expValEqualsNoExposure('platform_editor_flexible_list_schema', 'isEnabled', true) && editorContentStyles.listItemHiddenMarkerStyles, editorContentStyles.diffListStyles, contentMode === 'compact' && (expValEquals('confluence_compact_text_format', 'isEnabled', true) ||
388
+ }) && editorContentStyles.textSelectedNodeStyles, fg('platform_editor_typography_ugc') ? editorContentStyles.blocktypeStyles_fg_platform_editor_typography_ugc : editorContentStyles.blocktypeStyles_without_fg_platform_editor_typography_ugc, fg('platform_editor_nested_dnd_styles_changes') && editorContentStyles.blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes, editorContentStyles.codeMarkStyles, expValEquals('platform_editor_a11y_scrollable_region', 'isEnabled', true) && editorContentStyles.codeMarkStylesA11yFix, editorContentStyles.textColorStyles, editorContentStyles.backgroundColorStyles, !expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && editorContentStyles.highlightLinksUnsetStyles, editorContentStyles.textHighlightPaddingStyles, editorContentStyles.listsStyles, expValEqualsNoExposure('platform_editor_flexible_list_schema', 'isEnabled', true) && editorContentStyles.listItemHiddenMarkerStyles, editorContentStyles.diffListStyles, contentMode === 'compact' && (expValEquals('confluence_compact_text_format', 'isEnabled', true) ||
388
389
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
389
390
  expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) && isDense && editorContentStyles.listsDenseStyles, isFullPage && editorContentStyles.listsStylesMarginLayoutShiftFix, editorContentStyles.ruleStyles, editorContentStyles.smartCardDiffStyles, expValEquals('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? editorContentStyles.showDiffDeletedNodeStylesNew : editorContentStyles.showDiffDeletedNodeStyles, editorContentStyles.mediaStyles, contentMode === 'compact' && (expValEquals('confluence_compact_text_format', 'isEnabled', true) ||
390
391
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
@@ -399,7 +400,7 @@ export var EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef(functi
399
400
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
400
401
  expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) ? editorContentStyles.paragraphStylesWithScaledMargin : editorContentStyles.paragraphStylesUGCRefreshed : contentMode === 'compact' && (expValEquals('confluence_compact_text_format', 'isEnabled', true) ||
401
402
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
402
- expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) ? editorContentStyles.paragraphStylesOldWithScaledMargin : editorContentStyles.paragraphStylesOld, editorContentStyles.linkStyles, browser.safari && editorContentStyles.listsStylesSafariFix, editorExperiment('platform_synced_block', true) && editorContentStyles.pragmaticResizerStylesSyncedBlock, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStyles, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorExperiment('platform_synced_block', true) && editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && !editorExperiment('platform_synced_block', true) && editorContentStyles.pragmaticResizerStylesCodeBlockLegacy, editorExperiment('advanced_layouts', true) && expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesForTooltip, editorExperiment('platform_editor_preview_panel_responsiveness', true) && (editorExperiment('advanced_layouts', true) || expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', 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, isFullPage && editorContentStyles.fullPageEditorStyles, isFullPage && editorContentStyles.scrollbarStyles, fg('platform_editor_nested_dnd_styles_changes') ? editorContentStyles.firstCodeBlockWithNoMargin : editorContentStyles.firstCodeBlockWithNoMarginOld, editorContentStyles.firstBlockNodeStyles, editorContentStyles.mentionNodeStyles, expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? editorContentStyles.mentionsSelectionStylesWithSearchMatch : editorContentStyles.mentionsSelectionStyles, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? editorContentStyles.scaledEmojiStyles : editorContentStyles.emojiStyles, contentMode === 'compact' && isDense && (expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) && expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.scaledEmojiDenseStyles, contentMode === 'compact' && isDense && (expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) && !expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.emojiDenseStyles, editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, expValEquals('platform_editor_small_font_size', 'isEnabled', true) ? editorContentStyles.tableLayoutFixesWithFontSize : editorContentStyles.tableLayoutFixes, editorContentStyles.tableContainerStyles, editorContentStyles.tableSharedStyle, (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_fit_to_content_auto_convert', 'isEnabled', true) && editorContentStyles.tableContentModeStyles, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.blockquoteDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.textDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.listDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.dangerDateStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.emojiDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.mentionDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.decisionDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.statusDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.dangerRuleStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.mediaDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.nestedPanelDangerStyles, className]),
403
+ expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) ? editorContentStyles.paragraphStylesOldWithScaledMargin : editorContentStyles.paragraphStylesOld, editorContentStyles.linkStyles, browser.safari && editorContentStyles.listsStylesSafariFix, editorExperiment('platform_synced_block', true) && editorContentStyles.pragmaticResizerStylesSyncedBlock, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStyles, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorExperiment('platform_synced_block', true) && editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && !editorExperiment('platform_synced_block', true) && editorContentStyles.pragmaticResizerStylesCodeBlockLegacy, editorExperiment('advanced_layouts', true) && expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesForTooltip, editorExperiment('platform_editor_preview_panel_responsiveness', true) && (editorExperiment('advanced_layouts', true) || expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', 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, isFullPage && editorContentStyles.fullPageEditorStyles, isFullPage && editorContentStyles.scrollbarStyles, fg('platform_editor_nested_dnd_styles_changes') ? editorContentStyles.firstCodeBlockWithNoMargin : editorContentStyles.firstCodeBlockWithNoMarginOld, editorContentStyles.firstBlockNodeStyles, editorContentStyles.mentionNodeStyles, expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? editorContentStyles.mentionsSelectionStylesWithSearchMatch : editorContentStyles.mentionsSelectionStyles, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? editorContentStyles.scaledEmojiStyles : editorContentStyles.emojiStyles, contentMode === 'compact' && isDense && (expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) && expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.scaledEmojiDenseStyles, contentMode === 'compact' && isDense && (expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) && !expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.emojiDenseStyles, editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, expValEquals('platform_editor_small_font_size', 'isEnabled', true) ? editorContentStyles.tableLayoutFixesWithFontSize : editorContentStyles.tableLayoutFixes, editorContentStyles.tableContainerStyles, editorContentStyles.tableSharedStyle, (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_fit_to_content_auto_convert', 'isEnabled', true) && editorContentStyles.tableContentModeStyles, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.blockquoteDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.textDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.listDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.dangerDateStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.emojiDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.mentionDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.decisionDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.statusDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.dangerRuleStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.mediaDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.nestedPanelDangerStyles, className || undefined]),
403
404
  ref: ref,
404
405
  "data-editor-scroll-container": isScrollable ? 'true' : undefined,
405
406
  "data-testid": "editor-content-container"
@@ -21,7 +21,7 @@ import { useThemeObserver } from '@atlaskit/tokens';
21
21
  import { getBaseFontSize } from '../../composable-editor/utils/getBaseFontSize';
22
22
  import { aiPanelBaseFirefoxStyles, aiPanelBaseStyles, aiPanelDarkFirefoxStyles, aiPanelDarkStyles } from './styles/aiPanel';
23
23
  import { annotationStyles } from './styles/annotationStyles';
24
- import { backgroundColorStyles, textHighlightPaddingStyles } from './styles/backgroundColorStyles';
24
+ import { backgroundColorStyles, highlightLinksUnsetStyles, textHighlightPaddingStyles } from './styles/backgroundColorStyles';
25
25
  import { baseStyles, baseStylesMaxContainerWidthFixes, editorLargeGutterPuddingBaseStyles, editorLargeGutterPuddingBaseStylesEditorControls, editorLargeGutterPuddingReducedBaseStyles, maxModeReizeFixStyles } from './styles/baseStyles';
26
26
  import { blockMarksStyles } from './styles/blockMarksStyles';
27
27
  import { blockquoteDangerStyles, blockquoteSelectedNodeStyles, blocktypeStyles, blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes, blocktypeStyles_fg_platform_editor_typography_ugc, blocktypeStyles_without_fg_platform_editor_typography_ugc, listDangerStyles, listSelectedNodeStyles, textDangerStyles, textSelectedNodeStyles } from './styles/blockTypeStyles';
@@ -140,7 +140,7 @@ export var EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef(functio
140
140
  var browser = getBrowserInfo();
141
141
  return jsx("div", {
142
142
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
143
- className: className,
143
+ className: className || undefined,
144
144
  ref: ref,
145
145
  css: [
146
146
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -229,7 +229,9 @@ export var EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef(functio
229
229
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
230
230
  textColorStyles,
231
231
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
232
- backgroundColorStyles,
232
+ backgroundColorStyles, !expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) &&
233
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
234
+ highlightLinksUnsetStyles,
233
235
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
234
236
  textHighlightPaddingStyles,
235
237
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -39,14 +39,25 @@ export var backgroundColorStyles = css({
39
39
  paddingBottom: 2,
40
40
  boxDecorationBreak: 'clone'
41
41
  },
42
- // Don't show text highlight styling when there is a hyperlink
43
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
44
- 'a .fabric-background-color-mark': {
45
- backgroundColor: 'unset'
46
- },
47
42
  // Don't show text highlight styling when there is an inline comment
48
43
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
49
44
  '.fabric-background-color-mark .ak-editor-annotation': {
50
45
  backgroundColor: 'unset'
51
46
  }
47
+ });
48
+
49
+ /**
50
+ * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
51
+ * If you need to make changes here, also update the corresponding style in
52
+ * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
53
+ * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
54
+ */
55
+ // Don't show text highlight styling when there is a hyperlink.
56
+ // Conditionally applied when the highlight-on-links experiment is off.
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
58
+ export var highlightLinksUnsetStyles = css({
59
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
60
+ 'a .fabric-background-color-mark': {
61
+ backgroundColor: 'unset'
62
+ }
52
63
  });
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "221.3.0";
3
+ export var version = "221.3.1";
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
+ * Used via `componentWithCondition` in `Comment.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ import type { OptionalPlugin } from '@atlaskit/editor-common/types';
13
+ import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu';
14
+ import type { MaxContentSizePlugin } from '@atlaskit/editor-plugins/max-content-size';
15
+ import type { MediaPlugin } from '@atlaskit/editor-plugins/media';
16
+ import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugins/primary-toolbar';
17
+ import type { ToolbarPlugin } from '@atlaskit/editor-plugins/toolbar';
18
+ import type { EditorAppearanceComponentProps } from '../../../types/editor-appearance-component';
19
+ type ComponentProps = EditorAppearanceComponentProps<[
20
+ OptionalPlugin<MediaPlugin>,
21
+ OptionalPlugin<MaxContentSizePlugin>,
22
+ OptionalPlugin<PrimaryToolbarPlugin>,
23
+ OptionalPlugin<ToolbarPlugin>,
24
+ OptionalPlugin<BlockMenuPlugin>
25
+ ]>;
26
+ export declare const CommentEditorWithIntlCompiled: {
27
+ (props: ComponentProps): React.JSX.Element;
28
+ displayName: string;
29
+ };
30
+ export {};
@@ -0,0 +1,20 @@
1
+ import { jsx } from '@emotion/react';
2
+ import type { OptionalPlugin } from '@atlaskit/editor-common/types';
3
+ import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu';
4
+ import type { MaxContentSizePlugin } from '@atlaskit/editor-plugins/max-content-size';
5
+ import type { MediaPlugin } from '@atlaskit/editor-plugins/media';
6
+ import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugins/primary-toolbar';
7
+ import type { ToolbarPlugin } from '@atlaskit/editor-plugins/toolbar';
8
+ import type { EditorAppearanceComponentProps } from '../../../types/editor-appearance-component';
9
+ type ComponentProps = EditorAppearanceComponentProps<[
10
+ OptionalPlugin<MediaPlugin>,
11
+ OptionalPlugin<MaxContentSizePlugin>,
12
+ OptionalPlugin<PrimaryToolbarPlugin>,
13
+ OptionalPlugin<ToolbarPlugin>,
14
+ OptionalPlugin<BlockMenuPlugin>
15
+ ]>;
16
+ export declare const CommentEditorWithIntlEmotion: {
17
+ (props: ComponentProps): jsx.JSX.Element;
18
+ displayName: string;
19
+ };
20
+ export {};
@@ -1,20 +1,2 @@
1
- import { jsx } from '@emotion/react';
2
- import type { OptionalPlugin } from '@atlaskit/editor-common/types';
3
- import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu';
4
- import type { MaxContentSizePlugin } from '@atlaskit/editor-plugins/max-content-size';
5
- import type { MediaPlugin } from '@atlaskit/editor-plugins/media';
6
- import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugins/primary-toolbar';
7
- import type { ToolbarPlugin } from '@atlaskit/editor-plugins/toolbar';
8
- import type { EditorAppearanceComponentProps } from '../../../types/editor-appearance-component';
9
- type ComponentProps = EditorAppearanceComponentProps<[
10
- OptionalPlugin<MediaPlugin>,
11
- OptionalPlugin<MaxContentSizePlugin>,
12
- OptionalPlugin<PrimaryToolbarPlugin>,
13
- OptionalPlugin<ToolbarPlugin>,
14
- OptionalPlugin<BlockMenuPlugin>
15
- ]>;
16
- export declare const CommentEditorWithIntl: {
17
- (props: ComponentProps): jsx.JSX.Element;
18
- displayName: string;
19
- };
20
- export {};
1
+ import { CommentEditorWithIntlCompiled } from './Comment-compiled';
2
+ export declare const CommentEditorWithIntl: typeof CommentEditorWithIntlCompiled;