@atlaskit/editor-core 215.13.1 → 215.13.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 +14 -0
- package/dist/cjs/create-editor/ReactEditorView.js +4 -6
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +4 -6
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +4 -6
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 215.13.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`768cc7c86e0af`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/768cc7c86e0af) -
|
|
8
|
+
[FG-CLEANUP] platform_editor_track_media_fail_to_insert
|
|
9
|
+
- [`446c532f14585`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/446c532f14585) -
|
|
10
|
+
[FG-CLEANUP] platform_editor_lce_scrolltop_mitigation
|
|
11
|
+
- [`3797699385665`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3797699385665) -
|
|
12
|
+
[FG-CLEANUP] platform_editor_update_extension_local_id_on_reset
|
|
13
|
+
- [`a2263cbfb6899`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a2263cbfb6899) -
|
|
14
|
+
[FG-CLEANUP] platform_editor_breakout_resizing_widget_fix
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 215.13.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -502,12 +502,10 @@ function ReactEditorView(props) {
|
|
|
502
502
|
// Detects if the editor is nested inside an extension - ie. it is a Legacy Content Extension (LCE)
|
|
503
503
|
var isNestedEditor = (0, _react.useRef)(null);
|
|
504
504
|
var isNestedEditorCalculated = (0, _react.useRef)(false);
|
|
505
|
-
if (
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
isNestedEditorCalculated.current = true;
|
|
510
|
-
}
|
|
505
|
+
if (editorRef.current !== null && !isNestedEditorCalculated.current) {
|
|
506
|
+
var _editorRef$current;
|
|
507
|
+
isNestedEditor.current = !!((_editorRef$current = editorRef.current) !== null && _editorRef$current !== void 0 && _editorRef$current.closest('.extension-editable-area'));
|
|
508
|
+
isNestedEditorCalculated.current = true;
|
|
511
509
|
}
|
|
512
510
|
var originalScrollToRestore = _react.default.useRef(!isNestedEditor.current && (0, _isFullPage.isFullPage)(props.editorProps.appearance) ? (_document$querySelect = document.querySelector('[data-editor-scroll-container]')) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.scrollTop : undefined);
|
|
513
511
|
var mitigateScrollJump =
|
|
@@ -469,12 +469,10 @@ export function ReactEditorView(props) {
|
|
|
469
469
|
// Detects if the editor is nested inside an extension - ie. it is a Legacy Content Extension (LCE)
|
|
470
470
|
const isNestedEditor = useRef(null);
|
|
471
471
|
const isNestedEditorCalculated = useRef(false);
|
|
472
|
-
if (
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
isNestedEditorCalculated.current = true;
|
|
477
|
-
}
|
|
472
|
+
if (editorRef.current !== null && !isNestedEditorCalculated.current) {
|
|
473
|
+
var _editorRef$current;
|
|
474
|
+
isNestedEditor.current = !!((_editorRef$current = editorRef.current) !== null && _editorRef$current !== void 0 && _editorRef$current.closest('.extension-editable-area'));
|
|
475
|
+
isNestedEditorCalculated.current = true;
|
|
478
476
|
}
|
|
479
477
|
const originalScrollToRestore = React.useRef(!isNestedEditor.current && isFullPage(props.editorProps.appearance) ? (_document$querySelect = document.querySelector('[data-editor-scroll-container]')) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.scrollTop : undefined);
|
|
480
478
|
const mitigateScrollJump =
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "215.13.
|
|
2
|
+
export const version = "215.13.1";
|
|
@@ -493,12 +493,10 @@ export function ReactEditorView(props) {
|
|
|
493
493
|
// Detects if the editor is nested inside an extension - ie. it is a Legacy Content Extension (LCE)
|
|
494
494
|
var isNestedEditor = useRef(null);
|
|
495
495
|
var isNestedEditorCalculated = useRef(false);
|
|
496
|
-
if (
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
isNestedEditorCalculated.current = true;
|
|
501
|
-
}
|
|
496
|
+
if (editorRef.current !== null && !isNestedEditorCalculated.current) {
|
|
497
|
+
var _editorRef$current;
|
|
498
|
+
isNestedEditor.current = !!((_editorRef$current = editorRef.current) !== null && _editorRef$current !== void 0 && _editorRef$current.closest('.extension-editable-area'));
|
|
499
|
+
isNestedEditorCalculated.current = true;
|
|
502
500
|
}
|
|
503
501
|
var originalScrollToRestore = React.useRef(!isNestedEditor.current && isFullPage(props.editorProps.appearance) ? (_document$querySelect = document.querySelector('[data-editor-scroll-container]')) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.scrollTop : undefined);
|
|
504
502
|
var mitigateScrollJump =
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "215.13.
|
|
2
|
+
export var version = "215.13.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "215.13.
|
|
3
|
+
"version": "215.13.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -329,9 +329,6 @@
|
|
|
329
329
|
"atlas_editor_typography_refreshed": {
|
|
330
330
|
"type": "boolean"
|
|
331
331
|
},
|
|
332
|
-
"platform_editor_lce_scrolltop_mitigation": {
|
|
333
|
-
"type": "boolean"
|
|
334
|
-
},
|
|
335
332
|
"platform_editor_controls_increase_full_page_gutter": {
|
|
336
333
|
"type": "boolean"
|
|
337
334
|
},
|