@atlaskit/renderer 113.2.0 → 113.2.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.
@@ -0,0 +1,1362 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ var _css, _css3;
3
+ /* eslint-disable @atlaskit/ui-styling-standard/no-important-styles */
4
+ /* eslint-disable @atlaskit/ui-styling-standard/no-imported-style-values */
5
+ /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values */
6
+ /**
7
+ * @jsxRuntime classic
8
+ * @jsx jsx
9
+ */
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
11
+ import { css, jsx } from '@emotion/react';
12
+ import { B300, B400, B500, N20, N200, N30A, N40A, N60A, N800, R50, R500, Y300, Y75 } from '@atlaskit/theme/colors';
13
+ import { getGlobalTheme } from '@atlaskit/tokens';
14
+ import { FullPagePadding, rendererStyles } from './style';
15
+ import { fg } from '@atlaskit/platform-feature-flags';
16
+ import { RendererCssClassName } from '../../consts';
17
+ import { akEditorBlockquoteBorderColor, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorLineHeight, akEditorSelectedNodeClassName, akEditorShadowZIndex, akEditorStickyHeaderZIndex, akEditorTableBorder, akEditorTableCellMinWidth, akEditorTableNumberColumnWidth, akEditorTableToolbar, blockNodesVerticalMargin, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
18
+ import { INLINE_IMAGE_WRAPPER_CLASS_NAME } from '@atlaskit/editor-common/media-inline';
19
+ import { HeadingAnchorWrapperClassName } from '../../react/nodes/heading-anchor';
20
+ import { CodeBlockSharedCssClassName, DateSharedCssClassName, listItemCounterPadding, richMediaClassName, SmartCardSharedCssClassName, tableCellBorderWidth, tableCellMinWidth, tableCellPadding, tableMarginTop, TableSharedCssClassName, TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
21
+ import { bulletListSelector, orderedListSelector } from '@atlaskit/adf-schema';
22
+ import { shadowClassNames, shadowObserverClassNames } from '@atlaskit/editor-common/ui';
23
+ import { browser } from '@atlaskit/editor-common/browser';
24
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
25
+ import { isStickyScrollbarEnabled, isTableResizingEnabled } from '../../react/nodes/table';
26
+ import { SORTABLE_COLUMN_ICON_CLASSNAME } from '@atlaskit/editor-common/table';
27
+ import { LightWeightCodeBlockCssClassName } from '../../react/nodes/codeBlock/components/lightWeightCodeBlock';
28
+ import { editorUGCToken } from '@atlaskit/editor-common/ugc-tokens';
29
+ import { getBaseFontSize } from './get-base-font-size';
30
+ var wrappedMediaBreakoutPoint = 410;
31
+ var TELEPOINTER_ID = 'ai-streaming-telepointer';
32
+ var tableShadowWidth = 32;
33
+ var LAYOUT_BREAKPOINT_RENDERER = 629;
34
+ // originally defined from packages/editor/editor-plugin-table/src/ui/common-styles.ts
35
+ // TODO: tableRowHeight can be moved into `@atlaskit/editor-common/table`
36
+ var tableRowHeight = 44;
37
+ var _getGlobalTheme = getGlobalTheme(),
38
+ typography = _getGlobalTheme.typography;
39
+ var isBackgroundClipBrowserFixNeeded = function isBackgroundClipBrowserFixNeeded() {
40
+ return browser.isGecko || browser.isIE || browser.isMac && browser.isChrome;
41
+ };
42
+
43
+ // styles are copied from ./style.tsx
44
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage
45
+ var baseStyles = css((_css = {
46
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
47
+ fontSize: 'var(--ak-renderer-base-font-size)',
48
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
49
+ lineHeight: '1.5rem',
50
+ color: "var(--ds-text, ".concat(N800, ")")
51
+ }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_css, ".".concat(RendererCssClassName.DOCUMENT, "::after"), {
52
+ // we add a clearfix after ak-renderer-document in order to
53
+ // contain internal floats (such as media images that are "wrap-left")
54
+ // to just the renderer (and not spill outside of it)
55
+ content: '""',
56
+ visibility: 'hidden',
57
+ display: 'block',
58
+ height: 0,
59
+ clear: 'both'
60
+ }), ".".concat(RendererCssClassName.DOCUMENT), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(INLINE_IMAGE_WRAPPER_CLASS_NAME), {
61
+ height: '22px',
62
+ transform: "translateY(-2px)"
63
+ }), "h1", _defineProperty({}, "> .mediaInlineView-content-wrap > .".concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > :is(a, span[data-mark-type='border']) .mediaInlineView-content-wrap > .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > :is(a, span[data-mark-type='border']) .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME), {
64
+ height: '36px',
65
+ transform: "translateY(-3px)"
66
+ })), "h2", _defineProperty({}, "> .mediaInlineView-content-wrap > .".concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > :is(a, span[data-mark-type='border']) .mediaInlineView-content-wrap > .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > :is(a, span[data-mark-type='border']) .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME), {
67
+ height: '31px',
68
+ transform: "translateY(-3px)"
69
+ })), "h3", _defineProperty({}, "> .mediaInlineView-content-wrap > .".concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > :is(a, span[data-mark-type='border']) .mediaInlineView-content-wrap > .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > :is(a, span[data-mark-type='border']) .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME), {
70
+ height: '25px',
71
+ transform: "translateY(-2px)"
72
+ })), "h4", _defineProperty({}, "> .mediaInlineView-content-wrap > .".concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > :is(a, span[data-mark-type='border']) .mediaInlineView-content-wrap > .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > :is(a, span[data-mark-type='border']) .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME), {
73
+ height: '23px',
74
+ transform: "translateY(-2px)"
75
+ })), "h5", _defineProperty({}, "> .mediaInlineView-content-wrap > .".concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > :is(a, span[data-mark-type='border']) .mediaInlineView-content-wrap > .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > :is(a, span[data-mark-type='border']) .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME), {
76
+ height: '20px',
77
+ transform: "translateY(-2px)"
78
+ })), "h6", _defineProperty({}, "> .mediaInlineView-content-wrap > .".concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > :is(a, span[data-mark-type='border']) .mediaInlineView-content-wrap > .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > :is(a, span[data-mark-type='border']) .").concat(INLINE_IMAGE_WRAPPER_CLASS_NAME), {
79
+ height: '18px',
80
+ transform: "translateY(-2px)"
81
+ }))), '& h1, & h2, & h3, & h4, & h5, & h6', _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
82
+ position: 'absolute',
83
+ marginLeft: "var(--ds-space-075, 6px)",
84
+ button: {
85
+ paddingLeft: 0,
86
+ paddingRight: 0
87
+ },
88
+ /**
89
+ * Adds the visibility of the button when in focus through keyboard navigation.
90
+ */
91
+ 'button:focus': {
92
+ opacity: 1,
93
+ transform: 'none !important'
94
+ }
95
+ }), "@media (hover: hover) and (pointer: fine)", _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
96
+ '> button': {
97
+ opacity: 0,
98
+ transform: "translate(-8px, 0px)",
99
+ transition: "opacity 0.2s ease 0s, transform 0.2s ease 0s"
100
+ }
101
+ }), '&:hover', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName, " > button"), {
102
+ opacity: 1,
103
+ transform: 'none !important'
104
+ })))), '& h1', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
105
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
106
+ lineHeight: "".concat(28 / 24, "em")
107
+ })), '& h2', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
108
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
109
+ lineHeight: "".concat(24 / 20, "em")
110
+ })), '& h3', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
111
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
112
+ lineHeight: "".concat(20 / 16, "em")
113
+ })), '& h4', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
114
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
115
+ lineHeight: "".concat(16 / 14, "em")
116
+ })), '& h5', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
117
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
118
+ lineHeight: "".concat(16 / 12, "em")
119
+ })), '& h6', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
120
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
121
+ lineHeight: "".concat(16 / 11, "em")
122
+ })), "& span.akActionMark", {
123
+ color: "var(--ds-link, ".concat(B400, ")"),
124
+ textDecoration: 'none',
125
+ cursor: 'pointer',
126
+ '&:hover': {
127
+ color: "var(--ds-link, ".concat(B300, ")"),
128
+ textDecoration: 'underline'
129
+ },
130
+ '&:active': {
131
+ color: "var(--ds-link-pressed, ".concat(B500, ")")
132
+ }
133
+ }), _defineProperty(_css, '& span[data-placeholder]', {
134
+ color: "var(--ds-text-subtlest, ".concat(N200, ")")
135
+ })));
136
+ var rendererFullPageStyles = css({
137
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
138
+ maxWidth: "".concat(akEditorDefaultLayoutWidth, "px"),
139
+ margin: '0 auto',
140
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
141
+ padding: "0 ".concat(FullPagePadding, "px")
142
+ });
143
+ var rendererFullWidthStyles = css({
144
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
145
+ maxWidth: "".concat(akEditorFullWidthLayoutWidth, "px"),
146
+ margin: "0 auto",
147
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
148
+ '.fabric-editor-breakout-mark:not([data-has-width="true"]), .ak-renderer-extension': {
149
+ width: '100% !important'
150
+ }
151
+ });
152
+ var rendererFullWidthStylesForTableResizing = css({
153
+ '.pm-table-container': {
154
+ width: '100% !important'
155
+ }
156
+ });
157
+
158
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
159
+ var telepointerStyles = css(_defineProperty({}, "#".concat(TELEPOINTER_ID), {
160
+ display: 'inline-block',
161
+ position: 'relative',
162
+ width: '1.5px',
163
+ height: '25px',
164
+ backgroundColor: "var(--ds-background-brand-bold, #0C66E4)",
165
+ marginLeft: "var(--ds-space-025, 2px)",
166
+ '&::after': {
167
+ content: '"AI"',
168
+ position: 'absolute',
169
+ display: 'block',
170
+ top: 0,
171
+ left: 0,
172
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
173
+ fontSize: '10px',
174
+ fontWeight: "var(--ds-font-weight-bold, 700)",
175
+ width: '12.5px',
176
+ height: '13px',
177
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
178
+ paddingTop: '1px',
179
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
180
+ paddingLeft: '1.5px',
181
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
182
+ lineHeight: 'initial',
183
+ borderRadius: '0px 2px 2px 0px',
184
+ color: "var(--ds-text-inverse, white)",
185
+ backgroundColor: "var(--ds-background-brand-bold, #0C66E4)"
186
+ }
187
+ }));
188
+ var whitespaceSharedStyles = css({
189
+ wordWrap: 'break-word',
190
+ whiteSpace: 'pre-wrap'
191
+ });
192
+ var blockquoteSharedStyles = css({
193
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
194
+ '& blockquote': {
195
+ boxSizing: 'border-box',
196
+ color: 'inherit',
197
+ width: '100%',
198
+ display: 'inline-block',
199
+ paddingLeft: "var(--ds-space-200, 16px)",
200
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
201
+ borderLeft: "2px solid ".concat("var(--ds-border, ".concat(akEditorBlockquoteBorderColor, ")")),
202
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
203
+ margin: "".concat(blockNodesVerticalMargin, " 0 0 0"),
204
+ marginRight: 0,
205
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
206
+ "[dir='rtl'] &": {
207
+ paddingLeft: 0,
208
+ paddingRight: "var(--ds-space-200, 16px)"
209
+ },
210
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
211
+ '&:first-child': {
212
+ marginTop: 0
213
+ },
214
+ '&::before': {
215
+ content: "''"
216
+ },
217
+ '&::after': {
218
+ content: 'none'
219
+ },
220
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
221
+ '& p': {
222
+ display: 'block'
223
+ },
224
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
225
+ '& table, & table:last-child': {
226
+ display: 'inline-table'
227
+ },
228
+ // Workaround for overriding the inline-block display on last child of a blockquote set in CSS reset.
229
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
230
+ '> .code-block:last-child, >.mediaSingleView-content-wrap:last-child, >.mediaGroupView-content-wrap:last-child': {
231
+ display: 'block'
232
+ },
233
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
234
+ '> .extensionView-content-wrap:last-child': {
235
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
236
+ display: "".concat(editorExperiment('platform_editor_nested_non_bodied_macros', 'test')) ? 'block' : 'inline-block'
237
+ }
238
+ }
239
+ });
240
+ var headingsSharedStyles = css({
241
+ '& h1': {
242
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
243
+ fontSize: "".concat(24 / 14, "em"),
244
+ fontStyle: 'inherit',
245
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
246
+ lineHeight: 28 / 24,
247
+ color: "var(--ds-text, #172B4D)",
248
+ fontWeight: "var(--ds-font-weight-medium, 500)",
249
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
250
+ letterSpacing: "-0.01em",
251
+ marginBottom: 0,
252
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
253
+ marginTop: '1.667em'
254
+ },
255
+ '& h2': {
256
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
257
+ fontSize: "".concat(20 / 14, "em"),
258
+ fontStyle: 'inherit',
259
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
260
+ lineHeight: 24 / 20,
261
+ color: "var(--ds-text, #172B4D)",
262
+ fontWeight: "var(--ds-font-weight-medium, 500)",
263
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
264
+ letterSpacing: "-0.008em",
265
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
266
+ marginTop: '1.8em',
267
+ marginBottom: 0
268
+ },
269
+ '& h3': {
270
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
271
+ fontSize: "".concat(16 / 14, "em"),
272
+ fontStyle: 'inherit',
273
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
274
+ lineHeight: 20 / 16,
275
+ color: "var(--ds-text, #172B4D)",
276
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
277
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
278
+ letterSpacing: "-0.006em",
279
+ marginTop: "var(--ds-space-400, 2em)",
280
+ marginBottom: 0
281
+ },
282
+ '& h4': {
283
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
284
+ fontSize: "".concat(14 / 14, "em"),
285
+ fontStyle: 'inherit',
286
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
287
+ lineHeight: 16 / 14,
288
+ color: "var(--ds-text, #172B4D)",
289
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
290
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
291
+ letterSpacing: "-0.003em",
292
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
293
+ marginTop: '1.357em'
294
+ },
295
+ '& h5': {
296
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
297
+ fontSize: "".concat(12 / 14, "em"),
298
+ fontStyle: 'inherit',
299
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
300
+ lineHeight: 16 / 12,
301
+ color: "var(--ds-text, #172B4D)",
302
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
303
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
304
+ marginTop: '1.667em',
305
+ textTransform: 'none'
306
+ },
307
+ '& h6': {
308
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
309
+ fontSize: "".concat(11 / 14, "em"),
310
+ fontStyle: 'inherit',
311
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
312
+ lineHeight: 16 / 11,
313
+ color: "var(--ds-text-subtlest, #626F86)",
314
+ fontWeight: "var(--ds-font-weight-bold, 700)",
315
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
316
+ marginTop: '1.455em',
317
+ textTransform: 'none'
318
+ }
319
+ });
320
+
321
+ // TODO: emotion refactor - check if we need UGC token?
322
+ var headingsSharedStylesWithEditorUGC = css({
323
+ '& h1': {
324
+ font: editorUGCToken('editor.font.heading.h1', typography),
325
+ marginBottom: 0,
326
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
327
+ marginTop: '1.45833em',
328
+ '& strong': {
329
+ fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold', typography)
330
+ },
331
+ '&::before': {}
332
+ },
333
+ '& h2': {
334
+ font: editorUGCToken('editor.font.heading.h2', typography),
335
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
336
+ marginTop: '1.4em',
337
+ marginBottom: 0,
338
+ '& strong': {
339
+ fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold', typography)
340
+ }
341
+ },
342
+ '& h3': {
343
+ font: editorUGCToken('editor.font.heading.h3', typography),
344
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
345
+ marginTop: '1.31249em',
346
+ marginBottom: 0,
347
+ '& strong': {
348
+ fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold', typography)
349
+ }
350
+ },
351
+ '& h4': {
352
+ font: editorUGCToken('editor.font.heading.h4', typography),
353
+ marginTop: "var(--ds-space-250, 1.25em)",
354
+ '& strong': {
355
+ fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold', typography)
356
+ }
357
+ },
358
+ '& h5': {
359
+ font: editorUGCToken('editor.font.heading.h5', typography),
360
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
361
+ marginTop: '1.45833em',
362
+ textTransform: 'none',
363
+ '& strong': {
364
+ fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold', typography)
365
+ }
366
+ },
367
+ '& h6': {
368
+ font: editorUGCToken('editor.font.heading.h6', typography),
369
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
370
+ marginTop: '1.59091em',
371
+ textTransform: 'none',
372
+ '& strong': {
373
+ fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold', typography)
374
+ }
375
+ }
376
+ });
377
+ var headingWithAlignmentStyles = css({
378
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
379
+ '.fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)': {
380
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
381
+ '> h1:first-child': {
382
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
383
+ marginTop: '1.667em'
384
+ },
385
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
386
+ ' > h2:first-child': {
387
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
388
+ marginTop: '1.8em'
389
+ },
390
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
391
+ '> h3:first-child': {
392
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
393
+ marginTop: '2em'
394
+ },
395
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
396
+ '> h4:first-child': {
397
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
398
+ marginTop: '1.357em'
399
+ },
400
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
401
+ '> h5:first-child': {
402
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
403
+ marginTop: '1.667em'
404
+ },
405
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
406
+ '> h6:first-child': {
407
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
408
+ marginTop: '1.455em'
409
+ }
410
+ },
411
+ // Set marginTop: 0 if alignment block is next to a gap cursor or widget that is first child
412
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
413
+ '.ProseMirror-gapcursor:first-child + .fabric-editor-block-mark.fabric-editor-alignment, .ProseMirror-widget:first-child + .fabric-editor-block-mark.fabric-editor-alignment, .ProseMirror-widget:first-child + .ProseMirror-widget:nth-child(2) + .fabric-editor-block-mark.fabric-editor-alignment': {
414
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
415
+ '> :is(h1, h2, h3, h4, h5, h6):first-child': {
416
+ marginTop: '0'
417
+ }
418
+ }
419
+ });
420
+ var ruleSharedStyles = css({
421
+ '& hr': {
422
+ border: 'none',
423
+ backgroundColor: "var(--ds-border, #091E4224)",
424
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
425
+ margin: "".concat(akEditorLineHeight, "em 0"),
426
+ height: '2px',
427
+ borderRadius: '1px'
428
+ }
429
+ });
430
+ var paragraphSharedStylesWithEditorUGC = css({
431
+ '& p': {
432
+ font: editorUGCToken('editor.font.body', typography),
433
+ marginTop: blockNodesVerticalMargin,
434
+ marginBottom: 0
435
+ }
436
+ });
437
+ var paragraphSharedStyles = css({
438
+ '& p': {
439
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
440
+ fontSize: '1em',
441
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
442
+ lineHeight: akEditorLineHeight,
443
+ fontWeight: "var(--ds-font-weight-regular, 400)",
444
+ marginTop: blockNodesVerticalMargin,
445
+ marginBottom: 0,
446
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
447
+ letterSpacing: '-0.005em'
448
+ }
449
+ });
450
+ var listsSharedStyles = css((_css3 = {
451
+ /* =============== INDENTATION SPACING ========= */
452
+ 'ul, ol': {
453
+ boxSizing: 'border-box',
454
+ paddingLeft: "var(--ed--list--item-counter--padding, ".concat(listItemCounterPadding, "px)")
455
+ }
456
+ }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_css3, "".concat(orderedListSelector, ", ").concat(bulletListSelector), {
457
+ /*
458
+ Ensures list item content adheres to the list's margin instead
459
+ of filling the entire block row. This is important to allow
460
+ clicking interactive elements which are floated next to a list.
461
+ For some history and context on this block, see PRs related to tickets.:
462
+ @see ED-6551 - original issue.
463
+ @see ED-7015 - follow up issue.
464
+ @see ED-7447 - flow-root change.
465
+ used to have display: 'table' in tag template style but not supported in object styles
466
+ removed display: 'table' as 'flow-root' is supported in latest browsers
467
+ @see https://css-tricks.com/display-flow-root/
468
+ */
469
+ display: 'flow-root'
470
+ }), 'ul, ul ul ul ul', {
471
+ listStyleType: 'disc'
472
+ }), 'ul ul, ul ul ul ul ul', {
473
+ listStyleType: 'circle'
474
+ }), 'ul ul ul, ul ul ul ul ul ul', {
475
+ listStyleType: 'square'
476
+ }), 'ol, ol ol ol ol', {
477
+ listStyleType: 'decimal'
478
+ }), 'ol ol, ol ol ol ol ol', {
479
+ listStyleType: 'lower-alpha'
480
+ }), 'ol ol ol, ol ol ol ol ol ol', {
481
+ listStyleType: 'lower-roman'
482
+ }), 'ol[data-indent-level="1"], ol[data-indent-level="4"]', {
483
+ listStyleType: 'decimal'
484
+ }), 'ol[data-indent-level="2"], ol[data-indent-level="5"]', {
485
+ listStyleType: 'lower-alpha'
486
+ }), 'ol[data-indent-level="3"], ol[data-indent-level="6"]', {
487
+ listStyleType: 'lower-roman'
488
+ }), _defineProperty(_defineProperty(_defineProperty(_css3, 'ul[data-indent-level="1"], ul[data-indent-level="4"]', {
489
+ listStyleType: 'disc'
490
+ }), 'ul[data-indent-level="2"], ul[data-indent-level="5"]', {
491
+ listStyleType: 'circle'
492
+ }), 'ul[data-indent-level="3"], ul[data-indent-level="6"]', {
493
+ listStyleType: 'square'
494
+ })));
495
+
496
+ /*
497
+ Firefox does not handle empty block element inside li tag.
498
+ If there is not block element inside li tag,
499
+ then firefox sets inherited height to li
500
+ However, if there is any block element and if it's empty
501
+ (or has empty inline element) then
502
+ firefox sets li tag height to zero.
503
+ More details at
504
+ https://product-fabric.atlassian.net/wiki/spaces/~455502413/pages/3149365890/ED-14110+Investigation
505
+ */
506
+ var listsSharedStylesForGekko = css({
507
+ 'ul, ol': {
508
+ 'li p:empty, li p > span:empty': {
509
+ display: 'inline-block'
510
+ }
511
+ }
512
+ });
513
+ var indentationSharedStyles = css({
514
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
515
+ '.fabric-editor-indentation-mark': {
516
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
517
+ "&[data-level='1']": {
518
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
519
+ marginLeft: '30px'
520
+ },
521
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
522
+ "&[data-level='2']": {
523
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
524
+ marginLeft: '60px'
525
+ },
526
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
527
+ "&[data-level='3']": {
528
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
529
+ marginLeft: '90px'
530
+ },
531
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
532
+ "&[data-level='4']": {
533
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
534
+ marginLeft: '120px'
535
+ },
536
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
537
+ "&[data-level='5']": {
538
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
539
+ marginLeft: '150px'
540
+ },
541
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
542
+ "&[data-level='6']": {
543
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
544
+ marginLeft: '180px'
545
+ }
546
+ }
547
+ });
548
+ var blockMarksSharedStyles = css(_defineProperty({}, "*:not(.fabric-editor-block-mark) >,\n \t*:not(.fabric-editor-block-mark) >\n div.fabric-editor-block-mark:first-of-type\n\t:not(.fabric-editor-indentation-mark)\n\t:not(.fabric-editor-alignment),\n \t.fabric-editor-alignment:first-of-type:first-child,\n \t.ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child", {
549
+ 'p, h1, h2, h3, h4, h5, h6, .heading-wrapper': {
550
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
551
+ ':first-child:not(style), style:first-child + *': {
552
+ marginTop: 0
553
+ }
554
+ }
555
+ }));
556
+ var codeMarkSharedStyles = css({
557
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
558
+ '.code': {
559
+ '--ds--code--bg-color': "var(--ds-background-neutral, #091E420F)",
560
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
561
+ fontSize: '0.875em',
562
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
563
+ fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
564
+ fontWeight: "var(--ds-font-weight-regular, 400)",
565
+ backgroundColor: "var(--ds--code--bg-color,".concat("var(--ds-background-neutral, ".concat(N20, ")"), ")"),
566
+ color: "var(--ds-text, ".concat(N800, ")"),
567
+ borderStyle: 'none',
568
+ borderRadius: "var(--ds-border-radius, 3px)",
569
+ display: 'inline',
570
+ padding: '2px 0.5ch',
571
+ boxDecorationBreak: 'clone',
572
+ overflow: 'auto',
573
+ overflowWrap: 'break-word',
574
+ whiteSpace: 'pre-wrap'
575
+ }
576
+ });
577
+ var shadowSharedStyle = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "& .".concat(shadowClassNames.RIGHT_SHADOW, "::before, .").concat(shadowClassNames.RIGHT_SHADOW, "::after, .").concat(shadowClassNames.LEFT_SHADOW, "::before, .").concat(shadowClassNames.LEFT_SHADOW, "::after"), {
578
+ display: 'none',
579
+ position: 'absolute',
580
+ pointerEvents: 'none',
581
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
582
+ zIndex: akEditorShadowZIndex,
583
+ width: '8px',
584
+ content: "''",
585
+ height: 'calc(100%)'
586
+ }), "& .".concat(shadowClassNames.RIGHT_SHADOW, ", .").concat(shadowClassNames.LEFT_SHADOW), {
587
+ position: 'relative'
588
+ }), "& .".concat(shadowClassNames.LEFT_SHADOW, "::before"), {
589
+ background: "linear-gradient( to left, transparent 0, ".concat("var(--ds-shadow-overflow-spread, #091e4229)", " 140% ), linear-gradient( to right, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px )"),
590
+ top: '0px',
591
+ left: 0,
592
+ display: 'block'
593
+ }), "& .".concat(shadowClassNames.RIGHT_SHADOW, "::after"), {
594
+ background: "linear-gradient( to right, transparent 0, ".concat("var(--ds-shadow-overflow-spread, #091e4229)", " 140% ), linear-gradient( to left, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px )"),
595
+ right: '0px',
596
+ top: '0px',
597
+ display: 'block'
598
+ }), "& .".concat(shadowObserverClassNames.SENTINEL_LEFT), {
599
+ height: '100%',
600
+ width: '0px',
601
+ minWidth: '0px'
602
+ }), "& .".concat(shadowObserverClassNames.SENTINEL_RIGHT), {
603
+ height: '100%',
604
+ width: '0px',
605
+ minWidth: '0px'
606
+ }));
607
+ var dateSharedStyle = css(_defineProperty({}, ".".concat(DateSharedCssClassName.DATE_WRAPPER, " span"), {
608
+ whiteSpace: 'unset'
609
+ }));
610
+ var textColorStyles = css({
611
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
612
+ '.fabric-text-color-mark': {
613
+ color: 'var(--custom-palette-color, inherit)'
614
+ },
615
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
616
+ 'a .fabric-text-color-mark': {
617
+ color: 'unset'
618
+ }
619
+ });
620
+ var backgroundColorStyles = css({
621
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
622
+ '.fabric-background-color-mark': {
623
+ backgroundColor: 'var(--custom-palette-color, inherit)',
624
+ borderRadius: '2px',
625
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
626
+ paddingTop: '1px',
627
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
628
+ paddingBottom: '2px',
629
+ boxDecorationBreak: 'clone'
630
+ },
631
+ // Don't show text highlight styling when there is a hyperlink
632
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
633
+ 'a .fabric-background-color-mark': {
634
+ backgroundColor: 'unset'
635
+ },
636
+ // Don't show text highlight styling when there is an inline comment
637
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
638
+ '.fabric-background-color-mark .ak-editor-annotation': {
639
+ backgroundColor: 'unset'
640
+ }
641
+ });
642
+ var tasksAndDecisionsStyles = css({
643
+ '.ProseMirror': _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".taskItemView-content-wrap,\n\t\t.".concat(TaskDecisionSharedCssClassName.DECISION_CONTAINER), {
644
+ position: 'relative',
645
+ minWidth: "".concat(akEditorTableCellMinWidth, "px")
646
+ }), ".".concat(TaskDecisionSharedCssClassName.DECISION_CONTAINER), {
647
+ marginTop: 0
648
+ }), ".".concat(TaskDecisionSharedCssClassName.TASK_CONTAINER), {
649
+ 'span[contenteditable="false"]': {
650
+ height: "".concat(akEditorLineHeight, "em")
651
+ }
652
+ }), ".".concat(TaskDecisionSharedCssClassName.TASK_ITEM), {
653
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
654
+ lineHeight: akEditorLineHeight
655
+ }),
656
+ 'div[data-task-local-id]': {
657
+ 'span[contenteditable="false"]': {
658
+ height: "".concat(akEditorLineHeight, "em")
659
+ },
660
+ 'span[contenteditable="false"] + div': {
661
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
662
+ lineHeight: "".concat(akEditorLineHeight, "em")
663
+ }
664
+ },
665
+ 'div[data-task-list-local-id]': {
666
+ margin: "var(--ds-space-150, 12px)".concat(" 0 0 0"),
667
+ // If task item is not first in the list then set margin top to 4px.
668
+ 'div + div': {
669
+ marginTop: "var(--ds-space-050, 4px)"
670
+ }
671
+ },
672
+ // If task list is not first in the document then set margin top to 4px.
673
+ 'div[data-task-list-local-id] div[data-task-list-local-id]': {
674
+ marginTop: "var(--ds-space-050, 4px)",
675
+ marginLeft: "var(--ds-space-300, 24px)"
676
+ },
677
+ /* When action list is inside panel */
678
+ '.ak-editor-panel__content': {
679
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
680
+ '> div[data-task-list-local-id]:first-child': {
681
+ margin: '0 0 0 0 !important'
682
+ }
683
+ }
684
+ });
685
+ var smartCardStyles = css(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER), {
686
+ display: 'block',
687
+ margin: "".concat(blockNodesVerticalMargin, " 0 0"),
688
+ maxWidth: "".concat(8 * 95, "px")
689
+ }));
690
+ var baseOtherStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
691
+ '& .UnknownBlock': {
692
+ fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
693
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
694
+ fontSize: "".concat(14 / 16, "rem"),
695
+ fontWeight: "var(--ds-font-weight-regular, 400)",
696
+ whiteSpace: 'pre-wrap',
697
+ wordWrap: 'break-word'
698
+ },
699
+ '& span.date-node': {
700
+ background: "var(--ds-background-neutral, ".concat(N30A, ")"),
701
+ borderRadius: "var(--ds-border-radius-100, 3px)",
702
+ color: "var(--ds-text, ".concat(N800, ")"),
703
+ padding: "var(--ds-space-025, 2px)".concat(" ", "var(--ds-space-050, 4px)"),
704
+ margin: "0 1px",
705
+ transition: "background 0.3s"
706
+ },
707
+ '& span.date-node-highlighted': {
708
+ background: "var(--ds-background-danger, ".concat(R50, ")"),
709
+ color: "var(--ds-text-danger, ".concat(R500, ")")
710
+ },
711
+ '& .renderer-image': {
712
+ maxWidth: '100%',
713
+ display: 'block',
714
+ margin: "var(--ds-space-300, 24px)".concat(" 0")
715
+ }
716
+ }, ".".concat(richMediaClassName, ".rich-media-wrapped + .").concat(richMediaClassName, ":not(.rich-media-wrapped)"), {
717
+ clear: 'both'
718
+ }), "& .code-block,\n\t& blockquote,\n\t& hr,\n\t& > div > div:not(.rich-media-wrapped),\n\t.".concat(richMediaClassName, ".rich-media-wrapped + .rich-media-wrapped + *:not(.rich-media-wrapped),\n\t.").concat(richMediaClassName, ".rich-media-wrapped + div:not(.rich-media-wrapped),\n\t.").concat(richMediaClassName, ".image-align-start,\n\t\t.").concat(richMediaClassName, ".image-center,\n\t\t.").concat(richMediaClassName, ".image-align-end"), {
719
+ clear: 'both'
720
+ }), '& .rich-media-wrapped', {
721
+ '& + h1, & + h2, & + h3, & + h4, & + h5, & + h6': {
722
+ marginTop: "var(--ds-space-100, 8px)"
723
+ }
724
+ }), 'div[class^="image-wrap-"] + div[class^="image-wrap-"]', {
725
+ marginLeft: 0,
726
+ marginRight: 0
727
+ }), ".".concat(RendererCssClassName.DOCUMENT, " >"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "*:not([data-mark-type='fragment']) .".concat(TableSharedCssClassName.TABLE_CONTAINER), {
728
+ // TODO - improve inline style logic on table container so important styles aren't required here
729
+ width: '100% !important',
730
+ left: '0 !important'
731
+ }), "[data-mark-type='fragment'] * .".concat(TableSharedCssClassName.TABLE_CONTAINER), {
732
+ // TODO - improve inline style logic on table container so important styles aren't required here
733
+ width: '100% !important',
734
+ left: '0 !important'
735
+ }), "* .".concat(RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER), {
736
+ overflowX: 'auto'
737
+ }), "& .".concat(RendererCssClassName.EXTENSION, ":first-child"), {
738
+ marginTop: 0
739
+ })), ".".concat(RendererCssClassName.DOCUMENT), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(RendererCssClassName.EXTENSION), {
740
+ marginTop: "".concat(blockNodesVerticalMargin)
741
+ }), ".".concat(RendererCssClassName.EXTENSION_CENTER_ALIGN), {
742
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
743
+ marginLeft: '50%',
744
+ transform: 'translateX(-50%)'
745
+ }), ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER), {
746
+ overflowX: 'auto'
747
+ }), ".".concat(shadowObserverClassNames.SHADOW_CONTAINER, " .").concat(TableSharedCssClassName.TABLE_NODE_WRAPPER), {
748
+ display: 'flex'
749
+ })));
750
+ var alignedHeadingAnchorStyle = css({
751
+ // TODO Delete this comment after verifying space token -> previous value `margin: 6px`
752
+ '.fabric-editor-block-mark[data-align] >': {
753
+ 'h1, h2, h3, h4, h5, h6': {
754
+ position: 'relative'
755
+ }
756
+ },
757
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
758
+ '.fabric-editor-block-mark:not([data-align="center"])[data-align]': _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
759
+ margin: "0 ".concat("var(--ds-space-075, 6px)", " 0 0"),
760
+ // If the anchor is right aligned then the left side of the heading
761
+ // is aligned with the left side of the anchor.
762
+ // In order to align as expected we transform it the width of the element (plus our expected 6px)
763
+ // to the left
764
+ transform: "translateX(calc(-100% - ".concat("var(--ds-space-075, 6px)", "))")
765
+ }), '@media (hover: hover) and (pointer: fine)', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName, " > button"), {
766
+ transform: "translate(8px, 0px)"
767
+ }))
768
+ });
769
+
770
+ // TODO: emotion refactor - there's a mediaSingleSharedNewStyle, but not originally used in the renderer.
771
+ var mediaSingleSharedStyle = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "li .".concat(richMediaClassName), {
772
+ margin: 0
773
+ }), '&.ua-chrome li > .mediaSingleView-content-wrap::before', {
774
+ content: "''",
775
+ display: 'block',
776
+ height: 0
777
+ }), '&.ua-firefox', {
778
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
779
+ '.mediaSingleView-content-wrap': {
780
+ userSelect: 'none'
781
+ },
782
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
783
+ '.captionView-content-wrap': {
784
+ userSelect: 'text'
785
+ }
786
+ }), ".mediaSingleView-content-wrap[layout='center']", {
787
+ clear: 'both'
788
+ }), "table .".concat(richMediaClassName), {
789
+ marginTop: "var(--ds-space-150, 12px)",
790
+ marginBottom: "var(--ds-space-150, 12px)",
791
+ clear: 'both',
792
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
793
+ '&.image-wrap-left[data-layout], &.image-wrap-right[data-layout]': {
794
+ clear: 'none',
795
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
796
+ '&:first-child': {
797
+ marginTop: "var(--ds-space-150, 12px)"
798
+ }
799
+ }
800
+ }), ".".concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left"), {
801
+ clear: 'both'
802
+ }), ".".concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-right, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-right"), {
803
+ marginRight: 0,
804
+ marginLeft: 0
805
+ }), "@media all and (max-width: ".concat(wrappedMediaBreakoutPoint, "px)"), {
806
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
807
+ "div.mediaSingleView-content-wrap[layout='wrap-left'], div.mediaSingleView-content-wrap[data-layout='wrap-left'], div.mediaSingleView-content-wrap[layout='wrap-right'], div.mediaSingleView-content-wrap[data-layout='wrap-right']": {
808
+ float: 'none',
809
+ overflow: 'auto',
810
+ margin: "var(--ds-space-150, 12px)".concat(" 0")
811
+ }
812
+ }));
813
+
814
+ // was shared between editor-core and renderer
815
+ var tableSharedStyle = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
816
+ // originally from packages/editor/editor-common/src/styles/shared/tableCell.ts
817
+ // Hardcoding the background color for the table cells to avoid the use of inline styles
818
+ 'td[colorname="white" i], th[colorname="white" i]': {
819
+ backgroundColor: "var(--ds-surface, #FFFFFF)".concat(" !important")
820
+ },
821
+ 'td[colorname="light blue" i], th[colorname="light blue" i]': {
822
+ backgroundColor: "var(--ds-background-accent-blue-subtlest, #DEEBFF)".concat(" !important")
823
+ },
824
+ 'td[colorname="light teal" i], th[colorname="light teal" i]': {
825
+ backgroundColor: "var(--ds-background-accent-teal-subtlest, #E6FCFF)".concat(" !important")
826
+ },
827
+ 'td[colorname="light green" i], th[colorname="light green" i]': {
828
+ backgroundColor: "var(--ds-background-accent-green-subtlest, #E3FCEF)".concat(" !important")
829
+ },
830
+ 'td[colorname="light yellow" i], th[colorname="light yellow" i]': {
831
+ backgroundColor: "var(--ds-background-accent-yellow-subtlest, #FFFAE6)".concat(" !important")
832
+ },
833
+ 'td[colorname="light red" i], th[colorname="light red" i]': {
834
+ backgroundColor: "var(--ds-background-accent-red-subtlest, #FFEBE6)".concat(" !important")
835
+ },
836
+ 'td[colorname="light purple" i], th[colorname="light purple" i]': {
837
+ backgroundColor: "var(--ds-background-accent-purple-subtlest, #EAE6FF)".concat(" !important")
838
+ },
839
+ 'td[colorname="light gray" i], th[colorname="light gray" i]': {
840
+ backgroundColor: "var(--ds-background-accent-gray-subtlest, #F4F5F7)".concat(" !important")
841
+ },
842
+ 'td[colorname="blue" i], th[colorname="blue" i]': {
843
+ backgroundColor: "var(--ds-background-accent-blue-subtler, #B3D4FF)".concat(" !important")
844
+ },
845
+ 'td[colorname="teal" i], th[colorname="teal" i]': {
846
+ backgroundColor: "var(--ds-background-accent-teal-subtler, #B3F5FF)".concat(" !important")
847
+ },
848
+ 'td[colorname="green" i], th[colorname="green" i]': {
849
+ backgroundColor: "var(--ds-background-accent-green-subtler, #ABF5D1)".concat(" !important")
850
+ },
851
+ 'td[colorname="yellow" i], th[colorname="yellow" i]': {
852
+ backgroundColor: "var(--ds-background-accent-yellow-subtler, #FFF0B3)".concat(" !important")
853
+ },
854
+ 'td[colorname="red" i], th[colorname="red" i]': {
855
+ backgroundColor: "var(--ds-background-accent-red-subtler, #FFBDAD)".concat(" !important")
856
+ },
857
+ 'td[colorname="purple" i], th[colorname="purple" i]': {
858
+ backgroundColor: "var(--ds-background-accent-purple-subtler, #C0B6F2)".concat(" !important")
859
+ },
860
+ 'td[colorname="gray" i], th[colorname="gray" i]': {
861
+ backgroundColor: "var(--ds-background-accent-gray-subtle, #B3BAC5)".concat(" !important")
862
+ },
863
+ 'td[colorname="dark blue" i], th[colorname="dark blue" i]': {
864
+ backgroundColor: "var(--ds-background-accent-blue-subtle, #4C9AFF)".concat(" !important")
865
+ },
866
+ 'td[colorname="dark teal" i], th[colorname="dark teal" i]': {
867
+ backgroundColor: "var(--ds-background-accent-teal-subtle, #79E2F2)".concat(" !important")
868
+ },
869
+ 'td[colorname="dark green" i], th[colorname="dark green" i]': {
870
+ backgroundColor: "var(--ds-background-accent-green-subtle, #57D9A3)".concat(" !important")
871
+ },
872
+ 'td[colorname="dark yellow" i], th[colorname="dark yellow" i]': {
873
+ backgroundColor: "var(--ds-background-accent-orange-subtle, #FFC400)".concat(" !important")
874
+ },
875
+ 'td[colorname="dark red" i], th[colorname="dark red" i]': {
876
+ backgroundColor: "var(--ds-background-accent-red-subtle, #FF8F73)".concat(" !important")
877
+ },
878
+ 'td[colorname="dark purple" i], th[colorname="dark purple" i]': {
879
+ backgroundColor: "var(--ds-background-accent-purple-subtle, #998DD9)".concat(" !important")
880
+ }
881
+ }, ".".concat(TableSharedCssClassName.TABLE_CONTAINER), {
882
+ position: 'relative',
883
+ margin: "0 auto ".concat("var(--ds-space-200, 16px)"),
884
+ boxSizing: 'border-box',
885
+ /**
886
+ * Fix block top alignment inside table cells.
887
+ */
888
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
889
+ '.decisionItemView-content-wrap:first-of-type > div': {
890
+ marginTop: 0
891
+ }
892
+ }), ".".concat(TableSharedCssClassName.TABLE_CONTAINER, "[data-number-column='true']"), {
893
+ paddingLeft: "".concat(akEditorTableNumberColumnWidth - 1, "px"),
894
+ clear: 'both'
895
+ }), ".".concat(TableSharedCssClassName.TABLE_RESIZER_CONTAINER), {
896
+ willChange: 'width, margin-left'
897
+ }), ".".concat(TableSharedCssClassName.TABLE_RESIZER_CONTAINER, " table"), {
898
+ willChange: 'width'
899
+ }), ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table"), {
900
+ margin: "var(--ds-space-300, 24px)".concat(" 0 0 0")
901
+ }), ".".concat(TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t.").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
902
+ margin: "var(--ds-space-300, 24px)".concat(" ", "var(--ds-space-100, 8px)", " 0 0")
903
+ }), ".".concat(TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t.").concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table,\n\t.").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
904
+ borderCollapse: 'collapse',
905
+ border: "".concat(tableCellBorderWidth, "px solid ", "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")")),
906
+ tableLayout: 'fixed',
907
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
908
+ fontSize: '1em',
909
+ width: '100%',
910
+ '&[data-autosize="true"]': {
911
+ tableLayout: 'auto'
912
+ },
913
+ '*': {
914
+ boxSizing: 'border-box'
915
+ },
916
+ hr: {
917
+ boxSizing: 'content-box'
918
+ },
919
+ tbody: {
920
+ borderBottom: 'none'
921
+ },
922
+ 'th td': {
923
+ backgroundColor: "var(--ds-background-neutral-subtle, white)"
924
+ },
925
+ // platform_editor_nested_tables_renderer_styles has already been lunched, so assume it's on
926
+ '> tbody > tr > td': {
927
+ backgroundColor: "var(--ds-surface, #FFFFFF)"
928
+ },
929
+ th: {
930
+ backgroundColor: "var(--ds-background-accent-gray-subtlest, ".concat(akEditorTableToolbar, ")"),
931
+ textAlign: 'left',
932
+ /* only apply this styling to codeblocks in default background headercells */
933
+ /* TODO this needs to be overhauled as it relies on unsafe selectors */
934
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
935
+ '&:not([style]):not(.danger)': _defineProperty({}, ".".concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, ":not(.danger)"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
936
+ backgroundColor: "var(--ds-surface-raised, rgb(235, 237, 240))"
937
+ }, "&:not(.".concat(akEditorSelectedNodeClassName, ")"), {
938
+ boxShadow: "0px 0px 0px 1px ".concat("var(--ds-border, transparent)")
939
+ }), ".".concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER), {
940
+ // originally copied from packages/editor/editor-shared-styles/src/overflow-shadow/overflow-shadow.ts
941
+ backgroundImage: "linear-gradient(\n\t\t\t\t\t\t\tto right,\n\t\t\t\t\t\t\t".concat("var(--ds-background-neutral, #091E420F)", " ", "var(--ds-space-300, 24px)", ",\n\t\t\t\t\t\t\ttransparent ", "var(--ds-space-300, 24px)", "\n\t\t\t\t\t\t ),linear-gradient(\n\t\t\t\t\t\t\tto right,\n\t\t\t\t\t\t\t", "var(--ds-surface-raised, #FFFFFF)", " ", "var(--ds-space-300, 24px)", ",\n\t\t\t\t\t\t\ttransparent ", "var(--ds-space-300, 24px)", "\n\t\t\t\t\t\t ),linear-gradient(\n\t\t\t\t\t\t\tto left,\n\t\t\t\t\t\t\t", "var(--ds-background-neutral, #091E420F)", " ", "var(--ds-space-100, 8px)", ",\n\t\t\t\t\t\t\ttransparent ", "var(--ds-space-100, 8px)", "\n\t\t\t\t\t\t ),linear-gradient(\n\t\t\t\t\t\t\tto left,\n\t\t\t\t\t\t\t", "var(--ds-surface-raised, #FFFFFF)", " ", "var(--ds-space-100, 8px)", ",\n\t\t\t\t\t\t\ttransparent ", "var(--ds-space-100, 8px)", "\n\t\t\t\t\t\t ),linear-gradient(\n\t\t\t\t\t\t\tto left,\n\t\t\t\t\t\t\t", "var(--ds-shadow-overflow-spread, #091e4229)", " 0,\n\t\t\t\t\t\t\t", "var(--ds-UNSAFE-transparent, transparent)", " ", "var(--ds-space-100, 8px)", "\n\t\t\t\t\t\t ),linear-gradient(\n\t\t\t\t\t\t\tto left,\n\t\t\t\t\t\t\t", "var(--ds-shadow-overflow-perimeter, #091e421f)", " 0,\n\t\t\t\t\t\t\t", "var(--ds-UNSAFE-transparent, transparent)", " ", "var(--ds-space-100, 8px)", "\n\t\t\t\t\t\t ),linear-gradient(\n\t\t\t\t\t\t\tto right,\n\t\t\t\t\t\t\t", "var(--ds-shadow-overflow-spread, #091e4229)", " 0,\n\t\t\t\t\t\t\t", "var(--ds-UNSAFE-transparent, transparent)", " ", "var(--ds-space-100, 8px)", "\n\t\t\t\t\t\t ),linear-gradient(\n\t\t\t\t\t\t\tto right,\n\t\t\t\t\t\t\t", "var(--ds-shadow-overflow-perimeter, #091e421f)", " 0,\n\t\t\t\t\t\t\t", "var(--ds-UNSAFE-transparent, transparent)", " ", "var(--ds-space-100, 8px)", "\n\t\t\t\t\t\t )"),
942
+ backgroundColor: "var(--ds-background-neutral, rgb(235, 237, 240))"
943
+ }), ".".concat(CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER), {
944
+ backgroundColor: "var(--ds-background-neutral, rgb(226, 229, 233))"
945
+ }), '> [data-ds--code--code-block]', {
946
+ // originally copied from packages/editor/editor-shared-styles/src/overflow-shadow/overflow-shadow.ts
947
+ backgroundImage: "linear-gradient(\n\t\t\t\t\t\t\tto right,\n\t\t\t\t\t\t\t".concat("var(--ds-background-neutral, #091E420F)", " ", "var(--ds-space-300, 24px)", ",\n\t\t\t\t\t\t\ttransparent ", "var(--ds-space-300, 24px)", "\n\t\t\t\t\t\t ),linear-gradient(\n\t\t\t\t\t\t\tto right,\n\t\t\t\t\t\t\t", "var(--ds-surface-raised, #FFFFFF)", " ", "var(--ds-space-300, 24px)", ",\n\t\t\t\t\t\t\ttransparent ", "var(--ds-space-300, 24px)", "\n\t\t\t\t\t\t ),linear-gradient(\n\t\t\t\t\t\t\tto left,\n\t\t\t\t\t\t\t", "var(--ds-background-neutral, #091E420F)", " ", "var(--ds-space-100, 8px)", ",\n\t\t\t\t\t\t\ttransparent ", "var(--ds-space-100, 8px)", "\n\t\t\t\t\t\t ),linear-gradient(\n\t\t\t\t\t\t\tto left,\n\t\t\t\t\t\t\t", "var(--ds-surface-raised, #FFFFFF)", " ", "var(--ds-space-100, 8px)", ",\n\t\t\t\t\t\t\ttransparent ", "var(--ds-space-100, 8px)", "\n\t\t\t\t\t\t ),linear-gradient(\n\t\t\t\t\t\t\tto left,\n\t\t\t\t\t\t\t", "var(--ds-shadow-overflow-spread, #091e4229)", " 0,\n\t\t\t\t\t\t\t", "var(--ds-UNSAFE-transparent, transparent)", " ", "var(--ds-space-100, 8px)", "\n\t\t\t\t\t\t ),linear-gradient(\n\t\t\t\t\t\t\tto left,\n\t\t\t\t\t\t\t", "var(--ds-shadow-overflow-perimeter, #091e421f)", " 0,\n\t\t\t\t\t\t\t", "var(--ds-UNSAFE-transparent, transparent)", " ", "var(--ds-space-100, 8px)", "\n\t\t\t\t\t\t ),linear-gradient(\n\t\t\t\t\t\t\tto right,\n\t\t\t\t\t\t\t", "var(--ds-shadow-overflow-spread, #091e4229)", " 0,\n\t\t\t\t\t\t\t", "var(--ds-UNSAFE-transparent, transparent)", " ", "var(--ds-space-100, 8px)", "\n\t\t\t\t\t\t ),linear-gradient(\n\t\t\t\t\t\t\tto right,\n\t\t\t\t\t\t\t", "var(--ds-shadow-overflow-perimeter, #091e421f)", " 0,\n\t\t\t\t\t\t\t", "var(--ds-UNSAFE-transparent, transparent)", " ", "var(--ds-space-100, 8px)", "\n\t\t\t\t\t\t )"),
948
+ backgroundColor: "var(--ds-background-neutral, rgb(235, 237, 240))".concat("!important"),
949
+ // selector lives inside @atlaskit/code
950
+ '--ds--code--line-number-bg-color': "var(--ds-background-neutral, rgb(226, 229, 233))"
951
+ }))
952
+ }
953
+ }));
954
+ var tableRendererHeaderStylesForTableCellOnly = css(_defineProperty({}, ".".concat(TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t\t.").concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table,\n\t\t.").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
955
+ // platform_editor_renderer_table_header_styles has already been launched, so assume it's on
956
+ '> tbody > tr > th, > tbody > tr > td': {
957
+ minWidth: "".concat(tableCellMinWidth, "px"),
958
+ fontWeight: "var(--ds-font-weight-regular, 400)",
959
+ verticalAlign: 'top',
960
+ border: "1px solid ".concat("var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")")),
961
+ borderRightWidth: 0,
962
+ borderBottomWidth: 0,
963
+ padding: "var(--ds-space-100, 8px)",
964
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
965
+ 'th p:not(:first-of-type), td p:not(:first-of-type)': {
966
+ marginTop: "var(--ds-space-150, 12px)"
967
+ }
968
+ }
969
+ }));
970
+ var tableStylesBackGroundClipForGeckoForTableCellOnly = css(_defineProperty({}, ".".concat(TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t\t.").concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table,\n\t\t.").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
971
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
972
+ '> tbody > tr > th, > tbody > tr > td': {
973
+ backgroundClip: 'padding-box'
974
+ }
975
+ }));
976
+ var firstNodeWithNotMarginTopWithNestedDnD = css(_defineProperty({}, ".".concat(TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t\t.").concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table,\n\t\t.").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
977
+ '> tbody > tr > th, > tbody > tr > td': {
978
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
979
+ '> :nth-child(1 of :not(style, .ProseMirror-gapcursor, .ProseMirror-widget, span))': {
980
+ marginTop: 0
981
+ }
982
+ }
983
+ }));
984
+ var firstNodeWithNotMarginTop = css(_defineProperty({}, ".".concat(TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t\t.").concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table,\n\t\t.").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
985
+ '> tbody > tr > th, > tbody > tr > td': {
986
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
987
+ '> :first-child:not(style), > style:first-child + *': {
988
+ marginTop: 0
989
+ },
990
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
991
+ '> .ProseMirror-gapcursor:first-child + *, > style:first-child + .ProseMirror-gapcursor + *': {
992
+ marginTop: 0
993
+ },
994
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
995
+ '> .ProseMirror-gapcursor:first-child + span + *, > style:first-child + .ProseMirror-gapcursor + span + *': {
996
+ marginTop: 0
997
+ }
998
+ }
999
+ }));
1000
+ var rendererTableStyles = css(_defineProperty({}, ".".concat(RendererCssClassName.DOCUMENT, " .").concat(TableSharedCssClassName.TABLE_CONTAINER), _defineProperty(_defineProperty(_defineProperty({
1001
+ zIndex: 0,
1002
+ transition: "all 0.1s linear",
1003
+ display: 'flex' /* needed to avoid position: fixed jumpiness in Chrome */
1004
+ }, "&.".concat(shadowClassNames.RIGHT_SHADOW, "::after, &.").concat(shadowClassNames.LEFT_SHADOW, "::before"), {
1005
+ top: "".concat(tableMarginTop - 1, "px"),
1006
+ height: "calc(100% - ".concat(tableMarginTop, "px)"),
1007
+ zIndex: "".concat(akEditorStickyHeaderZIndex),
1008
+ width: "".concat(tableShadowWidth, "px"),
1009
+ background: "linear-gradient(\n\t\t\t\t\tto left,\n\t\t\t\t\ttransparent 0,\n\t\t\t\t\t".concat("var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), " 140%\n\t\t\t\t),\n\t\t\t\tlinear-gradient(\n\t\t\t\t\tto right,\n\t\t\t\t\t", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px,\n\t\t\t\t\ttransparent 1px\n\t\t\t\t)")
1010
+ }), "&.".concat(shadowClassNames.RIGHT_SHADOW, "::after"), {
1011
+ background: "linear-gradient(\n\t\t\t\t\tto right,\n\t\t\t\t\ttransparent 0,\n\t\t\t\t\t".concat("var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), " 140%\n\t\t\t\t),\n\t\t\t\tlinear-gradient(\n\t\t\t\t\tto left,\n\t\t\t\t\t", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px,\n\t\t\t\t\ttransparent 1px\n\t\t\t\t)"),
1012
+ right: "0px"
1013
+ }), "&\n .".concat(shadowObserverClassNames.SENTINEL_LEFT, ",\n &\n .").concat(shadowObserverClassNames.SENTINEL_RIGHT), {
1014
+ height: "calc(100% - ".concat(tableMarginTop, "px)")
1015
+ })));
1016
+ var stickyScrollbarStyles = css(_defineProperty({}, ".".concat(RendererCssClassName.DOCUMENT, " .").concat(TableSharedCssClassName.TABLE_CONTAINER), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
1017
+ position: 'relative',
1018
+ flexDirection: 'column'
1019
+ }, "> .".concat(TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_CONTAINER), {
1020
+ width: '100%',
1021
+ display: 'block',
1022
+ visibility: 'hidden',
1023
+ overflowX: 'auto',
1024
+ position: 'sticky',
1025
+ bottom: "var(--ds-space-0, 0px)",
1026
+ zIndex: 1
1027
+ }), "> .".concat(TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM, ",\n\t\t> .").concat(TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_TOP), {
1028
+ position: 'absolute',
1029
+ width: '100%',
1030
+ height: '1px',
1031
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
1032
+ marginTop: '-1px',
1033
+ // need this to avoid sentinel being focused via keyboard
1034
+ // this still allows it to be detected by intersection observer
1035
+ visibility: 'hidden'
1036
+ }), "> .".concat(TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_TOP), {
1037
+ top: "".concat(tableRowHeight * 3, "px")
1038
+ }), "> .".concat(TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM), {
1039
+ bottom: "var(--ds-space-250, 20px)" // MAX_BROWSER_SCROLLBAR_HEIGHT = 20;
1040
+ })));
1041
+ var rendererTableHeaderEqualHeightStylesForTableCellOnly = css(_defineProperty(_defineProperty({}, ".".concat(RendererCssClassName.DOCUMENT, " .").concat(TableSharedCssClassName.TABLE_CONTAINER), _defineProperty({}, ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table, .").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
1042
+ height: '1px' /* will be ignored */,
1043
+ marginLeft: 0,
1044
+ marginRight: 0
1045
+ })), ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table > tbody > tr:first-of-type, .").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table > tbody > tr:first-of-type"), {
1046
+ height: '100%',
1047
+ 'td, th': {
1048
+ position: 'relative'
1049
+ }
1050
+ }));
1051
+ var rendererTableSortableColumnStyles = css(_defineProperty({}, ".".concat(RendererCssClassName.DOCUMENT, " .").concat(TableSharedCssClassName.TABLE_CONTAINER), _defineProperty({}, ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table, .").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), _defineProperty({}, ".".concat(RendererCssClassName.SORTABLE_COLUMN_WRAPPER), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
1052
+ padding: 0
1053
+ }, ".".concat(RendererCssClassName.SORTABLE_COLUMN), {
1054
+ width: '100%',
1055
+ height: '100%',
1056
+ padding: "".concat(tableCellPadding, "px"),
1057
+ borderWidth: '1.5px',
1058
+ borderStyle: 'solid',
1059
+ borderColor: "transparent",
1060
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
1061
+ '> *:first-child': {
1062
+ marginTop: 0
1063
+ },
1064
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
1065
+ '> .ProseMirror-gapcursor:first-child + *, > style:first-child + .ProseMirror-gapcursor + *': {
1066
+ marginTop: 0
1067
+ },
1068
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
1069
+ '> .ProseMirror-gapcursor:first-child + span + *, > style:first-child + .ProseMirror-gapcursor + span + *': {
1070
+ marginTop: 0
1071
+ },
1072
+ '@supports selector(:focus-visible)': {
1073
+ '&:focus': {
1074
+ outline: 'unset'
1075
+ },
1076
+ '&:focus-visible': {
1077
+ borderColor: "".concat("var(--ds-border-focused, ".concat(B300, ")"))
1078
+ }
1079
+ }
1080
+ }), "> .".concat(RendererCssClassName.SORTABLE_COLUMN, " > .").concat(RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER), _defineProperty({
1081
+ margin: 0
1082
+ }, ".".concat(SORTABLE_COLUMN_ICON_CLASSNAME), {
1083
+ opacity: 1,
1084
+ transition: "opacity 0.2s ease-in-out"
1085
+ })), "> .".concat(RendererCssClassName.SORTABLE_COLUMN, "\n\t\t\t\t\t\t> .").concat(RendererCssClassName.SORTABLE_COLUMN_NO_ORDER), _defineProperty({}, ".".concat(SORTABLE_COLUMN_ICON_CLASSNAME), {
1086
+ opacity: 0,
1087
+ '&:focus': {
1088
+ opacity: 1
1089
+ }
1090
+ })), "&:hover:not(\n\t\t\t\t\t\t\t:has(\n\t\t\t\t\t\t\t\t\t.".concat(RendererCssClassName.SORTABLE_COLUMN_WRAPPER, "\n\t\t\t\t\t\t\t\t\t\t.").concat(RendererCssClassName.SORTABLE_COLUMN, ":hover\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t\t> .").concat(RendererCssClassName.SORTABLE_COLUMN, "\n\t\t\t\t\t\t> .").concat(RendererCssClassName.SORTABLE_COLUMN_NO_ORDER), _defineProperty({}, ".".concat(SORTABLE_COLUMN_ICON_CLASSNAME), {
1091
+ opacity: 1
1092
+ }))))));
1093
+ var rendererTableColumnStyles = css(_defineProperty({}, ".".concat(RendererCssClassName.DOCUMENT, " .").concat(TableSharedCssClassName.TABLE_CONTAINER), {
1094
+ 'table[data-number-column="true"]': _defineProperty(_defineProperty({}, ".".concat(RendererCssClassName.NUMBER_COLUMN), {
1095
+ backgroundColor: "".concat("var(--ds-background-neutral, ".concat(akEditorTableToolbar, ")")),
1096
+ borderRight: "1px solid\n\t\t\t\t\t\t\t\t".concat("var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")")),
1097
+ width: "".concat(akEditorTableNumberColumnWidth, "px"),
1098
+ textAlign: 'center',
1099
+ color: "".concat("var(--ds-text-subtlest, ".concat(N200, ")")),
1100
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
1101
+ fontSize: "".concat(14 / 16, " rem")
1102
+ }), ".fixed .".concat(RendererCssClassName.NUMBER_COLUMN), {
1103
+ borderRight: "0px none"
1104
+ })
1105
+ }));
1106
+
1107
+ // assume FG platform_editor_nested_tables_renderer_styles and platform_editor_renderer_table_header_styles on
1108
+ var rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks = css(_defineProperty({}, ".".concat(RendererCssClassName.DOCUMENT, " .").concat(TableSharedCssClassName.TABLE_CONTAINER), _defineProperty({}, ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table, .").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), _defineProperty({}, ".".concat(RendererCssClassName.SORTABLE_COLUMN_WRAPPER), _defineProperty({}, ".".concat(RendererCssClassName.SORTABLE_COLUMN), _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
1109
+ position: 'unset'
1110
+ }), '>', {
1111
+ 'h1, h2, h3, h4, h5, h6': {
1112
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
1113
+ marginRight: '30px'
1114
+ }
1115
+ }))))));
1116
+
1117
+ // @ts-expect-error - throw TS error when use !import in position.
1118
+ var stickyHeaderStyles = css({
1119
+ 'tr[data-header-row].fixed': {
1120
+ position: 'fixed !important',
1121
+ display: 'flex',
1122
+ overflow: 'hidden',
1123
+ zIndex: "".concat(akEditorStickyHeaderZIndex),
1124
+ borderRight: "1px solid ".concat("var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")")),
1125
+ borderBottom: "1px solid ".concat("var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")")),
1126
+ /* this is to compensate for the table border */
1127
+ transform: 'translateX(-1px)'
1128
+ },
1129
+ '.sticky > th': {
1130
+ zIndex: "".concat(akEditorStickyHeaderZIndex),
1131
+ position: 'fixed !important',
1132
+ top: 0
1133
+ },
1134
+ /* Make the number column header sticky */
1135
+ '.sticky > td': {
1136
+ position: 'fixed !important',
1137
+ top: 0
1138
+ },
1139
+ /* add border for position: sticky
1140
+ and work around background-clip: padding-box
1141
+ bug for FF causing box-shadow bug in Chrome */
1142
+ '.sticky th, .sticky td': {
1143
+ boxShadow: "0px 1px ".concat("var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), ",\n\t\t\t0px -0.5px ", "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), ",\n\t\t\tinset -1px 0px ", "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableToolbar, ")"), ",\n\t\t\t0px -1px ", "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableToolbar, ")"))
1144
+ },
1145
+ /* this will remove jumpiness caused in Chrome for sticky headers */
1146
+ '.fixed + tr': {
1147
+ minHeight: '0px'
1148
+ }
1149
+ });
1150
+ var codeBlockAndLayoutStyles = css(_defineProperty(_defineProperty(_defineProperty({
1151
+ /*
1152
+ * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.
1153
+ * See ED-4159.
1154
+ */
1155
+ '& .code-block': {
1156
+ maxWidth: '100%',
1157
+ display: 'block',
1158
+ position: 'relative',
1159
+ borderRadius: "var(--ds-border-radius-100, 3px)",
1160
+ /*
1161
+ * The overall renderer has word-wrap: break; which causes issues with
1162
+ * code block line numbers in Safari / iOS.
1163
+ */
1164
+ wordWrap: 'normal'
1165
+ },
1166
+ '& .MediaGroup, & .code-block': {
1167
+ marginTop: "".concat(blockNodesVerticalMargin),
1168
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
1169
+ '&:first-child': {
1170
+ marginTop: 0
1171
+ }
1172
+ }
1173
+ }, ".".concat(RendererCssClassName.DOCUMENT, "\n\t\t> .").concat(LightWeightCodeBlockCssClassName.CONTAINER, "\n\t\t.").concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER), {
1174
+ marginTop: blockNodesVerticalMargin
1175
+ }), '& [data-layout-section]', _defineProperty(_defineProperty({
1176
+ marginTop: "var(--ds-space-250, 20px)",
1177
+ '& > div + div': {
1178
+ marginLeft: "var(--ds-space-400, 32px)"
1179
+ }
1180
+ }, "@media screen and (max-width: ".concat(gridMediumMaxWidth, "px)"), {
1181
+ '& > div + div': {
1182
+ marginLeft: 0
1183
+ }
1184
+ }), '& .MediaGroup, & .code-block', {
1185
+ marginTop: blockNodesVerticalMargin,
1186
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
1187
+ '&:first-child': {
1188
+ marginTop: 0
1189
+ }
1190
+ })), '& li', {
1191
+ '> .code-block': {
1192
+ margin: "".concat(blockNodesVerticalMargin, " 0 0 0")
1193
+ },
1194
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
1195
+ '> .code-block:first-child': {
1196
+ marginTop: 0
1197
+ },
1198
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
1199
+ '> div:last-of-type.code-block': {
1200
+ marginBottom: blockNodesVerticalMargin
1201
+ }
1202
+ }));
1203
+ var layoutSectionForAdvancedLayoutsStyles = css({
1204
+ '& [data-layout-section]': {
1205
+ '& > div + div': {
1206
+ marginLeft: 0
1207
+ }
1208
+ }
1209
+ });
1210
+ var gridRenderForCodeBlockStyles = css({
1211
+ '& .code-block': {
1212
+ // removed old -ms- prefix, as grid is well supported for MS Edge
1213
+ display: 'grid',
1214
+ gridTemplateColumns: 'minmax(0, 1fr)',
1215
+ '& > span': {
1216
+ gridColumn: 1
1217
+ }
1218
+ }
1219
+ });
1220
+
1221
+ // This prevents https://product-fabric.atlassian.net/browse/ED-20924
1222
+ var codeBlockInListSafariFixStyles = css(_defineProperty({}, "&:not([data-node-type='decisionList']) > li,\n\t\t&:not(.".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, ") > li"), _defineProperty({
1223
+ '&::before': {
1224
+ content: '" "',
1225
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
1226
+ lineHeight: akEditorLineHeight
1227
+ }
1228
+ }, "> p:first-child,\n\t\t\t> .code-block:first-child,\n\t\t\t> .ProseMirror-gapcursor:first-child + .code-block", {
1229
+ marginTop: "-".concat(akEditorLineHeight, "em !important")
1230
+ })));
1231
+ var columnLayoutSharedStyle = css({
1232
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
1233
+ '[data-layout-section]': _defineProperty({
1234
+ position: 'relative',
1235
+ display: 'flex',
1236
+ flexDirection: 'row',
1237
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
1238
+ '& > *': {
1239
+ flex: 1,
1240
+ minWidth: 0
1241
+ },
1242
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
1243
+ '& > .unsupportedBlockView-content-wrap': {
1244
+ minWidth: 'initial'
1245
+ }
1246
+ }, "@media screen and (max-width: ".concat(gridMediumMaxWidth, "px)"), {
1247
+ flexDirection: 'column'
1248
+ })
1249
+ });
1250
+ var columnLayoutResponsiveSharedStyle = css({
1251
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
1252
+ '[data-layout-section]': {
1253
+ display: 'flex',
1254
+ flexDirection: 'row',
1255
+ gap: "var(--ds-space-100, 8px)",
1256
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
1257
+ '& > *': {
1258
+ flex: 1,
1259
+ minWidth: 0
1260
+ },
1261
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
1262
+ '& > .unsupportedBlockView-content-wrap': {
1263
+ minWidth: 'initial'
1264
+ }
1265
+ },
1266
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
1267
+ '.layout-section-container': {
1268
+ containerType: 'inline-size',
1269
+ containerName: 'layout-area'
1270
+ }
1271
+ });
1272
+ var columnLayoutResponsiveRendererStyles = css({
1273
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
1274
+ '.layout-section-container [data-layout-section]': _defineProperty({
1275
+ gap: "var(--ds-space-600, 48px)"
1276
+ }, "@container layout-area (max-width: ".concat(LAYOUT_BREAKPOINT_RENDERER, "px)"), {
1277
+ flexDirection: 'column',
1278
+ gap: "var(--ds-space-400, 32px)"
1279
+ })
1280
+ });
1281
+ var rendererAnnotationStyles = css({
1282
+ "& [data-mark-type='annotation'][data-mark-annotation-state='active'] [data-annotation-mark], & [data-annotation-draft-mark][data-annotation-inline-node]": {
1283
+ background: "var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"),
1284
+ borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, ".concat(Y300, ")")),
1285
+ boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")"),
1286
+ cursor: 'pointer',
1287
+ padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-025, 2px)")
1288
+ }
1289
+ });
1290
+ var rendererAnnotationStylesCommentHeightFix = css({
1291
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
1292
+ '& [data-annotation-draft-mark][data-annotation-inline-node]': {
1293
+ borderBottom: '2px solid transparent',
1294
+ cursor: 'pointer',
1295
+ padding: '1px 0 2px',
1296
+ background: "var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"),
1297
+ borderBottomColor: "var(--ds-border-accent-yellow, ".concat(Y300, ")"),
1298
+ boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")")
1299
+ },
1300
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
1301
+ '& [data-annotation-draft-mark][data-annotation-inline-node][data-inline-card]': {
1302
+ padding: '5px 0 3px 0'
1303
+ },
1304
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
1305
+ '& [data-annotation-draft-mark][data-annotation-inline-node].date-lozenger-container': {
1306
+ paddingTop: "var(--ds-space-025, 2px)"
1307
+ }
1308
+ });
1309
+ export var RendererStyleContainer = function RendererStyleContainer(props) {
1310
+ var onClick = props.onClick,
1311
+ onMouseDown = props.onMouseDown,
1312
+ appearance = props.appearance,
1313
+ allowNestedHeaderLinks = props.allowNestedHeaderLinks,
1314
+ allowColumnSorting = props.allowColumnSorting,
1315
+ allowAnnotations = props.allowAnnotations,
1316
+ allowTableResizing = props.allowTableResizing,
1317
+ useBlockRenderForCodeBlock = props.useBlockRenderForCodeBlock,
1318
+ children = props.children,
1319
+ innerRef = props.innerRef,
1320
+ testId = props.testId;
1321
+ var isAdvancedLayoutsOn = editorExperiment('advanced_layouts', true);
1322
+ if (fg('platform_editor_emotion_refactor_renderer')) {
1323
+ return (
1324
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
1325
+ jsx("div", {
1326
+ ref: innerRef,
1327
+ onClick: onClick,
1328
+ onMouseDown: onMouseDown,
1329
+ style: {
1330
+ '--ak-renderer-base-font-size': "".concat(getBaseFontSize(appearance), "px")
1331
+ },
1332
+ css: [baseStyles, appearance === 'full-page' && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, telepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, fg('platform_editor_typography_ugc') ? headingsSharedStylesWithEditorUGC : headingsSharedStyles, fg('platform_editor_heading_margin_fix') && headingWithAlignmentStyles, ruleSharedStyles, fg('platform_editor_typography_ugc') ? paragraphSharedStylesWithEditorUGC : paragraphSharedStyles, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, indentationSharedStyles, blockMarksSharedStyles, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, tasksAndDecisionsStyles, smartCardStyles,
1333
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
1334
+ fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStyles,
1335
+ // eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
1336
+ fg('editor_inline_comments_on_inline_nodes') &&
1337
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
1338
+ fg('annotations_align_editor_and_renderer_styles') && rendererAnnotationStylesCommentHeightFix, baseOtherStyles, allowNestedHeaderLinks && alignedHeadingAnchorStyle, mediaSingleSharedStyle, tableSharedStyle, tableRendererHeaderStylesForTableCellOnly, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, editorExperiment('nested-dnd', true) ? firstNodeWithNotMarginTopWithNestedDnD : firstNodeWithNotMarginTop, rendererTableStyles, isStickyScrollbarEnabled(appearance) && stickyScrollbarStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && allowNestedHeaderLinks && rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks, rendererTableColumnStyles, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles],
1339
+ "data-testid": testId
1340
+ }, children)
1341
+ );
1342
+ }
1343
+ return (
1344
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
1345
+ jsx("div", {
1346
+ ref: innerRef,
1347
+ onClick: onClick,
1348
+ onMouseDown: onMouseDown
1349
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
1350
+ ,
1351
+ css: rendererStyles({
1352
+ appearance: appearance,
1353
+ allowNestedHeaderLinks: allowNestedHeaderLinks,
1354
+ allowColumnSorting: !!allowColumnSorting,
1355
+ useBlockRenderForCodeBlock: useBlockRenderForCodeBlock,
1356
+ allowAnnotations: allowAnnotations,
1357
+ allowTableResizing: allowTableResizing
1358
+ }),
1359
+ "data-testid": testId
1360
+ }, props.children)
1361
+ );
1362
+ };