@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 208.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#165932](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/165932)
8
+ [`993d95ad7a45c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/993d95ad7a45c) -
9
+ migrated toolbar off dynamic styles to static styles behind experiment
10
+
11
+ ## 208.3.5
12
+
13
+ ### Patch Changes
14
+
15
+ - [#175895](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175895)
16
+ [`6165a5dc5b6b1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6165a5dc5b6b1) -
17
+ Remove deprecated path for react version of mentions
18
+ - [#175471](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175471)
19
+ [`302b93e537e73`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/302b93e537e73) -
20
+ ff cleanup for platform_editor_scroll_table_flickering_fix (FD-91488)
21
+ - [#175569](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175569)
22
+ [`3bcbd0cff0437`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3bcbd0cff0437) -
23
+ [ux] ED-27958 extend the find algorithm to search smart cards behind
24
+ platform_editor_find_and_replace_improvements
25
+ - [#176023](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/176023)
26
+ [`d88b8886797ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d88b8886797ae) -
27
+ clean up experiment platform_editor_vanilla_dom on task
28
+ - [#175339](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175339)
29
+ [`d4115e4055a0a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d4115e4055a0a) -
30
+ ED-28314 Cleanup platform_editor_controls_patch_12
31
+ - [#175899](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175899)
32
+ [`a28d5dc386dbf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a28d5dc386dbf) -
33
+ Clean up platform_editor_fix_floating_toolbar_focus
34
+ - Updated dependencies
35
+
3
36
  ## 208.3.4
4
37
 
5
38
  ### Patch Changes
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.MainToolbarForSecondChildWrapper = exports.MainToolbarForFirstChildWrapper = void 0;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _react2 = require("@emotion/react");
10
+ var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
11
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
+ var _MainToolbar = require("./MainToolbar");
13
+ /**
14
+ * @jsxRuntime classic
15
+ * @jsx jsx
16
+ */
17
+
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
+
20
+ // Pre-computed static styles for first- and second-child wrappers.
21
+ // These contain no runtime logic and are safe for static-emotion mode.
22
+
23
+ var firstChildStaticBase = (0, _react2.css)({
24
+ display: 'flex',
25
+ flexGrow: 1
26
+ });
27
+
28
+ // we can't avoid some kind of function call here, so we need to disable the rule
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
30
+ var firstChildStaticTwoLine = (0, _react2.css)({
31
+ '@media (max-width: 868px)': {
32
+ flex: '1 1 100%',
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
34
+ height: 'var(--ak-editor-fullpage-toolbar-height)',
35
+ justifyContent: 'flex-end',
36
+ minWidth: 'fit-content'
37
+ }
38
+ });
39
+ var secondChildStaticBase = (0, _react2.css)({
40
+ minWidth: 'fit-content'
41
+ });
42
+
43
+ // we can't avoid some kind of function call here, so we need to disable the rule
44
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
45
+ var secondChildStaticTwoLine = (0, _react2.css)({
46
+ '@media (max-width: 868px)': {
47
+ display: 'flex',
48
+ flexGrow: 1,
49
+ flex: '1 1 100%',
50
+ margin: 'auto',
51
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
52
+ height: 'var(--ak-editor-fullpage-toolbar-height)',
53
+ minWidth: 0
54
+ }
55
+ });
56
+
57
+ // ---------------- First child wrapper ----------------
58
+ var FirstChildWrapperStatic = function FirstChildWrapperStatic(_ref) {
59
+ var twoLineEditorToolbar = _ref.twoLineEditorToolbar,
60
+ children = _ref.children,
61
+ role = _ref.role,
62
+ ariaLabel = _ref['aria-label'],
63
+ testId = _ref['data-testid'];
64
+ return (0, _react2.jsx)("div", {
65
+ css: [firstChildStaticBase, twoLineEditorToolbar && firstChildStaticTwoLine],
66
+ role: role,
67
+ "aria-label": ariaLabel,
68
+ "data-testid": testId
69
+ }, children);
70
+ };
71
+ var FirstChildWrapperDynamic = function FirstChildWrapperDynamic(_ref2) {
72
+ var twoLineEditorToolbar = _ref2.twoLineEditorToolbar,
73
+ children = _ref2.children,
74
+ role = _ref2.role,
75
+ ariaLabel = _ref2['aria-label'],
76
+ testId = _ref2['data-testid'];
77
+ return (0, _react2.jsx)("div", {
78
+ // 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
79
+ css: (0, _MainToolbar.mainToolbarFirstChildStyle)(twoLineEditorToolbar),
80
+ role: role,
81
+ "aria-label": ariaLabel,
82
+ "data-testid": testId
83
+ }, children);
84
+ };
85
+ var MainToolbarForFirstChildWrapper = exports.MainToolbarForFirstChildWrapper = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
86
+ return (0, _expValEquals.expValEquals)('platform_editor_core_static_emotion_non_central', 'isEnabled', true);
87
+ }, FirstChildWrapperStatic, FirstChildWrapperDynamic);
88
+
89
+ // ---------------- Second child wrapper ----------------
90
+ var SecondChildWrapperStatic = function SecondChildWrapperStatic(_ref3) {
91
+ var twoLineEditorToolbar = _ref3.twoLineEditorToolbar,
92
+ children = _ref3.children,
93
+ role = _ref3.role,
94
+ ariaLabel = _ref3['aria-label'],
95
+ testId = _ref3['data-testid'];
96
+ return (0, _react2.jsx)("div", {
97
+ css: [secondChildStaticBase, twoLineEditorToolbar && secondChildStaticTwoLine],
98
+ role: role,
99
+ "aria-label": ariaLabel,
100
+ "data-testid": testId
101
+ }, children);
102
+ };
103
+ var SecondChildWrapperDynamic = function SecondChildWrapperDynamic(_ref4) {
104
+ var twoLineEditorToolbar = _ref4.twoLineEditorToolbar,
105
+ children = _ref4.children,
106
+ role = _ref4.role,
107
+ ariaLabel = _ref4['aria-label'],
108
+ testId = _ref4['data-testid'];
109
+ return (0, _react2.jsx)("div", {
110
+ // 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
111
+ css: (0, _MainToolbar.mainToolbarSecondChildStyle)(twoLineEditorToolbar),
112
+ role: role,
113
+ "aria-label": ariaLabel,
114
+ "data-testid": testId
115
+ }, children);
116
+ };
117
+ var MainToolbarForSecondChildWrapper = exports.MainToolbarForSecondChildWrapper = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
118
+ return (0, _expValEquals.expValEquals)('platform_editor_core_static_emotion_non_central', 'isEnabled', true);
119
+ }, SecondChildWrapperStatic, SecondChildWrapperDynamic);
@@ -13,6 +13,7 @@ var _browser = require("@atlaskit/editor-common/browser");
13
13
  var _hooks = require("@atlaskit/editor-common/hooks");
14
14
  var _ui = require("@atlaskit/editor-common/ui");
15
15
  var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
16
+ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
16
17
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
18
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
18
19
  var _getPrimaryToolbarComponents = require("../../Toolbar/getPrimaryToolbarComponents");
@@ -163,7 +164,11 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
163
164
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
164
165
  ,
165
166
  className: "akEditor",
166
- ref: wrapperElementRef
167
+ ref: wrapperElementRef,
168
+ style: {
169
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
170
+ '--ak-editor-fullpage-toolbar-height': (0, _editorSharedStyles.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT)()
171
+ }
167
172
  }, !isEditorToolbarHidden && (0, _react2.jsx)(_FullPageToolbar.FullPageToolbar, {
168
173
  appearance: props.appearance,
169
174
  editorAPI: editorAPI,
@@ -17,7 +17,9 @@ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
17
17
  var _ToolbarPortal = require("../../Toolbar/ToolbarPortal");
18
18
  var _ToolbarWithSizeDetector = require("../../Toolbar/ToolbarWithSizeDetector");
19
19
  var _BeforeWrapper = require("./BeforeWrapper");
20
+ var _CustomToolbarWrapper = require("./CustomToolbarWrapper");
20
21
  var _MainToolbar = require("./MainToolbar");
22
+ var _MainToolbarWrapper = require("./MainToolbarWrapper");
21
23
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
22
24
  /**
23
25
  * @jsxRuntime classic
@@ -130,18 +132,16 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
130
132
  isShortcutToFocusToolbar: isShortcutToFocusToolbar,
131
133
  handleEscape: handleEscape,
132
134
  intl: props.intl
133
- }, (0, _react2.jsx)(ToolbarPortal, null, (0, _react2.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: (0, _MainToolbar.mainToolbarStyle)(props.showKeyline || contextPanelWidth > 0, twoLineEditorToolbar),
135
+ }, (0, _react2.jsx)(ToolbarPortal, null, (0, _react2.jsx)(_MainToolbarWrapper.MainToolbarWrapper, {
136
+ showKeyline: props.showKeyline || contextPanelWidth > 0,
137
+ twoLineEditorToolbar: twoLineEditorToolbar,
136
138
  "data-testid": "ak-editor-main-toolbar"
137
- }, (0, _react2.jsx)("div", {
138
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
139
- css: (0, _MainToolbar.mainToolbarFirstChildStyle)(twoLineEditorToolbar),
139
+ }, (0, _react2.jsx)(_CustomToolbarWrapper.MainToolbarForFirstChildWrapper, {
140
+ twoLineEditorToolbar: twoLineEditorToolbar,
140
141
  role: "toolbar",
141
142
  "aria-label": props.intl.formatMessage(_messages.fullPageMessages.toolbarLabel)
142
- }, shouldSplitToolbar ? customToolbar : nonCustomToolbar), (0, _react2.jsx)("div", {
143
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
144
- css: (0, _MainToolbar.mainToolbarSecondChildStyle)(twoLineEditorToolbar),
143
+ }, shouldSplitToolbar ? customToolbar : nonCustomToolbar), (0, _react2.jsx)(_CustomToolbarWrapper.MainToolbarForSecondChildWrapper, {
144
+ twoLineEditorToolbar: twoLineEditorToolbar,
145
145
  "data-testid": "avatar-group-outside-plugin",
146
146
  role: "region",
147
147
  "aria-label": props.intl.formatMessage(_messages.fullPageMessages.pageActionsLabel)
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.MainToolbarWrapper = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _react = _interopRequireDefault(require("react"));
10
+ var _react2 = require("@emotion/react");
11
+ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
12
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
+ var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
14
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
15
+ var _MainToolbar = require("./MainToolbar");
16
+ /**
17
+ * @jsxRuntime classic
18
+ * @jsx jsx
19
+ */
20
+
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
+
23
+ // Base styles that don't depend on feature flags
24
+ var baseToolbarStyles = (0, _react2.css)({
25
+ position: 'relative',
26
+ alignItems: 'center',
27
+ boxShadow: 'none',
28
+ borderBottom: "1px solid ".concat("var(--ds-border, #091E4224)"),
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
30
+ transition: "box-shadow 200ms ".concat(_editorSharedStyles.akEditorSwoopCubicBezier),
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
32
+ zIndex: _editorSharedStyles.akEditorFloatingDialogZIndex,
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
34
+ display: 'flex',
35
+ height: 'var(--ak-editor-fullpage-toolbar-height)',
36
+ flexShrink: 0,
37
+ backgroundColor: "var(--ds-surface, #FFFFFF)",
38
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
39
+ '& object': {
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
41
+ height: '0 !important'
42
+ }
43
+ });
44
+ var flexibleIconSize = (0, _react2.css)({
45
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
46
+ '& span svg': {
47
+ maxWidth: '100%'
48
+ }
49
+ });
50
+ // box-shadow is overriden by the mainToolbar
51
+ var mainToolbarWithKeyline = (0, _react2.css)({
52
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
53
+ boxShadow: "var(--ds-shadow-overflow, 0px 0px 8px #091E4228, 0px 0px 1px #091E421e)"
54
+ });
55
+ var mainToolbarTwoLineStyle = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(_MainToolbar.MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
56
+ flexWrap: 'wrap',
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
58
+ height: "calc(var(--ak-editor-fullpage-toolbar-height) * 2)"
59
+ }));
60
+ var MainToolbarWrapperNext = function MainToolbarWrapperNext(_ref) {
61
+ var showKeyline = _ref.showKeyline,
62
+ twoLineEditorToolbar = _ref.twoLineEditorToolbar,
63
+ children = _ref.children,
64
+ testId = _ref['data-testid'];
65
+ return (0, _react2.jsx)("div", {
66
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
67
+ css: [baseToolbarStyles, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && flexibleIconSize, showKeyline && mainToolbarWithKeyline, twoLineEditorToolbar && mainToolbarTwoLineStyle],
68
+ "data-testid": testId
69
+ }, children);
70
+ };
71
+
72
+ /**
73
+ * Original version of the toolbar wrapper using dynamic styles
74
+ */
75
+ var MainToolbarWrapperOld = function MainToolbarWrapperOld(_ref2) {
76
+ var showKeyline = _ref2.showKeyline,
77
+ twoLineEditorToolbar = _ref2.twoLineEditorToolbar,
78
+ children = _ref2.children,
79
+ testId = _ref2['data-testid'];
80
+ return (0, _react2.jsx)("div", {
81
+ css:
82
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
83
+ (0, _MainToolbar.mainToolbarStyle)(showKeyline, twoLineEditorToolbar),
84
+ "data-testid": testId
85
+ }, children);
86
+ };
87
+
88
+ /**
89
+ * Wrapper component for the main toolbar that handles feature flag based styling
90
+ * @example
91
+ * <MainToolbarWrapper showKeyline={true} twoLineEditorToolbar={false}>
92
+ * <ToolbarContent />
93
+ * </MainToolbarWrapper>
94
+ */
95
+ var MainToolbarWrapper = exports.MainToolbarWrapper = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
96
+ return (0, _expValEquals.expValEquals)('platform_editor_core_static_emotion_non_central', 'isEnabled', true);
97
+ }, MainToolbarWrapperNext, MainToolbarWrapperOld);
@@ -22,6 +22,7 @@ var _styles4 = require("@atlaskit/editor-plugins/paste-options-toolbar/styles");
22
22
  var _styles5 = require("@atlaskit/editor-plugins/placeholder-text/styles");
23
23
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
24
24
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
25
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
25
26
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
26
27
  var _tokens = require("@atlaskit/tokens");
27
28
  var _getInlineNodeViewProducer = require("../../nodeviews/getInlineNodeViewProducer.styles");
@@ -51,13 +52,17 @@ var linkStyles = exports.linkStyles = (0, _react2.css)(_templateObject || (_temp
51
52
  var ruleStyles = function ruleStyles() {
52
53
  return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\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"])), (0, _styles.ruleSharedStyles)(), "var(--ds-space-050, 4px)", "var(--ds-space-300, 24px)", _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-border-selected, ".concat(_editorSharedStyles.akEditorSelectedBorderColor, ")"));
53
54
  };
54
- var vanillaMentionsStyles = (0, _react2.css)({
55
+ var mentionNodeStyles = (0, _react2.css)({
55
56
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
56
57
  '.editor-mention-primitive': {
57
58
  display: 'inline',
58
59
  borderRadius: '20px',
59
60
  cursor: 'pointer',
60
61
  padding: '0 0.3em 2px 0.23em',
62
+ // To match `packages/elements/mention/src/components/Mention/PrimitiveMention.tsx` implementation
63
+ // we match the line height exactly
64
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
65
+ lineHeight: '1.714',
61
66
  fontWeight: "var(--ds-font-weight-regular, 400)",
62
67
  wordBreak: 'break-word',
63
68
  background: "var(--ds-background-neutral, #091E420F)",
@@ -154,15 +159,11 @@ var akEditorBreakpointForSmallDevice = "1266px";
154
159
  var legacyContentStyles = function legacyContentStyles(props) {
155
160
  return (0, _react2.css)(_templateObject9 || (_templateObject9 = (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--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"])), _editorSharedStyles.akEditorGutterPadding, (0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, (0, _editorSharedStyles.editorFontSize)({
156
161
  theme: props.theme
157
- }), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject0 || (_templateObject0 = (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)(_templateObject1 || (_templateObject1 = (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)", (0, _platformFeatureFlags.fg)('platform_editor_fix_floating_toolbar_focus') ? firstFloatingToolbarButtonStyles : null, _styles5.placeholderTextStyles, (0, _platformFeatureFlags.fg)('platform_editor_system_fake_text_highlight_colour') && _styles5.placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(props.typographyTheme), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), (0, _media.mediaStyles)(), (0, _layout.layoutStyles)(props.viewMode), (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ? _collab.telepointerStyle : _collab.telepointerStyleWithInitialOnly, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
158
- exposure: false
159
- }) && vanillaMentionsStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
162
+ }), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject0 || (_templateObject0 = (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)(_templateObject1 || (_templateObject1 = (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)", firstFloatingToolbarButtonStyles, _styles5.placeholderTextStyles, (0, _platformFeatureFlags.fg)('platform_editor_system_fake_text_highlight_colour') && _styles5.placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(props.typographyTheme), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), (0, _media.mediaStyles)(), (0, _layout.layoutStyles)(props.viewMode), (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ? _collab.telepointerStyle : _collab.telepointerStyleWithInitialOnly, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, mentionNodeStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
160
163
  exposure: false
161
164
  }) && vanillaSelectionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
162
165
  exposure: false
163
- }) ? emojiStyles : reactEmojiStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
164
- exposure: false
165
- }) && _tasksAndDecisions.vanillaTaskItemStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
166
+ }) ? emojiStyles : reactEmojiStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? _styles3.findReplaceStylesNew : _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, _tasksAndDecisions.vanillaTaskItemStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
166
167
  exposure: false
167
168
  }) && _tasksAndDecisions.vanillaTaskDecisionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
168
169
  exposure: false
@@ -159,7 +159,7 @@ var vanillaTaskItemStyles = exports.vanillaTaskItemStyles = (0, _react.css)((0,
159
159
  display: 'none'
160
160
  },
161
161
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
162
- '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="taskItem"]:has([data-empty]):not(:has([data-type-ahead])) [data-component="placeholder"]': {
162
+ "[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='taskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder']": {
163
163
  display: 'block'
164
164
  },
165
165
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
@@ -112,7 +112,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
112
112
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
113
113
  _cursorStyles.cursorStyles,
114
114
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
115
- (0, _platformFeatureFlags.fg)('platform_editor_fix_floating_toolbar_focus') && _floatingToolbarStyles.firstFloatingToolbarButtonStyles,
115
+ _floatingToolbarStyles.firstFloatingToolbarButtonStyles,
116
116
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
117
117
  _placeholderStyles.placeholderTextStyles, (0, _platformFeatureFlags.fg)('platform_editor_system_fake_text_highlight_colour') &&
118
118
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -126,11 +126,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
126
126
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
127
127
  _codeBlockStyles.codeBlockStyles,
128
128
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
129
- !(0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _editorUGCTokenStyles.editorUGCTokensDefault, ((0, _platformFeatureFlags.fg)('platform-dst-jira-web-fonts') || (0, _platformFeatureFlags.fg)('confluence_typography_refreshed') || (0, _platformFeatureFlags.fg)('atlas_editor_typography_refreshed')) && (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') &&
129
+ !(0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _editorUGCTokenStyles.editorUGCTokensDefault, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') &&
130
130
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
131
- _editorUGCTokenStyles.editorUGCTokensRefreshed, !((0, _platformFeatureFlags.fg)('platform-dst-jira-web-fonts') || (0, _platformFeatureFlags.fg)('confluence_typography_refreshed') || (0, _platformFeatureFlags.fg)('atlas_editor_typography_refreshed')) && (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') &&
132
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
133
- _editorUGCTokenStyles.editorUGCTokensModernized,
131
+ _editorUGCTokenStyles.editorUGCTokensRefreshed,
134
132
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
135
133
  _blockTypeStyles.blocktypeStyles,
136
134
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -188,15 +186,15 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
188
186
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
189
187
  _expandStyles.expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes,
190
188
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
191
- (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _expandStyles.expandStylesMixin_fg_platform_visual_refresh_icons,
189
+ (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _expandStyles.expandStylesMixin_fg_platform_visual_refresh_icons, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
190
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
191
+ _findReplaceStyles.findReplaceStylesNew :
192
192
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
193
193
  _findReplaceStyles.findReplaceStyles,
194
194
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
195
195
  _textHighlightStyles.textHighlightStyle,
196
196
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
197
- _tasksAndDecisionsStyles.decisionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
198
- exposure: false
199
- }) &&
197
+ _tasksAndDecisionsStyles.decisionStyles,
200
198
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
201
199
  _tasksAndDecisionsStyles.vanillaTaskItemStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
202
200
  exposure: false
@@ -268,12 +266,10 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
268
266
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
269
267
  _smartCardStyles.linkingVisualRefreshV1Styles,
270
268
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
271
- _dateStyles.dateVanillaStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? (0, _platformFeatureFlags.fg)('platform-dst-jira-web-fonts') || (0, _platformFeatureFlags.fg)('confluence_typography_refreshed') || (0, _platformFeatureFlags.fg)('atlas_editor_typography_refreshed') ?
269
+ _dateStyles.dateVanillaStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ?
272
270
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
273
271
  _paragraphStyles.paragraphStylesUGCRefreshed :
274
272
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
275
- _paragraphStyles.paragraphStylesUGCModernized :
276
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
277
273
  _paragraphStyles.paragraphStylesOld,
278
274
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
279
275
  (0, _platformFeatureFlags.fg)('platform_editor_hyperlink_underline') ? _link.linkStyles : _link.linkStylesOld,
@@ -318,15 +314,11 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
318
314
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
319
315
  _codeBlockStyles.firstCodeBlockWithNoMarginOld,
320
316
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
321
- _firstBlockNodeStyles.firstBlockNodeStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
322
- exposure: false
323
- }) &&
317
+ _firstBlockNodeStyles.firstBlockNodeStyles,
324
318
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
325
- _mentions.vanillaMentionsStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
326
- exposure: false
327
- }) &&
319
+ _mentions.mentionNodeStyles,
328
320
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
329
- _mentions.vanillaMentionsSelectionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
321
+ _mentions.mentionsSelectionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
330
322
  exposure: false
331
323
  }) ?
332
324
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.findReplaceStyles = void 0;
6
+ exports.findReplaceStylesNew = exports.findReplaceStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
9
9
 
@@ -19,4 +19,85 @@ var findReplaceStyles = exports.findReplaceStyles = (0, _react.css)({
19
19
  '.selected-search-match': {
20
20
  backgroundColor: "var(--ds-background-accent-teal-subtle, #6CC3E0)"
21
21
  }
22
+ });
23
+
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
25
+ var findReplaceStylesNew = exports.findReplaceStylesNew = (0, _react.css)({
26
+ /** Text match styles */
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
28
+ '.search-match': {
29
+ borderRadius: '3px',
30
+ backgroundColor: "var(--ds-background-accent-teal-subtlest, #E7F9FF)",
31
+ 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)")
32
+ },
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
34
+ '.search-match-selected': {
35
+ backgroundColor: "var(--ds-background-accent-teal-subtle, #6CC3E0)"
36
+ },
37
+ /** Block match styles */
38
+
39
+ /** Light mode */
40
+
41
+ /** Without node selection */
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
43
+ '.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 5px ", "var(--ds-background-accent-yellow-subtler, #F8E6A0)", "\n\t\t\t")
47
+ }
48
+ },
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
50
+ '.search-match-selected.search-match-block': {
51
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
52
+ '[data-smart-link-container="true"], .loader-wrapper>div::after': {
53
+ 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")
54
+ }
55
+ },
56
+ /** With node selection */
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
58
+ '.search-match-block.ak-editor-selected-node': {
59
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
60
+ '.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 5px ", "var(--ds-background-accent-yellow-subtler, #F8E6A0)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
62
+ }
63
+ },
64
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
65
+ '.search-match-selected.search-match-block.ak-editor-selected-node': {
66
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
67
+ '[data-smart-link-container="true"], .loader-wrapper>div::after': {
68
+ 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")
69
+ }
70
+ },
71
+ /** Dark mode */
72
+
73
+ /** Without node selection */
74
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
75
+ '.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 5px ", "var(--ds-background-accent-yellow-bolder-pressed, #533F04)", "\n\t\t\t")
79
+ }
80
+ },
81
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
82
+ '.search-match-selected.search-match-block.search-match-dark': {
83
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
84
+ '[data-smart-link-container="true"], .loader-wrapper>div::after': {
85
+ 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")
86
+ }
87
+ },
88
+ /** With node selection */
89
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
90
+ '.search-match-block.search-match-dark.ak-editor-selected-node': {
91
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
92
+ '.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 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")
94
+ }
95
+ },
96
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
97
+ '.search-match-selected.search-match-block.search-match-dark.ak-editor-selected-node': {
98
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
99
+ '[data-smart-link-container="true"], .loader-wrapper>div::after': {
100
+ 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")
101
+ }
102
+ }
22
103
  });
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.vanillaMentionsStyles = exports.vanillaMentionsSelectionStyles = exports.mentionsStyles = void 0;
7
+ exports.mentionsStyles = exports.mentionsSelectionStyles = exports.mentionNodeStyles = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _mention = require("@atlaskit/editor-common/mention");
@@ -36,13 +36,17 @@ _selectionStyles.backgroundSelectionStyles, mentionsSelectedColor])), '.danger',
36
36
  })));
37
37
 
38
38
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
39
- var vanillaMentionsStyles = exports.vanillaMentionsStyles = (0, _react.css)({
39
+ var mentionNodeStyles = exports.mentionNodeStyles = (0, _react.css)({
40
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
41
41
  '.editor-mention-primitive': {
42
42
  display: 'inline',
43
43
  borderRadius: '20px',
44
44
  cursor: 'pointer',
45
45
  padding: '0 0.3em 2px 0.23em',
46
+ // To match `packages/elements/mention/src/components/Mention/PrimitiveMention.tsx` implementation
47
+ // we match the line height exactly
48
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
49
+ lineHeight: '1.714',
46
50
  fontWeight: "var(--ds-font-weight-regular, 400)",
47
51
  wordBreak: 'break-word',
48
52
  background: "var(--ds-background-neutral, #091E420F)",
@@ -83,7 +87,7 @@ var vanillaMentionsStyles = exports.vanillaMentionsStyles = (0, _react.css)({
83
87
 
84
88
  // This is mentions styles for mentions selection styles based on the vanilla node view
85
89
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
86
- var vanillaMentionsSelectionStyles = exports.vanillaMentionsSelectionStyles = (0, _react.css)((0, _defineProperty2.default)({
90
+ var mentionsSelectionStyles = exports.mentionsSelectionStyles = (0, _react.css)((0, _defineProperty2.default)({
87
91
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
88
92
  '.danger': {
89
93
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
@@ -246,7 +246,7 @@ var vanillaTaskItemStyles = exports.vanillaTaskItemStyles = (0, _react.css)((0,
246
246
  display: 'none'
247
247
  },
248
248
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
249
- '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="taskItem"]:has([data-empty]):not(:has([data-type-ahead])) [data-component="placeholder"]': {
249
+ "[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='taskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder']": {
250
250
  display: 'block'
251
251
  },
252
252
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
@@ -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 = "208.3.3";
8
+ var version = exports.version = "208.3.5";