@atlaskit/editor-core 207.12.0 → 207.12.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 +9 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 207.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#161914](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/161914)
|
|
8
|
+
[`b1a7ef0ae8d44`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b1a7ef0ae8d44) -
|
|
9
|
+
Switches text formatting options optimisation from FG to Experiment flag
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 207.12.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -104,7 +104,7 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
|
|
|
104
104
|
return event.altKey && (event.key === 'F9' || event.keyCode === 120);
|
|
105
105
|
};
|
|
106
106
|
var isShortcutToFocusToolbarMemoized = (0, _react.useCallback)(isShortcutToFocusToolbarRaw, []);
|
|
107
|
-
var isShortcutToFocusToolbar = (0,
|
|
107
|
+
var isShortcutToFocusToolbar = (0, _experiments.editorExperiment)('platform_editor_toolbar_rerender_optimization_exp', true) ? isShortcutToFocusToolbarMemoized : isShortcutToFocusToolbarRaw;
|
|
108
108
|
var handleEscapeRaw = function handleEscapeRaw(event) {
|
|
109
109
|
var _props$editorView;
|
|
110
110
|
if (!((_props$editorView = props.editorView) !== null && _props$editorView !== void 0 && _props$editorView.hasFocus())) {
|
|
@@ -123,7 +123,7 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
|
|
|
123
123
|
event.preventDefault();
|
|
124
124
|
event.stopPropagation();
|
|
125
125
|
}, [props.editorView]);
|
|
126
|
-
var handleEscape = (0,
|
|
126
|
+
var handleEscape = (0, _experiments.editorExperiment)('platform_editor_toolbar_rerender_optimization_exp', true) ? handleEscapeMemoized : handleEscapeRaw;
|
|
127
127
|
return (0, _react2.jsx)(_ui.ContextPanelConsumer, null, function (_ref2) {
|
|
128
128
|
var contextPanelWidth = _ref2.width;
|
|
129
129
|
return (0, _react2.jsx)(_uiMenu.ToolbarArrowKeyNavigationProvider, {
|
|
@@ -91,7 +91,7 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
|
91
91
|
return event.altKey && (event.key === 'F9' || event.keyCode === 120);
|
|
92
92
|
};
|
|
93
93
|
const isShortcutToFocusToolbarMemoized = useCallback(isShortcutToFocusToolbarRaw, []);
|
|
94
|
-
const isShortcutToFocusToolbar =
|
|
94
|
+
const isShortcutToFocusToolbar = editorExperiment('platform_editor_toolbar_rerender_optimization_exp', true) ? isShortcutToFocusToolbarMemoized : isShortcutToFocusToolbarRaw;
|
|
95
95
|
const handleEscapeRaw = event => {
|
|
96
96
|
var _props$editorView;
|
|
97
97
|
if (!((_props$editorView = props.editorView) !== null && _props$editorView !== void 0 && _props$editorView.hasFocus())) {
|
|
@@ -110,7 +110,7 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
|
110
110
|
event.preventDefault();
|
|
111
111
|
event.stopPropagation();
|
|
112
112
|
}, [props.editorView]);
|
|
113
|
-
const handleEscape =
|
|
113
|
+
const handleEscape = editorExperiment('platform_editor_toolbar_rerender_optimization_exp', true) ? handleEscapeMemoized : handleEscapeRaw;
|
|
114
114
|
return jsx(ContextPanelConsumer, null, ({
|
|
115
115
|
width: contextPanelWidth
|
|
116
116
|
}) => jsx(ToolbarArrowKeyNavigationProvider, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "207.12.
|
|
2
|
+
export const version = "207.12.1";
|
|
@@ -94,7 +94,7 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
|
94
94
|
return event.altKey && (event.key === 'F9' || event.keyCode === 120);
|
|
95
95
|
};
|
|
96
96
|
var isShortcutToFocusToolbarMemoized = useCallback(isShortcutToFocusToolbarRaw, []);
|
|
97
|
-
var isShortcutToFocusToolbar =
|
|
97
|
+
var isShortcutToFocusToolbar = editorExperiment('platform_editor_toolbar_rerender_optimization_exp', true) ? isShortcutToFocusToolbarMemoized : isShortcutToFocusToolbarRaw;
|
|
98
98
|
var handleEscapeRaw = function handleEscapeRaw(event) {
|
|
99
99
|
var _props$editorView;
|
|
100
100
|
if (!((_props$editorView = props.editorView) !== null && _props$editorView !== void 0 && _props$editorView.hasFocus())) {
|
|
@@ -113,7 +113,7 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
|
113
113
|
event.preventDefault();
|
|
114
114
|
event.stopPropagation();
|
|
115
115
|
}, [props.editorView]);
|
|
116
|
-
var handleEscape =
|
|
116
|
+
var handleEscape = editorExperiment('platform_editor_toolbar_rerender_optimization_exp', true) ? handleEscapeMemoized : handleEscapeRaw;
|
|
117
117
|
return jsx(ContextPanelConsumer, null, function (_ref2) {
|
|
118
118
|
var contextPanelWidth = _ref2.width;
|
|
119
119
|
return jsx(ToolbarArrowKeyNavigationProvider, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "207.12.
|
|
2
|
+
export var version = "207.12.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "207.12.
|
|
3
|
+
"version": "207.12.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
63
63
|
"@atlaskit/react-ufo": "^3.13.0",
|
|
64
64
|
"@atlaskit/task-decision": "^19.2.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^5.3.0",
|
|
66
66
|
"@atlaskit/tokens": "^4.9.0",
|
|
67
67
|
"@atlaskit/tooltip": "^20.2.0",
|
|
68
68
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -671,9 +671,6 @@
|
|
|
671
671
|
},
|
|
672
672
|
"atlas_editor_typography_refreshed": {
|
|
673
673
|
"type": "boolean"
|
|
674
|
-
},
|
|
675
|
-
"platform_editor_toolbar_rerender_optimization": {
|
|
676
|
-
"type": "boolean"
|
|
677
674
|
}
|
|
678
675
|
},
|
|
679
676
|
"stricter": {
|