@atlaskit/editor-common 114.3.1 → 114.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 114.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`6940e6da4162d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6940e6da4162d) -
8
+ Wire up sendSelectedChange for native embeds
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 114.4.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`2958c4c1d01b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2958c4c1d01b8) -
19
+ Perf-linting cleanup: fix performance linting violations in editor-common, gated behind
20
+ platform_editor_perf_lint_cleanup experiment
21
+
22
+ ### Patch Changes
23
+
24
+ - [`0242b2a3c1ab9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0242b2a3c1ab9) -
25
+ Clean up platform_editor_link_popup_position_fix_aifc feature flag (shipped as true).
26
+
3
27
  ## 114.3.1
4
28
 
5
29
  ### Patch Changes
@@ -159,6 +159,8 @@ var ExtensionComponentInner = /*#__PURE__*/function (_Component) {
159
159
  parameters = _pmNode$attrs.parameters,
160
160
  text = _pmNode$attrs.text;
161
161
  var isBodiedExtension = pmNode.type.name === 'bodiedExtension';
162
+ var selection = editorView.state.selection;
163
+ var isSelected = selection instanceof _state.NodeSelection && selection.node === pmNode;
162
164
  if (isBodiedExtension && !showBodiedExtensionRendererView) {
163
165
  return;
164
166
  }
@@ -201,6 +203,7 @@ var ExtensionComponentInner = /*#__PURE__*/function (_Component) {
201
203
  return /*#__PURE__*/_react.default.createElement(NodeRenderer, {
202
204
  node: node,
203
205
  references: _this.props.references,
206
+ isSelected: isSelected,
204
207
  showUnknownMacroPlaceholder: (0, _platformFeatureFlags.fg)('tinymce_display_unknown_macro_body_content')
205
208
  });
206
209
  }
@@ -9,6 +9,7 @@ var _react2 = require("@emotion/react");
9
9
  var _mediaCommon = require("@atlaskit/media-common");
10
10
  var _mediaFilePreview = require("@atlaskit/media-file-preview");
11
11
  var _mediaUi = require("@atlaskit/media-ui");
12
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
13
  var _loadingView = require("./views/loading-view");
13
14
  /**
14
15
  * @jsxRuntime classic
@@ -45,9 +46,12 @@ var InlineImageCard = exports.InlineImageCard = function InlineImageCard(_ref) {
45
46
  preview = _useFilePreview.preview,
46
47
  previewError = _useFilePreview.error,
47
48
  onImageError = _useFilePreview.onImageError,
48
- _onImageLoad = _useFilePreview.onImageLoad,
49
+ onImageLoad = _useFilePreview.onImageLoad,
49
50
  getSsrScriptProps = _useFilePreview.getSsrScriptProps,
50
51
  copyNodeRef = _useFilePreview.copyNodeRef;
52
+ var memoizedOnImageLoad = (0, _react.useCallback)(function () {
53
+ onImageLoad(preview);
54
+ }, [onImageLoad, preview]);
51
55
  if (previewError) {
52
56
  return renderError({
53
57
  error: previewError
@@ -59,11 +63,9 @@ var InlineImageCard = exports.InlineImageCard = function InlineImageCard(_ref) {
59
63
  return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_mediaUi.MediaImage, {
60
64
  dataURI: preview.dataURI,
61
65
  alt: alt,
62
- previewOrientation: preview.orientation
63
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
64
- ,
65
- onImageLoad: function onImageLoad() {
66
- _onImageLoad(preview);
66
+ previewOrientation: preview.orientation,
67
+ onImageLoad: (0, _expValEquals.expValEquals)('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedOnImageLoad : function () {
68
+ onImageLoad(preview);
67
69
  },
68
70
  onImageError: onImageError,
69
71
  loading: isLazy ? 'lazy' : undefined,
@@ -16,6 +16,7 @@ var _mediaCard = require("@atlaskit/media-card");
16
16
  var _mediaClient = require("@atlaskit/media-client");
17
17
  var _mediaClientReact = require("@atlaskit/media-client-react");
18
18
  var _mediaViewer = require("@atlaskit/media-viewer");
19
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
19
20
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
20
21
  var _mediaInlineCard = require("../messages/media-inline-card");
21
22
  var _constants = require("./constants");
@@ -100,6 +101,11 @@ var MediaInlineImageCardInternal = exports.MediaInlineImageCardInternal = functi
100
101
  };
101
102
  }
102
103
  }, [identifier, mediaClient]);
104
+ var memoizedRenderError = (0, _react.useCallback)(function () {
105
+ return (0, _react2.jsx)(_errorView.InlineImageCardErrorView, {
106
+ message: formatMessage(_mediaInlineCard.messages.unableToLoadContent)
107
+ });
108
+ }, [formatMessage]);
103
109
  var content = function content(dimensions) {
104
110
  if (!mediaClient) {
105
111
  return (0, _react2.jsx)(_loadingView.InlineImageCardLoadingView, null);
@@ -143,10 +149,10 @@ var MediaInlineImageCardInternal = exports.MediaInlineImageCardInternal = functi
143
149
  value: mediaClient
144
150
  }, (0, _react2.jsx)(_inlineImageCard.InlineImageCard, {
145
151
  dimensions: dimensions,
146
- identifier: identifier
147
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
148
- ,
149
- renderError: function renderError() {
152
+ identifier: identifier,
153
+ renderError: (0, _expValEquals.expValEquals)('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedRenderError :
154
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- intentional fallback for experiment off path
155
+ function () {
150
156
  return (0, _react2.jsx)(_errorView.InlineImageCardErrorView, {
151
157
  message: formatMessage(_mediaInlineCard.messages.unableToLoadContent)
152
158
  });
@@ -213,20 +219,23 @@ var MediaInlineImageCardInternal = exports.MediaInlineImageCardInternal = functi
213
219
  var onMediaInlinePreviewClose = (0, _react.useCallback)(function () {
214
220
  setMediaViewerVisible(false);
215
221
  }, []);
222
+ var memoizedMediaViewerItems = (0, _react.useMemo)(function () {
223
+ return [identifier];
224
+ }, [identifier]);
216
225
  var mediaViewer = (0, _react.useMemo)(function () {
217
226
  if (isMediaViewerVisible && mediaClient !== null && mediaClient !== void 0 && mediaClient.mediaClientConfig) {
218
227
  return /*#__PURE__*/_reactDom.default.createPortal((0, _react2.jsx)(_mediaViewer.MediaViewer, {
219
- collectionName: identifier.collectionName || ''
220
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
221
- ,
222
- items: [identifier],
228
+ collectionName: identifier.collectionName || '',
229
+ items: (0, _expValEquals.expValEquals)('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedMediaViewerItems :
230
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- intentional fallback for experiment off path
231
+ [identifier],
223
232
  mediaClientConfig: mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig,
224
233
  selectedItem: identifier,
225
234
  onClose: onMediaInlinePreviewClose
226
235
  }), document.body);
227
236
  }
228
237
  return null;
229
- }, [identifier, isMediaViewerVisible, mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig, onMediaInlinePreviewClose]);
238
+ }, [identifier, isMediaViewerVisible, mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig, onMediaInlinePreviewClose, memoizedMediaViewerItems]);
230
239
  return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_inlineImageWrapper.InlineImageWrapper, {
231
240
  isSelected: isSelected,
232
241
  aspectRatio: aspectRatio,
@@ -12,6 +12,7 @@ var _debounce = _interopRequireDefault(require("lodash/debounce"));
12
12
  var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
13
13
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
14
14
  var _comment = _interopRequireDefault(require("@atlaskit/icon/core/comment"));
15
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
15
16
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
16
17
  var _media = require("../media");
17
18
  /**
@@ -85,6 +86,24 @@ var CommentBadge = exports.CommentBadge = /*#__PURE__*/(0, _react.forwardRef)(fu
85
86
  return "var(--ds-background-accent-yellow-subtlest, #FEF7C8)";
86
87
  }
87
88
  }, [status]);
89
+ var memoizedBadgeStyle = (0, _react.useMemo)(function () {
90
+ return {
91
+ height: badgeDimensions,
92
+ width: badgeDimensions,
93
+ background: colourToken,
94
+ display: 'flex',
95
+ justifyContent: 'center',
96
+ alignItems: 'center'
97
+ };
98
+ }, [badgeDimensions, colourToken]);
99
+ var badgeStyle = (0, _expValEquals.expValEquals)('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedBadgeStyle : {
100
+ height: badgeDimensions,
101
+ width: badgeDimensions,
102
+ background: colourToken,
103
+ display: 'flex',
104
+ justifyContent: 'center',
105
+ alignItems: 'center'
106
+ };
88
107
  return (0, _react2.jsx)("div", {
89
108
  ref: ref,
90
109
  css: badgeOffsetRight ? [commentBadgeWrapper,
@@ -98,21 +117,9 @@ var CommentBadge = exports.CommentBadge = /*#__PURE__*/(0, _react.forwardRef)(fu
98
117
  position: "top",
99
118
  content: title
100
119
  }, (0, _react2.jsx)(_customThemeButton.default
101
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
120
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
102
121
  , {
103
- style: {
104
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
105
- height: badgeDimensions,
106
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
107
- width: badgeDimensions,
108
- background: colourToken,
109
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
110
- display: 'flex',
111
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
112
- justifyContent: 'center',
113
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
114
- alignItems: 'center'
115
- },
122
+ style: badgeStyle,
116
123
  onClick: onClick,
117
124
  onMouseEnter: onMouseEnter,
118
125
  onMouseLeave: onMouseLeave,
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "114.3.0";
22
+ var packageVersion = "114.4.0";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "114.3.0";
27
+ var packageVersion = "114.4.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -118,7 +118,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
118
118
  offset: offset,
119
119
  allowOutOfBounds: allowOutOfBounds,
120
120
  rect: rect,
121
- boundariesElement: (0, _platformFeatureFlags.fg)('platform_editor_link_popup_position_fix_aifc') ? boundariesElement || document.body : undefined,
121
+ boundariesElement: boundariesElement || document.body,
122
122
  minPopupMargin: minPopupMargin
123
123
  });
124
124
  position = onPositionCalculated ? onPositionCalculated(position) : position;
@@ -182,7 +182,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
182
182
  }, {
183
183
  key: "initPopup",
184
184
  value: function initPopup(popup) {
185
- if (this.popupRef.current && (0, _platformFeatureFlags.fg)('platform_editor_link_popup_position_fix_aifc')) {
185
+ if (this.popupRef.current) {
186
186
  var _this$resizeObserver;
187
187
  (_this$resizeObserver = this.resizeObserver) === null || _this$resizeObserver === void 0 || _this$resizeObserver.unobserve(this.popupRef.current);
188
188
  }
@@ -210,7 +210,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
210
210
  if (this.props.focusTrap) {
211
211
  this.initFocusTrap();
212
212
  }
213
- if (this.popupRef.current && (0, _platformFeatureFlags.fg)('platform_editor_link_popup_position_fix_aifc')) {
213
+ if (this.popupRef.current) {
214
214
  var _this$resizeObserver2;
215
215
  (_this$resizeObserver2 = this.resizeObserver) === null || _this$resizeObserver2 === void 0 || _this$resizeObserver2.observe(this.popupRef.current);
216
216
  }
@@ -286,6 +286,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
286
286
  }, {
287
287
  key: "componentWillUnmount",
288
288
  value: function componentWillUnmount() {
289
+ var _this$resizeObserver3;
289
290
  // Ignored via go/ees005
290
291
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
291
292
  window.removeEventListener('resize', this.onResize);
@@ -294,14 +295,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
294
295
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
295
296
  this.scrollElement.removeEventListener('scroll', this.onResize);
296
297
  }
297
- if ((0, _platformFeatureFlags.fg)('platform_editor_link_popup_position_fix_aifc')) {
298
- var _this$resizeObserver3;
299
- (_this$resizeObserver3 = this.resizeObserver) === null || _this$resizeObserver3 === void 0 || _this$resizeObserver3.disconnect();
300
- } else {
301
- if (this.scrollParentElement && this.resizeObserver) {
302
- this.resizeObserver.unobserve(this.scrollParentElement);
303
- }
304
- }
298
+ (_this$resizeObserver3 = this.resizeObserver) === null || _this$resizeObserver3 === void 0 || _this$resizeObserver3.disconnect();
305
299
  this.scheduledUpdatePosition.cancel();
306
300
  this.destroyFocusTrap();
307
301
  var onUnmount = this.props.onUnmount;
@@ -117,6 +117,10 @@ class ExtensionComponentInner extends Component {
117
117
  text
118
118
  } = pmNode.attrs;
119
119
  const isBodiedExtension = pmNode.type.name === 'bodiedExtension';
120
+ const {
121
+ selection
122
+ } = editorView.state;
123
+ const isSelected = selection instanceof NodeSelection && selection.node === pmNode;
120
124
  if (isBodiedExtension && !showBodiedExtensionRendererView) {
121
125
  return;
122
126
  }
@@ -157,6 +161,7 @@ class ExtensionComponentInner extends Component {
157
161
  return /*#__PURE__*/React.createElement(NodeRenderer, {
158
162
  node: node,
159
163
  references: this.props.references,
164
+ isSelected: isSelected,
160
165
  showUnknownMacroPlaceholder: fg('tinymce_display_unknown_macro_body_content')
161
166
  });
162
167
  }
@@ -2,13 +2,14 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { Fragment, useMemo } from 'react';
5
+ import { Fragment, useCallback, useMemo } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { jsx } from '@emotion/react';
9
9
  import { getRandomHex } from '@atlaskit/media-common';
10
10
  import { useFilePreview } from '@atlaskit/media-file-preview';
11
11
  import { MediaImage } from '@atlaskit/media-ui';
12
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
13
  import { InlineImageCardLoadingView } from './views/loading-view';
13
14
  export const InlineImageCard = ({
14
15
  dimensions,
@@ -41,6 +42,9 @@ export const InlineImageCard = ({
41
42
  dimensions,
42
43
  traceContext
43
44
  });
45
+ const memoizedOnImageLoad = useCallback(() => {
46
+ onImageLoad(preview);
47
+ }, [onImageLoad, preview]);
44
48
  if (previewError) {
45
49
  return renderError({
46
50
  error: previewError
@@ -52,10 +56,8 @@ export const InlineImageCard = ({
52
56
  return jsx(Fragment, null, jsx(MediaImage, {
53
57
  dataURI: preview.dataURI,
54
58
  alt: alt,
55
- previewOrientation: preview.orientation
56
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
57
- ,
58
- onImageLoad: () => {
59
+ previewOrientation: preview.orientation,
60
+ onImageLoad: expValEquals('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedOnImageLoad : () => {
59
61
  onImageLoad(preview);
60
62
  },
61
63
  onImageError: onImageError,
@@ -13,6 +13,7 @@ import { fireFailedMediaInlineEvent, fireSucceededMediaInlineEvent, MediaCardErr
13
13
  import { FileFetcherError } from '@atlaskit/media-client';
14
14
  import { MediaClientContext } from '@atlaskit/media-client-react';
15
15
  import { MediaViewer } from '@atlaskit/media-viewer';
16
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
17
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
17
18
  import { messages } from '../messages/media-inline-card';
18
19
  import { referenceHeights } from './constants';
@@ -78,6 +79,9 @@ export const MediaInlineImageCardInternal = ({
78
79
  };
79
80
  }
80
81
  }, [identifier, mediaClient]);
82
+ const memoizedRenderError = useCallback(() => jsx(InlineImageCardErrorView, {
83
+ message: formatMessage(messages.unableToLoadContent)
84
+ }), [formatMessage]);
81
85
  const content = dimensions => {
82
86
  if (!mediaClient) {
83
87
  return jsx(InlineImageCardLoadingView, null);
@@ -121,10 +125,10 @@ export const MediaInlineImageCardInternal = ({
121
125
  value: mediaClient
122
126
  }, jsx(InlineImageCard, {
123
127
  dimensions: dimensions,
124
- identifier: identifier
125
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
126
- ,
127
- renderError: () => jsx(InlineImageCardErrorView, {
128
+ identifier: identifier,
129
+ renderError: expValEquals('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedRenderError :
130
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- intentional fallback for experiment off path
131
+ () => jsx(InlineImageCardErrorView, {
128
132
  message: formatMessage(messages.unableToLoadContent)
129
133
  }),
130
134
  alt: alt,
@@ -188,20 +192,21 @@ export const MediaInlineImageCardInternal = ({
188
192
  const onMediaInlinePreviewClose = useCallback(() => {
189
193
  setMediaViewerVisible(false);
190
194
  }, []);
195
+ const memoizedMediaViewerItems = useMemo(() => [identifier], [identifier]);
191
196
  const mediaViewer = useMemo(() => {
192
197
  if (isMediaViewerVisible && mediaClient !== null && mediaClient !== void 0 && mediaClient.mediaClientConfig) {
193
198
  return /*#__PURE__*/ReactDOM.createPortal(jsx(MediaViewer, {
194
- collectionName: identifier.collectionName || ''
195
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
196
- ,
197
- items: [identifier],
199
+ collectionName: identifier.collectionName || '',
200
+ items: expValEquals('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedMediaViewerItems :
201
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- intentional fallback for experiment off path
202
+ [identifier],
198
203
  mediaClientConfig: mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig,
199
204
  selectedItem: identifier,
200
205
  onClose: onMediaInlinePreviewClose
201
206
  }), document.body);
202
207
  }
203
208
  return null;
204
- }, [identifier, isMediaViewerVisible, mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig, onMediaInlinePreviewClose]);
209
+ }, [identifier, isMediaViewerVisible, mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig, onMediaInlinePreviewClose, memoizedMediaViewerItems]);
205
210
  return jsx(Fragment, null, jsx(InlineImageWrapper, {
206
211
  isSelected: isSelected,
207
212
  aspectRatio: aspectRatio,
@@ -9,6 +9,7 @@ import debounce from 'lodash/debounce';
9
9
  import CustomThemeButton from '@atlaskit/button/custom-theme-button';
10
10
  import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
11
11
  import CommentIcon from '@atlaskit/icon/core/comment';
12
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
13
  import Tooltip from '@atlaskit/tooltip';
13
14
  import { commentMessages as messages } from '../media';
14
15
  const commentBadgeWrapper = css({
@@ -70,6 +71,22 @@ export const CommentBadge = /*#__PURE__*/forwardRef(({
70
71
  return "var(--ds-background-accent-yellow-subtlest, #FEF7C8)";
71
72
  }
72
73
  }, [status]);
74
+ const memoizedBadgeStyle = useMemo(() => ({
75
+ height: badgeDimensions,
76
+ width: badgeDimensions,
77
+ background: colourToken,
78
+ display: 'flex',
79
+ justifyContent: 'center',
80
+ alignItems: 'center'
81
+ }), [badgeDimensions, colourToken]);
82
+ const badgeStyle = expValEquals('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedBadgeStyle : {
83
+ height: badgeDimensions,
84
+ width: badgeDimensions,
85
+ background: colourToken,
86
+ display: 'flex',
87
+ justifyContent: 'center',
88
+ alignItems: 'center'
89
+ };
73
90
  return jsx("div", {
74
91
  ref: ref,
75
92
  css: badgeOffsetRight ? [commentBadgeWrapper,
@@ -83,21 +100,9 @@ export const CommentBadge = /*#__PURE__*/forwardRef(({
83
100
  position: "top",
84
101
  content: title
85
102
  }, jsx(CustomThemeButton
86
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
103
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
87
104
  , {
88
- style: {
89
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
90
- height: badgeDimensions,
91
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
92
- width: badgeDimensions,
93
- background: colourToken,
94
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
95
- display: 'flex',
96
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
97
- justifyContent: 'center',
98
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
99
- alignItems: 'center'
100
- },
105
+ style: badgeStyle,
101
106
  onClick: onClick,
102
107
  onMouseEnter: onMouseEnter,
103
108
  onMouseLeave: onMouseLeave,
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
4
4
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
5
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
6
6
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
7
- const packageVersion = "114.3.0";
7
+ const packageVersion = "114.4.0";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "114.3.0";
17
+ const packageVersion = "114.4.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -95,7 +95,7 @@ export default class Popup extends React.Component {
95
95
  offset: offset,
96
96
  allowOutOfBounds,
97
97
  rect,
98
- boundariesElement: fg('platform_editor_link_popup_position_fix_aifc') ? boundariesElement || document.body : undefined,
98
+ boundariesElement: boundariesElement || document.body,
99
99
  minPopupMargin
100
100
  });
101
101
  position = onPositionCalculated ? onPositionCalculated(position) : position;
@@ -153,7 +153,7 @@ export default class Popup extends React.Component {
153
153
  * Checks whether it's possible to position popup along given target, and if it's not throws an error.
154
154
  */
155
155
  initPopup(popup) {
156
- if (this.popupRef.current && fg('platform_editor_link_popup_position_fix_aifc')) {
156
+ if (this.popupRef.current) {
157
157
  var _this$resizeObserver;
158
158
  (_this$resizeObserver = this.resizeObserver) === null || _this$resizeObserver === void 0 ? void 0 : _this$resizeObserver.unobserve(this.popupRef.current);
159
159
  }
@@ -183,7 +183,7 @@ export default class Popup extends React.Component {
183
183
  if (this.props.focusTrap) {
184
184
  this.initFocusTrap();
185
185
  }
186
- if (this.popupRef.current && fg('platform_editor_link_popup_position_fix_aifc')) {
186
+ if (this.popupRef.current) {
187
187
  var _this$resizeObserver2;
188
188
  (_this$resizeObserver2 = this.resizeObserver) === null || _this$resizeObserver2 === void 0 ? void 0 : _this$resizeObserver2.observe(this.popupRef.current);
189
189
  }
@@ -250,6 +250,7 @@ export default class Popup extends React.Component {
250
250
  }
251
251
  }
252
252
  componentWillUnmount() {
253
+ var _this$resizeObserver3;
253
254
  // Ignored via go/ees005
254
255
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
255
256
  window.removeEventListener('resize', this.onResize);
@@ -258,14 +259,7 @@ export default class Popup extends React.Component {
258
259
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
259
260
  this.scrollElement.removeEventListener('scroll', this.onResize);
260
261
  }
261
- if (fg('platform_editor_link_popup_position_fix_aifc')) {
262
- var _this$resizeObserver3;
263
- (_this$resizeObserver3 = this.resizeObserver) === null || _this$resizeObserver3 === void 0 ? void 0 : _this$resizeObserver3.disconnect();
264
- } else {
265
- if (this.scrollParentElement && this.resizeObserver) {
266
- this.resizeObserver.unobserve(this.scrollParentElement);
267
- }
268
- }
262
+ (_this$resizeObserver3 = this.resizeObserver) === null || _this$resizeObserver3 === void 0 ? void 0 : _this$resizeObserver3.disconnect();
269
263
  this.scheduledUpdatePosition.cancel();
270
264
  this.destroyFocusTrap();
271
265
  const {
@@ -150,6 +150,8 @@ var ExtensionComponentInner = /*#__PURE__*/function (_Component) {
150
150
  parameters = _pmNode$attrs.parameters,
151
151
  text = _pmNode$attrs.text;
152
152
  var isBodiedExtension = pmNode.type.name === 'bodiedExtension';
153
+ var selection = editorView.state.selection;
154
+ var isSelected = selection instanceof NodeSelection && selection.node === pmNode;
153
155
  if (isBodiedExtension && !showBodiedExtensionRendererView) {
154
156
  return;
155
157
  }
@@ -192,6 +194,7 @@ var ExtensionComponentInner = /*#__PURE__*/function (_Component) {
192
194
  return /*#__PURE__*/React.createElement(NodeRenderer, {
193
195
  node: node,
194
196
  references: _this.props.references,
197
+ isSelected: isSelected,
195
198
  showUnknownMacroPlaceholder: fg('tinymce_display_unknown_macro_body_content')
196
199
  });
197
200
  }
@@ -2,13 +2,14 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { Fragment, useMemo } from 'react';
5
+ import { Fragment, useCallback, useMemo } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { jsx } from '@emotion/react';
9
9
  import { getRandomHex } from '@atlaskit/media-common';
10
10
  import { useFilePreview } from '@atlaskit/media-file-preview';
11
11
  import { MediaImage } from '@atlaskit/media-ui';
12
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
13
  import { InlineImageCardLoadingView } from './views/loading-view';
13
14
  export var InlineImageCard = function InlineImageCard(_ref) {
14
15
  var dimensions = _ref.dimensions,
@@ -38,9 +39,12 @@ export var InlineImageCard = function InlineImageCard(_ref) {
38
39
  preview = _useFilePreview.preview,
39
40
  previewError = _useFilePreview.error,
40
41
  onImageError = _useFilePreview.onImageError,
41
- _onImageLoad = _useFilePreview.onImageLoad,
42
+ onImageLoad = _useFilePreview.onImageLoad,
42
43
  getSsrScriptProps = _useFilePreview.getSsrScriptProps,
43
44
  copyNodeRef = _useFilePreview.copyNodeRef;
45
+ var memoizedOnImageLoad = useCallback(function () {
46
+ onImageLoad(preview);
47
+ }, [onImageLoad, preview]);
44
48
  if (previewError) {
45
49
  return renderError({
46
50
  error: previewError
@@ -52,11 +56,9 @@ export var InlineImageCard = function InlineImageCard(_ref) {
52
56
  return jsx(Fragment, null, jsx(MediaImage, {
53
57
  dataURI: preview.dataURI,
54
58
  alt: alt,
55
- previewOrientation: preview.orientation
56
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
57
- ,
58
- onImageLoad: function onImageLoad() {
59
- _onImageLoad(preview);
59
+ previewOrientation: preview.orientation,
60
+ onImageLoad: expValEquals('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedOnImageLoad : function () {
61
+ onImageLoad(preview);
60
62
  },
61
63
  onImageError: onImageError,
62
64
  loading: isLazy ? 'lazy' : undefined,
@@ -17,6 +17,7 @@ import { fireFailedMediaInlineEvent, fireSucceededMediaInlineEvent, MediaCardErr
17
17
  import { FileFetcherError } from '@atlaskit/media-client';
18
18
  import { MediaClientContext } from '@atlaskit/media-client-react';
19
19
  import { MediaViewer } from '@atlaskit/media-viewer';
20
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
20
21
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
21
22
  import { messages } from '../messages/media-inline-card';
22
23
  import { referenceHeights } from './constants';
@@ -96,6 +97,11 @@ export var MediaInlineImageCardInternal = function MediaInlineImageCardInternal(
96
97
  };
97
98
  }
98
99
  }, [identifier, mediaClient]);
100
+ var memoizedRenderError = useCallback(function () {
101
+ return jsx(InlineImageCardErrorView, {
102
+ message: formatMessage(messages.unableToLoadContent)
103
+ });
104
+ }, [formatMessage]);
99
105
  var content = function content(dimensions) {
100
106
  if (!mediaClient) {
101
107
  return jsx(InlineImageCardLoadingView, null);
@@ -139,10 +145,10 @@ export var MediaInlineImageCardInternal = function MediaInlineImageCardInternal(
139
145
  value: mediaClient
140
146
  }, jsx(InlineImageCard, {
141
147
  dimensions: dimensions,
142
- identifier: identifier
143
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
144
- ,
145
- renderError: function renderError() {
148
+ identifier: identifier,
149
+ renderError: expValEquals('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedRenderError :
150
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- intentional fallback for experiment off path
151
+ function () {
146
152
  return jsx(InlineImageCardErrorView, {
147
153
  message: formatMessage(messages.unableToLoadContent)
148
154
  });
@@ -209,20 +215,23 @@ export var MediaInlineImageCardInternal = function MediaInlineImageCardInternal(
209
215
  var onMediaInlinePreviewClose = useCallback(function () {
210
216
  setMediaViewerVisible(false);
211
217
  }, []);
218
+ var memoizedMediaViewerItems = useMemo(function () {
219
+ return [identifier];
220
+ }, [identifier]);
212
221
  var mediaViewer = useMemo(function () {
213
222
  if (isMediaViewerVisible && mediaClient !== null && mediaClient !== void 0 && mediaClient.mediaClientConfig) {
214
223
  return /*#__PURE__*/ReactDOM.createPortal(jsx(MediaViewer, {
215
- collectionName: identifier.collectionName || ''
216
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
217
- ,
218
- items: [identifier],
224
+ collectionName: identifier.collectionName || '',
225
+ items: expValEquals('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedMediaViewerItems :
226
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- intentional fallback for experiment off path
227
+ [identifier],
219
228
  mediaClientConfig: mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig,
220
229
  selectedItem: identifier,
221
230
  onClose: onMediaInlinePreviewClose
222
231
  }), document.body);
223
232
  }
224
233
  return null;
225
- }, [identifier, isMediaViewerVisible, mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig, onMediaInlinePreviewClose]);
234
+ }, [identifier, isMediaViewerVisible, mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig, onMediaInlinePreviewClose, memoizedMediaViewerItems]);
226
235
  return jsx(Fragment, null, jsx(InlineImageWrapper, {
227
236
  isSelected: isSelected,
228
237
  aspectRatio: aspectRatio,
@@ -10,6 +10,7 @@ import debounce from 'lodash/debounce';
10
10
  import CustomThemeButton from '@atlaskit/button/custom-theme-button';
11
11
  import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
12
12
  import CommentIcon from '@atlaskit/icon/core/comment';
13
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
14
  import Tooltip from '@atlaskit/tooltip';
14
15
  import { commentMessages as messages } from '../media';
15
16
  var commentBadgeWrapper = css({
@@ -76,6 +77,24 @@ export var CommentBadge = /*#__PURE__*/forwardRef(function (_ref, ref) {
76
77
  return "var(--ds-background-accent-yellow-subtlest, #FEF7C8)";
77
78
  }
78
79
  }, [status]);
80
+ var memoizedBadgeStyle = useMemo(function () {
81
+ return {
82
+ height: badgeDimensions,
83
+ width: badgeDimensions,
84
+ background: colourToken,
85
+ display: 'flex',
86
+ justifyContent: 'center',
87
+ alignItems: 'center'
88
+ };
89
+ }, [badgeDimensions, colourToken]);
90
+ var badgeStyle = expValEquals('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedBadgeStyle : {
91
+ height: badgeDimensions,
92
+ width: badgeDimensions,
93
+ background: colourToken,
94
+ display: 'flex',
95
+ justifyContent: 'center',
96
+ alignItems: 'center'
97
+ };
79
98
  return jsx("div", {
80
99
  ref: ref,
81
100
  css: badgeOffsetRight ? [commentBadgeWrapper,
@@ -89,21 +108,9 @@ export var CommentBadge = /*#__PURE__*/forwardRef(function (_ref, ref) {
89
108
  position: "top",
90
109
  content: title
91
110
  }, jsx(CustomThemeButton
92
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
111
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
93
112
  , {
94
- style: {
95
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
96
- height: badgeDimensions,
97
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
98
- width: badgeDimensions,
99
- background: colourToken,
100
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
101
- display: 'flex',
102
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
103
- justifyContent: 'center',
104
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
105
- alignItems: 'center'
106
- },
113
+ style: badgeStyle,
107
114
  onClick: onClick,
108
115
  onMouseEnter: onMouseEnter,
109
116
  onMouseLeave: onMouseLeave,
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "114.3.0";
13
+ var packageVersion = "114.4.0";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "114.3.0";
24
+ var packageVersion = "114.4.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -111,7 +111,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
111
111
  offset: offset,
112
112
  allowOutOfBounds: allowOutOfBounds,
113
113
  rect: rect,
114
- boundariesElement: fg('platform_editor_link_popup_position_fix_aifc') ? boundariesElement || document.body : undefined,
114
+ boundariesElement: boundariesElement || document.body,
115
115
  minPopupMargin: minPopupMargin
116
116
  });
117
117
  position = onPositionCalculated ? onPositionCalculated(position) : position;
@@ -175,7 +175,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
175
175
  }, {
176
176
  key: "initPopup",
177
177
  value: function initPopup(popup) {
178
- if (this.popupRef.current && fg('platform_editor_link_popup_position_fix_aifc')) {
178
+ if (this.popupRef.current) {
179
179
  var _this$resizeObserver;
180
180
  (_this$resizeObserver = this.resizeObserver) === null || _this$resizeObserver === void 0 || _this$resizeObserver.unobserve(this.popupRef.current);
181
181
  }
@@ -203,7 +203,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
203
203
  if (this.props.focusTrap) {
204
204
  this.initFocusTrap();
205
205
  }
206
- if (this.popupRef.current && fg('platform_editor_link_popup_position_fix_aifc')) {
206
+ if (this.popupRef.current) {
207
207
  var _this$resizeObserver2;
208
208
  (_this$resizeObserver2 = this.resizeObserver) === null || _this$resizeObserver2 === void 0 || _this$resizeObserver2.observe(this.popupRef.current);
209
209
  }
@@ -279,6 +279,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
279
279
  }, {
280
280
  key: "componentWillUnmount",
281
281
  value: function componentWillUnmount() {
282
+ var _this$resizeObserver3;
282
283
  // Ignored via go/ees005
283
284
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
284
285
  window.removeEventListener('resize', this.onResize);
@@ -287,14 +288,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
287
288
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
288
289
  this.scrollElement.removeEventListener('scroll', this.onResize);
289
290
  }
290
- if (fg('platform_editor_link_popup_position_fix_aifc')) {
291
- var _this$resizeObserver3;
292
- (_this$resizeObserver3 = this.resizeObserver) === null || _this$resizeObserver3 === void 0 || _this$resizeObserver3.disconnect();
293
- } else {
294
- if (this.scrollParentElement && this.resizeObserver) {
295
- this.resizeObserver.unobserve(this.scrollParentElement);
296
- }
297
- }
291
+ (_this$resizeObserver3 = this.resizeObserver) === null || _this$resizeObserver3 === void 0 || _this$resizeObserver3.disconnect();
298
292
  this.scheduledUpdatePosition.cancel();
299
293
  this.destroyFocusTrap();
300
294
  var onUnmount = this.props.onUnmount;
@@ -15,6 +15,7 @@ export declare function getExtensionModuleNodePrivateProps(extensionProvider: Ex
15
15
  }>;
16
16
  export declare function getNodeRenderer<T extends Parameters>(extensionProvider: ExtensionProvider, extensionType: ExtensionType, extensionKey: ExtensionKey): React.ComponentType<{
17
17
  actions?: MultiBodiedExtensionActions;
18
+ isSelected?: boolean;
18
19
  node: ExtensionParams<T>;
19
20
  references?: ReferenceEntity[];
20
21
  showUnknownMacroPlaceholder?: boolean;
@@ -15,6 +15,7 @@ export declare function getExtensionModuleNodePrivateProps(extensionProvider: Ex
15
15
  }>;
16
16
  export declare function getNodeRenderer<T extends Parameters>(extensionProvider: ExtensionProvider, extensionType: ExtensionType, extensionKey: ExtensionKey): React.ComponentType<{
17
17
  actions?: MultiBodiedExtensionActions;
18
+ isSelected?: boolean;
18
19
  node: ExtensionParams<T>;
19
20
  references?: ReferenceEntity[];
20
21
  showUnknownMacroPlaceholder?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "114.3.1",
3
+ "version": "114.5.0",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -61,8 +61,8 @@
61
61
  "@atlaskit/icon": "^34.2.0",
62
62
  "@atlaskit/icon-object": "^7.5.0",
63
63
  "@atlaskit/link": "^3.4.0",
64
- "@atlaskit/link-datasource": "^5.0.0",
65
- "@atlaskit/link-picker": "^5.0.0",
64
+ "@atlaskit/link-datasource": "^5.1.0",
65
+ "@atlaskit/link-picker": "^5.1.0",
66
66
  "@atlaskit/media-card": "^80.1.0",
67
67
  "@atlaskit/media-client": "^36.0.0",
68
68
  "@atlaskit/media-client-react": "^5.0.0",
@@ -81,7 +81,7 @@
81
81
  "@atlaskit/prosemirror-history": "^0.2.0",
82
82
  "@atlaskit/react-ufo": "^5.15.0",
83
83
  "@atlaskit/section-message": "^8.12.0",
84
- "@atlaskit/smart-card": "^44.1.0",
84
+ "@atlaskit/smart-card": "^44.2.0",
85
85
  "@atlaskit/smart-user-picker": "^10.0.0",
86
86
  "@atlaskit/spinner": "^19.1.0",
87
87
  "@atlaskit/task-decision": "^20.0.0",
@@ -178,9 +178,6 @@
178
178
  "media-perf-uplift-mutation-fix": {
179
179
  "type": "boolean"
180
180
  },
181
- "platform_editor_link_popup_position_fix_aifc": {
182
- "type": "boolean"
183
- },
184
181
  "platform_editor_inline_node_virt_threshold_override": {
185
182
  "type": "boolean"
186
183
  },