@atlaskit/editor-core 217.5.3 → 217.5.4

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 (31) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/codemods/migrates/rename-smartlinks-prop.ts +1 -0
  3. package/codemods/utils.ts +1 -0
  4. package/dist/cjs/composable-editor/editor-internal.js +6 -2
  5. package/dist/cjs/create-editor/ReactEditorView.js +4 -1
  6. package/dist/cjs/create-editor/create-editor.js +1 -0
  7. package/dist/cjs/ui/Appearance/Chromeless.js +3 -1
  8. package/dist/cjs/ui/Appearance/Comment/Comment.js +3 -1
  9. package/dist/cjs/ui/ContextPanel/index.js +3 -1
  10. package/dist/cjs/ui/Toolbar/Toolbar.js +6 -2
  11. package/dist/cjs/ui/Toolbar/hooks.js +1 -0
  12. package/dist/cjs/version-wrapper.js +1 -1
  13. package/dist/es2019/composable-editor/editor-internal.js +6 -2
  14. package/dist/es2019/create-editor/ReactEditorView.js +4 -1
  15. package/dist/es2019/create-editor/create-editor.js +1 -0
  16. package/dist/es2019/ui/Appearance/Chromeless.js +3 -1
  17. package/dist/es2019/ui/Appearance/Comment/Comment.js +3 -1
  18. package/dist/es2019/ui/ContextPanel/index.js +3 -1
  19. package/dist/es2019/ui/Toolbar/Toolbar.js +6 -2
  20. package/dist/es2019/ui/Toolbar/hooks.js +1 -0
  21. package/dist/es2019/version-wrapper.js +1 -1
  22. package/dist/esm/composable-editor/editor-internal.js +6 -2
  23. package/dist/esm/create-editor/ReactEditorView.js +4 -1
  24. package/dist/esm/create-editor/create-editor.js +1 -0
  25. package/dist/esm/ui/Appearance/Chromeless.js +3 -1
  26. package/dist/esm/ui/Appearance/Comment/Comment.js +3 -1
  27. package/dist/esm/ui/ContextPanel/index.js +3 -1
  28. package/dist/esm/ui/Toolbar/Toolbar.js +6 -2
  29. package/dist/esm/ui/Toolbar/hooks.js +1 -0
  30. package/dist/esm/version-wrapper.js +1 -1
  31. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 217.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 217.5.3
4
10
 
5
11
  ### Patch Changes
@@ -33,6 +33,7 @@ export const createJSXRenameVariableToNestedKeyTransform = (
33
33
  const newObject = j.objectExpression([
34
34
  j.property('init', j.identifier(toObjectKey), j.objectExpression(existingProperties)),
35
35
  ]);
36
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
36
37
  fromAttribute.replace(
37
38
  j.jsxAttribute(j.jsxIdentifier(toObjectName), j.jsxExpressionContainer(newObject)),
38
39
  );
package/codemods/utils.ts CHANGED
@@ -98,6 +98,7 @@ export const findImportFromPackage = (
98
98
  export const createRenameVariableTransform = (from: string, toName: string) => {
99
99
  return (j: core.JSCodeshift, source: Collection<unknown>): void => {
100
100
  source.find(j.Identifier, { name: from }).forEach((x) => {
101
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
101
102
  x.replace(j.identifier(toName));
102
103
  });
103
104
  };
@@ -71,7 +71,9 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
71
71
  componentProps: props,
72
72
  action: _analytics.ACTION.RE_RENDERED,
73
73
  actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
74
- handleAnalyticsEvent: handleAnalyticsEvent,
74
+ handleAnalyticsEvent: handleAnalyticsEvent
75
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
76
+ ,
75
77
  propsToIgnore: ['defaultValue'],
76
78
  useShallow: useShallow
77
79
  }), (0, _react2.jsx)(_ErrorBoundary.default, {
@@ -99,7 +101,9 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
99
101
  onEditorCreated: onEditorCreated,
100
102
  onEditorDestroyed: onEditorDestroyed,
101
103
  disabled: props.disabled,
102
- preset: preset,
104
+ preset: preset
105
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
106
+ ,
103
107
  render: function render(_ref2) {
104
108
  var _props$featureFlags, _props$featureFlags2;
105
109
  var editor = _ref2.editor,
@@ -872,7 +872,9 @@ function ReactEditorView(props) {
872
872
  id: EDIT_AREA_ID,
873
873
  "aria-describedby": assistiveDescribedBy,
874
874
  "data-editor-id": editorId.current,
875
- onSSRMeasure: onSSRMeasure,
875
+ onSSRMeasure: onSSRMeasure
876
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
877
+ ,
876
878
  onEditorStateChanged: function onEditorStateChanged(state) {
877
879
  ssrEditorStateRef.current = state;
878
880
  // Notify listeners about the initial SSR state
@@ -904,6 +906,7 @@ function ReactEditorView(props) {
904
906
  startTimestampRef: firstRenderStartTimestampRef,
905
907
  onSSRMeasure: onSSRMeasure
906
908
  }, /*#__PURE__*/_react.default.createElement(_uiReact.ReactEditorViewContext.Provider, {
909
+ // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
907
910
  value: {
908
911
  editorRef: editorRef,
909
912
  editorView: viewRef.current,
@@ -26,6 +26,7 @@ function fixExcludes(marks) {
26
26
  markKeys.forEach(function (markKey) {
27
27
  var mark = marks[markKey];
28
28
  if (mark.excludes) {
29
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
29
30
  mark.excludes = mark.excludes.split(' ').filter(function (group) {
30
31
  return markGroups.has(group);
31
32
  }).join(' ');
@@ -118,7 +118,9 @@ var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
118
118
  animate: maxContentSizeReached
119
119
  }, (0, _react2.jsx)(ChromelessEditorContainer, {
120
120
  maxHeight: maxHeight,
121
- minHeight: minHeight,
121
+ minHeight: minHeight
122
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
123
+ ,
122
124
  containerRef: function containerRef(ref) {
123
125
  return _this.containerElement = ref;
124
126
  }
@@ -264,7 +264,9 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
264
264
  }, (0, _react2.jsx)(_ui.WidthConsumer, null, function (_ref) {
265
265
  var width = _ref.width;
266
266
  return (0, _react2.jsx)(_EditorContentContainer.default, {
267
- ref: containerElement,
267
+ ref: containerElement
268
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
269
+ ,
268
270
  css: [maxHeight ?
269
271
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
270
272
  (0, _react2.css)({
@@ -93,7 +93,9 @@ var SwappableContentAreaInner = /*#__PURE__*/function (_React$PureComponent) {
93
93
  timeout: _this.state.mounted ? animSpeedMs : 0,
94
94
  in: !!pluginContent,
95
95
  mountOnEnter: true,
96
- unmountOnExit: true,
96
+ unmountOnExit: true
97
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
98
+ ,
97
99
  onExited: function onExited() {
98
100
  return _this.unsetPluginContent();
99
101
  }
@@ -80,14 +80,18 @@ var ToolbarNext = exports.ToolbarNext = function ToolbarNext(_ref) {
80
80
  isDisabled: isDisabled,
81
81
  popupsMountPoint: popupsMountPoint,
82
82
  popupsBoundariesElement: popupsBoundariesElement,
83
- popupsScrollableElement: popupsScrollableElement,
83
+ popupsScrollableElement: popupsScrollableElement
84
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
85
+ ,
84
86
  fireAnalyticsEvent: function fireAnalyticsEvent(payload) {
85
87
  var _editorAPI$analytics;
86
88
  editorAPI === null || editorAPI === void 0 || (_editorAPI$analytics = editorAPI.analytics) === null || _editorAPI$analytics === void 0 || _editorAPI$analytics.actions.fireAnalyticsEvent(payload);
87
89
  }
88
90
  }, /*#__PURE__*/_react.default.createElement(_editorToolbarModel.ToolbarModelRenderer, {
89
91
  toolbar: toolbar,
90
- components: components,
92
+ components: components
93
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
94
+ ,
91
95
  fallbacks: {
92
96
  group: _editorToolbar.ToolbarButtonGroup,
93
97
  section: _editorToolbar.ToolbarSection,
@@ -16,6 +16,7 @@ var useElementWidth = exports.useElementWidth = function useElementWidth(ref, _r
16
16
  setWidth = _React$useState2[1];
17
17
  _react.default.useEffect(function () {
18
18
  if (!skip && ref.current && !(0, _platformFeatureFlags.fg)('platform_editor_prevent_toolbar_width_reflow')) {
19
+ // eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
19
20
  setWidth(Math.round(ref.current.getBoundingClientRect().width));
20
21
  }
21
22
  }, [skip, setWidth, ref]);
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "217.5.2";
8
+ var version = exports.version = "217.5.3";
@@ -59,7 +59,9 @@ export const EditorInternal = /*#__PURE__*/memo(({
59
59
  componentProps: props,
60
60
  action: ACTION.RE_RENDERED,
61
61
  actionSubject: ACTION_SUBJECT.EDITOR,
62
- handleAnalyticsEvent: handleAnalyticsEvent,
62
+ handleAnalyticsEvent: handleAnalyticsEvent
63
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
64
+ ,
63
65
  propsToIgnore: ['defaultValue'],
64
66
  useShallow: useShallow
65
67
  }), jsx(ErrorBoundary, {
@@ -87,7 +89,9 @@ export const EditorInternal = /*#__PURE__*/memo(({
87
89
  onEditorCreated: onEditorCreated,
88
90
  onEditorDestroyed: onEditorDestroyed,
89
91
  disabled: props.disabled,
90
- preset: preset,
92
+ preset: preset
93
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
94
+ ,
91
95
  render: ({
92
96
  editor,
93
97
  view,
@@ -820,7 +820,9 @@ export function ReactEditorView(props) {
820
820
  id: EDIT_AREA_ID,
821
821
  "aria-describedby": assistiveDescribedBy,
822
822
  "data-editor-id": editorId.current,
823
- onSSRMeasure: onSSRMeasure,
823
+ onSSRMeasure: onSSRMeasure
824
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
825
+ ,
824
826
  onEditorStateChanged: state => {
825
827
  ssrEditorStateRef.current = state;
826
828
  // Notify listeners about the initial SSR state
@@ -852,6 +854,7 @@ export function ReactEditorView(props) {
852
854
  startTimestampRef: firstRenderStartTimestampRef,
853
855
  onSSRMeasure: onSSRMeasure
854
856
  }, /*#__PURE__*/React.createElement(ReactEditorViewContext.Provider, {
857
+ // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
855
858
  value: {
856
859
  editorRef: editorRef,
857
860
  editorView: viewRef.current,
@@ -12,6 +12,7 @@ export function fixExcludes(marks) {
12
12
  markKeys.forEach(markKey => {
13
13
  const mark = marks[markKey];
14
14
  if (mark.excludes) {
15
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
15
16
  mark.excludes = mark.excludes.split(' ').filter(group => markGroups.has(group)).join(' ');
16
17
  }
17
18
  });
@@ -100,7 +100,9 @@ export default class Editor extends React.Component {
100
100
  animate: maxContentSizeReached
101
101
  }, jsx(ChromelessEditorContainer, {
102
102
  maxHeight: maxHeight,
103
- minHeight: minHeight,
103
+ minHeight: minHeight
104
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
105
+ ,
104
106
  containerRef: ref => this.containerElement = ref
105
107
  }, jsx(EditorContentContainer
106
108
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
@@ -253,7 +253,9 @@ export const CommentEditorWithIntl = props => {
253
253
  width
254
254
  }) => {
255
255
  return jsx(EditorContentContainer, {
256
- ref: containerElement,
256
+ ref: containerElement
257
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
258
+ ,
257
259
  css: [maxHeight ?
258
260
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
259
261
  css({
@@ -80,7 +80,9 @@ class SwappableContentAreaInner extends React.PureComponent {
80
80
  timeout: this.state.mounted ? animSpeedMs : 0,
81
81
  in: !!pluginContent,
82
82
  mountOnEnter: true,
83
- unmountOnExit: true,
83
+ unmountOnExit: true
84
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
85
+ ,
84
86
  onExited: () => this.unsetPluginContent()
85
87
  }, currentPluginContent);
86
88
  });
@@ -76,14 +76,18 @@ export const ToolbarNext = ({
76
76
  isDisabled: isDisabled,
77
77
  popupsMountPoint: popupsMountPoint,
78
78
  popupsBoundariesElement: popupsBoundariesElement,
79
- popupsScrollableElement: popupsScrollableElement,
79
+ popupsScrollableElement: popupsScrollableElement
80
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
81
+ ,
80
82
  fireAnalyticsEvent: payload => {
81
83
  var _editorAPI$analytics;
82
84
  editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$analytics = editorAPI.analytics) === null || _editorAPI$analytics === void 0 ? void 0 : _editorAPI$analytics.actions.fireAnalyticsEvent(payload);
83
85
  }
84
86
  }, /*#__PURE__*/React.createElement(ToolbarModelRenderer, {
85
87
  toolbar: toolbar,
86
- components: components,
88
+ components: components
89
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
90
+ ,
87
91
  fallbacks: {
88
92
  group: ToolbarButtonGroup,
89
93
  section: ToolbarSection,
@@ -6,6 +6,7 @@ export const useElementWidth = (ref, {
6
6
  const [elementWidth, setWidth] = React.useState(undefined);
7
7
  React.useEffect(() => {
8
8
  if (!skip && ref.current && !fg('platform_editor_prevent_toolbar_width_reflow')) {
9
+ // eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
9
10
  setWidth(Math.round(ref.current.getBoundingClientRect().width));
10
11
  }
11
12
  }, [skip, setWidth, ref]);
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "217.5.2";
2
+ export const version = "217.5.3";
@@ -67,7 +67,9 @@ export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
67
67
  componentProps: props,
68
68
  action: ACTION.RE_RENDERED,
69
69
  actionSubject: ACTION_SUBJECT.EDITOR,
70
- handleAnalyticsEvent: handleAnalyticsEvent,
70
+ handleAnalyticsEvent: handleAnalyticsEvent
71
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
72
+ ,
71
73
  propsToIgnore: ['defaultValue'],
72
74
  useShallow: useShallow
73
75
  }), jsx(ErrorBoundary, {
@@ -95,7 +97,9 @@ export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
95
97
  onEditorCreated: onEditorCreated,
96
98
  onEditorDestroyed: onEditorDestroyed,
97
99
  disabled: props.disabled,
98
- preset: preset,
100
+ preset: preset
101
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
102
+ ,
99
103
  render: function render(_ref2) {
100
104
  var _props$featureFlags, _props$featureFlags2;
101
105
  var editor = _ref2.editor,
@@ -863,7 +863,9 @@ export function ReactEditorView(props) {
863
863
  id: EDIT_AREA_ID,
864
864
  "aria-describedby": assistiveDescribedBy,
865
865
  "data-editor-id": editorId.current,
866
- onSSRMeasure: onSSRMeasure,
866
+ onSSRMeasure: onSSRMeasure
867
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
868
+ ,
867
869
  onEditorStateChanged: function onEditorStateChanged(state) {
868
870
  ssrEditorStateRef.current = state;
869
871
  // Notify listeners about the initial SSR state
@@ -895,6 +897,7 @@ export function ReactEditorView(props) {
895
897
  startTimestampRef: firstRenderStartTimestampRef,
896
898
  onSSRMeasure: onSSRMeasure
897
899
  }, /*#__PURE__*/React.createElement(ReactEditorViewContext.Provider, {
900
+ // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
898
901
  value: {
899
902
  editorRef: editorRef,
900
903
  editorView: viewRef.current,
@@ -15,6 +15,7 @@ export function fixExcludes(marks) {
15
15
  markKeys.forEach(function (markKey) {
16
16
  var mark = marks[markKey];
17
17
  if (mark.excludes) {
18
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
18
19
  mark.excludes = mark.excludes.split(' ').filter(function (group) {
19
20
  return markGroups.has(group);
20
21
  }).join(' ');
@@ -111,7 +111,9 @@ var Editor = /*#__PURE__*/function (_React$Component) {
111
111
  animate: maxContentSizeReached
112
112
  }, jsx(ChromelessEditorContainer, {
113
113
  maxHeight: maxHeight,
114
- minHeight: minHeight,
114
+ minHeight: minHeight
115
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
116
+ ,
115
117
  containerRef: function containerRef(ref) {
116
118
  return _this.containerElement = ref;
117
119
  }
@@ -253,7 +253,9 @@ export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
253
253
  }, jsx(WidthConsumer, null, function (_ref) {
254
254
  var width = _ref.width;
255
255
  return jsx(EditorContentContainer, {
256
- ref: containerElement,
256
+ ref: containerElement
257
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
258
+ ,
257
259
  css: [maxHeight ?
258
260
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
259
261
  css({
@@ -88,7 +88,9 @@ var SwappableContentAreaInner = /*#__PURE__*/function (_React$PureComponent) {
88
88
  timeout: _this.state.mounted ? animSpeedMs : 0,
89
89
  in: !!pluginContent,
90
90
  mountOnEnter: true,
91
- unmountOnExit: true,
91
+ unmountOnExit: true
92
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
93
+ ,
92
94
  onExited: function onExited() {
93
95
  return _this.unsetPluginContent();
94
96
  }
@@ -74,14 +74,18 @@ export var ToolbarNext = function ToolbarNext(_ref) {
74
74
  isDisabled: isDisabled,
75
75
  popupsMountPoint: popupsMountPoint,
76
76
  popupsBoundariesElement: popupsBoundariesElement,
77
- popupsScrollableElement: popupsScrollableElement,
77
+ popupsScrollableElement: popupsScrollableElement
78
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
79
+ ,
78
80
  fireAnalyticsEvent: function fireAnalyticsEvent(payload) {
79
81
  var _editorAPI$analytics;
80
82
  editorAPI === null || editorAPI === void 0 || (_editorAPI$analytics = editorAPI.analytics) === null || _editorAPI$analytics === void 0 || _editorAPI$analytics.actions.fireAnalyticsEvent(payload);
81
83
  }
82
84
  }, /*#__PURE__*/React.createElement(ToolbarModelRenderer, {
83
85
  toolbar: toolbar,
84
- components: components,
86
+ components: components
87
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
88
+ ,
85
89
  fallbacks: {
86
90
  group: ToolbarButtonGroup,
87
91
  section: ToolbarSection,
@@ -9,6 +9,7 @@ export var useElementWidth = function useElementWidth(ref, _ref) {
9
9
  setWidth = _React$useState2[1];
10
10
  React.useEffect(function () {
11
11
  if (!skip && ref.current && !fg('platform_editor_prevent_toolbar_width_reflow')) {
12
+ // eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
12
13
  setWidth(Math.round(ref.current.getBoundingClientRect().width));
13
14
  }
14
15
  }, [skip, setWidth, ref]);
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "217.5.2";
2
+ export var version = "217.5.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "217.5.3",
3
+ "version": "217.5.4",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -60,13 +60,13 @@
60
60
  "@atlaskit/emoji": "^69.10.0",
61
61
  "@atlaskit/icon": "^33.0.0",
62
62
  "@atlaskit/link": "^3.3.0",
63
- "@atlaskit/media-card": "^79.15.0",
63
+ "@atlaskit/media-card": "^79.16.0",
64
64
  "@atlaskit/mention": "^24.6.0",
65
65
  "@atlaskit/platform-feature-flags": "^1.1.0",
66
66
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
67
67
  "@atlaskit/react-ufo": "^5.4.0",
68
68
  "@atlaskit/task-decision": "^19.3.0",
69
- "@atlaskit/tmp-editor-statsig": "^43.0.0",
69
+ "@atlaskit/tmp-editor-statsig": "^44.0.0",
70
70
  "@atlaskit/tokens": "^11.1.0",
71
71
  "@atlaskit/tooltip": "^21.0.0",
72
72
  "@atlaskit/width-detector": "^5.0.0",
@@ -107,7 +107,7 @@
107
107
  "@atlaskit/media-integration-test-helpers": "workspace:^",
108
108
  "@atlaskit/media-test-helpers": "^40.0.0",
109
109
  "@atlaskit/modal-dialog": "^14.11.0",
110
- "@atlaskit/renderer": "^128.2.0",
110
+ "@atlaskit/renderer": "^128.3.0",
111
111
  "@atlaskit/section-message": "^8.12.0",
112
112
  "@atlaskit/synchrony-test-helpers": "workspace:^",
113
113
  "@atlaskit/toggle": "^15.2.0",