@atlaskit/editor-core 207.12.0 → 207.12.2
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 +18 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +2 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 207.12.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#161893](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/161893)
|
|
8
|
+
[`432e1c30874a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/432e1c30874a0) -
|
|
9
|
+
controls performance gating switch to experiment
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 207.12.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#161914](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/161914)
|
|
17
|
+
[`b1a7ef0ae8d44`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b1a7ef0ae8d44) -
|
|
18
|
+
Switches text formatting options optimisation from FG to Experiment flag
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 207.12.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -88,11 +88,11 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
88
88
|
interactionClassName = props.hasHadInteraction ? 'ak-editor-has-interaction' : 'ak-editor-no-interaction';
|
|
89
89
|
}
|
|
90
90
|
var shouldSetHiddenDataAttribute = function shouldSetHiddenDataAttribute() {
|
|
91
|
-
// When
|
|
91
|
+
// When platform_editor_controls_performance_fixes is enabled we use a different method to
|
|
92
92
|
// determine if the toolbar is hidden from outside of the editor, which doesn't require setting
|
|
93
93
|
// data-editor-primary-toolbar-hidden on the content area
|
|
94
94
|
// NOTE: When tidying, this function and the data attribute can be removed
|
|
95
|
-
if (!props.isEditorToolbarHidden || (0,
|
|
95
|
+
if (!props.isEditorToolbarHidden || (0, _experiments.editorExperiment)('platform_editor_controls_performance_fixes', true)) {
|
|
96
96
|
return false;
|
|
97
97
|
}
|
|
98
98
|
return (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1');
|
|
@@ -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, {
|
|
@@ -72,11 +72,11 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
72
72
|
interactionClassName = props.hasHadInteraction ? 'ak-editor-has-interaction' : 'ak-editor-no-interaction';
|
|
73
73
|
}
|
|
74
74
|
const shouldSetHiddenDataAttribute = () => {
|
|
75
|
-
// When
|
|
75
|
+
// When platform_editor_controls_performance_fixes is enabled we use a different method to
|
|
76
76
|
// determine if the toolbar is hidden from outside of the editor, which doesn't require setting
|
|
77
77
|
// data-editor-primary-toolbar-hidden on the content area
|
|
78
78
|
// NOTE: When tidying, this function and the data attribute can be removed
|
|
79
|
-
if (!props.isEditorToolbarHidden ||
|
|
79
|
+
if (!props.isEditorToolbarHidden || editorExperiment('platform_editor_controls_performance_fixes', true)) {
|
|
80
80
|
return false;
|
|
81
81
|
}
|
|
82
82
|
return editorExperiment('platform_editor_controls', 'variant1');
|
|
@@ -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.2";
|
|
@@ -77,11 +77,11 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
77
77
|
interactionClassName = props.hasHadInteraction ? 'ak-editor-has-interaction' : 'ak-editor-no-interaction';
|
|
78
78
|
}
|
|
79
79
|
var shouldSetHiddenDataAttribute = function shouldSetHiddenDataAttribute() {
|
|
80
|
-
// When
|
|
80
|
+
// When platform_editor_controls_performance_fixes is enabled we use a different method to
|
|
81
81
|
// determine if the toolbar is hidden from outside of the editor, which doesn't require setting
|
|
82
82
|
// data-editor-primary-toolbar-hidden on the content area
|
|
83
83
|
// NOTE: When tidying, this function and the data attribute can be removed
|
|
84
|
-
if (!props.isEditorToolbarHidden ||
|
|
84
|
+
if (!props.isEditorToolbarHidden || editorExperiment('platform_editor_controls_performance_fixes', true)) {
|
|
85
85
|
return false;
|
|
86
86
|
}
|
|
87
87
|
return editorExperiment('platform_editor_controls', 'variant1');
|
|
@@ -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.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "207.12.
|
|
3
|
+
"version": "207.12.2",
|
|
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.4.0",
|
|
66
66
|
"@atlaskit/tokens": "^4.9.0",
|
|
67
67
|
"@atlaskit/tooltip": "^20.2.0",
|
|
68
68
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -199,10 +199,6 @@
|
|
|
199
199
|
"type": "boolean",
|
|
200
200
|
"referenceOnly": true
|
|
201
201
|
},
|
|
202
|
-
"platform_editor_offline_banner_toolbar_position": {
|
|
203
|
-
"type": "boolean",
|
|
204
|
-
"referenceOnly": true
|
|
205
|
-
},
|
|
206
202
|
"platform_editor_disable_instrumented_plugin": {
|
|
207
203
|
"type": "boolean"
|
|
208
204
|
},
|
|
@@ -671,9 +667,6 @@
|
|
|
671
667
|
},
|
|
672
668
|
"atlas_editor_typography_refreshed": {
|
|
673
669
|
"type": "boolean"
|
|
674
|
-
},
|
|
675
|
-
"platform_editor_toolbar_rerender_optimization": {
|
|
676
|
-
"type": "boolean"
|
|
677
670
|
}
|
|
678
671
|
},
|
|
679
672
|
"stricter": {
|