@atlaskit/editor-plugin-find-replace 6.0.1 → 6.0.3
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 +14 -0
- package/dist/cjs/ui/styles.js +3 -115
- package/dist/es2019/ui/styles.js +1 -232
- package/dist/esm/ui/styles.js +1 -114
- package/dist/types/ui/styles.d.ts +0 -3
- package/dist/types-ts4.5/ui/styles.d.ts +0 -3
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-find-replace
|
|
2
2
|
|
|
3
|
+
## 6.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 6.0.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`be54c7e850cd3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/be54c7e850cd3) -
|
|
14
|
+
remove unused deprecated styles used to be consumed in editor content styles
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 6.0.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/ui/styles.js
CHANGED
|
@@ -1,128 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.selectedSearchMatchClass = exports.selectedBlockSearchMatchClass = exports.searchMatchTextClass = exports.searchMatchExpandTitleClass = exports.searchMatchClass = exports.
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = require("@emotion/react");
|
|
10
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
11
|
-
var _styles = require("@atlaskit/editor-common/styles");
|
|
12
|
-
var _css2;
|
|
6
|
+
exports.selectedSearchMatchClass = exports.selectedBlockSearchMatchClass = exports.searchMatchTextClass = exports.searchMatchExpandTitleClass = exports.searchMatchClass = exports.darkModeSearchMatchClass = exports.blockSearchMatchClass = void 0;
|
|
13
7
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
14
8
|
// Entry file in package.json
|
|
15
|
-
|
|
16
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
17
|
-
/* eslint-disable */
|
|
9
|
+
|
|
18
10
|
var searchMatchClass = exports.searchMatchClass = 'search-match';
|
|
19
11
|
var searchMatchTextClass = exports.searchMatchTextClass = 'search-match-text';
|
|
20
12
|
var selectedSearchMatchClass = exports.selectedSearchMatchClass = 'selected-search-match';
|
|
21
13
|
var blockSearchMatchClass = exports.blockSearchMatchClass = 'search-match-block';
|
|
22
14
|
var selectedBlockSearchMatchClass = exports.selectedBlockSearchMatchClass = 'search-match-block-selected';
|
|
23
15
|
var darkModeSearchMatchClass = exports.darkModeSearchMatchClass = 'search-match-dark';
|
|
24
|
-
var searchMatchExpandTitleClass = exports.searchMatchExpandTitleClass = 'search-match-expand-title';
|
|
25
|
-
var inlineCardSelector = '.loader-wrapper>a';
|
|
26
|
-
var inlineCardWithHoverPreviewSelector = '.hover-card-trigger-wrapper>a';
|
|
27
|
-
var statusSelector = '.lozenge-wrapper';
|
|
28
|
-
var mentionSelector = '.editor-mention-primitive';
|
|
29
|
-
var dateSelector = '.date-lozenger-container>span';
|
|
30
|
-
var findReplaceStyles = exports.findReplaceStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(searchMatchClass), {
|
|
31
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
32
|
-
borderRadius: "var(--ds-radius-small, 3px)",
|
|
33
|
-
backgroundColor: "var(--ds-background-accent-teal-subtlest, #E7F9FF)",
|
|
34
|
-
boxShadow: "var(--ds-shadow-raised, ".concat("0 1px 1px 0 ".concat(_colors.N50A, ", 0 0 1px 0 ").concat(_colors.N60A), ")") + ', inset 0 0 0 1px ' + "var(--ds-border-input, ".concat("".concat(_colors.N40A), ")")
|
|
35
|
-
}), ".".concat(selectedSearchMatchClass), {
|
|
36
|
-
backgroundColor: "var(--ds-background-accent-teal-subtle, #6CC3E0)"
|
|
37
|
-
}));
|
|
38
|
-
var findReplaceStylesNew = exports.findReplaceStylesNew = (0, _react.css)((_css2 = {}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_css2, ".".concat(searchMatchTextClass), {
|
|
39
|
-
borderRadius: "var(--ds-space-050, 4px)",
|
|
40
|
-
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"),
|
|
41
|
-
// we need to use !important here as we need to override inline selection styles
|
|
42
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)".concat(" !important"),
|
|
43
|
-
color: "var(--ds-text, #172B4D)"
|
|
44
|
-
}), ".".concat(searchMatchTextClass, ".").concat(selectedSearchMatchClass), {
|
|
45
|
-
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"),
|
|
46
|
-
// we need to use !important here as we need to override inline selection styles
|
|
47
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)".concat(" !important")
|
|
48
|
-
}), ".".concat(searchMatchTextClass, ".").concat(darkModeSearchMatchClass), {
|
|
49
|
-
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"),
|
|
50
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #50253F)",
|
|
51
|
-
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
52
|
-
}), ".".concat(searchMatchTextClass, ".").concat(selectedSearchMatchClass, ".").concat(darkModeSearchMatchClass), {
|
|
53
|
-
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"),
|
|
54
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
55
|
-
}), ".".concat(blockSearchMatchClass), (0, _defineProperty2.default)({
|
|
56
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
57
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
58
|
-
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")
|
|
59
|
-
}
|
|
60
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
61
|
-
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)")
|
|
62
|
-
})), ".".concat(blockSearchMatchClass, ".").concat(selectedBlockSearchMatchClass), (0, _defineProperty2.default)({
|
|
63
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
64
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
65
|
-
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")
|
|
66
|
-
}
|
|
67
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
68
|
-
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)")
|
|
69
|
-
})), ".".concat(blockSearchMatchClass, ".embedCardView-content-wrap.ak-editor-selected-node,\n\t .").concat(blockSearchMatchClass, ".statusView-content-wrap.ak-editor-selected-node,\n\t .").concat(blockSearchMatchClass, ".mentionView-content-wrap.ak-editor-selected-node,\n\t .").concat(blockSearchMatchClass, ".inlineCardView-content-wrap.ak-editor-selected-node,\n\t .").concat(blockSearchMatchClass, ".ak-editor-selected-node"), (0, _defineProperty2.default)({
|
|
70
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
71
|
-
'.loader-wrapper>div::after': {
|
|
72
|
-
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")
|
|
73
|
-
}
|
|
74
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
75
|
-
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)")
|
|
76
|
-
})), ".".concat(blockSearchMatchClass, ".").concat(selectedBlockSearchMatchClass, ".ak-editor-selected-node"), (0, _defineProperty2.default)({
|
|
77
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
78
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
79
|
-
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")
|
|
80
|
-
}
|
|
81
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
82
|
-
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)")
|
|
83
|
-
})), ".".concat(blockSearchMatchClass, ".").concat(darkModeSearchMatchClass), (0, _defineProperty2.default)({
|
|
84
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
85
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
86
|
-
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")
|
|
87
|
-
}
|
|
88
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
89
|
-
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)")
|
|
90
|
-
})), ".".concat(blockSearchMatchClass, ".").concat(selectedBlockSearchMatchClass, ".").concat(darkModeSearchMatchClass), (0, _defineProperty2.default)({
|
|
91
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
92
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
93
|
-
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", "\n\t\t\t")
|
|
94
|
-
}
|
|
95
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
96
|
-
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)")
|
|
97
|
-
})), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_css2, ".".concat(blockSearchMatchClass, ".").concat(darkModeSearchMatchClass, ".ak-editor-selected-node, .").concat(blockSearchMatchClass, ".").concat(darkModeSearchMatchClass, ".mentionView-content-wrap.ak-editor-selected-node"), (0, _defineProperty2.default)({
|
|
98
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
99
|
-
'.loader-wrapper>div::after': {
|
|
100
|
-
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")
|
|
101
|
-
}
|
|
102
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
103
|
-
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)")
|
|
104
|
-
})), ".".concat(blockSearchMatchClass, ".").concat(selectedBlockSearchMatchClass, ".").concat(darkModeSearchMatchClass, ".ak-editor-selected-node"), (0, _defineProperty2.default)({
|
|
105
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
106
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
107
|
-
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")
|
|
108
|
-
}
|
|
109
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
110
|
-
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)")
|
|
111
|
-
})), ".".concat(searchMatchExpandTitleClass, " > .").concat(_styles.expandClassNames.titleContainer, " > .").concat(_styles.expandClassNames.inputContainer), (0, _defineProperty2.default)({
|
|
112
|
-
borderRadius: "var(--ds-space-050, 4px)",
|
|
113
|
-
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"),
|
|
114
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)"
|
|
115
|
-
}, ".".concat(_styles.expandClassNames.titleInput), {
|
|
116
|
-
color: "var(--ds-text, #172B4D)"
|
|
117
|
-
})), ".".concat(searchMatchExpandTitleClass, ".").concat(selectedSearchMatchClass, " > .").concat(_styles.expandClassNames.titleContainer, " > .").concat(_styles.expandClassNames.inputContainer), {
|
|
118
|
-
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"),
|
|
119
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"
|
|
120
|
-
}), ".".concat(searchMatchExpandTitleClass, ".").concat(darkModeSearchMatchClass, " > .").concat(_styles.expandClassNames.titleContainer, " > .").concat(_styles.expandClassNames.inputContainer), (0, _defineProperty2.default)({
|
|
121
|
-
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"),
|
|
122
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #50253F)"
|
|
123
|
-
}, ".".concat(_styles.expandClassNames.titleInput), {
|
|
124
|
-
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
125
|
-
})), ".".concat(searchMatchExpandTitleClass, ".").concat(selectedSearchMatchClass, ".").concat(darkModeSearchMatchClass, " > .").concat(_styles.expandClassNames.titleContainer, " > .").concat(_styles.expandClassNames.inputContainer), {
|
|
126
|
-
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"),
|
|
127
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
128
|
-
})));
|
|
16
|
+
var searchMatchExpandTitleClass = exports.searchMatchExpandTitleClass = 'search-match-expand-title';
|
package/dist/es2019/ui/styles.js
CHANGED
|
@@ -1,241 +1,10 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
2
|
// Entry file in package.json
|
|
3
3
|
|
|
4
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
5
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
import { css } from '@emotion/react';
|
|
9
|
-
import { N40A, N50A, N60A } from '@atlaskit/theme/colors';
|
|
10
|
-
import { expandClassNames } from '@atlaskit/editor-common/styles';
|
|
11
4
|
export const searchMatchClass = 'search-match';
|
|
12
5
|
export const searchMatchTextClass = 'search-match-text';
|
|
13
6
|
export const selectedSearchMatchClass = 'selected-search-match';
|
|
14
7
|
export const blockSearchMatchClass = 'search-match-block';
|
|
15
8
|
export const selectedBlockSearchMatchClass = 'search-match-block-selected';
|
|
16
9
|
export const darkModeSearchMatchClass = 'search-match-dark';
|
|
17
|
-
export const searchMatchExpandTitleClass = 'search-match-expand-title';
|
|
18
|
-
const inlineCardSelector = '.loader-wrapper>a';
|
|
19
|
-
const inlineCardWithHoverPreviewSelector = '.hover-card-trigger-wrapper>a';
|
|
20
|
-
const statusSelector = '.lozenge-wrapper';
|
|
21
|
-
const mentionSelector = '.editor-mention-primitive';
|
|
22
|
-
const dateSelector = '.date-lozenger-container>span';
|
|
23
|
-
export const findReplaceStyles = css({
|
|
24
|
-
[`.${searchMatchClass}`]: {
|
|
25
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
26
|
-
borderRadius: "var(--ds-radius-small, 3px)",
|
|
27
|
-
backgroundColor: "var(--ds-background-accent-teal-subtlest, #E7F9FF)",
|
|
28
|
-
boxShadow: `var(--ds-shadow-raised, ${`0 1px 1px 0 ${N50A}, 0 0 1px 0 ${N60A}`})` + ', inset 0 0 0 1px ' + `var(--ds-border-input, ${`${N40A}`})`
|
|
29
|
-
},
|
|
30
|
-
[`.${selectedSearchMatchClass}`]: {
|
|
31
|
-
backgroundColor: "var(--ds-background-accent-teal-subtle, #6CC3E0)"
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
export const findReplaceStylesNew = css({
|
|
35
|
-
/** Text match styles */
|
|
36
|
-
|
|
37
|
-
/** Light mode */
|
|
38
|
-
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
40
|
-
[`.${searchMatchTextClass}`]: {
|
|
41
|
-
borderRadius: "var(--ds-space-050, 4px)",
|
|
42
|
-
boxShadow: `
|
|
43
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
44
|
-
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}
|
|
45
|
-
`,
|
|
46
|
-
// we need to use !important here as we need to override inline selection styles
|
|
47
|
-
backgroundColor: `${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"} !important`,
|
|
48
|
-
color: "var(--ds-text, #172B4D)"
|
|
49
|
-
},
|
|
50
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
51
|
-
[`.${searchMatchTextClass}.${selectedSearchMatchClass}`]: {
|
|
52
|
-
boxShadow: `
|
|
53
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
54
|
-
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"}
|
|
55
|
-
`,
|
|
56
|
-
// we need to use !important here as we need to override inline selection styles
|
|
57
|
-
backgroundColor: `${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"} !important`
|
|
58
|
-
},
|
|
59
|
-
/** Dark mode */
|
|
60
|
-
|
|
61
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
62
|
-
[`.${searchMatchTextClass}.${darkModeSearchMatchClass}`]: {
|
|
63
|
-
boxShadow: `
|
|
64
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
65
|
-
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"}
|
|
66
|
-
`,
|
|
67
|
-
backgroundColor: `${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"}`,
|
|
68
|
-
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
69
|
-
},
|
|
70
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
71
|
-
[`.${searchMatchTextClass}.${selectedSearchMatchClass}.${darkModeSearchMatchClass}`]: {
|
|
72
|
-
boxShadow: `
|
|
73
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
74
|
-
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}
|
|
75
|
-
`,
|
|
76
|
-
backgroundColor: `${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}`
|
|
77
|
-
},
|
|
78
|
-
/** Block match styles */
|
|
79
|
-
|
|
80
|
-
/** Light mode */
|
|
81
|
-
|
|
82
|
-
/** Without node selection */
|
|
83
|
-
[`.${blockSearchMatchClass}`]: {
|
|
84
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
85
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
86
|
-
boxShadow: `
|
|
87
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
88
|
-
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}
|
|
89
|
-
`
|
|
90
|
-
},
|
|
91
|
-
[`${inlineCardSelector}, ${inlineCardWithHoverPreviewSelector}, ${statusSelector}, ${mentionSelector}, ${dateSelector}`]: {
|
|
92
|
-
boxShadow: `0px 0px 0px 4px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"}`
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
[`.${blockSearchMatchClass}.${selectedBlockSearchMatchClass}`]: {
|
|
96
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
97
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
98
|
-
boxShadow: `
|
|
99
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
100
|
-
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"}
|
|
101
|
-
`
|
|
102
|
-
},
|
|
103
|
-
[`${inlineCardSelector}, ${inlineCardWithHoverPreviewSelector}, ${statusSelector}, ${mentionSelector}, ${dateSelector}`]: {
|
|
104
|
-
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)"}`
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
/** With node selection */
|
|
108
|
-
|
|
109
|
-
// We need to include the embedCardView and statusView classes to have higher specificity than the default selected state styles
|
|
110
|
-
[`.${blockSearchMatchClass}.embedCardView-content-wrap.ak-editor-selected-node,
|
|
111
|
-
.${blockSearchMatchClass}.statusView-content-wrap.ak-editor-selected-node,
|
|
112
|
-
.${blockSearchMatchClass}.mentionView-content-wrap.ak-editor-selected-node,
|
|
113
|
-
.${blockSearchMatchClass}.inlineCardView-content-wrap.ak-editor-selected-node,
|
|
114
|
-
.${blockSearchMatchClass}.ak-editor-selected-node`]: {
|
|
115
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
116
|
-
'.loader-wrapper>div::after': {
|
|
117
|
-
boxShadow: `
|
|
118
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
119
|
-
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"},
|
|
120
|
-
0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}
|
|
121
|
-
`
|
|
122
|
-
},
|
|
123
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
124
|
-
[`${inlineCardSelector}, ${inlineCardWithHoverPreviewSelector}, ${statusSelector}, ${mentionSelector}, ${dateSelector}`]: {
|
|
125
|
-
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)"}`
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
[`.${blockSearchMatchClass}.${selectedBlockSearchMatchClass}.ak-editor-selected-node`]: {
|
|
129
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
130
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
131
|
-
boxShadow: `
|
|
132
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
133
|
-
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"},
|
|
134
|
-
0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}
|
|
135
|
-
`
|
|
136
|
-
},
|
|
137
|
-
[`${inlineCardSelector}, ${inlineCardWithHoverPreviewSelector}, ${statusSelector}, ${mentionSelector}, ${dateSelector}`]: {
|
|
138
|
-
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)"}`
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
/** Dark mode */
|
|
142
|
-
/** Without node selection */
|
|
143
|
-
[`.${blockSearchMatchClass}.${darkModeSearchMatchClass}`]: {
|
|
144
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
145
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
146
|
-
boxShadow: `
|
|
147
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
148
|
-
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"}
|
|
149
|
-
`
|
|
150
|
-
},
|
|
151
|
-
[`${inlineCardSelector}, ${inlineCardWithHoverPreviewSelector}, ${statusSelector}, ${mentionSelector}, ${dateSelector}`]: {
|
|
152
|
-
boxShadow: `0px 0px 0px 4px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"}`
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
[`.${blockSearchMatchClass}.${selectedBlockSearchMatchClass}.${darkModeSearchMatchClass}`]: {
|
|
156
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
157
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
158
|
-
boxShadow: `
|
|
159
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
160
|
-
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}
|
|
161
|
-
`
|
|
162
|
-
},
|
|
163
|
-
[`${inlineCardSelector}, ${inlineCardWithHoverPreviewSelector}, ${statusSelector}, ${mentionSelector}, ${dateSelector}`]: {
|
|
164
|
-
boxShadow: `0px 0px 0px 4px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"}`
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
/** With node selection */
|
|
168
|
-
[`.${blockSearchMatchClass}.${darkModeSearchMatchClass}.ak-editor-selected-node, .${blockSearchMatchClass}.${darkModeSearchMatchClass}.mentionView-content-wrap.ak-editor-selected-node`]: {
|
|
169
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
170
|
-
'.loader-wrapper>div::after': {
|
|
171
|
-
boxShadow: `
|
|
172
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
173
|
-
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"},
|
|
174
|
-
0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}
|
|
175
|
-
`
|
|
176
|
-
},
|
|
177
|
-
[`${inlineCardSelector}, ${inlineCardWithHoverPreviewSelector}, ${statusSelector}, ${mentionSelector}, ${dateSelector}`]: {
|
|
178
|
-
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)"}`
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
[`.${blockSearchMatchClass}.${selectedBlockSearchMatchClass}.${darkModeSearchMatchClass}.ak-editor-selected-node`]: {
|
|
182
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
183
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
184
|
-
boxShadow: `
|
|
185
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
186
|
-
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"},
|
|
187
|
-
0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}
|
|
188
|
-
`
|
|
189
|
-
},
|
|
190
|
-
[`${inlineCardSelector}, ${inlineCardWithHoverPreviewSelector}, ${statusSelector}, ${mentionSelector}, ${dateSelector}`]: {
|
|
191
|
-
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)"}`
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
/** Expand title match styles */
|
|
195
|
-
|
|
196
|
-
/** Light mode */
|
|
197
|
-
|
|
198
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
199
|
-
[`.${searchMatchExpandTitleClass} > .${expandClassNames.titleContainer} > .${expandClassNames.inputContainer}`]: {
|
|
200
|
-
borderRadius: "var(--ds-space-050, 4px)",
|
|
201
|
-
boxShadow: `
|
|
202
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
203
|
-
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}
|
|
204
|
-
`,
|
|
205
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)",
|
|
206
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
207
|
-
[`.${expandClassNames.titleInput}`]: {
|
|
208
|
-
color: "var(--ds-text, #172B4D)"
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
212
|
-
[`.${searchMatchExpandTitleClass}.${selectedSearchMatchClass} > .${expandClassNames.titleContainer} > .${expandClassNames.inputContainer}`]: {
|
|
213
|
-
boxShadow: `
|
|
214
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
215
|
-
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"}
|
|
216
|
-
`,
|
|
217
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"
|
|
218
|
-
},
|
|
219
|
-
/** Dark mode */
|
|
220
|
-
|
|
221
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
222
|
-
[`.${searchMatchExpandTitleClass}.${darkModeSearchMatchClass} > .${expandClassNames.titleContainer} > .${expandClassNames.inputContainer}`]: {
|
|
223
|
-
boxShadow: `
|
|
224
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
225
|
-
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"}
|
|
226
|
-
`,
|
|
227
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #50253F)",
|
|
228
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
229
|
-
[`.${expandClassNames.titleInput}`]: {
|
|
230
|
-
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
234
|
-
[`.${searchMatchExpandTitleClass}.${selectedSearchMatchClass}.${darkModeSearchMatchClass} > .${expandClassNames.titleContainer} > .${expandClassNames.inputContainer}`]: {
|
|
235
|
-
boxShadow: `
|
|
236
|
-
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
237
|
-
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}
|
|
238
|
-
`,
|
|
239
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
240
|
-
}
|
|
241
|
-
});
|
|
10
|
+
export const searchMatchExpandTitleClass = 'search-match-expand-title';
|
package/dist/esm/ui/styles.js
CHANGED
|
@@ -1,123 +1,10 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
var _css2;
|
|
3
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
4
2
|
// Entry file in package.json
|
|
5
3
|
|
|
6
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
7
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
8
|
-
/* eslint-disable */
|
|
9
|
-
|
|
10
|
-
import { css } from '@emotion/react';
|
|
11
|
-
import { N40A, N50A, N60A } from '@atlaskit/theme/colors';
|
|
12
|
-
import { expandClassNames } from '@atlaskit/editor-common/styles';
|
|
13
4
|
export var searchMatchClass = 'search-match';
|
|
14
5
|
export var searchMatchTextClass = 'search-match-text';
|
|
15
6
|
export var selectedSearchMatchClass = 'selected-search-match';
|
|
16
7
|
export var blockSearchMatchClass = 'search-match-block';
|
|
17
8
|
export var selectedBlockSearchMatchClass = 'search-match-block-selected';
|
|
18
9
|
export var darkModeSearchMatchClass = 'search-match-dark';
|
|
19
|
-
export var searchMatchExpandTitleClass = 'search-match-expand-title';
|
|
20
|
-
var inlineCardSelector = '.loader-wrapper>a';
|
|
21
|
-
var inlineCardWithHoverPreviewSelector = '.hover-card-trigger-wrapper>a';
|
|
22
|
-
var statusSelector = '.lozenge-wrapper';
|
|
23
|
-
var mentionSelector = '.editor-mention-primitive';
|
|
24
|
-
var dateSelector = '.date-lozenger-container>span';
|
|
25
|
-
export var findReplaceStyles = css(_defineProperty(_defineProperty({}, ".".concat(searchMatchClass), {
|
|
26
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
27
|
-
borderRadius: "var(--ds-radius-small, 3px)",
|
|
28
|
-
backgroundColor: "var(--ds-background-accent-teal-subtlest, #E7F9FF)",
|
|
29
|
-
boxShadow: "var(--ds-shadow-raised, ".concat("0 1px 1px 0 ".concat(N50A, ", 0 0 1px 0 ").concat(N60A), ")") + ', inset 0 0 0 1px ' + "var(--ds-border-input, ".concat("".concat(N40A), ")")
|
|
30
|
-
}), ".".concat(selectedSearchMatchClass), {
|
|
31
|
-
backgroundColor: "var(--ds-background-accent-teal-subtle, #6CC3E0)"
|
|
32
|
-
}));
|
|
33
|
-
export var findReplaceStylesNew = css((_css2 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_css2, ".".concat(searchMatchTextClass), {
|
|
34
|
-
borderRadius: "var(--ds-space-050, 4px)",
|
|
35
|
-
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"),
|
|
36
|
-
// we need to use !important here as we need to override inline selection styles
|
|
37
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)".concat(" !important"),
|
|
38
|
-
color: "var(--ds-text, #172B4D)"
|
|
39
|
-
}), ".".concat(searchMatchTextClass, ".").concat(selectedSearchMatchClass), {
|
|
40
|
-
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"),
|
|
41
|
-
// we need to use !important here as we need to override inline selection styles
|
|
42
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)".concat(" !important")
|
|
43
|
-
}), ".".concat(searchMatchTextClass, ".").concat(darkModeSearchMatchClass), {
|
|
44
|
-
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"),
|
|
45
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #50253F)",
|
|
46
|
-
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
47
|
-
}), ".".concat(searchMatchTextClass, ".").concat(selectedSearchMatchClass, ".").concat(darkModeSearchMatchClass), {
|
|
48
|
-
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"),
|
|
49
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
50
|
-
}), ".".concat(blockSearchMatchClass), _defineProperty({
|
|
51
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
52
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
53
|
-
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t\t")
|
|
54
|
-
}
|
|
55
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
56
|
-
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)")
|
|
57
|
-
})), ".".concat(blockSearchMatchClass, ".").concat(selectedBlockSearchMatchClass), _defineProperty({
|
|
58
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
59
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
60
|
-
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")
|
|
61
|
-
}
|
|
62
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
63
|
-
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)")
|
|
64
|
-
})), ".".concat(blockSearchMatchClass, ".embedCardView-content-wrap.ak-editor-selected-node,\n\t .").concat(blockSearchMatchClass, ".statusView-content-wrap.ak-editor-selected-node,\n\t .").concat(blockSearchMatchClass, ".mentionView-content-wrap.ak-editor-selected-node,\n\t .").concat(blockSearchMatchClass, ".inlineCardView-content-wrap.ak-editor-selected-node,\n\t .").concat(blockSearchMatchClass, ".ak-editor-selected-node"), _defineProperty({
|
|
65
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
66
|
-
'.loader-wrapper>div::after': {
|
|
67
|
-
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")
|
|
68
|
-
}
|
|
69
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
70
|
-
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)")
|
|
71
|
-
})), ".".concat(blockSearchMatchClass, ".").concat(selectedBlockSearchMatchClass, ".ak-editor-selected-node"), _defineProperty({
|
|
72
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
73
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
74
|
-
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")
|
|
75
|
-
}
|
|
76
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
77
|
-
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)")
|
|
78
|
-
})), ".".concat(blockSearchMatchClass, ".").concat(darkModeSearchMatchClass), _defineProperty({
|
|
79
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
80
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
81
|
-
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")
|
|
82
|
-
}
|
|
83
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
84
|
-
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)")
|
|
85
|
-
})), ".".concat(blockSearchMatchClass, ".").concat(selectedBlockSearchMatchClass, ".").concat(darkModeSearchMatchClass), _defineProperty({
|
|
86
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
87
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
88
|
-
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")
|
|
89
|
-
}
|
|
90
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
91
|
-
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)")
|
|
92
|
-
})), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_css2, ".".concat(blockSearchMatchClass, ".").concat(darkModeSearchMatchClass, ".ak-editor-selected-node, .").concat(blockSearchMatchClass, ".").concat(darkModeSearchMatchClass, ".mentionView-content-wrap.ak-editor-selected-node"), _defineProperty({
|
|
93
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
94
|
-
'.loader-wrapper>div::after': {
|
|
95
|
-
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")
|
|
96
|
-
}
|
|
97
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
98
|
-
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)")
|
|
99
|
-
})), ".".concat(blockSearchMatchClass, ".").concat(selectedBlockSearchMatchClass, ".").concat(darkModeSearchMatchClass, ".ak-editor-selected-node"), _defineProperty({
|
|
100
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
101
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
102
|
-
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")
|
|
103
|
-
}
|
|
104
|
-
}, "".concat(inlineCardSelector, ", ").concat(inlineCardWithHoverPreviewSelector, ", ").concat(statusSelector, ", ").concat(mentionSelector, ", ").concat(dateSelector), {
|
|
105
|
-
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)")
|
|
106
|
-
})), ".".concat(searchMatchExpandTitleClass, " > .").concat(expandClassNames.titleContainer, " > .").concat(expandClassNames.inputContainer), _defineProperty({
|
|
107
|
-
borderRadius: "var(--ds-space-050, 4px)",
|
|
108
|
-
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"),
|
|
109
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)"
|
|
110
|
-
}, ".".concat(expandClassNames.titleInput), {
|
|
111
|
-
color: "var(--ds-text, #172B4D)"
|
|
112
|
-
})), ".".concat(searchMatchExpandTitleClass, ".").concat(selectedSearchMatchClass, " > .").concat(expandClassNames.titleContainer, " > .").concat(expandClassNames.inputContainer), {
|
|
113
|
-
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"),
|
|
114
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"
|
|
115
|
-
}), ".".concat(searchMatchExpandTitleClass, ".").concat(darkModeSearchMatchClass, " > .").concat(expandClassNames.titleContainer, " > .").concat(expandClassNames.inputContainer), _defineProperty({
|
|
116
|
-
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"),
|
|
117
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #50253F)"
|
|
118
|
-
}, ".".concat(expandClassNames.titleInput), {
|
|
119
|
-
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
120
|
-
})), ".".concat(searchMatchExpandTitleClass, ".").concat(selectedSearchMatchClass, ".").concat(darkModeSearchMatchClass, " > .").concat(expandClassNames.titleContainer, " > .").concat(expandClassNames.inputContainer), {
|
|
121
|
-
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"),
|
|
122
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
123
|
-
})));
|
|
10
|
+
export var searchMatchExpandTitleClass = 'search-match-expand-title';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
2
1
|
export declare const searchMatchClass = "search-match";
|
|
3
2
|
export declare const searchMatchTextClass = "search-match-text";
|
|
4
3
|
export declare const selectedSearchMatchClass = "selected-search-match";
|
|
@@ -6,5 +5,3 @@ export declare const blockSearchMatchClass = "search-match-block";
|
|
|
6
5
|
export declare const selectedBlockSearchMatchClass = "search-match-block-selected";
|
|
7
6
|
export declare const darkModeSearchMatchClass = "search-match-dark";
|
|
8
7
|
export declare const searchMatchExpandTitleClass = "search-match-expand-title";
|
|
9
|
-
export declare const findReplaceStyles: SerializedStyles;
|
|
10
|
-
export declare const findReplaceStylesNew: SerializedStyles;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
2
1
|
export declare const searchMatchClass = "search-match";
|
|
3
2
|
export declare const searchMatchTextClass = "search-match-text";
|
|
4
3
|
export declare const selectedSearchMatchClass = "selected-search-match";
|
|
@@ -6,5 +5,3 @@ export declare const blockSearchMatchClass = "search-match-block";
|
|
|
6
5
|
export declare const selectedBlockSearchMatchClass = "search-match-block-selected";
|
|
7
6
|
export declare const darkModeSearchMatchClass = "search-match-dark";
|
|
8
7
|
export declare const searchMatchExpandTitleClass = "search-match-expand-title";
|
|
9
|
-
export declare const findReplaceStyles: SerializedStyles;
|
|
10
|
-
export declare const findReplaceStylesNew: SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-find-replace",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.3",
|
|
4
4
|
"description": "find replace plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,24 +28,24 @@
|
|
|
28
28
|
],
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/button": "^23.
|
|
31
|
+
"@atlaskit/button": "^23.5.0",
|
|
32
32
|
"@atlaskit/editor-plugin-analytics": "^6.1.0",
|
|
33
|
-
"@atlaskit/editor-plugin-card": "^11.
|
|
34
|
-
"@atlaskit/editor-plugin-expand": "^7.
|
|
33
|
+
"@atlaskit/editor-plugin-card": "^11.3.0",
|
|
34
|
+
"@atlaskit/editor-plugin-expand": "^7.1.0",
|
|
35
35
|
"@atlaskit/editor-plugin-mentions": "^8.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
38
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
38
|
+
"@atlaskit/editor-shared-styles": "^3.7.0",
|
|
39
39
|
"@atlaskit/form": "^14.2.0",
|
|
40
|
-
"@atlaskit/icon": "^28.
|
|
41
|
-
"@atlaskit/icon-lab": "^5.
|
|
42
|
-
"@atlaskit/mention": "^24.
|
|
40
|
+
"@atlaskit/icon": "^28.5.0",
|
|
41
|
+
"@atlaskit/icon-lab": "^5.10.0",
|
|
42
|
+
"@atlaskit/mention": "^24.3.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
|
-
"@atlaskit/primitives": "^
|
|
44
|
+
"@atlaskit/primitives": "^15.0.0",
|
|
45
45
|
"@atlaskit/textfield": "^8.0.0",
|
|
46
46
|
"@atlaskit/theme": "^21.0.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
48
|
-
"@atlaskit/tokens": "^6.
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^13.10.0",
|
|
48
|
+
"@atlaskit/tokens": "^6.5.0",
|
|
49
49
|
"@atlaskit/tooltip": "^20.5.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@af/visual-regression": "workspace:^",
|
|
58
|
-
"@atlaskit/editor-plugin-block-type": "^
|
|
58
|
+
"@atlaskit/editor-plugin-block-type": "^10.1.0",
|
|
59
59
|
"@atlaskit/editor-plugin-text-formatting": "^6.0.0",
|
|
60
60
|
"@testing-library/react": "^13.4.0",
|
|
61
61
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"react-dom": "^18.2.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@atlaskit/editor-common": "^110.
|
|
67
|
+
"@atlaskit/editor-common": "^110.12.0",
|
|
68
68
|
"react": "^18.2.0",
|
|
69
69
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
70
70
|
},
|