@atlaskit/renderer 128.2.3 → 128.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/react/index.js +8 -6
  3. package/dist/cjs/react/marks/data-consumer.js +3 -1
  4. package/dist/cjs/react/marks/link.js +7 -6
  5. package/dist/cjs/react/nodes/blockCard.js +16 -11
  6. package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +7 -8
  7. package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -2
  8. package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -1
  9. package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +3 -1
  10. package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
  11. package/dist/cjs/react/nodes/emoji.js +6 -2
  12. package/dist/cjs/react/nodes/heading.js +3 -1
  13. package/dist/cjs/react/nodes/inlineCard.js +19 -6
  14. package/dist/cjs/react/nodes/media/index.js +20 -5
  15. package/dist/cjs/react/nodes/mediaInline.js +4 -1
  16. package/dist/cjs/react/nodes/mediaSingle/index.js +3 -1
  17. package/dist/cjs/react/nodes/panel.js +7 -7
  18. package/dist/cjs/react/nodes/status.js +6 -2
  19. package/dist/cjs/react/nodes/table/sticky.js +2 -3
  20. package/dist/cjs/react/nodes/table.js +7 -4
  21. package/dist/cjs/react/nodes/taskItem.js +9 -3
  22. package/dist/cjs/ui/Expand.js +9 -5
  23. package/dist/cjs/ui/ExtensionRenderer.js +3 -1
  24. package/dist/cjs/ui/MediaCard.js +3 -1
  25. package/dist/cjs/ui/Renderer/RendererStyleContainer.js +67 -68
  26. package/dist/cjs/ui/Renderer/index.js +22 -10
  27. package/dist/cjs/ui/Renderer/truncated-wrapper.js +3 -2
  28. package/dist/es2019/react/index.js +7 -6
  29. package/dist/es2019/react/marks/data-consumer.js +3 -1
  30. package/dist/es2019/react/marks/link.js +7 -6
  31. package/dist/es2019/react/nodes/blockCard.js +16 -11
  32. package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +7 -8
  33. package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -2
  34. package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -1
  35. package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +3 -1
  36. package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
  37. package/dist/es2019/react/nodes/emoji.js +6 -2
  38. package/dist/es2019/react/nodes/heading.js +3 -1
  39. package/dist/es2019/react/nodes/inlineCard.js +19 -6
  40. package/dist/es2019/react/nodes/media/index.js +20 -5
  41. package/dist/es2019/react/nodes/mediaInline.js +5 -2
  42. package/dist/es2019/react/nodes/mediaSingle/index.js +3 -1
  43. package/dist/es2019/react/nodes/panel.js +7 -7
  44. package/dist/es2019/react/nodes/status.js +6 -2
  45. package/dist/es2019/react/nodes/table/sticky.js +4 -5
  46. package/dist/es2019/react/nodes/table.js +7 -4
  47. package/dist/es2019/react/nodes/taskItem.js +9 -3
  48. package/dist/es2019/ui/Expand.js +9 -5
  49. package/dist/es2019/ui/ExtensionRenderer.js +3 -1
  50. package/dist/es2019/ui/MediaCard.js +3 -1
  51. package/dist/es2019/ui/Renderer/RendererStyleContainer.js +73 -74
  52. package/dist/es2019/ui/Renderer/index.js +22 -10
  53. package/dist/es2019/ui/Renderer/truncated-wrapper.js +3 -2
  54. package/dist/esm/react/index.js +8 -6
  55. package/dist/esm/react/marks/data-consumer.js +3 -1
  56. package/dist/esm/react/marks/link.js +7 -6
  57. package/dist/esm/react/nodes/blockCard.js +16 -11
  58. package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +7 -8
  59. package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -2
  60. package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -1
  61. package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +3 -1
  62. package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
  63. package/dist/esm/react/nodes/emoji.js +6 -2
  64. package/dist/esm/react/nodes/heading.js +3 -1
  65. package/dist/esm/react/nodes/inlineCard.js +19 -6
  66. package/dist/esm/react/nodes/media/index.js +20 -5
  67. package/dist/esm/react/nodes/mediaInline.js +4 -1
  68. package/dist/esm/react/nodes/mediaSingle/index.js +3 -1
  69. package/dist/esm/react/nodes/panel.js +7 -7
  70. package/dist/esm/react/nodes/status.js +6 -2
  71. package/dist/esm/react/nodes/table/sticky.js +2 -3
  72. package/dist/esm/react/nodes/table.js +7 -4
  73. package/dist/esm/react/nodes/taskItem.js +9 -3
  74. package/dist/esm/ui/Expand.js +9 -5
  75. package/dist/esm/ui/ExtensionRenderer.js +3 -1
  76. package/dist/esm/ui/MediaCard.js +3 -1
  77. package/dist/esm/ui/Renderer/RendererStyleContainer.js +68 -69
  78. package/dist/esm/ui/Renderer/index.js +22 -10
  79. package/dist/esm/ui/Renderer/truncated-wrapper.js +3 -2
  80. package/dist/types/types/mediaOptions.d.ts +3 -0
  81. package/dist/types/ui/MediaCard.d.ts +3 -0
  82. package/dist/types-ts4.5/types/mediaOptions.d.ts +3 -0
  83. package/dist/types-ts4.5/ui/MediaCard.d.ts +3 -0
  84. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 128.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0f4a08b633f6e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0f4a08b633f6e) -
8
+ Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
9
+ - Updated dependencies
10
+
11
+ ## 128.3.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`6e25e8bbb01c3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6e25e8bbb01c3) -
16
+ [ux] Adds mediaViewerExtensions prop to media-viewer/src/header and threads it through parents.
17
+ Allows callers to pass in additional buttons to the image / video preview'
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 128.2.3
4
24
 
5
25
  ### Patch Changes
@@ -492,7 +492,8 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
492
492
  value: function getMediaProps(node) {
493
493
  var _this6 = this,
494
494
  _this$media,
495
- _this$media2;
495
+ _this$media2,
496
+ _this$media3;
496
497
  var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
497
498
  var _node$type$schema$mar = node.type.schema.marks,
498
499
  annotation = _node$type$schema$mar.annotation,
@@ -527,6 +528,7 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
527
528
  // surroundTextNodesWithTextWrapper checks inlineComment.allowDraftMode
528
529
  allowAnnotationsDraftMode: this.surroundTextNodesWithTextWrapper,
529
530
  enableSyncMediaCard: (_this$media2 = this.media) === null || _this$media2 === void 0 ? void 0 : _this$media2.enableSyncMediaCard,
531
+ mediaViewerExtensions: (_this$media3 = this.media) === null || _this$media3 === void 0 ? void 0 : _this$media3.mediaViewerExtensions,
530
532
  nestedUnder: nestedUnder
531
533
  });
532
534
  }
@@ -579,21 +581,21 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
579
581
  }, {
580
582
  key: "getMediaGroupProps",
581
583
  value: function getMediaGroupProps(node) {
582
- var _this$media3, _this$media4;
584
+ var _this$media4, _this$media5;
583
585
  return _objectSpread(_objectSpread({}, this.getProps(node)), {}, {
584
586
  shouldOpenMediaViewer: this.shouldOpenMediaViewer,
585
587
  allowAltTextOnImages: this.allowAltTextOnImages,
586
588
  featureFlags: this.media && this.media.featureFlags,
587
- enableDownloadButton: (_this$media3 = this.media) === null || _this$media3 === void 0 ? void 0 : _this$media3.enableDownloadButton,
588
- ssr: (_this$media4 = this.media) === null || _this$media4 === void 0 ? void 0 : _this$media4.ssr
589
+ enableDownloadButton: (_this$media4 = this.media) === null || _this$media4 === void 0 ? void 0 : _this$media4.enableDownloadButton,
590
+ ssr: (_this$media5 = this.media) === null || _this$media5 === void 0 ? void 0 : _this$media5.ssr
589
591
  });
590
592
  }
591
593
  }, {
592
594
  key: "getMediaInlineProps",
593
595
  value: function getMediaInlineProps(node) {
594
- var _this$media5;
596
+ var _this$media6;
595
597
  return _objectSpread(_objectSpread({}, this.getProps(node)), {}, {
596
- ssr: (_this$media5 = this.media) === null || _this$media5 === void 0 ? void 0 : _this$media5.ssr
598
+ ssr: (_this$media6 = this.media) === null || _this$media6 === void 0 ? void 0 : _this$media6.ssr
597
599
  });
598
600
  }
599
601
  }, {
@@ -9,7 +9,9 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  function DataConsumer(props) {
11
11
  var WrapperElement = props.isInline ? 'span' : 'div';
12
- return /*#__PURE__*/_react.default.createElement(WrapperElement, (0, _extends2.default)({
12
+ return /*#__PURE__*/_react.default.createElement(WrapperElement
13
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
14
+ , (0, _extends2.default)({
13
15
  "data-source": props.sources ? JSON.stringify(props.sources) : undefined,
14
16
  "data-mark-type": "dataConsumer"
15
17
  // Ignored via go/ees005
@@ -9,7 +9,6 @@ exports.default = Link;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var _react2 = require("@emotion/react");
12
- var _colors = require("@atlaskit/theme/colors");
13
12
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _utils = require("../../utils");
15
14
  var _events = require("../../analytics/events");
@@ -25,13 +24,13 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
25
24
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
25
 
27
26
  var anchorStyles = (0, _react2.css)({
28
- color: "var(--ds-link, ".concat(_colors.B400, ")"),
27
+ color: "var(--ds-link, #1868DB)",
29
28
  '&:hover': {
30
- color: "var(--ds-link, ".concat(_colors.B300, ")"),
29
+ color: "var(--ds-link, #1868DB)",
31
30
  textDecoration: 'underline'
32
31
  },
33
32
  '&:active': {
34
- color: "var(--ds-link-pressed, ".concat(_colors.B500, ")")
33
+ color: "var(--ds-link-pressed, #1558BC)"
35
34
  }
36
35
  });
37
36
  function Link(props) {
@@ -47,7 +46,7 @@ function Link(props) {
47
46
  try {
48
47
  var _onSetLinkTarget;
49
48
  actualTarget = (_onSetLinkTarget = onSetLinkTarget(href)) !== null && _onSetLinkTarget !== void 0 ? _onSetLinkTarget : actualTarget;
50
- } catch (error) {
49
+ } catch (error) {// eslint-disable-line no-unused-vars
51
50
  // If URL parsing fails, use the original target
52
51
  }
53
52
  }
@@ -73,7 +72,9 @@ function Link(props) {
73
72
  return (0, _react2.jsx)(_analyticsNext.AnalyticsContext, {
74
73
  data: analyticsData
75
74
  }, (0, _react2.jsx)(_linkUrl.default, (0, _extends2.default)({
76
- css: anchorStyles,
75
+ css: anchorStyles
76
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
77
+ ,
77
78
  onClick: function onClick(e) {
78
79
  if (fireAnalyticsEvent) {
79
80
  fireAnalyticsEvent({
@@ -18,7 +18,6 @@ var _linkDatasource = require("@atlaskit/link-datasource");
18
18
  var _ssr = require("@atlaskit/smart-card/ssr");
19
19
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
20
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
21
- var _colors = require("@atlaskit/theme/colors");
22
21
  var _utils = require("@atlaskit/editor-common/utils");
23
22
  var _PortalContext = require("../../ui/Renderer/PortalContext");
24
23
  var _consts = require("../../consts");
@@ -29,32 +28,32 @@ var _consts = require("../../consts");
29
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
30
29
 
31
30
  var datasourceCenterWrapperStyles = (0, _react.css)({
32
- marginTop: "var(--ds-space-150, 0.75rem)",
33
- marginBottom: "var(--ds-space-150, 0.75rem)"
31
+ marginTop: "var(--ds-space-150, 12px)",
32
+ marginBottom: "var(--ds-space-150, 12px)"
34
33
  });
35
34
  var datasourceContainerStyleWithMarginTop = (0, _react.css)({
36
35
  borderRadius: "var(--ds-radius-large, 8px)",
37
- border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N40, ")")),
36
+ border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
38
37
  overflow: 'hidden',
39
- marginTop: "var(--ds-space-150, 0.75rem)",
40
- marginBottom: "var(--ds-space-150, 0.75rem)"
38
+ marginTop: "var(--ds-space-150, 12px)",
39
+ marginBottom: "var(--ds-space-150, 12px)"
41
40
  });
42
41
 
43
42
  // No vertical margin when inside center wrapper (wrapper has margin so it participates in collapse). Styles from datasourceContainerStyleLegacy
44
43
  var datasourceContainerStyleNoVerticalMargin = (0, _react.css)({
45
44
  borderRadius: "var(--ds-radius-large, 8px)",
46
- border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N40, ")")),
45
+ border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
47
46
  overflow: 'hidden'
48
47
  });
49
48
  var datasourceContainerStyleLegacy = (0, _react.css)({
50
49
  borderRadius: "var(--ds-radius-large, 8px)",
51
- border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N40, ")")),
50
+ border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
52
51
  overflow: 'hidden',
53
52
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
54
53
  marginLeft: '50%',
55
- marginBottom: "var(--ds-space-150, 0.75rem)",
54
+ marginBottom: "var(--ds-space-150, 12px)",
56
55
  transform: 'translateX(-50%)',
57
- marginTop: "var(--ds-space-150, 0.75rem)"
56
+ marginTop: "var(--ds-space-150, 12px)"
58
57
  });
59
58
  function BlockCard(props) {
60
59
  var url = props.url,
@@ -104,6 +103,8 @@ function BlockCard(props) {
104
103
  var key = _ref3.key;
105
104
  return key;
106
105
  });
106
+
107
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
107
108
  var columnCustomSizesEntries = columns === null || columns === void 0 ? void 0 : columns.filter(function (c) {
108
109
  return !!c.width;
109
110
  }).map(function (_ref4) {
@@ -112,6 +113,8 @@ function BlockCard(props) {
112
113
  return [key, width];
113
114
  });
114
115
  var columnCustomSizes = columnCustomSizesEntries !== null && columnCustomSizesEntries !== void 0 && columnCustomSizesEntries.length ? Object.fromEntries(columnCustomSizesEntries) : undefined;
116
+
117
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
115
118
  var wrappedColumnKeys = columns === null || columns === void 0 ? void 0 : columns.filter(function (c) {
116
119
  return c.isWrapped;
117
120
  }).map(function (c) {
@@ -199,7 +202,9 @@ function BlockCard(props) {
199
202
  }, (0, _react.jsx)("div", {
200
203
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
201
204
  className: "blockCardView-content-wrap",
202
- "data-block-card": true,
205
+ "data-block-card": true
206
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
207
+ ,
203
208
  "data-card-data": data ? JSON.stringify(data) : undefined,
204
209
  "data-card-url": url,
205
210
  "data-local-id": localId
@@ -8,7 +8,6 @@ exports.default = void 0;
8
8
  var _react = require("@emotion/react");
9
9
  var _codeBlockCopyButton = _interopRequireDefault(require("./codeBlockCopyButton"));
10
10
  var _codeBlockWrapButton = _interopRequireDefault(require("./codeBlockWrapButton"));
11
- var _colors = require("@atlaskit/theme/colors");
12
11
  /**
13
12
  * @jsxRuntime classic
14
13
  * @jsx jsx
@@ -18,7 +17,7 @@ var _colors = require("@atlaskit/theme/colors");
18
17
  var codeBlockButtonsWrapper = (0, _react.css)({
19
18
  position: 'sticky',
20
19
  top: '0px',
21
- background: "".concat("var(--ds-surface, ".concat(_colors.N20, ")"))
20
+ background: "var(--ds-surface, #FFFFFF)"
22
21
  });
23
22
  var codeBlockButtonsStyle = (0, _react.css)({
24
23
  display: 'flex',
@@ -33,24 +32,24 @@ var codeBlockButtonsStyle = (0, _react.css)({
33
32
  button: {
34
33
  height: '32px',
35
34
  width: '32px',
36
- border: "var(--ds-border-width-selected, 2px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N0, ")")),
35
+ border: "var(--ds-border-width-selected, 2px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
37
36
  borderRadius: "var(--ds-radius-small, 4px)",
38
37
  marginLeft: "var(--ds-space-050, 4px)",
39
38
  padding: "var(--ds-space-025, 2px)",
40
- background: "".concat("var(--ds-surface-overlay, ".concat(_colors.N20, ")")),
41
- color: "var(--ds-icon, rgb(66, 82, 110))",
39
+ background: "var(--ds-surface-overlay, #FFFFFF)",
40
+ color: "var(--ds-icon, #292A2E)",
42
41
  '&:hover': {
43
42
  borderWidth: "var(--ds-border-width-selected, 2px)",
44
- backgroundColor: "".concat("var(--ds-surface-overlay-hovered, ".concat(_colors.N30, ")")),
43
+ backgroundColor: "var(--ds-surface-overlay-hovered, #F0F1F2)",
45
44
  height: '32px',
46
45
  width: '32px'
47
46
  },
48
47
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
49
48
  '&.clicked': {
50
- backgroundColor: "".concat("var(--ds-background-neutral-bold-pressed, ".concat(_colors.N700, ")")),
49
+ backgroundColor: "var(--ds-background-neutral-bold-pressed, #505258)",
51
50
  borderRadius: "var(--ds-radius-small, 4px)",
52
51
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
53
- color: "".concat("var(--ds-icon-inverse, ".concat(_colors.N0, ")"), " !important")
52
+ color: "var(--ds-icon-inverse, #FFFFFF)".concat(" !important")
54
53
  }
55
54
  }
56
55
  });
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
- var _colors = require("@atlaskit/theme/colors");
11
10
  var _styles = require("@atlaskit/editor-common/styles");
12
11
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
@@ -20,7 +19,7 @@ var _codeBlockButtonContainer = _interopRequireDefault(require("./codeBlockButto
20
19
 
21
20
  var codeBlockStyleOverrides = (0, _react.css)((0, _defineProperty2.default)({
22
21
  tabSize: 4,
23
- backgroundColor: "var(--ds-surface-raised, ".concat(_colors.N20, ")"),
22
+ backgroundColor: "var(--ds-surface-raised, #FFFFFF)",
24
23
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
25
24
  button: {
26
25
  opacity: 0,
@@ -57,7 +57,9 @@ var CopyButton = function CopyButton(_ref) {
57
57
  className: className,
58
58
  iconBefore: (0, _react.jsx)(_copy.default, {
59
59
  label: tooltip
60
- }),
60
+ })
61
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
62
+ ,
61
63
  onClick: function onClick(event) {
62
64
  fireAnalyticsEvent({
63
65
  // @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'.
@@ -40,7 +40,9 @@ var CodeBlockWrapButton = function CodeBlockWrapButton(_ref) {
40
40
  iconBefore: (0, _react.jsx)(_textWrap.default, {
41
41
  label: ""
42
42
  }),
43
- isSelected: wrapLongLines,
43
+ isSelected: wrapLongLines
44
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
45
+ ,
44
46
  onClick: function onClick(event) {
45
47
  fireAnalyticsEvent({
46
48
  // @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'
@@ -120,7 +120,7 @@ var codeBlockSharedStyles = (0, _react2.css)((0, _defineProperty2.default)((0, _
120
120
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
121
121
  lineHeight: '1.5rem',
122
122
  textAlign: 'right',
123
- color: "var(--ds-text-subtlest, #505F79)",
123
+ color: "var(--ds-text-subtlest, #6B6E76)",
124
124
  boxSizing: 'content-box'
125
125
  })));
126
126
  var lightWeightCodeBlockStyles = (0, _react2.css)((0, _defineProperty2.default)({}, ".".concat(_styles.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER), {
@@ -48,7 +48,9 @@ var EmojiNode = /*#__PURE__*/function (_PureComponent) {
48
48
  if (!providers.emojiProvider) {
49
49
  return null;
50
50
  }
51
- return (0, _react.jsx)(_element.ResourcedEmoji, {
51
+ return (0, _react.jsx)(_element.ResourcedEmoji
52
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
53
+ , {
52
54
  emojiId: {
53
55
  id: id,
54
56
  fallback: fallback,
@@ -84,7 +86,9 @@ var EmojiNode = /*#__PURE__*/function (_PureComponent) {
84
86
  }, {
85
87
  key: "render",
86
88
  value: function render() {
87
- return (0, _react.jsx)(_providerFactory.WithProviders, {
89
+ return (0, _react.jsx)(_providerFactory.WithProviders
90
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
91
+ , {
88
92
  providers: ['emojiProvider'],
89
93
  providerFactory: this.providerFactory,
90
94
  renderNode: this.renderWithProvider
@@ -54,7 +54,9 @@ function WrappedHeadingAnchor(_ref) {
54
54
  var fireAnalyticsEvent = _ref2.fireAnalyticsEvent;
55
55
  return (0, _react2.jsx)(_headingAnchor.default, {
56
56
  enableNestedHeaderLinks: enableNestedHeaderLinks,
57
- level: level,
57
+ level: level
58
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
59
+ ,
58
60
  onCopyText: function onCopyText() {
59
61
  fireAnalyticsEvent({
60
62
  action: _analytics.ACTION.CLICKED,
@@ -110,7 +110,9 @@ var OverlayWithCardContext = function OverlayWithCardContext(_ref) {
110
110
  url: url,
111
111
  compactPadding: rendererAppearance === 'comment',
112
112
  showPanelButton: showPanelButton,
113
- showPanelButtonIcon: showPanelButtonIcon,
113
+ showPanelButtonIcon: showPanelButtonIcon
114
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
115
+ ,
114
116
  onClick: function onClick(event) {
115
117
  if (isPreviewPanelAvailable) {
116
118
  var _extractSmartLinkEmbe;
@@ -212,7 +214,9 @@ var InlineCard = function InlineCard(props) {
212
214
  appearance: _editorSmartLinkDraggable.SMART_LINK_APPEARANCE.INLINE,
213
215
  source: _editorSmartLinkDraggable.SMART_LINK_DRAG_TYPES.RENDERER
214
216
  }, (0, _react2.jsx)("span", (0, _extends2.default)({
215
- "data-inline-card": true,
217
+ "data-inline-card": true
218
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
219
+ ,
216
220
  "data-card-data": data ? JSON.stringify(data) : undefined,
217
221
  "data-card-url": url
218
222
  // Ignored via go/ees005
@@ -251,7 +255,9 @@ var InlineCard = function InlineCard(props) {
251
255
  appearance: _editorSmartLinkDraggable.SMART_LINK_APPEARANCE.INLINE,
252
256
  source: _editorSmartLinkDraggable.SMART_LINK_DRAG_TYPES.RENDERER
253
257
  }, (0, _react2.jsx)("span", {
254
- "data-inline-card": true,
258
+ "data-inline-card": true
259
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
260
+ ,
255
261
  "data-card-data": data ? JSON.stringify(data) : undefined,
256
262
  "data-card-url": url,
257
263
  "data-renderer-mark": inlineAnnotationProps['data-renderer-mark'],
@@ -271,7 +277,9 @@ var InlineCard = function InlineCard(props) {
271
277
  url: url,
272
278
  showHoverPreview: !hideHoverPreview,
273
279
  actionOptions: actionOptions,
274
- onClick: onClick,
280
+ onClick: onClick
281
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
282
+ ,
275
283
  onResolve: function onResolve(data) {
276
284
  if (!data.url || !data.title) {
277
285
  return;
@@ -301,7 +309,9 @@ var InlineCard = function InlineCard(props) {
301
309
  url: url,
302
310
  showHoverPreview: !hideHoverPreview,
303
311
  actionOptions: actionOptions,
304
- onClick: onClick,
312
+ onClick: onClick
313
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
314
+ ,
305
315
  onResolve: function onResolve(data) {
306
316
  if (!data.url || !data.title) {
307
317
  return;
@@ -322,7 +332,9 @@ var InlineCard = function InlineCard(props) {
322
332
  }, (0, _react2.jsx)(_analyticsNext.AnalyticsContext, {
323
333
  data: analyticsData
324
334
  }, (0, _react2.jsx)("span", (0, _extends2.default)({
325
- "data-inline-card": true,
335
+ "data-inline-card": true
336
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
337
+ ,
326
338
  "data-card-data": data ? JSON.stringify(data) : undefined,
327
339
  "data-card-url": url
328
340
  // Ignored via go/ees005
@@ -345,6 +357,7 @@ var InlineCard = function InlineCard(props) {
345
357
  // Ignored via go/ees005
346
358
  // eslint-disable-next-line react/jsx-props-no-spreading
347
359
  }, cardProps, {
360
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
348
361
  onResolve: function onResolve(data) {
349
362
  if (!data.url || !data.title) {
350
363
  return;
@@ -115,12 +115,15 @@ var MediaAnnotation = function MediaAnnotation(_ref3) {
115
115
  }
116
116
  return (0, _react2.jsx)(_annotation.default, {
117
117
  id: mark.attrs.id,
118
- annotationType: mark.attrs.annotationType,
118
+ annotationType: mark.attrs.annotationType
119
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
120
+ ,
119
121
  dataAttributes: {
120
122
  'data-renderer-mark': true,
121
123
  'data-block-mark': true
122
124
  }
123
125
  // This should be fine being empty [] since the serializer serializeFragmentChild getMarkProps call always passes
126
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
124
127
  ,
125
128
  annotationParentIds: [],
126
129
  allowAnnotations: true,
@@ -209,10 +212,14 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref5) {
209
212
  });
210
213
  }
211
214
  };
212
- return (0, _react2.jsx)(_mediaSingle.CommentBadgeNext, (0, _extends2.default)({
215
+ return (0, _react2.jsx)(_mediaSingle.CommentBadgeNext
216
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
217
+ , (0, _extends2.default)({
213
218
  onMouseEnter: function onMouseEnter() {
214
219
  return setEntered(true);
215
- },
220
+ }
221
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
222
+ ,
216
223
  onMouseLeave: function onMouseLeave() {
217
224
  return setEntered(false);
218
225
  },
@@ -262,7 +269,9 @@ var Media = /*#__PURE__*/function (_PureComponent) {
262
269
  marks: annotationMarks
263
270
  }, (0, _react2.jsx)(MediaBorder, {
264
271
  mark: borderMark
265
- }, (0, _react2.jsx)(_analyticsNext.AnalyticsContext, {
272
+ }, (0, _react2.jsx)(_analyticsNext.AnalyticsContext
273
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
274
+ , {
266
275
  data: (0, _defineProperty2.default)({}, _analyticsNamespacedContext.MEDIA_CONTEXT, {
267
276
  border: !!borderMark
268
277
  })
@@ -330,7 +339,9 @@ var Media = /*#__PURE__*/function (_PureComponent) {
330
339
  if (!providers) {
331
340
  return this.renderCard();
332
341
  }
333
- return (0, _react2.jsx)(_providerFactory.WithProviders, {
342
+ return (0, _react2.jsx)(_providerFactory.WithProviders
343
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
344
+ , {
334
345
  providers: ['mediaProvider', 'contextIdentifierProvider'],
335
346
  providerFactory: providers,
336
347
  renderNode: this.renderCard
@@ -358,10 +369,14 @@ var MediaWithDraftAnnotation = function MediaWithDraftAnnotation(props) {
358
369
  }
359
370
  var posToCheck = ((_draftPosition$from = draftPosition === null || draftPosition === void 0 ? void 0 : draftPosition.from) !== null && _draftPosition$from !== void 0 ? _draftPosition$from : 0) + 1;
360
371
  if (draftPosition !== null && posToCheck === pos) {
372
+ // eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
361
373
  setShouldApplyDraftAnnotation(true);
374
+ // eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
362
375
  setPosition(posToCheck);
363
376
  } else if (draftPosition === null && shouldApplyDraftAnnotation) {
377
+ // eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
364
378
  setShouldApplyDraftAnnotation(false);
379
+ // eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
365
380
  setPosition(undefined);
366
381
  }
367
382
  }, [draftPosition, pos, shouldApplyDraftAnnotation]);
@@ -100,6 +100,7 @@ var RenderMediaInline = function RenderMediaInline(_ref) {
100
100
  }, [identifier, collectionName]);
101
101
  (0, _react.useEffect)(function () {
102
102
  var id = clipboardAttrs.id;
103
+ // eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
103
104
  id && updateFileState(id);
104
105
  }, [contextIdentifier, clipboardAttrs, updateFileState]);
105
106
 
@@ -190,7 +191,9 @@ var MediaInline = function MediaInline(props) {
190
191
  alt: alt,
191
192
  width: width,
192
193
  height: height,
193
- ssr: ssr,
194
+ ssr: ssr
195
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
196
+ ,
194
197
  border: {
195
198
  borderSize: borderSize,
196
199
  borderColor: borderColor
@@ -247,7 +247,9 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
247
247
  width: width,
248
248
  height: height,
249
249
  lineLength: isInsideOfBlockNode ? containerWidth : lineLength,
250
- containerWidth: containerWidth,
250
+ containerWidth: containerWidth
251
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
252
+ ,
251
253
  size: {
252
254
  width: widthAttr,
253
255
  widthType: widthType
@@ -44,7 +44,7 @@ var panelBaseStyles = (0, _react2.css)({
44
44
  position: 'relative',
45
45
  alignItems: 'normal',
46
46
  wordBreak: 'break-word',
47
- backgroundColor: "var(--ds-background-accent-blue-subtlest, #DEEBFF)",
47
+ backgroundColor: "var(--ds-background-accent-blue-subtlest, #E9F2FE)",
48
48
  color: 'inherit',
49
49
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
50
50
  '.ak-editor-panel__icon': {
@@ -97,7 +97,7 @@ var panelBaseStyles = (0, _react2.css)({
97
97
  },
98
98
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
99
99
  '&[data-panel-type="note"]': {
100
- backgroundColor: "var(--ds-background-accent-purple-subtlest, #EAE6FF)",
100
+ backgroundColor: "var(--ds-background-accent-purple-subtlest, #F8EEFE)",
101
101
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
102
102
  '.ak-editor-panel__icon': {
103
103
  color: "var(--ds-icon-discovery, #AF59E1)"
@@ -105,7 +105,7 @@ var panelBaseStyles = (0, _react2.css)({
105
105
  },
106
106
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
107
107
  '&[data-panel-type="tip"]': {
108
- backgroundColor: "var(--ds-background-accent-green-subtlest, #E3FCEF)",
108
+ backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
109
109
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
110
110
  '.ak-editor-panel__icon': {
111
111
  color: "var(--ds-icon-success, #6A9A23)"
@@ -113,7 +113,7 @@ var panelBaseStyles = (0, _react2.css)({
113
113
  },
114
114
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
115
115
  '&[data-panel-type="warning"]': {
116
- backgroundColor: "var(--ds-background-accent-yellow-subtlest, #FFFAE6)",
116
+ backgroundColor: "var(--ds-background-accent-yellow-subtlest, #FEF7C8)",
117
117
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
118
118
  '.ak-editor-panel__icon': {
119
119
  color: "var(--ds-icon-warning, #E06C00)"
@@ -121,7 +121,7 @@ var panelBaseStyles = (0, _react2.css)({
121
121
  },
122
122
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
123
123
  '&[data-panel-type="error"]': {
124
- backgroundColor: "var(--ds-background-accent-red-subtlest, #FFEBE6)",
124
+ backgroundColor: "var(--ds-background-accent-red-subtlest, #FFECEB)",
125
125
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
126
126
  '.ak-editor-panel__icon': {
127
127
  color: "var(--ds-icon-danger, #C9372C)"
@@ -129,7 +129,7 @@ var panelBaseStyles = (0, _react2.css)({
129
129
  },
130
130
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
131
131
  '&[data-panel-type="success"]': {
132
- backgroundColor: "var(--ds-background-accent-green-subtlest, #E3FCEF)",
132
+ backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
133
133
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
134
134
  '.ak-editor-panel__icon': {
135
135
  color: "var(--ds-icon-success, #6A9A23)"
@@ -157,7 +157,7 @@ var panelNestedIconStyles = (0, _react2.css)({
157
157
  var nestedPanelStyles = (0, _react2.css)({
158
158
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
159
159
  '.ak-editor-panel__content .ak-editor-panel': {
160
- border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #091E42)")
160
+ border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)")
161
161
  }
162
162
  });
163
163
  var panelCustomBackground = (0, _react2.css)({
@@ -21,7 +21,9 @@ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(function Status(p
21
21
  if ((0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes')) {
22
22
  return /*#__PURE__*/_react.default.createElement("span", (0, _extends2.default)({}, inlineAnnotationProps, {
23
23
  role: 'emphasis'
24
- }), /*#__PURE__*/_react.default.createElement(_analyticsNamespacedContext.FabricElementsAnalyticsContext, {
24
+ }), /*#__PURE__*/_react.default.createElement(_analyticsNamespacedContext.FabricElementsAnalyticsContext
25
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
26
+ , {
25
27
  data: {
26
28
  userContext: 'document'
27
29
  }
@@ -33,7 +35,9 @@ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(function Status(p
33
35
  isBold: (0, _platformFeatureFlags.fg)('platform-component-visual-refresh')
34
36
  })));
35
37
  }
36
- return /*#__PURE__*/_react.default.createElement(_analyticsNamespacedContext.FabricElementsAnalyticsContext, {
38
+ return /*#__PURE__*/_react.default.createElement(_analyticsNamespacedContext.FabricElementsAnalyticsContext
39
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
40
+ , {
37
41
  data: {
38
42
  userContext: 'document'
39
43
  }
@@ -13,7 +13,6 @@ var _react = _interopRequireDefault(require("react"));
13
13
  var _react2 = require("@emotion/react");
14
14
  var _styles = require("@atlaskit/editor-common/styles");
15
15
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
16
- var _colors = require("@atlaskit/theme/colors");
17
16
  var _table = require("./table");
18
17
  var _injectProps = require("../../utils/inject-props");
19
18
  /**
@@ -47,9 +46,9 @@ var fixedTableDivStaticStyles = (0, _react2.css)((0, _defineProperty2.default)((
47
46
  marginBottom: 0,
48
47
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
49
48
  tr: {
50
- background: "var(--ds-surface, white)"
49
+ background: "var(--ds-surface, #FFFFFF)"
51
50
  }
52
- }), "borderTop", "".concat(tableStickyPadding, "px solid ", "var(--ds-surface, white)")), "background", "var(--ds-surface-overlay, white)"), "boxShadow", "0 6px 4px -4px ".concat("var(--ds-shadow-overflow-perimeter, ".concat(_colors.N40A, ")"))), "div[data-expanded='false'] &", {
51
+ }), "borderTop", "".concat(tableStickyPadding, "px solid ", "var(--ds-surface, #FFFFFF)")), "background", "var(--ds-surface-overlay, #FFFFFF)"), "boxShadow", "0 6px 4px -4px ".concat("var(--ds-shadow-overflow-perimeter, #1E1F211f)")), "div[data-expanded='false'] &", {
53
52
  display: 'none'
54
53
  }), "& .".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky.right-shadow::after, & .").concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky.left-shadow::before"), {
55
54
  top: '0px',