@atlaskit/editor-core 208.3.4 → 208.3.6

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 (43) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper.js +119 -0
  3. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +6 -1
  4. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +9 -9
  5. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper.js +97 -0
  6. package/dist/cjs/ui/ContentStyles/index.js +8 -7
  7. package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +1 -1
  8. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +11 -19
  9. package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +82 -1
  10. package/dist/cjs/ui/EditorContentContainer/styles/mentions.js +7 -3
  11. package/dist/cjs/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +1 -1
  12. package/dist/cjs/version-wrapper.js +1 -1
  13. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper.js +103 -0
  14. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +6 -1
  15. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +10 -10
  16. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper.js +92 -0
  17. package/dist/es2019/ui/ContentStyles/index.js +11 -10
  18. package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +1 -1
  19. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +15 -23
  20. package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +109 -0
  21. package/dist/es2019/ui/EditorContentContainer/styles/mentions.js +6 -2
  22. package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +1 -1
  23. package/dist/es2019/version-wrapper.js +1 -1
  24. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper.js +111 -0
  25. package/dist/esm/ui/Appearance/FullPage/FullPage.js +6 -1
  26. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +10 -10
  27. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper.js +90 -0
  28. package/dist/esm/ui/ContentStyles/index.js +9 -8
  29. package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +1 -1
  30. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +15 -23
  31. package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +81 -0
  32. package/dist/esm/ui/EditorContentContainer/styles/mentions.js +6 -2
  33. package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +1 -1
  34. package/dist/esm/version-wrapper.js +1 -1
  35. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +15 -0
  36. package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +20 -0
  37. package/dist/types/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +1 -0
  38. package/dist/types/ui/EditorContentContainer/styles/mentions.d.ts +2 -2
  39. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +15 -0
  40. package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +20 -0
  41. package/dist/types-ts4.5/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +1 -0
  42. package/dist/types-ts4.5/ui/EditorContentContainer/styles/mentions.d.ts +2 -2
  43. package/package.json +4 -18
@@ -0,0 +1,111 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ import { css, jsx } from '@emotion/react';
9
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
10
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
+ import { mainToolbarFirstChildStyle, mainToolbarSecondChildStyle } from './MainToolbar';
12
+ // Pre-computed static styles for first- and second-child wrappers.
13
+ // These contain no runtime logic and are safe for static-emotion mode.
14
+
15
+ var firstChildStaticBase = css({
16
+ display: 'flex',
17
+ flexGrow: 1
18
+ });
19
+
20
+ // we can't avoid some kind of function call here, so we need to disable the rule
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
22
+ var firstChildStaticTwoLine = css({
23
+ '@media (max-width: 868px)': {
24
+ flex: '1 1 100%',
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
26
+ height: 'var(--ak-editor-fullpage-toolbar-height)',
27
+ justifyContent: 'flex-end',
28
+ minWidth: 'fit-content'
29
+ }
30
+ });
31
+ var secondChildStaticBase = css({
32
+ minWidth: 'fit-content'
33
+ });
34
+
35
+ // we can't avoid some kind of function call here, so we need to disable the rule
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
37
+ var secondChildStaticTwoLine = css({
38
+ '@media (max-width: 868px)': {
39
+ display: 'flex',
40
+ flexGrow: 1,
41
+ flex: '1 1 100%',
42
+ margin: 'auto',
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
44
+ height: 'var(--ak-editor-fullpage-toolbar-height)',
45
+ minWidth: 0
46
+ }
47
+ });
48
+
49
+ // ---------------- First child wrapper ----------------
50
+ var FirstChildWrapperStatic = function FirstChildWrapperStatic(_ref) {
51
+ var twoLineEditorToolbar = _ref.twoLineEditorToolbar,
52
+ children = _ref.children,
53
+ role = _ref.role,
54
+ ariaLabel = _ref['aria-label'],
55
+ testId = _ref['data-testid'];
56
+ return jsx("div", {
57
+ css: [firstChildStaticBase, twoLineEditorToolbar && firstChildStaticTwoLine],
58
+ role: role,
59
+ "aria-label": ariaLabel,
60
+ "data-testid": testId
61
+ }, children);
62
+ };
63
+ var FirstChildWrapperDynamic = function FirstChildWrapperDynamic(_ref2) {
64
+ var twoLineEditorToolbar = _ref2.twoLineEditorToolbar,
65
+ children = _ref2.children,
66
+ role = _ref2.role,
67
+ ariaLabel = _ref2['aria-label'],
68
+ testId = _ref2['data-testid'];
69
+ return jsx("div", {
70
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
71
+ css: mainToolbarFirstChildStyle(twoLineEditorToolbar),
72
+ role: role,
73
+ "aria-label": ariaLabel,
74
+ "data-testid": testId
75
+ }, children);
76
+ };
77
+ export var MainToolbarForFirstChildWrapper = componentWithCondition(function () {
78
+ return expValEquals('platform_editor_core_static_emotion_non_central', 'isEnabled', true);
79
+ }, FirstChildWrapperStatic, FirstChildWrapperDynamic);
80
+
81
+ // ---------------- Second child wrapper ----------------
82
+ var SecondChildWrapperStatic = function SecondChildWrapperStatic(_ref3) {
83
+ var twoLineEditorToolbar = _ref3.twoLineEditorToolbar,
84
+ children = _ref3.children,
85
+ role = _ref3.role,
86
+ ariaLabel = _ref3['aria-label'],
87
+ testId = _ref3['data-testid'];
88
+ return jsx("div", {
89
+ css: [secondChildStaticBase, twoLineEditorToolbar && secondChildStaticTwoLine],
90
+ role: role,
91
+ "aria-label": ariaLabel,
92
+ "data-testid": testId
93
+ }, children);
94
+ };
95
+ var SecondChildWrapperDynamic = function SecondChildWrapperDynamic(_ref4) {
96
+ var twoLineEditorToolbar = _ref4.twoLineEditorToolbar,
97
+ children = _ref4.children,
98
+ role = _ref4.role,
99
+ ariaLabel = _ref4['aria-label'],
100
+ testId = _ref4['data-testid'];
101
+ return jsx("div", {
102
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
103
+ css: mainToolbarSecondChildStyle(twoLineEditorToolbar),
104
+ role: role,
105
+ "aria-label": ariaLabel,
106
+ "data-testid": testId
107
+ }, children);
108
+ };
109
+ export var MainToolbarForSecondChildWrapper = componentWithCondition(function () {
110
+ return expValEquals('platform_editor_core_static_emotion_non_central', 'isEnabled', true);
111
+ }, SecondChildWrapperStatic, SecondChildWrapperDynamic);
@@ -11,6 +11,7 @@ import { browser } from '@atlaskit/editor-common/browser';
11
11
  import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
12
12
  import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
13
13
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
14
+ import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
14
15
  import { fg } from '@atlaskit/platform-feature-flags';
15
16
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
16
17
  import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
@@ -153,7 +154,11 @@ export var FullPageEditor = function FullPageEditor(props) {
153
154
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
154
155
  ,
155
156
  className: "akEditor",
156
- ref: wrapperElementRef
157
+ ref: wrapperElementRef,
158
+ style: {
159
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
160
+ '--ak-editor-fullpage-toolbar-height': FULL_PAGE_EDITOR_TOOLBAR_HEIGHT()
161
+ }
157
162
  }, !isEditorToolbarHidden && jsx(FullPageToolbar, {
158
163
  appearance: props.appearance,
159
164
  editorAPI: editorAPI,
@@ -16,7 +16,9 @@ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
16
16
  import { ToolbarPortalMountPoint, useToolbarPortal } from '../../Toolbar/ToolbarPortal';
17
17
  import { ToolbarWithSizeDetector as Toolbar } from '../../Toolbar/ToolbarWithSizeDetector';
18
18
  import { BeforePrimaryToolbarWrapper } from './BeforeWrapper';
19
- import { customToolbarWrapperStyle, mainToolbarFirstChildStyle, mainToolbarIconBeforeStyle, mainToolbarSecondChildStyle, mainToolbarStyle, MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, nonCustomToolbarWrapperStyle } from './MainToolbar';
19
+ import { MainToolbarForFirstChildWrapper, MainToolbarForSecondChildWrapper } from './CustomToolbarWrapper';
20
+ import { customToolbarWrapperStyle, mainToolbarIconBeforeStyle, MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, nonCustomToolbarWrapperStyle } from './MainToolbar';
21
+ import { MainToolbarWrapper } from './MainToolbarWrapper';
20
22
  export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
21
23
  var _props$primaryToolbar, _useToolbarPortal, _props$customPrimaryT;
22
24
  var _useState = useState(false),
@@ -121,18 +123,16 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
121
123
  isShortcutToFocusToolbar: isShortcutToFocusToolbar,
122
124
  handleEscape: handleEscape,
123
125
  intl: props.intl
124
- }, jsx(ToolbarPortal, null, jsx("div", {
125
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
126
- css: mainToolbarStyle(props.showKeyline || contextPanelWidth > 0, twoLineEditorToolbar),
126
+ }, jsx(ToolbarPortal, null, jsx(MainToolbarWrapper, {
127
+ showKeyline: props.showKeyline || contextPanelWidth > 0,
128
+ twoLineEditorToolbar: twoLineEditorToolbar,
127
129
  "data-testid": "ak-editor-main-toolbar"
128
- }, jsx("div", {
129
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
130
- css: mainToolbarFirstChildStyle(twoLineEditorToolbar),
130
+ }, jsx(MainToolbarForFirstChildWrapper, {
131
+ twoLineEditorToolbar: twoLineEditorToolbar,
131
132
  role: "toolbar",
132
133
  "aria-label": props.intl.formatMessage(messages.toolbarLabel)
133
- }, shouldSplitToolbar ? customToolbar : nonCustomToolbar), jsx("div", {
134
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
135
- css: mainToolbarSecondChildStyle(twoLineEditorToolbar),
134
+ }, shouldSplitToolbar ? customToolbar : nonCustomToolbar), jsx(MainToolbarForSecondChildWrapper, {
135
+ twoLineEditorToolbar: twoLineEditorToolbar,
136
136
  "data-testid": "avatar-group-outside-plugin",
137
137
  role: "region",
138
138
  "aria-label": props.intl.formatMessage(messages.pageActionsLabel)
@@ -0,0 +1,90 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
6
+ import React from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
+ import { css, jsx } from '@emotion/react';
10
+ import { akEditorFloatingDialogZIndex, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
12
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
13
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
+ import { mainToolbarStyle as mainToolbarStyleDynamic, MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT } from './MainToolbar';
15
+
16
+ // Base styles that don't depend on feature flags
17
+ var baseToolbarStyles = css({
18
+ position: 'relative',
19
+ alignItems: 'center',
20
+ boxShadow: 'none',
21
+ borderBottom: "1px solid ".concat("var(--ds-border, #091E4224)"),
22
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
23
+ transition: "box-shadow 200ms ".concat(akEditorSwoopCubicBezier),
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
25
+ zIndex: akEditorFloatingDialogZIndex,
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
27
+ display: 'flex',
28
+ height: 'var(--ak-editor-fullpage-toolbar-height)',
29
+ flexShrink: 0,
30
+ backgroundColor: "var(--ds-surface, #FFFFFF)",
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
32
+ '& object': {
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
34
+ height: '0 !important'
35
+ }
36
+ });
37
+ var flexibleIconSize = css({
38
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
39
+ '& span svg': {
40
+ maxWidth: '100%'
41
+ }
42
+ });
43
+ // box-shadow is overriden by the mainToolbar
44
+ var mainToolbarWithKeyline = css({
45
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
46
+ boxShadow: "var(--ds-shadow-overflow, 0px 0px 8px #091E4228, 0px 0px 1px #091E421e)"
47
+ });
48
+ var mainToolbarTwoLineStyle = css(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
49
+ flexWrap: 'wrap',
50
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
51
+ height: "calc(var(--ak-editor-fullpage-toolbar-height) * 2)"
52
+ }));
53
+ var MainToolbarWrapperNext = function MainToolbarWrapperNext(_ref) {
54
+ var showKeyline = _ref.showKeyline,
55
+ twoLineEditorToolbar = _ref.twoLineEditorToolbar,
56
+ children = _ref.children,
57
+ testId = _ref['data-testid'];
58
+ return jsx("div", {
59
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
60
+ css: [baseToolbarStyles, fg('platform-visual-refresh-icons') && flexibleIconSize, showKeyline && mainToolbarWithKeyline, twoLineEditorToolbar && mainToolbarTwoLineStyle],
61
+ "data-testid": testId
62
+ }, children);
63
+ };
64
+
65
+ /**
66
+ * Original version of the toolbar wrapper using dynamic styles
67
+ */
68
+ var MainToolbarWrapperOld = function MainToolbarWrapperOld(_ref2) {
69
+ var showKeyline = _ref2.showKeyline,
70
+ twoLineEditorToolbar = _ref2.twoLineEditorToolbar,
71
+ children = _ref2.children,
72
+ testId = _ref2['data-testid'];
73
+ return jsx("div", {
74
+ css:
75
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
76
+ mainToolbarStyleDynamic(showKeyline, twoLineEditorToolbar),
77
+ "data-testid": testId
78
+ }, children);
79
+ };
80
+
81
+ /**
82
+ * Wrapper component for the main toolbar that handles feature flag based styling
83
+ * @example
84
+ * <MainToolbarWrapper showKeyline={true} twoLineEditorToolbar={false}>
85
+ * <ToolbarContent />
86
+ * </MainToolbarWrapper>
87
+ */
88
+ export var MainToolbarWrapper = componentWithCondition(function () {
89
+ return expValEquals('platform_editor_core_static_emotion_non_central', 'isEnabled', true);
90
+ }, MainToolbarWrapperNext, MainToolbarWrapperOld);
@@ -21,11 +21,12 @@ import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
21
21
  import { gapCursorStyles } from '@atlaskit/editor-common/selection';
22
22
  import { CodeBlockSharedCssClassName, MediaSharedClassNames, SmartCardSharedCssClassName, annotationSharedStyles, backgroundColorStyles, blockMarksSharedStyles, codeBlockInListSafariFix, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, expandClassNames, getSmartCardSharedStyles, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, paragraphSharedStyles, resizerStyles, pragmaticResizerStyles, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, ruleSharedStyles, shadowSharedStyle, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
23
23
  import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
24
- import { findReplaceStyles } from '@atlaskit/editor-plugins/find-replace/styles';
24
+ import { findReplaceStyles, findReplaceStylesNew } from '@atlaskit/editor-plugins/find-replace/styles';
25
25
  import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
26
26
  import { placeholderTextStyles, placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour } from '@atlaskit/editor-plugins/placeholder-text/styles';
27
27
  import { SelectionStyle, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorDefaultLayoutWidth, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorSelectedBorderColor, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, editorFontSize, getSelectionStyles } from '@atlaskit/editor-shared-styles';
28
28
  import { fg } from '@atlaskit/platform-feature-flags';
29
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
29
30
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
30
31
  import { useThemeObserver } from '@atlaskit/tokens';
31
32
  import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
@@ -44,13 +45,17 @@ export var linkStyles = css(_templateObject || (_templateObject = _taggedTemplat
44
45
  var ruleStyles = function ruleStyles() {
45
46
  return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", ";\n\n\t\thr {\n\t\t\tcursor: pointer;\n\t\t\tpadding: ", " 0;\n\t\t\tmargin: ", " 0;\n\t\t\tbackground-clip: content-box;\n\n\t\t\t&.", " {\n\t\t\t\toutline: none;\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t}\n\t}\n"])), ruleSharedStyles(), "var(--ds-space-050, 4px)", "var(--ds-space-300, 24px)", akEditorSelectedNodeClassName, "var(--ds-border-selected, ".concat(akEditorSelectedBorderColor, ")"));
46
47
  };
47
- var vanillaMentionsStyles = css({
48
+ var mentionNodeStyles = css({
48
49
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
49
50
  '.editor-mention-primitive': {
50
51
  display: 'inline',
51
52
  borderRadius: '20px',
52
53
  cursor: 'pointer',
53
54
  padding: '0 0.3em 2px 0.23em',
55
+ // To match `packages/elements/mention/src/components/Mention/PrimitiveMention.tsx` implementation
56
+ // we match the line height exactly
57
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
58
+ lineHeight: '1.714',
54
59
  fontWeight: "var(--ds-font-weight-regular, 400)",
55
60
  wordBreak: 'break-word',
56
61
  background: "var(--ds-background-neutral, #091E420F)",
@@ -147,15 +152,11 @@ var akEditorBreakpointForSmallDevice = "1266px";
147
152
  var legacyContentStyles = function legacyContentStyles(props) {
148
153
  return css(_templateObject9 || (_templateObject9 = _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--ak-editor--breakout-fallback-width: calc(\n\t\t100cqw - var(--ak-editor--breakout-full-page-guttering-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\n\t\t/* in full width appearances it's not possible to rely on cqw because it doesn't account for the page scrollbar, which depends on users system settings */\n\t\t--ak-editor--breakout-fallback-width: 100%;\n\t}\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.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\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\t", "\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\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({
149
154
  theme: props.theme
150
- }), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject0 || (_templateObject0 = _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(_templateObject1 || (_templateObject1 = _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)", fg('platform_editor_fix_floating_toolbar_focus') ? firstFloatingToolbarButtonStyles : null, placeholderTextStyles, fg('platform_editor_system_fake_text_highlight_colour') && placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, 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, {
151
- exposure: false
152
- }) && vanillaMentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
155
+ }), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject0 || (_templateObject0 = _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(_templateObject1 || (_templateObject1 = _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)", firstFloatingToolbarButtonStyles, placeholderTextStyles, fg('platform_editor_system_fake_text_highlight_colour') && placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, 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, mentionNodeStyles, editorExperiment('platform_editor_vanilla_dom', true, {
153
156
  exposure: false
154
157
  }) && vanillaSelectionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
155
158
  exposure: false
156
- }) ? emojiStyles : reactEmojiStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
157
- exposure: false
158
- }) && vanillaTaskItemStyles, editorExperiment('platform_editor_vanilla_dom', true, {
159
+ }) ? emojiStyles : reactEmojiStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? findReplaceStylesNew : findReplaceStyles, textHighlightStyle, taskDecisionStyles, vanillaTaskItemStyles, editorExperiment('platform_editor_vanilla_dom', true, {
159
160
  exposure: false
160
161
  }) && vanillaDecisionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
161
162
  exposure: false
@@ -153,7 +153,7 @@ export var vanillaTaskItemStyles = css(_defineProperty({
153
153
  display: 'none'
154
154
  },
155
155
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
156
- '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="taskItem"]:has([data-empty]):not(:has([data-type-ahead])) [data-component="placeholder"]': {
156
+ "[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='taskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder']": {
157
157
  display: 'block'
158
158
  },
159
159
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
@@ -25,12 +25,12 @@ import { codeMarkStyles } from './styles/codeMarkStyles';
25
25
  import { commentEditorStyles } from './styles/commentEditorStyles';
26
26
  import { cursorStyles } from './styles/cursorStyles';
27
27
  import { dateStyles, dateVanillaStyles } from './styles/dateStyles';
28
- import { editorUGCTokensDefault, editorUGCTokensModernized, editorUGCTokensRefreshed } from './styles/editorUGCTokenStyles';
28
+ import { editorUGCTokensDefault, editorUGCTokensRefreshed } from './styles/editorUGCTokenStyles';
29
29
  import { embedCardStyles } from './styles/embedCardStyles';
30
30
  import { reactEmojiStyles, vanillaEmojiStyles } from './styles/emoji';
31
31
  import { expandStyles, expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes, expandStylesMixin_fg_platform_visual_refresh_icons, expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes } from './styles/expandStyles';
32
32
  import { extensionStyles } from './styles/extensionStyles';
33
- import { findReplaceStyles } from './styles/findReplaceStyles';
33
+ import { findReplaceStyles, findReplaceStylesNew } from './styles/findReplaceStyles';
34
34
  import { firstBlockNodeStyles } from './styles/firstBlockNodeStyles';
35
35
  import { firstFloatingToolbarButtonStyles } from './styles/floatingToolbarStyles';
36
36
  import { fullPageEditorStyles } from './styles/fullPageEditorStyles';
@@ -42,9 +42,9 @@ import { layoutBaseStyles, layoutBaseStylesAdvanced, layoutBaseStylesFixesUnderN
42
42
  import { hyperLinkFloatingToolbarStyles, linkLegacyIconStylesFix, linkStyles, linkStylesOld } from './styles/link';
43
43
  import { listsStyles, listsStylesSafariFix } from './styles/list';
44
44
  import { mediaAlignmentStyles, mediaGroupStyles, mediaStyles } from './styles/mediaStyles';
45
- import { mentionsStyles, vanillaMentionsSelectionStyles, vanillaMentionsStyles } from './styles/mentions';
45
+ import { mentionsStyles, mentionsSelectionStyles, mentionNodeStyles } from './styles/mentions';
46
46
  import { panelStyles, panelStylesMixin, panelStylesMixin_fg_platform_editor_add_border_for_nested_panel, panelStylesMixin_fg_platform_editor_nested_dnd_styles_changes, panelViewStyles } from './styles/panelStyles';
47
- import { paragraphStylesOld, paragraphStylesUGCModernized, paragraphStylesUGCRefreshed } from './styles/paragraphStyles';
47
+ import { paragraphStylesOld, paragraphStylesUGCRefreshed } from './styles/paragraphStyles';
48
48
  import { placeholderOverflowStyles, placeholderStyles, placeholderTextStyles, placeholderTextStylesMixin_fg_platform_editor_system_fake_text_highlight_colour, placeholderWrapStyles } from './styles/placeholderStyles';
49
49
  import { pragmaticResizerStyles, pragmaticResizerStylesNew, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, resizerStyles } from './styles/resizerStyles';
50
50
  import { ruleStyles } from './styles/rule';
@@ -104,7 +104,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
104
104
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
105
105
  cursorStyles,
106
106
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
107
- fg('platform_editor_fix_floating_toolbar_focus') && firstFloatingToolbarButtonStyles,
107
+ firstFloatingToolbarButtonStyles,
108
108
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
109
109
  placeholderTextStyles, fg('platform_editor_system_fake_text_highlight_colour') &&
110
110
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -118,11 +118,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
118
118
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
119
119
  codeBlockStyles,
120
120
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
121
- !fg('platform_editor_typography_ugc') && editorUGCTokensDefault, (fg('platform-dst-jira-web-fonts') || fg('confluence_typography_refreshed') || fg('atlas_editor_typography_refreshed')) && fg('platform_editor_typography_ugc') &&
121
+ !fg('platform_editor_typography_ugc') && editorUGCTokensDefault, fg('platform_editor_typography_ugc') &&
122
122
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
123
- editorUGCTokensRefreshed, !(fg('platform-dst-jira-web-fonts') || fg('confluence_typography_refreshed') || fg('atlas_editor_typography_refreshed')) && fg('platform_editor_typography_ugc') &&
124
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
125
- editorUGCTokensModernized,
123
+ editorUGCTokensRefreshed,
126
124
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
127
125
  blocktypeStyles,
128
126
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -180,15 +178,15 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
180
178
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
181
179
  expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes,
182
180
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
183
- fg('platform-visual-refresh-icons') && expandStylesMixin_fg_platform_visual_refresh_icons,
181
+ fg('platform-visual-refresh-icons') && expandStylesMixin_fg_platform_visual_refresh_icons, expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
182
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
183
+ findReplaceStylesNew :
184
184
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
185
185
  findReplaceStyles,
186
186
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
187
187
  textHighlightStyle,
188
188
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
189
- decisionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
190
- exposure: false
191
- }) &&
189
+ decisionStyles,
192
190
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
193
191
  vanillaTaskItemStyles, editorExperiment('platform_editor_vanilla_dom', true, {
194
192
  exposure: false
@@ -260,12 +258,10 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
260
258
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
261
259
  linkingVisualRefreshV1Styles,
262
260
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
263
- dateVanillaStyles, fg('platform_editor_typography_ugc') ? fg('platform-dst-jira-web-fonts') || fg('confluence_typography_refreshed') || fg('atlas_editor_typography_refreshed') ?
261
+ dateVanillaStyles, fg('platform_editor_typography_ugc') ?
264
262
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
265
263
  paragraphStylesUGCRefreshed :
266
264
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
267
- paragraphStylesUGCModernized :
268
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
269
265
  paragraphStylesOld,
270
266
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
271
267
  fg('platform_editor_hyperlink_underline') ? linkStyles : linkStylesOld,
@@ -310,15 +306,11 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
310
306
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
311
307
  firstCodeBlockWithNoMarginOld,
312
308
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
313
- firstBlockNodeStyles, editorExperiment('platform_editor_vanilla_dom', true, {
314
- exposure: false
315
- }) &&
309
+ firstBlockNodeStyles,
316
310
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
317
- vanillaMentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
318
- exposure: false
319
- }) &&
311
+ mentionNodeStyles,
320
312
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
321
- vanillaMentionsSelectionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
313
+ mentionsSelectionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
322
314
  exposure: false
323
315
  }) ?
324
316
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -12,4 +12,85 @@ export var findReplaceStyles = css({
12
12
  '.selected-search-match': {
13
13
  backgroundColor: "var(--ds-background-accent-teal-subtle, #6CC3E0)"
14
14
  }
15
+ });
16
+
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
18
+ export var findReplaceStylesNew = css({
19
+ /** Text match styles */
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
21
+ '.search-match': {
22
+ borderRadius: '3px',
23
+ backgroundColor: "var(--ds-background-accent-teal-subtlest, #E7F9FF)",
24
+ boxShadow: "var(--ds-shadow-raised, 0 1px 1px 0 rgba(9, 30, 66, 0.25), 0 0 1px 0 rgba(9, 30, 66, 0.31))".concat(", inset 0 0 0 1px ", "var(--ds-border-input, #8590A2)")
25
+ },
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
27
+ '.search-match-selected': {
28
+ backgroundColor: "var(--ds-background-accent-teal-subtle, #6CC3E0)"
29
+ },
30
+ /** Block match styles */
31
+
32
+ /** Light mode */
33
+
34
+ /** Without node selection */
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
36
+ '.search-match-block': {
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
38
+ '[data-smart-link-container="true"], .loader-wrapper>div::after': {
39
+ boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-subtler, #F8E6A0)", "\n\t\t\t")
40
+ }
41
+ },
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
43
+ '.search-match-selected.search-match-block': {
44
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
45
+ '[data-smart-link-container="true"], .loader-wrapper>div::after': {
46
+ boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-yellow-subtlest-pressed, #F5CD47)", "\n\t\t\t")
47
+ }
48
+ },
49
+ /** With node selection */
50
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
51
+ '.search-match-block.ak-editor-selected-node': {
52
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
53
+ '.loader-wrapper>div::after': {
54
+ boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-subtler, #F8E6A0)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
55
+ }
56
+ },
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
58
+ '.search-match-selected.search-match-block.ak-editor-selected-node': {
59
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
60
+ '[data-smart-link-container="true"], .loader-wrapper>div::after': {
61
+ boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-yellow-subtlest-pressed, #F5CD47)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
62
+ }
63
+ },
64
+ /** Dark mode */
65
+
66
+ /** Without node selection */
67
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
68
+ '.search-match-block.search-match-dark': {
69
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
70
+ '[data-smart-link-container="true"], .loader-wrapper>div::after': {
71
+ boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-bolder, #946F00)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-bolder-pressed, #533F04)", "\n\t\t\t")
72
+ }
73
+ },
74
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
75
+ '.search-match-selected.search-match-block.search-match-dark': {
76
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
77
+ '[data-smart-link-container="true"], .loader-wrapper>div::after': {
78
+ boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-bolder, #946F00)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-yellow-bolder-hovered, #7F5F01)", "\n\t\t\t")
79
+ }
80
+ },
81
+ /** With node selection */
82
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
83
+ '.search-match-block.search-match-dark.ak-editor-selected-node': {
84
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
85
+ '.loader-wrapper>div::after': {
86
+ boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-bolder, #946F00)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-bolder-pressed, #533F04)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
87
+ }
88
+ },
89
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
90
+ '.search-match-selected.search-match-block.search-match-dark.ak-editor-selected-node': {
91
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
92
+ '[data-smart-link-container="true"], .loader-wrapper>div::after': {
93
+ boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-bolder, #946F00)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-yellow-bolder-hovered, #7F5F01)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
94
+ }
95
+ }
15
96
  });
@@ -29,13 +29,17 @@ backgroundSelectionStyles, mentionsSelectedColor])), '.danger', _defineProperty(
29
29
  })));
30
30
 
31
31
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
32
- export var vanillaMentionsStyles = css({
32
+ export var mentionNodeStyles = css({
33
33
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
34
34
  '.editor-mention-primitive': {
35
35
  display: 'inline',
36
36
  borderRadius: '20px',
37
37
  cursor: 'pointer',
38
38
  padding: '0 0.3em 2px 0.23em',
39
+ // To match `packages/elements/mention/src/components/Mention/PrimitiveMention.tsx` implementation
40
+ // we match the line height exactly
41
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
42
+ lineHeight: '1.714',
39
43
  fontWeight: "var(--ds-font-weight-regular, 400)",
40
44
  wordBreak: 'break-word',
41
45
  background: "var(--ds-background-neutral, #091E420F)",
@@ -76,7 +80,7 @@ export var vanillaMentionsStyles = css({
76
80
 
77
81
  // This is mentions styles for mentions selection styles based on the vanilla node view
78
82
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
79
- export var vanillaMentionsSelectionStyles = css(_defineProperty({
83
+ export var mentionsSelectionStyles = css(_defineProperty({
80
84
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
81
85
  '.danger': {
82
86
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
@@ -238,7 +238,7 @@ export var vanillaTaskItemStyles = css(_defineProperty({
238
238
  display: 'none'
239
239
  },
240
240
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
241
- '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="taskItem"]:has([data-empty]):not(:has([data-type-ahead])) [data-component="placeholder"]': {
241
+ "[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='taskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder']": {
242
242
  display: 'block'
243
243
  },
244
244
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "208.3.3";
2
+ export var version = "208.3.5";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
6
+ interface ChildWrapperProps {
7
+ twoLineEditorToolbar: boolean;
8
+ children: React.ReactNode;
9
+ role?: string;
10
+ 'aria-label'?: string;
11
+ 'data-testid'?: string;
12
+ }
13
+ export declare const MainToolbarForFirstChildWrapper: React.FC<ChildWrapperProps>;
14
+ export declare const MainToolbarForSecondChildWrapper: React.FC<ChildWrapperProps>;
15
+ export {};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
6
+ interface MainToolbarWrapperProps {
7
+ showKeyline: boolean;
8
+ twoLineEditorToolbar: boolean;
9
+ children: React.ReactNode;
10
+ 'data-testid'?: string;
11
+ }
12
+ /**
13
+ * Wrapper component for the main toolbar that handles feature flag based styling
14
+ * @example
15
+ * <MainToolbarWrapper showKeyline={true} twoLineEditorToolbar={false}>
16
+ * <ToolbarContent />
17
+ * </MainToolbarWrapper>
18
+ */
19
+ export declare const MainToolbarWrapper: React.FC<MainToolbarWrapperProps>;
20
+ export {};
@@ -1 +1,2 @@
1
1
  export declare const findReplaceStyles: import("@emotion/react").SerializedStyles;
2
+ export declare const findReplaceStylesNew: import("@emotion/react").SerializedStyles;
@@ -1,3 +1,3 @@
1
1
  export declare const mentionsStyles: import("@emotion/react").SerializedStyles;
2
- export declare const vanillaMentionsStyles: import("@emotion/react").SerializedStyles;
3
- export declare const vanillaMentionsSelectionStyles: import("@emotion/react").SerializedStyles;
2
+ export declare const mentionNodeStyles: import("@emotion/react").SerializedStyles;
3
+ export declare const mentionsSelectionStyles: import("@emotion/react").SerializedStyles;