@atlaskit/renderer 152.2.3 → 152.2.4
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 +9 -0
- package/dist/cjs/react/nodes/rule.js +25 -1
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +69 -1
- package/dist/cjs/ui/Renderer/index.js +2 -2
- package/dist/es2019/react/nodes/rule.js +26 -2
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +69 -1
- package/dist/es2019/ui/Renderer/index.js +2 -2
- package/dist/esm/react/nodes/rule.js +25 -1
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +69 -1
- package/dist/esm/ui/Renderer/index.js +2 -2
- package/dist/types/react/nodes/rule.d.ts +2 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 152.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`67557f74cffc4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/67557f74cffc4) -
|
|
8
|
+
[EDITOR-9048] preserve divider color, style and weight attributes in the renderer behind
|
|
9
|
+
platform_editor_lovability_dividers_attributes.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 152.2.3
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -6,8 +6,32 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = Rule;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _text = require("@atlaskit/editor-palette/text");
|
|
10
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
9
11
|
function Rule() {
|
|
12
|
+
var _hexToEditorTextPalet;
|
|
13
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
14
|
+
color = _ref.color,
|
|
15
|
+
localId = _ref.localId,
|
|
16
|
+
style = _ref.style,
|
|
17
|
+
weight = _ref.weight;
|
|
18
|
+
if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_lovability_dividers_attributes')) {
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement("hr", {
|
|
20
|
+
role: "presentation"
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
var paletteColor = color && ((_hexToEditorTextPalet = (0, _text.hexToEditorTextPaletteColor)(color)) !== null && _hexToEditorTextPalet !== void 0 ? _hexToEditorTextPalet : color);
|
|
24
|
+
var paletteStyle = paletteColor ? {
|
|
25
|
+
'--custom-palette-color': paletteColor
|
|
26
|
+
} : undefined;
|
|
10
27
|
return /*#__PURE__*/_react.default.createElement("hr", {
|
|
11
|
-
role: "presentation"
|
|
28
|
+
role: "presentation",
|
|
29
|
+
"data-color": color || undefined,
|
|
30
|
+
"data-local-id": localId || undefined,
|
|
31
|
+
"data-style": style || undefined,
|
|
32
|
+
"data-weight": weight !== null && weight !== void 0 ? weight : undefined
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
34
|
+
,
|
|
35
|
+
style: paletteStyle
|
|
12
36
|
});
|
|
13
37
|
}
|
|
@@ -646,6 +646,74 @@ var ruleSharedStyles = (0, _react.css)({
|
|
|
646
646
|
}
|
|
647
647
|
});
|
|
648
648
|
|
|
649
|
+
// these masks need to be aligned with editor-core/styles/ruleWithAttrs.ts
|
|
650
|
+
|
|
651
|
+
var dashedStrokeMask = 'linear-gradient(to right, black 0, black 4px, transparent 4px, transparent 10px)';
|
|
652
|
+
var fadeStrokeMask = 'linear-gradient(to right, transparent 0%, black 27.4%, black 74%, transparent 100%)';
|
|
653
|
+
|
|
654
|
+
// dotted strokes
|
|
655
|
+
var dottedStrokeMaskSmall = 'radial-gradient(circle at center, black 0.5px, transparent 0.6px)';
|
|
656
|
+
var dottedStrokeMaskMedium = 'radial-gradient(circle at center, black 1px, transparent 1.1px)';
|
|
657
|
+
var dottedStrokeMaskLarge = 'radial-gradient(circle at center, black 1.5px, transparent 1.6px)';
|
|
658
|
+
|
|
659
|
+
// sketch strokes
|
|
660
|
+
var sketchStrokePath = 'M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107';
|
|
661
|
+
var sketchStrokeMaskSmall = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1' d='".concat(sketchStrokePath, "'/%3E%3C/svg%3E\")");
|
|
662
|
+
var sketchStrokeMaskMedium = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='".concat(sketchStrokePath, "'/%3E%3C/svg%3E\")");
|
|
663
|
+
var sketchStrokeMaskLarge = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1 233 8'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' d='".concat(sketchStrokePath, "'/%3E%3C/svg%3E\")");
|
|
664
|
+
var ruleWithAttrsStyles = (0, _react.css)({
|
|
665
|
+
'& hr[data-color]': {
|
|
666
|
+
backgroundColor: 'var(--custom-palette-color)'
|
|
667
|
+
},
|
|
668
|
+
'& hr[data-style="dashed"]': {
|
|
669
|
+
maskImage: dashedStrokeMask,
|
|
670
|
+
maskRepeat: 'repeat-x',
|
|
671
|
+
maskSize: '10px 100%'
|
|
672
|
+
},
|
|
673
|
+
'& hr[data-style="dotted"]': {
|
|
674
|
+
maskImage: dottedStrokeMaskMedium,
|
|
675
|
+
maskPosition: 'center',
|
|
676
|
+
maskRepeat: 'repeat-x',
|
|
677
|
+
maskSize: '6px 2px'
|
|
678
|
+
},
|
|
679
|
+
'& hr[data-style="sketch"]': {
|
|
680
|
+
height: "calc(2px + ".concat("var(--ds-space-050, 4px)", " + ", "var(--ds-space-050, 4px)", ")"),
|
|
681
|
+
maskImage: sketchStrokeMaskMedium,
|
|
682
|
+
maskPosition: 'center',
|
|
683
|
+
maskRepeat: 'repeat-x',
|
|
684
|
+
maskSize: '233px 7px'
|
|
685
|
+
},
|
|
686
|
+
'& hr[data-style="fade"]': {
|
|
687
|
+
maskImage: fadeStrokeMask,
|
|
688
|
+
maskRepeat: 'no-repeat',
|
|
689
|
+
maskSize: '100% 100%'
|
|
690
|
+
},
|
|
691
|
+
'& hr[data-weight="1"]': {
|
|
692
|
+
height: '1px'
|
|
693
|
+
},
|
|
694
|
+
'& hr[data-weight="3"]': {
|
|
695
|
+
height: '3px'
|
|
696
|
+
},
|
|
697
|
+
'& hr[data-style="dotted"][data-weight="1"]': {
|
|
698
|
+
maskImage: dottedStrokeMaskSmall,
|
|
699
|
+
maskSize: '6px 1px'
|
|
700
|
+
},
|
|
701
|
+
'& hr[data-style="dotted"][data-weight="3"]': {
|
|
702
|
+
maskImage: dottedStrokeMaskLarge,
|
|
703
|
+
maskSize: '6px 3px'
|
|
704
|
+
},
|
|
705
|
+
// Sketch needs a mask per weight because CSS cannot change the SVG stroke width.
|
|
706
|
+
'& hr[data-style="sketch"][data-weight="1"]': {
|
|
707
|
+
height: "calc(1px + ".concat("var(--ds-space-050, 4px)", " + ", "var(--ds-space-050, 4px)", ")"),
|
|
708
|
+
maskImage: sketchStrokeMaskSmall
|
|
709
|
+
},
|
|
710
|
+
'& hr[data-style="sketch"][data-weight="3"]': {
|
|
711
|
+
height: "calc(3px + ".concat("var(--ds-space-050, 4px)", " + ", "var(--ds-space-050, 4px)", ")"),
|
|
712
|
+
maskImage: sketchStrokeMaskLarge,
|
|
713
|
+
maskSize: '233px 8px'
|
|
714
|
+
}
|
|
715
|
+
});
|
|
716
|
+
|
|
649
717
|
// When cleaning up `platform_editor_content_mode_button_mvp` simplify the name/ use the other paragraph style name
|
|
650
718
|
var paragraphSharedStylesWithEditorUGC = (0, _react.css)({
|
|
651
719
|
'& p': {
|
|
@@ -2308,7 +2376,7 @@ var RendererStyleContainer = exports.RendererStyleContainer = function RendererS
|
|
|
2308
2376
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- CSS custom properties for UGC font tokens
|
|
2309
2377
|
'--ak-renderer-editor-font-small-text': _editorUgcTokenNames.editorUGCTokensRefreshed['editor.font.body.small']
|
|
2310
2378
|
},
|
|
2311
|
-
css: [(0, _expValEquals.expValEquals)('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, fontSizeStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, 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' && ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_remove_important_in_render_ext') ? rendererFullWidthStyles : oldRendererFullWidthStyles), (appearance === 'full-width' || appearance === 'max') && !(0, _table2.isTableResizingEnabled)(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_remove_important_in_render_ext') ? rendererMaxWidthStyles : oldRendererMaxWidthStyles), rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingWrapperInlineFlowStyles, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_heading_link_target_size') && headingAnchorWrapperTargetSizeStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingWithAlignmentStyles : headingWithAlignmentStylesDuplicateAnchor, ruleSharedStyles, contentMode === 'compact' && extensionStyle, contentMode === 'compact' ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, listItemHiddenMarkerStyles, indentationSharedStyles, 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_lovability_text_bg_color', 'isEnabled', true) && highlightLinksUnsetStyles,
|
|
2379
|
+
css: [(0, _expValEquals.expValEquals)('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, fontSizeStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, 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' && ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_remove_important_in_render_ext') ? rendererFullWidthStyles : oldRendererFullWidthStyles), (appearance === 'full-width' || appearance === 'max') && !(0, _table2.isTableResizingEnabled)(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_remove_important_in_render_ext') ? rendererMaxWidthStyles : oldRendererMaxWidthStyles), rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingWrapperInlineFlowStyles, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_heading_link_target_size') && headingAnchorWrapperTargetSizeStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingWithAlignmentStyles : headingWithAlignmentStylesDuplicateAnchor, ruleSharedStyles, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_lovability_dividers_attributes') && ruleWithAttrsStyles, contentMode === 'compact' && extensionStyle, contentMode === 'compact' ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, listItemHiddenMarkerStyles, indentationSharedStyles, 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_lovability_text_bg_color', 'isEnabled', true) && highlightLinksUnsetStyles,
|
|
2312
2380
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
2313
2381
|
textHighlightPaddingStyles, tasksAndDecisionsStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, smartCardStyles, smartCardStylesAvatarFix, headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, (0, _fg.fg)('editor_inline_comments_on_inline_nodes') && ((0, _expValEquals.expValEquals)('confluence_fe_renderer_inline_node_mark_color_fix', 'isEnabled', true) ? rendererAnnotationStyles : rendererAnnotationStylesOld),
|
|
2314
2382
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
@@ -48,8 +48,8 @@ var _activeHeaderIdProvider = require("../active-header-id-provider");
|
|
|
48
48
|
var _annotations = require("../annotations");
|
|
49
49
|
var _collapsibleHeadings = require("../collapsible-headings");
|
|
50
50
|
var _useScrollToBlock = require("../hooks/useScrollToBlock");
|
|
51
|
-
var _includeLegacyContentAnnotationsContext = require("../RendererActionsContext/include-legacy-content-annotations-context");
|
|
52
51
|
var _RendererActionsContext = require("../RendererActionsContext");
|
|
52
|
+
var _includeLegacyContentAnnotationsContext = require("../RendererActionsContext/include-legacy-content-annotations-context");
|
|
53
53
|
var _SmartCardStorage = require("../SmartCardStorage");
|
|
54
54
|
var _analyticsUtils = require("./analytics-utils");
|
|
55
55
|
var _breakoutSsr = require("./breakout-ssr");
|
|
@@ -80,7 +80,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
80
80
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
81
81
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
82
82
|
var packageName = "@atlaskit/renderer";
|
|
83
|
-
var packageVersion = "152.2.
|
|
83
|
+
var packageVersion = "152.2.4";
|
|
84
84
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
85
85
|
containerName: 'ak-renderer-wrapper',
|
|
86
86
|
containerType: 'inline-size'
|
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette/text';
|
|
3
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
|
+
export default function Rule({
|
|
5
|
+
color,
|
|
6
|
+
localId,
|
|
7
|
+
style,
|
|
8
|
+
weight
|
|
9
|
+
} = {}) {
|
|
10
|
+
var _hexToEditorTextPalet;
|
|
11
|
+
if (!isExperimentEnabled('platform_editor_lovability_dividers_attributes')) {
|
|
12
|
+
return /*#__PURE__*/React.createElement("hr", {
|
|
13
|
+
role: "presentation"
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const paletteColor = color && ((_hexToEditorTextPalet = hexToEditorTextPaletteColor(color)) !== null && _hexToEditorTextPalet !== void 0 ? _hexToEditorTextPalet : color);
|
|
17
|
+
const paletteStyle = paletteColor ? {
|
|
18
|
+
'--custom-palette-color': paletteColor
|
|
19
|
+
} : undefined;
|
|
3
20
|
return /*#__PURE__*/React.createElement("hr", {
|
|
4
|
-
role: "presentation"
|
|
21
|
+
role: "presentation",
|
|
22
|
+
"data-color": color || undefined,
|
|
23
|
+
"data-local-id": localId || undefined,
|
|
24
|
+
"data-style": style || undefined,
|
|
25
|
+
"data-weight": weight !== null && weight !== void 0 ? weight : undefined
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
27
|
+
,
|
|
28
|
+
style: paletteStyle
|
|
5
29
|
});
|
|
6
30
|
}
|
|
@@ -754,6 +754,74 @@ const ruleSharedStyles = css({
|
|
|
754
754
|
}
|
|
755
755
|
});
|
|
756
756
|
|
|
757
|
+
// these masks need to be aligned with editor-core/styles/ruleWithAttrs.ts
|
|
758
|
+
|
|
759
|
+
const dashedStrokeMask = 'linear-gradient(to right, black 0, black 4px, transparent 4px, transparent 10px)';
|
|
760
|
+
const fadeStrokeMask = 'linear-gradient(to right, transparent 0%, black 27.4%, black 74%, transparent 100%)';
|
|
761
|
+
|
|
762
|
+
// dotted strokes
|
|
763
|
+
const dottedStrokeMaskSmall = 'radial-gradient(circle at center, black 0.5px, transparent 0.6px)';
|
|
764
|
+
const dottedStrokeMaskMedium = 'radial-gradient(circle at center, black 1px, transparent 1.1px)';
|
|
765
|
+
const dottedStrokeMaskLarge = 'radial-gradient(circle at center, black 1.5px, transparent 1.6px)';
|
|
766
|
+
|
|
767
|
+
// sketch strokes
|
|
768
|
+
const sketchStrokePath = 'M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107';
|
|
769
|
+
const sketchStrokeMaskSmall = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1' d='${sketchStrokePath}'/%3E%3C/svg%3E")`;
|
|
770
|
+
const sketchStrokeMaskMedium = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='${sketchStrokePath}'/%3E%3C/svg%3E")`;
|
|
771
|
+
const sketchStrokeMaskLarge = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1 233 8'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' d='${sketchStrokePath}'/%3E%3C/svg%3E")`;
|
|
772
|
+
const ruleWithAttrsStyles = css({
|
|
773
|
+
'& hr[data-color]': {
|
|
774
|
+
backgroundColor: 'var(--custom-palette-color)'
|
|
775
|
+
},
|
|
776
|
+
'& hr[data-style="dashed"]': {
|
|
777
|
+
maskImage: dashedStrokeMask,
|
|
778
|
+
maskRepeat: 'repeat-x',
|
|
779
|
+
maskSize: '10px 100%'
|
|
780
|
+
},
|
|
781
|
+
'& hr[data-style="dotted"]': {
|
|
782
|
+
maskImage: dottedStrokeMaskMedium,
|
|
783
|
+
maskPosition: 'center',
|
|
784
|
+
maskRepeat: 'repeat-x',
|
|
785
|
+
maskSize: '6px 2px'
|
|
786
|
+
},
|
|
787
|
+
'& hr[data-style="sketch"]': {
|
|
788
|
+
height: `calc(2px + ${"var(--ds-space-050, 4px)"} + ${"var(--ds-space-050, 4px)"})`,
|
|
789
|
+
maskImage: sketchStrokeMaskMedium,
|
|
790
|
+
maskPosition: 'center',
|
|
791
|
+
maskRepeat: 'repeat-x',
|
|
792
|
+
maskSize: '233px 7px'
|
|
793
|
+
},
|
|
794
|
+
'& hr[data-style="fade"]': {
|
|
795
|
+
maskImage: fadeStrokeMask,
|
|
796
|
+
maskRepeat: 'no-repeat',
|
|
797
|
+
maskSize: '100% 100%'
|
|
798
|
+
},
|
|
799
|
+
'& hr[data-weight="1"]': {
|
|
800
|
+
height: '1px'
|
|
801
|
+
},
|
|
802
|
+
'& hr[data-weight="3"]': {
|
|
803
|
+
height: '3px'
|
|
804
|
+
},
|
|
805
|
+
'& hr[data-style="dotted"][data-weight="1"]': {
|
|
806
|
+
maskImage: dottedStrokeMaskSmall,
|
|
807
|
+
maskSize: '6px 1px'
|
|
808
|
+
},
|
|
809
|
+
'& hr[data-style="dotted"][data-weight="3"]': {
|
|
810
|
+
maskImage: dottedStrokeMaskLarge,
|
|
811
|
+
maskSize: '6px 3px'
|
|
812
|
+
},
|
|
813
|
+
// Sketch needs a mask per weight because CSS cannot change the SVG stroke width.
|
|
814
|
+
'& hr[data-style="sketch"][data-weight="1"]': {
|
|
815
|
+
height: `calc(1px + ${"var(--ds-space-050, 4px)"} + ${"var(--ds-space-050, 4px)"})`,
|
|
816
|
+
maskImage: sketchStrokeMaskSmall
|
|
817
|
+
},
|
|
818
|
+
'& hr[data-style="sketch"][data-weight="3"]': {
|
|
819
|
+
height: `calc(3px + ${"var(--ds-space-050, 4px)"} + ${"var(--ds-space-050, 4px)"})`,
|
|
820
|
+
maskImage: sketchStrokeMaskLarge,
|
|
821
|
+
maskSize: '233px 8px'
|
|
822
|
+
}
|
|
823
|
+
});
|
|
824
|
+
|
|
757
825
|
// When cleaning up `platform_editor_content_mode_button_mvp` simplify the name/ use the other paragraph style name
|
|
758
826
|
const paragraphSharedStylesWithEditorUGC = css({
|
|
759
827
|
'& p': {
|
|
@@ -2930,7 +2998,7 @@ export const RendererStyleContainer = props => {
|
|
|
2930
2998
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- CSS custom properties for UGC font tokens
|
|
2931
2999
|
'--ak-renderer-editor-font-small-text': editorUGCTokensRefreshed['editor.font.body.small']
|
|
2932
3000
|
},
|
|
2933
|
-
css: [expValEquals('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, fontSizeStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, 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' && (isExperimentEnabled('platform_editor_remove_important_in_render_ext') ? rendererFullWidthStyles : oldRendererFullWidthStyles), (appearance === 'full-width' || appearance === 'max') && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && (isExperimentEnabled('platform_editor_remove_important_in_render_ext') ? rendererMaxWidthStyles : oldRendererMaxWidthStyles), rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingWrapperInlineFlowStyles, isExperimentEnabled('platform_editor_heading_link_target_size') && headingAnchorWrapperTargetSizeStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingWithAlignmentStyles : headingWithAlignmentStylesDuplicateAnchor, ruleSharedStyles, contentMode === 'compact' && extensionStyle, contentMode === 'compact' ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, listItemHiddenMarkerStyles, indentationSharedStyles, indentationSharedStylesWithMarginFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? blockMarksSharedStyles : blockMarksSharedStylesDuplicateAnchor, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, !expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && highlightLinksUnsetStyles,
|
|
3001
|
+
css: [expValEquals('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, fontSizeStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, 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' && (isExperimentEnabled('platform_editor_remove_important_in_render_ext') ? rendererFullWidthStyles : oldRendererFullWidthStyles), (appearance === 'full-width' || appearance === 'max') && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && (isExperimentEnabled('platform_editor_remove_important_in_render_ext') ? rendererMaxWidthStyles : oldRendererMaxWidthStyles), rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingWrapperInlineFlowStyles, isExperimentEnabled('platform_editor_heading_link_target_size') && headingAnchorWrapperTargetSizeStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingWithAlignmentStyles : headingWithAlignmentStylesDuplicateAnchor, ruleSharedStyles, isExperimentEnabled('platform_editor_lovability_dividers_attributes') && ruleWithAttrsStyles, contentMode === 'compact' && extensionStyle, contentMode === 'compact' ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, listItemHiddenMarkerStyles, indentationSharedStyles, indentationSharedStylesWithMarginFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? blockMarksSharedStyles : blockMarksSharedStylesDuplicateAnchor, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, !expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && highlightLinksUnsetStyles,
|
|
2934
3002
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
2935
3003
|
textHighlightPaddingStyles, tasksAndDecisionsStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, smartCardStyles, smartCardStylesAvatarFix, headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, fg('editor_inline_comments_on_inline_nodes') && (expValEquals('confluence_fe_renderer_inline_node_mark_color_fix', 'isEnabled', true) ? rendererAnnotationStyles : rendererAnnotationStylesOld),
|
|
2936
3004
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
@@ -42,8 +42,8 @@ import { ActiveHeaderIdProvider } from '../active-header-id-provider';
|
|
|
42
42
|
import { AnnotationsPositionContext, AnnotationsWrapper } from '../annotations';
|
|
43
43
|
import { CollapsibleHeadingsProvider } from '../collapsible-headings';
|
|
44
44
|
import { useScrollToBlock } from '../hooks/useScrollToBlock';
|
|
45
|
-
import { IncludeLegacyContentAnnotationsContext } from '../RendererActionsContext/include-legacy-content-annotations-context';
|
|
46
45
|
import { RendererContext as ActionsContext, RendererActionsContext } from '../RendererActionsContext';
|
|
46
|
+
import { IncludeLegacyContentAnnotationsContext } from '../RendererActionsContext/include-legacy-content-annotations-context';
|
|
47
47
|
import { Provider as SmartCardStorageProvider } from '../SmartCardStorage';
|
|
48
48
|
import { getHeightInfoPayload, getWidthInfoPayload } from './analytics-utils';
|
|
49
49
|
import { BreakoutSSRInlineScript } from './breakout-ssr';
|
|
@@ -65,7 +65,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
65
65
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
66
66
|
const RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
67
67
|
const packageName = "@atlaskit/renderer";
|
|
68
|
-
const packageVersion = "152.2.
|
|
68
|
+
const packageVersion = "152.2.4";
|
|
69
69
|
const setAsQueryContainerStyles = css({
|
|
70
70
|
containerName: 'ak-renderer-wrapper',
|
|
71
71
|
containerType: 'inline-size'
|
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette/text';
|
|
3
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
2
4
|
export default function Rule() {
|
|
5
|
+
var _hexToEditorTextPalet;
|
|
6
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
7
|
+
color = _ref.color,
|
|
8
|
+
localId = _ref.localId,
|
|
9
|
+
style = _ref.style,
|
|
10
|
+
weight = _ref.weight;
|
|
11
|
+
if (!isExperimentEnabled('platform_editor_lovability_dividers_attributes')) {
|
|
12
|
+
return /*#__PURE__*/React.createElement("hr", {
|
|
13
|
+
role: "presentation"
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
var paletteColor = color && ((_hexToEditorTextPalet = hexToEditorTextPaletteColor(color)) !== null && _hexToEditorTextPalet !== void 0 ? _hexToEditorTextPalet : color);
|
|
17
|
+
var paletteStyle = paletteColor ? {
|
|
18
|
+
'--custom-palette-color': paletteColor
|
|
19
|
+
} : undefined;
|
|
3
20
|
return /*#__PURE__*/React.createElement("hr", {
|
|
4
|
-
role: "presentation"
|
|
21
|
+
role: "presentation",
|
|
22
|
+
"data-color": color || undefined,
|
|
23
|
+
"data-local-id": localId || undefined,
|
|
24
|
+
"data-style": style || undefined,
|
|
25
|
+
"data-weight": weight !== null && weight !== void 0 ? weight : undefined
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
27
|
+
,
|
|
28
|
+
style: paletteStyle
|
|
5
29
|
});
|
|
6
30
|
}
|
|
@@ -639,6 +639,74 @@ var ruleSharedStyles = css({
|
|
|
639
639
|
}
|
|
640
640
|
});
|
|
641
641
|
|
|
642
|
+
// these masks need to be aligned with editor-core/styles/ruleWithAttrs.ts
|
|
643
|
+
|
|
644
|
+
var dashedStrokeMask = 'linear-gradient(to right, black 0, black 4px, transparent 4px, transparent 10px)';
|
|
645
|
+
var fadeStrokeMask = 'linear-gradient(to right, transparent 0%, black 27.4%, black 74%, transparent 100%)';
|
|
646
|
+
|
|
647
|
+
// dotted strokes
|
|
648
|
+
var dottedStrokeMaskSmall = 'radial-gradient(circle at center, black 0.5px, transparent 0.6px)';
|
|
649
|
+
var dottedStrokeMaskMedium = 'radial-gradient(circle at center, black 1px, transparent 1.1px)';
|
|
650
|
+
var dottedStrokeMaskLarge = 'radial-gradient(circle at center, black 1.5px, transparent 1.6px)';
|
|
651
|
+
|
|
652
|
+
// sketch strokes
|
|
653
|
+
var sketchStrokePath = 'M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107';
|
|
654
|
+
var sketchStrokeMaskSmall = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1' d='".concat(sketchStrokePath, "'/%3E%3C/svg%3E\")");
|
|
655
|
+
var sketchStrokeMaskMedium = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='".concat(sketchStrokePath, "'/%3E%3C/svg%3E\")");
|
|
656
|
+
var sketchStrokeMaskLarge = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1 233 8'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' d='".concat(sketchStrokePath, "'/%3E%3C/svg%3E\")");
|
|
657
|
+
var ruleWithAttrsStyles = css({
|
|
658
|
+
'& hr[data-color]': {
|
|
659
|
+
backgroundColor: 'var(--custom-palette-color)'
|
|
660
|
+
},
|
|
661
|
+
'& hr[data-style="dashed"]': {
|
|
662
|
+
maskImage: dashedStrokeMask,
|
|
663
|
+
maskRepeat: 'repeat-x',
|
|
664
|
+
maskSize: '10px 100%'
|
|
665
|
+
},
|
|
666
|
+
'& hr[data-style="dotted"]': {
|
|
667
|
+
maskImage: dottedStrokeMaskMedium,
|
|
668
|
+
maskPosition: 'center',
|
|
669
|
+
maskRepeat: 'repeat-x',
|
|
670
|
+
maskSize: '6px 2px'
|
|
671
|
+
},
|
|
672
|
+
'& hr[data-style="sketch"]': {
|
|
673
|
+
height: "calc(2px + ".concat("var(--ds-space-050, 4px)", " + ", "var(--ds-space-050, 4px)", ")"),
|
|
674
|
+
maskImage: sketchStrokeMaskMedium,
|
|
675
|
+
maskPosition: 'center',
|
|
676
|
+
maskRepeat: 'repeat-x',
|
|
677
|
+
maskSize: '233px 7px'
|
|
678
|
+
},
|
|
679
|
+
'& hr[data-style="fade"]': {
|
|
680
|
+
maskImage: fadeStrokeMask,
|
|
681
|
+
maskRepeat: 'no-repeat',
|
|
682
|
+
maskSize: '100% 100%'
|
|
683
|
+
},
|
|
684
|
+
'& hr[data-weight="1"]': {
|
|
685
|
+
height: '1px'
|
|
686
|
+
},
|
|
687
|
+
'& hr[data-weight="3"]': {
|
|
688
|
+
height: '3px'
|
|
689
|
+
},
|
|
690
|
+
'& hr[data-style="dotted"][data-weight="1"]': {
|
|
691
|
+
maskImage: dottedStrokeMaskSmall,
|
|
692
|
+
maskSize: '6px 1px'
|
|
693
|
+
},
|
|
694
|
+
'& hr[data-style="dotted"][data-weight="3"]': {
|
|
695
|
+
maskImage: dottedStrokeMaskLarge,
|
|
696
|
+
maskSize: '6px 3px'
|
|
697
|
+
},
|
|
698
|
+
// Sketch needs a mask per weight because CSS cannot change the SVG stroke width.
|
|
699
|
+
'& hr[data-style="sketch"][data-weight="1"]': {
|
|
700
|
+
height: "calc(1px + ".concat("var(--ds-space-050, 4px)", " + ", "var(--ds-space-050, 4px)", ")"),
|
|
701
|
+
maskImage: sketchStrokeMaskSmall
|
|
702
|
+
},
|
|
703
|
+
'& hr[data-style="sketch"][data-weight="3"]': {
|
|
704
|
+
height: "calc(3px + ".concat("var(--ds-space-050, 4px)", " + ", "var(--ds-space-050, 4px)", ")"),
|
|
705
|
+
maskImage: sketchStrokeMaskLarge,
|
|
706
|
+
maskSize: '233px 8px'
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
|
|
642
710
|
// When cleaning up `platform_editor_content_mode_button_mvp` simplify the name/ use the other paragraph style name
|
|
643
711
|
var paragraphSharedStylesWithEditorUGC = css({
|
|
644
712
|
'& p': {
|
|
@@ -2301,7 +2369,7 @@ export var RendererStyleContainer = function RendererStyleContainer(props) {
|
|
|
2301
2369
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- CSS custom properties for UGC font tokens
|
|
2302
2370
|
'--ak-renderer-editor-font-small-text': editorUGCTokensRefreshed['editor.font.body.small']
|
|
2303
2371
|
},
|
|
2304
|
-
css: [expValEquals('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, fontSizeStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, 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' && (isExperimentEnabled('platform_editor_remove_important_in_render_ext') ? rendererFullWidthStyles : oldRendererFullWidthStyles), (appearance === 'full-width' || appearance === 'max') && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && (isExperimentEnabled('platform_editor_remove_important_in_render_ext') ? rendererMaxWidthStyles : oldRendererMaxWidthStyles), rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingWrapperInlineFlowStyles, isExperimentEnabled('platform_editor_heading_link_target_size') && headingAnchorWrapperTargetSizeStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingWithAlignmentStyles : headingWithAlignmentStylesDuplicateAnchor, ruleSharedStyles, contentMode === 'compact' && extensionStyle, contentMode === 'compact' ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, listItemHiddenMarkerStyles, indentationSharedStyles, indentationSharedStylesWithMarginFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? blockMarksSharedStyles : blockMarksSharedStylesDuplicateAnchor, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, !expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && highlightLinksUnsetStyles,
|
|
2372
|
+
css: [expValEquals('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, fontSizeStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, 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' && (isExperimentEnabled('platform_editor_remove_important_in_render_ext') ? rendererFullWidthStyles : oldRendererFullWidthStyles), (appearance === 'full-width' || appearance === 'max') && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && (isExperimentEnabled('platform_editor_remove_important_in_render_ext') ? rendererMaxWidthStyles : oldRendererMaxWidthStyles), rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingWrapperInlineFlowStyles, isExperimentEnabled('platform_editor_heading_link_target_size') && headingAnchorWrapperTargetSizeStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingWithAlignmentStyles : headingWithAlignmentStylesDuplicateAnchor, ruleSharedStyles, isExperimentEnabled('platform_editor_lovability_dividers_attributes') && ruleWithAttrsStyles, contentMode === 'compact' && extensionStyle, contentMode === 'compact' ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, listItemHiddenMarkerStyles, indentationSharedStyles, indentationSharedStylesWithMarginFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? blockMarksSharedStyles : blockMarksSharedStylesDuplicateAnchor, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, !expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && highlightLinksUnsetStyles,
|
|
2305
2373
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
2306
2374
|
textHighlightPaddingStyles, tasksAndDecisionsStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, smartCardStyles, smartCardStylesAvatarFix, headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, fg('editor_inline_comments_on_inline_nodes') && (expValEquals('confluence_fe_renderer_inline_node_mark_color_fix', 'isEnabled', true) ? rendererAnnotationStyles : rendererAnnotationStylesOld),
|
|
2307
2375
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
@@ -47,8 +47,8 @@ import { ActiveHeaderIdProvider } from '../active-header-id-provider';
|
|
|
47
47
|
import { AnnotationsPositionContext, AnnotationsWrapper } from '../annotations';
|
|
48
48
|
import { CollapsibleHeadingsProvider } from '../collapsible-headings';
|
|
49
49
|
import { useScrollToBlock } from '../hooks/useScrollToBlock';
|
|
50
|
-
import { IncludeLegacyContentAnnotationsContext } from '../RendererActionsContext/include-legacy-content-annotations-context';
|
|
51
50
|
import { RendererContext as ActionsContext, RendererActionsContext } from '../RendererActionsContext';
|
|
51
|
+
import { IncludeLegacyContentAnnotationsContext } from '../RendererActionsContext/include-legacy-content-annotations-context';
|
|
52
52
|
import { Provider as SmartCardStorageProvider } from '../SmartCardStorage';
|
|
53
53
|
import { getHeightInfoPayload, getWidthInfoPayload } from './analytics-utils';
|
|
54
54
|
import { BreakoutSSRInlineScript } from './breakout-ssr';
|
|
@@ -70,7 +70,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
70
70
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
71
71
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
72
72
|
var packageName = "@atlaskit/renderer";
|
|
73
|
-
var packageVersion = "152.2.
|
|
73
|
+
var packageVersion = "152.2.4";
|
|
74
74
|
var setAsQueryContainerStyles = css({
|
|
75
75
|
containerName: 'ak-renderer-wrapper',
|
|
76
76
|
containerType: 'inline-size'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "152.2.
|
|
3
|
+
"version": "152.2.4",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@atlaskit/feature-gate-js-client": "^7.0.0",
|
|
54
54
|
"@atlaskit/icon": "^38.0.0",
|
|
55
55
|
"@atlaskit/link": "^5.1.0",
|
|
56
|
-
"@atlaskit/link-datasource": "^7.
|
|
56
|
+
"@atlaskit/link-datasource": "^7.7.0",
|
|
57
57
|
"@atlaskit/link-extractors": "^5.0.0",
|
|
58
58
|
"@atlaskit/linking-common": "^13.0.0",
|
|
59
59
|
"@atlaskit/media-card": "^82.1.0",
|
|
@@ -68,13 +68,13 @@
|
|
|
68
68
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
69
69
|
"@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
|
|
70
70
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
71
|
-
"@atlaskit/react-ufo": "^8.
|
|
72
|
-
"@atlaskit/smart-card": "^46.
|
|
71
|
+
"@atlaskit/react-ufo": "^8.3.0",
|
|
72
|
+
"@atlaskit/smart-card": "^46.9.0",
|
|
73
73
|
"@atlaskit/status": "^5.14.0",
|
|
74
74
|
"@atlaskit/task-decision": "^21.13.0",
|
|
75
75
|
"@atlaskit/theme": "^28.2.0",
|
|
76
|
-
"@atlaskit/tmp-editor-statsig": "^246.
|
|
77
|
-
"@atlaskit/tokens": "^20.
|
|
76
|
+
"@atlaskit/tmp-editor-statsig": "^246.1.0",
|
|
77
|
+
"@atlaskit/tokens": "^20.8.0",
|
|
78
78
|
"@atlaskit/tooltip": "^24.4.0",
|
|
79
79
|
"@atlaskit/visually-hidden": "^4.4.0",
|
|
80
80
|
"@babel/runtime": "^7.0.0",
|