@atlaskit/renderer 132.1.5 → 132.2.0
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 +14 -0
- package/dist/cjs/react/nodes/extension.js +5 -5
- package/dist/cjs/react/nodes/multiBodiedExtension.js +6 -6
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +2 -35
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/cjs/ui/annotations/element/mark.js +2 -24
- package/dist/es2019/react/nodes/extension.js +5 -5
- package/dist/es2019/react/nodes/multiBodiedExtension.js +6 -6
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +2 -40
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/annotations/element/mark.js +2 -24
- package/dist/esm/react/nodes/extension.js +5 -5
- package/dist/esm/react/nodes/multiBodiedExtension.js +6 -6
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +2 -35
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/annotations/element/mark.js +2 -24
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 132.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`3a3311c8f547b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3a3311c8f547b) -
|
|
8
|
+
Removed stale feature gate `platform_renderer_a11y_inline_comment_fix` (final value: true).
|
|
9
|
+
Cleaned up flag-gated ternaries and removed dead `accessibilityStylesOld` constant.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`086ba910930e9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/086ba910930e9) -
|
|
14
|
+
FFCLEANUP-96543 - cleanup fg platform_editor_remove_important_in_render_ext
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 132.1.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -90,7 +90,7 @@ var renderExtension = exports.renderExtension = function renderExtension(content
|
|
|
90
90
|
rendererAppearance = _ref2.rendererAppearance,
|
|
91
91
|
fireAnalyticsEvent = _ref2.fireAnalyticsEvent;
|
|
92
92
|
// we should only use custom layout for full-page appearance
|
|
93
|
-
var canUseCustomLayout =
|
|
93
|
+
var canUseCustomLayout = rendererAppearance === 'full-page';
|
|
94
94
|
var isCustomLayout = isTopLevel && ['wide', 'full-width'].includes(layout) && canUseCustomLayout;
|
|
95
95
|
var centerAlignClass = isCustomLayout ? _consts.RendererCssClassName.EXTENSION_CENTER_ALIGN : '';
|
|
96
96
|
/**
|
|
@@ -114,9 +114,9 @@ var renderExtension = exports.renderExtension = function renderExtension(content
|
|
|
114
114
|
,
|
|
115
115
|
className: "".concat(_consts.RendererCssClassName.EXTENSION, " ").concat(inlineClassName, " ").concat(options.shadowClassNames, " ").concat(centerAlignClass),
|
|
116
116
|
style: {
|
|
117
|
-
width: isInline ? undefined :
|
|
117
|
+
width: isInline ? undefined : isCustomLayout ?
|
|
118
118
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
119
|
-
(0, _breakout.calcBreakoutWidthCss)(layout) :
|
|
119
|
+
(0, _breakout.calcBreakoutWidthCss)(layout) : undefined,
|
|
120
120
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
121
121
|
minHeight: isInline ? undefined : extensionHeight && "".concat(extensionHeight, "px")
|
|
122
122
|
},
|
|
@@ -145,9 +145,9 @@ var renderExtension = exports.renderExtension = function renderExtension(content
|
|
|
145
145
|
className: "".concat(_consts.RendererCssClassName.EXTENSION, " ").concat(inlineClassName, " ").concat(options.shadowClassNames, " ").concat(centerAlignClass),
|
|
146
146
|
style: {
|
|
147
147
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
148
|
-
width: isInline ? undefined :
|
|
148
|
+
width: isInline ? undefined : isCustomLayout ?
|
|
149
149
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
150
|
-
(0, _utils.calcBreakoutWidth)(layout, width) :
|
|
150
|
+
(0, _utils.calcBreakoutWidth)(layout, width) : undefined,
|
|
151
151
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
152
152
|
minHeight: isInline ? undefined : "".concat(extensionHeight, "px")
|
|
153
153
|
},
|
|
@@ -58,7 +58,7 @@ var MultiBodiedExtensionWrapperLegacy = function MultiBodiedExtensionWrapperLega
|
|
|
58
58
|
children = _ref3.children;
|
|
59
59
|
var isTopLevel = path.length < 1;
|
|
60
60
|
// we should only use custom layout for full-page appearance
|
|
61
|
-
var canUseCustomLayout =
|
|
61
|
+
var canUseCustomLayout = rendererAppearance === 'full-page';
|
|
62
62
|
var isCustomLayout = isTopLevel && ['wide', 'full-width'].includes(layout) && canUseCustomLayout;
|
|
63
63
|
var centerAlignClass = isCustomLayout ? _consts.RendererCssClassName.EXTENSION_CENTER_ALIGN : '';
|
|
64
64
|
|
|
@@ -67,9 +67,9 @@ var MultiBodiedExtensionWrapperLegacy = function MultiBodiedExtensionWrapperLega
|
|
|
67
67
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
68
68
|
className: "".concat(_consts.RendererCssClassName.EXTENSION, " ").concat(centerAlignClass),
|
|
69
69
|
style: {
|
|
70
|
-
width:
|
|
70
|
+
width: isCustomLayout ?
|
|
71
71
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
72
|
-
(0, _utils.calcBreakoutWidth)(layout, width) :
|
|
72
|
+
(0, _utils.calcBreakoutWidth)(layout, width) : undefined
|
|
73
73
|
},
|
|
74
74
|
"data-layout": layout,
|
|
75
75
|
"data-testid": "multiBodiedExtension--wrapper-renderer"
|
|
@@ -85,7 +85,7 @@ var MultiBodiedExtensionWrapperNext = function MultiBodiedExtensionWrapperNext(_
|
|
|
85
85
|
children = _ref4.children;
|
|
86
86
|
var isTopLevel = path.length < 1;
|
|
87
87
|
// we should only use custom layout for full-page appearance
|
|
88
|
-
var canUseCustomLayout =
|
|
88
|
+
var canUseCustomLayout = rendererAppearance === 'full-page';
|
|
89
89
|
var isCustomLayout = isTopLevel && ['wide', 'full-width'].includes(layout) && canUseCustomLayout;
|
|
90
90
|
var centerAlignClass = isCustomLayout ? _consts.RendererCssClassName.EXTENSION_CENTER_ALIGN : '';
|
|
91
91
|
|
|
@@ -94,9 +94,9 @@ var MultiBodiedExtensionWrapperNext = function MultiBodiedExtensionWrapperNext(_
|
|
|
94
94
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
95
95
|
className: "".concat(_consts.RendererCssClassName.EXTENSION, " ").concat(centerAlignClass),
|
|
96
96
|
style: {
|
|
97
|
-
width:
|
|
97
|
+
width: isCustomLayout ?
|
|
98
98
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
99
|
-
(0, _breakout.calcBreakoutWidthCss)(layout) :
|
|
99
|
+
(0, _breakout.calcBreakoutWidthCss)(layout) : undefined
|
|
100
100
|
},
|
|
101
101
|
"data-layout": layout,
|
|
102
102
|
"data-testid": "multiBodiedExtension--wrapper-renderer"
|
|
@@ -303,15 +303,6 @@ var rendererFullPageStylesWithReducedPadding = (0, _react.css)((0, _defineProper
|
|
|
303
303
|
}, "@media (max-width: ".concat(_editorSharedStyles.akEditorFullPageNarrowBreakout, "px)"), {
|
|
304
304
|
'--ak-renderer--full-page-gutter': "".concat(_editorSharedStyles.akEditorGutterPaddingReduced, "px")
|
|
305
305
|
}));
|
|
306
|
-
var oldRendererFullWidthStyles = (0, _react.css)({
|
|
307
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
308
|
-
maxWidth: "".concat(_editorSharedStyles.akEditorFullWidthLayoutWidth, "px"),
|
|
309
|
-
margin: "0 auto",
|
|
310
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
311
|
-
'.fabric-editor-breakout-mark:not([data-has-width="true"]), .ak-renderer-extension': {
|
|
312
|
-
width: '100% !important'
|
|
313
|
-
}
|
|
314
|
-
});
|
|
315
306
|
var rendererFullWidthStyles = (0, _react.css)({
|
|
316
307
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
317
308
|
maxWidth: "".concat(_editorSharedStyles.akEditorFullWidthLayoutWidth, "px"),
|
|
@@ -321,15 +312,6 @@ var rendererFullWidthStyles = (0, _react.css)({
|
|
|
321
312
|
width: '100% !important'
|
|
322
313
|
}
|
|
323
314
|
});
|
|
324
|
-
var oldRendererMaxWidthStyles = (0, _react.css)({
|
|
325
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
326
|
-
maxWidth: "".concat(_editorSharedStyles.akEditorMaxWidthLayoutWidth, "px"),
|
|
327
|
-
margin: "0 auto",
|
|
328
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
329
|
-
'.fabric-editor-breakout-mark:not([data-has-width="true"]), .ak-renderer-extension': {
|
|
330
|
-
width: '100% !important'
|
|
331
|
-
}
|
|
332
|
-
});
|
|
333
315
|
var rendererMaxWidthStyles = (0, _react.css)({
|
|
334
316
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
335
317
|
maxWidth: "".concat(_editorSharedStyles.akEditorMaxWidthLayoutWidth, "px"),
|
|
@@ -851,21 +833,6 @@ var extensionStyle = (0, _react.css)({
|
|
|
851
833
|
fontSize: 'var(--ak-renderer-base-font-size)'
|
|
852
834
|
}
|
|
853
835
|
});
|
|
854
|
-
var oldExtensionAsInlineStyle = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_consts.RendererCssClassName.DOCUMENT, " [data-as-inline=\"on\"]"), {
|
|
855
|
-
display: 'inline-block'
|
|
856
|
-
}), ".".concat(_consts.RendererCssClassName.DOCUMENT, " .").concat(_consts.RendererCssClassName.EXTENSION_AS_INLINE), {
|
|
857
|
-
display: 'inline-block',
|
|
858
|
-
// use !important here because the current width has !important applied to it and it's not working when used in React style prop
|
|
859
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
860
|
-
width: 'auto !important',
|
|
861
|
-
marginTop: 0
|
|
862
|
-
}), ".".concat(_consts.RendererCssClassName.EXTENSION_AS_INLINE, " .").concat(_consts.RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER), {
|
|
863
|
-
display: 'inline-block',
|
|
864
|
-
overflowX: 'visible',
|
|
865
|
-
containerType: 'normal'
|
|
866
|
-
}), ".".concat(_consts.RendererCssClassName.EXTENSION_AS_INLINE, " .").concat(_consts.RendererCssClassName.EXTENSION_INNER_WRAPPER), {
|
|
867
|
-
display: 'inline-block'
|
|
868
|
-
}));
|
|
869
836
|
var extensionAsInlineStyle = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_consts.RendererCssClassName.DOCUMENT, " [data-as-inline=\"on\"]"), {
|
|
870
837
|
display: 'inline-block'
|
|
871
838
|
}), ".".concat(_consts.RendererCssClassName.DOCUMENT, " .").concat(_consts.RendererCssClassName.EXTENSION_AS_INLINE), {
|
|
@@ -2224,13 +2191,13 @@ var RendererStyleContainer = exports.RendererStyleContainer = function RendererS
|
|
|
2224
2191
|
}, (0, _expValEquals.expValEquals)('platform_editor_small_font_size', 'isEnabled', true) && {
|
|
2225
2192
|
'--ak-renderer-editor-font-small-text': (0, _ugcTokens.editorUGCToken)('editor.font.body.small')
|
|
2226
2193
|
}),
|
|
2227
|
-
css: [(0, _expValEquals.expValEquals)('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, (0, _expValEquals.expValEquals)('platform_editor_small_font_size', 'isEnabled', true) && fontSizeStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, (0, _platformFeatureFlags.fg)('ally_30945_accessibility_outline_fix') && headingAnchorButtonFocusVisibleStyles, (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' &&
|
|
2194
|
+
css: [(0, _expValEquals.expValEquals)('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, (0, _expValEquals.expValEquals)('platform_editor_small_font_size', 'isEnabled', true) && fontSizeStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, (0, _platformFeatureFlags.fg)('ally_30945_accessibility_outline_fix') && headingAnchorButtonFocusVisibleStyles, (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, (0, _expValEquals.expValEquals)('platform_editor_flexible_list_schema', 'isEnabled', true) && listItemHiddenMarkerStyles, indentationSharedStyles, indentationSharedStylesWithMarginFix, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? blockMarksSharedStyles : blockMarksSharedStylesDuplicateAnchor, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles,
|
|
2228
2195
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
2229
2196
|
textHighlightPaddingStyles, tasksAndDecisionsStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, smartCardStyles, smartCardStylesAvatarFix, (0, _experiments.editorExperiment)('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, (0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') && ((0, _expValEquals.expValEquals)('confluence_fe_renderer_inline_node_mark_color_fix', 'isEnabled', true) ? rendererAnnotationStyles : rendererAnnotationStylesOld),
|
|
2230
2197
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
2231
2198
|
(0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor, !(0, _expValEquals.expValEquals)('platform_editor_flex_based_centering', 'isEnabled', true) && extensionCenterAlignLegacyStyles,
|
|
2232
2199
|
// this should be placed after baseOtherStyles
|
|
2233
|
-
(0, _expValEquals.expValEquals)('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) &&
|
|
2200
|
+
(0, _expValEquals.expValEquals)('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && extensionAsInlineStyle, inlineExtensionRendererMarginFix, allowNestedHeaderLinks && ((0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle,
|
|
2234
2201
|
// merge firstWrappedMediaStyles with mediaSingleSharedStyle when clean up platform_editor_fix_media_in_renderer
|
|
2235
2202
|
(0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles, tableSharedStyle, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeStyles, 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 && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, 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) ? (0, _expValEquals.expValEquals)('platform_editor_emojis_in_renderer_smart_links', 'isEnabled', true) ? isCompactModeEnabled ? scaledDenseEmojiStylesNew : scaledEmojiStylesNew : isCompactModeEnabled ? scaledDenseEmojiStyles : scaledEmojiStyles : isCompactModeEnabled ? denseStyles : undefined, (0, _experiments.editorExperiment)('platform_synced_block', true) && syncBlockStyles, centerWrapperStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) && isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && (0, _experiments.editorExperiment)('platform_synced_block', true) && tableFakeBorderStyles, isInsideSyncBlock && (0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, (0, _expValEquals.expValEquals)('platform_editor_hide_extension_renderer_support', 'isEnabled', true) && hideExtensionStyles],
|
|
2236
2203
|
"data-testid": testId
|
|
@@ -72,7 +72,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
72
72
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
73
73
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
74
74
|
var packageName = "@atlaskit/renderer";
|
|
75
|
-
var packageVersion = "132.1.
|
|
75
|
+
var packageVersion = "132.1.5";
|
|
76
76
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
77
77
|
containerName: 'ak-renderer-wrapper',
|
|
78
78
|
containerType: 'inline-size'
|
|
@@ -93,25 +93,6 @@ var isMobile = function isMobile() {
|
|
|
93
93
|
// eslint-disable-next-line require-unicode-regexp
|
|
94
94
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
95
95
|
};
|
|
96
|
-
var accessibilityStylesOld = (0, _react2.css)({
|
|
97
|
-
'&::before, &::after': {
|
|
98
|
-
clipPath: 'inset(100%)',
|
|
99
|
-
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
100
|
-
height: '1px',
|
|
101
|
-
overflow: 'hidden',
|
|
102
|
-
position: 'absolute',
|
|
103
|
-
whiteSpace: 'nowrap',
|
|
104
|
-
width: '1px'
|
|
105
|
-
},
|
|
106
|
-
'&::before': {
|
|
107
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
108
|
-
content: "' [var(--ak-renderer-annotation-startmarker)] '"
|
|
109
|
-
},
|
|
110
|
-
'&::after': {
|
|
111
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
112
|
-
content: "' [var(--ak-renderer-annotation-endmarker)] '"
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
96
|
var accessibilityStylesNew = (0, _react2.css)({
|
|
116
97
|
'&::before, &::after': {
|
|
117
98
|
clipPath: 'inset(100%)',
|
|
@@ -234,13 +215,10 @@ var MarkComponent = exports.MarkComponent = function MarkComponent(_ref) {
|
|
|
234
215
|
ref: id === currentSelectedAnnotationId ? markRef : undefined,
|
|
235
216
|
id: id
|
|
236
217
|
}, (0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') ? 'onClickCapture' : 'onClick', onMarkClick), accessibility), overriddenData), !useBlockLevel && {
|
|
237
|
-
css: [markStyles, markStylesLayeringFix, (0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') && markStylesWithInlineComments, markStylesWithCommentsPanel, !isMobile() &&
|
|
238
|
-
style:
|
|
218
|
+
css: [markStyles, markStylesLayeringFix, (0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') && markStylesWithInlineComments, markStylesWithCommentsPanel, !isMobile() && accessibilityStylesNew, markStylesWithUpdatedShadow],
|
|
219
|
+
style: {
|
|
239
220
|
'--ak-renderer-annotation-startmarker': "\"".concat(intl.formatMessage(_messages.inlineCommentMessages.contentRendererInlineCommentMarkerStart), "\""),
|
|
240
221
|
'--ak-renderer-annotation-endmarker': "\"".concat(intl.formatMessage(_messages.inlineCommentMessages.contentRendererInlineCommentMarkerEnd), "\"")
|
|
241
|
-
} : {
|
|
242
|
-
'--ak-renderer-annotation-startmarker': intl.formatMessage(_messages.inlineCommentMessages.contentRendererInlineCommentMarkerStart),
|
|
243
|
-
'--ak-renderer-annotation-endmarker': intl.formatMessage(_messages.inlineCommentMessages.contentRendererInlineCommentMarkerEnd)
|
|
244
222
|
}
|
|
245
223
|
}), children);
|
|
246
224
|
};
|
|
@@ -70,7 +70,7 @@ export const renderExtension = (content, layout, options = {}, removeOverflow, e
|
|
|
70
70
|
fireAnalyticsEvent
|
|
71
71
|
} = options || {};
|
|
72
72
|
// we should only use custom layout for full-page appearance
|
|
73
|
-
const canUseCustomLayout =
|
|
73
|
+
const canUseCustomLayout = rendererAppearance === 'full-page';
|
|
74
74
|
const isCustomLayout = isTopLevel && ['wide', 'full-width'].includes(layout) && canUseCustomLayout;
|
|
75
75
|
const centerAlignClass = isCustomLayout ? RendererCssClassName.EXTENSION_CENTER_ALIGN : '';
|
|
76
76
|
/**
|
|
@@ -94,9 +94,9 @@ export const renderExtension = (content, layout, options = {}, removeOverflow, e
|
|
|
94
94
|
,
|
|
95
95
|
className: `${RendererCssClassName.EXTENSION} ${inlineClassName} ${options.shadowClassNames} ${centerAlignClass}`,
|
|
96
96
|
style: {
|
|
97
|
-
width: isInline ? undefined :
|
|
97
|
+
width: isInline ? undefined : isCustomLayout ?
|
|
98
98
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
99
|
-
calcBreakoutWidthCss(layout) :
|
|
99
|
+
calcBreakoutWidthCss(layout) : undefined,
|
|
100
100
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
101
101
|
minHeight: isInline ? undefined : extensionHeight && `${extensionHeight}px`
|
|
102
102
|
},
|
|
@@ -126,9 +126,9 @@ export const renderExtension = (content, layout, options = {}, removeOverflow, e
|
|
|
126
126
|
className: `${RendererCssClassName.EXTENSION} ${inlineClassName} ${options.shadowClassNames} ${centerAlignClass}`,
|
|
127
127
|
style: {
|
|
128
128
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
129
|
-
width: isInline ? undefined :
|
|
129
|
+
width: isInline ? undefined : isCustomLayout ?
|
|
130
130
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
131
|
-
calcBreakoutWidth(layout, width) :
|
|
131
|
+
calcBreakoutWidth(layout, width) : undefined,
|
|
132
132
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
133
133
|
minHeight: isInline ? undefined : `${extensionHeight}px`
|
|
134
134
|
},
|
|
@@ -50,7 +50,7 @@ const MultiBodiedExtensionWrapperLegacy = ({
|
|
|
50
50
|
}) => {
|
|
51
51
|
const isTopLevel = path.length < 1;
|
|
52
52
|
// we should only use custom layout for full-page appearance
|
|
53
|
-
const canUseCustomLayout =
|
|
53
|
+
const canUseCustomLayout = rendererAppearance === 'full-page';
|
|
54
54
|
const isCustomLayout = isTopLevel && ['wide', 'full-width'].includes(layout) && canUseCustomLayout;
|
|
55
55
|
const centerAlignClass = isCustomLayout ? RendererCssClassName.EXTENSION_CENTER_ALIGN : '';
|
|
56
56
|
|
|
@@ -59,9 +59,9 @@ const MultiBodiedExtensionWrapperLegacy = ({
|
|
|
59
59
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
60
60
|
className: `${RendererCssClassName.EXTENSION} ${centerAlignClass}`,
|
|
61
61
|
style: {
|
|
62
|
-
width:
|
|
62
|
+
width: isCustomLayout ?
|
|
63
63
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
64
|
-
calcBreakoutWidth(layout, width) :
|
|
64
|
+
calcBreakoutWidth(layout, width) : undefined
|
|
65
65
|
},
|
|
66
66
|
"data-layout": layout,
|
|
67
67
|
"data-testid": "multiBodiedExtension--wrapper-renderer"
|
|
@@ -78,7 +78,7 @@ const MultiBodiedExtensionWrapperNext = ({
|
|
|
78
78
|
}) => {
|
|
79
79
|
const isTopLevel = path.length < 1;
|
|
80
80
|
// we should only use custom layout for full-page appearance
|
|
81
|
-
const canUseCustomLayout =
|
|
81
|
+
const canUseCustomLayout = rendererAppearance === 'full-page';
|
|
82
82
|
const isCustomLayout = isTopLevel && ['wide', 'full-width'].includes(layout) && canUseCustomLayout;
|
|
83
83
|
const centerAlignClass = isCustomLayout ? RendererCssClassName.EXTENSION_CENTER_ALIGN : '';
|
|
84
84
|
|
|
@@ -87,9 +87,9 @@ const MultiBodiedExtensionWrapperNext = ({
|
|
|
87
87
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
88
88
|
className: `${RendererCssClassName.EXTENSION} ${centerAlignClass}`,
|
|
89
89
|
style: {
|
|
90
|
-
width:
|
|
90
|
+
width: isCustomLayout ?
|
|
91
91
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
92
|
-
calcBreakoutWidthCss(layout) :
|
|
92
|
+
calcBreakoutWidthCss(layout) : undefined
|
|
93
93
|
},
|
|
94
94
|
"data-layout": layout,
|
|
95
95
|
"data-testid": "multiBodiedExtension--wrapper-renderer"
|
|
@@ -398,15 +398,6 @@ const rendererFullPageStylesWithReducedPadding = css({
|
|
|
398
398
|
'--ak-renderer--full-page-gutter': `${akEditorGutterPaddingReduced}px`
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
|
-
const oldRendererFullWidthStyles = css({
|
|
402
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
403
|
-
maxWidth: `${akEditorFullWidthLayoutWidth}px`,
|
|
404
|
-
margin: `0 auto`,
|
|
405
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
406
|
-
'.fabric-editor-breakout-mark:not([data-has-width="true"]), .ak-renderer-extension': {
|
|
407
|
-
width: '100% !important'
|
|
408
|
-
}
|
|
409
|
-
});
|
|
410
401
|
const rendererFullWidthStyles = css({
|
|
411
402
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
412
403
|
maxWidth: `${akEditorFullWidthLayoutWidth}px`,
|
|
@@ -416,15 +407,6 @@ const rendererFullWidthStyles = css({
|
|
|
416
407
|
width: '100% !important'
|
|
417
408
|
}
|
|
418
409
|
});
|
|
419
|
-
const oldRendererMaxWidthStyles = css({
|
|
420
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
421
|
-
maxWidth: `${akEditorMaxWidthLayoutWidth}px`,
|
|
422
|
-
margin: `0 auto`,
|
|
423
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
424
|
-
'.fabric-editor-breakout-mark:not([data-has-width="true"]), .ak-renderer-extension': {
|
|
425
|
-
width: '100% !important'
|
|
426
|
-
}
|
|
427
|
-
});
|
|
428
410
|
const rendererMaxWidthStyles = css({
|
|
429
411
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
430
412
|
maxWidth: `${akEditorMaxWidthLayoutWidth}px`,
|
|
@@ -1000,26 +982,6 @@ const extensionStyle = css({
|
|
|
1000
982
|
fontSize: 'var(--ak-renderer-base-font-size)'
|
|
1001
983
|
}
|
|
1002
984
|
});
|
|
1003
|
-
const oldExtensionAsInlineStyle = css({
|
|
1004
|
-
[`.${RendererCssClassName.DOCUMENT} [data-as-inline="on"]`]: {
|
|
1005
|
-
display: 'inline-block'
|
|
1006
|
-
},
|
|
1007
|
-
[`.${RendererCssClassName.DOCUMENT} .${RendererCssClassName.EXTENSION_AS_INLINE}`]: {
|
|
1008
|
-
display: 'inline-block',
|
|
1009
|
-
// use !important here because the current width has !important applied to it and it's not working when used in React style prop
|
|
1010
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
1011
|
-
width: 'auto !important',
|
|
1012
|
-
marginTop: 0
|
|
1013
|
-
},
|
|
1014
|
-
[`.${RendererCssClassName.EXTENSION_AS_INLINE} .${RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER}`]: {
|
|
1015
|
-
display: 'inline-block',
|
|
1016
|
-
overflowX: 'visible',
|
|
1017
|
-
containerType: 'normal'
|
|
1018
|
-
},
|
|
1019
|
-
[`.${RendererCssClassName.EXTENSION_AS_INLINE} .${RendererCssClassName.EXTENSION_INNER_WRAPPER}`]: {
|
|
1020
|
-
display: 'inline-block'
|
|
1021
|
-
}
|
|
1022
|
-
});
|
|
1023
985
|
const extensionAsInlineStyle = css({
|
|
1024
986
|
[`.${RendererCssClassName.DOCUMENT} [data-as-inline="on"]`]: {
|
|
1025
987
|
display: 'inline-block'
|
|
@@ -2830,13 +2792,13 @@ export const RendererStyleContainer = props => {
|
|
|
2830
2792
|
'--ak-renderer-editor-font-small-text': editorUGCToken('editor.font.body.small')
|
|
2831
2793
|
})
|
|
2832
2794
|
},
|
|
2833
|
-
css: [expValEquals('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, expValEquals('platform_editor_small_font_size', 'isEnabled', true) && fontSizeStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, fg('ally_30945_accessibility_outline_fix') && headingAnchorButtonFocusVisibleStyles, 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' &&
|
|
2795
|
+
css: [expValEquals('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, expValEquals('platform_editor_small_font_size', 'isEnabled', true) && fontSizeStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, fg('ally_30945_accessibility_outline_fix') && headingAnchorButtonFocusVisibleStyles, 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, expValEquals('platform_editor_flexible_list_schema', 'isEnabled', true) && listItemHiddenMarkerStyles, indentationSharedStyles, indentationSharedStylesWithMarginFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? blockMarksSharedStyles : blockMarksSharedStylesDuplicateAnchor, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles,
|
|
2834
2796
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
2835
2797
|
textHighlightPaddingStyles, tasksAndDecisionsStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, smartCardStyles, smartCardStylesAvatarFix, editorExperiment('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, fg('editor_inline_comments_on_inline_nodes') && (expValEquals('confluence_fe_renderer_inline_node_mark_color_fix', 'isEnabled', true) ? rendererAnnotationStyles : rendererAnnotationStylesOld),
|
|
2836
2798
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
2837
2799
|
fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor, !expValEquals('platform_editor_flex_based_centering', 'isEnabled', true) && extensionCenterAlignLegacyStyles,
|
|
2838
2800
|
// this should be placed after baseOtherStyles
|
|
2839
|
-
expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) &&
|
|
2801
|
+
expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && extensionAsInlineStyle, inlineExtensionRendererMarginFix, allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle,
|
|
2840
2802
|
// merge firstWrappedMediaStyles with mediaSingleSharedStyle when clean up platform_editor_fix_media_in_renderer
|
|
2841
2803
|
fg('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles, tableSharedStyle, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeStyles, 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 && expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, 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) ? expValEquals('platform_editor_emojis_in_renderer_smart_links', 'isEnabled', true) ? isCompactModeEnabled ? scaledDenseEmojiStylesNew : scaledEmojiStylesNew : isCompactModeEnabled ? scaledDenseEmojiStyles : scaledEmojiStyles : isCompactModeEnabled ? denseStyles : undefined, editorExperiment('platform_synced_block', true) && syncBlockStyles, centerWrapperStyles, editorExperiment('platform_synced_block', true) && isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && editorExperiment('platform_synced_block', true) && tableFakeBorderStyles, isInsideSyncBlock && editorExperiment('platform_synced_block', true) && expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, expValEquals('platform_editor_hide_extension_renderer_support', 'isEnabled', true) && hideExtensionStyles],
|
|
2842
2804
|
"data-testid": testId
|
|
@@ -58,7 +58,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
58
58
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
59
59
|
const RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
60
60
|
const packageName = "@atlaskit/renderer";
|
|
61
|
-
const packageVersion = "132.1.
|
|
61
|
+
const packageVersion = "132.1.5";
|
|
62
62
|
const setAsQueryContainerStyles = css({
|
|
63
63
|
containerName: 'ak-renderer-wrapper',
|
|
64
64
|
containerType: 'inline-size'
|
|
@@ -99,25 +99,6 @@ const isMobile = () => {
|
|
|
99
99
|
// eslint-disable-next-line require-unicode-regexp
|
|
100
100
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
101
101
|
};
|
|
102
|
-
const accessibilityStylesOld = css({
|
|
103
|
-
'&::before, &::after': {
|
|
104
|
-
clipPath: 'inset(100%)',
|
|
105
|
-
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
106
|
-
height: '1px',
|
|
107
|
-
overflow: 'hidden',
|
|
108
|
-
position: 'absolute',
|
|
109
|
-
whiteSpace: 'nowrap',
|
|
110
|
-
width: '1px'
|
|
111
|
-
},
|
|
112
|
-
'&::before': {
|
|
113
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
114
|
-
content: `' [var(--ak-renderer-annotation-startmarker)] '`
|
|
115
|
-
},
|
|
116
|
-
'&::after': {
|
|
117
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
118
|
-
content: `' [var(--ak-renderer-annotation-endmarker)] '`
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
102
|
const accessibilityStylesNew = css({
|
|
122
103
|
'&::before, &::after': {
|
|
123
104
|
clipPath: 'inset(100%)',
|
|
@@ -246,13 +227,10 @@ export const MarkComponent = ({
|
|
|
246
227
|
...accessibility,
|
|
247
228
|
...overriddenData,
|
|
248
229
|
...(!useBlockLevel && {
|
|
249
|
-
css: [markStyles, markStylesLayeringFix, fg('editor_inline_comments_on_inline_nodes') && markStylesWithInlineComments, markStylesWithCommentsPanel, !isMobile() &&
|
|
250
|
-
style:
|
|
230
|
+
css: [markStyles, markStylesLayeringFix, fg('editor_inline_comments_on_inline_nodes') && markStylesWithInlineComments, markStylesWithCommentsPanel, !isMobile() && accessibilityStylesNew, markStylesWithUpdatedShadow],
|
|
231
|
+
style: {
|
|
251
232
|
'--ak-renderer-annotation-startmarker': `"${intl.formatMessage(inlineCommentMessages.contentRendererInlineCommentMarkerStart)}"`,
|
|
252
233
|
'--ak-renderer-annotation-endmarker': `"${intl.formatMessage(inlineCommentMessages.contentRendererInlineCommentMarkerEnd)}"`
|
|
253
|
-
} : {
|
|
254
|
-
'--ak-renderer-annotation-startmarker': intl.formatMessage(inlineCommentMessages.contentRendererInlineCommentMarkerStart),
|
|
255
|
-
'--ak-renderer-annotation-endmarker': intl.formatMessage(inlineCommentMessages.contentRendererInlineCommentMarkerEnd)
|
|
256
234
|
}
|
|
257
235
|
})
|
|
258
236
|
}, children);
|
|
@@ -80,7 +80,7 @@ export var renderExtension = function renderExtension(content, layout) {
|
|
|
80
80
|
rendererAppearance = _ref2.rendererAppearance,
|
|
81
81
|
fireAnalyticsEvent = _ref2.fireAnalyticsEvent;
|
|
82
82
|
// we should only use custom layout for full-page appearance
|
|
83
|
-
var canUseCustomLayout =
|
|
83
|
+
var canUseCustomLayout = rendererAppearance === 'full-page';
|
|
84
84
|
var isCustomLayout = isTopLevel && ['wide', 'full-width'].includes(layout) && canUseCustomLayout;
|
|
85
85
|
var centerAlignClass = isCustomLayout ? RendererCssClassName.EXTENSION_CENTER_ALIGN : '';
|
|
86
86
|
/**
|
|
@@ -104,9 +104,9 @@ export var renderExtension = function renderExtension(content, layout) {
|
|
|
104
104
|
,
|
|
105
105
|
className: "".concat(RendererCssClassName.EXTENSION, " ").concat(inlineClassName, " ").concat(options.shadowClassNames, " ").concat(centerAlignClass),
|
|
106
106
|
style: {
|
|
107
|
-
width: isInline ? undefined :
|
|
107
|
+
width: isInline ? undefined : isCustomLayout ?
|
|
108
108
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
109
|
-
calcBreakoutWidthCss(layout) :
|
|
109
|
+
calcBreakoutWidthCss(layout) : undefined,
|
|
110
110
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
111
111
|
minHeight: isInline ? undefined : extensionHeight && "".concat(extensionHeight, "px")
|
|
112
112
|
},
|
|
@@ -135,9 +135,9 @@ export var renderExtension = function renderExtension(content, layout) {
|
|
|
135
135
|
className: "".concat(RendererCssClassName.EXTENSION, " ").concat(inlineClassName, " ").concat(options.shadowClassNames, " ").concat(centerAlignClass),
|
|
136
136
|
style: {
|
|
137
137
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
138
|
-
width: isInline ? undefined :
|
|
138
|
+
width: isInline ? undefined : isCustomLayout ?
|
|
139
139
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
140
|
-
calcBreakoutWidth(layout, width) :
|
|
140
|
+
calcBreakoutWidth(layout, width) : undefined,
|
|
141
141
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
142
142
|
minHeight: isInline ? undefined : "".concat(extensionHeight, "px")
|
|
143
143
|
},
|
|
@@ -50,7 +50,7 @@ var MultiBodiedExtensionWrapperLegacy = function MultiBodiedExtensionWrapperLega
|
|
|
50
50
|
children = _ref3.children;
|
|
51
51
|
var isTopLevel = path.length < 1;
|
|
52
52
|
// we should only use custom layout for full-page appearance
|
|
53
|
-
var canUseCustomLayout =
|
|
53
|
+
var canUseCustomLayout = rendererAppearance === 'full-page';
|
|
54
54
|
var isCustomLayout = isTopLevel && ['wide', 'full-width'].includes(layout) && canUseCustomLayout;
|
|
55
55
|
var centerAlignClass = isCustomLayout ? RendererCssClassName.EXTENSION_CENTER_ALIGN : '';
|
|
56
56
|
|
|
@@ -59,9 +59,9 @@ var MultiBodiedExtensionWrapperLegacy = function MultiBodiedExtensionWrapperLega
|
|
|
59
59
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
60
60
|
className: "".concat(RendererCssClassName.EXTENSION, " ").concat(centerAlignClass),
|
|
61
61
|
style: {
|
|
62
|
-
width:
|
|
62
|
+
width: isCustomLayout ?
|
|
63
63
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
64
|
-
calcBreakoutWidth(layout, width) :
|
|
64
|
+
calcBreakoutWidth(layout, width) : undefined
|
|
65
65
|
},
|
|
66
66
|
"data-layout": layout,
|
|
67
67
|
"data-testid": "multiBodiedExtension--wrapper-renderer"
|
|
@@ -77,7 +77,7 @@ var MultiBodiedExtensionWrapperNext = function MultiBodiedExtensionWrapperNext(_
|
|
|
77
77
|
children = _ref4.children;
|
|
78
78
|
var isTopLevel = path.length < 1;
|
|
79
79
|
// we should only use custom layout for full-page appearance
|
|
80
|
-
var canUseCustomLayout =
|
|
80
|
+
var canUseCustomLayout = rendererAppearance === 'full-page';
|
|
81
81
|
var isCustomLayout = isTopLevel && ['wide', 'full-width'].includes(layout) && canUseCustomLayout;
|
|
82
82
|
var centerAlignClass = isCustomLayout ? RendererCssClassName.EXTENSION_CENTER_ALIGN : '';
|
|
83
83
|
|
|
@@ -86,9 +86,9 @@ var MultiBodiedExtensionWrapperNext = function MultiBodiedExtensionWrapperNext(_
|
|
|
86
86
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
87
87
|
className: "".concat(RendererCssClassName.EXTENSION, " ").concat(centerAlignClass),
|
|
88
88
|
style: {
|
|
89
|
-
width:
|
|
89
|
+
width: isCustomLayout ?
|
|
90
90
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
91
|
-
calcBreakoutWidthCss(layout) :
|
|
91
|
+
calcBreakoutWidthCss(layout) : undefined
|
|
92
92
|
},
|
|
93
93
|
"data-layout": layout,
|
|
94
94
|
"data-testid": "multiBodiedExtension--wrapper-renderer"
|
|
@@ -296,15 +296,6 @@ var rendererFullPageStylesWithReducedPadding = css(_defineProperty({
|
|
|
296
296
|
}, "@media (max-width: ".concat(akEditorFullPageNarrowBreakout, "px)"), {
|
|
297
297
|
'--ak-renderer--full-page-gutter': "".concat(akEditorGutterPaddingReduced, "px")
|
|
298
298
|
}));
|
|
299
|
-
var oldRendererFullWidthStyles = css({
|
|
300
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
301
|
-
maxWidth: "".concat(akEditorFullWidthLayoutWidth, "px"),
|
|
302
|
-
margin: "0 auto",
|
|
303
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
304
|
-
'.fabric-editor-breakout-mark:not([data-has-width="true"]), .ak-renderer-extension': {
|
|
305
|
-
width: '100% !important'
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
299
|
var rendererFullWidthStyles = css({
|
|
309
300
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
310
301
|
maxWidth: "".concat(akEditorFullWidthLayoutWidth, "px"),
|
|
@@ -314,15 +305,6 @@ var rendererFullWidthStyles = css({
|
|
|
314
305
|
width: '100% !important'
|
|
315
306
|
}
|
|
316
307
|
});
|
|
317
|
-
var oldRendererMaxWidthStyles = css({
|
|
318
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
319
|
-
maxWidth: "".concat(akEditorMaxWidthLayoutWidth, "px"),
|
|
320
|
-
margin: "0 auto",
|
|
321
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
322
|
-
'.fabric-editor-breakout-mark:not([data-has-width="true"]), .ak-renderer-extension': {
|
|
323
|
-
width: '100% !important'
|
|
324
|
-
}
|
|
325
|
-
});
|
|
326
308
|
var rendererMaxWidthStyles = css({
|
|
327
309
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
328
310
|
maxWidth: "".concat(akEditorMaxWidthLayoutWidth, "px"),
|
|
@@ -844,21 +826,6 @@ var extensionStyle = css({
|
|
|
844
826
|
fontSize: 'var(--ak-renderer-base-font-size)'
|
|
845
827
|
}
|
|
846
828
|
});
|
|
847
|
-
var oldExtensionAsInlineStyle = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(RendererCssClassName.DOCUMENT, " [data-as-inline=\"on\"]"), {
|
|
848
|
-
display: 'inline-block'
|
|
849
|
-
}), ".".concat(RendererCssClassName.DOCUMENT, " .").concat(RendererCssClassName.EXTENSION_AS_INLINE), {
|
|
850
|
-
display: 'inline-block',
|
|
851
|
-
// use !important here because the current width has !important applied to it and it's not working when used in React style prop
|
|
852
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
853
|
-
width: 'auto !important',
|
|
854
|
-
marginTop: 0
|
|
855
|
-
}), ".".concat(RendererCssClassName.EXTENSION_AS_INLINE, " .").concat(RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER), {
|
|
856
|
-
display: 'inline-block',
|
|
857
|
-
overflowX: 'visible',
|
|
858
|
-
containerType: 'normal'
|
|
859
|
-
}), ".".concat(RendererCssClassName.EXTENSION_AS_INLINE, " .").concat(RendererCssClassName.EXTENSION_INNER_WRAPPER), {
|
|
860
|
-
display: 'inline-block'
|
|
861
|
-
}));
|
|
862
829
|
var extensionAsInlineStyle = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(RendererCssClassName.DOCUMENT, " [data-as-inline=\"on\"]"), {
|
|
863
830
|
display: 'inline-block'
|
|
864
831
|
}), ".".concat(RendererCssClassName.DOCUMENT, " .").concat(RendererCssClassName.EXTENSION_AS_INLINE), {
|
|
@@ -2217,13 +2184,13 @@ export var RendererStyleContainer = function RendererStyleContainer(props) {
|
|
|
2217
2184
|
}, expValEquals('platform_editor_small_font_size', 'isEnabled', true) && {
|
|
2218
2185
|
'--ak-renderer-editor-font-small-text': editorUGCToken('editor.font.body.small')
|
|
2219
2186
|
}),
|
|
2220
|
-
css: [expValEquals('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, expValEquals('platform_editor_small_font_size', 'isEnabled', true) && fontSizeStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, fg('ally_30945_accessibility_outline_fix') && headingAnchorButtonFocusVisibleStyles, 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' &&
|
|
2187
|
+
css: [expValEquals('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, expValEquals('platform_editor_small_font_size', 'isEnabled', true) && fontSizeStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, fg('ally_30945_accessibility_outline_fix') && headingAnchorButtonFocusVisibleStyles, 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, expValEquals('platform_editor_flexible_list_schema', 'isEnabled', true) && listItemHiddenMarkerStyles, indentationSharedStyles, indentationSharedStylesWithMarginFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? blockMarksSharedStyles : blockMarksSharedStylesDuplicateAnchor, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles,
|
|
2221
2188
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
2222
2189
|
textHighlightPaddingStyles, tasksAndDecisionsStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, smartCardStyles, smartCardStylesAvatarFix, editorExperiment('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, fg('editor_inline_comments_on_inline_nodes') && (expValEquals('confluence_fe_renderer_inline_node_mark_color_fix', 'isEnabled', true) ? rendererAnnotationStyles : rendererAnnotationStylesOld),
|
|
2223
2190
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
2224
2191
|
fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor, !expValEquals('platform_editor_flex_based_centering', 'isEnabled', true) && extensionCenterAlignLegacyStyles,
|
|
2225
2192
|
// this should be placed after baseOtherStyles
|
|
2226
|
-
expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) &&
|
|
2193
|
+
expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && extensionAsInlineStyle, inlineExtensionRendererMarginFix, allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle,
|
|
2227
2194
|
// merge firstWrappedMediaStyles with mediaSingleSharedStyle when clean up platform_editor_fix_media_in_renderer
|
|
2228
2195
|
fg('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles, tableSharedStyle, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeStyles, 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 && expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, 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) ? expValEquals('platform_editor_emojis_in_renderer_smart_links', 'isEnabled', true) ? isCompactModeEnabled ? scaledDenseEmojiStylesNew : scaledEmojiStylesNew : isCompactModeEnabled ? scaledDenseEmojiStyles : scaledEmojiStyles : isCompactModeEnabled ? denseStyles : undefined, editorExperiment('platform_synced_block', true) && syncBlockStyles, centerWrapperStyles, editorExperiment('platform_synced_block', true) && isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && editorExperiment('platform_synced_block', true) && tableFakeBorderStyles, isInsideSyncBlock && editorExperiment('platform_synced_block', true) && expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, expValEquals('platform_editor_hide_extension_renderer_support', 'isEnabled', true) && hideExtensionStyles],
|
|
2229
2196
|
"data-testid": testId
|
|
@@ -63,7 +63,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
63
63
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
64
64
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
65
65
|
var packageName = "@atlaskit/renderer";
|
|
66
|
-
var packageVersion = "132.1.
|
|
66
|
+
var packageVersion = "132.1.5";
|
|
67
67
|
var setAsQueryContainerStyles = css({
|
|
68
68
|
containerName: 'ak-renderer-wrapper',
|
|
69
69
|
containerType: 'inline-size'
|
|
@@ -89,25 +89,6 @@ var isMobile = function isMobile() {
|
|
|
89
89
|
// eslint-disable-next-line require-unicode-regexp
|
|
90
90
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
91
91
|
};
|
|
92
|
-
var accessibilityStylesOld = css({
|
|
93
|
-
'&::before, &::after': {
|
|
94
|
-
clipPath: 'inset(100%)',
|
|
95
|
-
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
96
|
-
height: '1px',
|
|
97
|
-
overflow: 'hidden',
|
|
98
|
-
position: 'absolute',
|
|
99
|
-
whiteSpace: 'nowrap',
|
|
100
|
-
width: '1px'
|
|
101
|
-
},
|
|
102
|
-
'&::before': {
|
|
103
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
104
|
-
content: "' [var(--ak-renderer-annotation-startmarker)] '"
|
|
105
|
-
},
|
|
106
|
-
'&::after': {
|
|
107
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
108
|
-
content: "' [var(--ak-renderer-annotation-endmarker)] '"
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
92
|
var accessibilityStylesNew = css({
|
|
112
93
|
'&::before, &::after': {
|
|
113
94
|
clipPath: 'inset(100%)',
|
|
@@ -230,13 +211,10 @@ export var MarkComponent = function MarkComponent(_ref) {
|
|
|
230
211
|
ref: id === currentSelectedAnnotationId ? markRef : undefined,
|
|
231
212
|
id: id
|
|
232
213
|
}, fg('editor_inline_comments_on_inline_nodes') ? 'onClickCapture' : 'onClick', onMarkClick), accessibility), overriddenData), !useBlockLevel && {
|
|
233
|
-
css: [markStyles, markStylesLayeringFix, fg('editor_inline_comments_on_inline_nodes') && markStylesWithInlineComments, markStylesWithCommentsPanel, !isMobile() &&
|
|
234
|
-
style:
|
|
214
|
+
css: [markStyles, markStylesLayeringFix, fg('editor_inline_comments_on_inline_nodes') && markStylesWithInlineComments, markStylesWithCommentsPanel, !isMobile() && accessibilityStylesNew, markStylesWithUpdatedShadow],
|
|
215
|
+
style: {
|
|
235
216
|
'--ak-renderer-annotation-startmarker': "\"".concat(intl.formatMessage(inlineCommentMessages.contentRendererInlineCommentMarkerStart), "\""),
|
|
236
217
|
'--ak-renderer-annotation-endmarker': "\"".concat(intl.formatMessage(inlineCommentMessages.contentRendererInlineCommentMarkerEnd), "\"")
|
|
237
|
-
} : {
|
|
238
|
-
'--ak-renderer-annotation-startmarker': intl.formatMessage(inlineCommentMessages.contentRendererInlineCommentMarkerStart),
|
|
239
|
-
'--ak-renderer-annotation-endmarker': intl.formatMessage(inlineCommentMessages.contentRendererInlineCommentMarkerEnd)
|
|
240
218
|
}
|
|
241
219
|
}), children);
|
|
242
220
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "132.
|
|
3
|
+
"version": "132.2.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/status": "^4.1.0",
|
|
67
67
|
"@atlaskit/task-decision": "^20.1.0",
|
|
68
68
|
"@atlaskit/theme": "^25.0.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^95.0.0",
|
|
70
70
|
"@atlaskit/tokens": "^13.3.0",
|
|
71
71
|
"@atlaskit/tooltip": "^22.6.0",
|
|
72
72
|
"@atlaskit/visually-hidden": "^3.1.0",
|
|
@@ -170,9 +170,6 @@
|
|
|
170
170
|
"editor_inline_comments_on_inline_nodes": {
|
|
171
171
|
"type": "boolean"
|
|
172
172
|
},
|
|
173
|
-
"platform_renderer_a11y_inline_comment_fix": {
|
|
174
|
-
"type": "boolean"
|
|
175
|
-
},
|
|
176
173
|
"platform-component-visual-refresh": {
|
|
177
174
|
"type": "boolean"
|
|
178
175
|
},
|