@atlaskit/editor-core 207.8.0 → 207.10.1

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 (89) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/cjs/composable-editor/core-editor.js +1 -2
  3. package/dist/cjs/create-editor/ReactEditorView.js +11 -0
  4. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +4 -65
  5. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +1 -4
  6. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +14 -2
  7. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +29 -12
  8. package/dist/cjs/ui/EditorContentContainer/styles/aiPanel.js +203 -0
  9. package/dist/cjs/ui/EditorContentContainer/styles/blockMarksStyles.js +30 -0
  10. package/dist/cjs/ui/EditorContentContainer/styles/dateStyles.js +51 -0
  11. package/dist/cjs/ui/EditorContentContainer/styles/gridStyles.js +42 -0
  12. package/dist/cjs/ui/EditorContentContainer/styles/indentationStyles.js +45 -0
  13. package/dist/cjs/ui/EditorContentContainer/styles/list.js +49 -0
  14. package/dist/cjs/ui/EditorContentContainer/styles/selectionStyles.js +1 -1
  15. package/dist/cjs/ui/EditorContentContainer/styles/shadowStyles.js +52 -0
  16. package/dist/cjs/ui/EditorContentContainer/styles/textColorStyles.js +20 -0
  17. package/dist/cjs/ui/EditorContentContainer/styles/unsupportedStyles.js +35 -0
  18. package/dist/cjs/ui/EditorContentContainer/styles/whitespaceStyles.js +14 -0
  19. package/dist/cjs/version-wrapper.js +1 -1
  20. package/dist/es2019/composable-editor/core-editor.js +1 -2
  21. package/dist/es2019/create-editor/ReactEditorView.js +11 -0
  22. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +5 -66
  23. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +1 -4
  24. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +15 -3
  25. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +29 -33
  26. package/dist/es2019/ui/EditorContentContainer/styles/aiPanel.js +199 -0
  27. package/dist/es2019/ui/EditorContentContainer/styles/blockMarksStyles.js +23 -0
  28. package/dist/es2019/ui/EditorContentContainer/styles/dateStyles.js +69 -0
  29. package/dist/es2019/ui/EditorContentContainer/styles/gridStyles.js +35 -0
  30. package/dist/es2019/ui/EditorContentContainer/styles/indentationStyles.js +38 -0
  31. package/dist/es2019/ui/EditorContentContainer/styles/list.js +45 -0
  32. package/dist/es2019/ui/EditorContentContainer/styles/selectionStyles.js +1 -1
  33. package/dist/es2019/ui/EditorContentContainer/styles/shadowStyles.js +56 -0
  34. package/dist/es2019/ui/EditorContentContainer/styles/textColorStyles.js +13 -0
  35. package/dist/es2019/ui/EditorContentContainer/styles/unsupportedStyles.js +39 -0
  36. package/dist/es2019/ui/EditorContentContainer/styles/whitespaceStyles.js +7 -0
  37. package/dist/es2019/version-wrapper.js +1 -1
  38. package/dist/esm/composable-editor/core-editor.js +1 -2
  39. package/dist/esm/create-editor/ReactEditorView.js +11 -0
  40. package/dist/esm/ui/Appearance/FullPage/FullPage.js +5 -66
  41. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +1 -4
  42. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +15 -3
  43. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +30 -13
  44. package/dist/esm/ui/EditorContentContainer/styles/aiPanel.js +195 -0
  45. package/dist/esm/ui/EditorContentContainer/styles/blockMarksStyles.js +23 -0
  46. package/dist/esm/ui/EditorContentContainer/styles/dateStyles.js +43 -0
  47. package/dist/esm/ui/EditorContentContainer/styles/gridStyles.js +35 -0
  48. package/dist/esm/ui/EditorContentContainer/styles/indentationStyles.js +38 -0
  49. package/dist/esm/ui/EditorContentContainer/styles/list.js +41 -0
  50. package/dist/esm/ui/EditorContentContainer/styles/selectionStyles.js +1 -1
  51. package/dist/esm/ui/EditorContentContainer/styles/shadowStyles.js +44 -0
  52. package/dist/esm/ui/EditorContentContainer/styles/textColorStyles.js +13 -0
  53. package/dist/esm/ui/EditorContentContainer/styles/unsupportedStyles.js +27 -0
  54. package/dist/esm/ui/EditorContentContainer/styles/whitespaceStyles.js +7 -0
  55. package/dist/esm/version-wrapper.js +1 -1
  56. package/dist/types/create-editor/create-universal-preset.d.ts +2 -5
  57. package/dist/types/presets/universal.d.ts +2 -5
  58. package/dist/types/presets/useUniversalPreset.d.ts +2 -5
  59. package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +1 -0
  60. package/dist/types/ui/EditorContentContainer/styles/aiPanel.d.ts +4 -0
  61. package/dist/types/ui/EditorContentContainer/styles/blockMarksStyles.d.ts +1 -0
  62. package/dist/types/ui/EditorContentContainer/styles/dateStyles.d.ts +6 -0
  63. package/dist/types/ui/EditorContentContainer/styles/gridStyles.d.ts +1 -0
  64. package/dist/types/ui/EditorContentContainer/styles/indentationStyles.d.ts +1 -0
  65. package/dist/types/ui/EditorContentContainer/styles/list.d.ts +2 -0
  66. package/dist/types/ui/EditorContentContainer/styles/shadowStyles.d.ts +10 -0
  67. package/dist/types/ui/EditorContentContainer/styles/textColorStyles.d.ts +1 -0
  68. package/dist/types/ui/EditorContentContainer/styles/unsupportedStyles.d.ts +5 -0
  69. package/dist/types/ui/EditorContentContainer/styles/whitespaceStyles.d.ts +1 -0
  70. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +2 -5
  71. package/dist/types-ts4.5/presets/universal.d.ts +2 -5
  72. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +2 -5
  73. package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer.d.ts +1 -0
  74. package/dist/types-ts4.5/ui/EditorContentContainer/styles/aiPanel.d.ts +4 -0
  75. package/dist/types-ts4.5/ui/EditorContentContainer/styles/blockMarksStyles.d.ts +1 -0
  76. package/dist/types-ts4.5/ui/EditorContentContainer/styles/dateStyles.d.ts +6 -0
  77. package/dist/types-ts4.5/ui/EditorContentContainer/styles/gridStyles.d.ts +1 -0
  78. package/dist/types-ts4.5/ui/EditorContentContainer/styles/indentationStyles.d.ts +1 -0
  79. package/dist/types-ts4.5/ui/EditorContentContainer/styles/list.d.ts +2 -0
  80. package/dist/types-ts4.5/ui/EditorContentContainer/styles/shadowStyles.d.ts +10 -0
  81. package/dist/types-ts4.5/ui/EditorContentContainer/styles/textColorStyles.d.ts +1 -0
  82. package/dist/types-ts4.5/ui/EditorContentContainer/styles/unsupportedStyles.d.ts +5 -0
  83. package/dist/types-ts4.5/ui/EditorContentContainer/styles/whitespaceStyles.d.ts +1 -0
  84. package/package.json +13 -9
  85. package/dist/cjs/ui/EditorContentContainer/styles/ai-panel.js +0 -97
  86. package/dist/es2019/ui/EditorContentContainer/styles/ai-panel.js +0 -213
  87. package/dist/esm/ui/EditorContentContainer/styles/ai-panel.js +0 -91
  88. package/dist/types/ui/EditorContentContainer/styles/ai-panel.d.ts +0 -2
  89. package/dist/types-ts4.5/ui/EditorContentContainer/styles/ai-panel.d.ts +0 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,75 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 207.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#160084](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/160084)
8
+ [`ad90a6f9f245d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ad90a6f9f245d) -
9
+ refactor emotion styles for list
10
+ - [#160454](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/160454)
11
+ [`e09cbdb2a1f3c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e09cbdb2a1f3c) -
12
+ Cleaned up INP feature gate
13
+ - Updated dependencies
14
+
15
+ ## 207.10.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#160678](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/160678)
20
+ [`9454f60883904`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9454f60883904) -
21
+ [https://product-fabric.atlassian.net/browse/ED-27746](ED-27746) - rewrite editor shadow, text
22
+ color and unsupported CSS in static emotion
23
+ - [#160532](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/160532)
24
+ [`0997882c2118b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0997882c2118b) -
25
+ [https://product-fabric.atlassian.net/browse/ED-27746](ED-27746) - rewrite editor date CSS in
26
+ static emotion
27
+
28
+ ### Patch Changes
29
+
30
+ - [#159090](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/159090)
31
+ [`9cbae97c20f84`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9cbae97c20f84) -
32
+ Reduces rerenders of text formatting options and the toolbar when it is docked to top.
33
+ - Updated dependencies
34
+
35
+ ## 207.9.0
36
+
37
+ ### Minor Changes
38
+
39
+ - [#160567](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/160567)
40
+ [`2088abf31e988`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2088abf31e988) -
41
+ [https://product-fabric.atlassian.net/browse/ED-27746](ED-27746) - rewrite editor block marks CSS
42
+ in static emotion
43
+ - [#156919](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/156919)
44
+ [`379f5c27f4939`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/379f5c27f4939) -
45
+ delay table sticky headers until table is in viewport
46
+ - [#160638](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/160638)
47
+ [`73485f1de1b41`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73485f1de1b41) -
48
+ [https://product-fabric.atlassian.net/browse/ED-27746](ED-27746) - rewrite editor grid,
49
+ indentation, whitespace CSS in static emotion
50
+
51
+ ### Patch Changes
52
+
53
+ - [#159655](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/159655)
54
+ [`24f8c627d50f2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/24f8c627d50f2) - ##
55
+ WHAT? Remove experimental graceful edit mode from view mode plugin and associated props.
56
+
57
+ ## WHY?
58
+
59
+ This experiment is being cleaned up and we are no longer proceeding in this direction.
60
+
61
+ ## HOW to adjust?
62
+
63
+ This experiment was only enabled for Confluence and should not have been enabled in other places.
64
+ If for some reason any of the following props/state/methdos were used please remove them:
65
+
66
+ - isConsumption
67
+ - contentMode
68
+ - initialContentMode
69
+ - updateContentMode
70
+
71
+ - Updated dependencies
72
+
3
73
  ## 207.8.0
4
74
 
5
75
  ### Minor Changes
@@ -17,7 +17,6 @@ var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents"
17
17
  var _analytics = require("@atlaskit/editor-common/analytics");
18
18
  var _performanceMeasures = require("@atlaskit/editor-common/performance-measures");
19
19
  var _analytics2 = require("@atlaskit/editor-common/utils/analytics");
20
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
21
20
  var _actions = _interopRequireDefault(require("../actions"));
22
21
  var _EditorContext = require("../ui/EditorContext");
23
22
  var _featureFlagsFromProps = require("../utils/feature-flags-from-props");
@@ -94,7 +93,7 @@ function Editor(passedProps) {
94
93
  }
95
94
  }, [onSaveFromProps]);
96
95
  var isFullPageApperance = Boolean(props.appearance && ['full-page', 'full-width'].includes(props.appearance));
97
- return (0, _react2.jsx)(_react.Fragment, null, isFullPageApperance && (0, _platformFeatureFlags.fg)('platform_editor_fe--inp-metrics') ? (0, _react2.jsx)(_editorInpMetrics.EditorINPMetrics, null) : null, (0, _react2.jsx)(_editorInternal.EditorInternal, {
96
+ return (0, _react2.jsx)(_react.Fragment, null, isFullPageApperance ? (0, _react2.jsx)(_editorInpMetrics.EditorINPMetrics, null) : null, (0, _react2.jsx)(_editorInternal.EditorInternal, {
98
97
  props: props,
99
98
  handleAnalyticsEvent: handleAnalyticsEvent,
100
99
  createAnalyticsEvent: createAnalyticsEvent,
@@ -15,6 +15,7 @@ var _v = _interopRequireDefault(require("uuid/v4"));
15
15
  var _analytics = require("@atlaskit/editor-common/analytics");
16
16
  var _eventDispatcher = require("@atlaskit/editor-common/event-dispatcher");
17
17
  var _hooks = require("@atlaskit/editor-common/hooks");
18
+ var _nodeVisibility = require("@atlaskit/editor-common/node-visibility");
18
19
  var _normalizeFeatureFlags = require("@atlaskit/editor-common/normalize-feature-flags");
19
20
  var _measureRender = require("@atlaskit/editor-common/performance/measure-render");
20
21
  var _navigation = require("@atlaskit/editor-common/performance/navigation");
@@ -26,6 +27,7 @@ var _document = require("@atlaskit/editor-common/utils/document");
26
27
  var _state2 = require("@atlaskit/editor-prosemirror/state");
27
28
  var _view = require("@atlaskit/editor-prosemirror/view");
28
29
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
30
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
29
31
  var _useProviders = require("../composable-editor/hooks/useProviders");
30
32
  var _featureFlagsFromProps = require("../utils/feature-flags-from-props");
31
33
  var _getNodesCount = require("../utils/getNodesCount");
@@ -492,6 +494,12 @@ function ReactEditorView(props) {
492
494
  }, [editorView, shouldFocus, __livePage, mitigateScrollJump]);
493
495
  var handleEditorViewRef = (0, _react.useCallback)(function (node) {
494
496
  if (!viewRef.current && node) {
497
+ // make sure this doesn't expose the experiment
498
+ if ((0, _experiments.editorExperiment)('platform_editor_nodevisibility', true, {
499
+ exposure: false
500
+ })) {
501
+ (0, _nodeVisibility.nodeVisibilityManager)(node).initialiseNodeObserver();
502
+ }
495
503
  var view = createEditorView(node);
496
504
  if ((0, _platformFeatureFlags.fg)('platform_editor_reduce_scroll_jump_on_editor_start')) {
497
505
  if (mitigateScrollJump) {
@@ -562,6 +570,9 @@ function ReactEditorView(props) {
562
570
  } else {
563
571
  viewRef.current.destroy(); // Destroys the dom node & all node views
564
572
  }
573
+ if ((0, _experiments.editorExperiment)('platform_editor_nodevisibility', true)) {
574
+ (0, _nodeVisibility.nodeVisibilityManager)(viewRef.current.dom).disconnect();
575
+ }
565
576
  viewRef.current = undefined;
566
577
  }
567
578
  }, [createEditorView, onEditorCreated, eventDispatcher, shouldFocus, __livePage, onEditorDestroyed, handleAnalyticsEvent, mitigateScrollJump]);
@@ -71,7 +71,6 @@ var useFullPageEditorPluginsStates = (0, _hooks.sharedPluginStateHookMigratorFac
71
71
  }, function (pluginInjectionApi) {
72
72
  var primaryToolbarComponents = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(pluginInjectionApi, 'primaryToolbar.components');
73
73
  var editorViewMode = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(pluginInjectionApi, 'editorViewMode.mode');
74
- var showTopToolbar = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(pluginInjectionApi, 'editorViewMode._showTopToolbar');
75
74
  var hasHadInteraction = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(pluginInjectionApi, 'interaction.hasHadInteraction');
76
75
  var interactionState = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(pluginInjectionApi, 'interaction.interactionState');
77
76
  return {
@@ -79,8 +78,7 @@ var useFullPageEditorPluginsStates = (0, _hooks.sharedPluginStateHookMigratorFac
79
78
  components: primaryToolbarComponents
80
79
  },
81
80
  editorViewModeState: !editorViewMode ? undefined : {
82
- mode: editorViewMode,
83
- _showTopToolbar: showTopToolbar
81
+ mode: editorViewMode
84
82
  },
85
83
  interactionState: hasHadInteraction === undefined || interactionState === undefined ? undefined : {
86
84
  hasHadInteraction: hasHadInteraction,
@@ -89,7 +87,7 @@ var useFullPageEditorPluginsStates = (0, _hooks.sharedPluginStateHookMigratorFac
89
87
  };
90
88
  });
91
89
  var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
92
- var _scrollContentContain, _scrollContentContain2, _scrollContentContain3, _scrollContentContain4, _scrollContentContain5, _wrapperElementRef$cu;
90
+ var _scrollContentContain, _scrollContentContain2, _scrollContentContain3, _wrapperElementRef$cu;
93
91
  var wrapperElementRef = (0, _react.useMemo)(function () {
94
92
  return props.innerRef;
95
93
  }, [props.innerRef]);
@@ -128,23 +126,6 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
128
126
  primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
129
127
  }
130
128
  var isEditorToolbarHidden = (0, _platformFeatureFlags.fg)('platform_editor_sync_editor_view_mode_state') ? viewMode === 'view' : (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
131
- if (props.__livePage && !(0, _experiments.editorExperiment)('live_pages_graceful_edit', 'control')) {
132
- // the custom toolbar logic should only be applied when the experiment cohort is not control,
133
- // and the editor is in live page mode.
134
- if (!editorViewModeState) {
135
- // when first loading the editor, the toolbar should be hidden for all content modes
136
- // the editorViewMode plugin state is not able to be relied as it will not be setup when
137
- // the appearance component is being rendered.
138
- // In this case we set the toolbar to be hidden by default.
139
- isEditorToolbarHidden = true;
140
- } else {
141
- if ((0, _experiments.editorExperiment)('live_pages_graceful_edit', 'initially-hide-toolbar')) {
142
- // for the initially-hide-toolbar variant, the toolbar should be hidden based on
143
- // a separate flag in the editorViewMode plugin state.
144
- isEditorToolbarHidden = !editorViewModeState._showTopToolbar || false;
145
- }
146
- }
147
- }
148
129
  var customPrimaryToolbarComponents = props.customPrimaryToolbarComponents;
149
130
  if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
150
131
  exposure: true
@@ -174,10 +155,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
174
155
  ,
175
156
  className: "akEditor",
176
157
  ref: wrapperElementRef
177
- }, !(0, _experiments.editorExperiment)('live_pages_graceful_edit', 'control') && (0, _react2.jsx)("div", {
178
- css: hiddenStyle,
179
- "data-hidden": isEditorToolbarHidden
180
- }, (0, _react2.jsx)(_FullPageToolbar.FullPageToolbar, {
158
+ }, !isEditorToolbarHidden && (0, _react2.jsx)(_FullPageToolbar.FullPageToolbar, {
181
159
  appearance: props.appearance,
182
160
  editorAPI: editorAPI,
183
161
  beforeIcon: props.primaryToolbarIconBefore,
@@ -204,33 +182,6 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
204
182
  providerFactory: props.providerFactory,
205
183
  showKeyline: showKeyline,
206
184
  featureFlags: props.featureFlags
207
- })), (0, _experiments.editorExperiment)('live_pages_graceful_edit', 'control') && !isEditorToolbarHidden && (0, _react2.jsx)(_FullPageToolbar.FullPageToolbar, {
208
- appearance: props.appearance,
209
- editorAPI: editorAPI,
210
- beforeIcon: props.primaryToolbarIconBefore,
211
- collabEdit: props.collabEdit,
212
- containerElement: (_scrollContentContain4 = (_scrollContentContain5 = scrollContentContainerRef.current) === null || _scrollContentContain5 === void 0 ? void 0 : _scrollContentContain5.scrollContainer) !== null && _scrollContentContain4 !== void 0 ? _scrollContentContain4 : null,
213
- customPrimaryToolbarComponents: props.customPrimaryToolbarComponents,
214
- disabled: !!props.disabled,
215
- dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
216
- editorActions: props.editorActions,
217
- editorDOMElement: props.editorDOMElement
218
- // Ignored via go/ees005
219
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
220
- ,
221
- editorView: props.editorView
222
- // Ignored via go/ees005
223
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
224
- ,
225
- eventDispatcher: props.eventDispatcher,
226
- hasMinWidth: props.enableToolbarMinWidth,
227
- popupsBoundariesElement: props.popupsBoundariesElement,
228
- popupsMountPoint: props.popupsMountPoint,
229
- popupsScrollableElement: props.popupsScrollableElement,
230
- primaryToolbarComponents: primaryToolbarComponents,
231
- providerFactory: props.providerFactory,
232
- showKeyline: showKeyline,
233
- featureFlags: props.featureFlags
234
185
  }), (0, _react2.jsx)(_FullPageContentArea.FullPageContentArea, {
235
186
  editorAPI: editorAPI,
236
187
  ref: scrollContentContainerRef,
@@ -258,16 +209,4 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
258
209
  viewMode: editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode,
259
210
  hasHadInteraction: hasHadInteraction
260
211
  })));
261
- };
262
- var hiddenStyle = (0, _react2.css)({
263
- visibility: 'visible',
264
- opacity: 1,
265
- transition: '200ms opacity, 200ms visibility, 200ms transform',
266
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
267
- '&[data-hidden="true"]': {
268
- height: 0,
269
- visibility: 'hidden',
270
- opacity: 0
271
- // transition: '0ms opacity, 0ms visibility, 0ms transform',
272
- }
273
- });
212
+ };
@@ -102,14 +102,11 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
102
102
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
103
103
  _StyledComponents.contentArea,
104
104
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
105
- (0, _experiments.editorExperiment)('live_pages_graceful_edit', 'control') && props.isEditorToolbarHidden &&
105
+ props.isEditorToolbarHidden &&
106
106
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
107
107
  _StyledComponents.contentAreaHeightNoToolbar],
108
108
  "data-testid": CONTENT_AREA_TEST_ID,
109
109
  ref: containerRef
110
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
111
- ,
112
- className: !(0, _experiments.editorExperiment)('live_pages_graceful_edit', 'control') && props.isEditorToolbarHidden ? 'ak-editor-content-area-no-toolbar' : undefined
113
110
  }, (0, _react2.jsx)("div", {
114
111
  css:
115
112
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
@@ -99,11 +99,13 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
99
99
  };
100
100
  }
101
101
  });
102
- var isShortcutToFocusToolbar = function isShortcutToFocusToolbar(event) {
102
+ var isShortcutToFocusToolbarRaw = function isShortcutToFocusToolbarRaw(event) {
103
103
  //Alt + F9 to reach first element in this main toolbar
104
104
  return event.altKey && (event.key === 'F9' || event.keyCode === 120);
105
105
  };
106
- var handleEscape = function handleEscape(event) {
106
+ var isShortcutToFocusToolbarMemoized = (0, _react.useCallback)(isShortcutToFocusToolbarRaw, []);
107
+ var isShortcutToFocusToolbar = (0, _platformFeatureFlags.fg)('platform_editor_toolbar_rerender_optimization') ? isShortcutToFocusToolbarMemoized : isShortcutToFocusToolbarRaw;
108
+ var handleEscapeRaw = function handleEscapeRaw(event) {
107
109
  var _props$editorView;
108
110
  if (!((_props$editorView = props.editorView) !== null && _props$editorView !== void 0 && _props$editorView.hasFocus())) {
109
111
  var _props$editorView2;
@@ -112,6 +114,16 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
112
114
  event.preventDefault();
113
115
  event.stopPropagation();
114
116
  };
117
+ var handleEscapeMemoized = (0, _react.useCallback)(function (event) {
118
+ var _props$editorView3;
119
+ if (!((_props$editorView3 = props.editorView) !== null && _props$editorView3 !== void 0 && _props$editorView3.hasFocus())) {
120
+ var _props$editorView4;
121
+ (_props$editorView4 = props.editorView) === null || _props$editorView4 === void 0 || _props$editorView4.focus();
122
+ }
123
+ event.preventDefault();
124
+ event.stopPropagation();
125
+ }, [props.editorView]);
126
+ var handleEscape = (0, _platformFeatureFlags.fg)('platform_editor_toolbar_rerender_optimization') ? handleEscapeMemoized : handleEscapeRaw;
115
127
  return (0, _react2.jsx)(_ui.ContextPanelConsumer, null, function (_ref2) {
116
128
  var contextPanelWidth = _ref2.width;
117
129
  return (0, _react2.jsx)(_uiMenu.ToolbarArrowKeyNavigationProvider, {
@@ -4,10 +4,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.placeholderStyles = exports.default = void 0;
7
+ exports.placeholderStyles = exports.isFirefox = exports.default = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _react2 = require("@emotion/react");
11
+ var _browser = require("@atlaskit/editor-common/browser");
11
12
  var _collab = require("@atlaskit/editor-common/collab");
12
13
  var _emoji = require("@atlaskit/editor-common/emoji");
13
14
  var _mention = require("@atlaskit/editor-common/mention");
@@ -24,27 +25,35 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
24
25
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
25
26
  var _tokens = require("@atlaskit/tokens");
26
27
  var _getInlineNodeViewProducer = require("../../nodeviews/getInlineNodeViewProducer.styles");
27
- var _date = require("../ContentStyles/date");
28
28
  var _expand = require("../ContentStyles/expand");
29
29
  var _extension = require("../ContentStyles/extension");
30
30
  var _panel = require("../ContentStyles/panel");
31
31
  var _status = require("../ContentStyles/status");
32
32
  var _tasksAndDecisions = require("../ContentStyles/tasks-and-decisions");
33
- var _aiPanel = require("./styles/ai-panel");
33
+ var _aiPanel = require("./styles/aiPanel");
34
34
  var _annotationStyles = require("./styles/annotationStyles");
35
35
  var _backgroundColorStyles = require("./styles/backgroundColorStyles");
36
+ var _blockMarksStyles = require("./styles/blockMarksStyles");
36
37
  var _codeBlockStyles = require("./styles/codeBlockStyles");
37
38
  var _codeMarkStyles = require("./styles/codeMarkStyles");
39
+ var _dateStyles = require("./styles/dateStyles");
38
40
  var _embedCardStyles = require("./styles/embedCardStyles");
39
41
  var _firstBlockNodeStyles = require("./styles/firstBlockNodeStyles");
42
+ var _gridStyles = require("./styles/gridStyles");
43
+ var _indentationStyles = require("./styles/indentationStyles");
40
44
  var _layout = require("./styles/layout");
41
45
  var _link = require("./styles/link");
46
+ var _list = require("./styles/list");
42
47
  var _mediaStyles = require("./styles/mediaStyles");
43
48
  var _paragraphStyles = require("./styles/paragraphStyles");
44
49
  var _resizerStyles = require("./styles/resizerStyles");
45
50
  var _rule = require("./styles/rule");
51
+ var _shadowStyles = require("./styles/shadowStyles");
46
52
  var _tasksAndDecisionsStyles = require("./styles/tasksAndDecisionsStyles");
47
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
53
+ var _textColorStyles = require("./styles/textColorStyles");
54
+ var _unsupportedStyles = require("./styles/unsupportedStyles");
55
+ var _whitespaceStyles = require("./styles/whitespaceStyles");
56
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
48
57
  /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
49
58
  /* eslint-disable react-hooks/rules-of-hooks */
50
59
  /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Requires manual remediation over time due to use of unsafe nested mixins */
@@ -53,6 +62,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
53
62
  * @jsx jsx
54
63
  */
55
64
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
65
+ var isFirefox = exports.isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
56
66
  var vanillaMentionsStyles = (0, _react2.css)({
57
67
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
58
68
  '.editor-mention-primitive': {
@@ -99,9 +109,8 @@ var vanillaMentionsStyles = (0, _react2.css)({
99
109
  });
100
110
  var vanillaSelectionStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.danger {\n\t\t.editor-mention-primitive {\n\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t\tbackground-color: ", ";\n\t\t}\n\t}\n\n\t.", " > .editor-mention-primitive,\n\t.", " > .editor-mention-primitive.mention-self,\n\t.", " > .editor-mention-primitive.mention-restricted {\n\t\t", "\n\t\t/* need to specify dark text colour because personal mentions\n\t\t (in dark blue) have white text by default */\n\t\tcolor: ", "\n\t}\n"])), _editorSharedStyles.akEditorSelectedBorderSize, _editorSharedStyles.akEditorDeleteBorder, "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackgroundWithOpacity, ")"), _editorSharedStyles.akEditorSelectedNodeClassName, _editorSharedStyles.akEditorSelectedNodeClassName, _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow, _editorSharedStyles.SelectionStyle.Background]), "var(--ds-text-subtle, #44546F)");
101
111
  var mentionsStyles = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\t&.", " [data-mention-id] > span {\n\t\t\t", "\n\n\t\t\t/* need to specify dark text colour because personal mentions\n\t\t (in dark blue) have white text by default */\n\t color: ", ";\n\t\t}\n\t}\n\n\t.danger {\n\t\t.", ".", "\n\t\t\t> span\n\t\t\t> span\n\t\t\t> span {\n\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t\tbackground-color: ", ";\n\t\t}\n\t\t.", " > span > span > span {\n\t\t\tbackground-color: ", ";\n\t\t\tcolor: ", ";\n\t\t}\n\t}\n"])), _mention.MentionSharedCssClassName.MENTION_CONTAINER, _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow, _editorSharedStyles.SelectionStyle.Background]), "var(--ds-text-subtle, #44546F)", _mention.MentionSharedCssClassName.MENTION_CONTAINER, _editorSharedStyles.akEditorSelectedNodeClassName, _editorSharedStyles.akEditorSelectedBorderSize, _editorSharedStyles.akEditorDeleteBorder, "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackgroundWithOpacity, ")"), _mention.MentionSharedCssClassName.MENTION_CONTAINER, "var(--ds-background-neutral, #091E420F)", "var(--ds-text-subtle, #44546F)");
102
- var listsStyles = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\tli {\n\t\t\tposition: relative;\n\n\t\t\t> p:not(:first-child) {\n\t\t\t\tmargin: ", " 0 0 0;\n\t\t\t}\n\n\t\t\t// In SSR the above rule will apply to all p tags because first-child would be a style tag.\n\t\t\t// The following rule resets the first p tag back to its original margin\n\t\t\t// defined in packages/editor/editor-common/src/styles/shared/paragraph.ts\n\t\t\t> style:first-child + p {\n\t\t\t\tmargin-top: ", ";\n\t\t\t}\n\t\t}\n\t}\n"])), "var(--ds-space-050, 4px)", _editorSharedStyles.blockNodesVerticalMargin);
103
- var reactEmojiStyles = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\tdisplay: inline-block;\n\n\t\t.", " {\n\t\t\tcursor: pointer;\n\n\t\t\t&.", " > span {\n\t\t\t\t/** needed for selection style to cover custom emoji image properly */\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", ", .", " {\n\t\t\t\tborder-radius: 2px;\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\t}\n"])), _emoji.EmojiSharedCssClassName.EMOJI_CONTAINER, _emoji.EmojiSharedCssClassName.EMOJI_NODE, _emoji.EmojiSharedCssClassName.EMOJI_IMAGE, _editorSharedStyles.akEditorSelectedNodeClassName, _emoji.EmojiSharedCssClassName.EMOJI_SPRITE, _emoji.EmojiSharedCssClassName.EMOJI_IMAGE, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.Blanket, _editorSharedStyles.SelectionStyle.BoxShadow]));
104
- var emojiStyles = (0, _react2.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n\t[data-prosemirror-node-view-type='vanilla'] {\n\t\t.", " {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t.", ", .", " {\n\t\t\tbackground: no-repeat transparent;\n\t\t\tdisplay: inline-block;\n\t\t\theight: ", "px;\n\t\t\tmax-height: ", "px;\n\t\t\tcursor: pointer;\n\t\t\tvertical-align: middle;\n\t\t\tuser-select: all;\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", ", .", " {\n\t\t\t\tborder-radius: 2px;\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\t}\n"])), _emoji.EmojiSharedCssClassName.EMOJI_CONTAINER, _emoji.EmojiSharedCssClassName.EMOJI_SPRITE, _emoji.EmojiSharedCssClassName.EMOJI_IMAGE, _emoji.defaultEmojiHeight, _emoji.defaultEmojiHeight, _editorSharedStyles.akEditorSelectedNodeClassName, _emoji.EmojiSharedCssClassName.EMOJI_SPRITE, _emoji.EmojiSharedCssClassName.EMOJI_IMAGE, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.Blanket, _editorSharedStyles.SelectionStyle.BoxShadow]));
112
+ var reactEmojiStyles = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\tdisplay: inline-block;\n\n\t\t.", " {\n\t\t\tcursor: pointer;\n\n\t\t\t&.", " > span {\n\t\t\t\t/** needed for selection style to cover custom emoji image properly */\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", ", .", " {\n\t\t\t\tborder-radius: 2px;\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\t}\n"])), _emoji.EmojiSharedCssClassName.EMOJI_CONTAINER, _emoji.EmojiSharedCssClassName.EMOJI_NODE, _emoji.EmojiSharedCssClassName.EMOJI_IMAGE, _editorSharedStyles.akEditorSelectedNodeClassName, _emoji.EmojiSharedCssClassName.EMOJI_SPRITE, _emoji.EmojiSharedCssClassName.EMOJI_IMAGE, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.Blanket, _editorSharedStyles.SelectionStyle.BoxShadow]));
113
+ var emojiStyles = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\t[data-prosemirror-node-view-type='vanilla'] {\n\t\t.", " {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t.", ", .", " {\n\t\t\tbackground: no-repeat transparent;\n\t\t\tdisplay: inline-block;\n\t\t\theight: ", "px;\n\t\t\tmax-height: ", "px;\n\t\t\tcursor: pointer;\n\t\t\tvertical-align: middle;\n\t\t\tuser-select: all;\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", ", .", " {\n\t\t\t\tborder-radius: 2px;\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\t}\n"])), _emoji.EmojiSharedCssClassName.EMOJI_CONTAINER, _emoji.EmojiSharedCssClassName.EMOJI_SPRITE, _emoji.EmojiSharedCssClassName.EMOJI_IMAGE, _emoji.defaultEmojiHeight, _emoji.defaultEmojiHeight, _editorSharedStyles.akEditorSelectedNodeClassName, _emoji.EmojiSharedCssClassName.EMOJI_SPRITE, _emoji.EmojiSharedCssClassName.EMOJI_IMAGE, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.Blanket, _editorSharedStyles.SelectionStyle.BoxShadow]));
105
114
 
106
115
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
107
116
  var placeholderStyles = exports.placeholderStyles = (0, _react2.css)({
@@ -142,13 +151,13 @@ var akEditorBreakpointForSmallDevice = "1266px";
142
151
 
143
152
  // jest warning: JSDOM version (22) doesn't support the new @container CSS rule
144
153
  var contentStyles = function contentStyles() {
145
- return (0, _react2.css)(_templateObject6 || (_templateObject6 = (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--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.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\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.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: var(--ak-editor-base-font-size);\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\t}\n\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 * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\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\n\t", "\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n ", ";\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n // Switch between the two icons based on the visual refresh feature gate\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\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\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In 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\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n\t 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, _styles.whitespaceSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('editor_request_to_edit_task') ? null : (0, _react2.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true) ? (0, _react2.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", _styles5.placeholderTextStyles, 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, _codeBlockStyles.codeBlockStyles, (0, _styles2.blocktypeStyles)(), _codeMarkStyles.codeMarkStyles, _styles.textColorStyles, _backgroundColorStyles.backgroundColorStyles, listsStyles, _rule.ruleStyles, _mediaStyles.mediaStyles, (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ? _collab.telepointerStyle : _collab.telepointerStyleWithInitialOnly, _selection.gapCursorStyles, (0, _panel.panelStyles)(), mentionsStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
154
+ return (0, _react2.css)(_templateObject5 || (_templateObject5 = (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--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.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\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.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: var(--ak-editor-base-font-size);\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\t}\n\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 * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\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\n\t", "\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n ", ";\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n // Switch between the two icons based on the visual refresh feature gate\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\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\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In 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\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n\t 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, _whitespaceStyles.whitespaceStyles, _styles.listsSharedStyles, _indentationStyles.indentationStyles, _shadowStyles.shadowStyles, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('editor_request_to_edit_task') ? null : (0, _react2.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true) ? (0, _react2.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", _styles5.placeholderTextStyles, 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, _codeBlockStyles.codeBlockStyles, (0, _styles2.blocktypeStyles)(), _codeMarkStyles.codeMarkStyles, _textColorStyles.textColorStyles, _backgroundColorStyles.backgroundColorStyles, _list.listsStyles, _rule.ruleStyles, _mediaStyles.mediaStyles, (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ? _collab.telepointerStyle : _collab.telepointerStyleWithInitialOnly, _selection.gapCursorStyles, (0, _panel.panelStyles)(), mentionsStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
146
155
  exposure: false
147
156
  }) && vanillaMentionsStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
148
157
  exposure: false
149
158
  }) && vanillaSelectionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
150
159
  exposure: false
151
- }) ? emojiStyles : reactEmojiStyles, emojiStyles, _tasksAndDecisionsStyles.tasksAndDecisionsStyles, _styles.gridStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
160
+ }) ? emojiStyles : reactEmojiStyles, emojiStyles, _tasksAndDecisionsStyles.tasksAndDecisionsStyles, _gridStyles.gridStyles, _blockMarksStyles.blockMarksStyles, _dateStyles.dateStyles, _extension.extensionStyles, (0, _expand.expandStyles)(), _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
152
161
  exposure: false
153
162
  }) && _tasksAndDecisions.vanillaTaskItemStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
154
163
  exposure: false
@@ -156,7 +165,7 @@ var contentStyles = function contentStyles() {
156
165
  exposure: false
157
166
  }) && (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.vanillaTaskDecisionIconWithVisualRefresh, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
158
167
  exposure: false
159
- }) && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.vanillaTaskDecisionIconWithoutVisualRefresh, _status.statusStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) ? (0, _status.vanillaStatusStyles)() : null, _annotationStyles.annotationStyles, (0, _styles.smartCardStyles)(), (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? (0, _styles.getSmartCardSharedStyles)() : _styles.smartCardSharedStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) ? _date.dateVanillaStyles : null, _date.dateStyles, _embedCardStyles.embedCardStyles, _styles.unsupportedStyles, _resizerStyles.resizerStyles, !(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);
168
+ }) && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.vanillaTaskDecisionIconWithoutVisualRefresh, _status.statusStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) ? (0, _status.vanillaStatusStyles)() : null, _annotationStyles.annotationStyles, (0, _styles.smartCardStyles)(), (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? (0, _styles.getSmartCardSharedStyles)() : _styles.smartCardSharedStyles, _embedCardStyles.embedCardStyles, _unsupportedStyles.unsupportedStyles, _resizerStyles.resizerStyles, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject9 || (_templateObject9 = (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);
160
169
  };
161
170
  var CommentEditorMargin = 14;
162
171
 
@@ -226,7 +235,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
226
235
  ref: ref,
227
236
  css: [contentStyles(),
228
237
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
229
- (0, _layout.layoutBaseStyles)(), (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? (0, _platformFeatureFlags.fg)('platform-dst-jira-web-fonts') || (0, _platformFeatureFlags.fg)('confluence_typography_refreshed') || (0, _platformFeatureFlags.fg)('atlas_editor_typography_refreshed') ?
238
+ (0, _layout.layoutBaseStyles)(), (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) &&
239
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
240
+ _dateStyles.dateVanillaStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? (0, _platformFeatureFlags.fg)('platform-dst-jira-web-fonts') || (0, _platformFeatureFlags.fg)('confluence_typography_refreshed') || (0, _platformFeatureFlags.fg)('atlas_editor_typography_refreshed') ?
230
241
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
231
242
  _paragraphStyles.paragraphStylesUGCRefreshed :
232
243
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -234,14 +245,20 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
234
245
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
235
246
  _paragraphStyles.paragraphStylesOld,
236
247
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
237
- (0, _platformFeatureFlags.fg)('platform_editor_hyperlink_underline') ? _link.linkStyles : _link.linkStylesOld, (0, _experiments.editorExperiment)('platform_editor_breakout_resizing', true) &&
248
+ (0, _platformFeatureFlags.fg)('platform_editor_hyperlink_underline') ? _link.linkStyles : _link.linkStylesOld,
249
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
250
+ _browser.browser.safari && _list.listsStylesSafariFix, (0, _experiments.editorExperiment)('platform_editor_breakout_resizing', true) &&
238
251
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
239
252
  _resizerStyles.pragmaticResizerStyles,
240
253
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
241
254
  _aiPanel.aiPanelBaseStyles,
242
255
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
256
+ isFirefox && _aiPanel.aiPanelBaseFirefoxStyles,
257
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
243
258
  colorMode === 'dark' && _aiPanel.aiPanelDarkStyles,
244
259
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
260
+ colorMode === 'dark' && isFirefox && _aiPanel.aiPanelDarkFirefoxStyles,
261
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
245
262
  viewMode === 'view' && _layout.layoutViewStyles, isComment && commentEditorStyles, isFullPage && fullPageEditorStyles, (0, _platformFeatureFlags.fg)('platform_editor_ssr_fix_lists') && listLayoutShiftFix, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ?
246
263
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
247
264
  _codeBlockStyles.firstCodeBlockWithNoMargin :