@atlaskit/editor-core 234.2.0 → 234.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 +8 -0
- package/dist/cjs/create-editor/ReactEditorView.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 234.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9474d3d4a1282`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9474d3d4a1282) -
|
|
8
|
+
Disable Editor scroll restoration behind `platform_editor_reduce_forced_layout`.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 234.2.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -800,7 +800,7 @@ function ReactEditorView(props) {
|
|
|
800
800
|
|
|
801
801
|
// Preconditioned on the affected population - full page, non nested editors - so that experiment
|
|
802
802
|
// exposure is not diluted by editors which never run the scroll restoration code below.
|
|
803
|
-
var scrollRestorePerfEnabled = !isNestedEditor.current && (0, _isFullPage.isFullPage)(props.editorProps.appearance)
|
|
803
|
+
var scrollRestorePerfEnabled = !isNestedEditor.current && (0, _isFullPage.isFullPage)(props.editorProps.appearance) || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_reduce_forced_layout');
|
|
804
804
|
var originalScrollToRestore = _react.default.useRef(
|
|
805
805
|
// Reading scrollTop forces a synchronous layout, and this expression is re-evaluated on every
|
|
806
806
|
// render. Products restore scroll themselves after the document has rendered.
|
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
8
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
9
|
-
var version = exports.version = "234.
|
|
9
|
+
var version = exports.version = "234.2.0";
|
|
@@ -748,7 +748,7 @@ export function ReactEditorView(props) {
|
|
|
748
748
|
|
|
749
749
|
// Preconditioned on the affected population - full page, non nested editors - so that experiment
|
|
750
750
|
// exposure is not diluted by editors which never run the scroll restoration code below.
|
|
751
|
-
const scrollRestorePerfEnabled = !isNestedEditor.current && isFullPage(props.editorProps.appearance)
|
|
751
|
+
const scrollRestorePerfEnabled = !isNestedEditor.current && isFullPage(props.editorProps.appearance) || isExperimentEnabled('platform_editor_reduce_forced_layout');
|
|
752
752
|
const originalScrollToRestore = React.useRef(
|
|
753
753
|
// Reading scrollTop forces a synchronous layout, and this expression is re-evaluated on every
|
|
754
754
|
// render. Products restore scroll themselves after the document has rendered.
|
|
@@ -791,7 +791,7 @@ export function ReactEditorView(props) {
|
|
|
791
791
|
|
|
792
792
|
// Preconditioned on the affected population - full page, non nested editors - so that experiment
|
|
793
793
|
// exposure is not diluted by editors which never run the scroll restoration code below.
|
|
794
|
-
var scrollRestorePerfEnabled = !isNestedEditor.current && isFullPage(props.editorProps.appearance)
|
|
794
|
+
var scrollRestorePerfEnabled = !isNestedEditor.current && isFullPage(props.editorProps.appearance) || isExperimentEnabled('platform_editor_reduce_forced_layout');
|
|
795
795
|
var originalScrollToRestore = React.useRef(
|
|
796
796
|
// Reading scrollTop forces a synchronous layout, and this expression is re-evaluated on every
|
|
797
797
|
// render. Products restore scroll themselves after the document has rendered.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "234.2.
|
|
3
|
+
"version": "234.2.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
78
78
|
"@atlaskit/react-ufo": "^8.0.0",
|
|
79
79
|
"@atlaskit/task-decision": "^21.12.0",
|
|
80
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
81
|
-
"@atlaskit/tokens": "^20.
|
|
80
|
+
"@atlaskit/tmp-editor-statsig": "^222.0.0",
|
|
81
|
+
"@atlaskit/tokens": "^20.3.0",
|
|
82
82
|
"@atlaskit/tooltip": "^24.4.0",
|
|
83
83
|
"@atlaskit/width-detector": "^7.2.0",
|
|
84
84
|
"@babel/runtime": "^7.0.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"uuid": "^11.1.1"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
|
-
"@atlaskit/editor-common": "^128.
|
|
99
|
+
"@atlaskit/editor-common": "^128.3.0",
|
|
100
100
|
"@atlaskit/link-provider": "^6.0.0",
|
|
101
101
|
"@atlaskit/media-core": "^39.0.0",
|
|
102
102
|
"react": "^18.2.0 || ^19.2.0",
|