@atlaskit/renderer 126.4.0 → 126.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- var _css, _css7;
2
+ var _css8;
3
3
  /* eslint-disable @atlaskit/ui-styling-standard/no-important-styles, @atlaskit/ui-styling-standard/no-unsafe-selectors */
4
4
  /* eslint-disable @atlaskit/ui-styling-standard/no-imported-style-values */
5
5
  /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values */
@@ -47,14 +47,14 @@ var isBackgroundClipBrowserFixNeeded = function isBackgroundClipBrowserFixNeeded
47
47
 
48
48
  // styles are copied from ./style.tsx
49
49
  // 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
50
- var baseStyles = css((_css = {
50
+ var baseStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
51
51
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
52
52
  fontSize: 'var(--ak-renderer-base-font-size)',
53
53
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
54
54
  lineHeight: '1.5rem',
55
55
  color: "var(--ds-text, ".concat(N800, ")"),
56
56
  '--ak-editor--full-width-layout-width': "".concat(akEditorFullWidthLayoutWidth, "px")
57
- }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_css, ".".concat(RendererCssClassName.DOCUMENT, "::after"), {
57
+ }, ".".concat(RendererCssClassName.DOCUMENT, "::after"), {
58
58
  // we add a clearfix after ak-renderer-document in order to
59
59
  // contain internal floats (such as media images that are "wrap-left")
60
60
  // to just the renderer (and not spill outside of it)
@@ -84,48 +84,7 @@ var baseStyles = css((_css = {
84
84
  })), "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), {
85
85
  height: '18px',
86
86
  transform: "translateY(-2px)"
87
- }))), '& h1, & h2, & h3, & h4, & h5, & h6', _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
88
- position: 'absolute',
89
- marginLeft: "var(--ds-space-075, 6px)",
90
- button: {
91
- paddingLeft: 0,
92
- paddingRight: 0
93
- },
94
- /**
95
- * Adds the visibility of the button when in focus through keyboard navigation.
96
- */
97
- 'button:focus': {
98
- opacity: 1,
99
- transform: 'none !important'
100
- }
101
- }), "@media (hover: hover) and (pointer: fine)", _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
102
- '> button': {
103
- opacity: 0,
104
- transform: "translate(-8px, 0px)",
105
- transition: "opacity 0.2s ease 0s, transform 0.2s ease 0s"
106
- }
107
- }), '&:hover', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName, " > button"), {
108
- opacity: 1,
109
- transform: 'none !important'
110
- })))), '& h1', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
111
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
112
- lineHeight: "".concat(28 / 24, "em")
113
- })), '& h2', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
114
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
115
- lineHeight: "".concat(24 / 20, "em")
116
- })), '& h3', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
117
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
118
- lineHeight: "".concat(20 / 16, "em")
119
- })), '& h4', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
120
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
121
- lineHeight: "".concat(16 / 14, "em")
122
- })), '& h5', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
123
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
124
- lineHeight: "".concat(16 / 12, "em")
125
- })), '& h6', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
126
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
127
- lineHeight: "".concat(16 / 11, "em")
128
- })), "& span.akActionMark", {
87
+ }))), "& span.akActionMark", {
129
88
  color: "var(--ds-link, ".concat(B400, ")"),
130
89
  textDecoration: 'none',
131
90
  cursor: 'pointer',
@@ -136,9 +95,109 @@ var baseStyles = css((_css = {
136
95
  '&:active': {
137
96
  color: "var(--ds-link-pressed, ".concat(B500, ")")
138
97
  }
139
- }), _defineProperty(_css, '& span[data-placeholder]', {
98
+ }), '& span[data-placeholder]', {
140
99
  color: "var(--ds-text-subtlest, ".concat(N200, ")")
141
- })));
100
+ }));
101
+ var headingAnchorStylesDuplicateAnchor = css({
102
+ '& h1, & h2, & h3, & h4, & h5, & h6': _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
103
+ position: 'absolute',
104
+ marginLeft: "var(--ds-space-075, 6px)",
105
+ button: {
106
+ paddingLeft: 0,
107
+ paddingRight: 0
108
+ },
109
+ /**
110
+ * Adds the visibility of the button when in focus through keyboard navigation.
111
+ */
112
+ 'button:focus': {
113
+ opacity: 1,
114
+ transform: 'none !important'
115
+ }
116
+ }), "@media (hover: hover) and (pointer: fine)", _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
117
+ '> button': {
118
+ opacity: 0,
119
+ transform: 'translate(-8px, 0px)',
120
+ transition: 'opacity 0.2s ease 0s, transform 0.2s ease 0s'
121
+ }
122
+ }), '&:hover', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName, " > button"), {
123
+ opacity: 1,
124
+ transform: 'none !important'
125
+ }))),
126
+ '& h1': _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
127
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
128
+ lineHeight: "".concat(28 / 24, "em")
129
+ }),
130
+ '& h2': _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
131
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
132
+ lineHeight: "".concat(24 / 20, "em")
133
+ }),
134
+ '& h3': _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
135
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
136
+ lineHeight: "".concat(20 / 16, "em")
137
+ }),
138
+ '& h4': _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
139
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
140
+ lineHeight: "".concat(16 / 14, "em")
141
+ }),
142
+ '& h5': _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
143
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
144
+ lineHeight: "".concat(16 / 12, "em")
145
+ }),
146
+ '& h6': _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
147
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
148
+ lineHeight: "".concat(16 / 11, "em")
149
+ })
150
+ });
151
+ var headingAnchorStyles = css({
152
+ '& .renderer-heading-wrapper': _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
153
+ marginLeft: "var(--ds-space-075, 6px)",
154
+ button: {
155
+ paddingLeft: 0,
156
+ paddingRight: 0
157
+ },
158
+ /**
159
+ * Adds the visibility of the button when in focus through keyboard navigation.
160
+ */
161
+ 'button:focus': {
162
+ opacity: 1,
163
+ transform: 'none !important'
164
+ }
165
+ }), "@media (hover: hover) and (pointer: fine)", _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
166
+ '> button': {
167
+ opacity: 0,
168
+ transform: "translate(-8px, 0px)",
169
+ transition: "opacity 0.2s ease 0s, transform 0.2s ease 0s"
170
+ }
171
+ }), '&:hover', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName, " > button"), {
172
+ opacity: 1,
173
+ transform: 'none !important'
174
+ }))),
175
+ // Line-height for heading anchor based on heading level (via data-level attribute on .renderer-heading-wrapper)
176
+ '& .renderer-heading-wrapper[data-level="1"]': _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
177
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
178
+ lineHeight: "".concat(28 / 24, "em")
179
+ }),
180
+ '& .renderer-heading-wrapper[data-level="2"]': _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
181
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
182
+ lineHeight: "".concat(24 / 20, "em")
183
+ }),
184
+ '& .renderer-heading-wrapper[data-level="3"]': _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
185
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
186
+ lineHeight: "".concat(20 / 16, "em")
187
+ }),
188
+ '& .renderer-heading-wrapper[data-level="4"]': _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
189
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
190
+ lineHeight: "".concat(16 / 14, "em")
191
+ }),
192
+ '& .renderer-heading-wrapper[data-level="5"]': _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
193
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
194
+ lineHeight: "".concat(16 / 12, "em")
195
+ }),
196
+ '& .renderer-heading-wrapper[data-level="6"]': _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
197
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
198
+ lineHeight: "".concat(16 / 11, "em")
199
+ })
200
+ });
142
201
  var akEditorBreakpointForSmallDevice = '1266px';
143
202
  var responsiveBreakoutWidth = css(_defineProperty({
144
203
  '--ak-editor--breakout-container-without-gutter-width': "calc(100cqw - ".concat(akEditorGutterPadding, "px * 2)"),
@@ -163,7 +222,7 @@ var responsiveBreakoutWidthWithReducedPadding = css(_defineProperty(_definePrope
163
222
  }), "@media (max-width: ".concat(akEditorFullPageNarrowBreakout, "px)"), {
164
223
  '--ak-editor--breakout-container-without-gutter-width': "calc(100cqw - var(--ak-renderer--full-page-gutter) * 2)"
165
224
  }));
166
- var hideHeadingCopyLinkWrapperStyles = css({
225
+ var hideHeadingCopyLinkWrapperStylesDuplicateAnchor = css({
167
226
  '& h1, & h2, & h3, & h4, & h5, & h6': _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
168
227
  '&:focus-within': {
169
228
  opacity: 1
@@ -175,6 +234,18 @@ var hideHeadingCopyLinkWrapperStyles = css({
175
234
  opacity: 1
176
235
  })))
177
236
  });
237
+ var hideHeadingCopyLinkWrapperStyles = css({
238
+ '& .renderer-heading-wrapper': _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
239
+ '&:focus-within': {
240
+ opacity: 1
241
+ }
242
+ }), "@media (hover: hover) and (pointer: fine)", _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
243
+ opacity: 0,
244
+ transition: "opacity 0.2s ease 0s"
245
+ }), '&:hover', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
246
+ opacity: 1
247
+ })))
248
+ });
178
249
  var rendererFullPageStyles = css({
179
250
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
180
251
  maxWidth: "".concat(akEditorDefaultLayoutWidth, "px"),
@@ -241,7 +312,7 @@ var rovoTelepointerStyles = css(_defineProperty({}, "#".concat(TELEPOINTER_ID),
241
312
  fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
242
313
  fontWeight: "var(--ds-font-weight-semibold, 600)",
243
314
  color: "var(--ds-text-inverse, white)",
244
- background: "var(--ds-text, #292A2E)",
315
+ backgroundColor: "var(--ds-text, #292A2E)",
245
316
  top: 1,
246
317
  left: 1,
247
318
  borderRadius: "0px ".concat("var(--ds-space-050, 4px)", " ", "var(--ds-space-050, 4px)", " 0px"),
@@ -307,86 +378,6 @@ var blockquoteSharedStyles = css({
307
378
  }
308
379
  });
309
380
  var headingsSharedStyles = css({
310
- '& h1': {
311
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
312
- fontSize: "".concat(24 / 14, "em"),
313
- fontStyle: 'inherit',
314
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
315
- lineHeight: 28 / 24,
316
- color: "var(--ds-text, #292A2E)",
317
- fontWeight: "var(--ds-font-weight-medium, 500)",
318
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
319
- letterSpacing: "-0.01em",
320
- marginBottom: 0,
321
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
322
- marginTop: '1.667em'
323
- },
324
- '& h2': {
325
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
326
- fontSize: "".concat(20 / 14, "em"),
327
- fontStyle: 'inherit',
328
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
329
- lineHeight: 24 / 20,
330
- color: "var(--ds-text, #292A2E)",
331
- fontWeight: "var(--ds-font-weight-medium, 500)",
332
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
333
- letterSpacing: "-0.008em",
334
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
335
- marginTop: '1.8em',
336
- marginBottom: 0
337
- },
338
- '& h3': {
339
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
340
- fontSize: "".concat(16 / 14, "em"),
341
- fontStyle: 'inherit',
342
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
343
- lineHeight: 20 / 16,
344
- color: "var(--ds-text, #292A2E)",
345
- fontWeight: "var(--ds-font-weight-semibold, 600)",
346
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
347
- letterSpacing: "-0.006em",
348
- marginTop: "var(--ds-space-400, 2em)",
349
- marginBottom: 0
350
- },
351
- '& h4': {
352
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
353
- fontSize: "".concat(14 / 14, "em"),
354
- fontStyle: 'inherit',
355
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
356
- lineHeight: 16 / 14,
357
- color: "var(--ds-text, #292A2E)",
358
- fontWeight: "var(--ds-font-weight-semibold, 600)",
359
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
360
- letterSpacing: "-0.003em",
361
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
362
- marginTop: '1.357em'
363
- },
364
- '& h5': {
365
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
366
- fontSize: "".concat(12 / 14, "em"),
367
- fontStyle: 'inherit',
368
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
369
- lineHeight: 16 / 12,
370
- color: "var(--ds-text, #292A2E)",
371
- fontWeight: "var(--ds-font-weight-semibold, 600)",
372
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
373
- marginTop: '1.667em',
374
- textTransform: 'none'
375
- },
376
- '& h6': {
377
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
378
- fontSize: "".concat(11 / 14, "em"),
379
- fontStyle: 'inherit',
380
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
381
- lineHeight: 16 / 11,
382
- color: "var(--ds-text-subtlest, #6B6E76)",
383
- fontWeight: "var(--ds-font-weight-bold, 653)",
384
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
385
- marginTop: '1.455em',
386
- textTransform: 'none'
387
- }
388
- });
389
- var headingsSharedStylesWithEditorUGC = css({
390
381
  '& h1': {
391
382
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
392
383
  font: "var(--ak-renderer-editor-font-heading-h1)",
@@ -453,7 +444,44 @@ var headingsSharedStylesWithEditorUGC = css({
453
444
  }
454
445
  }
455
446
  });
456
- var headingWithAlignmentStyles = css({
447
+
448
+ /**
449
+ * When the copy-link a11y fix is enabled, the heading copy-link button is a sibling of the heading
450
+ * text within `.renderer-heading-wrapper`. To ensure the button sits immediately after the last
451
+ * rendered character (including when the heading wraps), the heading itself needs to participate in
452
+ * inline layout.
453
+ *
454
+ * Since inline elements don't support vertical margins in normal flow, we migrate the UGC heading
455
+ * `marginTop` values (from `headingsSharedStyles`) onto the wrapper.
456
+ */
457
+ var headingWrapperInlineFlowStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
458
+ // Ensure heading and copy-link button participate in inline flow so the button sits after the final wrapped line of text.
459
+ '& .renderer-heading-wrapper > h1, & .renderer-heading-wrapper > h2, & .renderer-heading-wrapper > h3, & .renderer-heading-wrapper > h4, & .renderer-heading-wrapper > h5, & .renderer-heading-wrapper > h6': {
460
+ display: 'inline'
461
+ }
462
+ }, "& .renderer-heading-wrapper > .".concat(HeadingAnchorWrapperClassName), {
463
+ display: 'inline',
464
+ verticalAlign: 'baseline'
465
+ }), '& .renderer-heading-wrapper[data-level="1"]', {
466
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
467
+ marginTop: '1.45833em'
468
+ }), '& .renderer-heading-wrapper[data-level="2"]', {
469
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
470
+ marginTop: '1.4em'
471
+ }), '& .renderer-heading-wrapper[data-level="3"]', {
472
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
473
+ marginTop: '1.31249em'
474
+ }), '& .renderer-heading-wrapper[data-level="4"]', {
475
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
476
+ marginTop: '1.25em'
477
+ }), '& .renderer-heading-wrapper[data-level="5"]', {
478
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
479
+ marginTop: '1.45833em'
480
+ }), '& .renderer-heading-wrapper[data-level="6"]', {
481
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
482
+ marginTop: '1.59091em'
483
+ }));
484
+ var headingWithAlignmentStylesDuplicateAnchor = css({
457
485
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
458
486
  '.fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)': {
459
487
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
@@ -496,6 +524,25 @@ var headingWithAlignmentStyles = css({
496
524
  }
497
525
  }
498
526
  });
527
+ var headingWithAlignmentStyles = css({
528
+ // Center alignment for heading wrapper - flex container needs justify-content instead of text-align
529
+ '.fabric-editor-block-mark[data-align="center"] > .renderer-heading-wrapper': {
530
+ justifyContent: 'center'
531
+ },
532
+ // Right/end alignment for heading wrapper - flex container needs justify-content instead of text-align
533
+ '.fabric-editor-block-mark[data-align="end"] > .renderer-heading-wrapper': {
534
+ justifyContent: 'flex-end'
535
+ },
536
+ // Set marginTop: 0 if alignment block is next to a gap cursor or widget that is first child
537
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
538
+ '.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': {
539
+ // With inline headings, apply marginTop to the wrapper (not the h1-h6).
540
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
541
+ '> .renderer-heading-wrapper:first-child': {
542
+ marginTop: 0
543
+ }
544
+ }
545
+ });
499
546
  var ruleSharedStyles = css({
500
547
  '& hr': {
501
548
  border: 'none',
@@ -552,24 +599,24 @@ var paragraphSharedStyleScaledMargin = css({
552
599
  letterSpacing: '-0.005em'
553
600
  }
554
601
  });
555
- var listsSharedStyles = css((_css7 = {
602
+ var listsSharedStyles = css((_css8 = {
556
603
  /* =============== INDENTATION SPACING ========= */
557
604
  'ul, ol': {
558
605
  boxSizing: 'border-box',
559
606
  paddingLeft: "var(--ed--list--item-counter--padding, ".concat(listItemCounterPadding, "px)")
560
607
  }
561
- }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_css7, "".concat(orderedListSelector, ", ").concat(bulletListSelector), {
608
+ }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_css8, "".concat(orderedListSelector, ", ").concat(bulletListSelector), {
562
609
  /*
563
- Ensures list item content adheres to the list's margin instead
564
- of filling the entire block row. This is important to allow
565
- clicking interactive elements which are floated next to a list.
566
- For some history and context on this block, see PRs related to tickets.:
567
- @see ED-6551 - original issue.
568
- @see ED-7015 - follow up issue.
569
- @see ED-7447 - flow-root change.
570
- used to have display: 'table' in tag template style but not supported in object styles
571
- removed display: 'table' as 'flow-root' is supported in latest browsers
572
- @see https://css-tricks.com/display-flow-root/
610
+ Ensures list item content adheres to the list's margin instead
611
+ of filling the entire block row. This is important to allow
612
+ clicking interactive elements which are floated next to a list.
613
+ For some history and context on this block, see PRs related to tickets.:
614
+ @see ED-6551 - original issue.
615
+ @see ED-7015 - follow up issue.
616
+ @see ED-7447 - flow-root change.
617
+ used to have display: 'table' in tag template style but not supported in object styles
618
+ removed display: 'table' as 'flow-root' is supported in latest browsers
619
+ @see https://css-tricks.com/display-flow-root/
573
620
  */
574
621
  display: 'flow-root'
575
622
  }), 'ul, ul ul ul ul', {
@@ -590,7 +637,7 @@ var listsSharedStyles = css((_css7 = {
590
637
  listStyleType: 'lower-alpha'
591
638
  }), 'ol[data-indent-level="3"], ol[data-indent-level="6"]', {
592
639
  listStyleType: 'lower-roman'
593
- }), _defineProperty(_defineProperty(_defineProperty(_css7, 'ul[data-indent-level="1"], ul[data-indent-level="4"]', {
640
+ }), _defineProperty(_defineProperty(_defineProperty(_css8, 'ul[data-indent-level="1"], ul[data-indent-level="4"]', {
594
641
  listStyleType: 'disc'
595
642
  }), 'ul[data-indent-level="2"], ul[data-indent-level="5"]', {
596
643
  listStyleType: 'circle'
@@ -660,7 +707,7 @@ var indentationSharedStylesWithMarginFix = css({
660
707
  }
661
708
  }
662
709
  });
663
- 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", {
710
+ var blockMarksSharedStylesDuplicateAnchor = 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", {
664
711
  'p, h1, h2, h3, h4, h5, h6, .heading-wrapper': {
665
712
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
666
713
  ':first-child:not(style), style:first-child + *': {
@@ -668,6 +715,22 @@ var blockMarksSharedStyles = css(_defineProperty({}, "*:not(.fabric-editor-block
668
715
  }
669
716
  }
670
717
  }));
718
+ 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", {
719
+ 'p, .heading-wrapper': {
720
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
721
+ ':first-child:not(style), style:first-child + *': {
722
+ marginTop: 0
723
+ }
724
+ },
725
+ '.renderer-heading-wrapper': {
726
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
727
+ ':first-child:not(style), style:first-child + *': {
728
+ 'h1, h2, h3, h4, h5, h6': {
729
+ marginTop: 0
730
+ }
731
+ }
732
+ }
733
+ }));
671
734
  var codeMarkSharedStyles = css({
672
735
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
673
736
  '.code': {
@@ -828,7 +891,10 @@ var tasksAndDecisionsStyles = css({
828
891
  }
829
892
  },
830
893
  'div[data-task-list-local-id]': {
831
- margin: "var(--ds-space-150, 12px)".concat(" 0 0 0"),
894
+ marginTop: "var(--ds-space-150, 12px)",
895
+ marginRight: 0,
896
+ marginBottom: 0,
897
+ marginLeft: 0,
832
898
  // If task item is not first in the list then set margin top to 4px.
833
899
  'div + div': {
834
900
  marginTop: "var(--ds-space-050, 4px)"
@@ -879,6 +945,78 @@ var headerSmartCardStyles = css({
879
945
  }
880
946
  }
881
947
  });
948
+ var baseOtherStylesDuplicateAnchor = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
949
+ '& .UnknownBlock': {
950
+ fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
951
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
952
+ fontSize: "".concat(14 / 16, "rem"),
953
+ fontWeight: "var(--ds-font-weight-regular, 400)",
954
+ whiteSpace: 'pre-wrap',
955
+ wordWrap: 'break-word'
956
+ },
957
+ '& span.date-node': {
958
+ backgroundColor: "var(--ds-background-neutral, ".concat(N30A, ")"),
959
+ borderRadius: "var(--ds-radius-small, 3px)",
960
+ color: "var(--ds-text, ".concat(N800, ")"),
961
+ paddingTop: "var(--ds-space-025, 2px)",
962
+ paddingRight: "var(--ds-space-050, 4px)",
963
+ paddingBottom: "var(--ds-space-025, 2px)",
964
+ paddingLeft: "var(--ds-space-050, 4px)",
965
+ margin: "0 1px",
966
+ transition: "background 0.3s"
967
+ },
968
+ '& span.date-node-highlighted': {
969
+ backgroundColor: "var(--ds-background-danger, ".concat(R50, ")"),
970
+ color: "var(--ds-text-danger, ".concat(R500, ")")
971
+ },
972
+ '& .renderer-image': {
973
+ maxWidth: '100%',
974
+ display: 'block',
975
+ marginTop: "var(--ds-space-300, 24px)",
976
+ marginRight: 0,
977
+ marginBottom: "var(--ds-space-300, 24px)",
978
+ marginLeft: 0
979
+ }
980
+ }, ".".concat(richMediaClassName, ".rich-media-wrapped + .").concat(richMediaClassName, ":not(.rich-media-wrapped)"), {
981
+ clear: 'both'
982
+ }), "& .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"), {
983
+ clear: 'both'
984
+ }), '& .rich-media-wrapped', {
985
+ '& + .renderer-heading-wrapper': {
986
+ 'h1, h2, h3, h4, h5, h6': {
987
+ marginTop: "var(--ds-space-100, 8px)"
988
+ }
989
+ }
990
+ }), 'div[class^="image-wrap-"] + div[class^="image-wrap-"]', {
991
+ marginLeft: 0,
992
+ marginRight: 0
993
+ }), ".".concat(RendererCssClassName.DOCUMENT, " >"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "*:not([data-mark-type='fragment']) .".concat(TableSharedCssClassName.TABLE_CONTAINER), {
994
+ // Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
995
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
996
+ // TODO - improve inline style logic on table container so important styles aren't required here
997
+ width: '100% !important',
998
+ left: '0 !important'
999
+ }), "[data-mark-type='fragment'] * .".concat(TableSharedCssClassName.TABLE_CONTAINER), {
1000
+ // Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
1001
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
1002
+ // TODO - improve inline style logic on table container so important styles aren't required here
1003
+ width: '100% !important',
1004
+ left: '0 !important'
1005
+ }), "* .".concat(RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER), {
1006
+ overflowX: 'auto'
1007
+ }), "& .".concat(RendererCssClassName.EXTENSION, ":first-child"), {
1008
+ marginTop: 0
1009
+ })), ".".concat(RendererCssClassName.DOCUMENT), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(RendererCssClassName.EXTENSION), {
1010
+ marginTop: "".concat(blockNodesVerticalMargin)
1011
+ }), ".".concat(RendererCssClassName.EXTENSION_CENTER_ALIGN), {
1012
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
1013
+ marginLeft: '50%',
1014
+ transform: 'translateX(-50%)'
1015
+ }), ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER), {
1016
+ overflowX: 'auto'
1017
+ }), ".".concat(shadowObserverClassNames.SHADOW_CONTAINER, " .").concat(TableSharedCssClassName.TABLE_NODE_WRAPPER), {
1018
+ display: 'flex'
1019
+ })));
882
1020
  var baseOtherStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
883
1021
  '& .UnknownBlock': {
884
1022
  fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
@@ -889,29 +1027,37 @@ var baseOtherStyles = css(_defineProperty(_defineProperty(_defineProperty(_defin
889
1027
  wordWrap: 'break-word'
890
1028
  },
891
1029
  '& span.date-node': {
892
- background: "var(--ds-background-neutral, ".concat(N30A, ")"),
1030
+ backgroundColor: "var(--ds-background-neutral, ".concat(N30A, ")"),
893
1031
  borderRadius: "var(--ds-radius-small, 3px)",
894
1032
  color: "var(--ds-text, ".concat(N800, ")"),
895
- padding: "var(--ds-space-025, 2px)".concat(" ", "var(--ds-space-050, 4px)"),
1033
+ paddingTop: "var(--ds-space-025, 2px)",
1034
+ paddingRight: "var(--ds-space-050, 4px)",
1035
+ paddingBottom: "var(--ds-space-025, 2px)",
1036
+ paddingLeft: "var(--ds-space-050, 4px)",
896
1037
  margin: "0 1px",
897
1038
  transition: "background 0.3s"
898
1039
  },
899
1040
  '& span.date-node-highlighted': {
900
- background: "var(--ds-background-danger, ".concat(R50, ")"),
1041
+ backgroundColor: "var(--ds-background-danger, ".concat(R50, ")"),
901
1042
  color: "var(--ds-text-danger, ".concat(R500, ")")
902
1043
  },
903
1044
  '& .renderer-image': {
904
1045
  maxWidth: '100%',
905
1046
  display: 'block',
906
- margin: "var(--ds-space-300, 24px)".concat(" 0")
1047
+ marginTop: "var(--ds-space-300, 24px)",
1048
+ marginRight: 0,
1049
+ marginBottom: "var(--ds-space-300, 24px)",
1050
+ marginLeft: 0
907
1051
  }
908
1052
  }, ".".concat(richMediaClassName, ".rich-media-wrapped + .").concat(richMediaClassName, ":not(.rich-media-wrapped)"), {
909
1053
  clear: 'both'
910
1054
  }), "& .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"), {
911
1055
  clear: 'both'
912
1056
  }), '& .rich-media-wrapped', {
913
- '& + h1, & + h2, & + h3, & + h4, & + h5, & + h6': {
914
- marginTop: "var(--ds-space-100, 8px)"
1057
+ '& + .renderer-heading-wrapper': {
1058
+ 'h1, h2, h3, h4, h5, h6': {
1059
+ marginTop: "var(--ds-space-100, 8px)"
1060
+ }
915
1061
  }
916
1062
  }), 'div[class^="image-wrap-"] + div[class^="image-wrap-"]', {
917
1063
  marginLeft: 0,
@@ -943,7 +1089,7 @@ var baseOtherStyles = css(_defineProperty(_defineProperty(_defineProperty(_defin
943
1089
  }), ".".concat(shadowObserverClassNames.SHADOW_CONTAINER, " .").concat(TableSharedCssClassName.TABLE_NODE_WRAPPER), {
944
1090
  display: 'flex'
945
1091
  })));
946
- var alignedHeadingAnchorStyle = css({
1092
+ var alignedHeadingAnchorStyleDuplicateAnchor = css({
947
1093
  // Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
948
1094
  // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
949
1095
  // TODO Delete this comment after verifying space token -> previous value `margin: 6px`
@@ -954,7 +1100,44 @@ var alignedHeadingAnchorStyle = css({
954
1100
  },
955
1101
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
956
1102
  '.fabric-editor-block-mark:not([data-align="center"])[data-align]': _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
957
- margin: "0 ".concat("var(--ds-space-075, 6px)", " 0 0"),
1103
+ marginTop: 0,
1104
+ marginRight: "var(--ds-space-075, 6px)",
1105
+ marginBottom: 0,
1106
+ marginLeft: 0,
1107
+ // If the anchor is right aligned then the left side of the heading
1108
+ // is aligned with the left side of the anchor.
1109
+ // In order to align as expected we transform it the width of the element (plus our expected 6px)
1110
+ // to the left
1111
+ transform: "translateX(calc(-100% - ".concat("var(--ds-space-075, 6px)", "))")
1112
+ }), '@media (hover: hover) and (pointer: fine)', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName, " > button"), {
1113
+ transform: "translate(8px, 0px)"
1114
+ }))
1115
+ });
1116
+ var alignedHeadingAnchorStyle = css({
1117
+ // Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
1118
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
1119
+ // TODO Delete this comment after verifying space token -> previous value `margin: 6px`
1120
+ '.fabric-editor-block-mark[data-align] >': {
1121
+ '.renderer-heading-wrapper': {
1122
+ 'h1, h2, h3, h4, h5, h6': {
1123
+ position: 'relative'
1124
+ }
1125
+ }
1126
+ },
1127
+ // Center alignment for heading wrapper - flex container needs justify-content instead of text-align
1128
+ '.fabric-editor-block-mark[data-align="center"] > .renderer-heading-wrapper': {
1129
+ justifyContent: 'center'
1130
+ },
1131
+ // Right/end alignment for heading wrapper - flex container needs justify-content instead of text-align
1132
+ '.fabric-editor-block-mark[data-align="end"] > .renderer-heading-wrapper': {
1133
+ justifyContent: 'flex-end'
1134
+ },
1135
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
1136
+ '.fabric-editor-block-mark:not([data-align="center"])[data-align]': _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
1137
+ marginTop: 0,
1138
+ marginRight: "var(--ds-space-075, 6px)",
1139
+ marginBottom: 0,
1140
+ marginLeft: 0,
958
1141
  // If the anchor is right aligned then the left side of the heading
959
1142
  // is aligned with the left side of the anchor.
960
1143
  // In order to align as expected we transform it the width of the element (plus our expected 6px)
@@ -1010,7 +1193,10 @@ var mediaSingleSharedStyle = css(_defineProperty(_defineProperty(_defineProperty
1010
1193
  "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']": {
1011
1194
  float: 'none',
1012
1195
  overflow: 'auto',
1013
- margin: "var(--ds-space-150, 12px)".concat(" 0")
1196
+ marginTop: "var(--ds-space-150, 12px)",
1197
+ marginRight: 0,
1198
+ marginBottom: "var(--ds-space-150, 12px)",
1199
+ marginLeft: 0
1014
1200
  }
1015
1201
  }));
1016
1202
 
@@ -1083,7 +1269,10 @@ var tableSharedStyle = css(_defineProperty(_defineProperty(_defineProperty(_defi
1083
1269
  }
1084
1270
  }, ".".concat(TableSharedCssClassName.TABLE_CONTAINER), {
1085
1271
  position: 'relative',
1086
- margin: "0 auto ".concat("var(--ds-space-200, 16px)"),
1272
+ marginTop: 0,
1273
+ marginRight: 'auto',
1274
+ marginBottom: "var(--ds-space-200, 16px)",
1275
+ marginLeft: 'auto',
1087
1276
  boxSizing: 'border-box',
1088
1277
  /**
1089
1278
  * Fix block top alignment inside table cells.
@@ -1100,9 +1289,15 @@ var tableSharedStyle = css(_defineProperty(_defineProperty(_defineProperty(_defi
1100
1289
  }), ".".concat(TableSharedCssClassName.TABLE_RESIZER_CONTAINER, " table"), {
1101
1290
  willChange: 'width'
1102
1291
  }), ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table"), {
1103
- margin: "var(--ds-space-300, 24px)".concat(" 0 0 0")
1292
+ marginTop: "var(--ds-space-300, 24px)",
1293
+ marginRight: 0,
1294
+ marginBottom: 0,
1295
+ marginLeft: 0
1104
1296
  }), ".".concat(TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t.").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
1105
- margin: "var(--ds-space-300, 24px)".concat(" ", "var(--ds-space-100, 8px)", " 0 0")
1297
+ marginTop: "var(--ds-space-300, 24px)",
1298
+ marginRight: "var(--ds-space-100, 8px)",
1299
+ marginBottom: 0,
1300
+ marginLeft: 0
1106
1301
  }), ".".concat(TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t.").concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table,\n\t.").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
1107
1302
  borderCollapse: 'collapse',
1108
1303
  border: "".concat(tableCellBorderWidth, "px solid ", "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")")),
@@ -1161,7 +1356,10 @@ var tableRendererHeaderStylesForTableCellOnly = css(_defineProperty({}, ".".conc
1161
1356
  border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")")),
1162
1357
  borderRightWidth: 0,
1163
1358
  borderBottomWidth: 0,
1164
- padding: "var(--ds-space-100, 8px)",
1359
+ paddingTop: "var(--ds-space-100, 8px)",
1360
+ paddingRight: "var(--ds-space-100, 8px)",
1361
+ paddingBottom: "var(--ds-space-100, 8px)",
1362
+ paddingLeft: "var(--ds-space-100, 8px)",
1165
1363
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
1166
1364
  'th p:not(:first-of-type), td p:not(:first-of-type)': {
1167
1365
  marginTop: "var(--ds-space-150, 12px)"
@@ -1307,7 +1505,7 @@ var rendererTableColumnStyles = css(_defineProperty({}, ".".concat(RendererCssCl
1307
1505
  borderRight: "0px none"
1308
1506
  })
1309
1507
  }));
1310
- 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), {
1508
+ var rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinksDuplicateAnchor = 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), {
1311
1509
  position: 'unset'
1312
1510
  }), '>', {
1313
1511
  'h1, h2, h3, h4, h5, h6': {
@@ -1315,6 +1513,15 @@ var rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks = css(_defineProp
1315
1513
  marginRight: '30px'
1316
1514
  }
1317
1515
  }))))));
1516
+ 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), {
1517
+ position: 'unset'
1518
+ }), '> .renderer-heading-wrapper', {
1519
+ // Reserve space for the sortable-column icon so the heading+anchor wrapper never overlaps it.
1520
+ // Use padding (instead of margin on the heading) so we don't create a gap between the heading
1521
+ // text and the copy-link anchor button
1522
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
1523
+ paddingRight: '30px'
1524
+ }))))));
1318
1525
 
1319
1526
  // @ts-expect-error - throw TS error when use !import in position.
1320
1527
  var stickyHeaderStyles = css({
@@ -1486,7 +1693,10 @@ var rendererAnnotationStyles = css({
1486
1693
  borderBottom: "var(--ds-border-width-selected, 2px)".concat(" solid ", "var(--ds-border-accent-yellow, ".concat(Y300, ")")),
1487
1694
  boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")"),
1488
1695
  cursor: 'pointer',
1489
- padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-025, 2px)")
1696
+ paddingTop: "var(--ds-space-050, 4px)",
1697
+ paddingRight: "var(--ds-space-025, 2px)",
1698
+ paddingBottom: "var(--ds-space-050, 4px)",
1699
+ paddingLeft: "var(--ds-space-025, 2px)"
1490
1700
  }
1491
1701
  });
1492
1702
  var rendererAnnotationStylesCommentHeightFix = css({
@@ -1494,8 +1704,12 @@ var rendererAnnotationStylesCommentHeightFix = css({
1494
1704
  '& [data-annotation-draft-mark][data-annotation-inline-node]': {
1495
1705
  borderBottom: "var(--ds-border-width-selected, 2px)".concat(" solid transparent"),
1496
1706
  cursor: 'pointer',
1497
- padding: "1px 0 ".concat("var(--ds-space-025, 2px)"),
1498
- background: "var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"),
1707
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
1708
+ paddingTop: '1px',
1709
+ paddingRight: 0,
1710
+ paddingBottom: "var(--ds-space-025, 2px)",
1711
+ paddingLeft: 0,
1712
+ backgroundColor: "var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"),
1499
1713
  borderBottomColor: "var(--ds-border-accent-yellow, ".concat(Y300, ")"),
1500
1714
  boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")")
1501
1715
  },
@@ -1672,15 +1886,15 @@ export var RendererStyleContainer = function RendererStyleContainer(props) {
1672
1886
  '--ak-renderer-editor-font-heading-h6': "".concat(editorUGCToken('editor.font.heading.h6')),
1673
1887
  '--ak-renderer-editor-font-normal-text': "".concat(editorUGCToken('editor.font.body'))
1674
1888
  },
1675
- css: [baseStyles, hideHeadingCopyLinkWrapperStyles, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) && rendererMaxWidthStyles, rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, fg('platform_editor_typography_ugc') ? headingsSharedStylesWithEditorUGC : headingsSharedStyles, headingWithAlignmentStyles, ruleSharedStyles, contentMode === 'compact' && isCompactModeSupported && extensionStyle, fg('platform_editor_typography_ugc') ? isCompactModeSupported ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC : isCompactModeSupported ? paragraphSharedStyleScaledMargin : paragraphSharedStyles, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, indentationSharedStyles, fg('platform_editor__renderer_indentation_text_margin') && indentationSharedStylesWithMarginFix, blockMarksSharedStyles, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, expValEquals('platform_editor_text_highlight_padding', 'isEnabled', true) &&
1889
+ css: [baseStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? hideHeadingCopyLinkWrapperStyles : hideHeadingCopyLinkWrapperStylesDuplicateAnchor, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) && rendererMaxWidthStyles, rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingWrapperInlineFlowStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingWithAlignmentStyles : headingWithAlignmentStylesDuplicateAnchor, ruleSharedStyles, contentMode === 'compact' && isCompactModeSupported && extensionStyle, fg('platform_editor_typography_ugc') ? isCompactModeSupported ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC : isCompactModeSupported ? paragraphSharedStyleScaledMargin : paragraphSharedStyles, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, indentationSharedStyles, fg('platform_editor__renderer_indentation_text_margin') && indentationSharedStylesWithMarginFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? blockMarksSharedStyles : blockMarksSharedStylesDuplicateAnchor, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, expValEquals('platform_editor_text_highlight_padding', 'isEnabled', true) &&
1676
1890
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
1677
1891
  textHighlightPaddingStyles, tasksAndDecisionsStyles, smartCardStyles, smartCardStylesAvatarFix, editorExperiment('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStyles,
1678
1892
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
1679
- fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, baseOtherStyles,
1893
+ fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor,
1680
1894
  // this should be placed after baseOtherStyles
1681
- expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && extensionAsInlineStyle, expValEquals('confluence_insert_excerpt_inline_vertical_align', 'isEnabled', true) && inlineExtensionRendererMarginFix, allowNestedHeaderLinks && alignedHeadingAnchorStyle, mediaSingleSharedStyle,
1895
+ expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && extensionAsInlineStyle, expValEquals('confluence_insert_excerpt_inline_vertical_align', 'isEnabled', true) && inlineExtensionRendererMarginFix, allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle,
1682
1896
  // merge firstWrappedMediaStyles with mediaSingleSharedStyle when clean up platform_editor_fix_media_in_renderer
1683
- fg('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles, tableSharedStyle, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, fg('platform_editor_nested_dnd_styles_changes') ? 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, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && responsiveBreakoutWidthFullWidth, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? isCompactModeEnabled ? scaledDenseEmojiStyles : scaledEmojiStyles : isCompactModeEnabled ? denseStyles : undefined, expValEquals('platform_synced_block', 'isEnabled', true) && syncBlockStyles, expValEquals('platform_synced_block', 'isEnabled', true) && fg('platform_synced_block_dogfooding') && syncBlockOverflowStyles],
1897
+ fg('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles, tableSharedStyle, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, fg('platform_editor_nested_dnd_styles_changes') ? firstNodeWithNotMarginTopWithNestedDnD : firstNodeWithNotMarginTop, rendererTableStyles, isStickyScrollbarEnabled(appearance) && stickyScrollbarStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks : rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinksDuplicateAnchor), rendererTableColumnStyles, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && responsiveBreakoutWidthFullWidth, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? isCompactModeEnabled ? scaledDenseEmojiStyles : scaledEmojiStyles : isCompactModeEnabled ? denseStyles : undefined, expValEquals('platform_synced_block', 'isEnabled', true) && syncBlockStyles, expValEquals('platform_synced_block', 'isEnabled', true) && fg('platform_synced_block_dogfooding') && syncBlockOverflowStyles],
1684
1898
  "data-testid": testId
1685
1899
  }, children)
1686
1900
  );