@atlaskit/editor-core 210.1.5 → 210.1.7

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 (129) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/afm-cc/tsconfig.json +2 -2
  3. package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -2
  4. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +16 -9
  5. package/dist/cjs/ui/ContentStyles/index.js +3 -3
  6. package/dist/cjs/ui/ContentStyles/status.js +2 -2
  7. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +7 -9
  8. package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +1 -174
  9. package/dist/cjs/version-wrapper.js +1 -1
  10. package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -2
  11. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +19 -12
  12. package/dist/es2019/ui/ContentStyles/index.js +5 -5
  13. package/dist/es2019/ui/ContentStyles/status.js +2 -2
  14. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +8 -10
  15. package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -225
  16. package/dist/es2019/version-wrapper.js +1 -1
  17. package/dist/esm/ui/Appearance/Comment/Comment.js +1 -2
  18. package/dist/esm/ui/Appearance/FullPage/FullPage.js +16 -9
  19. package/dist/esm/ui/ContentStyles/index.js +4 -4
  20. package/dist/esm/ui/ContentStyles/status.js +2 -2
  21. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +8 -10
  22. package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -173
  23. package/dist/esm/version-wrapper.js +1 -1
  24. package/dist/types/CollapsedEditor/index.d.ts +1 -1
  25. package/dist/types/composable-editor/BaseThemeWrapper.d.ts +1 -1
  26. package/dist/types/composable-editor/editor-internal.d.ts +6 -6
  27. package/dist/types/composable-editor/hooks/useProviders.d.ts +4 -4
  28. package/dist/types/create-editor/ErrorBoundary.d.ts +4 -4
  29. package/dist/types/create-editor/ReactEditorView/useDispatchTransaction.d.ts +2 -2
  30. package/dist/types/create-editor/ReactEditorView.d.ts +16 -16
  31. package/dist/types/create-editor/create-schema.d.ts +1 -1
  32. package/dist/types/create-editor/create-universal-preset.d.ts +203 -194
  33. package/dist/types/create-editor/editorStateNotificationPlugin.d.ts +2 -2
  34. package/dist/types/create-editor/get-plugins.d.ts +13 -13
  35. package/dist/types/editor-appearances/FullPageEditor.d.ts +1 -1
  36. package/dist/types/presets/default.d.ts +21 -21
  37. package/dist/types/presets/universal.d.ts +214 -205
  38. package/dist/types/presets/useUniversalPreset.d.ts +202 -193
  39. package/dist/types/test-utils.d.ts +6 -6
  40. package/dist/types/types/editor-appearance-component.d.ts +23 -23
  41. package/dist/types/types/editor-config.d.ts +9 -9
  42. package/dist/types/types/editor-instance.d.ts +7 -7
  43. package/dist/types/types/editor-onchange.d.ts +1 -1
  44. package/dist/types/types/editor-props.d.ts +100 -100
  45. package/dist/types/types/i18n.d.ts +2 -2
  46. package/dist/types/ui/Addon/ClickAreaBlock/index.d.ts +1 -1
  47. package/dist/types/ui/Addon/Dropdown/index.d.ts +1 -1
  48. package/dist/types/ui/Addon/types.d.ts +1 -1
  49. package/dist/types/ui/Appearance/Chromeless.d.ts +6 -6
  50. package/dist/types/ui/Appearance/Comment/Toolbar.d.ts +2 -2
  51. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +3 -3
  52. package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +11 -11
  53. package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +12 -12
  54. package/dist/types/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +1 -1
  55. package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +2 -2
  56. package/dist/types/ui/Appearance/FullPage/types.d.ts +2 -2
  57. package/dist/types/ui/ChromeCollapsed/index.d.ts +2 -2
  58. package/dist/types/ui/CollapsedEditor/index.d.ts +2 -2
  59. package/dist/types/ui/ContentStyles/index.d.ts +4 -4
  60. package/dist/types/ui/ContextPanel/index.d.ts +4 -4
  61. package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +3 -3
  62. package/dist/types/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +0 -1
  63. package/dist/types/ui/PluginSlot/index.d.ts +10 -10
  64. package/dist/types/ui/PluginSlot/mount-plugin-hooks.d.ts +1 -1
  65. package/dist/types/ui/Toolbar/Toolbar.d.ts +2 -2
  66. package/dist/types/ui/Toolbar/ToolbarPortal.d.ts +2 -2
  67. package/dist/types/ui/Toolbar/toolbar-types.d.ts +11 -11
  68. package/dist/types/ui/ToolbarHelp/index.d.ts +1 -1
  69. package/dist/types/utils/deprecation-warnings.d.ts +2 -2
  70. package/dist/types/utils/performance/components/RenderTracking.d.ts +1 -1
  71. package/dist/types/utils/performance/plugin-performance-report.d.ts +4 -4
  72. package/dist/types/utils/performance/simple-measure-to-entries.d.ts +1 -1
  73. package/dist/types/utils/performance/track-transactions.d.ts +1 -1
  74. package/dist/types-ts4.5/CollapsedEditor/index.d.ts +1 -1
  75. package/dist/types-ts4.5/composable-editor/BaseThemeWrapper.d.ts +1 -1
  76. package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +7 -7
  77. package/dist/types-ts4.5/composable-editor/hooks/useProviders.d.ts +4 -4
  78. package/dist/types-ts4.5/create-editor/ErrorBoundary.d.ts +4 -4
  79. package/dist/types-ts4.5/create-editor/ReactEditorView/useDispatchTransaction.d.ts +2 -2
  80. package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +16 -16
  81. package/dist/types-ts4.5/create-editor/create-schema.d.ts +1 -1
  82. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +239 -230
  83. package/dist/types-ts4.5/create-editor/editorStateNotificationPlugin.d.ts +2 -2
  84. package/dist/types-ts4.5/create-editor/get-plugins.d.ts +13 -13
  85. package/dist/types-ts4.5/editor-appearances/FullPageEditor.d.ts +1 -1
  86. package/dist/types-ts4.5/presets/default.d.ts +21 -21
  87. package/dist/types-ts4.5/presets/universal.d.ts +250 -241
  88. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +238 -229
  89. package/dist/types-ts4.5/test-utils.d.ts +6 -6
  90. package/dist/types-ts4.5/types/editor-appearance-component.d.ts +23 -23
  91. package/dist/types-ts4.5/types/editor-config.d.ts +9 -9
  92. package/dist/types-ts4.5/types/editor-instance.d.ts +7 -7
  93. package/dist/types-ts4.5/types/editor-onchange.d.ts +1 -1
  94. package/dist/types-ts4.5/types/editor-props.d.ts +100 -100
  95. package/dist/types-ts4.5/types/i18n.d.ts +2 -2
  96. package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +1 -1
  97. package/dist/types-ts4.5/ui/Addon/Dropdown/index.d.ts +1 -1
  98. package/dist/types-ts4.5/ui/Addon/types.d.ts +1 -1
  99. package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +6 -6
  100. package/dist/types-ts4.5/ui/Appearance/Comment/Toolbar.d.ts +2 -2
  101. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +3 -3
  102. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +13 -13
  103. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +12 -12
  104. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +1 -1
  105. package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +2 -2
  106. package/dist/types-ts4.5/ui/Appearance/FullPage/types.d.ts +2 -2
  107. package/dist/types-ts4.5/ui/ChromeCollapsed/index.d.ts +2 -2
  108. package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +2 -2
  109. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +4 -4
  110. package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +4 -4
  111. package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer.d.ts +3 -3
  112. package/dist/types-ts4.5/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +0 -1
  113. package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +10 -10
  114. package/dist/types-ts4.5/ui/PluginSlot/mount-plugin-hooks.d.ts +1 -1
  115. package/dist/types-ts4.5/ui/Toolbar/Toolbar.d.ts +2 -2
  116. package/dist/types-ts4.5/ui/Toolbar/ToolbarPortal.d.ts +2 -2
  117. package/dist/types-ts4.5/ui/Toolbar/toolbar-types.d.ts +11 -11
  118. package/dist/types-ts4.5/ui/ToolbarHelp/index.d.ts +1 -1
  119. package/dist/types-ts4.5/utils/deprecation-warnings.d.ts +2 -2
  120. package/dist/types-ts4.5/utils/performance/components/RenderTracking.d.ts +1 -1
  121. package/dist/types-ts4.5/utils/performance/plugin-performance-report.d.ts +4 -4
  122. package/dist/types-ts4.5/utils/performance/simple-measure-to-entries.d.ts +1 -1
  123. package/dist/types-ts4.5/utils/performance/track-transactions.d.ts +1 -1
  124. package/package.json +5 -18
  125. package/dist/cjs/ui/Appearance/FullPage/getEditorViewModeSync.js +0 -43
  126. package/dist/es2019/ui/Appearance/FullPage/getEditorViewModeSync.js +0 -33
  127. package/dist/esm/ui/Appearance/FullPage/getEditorViewModeSync.js +0 -36
  128. package/dist/types/ui/Appearance/FullPage/getEditorViewModeSync.d.ts +0 -3
  129. package/dist/types-ts4.5/ui/Appearance/FullPage/getEditorViewModeSync.d.ts +0 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 210.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`977517b25c6f3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/977517b25c6f3) -
8
+ Cleanup synchronous view mode check that is no longer required
9
+ - [`e229628ac96dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e229628ac96dd) -
10
+ [ED-28430] clean up FG platform_editor_find_and_replace_improvements_1 for find & replace
11
+ additional fixes
12
+ - [`b1a4bc3fda78c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b1a4bc3fda78c) -
13
+ [EDITOR-1128] clean up fg platform_editor_editor_container_a11y_focus
14
+ - [`0fdcb6f2f96fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fdcb6f2f96fd) -
15
+ Sorted type and interface props to improve Atlaskit docs
16
+ - Updated dependencies
17
+
18
+ ## 210.1.6
19
+
20
+ ### Patch Changes
21
+
22
+ - [`4bc05c9f87780`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4bc05c9f87780) -
23
+ [ux] Fix toolbar blink CLS regression
24
+ - Updated dependencies
25
+
3
26
  ## 210.1.5
4
27
 
5
28
  ### Patch Changes
@@ -3,9 +3,9 @@
3
3
  "compilerOptions": {
4
4
  "declaration": true,
5
5
  "target": "es5",
6
- "composite": true,
7
6
  "outDir": "../../../../../confluence/tsDist/@atlaskit__editor-core",
8
- "rootDir": "../"
7
+ "rootDir": "../",
8
+ "composite": true
9
9
  },
10
10
  "include": [
11
11
  "../src/**/*.ts",
@@ -22,7 +22,6 @@ var _ui = require("@atlaskit/editor-common/ui");
22
22
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
23
23
  var _commonStyles = require("@atlaskit/editor-plugins/table/ui/common-styles");
24
24
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
25
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
26
25
  var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
27
26
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
28
27
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
@@ -299,7 +298,7 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
299
298
  // so need to set overflow-y as auto to make sure the content area is scrollable
300
299
  overflowY: 'auto'
301
300
  }) : null],
302
- isScrollable: maxHeight && (0, _platformFeatureFlags.fg)('platform_editor_editor_container_a11y_focus') ? true : undefined
301
+ isScrollable: maxHeight ? true : undefined
303
302
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
304
303
  ,
305
304
  className: (0, _classnames.default)('ak-editor-content-area', {
@@ -22,7 +22,6 @@ var _getPrimaryToolbarComponents = require("../../Toolbar/getPrimaryToolbarCompo
22
22
  var _FullPageContentArea = require("./FullPageContentArea");
23
23
  var _FullPageToolbar = require("./FullPageToolbar");
24
24
  var _FullPageToolbarNext = require("./FullPageToolbarNext");
25
- var _getEditorViewModeSync = require("./getEditorViewModeSync");
26
25
  var _StyledComponents = require("./StyledComponents");
27
26
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
28
27
  /**
@@ -113,15 +112,10 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
113
112
  primaryToolbarHookState = _useFullPageEditorPlu.primaryToolbarState,
114
113
  interactionState = _useFullPageEditorPlu.interactionState;
115
114
  var primaryToolbarState = (0, _getPrimaryToolbarComponents.getPrimaryToolbarComponents)(editorAPI, primaryToolbarHookState === null || primaryToolbarHookState === void 0 ? void 0 : primaryToolbarHookState.components);
116
- var viewMode = (0, _getEditorViewModeSync.getEditorViewMode)(editorViewModeState, props.preset);
117
115
  var hasHadInteraction = interactionState !== 'hasNotHadInteraction';
118
116
  var toolbarDocking = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(editorAPI, 'selectionToolbar.toolbarDocking', {
119
117
  disabled: (0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')
120
118
  });
121
- var _ref3 = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(editorAPI, 'userPreferences.preferences', {
122
- disabled: !(0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')
123
- }) || {},
124
- toolbarDockingPosition = _ref3.toolbarDockingPosition;
125
119
  if (!(0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')) {
126
120
  if (!toolbarDocking) {
127
121
  var _editorAPI$selectionT, _editorAPI$selectionT2;
@@ -132,13 +126,26 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
132
126
  toolbarDocking = (_editorAPI$selectionT = editorAPI === null || editorAPI === void 0 || (_editorAPI$selectionT2 = editorAPI.selectionToolbar) === null || _editorAPI$selectionT2 === void 0 || (_editorAPI$selectionT2 = _editorAPI$selectionT2.sharedState.currentState()) === null || _editorAPI$selectionT2 === void 0 ? void 0 : _editorAPI$selectionT2.toolbarDocking) !== null && _editorAPI$selectionT !== void 0 ? _editorAPI$selectionT : defaultDocking;
133
127
  }
134
128
  }
129
+ var _ref3 = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(editorAPI, 'userPreferences.preferences', {
130
+ disabled: !(0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')
131
+ }) || {},
132
+ toolbarDockingPosition = _ref3.toolbarDockingPosition;
133
+ if ((0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')) {
134
+ if (!toolbarDockingPosition) {
135
+ var _editorAPI$userPrefer, _editorAPI$userPrefer2;
136
+ // This is a workaround for the rendering issue with the selection toolbar
137
+ // when using useSharedPluginStateWithSelector the state is not yet
138
+ // available when the editor is first loaded.
139
+ // This causes the toolbar to blink creating a layout shift.
140
+ var defaultDockingPosition = props.__livePage ? 'none' : 'top';
141
+ toolbarDockingPosition = (_editorAPI$userPrefer = editorAPI === null || editorAPI === void 0 || (_editorAPI$userPrefer2 = editorAPI.userPreferences) === null || _editorAPI$userPrefer2 === void 0 || (_editorAPI$userPrefer2 = _editorAPI$userPrefer2.actions.getUserPreferences()) === null || _editorAPI$userPrefer2 === void 0 ? void 0 : _editorAPI$userPrefer2.toolbarDockingPosition) !== null && _editorAPI$userPrefer !== void 0 ? _editorAPI$userPrefer : defaultDockingPosition;
142
+ }
143
+ }
135
144
  var primaryToolbarComponents = props.primaryToolbarComponents;
136
145
  if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
137
146
  primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
138
147
  }
139
- var isEditorToolbarHidden =
140
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
141
- (0, _platformFeatureFlags.fg)('platform_editor_sync_editor_view_mode_state') && !(0, _platformFeatureFlags.fg)('platform_editor_sync_editor_view_mode_state_revert') ? viewMode === 'view' : (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
148
+ var isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
142
149
  var customPrimaryToolbarComponents = props.customPrimaryToolbarComponents;
143
150
  if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
144
151
  exposure: true
@@ -171,7 +171,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
171
171
  var legacyContentStyles = function legacyContentStyles(props) {
172
172
  return (0, _react2.css)(_templateObject0 || (_templateObject0 = (0, _taggedTemplateLiteral2.default)(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--resizer-handle-spacing: 12px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t--ak-editor--breakout-fallback-width: calc(\n\t\t100cqw - var(--ak-editor--breakout-full-page-guttering-padding)\n\t);\n\t--ak-editor--breakout-min-width: 100%;\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\n\t\t/* in full width appearances it's not possible to rely on cqw because it doesn't account for the page scrollbar, which depends on users system settings */\n\t\t--ak-editor--breakout-fallback-width: 100%;\n\t\t--ak-editor--breakout-min-width: 0px;\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t", "\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t */\n\t.ProseMirror-hideselection {\n\t\tcaret-color: transparent;\n\t}\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n /* Switch between the two icons based on the visual refresh feature gate */\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t/* For FullPage only when inside a table\n\tRelated code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\tIn the \"editorContentAreaContainerStyle\" function */\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), _editorSharedStyles.akEditorGutterPadding, (0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_preview_panel_responsiveness', 'isEnabled', true) ? (0, _react2.css)(_templateObject1 || (_templateObject1 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t\t\t\t@container editor-area (max-width: ", "px) {\n\t\t\t\t\t--ak-editor--large-gutter-padding: ", "px;\n\t\t\t\t}\n\t\t\t"])), _editorSharedStyles.akEditorFullPageNarrowBreakout, _editorSharedStyles.akEditorGutterPaddingReduced) : null, (0, _editorSharedStyles.editorFontSize)({
173
173
  theme: props.theme
174
- }), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", firstFloatingToolbarButtonStyles, _styles5.placeholderTextStyles, (0, _platformFeatureFlags.fg)('platform_editor_system_fake_text_highlight_colour') && _styles5.placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(props.typographyTheme), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), (0, _media.mediaStyles)(), (0, _layout.layoutStyles)(props.viewMode), _collab.telepointerStyle, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, mentionNodeStyles, (0, _platformFeatureFlags.fg)('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles, (0, _platformFeatureFlags.fg)('platform_editor_fix_emoji_style_selectors') ? emojiStylesWithSelectorFixes : emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ? _styles3.findReplaceStylesNewNoImportant : _styles3.findReplaceStylesNew : _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_blocktaskitem_node', 'isEnabled', true) ? _tasksAndDecisions.taskItemStylesWithBlockTaskItem : _tasksAndDecisions.taskItemStyles, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithVisualRefresh, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithoutVisualRefresh, (0, _status.statusStyles)(), (0, _status.statusNodeStyles)(), (0, _styles.annotationSharedStyles)(), (0, _styles.smartCardStyles)(), (0, _styles.getSmartCardSharedStyles)(), _date.dateStyles, _date.dateNodeStyles, (0, _styles.embedCardStyles)(), _styles.unsupportedStyles, _styles.resizerStyles, (0, _styles.pragmaticResizerStyles)(), (0, _styles.pragmaticStylesLayoutFirstNodeResizeHandleFix)(), (0, _styles.pragmaticResizerStylesForTooltip)(), (0, _styles.pragmaticResizerStylesWithReducedEditorGutter)(), (0, _aiPanels.aiPanelStyles)(props.colorMode), firstBlockNodeStylesNew, (0, _platformFeatureFlags.fg)('platform_editor_vanilla_codebidi_warning') && _codeBidiWarning.codeBidiWarningStyles, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
174
+ }), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", firstFloatingToolbarButtonStyles, _styles5.placeholderTextStyles, (0, _platformFeatureFlags.fg)('platform_editor_system_fake_text_highlight_colour') && _styles5.placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(props.typographyTheme), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), (0, _media.mediaStyles)(), (0, _layout.layoutStyles)(props.viewMode), _collab.telepointerStyle, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, mentionNodeStyles, (0, _platformFeatureFlags.fg)('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles, (0, _platformFeatureFlags.fg)('platform_editor_fix_emoji_style_selectors') ? emojiStylesWithSelectorFixes : emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? _styles3.findReplaceStylesNew : _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_blocktaskitem_node', 'isEnabled', true) ? _tasksAndDecisions.taskItemStylesWithBlockTaskItem : _tasksAndDecisions.taskItemStyles, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithVisualRefresh, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithoutVisualRefresh, (0, _status.statusStyles)(), (0, _status.statusNodeStyles)(), (0, _styles.annotationSharedStyles)(), (0, _styles.smartCardStyles)(), (0, _styles.getSmartCardSharedStyles)(), _date.dateStyles, _date.dateNodeStyles, (0, _styles.embedCardStyles)(), _styles.unsupportedStyles, _styles.resizerStyles, (0, _styles.pragmaticResizerStyles)(), (0, _styles.pragmaticStylesLayoutFirstNodeResizeHandleFix)(), (0, _styles.pragmaticResizerStylesForTooltip)(), (0, _styles.pragmaticResizerStylesWithReducedEditorGutter)(), (0, _aiPanels.aiPanelStyles)(props.colorMode), firstBlockNodeStylesNew, (0, _platformFeatureFlags.fg)('platform_editor_vanilla_codebidi_warning') && _codeBidiWarning.codeBidiWarningStyles, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
175
175
  };
176
176
  var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
177
177
  return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
@@ -201,8 +201,8 @@ var createEditorContentStyle = exports.createEditorContentStyle = function creat
201
201
  "data-testid": "editor-content-container"
202
202
  // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex -- Adding tabIndex here because this is a scrollable container and it needs to be focusable so keyboard users can scroll it.
203
203
  ,
204
- tabIndex: (0, _platformFeatureFlags.fg)('platform_editor_editor_container_a11y_focus') ? 0 : undefined,
205
- role: (0, _platformFeatureFlags.fg)('platform_editor_editor_container_a11y_focus') ? 'region' : undefined
204
+ tabIndex: 0,
205
+ role: "region"
206
206
  }, children);
207
207
  }
208
208
  return (0, _react2.jsx)("div", {
@@ -16,11 +16,11 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
16
16
  var getVisualRefreshStatusStyles = function getVisualRefreshStatusStyles() {
17
17
  return (
18
18
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
19
- (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ? (0, _react.css)((0, _defineProperty2.default)({}, "&.".concat(_editorSharedStyles.akEditorSelectedNodeClassName, ":not('.search-match-block') .").concat(_styles.StatusSharedCssClassName.STATUS_LOZENGE, " > span"), {
19
+ (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? (0, _react.css)((0, _defineProperty2.default)({}, "&.".concat(_editorSharedStyles.akEditorSelectedNodeClassName, ":not('.search-match-block') .").concat(_styles.StatusSharedCssClassName.STATUS_LOZENGE, " > span"), {
20
20
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
21
21
  boxShadow: _editorSharedStyles.akEditorSelectedBoldBoxShadow
22
22
  })) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
23
- (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\t&.", " .", " > span {\n\t\t\t\t\t\tbox-shadow: ", ";\n\t\t\t\t\t}\n\t\t\t\t"])), _editorSharedStyles.akEditorSelectedNodeClassName, _styles.StatusSharedCssClassName.STATUS_LOZENGE, _editorSharedStyles.akEditorSelectedBoldBoxShadow) : (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
23
+ (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\t&.", " .", " > span {\n\t\t\t\t\t\tbox-shadow: ", ";\n\t\t\t\t\t}\n\t\t\t\t"])), _editorSharedStyles.akEditorSelectedNodeClassName, _styles.StatusSharedCssClassName.STATUS_LOZENGE, _editorSharedStyles.akEditorSelectedBoldBoxShadow) : (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
24
24
  (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\t&.", ":not('.search-match-block')\n\t\t\t\t\t\t.", "\n\t\t\t\t\t\t> span {\n\t\t\t\t\t\t", "\n\t\t\t\t\t}\n\t\t\t\t"])), _editorSharedStyles.akEditorSelectedNodeClassName, _styles.StatusSharedCssClassName.STATUS_LOZENGE, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow])) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
25
25
  (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\t&.", " .", " > span {\n\t\t\t\t\t\t", "\n\t\t\t\t\t}\n\t\t\t\t"])), _editorSharedStyles.akEditorSelectedNodeClassName, _styles.StatusSharedCssClassName.STATUS_LOZENGE, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]))
26
26
  );
@@ -209,9 +209,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
209
209
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
210
210
  _expandStyles.expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes,
211
211
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
212
- (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _expandStyles.expandStylesMixin_fg_platform_visual_refresh_icons, (0, _expValEquals.expValEquals)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ?
213
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
214
- _findReplaceStyles.findReplaceStylesNewNoImportant :
212
+ (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _expandStyles.expandStylesMixin_fg_platform_visual_refresh_icons, (0, _expValEquals.expValEquals)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
215
213
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
216
214
  _findReplaceStyles.findReplaceStylesNew :
217
215
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -231,17 +229,17 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
231
229
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
232
230
  _tasksAndDecisionsStyles.decisionIconWithoutVisualRefresh,
233
231
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
234
- _statusStyles.statusStyles, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ?
232
+ _statusStyles.statusStyles, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
235
233
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
236
234
  _statusStyles.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match :
237
235
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
238
- _statusStyles.statusStylesMixin_fg_platform_component_visual_refresh : (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ?
236
+ _statusStyles.statusStylesMixin_fg_platform_component_visual_refresh : (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
239
237
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
240
238
  _statusStyles.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match :
241
239
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
242
240
  _statusStyles.statusStylesMixin_without_fg_platform_component_visual_refresh,
243
241
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
244
- _annotationStyles.annotationStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ?
242
+ _annotationStyles.annotationStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
245
243
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
246
244
  _smartCardStyles.smartCardStylesWithSearchMatch :
247
245
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -341,7 +339,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
341
339
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
342
340
  _firstBlockNodeStyles.firstBlockNodeStyles,
343
341
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
344
- _mentions.mentionNodeStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ?
342
+ _mentions.mentionNodeStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
345
343
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
346
344
  _mentions.mentionsSelectionStylesWithSearchMatch :
347
345
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -375,8 +373,8 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
375
373
  style: style
376
374
  // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex -- Adding tabIndex here because this is a scrollable container and it needs to be focusable so keyboard users can scroll it.
377
375
  ,
378
- tabIndex: isScrollable && (0, _platformFeatureFlags.fg)('platform_editor_editor_container_a11y_focus') ? 0 : undefined,
379
- role: isScrollable && (0, _platformFeatureFlags.fg)('platform_editor_editor_container_a11y_focus') ? 'region' : undefined
376
+ tabIndex: isScrollable ? 0 : undefined,
377
+ role: isScrollable ? 'region' : undefined
380
378
  }, children);
381
379
  });
382
380
  var _default = exports.default = EditorContentContainer;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.findReplaceStylesNewNoImportant = exports.findReplaceStylesNew = exports.findReplaceStyles = void 0;
6
+ exports.findReplaceStylesNew = exports.findReplaceStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
9
9
 
@@ -28,179 +28,6 @@ var findReplaceStylesNew = exports.findReplaceStylesNew = (0, _react.css)({
28
28
 
29
29
  /** Light mode */
30
30
 
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
32
- '.search-match-text': {
33
- borderRadius: "var(--ds-space-050, 4px)",
34
- boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t"),
35
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
36
- backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)".concat(" !important"),
37
- color: "var(--ds-text, #172B4D)"
38
- },
39
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
40
- '.search-match-text.selected-search-match': {
41
- boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", "\n\t\t"),
42
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
43
- backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)".concat(" !important")
44
- },
45
- /** Dark mode */
46
-
47
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
48
- '.search-match-text.search-match-dark': {
49
- boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", "\n\t\t"),
50
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
51
- backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #50253F)".concat(" !important"),
52
- color: "var(--ds-text-inverse, #FFFFFF)"
53
- },
54
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
55
- '.search-match-text.selected-search-match.search-match-dark': {
56
- boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", "\n\t\t"),
57
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
58
- backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)".concat(" !important")
59
- },
60
- /** Block match styles */
61
-
62
- /** Light mode */
63
-
64
- /** Without node selection */
65
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
66
- '.search-match-block': {
67
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
68
- '[data-smart-link-container="true"], .loader-wrapper>div::after': {
69
- boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t\t")
70
- },
71
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
72
- '.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
73
- boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-subtler, #FDD0EC)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)")
74
- }
75
- },
76
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
77
- '.search-match-block.search-match-block-selected': {
78
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
79
- '[data-smart-link-container="true"], .loader-wrapper>div::after': {
80
- boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", "\n\t\t\t")
81
- },
82
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
83
- '.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
84
- boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)")
85
- }
86
- },
87
- /** With node selection */
88
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
89
- '.search-match-block.ak-editor-selected-node': {
90
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
91
- '.loader-wrapper>div::after': {
92
- boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
93
- },
94
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
95
- '.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
96
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
97
- boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", " !important")
98
- }
99
- },
100
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
101
- '.search-match-block.search-match-block-selected.ak-editor-selected-node': {
102
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
103
- '[data-smart-link-container="true"], .loader-wrapper>div::after': {
104
- boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
105
- },
106
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
107
- '.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
108
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
109
- boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", " !important")
110
- }
111
- },
112
- /** Dark mode */
113
- /** Without node selection */
114
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
115
- '.search-match-block.search-match-dark': {
116
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
117
- '[data-smart-link-container="true"], .loader-wrapper>div::after': {
118
- boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", "\n\t\t\t")
119
- },
120
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
121
- '.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
122
- boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-bolder-pressed, #50253F)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)")
123
- }
124
- },
125
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
126
- '.search-match-block.search-match-block-selected.search-match-dark': {
127
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
128
- '[data-smart-link-container="true"], .loader-wrapper>div::after': {
129
- boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", "\n\t\t\t")
130
- },
131
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
132
- '.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
133
- boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-bolder-hovered, #943D73)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)")
134
- }
135
- },
136
- /** With node selection */
137
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
138
- '.search-match-block.search-match-dark.ak-editor-selected-node': {
139
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
140
- '.loader-wrapper>div::after': {
141
- boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
142
- },
143
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
144
- '.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
145
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
146
- boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)", " !important")
147
- }
148
- },
149
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
150
- '.search-match-block.search-match-block-selected.search-match-dark.ak-editor-selected-node': {
151
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
152
- '[data-smart-link-container="true"], .loader-wrapper>div::after': {
153
- boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
154
- },
155
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
156
- '.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
157
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
158
- boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)", " !important")
159
- }
160
- },
161
- /** Expand title match styles */
162
-
163
- /** Light mode */
164
-
165
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
166
- '.search-match-expand-title > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
167
- borderRadius: "var(--ds-space-050, 4px)",
168
- boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t"),
169
- backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)",
170
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
171
- '.ak-editor-expand__title-input': {
172
- color: "var(--ds-text, #172B4D)"
173
- }
174
- },
175
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
176
- '.search-match-expand-title.selected-search-match > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
177
- boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", "\n\t\t"),
178
- backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"
179
- },
180
- /** Dark mode */
181
-
182
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
183
- '.search-match-expand-title.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
184
- boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", "\n\t\t"),
185
- backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #50253F)",
186
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
187
- '.ak-editor-expand__title-input': {
188
- color: "var(--ds-text-inverse, #FFFFFF)"
189
- }
190
- },
191
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
192
- '.search-match-expand-title.selected-search-match.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
193
- boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", "\n\t\t"),
194
- backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
195
- }
196
- });
197
-
198
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
199
- var findReplaceStylesNewNoImportant = exports.findReplaceStylesNewNoImportant = (0, _react.css)({
200
- /** Text match styles */
201
-
202
- /** Light mode */
203
-
204
31
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
205
32
  '.search-match-text': {
206
33
  borderRadius: "var(--ds-space-050, 4px)",
@@ -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 = "210.1.4";
8
+ var version = exports.version = "210.1.6";
@@ -17,7 +17,6 @@ import { WidthConsumer, WidthProvider } from '@atlaskit/editor-common/ui';
17
17
  import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
18
18
  import { tableCommentEditorStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
19
19
  import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
20
- import { fg } from '@atlaskit/platform-feature-flags';
21
20
  import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
22
21
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
23
22
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
@@ -302,7 +301,7 @@ export const CommentEditorWithIntl = props => {
302
301
  // so need to set overflow-y as auto to make sure the content area is scrollable
303
302
  overflowY: 'auto'
304
303
  }) : null],
305
- isScrollable: maxHeight && fg('platform_editor_editor_container_a11y_focus') ? true : undefined
304
+ isScrollable: maxHeight ? true : undefined
306
305
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
307
306
  ,
308
307
  className: classnames('ak-editor-content-area', {
@@ -19,7 +19,6 @@ import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComp
19
19
  import { FullPageContentArea } from './FullPageContentArea';
20
20
  import { FullPageToolbar } from './FullPageToolbar';
21
21
  import { FullPageToolbarNext } from './FullPageToolbarNext';
22
- import { getEditorViewMode } from './getEditorViewModeSync';
23
22
  import { fullPageEditorWrapper } from './StyledComponents';
24
23
  const useShowKeyline = contentAreaRef => {
25
24
  const [showKeyline, setShowKeyline] = useState(false);
@@ -86,7 +85,7 @@ const useFullPageEditorPluginsStates = sharedPluginStateHookMigratorFactory(plug
86
85
  };
87
86
  });
88
87
  export const FullPageEditor = props => {
89
- var _scrollContentContain, _scrollContentContain2, _scrollContentContain3, _wrapperElementRef$cu;
88
+ var _scrollContentContain, _toolbarDockingPositi, _scrollContentContain2, _scrollContentContain3, _wrapperElementRef$cu;
90
89
  const wrapperElementRef = useMemo(() => props.innerRef, [props.innerRef]);
91
90
  const scrollContentContainerRef = useRef(null);
92
91
  const showKeyline = useShowKeyline(scrollContentContainerRef);
@@ -97,16 +96,10 @@ export const FullPageEditor = props => {
97
96
  interactionState
98
97
  } = useFullPageEditorPluginsStates(editorAPI);
99
98
  const primaryToolbarState = getPrimaryToolbarComponents(editorAPI, primaryToolbarHookState === null || primaryToolbarHookState === void 0 ? void 0 : primaryToolbarHookState.components);
100
- const viewMode = getEditorViewMode(editorViewModeState, props.preset);
101
99
  const hasHadInteraction = interactionState !== 'hasNotHadInteraction';
102
100
  let toolbarDocking = useSharedPluginStateSelector(editorAPI, 'selectionToolbar.toolbarDocking', {
103
101
  disabled: fg('platform_editor_use_preferences_plugin')
104
102
  });
105
- const {
106
- toolbarDockingPosition
107
- } = useSharedPluginStateSelector(editorAPI, 'userPreferences.preferences', {
108
- disabled: !fg('platform_editor_use_preferences_plugin')
109
- }) || {};
110
103
  if (!fg('platform_editor_use_preferences_plugin')) {
111
104
  if (!toolbarDocking) {
112
105
  var _editorAPI$selectionT, _editorAPI$selectionT2, _editorAPI$selectionT3;
@@ -117,13 +110,27 @@ export const FullPageEditor = props => {
117
110
  toolbarDocking = (_editorAPI$selectionT = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$selectionT2 = editorAPI.selectionToolbar) === null || _editorAPI$selectionT2 === void 0 ? void 0 : (_editorAPI$selectionT3 = _editorAPI$selectionT2.sharedState.currentState()) === null || _editorAPI$selectionT3 === void 0 ? void 0 : _editorAPI$selectionT3.toolbarDocking) !== null && _editorAPI$selectionT !== void 0 ? _editorAPI$selectionT : defaultDocking;
118
111
  }
119
112
  }
113
+ let {
114
+ toolbarDockingPosition
115
+ } = useSharedPluginStateSelector(editorAPI, 'userPreferences.preferences', {
116
+ disabled: !fg('platform_editor_use_preferences_plugin')
117
+ }) || {};
118
+ if (fg('platform_editor_use_preferences_plugin')) {
119
+ if (!toolbarDockingPosition) {
120
+ var _editorAPI$userPrefer, _editorAPI$userPrefer2, _editorAPI$userPrefer3;
121
+ // This is a workaround for the rendering issue with the selection toolbar
122
+ // when using useSharedPluginStateWithSelector the state is not yet
123
+ // available when the editor is first loaded.
124
+ // This causes the toolbar to blink creating a layout shift.
125
+ const defaultDockingPosition = props.__livePage ? 'none' : 'top';
126
+ toolbarDockingPosition = (_editorAPI$userPrefer = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$userPrefer2 = editorAPI.userPreferences) === null || _editorAPI$userPrefer2 === void 0 ? void 0 : (_editorAPI$userPrefer3 = _editorAPI$userPrefer2.actions.getUserPreferences()) === null || _editorAPI$userPrefer3 === void 0 ? void 0 : _editorAPI$userPrefer3.toolbarDockingPosition) !== null && _editorAPI$userPrefer !== void 0 ? _editorAPI$userPrefer : defaultDockingPosition;
127
+ }
128
+ }
120
129
  let primaryToolbarComponents = props.primaryToolbarComponents;
121
130
  if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
122
131
  primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
123
132
  }
124
- let isEditorToolbarHidden =
125
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
126
- fg('platform_editor_sync_editor_view_mode_state') && !fg('platform_editor_sync_editor_view_mode_state_revert') ? viewMode === 'view' : (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
133
+ let isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
127
134
  const {
128
135
  customPrimaryToolbarComponents
129
136
  } = props;
@@ -162,7 +169,7 @@ export const FullPageEditor = props => {
162
169
  }, !isEditorToolbarHidden && (expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true) ? jsx(IntlProvider, {
163
170
  locale: "en"
164
171
  }, jsx(FullPageToolbarNext, {
165
- toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
172
+ toolbarDockingPosition: (_toolbarDockingPositi = toolbarDockingPosition) !== null && _toolbarDockingPositi !== void 0 ? _toolbarDockingPositi : toolbarDocking,
166
173
  beforeIcon: props.primaryToolbarIconBefore,
167
174
  editorAPI: editorAPI,
168
175
  editorView: props.editorView,
@@ -19,7 +19,7 @@ import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
19
19
  import { gapCursorStyles } from '@atlaskit/editor-common/selection';
20
20
  import { CodeBlockSharedCssClassName, MediaSharedClassNames, SmartCardSharedCssClassName, annotationSharedStyles, backgroundColorStyles, blockMarksSharedStyles, codeBlockInListSafariFix, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, expandClassNames, getSmartCardSharedStyles, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, paragraphSharedStyles, resizerStyles, pragmaticResizerStyles, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, pragmaticResizerStylesWithReducedEditorGutter, ruleSharedStyles, shadowSharedStyle, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
21
21
  import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
22
- import { findReplaceStyles, findReplaceStylesNew, findReplaceStylesNewNoImportant } from '@atlaskit/editor-plugins/find-replace/styles';
22
+ import { findReplaceStyles, findReplaceStylesNew } from '@atlaskit/editor-plugins/find-replace/styles';
23
23
  import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
24
24
  import { placeholderTextStyles, placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour } from '@atlaskit/editor-plugins/placeholder-text/styles';
25
25
  import { SelectionStyle, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorDefaultLayoutWidth, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout, akEditorSelectedBorderColor, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, editorFontSize, getSelectionStyles } from '@atlaskit/editor-shared-styles';
@@ -452,7 +452,7 @@ const legacyContentStyles = props => css`
452
452
  ${mentionsStyles}
453
453
  ${mentionNodeStyles}
454
454
  ${fg('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding}
455
- ${expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1') ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles}
455
+ ${expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles}
456
456
  ${fg('platform_editor_fix_emoji_style_selectors') ? emojiStylesWithSelectorFixes : emojiStyles}
457
457
  ${tasksAndDecisionsStyles}
458
458
  ${gridStyles}
@@ -461,7 +461,7 @@ const legacyContentStyles = props => css`
461
461
  ${dateSharedStyle}
462
462
  ${extensionStyles}
463
463
  ${expandStyles()}
464
- ${expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? fg('platform_editor_find_and_replace_improvements_1') ? findReplaceStylesNewNoImportant : findReplaceStylesNew : findReplaceStyles}
464
+ ${expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? findReplaceStylesNew : findReplaceStyles}
465
465
  ${textHighlightStyle}
466
466
  ${taskDecisionStyles}
467
467
  ${expValEqualsNoExposure('platform_editor_blocktaskitem_node', 'isEnabled', true) ? taskItemStylesWithBlockTaskItem : taskItemStyles}
@@ -582,8 +582,8 @@ export const createEditorContentStyle = styles => {
582
582
  "data-testid": "editor-content-container"
583
583
  // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex -- Adding tabIndex here because this is a scrollable container and it needs to be focusable so keyboard users can scroll it.
584
584
  ,
585
- tabIndex: fg('platform_editor_editor_container_a11y_focus') ? 0 : undefined,
586
- role: fg('platform_editor_editor_container_a11y_focus') ? 'region' : undefined
585
+ tabIndex: 0,
586
+ role: "region"
587
587
  }, children);
588
588
  }
589
589
  return jsx("div", {
@@ -6,7 +6,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
6
6
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
7
7
  const getVisualRefreshStatusStyles = () =>
8
8
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
9
- fg('platform-component-visual-refresh') ? expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1') ? css({
9
+ fg('platform-component-visual-refresh') ? expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? css({
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
11
11
  [`&.${akEditorSelectedNodeClassName}:not('.search-match-block') .${StatusSharedCssClassName.STATUS_LOZENGE} > span`]: {
12
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
@@ -18,7 +18,7 @@ css`
18
18
  &.${akEditorSelectedNodeClassName} .${StatusSharedCssClassName.STATUS_LOZENGE} > span {
19
19
  box-shadow: ${akEditorSelectedBoldBoxShadow};
20
20
  }
21
- ` : expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1') ?
21
+ ` : expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
22
22
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
23
23
  css`
24
24
  &.${akEditorSelectedNodeClassName}:not('.search-match-block')