@atlaskit/renderer 113.2.1 → 113.3.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 +18 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +3 -0
- package/afm-post-office/tsconfig.json +3 -0
- package/dist/cjs/actions/index.js +3 -2
- package/dist/cjs/react/index.js +2 -2
- package/dist/cjs/react/nodes/heading-anchor.js +1 -1
- package/dist/cjs/react/nodes/heading.js +13 -1
- package/dist/cjs/react/nodes/mediaSingle/index.js +0 -3
- package/dist/cjs/react/nodes/multiBodiedExtension.js +2 -0
- package/dist/cjs/react/nodes/table/sticky.js +1 -1
- package/dist/cjs/ui/MediaCard.js +1 -1
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +12 -0
- package/dist/cjs/ui/Renderer/index.js +3 -3
- package/dist/cjs/ui/Renderer/style.js +3 -6
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +1 -1
- package/dist/es2019/actions/index.js +3 -2
- package/dist/es2019/react/index.js +2 -2
- package/dist/es2019/react/nodes/heading-anchor.js +1 -1
- package/dist/es2019/react/nodes/heading.js +13 -1
- package/dist/es2019/react/nodes/mediaSingle/index.js +0 -3
- package/dist/es2019/react/nodes/multiBodiedExtension.js +2 -0
- package/dist/es2019/react/nodes/table/sticky.js +1 -1
- package/dist/es2019/ui/MediaCard.js +1 -1
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +12 -0
- package/dist/es2019/ui/Renderer/index.js +3 -3
- package/dist/es2019/ui/Renderer/style.js +39 -38
- package/dist/es2019/ui/Renderer/truncated-wrapper.js +1 -1
- package/dist/esm/actions/index.js +3 -2
- package/dist/esm/react/index.js +2 -2
- package/dist/esm/react/nodes/heading-anchor.js +1 -1
- package/dist/esm/react/nodes/heading.js +13 -1
- package/dist/esm/react/nodes/mediaSingle/index.js +0 -3
- package/dist/esm/react/nodes/multiBodiedExtension.js +2 -0
- package/dist/esm/react/nodes/table/sticky.js +1 -1
- package/dist/esm/ui/MediaCard.js +1 -1
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +12 -0
- package/dist/esm/ui/Renderer/index.js +3 -3
- package/dist/esm/ui/Renderer/style.js +3 -6
- package/dist/esm/ui/Renderer/truncated-wrapper.js +1 -1
- package/dist/types/ui/renderer-props.d.ts +2 -0
- package/dist/types-ts4.5/ui/renderer-props.d.ts +2 -0
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 113.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#123549](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/123549)
|
|
8
|
+
[`dd96b1dc81357`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dd96b1dc81357) -
|
|
9
|
+
Deprecate `UNSTABLE_textHighlighter` prop on renderer
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 113.2.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 113.2.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -83,6 +83,9 @@
|
|
|
83
83
|
{
|
|
84
84
|
"path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
|
|
85
85
|
},
|
|
86
|
+
{
|
|
87
|
+
"path": "../../../react-ufo/atlaskit/afm-post-office/tsconfig.json"
|
|
88
|
+
},
|
|
86
89
|
{
|
|
87
90
|
"path": "../../../linking-platform/smart-card/afm-post-office/tsconfig.json"
|
|
88
91
|
},
|
|
@@ -374,8 +374,9 @@ var RendererActions = exports.default = /*#__PURE__*/function () {
|
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
//
|
|
378
|
-
//
|
|
377
|
+
// Ignored via go/ees007
|
|
378
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
379
|
+
// TODO: Do not forget to remove `undefined` when the `editor_inline_comments_on_inline_nodes` is removed.
|
|
379
380
|
}, {
|
|
380
381
|
key: "getInlineNodeTypes",
|
|
381
382
|
value: function getInlineNodeTypes(annotationId) {
|
package/dist/cjs/react/index.js
CHANGED
|
@@ -402,7 +402,7 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
402
402
|
var isInsideMultiBodiedExtension = (0, _rendererNode.insideMultiBodiedExtension)(path, node.type.schema);
|
|
403
403
|
var isInsideOfTable = (0, _rendererNode.insideTable)(path, node.type.schema);
|
|
404
404
|
|
|
405
|
-
// TODO:
|
|
405
|
+
// TODO: CEMS-1048 - Support sticky headers inside breakout + layout
|
|
406
406
|
var stickyHeaders = !isInsideOfTable && !(0, _rendererNode.insideBreakoutLayout)(path) ? this.stickyHeaders : undefined;
|
|
407
407
|
return _objectSpread(_objectSpread({}, this.getProps(node)), {}, {
|
|
408
408
|
allowColumnSorting: this.allowColumnSorting,
|
|
@@ -738,7 +738,7 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
738
738
|
}));
|
|
739
739
|
}
|
|
740
740
|
|
|
741
|
-
// TODO: ED-9004 Remove unused ReactSerializer.fromSchema in renderer
|
|
741
|
+
// TODO: ED-9004 - Remove unused ReactSerializer.fromSchema in renderer
|
|
742
742
|
// https://sourcegraph-frontend.internal.shared-prod.us-west-2.kitt-inf.net/search?q=ReactSerializer.fromSchema&patternType=literal
|
|
743
743
|
}, {
|
|
744
744
|
key: "fromSchema",
|
|
@@ -66,7 +66,7 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
66
66
|
(0, _defineProperty2.default)(_this, "setTooltipState", function (message) {
|
|
67
67
|
var isClicked = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
68
68
|
_this.setState({
|
|
69
|
-
// TODO: ED-14403 investigate why this does not translate
|
|
69
|
+
// TODO: ED-14403 - investigate why this does not translate
|
|
70
70
|
tooltipMessage: _this.props.intl.formatMessage(message),
|
|
71
71
|
isClicked: isClicked
|
|
72
72
|
});
|
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
10
10
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
+
var _interactionMetrics = require("@atlaskit/react-ufo/interaction-metrics");
|
|
11
12
|
var _headingAnchor = _interopRequireDefault(require("./heading-anchor"));
|
|
12
13
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
14
|
var _analyticsContext = _interopRequireDefault(require("../../analytics/analyticsContext"));
|
|
@@ -57,13 +58,24 @@ function Heading(props) {
|
|
|
57
58
|
marks = props.marks,
|
|
58
59
|
invisible = props.invisible;
|
|
59
60
|
var HX = "h".concat(props.level);
|
|
61
|
+
var mouseEntered = _react.default.useRef(false);
|
|
60
62
|
var showAnchorLink = !!props.showAnchorLink;
|
|
61
63
|
var isRightAligned = hasRightAlignmentMark(marks);
|
|
62
64
|
var enableNestedHeaderLinks = allowHeadingAnchorLinks && allowHeadingAnchorLinks.allowNestedHeaderLinks;
|
|
63
65
|
var headingIdToUse = invisible ? undefined : headingId;
|
|
66
|
+
var mouseEnterHandler = function mouseEnterHandler() {
|
|
67
|
+
if (showAnchorLink && !mouseEntered.current) {
|
|
68
|
+
// Abort TTVC calculation when the mouse hovers over heading. Hovering over
|
|
69
|
+
// heading render heading anchor and inline comment buttons. These user-induced
|
|
70
|
+
// DOM changes are valid reasons to abort the TTVC calculation.
|
|
71
|
+
(0, _interactionMetrics.abortAll)('new_interaction');
|
|
72
|
+
mouseEntered.current = true;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
64
75
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(HX, {
|
|
65
76
|
id: headingIdToUse,
|
|
66
|
-
"data-renderer-start-pos": dataAttributes['data-renderer-start-pos']
|
|
77
|
+
"data-renderer-start-pos": dataAttributes['data-renderer-start-pos'],
|
|
78
|
+
onMouseEnter: mouseEnterHandler
|
|
67
79
|
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showAnchorLink && headingId && isRightAligned && /*#__PURE__*/_react.default.createElement(WrappedHeadingAnchor, {
|
|
68
80
|
level: props.level,
|
|
69
81
|
enableNestedHeaderLinks: enableNestedHeaderLinks,
|
|
@@ -127,9 +127,6 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
|
|
|
127
127
|
width = DEFAULT_WIDTH;
|
|
128
128
|
height = DEFAULT_HEIGHT;
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
// TODO: put appearance-based padding into theme instead
|
|
132
|
-
|
|
133
130
|
var isFullPage = rendererAppearance === 'full-page';
|
|
134
131
|
var isFullWidth = rendererAppearance === 'full-width';
|
|
135
132
|
var padding = isFullPage ? _style.FullPagePadding * 2 : 0;
|
|
@@ -77,6 +77,8 @@ var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
|
77
77
|
var overflowContainerClass = !removeOverflow ? _consts.RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER : '';
|
|
78
78
|
var updateActiveChild = _react2.default.useCallback(function (index) {
|
|
79
79
|
if (typeof index !== 'number') {
|
|
80
|
+
// Ignored via go/ees007
|
|
81
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
80
82
|
// TODO: Make sure we log this somewhere if this happens
|
|
81
83
|
setActiveChildIndex(0);
|
|
82
84
|
return false;
|
|
@@ -38,7 +38,7 @@ var modeSpecficStyles = {
|
|
|
38
38
|
})
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
// TODO: Quality ticket
|
|
41
|
+
// TODO: DSP-4123 - Quality ticket
|
|
42
42
|
var fixedTableDivStaticStyles = function fixedTableDivStaticStyles(top, width, allowTableResizing) {
|
|
43
43
|
var stickyHeaderZIndex;
|
|
44
44
|
if (allowTableResizing) {
|
package/dist/cjs/ui/MediaCard.js
CHANGED
|
@@ -236,7 +236,7 @@ var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
236
236
|
_react.default.createElement("div", (0, _extends2.default)({}, dataAttributes, {
|
|
237
237
|
"data-node-type": "media"
|
|
238
238
|
}), /*#__PURE__*/_react.default.createElement(_mediaCard.Card
|
|
239
|
-
// TODO MPT-315
|
|
239
|
+
// TODO: MPT-315 - clean up after we move mediaClientConfig into FileIdentifier
|
|
240
240
|
// context is not really used when the type is external and we want to render the component asap
|
|
241
241
|
// Ignored via go/ees005
|
|
242
242
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
@@ -39,6 +39,8 @@ var TELEPOINTER_ID = 'ai-streaming-telepointer';
|
|
|
39
39
|
var tableShadowWidth = 32;
|
|
40
40
|
var LAYOUT_BREAKPOINT_RENDERER = 629;
|
|
41
41
|
// originally defined from packages/editor/editor-plugin-table/src/ui/common-styles.ts
|
|
42
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
43
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
42
44
|
// TODO: tableRowHeight can be moved into `@atlaskit/editor-common/table`
|
|
43
45
|
var tableRowHeight = 44;
|
|
44
46
|
var _getGlobalTheme = (0, _tokens.getGlobalTheme)(),
|
|
@@ -325,6 +327,8 @@ var headingsSharedStyles = (0, _react.css)({
|
|
|
325
327
|
}
|
|
326
328
|
});
|
|
327
329
|
|
|
330
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
331
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
328
332
|
// TODO: emotion refactor - check if we need UGC token?
|
|
329
333
|
var headingsSharedStylesWithEditorUGC = (0, _react.css)({
|
|
330
334
|
'& h1': {
|
|
@@ -732,10 +736,14 @@ var baseOtherStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineP
|
|
|
732
736
|
marginLeft: 0,
|
|
733
737
|
marginRight: 0
|
|
734
738
|
}), ".".concat(_consts.RendererCssClassName.DOCUMENT, " >"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "*:not([data-mark-type='fragment']) .".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER), {
|
|
739
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
740
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
735
741
|
// TODO - improve inline style logic on table container so important styles aren't required here
|
|
736
742
|
width: '100% !important',
|
|
737
743
|
left: '0 !important'
|
|
738
744
|
}), "[data-mark-type='fragment'] * .".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER), {
|
|
745
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
746
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
739
747
|
// TODO - improve inline style logic on table container so important styles aren't required here
|
|
740
748
|
width: '100% !important',
|
|
741
749
|
left: '0 !important'
|
|
@@ -755,6 +763,8 @@ var baseOtherStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineP
|
|
|
755
763
|
display: 'flex'
|
|
756
764
|
})));
|
|
757
765
|
var alignedHeadingAnchorStyle = (0, _react.css)({
|
|
766
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
767
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
758
768
|
// TODO Delete this comment after verifying space token -> previous value `margin: 6px`
|
|
759
769
|
'.fabric-editor-block-mark[data-align] >': {
|
|
760
770
|
'h1, h2, h3, h4, h5, h6': {
|
|
@@ -774,6 +784,8 @@ var alignedHeadingAnchorStyle = (0, _react.css)({
|
|
|
774
784
|
}))
|
|
775
785
|
});
|
|
776
786
|
|
|
787
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
788
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
777
789
|
// TODO: emotion refactor - there's a mediaSingleSharedNewStyle, but not originally used in the renderer.
|
|
778
790
|
var mediaSingleSharedStyle = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "li .".concat(_styles.richMediaClassName), {
|
|
779
791
|
margin: 0
|
|
@@ -66,7 +66,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
66
66
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
67
67
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
68
68
|
var packageName = "@atlaskit/renderer";
|
|
69
|
-
var packageVersion = "113.
|
|
69
|
+
var packageVersion = "113.3.0";
|
|
70
70
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
71
71
|
containerName: 'ak-renderer-wrapper',
|
|
72
72
|
containerType: 'inline-size',
|
|
@@ -305,7 +305,7 @@ var __RendererClassComponent = exports.__RendererClassComponent = /*#__PURE__*/f
|
|
|
305
305
|
// does not currently support SSR, should not be enabled in environments where Renderer is SSR-ed
|
|
306
306
|
allowWindowedCodeBlock: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.allowWindowedCodeBlock,
|
|
307
307
|
isInsideOfInlineExtension: props.isInsideOfInlineExtension,
|
|
308
|
-
textHighlighter: props.UNSTABLE_textHighlighter,
|
|
308
|
+
textHighlighter: props.textHighlighter || props.UNSTABLE_textHighlighter,
|
|
309
309
|
allowTableAlignment: props.UNSTABLE_allowTableAlignment,
|
|
310
310
|
allowTableResizing: props.UNSTABLE_allowTableResizing
|
|
311
311
|
};
|
|
@@ -640,7 +640,7 @@ var RendererFunctionalComponent = function RendererFunctionalComponent(props) {
|
|
|
640
640
|
nodeComponents: props.nodeComponents,
|
|
641
641
|
allowWindowedCodeBlock: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.allowWindowedCodeBlock,
|
|
642
642
|
isInsideOfInlineExtension: props.isInsideOfInlineExtension,
|
|
643
|
-
textHighlighter: props.UNSTABLE_textHighlighter,
|
|
643
|
+
textHighlighter: props.textHighlighter || props.UNSTABLE_textHighlighter,
|
|
644
644
|
allowTableAlignment: props.UNSTABLE_allowTableAlignment,
|
|
645
645
|
allowTableResizing: props.UNSTABLE_allowTableResizing
|
|
646
646
|
};
|
|
@@ -106,16 +106,13 @@ var headingSizes = {
|
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
var headingAnchorStyle = function headingAnchorStyle(headingTag) {
|
|
109
|
-
return (
|
|
110
|
-
(0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t/**\n * The copy link button doesn't reserve space in the DOM so that\n * the text alignment isn't impacted by the button/icon's space.\n */\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\theight: ", "em;\n\n\t\t\tmargin-left: ", ";\n\n\t\t\tbutton {\n\t\t\t\tpadding-left: 0;\n\t\t\t\tpadding-right: 0;\n\t\t\t}\n\t\t}\n\n\t\t/**\n * Applies hover effects to the heading anchor link button\n * to fade in when the user rolls over the heading.\n *\n * The link is persistent on mobile, so we use feature detection\n * to enable hover effects for systems that support it (desktop).\n *\n * @see https://caniuse.com/mdn-css_at-rules_media_hover\n */\n\t\t@media (hover: hover) and (pointer: fine) {\n\t\t\t.", " {\n\t\t\t\t> button {\n\t\t\t\t\topacity: 0;\n\t\t\t\t\ttransform: translate(-8px, 0px);\n\t\t\t\t\ttransition:\n\t\t\t\t\t\topacity 0.2s ease 0s,\n\t\t\t\t\t\ttransform 0.2s ease 0s;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&:hover {\n\t\t\t\t.", " > button {\n\t\t\t\t\topacity: 1;\n\t\t\t\t\ttransform: none !important;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/**\n * Adds the visibility of the button when in focus through keyboard navigation.\n */\n\t\t.", " {\n\t\t\tbutton:focus {\n\t\t\t\topacity: 1;\n\t\t\t\ttransform: none !important;\n\t\t\t}\n\t\t}\n\t"])), _headingAnchor.HeadingAnchorWrapperClassName, headingSizes[headingTag].lineHeight, "var(--ds-space-075, 6px)", _headingAnchor.HeadingAnchorWrapperClassName, _headingAnchor.HeadingAnchorWrapperClassName, _headingAnchor.HeadingAnchorWrapperClassName)
|
|
111
|
-
);
|
|
109
|
+
return (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t/**\n * The copy link button doesn't reserve space in the DOM so that\n * the text alignment isn't impacted by the button/icon's space.\n */\n\t.", " {\n\t\tposition: absolute;\n\t\theight: ", "em;\n\n\t\tmargin-left: ", ";\n\n\t\tbutton {\n\t\t\tpadding-left: 0;\n\t\t\tpadding-right: 0;\n\t\t}\n\t}\n\n\t/**\n * Applies hover effects to the heading anchor link button\n * to fade in when the user rolls over the heading.\n *\n * The link is persistent on mobile, so we use feature detection\n * to enable hover effects for systems that support it (desktop).\n *\n * @see https://caniuse.com/mdn-css_at-rules_media_hover\n */\n\t@media (hover: hover) and (pointer: fine) {\n\t\t.", " {\n\t\t\t> button {\n\t\t\t\topacity: 0;\n\t\t\t\ttransform: translate(-8px, 0px);\n\t\t\t\ttransition:\n\t\t\t\t\topacity 0.2s ease 0s,\n\t\t\t\t\ttransform 0.2s ease 0s;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t.", " > button {\n\t\t\t\topacity: 1;\n\t\t\t\ttransform: none !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n * Adds the visibility of the button when in focus through keyboard navigation.\n */\n\t.", " {\n\t\tbutton:focus {\n\t\t\topacity: 1;\n\t\t\ttransform: none !important;\n\t\t}\n\t}\n"])), _headingAnchor.HeadingAnchorWrapperClassName, headingSizes[headingTag].lineHeight, "var(--ds-space-075, 6px)", _headingAnchor.HeadingAnchorWrapperClassName, _headingAnchor.HeadingAnchorWrapperClassName, _headingAnchor.HeadingAnchorWrapperClassName);
|
|
112
110
|
};
|
|
113
111
|
var alignedHeadingAnchorStyle = function alignedHeadingAnchorStyle(_ref) {
|
|
114
112
|
var allowNestedHeaderLinks = _ref.allowNestedHeaderLinks;
|
|
115
113
|
if (!allowNestedHeaderLinks) {
|
|
116
114
|
return '';
|
|
117
115
|
}
|
|
118
|
-
// TODO Delete this comment after verifying space token -> previous value `margin: 6px`
|
|
119
116
|
return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t\t.fabric-editor-block-mark[data-align] > {\n\t\t\th1,\n\t\t\th2,\n\t\t\th3,\n\t\t\th4,\n\t\t\th5,\n\t\t\th6 {\n\t\t\t\tposition: relative;\n\t\t\t}\n\t\t}\n\n\t\t/**\n * For right-alignment we flip the link to be before the heading\n * text so that the text is flush up against the edge of the editor's\n * container edge.\n */\n\t\t.fabric-editor-block-mark:not([data-align='center'])[data-align] {\n\t\t\t.", " {\n\t\t\t\tmargin: 0 ", " 0 0;\n\t\t\t\t// If the anchor is right aligned then the left side of the heading\n\t\t\t\t// is aligned with the left side of the anchor.\n\t\t\t\t// In order to align as expected we transform it the width of the element (plus our expected 6px)\n\t\t\t\t// to the left\n\t\t\t\ttransform: translateX(calc(-100% - ", "));\n\t\t\t}\n\n\t\t\t@media (hover: hover) and (pointer: fine) {\n\t\t\t\t.", " > button {\n\t\t\t\t\ttransform: translate(8px, 0px);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t"])), _headingAnchor.HeadingAnchorWrapperClassName, "var(--ds-space-075, 6px)", "var(--ds-space-075, 6px)", _headingAnchor.HeadingAnchorWrapperClassName);
|
|
120
117
|
};
|
|
121
118
|
var tableSortableColumnStyle = function tableSortableColumnStyle(_ref2) {
|
|
@@ -128,7 +125,7 @@ var tableSortableColumnStyle = function tableSortableColumnStyle(_ref2) {
|
|
|
128
125
|
if (allowNestedHeaderLinks) {
|
|
129
126
|
headingsCss = "\n /**\n * When the sort button is enabled we want the heading's copy link button\n * to reserve space so that it can prematurely wrap to avoid the button\n * being displayed underneath the sort button (hidden or obscured).\n *\n * The two buttons fight each other since the sort button is displayed\n * on hover of the <th /> and the copy link button is displayed on hover\n * of the heading.\n *\n * Note that this can break the WYSIWYG experience in the case where\n * a heading fills the width of the table cell and the only thing which\n * wraps is the copy link button. This is hopefully a rare fringe case.\n */\n .".concat(_headingAnchor.HeadingAnchorWrapperClassName, " {\n position: unset;\n }\n > {\n h1, h2, h3, h4, h5, h6 {\n margin-right: 30px;\n }\n }\n ");
|
|
130
127
|
}
|
|
131
|
-
return (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\t\t.", " {\n\t\t\tpadding: 0;\n\n\t\t\t.", " {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tpadding: ", "px;\n\t\t\t\tborder-width: 1.5px;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-color: transparent;\n\n\t\t\t\t> *:first-child {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + span + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + span + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t@supports selector(:focus-visible) {\n\t\t\t\t\t&:focus {\n\t\t\t\t\t\toutline: unset;\n\t\t\t\t\t}\n\t\t\t\t\t&:focus-visible {\n\t\t\t\t\t\tborder-color: ", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t", "\n\t\t\t}\n\n\t\t\t", "\n\t\t}\n\t"])), _consts.RendererCssClassName.SORTABLE_COLUMN_WRAPPER, _consts.RendererCssClassName.SORTABLE_COLUMN, _styles.tableCellPadding, "var(--ds-border-focused, ".concat(colors.B300, ")"), headingsCss, (0, _platformFeatureFlags.fg)('platform_editor_nested_tables_renderer_styles') ? (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\t\t// New styles\n\t\t\t\t\t\t> .", "\n\t\t\t\t\t\t\t> .", " {\n\t\t\t\t\t\t\tmargin: 0;\n\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\ttransition: opacity 0.2s ease-in-out;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t> .", "\n\t\t\t\t\t\t\t> .", " {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 0;\n\t\t\t\t\t\t\t\t&:focus {\n\t\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&:hover:not(\n\t\t\t\t\t\t\t\t:has(\n\t\t\t\t\t\t\t\t\t.", "\n\t\t\t\t\t\t\t\t\t\t.", ":hover\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t> .", "\n\t\t\t\t\t\t\t> .", " {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t"])), _consts.RendererCssClassName.SORTABLE_COLUMN, _consts.RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME, _consts.RendererCssClassName.SORTABLE_COLUMN, _consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME, _consts.RendererCssClassName.SORTABLE_COLUMN_WRAPPER, _consts.RendererCssClassName.SORTABLE_COLUMN, _consts.RendererCssClassName.SORTABLE_COLUMN, _consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME) : (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\t\t// old styles\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\ttransition: opacity 0.2s ease-in-out;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 0;\n\t\t\t\t\t\t\t\t&:focus {\n\t\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t"])), _consts.RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME, _consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME, _consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME));
|
|
128
|
+
return (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\t\t.", " {\n\t\t\tpadding: 0;\n\n\t\t\t.", " {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tpadding: ", "px;\n\t\t\t\tborder-width: 1.5px;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-color: transparent;\n\n\t\t\t\t> *:first-child {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + span + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + span + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t@supports selector(:focus-visible) {\n\t\t\t\t\t&:focus {\n\t\t\t\t\t\toutline: unset;\n\t\t\t\t\t}\n\t\t\t\t\t&:focus-visible {\n\t\t\t\t\t\tborder-color: ", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t", "\n\t\t\t}\n\n\t\t\t", "\n\t\t}\n\t"])), _consts.RendererCssClassName.SORTABLE_COLUMN_WRAPPER, _consts.RendererCssClassName.SORTABLE_COLUMN, _styles.tableCellPadding, "var(--ds-border-focused, ".concat(colors.B300, ")"), headingsCss, (0, _platformFeatureFlags.fg)('platform_editor_nested_tables_renderer_styles') ? (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\t\t// New styles\n\t\t\t\t\t\t> .", "\n\t\t\t\t\t\t\t> .", " {\n\t\t\t\t\t\t\tmargin: 0;\n\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\ttransition: opacity 0.2s ease-in-out;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t> .", "\n\t\t\t\t\t\t\t> .", " {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 0;\n\t\t\t\t\t\t\t\t&:focus {\n\t\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&:hover:not(\n\t\t\t\t\t\t\t\t:has(\n\t\t\t\t\t\t\t\t\t\t.", "\n\t\t\t\t\t\t\t\t\t\t\t.", ":hover\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t> .", "\n\t\t\t\t\t\t\t> .", " {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t"])), _consts.RendererCssClassName.SORTABLE_COLUMN, _consts.RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME, _consts.RendererCssClassName.SORTABLE_COLUMN, _consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME, _consts.RendererCssClassName.SORTABLE_COLUMN_WRAPPER, _consts.RendererCssClassName.SORTABLE_COLUMN, _consts.RendererCssClassName.SORTABLE_COLUMN, _consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME) : (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\t\t// old styles\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\ttransition: opacity 0.2s ease-in-out;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 0;\n\t\t\t\t\t\t\t\t&:focus {\n\t\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t"])), _consts.RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME, _consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME, _consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME));
|
|
132
129
|
};
|
|
133
130
|
var fullPageStyles = function fullPageStyles(_ref3, _ref4) {
|
|
134
131
|
var appearance = _ref3.appearance;
|
|
@@ -146,7 +143,7 @@ var fullWidthStyles = function fullWidthStyles(_ref5) {
|
|
|
146
143
|
return (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n\t\tmax-width: ", "px;\n\t\tmargin: 0 auto;\n\n\t\t/* don't override if the breakout mark has width attribute defined */\n\t\t.fabric-editor-breakout-mark:not([data-has-width='true']),\n\t\t.ak-renderer-extension {\n\t\t\twidth: 100% !important;\n\t\t}\n\n\t\t", "\n\t"])), _editorSharedStyles.akEditorFullWidthLayoutWidth, (0, _table.isTableResizingEnabled)(appearance) ? '' : "\n .pm-table-container {\n width: 100% !important;\n }\n ");
|
|
147
144
|
};
|
|
148
145
|
var breakoutWidthStyle = function breakoutWidthStyle() {
|
|
149
|
-
return (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n\t\t*:not([data-mark-type='fragment']) .", " {\n\t\t\t// TODO - improve inline style logic on table container so important styles aren't required here\n\t\t\twidth: 100% !important;\n\t\t\tleft: 0 !important;\n\t\t}\n\n\t\t[data-mark-type='fragment'] * .", " {\n\t\t\t// TODO - improve inline style logic on table container so important styles aren't required here\n\t\t\twidth: 100% !important;\n\t\t\tleft: 0 !important;\n\t\t}\n\t"])), _styles.TableSharedCssClassName.TABLE_CONTAINER, _styles.TableSharedCssClassName.TABLE_CONTAINER);
|
|
146
|
+
return (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n\t\t*:not([data-mark-type='fragment']) .", " {\n\t\t\t// Ignored via go/ees007\n\t\t\t// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format\n\t\t\t// TODO - improve inline style logic on table container so important styles aren't required here\n\t\t\twidth: 100% !important;\n\t\t\tleft: 0 !important;\n\t\t}\n\n\t\t[data-mark-type='fragment'] * .", " {\n\t\t\t// Ignored via go/ees007\n\t\t\t// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format\n\t\t\t// TODO - improve inline style logic on table container so important styles aren't required here\n\t\t\twidth: 100% !important;\n\t\t\tleft: 0 !important;\n\t\t}\n\t"])), _styles.TableSharedCssClassName.TABLE_CONTAINER, _styles.TableSharedCssClassName.TABLE_CONTAINER);
|
|
150
147
|
};
|
|
151
148
|
var getShadowOverrides = function getShadowOverrides() {
|
|
152
149
|
return (0, _react.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\t\t/** Shadow overrides */\n\t\t&.", "::after, &.", "::before {\n\t\t\twidth: ", "px;\n\t\t\tbackground: linear-gradient(\n\t\t\t\t\tto left,\n\t\t\t\t\ttransparent 0,\n\t\t\t\t\t", " 140%\n\t\t\t\t),\n\t\t\t\tlinear-gradient(\n\t\t\t\t\tto right,\n\t\t\t\t\t", " 0px,\n\t\t\t\t\ttransparent 1px\n\t\t\t\t);\n\t\t}\n\n\t\t&.", "::after {\n\t\t\tbackground: linear-gradient(\n\t\t\t\t\tto right,\n\t\t\t\t\ttransparent 0,\n\t\t\t\t\t", " 140%\n\t\t\t\t),\n\t\t\t\tlinear-gradient(\n\t\t\t\t\tto left,\n\t\t\t\t\t", " 0px,\n\t\t\t\t\ttransparent 1px\n\t\t\t\t);\n\t\t\tright: 0px;\n\t\t}\n\t"])), _ui.shadowClassNames.RIGHT_SHADOW, _ui.shadowClassNames.LEFT_SHADOW, tableShadowWidth, "var(--ds-shadow-overflow-spread, ".concat(_colors.N40A, ")"), "var(--ds-shadow-overflow-perimeter, transparent)", _ui.shadowClassNames.RIGHT_SHADOW, "var(--ds-shadow-overflow-spread, ".concat(_colors.N40A, ")"), "var(--ds-shadow-overflow-perimeter, transparent)");
|
|
@@ -56,7 +56,7 @@ var TruncatedWrapper = exports.TruncatedWrapper = /*#__PURE__*/function (_Compon
|
|
|
56
56
|
return _callSuper(this, TruncatedWrapper, [props]);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
// TODO: Quality ticket as elevation.surface will be issue when sits top of modal.
|
|
59
|
+
// TODO: DSP-4123 - Quality ticket as elevation.surface will be issue when sits top of modal.
|
|
60
60
|
(0, _inherits2.default)(TruncatedWrapper, _Component);
|
|
61
61
|
return (0, _createClass2.default)(TruncatedWrapper, [{
|
|
62
62
|
key: "render",
|
|
@@ -354,8 +354,9 @@ export default class RendererActions {
|
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
-
//
|
|
358
|
-
//
|
|
357
|
+
// Ignored via go/ees007
|
|
358
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
359
|
+
// TODO: Do not forget to remove `undefined` when the `editor_inline_comments_on_inline_nodes` is removed.
|
|
359
360
|
getInlineNodeTypes(annotationId) {
|
|
360
361
|
if (!this.doc || !this.schema) {
|
|
361
362
|
return [];
|
|
@@ -369,7 +369,7 @@ export default class ReactSerializer {
|
|
|
369
369
|
const isInsideMultiBodiedExtension = insideMultiBodiedExtension(path, node.type.schema);
|
|
370
370
|
const isInsideOfTable = insideTable(path, node.type.schema);
|
|
371
371
|
|
|
372
|
-
// TODO:
|
|
372
|
+
// TODO: CEMS-1048 - Support sticky headers inside breakout + layout
|
|
373
373
|
const stickyHeaders = !isInsideOfTable && !insideBreakoutLayout(path) ? this.stickyHeaders : undefined;
|
|
374
374
|
return {
|
|
375
375
|
...this.getProps(node),
|
|
@@ -655,7 +655,7 @@ export default class ReactSerializer {
|
|
|
655
655
|
}));
|
|
656
656
|
}
|
|
657
657
|
|
|
658
|
-
// TODO: ED-9004 Remove unused ReactSerializer.fromSchema in renderer
|
|
658
|
+
// TODO: ED-9004 - Remove unused ReactSerializer.fromSchema in renderer
|
|
659
659
|
// https://sourcegraph-frontend.internal.shared-prod.us-west-2.kitt-inf.net/search?q=ReactSerializer.fromSchema&patternType=literal
|
|
660
660
|
static fromSchema(_, init) {
|
|
661
661
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -45,7 +45,7 @@ class HeadingAnchor extends React.PureComponent {
|
|
|
45
45
|
});
|
|
46
46
|
_defineProperty(this, "setTooltipState", (message, isClicked = false) => {
|
|
47
47
|
this.setState({
|
|
48
|
-
// TODO: ED-14403 investigate why this does not translate
|
|
48
|
+
// TODO: ED-14403 - investigate why this does not translate
|
|
49
49
|
tooltipMessage: this.props.intl.formatMessage(message),
|
|
50
50
|
isClicked
|
|
51
51
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { abortAll } from '@atlaskit/react-ufo/interaction-metrics';
|
|
4
5
|
import HeadingAnchor from './heading-anchor';
|
|
5
6
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
6
7
|
import AnalyticsContext from '../../analytics/analyticsContext';
|
|
@@ -49,13 +50,24 @@ function Heading(props) {
|
|
|
49
50
|
invisible
|
|
50
51
|
} = props;
|
|
51
52
|
const HX = `h${props.level}`;
|
|
53
|
+
const mouseEntered = React.useRef(false);
|
|
52
54
|
const showAnchorLink = !!props.showAnchorLink;
|
|
53
55
|
const isRightAligned = hasRightAlignmentMark(marks);
|
|
54
56
|
const enableNestedHeaderLinks = allowHeadingAnchorLinks && allowHeadingAnchorLinks.allowNestedHeaderLinks;
|
|
55
57
|
const headingIdToUse = invisible ? undefined : headingId;
|
|
58
|
+
const mouseEnterHandler = () => {
|
|
59
|
+
if (showAnchorLink && !mouseEntered.current) {
|
|
60
|
+
// Abort TTVC calculation when the mouse hovers over heading. Hovering over
|
|
61
|
+
// heading render heading anchor and inline comment buttons. These user-induced
|
|
62
|
+
// DOM changes are valid reasons to abort the TTVC calculation.
|
|
63
|
+
abortAll('new_interaction');
|
|
64
|
+
mouseEntered.current = true;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
56
67
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(HX, {
|
|
57
68
|
id: headingIdToUse,
|
|
58
|
-
"data-renderer-start-pos": dataAttributes['data-renderer-start-pos']
|
|
69
|
+
"data-renderer-start-pos": dataAttributes['data-renderer-start-pos'],
|
|
70
|
+
onMouseEnter: mouseEnterHandler
|
|
59
71
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, showAnchorLink && headingId && isRightAligned && /*#__PURE__*/React.createElement(WrappedHeadingAnchor, {
|
|
60
72
|
level: props.level,
|
|
61
73
|
enableNestedHeaderLinks: enableNestedHeaderLinks,
|
|
@@ -113,9 +113,6 @@ const MediaSingleWithChildren = props => {
|
|
|
113
113
|
width = DEFAULT_WIDTH;
|
|
114
114
|
height = DEFAULT_HEIGHT;
|
|
115
115
|
}
|
|
116
|
-
|
|
117
|
-
// TODO: put appearance-based padding into theme instead
|
|
118
|
-
|
|
119
116
|
const isFullPage = rendererAppearance === 'full-page';
|
|
120
117
|
const isFullWidth = rendererAppearance === 'full-width';
|
|
121
118
|
const padding = isFullPage ? FullPagePadding * 2 : 0;
|
|
@@ -69,6 +69,8 @@ const MultiBodiedExtension = props => {
|
|
|
69
69
|
const overflowContainerClass = !removeOverflow ? RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER : '';
|
|
70
70
|
const updateActiveChild = React.useCallback(index => {
|
|
71
71
|
if (typeof index !== 'number') {
|
|
72
|
+
// Ignored via go/ees007
|
|
73
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
72
74
|
// TODO: Make sure we log this somewhere if this happens
|
|
73
75
|
setActiveChildIndex(0);
|
|
74
76
|
return false;
|
|
@@ -26,7 +26,7 @@ const modeSpecficStyles = {
|
|
|
26
26
|
})
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
// TODO: Quality ticket
|
|
29
|
+
// TODO: DSP-4123 - Quality ticket
|
|
30
30
|
const fixedTableDivStaticStyles = (top, width, allowTableResizing) => {
|
|
31
31
|
let stickyHeaderZIndex;
|
|
32
32
|
if (allowTableResizing) {
|
|
@@ -171,7 +171,7 @@ export class MediaCardView extends Component {
|
|
|
171
171
|
React.createElement("div", _extends({}, dataAttributes, {
|
|
172
172
|
"data-node-type": "media"
|
|
173
173
|
}), /*#__PURE__*/React.createElement(Card
|
|
174
|
-
// TODO MPT-315
|
|
174
|
+
// TODO: MPT-315 - clean up after we move mediaClientConfig into FileIdentifier
|
|
175
175
|
// context is not really used when the type is external and we want to render the component asap
|
|
176
176
|
// Ignored via go/ees005
|
|
177
177
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
@@ -30,6 +30,8 @@ const TELEPOINTER_ID = 'ai-streaming-telepointer';
|
|
|
30
30
|
const tableShadowWidth = 32;
|
|
31
31
|
const LAYOUT_BREAKPOINT_RENDERER = 629;
|
|
32
32
|
// originally defined from packages/editor/editor-plugin-table/src/ui/common-styles.ts
|
|
33
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
34
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
33
35
|
// TODO: tableRowHeight can be moved into `@atlaskit/editor-common/table`
|
|
34
36
|
const tableRowHeight = 44;
|
|
35
37
|
const {
|
|
@@ -387,6 +389,8 @@ const headingsSharedStyles = css({
|
|
|
387
389
|
}
|
|
388
390
|
});
|
|
389
391
|
|
|
392
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
393
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
390
394
|
// TODO: emotion refactor - check if we need UGC token?
|
|
391
395
|
const headingsSharedStylesWithEditorUGC = css({
|
|
392
396
|
'& h1': {
|
|
@@ -864,11 +868,15 @@ const baseOtherStyles = css({
|
|
|
864
868
|
/* Breakout for tables and extensions */
|
|
865
869
|
[`.${RendererCssClassName.DOCUMENT} >`]: {
|
|
866
870
|
[`*:not([data-mark-type='fragment']) .${TableSharedCssClassName.TABLE_CONTAINER}`]: {
|
|
871
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
872
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
867
873
|
// TODO - improve inline style logic on table container so important styles aren't required here
|
|
868
874
|
width: '100% !important',
|
|
869
875
|
left: '0 !important'
|
|
870
876
|
},
|
|
871
877
|
[`[data-mark-type='fragment'] * .${TableSharedCssClassName.TABLE_CONTAINER}`]: {
|
|
878
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
879
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
872
880
|
// TODO - improve inline style logic on table container so important styles aren't required here
|
|
873
881
|
width: '100% !important',
|
|
874
882
|
left: '0 !important'
|
|
@@ -898,6 +906,8 @@ const baseOtherStyles = css({
|
|
|
898
906
|
}
|
|
899
907
|
});
|
|
900
908
|
const alignedHeadingAnchorStyle = css({
|
|
909
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
910
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
901
911
|
// TODO Delete this comment after verifying space token -> previous value `margin: 6px`
|
|
902
912
|
'.fabric-editor-block-mark[data-align] >': {
|
|
903
913
|
'h1, h2, h3, h4, h5, h6': {
|
|
@@ -922,6 +932,8 @@ const alignedHeadingAnchorStyle = css({
|
|
|
922
932
|
}
|
|
923
933
|
});
|
|
924
934
|
|
|
935
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
936
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
925
937
|
// TODO: emotion refactor - there's a mediaSingleSharedNewStyle, but not originally used in the renderer.
|
|
926
938
|
const mediaSingleSharedStyle = css({
|
|
927
939
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -47,7 +47,7 @@ import { getBaseFontSize } from './get-base-font-size';
|
|
|
47
47
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
48
48
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
49
49
|
const packageName = "@atlaskit/renderer";
|
|
50
|
-
const packageVersion = "113.
|
|
50
|
+
const packageVersion = "113.3.0";
|
|
51
51
|
const setAsQueryContainerStyles = css({
|
|
52
52
|
containerName: 'ak-renderer-wrapper',
|
|
53
53
|
containerType: 'inline-size',
|
|
@@ -285,7 +285,7 @@ export class __RendererClassComponent extends PureComponent {
|
|
|
285
285
|
// does not currently support SSR, should not be enabled in environments where Renderer is SSR-ed
|
|
286
286
|
allowWindowedCodeBlock: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.allowWindowedCodeBlock,
|
|
287
287
|
isInsideOfInlineExtension: props.isInsideOfInlineExtension,
|
|
288
|
-
textHighlighter: props.UNSTABLE_textHighlighter,
|
|
288
|
+
textHighlighter: props.textHighlighter || props.UNSTABLE_textHighlighter,
|
|
289
289
|
allowTableAlignment: props.UNSTABLE_allowTableAlignment,
|
|
290
290
|
allowTableResizing: props.UNSTABLE_allowTableResizing
|
|
291
291
|
};
|
|
@@ -620,7 +620,7 @@ const RendererFunctionalComponent = props => {
|
|
|
620
620
|
nodeComponents: props.nodeComponents,
|
|
621
621
|
allowWindowedCodeBlock: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.allowWindowedCodeBlock,
|
|
622
622
|
isInsideOfInlineExtension: props.isInsideOfInlineExtension,
|
|
623
|
-
textHighlighter: props.UNSTABLE_textHighlighter,
|
|
623
|
+
textHighlighter: props.textHighlighter || props.UNSTABLE_textHighlighter,
|
|
624
624
|
allowTableAlignment: props.UNSTABLE_allowTableAlignment,
|
|
625
625
|
allowTableResizing: props.UNSTABLE_allowTableResizing
|
|
626
626
|
};
|
|
@@ -118,26 +118,24 @@ const headingSizes = {
|
|
|
118
118
|
lineHeight: getLineHeight('h100')
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
-
const headingAnchorStyle = headingTag =>
|
|
122
|
-
|
|
123
|
-
css`
|
|
124
|
-
/**
|
|
121
|
+
const headingAnchorStyle = headingTag => css`
|
|
122
|
+
/**
|
|
125
123
|
* The copy link button doesn't reserve space in the DOM so that
|
|
126
124
|
* the text alignment isn't impacted by the button/icon's space.
|
|
127
125
|
*/
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
.${HeadingAnchorWrapperClassName} {
|
|
127
|
+
position: absolute;
|
|
128
|
+
height: ${headingSizes[headingTag].lineHeight}em;
|
|
131
129
|
|
|
132
|
-
|
|
130
|
+
margin-left: ${"var(--ds-space-075, 6px)"};
|
|
133
131
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
132
|
+
button {
|
|
133
|
+
padding-left: 0;
|
|
134
|
+
padding-right: 0;
|
|
138
135
|
}
|
|
136
|
+
}
|
|
139
137
|
|
|
140
|
-
|
|
138
|
+
/**
|
|
141
139
|
* Applies hover effects to the heading anchor link button
|
|
142
140
|
* to fade in when the user rolls over the heading.
|
|
143
141
|
*
|
|
@@ -146,42 +144,41 @@ css`
|
|
|
146
144
|
*
|
|
147
145
|
* @see https://caniuse.com/mdn-css_at-rules_media_hover
|
|
148
146
|
*/
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
147
|
+
@media (hover: hover) and (pointer: fine) {
|
|
148
|
+
.${HeadingAnchorWrapperClassName} {
|
|
149
|
+
> button {
|
|
150
|
+
opacity: 0;
|
|
151
|
+
transform: translate(-8px, 0px);
|
|
152
|
+
transition:
|
|
153
|
+
opacity 0.2s ease 0s,
|
|
154
|
+
transform 0.2s ease 0s;
|
|
158
155
|
}
|
|
156
|
+
}
|
|
159
157
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}
|
|
158
|
+
&:hover {
|
|
159
|
+
.${HeadingAnchorWrapperClassName} > button {
|
|
160
|
+
opacity: 1;
|
|
161
|
+
transform: none !important;
|
|
165
162
|
}
|
|
166
163
|
}
|
|
164
|
+
}
|
|
167
165
|
|
|
168
|
-
|
|
166
|
+
/**
|
|
169
167
|
* Adds the visibility of the button when in focus through keyboard navigation.
|
|
170
168
|
*/
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
169
|
+
.${HeadingAnchorWrapperClassName} {
|
|
170
|
+
button:focus {
|
|
171
|
+
opacity: 1;
|
|
172
|
+
transform: none !important;
|
|
176
173
|
}
|
|
177
|
-
|
|
174
|
+
}
|
|
175
|
+
`;
|
|
178
176
|
const alignedHeadingAnchorStyle = ({
|
|
179
177
|
allowNestedHeaderLinks
|
|
180
178
|
}) => {
|
|
181
179
|
if (!allowNestedHeaderLinks) {
|
|
182
180
|
return '';
|
|
183
181
|
}
|
|
184
|
-
// TODO Delete this comment after verifying space token -> previous value `margin: 6px`
|
|
185
182
|
return css`
|
|
186
183
|
.fabric-editor-block-mark[data-align] > {
|
|
187
184
|
h1,
|
|
@@ -312,9 +309,9 @@ const tableSortableColumnStyle = ({
|
|
|
312
309
|
|
|
313
310
|
&:hover:not(
|
|
314
311
|
:has(
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
312
|
+
.${RendererCssClassName.SORTABLE_COLUMN_WRAPPER}
|
|
313
|
+
.${RendererCssClassName.SORTABLE_COLUMN}:hover
|
|
314
|
+
)
|
|
318
315
|
)
|
|
319
316
|
> .${RendererCssClassName.SORTABLE_COLUMN}
|
|
320
317
|
> .${RendererCssClassName.SORTABLE_COLUMN_NO_ORDER} {
|
|
@@ -392,12 +389,16 @@ const fullWidthStyles = ({
|
|
|
392
389
|
const breakoutWidthStyle = () => {
|
|
393
390
|
return css`
|
|
394
391
|
*:not([data-mark-type='fragment']) .${TableSharedCssClassName.TABLE_CONTAINER} {
|
|
392
|
+
// Ignored via go/ees007
|
|
393
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
395
394
|
// TODO - improve inline style logic on table container so important styles aren't required here
|
|
396
395
|
width: 100% !important;
|
|
397
396
|
left: 0 !important;
|
|
398
397
|
}
|
|
399
398
|
|
|
400
399
|
[data-mark-type='fragment'] * .${TableSharedCssClassName.TABLE_CONTAINER} {
|
|
400
|
+
// Ignored via go/ees007
|
|
401
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
401
402
|
// TODO - improve inline style logic on table container so important styles aren't required here
|
|
402
403
|
width: 100% !important;
|
|
403
404
|
left: 0 !important;
|
|
@@ -43,7 +43,7 @@ export class TruncatedWrapper extends Component {
|
|
|
43
43
|
super(props);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
// TODO: Quality ticket as elevation.surface will be issue when sits top of modal.
|
|
46
|
+
// TODO: DSP-4123 - Quality ticket as elevation.surface will be issue when sits top of modal.
|
|
47
47
|
render() {
|
|
48
48
|
const {
|
|
49
49
|
height = 95,
|
|
@@ -367,8 +367,9 @@ var RendererActions = /*#__PURE__*/function () {
|
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
//
|
|
371
|
-
//
|
|
370
|
+
// Ignored via go/ees007
|
|
371
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
372
|
+
// TODO: Do not forget to remove `undefined` when the `editor_inline_comments_on_inline_nodes` is removed.
|
|
372
373
|
}, {
|
|
373
374
|
key: "getInlineNodeTypes",
|
|
374
375
|
value: function getInlineNodeTypes(annotationId) {
|
package/dist/esm/react/index.js
CHANGED
|
@@ -395,7 +395,7 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
395
395
|
var isInsideMultiBodiedExtension = insideMultiBodiedExtension(path, node.type.schema);
|
|
396
396
|
var isInsideOfTable = insideTable(path, node.type.schema);
|
|
397
397
|
|
|
398
|
-
// TODO:
|
|
398
|
+
// TODO: CEMS-1048 - Support sticky headers inside breakout + layout
|
|
399
399
|
var stickyHeaders = !isInsideOfTable && !insideBreakoutLayout(path) ? this.stickyHeaders : undefined;
|
|
400
400
|
return _objectSpread(_objectSpread({}, this.getProps(node)), {}, {
|
|
401
401
|
allowColumnSorting: this.allowColumnSorting,
|
|
@@ -731,7 +731,7 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
731
731
|
}));
|
|
732
732
|
}
|
|
733
733
|
|
|
734
|
-
// TODO: ED-9004 Remove unused ReactSerializer.fromSchema in renderer
|
|
734
|
+
// TODO: ED-9004 - Remove unused ReactSerializer.fromSchema in renderer
|
|
735
735
|
// https://sourcegraph-frontend.internal.shared-prod.us-west-2.kitt-inf.net/search?q=ReactSerializer.fromSchema&patternType=literal
|
|
736
736
|
}, {
|
|
737
737
|
key: "fromSchema",
|
|
@@ -60,7 +60,7 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
60
60
|
_defineProperty(_this, "setTooltipState", function (message) {
|
|
61
61
|
var isClicked = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
62
62
|
_this.setState({
|
|
63
|
-
// TODO: ED-14403 investigate why this does not translate
|
|
63
|
+
// TODO: ED-14403 - investigate why this does not translate
|
|
64
64
|
tooltipMessage: _this.props.intl.formatMessage(message),
|
|
65
65
|
isClicked: isClicked
|
|
66
66
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { abortAll } from '@atlaskit/react-ufo/interaction-metrics';
|
|
4
5
|
import HeadingAnchor from './heading-anchor';
|
|
5
6
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
6
7
|
import AnalyticsContext from '../../analytics/analyticsContext';
|
|
@@ -50,13 +51,24 @@ function Heading(props) {
|
|
|
50
51
|
marks = props.marks,
|
|
51
52
|
invisible = props.invisible;
|
|
52
53
|
var HX = "h".concat(props.level);
|
|
54
|
+
var mouseEntered = React.useRef(false);
|
|
53
55
|
var showAnchorLink = !!props.showAnchorLink;
|
|
54
56
|
var isRightAligned = hasRightAlignmentMark(marks);
|
|
55
57
|
var enableNestedHeaderLinks = allowHeadingAnchorLinks && allowHeadingAnchorLinks.allowNestedHeaderLinks;
|
|
56
58
|
var headingIdToUse = invisible ? undefined : headingId;
|
|
59
|
+
var mouseEnterHandler = function mouseEnterHandler() {
|
|
60
|
+
if (showAnchorLink && !mouseEntered.current) {
|
|
61
|
+
// Abort TTVC calculation when the mouse hovers over heading. Hovering over
|
|
62
|
+
// heading render heading anchor and inline comment buttons. These user-induced
|
|
63
|
+
// DOM changes are valid reasons to abort the TTVC calculation.
|
|
64
|
+
abortAll('new_interaction');
|
|
65
|
+
mouseEntered.current = true;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
57
68
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(HX, {
|
|
58
69
|
id: headingIdToUse,
|
|
59
|
-
"data-renderer-start-pos": dataAttributes['data-renderer-start-pos']
|
|
70
|
+
"data-renderer-start-pos": dataAttributes['data-renderer-start-pos'],
|
|
71
|
+
onMouseEnter: mouseEnterHandler
|
|
60
72
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, showAnchorLink && headingId && isRightAligned && /*#__PURE__*/React.createElement(WrappedHeadingAnchor, {
|
|
61
73
|
level: props.level,
|
|
62
74
|
enableNestedHeaderLinks: enableNestedHeaderLinks,
|
|
@@ -116,9 +116,6 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
|
|
|
116
116
|
width = DEFAULT_WIDTH;
|
|
117
117
|
height = DEFAULT_HEIGHT;
|
|
118
118
|
}
|
|
119
|
-
|
|
120
|
-
// TODO: put appearance-based padding into theme instead
|
|
121
|
-
|
|
122
119
|
var isFullPage = rendererAppearance === 'full-page';
|
|
123
120
|
var isFullWidth = rendererAppearance === 'full-width';
|
|
124
121
|
var padding = isFullPage ? FullPagePadding * 2 : 0;
|
|
@@ -68,6 +68,8 @@ var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
|
68
68
|
var overflowContainerClass = !removeOverflow ? RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER : '';
|
|
69
69
|
var updateActiveChild = React.useCallback(function (index) {
|
|
70
70
|
if (typeof index !== 'number') {
|
|
71
|
+
// Ignored via go/ees007
|
|
72
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
71
73
|
// TODO: Make sure we log this somewhere if this happens
|
|
72
74
|
setActiveChildIndex(0);
|
|
73
75
|
return false;
|
|
@@ -29,7 +29,7 @@ var modeSpecficStyles = {
|
|
|
29
29
|
})
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
// TODO: Quality ticket
|
|
32
|
+
// TODO: DSP-4123 - Quality ticket
|
|
33
33
|
var fixedTableDivStaticStyles = function fixedTableDivStaticStyles(top, width, allowTableResizing) {
|
|
34
34
|
var stickyHeaderZIndex;
|
|
35
35
|
if (allowTableResizing) {
|
package/dist/esm/ui/MediaCard.js
CHANGED
|
@@ -226,7 +226,7 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
226
226
|
React.createElement("div", _extends({}, dataAttributes, {
|
|
227
227
|
"data-node-type": "media"
|
|
228
228
|
}), /*#__PURE__*/React.createElement(Card
|
|
229
|
-
// TODO MPT-315
|
|
229
|
+
// TODO: MPT-315 - clean up after we move mediaClientConfig into FileIdentifier
|
|
230
230
|
// context is not really used when the type is external and we want to render the component asap
|
|
231
231
|
// Ignored via go/ees005
|
|
232
232
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
@@ -32,6 +32,8 @@ var TELEPOINTER_ID = 'ai-streaming-telepointer';
|
|
|
32
32
|
var tableShadowWidth = 32;
|
|
33
33
|
var LAYOUT_BREAKPOINT_RENDERER = 629;
|
|
34
34
|
// originally defined from packages/editor/editor-plugin-table/src/ui/common-styles.ts
|
|
35
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
36
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
35
37
|
// TODO: tableRowHeight can be moved into `@atlaskit/editor-common/table`
|
|
36
38
|
var tableRowHeight = 44;
|
|
37
39
|
var _getGlobalTheme = getGlobalTheme(),
|
|
@@ -318,6 +320,8 @@ var headingsSharedStyles = css({
|
|
|
318
320
|
}
|
|
319
321
|
});
|
|
320
322
|
|
|
323
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
324
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
321
325
|
// TODO: emotion refactor - check if we need UGC token?
|
|
322
326
|
var headingsSharedStylesWithEditorUGC = css({
|
|
323
327
|
'& h1': {
|
|
@@ -725,10 +729,14 @@ var baseOtherStyles = css(_defineProperty(_defineProperty(_defineProperty(_defin
|
|
|
725
729
|
marginLeft: 0,
|
|
726
730
|
marginRight: 0
|
|
727
731
|
}), ".".concat(RendererCssClassName.DOCUMENT, " >"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "*:not([data-mark-type='fragment']) .".concat(TableSharedCssClassName.TABLE_CONTAINER), {
|
|
732
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
733
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
728
734
|
// TODO - improve inline style logic on table container so important styles aren't required here
|
|
729
735
|
width: '100% !important',
|
|
730
736
|
left: '0 !important'
|
|
731
737
|
}), "[data-mark-type='fragment'] * .".concat(TableSharedCssClassName.TABLE_CONTAINER), {
|
|
738
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
739
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
732
740
|
// TODO - improve inline style logic on table container so important styles aren't required here
|
|
733
741
|
width: '100% !important',
|
|
734
742
|
left: '0 !important'
|
|
@@ -748,6 +756,8 @@ var baseOtherStyles = css(_defineProperty(_defineProperty(_defineProperty(_defin
|
|
|
748
756
|
display: 'flex'
|
|
749
757
|
})));
|
|
750
758
|
var alignedHeadingAnchorStyle = css({
|
|
759
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
760
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
751
761
|
// TODO Delete this comment after verifying space token -> previous value `margin: 6px`
|
|
752
762
|
'.fabric-editor-block-mark[data-align] >': {
|
|
753
763
|
'h1, h2, h3, h4, h5, h6': {
|
|
@@ -767,6 +777,8 @@ var alignedHeadingAnchorStyle = css({
|
|
|
767
777
|
}))
|
|
768
778
|
});
|
|
769
779
|
|
|
780
|
+
// Temporarily ignoring the below the owning team can add the ticket number for the TODO. Context: https://atlassian.slack.com/archives/CPUEVD9MY/p1741565387326829
|
|
781
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
770
782
|
// TODO: emotion refactor - there's a mediaSingleSharedNewStyle, but not originally used in the renderer.
|
|
771
783
|
var mediaSingleSharedStyle = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "li .".concat(richMediaClassName), {
|
|
772
784
|
margin: 0
|
|
@@ -56,7 +56,7 @@ import { getBaseFontSize } from './get-base-font-size';
|
|
|
56
56
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
57
57
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
58
58
|
var packageName = "@atlaskit/renderer";
|
|
59
|
-
var packageVersion = "113.
|
|
59
|
+
var packageVersion = "113.3.0";
|
|
60
60
|
var setAsQueryContainerStyles = css({
|
|
61
61
|
containerName: 'ak-renderer-wrapper',
|
|
62
62
|
containerType: 'inline-size',
|
|
@@ -295,7 +295,7 @@ export var __RendererClassComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
295
295
|
// does not currently support SSR, should not be enabled in environments where Renderer is SSR-ed
|
|
296
296
|
allowWindowedCodeBlock: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.allowWindowedCodeBlock,
|
|
297
297
|
isInsideOfInlineExtension: props.isInsideOfInlineExtension,
|
|
298
|
-
textHighlighter: props.UNSTABLE_textHighlighter,
|
|
298
|
+
textHighlighter: props.textHighlighter || props.UNSTABLE_textHighlighter,
|
|
299
299
|
allowTableAlignment: props.UNSTABLE_allowTableAlignment,
|
|
300
300
|
allowTableResizing: props.UNSTABLE_allowTableResizing
|
|
301
301
|
};
|
|
@@ -630,7 +630,7 @@ var RendererFunctionalComponent = function RendererFunctionalComponent(props) {
|
|
|
630
630
|
nodeComponents: props.nodeComponents,
|
|
631
631
|
allowWindowedCodeBlock: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.allowWindowedCodeBlock,
|
|
632
632
|
isInsideOfInlineExtension: props.isInsideOfInlineExtension,
|
|
633
|
-
textHighlighter: props.UNSTABLE_textHighlighter,
|
|
633
|
+
textHighlighter: props.textHighlighter || props.UNSTABLE_textHighlighter,
|
|
634
634
|
allowTableAlignment: props.UNSTABLE_allowTableAlignment,
|
|
635
635
|
allowTableResizing: props.UNSTABLE_allowTableResizing
|
|
636
636
|
};
|
|
@@ -96,16 +96,13 @@ var headingSizes = {
|
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
98
|
var headingAnchorStyle = function headingAnchorStyle(headingTag) {
|
|
99
|
-
return (
|
|
100
|
-
css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t/**\n * The copy link button doesn't reserve space in the DOM so that\n * the text alignment isn't impacted by the button/icon's space.\n */\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\theight: ", "em;\n\n\t\t\tmargin-left: ", ";\n\n\t\t\tbutton {\n\t\t\t\tpadding-left: 0;\n\t\t\t\tpadding-right: 0;\n\t\t\t}\n\t\t}\n\n\t\t/**\n * Applies hover effects to the heading anchor link button\n * to fade in when the user rolls over the heading.\n *\n * The link is persistent on mobile, so we use feature detection\n * to enable hover effects for systems that support it (desktop).\n *\n * @see https://caniuse.com/mdn-css_at-rules_media_hover\n */\n\t\t@media (hover: hover) and (pointer: fine) {\n\t\t\t.", " {\n\t\t\t\t> button {\n\t\t\t\t\topacity: 0;\n\t\t\t\t\ttransform: translate(-8px, 0px);\n\t\t\t\t\ttransition:\n\t\t\t\t\t\topacity 0.2s ease 0s,\n\t\t\t\t\t\ttransform 0.2s ease 0s;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&:hover {\n\t\t\t\t.", " > button {\n\t\t\t\t\topacity: 1;\n\t\t\t\t\ttransform: none !important;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/**\n * Adds the visibility of the button when in focus through keyboard navigation.\n */\n\t\t.", " {\n\t\t\tbutton:focus {\n\t\t\t\topacity: 1;\n\t\t\t\ttransform: none !important;\n\t\t\t}\n\t\t}\n\t"])), HeadingAnchorWrapperClassName, headingSizes[headingTag].lineHeight, "var(--ds-space-075, 6px)", HeadingAnchorWrapperClassName, HeadingAnchorWrapperClassName, HeadingAnchorWrapperClassName)
|
|
101
|
-
);
|
|
99
|
+
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t/**\n * The copy link button doesn't reserve space in the DOM so that\n * the text alignment isn't impacted by the button/icon's space.\n */\n\t.", " {\n\t\tposition: absolute;\n\t\theight: ", "em;\n\n\t\tmargin-left: ", ";\n\n\t\tbutton {\n\t\t\tpadding-left: 0;\n\t\t\tpadding-right: 0;\n\t\t}\n\t}\n\n\t/**\n * Applies hover effects to the heading anchor link button\n * to fade in when the user rolls over the heading.\n *\n * The link is persistent on mobile, so we use feature detection\n * to enable hover effects for systems that support it (desktop).\n *\n * @see https://caniuse.com/mdn-css_at-rules_media_hover\n */\n\t@media (hover: hover) and (pointer: fine) {\n\t\t.", " {\n\t\t\t> button {\n\t\t\t\topacity: 0;\n\t\t\t\ttransform: translate(-8px, 0px);\n\t\t\t\ttransition:\n\t\t\t\t\topacity 0.2s ease 0s,\n\t\t\t\t\ttransform 0.2s ease 0s;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t.", " > button {\n\t\t\t\topacity: 1;\n\t\t\t\ttransform: none !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n * Adds the visibility of the button when in focus through keyboard navigation.\n */\n\t.", " {\n\t\tbutton:focus {\n\t\t\topacity: 1;\n\t\t\ttransform: none !important;\n\t\t}\n\t}\n"])), HeadingAnchorWrapperClassName, headingSizes[headingTag].lineHeight, "var(--ds-space-075, 6px)", HeadingAnchorWrapperClassName, HeadingAnchorWrapperClassName, HeadingAnchorWrapperClassName);
|
|
102
100
|
};
|
|
103
101
|
var alignedHeadingAnchorStyle = function alignedHeadingAnchorStyle(_ref) {
|
|
104
102
|
var allowNestedHeaderLinks = _ref.allowNestedHeaderLinks;
|
|
105
103
|
if (!allowNestedHeaderLinks) {
|
|
106
104
|
return '';
|
|
107
105
|
}
|
|
108
|
-
// TODO Delete this comment after verifying space token -> previous value `margin: 6px`
|
|
109
106
|
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t\t.fabric-editor-block-mark[data-align] > {\n\t\t\th1,\n\t\t\th2,\n\t\t\th3,\n\t\t\th4,\n\t\t\th5,\n\t\t\th6 {\n\t\t\t\tposition: relative;\n\t\t\t}\n\t\t}\n\n\t\t/**\n * For right-alignment we flip the link to be before the heading\n * text so that the text is flush up against the edge of the editor's\n * container edge.\n */\n\t\t.fabric-editor-block-mark:not([data-align='center'])[data-align] {\n\t\t\t.", " {\n\t\t\t\tmargin: 0 ", " 0 0;\n\t\t\t\t// If the anchor is right aligned then the left side of the heading\n\t\t\t\t// is aligned with the left side of the anchor.\n\t\t\t\t// In order to align as expected we transform it the width of the element (plus our expected 6px)\n\t\t\t\t// to the left\n\t\t\t\ttransform: translateX(calc(-100% - ", "));\n\t\t\t}\n\n\t\t\t@media (hover: hover) and (pointer: fine) {\n\t\t\t\t.", " > button {\n\t\t\t\t\ttransform: translate(8px, 0px);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t"])), HeadingAnchorWrapperClassName, "var(--ds-space-075, 6px)", "var(--ds-space-075, 6px)", HeadingAnchorWrapperClassName);
|
|
110
107
|
};
|
|
111
108
|
var tableSortableColumnStyle = function tableSortableColumnStyle(_ref2) {
|
|
@@ -118,7 +115,7 @@ var tableSortableColumnStyle = function tableSortableColumnStyle(_ref2) {
|
|
|
118
115
|
if (allowNestedHeaderLinks) {
|
|
119
116
|
headingsCss = "\n /**\n * When the sort button is enabled we want the heading's copy link button\n * to reserve space so that it can prematurely wrap to avoid the button\n * being displayed underneath the sort button (hidden or obscured).\n *\n * The two buttons fight each other since the sort button is displayed\n * on hover of the <th /> and the copy link button is displayed on hover\n * of the heading.\n *\n * Note that this can break the WYSIWYG experience in the case where\n * a heading fills the width of the table cell and the only thing which\n * wraps is the copy link button. This is hopefully a rare fringe case.\n */\n .".concat(HeadingAnchorWrapperClassName, " {\n position: unset;\n }\n > {\n h1, h2, h3, h4, h5, h6 {\n margin-right: 30px;\n }\n }\n ");
|
|
120
117
|
}
|
|
121
|
-
return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n\t\t.", " {\n\t\t\tpadding: 0;\n\n\t\t\t.", " {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tpadding: ", "px;\n\t\t\t\tborder-width: 1.5px;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-color: transparent;\n\n\t\t\t\t> *:first-child {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + span + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + span + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t@supports selector(:focus-visible) {\n\t\t\t\t\t&:focus {\n\t\t\t\t\t\toutline: unset;\n\t\t\t\t\t}\n\t\t\t\t\t&:focus-visible {\n\t\t\t\t\t\tborder-color: ", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t", "\n\t\t\t}\n\n\t\t\t", "\n\t\t}\n\t"])), RendererCssClassName.SORTABLE_COLUMN_WRAPPER, RendererCssClassName.SORTABLE_COLUMN, tableCellPadding, "var(--ds-border-focused, ".concat(colors.B300, ")"), headingsCss, fg('platform_editor_nested_tables_renderer_styles') ? css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n\t\t\t\t\t\t// New styles\n\t\t\t\t\t\t> .", "\n\t\t\t\t\t\t\t> .", " {\n\t\t\t\t\t\t\tmargin: 0;\n\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\ttransition: opacity 0.2s ease-in-out;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t> .", "\n\t\t\t\t\t\t\t> .", " {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 0;\n\t\t\t\t\t\t\t\t&:focus {\n\t\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&:hover:not(\n\t\t\t\t\t\t\t\t:has(\n\t\t\t\t\t\t\t\t\t.", "\n\t\t\t\t\t\t\t\t\t\t.", ":hover\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t> .", "\n\t\t\t\t\t\t\t> .", " {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t"])), RendererCssClassName.SORTABLE_COLUMN, RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, SORTABLE_COLUMN_ICON_CLASSNAME, RendererCssClassName.SORTABLE_COLUMN, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, SORTABLE_COLUMN_ICON_CLASSNAME, RendererCssClassName.SORTABLE_COLUMN_WRAPPER, RendererCssClassName.SORTABLE_COLUMN, RendererCssClassName.SORTABLE_COLUMN, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, SORTABLE_COLUMN_ICON_CLASSNAME) : css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n\t\t\t\t\t\t// old styles\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\ttransition: opacity 0.2s ease-in-out;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 0;\n\t\t\t\t\t\t\t\t&:focus {\n\t\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t"])), RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, SORTABLE_COLUMN_ICON_CLASSNAME, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, SORTABLE_COLUMN_ICON_CLASSNAME, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, SORTABLE_COLUMN_ICON_CLASSNAME));
|
|
118
|
+
return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n\t\t.", " {\n\t\t\tpadding: 0;\n\n\t\t\t.", " {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tpadding: ", "px;\n\t\t\t\tborder-width: 1.5px;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-color: transparent;\n\n\t\t\t\t> *:first-child {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + span + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + span + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t@supports selector(:focus-visible) {\n\t\t\t\t\t&:focus {\n\t\t\t\t\t\toutline: unset;\n\t\t\t\t\t}\n\t\t\t\t\t&:focus-visible {\n\t\t\t\t\t\tborder-color: ", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t", "\n\t\t\t}\n\n\t\t\t", "\n\t\t}\n\t"])), RendererCssClassName.SORTABLE_COLUMN_WRAPPER, RendererCssClassName.SORTABLE_COLUMN, tableCellPadding, "var(--ds-border-focused, ".concat(colors.B300, ")"), headingsCss, fg('platform_editor_nested_tables_renderer_styles') ? css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n\t\t\t\t\t\t// New styles\n\t\t\t\t\t\t> .", "\n\t\t\t\t\t\t\t> .", " {\n\t\t\t\t\t\t\tmargin: 0;\n\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\ttransition: opacity 0.2s ease-in-out;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t> .", "\n\t\t\t\t\t\t\t> .", " {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 0;\n\t\t\t\t\t\t\t\t&:focus {\n\t\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&:hover:not(\n\t\t\t\t\t\t\t\t:has(\n\t\t\t\t\t\t\t\t\t\t.", "\n\t\t\t\t\t\t\t\t\t\t\t.", ":hover\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t> .", "\n\t\t\t\t\t\t\t> .", " {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t"])), RendererCssClassName.SORTABLE_COLUMN, RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, SORTABLE_COLUMN_ICON_CLASSNAME, RendererCssClassName.SORTABLE_COLUMN, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, SORTABLE_COLUMN_ICON_CLASSNAME, RendererCssClassName.SORTABLE_COLUMN_WRAPPER, RendererCssClassName.SORTABLE_COLUMN, RendererCssClassName.SORTABLE_COLUMN, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, SORTABLE_COLUMN_ICON_CLASSNAME) : css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n\t\t\t\t\t\t// old styles\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\ttransition: opacity 0.2s ease-in-out;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\topacity: 0;\n\t\t\t\t\t\t\t\t&:focus {\n\t\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t"])), RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, SORTABLE_COLUMN_ICON_CLASSNAME, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, SORTABLE_COLUMN_ICON_CLASSNAME, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, SORTABLE_COLUMN_ICON_CLASSNAME));
|
|
122
119
|
};
|
|
123
120
|
var fullPageStyles = function fullPageStyles(_ref3, _ref4) {
|
|
124
121
|
var appearance = _ref3.appearance;
|
|
@@ -136,7 +133,7 @@ var fullWidthStyles = function fullWidthStyles(_ref5) {
|
|
|
136
133
|
return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n\t\tmax-width: ", "px;\n\t\tmargin: 0 auto;\n\n\t\t/* don't override if the breakout mark has width attribute defined */\n\t\t.fabric-editor-breakout-mark:not([data-has-width='true']),\n\t\t.ak-renderer-extension {\n\t\t\twidth: 100% !important;\n\t\t}\n\n\t\t", "\n\t"])), akEditorFullWidthLayoutWidth, isTableResizingEnabled(appearance) ? '' : "\n .pm-table-container {\n width: 100% !important;\n }\n ");
|
|
137
134
|
};
|
|
138
135
|
var breakoutWidthStyle = function breakoutWidthStyle() {
|
|
139
|
-
return css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n\t\t*:not([data-mark-type='fragment']) .", " {\n\t\t\t// TODO - improve inline style logic on table container so important styles aren't required here\n\t\t\twidth: 100% !important;\n\t\t\tleft: 0 !important;\n\t\t}\n\n\t\t[data-mark-type='fragment'] * .", " {\n\t\t\t// TODO - improve inline style logic on table container so important styles aren't required here\n\t\t\twidth: 100% !important;\n\t\t\tleft: 0 !important;\n\t\t}\n\t"])), TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_CONTAINER);
|
|
136
|
+
return css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n\t\t*:not([data-mark-type='fragment']) .", " {\n\t\t\t// Ignored via go/ees007\n\t\t\t// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format\n\t\t\t// TODO - improve inline style logic on table container so important styles aren't required here\n\t\t\twidth: 100% !important;\n\t\t\tleft: 0 !important;\n\t\t}\n\n\t\t[data-mark-type='fragment'] * .", " {\n\t\t\t// Ignored via go/ees007\n\t\t\t// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format\n\t\t\t// TODO - improve inline style logic on table container so important styles aren't required here\n\t\t\twidth: 100% !important;\n\t\t\tleft: 0 !important;\n\t\t}\n\t"])), TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_CONTAINER);
|
|
140
137
|
};
|
|
141
138
|
var getShadowOverrides = function getShadowOverrides() {
|
|
142
139
|
return css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n\t\t/** Shadow overrides */\n\t\t&.", "::after, &.", "::before {\n\t\t\twidth: ", "px;\n\t\t\tbackground: linear-gradient(\n\t\t\t\t\tto left,\n\t\t\t\t\ttransparent 0,\n\t\t\t\t\t", " 140%\n\t\t\t\t),\n\t\t\t\tlinear-gradient(\n\t\t\t\t\tto right,\n\t\t\t\t\t", " 0px,\n\t\t\t\t\ttransparent 1px\n\t\t\t\t);\n\t\t}\n\n\t\t&.", "::after {\n\t\t\tbackground: linear-gradient(\n\t\t\t\t\tto right,\n\t\t\t\t\ttransparent 0,\n\t\t\t\t\t", " 140%\n\t\t\t\t),\n\t\t\t\tlinear-gradient(\n\t\t\t\t\tto left,\n\t\t\t\t\t", " 0px,\n\t\t\t\t\ttransparent 1px\n\t\t\t\t);\n\t\t\tright: 0px;\n\t\t}\n\t"])), shadowClassNames.RIGHT_SHADOW, shadowClassNames.LEFT_SHADOW, tableShadowWidth, "var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), "var(--ds-shadow-overflow-perimeter, transparent)", shadowClassNames.RIGHT_SHADOW, "var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), "var(--ds-shadow-overflow-perimeter, transparent)");
|
|
@@ -51,7 +51,7 @@ export var TruncatedWrapper = /*#__PURE__*/function (_Component) {
|
|
|
51
51
|
return _callSuper(this, TruncatedWrapper, [props]);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
// TODO: Quality ticket as elevation.surface will be issue when sits top of modal.
|
|
54
|
+
// TODO: DSP-4123 - Quality ticket as elevation.surface will be issue when sits top of modal.
|
|
55
55
|
_inherits(TruncatedWrapper, _Component);
|
|
56
56
|
return _createClass(TruncatedWrapper, [{
|
|
57
57
|
key: "render",
|
|
@@ -78,6 +78,7 @@ export interface RendererProps {
|
|
|
78
78
|
* is updated as a result of a content update.
|
|
79
79
|
*/
|
|
80
80
|
addTelepointer?: boolean;
|
|
81
|
+
textHighlighter?: TextHighlighter;
|
|
81
82
|
/**
|
|
82
83
|
* @default undefined
|
|
83
84
|
* @description
|
|
@@ -109,6 +110,7 @@ export interface RendererProps {
|
|
|
109
110
|
featureFlags?: {
|
|
110
111
|
[featureFlag: string]: boolean;
|
|
111
112
|
} | Partial<RawObjectFeatureFlags>;
|
|
113
|
+
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-26490 Internal documentation for deprecation (no external access)} This prop has been marked stable and therefore replaced by the `textHighlighter` prop. Please use `textHighlighter` prop instead. */
|
|
112
114
|
UNSTABLE_textHighlighter?: TextHighlighter;
|
|
113
115
|
UNSTABLE_allowTableAlignment?: boolean;
|
|
114
116
|
UNSTABLE_allowTableResizing?: boolean;
|
|
@@ -78,6 +78,7 @@ export interface RendererProps {
|
|
|
78
78
|
* is updated as a result of a content update.
|
|
79
79
|
*/
|
|
80
80
|
addTelepointer?: boolean;
|
|
81
|
+
textHighlighter?: TextHighlighter;
|
|
81
82
|
/**
|
|
82
83
|
* @default undefined
|
|
83
84
|
* @description
|
|
@@ -109,6 +110,7 @@ export interface RendererProps {
|
|
|
109
110
|
featureFlags?: {
|
|
110
111
|
[featureFlag: string]: boolean;
|
|
111
112
|
} | Partial<RawObjectFeatureFlags>;
|
|
113
|
+
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-26490 Internal documentation for deprecation (no external access)} This prop has been marked stable and therefore replaced by the `textHighlighter` prop. Please use `textHighlighter` prop instead. */
|
|
112
114
|
UNSTABLE_textHighlighter?: TextHighlighter;
|
|
113
115
|
UNSTABLE_allowTableAlignment?: boolean;
|
|
114
116
|
UNSTABLE_allowTableResizing?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "113.
|
|
3
|
+
"version": "113.3.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
32
32
|
"@atlaskit/button": "^21.1.0",
|
|
33
33
|
"@atlaskit/code": "^16.0.0",
|
|
34
|
-
"@atlaskit/editor-common": "^
|
|
34
|
+
"@atlaskit/editor-common": "^102.3.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
36
36
|
"@atlaskit/editor-palette": "^2.0.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
@@ -48,11 +48,12 @@
|
|
|
48
48
|
"@atlaskit/media-ui": "^28.0.0",
|
|
49
49
|
"@atlaskit/media-viewer": "^52.0.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
|
+
"@atlaskit/react-ufo": "^3.4.0",
|
|
51
52
|
"@atlaskit/smart-card": "^35.2.0",
|
|
52
53
|
"@atlaskit/status": "^3.0.0",
|
|
53
54
|
"@atlaskit/task-decision": "^19.0.0",
|
|
54
55
|
"@atlaskit/theme": "^18.0.0",
|
|
55
|
-
"@atlaskit/tmp-editor-statsig": "^3.
|
|
56
|
+
"@atlaskit/tmp-editor-statsig": "^3.5.0",
|
|
56
57
|
"@atlaskit/tokens": "^4.3.0",
|
|
57
58
|
"@atlaskit/tooltip": "^20.0.0",
|
|
58
59
|
"@atlaskit/visually-hidden": "^3.0.0",
|