@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
@@ -31,7 +31,8 @@ var fadeOutStyles = function fadeOutStyles(maxHeight, top, backgroundColor) {
31
31
  bottom: 0,
32
32
  left: 0,
33
33
  right: 0,
34
- backgroundImage: "linear-gradient( ".concat("var(--ds-background-neutral-subtle, rgba(255, 255, 255, 0))", ", ", backgroundColor, " )")
34
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
35
+ backgroundImage: "linear-gradient( ".concat("var(--ds-background-neutral-subtle, #00000000)", ", ", backgroundColor, " )")
35
36
  }
36
37
  });
37
38
  };
@@ -67,7 +68,7 @@ var TruncatedWrapper = exports.TruncatedWrapper = /*#__PURE__*/function (_Compon
67
68
  _this$props$fadeHeigh = _this$props.fadeHeight,
68
69
  fadeHeight = _this$props$fadeHeigh === void 0 ? 24 : _this$props$fadeHeigh,
69
70
  _this$props$backgroun = _this$props.backgroundColor,
70
- backgroundColor = _this$props$backgroun === void 0 ? "var(--ds-surface, white)" : _this$props$backgroun,
71
+ backgroundColor = _this$props$backgroun === void 0 ? "var(--ds-surface, #FFFFFF)" : _this$props$backgroun,
71
72
  children = _this$props.children;
72
73
  return (0, _react.jsx)(FadeOut, {
73
74
  height: height,
@@ -449,7 +449,7 @@ export default class ReactSerializer {
449
449
  };
450
450
  }
451
451
  getMediaProps(node, path = []) {
452
- var _this$media, _this$media2;
452
+ var _this$media, _this$media2, _this$media3;
453
453
  const {
454
454
  marks: {
455
455
  annotation,
@@ -479,6 +479,7 @@ export default class ReactSerializer {
479
479
  // surroundTextNodesWithTextWrapper checks inlineComment.allowDraftMode
480
480
  allowAnnotationsDraftMode: this.surroundTextNodesWithTextWrapper,
481
481
  enableSyncMediaCard: (_this$media2 = this.media) === null || _this$media2 === void 0 ? void 0 : _this$media2.enableSyncMediaCard,
482
+ mediaViewerExtensions: (_this$media3 = this.media) === null || _this$media3 === void 0 ? void 0 : _this$media3.mediaViewerExtensions,
482
483
  nestedUnder
483
484
  };
484
485
  }
@@ -519,21 +520,21 @@ export default class ReactSerializer {
519
520
  };
520
521
  }
521
522
  getMediaGroupProps(node) {
522
- var _this$media3, _this$media4;
523
+ var _this$media4, _this$media5;
523
524
  return {
524
525
  ...this.getProps(node),
525
526
  shouldOpenMediaViewer: this.shouldOpenMediaViewer,
526
527
  allowAltTextOnImages: this.allowAltTextOnImages,
527
528
  featureFlags: this.media && this.media.featureFlags,
528
- enableDownloadButton: (_this$media3 = this.media) === null || _this$media3 === void 0 ? void 0 : _this$media3.enableDownloadButton,
529
- ssr: (_this$media4 = this.media) === null || _this$media4 === void 0 ? void 0 : _this$media4.ssr
529
+ enableDownloadButton: (_this$media4 = this.media) === null || _this$media4 === void 0 ? void 0 : _this$media4.enableDownloadButton,
530
+ ssr: (_this$media5 = this.media) === null || _this$media5 === void 0 ? void 0 : _this$media5.ssr
530
531
  };
531
532
  }
532
533
  getMediaInlineProps(node) {
533
- var _this$media5;
534
+ var _this$media6;
534
535
  return {
535
536
  ...this.getProps(node),
536
- ssr: (_this$media5 = this.media) === null || _this$media5 === void 0 ? void 0 : _this$media5.ssr
537
+ ssr: (_this$media6 = this.media) === null || _this$media6 === void 0 ? void 0 : _this$media6.ssr
537
538
  };
538
539
  }
539
540
  getTaskItemProps(node, path = []) {
@@ -2,7 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  export default function DataConsumer(props) {
4
4
  const WrapperElement = props.isInline ? 'span' : 'div';
5
- return /*#__PURE__*/React.createElement(WrapperElement, _extends({
5
+ return /*#__PURE__*/React.createElement(WrapperElement
6
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
7
+ , _extends({
6
8
  "data-source": props.sources ? JSON.stringify(props.sources) : undefined,
7
9
  "data-mark-type": "dataConsumer"
8
10
  // Ignored via go/ees005
@@ -6,7 +6,6 @@ import _extends from "@babel/runtime/helpers/extends";
6
6
  import React, { Fragment } from 'react';
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
- import { B400, B300, B500 } from '@atlaskit/theme/colors';
10
9
  import { fg } from '@atlaskit/platform-feature-flags';
11
10
  import { getEventHandler } from '../../utils';
12
11
  import { PLATFORM, MODE } from '../../analytics/events';
@@ -14,13 +13,13 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/anal
14
13
  import LinkUrl from '@atlaskit/smart-card/link-url';
15
14
  import { AnalyticsContext } from '@atlaskit/analytics-next';
16
15
  const anchorStyles = css({
17
- color: `var(--ds-link, ${B400})`,
16
+ color: "var(--ds-link, #1868DB)",
18
17
  '&:hover': {
19
- color: `var(--ds-link, ${B300})`,
18
+ color: "var(--ds-link, #1868DB)",
20
19
  textDecoration: 'underline'
21
20
  },
22
21
  '&:active': {
23
- color: `var(--ds-link-pressed, ${B500})`
22
+ color: "var(--ds-link-pressed, #1558BC)"
24
23
  }
25
24
  });
26
25
  export default function Link(props) {
@@ -38,7 +37,7 @@ export default function Link(props) {
38
37
  try {
39
38
  var _onSetLinkTarget;
40
39
  actualTarget = (_onSetLinkTarget = onSetLinkTarget(href)) !== null && _onSetLinkTarget !== void 0 ? _onSetLinkTarget : actualTarget;
41
- } catch (error) {
40
+ } catch (error) {// eslint-disable-line no-unused-vars
42
41
  // If URL parsing fails, use the original target
43
42
  }
44
43
  }
@@ -64,7 +63,9 @@ export default function Link(props) {
64
63
  return jsx(AnalyticsContext, {
65
64
  data: analyticsData
66
65
  }, jsx(LinkUrl, _extends({
67
- css: anchorStyles,
66
+ css: anchorStyles
67
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
68
+ ,
68
69
  onClick: e => {
69
70
  if (fireAnalyticsEvent) {
70
71
  fireAnalyticsEvent({
@@ -16,37 +16,36 @@ import { DatasourceTableView } from '@atlaskit/link-datasource';
16
16
  import { CardSSR } from '@atlaskit/smart-card/ssr';
17
17
  import { fg } from '@atlaskit/platform-feature-flags';
18
18
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
19
- import { N40 } from '@atlaskit/theme/colors';
20
19
  import { calcBreakoutWidth, canRenderDatasource } from '@atlaskit/editor-common/utils';
21
20
  import { usePortal } from '../../ui/Renderer/PortalContext';
22
21
  import { RendererCssClassName } from '../../consts';
23
22
  const datasourceCenterWrapperStyles = css({
24
- marginTop: "var(--ds-space-150, 0.75rem)",
25
- marginBottom: "var(--ds-space-150, 0.75rem)"
23
+ marginTop: "var(--ds-space-150, 12px)",
24
+ marginBottom: "var(--ds-space-150, 12px)"
26
25
  });
27
26
  const datasourceContainerStyleWithMarginTop = css({
28
27
  borderRadius: `${"var(--ds-radius-large, 8px)"}`,
29
- border: `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-border, ${N40})`}`,
28
+ border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"}`,
30
29
  overflow: 'hidden',
31
- marginTop: `${"var(--ds-space-150, 0.75rem)"}`,
32
- marginBottom: `${"var(--ds-space-150, 0.75rem)"}`
30
+ marginTop: `${"var(--ds-space-150, 12px)"}`,
31
+ marginBottom: `${"var(--ds-space-150, 12px)"}`
33
32
  });
34
33
 
35
34
  // No vertical margin when inside center wrapper (wrapper has margin so it participates in collapse). Styles from datasourceContainerStyleLegacy
36
35
  const datasourceContainerStyleNoVerticalMargin = css({
37
36
  borderRadius: `${"var(--ds-radius-large, 8px)"}`,
38
- border: `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-border, ${N40})`}`,
37
+ border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"}`,
39
38
  overflow: 'hidden'
40
39
  });
41
40
  const datasourceContainerStyleLegacy = css({
42
41
  borderRadius: `${"var(--ds-radius-large, 8px)"}`,
43
- border: `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-border, ${N40})`}`,
42
+ border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"}`,
44
43
  overflow: 'hidden',
45
44
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
46
45
  marginLeft: '50%',
47
- marginBottom: `${"var(--ds-space-150, 0.75rem)"}`,
46
+ marginBottom: `${"var(--ds-space-150, 12px)"}`,
48
47
  transform: 'translateX(-50%)',
49
- marginTop: `${"var(--ds-space-150, 0.75rem)"}`
48
+ marginTop: `${"var(--ds-space-150, 12px)"}`
50
49
  });
51
50
  export default function BlockCard(props) {
52
51
  const {
@@ -97,11 +96,15 @@ export default function BlockCard(props) {
97
96
  const visibleColumnKeys = columns === null || columns === void 0 ? void 0 : columns.map(({
98
97
  key
99
98
  }) => key);
99
+
100
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
100
101
  const columnCustomSizesEntries = columns === null || columns === void 0 ? void 0 : columns.filter(c => !!c.width).map(({
101
102
  key,
102
103
  width
103
104
  }) => [key, width]);
104
105
  const columnCustomSizes = columnCustomSizesEntries !== null && columnCustomSizesEntries !== void 0 && columnCustomSizesEntries.length ? Object.fromEntries(columnCustomSizesEntries) : undefined;
106
+
107
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
105
108
  const wrappedColumnKeys = columns === null || columns === void 0 ? void 0 : columns.filter(c => c.isWrapped).map(c => c.key);
106
109
  const {
107
110
  datasource,
@@ -188,7 +191,9 @@ export default function BlockCard(props) {
188
191
  }, jsx("div", {
189
192
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
190
193
  className: "blockCardView-content-wrap",
191
- "data-block-card": true,
194
+ "data-block-card": true
195
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
196
+ ,
192
197
  "data-card-data": data ? JSON.stringify(data) : undefined,
193
198
  "data-card-url": url,
194
199
  "data-local-id": localId
@@ -6,11 +6,10 @@
6
6
  import { jsx, css } from '@emotion/react';
7
7
  import CopyButton from './codeBlockCopyButton';
8
8
  import CodeWrapButton from './codeBlockWrapButton';
9
- import { N0, N20, N30, N700 } from '@atlaskit/theme/colors';
10
9
  const codeBlockButtonsWrapper = css({
11
10
  position: 'sticky',
12
11
  top: '0px',
13
- background: `${`var(--ds-surface, ${N20})`}`
12
+ background: `${"var(--ds-surface, #FFFFFF)"}`
14
13
  });
15
14
  const codeBlockButtonsStyle = css({
16
15
  display: 'flex',
@@ -25,24 +24,24 @@ const codeBlockButtonsStyle = css({
25
24
  button: {
26
25
  height: '32px',
27
26
  width: '32px',
28
- border: `${"var(--ds-border-width-selected, 2px)"} solid ${`var(--ds-border, ${N0})`}`,
27
+ border: `${"var(--ds-border-width-selected, 2px)"} solid ${"var(--ds-border, #0B120E24)"}`,
29
28
  borderRadius: "var(--ds-radius-small, 4px)",
30
29
  marginLeft: "var(--ds-space-050, 4px)",
31
30
  padding: "var(--ds-space-025, 2px)",
32
- background: `${`var(--ds-surface-overlay, ${N20})`}`,
33
- color: `${"var(--ds-icon, rgb(66, 82, 110))"}`,
31
+ background: `${"var(--ds-surface-overlay, #FFFFFF)"}`,
32
+ color: `${"var(--ds-icon, #292A2E)"}`,
34
33
  '&:hover': {
35
34
  borderWidth: "var(--ds-border-width-selected, 2px)",
36
- backgroundColor: `${`var(--ds-surface-overlay-hovered, ${N30})`}`,
35
+ backgroundColor: `${"var(--ds-surface-overlay-hovered, #F0F1F2)"}`,
37
36
  height: '32px',
38
37
  width: '32px'
39
38
  },
40
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
41
40
  '&.clicked': {
42
- backgroundColor: `${`var(--ds-background-neutral-bold-pressed, ${N700})`}`,
41
+ backgroundColor: `${"var(--ds-background-neutral-bold-pressed, #505258)"}`,
43
42
  borderRadius: "var(--ds-radius-small, 4px)",
44
43
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
45
- color: `${`var(--ds-icon-inverse, ${N0})`} !important`
44
+ color: `${"var(--ds-icon-inverse, #FFFFFF)"} !important`
46
45
  }
47
46
  }
48
47
  });
@@ -4,14 +4,13 @@
4
4
  */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { jsx, css } from '@emotion/react';
7
- import { N20 } from '@atlaskit/theme/colors';
8
7
  import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
9
8
  import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
10
  import CodeBlockButtonContainer from './codeBlockButtonContainer';
12
11
  const codeBlockStyleOverrides = css({
13
12
  tabSize: 4,
14
- backgroundColor: `var(--ds-surface-raised, ${N20})`,
13
+ backgroundColor: "var(--ds-surface-raised, #FFFFFF)",
15
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
16
15
  button: {
17
16
  opacity: 0,
@@ -42,7 +42,9 @@ const CopyButton = ({
42
42
  className: className,
43
43
  iconBefore: jsx(CopyIcon, {
44
44
  label: tooltip
45
- }),
45
+ })
46
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
47
+ ,
46
48
  onClick: event => {
47
49
  fireAnalyticsEvent({
48
50
  // @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'.
@@ -33,7 +33,9 @@ const CodeBlockWrapButton = ({
33
33
  iconBefore: jsx(TextWrapIcon, {
34
34
  label: ""
35
35
  }),
36
- isSelected: wrapLongLines,
36
+ isSelected: wrapLongLines
37
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
38
+ ,
37
39
  onClick: event => {
38
40
  fireAnalyticsEvent({
39
41
  // @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'
@@ -139,7 +139,7 @@ const codeBlockSharedStyles = css({
139
139
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
140
140
  lineHeight: '1.5rem',
141
141
  textAlign: 'right',
142
- color: "var(--ds-text-subtlest, #505F79)",
142
+ color: "var(--ds-text-subtlest, #6B6E76)",
143
143
  boxSizing: 'content-box'
144
144
  }
145
145
  }
@@ -35,7 +35,9 @@ class EmojiNode extends PureComponent {
35
35
  if (!providers.emojiProvider) {
36
36
  return null;
37
37
  }
38
- return jsx(ResourcedEmoji, {
38
+ return jsx(ResourcedEmoji
39
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
40
+ , {
39
41
  emojiId: {
40
42
  id,
41
43
  fallback,
@@ -65,7 +67,9 @@ class EmojiNode extends PureComponent {
65
67
  }
66
68
  }
67
69
  render() {
68
- return jsx(WithProviders, {
70
+ return jsx(WithProviders
71
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
72
+ , {
69
73
  providers: ['emojiProvider'],
70
74
  providerFactory: this.providerFactory,
71
75
  renderNode: this.renderWithProvider
@@ -43,7 +43,9 @@ function WrappedHeadingAnchor({
43
43
  fireAnalyticsEvent
44
44
  }) => jsx(HeadingAnchor, {
45
45
  enableNestedHeaderLinks: enableNestedHeaderLinks,
46
- level: level,
46
+ level: level
47
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
48
+ ,
47
49
  onCopyText: () => {
48
50
  fireAnalyticsEvent({
49
51
  action: ACTION.CLICKED,
@@ -93,7 +93,9 @@ const OverlayWithCardContext = ({
93
93
  url: url,
94
94
  compactPadding: rendererAppearance === 'comment',
95
95
  showPanelButton: showPanelButton,
96
- showPanelButtonIcon: showPanelButtonIcon,
96
+ showPanelButtonIcon: showPanelButtonIcon
97
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
98
+ ,
97
99
  onClick: event => {
98
100
  if (isPreviewPanelAvailable) {
99
101
  var _extractSmartLinkEmbe;
@@ -197,7 +199,9 @@ const InlineCard = props => {
197
199
  appearance: SMART_LINK_APPEARANCE.INLINE,
198
200
  source: SMART_LINK_DRAG_TYPES.RENDERER
199
201
  }, jsx("span", _extends({
200
- "data-inline-card": true,
202
+ "data-inline-card": true
203
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
204
+ ,
201
205
  "data-card-data": data ? JSON.stringify(data) : undefined,
202
206
  "data-card-url": url
203
207
  // Ignored via go/ees005
@@ -236,7 +240,9 @@ const InlineCard = props => {
236
240
  appearance: SMART_LINK_APPEARANCE.INLINE,
237
241
  source: SMART_LINK_DRAG_TYPES.RENDERER
238
242
  }, jsx("span", {
239
- "data-inline-card": true,
243
+ "data-inline-card": true
244
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
245
+ ,
240
246
  "data-card-data": data ? JSON.stringify(data) : undefined,
241
247
  "data-card-url": url,
242
248
  "data-renderer-mark": inlineAnnotationProps['data-renderer-mark'],
@@ -256,7 +262,9 @@ const InlineCard = props => {
256
262
  url: url,
257
263
  showHoverPreview: !hideHoverPreview,
258
264
  actionOptions: actionOptions,
259
- onClick: onClick,
265
+ onClick: onClick
266
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
267
+ ,
260
268
  onResolve: data => {
261
269
  if (!data.url || !data.title) {
262
270
  return;
@@ -286,7 +294,9 @@ const InlineCard = props => {
286
294
  url: url,
287
295
  showHoverPreview: !hideHoverPreview,
288
296
  actionOptions: actionOptions,
289
- onClick: onClick,
297
+ onClick: onClick
298
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
299
+ ,
290
300
  onResolve: data => {
291
301
  if (!data.url || !data.title) {
292
302
  return;
@@ -307,7 +317,9 @@ const InlineCard = props => {
307
317
  }, jsx(AnalyticsContext, {
308
318
  data: analyticsData
309
319
  }, jsx("span", _extends({
310
- "data-inline-card": true,
320
+ "data-inline-card": true
321
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
322
+ ,
311
323
  "data-card-data": data ? JSON.stringify(data) : undefined,
312
324
  "data-card-url": url
313
325
  // Ignored via go/ees005
@@ -330,6 +342,7 @@ const InlineCard = props => {
330
342
  // Ignored via go/ees005
331
343
  // eslint-disable-next-line react/jsx-props-no-spreading
332
344
  }, cardProps, {
345
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
333
346
  onResolve: data => {
334
347
  if (!data.url || !data.title) {
335
348
  return;
@@ -98,12 +98,15 @@ const MediaAnnotation = ({
98
98
  }
99
99
  return jsx(AnnotationComponent, {
100
100
  id: mark.attrs.id,
101
- annotationType: mark.attrs.annotationType,
101
+ annotationType: mark.attrs.annotationType
102
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
103
+ ,
102
104
  dataAttributes: {
103
105
  'data-renderer-mark': true,
104
106
  'data-block-mark': true
105
107
  }
106
108
  // This should be fine being empty [] since the serializer serializeFragmentChild getMarkProps call always passes
109
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
107
110
  ,
108
111
  annotationParentIds: [],
109
112
  allowAnnotations: true,
@@ -184,8 +187,12 @@ const CommentBadgeWrapper = ({
184
187
  });
185
188
  }
186
189
  };
187
- return jsx(CommentBadgeNext, _extends({
188
- onMouseEnter: () => setEntered(true),
190
+ return jsx(CommentBadgeNext
191
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
192
+ , _extends({
193
+ onMouseEnter: () => setEntered(true)
194
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
195
+ ,
189
196
  onMouseLeave: () => setEntered(false),
190
197
  status: entered ? 'entered' : status,
191
198
  onClick: onClick,
@@ -232,7 +239,9 @@ class Media extends PureComponent {
232
239
  marks: annotationMarks
233
240
  }, jsx(MediaBorder, {
234
241
  mark: borderMark
235
- }, jsx(AnalyticsContext, {
242
+ }, jsx(AnalyticsContext
243
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
244
+ , {
236
245
  data: {
237
246
  [MEDIA_CONTEXT]: {
238
247
  border: !!borderMark
@@ -300,7 +309,9 @@ class Media extends PureComponent {
300
309
  if (!providers) {
301
310
  return this.renderCard();
302
311
  }
303
- return jsx(WithProviders, {
312
+ return jsx(WithProviders
313
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
314
+ , {
304
315
  providers: ['mediaProvider', 'contextIdentifierProvider'],
305
316
  providerFactory: providers,
306
317
  renderNode: this.renderCard
@@ -324,10 +335,14 @@ const MediaWithDraftAnnotation = props => {
324
335
  }
325
336
  const posToCheck = ((_draftPosition$from = draftPosition === null || draftPosition === void 0 ? void 0 : draftPosition.from) !== null && _draftPosition$from !== void 0 ? _draftPosition$from : 0) + 1;
326
337
  if (draftPosition !== null && posToCheck === pos) {
338
+ // eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
327
339
  setShouldApplyDraftAnnotation(true);
340
+ // eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
328
341
  setPosition(posToCheck);
329
342
  } else if (draftPosition === null && shouldApplyDraftAnnotation) {
343
+ // eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
330
344
  setShouldApplyDraftAnnotation(false);
345
+ // eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
331
346
  setPosition(undefined);
332
347
  }
333
348
  }, [draftPosition, pos, shouldApplyDraftAnnotation]);
@@ -40,7 +40,7 @@ const RenderMediaInline = ({
40
40
  const fileState = await mediaClient.file.getCurrentState(id, options);
41
41
  setFileState(fileState);
42
42
  }
43
- } catch (error) {
43
+ } catch (error) {// eslint-disable-line no-unused-vars
44
44
  // do not set state on error
45
45
  }
46
46
  }, [collectionName, mediaClient]);
@@ -63,6 +63,7 @@ const RenderMediaInline = ({
63
63
  const {
64
64
  id
65
65
  } = clipboardAttrs;
66
+ // eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
66
67
  id && updateFileState(id);
67
68
  }, [contextIdentifier, clipboardAttrs, updateFileState]);
68
69
 
@@ -154,7 +155,9 @@ const MediaInline = props => {
154
155
  alt: alt,
155
156
  width: width,
156
157
  height: height,
157
- ssr: ssr,
158
+ ssr: ssr
159
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
160
+ ,
158
161
  border: {
159
162
  borderSize,
160
163
  borderColor
@@ -234,7 +234,9 @@ const MediaSingleWithChildren = props => {
234
234
  width: width,
235
235
  height: height,
236
236
  lineLength: isInsideOfBlockNode ? containerWidth : lineLength,
237
- containerWidth: containerWidth,
237
+ containerWidth: containerWidth
238
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
239
+ ,
238
240
  size: {
239
241
  width: widthAttr,
240
242
  widthType
@@ -35,7 +35,7 @@ const panelBaseStyles = css({
35
35
  position: 'relative',
36
36
  alignItems: 'normal',
37
37
  wordBreak: 'break-word',
38
- backgroundColor: "var(--ds-background-accent-blue-subtlest, #DEEBFF)",
38
+ backgroundColor: "var(--ds-background-accent-blue-subtlest, #E9F2FE)",
39
39
  color: 'inherit',
40
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
41
41
  '.ak-editor-panel__icon': {
@@ -88,7 +88,7 @@ const panelBaseStyles = css({
88
88
  },
89
89
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
90
90
  '&[data-panel-type="note"]': {
91
- backgroundColor: "var(--ds-background-accent-purple-subtlest, #EAE6FF)",
91
+ backgroundColor: "var(--ds-background-accent-purple-subtlest, #F8EEFE)",
92
92
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
93
93
  '.ak-editor-panel__icon': {
94
94
  color: "var(--ds-icon-discovery, #AF59E1)"
@@ -96,7 +96,7 @@ const panelBaseStyles = css({
96
96
  },
97
97
  // 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
98
98
  '&[data-panel-type="tip"]': {
99
- backgroundColor: "var(--ds-background-accent-green-subtlest, #E3FCEF)",
99
+ backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
100
100
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
101
101
  '.ak-editor-panel__icon': {
102
102
  color: "var(--ds-icon-success, #6A9A23)"
@@ -104,7 +104,7 @@ const panelBaseStyles = css({
104
104
  },
105
105
  // 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
106
106
  '&[data-panel-type="warning"]': {
107
- backgroundColor: "var(--ds-background-accent-yellow-subtlest, #FFFAE6)",
107
+ backgroundColor: "var(--ds-background-accent-yellow-subtlest, #FEF7C8)",
108
108
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
109
109
  '.ak-editor-panel__icon': {
110
110
  color: "var(--ds-icon-warning, #E06C00)"
@@ -112,7 +112,7 @@ const panelBaseStyles = css({
112
112
  },
113
113
  // 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
114
114
  '&[data-panel-type="error"]': {
115
- backgroundColor: "var(--ds-background-accent-red-subtlest, #FFEBE6)",
115
+ backgroundColor: "var(--ds-background-accent-red-subtlest, #FFECEB)",
116
116
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
117
117
  '.ak-editor-panel__icon': {
118
118
  color: "var(--ds-icon-danger, #C9372C)"
@@ -120,7 +120,7 @@ const panelBaseStyles = css({
120
120
  },
121
121
  // 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
122
122
  '&[data-panel-type="success"]': {
123
- backgroundColor: "var(--ds-background-accent-green-subtlest, #E3FCEF)",
123
+ backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
124
124
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
125
125
  '.ak-editor-panel__icon': {
126
126
  color: "var(--ds-icon-success, #6A9A23)"
@@ -148,7 +148,7 @@ const panelNestedIconStyles = css({
148
148
  const nestedPanelStyles = css({
149
149
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
150
150
  '.ak-editor-panel__content .ak-editor-panel': {
151
- border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #091E42)"}`
151
+ border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"}`
152
152
  }
153
153
  });
154
154
  const panelCustomBackground = css({
@@ -14,7 +14,9 @@ export default /*#__PURE__*/memo(function Status(props) {
14
14
  if (fg('editor_inline_comments_on_inline_nodes')) {
15
15
  return /*#__PURE__*/React.createElement("span", _extends({}, inlineAnnotationProps, {
16
16
  role: 'emphasis'
17
- }), /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext, {
17
+ }), /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
18
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
19
+ , {
18
20
  data: {
19
21
  userContext: 'document'
20
22
  }
@@ -26,7 +28,9 @@ export default /*#__PURE__*/memo(function Status(props) {
26
28
  isBold: fg('platform-component-visual-refresh')
27
29
  })));
28
30
  }
29
- return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext, {
31
+ return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
32
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
33
+ , {
30
34
  data: {
31
35
  userContext: 'document'
32
36
  }
@@ -10,7 +10,6 @@ import React from 'react';
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
12
12
  import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
13
- import { N40A } from '@atlaskit/theme/colors';
14
13
  import { Table } from './table';
15
14
  import { recursivelyInjectProps } from '../../utils/inject-props';
16
15
  export const tableStickyPadding = 8;
@@ -36,12 +35,12 @@ const fixedTableDivStaticStyles = css({
36
35
  marginBottom: 0,
37
36
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
38
37
  tr: {
39
- background: "var(--ds-surface, white)"
38
+ background: "var(--ds-surface, #FFFFFF)"
40
39
  }
41
40
  },
42
- borderTop: `${tableStickyPadding}px solid ${"var(--ds-surface, white)"}`,
43
- background: "var(--ds-surface-overlay, white)",
44
- boxShadow: `0 6px 4px -4px ${`var(--ds-shadow-overflow-perimeter, ${N40A})`}`,
41
+ borderTop: `${tableStickyPadding}px solid ${"var(--ds-surface, #FFFFFF)"}`,
42
+ background: "var(--ds-surface-overlay, #FFFFFF)",
43
+ boxShadow: `0 6px 4px -4px ${"var(--ds-shadow-overflow-perimeter, #1E1F211f)"}`,
45
44
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
46
45
  "div[data-expanded='false'] &": {
47
46
  display: 'none'