@atlaskit/editor-core 217.4.3 → 217.4.5

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.
Files changed (97) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/codemods/140.0.0-rc-kraken-fix-type-errors.ts +6 -1
  3. package/codemods/145.0.0-deprecate-props.ts +3 -1
  4. package/codemods/172.0.0-transform-smartlinks-prop.ts +3 -1
  5. package/codemods/175.0.0-rename-unsafe-allowUndoRedoButton-prop.ts +3 -1
  6. package/codemods/180.1.0-update-to-editor-migration-component.ts +3 -1
  7. package/codemods/migrates/next-remove-allow-more-text-colors-prop.ts +2 -2
  8. package/codemods/migrates/remove-config-panel-width-prop.ts +2 -2
  9. package/codemods/migrates/rename-editor-to-editor-migration-component.ts +2 -2
  10. package/codemods/migrates/rename-smartlinks-prop.ts +2 -2
  11. package/codemods/migrates/rename-unsafe-allowUndoRedoButtons-prop.ts +4 -1
  12. package/codemods/migrates/rename-unsafe-cards-prop.ts +4 -1
  13. package/codemods/utils.ts +2 -2
  14. package/dist/cjs/composable-editor/core-editor.js +1 -1
  15. package/dist/cjs/editor.js +1 -1
  16. package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +1 -1
  17. package/dist/cjs/ui/Addon/Dropdown/index.js +1 -1
  18. package/dist/cjs/ui/Appearance/Chromeless.js +1 -1
  19. package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -1
  20. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +1 -1
  21. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
  22. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper.js +1 -1
  23. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -1
  24. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +5 -6
  25. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
  26. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper.js +1 -1
  27. package/dist/cjs/ui/ChromeCollapsed/index.js +1 -1
  28. package/dist/cjs/ui/ContextPanel/index.js +1 -1
  29. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +6 -7
  30. package/dist/cjs/ui/EditorContentContainer/styles/expandStyles.js +10 -1
  31. package/dist/cjs/ui/EditorContentContainer/styles/list.js +12 -14
  32. package/dist/cjs/ui/EditorContentContainer/styles/syncBlockStyles.js +12 -20
  33. package/dist/cjs/ui/EditorContentContainer/styles/tableStyles.js +1 -10
  34. package/dist/cjs/ui/PluginSlot/index.js +1 -1
  35. package/dist/cjs/ui/Toolbar/ToolbarInner.js +1 -1
  36. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
  37. package/dist/cjs/ui/WithFlash/index.js +1 -1
  38. package/dist/cjs/version-wrapper.js +1 -1
  39. package/dist/es2019/composable-editor/core-editor.js +1 -1
  40. package/dist/es2019/editor.js +1 -1
  41. package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +1 -1
  42. package/dist/es2019/ui/Addon/Dropdown/index.js +1 -1
  43. package/dist/es2019/ui/Appearance/Chromeless.js +1 -1
  44. package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
  45. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +1 -1
  46. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
  47. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper.js +1 -1
  48. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -1
  49. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +5 -8
  50. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
  51. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper.js +1 -1
  52. package/dist/es2019/ui/ChromeCollapsed/index.js +1 -1
  53. package/dist/es2019/ui/ContextPanel/index.js +1 -1
  54. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +9 -10
  55. package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +9 -0
  56. package/dist/es2019/ui/EditorContentContainer/styles/list.js +12 -14
  57. package/dist/es2019/ui/EditorContentContainer/styles/syncBlockStyles.js +10 -20
  58. package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +0 -9
  59. package/dist/es2019/ui/PluginSlot/index.js +1 -1
  60. package/dist/es2019/ui/Toolbar/ToolbarInner.js +1 -1
  61. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
  62. package/dist/es2019/ui/WithFlash/index.js +1 -1
  63. package/dist/es2019/version-wrapper.js +1 -1
  64. package/dist/esm/composable-editor/core-editor.js +1 -1
  65. package/dist/esm/editor.js +1 -1
  66. package/dist/esm/ui/Addon/ClickAreaBlock/index.js +1 -1
  67. package/dist/esm/ui/Addon/Dropdown/index.js +1 -1
  68. package/dist/esm/ui/Appearance/Chromeless.js +1 -1
  69. package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
  70. package/dist/esm/ui/Appearance/Comment/Toolbar.js +1 -1
  71. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
  72. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper.js +1 -1
  73. package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -1
  74. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +5 -6
  75. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
  76. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper.js +1 -1
  77. package/dist/esm/ui/ChromeCollapsed/index.js +1 -1
  78. package/dist/esm/ui/ContextPanel/index.js +1 -1
  79. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +9 -10
  80. package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +9 -0
  81. package/dist/esm/ui/EditorContentContainer/styles/list.js +12 -14
  82. package/dist/esm/ui/EditorContentContainer/styles/syncBlockStyles.js +11 -17
  83. package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +0 -9
  84. package/dist/esm/ui/PluginSlot/index.js +1 -1
  85. package/dist/esm/ui/Toolbar/ToolbarInner.js +1 -1
  86. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
  87. package/dist/esm/ui/WithFlash/index.js +1 -1
  88. package/dist/esm/version-wrapper.js +1 -1
  89. package/dist/types/ui/EditorContentContainer/styles/expandStyles.d.ts +1 -0
  90. package/dist/types/ui/EditorContentContainer/styles/syncBlockStyles.d.ts +0 -1
  91. package/dist/types/ui/EditorContentContainer/styles/tableStyles.d.ts +0 -1
  92. package/dist/types/ui/WithHelpTrigger/index.d.ts +1 -1
  93. package/dist/types-ts4.5/ui/EditorContentContainer/styles/expandStyles.d.ts +1 -0
  94. package/dist/types-ts4.5/ui/EditorContentContainer/styles/syncBlockStyles.d.ts +0 -1
  95. package/dist/types-ts4.5/ui/EditorContentContainer/styles/tableStyles.d.ts +0 -1
  96. package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +1 -1
  97. package/package.json +5 -11
@@ -5,7 +5,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
5
5
  */
6
6
  import React, { useEffect, useMemo, useRef, useState } from 'react';
7
7
 
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
9
9
  import { jsx } from '@emotion/react';
10
10
  import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
11
11
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
@@ -8,7 +8,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
8
8
 
9
9
  import React, { useImperativeHandle, useRef } from 'react';
10
10
 
11
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
12
12
  import { css, jsx, useTheme } from '@emotion/react';
13
13
  import classnames from 'classnames';
14
14
  import { injectIntl } from 'react-intl-next';
@@ -16,7 +16,6 @@ import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
16
16
  import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
17
17
  import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
18
18
  import { fg } from '@atlaskit/platform-feature-flags';
19
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
20
19
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
21
20
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
22
21
  // Ignored via go/ees005
@@ -212,6 +211,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
212
211
  var contentAreaRef = useRef(null);
213
212
  var containerRef = useRef(null);
214
213
  var allowScrollGutter = (_props$editorAPI = props.editorAPI) === null || _props$editorAPI === void 0 || (_props$editorAPI = _props$editorAPI.base) === null || _props$editorAPI === void 0 || (_props$editorAPI = _props$editorAPI.sharedState.currentState()) === null || _props$editorAPI === void 0 ? void 0 : _props$editorAPI.allowScrollGutter;
214
+ var contentAreaMaxWidth = getTotalPadding() + (!fullWidthMode ? maxWidthMode ? akEditorUltraWideLayoutWidth : theme.layoutMaxWidth : akEditorFullWidthLayoutWidth);
215
215
  useImperativeHandle(ref, function () {
216
216
  return {
217
217
  get scrollContainer() {
@@ -253,9 +253,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
253
253
  // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
254
254
  expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) ? 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],
255
255
  style: {
256
- '--ak-editor-content-area-max-width': !fullWidthMode ? Boolean(maxWidthMode) && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) ? // @ts-ignore
257
- "".concat(akEditorUltraWideLayoutWidth + getTotalPadding(), "px") : // @ts-ignore
258
- "".concat(theme.layoutMaxWidth + getTotalPadding(), "px") : "".concat(akEditorFullWidthLayoutWidth + getTotalPadding(), "px")
256
+ '--ak-editor-content-area-max-width': "".concat(contentAreaMaxWidth, "px")
259
257
  }
260
258
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
261
259
  ,
@@ -263,7 +261,8 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
263
261
  "data-editor-editable-content": true,
264
262
  role: "region",
265
263
  "aria-label": props.intl.formatMessage(messages.editableContentLabel),
266
- ref: contentAreaRef
264
+ ref: contentAreaRef,
265
+ "data-vc": "editor-content-area-region"
267
266
  }, jsx("div", {
268
267
  css: [editorContentGutterStyles,
269
268
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
@@ -6,7 +6,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
6
6
 
7
7
  import React, { useEffect, useCallback, useState } from 'react';
8
8
 
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
10
10
  import { jsx } from '@emotion/react';
11
11
  import { injectIntl } from 'react-intl-next';
12
12
  import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  */
6
6
  import React from 'react';
7
7
 
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import { akEditorFloatingDialogZIndex, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
11
11
  import { MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT } from './MainToolbar';
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
12
12
  */
13
13
  import React, { PureComponent } from 'react';
14
14
 
15
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
16
16
  import { jsx } from '@emotion/react';
17
17
  import { injectIntl } from 'react-intl-next';
18
18
  import { messages } from './messages';
@@ -15,7 +15,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
15
15
  */
16
16
  import React from 'react';
17
17
 
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
19
19
  import { css, jsx } from '@emotion/react';
20
20
  import { injectIntl } from 'react-intl-next';
21
21
  import Transition from 'react-transition-group/Transition';
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
6
6
  */
7
7
  import React from 'react';
8
8
 
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
10
10
  import { jsx, useTheme } from '@emotion/react';
11
11
  import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
12
12
  import { richMediaClassName, tableSharedStyle } from '@atlaskit/editor-common/styles';
@@ -32,7 +32,7 @@ import { dangerDateStyles, dateStyles, dateVanillaStyles } from './styles/dateSt
32
32
  import { editorUGCSmallText, editorUGCTokensDefault, editorUGCTokensRefreshed } from './styles/editorUGCTokenStyles';
33
33
  import { embedCardStyles } from './styles/embedCardStyles';
34
34
  import { emojiDangerStyles, emojiStyles, getDenseEmojiStyles, getScaledDenseEmojiStyles, scaledEmojiStyles } from './styles/emoji';
35
- import { expandStyles, expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes, expandStylesMixin_fg_platform_visual_refresh_icons, expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes, getDenseExpandTitleStyles } from './styles/expandStyles';
35
+ import { expandStyles, expandStylesMixin_experiment_platform_editor_chromeless_expand_fix, expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes, expandStylesMixin_fg_platform_visual_refresh_icons, expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes, getDenseExpandTitleStyles } from './styles/expandStyles';
36
36
  import { extensionDiffStyles, getExtensionStyles } from './styles/extensionStyles';
37
37
  import { findReplaceStyles, findReplaceStylesNewWithA11Y, findReplaceStylesNewWithCodeblockColorContrastFix, findReplaceStylesWithCodeblockColorContrastFix } from './styles/findReplaceStyles';
38
38
  import { firstBlockNodeStyles } from './styles/firstBlockNodeStyles';
@@ -59,8 +59,8 @@ import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles
59
59
  import { shadowStyles } from './styles/shadowStyles';
60
60
  import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, showDiffDeletedNodeStylesNew, smartCardDiffStyles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
61
61
  import { statusDangerStyles, statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
62
- import { syncBlockStyles, syncBlockFirstNodeStyles, syncBlockOverflowStyles, syncBlockDraggingStyles } from './styles/syncBlockStyles';
63
- import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes } from './styles/tableStyles';
62
+ import { syncBlockStyles, syncBlockFirstNodeStyles, syncBlockOverflowStyles } from './styles/syncBlockStyles';
63
+ import { tableCommentEditorStyles, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes } from './styles/tableStyles';
64
64
  import { decisionDangerStyles, decisionIconWithVisualRefresh, decisionStyles, getDenseTasksAndDecisionsStyles, taskItemCheckboxStyles, taskItemCheckboxStylesWithBlockTaskItem, taskItemNextCheckboxStyles, taskItemStyles, taskItemStylesWithBlockTaskItem, tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
65
65
  import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
66
66
  import { textColorStyles } from './styles/textColorStyles';
@@ -115,6 +115,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
115
115
  colorMode = _useThemeObserver.colorMode;
116
116
  var isFullPage = appearance === 'full-page' || appearance === 'full-width' || (expValEqualsNoExposure('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEqualsNoExposure('confluence_max_width_content_appearance', 'isEnabled', true)) && appearance === 'max';
117
117
  var isComment = appearance === 'comment';
118
+ var isChromeless = appearance === 'chromeless';
118
119
  var baseFontSize = getBaseFontSize(appearance, contentMode);
119
120
  var style = editorExperiment('platform_editor_preview_panel_responsiveness', true, {
120
121
  exposure: true
@@ -295,7 +296,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
295
296
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
296
297
  expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes,
297
298
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
298
- expandStylesMixin_fg_platform_visual_refresh_icons, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
299
+ expandStylesMixin_fg_platform_visual_refresh_icons, isChromeless && expValEquals('platform_editor_chromeless_expand_fix', 'isEnabled', true) &&
300
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
301
+ expandStylesMixin_experiment_platform_editor_chromeless_expand_fix, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
299
302
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
300
303
  findReplaceStylesNewWithA11Y :
301
304
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -361,9 +364,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
361
364
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
362
365
  editorExperiment('platform_synced_block', true) && syncBlockOverflowStyles, editorExperiment('platform_synced_block', true) &&
363
366
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
364
- syncBlockFirstNodeStyles, editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_5') &&
365
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
366
- syncBlockDraggingStyles,
367
+ syncBlockFirstNodeStyles,
367
368
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
368
369
  editorExperiment('advanced_layouts', true) && layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ?
369
370
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -499,8 +500,6 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
499
500
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
500
501
  tableContainerStyles,
501
502
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
502
- !fg('platform_editor_table_container_y_overflow_fix') && tableContainerOverflowY,
503
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
504
503
  tableSharedStyle(),
505
504
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
506
505
  tableEmptyRowStyles,
@@ -296,6 +296,15 @@ export var expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes = css(
296
296
  }
297
297
  });
298
298
 
299
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
300
+ export var expandStylesMixin_experiment_platform_editor_chromeless_expand_fix = css({
301
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
302
+ '.ProseMirror > .ak-editor-expand': {
303
+ marginLeft: 0,
304
+ marginRight: 0
305
+ }
306
+ });
307
+
299
308
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
300
309
  export var expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes = css({
301
310
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
@@ -203,28 +203,26 @@ export var getDenseListStyles = function getDenseListStyles(baseFontSize) {
203
203
  export var listItemHiddenMarkerStyles = css({
204
204
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
205
205
  '.ProseMirror': {
206
- // Hide list markers for wrapper list items (items containing only nested lists)
207
- // Wrapper items for bullet lists: li with only ul child
206
+ // Hide markers and remove spacing for wrapper list items (items containing only nested lists)
208
207
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
209
- 'li:has(> ul:only-child)': {
208
+ 'li:has(> ul:only-child), li:has(> ol:only-child), li:has(> div[data-node-type="actionList"]:only-child)': {
210
209
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
211
- listStyleType: 'none !important'
212
- },
213
- // Wrapper items for ordered lists: li with only ol child
214
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
215
- 'li:has(> ol:only-child)': {
210
+ listStyleType: 'none !important',
211
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
212
+ marginTop: '0 !important',
216
213
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
217
- listStyleType: 'none !important'
214
+ marginBottom: '0 !important'
218
215
  },
219
- // Wrapper items for task lists: li with only div[data-node-type="actionList"] child
216
+ // Remove margin from nested lists inside wrapper list items to avoid double spacing
220
217
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
221
- 'li:has(> div[data-node-type="actionList"]:only-child)': {
218
+ 'li:has(> ul:only-child) > ul, li:has(> ol:only-child) > ol, li:has(> div[data-node-type="actionList"]:only-child) > div[data-node-type="actionList"]': {
222
219
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
223
- listStyleType: 'none !important'
220
+ marginTop: '0 !important'
224
221
  },
225
- // Hide checkbox for wrapper task list items
222
+ // Collapse wrapper task items (empty task items followed by a sibling nested task list)
223
+ // Only hides empty task items that are actual wrappers, not regular empty task items being edited
226
224
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
227
- 'li:has(> div[data-node-type="actionList"]:only-child) input[type="checkbox"]': {
225
+ '[data-prosemirror-node-name="taskItem"]:has([data-empty="true"]):has(+ [data-node-type="actionList"])': {
228
226
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
229
227
  display: 'none !important'
230
228
  }
@@ -1,4 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ var _$concat$concat;
2
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
3
4
  import { css, keyframes } from '@emotion/react';
4
5
  import { BodiedSyncBlockSharedCssClassName, SyncBlockSharedCssClassName, SyncBlockLabelSharedCssClassName, SyncBlockStateCssClassName } from '@atlaskit/editor-common/sync-block';
@@ -10,7 +11,7 @@ export var syncBlockStyles = css(_defineProperty({
10
11
  inherits: 'false'
11
12
  },
12
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
13
- '.ProseMirror': _defineProperty(_defineProperty(_defineProperty({}, ".".concat(SyncBlockSharedCssClassName.prefix, ", .").concat(BodiedSyncBlockSharedCssClassName.prefix), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
14
+ '.ProseMirror': _defineProperty(_defineProperty(_defineProperty({}, ".".concat(SyncBlockSharedCssClassName.prefix, ", .").concat(BodiedSyncBlockSharedCssClassName.prefix), (_$concat$concat = {
14
15
  position: 'relative',
15
16
  cursor: 'pointer',
16
17
  borderRadius: "var(--ds-radius-small, 3px)",
@@ -30,7 +31,7 @@ export var syncBlockStyles = css(_defineProperty({
30
31
  visibility: 'visible',
31
32
  transition: 'opacity 200ms ease-in, visibility 200ms ease-in'
32
33
  })
33
- }, "&.".concat(BodiedSyncBlockSharedCssClassName.selectionInside), _defineProperty({
34
+ }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_$concat$concat, "&.".concat(BodiedSyncBlockSharedCssClassName.selectionInside), _defineProperty({
34
35
  boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)")
35
36
  }, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
36
37
  opacity: 1,
@@ -104,12 +105,17 @@ export var syncBlockStyles = css(_defineProperty({
104
105
  }, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
105
106
  opacity: 0,
106
107
  visibility: 'hidden'
108
+ })), "&.".concat(SyncBlockStateCssClassName.draggingClassName), _defineProperty({
109
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)")
110
+ }, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
111
+ opacity: 1,
112
+ visibility: 'visible'
107
113
  })), ".".concat(BodiedSyncBlockSharedCssClassName.content), {
108
114
  padding: '0 18px',
109
115
  cursor: 'text'
110
- }), ".".concat(SyncBlockSharedCssClassName.renderer), {
116
+ }), _defineProperty(_$concat$concat, ".".concat(SyncBlockSharedCssClassName.renderer), {
111
117
  padding: '0 18px'
112
- })), ".".concat(BodiedSyncBlockSharedCssClassName.content), {
118
+ }))), ".".concat(BodiedSyncBlockSharedCssClassName.content), {
113
119
  // First child node that has drag handle widget next to it is overridden with marginTop: 0, see globalStyles in editor-plugin-block-controls/src/ui/global-styles.tsx
114
120
  // Hence we set marginTop: 0 when by default to avoid flickering when hovering on and off the first node
115
121
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
@@ -159,16 +165,4 @@ export var syncBlockOverflowStyles = css({
159
165
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
160
166
  export var syncBlockFirstNodeStyles = css(_defineProperty({}, ".ProseMirror > .fabric-editor-breakout-mark:first-child", _defineProperty({}, ".".concat(SyncBlockSharedCssClassName.prefix, ", .").concat(BodiedSyncBlockSharedCssClassName.prefix), {
161
167
  marginTop: 0
162
- })));
163
-
164
- // combine this with the selection inside styles when cleaning up platform_synced_block_patch_5
165
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
166
- export var syncBlockDraggingStyles = css({
167
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
168
- '.ProseMirror': _defineProperty({}, ".".concat(SyncBlockSharedCssClassName.prefix, ", .").concat(BodiedSyncBlockSharedCssClassName.prefix), _defineProperty({}, "&.".concat(SyncBlockStateCssClassName.draggingClassName), _defineProperty({
169
- boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)")
170
- }, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
171
- opacity: 1,
172
- visibility: 'visible'
173
- })))
174
- });
168
+ })));
@@ -53,15 +53,6 @@ export var tableContainerStyles = css({
53
53
  }
54
54
  });
55
55
 
56
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
57
- export var tableContainerOverflowY = css({
58
- /* Fix for HOT-119925: Ensure table containers have proper width constraints and overflow handling */
59
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
60
- '.ProseMirror .pm-table-wrapper': {
61
- overflowY: 'visible'
62
- }
63
- });
64
-
65
56
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
66
57
  export var tableEmptyRowStyles = css({
67
58
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import React from 'react';
6
6
 
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import isEqual from 'lodash/isEqual';
10
10
  import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
12
12
  */
13
13
  import React from 'react';
14
14
 
15
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
16
16
  import { css, jsx } from '@emotion/react';
17
17
  import isEqual from 'lodash/isEqual';
18
18
  import { isSSR } from '@atlaskit/editor-common/core-utils';
@@ -5,7 +5,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
5
5
  */
6
6
  import React, { useMemo } from 'react';
7
7
 
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import { isSSR } from '@atlaskit/editor-common/core-utils';
11
11
  import { ToolbarSize } from '@atlaskit/editor-common/types';
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
12
12
  */
13
13
  import React from 'react';
14
14
 
15
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
16
16
  import { css, jsx, keyframes } from '@emotion/react';
17
17
  var pulseBackground = keyframes({
18
18
  '50%': {
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "217.4.2";
2
+ export var version = "217.4.4";
@@ -9,4 +9,5 @@ export declare const expandStyles: SerializedStyles;
9
9
  export declare const getDenseExpandTitleStyles: (baseFontSize?: number) => SerializedStyles;
10
10
  export declare const expandStylesMixin_fg_platform_visual_refresh_icons: SerializedStyles;
11
11
  export declare const expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes: SerializedStyles;
12
+ export declare const expandStylesMixin_experiment_platform_editor_chromeless_expand_fix: SerializedStyles;
12
13
  export declare const expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes: SerializedStyles;
@@ -2,4 +2,3 @@ import { type SerializedStyles } from '@emotion/react';
2
2
  export declare const syncBlockStyles: SerializedStyles;
3
3
  export declare const syncBlockOverflowStyles: SerializedStyles;
4
4
  export declare const syncBlockFirstNodeStyles: SerializedStyles;
5
- export declare const syncBlockDraggingStyles: SerializedStyles;
@@ -3,5 +3,4 @@ export declare const tableLayoutFixes: SerializedStyles;
3
3
  export declare const tableCommentEditorMarginOverride: SerializedStyles;
4
4
  export declare const tableCommentEditorStyles: SerializedStyles;
5
5
  export declare const tableContainerStyles: SerializedStyles;
6
- export declare const tableContainerOverflowY: SerializedStyles;
7
6
  export declare const tableEmptyRowStyles: SerializedStyles;
@@ -4,7 +4,7 @@ interface WithHelpTriggerProps {
4
4
  render: (openHelp: () => void) => React.ReactNode;
5
5
  }
6
6
  declare class WithHelpTrigger extends React.Component<WithHelpTriggerProps> {
7
- static contextType: React.Context<{}>;
7
+ static contextType: React.Context<Record<string, unknown>>;
8
8
  context: {
9
9
  editorActions: EditorActions;
10
10
  };
@@ -9,4 +9,5 @@ export declare const expandStyles: SerializedStyles;
9
9
  export declare const getDenseExpandTitleStyles: (baseFontSize?: number) => SerializedStyles;
10
10
  export declare const expandStylesMixin_fg_platform_visual_refresh_icons: SerializedStyles;
11
11
  export declare const expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes: SerializedStyles;
12
+ export declare const expandStylesMixin_experiment_platform_editor_chromeless_expand_fix: SerializedStyles;
12
13
  export declare const expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes: SerializedStyles;
@@ -2,4 +2,3 @@ import { type SerializedStyles } from '@emotion/react';
2
2
  export declare const syncBlockStyles: SerializedStyles;
3
3
  export declare const syncBlockOverflowStyles: SerializedStyles;
4
4
  export declare const syncBlockFirstNodeStyles: SerializedStyles;
5
- export declare const syncBlockDraggingStyles: SerializedStyles;
@@ -3,5 +3,4 @@ export declare const tableLayoutFixes: SerializedStyles;
3
3
  export declare const tableCommentEditorMarginOverride: SerializedStyles;
4
4
  export declare const tableCommentEditorStyles: SerializedStyles;
5
5
  export declare const tableContainerStyles: SerializedStyles;
6
- export declare const tableContainerOverflowY: SerializedStyles;
7
6
  export declare const tableEmptyRowStyles: SerializedStyles;
@@ -4,7 +4,7 @@ interface WithHelpTriggerProps {
4
4
  render: (openHelp: () => void) => React.ReactNode;
5
5
  }
6
6
  declare class WithHelpTrigger extends React.Component<WithHelpTriggerProps> {
7
- static contextType: React.Context<{}>;
7
+ static contextType: React.Context<Record<string, unknown>>;
8
8
  context: {
9
9
  editorActions: EditorActions;
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "217.4.3",
3
+ "version": "217.4.5",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -66,9 +66,9 @@
66
66
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
67
67
  "@atlaskit/react-ufo": "^5.4.0",
68
68
  "@atlaskit/task-decision": "^19.3.0",
69
- "@atlaskit/tmp-editor-statsig": "^40.3.0",
69
+ "@atlaskit/tmp-editor-statsig": "^40.6.0",
70
70
  "@atlaskit/tokens": "^11.1.0",
71
- "@atlaskit/tooltip": "^20.14.0",
71
+ "@atlaskit/tooltip": "^21.0.0",
72
72
  "@atlaskit/width-detector": "^5.0.0",
73
73
  "@babel/runtime": "^7.0.0",
74
74
  "@emotion/react": "^11.7.1",
@@ -83,7 +83,7 @@
83
83
  "uuid": "^3.1.0"
84
84
  },
85
85
  "peerDependencies": {
86
- "@atlaskit/editor-common": "^112.5.0",
86
+ "@atlaskit/editor-common": "^112.6.0",
87
87
  "@atlaskit/link-provider": "^4.2.0",
88
88
  "@atlaskit/media-core": "^37.0.0",
89
89
  "react": "^18.2.0",
@@ -107,7 +107,7 @@
107
107
  "@atlaskit/media-integration-test-helpers": "workspace:^",
108
108
  "@atlaskit/media-test-helpers": "^40.0.0",
109
109
  "@atlaskit/modal-dialog": "^14.11.0",
110
- "@atlaskit/renderer": "^128.1.0",
110
+ "@atlaskit/renderer": "^128.2.0",
111
111
  "@atlaskit/section-message": "^8.12.0",
112
112
  "@atlaskit/synchrony-test-helpers": "workspace:^",
113
113
  "@atlaskit/toggle": "^15.2.0",
@@ -293,9 +293,6 @@
293
293
  "platform_editor_toolbar_aifc_placement_overridden": {
294
294
  "type": "boolean"
295
295
  },
296
- "platform_editor_table_container_y_overflow_fix": {
297
- "type": "boolean"
298
- },
299
296
  "platform_editor_comments_border_radius": {
300
297
  "type": "boolean"
301
298
  },
@@ -317,9 +314,6 @@
317
314
  "platform_editor_a11y_9262": {
318
315
  "type": "boolean"
319
316
  },
320
- "platform_synced_block_patch_5": {
321
- "type": "boolean"
322
- },
323
317
  "platform_editor_max_width_mode_resize_fix": {
324
318
  "type": "boolean"
325
319
  }