@atlaskit/editor-core 215.17.4 → 215.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +4 -0
- package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +174 -1
- package/dist/cjs/ui/EditorContentContainer/styles/smartCardStyles.js +23 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +5 -1
- package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +231 -0
- package/dist/es2019/ui/EditorContentContainer/styles/smartCardStyles.js +34 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +5 -1
- package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +173 -0
- package/dist/esm/ui/EditorContentContainer/styles/smartCardStyles.js +23 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +1 -0
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 215.18.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a24253b5a6d68`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a24253b5a6d68) -
|
|
8
|
+
[ux] [A11Y-25850] update the outer box shadow color for find and replace matches to comply with
|
|
9
|
+
color contrast minimum ratio
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 215.18.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [`a36ac8c9961b1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a36ac8c9961b1) -
|
|
17
|
+
[ux] [EDITOR-2608] updated show diff deleted block nodes design
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [`f3bc89931d4a2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f3bc89931d4a2) -
|
|
22
|
+
Added a example page in editor-core with basic text formatting and media plugin only
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 215.17.4
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -278,6 +278,10 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
278
278
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
279
279
|
(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) ?
|
|
280
280
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
281
|
+
(0, _platformFeatureFlags.fg)('platform_editor_a11y_find_replace_focus_ring') ?
|
|
282
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
283
|
+
_findReplaceStyles.findReplaceStylesNewWithA11Y :
|
|
284
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
281
285
|
_findReplaceStyles.findReplaceStylesNew :
|
|
282
286
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
283
287
|
_findReplaceStyles.findReplaceStyles, (0, _expValEquals.expValEquals)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_codeblock_color_contrast_fix') &&
|
|
@@ -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.findReplaceStylesWithCodeblockColorContrastFix = exports.findReplaceStylesNewWithCodeblockColorContrastFix = exports.findReplaceStylesNew = exports.findReplaceStyles = void 0;
|
|
7
|
+
exports.findReplaceStylesWithCodeblockColorContrastFix = exports.findReplaceStylesNewWithCodeblockColorContrastFix = exports.findReplaceStylesNewWithA11Y = exports.findReplaceStylesNew = exports.findReplaceStyles = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
@@ -202,6 +202,179 @@ var findReplaceStylesNew = exports.findReplaceStylesNew = (0, _react.css)({
|
|
|
202
202
|
},
|
|
203
203
|
/** Dark mode */
|
|
204
204
|
|
|
205
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
206
|
+
'.search-match-expand-title.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
207
|
+
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, #77325B)", "\n\t\t"),
|
|
208
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #77325B)",
|
|
209
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
210
|
+
'.ak-editor-expand__title-input': {
|
|
211
|
+
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
215
|
+
'.search-match-expand-title.selected-search-match.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
216
|
+
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"),
|
|
217
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
222
|
+
var findReplaceStylesNewWithA11Y = exports.findReplaceStylesNewWithA11Y = (0, _react.css)({
|
|
223
|
+
/** Text match styles */
|
|
224
|
+
|
|
225
|
+
/** Light mode */
|
|
226
|
+
|
|
227
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
228
|
+
'.search-match-text': {
|
|
229
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
230
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t"),
|
|
231
|
+
// we need to use !important here as we need to override inline selection styles
|
|
232
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
233
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)".concat(" !important"),
|
|
234
|
+
color: "var(--ds-text, #292A2E)"
|
|
235
|
+
},
|
|
236
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
237
|
+
'.search-match-text.selected-search-match': {
|
|
238
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)", "\n\t\t"),
|
|
239
|
+
// we need to use !important here as we need to override inline selection styles
|
|
240
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
241
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)".concat(" !important")
|
|
242
|
+
},
|
|
243
|
+
/** Dark mode */
|
|
244
|
+
|
|
245
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
246
|
+
'.search-match-text.search-match-dark': {
|
|
247
|
+
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, #77325B)", "\n\t\t"),
|
|
248
|
+
// we need to use !important here as we need to override inline selection styles
|
|
249
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
250
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #77325B)".concat(" !important"),
|
|
251
|
+
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
252
|
+
},
|
|
253
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
254
|
+
'.search-match-text.selected-search-match.search-match-dark': {
|
|
255
|
+
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"),
|
|
256
|
+
// we need to use !important here as we need to override inline selection styles
|
|
257
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
258
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)".concat(" !important")
|
|
259
|
+
},
|
|
260
|
+
/** Block match styles */
|
|
261
|
+
|
|
262
|
+
/** Light mode */
|
|
263
|
+
|
|
264
|
+
/** Without node selection */
|
|
265
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
266
|
+
'.search-match-block': {
|
|
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-border-accent-magenta, #CD519D)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t\t")
|
|
270
|
+
},
|
|
271
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
272
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
273
|
+
boxShadow: "\n\t\t\t0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-subtler, #FDD0EC)", ",\n\t\t\t0px 0px 0px 5px ", "var(--ds-border-accent-magenta, #CD519D)", "\n\t\t\t")
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
277
|
+
'.search-match-block.search-match-block-selected': {
|
|
278
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
279
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
280
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)", "\n\t\t\t")
|
|
281
|
+
},
|
|
282
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
283
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
284
|
+
boxShadow: "\n\t\t\t0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)", ",\n\t\t\t0px 0px 0px 5px ", "var(--ds-border-accent-magenta, #CD519D)", "\n\t\t\t")
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
/** With node selection */
|
|
288
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
289
|
+
'.search-match-block.ak-editor-selected-node': {
|
|
290
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
291
|
+
'.loader-wrapper>div::after': {
|
|
292
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\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, #1868DB)", "\n\t\t\t")
|
|
293
|
+
},
|
|
294
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
295
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
296
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #F797D2)")
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
300
|
+
'.search-match-block.search-match-block-selected.ak-editor-selected-node': {
|
|
301
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
302
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
303
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #1868DB)", "\n\t\t\t")
|
|
304
|
+
},
|
|
305
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
306
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
307
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #F797D2)")
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
/** Dark mode */
|
|
311
|
+
/** Without node selection */
|
|
312
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
313
|
+
'.search-match-block.search-match-dark': {
|
|
314
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
315
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
316
|
+
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, #77325B)", "\n\t\t\t")
|
|
317
|
+
},
|
|
318
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
319
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
320
|
+
boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-bolder-pressed, #77325B)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)")
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
324
|
+
'.search-match-block.search-match-block-selected.search-match-dark': {
|
|
325
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
326
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
327
|
+
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")
|
|
328
|
+
},
|
|
329
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
330
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
331
|
+
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)")
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
/** With node selection */
|
|
335
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
336
|
+
'.search-match-block.search-match-dark.ak-editor-selected-node': {
|
|
337
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
338
|
+
'.loader-wrapper>div::after': {
|
|
339
|
+
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, #77325B)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #1868DB)", "\n\t\t\t")
|
|
340
|
+
},
|
|
341
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
342
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
343
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-bolder-pressed, #77325B)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)")
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
347
|
+
'.search-match-block.search-match-block-selected.search-match-dark.ak-editor-selected-node': {
|
|
348
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
349
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
350
|
+
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, #1868DB)", "\n\t\t\t")
|
|
351
|
+
},
|
|
352
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
353
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
354
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)")
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
/** Expand title match styles */
|
|
358
|
+
|
|
359
|
+
/** Light mode */
|
|
360
|
+
|
|
361
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
362
|
+
'.search-match-expand-title > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
363
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
364
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t"),
|
|
365
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)",
|
|
366
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
367
|
+
'.ak-editor-expand__title-input': {
|
|
368
|
+
color: "var(--ds-text, #292A2E)"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
372
|
+
'.search-match-expand-title.selected-search-match > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
373
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)", "\n\t\t"),
|
|
374
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)"
|
|
375
|
+
},
|
|
376
|
+
/** Dark mode */
|
|
377
|
+
|
|
205
378
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
206
379
|
'.search-match-expand-title.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
207
380
|
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, #77325B)", "\n\t\t"),
|
|
@@ -39,18 +39,39 @@ var smartCardDiffStyles = exports.smartCardDiffStyles = (0, _react.css)((0, _def
|
|
|
39
39
|
})));
|
|
40
40
|
|
|
41
41
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
42
|
-
var showDiffDeletedNodeStyles = exports.showDiffDeletedNodeStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), (0, _defineProperty2.default)({}, "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
42
|
+
var showDiffDeletedNodeStyles = exports.showDiffDeletedNodeStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
43
43
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
44
44
|
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-gray, #7D818A)"),
|
|
45
45
|
borderColor: 'transparent'
|
|
46
|
+
}), "&.show-diff-deleted-node-traditional .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
48
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
|
|
49
|
+
borderColor: 'transparent'
|
|
50
|
+
}), "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER), {
|
|
51
|
+
opacity: 0.6
|
|
46
52
|
})), '.show-diff-deleted-node .media-card-wrapper', {
|
|
47
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
48
54
|
'& > div': {
|
|
49
55
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
50
56
|
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-gray, #7D818A)"),
|
|
51
|
-
borderRadius: "
|
|
57
|
+
borderRadius: "var(--ds-radius-small, 4px)",
|
|
52
58
|
opacity: 0.6
|
|
53
59
|
}
|
|
60
|
+
}), '.show-diff-deleted-node-traditional .media-card-wrapper', {
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
62
|
+
'& > div': {
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
64
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
|
|
65
|
+
borderRadius: "var(--ds-radius-small, 4px)"
|
|
66
|
+
}
|
|
67
|
+
}), '[data-prosemirror-node-name="blockquote"].show-diff-deleted-node', {
|
|
68
|
+
textDecoration: 'line-through'
|
|
69
|
+
}), '[data-prosemirror-node-name="blockquote"].show-diff-deleted-node-traditional', {
|
|
70
|
+
textDecoration: 'line-through',
|
|
71
|
+
textDecorationColor: "var(--ds-border-accent-red, #E2483D)"
|
|
72
|
+
}), '[data-prosemirror-node-name="embedCard"].show-diff-deleted-node-traditional', {
|
|
73
|
+
textDecoration: 'line-through',
|
|
74
|
+
textDecorationColor: "var(--ds-border-accent-red, #E2483D)"
|
|
54
75
|
}));
|
|
55
76
|
|
|
56
77
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -34,7 +34,7 @@ import { embedCardStyles } from './styles/embedCardStyles';
|
|
|
34
34
|
import { emojiDangerStyles, emojiStyles, scaledEmojiStyles, getDenseEmojiStyles, getScaledDenseEmojiStyles } from './styles/emoji';
|
|
35
35
|
import { expandStyles, getDenseExpandTitleStyles, 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';
|
|
36
36
|
import { getExtensionStyles, extensionDiffStyles } from './styles/extensionStyles';
|
|
37
|
-
import { findReplaceStyles, findReplaceStylesWithCodeblockColorContrastFix, findReplaceStylesNew, findReplaceStylesNewWithCodeblockColorContrastFix } from './styles/findReplaceStyles';
|
|
37
|
+
import { findReplaceStyles, findReplaceStylesWithCodeblockColorContrastFix, findReplaceStylesNew, findReplaceStylesNewWithCodeblockColorContrastFix, findReplaceStylesNewWithA11Y } from './styles/findReplaceStyles';
|
|
38
38
|
import { firstBlockNodeStyles } from './styles/firstBlockNodeStyles';
|
|
39
39
|
import { firstFloatingToolbarButtonStyles } from './styles/floatingToolbarStyles';
|
|
40
40
|
import { fullPageEditorStyles } from './styles/fullPageEditorStyles';
|
|
@@ -274,6 +274,10 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
274
274
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
275
275
|
fg('platform-visual-refresh-icons') && expandStylesMixin_fg_platform_visual_refresh_icons, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
276
276
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
277
|
+
fg('platform_editor_a11y_find_replace_focus_ring') ?
|
|
278
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
279
|
+
findReplaceStylesNewWithA11Y :
|
|
280
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
277
281
|
findReplaceStylesNew :
|
|
278
282
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
279
283
|
findReplaceStyles, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_codeblock_color_contrast_fix') &&
|
|
@@ -245,6 +245,237 @@ export const findReplaceStylesNew = css({
|
|
|
245
245
|
},
|
|
246
246
|
/** Dark mode */
|
|
247
247
|
|
|
248
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
249
|
+
'.search-match-expand-title.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
250
|
+
boxShadow: `
|
|
251
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
252
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #77325B)"}
|
|
253
|
+
`,
|
|
254
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #77325B)",
|
|
255
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
256
|
+
'.ak-editor-expand__title-input': {
|
|
257
|
+
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
261
|
+
'.search-match-expand-title.selected-search-match.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
262
|
+
boxShadow: `
|
|
263
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
264
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}
|
|
265
|
+
`,
|
|
266
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
271
|
+
export const findReplaceStylesNewWithA11Y = css({
|
|
272
|
+
/** Text match styles */
|
|
273
|
+
|
|
274
|
+
/** Light mode */
|
|
275
|
+
|
|
276
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
277
|
+
'.search-match-text': {
|
|
278
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
279
|
+
boxShadow: `
|
|
280
|
+
inset 0 0 0 1px ${"var(--ds-border-accent-magenta, #CD519D)"},
|
|
281
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}
|
|
282
|
+
`,
|
|
283
|
+
// we need to use !important here as we need to override inline selection styles
|
|
284
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
285
|
+
backgroundColor: `${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"} !important`,
|
|
286
|
+
color: "var(--ds-text, #292A2E)"
|
|
287
|
+
},
|
|
288
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
289
|
+
'.search-match-text.selected-search-match': {
|
|
290
|
+
boxShadow: `
|
|
291
|
+
inset 0 0 0 1px ${"var(--ds-border-accent-magenta, #CD519D)"},
|
|
292
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)"}
|
|
293
|
+
`,
|
|
294
|
+
// we need to use !important here as we need to override inline selection styles
|
|
295
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
296
|
+
backgroundColor: `${"var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)"} !important`
|
|
297
|
+
},
|
|
298
|
+
/** Dark mode */
|
|
299
|
+
|
|
300
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
301
|
+
'.search-match-text.search-match-dark': {
|
|
302
|
+
boxShadow: `
|
|
303
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
304
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #77325B)"}
|
|
305
|
+
`,
|
|
306
|
+
// we need to use !important here as we need to override inline selection styles
|
|
307
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
308
|
+
backgroundColor: `${"var(--ds-background-accent-magenta-bolder-pressed, #77325B)"} !important`,
|
|
309
|
+
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
310
|
+
},
|
|
311
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
312
|
+
'.search-match-text.selected-search-match.search-match-dark': {
|
|
313
|
+
boxShadow: `
|
|
314
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
315
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}
|
|
316
|
+
`,
|
|
317
|
+
// we need to use !important here as we need to override inline selection styles
|
|
318
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
319
|
+
backgroundColor: `${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"} !important`
|
|
320
|
+
},
|
|
321
|
+
/** Block match styles */
|
|
322
|
+
|
|
323
|
+
/** Light mode */
|
|
324
|
+
|
|
325
|
+
/** Without node selection */
|
|
326
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
327
|
+
'.search-match-block': {
|
|
328
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
329
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
330
|
+
boxShadow: `
|
|
331
|
+
inset 0 0 0 1px ${"var(--ds-border-accent-magenta, #CD519D)"},
|
|
332
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}
|
|
333
|
+
`
|
|
334
|
+
},
|
|
335
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
336
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
337
|
+
boxShadow: `
|
|
338
|
+
0px 0px 0px 4px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"},
|
|
339
|
+
0px 0px 0px 5px ${"var(--ds-border-accent-magenta, #CD519D)"}
|
|
340
|
+
`
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
344
|
+
'.search-match-block.search-match-block-selected': {
|
|
345
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
346
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
347
|
+
boxShadow: `
|
|
348
|
+
inset 0 0 0 1px ${"var(--ds-border-accent-magenta, #CD519D)"},
|
|
349
|
+
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)"}
|
|
350
|
+
`
|
|
351
|
+
},
|
|
352
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
353
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
354
|
+
boxShadow: `
|
|
355
|
+
0px 0px 0px 4px ${"var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)"},
|
|
356
|
+
0px 0px 0px 5px ${"var(--ds-border-accent-magenta, #CD519D)"}
|
|
357
|
+
`
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
/** With node selection */
|
|
361
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
362
|
+
'.search-match-block.ak-editor-selected-node': {
|
|
363
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
364
|
+
'.loader-wrapper>div::after': {
|
|
365
|
+
boxShadow: `
|
|
366
|
+
inset 0 0 0 1px ${"var(--ds-border-accent-magenta, #CD519D)"},
|
|
367
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"},
|
|
368
|
+
0 0 0 1px ${"var(--ds-border-selected, #1868DB)"}
|
|
369
|
+
`
|
|
370
|
+
},
|
|
371
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
372
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
373
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #1868DB)"}, 0px 0px 0px 4px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-subtler-pressed, #F797D2)"}`
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
377
|
+
'.search-match-block.search-match-block-selected.ak-editor-selected-node': {
|
|
378
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
379
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
380
|
+
boxShadow: `
|
|
381
|
+
inset 0 0 0 1px ${"var(--ds-border-accent-magenta, #CD519D)"},
|
|
382
|
+
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)"},
|
|
383
|
+
0 0 0 1px ${"var(--ds-border-selected, #1868DB)"}
|
|
384
|
+
`
|
|
385
|
+
},
|
|
386
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
387
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
388
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #1868DB)"}, 0px 0px 0px 4px ${"var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-subtler-pressed, #F797D2)"}`
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
/** Dark mode */
|
|
392
|
+
/** Without node selection */
|
|
393
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
394
|
+
'.search-match-block.search-match-dark': {
|
|
395
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
396
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
397
|
+
boxShadow: `
|
|
398
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
399
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #77325B)"}
|
|
400
|
+
`
|
|
401
|
+
},
|
|
402
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
403
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
404
|
+
boxShadow: `0px 0px 0px 4px ${"var(--ds-background-accent-magenta-bolder-pressed, #77325B)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"}`
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
408
|
+
'.search-match-block.search-match-block-selected.search-match-dark': {
|
|
409
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
410
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
411
|
+
boxShadow: `
|
|
412
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
413
|
+
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}
|
|
414
|
+
`
|
|
415
|
+
},
|
|
416
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
417
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
418
|
+
boxShadow: `0px 0px 0px 4px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"}`
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
/** With node selection */
|
|
422
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
423
|
+
'.search-match-block.search-match-dark.ak-editor-selected-node': {
|
|
424
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
425
|
+
'.loader-wrapper>div::after': {
|
|
426
|
+
boxShadow: `
|
|
427
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
428
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #77325B)"},
|
|
429
|
+
0 0 0 1px ${"var(--ds-border-selected, #1868DB)"}
|
|
430
|
+
`
|
|
431
|
+
},
|
|
432
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
433
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
434
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #1868DB)"}, 0px 0px 0px 4px ${"var(--ds-background-accent-magenta-bolder-pressed, #77325B)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"}`
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
438
|
+
'.search-match-block.search-match-block-selected.search-match-dark.ak-editor-selected-node': {
|
|
439
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
440
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
441
|
+
boxShadow: `
|
|
442
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
443
|
+
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"},
|
|
444
|
+
0 0 0 1px ${"var(--ds-border-selected, #1868DB)"}
|
|
445
|
+
`
|
|
446
|
+
},
|
|
447
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
448
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
449
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #1868DB)"}, 0px 0px 0px 4px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"}`
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
/** Expand title match styles */
|
|
453
|
+
|
|
454
|
+
/** Light mode */
|
|
455
|
+
|
|
456
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
457
|
+
'.search-match-expand-title > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
458
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
459
|
+
boxShadow: `
|
|
460
|
+
inset 0 0 0 1px ${"var(--ds-border-accent-magenta, #CD519D)"},
|
|
461
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}
|
|
462
|
+
`,
|
|
463
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)",
|
|
464
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
465
|
+
'.ak-editor-expand__title-input': {
|
|
466
|
+
color: "var(--ds-text, #292A2E)"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
470
|
+
'.search-match-expand-title.selected-search-match > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
471
|
+
boxShadow: `
|
|
472
|
+
inset 0 0 0 1px ${"var(--ds-border-accent-magenta, #CD519D)"},
|
|
473
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)"}
|
|
474
|
+
`,
|
|
475
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)"
|
|
476
|
+
},
|
|
477
|
+
/** Dark mode */
|
|
478
|
+
|
|
248
479
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
249
480
|
'.search-match-expand-title.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
250
481
|
boxShadow: `
|
|
@@ -47,6 +47,16 @@ export const showDiffDeletedNodeStyles = css({
|
|
|
47
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
48
48
|
boxShadow: `0 0 0 1px ${"var(--ds-border-accent-gray, #7D818A)"}`,
|
|
49
49
|
borderColor: 'transparent'
|
|
50
|
+
},
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values,@atlaskit/ui-styling-standard/no-nested-selectors
|
|
52
|
+
[`&.show-diff-deleted-node-traditional .${SmartCardSharedCssClassName.LOADER_WRAPPER} > div::after`]: {
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
54
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-accent-red, #E2483D)"}`,
|
|
55
|
+
borderColor: 'transparent'
|
|
56
|
+
},
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values,@atlaskit/ui-styling-standard/no-nested-selectors
|
|
58
|
+
[`&.show-diff-deleted-node .${SmartCardSharedCssClassName.LOADER_WRAPPER}`]: {
|
|
59
|
+
opacity: 0.6
|
|
50
60
|
}
|
|
51
61
|
},
|
|
52
62
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -55,9 +65,32 @@ export const showDiffDeletedNodeStyles = css({
|
|
|
55
65
|
'& > div': {
|
|
56
66
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
57
67
|
boxShadow: `0 0 0 1px ${"var(--ds-border-accent-gray, #7D818A)"}`,
|
|
58
|
-
borderRadius:
|
|
68
|
+
borderRadius: "var(--ds-radius-small, 4px)",
|
|
59
69
|
opacity: 0.6
|
|
60
70
|
}
|
|
71
|
+
},
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
73
|
+
'.show-diff-deleted-node-traditional .media-card-wrapper': {
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
75
|
+
'& > div': {
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
77
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-accent-red, #E2483D)"}`,
|
|
78
|
+
borderRadius: "var(--ds-radius-small, 4px)"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
82
|
+
'[data-prosemirror-node-name="blockquote"].show-diff-deleted-node': {
|
|
83
|
+
textDecoration: 'line-through'
|
|
84
|
+
},
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
86
|
+
'[data-prosemirror-node-name="blockquote"].show-diff-deleted-node-traditional': {
|
|
87
|
+
textDecoration: 'line-through',
|
|
88
|
+
textDecorationColor: "var(--ds-border-accent-red, #E2483D)"
|
|
89
|
+
},
|
|
90
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
91
|
+
'[data-prosemirror-node-name="embedCard"].show-diff-deleted-node-traditional': {
|
|
92
|
+
textDecoration: 'line-through',
|
|
93
|
+
textDecorationColor: "var(--ds-border-accent-red, #E2483D)"
|
|
61
94
|
}
|
|
62
95
|
});
|
|
63
96
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "215.
|
|
2
|
+
export const version = "215.18.0";
|
|
@@ -35,7 +35,7 @@ import { embedCardStyles } from './styles/embedCardStyles';
|
|
|
35
35
|
import { emojiDangerStyles, emojiStyles, scaledEmojiStyles, getDenseEmojiStyles, getScaledDenseEmojiStyles } from './styles/emoji';
|
|
36
36
|
import { expandStyles, getDenseExpandTitleStyles, 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';
|
|
37
37
|
import { getExtensionStyles, extensionDiffStyles } from './styles/extensionStyles';
|
|
38
|
-
import { findReplaceStyles, findReplaceStylesWithCodeblockColorContrastFix, findReplaceStylesNew, findReplaceStylesNewWithCodeblockColorContrastFix } from './styles/findReplaceStyles';
|
|
38
|
+
import { findReplaceStyles, findReplaceStylesWithCodeblockColorContrastFix, findReplaceStylesNew, findReplaceStylesNewWithCodeblockColorContrastFix, findReplaceStylesNewWithA11Y } from './styles/findReplaceStyles';
|
|
39
39
|
import { firstBlockNodeStyles } from './styles/firstBlockNodeStyles';
|
|
40
40
|
import { firstFloatingToolbarButtonStyles } from './styles/floatingToolbarStyles';
|
|
41
41
|
import { fullPageEditorStyles } from './styles/fullPageEditorStyles';
|
|
@@ -270,6 +270,10 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
270
270
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
271
271
|
fg('platform-visual-refresh-icons') && expandStylesMixin_fg_platform_visual_refresh_icons, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
272
272
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
273
|
+
fg('platform_editor_a11y_find_replace_focus_ring') ?
|
|
274
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
275
|
+
findReplaceStylesNewWithA11Y :
|
|
276
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
273
277
|
findReplaceStylesNew :
|
|
274
278
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
275
279
|
findReplaceStyles, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_codeblock_color_contrast_fix') &&
|
|
@@ -194,6 +194,179 @@ export var findReplaceStylesNew = css({
|
|
|
194
194
|
},
|
|
195
195
|
/** Dark mode */
|
|
196
196
|
|
|
197
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
198
|
+
'.search-match-expand-title.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
199
|
+
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, #77325B)", "\n\t\t"),
|
|
200
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #77325B)",
|
|
201
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
202
|
+
'.ak-editor-expand__title-input': {
|
|
203
|
+
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
207
|
+
'.search-match-expand-title.selected-search-match.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
208
|
+
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"),
|
|
209
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
214
|
+
export var findReplaceStylesNewWithA11Y = css({
|
|
215
|
+
/** Text match styles */
|
|
216
|
+
|
|
217
|
+
/** Light mode */
|
|
218
|
+
|
|
219
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
220
|
+
'.search-match-text': {
|
|
221
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
222
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t"),
|
|
223
|
+
// we need to use !important here as we need to override inline selection styles
|
|
224
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
225
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)".concat(" !important"),
|
|
226
|
+
color: "var(--ds-text, #292A2E)"
|
|
227
|
+
},
|
|
228
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
229
|
+
'.search-match-text.selected-search-match': {
|
|
230
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)", "\n\t\t"),
|
|
231
|
+
// we need to use !important here as we need to override inline selection styles
|
|
232
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
233
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)".concat(" !important")
|
|
234
|
+
},
|
|
235
|
+
/** Dark mode */
|
|
236
|
+
|
|
237
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
238
|
+
'.search-match-text.search-match-dark': {
|
|
239
|
+
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, #77325B)", "\n\t\t"),
|
|
240
|
+
// we need to use !important here as we need to override inline selection styles
|
|
241
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
242
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #77325B)".concat(" !important"),
|
|
243
|
+
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
244
|
+
},
|
|
245
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
246
|
+
'.search-match-text.selected-search-match.search-match-dark': {
|
|
247
|
+
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"),
|
|
248
|
+
// we need to use !important here as we need to override inline selection styles
|
|
249
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
250
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)".concat(" !important")
|
|
251
|
+
},
|
|
252
|
+
/** Block match styles */
|
|
253
|
+
|
|
254
|
+
/** Light mode */
|
|
255
|
+
|
|
256
|
+
/** Without node selection */
|
|
257
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
258
|
+
'.search-match-block': {
|
|
259
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
260
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
261
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t\t")
|
|
262
|
+
},
|
|
263
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
264
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
265
|
+
boxShadow: "\n\t\t\t0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-subtler, #FDD0EC)", ",\n\t\t\t0px 0px 0px 5px ", "var(--ds-border-accent-magenta, #CD519D)", "\n\t\t\t")
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
269
|
+
'.search-match-block.search-match-block-selected': {
|
|
270
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
271
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
272
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)", "\n\t\t\t")
|
|
273
|
+
},
|
|
274
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
275
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
276
|
+
boxShadow: "\n\t\t\t0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)", ",\n\t\t\t0px 0px 0px 5px ", "var(--ds-border-accent-magenta, #CD519D)", "\n\t\t\t")
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
/** With node selection */
|
|
280
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
281
|
+
'.search-match-block.ak-editor-selected-node': {
|
|
282
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
283
|
+
'.loader-wrapper>div::after': {
|
|
284
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\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, #1868DB)", "\n\t\t\t")
|
|
285
|
+
},
|
|
286
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
287
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
288
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #F797D2)")
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
292
|
+
'.search-match-block.search-match-block-selected.ak-editor-selected-node': {
|
|
293
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
294
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
295
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #1868DB)", "\n\t\t\t")
|
|
296
|
+
},
|
|
297
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
298
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
299
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #F797D2)")
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
/** Dark mode */
|
|
303
|
+
/** Without node selection */
|
|
304
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
305
|
+
'.search-match-block.search-match-dark': {
|
|
306
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
307
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
308
|
+
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, #77325B)", "\n\t\t\t")
|
|
309
|
+
},
|
|
310
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
311
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
312
|
+
boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-bolder-pressed, #77325B)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)")
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
316
|
+
'.search-match-block.search-match-block-selected.search-match-dark': {
|
|
317
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
318
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
319
|
+
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")
|
|
320
|
+
},
|
|
321
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
322
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
323
|
+
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)")
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
/** With node selection */
|
|
327
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
328
|
+
'.search-match-block.search-match-dark.ak-editor-selected-node': {
|
|
329
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
330
|
+
'.loader-wrapper>div::after': {
|
|
331
|
+
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, #77325B)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #1868DB)", "\n\t\t\t")
|
|
332
|
+
},
|
|
333
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
334
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
335
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-bolder-pressed, #77325B)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)")
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
339
|
+
'.search-match-block.search-match-block-selected.search-match-dark.ak-editor-selected-node': {
|
|
340
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
341
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
342
|
+
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, #1868DB)", "\n\t\t\t")
|
|
343
|
+
},
|
|
344
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
345
|
+
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
346
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)")
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
/** Expand title match styles */
|
|
350
|
+
|
|
351
|
+
/** Light mode */
|
|
352
|
+
|
|
353
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
354
|
+
'.search-match-expand-title > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
355
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
356
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t"),
|
|
357
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)",
|
|
358
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
359
|
+
'.ak-editor-expand__title-input': {
|
|
360
|
+
color: "var(--ds-text, #292A2E)"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
364
|
+
'.search-match-expand-title.selected-search-match > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
365
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)", "\n\t\t"),
|
|
366
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)"
|
|
367
|
+
},
|
|
368
|
+
/** Dark mode */
|
|
369
|
+
|
|
197
370
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
198
371
|
'.search-match-expand-title.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
199
372
|
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, #77325B)", "\n\t\t"),
|
|
@@ -31,18 +31,39 @@ export var smartCardDiffStyles = css(_defineProperty({}, ".".concat(SmartCardSha
|
|
|
31
31
|
})));
|
|
32
32
|
|
|
33
33
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
34
|
-
export var showDiffDeletedNodeStyles = css(_defineProperty(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), _defineProperty({}, "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
34
|
+
export var showDiffDeletedNodeStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), _defineProperty(_defineProperty(_defineProperty({}, "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
35
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
36
36
|
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-gray, #7D818A)"),
|
|
37
37
|
borderColor: 'transparent'
|
|
38
|
+
}), "&.show-diff-deleted-node-traditional .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
40
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
|
|
41
|
+
borderColor: 'transparent'
|
|
42
|
+
}), "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER), {
|
|
43
|
+
opacity: 0.6
|
|
38
44
|
})), '.show-diff-deleted-node .media-card-wrapper', {
|
|
39
45
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
40
46
|
'& > div': {
|
|
41
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
42
48
|
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-gray, #7D818A)"),
|
|
43
|
-
borderRadius: "
|
|
49
|
+
borderRadius: "var(--ds-radius-small, 4px)",
|
|
44
50
|
opacity: 0.6
|
|
45
51
|
}
|
|
52
|
+
}), '.show-diff-deleted-node-traditional .media-card-wrapper', {
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
54
|
+
'& > div': {
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
56
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
|
|
57
|
+
borderRadius: "var(--ds-radius-small, 4px)"
|
|
58
|
+
}
|
|
59
|
+
}), '[data-prosemirror-node-name="blockquote"].show-diff-deleted-node', {
|
|
60
|
+
textDecoration: 'line-through'
|
|
61
|
+
}), '[data-prosemirror-node-name="blockquote"].show-diff-deleted-node-traditional', {
|
|
62
|
+
textDecoration: 'line-through',
|
|
63
|
+
textDecorationColor: "var(--ds-border-accent-red, #E2483D)"
|
|
64
|
+
}), '[data-prosemirror-node-name="embedCard"].show-diff-deleted-node-traditional', {
|
|
65
|
+
textDecoration: 'line-through',
|
|
66
|
+
textDecorationColor: "var(--ds-border-accent-red, #E2483D)"
|
|
46
67
|
}));
|
|
47
68
|
|
|
48
69
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "215.
|
|
2
|
+
export var version = "215.18.0";
|
|
@@ -3,3 +3,4 @@ export declare const findReplaceStyles: SerializedStyles;
|
|
|
3
3
|
export declare const findReplaceStylesWithCodeblockColorContrastFix: SerializedStyles;
|
|
4
4
|
export declare const findReplaceStylesNewWithCodeblockColorContrastFix: SerializedStyles;
|
|
5
5
|
export declare const findReplaceStylesNew: SerializedStyles;
|
|
6
|
+
export declare const findReplaceStylesNewWithA11Y: SerializedStyles;
|
|
@@ -3,3 +3,4 @@ export declare const findReplaceStyles: SerializedStyles;
|
|
|
3
3
|
export declare const findReplaceStylesWithCodeblockColorContrastFix: SerializedStyles;
|
|
4
4
|
export declare const findReplaceStylesNewWithCodeblockColorContrastFix: SerializedStyles;
|
|
5
5
|
export declare const findReplaceStylesNew: SerializedStyles;
|
|
6
|
+
export declare const findReplaceStylesNewWithA11Y: SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "215.
|
|
3
|
+
"version": "215.18.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
65
65
|
"@atlaskit/react-ufo": "^4.15.0",
|
|
66
66
|
"@atlaskit/task-decision": "^19.2.0",
|
|
67
|
-
"@atlaskit/tmp-editor-statsig": "^14.
|
|
67
|
+
"@atlaskit/tmp-editor-statsig": "^14.7.0",
|
|
68
68
|
"@atlaskit/tokens": "^8.4.0",
|
|
69
69
|
"@atlaskit/tooltip": "^20.10.0",
|
|
70
70
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"uuid": "^3.1.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@atlaskit/editor-common": "^110.
|
|
84
|
+
"@atlaskit/editor-common": "^110.39.0",
|
|
85
85
|
"@atlaskit/link-provider": "^4.0.0",
|
|
86
86
|
"@atlaskit/media-core": "^37.0.0",
|
|
87
87
|
"react": "^18.2.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@atlaskit/adf-utils": "^19.26.0",
|
|
95
95
|
"@atlaskit/analytics-listeners": "^9.1.0",
|
|
96
96
|
"@atlaskit/collab-provider": "^14.1.0",
|
|
97
|
-
"@atlaskit/editor-plugin-annotation": "^6.
|
|
97
|
+
"@atlaskit/editor-plugin-annotation": "^6.3.0",
|
|
98
98
|
"@atlaskit/editor-plugin-card": "^11.5.0",
|
|
99
99
|
"@atlaskit/editor-plugin-list": "^8.2.0",
|
|
100
100
|
"@atlaskit/editor-plugin-paste": "^7.4.0",
|
|
@@ -394,6 +394,9 @@
|
|
|
394
394
|
"rovo_chat_enable_skills_ui_m1": {
|
|
395
395
|
"type": "boolean"
|
|
396
396
|
},
|
|
397
|
+
"platform_editor_a11y_find_replace_focus_ring": {
|
|
398
|
+
"type": "boolean"
|
|
399
|
+
},
|
|
397
400
|
"platform-custom-icon-migration": {
|
|
398
401
|
"type": "boolean"
|
|
399
402
|
}
|