@atlaskit/editor-core 207.12.4 → 207.13.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 207.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#163361](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/163361)
8
+ [`76c3619bccda1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76c3619bccda1) -
9
+ Changed the annotation manager feature gate to instead use the existance of the manager rather
10
+ then a gate
11
+ - Updated dependencies
12
+
13
+ ## 207.13.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#163416](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/163416)
18
+ [`e114a02395774`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e114a02395774) -
19
+ [ux] Migrate blocktype styles to static emotion
20
+
21
+ ### Patch Changes
22
+
23
+ - [#163309](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/163309)
24
+ [`23a8b88475991`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/23a8b88475991) -
25
+ Clean up of FG platform_editor_fix_drag_and_drop_lists
26
+ - Updated dependencies
27
+
3
28
  ## 207.12.4
4
29
 
5
30
  ### Patch Changes
@@ -11,10 +11,9 @@ var _react2 = require("@emotion/react");
11
11
  var _browser = require("@atlaskit/editor-common/browser");
12
12
  var _selection = require("@atlaskit/editor-common/selection");
13
13
  var _styles = require("@atlaskit/editor-common/styles");
14
- var _styles2 = require("@atlaskit/editor-plugins/block-type/styles");
15
- var _styles3 = require("@atlaskit/editor-plugins/find-replace/styles");
16
- var _styles4 = require("@atlaskit/editor-plugins/paste-options-toolbar/styles");
17
- var _styles5 = require("@atlaskit/editor-plugins/placeholder-text/styles");
14
+ var _styles2 = require("@atlaskit/editor-plugins/find-replace/styles");
15
+ var _styles3 = require("@atlaskit/editor-plugins/paste-options-toolbar/styles");
16
+ var _styles4 = require("@atlaskit/editor-plugins/placeholder-text/styles");
18
17
  var _commonStyles = require("@atlaskit/editor-plugins/table/ui/common-styles");
19
18
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
20
19
  var _scrollbar = require("@atlaskit/editor-shared-styles/scrollbar");
@@ -31,9 +30,11 @@ var _aiPanel = require("./styles/aiPanel");
31
30
  var _annotationStyles = require("./styles/annotationStyles");
32
31
  var _backgroundColorStyles = require("./styles/backgroundColorStyles");
33
32
  var _blockMarksStyles = require("./styles/blockMarksStyles");
33
+ var _blockTypeStyles = require("./styles/blockTypeStyles");
34
34
  var _codeBlockStyles = require("./styles/codeBlockStyles");
35
35
  var _codeMarkStyles = require("./styles/codeMarkStyles");
36
36
  var _dateStyles = require("./styles/dateStyles");
37
+ var _editorUGCTokenStyles = require("./styles/editorUGCTokenStyles");
37
38
  var _embedCardStyles = require("./styles/embedCardStyles");
38
39
  var _emoji = require("./styles/emoji");
39
40
  var _firstBlockNodeStyles = require("./styles/firstBlockNodeStyles");
@@ -104,7 +105,15 @@ var akEditorBreakpointForSmallDevice = "1266px";
104
105
 
105
106
  // jest warning: JSDOM version (22) doesn't support the new @container CSS rule
106
107
  var contentStyles = function contentStyles() {
107
- return (0, _react2.css)(_templateObject || (_templateObject = (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\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 /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */\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 // 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\t.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, _indentationStyles.indentationStyles, _shadowStyles.shadowStyles, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('editor_request_to_edit_task') ? null : (0, _react2.css)(_templateObject2 || (_templateObject2 = (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)(_templateObject3 || (_templateObject3 = (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)(_templateObject4 || (_templateObject4 = (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') ? _telepointerStyles.telepointerStyle : _telepointerStyles.telepointerStyleWithInitialOnly, _telepointerStyles.telepointerColorAndCommonStyle, _selection.gapCursorStyles, (0, _panel.panelStyles)(), _mentions.mentionsStyles, _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, {
108
+ return (0, _react2.css)(_templateObject || (_templateObject = (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\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\t", "\n\n\t", "\n\t", "\n \t", "\n\n\n \t", "\n\n\t", "\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */\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 // 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\t.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, _indentationStyles.indentationStyles, _shadowStyles.shadowStyles, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('editor_request_to_edit_task') ? null : (0, _react2.css)(_templateObject2 || (_templateObject2 = (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)(_templateObject3 || (_templateObject3 = (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)(_templateObject4 || (_templateObject4 = (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)", _styles4.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, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _editorUGCTokenStyles.editorUGCTokensDefault,
109
+ // eslint-disable-next-line @atlaskit/platform/no-preconditioning
110
+ (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && ( /* eslint-disable @atlaskit/platform/ensure-feature-flag-prefix */
111
+ (0, _platformFeatureFlags.fg)('platform-dst-jira-web-fonts') || (0, _platformFeatureFlags.fg)('confluence_typography_refreshed') || (0, _platformFeatureFlags.fg)('atlas_editor_typography_refreshed')) && _editorUGCTokenStyles.editorUGCTokensRefreshed
112
+ /* eslint-enable @atlaskit/platform/ensure-feature-flag-prefix */,
113
+ // eslint-disable-next-line @atlaskit/platform/no-preconditioning
114
+ (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && /* eslint-disable @atlaskit/platform/ensure-feature-flag-prefix */
115
+ !((0, _platformFeatureFlags.fg)('platform-dst-jira-web-fonts') || (0, _platformFeatureFlags.fg)('confluence_typography_refreshed') || (0, _platformFeatureFlags.fg)('atlas_editor_typography_refreshed')) && _editorUGCTokenStyles.editorUGCTokensModernized
116
+ /* eslint-enable @atlaskit/platform/ensure-feature-flag-prefix */, _blockTypeStyles.blocktypeStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _blockTypeStyles.blocktypeStyles_fg_platform_editor_typography_ugc, !(0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _blockTypeStyles.blocktypeStyles_without_fg_platform_editor_typography_ugc, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && _blockTypeStyles.blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes, _codeMarkStyles.codeMarkStyles, _textColorStyles.textColorStyles, _backgroundColorStyles.backgroundColorStyles, _list.listsStyles, _rule.ruleStyles, _mediaStyles.mediaStyles, (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ? _telepointerStyles.telepointerStyle : _telepointerStyles.telepointerStyleWithInitialOnly, _telepointerStyles.telepointerColorAndCommonStyle, _selection.gapCursorStyles, (0, _panel.panelStyles)(), _mentions.mentionsStyles, _tasksAndDecisionsStyles.tasksAndDecisionsStyles, _gridStyles.gridStyles, _blockMarksStyles.blockMarksStyles, _dateStyles.dateStyles, _extension.extensionStyles, (0, _expand.expandStyles)(), _styles2.findReplaceStyles, _styles3.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
108
117
  exposure: false
109
118
  }) && _tasksAndDecisions.vanillaTaskItemStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
110
119
  exposure: false
@@ -0,0 +1,294 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.blocktypeStyles_without_fg_platform_editor_typography_ugc = exports.blocktypeStyles_fg_platform_editor_typography_ugc = exports.blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes = exports.blocktypeStyles = void 0;
7
+ var _react = require("@emotion/react");
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
9
+
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
11
+ var blocktypeStyles = exports.blocktypeStyles = (0, _react.css)({
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
13
+ '.ProseMirror': {
14
+ // Block Quote Shared Styles
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
16
+ '& blockquote': {
17
+ boxSizing: 'border-box',
18
+ color: 'inherit',
19
+ width: '100%',
20
+ display: 'inline-block',
21
+ paddingLeft: "var(--ds-space-200, 16px)",
22
+ borderLeftWidth: '2px',
23
+ borderLeftStyle: 'solid',
24
+ borderLeftColor: "var(--ds-border, #091E4224)",
25
+ margin: '0.75rem 0 0 0',
26
+ // From https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
27
+ marginRight: 0,
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
29
+ '[dir="rtl"] &': {
30
+ paddingLeft: 0,
31
+ paddingRight: "var(--ds-space-200, 16px)"
32
+ },
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
34
+ '&:first-child': {
35
+ marginTop: 0
36
+ },
37
+ '&::before': {
38
+ content: "''"
39
+ },
40
+ '&::after': {
41
+ content: 'none'
42
+ },
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
44
+ '& p': {
45
+ display: 'block'
46
+ },
47
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
48
+ '& table, & table:last-child': {
49
+ display: 'inline-table'
50
+ },
51
+ // Workaround for overriding the inline-block display on last child of a blockquote set in CSS reset.
52
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
53
+ '> .code-block:last-child, >.mediaSingleView-content-wrap:last-child, >.mediaGroupView-content-wrap:last-child': {
54
+ display: 'block'
55
+ },
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
57
+ '> .extensionView-content-wrap:last-child': {
58
+ display: 'block'
59
+ }
60
+ },
61
+ // Headings Shared Styles -> Heading With Alignment Styles
62
+ // Override marginTop: 0 with default margin found in headingsSharedStyles for first heading in alignment block that is not the first child
63
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
64
+ '.fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)': {
65
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
66
+ '> h1:first-child': {
67
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
68
+ marginTop: '1.667em'
69
+ },
70
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
71
+ '> h2:first-child': {
72
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
73
+ marginTop: '1.8em'
74
+ },
75
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
76
+ '> h3:first-child': {
77
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
78
+ marginTop: '2em'
79
+ },
80
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
81
+ '> h4:first-child': {
82
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
83
+ marginTop: '1.357em'
84
+ },
85
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
86
+ '> h5:first-child': {
87
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
88
+ marginTop: '1.667em'
89
+ },
90
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
91
+ '> h6:first-child': {
92
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
93
+ marginTop: '1.455em'
94
+ }
95
+ },
96
+ // Set marginTop: 0 if alignment block is next to a gap cursor or widget that is first child
97
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
98
+ '.ProseMirror-gapcursor:first-child + .fabric-editor-block-mark.fabric-editor-alignment, .ProseMirror-widget:first-child + .fabric-editor-block-mark.fabric-editor-alignment, .ProseMirror-widget:first-child + .ProseMirror-widget:nth-child(2) + .fabric-editor-block-mark.fabric-editor-alignment': {
99
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
100
+ '> :is(h1, h2, h3, h4, h5, h6):first-child': {
101
+ marginTop: '0'
102
+ }
103
+ }
104
+ }
105
+ });
106
+
107
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
108
+ var blocktypeStyles_fg_platform_editor_typography_ugc = exports.blocktypeStyles_fg_platform_editor_typography_ugc = (0, _react.css)({
109
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
110
+ '.ProseMirror': {
111
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
112
+ '& h1': {
113
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
114
+ font: 'var(--editor-font-ugc-token-heading-h1)',
115
+ marginBottom: 0,
116
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
117
+ marginTop: '1.45833em',
118
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
119
+ '& strong': {
120
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
121
+ fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
122
+ }
123
+ },
124
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
125
+ '& h2': {
126
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
127
+ font: 'var(--editor-font-ugc-token-heading-h2)',
128
+ marginBottom: 0,
129
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
130
+ marginTop: '1.4em',
131
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
132
+ '& strong': {
133
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
134
+ fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
135
+ }
136
+ },
137
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
138
+ '& h3': {
139
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
140
+ font: 'var(--editor-font-ugc-token-heading-h3)',
141
+ marginBottom: 0,
142
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
143
+ marginTop: '1.31249em',
144
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
145
+ '& strong': {
146
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
147
+ fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
148
+ }
149
+ },
150
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
151
+ '& h4': {
152
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
153
+ font: 'var(--editor-font-ugc-token-heading-h4)',
154
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
155
+ marginTop: '1.25em',
156
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
157
+ '& strong': {
158
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
159
+ fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
160
+ }
161
+ },
162
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
163
+ '& h5': {
164
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
165
+ font: 'var(--editor-font-ugc-token-heading-h5)',
166
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
167
+ marginTop: '1.45833em',
168
+ textTransform: 'none',
169
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
170
+ '& strong': {
171
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
172
+ fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
173
+ }
174
+ },
175
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
176
+ '& h6': {
177
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
178
+ font: 'var(--editor-font-ugc-token-heading-h6)',
179
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
180
+ marginTop: '1.59091em',
181
+ textTransform: 'none',
182
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
183
+ '& strong': {
184
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
185
+ fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
186
+ }
187
+ }
188
+ }
189
+ });
190
+
191
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
192
+ var blocktypeStyles_without_fg_platform_editor_typography_ugc = exports.blocktypeStyles_without_fg_platform_editor_typography_ugc = (0, _react.css)({
193
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
194
+ '.ProseMirror': {
195
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
196
+ '& h1': {
197
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
198
+ fontSize: 'calc(24em / 14)',
199
+ fontStyle: 'inherit',
200
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
201
+ lineHeight: 'calc(28 / 24)',
202
+ color: "var(--ds-text, #172B4D)",
203
+ fontWeight: "var(--ds-font-weight-medium, 500)",
204
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
205
+ letterSpacing: "-0.01em",
206
+ marginBottom: 0,
207
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
208
+ marginTop: '1.667em'
209
+ },
210
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
211
+ '& h2': {
212
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
213
+ fontSize: 'calc(20em / 14)',
214
+ fontStyle: 'inherit',
215
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
216
+ lineHeight: 'calc(24 / 20)',
217
+ color: "var(--ds-text, #172B4D)",
218
+ fontWeight: "var(--ds-font-weight-medium, 500)",
219
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
220
+ letterSpacing: "-0.008em",
221
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
222
+ marginTop: '1.8em',
223
+ marginBottom: 0
224
+ },
225
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
226
+ '& h3': {
227
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
228
+ fontSize: 'calc(16em / 14)',
229
+ fontStyle: 'inherit',
230
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
231
+ lineHeight: 'calc(20 / 16)',
232
+ color: "var(--ds-text, #172B4D)",
233
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
234
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
235
+ letterSpacing: "-0.006em",
236
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
237
+ marginTop: '2em',
238
+ marginBottom: 0
239
+ },
240
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
241
+ '& h4': {
242
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
243
+ fontSize: 'calc(14em / 14)',
244
+ fontStyle: 'inherit',
245
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
246
+ lineHeight: 'calc(16 / 14)',
247
+ color: "var(--ds-text, #172B4D)",
248
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
249
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
250
+ letterSpacing: "-0.003em",
251
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
252
+ marginTop: '1.357em'
253
+ },
254
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
255
+ '& h5': {
256
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
257
+ fontSize: 'calc(12em / 14)',
258
+ fontStyle: 'inherit',
259
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
260
+ lineHeight: 'calc(16 / 12)',
261
+ color: "var(--ds-text, #172B4D)",
262
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
263
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
264
+ marginTop: '1.667em',
265
+ textTransform: 'none'
266
+ },
267
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
268
+ '& h6': {
269
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
270
+ fontSize: 'calc(11em / 14)',
271
+ fontStyle: 'inherit',
272
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
273
+ lineHeight: 'calc(16 / 11)',
274
+ color: "var(--ds-text-subtlest, #626F86)",
275
+ fontWeight: "var(--ds-font-weight-bold, 700)",
276
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
277
+ marginTop: '1.455em',
278
+ textTransform: 'none'
279
+ }
280
+ }
281
+ });
282
+
283
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
284
+ var blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes = exports.blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes = (0, _react.css)({
285
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
286
+ '.ak-editor-content-area.appearance-full-page .ProseMirror blockquote': {
287
+ paddingLeft: "var(--ds-space-250, 20px)"
288
+ },
289
+ // Don't want extra padding for inline editor (nested)
290
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
291
+ '.ak-editor-content-area .ak-editor-content-area .ProseMirror blockquote': {
292
+ paddingLeft: "var(--ds-space-200, 16px)"
293
+ }
294
+ });
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.editorUGCTokensRefreshed = exports.editorUGCTokensModernized = exports.editorUGCTokensDefault = void 0;
7
+ var _react = require("@emotion/react");
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
9
+
10
+ /**
11
+ * Use when fg('platform_editor_typography_ugc') is disabled.
12
+ */
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
14
+ var editorUGCTokensDefault = exports.editorUGCTokensDefault = (0, _react.css)({
15
+ '--editor-font-ugc-token-heading-h1': 'normal 500 1.71429em/1.16667 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
16
+ '--editor-font-ugc-token-heading-h2': 'normal 500 1.42857em/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
17
+ '--editor-font-ugc-token-heading-h3': 'normal 600 1.14286em/1.25 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
18
+ '--editor-font-ugc-token-heading-h4': 'normal 600 1em/1.14286 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
19
+ '--editor-font-ugc-token-heading-h5': 'normal 600 0.857143em/1.33333 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
20
+ '--editor-font-ugc-token-heading-h6': 'normal 700 0.785714em/1.45455 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
21
+ '--editor-font-ugc-token-body': 'normal 400 1em/1.714 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
22
+ '--editor-font-ugc-token-weight-heading-bold': '700'
23
+ });
24
+
25
+ /**
26
+ * Use when fg('platform_editor_typography_ugc') is enabled, but none of the following are enabled:
27
+ * - fg('platform-dst-jira-web-fonts')
28
+ * - fg('confluence_typography_refreshed')
29
+ * - fg('atlas_editor_typography_refreshed')
30
+ */
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
32
+ var editorUGCTokensModernized = exports.editorUGCTokensModernized = (0, _react.css)({
33
+ '--editor-font-ugc-token-heading-h1': 'normal 600 1.71429em/1.16667 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
34
+ '--editor-font-ugc-token-heading-h2': 'normal 600 1.42857em/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
35
+ '--editor-font-ugc-token-heading-h3': 'normal 600 1.14286em/1.25 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
36
+ '--editor-font-ugc-token-heading-h4': 'normal 600 1em/1.14286 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
37
+ '--editor-font-ugc-token-heading-h5': 'normal 600 0.857143em/1.33333 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
38
+ '--editor-font-ugc-token-heading-h6': 'normal 600 0.785714em/1.45455 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
39
+ '--editor-font-ugc-token-body': 'normal 400 1em/1.714 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
40
+ '--editor-font-ugc-token-weight-heading-bold': '700'
41
+ });
42
+
43
+ /**
44
+ * Use when fg('platform_editor_typography_ugc') is enabled and one of the following are enabled:
45
+ * - fg('platform-dst-jira-web-fonts')
46
+ * - fg('confluence_typography_refreshed')
47
+ * - fg('atlas_editor_typography_refreshed')
48
+ */
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
50
+ var editorUGCTokensRefreshed = exports.editorUGCTokensRefreshed = (0, _react.css)({
51
+ '--editor-font-ugc-token-heading-h1': 'normal 600 1.71429em/1.16667 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
52
+ '--editor-font-ugc-token-heading-h2': 'normal 600 1.42857em/1.2 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
53
+ '--editor-font-ugc-token-heading-h3': 'normal 600 1.14286em/1.25 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
54
+ '--editor-font-ugc-token-heading-h4': 'normal 600 1em/1.14286 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
55
+ '--editor-font-ugc-token-heading-h5': 'normal 600 0.857143em/1.33333 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
56
+ '--editor-font-ugc-token-heading-h6': 'normal 600 0.785714em/1.45455 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
57
+ '--editor-font-ugc-token-body': 'normal 400 1em/1.714 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
58
+ '--editor-font-ugc-token-weight-heading-bold': '700'
59
+ });
@@ -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 = "207.12.4";
8
+ var version = exports.version = "207.13.1";
@@ -12,7 +12,6 @@ import { css, jsx, useTheme } from '@emotion/react';
12
12
  import { browser } from '@atlaskit/editor-common/browser';
13
13
  import { gapCursorStyles } from '@atlaskit/editor-common/selection';
14
14
  import { GRID_GUTTER } from '@atlaskit/editor-common/styles';
15
- import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
16
15
  import { findReplaceStyles } from '@atlaskit/editor-plugins/find-replace/styles';
17
16
  import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
18
17
  import { placeholderTextStyles } from '@atlaskit/editor-plugins/placeholder-text/styles';
@@ -32,9 +31,11 @@ import { aiPanelBaseFirefoxStyles, aiPanelBaseStyles, aiPanelDarkFirefoxStyles,
32
31
  import { annotationStyles } from './styles/annotationStyles';
33
32
  import { backgroundColorStyles } from './styles/backgroundColorStyles';
34
33
  import { blockMarksStyles } from './styles/blockMarksStyles';
34
+ import { blocktypeStyles, blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes, blocktypeStyles_fg_platform_editor_typography_ugc, blocktypeStyles_without_fg_platform_editor_typography_ugc } from './styles/blockTypeStyles';
35
35
  import { codeBlockStyles, firstCodeBlockWithNoMargin, firstCodeBlockWithNoMarginOld } from './styles/codeBlockStyles';
36
36
  import { codeMarkStyles } from './styles/codeMarkStyles';
37
37
  import { dateStyles, dateVanillaStyles } from './styles/dateStyles';
38
+ import { editorUGCTokensDefault, editorUGCTokensModernized, editorUGCTokensRefreshed } from './styles/editorUGCTokenStyles';
38
39
  import { embedCardStyles } from './styles/embedCardStyles';
39
40
  import { reactEmojiStyles, vanillaEmojiStyles } from './styles/emoji';
40
41
  import { firstBlockNodeStyles, firstBlockNodeStylesOld } from './styles/firstBlockNodeStyles';
@@ -205,9 +206,27 @@ const contentStyles = () => css`
205
206
 
206
207
  ${editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null}
207
208
 
208
- ${codeBlockStyles}
209
+ ${codeBlockStyles}
209
210
 
210
- ${blocktypeStyles()}
211
+ ${!fg('platform_editor_typography_ugc') && editorUGCTokensDefault}
212
+ ${
213
+ // eslint-disable-next-line @atlaskit/platform/no-preconditioning
214
+ fg('platform_editor_typography_ugc') && ( /* eslint-disable @atlaskit/platform/ensure-feature-flag-prefix */
215
+ fg('platform-dst-jira-web-fonts') || fg('confluence_typography_refreshed') || fg('atlas_editor_typography_refreshed')) && editorUGCTokensRefreshed
216
+ /* eslint-enable @atlaskit/platform/ensure-feature-flag-prefix */}
217
+ ${
218
+ // eslint-disable-next-line @atlaskit/platform/no-preconditioning
219
+ fg('platform_editor_typography_ugc') && /* eslint-disable @atlaskit/platform/ensure-feature-flag-prefix */
220
+ !(fg('platform-dst-jira-web-fonts') || fg('confluence_typography_refreshed') || fg('atlas_editor_typography_refreshed')) && editorUGCTokensModernized
221
+ /* eslint-enable @atlaskit/platform/ensure-feature-flag-prefix */}
222
+
223
+
224
+ ${blocktypeStyles}
225
+
226
+ ${fg('platform_editor_typography_ugc') && blocktypeStyles_fg_platform_editor_typography_ugc}
227
+ ${!fg('platform_editor_typography_ugc') && blocktypeStyles_without_fg_platform_editor_typography_ugc}
228
+
229
+ ${fg('platform_editor_nested_dnd_styles_changes') && blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes}
211
230
 
212
231
  ${codeMarkStyles}
213
232