@atlaskit/editor-core 214.1.7 → 214.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 214.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ff53e1bfc6c25`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ff53e1bfc6c25) -
8
+ [ED-29482] clean up references to platform_editor_toolbar_rerender_optimization_exp
9
+ - Updated dependencies
10
+
11
+ ## 214.2.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`4954474ad8383`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4954474ad8383) -
16
+ [EDITOR-1992] Make extension styles take the feature gate and set the font size for links inside
17
+ them to resolve table of contents not being the correct size
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 214.1.7
4
24
 
5
25
  ### Patch Changes
@@ -99,13 +99,11 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
99
99
  };
100
100
  }
101
101
  });
102
- var isShortcutToFocusToolbarRaw = function isShortcutToFocusToolbarRaw(event) {
102
+ var isShortcutToFocusToolbar = (0, _react.useCallback)(function (event) {
103
103
  //Alt + F9 to reach first element in this main toolbar
104
104
  return event.altKey && (event.key === 'F9' || event.keyCode === 120);
105
- };
106
- var isShortcutToFocusToolbarMemoized = (0, _react.useCallback)(isShortcutToFocusToolbarRaw, []);
107
- var isShortcutToFocusToolbar = (0, _experiments.editorExperiment)('platform_editor_toolbar_rerender_optimization_exp', true) ? isShortcutToFocusToolbarMemoized : isShortcutToFocusToolbarRaw;
108
- var handleEscapeRaw = function handleEscapeRaw(event) {
105
+ }, []);
106
+ var handleEscape = (0, _react.useCallback)(function (event) {
109
107
  var _props$editorView;
110
108
  if (!((_props$editorView = props.editorView) !== null && _props$editorView !== void 0 && _props$editorView.hasFocus())) {
111
109
  var _props$editorView2;
@@ -113,17 +111,7 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
113
111
  }
114
112
  event.preventDefault();
115
113
  event.stopPropagation();
116
- };
117
- var handleEscapeMemoized = (0, _react.useCallback)(function (event) {
118
- var _props$editorView3;
119
- if (!((_props$editorView3 = props.editorView) !== null && _props$editorView3 !== void 0 && _props$editorView3.hasFocus())) {
120
- var _props$editorView4;
121
- (_props$editorView4 = props.editorView) === null || _props$editorView4 === void 0 || _props$editorView4.focus();
122
- }
123
- event.preventDefault();
124
- event.stopPropagation();
125
114
  }, [props.editorView]);
126
- var handleEscape = (0, _experiments.editorExperiment)('platform_editor_toolbar_rerender_optimization_exp', true) ? handleEscapeMemoized : handleEscapeRaw;
127
115
  return (0, _react2.jsx)(_contextPanel.ContextPanelConsumer, null, function (_ref2) {
128
116
  var contextPanelWidth = _ref2.width;
129
117
  return (0, _react2.jsx)(_uiMenu.ToolbarArrowKeyNavigationProvider, {
@@ -14,7 +14,6 @@ var _contextPanel = require("@atlaskit/editor-common/context-panel");
14
14
  var _toolbar = require("@atlaskit/editor-common/toolbar");
15
15
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
16
16
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
17
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
18
17
  var _toolbar2 = require("../../../utils/toolbar");
19
18
  var _Toolbar = require("../../Toolbar/Toolbar");
20
19
  var _ToolbarPortal = require("../../Toolbar/ToolbarPortal");
@@ -78,27 +77,17 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
78
77
  ToolbarPortal = _ref5.Portal;
79
78
  var hasToolbarPortal = ToolbarPortal !== _react.default.Fragment;
80
79
  var mountPoint = hasToolbarPortal ? undefined : popupsMountPoint;
81
- var isShortcutToFocusToolbarRaw = function isShortcutToFocusToolbarRaw(event) {
80
+ var isShortcutToFocusToolbar = (0, _react.useCallback)(function (event) {
82
81
  //Alt + F9 to reach first element in this main toolbar
83
82
  return event.altKey && event.key === 'F9';
84
- };
85
- var isShortcutToFocusToolbarMemoized = (0, _react.useCallback)(isShortcutToFocusToolbarRaw, []);
86
- var isShortcutToFocusToolbar = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_toolbar_rerender_optimization_exp', 'isEnabled', true) ? isShortcutToFocusToolbarMemoized : isShortcutToFocusToolbarRaw;
87
- var handleEscapeRaw = function handleEscapeRaw(event) {
88
- if (!(editorView !== null && editorView !== void 0 && editorView.hasFocus())) {
89
- editorView === null || editorView === void 0 || editorView.focus();
90
- }
91
- event.preventDefault();
92
- event.stopPropagation();
93
- };
94
- var handleEscapeMemoized = (0, _react.useCallback)(function (event) {
83
+ }, []);
84
+ var handleEscape = (0, _react.useCallback)(function (event) {
95
85
  if (!(editorView !== null && editorView !== void 0 && editorView.hasFocus())) {
96
86
  editorView === null || editorView === void 0 || editorView.focus();
97
87
  }
98
88
  event.preventDefault();
99
89
  event.stopPropagation();
100
90
  }, [editorView]);
101
- var handleEscape = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_toolbar_rerender_optimization_exp', 'isEnabled', true) ? handleEscapeMemoized : handleEscapeRaw;
102
91
  return /*#__PURE__*/_react.default.createElement(_contextPanel.ContextPanelConsumer, null, function (_ref6) {
103
92
  var ContextPanelWidth = _ref6.width;
104
93
  return /*#__PURE__*/_react.default.createElement(_uiMenu.ToolbarArrowKeyNavigationProvider, {
@@ -208,7 +208,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
208
208
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
209
209
  _dateStyles.dateStyles,
210
210
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
211
- _extensionStyles.extensionStyles,
211
+ (0, _extensionStyles.getExtensionStyles)(),
212
212
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
213
213
  _expandStyles.expandStyles, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ?
214
214
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values