@atlaskit/editor-core 215.13.1 → 215.13.3

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,26 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 215.13.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`26449d20b062d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/26449d20b062d) -
8
+ [ux] EDITOR-2868 Enable scrollbar for editor max width
9
+
10
+ ## 215.13.2
11
+
12
+ ### Patch Changes
13
+
14
+ - [`768cc7c86e0af`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/768cc7c86e0af) -
15
+ [FG-CLEANUP] platform_editor_track_media_fail_to_insert
16
+ - [`446c532f14585`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/446c532f14585) -
17
+ [FG-CLEANUP] platform_editor_lce_scrolltop_mitigation
18
+ - [`3797699385665`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3797699385665) -
19
+ [FG-CLEANUP] platform_editor_update_extension_local_id_on_reset
20
+ - [`a2263cbfb6899`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a2263cbfb6899) -
21
+ [FG-CLEANUP] platform_editor_breakout_resizing_widget_fix
22
+ - Updated dependencies
23
+
3
24
  ## 215.13.1
4
25
 
5
26
  ### 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 =
@@ -121,7 +121,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
121
121
  var theme = (0, _react2.useTheme)();
122
122
  var _useThemeObserver = (0, _tokens.useThemeObserver)(),
123
123
  colorMode = _useThemeObserver.colorMode;
124
- var isFullPage = appearance === 'full-page' || appearance === 'full-width';
124
+ var isFullPage = appearance === 'full-page' || appearance === 'full-width' || (0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) && appearance === 'max';
125
125
  var isComment = appearance === 'comment';
126
126
  var baseFontSize = (0, _getBaseFontSize.getBaseFontSize)(appearance, contentMode);
127
127
  var style = (0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
@@ -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.2";
@@ -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 =
@@ -117,7 +117,7 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
117
117
  const {
118
118
  colorMode
119
119
  } = useThemeObserver();
120
- const isFullPage = appearance === 'full-page' || appearance === 'full-width';
120
+ const isFullPage = appearance === 'full-page' || appearance === 'full-width' || expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) && appearance === 'max';
121
121
  const isComment = appearance === 'comment';
122
122
  const baseFontSize = getBaseFontSize(appearance, contentMode);
123
123
  const style = editorExperiment('platform_editor_preview_panel_responsiveness', true, {
@@ -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.2";
@@ -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 =
@@ -113,7 +113,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
113
113
  var theme = useTheme();
114
114
  var _useThemeObserver = useThemeObserver(),
115
115
  colorMode = _useThemeObserver.colorMode;
116
- var isFullPage = appearance === 'full-page' || appearance === 'full-width';
116
+ var isFullPage = appearance === 'full-page' || appearance === 'full-width' || expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) && appearance === 'max';
117
117
  var isComment = appearance === 'comment';
118
118
  var baseFontSize = getBaseFontSize(appearance, contentMode);
119
119
  var style = editorExperiment('platform_editor_preview_panel_responsiveness', true, {
@@ -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.2";
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.3",
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
  },