@atlaskit/editor-core 215.13.0 → 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,27 @@
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
+
17
+ ## 215.13.1
18
+
19
+ ### Patch Changes
20
+
21
+ - [`4cab7924c4af0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4cab7924c4af0) -
22
+ [ux] Clean up editor_inline_comments_paste_insert_nodes
23
+ - Updated dependencies
24
+
3
25
  ## 215.13.0
4
26
 
5
27
  ### Minor 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 =
@@ -265,10 +265,9 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
265
265
  // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
266
266
  (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_width_changes') ? editorContentAreaContainerStyleExcludeCodeBlockNew : editorContentAreaContainerStyleNew, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && editorContentAreaContainerNestedDndStyle, !(0, _platformFeatureFlags.fg)('platform_editor_controls_no_toolbar_space') && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && contentAreaReducedHeaderSpace, !(0, _platformFeatureFlags.fg)('platform_editor_controls_no_toolbar_space') && props.isEditorToolbarHidden && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && contentAreaReservedPrimaryToolbarSpace],
267
267
  style: {
268
- '--ak-editor-content-area-max-width': !fullWidthMode ? Boolean(maxWidthMode) && (0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true)
269
- // @ts-ignore
270
- ? "".concat(akEditorUltraWideLayoutWidth + getTotalPadding(), "px") // @ts-ignore
271
- : "".concat(theme.layoutMaxWidth + getTotalPadding(), "px") : "".concat(akEditorFullWidthLayoutWidth + getTotalPadding(), "px")
268
+ '--ak-editor-content-area-max-width': !fullWidthMode ? Boolean(maxWidthMode) && (0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) ? // @ts-ignore
269
+ "".concat(akEditorUltraWideLayoutWidth + getTotalPadding(), "px") : // @ts-ignore
270
+ "".concat(theme.layoutMaxWidth + getTotalPadding(), "px") : "".concat(akEditorFullWidthLayoutWidth + getTotalPadding(), "px")
272
271
  }
273
272
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
274
273
  ,
@@ -431,9 +431,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
431
431
  _mentions.mentionsSelectionStyles,
432
432
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
433
433
  (0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ?
434
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
434
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
435
435
  _emoji.scaledEmojiStyles :
436
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
436
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
437
437
  _emoji.emojiStyles,
438
438
  // Dense emoji scaling based on base font size
439
439
  (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp') ? (0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', 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.12.1";
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 =
@@ -257,11 +257,11 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
257
257
  // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
258
258
  expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && fg('platform_editor_breakout_resizing_width_changes') ? editorContentAreaContainerStyleExcludeCodeBlockNew : editorContentAreaContainerStyleNew, fg('platform_editor_nested_dnd_styles_changes') && editorContentAreaContainerNestedDndStyle, !fg('platform_editor_controls_no_toolbar_space') && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReducedHeaderSpace, !fg('platform_editor_controls_no_toolbar_space') && props.isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReservedPrimaryToolbarSpace],
259
259
  style: {
260
- '--ak-editor-content-area-max-width': !fullWidthMode ? Boolean(maxWidthMode) && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true)
260
+ '--ak-editor-content-area-max-width': !fullWidthMode ? Boolean(maxWidthMode) && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) ?
261
261
  // @ts-ignore
262
- ? `${akEditorUltraWideLayoutWidth + getTotalPadding()}px`
262
+ `${akEditorUltraWideLayoutWidth + getTotalPadding()}px` :
263
263
  // @ts-ignore
264
- : `${theme.layoutMaxWidth + getTotalPadding()}px` : `${akEditorFullWidthLayoutWidth + getTotalPadding()}px`
264
+ `${theme.layoutMaxWidth + getTotalPadding()}px` : `${akEditorFullWidthLayoutWidth + getTotalPadding()}px`
265
265
  }
266
266
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
267
267
  ,
@@ -427,9 +427,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
427
427
  mentionsSelectionStyles,
428
428
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
429
429
  expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ?
430
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
430
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
431
431
  scaledEmojiStyles :
432
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
432
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
433
433
  emojiStyles,
434
434
  // Dense emoji scaling based on base font size
435
435
  expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ?
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "215.12.1";
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 =
@@ -255,10 +255,9 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
255
255
  // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
256
256
  expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && fg('platform_editor_breakout_resizing_width_changes') ? editorContentAreaContainerStyleExcludeCodeBlockNew : editorContentAreaContainerStyleNew, fg('platform_editor_nested_dnd_styles_changes') && editorContentAreaContainerNestedDndStyle, !fg('platform_editor_controls_no_toolbar_space') && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReducedHeaderSpace, !fg('platform_editor_controls_no_toolbar_space') && props.isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReservedPrimaryToolbarSpace],
257
257
  style: {
258
- '--ak-editor-content-area-max-width': !fullWidthMode ? Boolean(maxWidthMode) && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true)
259
- // @ts-ignore
260
- ? "".concat(akEditorUltraWideLayoutWidth + getTotalPadding(), "px") // @ts-ignore
261
- : "".concat(theme.layoutMaxWidth + getTotalPadding(), "px") : "".concat(akEditorFullWidthLayoutWidth + getTotalPadding(), "px")
258
+ '--ak-editor-content-area-max-width': !fullWidthMode ? Boolean(maxWidthMode) && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) ? // @ts-ignore
259
+ "".concat(akEditorUltraWideLayoutWidth + getTotalPadding(), "px") : // @ts-ignore
260
+ "".concat(theme.layoutMaxWidth + getTotalPadding(), "px") : "".concat(akEditorFullWidthLayoutWidth + getTotalPadding(), "px")
262
261
  }
263
262
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
264
263
  ,
@@ -423,9 +423,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
423
423
  mentionsSelectionStyles,
424
424
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
425
425
  expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ?
426
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
426
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
427
427
  scaledEmojiStyles :
428
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
428
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
429
429
  emojiStyles,
430
430
  // Dense emoji scaling based on base font size
431
431
  expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ?
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "215.12.1";
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.0",
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/"
@@ -64,7 +64,7 @@
64
64
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
65
65
  "@atlaskit/react-ufo": "^4.14.0",
66
66
  "@atlaskit/task-decision": "^19.2.0",
67
- "@atlaskit/tmp-editor-statsig": "^13.37.0",
67
+ "@atlaskit/tmp-editor-statsig": "^13.38.0",
68
68
  "@atlaskit/tokens": "^8.0.0",
69
69
  "@atlaskit/tooltip": "^20.8.0",
70
70
  "@atlaskit/width-detector": "^5.0.0",
@@ -81,7 +81,7 @@
81
81
  "uuid": "^3.1.0"
82
82
  },
83
83
  "peerDependencies": {
84
- "@atlaskit/editor-common": "^110.28.0",
84
+ "@atlaskit/editor-common": "^110.29.0",
85
85
  "@atlaskit/link-provider": "^4.0.0",
86
86
  "@atlaskit/media-core": "^37.0.0",
87
87
  "react": "^18.2.0",
@@ -103,7 +103,7 @@
103
103
  "@atlaskit/media-core": "^37.0.0",
104
104
  "@atlaskit/media-integration-test-helpers": "workspace:^",
105
105
  "@atlaskit/media-test-helpers": "^39.0.0",
106
- "@atlaskit/modal-dialog": "^14.6.0",
106
+ "@atlaskit/modal-dialog": "^14.7.0",
107
107
  "@atlaskit/primitives": "^16.1.0",
108
108
  "@atlaskit/renderer": "^124.13.0",
109
109
  "@atlaskit/section-message": "^8.9.0",
@@ -165,10 +165,6 @@
165
165
  "type": "boolean",
166
166
  "referenceOnly": "true"
167
167
  },
168
- "editor_inline_comments_paste_insert_nodes": {
169
- "type": "boolean",
170
- "referenceOnly": "true"
171
- },
172
168
  "editor_a11y_announce_status_editor_open": {
173
169
  "type": "boolean",
174
170
  "referenceOnly": true
@@ -333,9 +329,6 @@
333
329
  "atlas_editor_typography_refreshed": {
334
330
  "type": "boolean"
335
331
  },
336
- "platform_editor_lce_scrolltop_mitigation": {
337
- "type": "boolean"
338
- },
339
332
  "platform_editor_controls_increase_full_page_gutter": {
340
333
  "type": "boolean"
341
334
  },