@atlaskit/editor-core 208.6.4 → 208.6.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.
- package/CHANGELOG.md +17 -0
- package/afm-volt/tsconfig.json +103 -0
- package/dist/cjs/ui/ContentStyles/index.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +6 -2
- package/dist/cjs/ui/EditorContentContainer/styles/codeBlockStyles.js +6 -2
- package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +175 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/ContentStyles/index.js +3 -2
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +8 -4
- package/dist/es2019/ui/EditorContentContainer/styles/codeBlockStyles.js +8 -1
- package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +226 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/ContentStyles/index.js +3 -2
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +8 -4
- package/dist/esm/ui/EditorContentContainer/styles/codeBlockStyles.js +5 -1
- package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +174 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/styles/codeBlockStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +2 -1
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/codeBlockStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +2 -1
- package/package.json +10 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 208.6.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#179882](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/179882)
|
|
8
|
+
[`fe56fd0f3672a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fe56fd0f3672a) -
|
|
9
|
+
[ux] ED-28404 change find and replace match colours from yellow to magenta
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 208.6.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#179427](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/179427)
|
|
17
|
+
[`8b13d4c49c4ac`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8b13d4c49c4ac) -
|
|
18
|
+
[CONFCLOUD-71644] Fix: code block doesn't have the correct backaground color in page include macro
|
|
19
|
+
|
|
3
20
|
## 208.6.4
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.volt.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../volt/tsDist/@atlaskit__editor-core/app",
|
|
7
|
+
"rootDir": "../",
|
|
8
|
+
"composite": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*",
|
|
18
|
+
"../src/stories/*"
|
|
19
|
+
],
|
|
20
|
+
"references": [
|
|
21
|
+
{
|
|
22
|
+
"path": "../../activity-provider/afm-volt/tsconfig.json"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"path": "../../../analytics/analytics-namespaced-context/afm-volt/tsconfig.json"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"path": "../../../analytics/analytics-next/afm-volt/tsconfig.json"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"path": "../../../design-system/button/afm-volt/tsconfig.json"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"path": "../../../design-system/css/afm-volt/tsconfig.json"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"path": "../../editor-common/afm-volt/tsconfig.json"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"path": "../../editor-json-transformer/afm-volt/tsconfig.json"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"path": "../../editor-performance-metrics/afm-volt/tsconfig.json"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"path": "../../editor-plugin-quick-insert/afm-volt/tsconfig.json"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"path": "../../editor-plugin-user-preferences/afm-volt/tsconfig.json"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"path": "../../editor-plugins/afm-volt/tsconfig.json"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"path": "../../editor-shared-styles/afm-volt/tsconfig.json"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"path": "../../../elements/emoji/afm-volt/tsconfig.json"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"path": "../../../design-system/icon/afm-volt/tsconfig.json"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"path": "../../../design-system/link/afm-volt/tsconfig.json"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"path": "../../../media/media-card/afm-volt/tsconfig.json"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"path": "../../../elements/mention/afm-volt/tsconfig.json"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"path": "../../../platform/feature-flags/afm-volt/tsconfig.json"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"path": "../../../platform/feature-flags-react/afm-volt/tsconfig.json"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"path": "../../../react-ufo/atlaskit/afm-volt/tsconfig.json"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"path": "../../../elements/task-decision/afm-volt/tsconfig.json"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"path": "../../tmp-editor-statsig/afm-volt/tsconfig.json"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"path": "../../../design-system/tokens/afm-volt/tsconfig.json"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"path": "../../../design-system/tooltip/afm-volt/tsconfig.json"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"path": "../../../design-system/width-detector/afm-volt/tsconfig.json"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"path": "../../../linking-platform/link-provider/afm-volt/tsconfig.json"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"path": "../../../media/media-core/afm-volt/tsconfig.json"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
@@ -173,7 +173,7 @@ var legacyContentStyles = function legacyContentStyles(props) {
|
|
|
173
173
|
exposure: false
|
|
174
174
|
}) && vanillaSelectionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
175
175
|
exposure: false
|
|
176
|
-
}) ? 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.
|
|
176
|
+
}) ? 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) ? (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_magenta_match') ? _styles3.findReplaceStylesNewMagenta : _styles3.findReplaceStylesNewYellow : _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, _tasksAndDecisions.vanillaTaskItemStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
177
177
|
exposure: false
|
|
178
178
|
}) && _tasksAndDecisions.vanillaTaskDecisionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
179
179
|
exposure: false
|
|
@@ -127,6 +127,8 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
127
127
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
128
128
|
_codeBlockStyles.codeBlockStyles,
|
|
129
129
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
130
|
+
!(0, _platformFeatureFlags.fg)('platform_editor_fix_code_block_bg_color_in_macro_2') && _codeBlockStyles.codeBgColorStyles,
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
130
132
|
!(0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _editorUGCTokenStyles.editorUGCTokensDefault, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') &&
|
|
131
133
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
132
134
|
_editorUGCTokenStyles.editorUGCTokensRefreshed,
|
|
@@ -187,9 +189,11 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
187
189
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
188
190
|
_expandStyles.expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes,
|
|
189
191
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
190
|
-
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _expandStyles.expandStylesMixin_fg_platform_visual_refresh_icons, (0, _expValEquals.expValEquals)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
192
|
+
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _expandStyles.expandStylesMixin_fg_platform_visual_refresh_icons, (0, _expValEquals.expValEquals)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_magenta_match') ?
|
|
193
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
194
|
+
_findReplaceStyles.findReplaceStylesNewMagenta :
|
|
191
195
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
192
|
-
_findReplaceStyles.
|
|
196
|
+
_findReplaceStyles.findReplaceStylesNewYellow :
|
|
193
197
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
194
198
|
_findReplaceStyles.findReplaceStyles,
|
|
195
199
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -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.firstCodeBlockWithNoMarginOld = exports.firstCodeBlockWithNoMargin = exports.codeBlockStyles = exports.CodeBlockSharedCssClassName = void 0;
|
|
7
|
+
exports.firstCodeBlockWithNoMarginOld = exports.firstCodeBlockWithNoMargin = exports.codeBlockStyles = exports.codeBgColorStyles = exports.CodeBlockSharedCssClassName = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _overflowShadowStyles = require("./overflowShadowStyles");
|
|
@@ -56,7 +56,6 @@ var codeBlockStyles = exports.codeBlockStyles = (0, _react.css)({
|
|
|
56
56
|
whiteSpace: 'pre'
|
|
57
57
|
}
|
|
58
58
|
}), ".".concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
59
|
-
'--ds--code--bg-color': 'transparent',
|
|
60
59
|
position: 'relative',
|
|
61
60
|
backgroundColor: "var(--ds-surface-raised, #FFFFFF)",
|
|
62
61
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
@@ -185,6 +184,11 @@ var codeBlockStyles = exports.codeBlockStyles = (0, _react.css)({
|
|
|
185
184
|
}))
|
|
186
185
|
});
|
|
187
186
|
|
|
187
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
188
|
+
var codeBgColorStyles = exports.codeBgColorStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER), {
|
|
189
|
+
'--ds--code--bg-color': 'transparent'
|
|
190
|
+
}));
|
|
191
|
+
|
|
188
192
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
189
193
|
var firstCodeBlockWithNoMargin = exports.firstCodeBlockWithNoMargin = (0, _react.css)({
|
|
190
194
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.findReplaceStylesNewYellow = exports.findReplaceStylesNewMagenta = 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
|
|
|
@@ -22,7 +22,7 @@ var findReplaceStyles = exports.findReplaceStyles = (0, _react.css)({
|
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
25
|
-
var
|
|
25
|
+
var findReplaceStylesNewYellow = exports.findReplaceStylesNewYellow = (0, _react.css)({
|
|
26
26
|
/** Text match styles */
|
|
27
27
|
|
|
28
28
|
/** Light mode */
|
|
@@ -164,7 +164,6 @@ var findReplaceStylesNew = exports.findReplaceStylesNew = (0, _react.css)({
|
|
|
164
164
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
165
165
|
'.search-match-expand-title > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
166
166
|
borderRadius: "var(--ds-space-050, 4px)",
|
|
167
|
-
padding: "var(--ds-space-050, 4px)".concat(" 0"),
|
|
168
167
|
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-subtler, #F8E6A0)", "\n\t\t"),
|
|
169
168
|
backgroundColor: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
|
|
170
169
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -193,4 +192,177 @@ var findReplaceStylesNew = exports.findReplaceStylesNew = (0, _react.css)({
|
|
|
193
192
|
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-bolder, #946F00)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-bolder-hovered, #7F5F01)", "\n\t\t"),
|
|
194
193
|
backgroundColor: "var(--ds-background-accent-yellow-bolder-hovered, #7F5F01)"
|
|
195
194
|
}
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
198
|
+
var findReplaceStylesNewMagenta = exports.findReplaceStylesNewMagenta = (0, _react.css)({
|
|
199
|
+
/** Text match styles */
|
|
200
|
+
|
|
201
|
+
/** Light mode */
|
|
202
|
+
|
|
203
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
204
|
+
'.search-match-text': {
|
|
205
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
206
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t"),
|
|
207
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
208
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)".concat(" !important"),
|
|
209
|
+
color: "var(--ds-text, #172B4D)"
|
|
210
|
+
},
|
|
211
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
212
|
+
'.search-match-text.selected-search-match': {
|
|
213
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", "\n\t\t"),
|
|
214
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
215
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)".concat(" !important")
|
|
216
|
+
},
|
|
217
|
+
/** Dark mode */
|
|
218
|
+
|
|
219
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
220
|
+
'.search-match-text.search-match-dark': {
|
|
221
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", "\n\t\t"),
|
|
222
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
223
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #50253F)".concat(" !important"),
|
|
224
|
+
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
225
|
+
},
|
|
226
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
227
|
+
'.search-match-text.selected-search-match.search-match-dark': {
|
|
228
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", "\n\t\t"),
|
|
229
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
230
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)".concat(" !important")
|
|
231
|
+
},
|
|
232
|
+
/** Block match styles */
|
|
233
|
+
|
|
234
|
+
/** Light mode */
|
|
235
|
+
|
|
236
|
+
/** Without node selection */
|
|
237
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
238
|
+
'.search-match-block': {
|
|
239
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
240
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
241
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t\t")
|
|
242
|
+
},
|
|
243
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
244
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
245
|
+
boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-subtler, #FDD0EC)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)")
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
249
|
+
'.search-match-block.search-match-block-selected': {
|
|
250
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
251
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
252
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", "\n\t\t\t")
|
|
253
|
+
},
|
|
254
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
255
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
256
|
+
boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)")
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
/** With node selection */
|
|
260
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
261
|
+
'.search-match-block.ak-editor-selected-node': {
|
|
262
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
263
|
+
'.loader-wrapper>div::after': {
|
|
264
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
265
|
+
},
|
|
266
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
267
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
268
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
269
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", " !important")
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
273
|
+
'.search-match-block.search-match-block-selected.ak-editor-selected-node': {
|
|
274
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
275
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
276
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
277
|
+
},
|
|
278
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
279
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
280
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
281
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", " !important")
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
/** Dark mode */
|
|
285
|
+
/** Without node selection */
|
|
286
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
287
|
+
'.search-match-block.search-match-dark': {
|
|
288
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
289
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
290
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", "\n\t\t\t")
|
|
291
|
+
},
|
|
292
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
293
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
294
|
+
boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-bolder-pressed, #50253F)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)")
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
298
|
+
'.search-match-block.search-match-block-selected.search-match-dark': {
|
|
299
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
300
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
301
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", "\n\t\t\t")
|
|
302
|
+
},
|
|
303
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
304
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
305
|
+
boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-bolder-hovered, #943D73)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)")
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
/** With node selection */
|
|
309
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
310
|
+
'.search-match-block.search-match-dark.ak-editor-selected-node': {
|
|
311
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
312
|
+
'.loader-wrapper>div::after': {
|
|
313
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
314
|
+
},
|
|
315
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
316
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
317
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
318
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)", " !important")
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
322
|
+
'.search-match-block.search-match-block-selected.search-match-dark.ak-editor-selected-node': {
|
|
323
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
324
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
325
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
326
|
+
},
|
|
327
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
328
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
329
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
330
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)", " !important")
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
/** Expand title match styles */
|
|
334
|
+
|
|
335
|
+
/** Light mode */
|
|
336
|
+
|
|
337
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
338
|
+
'.search-match-expand-title > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
339
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
340
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t"),
|
|
341
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)",
|
|
342
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
343
|
+
'.ak-editor-expand__title-input': {
|
|
344
|
+
color: "var(--ds-text, #172B4D)"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
348
|
+
'.search-match-expand-title.selected-search-match > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
349
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", "\n\t\t"),
|
|
350
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"
|
|
351
|
+
},
|
|
352
|
+
/** Dark mode */
|
|
353
|
+
|
|
354
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
355
|
+
'.search-match-expand-title.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
356
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", "\n\t\t"),
|
|
357
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #50253F)",
|
|
358
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
359
|
+
'.ak-editor-expand__title-input': {
|
|
360
|
+
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
364
|
+
'.search-match-expand-title.selected-search-match.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
365
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", "\n\t\t"),
|
|
366
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
367
|
+
}
|
|
196
368
|
});
|
|
@@ -19,7 +19,7 @@ import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
|
19
19
|
import { gapCursorStyles } from '@atlaskit/editor-common/selection';
|
|
20
20
|
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';
|
|
21
21
|
import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
|
|
22
|
-
import { findReplaceStyles,
|
|
22
|
+
import { findReplaceStyles, findReplaceStylesNewYellow, findReplaceStylesNewMagenta } from '@atlaskit/editor-plugins/find-replace/styles';
|
|
23
23
|
import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
|
|
24
24
|
import { placeholderTextStyles, placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour } from '@atlaskit/editor-plugins/placeholder-text/styles';
|
|
25
25
|
import { SelectionStyle, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorDefaultLayoutWidth, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorSelectedBorderColor, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, editorFontSize, getSelectionStyles } from '@atlaskit/editor-shared-styles';
|
|
@@ -38,6 +38,7 @@ import { mediaStyles } from './media';
|
|
|
38
38
|
import { panelStyles } from './panel';
|
|
39
39
|
import { statusStyles, statusNodeStyles } from './status';
|
|
40
40
|
import { taskDecisionStyles, vanillaTaskDecisionIconWithoutVisualRefresh as vanillaDecisionIconWithoutVisualRefresh, vanillaTaskDecisionIconWithVisualRefresh as vanillaDecisionIconWithVisualRefresh, vanillaTaskDecisionStyles as vanillaDecisionStyles, vanillaTaskItemStyles } from './tasks-and-decisions';
|
|
41
|
+
|
|
41
42
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
42
43
|
export const linkStyles = css`
|
|
43
44
|
.ProseMirror {
|
|
@@ -438,7 +439,7 @@ const legacyContentStyles = props => css`
|
|
|
438
439
|
${dateSharedStyle}
|
|
439
440
|
${extensionStyles}
|
|
440
441
|
${expandStyles()}
|
|
441
|
-
${expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
442
|
+
${expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? fg('platform_editor_find_and_replace_magenta_match') ? findReplaceStylesNewMagenta : findReplaceStylesNewYellow : findReplaceStyles}
|
|
442
443
|
${textHighlightStyle}
|
|
443
444
|
${taskDecisionStyles}
|
|
444
445
|
${vanillaTaskItemStyles}
|
|
@@ -21,7 +21,7 @@ import { backgroundColorStyles } from './styles/backgroundColorStyles';
|
|
|
21
21
|
import { baseStyles } from './styles/baseStyles';
|
|
22
22
|
import { blockMarksStyles } from './styles/blockMarksStyles';
|
|
23
23
|
import { blocktypeStyles, blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes, blocktypeStyles_fg_platform_editor_typography_ugc, blocktypeStyles_without_fg_platform_editor_typography_ugc } from './styles/blockTypeStyles';
|
|
24
|
-
import { codeBlockStyles, firstCodeBlockWithNoMargin, firstCodeBlockWithNoMarginOld } from './styles/codeBlockStyles';
|
|
24
|
+
import { codeBlockStyles, codeBgColorStyles, firstCodeBlockWithNoMargin, firstCodeBlockWithNoMarginOld } from './styles/codeBlockStyles';
|
|
25
25
|
import { codeMarkStyles } from './styles/codeMarkStyles';
|
|
26
26
|
import { commentEditorStyles } from './styles/commentEditorStyles';
|
|
27
27
|
import { cursorStyles } from './styles/cursorStyles';
|
|
@@ -31,7 +31,7 @@ import { embedCardStyles } from './styles/embedCardStyles';
|
|
|
31
31
|
import { reactEmojiStyles, vanillaEmojiStyles } from './styles/emoji';
|
|
32
32
|
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';
|
|
33
33
|
import { extensionStyles } from './styles/extensionStyles';
|
|
34
|
-
import { findReplaceStyles,
|
|
34
|
+
import { findReplaceStyles, findReplaceStylesNewMagenta, findReplaceStylesNewYellow } from './styles/findReplaceStyles';
|
|
35
35
|
import { firstBlockNodeStyles } from './styles/firstBlockNodeStyles';
|
|
36
36
|
import { firstFloatingToolbarButtonStyles } from './styles/floatingToolbarStyles';
|
|
37
37
|
import { fullPageEditorStyles } from './styles/fullPageEditorStyles';
|
|
@@ -122,6 +122,8 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
122
122
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
123
123
|
codeBlockStyles,
|
|
124
124
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
125
|
+
!fg('platform_editor_fix_code_block_bg_color_in_macro_2') && codeBgColorStyles,
|
|
126
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
125
127
|
!fg('platform_editor_typography_ugc') && editorUGCTokensDefault, fg('platform_editor_typography_ugc') &&
|
|
126
128
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
127
129
|
editorUGCTokensRefreshed,
|
|
@@ -182,9 +184,11 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
182
184
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
183
185
|
expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes,
|
|
184
186
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
185
|
-
fg('platform-visual-refresh-icons') && expandStylesMixin_fg_platform_visual_refresh_icons, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
187
|
+
fg('platform-visual-refresh-icons') && expandStylesMixin_fg_platform_visual_refresh_icons, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? fg('platform_editor_find_and_replace_magenta_match') ?
|
|
188
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
189
|
+
findReplaceStylesNewMagenta :
|
|
186
190
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
187
|
-
|
|
191
|
+
findReplaceStylesNewYellow :
|
|
188
192
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
189
193
|
findReplaceStyles,
|
|
190
194
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -53,7 +53,6 @@ export const codeBlockStyles = css({
|
|
|
53
53
|
},
|
|
54
54
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
55
55
|
[`.${CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER}`]: {
|
|
56
|
-
'--ds--code--bg-color': 'transparent',
|
|
57
56
|
position: 'relative',
|
|
58
57
|
backgroundColor: "var(--ds-surface-raised, #FFFFFF)",
|
|
59
58
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
@@ -235,6 +234,14 @@ export const codeBlockStyles = css({
|
|
|
235
234
|
}
|
|
236
235
|
});
|
|
237
236
|
|
|
237
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
238
|
+
export const codeBgColorStyles = css({
|
|
239
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
240
|
+
[`.${CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER}`]: {
|
|
241
|
+
'--ds--code--bg-color': 'transparent'
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
|
|
238
245
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
239
246
|
export const firstCodeBlockWithNoMargin = css({
|
|
240
247
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -15,7 +15,7 @@ export const findReplaceStyles = css({
|
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
18
|
-
export const
|
|
18
|
+
export const findReplaceStylesNewYellow = css({
|
|
19
19
|
/** Text match styles */
|
|
20
20
|
|
|
21
21
|
/** Light mode */
|
|
@@ -197,7 +197,6 @@ export const findReplaceStylesNew = css({
|
|
|
197
197
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
198
198
|
'.search-match-expand-title > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
199
199
|
borderRadius: "var(--ds-space-050, 4px)",
|
|
200
|
-
padding: `${"var(--ds-space-050, 4px)"} 0`,
|
|
201
200
|
boxShadow: `
|
|
202
201
|
inset 0 0 0 1px ${"var(--ds-background-accent-yellow-subtler-pressed, #E2B203)"},
|
|
203
202
|
inset 0 0 0 5px ${"var(--ds-background-accent-yellow-subtler, #F8E6A0)"}
|
|
@@ -238,4 +237,229 @@ export const findReplaceStylesNew = css({
|
|
|
238
237
|
`,
|
|
239
238
|
backgroundColor: "var(--ds-background-accent-yellow-bolder-hovered, #7F5F01)"
|
|
240
239
|
}
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
243
|
+
export const findReplaceStylesNewMagenta = css({
|
|
244
|
+
/** Text match styles */
|
|
245
|
+
|
|
246
|
+
/** Light mode */
|
|
247
|
+
|
|
248
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
249
|
+
'.search-match-text': {
|
|
250
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
251
|
+
boxShadow: `
|
|
252
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
253
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}
|
|
254
|
+
`,
|
|
255
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
256
|
+
backgroundColor: `${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"} !important`,
|
|
257
|
+
color: "var(--ds-text, #172B4D)"
|
|
258
|
+
},
|
|
259
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
260
|
+
'.search-match-text.selected-search-match': {
|
|
261
|
+
boxShadow: `
|
|
262
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
263
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"}
|
|
264
|
+
`,
|
|
265
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
266
|
+
backgroundColor: `${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"} !important`
|
|
267
|
+
},
|
|
268
|
+
/** Dark mode */
|
|
269
|
+
|
|
270
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
271
|
+
'.search-match-text.search-match-dark': {
|
|
272
|
+
boxShadow: `
|
|
273
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
274
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"}
|
|
275
|
+
`,
|
|
276
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
277
|
+
backgroundColor: `${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"} !important`,
|
|
278
|
+
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
279
|
+
},
|
|
280
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
281
|
+
'.search-match-text.selected-search-match.search-match-dark': {
|
|
282
|
+
boxShadow: `
|
|
283
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
284
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}
|
|
285
|
+
`,
|
|
286
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
287
|
+
backgroundColor: `${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"} !important`
|
|
288
|
+
},
|
|
289
|
+
/** Block match styles */
|
|
290
|
+
|
|
291
|
+
/** Light mode */
|
|
292
|
+
|
|
293
|
+
/** Without node selection */
|
|
294
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
295
|
+
'.search-match-block': {
|
|
296
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
297
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
298
|
+
boxShadow: `
|
|
299
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
300
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}
|
|
301
|
+
`
|
|
302
|
+
},
|
|
303
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
304
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
305
|
+
boxShadow: `0px 0px 0px 4px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"}`
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
309
|
+
'.search-match-block.search-match-block-selected': {
|
|
310
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
311
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
312
|
+
boxShadow: `
|
|
313
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
314
|
+
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"}
|
|
315
|
+
`
|
|
316
|
+
},
|
|
317
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
318
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
319
|
+
boxShadow: `0px 0px 0px 4px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"}`
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
/** With node selection */
|
|
323
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
324
|
+
'.search-match-block.ak-editor-selected-node': {
|
|
325
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
326
|
+
'.loader-wrapper>div::after': {
|
|
327
|
+
boxShadow: `
|
|
328
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
329
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"},
|
|
330
|
+
0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}
|
|
331
|
+
`
|
|
332
|
+
},
|
|
333
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
334
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
335
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
336
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}, 0px 0px 0px 4px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"} !important`
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
340
|
+
'.search-match-block.search-match-block-selected.ak-editor-selected-node': {
|
|
341
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
342
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
343
|
+
boxShadow: `
|
|
344
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
345
|
+
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"},
|
|
346
|
+
0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}
|
|
347
|
+
`
|
|
348
|
+
},
|
|
349
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
350
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
351
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
352
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}, 0px 0px 0px 4px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"} !important`
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
/** Dark mode */
|
|
356
|
+
/** Without node selection */
|
|
357
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
358
|
+
'.search-match-block.search-match-dark': {
|
|
359
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
360
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
361
|
+
boxShadow: `
|
|
362
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
363
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"}
|
|
364
|
+
`
|
|
365
|
+
},
|
|
366
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
367
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
368
|
+
boxShadow: `0px 0px 0px 4px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"}`
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
372
|
+
'.search-match-block.search-match-block-selected.search-match-dark': {
|
|
373
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
374
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
375
|
+
boxShadow: `
|
|
376
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
377
|
+
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}
|
|
378
|
+
`
|
|
379
|
+
},
|
|
380
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
381
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
382
|
+
boxShadow: `0px 0px 0px 4px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"}`
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
/** With node selection */
|
|
386
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
387
|
+
'.search-match-block.search-match-dark.ak-editor-selected-node': {
|
|
388
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
389
|
+
'.loader-wrapper>div::after': {
|
|
390
|
+
boxShadow: `
|
|
391
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
392
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"},
|
|
393
|
+
0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}
|
|
394
|
+
`
|
|
395
|
+
},
|
|
396
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
397
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
398
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
399
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}, 0px 0px 0px 4px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"} !important`
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
403
|
+
'.search-match-block.search-match-block-selected.search-match-dark.ak-editor-selected-node': {
|
|
404
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
405
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
406
|
+
boxShadow: `
|
|
407
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
408
|
+
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"},
|
|
409
|
+
0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}
|
|
410
|
+
`
|
|
411
|
+
},
|
|
412
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
413
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
414
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
415
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}, 0px 0px 0px 4px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"} !important`
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
/** Expand title match styles */
|
|
419
|
+
|
|
420
|
+
/** Light mode */
|
|
421
|
+
|
|
422
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
423
|
+
'.search-match-expand-title > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
424
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
425
|
+
boxShadow: `
|
|
426
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
427
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}
|
|
428
|
+
`,
|
|
429
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)",
|
|
430
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
431
|
+
'.ak-editor-expand__title-input': {
|
|
432
|
+
color: "var(--ds-text, #172B4D)"
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
436
|
+
'.search-match-expand-title.selected-search-match > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
437
|
+
boxShadow: `
|
|
438
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
439
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"}
|
|
440
|
+
`,
|
|
441
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"
|
|
442
|
+
},
|
|
443
|
+
/** Dark mode */
|
|
444
|
+
|
|
445
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
446
|
+
'.search-match-expand-title.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
447
|
+
boxShadow: `
|
|
448
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
449
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"}
|
|
450
|
+
`,
|
|
451
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #50253F)",
|
|
452
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
453
|
+
'.ak-editor-expand__title-input': {
|
|
454
|
+
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
458
|
+
'.search-match-expand-title.selected-search-match.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
459
|
+
boxShadow: `
|
|
460
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
461
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}
|
|
462
|
+
`,
|
|
463
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
464
|
+
}
|
|
241
465
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "208.6.
|
|
2
|
+
export const version = "208.6.5";
|
|
@@ -21,7 +21,7 @@ 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,
|
|
24
|
+
import { findReplaceStyles, findReplaceStylesNewYellow, findReplaceStylesNewMagenta } 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';
|
|
@@ -40,6 +40,7 @@ import { mediaStyles } from './media';
|
|
|
40
40
|
import { panelStyles } from './panel';
|
|
41
41
|
import { statusStyles, statusNodeStyles } from './status';
|
|
42
42
|
import { taskDecisionStyles, vanillaTaskDecisionIconWithoutVisualRefresh as vanillaDecisionIconWithoutVisualRefresh, vanillaTaskDecisionIconWithVisualRefresh as vanillaDecisionIconWithVisualRefresh, vanillaTaskDecisionStyles as vanillaDecisionStyles, vanillaTaskItemStyles } from './tasks-and-decisions';
|
|
43
|
+
|
|
43
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
44
45
|
export var linkStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", "\n\t}\n"])), linkSharedStyle());
|
|
45
46
|
var ruleStyles = function ruleStyles() {
|
|
@@ -166,7 +167,7 @@ var legacyContentStyles = function legacyContentStyles(props) {
|
|
|
166
167
|
exposure: false
|
|
167
168
|
}) && vanillaSelectionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
168
169
|
exposure: false
|
|
169
|
-
}) ? emojiStyles : reactEmojiStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
170
|
+
}) ? emojiStyles : reactEmojiStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? fg('platform_editor_find_and_replace_magenta_match') ? findReplaceStylesNewMagenta : findReplaceStylesNewYellow : findReplaceStyles, textHighlightStyle, taskDecisionStyles, vanillaTaskItemStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
170
171
|
exposure: false
|
|
171
172
|
}) && vanillaDecisionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
172
173
|
exposure: false
|
|
@@ -21,7 +21,7 @@ import { backgroundColorStyles } from './styles/backgroundColorStyles';
|
|
|
21
21
|
import { baseStyles } from './styles/baseStyles';
|
|
22
22
|
import { blockMarksStyles } from './styles/blockMarksStyles';
|
|
23
23
|
import { blocktypeStyles, blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes, blocktypeStyles_fg_platform_editor_typography_ugc, blocktypeStyles_without_fg_platform_editor_typography_ugc } from './styles/blockTypeStyles';
|
|
24
|
-
import { codeBlockStyles, firstCodeBlockWithNoMargin, firstCodeBlockWithNoMarginOld } from './styles/codeBlockStyles';
|
|
24
|
+
import { codeBlockStyles, codeBgColorStyles, firstCodeBlockWithNoMargin, firstCodeBlockWithNoMarginOld } from './styles/codeBlockStyles';
|
|
25
25
|
import { codeMarkStyles } from './styles/codeMarkStyles';
|
|
26
26
|
import { commentEditorStyles } from './styles/commentEditorStyles';
|
|
27
27
|
import { cursorStyles } from './styles/cursorStyles';
|
|
@@ -31,7 +31,7 @@ import { embedCardStyles } from './styles/embedCardStyles';
|
|
|
31
31
|
import { reactEmojiStyles, vanillaEmojiStyles } from './styles/emoji';
|
|
32
32
|
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';
|
|
33
33
|
import { extensionStyles } from './styles/extensionStyles';
|
|
34
|
-
import { findReplaceStyles,
|
|
34
|
+
import { findReplaceStyles, findReplaceStylesNewMagenta, findReplaceStylesNewYellow } from './styles/findReplaceStyles';
|
|
35
35
|
import { firstBlockNodeStyles } from './styles/firstBlockNodeStyles';
|
|
36
36
|
import { firstFloatingToolbarButtonStyles } from './styles/floatingToolbarStyles';
|
|
37
37
|
import { fullPageEditorStyles } from './styles/fullPageEditorStyles';
|
|
@@ -119,6 +119,8 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
119
119
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
120
120
|
codeBlockStyles,
|
|
121
121
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
122
|
+
!fg('platform_editor_fix_code_block_bg_color_in_macro_2') && codeBgColorStyles,
|
|
123
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
122
124
|
!fg('platform_editor_typography_ugc') && editorUGCTokensDefault, fg('platform_editor_typography_ugc') &&
|
|
123
125
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
124
126
|
editorUGCTokensRefreshed,
|
|
@@ -179,9 +181,11 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
179
181
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
180
182
|
expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes,
|
|
181
183
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
182
|
-
fg('platform-visual-refresh-icons') && expandStylesMixin_fg_platform_visual_refresh_icons, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
184
|
+
fg('platform-visual-refresh-icons') && expandStylesMixin_fg_platform_visual_refresh_icons, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? fg('platform_editor_find_and_replace_magenta_match') ?
|
|
185
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
186
|
+
findReplaceStylesNewMagenta :
|
|
183
187
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
184
|
-
|
|
188
|
+
findReplaceStylesNewYellow :
|
|
185
189
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
186
190
|
findReplaceStyles,
|
|
187
191
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -48,7 +48,6 @@ export var codeBlockStyles = css({
|
|
|
48
48
|
whiteSpace: 'pre'
|
|
49
49
|
}
|
|
50
50
|
}), ".".concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
51
|
-
'--ds--code--bg-color': 'transparent',
|
|
52
51
|
position: 'relative',
|
|
53
52
|
backgroundColor: "var(--ds-surface-raised, #FFFFFF)",
|
|
54
53
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
@@ -177,6 +176,11 @@ export var codeBlockStyles = css({
|
|
|
177
176
|
}))
|
|
178
177
|
});
|
|
179
178
|
|
|
179
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
180
|
+
export var codeBgColorStyles = css(_defineProperty({}, ".".concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER), {
|
|
181
|
+
'--ds--code--bg-color': 'transparent'
|
|
182
|
+
}));
|
|
183
|
+
|
|
180
184
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
181
185
|
export var firstCodeBlockWithNoMargin = css({
|
|
182
186
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -15,7 +15,7 @@ export var findReplaceStyles = css({
|
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
18
|
-
export var
|
|
18
|
+
export var findReplaceStylesNewYellow = css({
|
|
19
19
|
/** Text match styles */
|
|
20
20
|
|
|
21
21
|
/** Light mode */
|
|
@@ -157,7 +157,6 @@ export var findReplaceStylesNew = css({
|
|
|
157
157
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
158
158
|
'.search-match-expand-title > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
159
159
|
borderRadius: "var(--ds-space-050, 4px)",
|
|
160
|
-
padding: "var(--ds-space-050, 4px)".concat(" 0"),
|
|
161
160
|
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-subtler, #F8E6A0)", "\n\t\t"),
|
|
162
161
|
backgroundColor: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
|
|
163
162
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -186,4 +185,177 @@ export var findReplaceStylesNew = css({
|
|
|
186
185
|
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-bolder, #946F00)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-bolder-hovered, #7F5F01)", "\n\t\t"),
|
|
187
186
|
backgroundColor: "var(--ds-background-accent-yellow-bolder-hovered, #7F5F01)"
|
|
188
187
|
}
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
191
|
+
export var findReplaceStylesNewMagenta = css({
|
|
192
|
+
/** Text match styles */
|
|
193
|
+
|
|
194
|
+
/** Light mode */
|
|
195
|
+
|
|
196
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
197
|
+
'.search-match-text': {
|
|
198
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
199
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t"),
|
|
200
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
201
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)".concat(" !important"),
|
|
202
|
+
color: "var(--ds-text, #172B4D)"
|
|
203
|
+
},
|
|
204
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
205
|
+
'.search-match-text.selected-search-match': {
|
|
206
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", "\n\t\t"),
|
|
207
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
208
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)".concat(" !important")
|
|
209
|
+
},
|
|
210
|
+
/** Dark mode */
|
|
211
|
+
|
|
212
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
213
|
+
'.search-match-text.search-match-dark': {
|
|
214
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", "\n\t\t"),
|
|
215
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
216
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #50253F)".concat(" !important"),
|
|
217
|
+
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
218
|
+
},
|
|
219
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
220
|
+
'.search-match-text.selected-search-match.search-match-dark': {
|
|
221
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", "\n\t\t"),
|
|
222
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
223
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)".concat(" !important")
|
|
224
|
+
},
|
|
225
|
+
/** Block match styles */
|
|
226
|
+
|
|
227
|
+
/** Light mode */
|
|
228
|
+
|
|
229
|
+
/** Without node selection */
|
|
230
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
231
|
+
'.search-match-block': {
|
|
232
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
233
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
234
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t\t")
|
|
235
|
+
},
|
|
236
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
237
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
238
|
+
boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-subtler, #FDD0EC)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)")
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
242
|
+
'.search-match-block.search-match-block-selected': {
|
|
243
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
244
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
245
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", "\n\t\t\t")
|
|
246
|
+
},
|
|
247
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
248
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
249
|
+
boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)")
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
/** With node selection */
|
|
253
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
254
|
+
'.search-match-block.ak-editor-selected-node': {
|
|
255
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
256
|
+
'.loader-wrapper>div::after': {
|
|
257
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
258
|
+
},
|
|
259
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
260
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
261
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
262
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", " !important")
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
266
|
+
'.search-match-block.search-match-block-selected.ak-editor-selected-node': {
|
|
267
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
268
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
269
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
270
|
+
},
|
|
271
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
272
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
273
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
274
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", " !important")
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
/** Dark mode */
|
|
278
|
+
/** Without node selection */
|
|
279
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
280
|
+
'.search-match-block.search-match-dark': {
|
|
281
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
282
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
283
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", "\n\t\t\t")
|
|
284
|
+
},
|
|
285
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
286
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
287
|
+
boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-bolder-pressed, #50253F)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)")
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
291
|
+
'.search-match-block.search-match-block-selected.search-match-dark': {
|
|
292
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
293
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
294
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", "\n\t\t\t")
|
|
295
|
+
},
|
|
296
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
297
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
298
|
+
boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-bolder-hovered, #943D73)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)")
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
/** With node selection */
|
|
302
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
303
|
+
'.search-match-block.search-match-dark.ak-editor-selected-node': {
|
|
304
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
305
|
+
'.loader-wrapper>div::after': {
|
|
306
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
307
|
+
},
|
|
308
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
309
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
310
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
311
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)", " !important")
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
315
|
+
'.search-match-block.search-match-block-selected.search-match-dark.ak-editor-selected-node': {
|
|
316
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
317
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
318
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
319
|
+
},
|
|
320
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
321
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
322
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
323
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)", " !important")
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
/** Expand title match styles */
|
|
327
|
+
|
|
328
|
+
/** Light mode */
|
|
329
|
+
|
|
330
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
331
|
+
'.search-match-expand-title > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
332
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
333
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t"),
|
|
334
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)",
|
|
335
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
336
|
+
'.ak-editor-expand__title-input': {
|
|
337
|
+
color: "var(--ds-text, #172B4D)"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
341
|
+
'.search-match-expand-title.selected-search-match > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
342
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", "\n\t\t"),
|
|
343
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"
|
|
344
|
+
},
|
|
345
|
+
/** Dark mode */
|
|
346
|
+
|
|
347
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
348
|
+
'.search-match-expand-title.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
349
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", "\n\t\t"),
|
|
350
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #50253F)",
|
|
351
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
352
|
+
'.ak-editor-expand__title-input': {
|
|
353
|
+
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
357
|
+
'.search-match-expand-title.selected-search-match.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
358
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", "\n\t\t"),
|
|
359
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
360
|
+
}
|
|
189
361
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "208.6.
|
|
2
|
+
export var version = "208.6.5";
|
|
@@ -10,5 +10,6 @@ export declare const CodeBlockSharedCssClassName: {
|
|
|
10
10
|
CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET: string;
|
|
11
11
|
};
|
|
12
12
|
export declare const codeBlockStyles: import("@emotion/react").SerializedStyles;
|
|
13
|
+
export declare const codeBgColorStyles: import("@emotion/react").SerializedStyles;
|
|
13
14
|
export declare const firstCodeBlockWithNoMargin: import("@emotion/react").SerializedStyles;
|
|
14
15
|
export declare const firstCodeBlockWithNoMarginOld: import("@emotion/react").SerializedStyles;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare const findReplaceStyles: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const findReplaceStylesNewYellow: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const findReplaceStylesNewMagenta: import("@emotion/react").SerializedStyles;
|
|
@@ -10,5 +10,6 @@ export declare const CodeBlockSharedCssClassName: {
|
|
|
10
10
|
CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET: string;
|
|
11
11
|
};
|
|
12
12
|
export declare const codeBlockStyles: import("@emotion/react").SerializedStyles;
|
|
13
|
+
export declare const codeBgColorStyles: import("@emotion/react").SerializedStyles;
|
|
13
14
|
export declare const firstCodeBlockWithNoMargin: import("@emotion/react").SerializedStyles;
|
|
14
15
|
export declare const firstCodeBlockWithNoMarginOld: import("@emotion/react").SerializedStyles;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare const findReplaceStyles: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const findReplaceStylesNewYellow: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const findReplaceStylesNewMagenta: import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "208.6.
|
|
3
|
+
"version": "208.6.6",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,8 +35,7 @@
|
|
|
35
35
|
"desktop-firefox",
|
|
36
36
|
"desktop-webkit"
|
|
37
37
|
]
|
|
38
|
-
}
|
|
39
|
-
"runReact18": true
|
|
38
|
+
}
|
|
40
39
|
},
|
|
41
40
|
"dependencies": {
|
|
42
41
|
"@atlaskit/activity-provider": "^2.5.0",
|
|
@@ -97,7 +96,7 @@
|
|
|
97
96
|
"@atlaskit/editor-plugin-list": "^4.2.0",
|
|
98
97
|
"@atlaskit/editor-plugin-paste": "^3.3.0",
|
|
99
98
|
"@atlaskit/link-provider": "^3.4.0",
|
|
100
|
-
"@atlaskit/logo": "^19.
|
|
99
|
+
"@atlaskit/logo": "^19.5.0",
|
|
101
100
|
"@atlaskit/media-core": "^37.0.0",
|
|
102
101
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
103
102
|
"@atlaskit/media-test-helpers": "^37.0.0",
|
|
@@ -105,7 +104,7 @@
|
|
|
105
104
|
"@atlaskit/primitives": "^14.10.0",
|
|
106
105
|
"@atlaskit/renderer": "^119.3.0",
|
|
107
106
|
"@atlaskit/section-message": "^8.2.0",
|
|
108
|
-
"@atlaskit/smart-card": "^38.
|
|
107
|
+
"@atlaskit/smart-card": "^38.20.0",
|
|
109
108
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
110
109
|
"@atlaskit/toggle": "^15.0.0",
|
|
111
110
|
"@atlaskit/util-data-test": "^18.0.0",
|
|
@@ -580,6 +579,12 @@
|
|
|
580
579
|
},
|
|
581
580
|
"platform_vc_ignore_no_ls_mutation_marker": {
|
|
582
581
|
"type": "boolean"
|
|
582
|
+
},
|
|
583
|
+
"platform_editor_fix_code_block_bg_color_in_macro_2": {
|
|
584
|
+
"type": "boolean"
|
|
585
|
+
},
|
|
586
|
+
"platform_editor_find_and_replace_magenta_match": {
|
|
587
|
+
"type": "boolean"
|
|
583
588
|
}
|
|
584
589
|
},
|
|
585
590
|
"stricter": {
|