@atlaskit/renderer 113.2.2 → 114.0.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-jira/tsconfig.json +3 -0
  4. package/afm-post-office/tsconfig.json +3 -0
  5. package/dist/cjs/actions/index.js +3 -2
  6. package/dist/cjs/react/index.js +2 -2
  7. package/dist/cjs/react/nodes/heading-anchor.js +1 -1
  8. package/dist/cjs/react/nodes/heading.js +13 -1
  9. package/dist/cjs/react/nodes/mediaSingle/index.js +0 -3
  10. package/dist/cjs/react/nodes/multiBodiedExtension.js +2 -0
  11. package/dist/cjs/react/nodes/table/sticky.js +1 -1
  12. package/dist/cjs/ui/MediaCard.js +1 -1
  13. package/dist/cjs/ui/Renderer/RendererStyleContainer.js +12 -0
  14. package/dist/cjs/ui/Renderer/index.js +9 -7
  15. package/dist/cjs/ui/Renderer/rendererHelper.js +53 -0
  16. package/dist/cjs/ui/Renderer/style.js +2 -5
  17. package/dist/cjs/ui/Renderer/truncated-wrapper.js +1 -1
  18. package/dist/es2019/actions/index.js +3 -2
  19. package/dist/es2019/react/index.js +2 -2
  20. package/dist/es2019/react/nodes/heading-anchor.js +1 -1
  21. package/dist/es2019/react/nodes/heading.js +13 -1
  22. package/dist/es2019/react/nodes/mediaSingle/index.js +0 -3
  23. package/dist/es2019/react/nodes/multiBodiedExtension.js +2 -0
  24. package/dist/es2019/react/nodes/table/sticky.js +1 -1
  25. package/dist/es2019/ui/MediaCard.js +1 -1
  26. package/dist/es2019/ui/Renderer/RendererStyleContainer.js +12 -0
  27. package/dist/es2019/ui/Renderer/index.js +9 -7
  28. package/dist/es2019/ui/Renderer/rendererHelper.js +43 -0
  29. package/dist/es2019/ui/Renderer/style.js +36 -35
  30. package/dist/es2019/ui/Renderer/truncated-wrapper.js +1 -1
  31. package/dist/esm/actions/index.js +3 -2
  32. package/dist/esm/react/index.js +2 -2
  33. package/dist/esm/react/nodes/heading-anchor.js +1 -1
  34. package/dist/esm/react/nodes/heading.js +13 -1
  35. package/dist/esm/react/nodes/mediaSingle/index.js +0 -3
  36. package/dist/esm/react/nodes/multiBodiedExtension.js +2 -0
  37. package/dist/esm/react/nodes/table/sticky.js +1 -1
  38. package/dist/esm/ui/MediaCard.js +1 -1
  39. package/dist/esm/ui/Renderer/RendererStyleContainer.js +12 -0
  40. package/dist/esm/ui/Renderer/index.js +9 -7
  41. package/dist/esm/ui/Renderer/rendererHelper.js +46 -0
  42. package/dist/esm/ui/Renderer/style.js +2 -5
  43. package/dist/esm/ui/Renderer/truncated-wrapper.js +1 -1
  44. package/dist/types/ui/Renderer/index.d.ts +1 -0
  45. package/dist/types/ui/Renderer/rendererHelper.d.ts +2 -0
  46. package/dist/types/ui/renderer-props.d.ts +3 -0
  47. package/dist/types-ts4.5/ui/Renderer/index.d.ts +1 -0
  48. package/dist/types-ts4.5/ui/Renderer/rendererHelper.d.ts +2 -0
  49. package/dist/types-ts4.5/ui/renderer-props.d.ts +3 -0
  50. package/package.json +5 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 114.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#122089](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/122089)
8
+ [`f9eb90e04e1ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f9eb90e04e1ec) -
9
+ [ux] Adding new prop in comments renderer to remove empty space around comment content
10
+
11
+ ## 113.3.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#123549](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/123549)
16
+ [`dd96b1dc81357`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dd96b1dc81357) -
17
+ Deprecate `UNSTABLE_textHighlighter` prop on renderer
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 113.2.2
4
24
 
5
25
  ### Patch Changes
@@ -83,6 +83,9 @@
83
83
  {
84
84
  "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
85
85
  },
86
+ {
87
+ "path": "../../../react-ufo/atlaskit/afm-cc/tsconfig.json"
88
+ },
86
89
  {
87
90
  "path": "../../../linking-platform/smart-card/afm-cc/tsconfig.json"
88
91
  },
@@ -83,6 +83,9 @@
83
83
  {
84
84
  "path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
85
85
  },
86
+ {
87
+ "path": "../../../react-ufo/atlaskit/afm-jira/tsconfig.json"
88
+ },
86
89
  {
87
90
  "path": "../../../linking-platform/smart-card/afm-jira/tsconfig.json"
88
91
  },
@@ -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
- // TODO: Do not forget to remove `undefined` when the
378
- // `editor_inline_comments_on_inline_nodes` is removed.
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) {
@@ -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: https://product-fabric.atlassian.net/browse/CEMS-1048
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: https://product-fabric.atlassian.net/browse/DSP-4123
41
+ // TODO: DSP-4123 - Quality ticket
42
42
  var fixedTableDivStaticStyles = function fixedTableDivStaticStyles(top, width, allowTableResizing) {
43
43
  var stickyHeaderZIndex;
44
44
  if (allowTableResizing) {
@@ -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: clean up after we move mediaClientConfig into FileIdentifier
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
@@ -53,6 +53,7 @@ var _truncatedWrapper = require("./truncated-wrapper");
53
53
  var _ValidationContext = require("./ValidationContext");
54
54
  var _RendererStyleContainer = require("./RendererStyleContainer");
55
55
  var _getBaseFontSize = require("./get-base-font-size");
56
+ var _rendererHelper = require("./rendererHelper");
56
57
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
57
58
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
58
59
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -66,7 +67,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
66
67
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
67
68
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
68
69
  var packageName = "@atlaskit/renderer";
69
- var packageVersion = "113.2.2";
70
+ var packageVersion = "114.0.0";
70
71
  var setAsQueryContainerStyles = (0, _react2.css)({
71
72
  containerName: 'ak-renderer-wrapper',
72
73
  containerType: 'inline-size',
@@ -305,7 +306,7 @@ var __RendererClassComponent = exports.__RendererClassComponent = /*#__PURE__*/f
305
306
  // does not currently support SSR, should not be enabled in environments where Renderer is SSR-ed
306
307
  allowWindowedCodeBlock: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.allowWindowedCodeBlock,
307
308
  isInsideOfInlineExtension: props.isInsideOfInlineExtension,
308
- textHighlighter: props.UNSTABLE_textHighlighter,
309
+ textHighlighter: props.textHighlighter || props.UNSTABLE_textHighlighter,
309
310
  allowTableAlignment: props.UNSTABLE_allowTableAlignment,
310
311
  allowTableResizing: props.UNSTABLE_allowTableResizing
311
312
  };
@@ -389,7 +390,7 @@ var __RendererClassComponent = exports.__RendererClassComponent = /*#__PURE__*/f
389
390
  try {
390
391
  var _rendererContext$feat;
391
392
  var schema = this.getSchema(this.props.schema, this.props.adfStage);
392
- var _renderDocument = (0, _.renderDocument)(adfDocument, this.serializer, schema, adfStage, this.props.useSpecBasedValidator, this.id, this.fireAnalyticsEvent, this.props.unsupportedContentLevelsTracking, this.props.appearance, this.props.includeNodesCountInStats, skipValidation),
393
+ var _renderDocument = (0, _.renderDocument)(this.props.shouldRemoveEmptySpaceAroundContent ? (0, _rendererHelper.removeEmptySpaceAroundContent)(adfDocument) : adfDocument, this.serializer, schema, adfStage, this.props.useSpecBasedValidator, this.id, this.fireAnalyticsEvent, this.props.unsupportedContentLevelsTracking, this.props.appearance, this.props.includeNodesCountInStats, skipValidation),
393
394
  result = _renderDocument.result,
394
395
  stat = _renderDocument.stat,
395
396
  pmDoc = _renderDocument.pmDoc;
@@ -613,7 +614,7 @@ var RendererFunctionalComponent = function RendererFunctionalComponent(props) {
613
614
  extensionHandlers: props.extensionHandlers,
614
615
  portal: props.portal,
615
616
  objectContext: _objectSpread({
616
- adDoc: props.document,
617
+ adDoc: props.shouldRemoveEmptySpaceAroundContent ? (0, _rendererHelper.removeEmptySpaceAroundContent)(props.document) : props.document,
617
618
  schema: props.schema
618
619
  }, props.rendererContext),
619
620
  appearance: props.appearance,
@@ -640,7 +641,7 @@ var RendererFunctionalComponent = function RendererFunctionalComponent(props) {
640
641
  nodeComponents: props.nodeComponents,
641
642
  allowWindowedCodeBlock: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.allowWindowedCodeBlock,
642
643
  isInsideOfInlineExtension: props.isInsideOfInlineExtension,
643
- textHighlighter: props.UNSTABLE_textHighlighter,
644
+ textHighlighter: props.textHighlighter || props.UNSTABLE_textHighlighter,
644
645
  allowTableAlignment: props.UNSTABLE_allowTableAlignment,
645
646
  allowTableResizing: props.UNSTABLE_allowTableResizing
646
647
  };
@@ -761,7 +762,7 @@ var RendererFunctionalComponent = function RendererFunctionalComponent(props) {
761
762
  try {
762
763
  var _createRendererContex2, _props$media;
763
764
  var schema = getSchema(props.schema, props.adfStage);
764
- var _renderDocument2 = (0, _.renderDocument)(props.document, serializer, schema, props.adfStage, props.useSpecBasedValidator, id, _fireAnalyticsEvent, props.unsupportedContentLevelsTracking, props.appearance, props.includeNodesCountInStats, props.skipValidation),
765
+ var _renderDocument2 = (0, _.renderDocument)(props.shouldRemoveEmptySpaceAroundContent ? (0, _rendererHelper.removeEmptySpaceAroundContent)(props.document) : props.document, serializer, schema, props.adfStage, props.useSpecBasedValidator, id, _fireAnalyticsEvent, props.unsupportedContentLevelsTracking, props.appearance, props.includeNodesCountInStats, props.skipValidation),
765
766
  result = _renderDocument2.result,
766
767
  stat = _renderDocument2.stat,
767
768
  pmDoc = _renderDocument2.pmDoc;
@@ -798,7 +799,8 @@ var RendererFunctionalComponent = function RendererFunctionalComponent(props) {
798
799
  onMouseDown: onMouseDownEditView,
799
800
  ssr: (_props$media = props.media) === null || _props$media === void 0 ? void 0 : _props$media.ssr,
800
801
  isInsideOfInlineExtension: props.isInsideOfInlineExtension,
801
- isTopLevelRenderer: createRendererContext(props.featureFlags, props.isTopLevelRenderer).isTopLevelRenderer
802
+ isTopLevelRenderer: createRendererContext(props.featureFlags, props.isTopLevelRenderer).isTopLevelRenderer,
803
+ shouldRemoveEmptySpaceAroundContent: props.shouldRemoveEmptySpaceAroundContent
802
804
  }, props.enableSsrInlineScripts || props.noOpSSRInlineScript ? (0, _react2.jsx)(_breakoutSsr.BreakoutSSRInlineScript, {
803
805
  noOpSSRInlineScript: Boolean(props.noOpSSRInlineScript)
804
806
  }) : null, (0, _react2.jsx)(RendererActionsInternalUpdater, {
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.removeEmptySpaceAroundContent = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
+ var removeEmptySpaceAroundContent = exports.removeEmptySpaceAroundContent = function removeEmptySpaceAroundContent(document) {
12
+ // Check if the document is valid
13
+ if (!document || !document.content || !Array.isArray(document.content)) {
14
+ return document;
15
+ }
16
+ var isParagraphWithContent = function isParagraphWithContent(node) {
17
+ if (node.type !== 'paragraph' || !node.content || node.content.length === 0) {
18
+ return false;
19
+ }
20
+ // Check if paragraph has any content other than `hardBreak`
21
+ return node.content.some(function (child) {
22
+ return (child === null || child === void 0 ? void 0 : child.type) !== 'hardBreak';
23
+ });
24
+ };
25
+ var content = document.content;
26
+ var firstContentIndex = -1;
27
+ var lastContentIndex = -1;
28
+
29
+ // Find the first and last paragraphs with content
30
+ for (var i = 0; i < content.length; i++) {
31
+ if (isParagraphWithContent(content[i])) {
32
+ if (firstContentIndex === -1) {
33
+ firstContentIndex = i;
34
+ }
35
+ lastContentIndex = i;
36
+ }
37
+ }
38
+
39
+ // If no content was found, return an empty document
40
+ if (firstContentIndex === -1) {
41
+ return _objectSpread(_objectSpread({}, document), {}, {
42
+ content: []
43
+ });
44
+ }
45
+
46
+ // Slice the content array to include only paragraphs between the first and last content
47
+ var trimmedContent = content.slice(firstContentIndex, lastContentIndex + 1);
48
+
49
+ // Return a new document with the trimmed content
50
+ return _objectSpread(_objectSpread({}, document), {}, {
51
+ content: trimmedContent
52
+ });
53
+ };
@@ -106,16 +106,13 @@ var headingSizes = {
106
106
  }
107
107
  };
108
108
  var headingAnchorStyle = function headingAnchorStyle(headingTag) {
109
- return (// TODO Delete this comment after verifying space token -> previous value `margin-left: 6px`
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) {
@@ -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. https://product-fabric.atlassian.net/browse/DSP-4123
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
- // TODO: Do not forget to remove `undefined` when the
358
- // `editor_inline_comments_on_inline_nodes` is removed.
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: https://product-fabric.atlassian.net/browse/CEMS-1048
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: https://product-fabric.atlassian.net/browse/DSP-4123
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: clean up after we move mediaClientConfig into FileIdentifier
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