@atlaskit/editor-core 207.0.2 → 207.0.4

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 (40) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/ui/Appearance/Chromeless.js +13 -2
  3. package/dist/cjs/ui/Appearance/Comment/Comment.js +3 -1
  4. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +3 -1
  5. package/dist/cjs/ui/ContentStyles/ai-panels.js +6 -1
  6. package/dist/cjs/ui/ContentStyles/index.js +10 -3
  7. package/dist/cjs/ui/ContentStyles/layout.js +8 -1
  8. package/dist/cjs/ui/ContentStyles/status.js +2 -2
  9. package/dist/cjs/ui/EditorContentContainer.js +227 -30
  10. package/dist/cjs/utils/extensions.js +16 -26
  11. package/dist/cjs/version-wrapper.js +1 -1
  12. package/dist/es2019/ui/Appearance/Chromeless.js +11 -1
  13. package/dist/es2019/ui/Appearance/Comment/Comment.js +3 -1
  14. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +3 -1
  15. package/dist/es2019/ui/ContentStyles/ai-panels.js +7 -0
  16. package/dist/es2019/ui/ContentStyles/index.js +12 -5
  17. package/dist/es2019/ui/ContentStyles/layout.js +7 -0
  18. package/dist/es2019/ui/ContentStyles/status.js +2 -2
  19. package/dist/es2019/ui/EditorContentContainer.js +759 -34
  20. package/dist/es2019/utils/extensions.js +16 -26
  21. package/dist/es2019/version-wrapper.js +1 -1
  22. package/dist/esm/ui/Appearance/Chromeless.js +13 -2
  23. package/dist/esm/ui/Appearance/Comment/Comment.js +3 -1
  24. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +3 -1
  25. package/dist/esm/ui/ContentStyles/ai-panels.js +7 -0
  26. package/dist/esm/ui/ContentStyles/index.js +10 -3
  27. package/dist/esm/ui/ContentStyles/layout.js +7 -0
  28. package/dist/esm/ui/ContentStyles/status.js +2 -2
  29. package/dist/esm/ui/EditorContentContainer.js +231 -30
  30. package/dist/esm/utils/extensions.js +16 -26
  31. package/dist/esm/version-wrapper.js +1 -1
  32. package/dist/types/ui/Appearance/Chromeless.d.ts +8 -0
  33. package/dist/types/ui/ContentStyles/ai-panels.d.ts +6 -0
  34. package/dist/types/ui/ContentStyles/layout.d.ts +6 -0
  35. package/dist/types/ui/EditorContentContainer.d.ts +0 -3
  36. package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +8 -0
  37. package/dist/types-ts4.5/ui/ContentStyles/ai-panels.d.ts +6 -0
  38. package/dist/types-ts4.5/ui/ContentStyles/layout.d.ts +6 -0
  39. package/dist/types-ts4.5/ui/EditorContentContainer.d.ts +0 -3
  40. package/package.json +7 -7
@@ -70,33 +70,23 @@ export async function extensionProviderToQuickInsertProvider(extensionProvider,
70
70
  isDisabledOffline: true,
71
71
  action: (insert, state, source) => {
72
72
  if (typeof item.node === 'function') {
73
- if (fg('platform_editor_add_extension_api_to_quick_insert')) {
74
- var _apiRef$current, _apiRef$current$exten, _apiRef$current$exten2;
75
- const extensionAPI = apiRef === null || apiRef === void 0 ? void 0 : (_apiRef$current = apiRef.current) === null || _apiRef$current === void 0 ? void 0 : (_apiRef$current$exten = _apiRef$current.extension) === null || _apiRef$current$exten === void 0 ? void 0 : (_apiRef$current$exten2 = _apiRef$current$exten.actions) === null || _apiRef$current$exten2 === void 0 ? void 0 : _apiRef$current$exten2.api();
76
- // While this should only run when the extension some setups of editor
77
- // may not have the extension API
78
- if (extensionAPI) {
79
- resolveImport(item.node(extensionAPI)).then(node => {
80
- sendExtensionQuickInsertAnalytics(item, state.selection, createAnalyticsEvent, source);
81
- if (node) {
82
- editorActions.replaceSelection(node);
83
- }
84
- });
85
- } else {
86
- // Originally it was understood we could only use this if we were using the extension plugin
87
- // However there are some edge cases where this is not true (ie. in jira)
88
- // Since making it optional now would be a breaking change - instead we can just pass a dummy
89
- // extension API to consumers that warns them of using the methods.
90
- resolveImport(item.node(dummyExtensionAPI)).then(node => {
91
- sendExtensionQuickInsertAnalytics(item, state.selection, createAnalyticsEvent, source);
92
- if (node) {
93
- editorActions.replaceSelection(node);
94
- }
95
- });
96
- }
73
+ var _apiRef$current, _apiRef$current$exten, _apiRef$current$exten2;
74
+ const extensionAPI = apiRef === null || apiRef === void 0 ? void 0 : (_apiRef$current = apiRef.current) === null || _apiRef$current === void 0 ? void 0 : (_apiRef$current$exten = _apiRef$current.extension) === null || _apiRef$current$exten === void 0 ? void 0 : (_apiRef$current$exten2 = _apiRef$current$exten.actions) === null || _apiRef$current$exten2 === void 0 ? void 0 : _apiRef$current$exten2.api();
75
+ // While this should only run when the extension some setups of editor
76
+ // may not have the extension API
77
+ if (extensionAPI) {
78
+ resolveImport(item.node(extensionAPI)).then(node => {
79
+ sendExtensionQuickInsertAnalytics(item, state.selection, createAnalyticsEvent, source);
80
+ if (node) {
81
+ editorActions.replaceSelection(node);
82
+ }
83
+ });
97
84
  } else {
98
- // @ts-expect-error No longer supported without extension API - this will be removed once we cleanup the FG.
99
- resolveImport(item.node()).then(node => {
85
+ // Originally it was understood we could only use this if we were using the extension plugin
86
+ // However there are some edge cases where this is not true (ie. in jira)
87
+ // Since making it optional now would be a breaking change - instead we can just pass a dummy
88
+ // extension API to consumers that warns them of using the methods.
89
+ resolveImport(item.node(dummyExtensionAPI)).then(node => {
100
90
  sendExtensionQuickInsertAnalytics(item, state.selection, createAnalyticsEvent, source);
101
91
  if (node) {
102
92
  editorActions.replaceSelection(node);
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "207.0.2";
2
+ export const version = "207.0.4";
@@ -49,9 +49,15 @@ scrollbarStyles, {
49
49
  export var ContentArea = createEditorContentStyle();
50
50
  ContentArea.displayName = 'ContentArea';
51
51
  var EditorContainer = componentWithCondition(function () {
52
- return editorExperiment('platform_editor_core_static_emotion', true);
52
+ return editorExperiment('platform_editor_core_static_emotion', true, {
53
+ exposure: true
54
+ });
53
55
  }, EditorContentContainer, ContentArea);
54
56
 
57
+ /**
58
+ * Render the editor in a chromeless appearance.
59
+ * Example use is the inline comment editor, which doesn't have editor toolbar
60
+ */
55
61
  // Ignored via go/ees005
56
62
  // eslint-disable-next-line @repo/internal/react/no-class-components
57
63
  var Editor = /*#__PURE__*/function (_React$Component) {
@@ -134,7 +140,12 @@ var Editor = /*#__PURE__*/function (_React$Component) {
134
140
  _inherits(Editor, _React$Component);
135
141
  return _createClass(Editor, [{
136
142
  key: "render",
137
- value: function render() {
143
+ value:
144
+ /**
145
+ *
146
+ * @example
147
+ */
148
+ function render() {
138
149
  return jsx(RenderWithPluginState, {
139
150
  editorAPI: this.props.editorAPI,
140
151
  renderChrome: this.renderChrome
@@ -78,7 +78,9 @@ var secondaryToolbarStyles = css({
78
78
  });
79
79
  var appearance = 'comment';
80
80
  var EditorContainer = componentWithCondition(function () {
81
- return editorExperiment('platform_editor_core_static_emotion', true);
81
+ return editorExperiment('platform_editor_core_static_emotion', true, {
82
+ exposure: true
83
+ });
82
84
  }, EditorContentContainer, ContentArea);
83
85
  export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
84
86
  var editorAPI = props.editorAPI;
@@ -42,7 +42,9 @@ scrollbarStyles);
42
42
  var ScrollContainer = createEditorContentStyle(scrollStyles);
43
43
  ScrollContainer.displayName = 'ScrollContainer';
44
44
  var EditorContainer = componentWithCondition(function () {
45
- return editorExperiment('platform_editor_core_static_emotion', true);
45
+ return editorExperiment('platform_editor_core_static_emotion', true, {
46
+ exposure: true
47
+ });
46
48
  }, EditorContentContainer, ScrollContainer);
47
49
  var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
48
50
  var _contentAreaRef$curre;
@@ -3,6 +3,13 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  var _templateObject;
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ /**
7
+ * TODO ED-26957 - remove legacy styles when static emotion refactor is complete
8
+ * We are moving this to new location under FF: platform_editor_core_static_emotion
9
+ * New location: packages/editor/editor-core/src/ui/EditorContentContainer.tsx
10
+ * If you are making updates to this file, please updates in new location as well.
11
+ */
12
+
6
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
14
  import { css, keyframes } from '@emotion/react';
8
15
  var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
@@ -150,7 +150,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
150
150
  var legacyContentStyles = function legacyContentStyles(props) {
151
151
  return css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\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: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\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\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 ", "\n ", "\n /* Switch between the two icons based on the visual refresh feature gate */\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\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\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"])), akEditorGutterPadding, akEditorGutterPaddingDynamic(), akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, editorFontSize({
152
152
  theme: props.theme
153
- }), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\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 "]))), fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t "]))) : null, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t "]))) : null, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, codeBlockStyles(), blocktypeStyles(props.typographyTheme), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), layoutStyles(props.viewMode), fg('confluence_team_presence_scroll_to_pointer') ? telepointerStyle : telepointerStyleWithInitialOnly, gapCursorStyles, panelStyles(), mentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
153
+ }), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\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"]))), fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\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, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\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)", placeholderTextStyles, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, codeBlockStyles(), blocktypeStyles(props.typographyTheme), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), layoutStyles(props.viewMode), fg('confluence_team_presence_scroll_to_pointer') ? telepointerStyle : telepointerStyleWithInitialOnly, gapCursorStyles, panelStyles(), mentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
154
154
  exposure: false
155
155
  }) && vanillaMentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
156
156
  exposure: false
@@ -164,8 +164,15 @@ var legacyContentStyles = function legacyContentStyles(props) {
164
164
  exposure: false
165
165
  }) && fg('platform-visual-refresh-icons') && vanillaDecisionIconWithVisualRefresh, editorExperiment('platform_editor_vanilla_dom', true, {
166
166
  exposure: false
167
- }) && !fg('platform-visual-refresh-icons') && vanillaDecisionIconWithoutVisualRefresh, statusStyles, editorExperiment('platform_editor_vanilla_dom', true) ? vanillaStatusStyles() : null, annotationSharedStyles(), smartCardStyles(), fg('platform-linking-visual-refresh-v1') ? getSmartCardSharedStyles() : smartCardSharedStyles, editorExperiment('platform_editor_vanilla_dom', true) ? dateVanillaStyles : null, dateStyles, embedCardStyles(), unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), fixBlockControlStylesSSR(), MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !fg('platform-visual-refresh-icons') ? css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\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 "]))) : null);
167
+ }) && !fg('platform-visual-refresh-icons') && vanillaDecisionIconWithoutVisualRefresh, statusStyles, editorExperiment('platform_editor_vanilla_dom', true) ? vanillaStatusStyles() : null, annotationSharedStyles(), smartCardStyles(), fg('platform-linking-visual-refresh-v1') ? getSmartCardSharedStyles() : smartCardSharedStyles, editorExperiment('platform_editor_vanilla_dom', true) ? dateVanillaStyles : null, dateStyles, embedCardStyles(), unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), fixBlockControlStylesSSR(), MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !fg('platform-visual-refresh-icons') ? css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\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
168
  };
169
+ var listLayoutShiftFix = css({
170
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
171
+ '.ProseMirror ul, .ProseMirror ol': {
172
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
173
+ marginTop: '10px'
174
+ }
175
+ });
169
176
  export var createEditorContentStyle = function createEditorContentStyle(styles) {
170
177
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
171
178
  var className = props.className,
@@ -198,7 +205,7 @@ export var createEditorContentStyle = function createEditorContentStyle(styles)
198
205
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
199
206
  className: className,
200
207
  ref: ref,
201
- css: [memoizedStyle, styles],
208
+ css: [memoizedStyle, styles, fg('platform_editor_ssr_fix_lists') && listLayoutShiftFix],
202
209
  "data-testid": "editor-content-container"
203
210
  }, children);
204
211
  });
@@ -1,5 +1,12 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
3
+ /**
4
+ * TODO ED-26957 - remove legacy styles when static emotion refactor is complete
5
+ * We are moving this to new location under FF: platform_editor_core_static_emotion
6
+ * New location: packages/editor/editor-core/src/ui/EditorContentContainer.tsx
7
+ * If you are making updates to this file, please updates in new location as well.
8
+ */
9
+
3
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
11
  import { css } from '@emotion/react';
5
12
  import { columnLayoutResponsiveSharedStyle, columnLayoutSharedStyle, LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN } from '@atlaskit/editor-common/styles';
@@ -10,8 +10,8 @@ var getVisualRefreshStatusStyles = function getVisualRefreshStatusStyles() {
10
10
  return (
11
11
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
12
12
  fg('platform-component-visual-refresh') ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
13
- css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\t&.", " .", " > span {\n\t\t\t\t\tbox-shadow: ", ";\n\t\t\t\t}\n\t\t "])), akEditorSelectedNodeClassName, StatusSharedCssClassName.STATUS_LOZENGE, akEditorSelectedBoldBoxShadow) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
14
- css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t\t\t&.", " .", " > span {\n\t\t\t\t\t", "\n\t\t\t\t}\n\t\t "])), akEditorSelectedNodeClassName, StatusSharedCssClassName.STATUS_LOZENGE, getSelectionStyles([SelectionStyle.BoxShadow]))
13
+ css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\t&.", " .", " > span {\n\t\t\t\t\tbox-shadow: ", ";\n\t\t\t\t}\n\t\t\t"])), akEditorSelectedNodeClassName, StatusSharedCssClassName.STATUS_LOZENGE, akEditorSelectedBoldBoxShadow) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
14
+ css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t\t\t&.", " .", " > span {\n\t\t\t\t\t", "\n\t\t\t\t}\n\t\t\t"])), akEditorSelectedNodeClassName, StatusSharedCssClassName.STATUS_LOZENGE, getSelectionStyles([SelectionStyle.BoxShadow]))
15
15
  );
16
16
  };
17
17
  var getStatusColors = function getStatusColors() {