@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 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 ((0, _platformFeatureFlags.fg)('platform_editor_lce_scrolltop_mitigation')) {
506
- if (editorRef.current !== null && !isNestedEditorCalculated.current) {
507
- var _editorRef$current;
508
- isNestedEditor.current = !!((_editorRef$current = editorRef.current) !== null && _editorRef$current !== void 0 && _editorRef$current.closest('.extension-editable-area'));
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 =
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "215.13.0";
8
+ var version = exports.version = "215.13.1";
@@ -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 (fg('platform_editor_lce_scrolltop_mitigation')) {
473
- if (editorRef.current !== null && !isNestedEditorCalculated.current) {
474
- var _editorRef$current;
475
- isNestedEditor.current = !!((_editorRef$current = editorRef.current) !== null && _editorRef$current !== void 0 && _editorRef$current.closest('.extension-editable-area'));
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.0";
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 (fg('platform_editor_lce_scrolltop_mitigation')) {
497
- if (editorRef.current !== null && !isNestedEditorCalculated.current) {
498
- var _editorRef$current;
499
- isNestedEditor.current = !!((_editorRef$current = editorRef.current) !== null && _editorRef$current !== void 0 && _editorRef$current.closest('.extension-editable-area'));
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.0";
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.1",
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
  },