@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.
- package/CHANGELOG.md +19 -0
- package/dist/cjs/messages.js +10 -0
- package/dist/cjs/react/nodes/heading-anchor.js +14 -8
- package/dist/cjs/react/nodes/heading.js +137 -9
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +380 -166
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/messages.js +10 -0
- package/dist/es2019/react/nodes/heading-anchor.js +15 -6
- package/dist/es2019/react/nodes/heading.js +138 -9
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +426 -130
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/messages.js +10 -0
- package/dist/esm/react/nodes/heading-anchor.js +14 -8
- package/dist/esm/react/nodes/heading.js +135 -9
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +380 -166
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/messages.d.ts +10 -0
- package/dist/types/react/nodes/heading.d.ts +14 -2
- package/dist/types-ts4.5/messages.d.ts +10 -0
- package/dist/types-ts4.5/react/nodes/heading.d.ts +14 -2
- package/package.json +2 -2
|
@@ -29,7 +29,7 @@ var _getBaseFontSize = require("./get-base-font-size");
|
|
|
29
29
|
var _emoji = require("@atlaskit/editor-common/emoji");
|
|
30
30
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
31
31
|
var _syncBlock = require("@atlaskit/editor-common/sync-block");
|
|
32
|
-
var
|
|
32
|
+
var _css8;
|
|
33
33
|
/* eslint-disable @atlaskit/ui-styling-standard/no-important-styles, @atlaskit/ui-styling-standard/no-unsafe-selectors */
|
|
34
34
|
/* eslint-disable @atlaskit/ui-styling-standard/no-imported-style-values */
|
|
35
35
|
/* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values */
|
|
@@ -54,14 +54,14 @@ var isBackgroundClipBrowserFixNeeded = function isBackgroundClipBrowserFixNeeded
|
|
|
54
54
|
|
|
55
55
|
// styles are copied from ./style.tsx
|
|
56
56
|
// 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
|
|
57
|
-
var baseStyles = (0, _react.css)((
|
|
57
|
+
var baseStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
58
58
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
59
59
|
fontSize: 'var(--ak-renderer-base-font-size)',
|
|
60
60
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
61
61
|
lineHeight: '1.5rem',
|
|
62
62
|
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
63
63
|
'--ak-editor--full-width-layout-width': "".concat(_editorSharedStyles.akEditorFullWidthLayoutWidth, "px")
|
|
64
|
-
},
|
|
64
|
+
}, ".".concat(_consts.RendererCssClassName.DOCUMENT, "::after"), {
|
|
65
65
|
// we add a clearfix after ak-renderer-document in order to
|
|
66
66
|
// contain internal floats (such as media images that are "wrap-left")
|
|
67
67
|
// to just the renderer (and not spill outside of it)
|
|
@@ -91,48 +91,7 @@ var baseStyles = (0, _react.css)((_css = {
|
|
|
91
91
|
})), "h6", (0, _defineProperty2.default)({}, "> .mediaInlineView-content-wrap > .".concat(_mediaInline.INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > :is(a, span[data-mark-type='border']) .mediaInlineView-content-wrap > .").concat(_mediaInline.INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > .").concat(_mediaInline.INLINE_IMAGE_WRAPPER_CLASS_NAME, ",\n > :is(a, span[data-mark-type='border']) .").concat(_mediaInline.INLINE_IMAGE_WRAPPER_CLASS_NAME), {
|
|
92
92
|
height: '18px',
|
|
93
93
|
transform: "translateY(-2px)"
|
|
94
|
-
}))),
|
|
95
|
-
position: 'absolute',
|
|
96
|
-
marginLeft: "var(--ds-space-075, 6px)",
|
|
97
|
-
button: {
|
|
98
|
-
paddingLeft: 0,
|
|
99
|
-
paddingRight: 0
|
|
100
|
-
},
|
|
101
|
-
/**
|
|
102
|
-
* Adds the visibility of the button when in focus through keyboard navigation.
|
|
103
|
-
*/
|
|
104
|
-
'button:focus': {
|
|
105
|
-
opacity: 1,
|
|
106
|
-
transform: 'none !important'
|
|
107
|
-
}
|
|
108
|
-
}), "@media (hover: hover) and (pointer: fine)", (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
109
|
-
'> button': {
|
|
110
|
-
opacity: 0,
|
|
111
|
-
transform: "translate(-8px, 0px)",
|
|
112
|
-
transition: "opacity 0.2s ease 0s, transform 0.2s ease 0s"
|
|
113
|
-
}
|
|
114
|
-
}), '&:hover', (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName, " > button"), {
|
|
115
|
-
opacity: 1,
|
|
116
|
-
transform: 'none !important'
|
|
117
|
-
})))), '& h1', (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
118
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
119
|
-
lineHeight: "".concat(28 / 24, "em")
|
|
120
|
-
})), '& h2', (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
121
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
122
|
-
lineHeight: "".concat(24 / 20, "em")
|
|
123
|
-
})), '& h3', (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
124
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
125
|
-
lineHeight: "".concat(20 / 16, "em")
|
|
126
|
-
})), '& h4', (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
127
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
128
|
-
lineHeight: "".concat(16 / 14, "em")
|
|
129
|
-
})), '& h5', (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
130
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
131
|
-
lineHeight: "".concat(16 / 12, "em")
|
|
132
|
-
})), '& h6', (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
133
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
134
|
-
lineHeight: "".concat(16 / 11, "em")
|
|
135
|
-
})), "& span.akActionMark", {
|
|
94
|
+
}))), "& span.akActionMark", {
|
|
136
95
|
color: "var(--ds-link, ".concat(_colors.B400, ")"),
|
|
137
96
|
textDecoration: 'none',
|
|
138
97
|
cursor: 'pointer',
|
|
@@ -143,9 +102,109 @@ var baseStyles = (0, _react.css)((_css = {
|
|
|
143
102
|
'&:active': {
|
|
144
103
|
color: "var(--ds-link-pressed, ".concat(_colors.B500, ")")
|
|
145
104
|
}
|
|
146
|
-
}),
|
|
105
|
+
}), '& span[data-placeholder]', {
|
|
147
106
|
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")")
|
|
148
|
-
}))
|
|
107
|
+
}));
|
|
108
|
+
var headingAnchorStylesDuplicateAnchor = (0, _react.css)({
|
|
109
|
+
'& h1, & h2, & h3, & h4, & h5, & h6': (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
110
|
+
position: 'absolute',
|
|
111
|
+
marginLeft: "var(--ds-space-075, 6px)",
|
|
112
|
+
button: {
|
|
113
|
+
paddingLeft: 0,
|
|
114
|
+
paddingRight: 0
|
|
115
|
+
},
|
|
116
|
+
/**
|
|
117
|
+
* Adds the visibility of the button when in focus through keyboard navigation.
|
|
118
|
+
*/
|
|
119
|
+
'button:focus': {
|
|
120
|
+
opacity: 1,
|
|
121
|
+
transform: 'none !important'
|
|
122
|
+
}
|
|
123
|
+
}), "@media (hover: hover) and (pointer: fine)", (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
124
|
+
'> button': {
|
|
125
|
+
opacity: 0,
|
|
126
|
+
transform: 'translate(-8px, 0px)',
|
|
127
|
+
transition: 'opacity 0.2s ease 0s, transform 0.2s ease 0s'
|
|
128
|
+
}
|
|
129
|
+
}), '&:hover', (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName, " > button"), {
|
|
130
|
+
opacity: 1,
|
|
131
|
+
transform: 'none !important'
|
|
132
|
+
}))),
|
|
133
|
+
'& h1': (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
134
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
135
|
+
lineHeight: "".concat(28 / 24, "em")
|
|
136
|
+
}),
|
|
137
|
+
'& h2': (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
138
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
139
|
+
lineHeight: "".concat(24 / 20, "em")
|
|
140
|
+
}),
|
|
141
|
+
'& h3': (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
142
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
143
|
+
lineHeight: "".concat(20 / 16, "em")
|
|
144
|
+
}),
|
|
145
|
+
'& h4': (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
146
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
147
|
+
lineHeight: "".concat(16 / 14, "em")
|
|
148
|
+
}),
|
|
149
|
+
'& h5': (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
150
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
151
|
+
lineHeight: "".concat(16 / 12, "em")
|
|
152
|
+
}),
|
|
153
|
+
'& h6': (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
154
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
155
|
+
lineHeight: "".concat(16 / 11, "em")
|
|
156
|
+
})
|
|
157
|
+
});
|
|
158
|
+
var headingAnchorStyles = (0, _react.css)({
|
|
159
|
+
'& .renderer-heading-wrapper': (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
160
|
+
marginLeft: "var(--ds-space-075, 6px)",
|
|
161
|
+
button: {
|
|
162
|
+
paddingLeft: 0,
|
|
163
|
+
paddingRight: 0
|
|
164
|
+
},
|
|
165
|
+
/**
|
|
166
|
+
* Adds the visibility of the button when in focus through keyboard navigation.
|
|
167
|
+
*/
|
|
168
|
+
'button:focus': {
|
|
169
|
+
opacity: 1,
|
|
170
|
+
transform: 'none !important'
|
|
171
|
+
}
|
|
172
|
+
}), "@media (hover: hover) and (pointer: fine)", (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
173
|
+
'> button': {
|
|
174
|
+
opacity: 0,
|
|
175
|
+
transform: "translate(-8px, 0px)",
|
|
176
|
+
transition: "opacity 0.2s ease 0s, transform 0.2s ease 0s"
|
|
177
|
+
}
|
|
178
|
+
}), '&:hover', (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName, " > button"), {
|
|
179
|
+
opacity: 1,
|
|
180
|
+
transform: 'none !important'
|
|
181
|
+
}))),
|
|
182
|
+
// Line-height for heading anchor based on heading level (via data-level attribute on .renderer-heading-wrapper)
|
|
183
|
+
'& .renderer-heading-wrapper[data-level="1"]': (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
184
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
185
|
+
lineHeight: "".concat(28 / 24, "em")
|
|
186
|
+
}),
|
|
187
|
+
'& .renderer-heading-wrapper[data-level="2"]': (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
188
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
189
|
+
lineHeight: "".concat(24 / 20, "em")
|
|
190
|
+
}),
|
|
191
|
+
'& .renderer-heading-wrapper[data-level="3"]': (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
192
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
193
|
+
lineHeight: "".concat(20 / 16, "em")
|
|
194
|
+
}),
|
|
195
|
+
'& .renderer-heading-wrapper[data-level="4"]': (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
196
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
197
|
+
lineHeight: "".concat(16 / 14, "em")
|
|
198
|
+
}),
|
|
199
|
+
'& .renderer-heading-wrapper[data-level="5"]': (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
200
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
201
|
+
lineHeight: "".concat(16 / 12, "em")
|
|
202
|
+
}),
|
|
203
|
+
'& .renderer-heading-wrapper[data-level="6"]': (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
204
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
205
|
+
lineHeight: "".concat(16 / 11, "em")
|
|
206
|
+
})
|
|
207
|
+
});
|
|
149
208
|
var akEditorBreakpointForSmallDevice = '1266px';
|
|
150
209
|
var responsiveBreakoutWidth = (0, _react.css)((0, _defineProperty2.default)({
|
|
151
210
|
'--ak-editor--breakout-container-without-gutter-width': "calc(100cqw - ".concat(_editorSharedStyles.akEditorGutterPadding, "px * 2)"),
|
|
@@ -170,7 +229,7 @@ var responsiveBreakoutWidthWithReducedPadding = (0, _react.css)((0, _definePrope
|
|
|
170
229
|
}), "@media (max-width: ".concat(_editorSharedStyles.akEditorFullPageNarrowBreakout, "px)"), {
|
|
171
230
|
'--ak-editor--breakout-container-without-gutter-width': "calc(100cqw - var(--ak-renderer--full-page-gutter) * 2)"
|
|
172
231
|
}));
|
|
173
|
-
var
|
|
232
|
+
var hideHeadingCopyLinkWrapperStylesDuplicateAnchor = (0, _react.css)({
|
|
174
233
|
'& h1, & h2, & h3, & h4, & h5, & h6': (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
175
234
|
'&:focus-within': {
|
|
176
235
|
opacity: 1
|
|
@@ -182,6 +241,18 @@ var hideHeadingCopyLinkWrapperStyles = (0, _react.css)({
|
|
|
182
241
|
opacity: 1
|
|
183
242
|
})))
|
|
184
243
|
});
|
|
244
|
+
var hideHeadingCopyLinkWrapperStyles = (0, _react.css)({
|
|
245
|
+
'& .renderer-heading-wrapper': (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
246
|
+
'&:focus-within': {
|
|
247
|
+
opacity: 1
|
|
248
|
+
}
|
|
249
|
+
}), "@media (hover: hover) and (pointer: fine)", (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
250
|
+
opacity: 0,
|
|
251
|
+
transition: "opacity 0.2s ease 0s"
|
|
252
|
+
}), '&:hover', (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
253
|
+
opacity: 1
|
|
254
|
+
})))
|
|
255
|
+
});
|
|
185
256
|
var rendererFullPageStyles = (0, _react.css)({
|
|
186
257
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
187
258
|
maxWidth: "".concat(_editorSharedStyles.akEditorDefaultLayoutWidth, "px"),
|
|
@@ -248,7 +319,7 @@ var rovoTelepointerStyles = (0, _react.css)((0, _defineProperty2.default)({}, "#
|
|
|
248
319
|
fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
249
320
|
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
250
321
|
color: "var(--ds-text-inverse, white)",
|
|
251
|
-
|
|
322
|
+
backgroundColor: "var(--ds-text, #292A2E)",
|
|
252
323
|
top: 1,
|
|
253
324
|
left: 1,
|
|
254
325
|
borderRadius: "0px ".concat("var(--ds-space-050, 4px)", " ", "var(--ds-space-050, 4px)", " 0px"),
|
|
@@ -314,86 +385,6 @@ var blockquoteSharedStyles = (0, _react.css)({
|
|
|
314
385
|
}
|
|
315
386
|
});
|
|
316
387
|
var headingsSharedStyles = (0, _react.css)({
|
|
317
|
-
'& h1': {
|
|
318
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
319
|
-
fontSize: "".concat(24 / 14, "em"),
|
|
320
|
-
fontStyle: 'inherit',
|
|
321
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
322
|
-
lineHeight: 28 / 24,
|
|
323
|
-
color: "var(--ds-text, #292A2E)",
|
|
324
|
-
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
325
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
326
|
-
letterSpacing: "-0.01em",
|
|
327
|
-
marginBottom: 0,
|
|
328
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
329
|
-
marginTop: '1.667em'
|
|
330
|
-
},
|
|
331
|
-
'& h2': {
|
|
332
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
333
|
-
fontSize: "".concat(20 / 14, "em"),
|
|
334
|
-
fontStyle: 'inherit',
|
|
335
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
336
|
-
lineHeight: 24 / 20,
|
|
337
|
-
color: "var(--ds-text, #292A2E)",
|
|
338
|
-
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
339
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
340
|
-
letterSpacing: "-0.008em",
|
|
341
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
342
|
-
marginTop: '1.8em',
|
|
343
|
-
marginBottom: 0
|
|
344
|
-
},
|
|
345
|
-
'& h3': {
|
|
346
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
347
|
-
fontSize: "".concat(16 / 14, "em"),
|
|
348
|
-
fontStyle: 'inherit',
|
|
349
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
350
|
-
lineHeight: 20 / 16,
|
|
351
|
-
color: "var(--ds-text, #292A2E)",
|
|
352
|
-
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
353
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
354
|
-
letterSpacing: "-0.006em",
|
|
355
|
-
marginTop: "var(--ds-space-400, 2em)",
|
|
356
|
-
marginBottom: 0
|
|
357
|
-
},
|
|
358
|
-
'& h4': {
|
|
359
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
360
|
-
fontSize: "".concat(14 / 14, "em"),
|
|
361
|
-
fontStyle: 'inherit',
|
|
362
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
363
|
-
lineHeight: 16 / 14,
|
|
364
|
-
color: "var(--ds-text, #292A2E)",
|
|
365
|
-
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
366
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
367
|
-
letterSpacing: "-0.003em",
|
|
368
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
369
|
-
marginTop: '1.357em'
|
|
370
|
-
},
|
|
371
|
-
'& h5': {
|
|
372
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
373
|
-
fontSize: "".concat(12 / 14, "em"),
|
|
374
|
-
fontStyle: 'inherit',
|
|
375
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
376
|
-
lineHeight: 16 / 12,
|
|
377
|
-
color: "var(--ds-text, #292A2E)",
|
|
378
|
-
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
379
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
380
|
-
marginTop: '1.667em',
|
|
381
|
-
textTransform: 'none'
|
|
382
|
-
},
|
|
383
|
-
'& h6': {
|
|
384
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
385
|
-
fontSize: "".concat(11 / 14, "em"),
|
|
386
|
-
fontStyle: 'inherit',
|
|
387
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
388
|
-
lineHeight: 16 / 11,
|
|
389
|
-
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
390
|
-
fontWeight: "var(--ds-font-weight-bold, 653)",
|
|
391
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
392
|
-
marginTop: '1.455em',
|
|
393
|
-
textTransform: 'none'
|
|
394
|
-
}
|
|
395
|
-
});
|
|
396
|
-
var headingsSharedStylesWithEditorUGC = (0, _react.css)({
|
|
397
388
|
'& h1': {
|
|
398
389
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
399
390
|
font: "var(--ak-renderer-editor-font-heading-h1)",
|
|
@@ -460,7 +451,44 @@ var headingsSharedStylesWithEditorUGC = (0, _react.css)({
|
|
|
460
451
|
}
|
|
461
452
|
}
|
|
462
453
|
});
|
|
463
|
-
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* When the copy-link a11y fix is enabled, the heading copy-link button is a sibling of the heading
|
|
457
|
+
* text within `.renderer-heading-wrapper`. To ensure the button sits immediately after the last
|
|
458
|
+
* rendered character (including when the heading wraps), the heading itself needs to participate in
|
|
459
|
+
* inline layout.
|
|
460
|
+
*
|
|
461
|
+
* Since inline elements don't support vertical margins in normal flow, we migrate the UGC heading
|
|
462
|
+
* `marginTop` values (from `headingsSharedStyles`) onto the wrapper.
|
|
463
|
+
*/
|
|
464
|
+
var headingWrapperInlineFlowStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
465
|
+
// Ensure heading and copy-link button participate in inline flow so the button sits after the final wrapped line of text.
|
|
466
|
+
'& .renderer-heading-wrapper > h1, & .renderer-heading-wrapper > h2, & .renderer-heading-wrapper > h3, & .renderer-heading-wrapper > h4, & .renderer-heading-wrapper > h5, & .renderer-heading-wrapper > h6': {
|
|
467
|
+
display: 'inline'
|
|
468
|
+
}
|
|
469
|
+
}, "& .renderer-heading-wrapper > .".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
470
|
+
display: 'inline',
|
|
471
|
+
verticalAlign: 'baseline'
|
|
472
|
+
}), '& .renderer-heading-wrapper[data-level="1"]', {
|
|
473
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
474
|
+
marginTop: '1.45833em'
|
|
475
|
+
}), '& .renderer-heading-wrapper[data-level="2"]', {
|
|
476
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
477
|
+
marginTop: '1.4em'
|
|
478
|
+
}), '& .renderer-heading-wrapper[data-level="3"]', {
|
|
479
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
480
|
+
marginTop: '1.31249em'
|
|
481
|
+
}), '& .renderer-heading-wrapper[data-level="4"]', {
|
|
482
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
483
|
+
marginTop: '1.25em'
|
|
484
|
+
}), '& .renderer-heading-wrapper[data-level="5"]', {
|
|
485
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
486
|
+
marginTop: '1.45833em'
|
|
487
|
+
}), '& .renderer-heading-wrapper[data-level="6"]', {
|
|
488
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
489
|
+
marginTop: '1.59091em'
|
|
490
|
+
}));
|
|
491
|
+
var headingWithAlignmentStylesDuplicateAnchor = (0, _react.css)({
|
|
464
492
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
465
493
|
'.fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)': {
|
|
466
494
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
@@ -503,6 +531,25 @@ var headingWithAlignmentStyles = (0, _react.css)({
|
|
|
503
531
|
}
|
|
504
532
|
}
|
|
505
533
|
});
|
|
534
|
+
var headingWithAlignmentStyles = (0, _react.css)({
|
|
535
|
+
// Center alignment for heading wrapper - flex container needs justify-content instead of text-align
|
|
536
|
+
'.fabric-editor-block-mark[data-align="center"] > .renderer-heading-wrapper': {
|
|
537
|
+
justifyContent: 'center'
|
|
538
|
+
},
|
|
539
|
+
// Right/end alignment for heading wrapper - flex container needs justify-content instead of text-align
|
|
540
|
+
'.fabric-editor-block-mark[data-align="end"] > .renderer-heading-wrapper': {
|
|
541
|
+
justifyContent: 'flex-end'
|
|
542
|
+
},
|
|
543
|
+
// Set marginTop: 0 if alignment block is next to a gap cursor or widget that is first child
|
|
544
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
545
|
+
'.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': {
|
|
546
|
+
// With inline headings, apply marginTop to the wrapper (not the h1-h6).
|
|
547
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
548
|
+
'> .renderer-heading-wrapper:first-child': {
|
|
549
|
+
marginTop: 0
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
});
|
|
506
553
|
var ruleSharedStyles = (0, _react.css)({
|
|
507
554
|
'& hr': {
|
|
508
555
|
border: 'none',
|
|
@@ -559,24 +606,24 @@ var paragraphSharedStyleScaledMargin = (0, _react.css)({
|
|
|
559
606
|
letterSpacing: '-0.005em'
|
|
560
607
|
}
|
|
561
608
|
});
|
|
562
|
-
var listsSharedStyles = (0, _react.css)((
|
|
609
|
+
var listsSharedStyles = (0, _react.css)((_css8 = {
|
|
563
610
|
/* =============== INDENTATION SPACING ========= */
|
|
564
611
|
'ul, ol': {
|
|
565
612
|
boxSizing: 'border-box',
|
|
566
613
|
paddingLeft: "var(--ed--list--item-counter--padding, ".concat(_styles.listItemCounterPadding, "px)")
|
|
567
614
|
}
|
|
568
|
-
}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(
|
|
615
|
+
}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_css8, "".concat(_adfSchema.orderedListSelector, ", ").concat(_adfSchema.bulletListSelector), {
|
|
569
616
|
/*
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
617
|
+
Ensures list item content adheres to the list's margin instead
|
|
618
|
+
of filling the entire block row. This is important to allow
|
|
619
|
+
clicking interactive elements which are floated next to a list.
|
|
620
|
+
For some history and context on this block, see PRs related to tickets.:
|
|
621
|
+
@see ED-6551 - original issue.
|
|
622
|
+
@see ED-7015 - follow up issue.
|
|
623
|
+
@see ED-7447 - flow-root change.
|
|
624
|
+
used to have display: 'table' in tag template style but not supported in object styles
|
|
625
|
+
removed display: 'table' as 'flow-root' is supported in latest browsers
|
|
626
|
+
@see https://css-tricks.com/display-flow-root/
|
|
580
627
|
*/
|
|
581
628
|
display: 'flow-root'
|
|
582
629
|
}), 'ul, ul ul ul ul', {
|
|
@@ -597,7 +644,7 @@ var listsSharedStyles = (0, _react.css)((_css7 = {
|
|
|
597
644
|
listStyleType: 'lower-alpha'
|
|
598
645
|
}), 'ol[data-indent-level="3"], ol[data-indent-level="6"]', {
|
|
599
646
|
listStyleType: 'lower-roman'
|
|
600
|
-
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(
|
|
647
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_css8, 'ul[data-indent-level="1"], ul[data-indent-level="4"]', {
|
|
601
648
|
listStyleType: 'disc'
|
|
602
649
|
}), 'ul[data-indent-level="2"], ul[data-indent-level="5"]', {
|
|
603
650
|
listStyleType: 'circle'
|
|
@@ -667,7 +714,7 @@ var indentationSharedStylesWithMarginFix = (0, _react.css)({
|
|
|
667
714
|
}
|
|
668
715
|
}
|
|
669
716
|
});
|
|
670
|
-
var
|
|
717
|
+
var blockMarksSharedStylesDuplicateAnchor = (0, _react.css)((0, _defineProperty2.default)({}, "*: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", {
|
|
671
718
|
'p, h1, h2, h3, h4, h5, h6, .heading-wrapper': {
|
|
672
719
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
673
720
|
':first-child:not(style), style:first-child + *': {
|
|
@@ -675,6 +722,22 @@ var blockMarksSharedStyles = (0, _react.css)((0, _defineProperty2.default)({}, "
|
|
|
675
722
|
}
|
|
676
723
|
}
|
|
677
724
|
}));
|
|
725
|
+
var blockMarksSharedStyles = (0, _react.css)((0, _defineProperty2.default)({}, "*: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", {
|
|
726
|
+
'p, .heading-wrapper': {
|
|
727
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
728
|
+
':first-child:not(style), style:first-child + *': {
|
|
729
|
+
marginTop: 0
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
'.renderer-heading-wrapper': {
|
|
733
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
734
|
+
':first-child:not(style), style:first-child + *': {
|
|
735
|
+
'h1, h2, h3, h4, h5, h6': {
|
|
736
|
+
marginTop: 0
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
}));
|
|
678
741
|
var codeMarkSharedStyles = (0, _react.css)({
|
|
679
742
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
680
743
|
'.code': {
|
|
@@ -835,7 +898,10 @@ var tasksAndDecisionsStyles = (0, _react.css)({
|
|
|
835
898
|
}
|
|
836
899
|
},
|
|
837
900
|
'div[data-task-list-local-id]': {
|
|
838
|
-
|
|
901
|
+
marginTop: "var(--ds-space-150, 12px)",
|
|
902
|
+
marginRight: 0,
|
|
903
|
+
marginBottom: 0,
|
|
904
|
+
marginLeft: 0,
|
|
839
905
|
// If task item is not first in the list then set margin top to 4px.
|
|
840
906
|
'div + div': {
|
|
841
907
|
marginTop: "var(--ds-space-050, 4px)"
|
|
@@ -886,6 +952,78 @@ var headerSmartCardStyles = (0, _react.css)({
|
|
|
886
952
|
}
|
|
887
953
|
}
|
|
888
954
|
});
|
|
955
|
+
var baseOtherStylesDuplicateAnchor = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
956
|
+
'& .UnknownBlock': {
|
|
957
|
+
fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
958
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
959
|
+
fontSize: "".concat(14 / 16, "rem"),
|
|
960
|
+
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
961
|
+
whiteSpace: 'pre-wrap',
|
|
962
|
+
wordWrap: 'break-word'
|
|
963
|
+
},
|
|
964
|
+
'& span.date-node': {
|
|
965
|
+
backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N30A, ")"),
|
|
966
|
+
borderRadius: "var(--ds-radius-small, 3px)",
|
|
967
|
+
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
968
|
+
paddingTop: "var(--ds-space-025, 2px)",
|
|
969
|
+
paddingRight: "var(--ds-space-050, 4px)",
|
|
970
|
+
paddingBottom: "var(--ds-space-025, 2px)",
|
|
971
|
+
paddingLeft: "var(--ds-space-050, 4px)",
|
|
972
|
+
margin: "0 1px",
|
|
973
|
+
transition: "background 0.3s"
|
|
974
|
+
},
|
|
975
|
+
'& span.date-node-highlighted': {
|
|
976
|
+
backgroundColor: "var(--ds-background-danger, ".concat(_colors.R50, ")"),
|
|
977
|
+
color: "var(--ds-text-danger, ".concat(_colors.R500, ")")
|
|
978
|
+
},
|
|
979
|
+
'& .renderer-image': {
|
|
980
|
+
maxWidth: '100%',
|
|
981
|
+
display: 'block',
|
|
982
|
+
marginTop: "var(--ds-space-300, 24px)",
|
|
983
|
+
marginRight: 0,
|
|
984
|
+
marginBottom: "var(--ds-space-300, 24px)",
|
|
985
|
+
marginLeft: 0
|
|
986
|
+
}
|
|
987
|
+
}, ".".concat(_styles.richMediaClassName, ".rich-media-wrapped + .").concat(_styles.richMediaClassName, ":not(.rich-media-wrapped)"), {
|
|
988
|
+
clear: 'both'
|
|
989
|
+
}), "& .code-block,\n\t& blockquote,\n\t& hr,\n\t& > div > div:not(.rich-media-wrapped),\n\t.".concat(_styles.richMediaClassName, ".rich-media-wrapped + .rich-media-wrapped + *:not(.rich-media-wrapped),\n\t.").concat(_styles.richMediaClassName, ".rich-media-wrapped + div:not(.rich-media-wrapped),\n\t.").concat(_styles.richMediaClassName, ".image-align-start,\n\t\t.").concat(_styles.richMediaClassName, ".image-center,\n\t\t.").concat(_styles.richMediaClassName, ".image-align-end"), {
|
|
990
|
+
clear: 'both'
|
|
991
|
+
}), '& .rich-media-wrapped', {
|
|
992
|
+
'& + .renderer-heading-wrapper': {
|
|
993
|
+
'h1, h2, h3, h4, h5, h6': {
|
|
994
|
+
marginTop: "var(--ds-space-100, 8px)"
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
}), 'div[class^="image-wrap-"] + div[class^="image-wrap-"]', {
|
|
998
|
+
marginLeft: 0,
|
|
999
|
+
marginRight: 0
|
|
1000
|
+
}), ".".concat(_consts.RendererCssClassName.DOCUMENT, " >"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "*:not([data-mark-type='fragment']) .".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER), {
|
|
1001
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
1002
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
1003
|
+
// TODO - improve inline style logic on table container so important styles aren't required here
|
|
1004
|
+
width: '100% !important',
|
|
1005
|
+
left: '0 !important'
|
|
1006
|
+
}), "[data-mark-type='fragment'] * .".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER), {
|
|
1007
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
1008
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
1009
|
+
// TODO - improve inline style logic on table container so important styles aren't required here
|
|
1010
|
+
width: '100% !important',
|
|
1011
|
+
left: '0 !important'
|
|
1012
|
+
}), "* .".concat(_consts.RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER), {
|
|
1013
|
+
overflowX: 'auto'
|
|
1014
|
+
}), "& .".concat(_consts.RendererCssClassName.EXTENSION, ":first-child"), {
|
|
1015
|
+
marginTop: 0
|
|
1016
|
+
})), ".".concat(_consts.RendererCssClassName.DOCUMENT), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_consts.RendererCssClassName.EXTENSION), {
|
|
1017
|
+
marginTop: "".concat(_editorSharedStyles.blockNodesVerticalMargin)
|
|
1018
|
+
}), ".".concat(_consts.RendererCssClassName.EXTENSION_CENTER_ALIGN), {
|
|
1019
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
1020
|
+
marginLeft: '50%',
|
|
1021
|
+
transform: 'translateX(-50%)'
|
|
1022
|
+
}), ".".concat(_styles.TableSharedCssClassName.TABLE_NODE_WRAPPER), {
|
|
1023
|
+
overflowX: 'auto'
|
|
1024
|
+
}), ".".concat(_ui.shadowObserverClassNames.SHADOW_CONTAINER, " .").concat(_styles.TableSharedCssClassName.TABLE_NODE_WRAPPER), {
|
|
1025
|
+
display: 'flex'
|
|
1026
|
+
})));
|
|
889
1027
|
var baseOtherStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
890
1028
|
'& .UnknownBlock': {
|
|
891
1029
|
fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
@@ -896,29 +1034,37 @@ var baseOtherStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineP
|
|
|
896
1034
|
wordWrap: 'break-word'
|
|
897
1035
|
},
|
|
898
1036
|
'& span.date-node': {
|
|
899
|
-
|
|
1037
|
+
backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N30A, ")"),
|
|
900
1038
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
901
1039
|
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
902
|
-
|
|
1040
|
+
paddingTop: "var(--ds-space-025, 2px)",
|
|
1041
|
+
paddingRight: "var(--ds-space-050, 4px)",
|
|
1042
|
+
paddingBottom: "var(--ds-space-025, 2px)",
|
|
1043
|
+
paddingLeft: "var(--ds-space-050, 4px)",
|
|
903
1044
|
margin: "0 1px",
|
|
904
1045
|
transition: "background 0.3s"
|
|
905
1046
|
},
|
|
906
1047
|
'& span.date-node-highlighted': {
|
|
907
|
-
|
|
1048
|
+
backgroundColor: "var(--ds-background-danger, ".concat(_colors.R50, ")"),
|
|
908
1049
|
color: "var(--ds-text-danger, ".concat(_colors.R500, ")")
|
|
909
1050
|
},
|
|
910
1051
|
'& .renderer-image': {
|
|
911
1052
|
maxWidth: '100%',
|
|
912
1053
|
display: 'block',
|
|
913
|
-
|
|
1054
|
+
marginTop: "var(--ds-space-300, 24px)",
|
|
1055
|
+
marginRight: 0,
|
|
1056
|
+
marginBottom: "var(--ds-space-300, 24px)",
|
|
1057
|
+
marginLeft: 0
|
|
914
1058
|
}
|
|
915
1059
|
}, ".".concat(_styles.richMediaClassName, ".rich-media-wrapped + .").concat(_styles.richMediaClassName, ":not(.rich-media-wrapped)"), {
|
|
916
1060
|
clear: 'both'
|
|
917
1061
|
}), "& .code-block,\n\t& blockquote,\n\t& hr,\n\t& > div > div:not(.rich-media-wrapped),\n\t.".concat(_styles.richMediaClassName, ".rich-media-wrapped + .rich-media-wrapped + *:not(.rich-media-wrapped),\n\t.").concat(_styles.richMediaClassName, ".rich-media-wrapped + div:not(.rich-media-wrapped),\n\t.").concat(_styles.richMediaClassName, ".image-align-start,\n\t\t.").concat(_styles.richMediaClassName, ".image-center,\n\t\t.").concat(_styles.richMediaClassName, ".image-align-end"), {
|
|
918
1062
|
clear: 'both'
|
|
919
1063
|
}), '& .rich-media-wrapped', {
|
|
920
|
-
'& +
|
|
921
|
-
|
|
1064
|
+
'& + .renderer-heading-wrapper': {
|
|
1065
|
+
'h1, h2, h3, h4, h5, h6': {
|
|
1066
|
+
marginTop: "var(--ds-space-100, 8px)"
|
|
1067
|
+
}
|
|
922
1068
|
}
|
|
923
1069
|
}), 'div[class^="image-wrap-"] + div[class^="image-wrap-"]', {
|
|
924
1070
|
marginLeft: 0,
|
|
@@ -950,7 +1096,7 @@ var baseOtherStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineP
|
|
|
950
1096
|
}), ".".concat(_ui.shadowObserverClassNames.SHADOW_CONTAINER, " .").concat(_styles.TableSharedCssClassName.TABLE_NODE_WRAPPER), {
|
|
951
1097
|
display: 'flex'
|
|
952
1098
|
})));
|
|
953
|
-
var
|
|
1099
|
+
var alignedHeadingAnchorStyleDuplicateAnchor = (0, _react.css)({
|
|
954
1100
|
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
955
1101
|
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
956
1102
|
// TODO Delete this comment after verifying space token -> previous value `margin: 6px`
|
|
@@ -961,7 +1107,44 @@ var alignedHeadingAnchorStyle = (0, _react.css)({
|
|
|
961
1107
|
},
|
|
962
1108
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
963
1109
|
'.fabric-editor-block-mark:not([data-align="center"])[data-align]': (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
964
|
-
|
|
1110
|
+
marginTop: 0,
|
|
1111
|
+
marginRight: "var(--ds-space-075, 6px)",
|
|
1112
|
+
marginBottom: 0,
|
|
1113
|
+
marginLeft: 0,
|
|
1114
|
+
// If the anchor is right aligned then the left side of the heading
|
|
1115
|
+
// is aligned with the left side of the anchor.
|
|
1116
|
+
// In order to align as expected we transform it the width of the element (plus our expected 6px)
|
|
1117
|
+
// to the left
|
|
1118
|
+
transform: "translateX(calc(-100% - ".concat("var(--ds-space-075, 6px)", "))")
|
|
1119
|
+
}), '@media (hover: hover) and (pointer: fine)', (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName, " > button"), {
|
|
1120
|
+
transform: "translate(8px, 0px)"
|
|
1121
|
+
}))
|
|
1122
|
+
});
|
|
1123
|
+
var alignedHeadingAnchorStyle = (0, _react.css)({
|
|
1124
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
1125
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
1126
|
+
// TODO Delete this comment after verifying space token -> previous value `margin: 6px`
|
|
1127
|
+
'.fabric-editor-block-mark[data-align] >': {
|
|
1128
|
+
'.renderer-heading-wrapper': {
|
|
1129
|
+
'h1, h2, h3, h4, h5, h6': {
|
|
1130
|
+
position: 'relative'
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
// Center alignment for heading wrapper - flex container needs justify-content instead of text-align
|
|
1135
|
+
'.fabric-editor-block-mark[data-align="center"] > .renderer-heading-wrapper': {
|
|
1136
|
+
justifyContent: 'center'
|
|
1137
|
+
},
|
|
1138
|
+
// Right/end alignment for heading wrapper - flex container needs justify-content instead of text-align
|
|
1139
|
+
'.fabric-editor-block-mark[data-align="end"] > .renderer-heading-wrapper': {
|
|
1140
|
+
justifyContent: 'flex-end'
|
|
1141
|
+
},
|
|
1142
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
1143
|
+
'.fabric-editor-block-mark:not([data-align="center"])[data-align]': (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
1144
|
+
marginTop: 0,
|
|
1145
|
+
marginRight: "var(--ds-space-075, 6px)",
|
|
1146
|
+
marginBottom: 0,
|
|
1147
|
+
marginLeft: 0,
|
|
965
1148
|
// If the anchor is right aligned then the left side of the heading
|
|
966
1149
|
// is aligned with the left side of the anchor.
|
|
967
1150
|
// In order to align as expected we transform it the width of the element (plus our expected 6px)
|
|
@@ -1017,7 +1200,10 @@ var mediaSingleSharedStyle = (0, _react.css)((0, _defineProperty2.default)((0, _
|
|
|
1017
1200
|
"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']": {
|
|
1018
1201
|
float: 'none',
|
|
1019
1202
|
overflow: 'auto',
|
|
1020
|
-
|
|
1203
|
+
marginTop: "var(--ds-space-150, 12px)",
|
|
1204
|
+
marginRight: 0,
|
|
1205
|
+
marginBottom: "var(--ds-space-150, 12px)",
|
|
1206
|
+
marginLeft: 0
|
|
1021
1207
|
}
|
|
1022
1208
|
}));
|
|
1023
1209
|
|
|
@@ -1090,7 +1276,10 @@ var tableSharedStyle = (0, _react.css)((0, _defineProperty2.default)((0, _define
|
|
|
1090
1276
|
}
|
|
1091
1277
|
}, ".".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER), {
|
|
1092
1278
|
position: 'relative',
|
|
1093
|
-
|
|
1279
|
+
marginTop: 0,
|
|
1280
|
+
marginRight: 'auto',
|
|
1281
|
+
marginBottom: "var(--ds-space-200, 16px)",
|
|
1282
|
+
marginLeft: 'auto',
|
|
1094
1283
|
boxSizing: 'border-box',
|
|
1095
1284
|
/**
|
|
1096
1285
|
* Fix block top alignment inside table cells.
|
|
@@ -1107,9 +1296,15 @@ var tableSharedStyle = (0, _react.css)((0, _defineProperty2.default)((0, _define
|
|
|
1107
1296
|
}), ".".concat(_styles.TableSharedCssClassName.TABLE_RESIZER_CONTAINER, " table"), {
|
|
1108
1297
|
willChange: 'width'
|
|
1109
1298
|
}), ".".concat(_styles.TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table"), {
|
|
1110
|
-
|
|
1299
|
+
marginTop: "var(--ds-space-300, 24px)",
|
|
1300
|
+
marginRight: 0,
|
|
1301
|
+
marginBottom: 0,
|
|
1302
|
+
marginLeft: 0
|
|
1111
1303
|
}), ".".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t.").concat(_styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
|
|
1112
|
-
|
|
1304
|
+
marginTop: "var(--ds-space-300, 24px)",
|
|
1305
|
+
marginRight: "var(--ds-space-100, 8px)",
|
|
1306
|
+
marginBottom: 0,
|
|
1307
|
+
marginLeft: 0
|
|
1113
1308
|
}), ".".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t.").concat(_styles.TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table,\n\t.").concat(_styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
|
|
1114
1309
|
borderCollapse: 'collapse',
|
|
1115
1310
|
border: "".concat(_styles.tableCellBorderWidth, "px solid ", "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")")),
|
|
@@ -1168,7 +1363,10 @@ var tableRendererHeaderStylesForTableCellOnly = (0, _react.css)((0, _definePrope
|
|
|
1168
1363
|
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")")),
|
|
1169
1364
|
borderRightWidth: 0,
|
|
1170
1365
|
borderBottomWidth: 0,
|
|
1171
|
-
|
|
1366
|
+
paddingTop: "var(--ds-space-100, 8px)",
|
|
1367
|
+
paddingRight: "var(--ds-space-100, 8px)",
|
|
1368
|
+
paddingBottom: "var(--ds-space-100, 8px)",
|
|
1369
|
+
paddingLeft: "var(--ds-space-100, 8px)",
|
|
1172
1370
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
1173
1371
|
'th p:not(:first-of-type), td p:not(:first-of-type)': {
|
|
1174
1372
|
marginTop: "var(--ds-space-150, 12px)"
|
|
@@ -1314,7 +1512,7 @@ var rendererTableColumnStyles = (0, _react.css)((0, _defineProperty2.default)({}
|
|
|
1314
1512
|
borderRight: "0px none"
|
|
1315
1513
|
})
|
|
1316
1514
|
}));
|
|
1317
|
-
var
|
|
1515
|
+
var rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinksDuplicateAnchor = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(_consts.RendererCssClassName.DOCUMENT, " .").concat(_styles.TableSharedCssClassName.TABLE_CONTAINER), (0, _defineProperty2.default)({}, ".".concat(_styles.TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table, .").concat(_styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), (0, _defineProperty2.default)({}, ".".concat(_consts.RendererCssClassName.SORTABLE_COLUMN_WRAPPER), (0, _defineProperty2.default)({}, ".".concat(_consts.RendererCssClassName.SORTABLE_COLUMN), (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
1318
1516
|
position: 'unset'
|
|
1319
1517
|
}), '>', {
|
|
1320
1518
|
'h1, h2, h3, h4, h5, h6': {
|
|
@@ -1322,6 +1520,15 @@ var rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks = (0, _react.css)
|
|
|
1322
1520
|
marginRight: '30px'
|
|
1323
1521
|
}
|
|
1324
1522
|
}))))));
|
|
1523
|
+
var rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(_consts.RendererCssClassName.DOCUMENT, " .").concat(_styles.TableSharedCssClassName.TABLE_CONTAINER), (0, _defineProperty2.default)({}, ".".concat(_styles.TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table, .").concat(_styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), (0, _defineProperty2.default)({}, ".".concat(_consts.RendererCssClassName.SORTABLE_COLUMN_WRAPPER), (0, _defineProperty2.default)({}, ".".concat(_consts.RendererCssClassName.SORTABLE_COLUMN), (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
1524
|
+
position: 'unset'
|
|
1525
|
+
}), '> .renderer-heading-wrapper', {
|
|
1526
|
+
// Reserve space for the sortable-column icon so the heading+anchor wrapper never overlaps it.
|
|
1527
|
+
// Use padding (instead of margin on the heading) so we don't create a gap between the heading
|
|
1528
|
+
// text and the copy-link anchor button
|
|
1529
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
1530
|
+
paddingRight: '30px'
|
|
1531
|
+
}))))));
|
|
1325
1532
|
|
|
1326
1533
|
// @ts-expect-error - throw TS error when use !import in position.
|
|
1327
1534
|
var stickyHeaderStyles = (0, _react.css)({
|
|
@@ -1493,7 +1700,10 @@ var rendererAnnotationStyles = (0, _react.css)({
|
|
|
1493
1700
|
borderBottom: "var(--ds-border-width-selected, 2px)".concat(" solid ", "var(--ds-border-accent-yellow, ".concat(_colors.Y300, ")")),
|
|
1494
1701
|
boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(_colors.N60A, ", -1px 2px 3px ").concat(_colors.N60A), ")"),
|
|
1495
1702
|
cursor: 'pointer',
|
|
1496
|
-
|
|
1703
|
+
paddingTop: "var(--ds-space-050, 4px)",
|
|
1704
|
+
paddingRight: "var(--ds-space-025, 2px)",
|
|
1705
|
+
paddingBottom: "var(--ds-space-050, 4px)",
|
|
1706
|
+
paddingLeft: "var(--ds-space-025, 2px)"
|
|
1497
1707
|
}
|
|
1498
1708
|
});
|
|
1499
1709
|
var rendererAnnotationStylesCommentHeightFix = (0, _react.css)({
|
|
@@ -1501,8 +1711,12 @@ var rendererAnnotationStylesCommentHeightFix = (0, _react.css)({
|
|
|
1501
1711
|
'& [data-annotation-draft-mark][data-annotation-inline-node]': {
|
|
1502
1712
|
borderBottom: "var(--ds-border-width-selected, 2px)".concat(" solid transparent"),
|
|
1503
1713
|
cursor: 'pointer',
|
|
1504
|
-
|
|
1505
|
-
|
|
1714
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
1715
|
+
paddingTop: '1px',
|
|
1716
|
+
paddingRight: 0,
|
|
1717
|
+
paddingBottom: "var(--ds-space-025, 2px)",
|
|
1718
|
+
paddingLeft: 0,
|
|
1719
|
+
backgroundColor: "var(--ds-background-accent-yellow-subtler, ".concat(_colors.Y75, ")"),
|
|
1506
1720
|
borderBottomColor: "var(--ds-border-accent-yellow, ".concat(_colors.Y300, ")"),
|
|
1507
1721
|
boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(_colors.N60A, ", -1px 2px 3px ").concat(_colors.N60A), ")")
|
|
1508
1722
|
},
|
|
@@ -1679,15 +1893,15 @@ var RendererStyleContainer = exports.RendererStyleContainer = function RendererS
|
|
|
1679
1893
|
'--ak-renderer-editor-font-heading-h6': "".concat((0, _ugcTokens.editorUGCToken)('editor.font.heading.h6')),
|
|
1680
1894
|
'--ak-renderer-editor-font-normal-text': "".concat((0, _ugcTokens.editorUGCToken)('editor.font.body'))
|
|
1681
1895
|
},
|
|
1682
|
-
css: [baseStyles, hideHeadingCopyLinkWrapperStyles, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, (appearance === 'full-width' || appearance === 'max' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true))) && !(0, _table.isTableResizingEnabled)(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true)) && rendererMaxWidthStyles, rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, (0,
|
|
1896
|
+
css: [baseStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, (0, _expValEquals.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' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true))) && !(0, _table.isTableResizingEnabled)(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true)) && rendererMaxWidthStyles, rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingWrapperInlineFlowStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingWithAlignmentStyles : headingWithAlignmentStylesDuplicateAnchor, ruleSharedStyles, contentMode === 'compact' && isCompactModeSupported && extensionStyle, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? isCompactModeSupported ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC : isCompactModeSupported ? paragraphSharedStyleScaledMargin : paragraphSharedStyles, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, indentationSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor__renderer_indentation_text_margin') && indentationSharedStylesWithMarginFix, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? blockMarksSharedStyles : blockMarksSharedStylesDuplicateAnchor, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, (0, _expValEquals.expValEquals)('platform_editor_text_highlight_padding', 'isEnabled', true) &&
|
|
1683
1897
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
1684
1898
|
textHighlightPaddingStyles, tasksAndDecisionsStyles, smartCardStyles, smartCardStylesAvatarFix, (0, _experiments.editorExperiment)('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, (0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') && rendererAnnotationStyles,
|
|
1685
1899
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
1686
|
-
(0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, baseOtherStyles,
|
|
1900
|
+
(0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor,
|
|
1687
1901
|
// this should be placed after baseOtherStyles
|
|
1688
|
-
(0, _expValEquals.expValEquals)('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && extensionAsInlineStyle, (0, _expValEquals.expValEquals)('confluence_insert_excerpt_inline_vertical_align', 'isEnabled', true) && inlineExtensionRendererMarginFix, allowNestedHeaderLinks && alignedHeadingAnchorStyle, mediaSingleSharedStyle,
|
|
1902
|
+
(0, _expValEquals.expValEquals)('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && extensionAsInlineStyle, (0, _expValEquals.expValEquals)('confluence_insert_excerpt_inline_vertical_align', 'isEnabled', true) && inlineExtensionRendererMarginFix, allowNestedHeaderLinks && ((0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle,
|
|
1689
1903
|
// merge firstWrappedMediaStyles with mediaSingleSharedStyle when clean up platform_editor_fix_media_in_renderer
|
|
1690
|
-
(0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles, tableSharedStyle, tableRendererHeaderStylesForTableCellOnly, (0, _platformFeatureFlags.fg)('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ? firstNodeWithNotMarginTopWithNestedDnD : firstNodeWithNotMarginTop, rendererTableStyles, (0, _table.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' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true))) && responsiveBreakoutWidthFullWidth, (0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? isCompactModeEnabled ? scaledDenseEmojiStyles : scaledEmojiStyles : isCompactModeEnabled ? denseStyles : undefined, (0, _expValEquals.expValEquals)('platform_synced_block', 'isEnabled', true) && syncBlockStyles, (0, _expValEquals.expValEquals)('platform_synced_block', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_dogfooding') && syncBlockOverflowStyles],
|
|
1904
|
+
(0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles, tableSharedStyle, tableRendererHeaderStylesForTableCellOnly, (0, _platformFeatureFlags.fg)('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ? firstNodeWithNotMarginTopWithNestedDnD : firstNodeWithNotMarginTop, rendererTableStyles, (0, _table.isStickyScrollbarEnabled)(appearance) && stickyScrollbarStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && allowNestedHeaderLinks && ((0, _expValEquals.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' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true))) && responsiveBreakoutWidthFullWidth, (0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? isCompactModeEnabled ? scaledDenseEmojiStyles : scaledEmojiStyles : isCompactModeEnabled ? denseStyles : undefined, (0, _expValEquals.expValEquals)('platform_synced_block', 'isEnabled', true) && syncBlockStyles, (0, _expValEquals.expValEquals)('platform_synced_block', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_dogfooding') && syncBlockOverflowStyles],
|
|
1691
1905
|
"data-testid": testId
|
|
1692
1906
|
}, children)
|
|
1693
1907
|
);
|